1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="7510d4ba-67c9-8d08-d517-9ac602c844ca")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,960153,e=>{"use strict";let t,n,r,a,i,o,s,l,c,u,p,d,f;var g=e.i(350461),m=e.i(451048),h=e.i(653541),_=e.i(410544),E=e.i(899619),v=e.i(387395),T=e.i(275885),y=e.i(914046);let S=_.GLOBAL_OBJ;function b(){try{return S.document.location.href}catch{return""}}function I(e,t=5){if(!S.HTMLElement)return null;let n=e;for(let e=0;e<t&&n;e++){if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}let A=_.GLOBAL_OBJ,N=0;function R(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if((0,E.getOriginalFunction)(e))return e}catch{return e}let n=function(...n){_.GLOBAL_OBJ._sentryWrappedDepth=(_.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{let r=n.map(e=>R(e,t));return e.apply(this,r)}catch(e){throw N++,setTimeout(()=>{N--}),(0,m.withScope)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,v.addExceptionTypeValue)(e,void 0,void 0),(0,v.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,T.captureException)(e)}),e}finally{_.GLOBAL_OBJ._sentryWrappedDepth=(_.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,E.markFunctionWrapped)(n,e),(0,E.addNonEnumerableProperty)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function w(){let e=b(),{referrer:t}=A.document||{},{userAgent:n}=A.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}let O=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentStateGraph","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],C={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};async function L(e,t){var n;let r,a,i=O.includes(e)?C[e]||e.replace("Integration","").toLowerCase():void 0,o=A.Sentry=A.Sentry||{};if(!i)throw Error(`Cannot lazy load integration: ${e}`);let s=o[e];if("function"==typeof s&&!("_isShim"in s))return s;let l=(n=i,r=(0,m.getClient)(),a=r?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com",new URL(`/${h.SDK_VERSION}/${n}.min.js`,a).toString()),c=A.document.createElement("script");c.src=l,c.crossOrigin="anonymous",c.referrerPolicy="strict-origin",t&&c.setAttribute("nonce",t);let u=new Promise((e,t)=>{c.addEventListener("load",()=>e()),c.addEventListener("error",t)}),p=A.document.currentScript,d=A.document.body||A.document.head||p?.parentElement;if(d)d.appendChild(c);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await u}catch{throw Error(`Error when loading integration: ${e}`)}let f=o[e];if("function"!=typeof f)throw Error(`Could not load integration: ${e}`);return f}var x=e.i(63104),B=e.i(847378),U=e.i(664660),k=e.i(182021),P=e.i(359546),D=e.i(121288),M=e.i(266361),$=e.i(893859),G=e.i(333226),j=e.i(320648),F=e.i(442044),q=e.i(908817),Y=e.i(22511);let H={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function J(e,t={}){var n;let r,a,i=new Map,o=!1,s="externalFinish",l=!t.disableAutoFinish,c=[],{idleTimeout:u=H.idleTimeout,finalTimeout:p=H.finalTimeout,childSpanTimeout:d=H.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:g=!0}=t,h=(0,m.getClient)(),_=(0,m.getCurrentScope)();if(!h||!(0,P.hasSpansEnabled)()){let e=new G.SentryNonRecordingSpan({traceId:_.getPropagationContext().traceId});return(0,Y.setCapturedScopesOnSpan)(e,_,(0,m.getIsolationScope)()),e}let E=(0,$.getActiveSpan)(),v=(n=e,r=(0,q.startInactiveSpan)(n),(0,M._setSpanForScope)((0,m.getCurrentScope)(),r),U.DEBUG_BUILD&&k.debug.log("[Tracing] Started span is an i
2dle span"),r);function T(){a&&(clearTimeout(a),a=void 0)}function y(e){T(),a=setTimeout(()=>{!o&&0===i.size&&l&&(s="idleTimeout",v.end(e))},u)}function S(e){a=setTimeout(()=>{!o&&l&&(s="heartbeatFailed",v.end(e))},d)}function b(e){o=!0,i.clear(),c.forEach(e=>e()),(0,M._setSpanForScope)(_,E);let t=(0,$.spanToJSON)(v),{start_timestamp:n}=t;if(!n)return;t.data[x.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||v.setAttribute(x.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,s);let r=t.status;r&&"unknown"!==r||v.setStatus({code:F.SPAN_STATUS_OK}),k.debug.log(`[Tracing] Idle span "${t.op}" finished`);let a=(0,$.getSpanDescendants)(v).filter(e=>e!==v),l=0;a.forEach(t=>{t.isRecording()&&(t.setStatus({code:F.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),U.DEBUG_BUILD&&k.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=(0,$.spanToJSON)(t),a=r<=e,i=n-r<=(p+u)/1e3;if(U.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);a?i||k.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):k.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!i||!a)&&((0,$.removeChildSpanFromSpan)(v,t),l++)}),l>0&&v.setAttribute("sentry.idle_span_discarded_spans",l)}return v.end=new Proxy(v.end,{apply(e,t,n){if(f&&f(v),(0,G.spanIsNonRecordingSpan)(t))return;let[r,...a]=n,i=r||(0,B.timestampInSeconds)(),o=(0,$.spanTimeInputToSeconds)(i),s=(0,$.getSpanDescendants)(v).filter(e=>e!==v),l=(0,$.spanToJSON)(v);if(!s.length||!g)return b(o),Reflect.apply(e,t,[o,...a]);let c=h.getOptions().ignoreSpans,u=s?.reduce((e,t)=>{let n=(0,$.spanToJSON)(t);return!n.timestamp||c&&(0,D.shouldIgnoreSpan)({description:n.description,op:n.op,attributes:n.data},c)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=l.start_timestamp,m=Math.min(d?d+p/1e3:1/0,Math.max(d||-1/0,Math.min(o,u||1/0)));return b(m),Reflect.apply(e,t,[m,...a])}}),c.push(h.on("spanStart",e=>{var t;!(o||e===v||(0,$.spanToJSON)(e).timestamp||e instanceof j.SentrySpan&&e.isStandaloneSpan())&&(0,$.getSpanDescendants)(v).includes(e)&&(t=e.spanContext().spanId,T(),i.set(t,!0),S((0,B.timestampInSeconds)()+d/1e3))})),c.push(h.on("spanEnd",e=>{if(!o){var t;t=e.spanContext().spanId,i.has(t)&&i.delete(t),0===i.size&&y((0,B.timestampInSeconds)()+u/1e3)}})),c.push(h.on("idleSpanEnableAutoFinish",e=>{e===v&&(l=!0,y(),i.size&&S())})),t.disableAutoFinish||y(),setTimeout(()=>{o||(v.setStatus({code:F.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),s="finalTimeout",v.end())},p),v}let W="http.url",z="sentry.segment.name",V="sentry.transaction",X="url.full",K="url.path",Q="url.template";function Z(e){return"isRelative"in e}function ee(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function et(e){if(Z(e))return e.pathname;let 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 en(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function er(e){return e.split(/[?#]/,1)[0]}function ea(e,t=!0){if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",a=e.includes(";base64,"),i=e.indexOf(","),o="";if(t&&-1!==i){let t=e.slice(i+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${a?",base64":""}${o?`,${o}`:""}`}return e}var ei=e.i(25366);let eo={},es={};function el(e,t){return eo[e]=eo[e]||[],eo[e].push(t),()=>{let n=eo[e];if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function ec(e,t){if(!es[e]){es[e]=!0;try{t()}catch(t){U.DEBUG_BUILD&&k.debug.error(`Error while instrumenting ${e}`,t)}}}function eu(e,t){let n=e&&eo[e];if(n)for(let r of n)try{r(t)}catch(t){U.DEBUG_BUILD&&k.debug.error(`Error while triggering instrumentation handler. 3Type: ${e} 4Name: ${(0,ei.getFunctionName)(r)} 5Error:`,t)}}let ep=null;function ed(e){let t="error";el(t,e),ec(t,ef)}function ef(){ep=_.GLOBAL_OBJ.onerror,_.GLOBAL_OBJ.onerror=function(e,t,n,r,a){return eu("error",{column:r,error:a,line:n,msg:e,url:t}),!!ep&&ep.apply(this,arguments)},_.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let eg=null;function em(e){let t="unhandledrejection";el(t,e),ec(t,eh)}function eh(){eg=_.GLOBAL_OBJ.onunhandledrejection,_.GLOBAL_OBJ.onunhandledrejection=function(e){return eu("unhandledrejection",e),!eg||eg.apply(this,arguments)},_.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let e_=!1;var eE=e.i(254402),ev=e.i(76357),eT=e.i(304710),ey=e.i(540735);let eS=_.GLOBAL_OBJ;function eb(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let eI=_.GLOBAL_OBJ;function eA(e){let t="history";el(t,e),ec(t,eN)}function eN(){function e(e){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let a=t,i=function(e){try{return new URL(e,eI.location.origin).toString()}catch{return e}}(String(r));if(t=i,a===i)return e.apply(this,n);eu("history",{from:a,to:i})}return e.apply(this,n)}}eI.addEventListener("popstate",()=>{let e=eI.location.href,n=t;t=e,n===e||eu("history",{from:n,to:e})}),"history"in eS&&eS.history&&((0,E.fill)(eI.history,"pushState",e),(0,E.fill)(eI.history,"replaceState",e))}var eR=e.i(190225),ew=e.i(399677);let eO={};try{"u">typeof Node&&(eO.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"u">typeof Element&&(eO.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,eO.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,eO.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,eO.getAttribute=Element.prototype.getAttribute),"u">typeof HTMLElement&&(eO.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function eC(e,t,n){let r=eO[t];if(r)try{return r.call(e,n)}catch{}let a=e[t];return"function"==typeof a?a.call(e,n):a}function eL(e,t={}){if(!e)return"<unknown>";try{let n,r=e,a=[],i=0,o=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&i++<5&&(n=function(e,t){let n=[],r=eC(e,"tagName");if(!r)return"";if("u">typeof HTMLElement&&e instanceof HTMLElement){let t=eC(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let a=t?.length?t.filter(t=>eC(e,"getAttribute",t)).map(t=>[t,eC(e,"getAttribute",t)]):null;
5if(a?.length)a.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=eC(e,"id");t&&n.push(`#${t}`);let r=eC(e,"className");if(r&&(0,y.isString)(r))for(let e of r.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=eC(e,"getAttribute",t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(r,s),"html"!==n&&(!(i>1)||!(o+3*a.length+n.length>=l)));)a.push(n),o+=n.length,r=eC(r,"parentNode");return a.reverse().join(" > ")}catch{return"<unknown>"}}let ex="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eB=(e,t,n,r)=>{let a,i;return o=>{if(t.value>=0&&(o||r)&&((i=t.value-(a??0))||void 0===a)){var s;a=t.value,t.delta=i,s=t.value,t.rating=s>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t)}}},eU=(e=!0)=>{let t=eI.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},ek=()=>{let e=eU();return e?.activationStart??0};function eP(e,t,n){eI.document&&eI.addEventListener(e,t,n)}function eD(e,t,n){eI.document&&eI.removeEventListener(e,t,n)}let eM=-1,e$=new Set,eG=e=>{if(("pagehide"===e.type||eI.document?.visibilityState==="hidden")&&eM>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of e$)e();isFinite(eM)||(eM="visibilitychange"===e.type?e.timeStamp:0,eD("prerenderingchange",eG,!0))}},ej=()=>
5{if(eI.document&&eM<0){let e=ek();eM=(eI.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(eI.document?.visibilityState!=="hidden"||eI.document?.prerendering?1/0:0),eP("visibilitychange",eG,!0),eP("pagehide",eG,!0),eP("prerenderingchange",eG,!0)}return{get firstHiddenTime(){return eM},onHidden(e){e$.add(e)}}},eF=(e,t=-1)=>{let n=eU(),r="navigate";return n&&(eI.document?.prerendering||ek()>0?r="prerender":eI.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:r}},eq=new WeakMap;function eY(e,t){try{return eq.get(e)||eq.set(e,new t),eq.get(e)}catch(e){return new t}}class eH{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let eJ=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},eW=e=>{let t=!1;return()=>{t||(e(),t=!0)}},ez=e=>{eI.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},eV=[1800,3e3],eX=[.1,.25],eK=0,eQ=1/0,eZ=0,e0=e=>{e.forEach(e=>{e.interactionId&&(eQ=Math.min(eQ,e.interactionId),eK=(eZ=Math.max(eZ,e.interactionId))?(eZ-eQ)/7+1:0)})},e1=()=>n?eK:performance.interactionCount||0,e3=0;class e4{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){e3=e1(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((e1()-e3)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}let e2=e=>{let t=eI.requestIdleCallback||eI.setTimeout;eI.document?.visibilityState==="hidden"?e():(eP("visibilitychange",e=eW(e),{once:!0,capture:!0}),eP("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),eD("visibilitychange",e,{capture:!0}),eD("pagehide",e,{capture:!0})}))},e5=[200,500];class e8{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let e6=[2500,4e3],e7=[800,1800],e9=e=>{eI.document?.prerendering?ez(()=>e9(e)):eI.document?.readyState!=="complete"?addEventListener("load",()=>e9(e),!0):setTimeout(e)},te={},tt={};function tn(e,t=!1){return tp("cls",e,ts,r,t)}function tr(e,t=!1){return tp("lcp",e,tl,a,t)}function ta(e){return tp("inp",e,tu,o)}function ti(e,t){var n;let r;return td(e,t),tt[e]||(r={},"event"===(n=e)&&(r.durationThreshold=0),eJ(n,e=>{to(n,{entries:e})},r),tt[e]=!0),tf(e,t)}function to(e,t){let n=te[e];if(n?.length)for(let r of n)try{r(t)}catch(t){ex&&k.debug.error(`Error while triggering instrumentation handler. 6Type: ${e} 7Name: ${(0,ei.getFunctionName)(r)} 8Error:`,t)}}function ts(){return((e,t={})=>{((e,t={})=>{ez(()=>{let n,r=ej(),a=eF("FCP"),i=eJ("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<r.firstHiddenTime&&(a.value=Math.max(t.startTime-ek(),0),a.entries.push(t),n(!0)))});i&&(n=eB(e,a,eV,t.reportAllChanges))})})(eW(()=>{let n,r=eF("CLS",0),a=ej(),i=eY(t,eH),o=e=>{for(let t of e)i._processEntry(t);i._sessionValue>r.value&&(r.value=i._sessionValue,r.entries=i._sessionEntries,n())},s=eJ("layout-shift",o);s&&(n=eB(e,r,eX,t.reportAllChanges),a.onHidden(()=>{o(s.takeRecords()),n(!0)}),eI?.setTimeout?.(n))}))})(e=>{to("cls",{metric:e}),r=e},{reportAllChanges:!0})}function tl(){return((e,t={})=>{ez(()=>{let n,r=ej(),a=eF("LCP"),i=eY(t,e8),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))i._processEntry(o),o.startTime<r.firstHiddenTime&&(a.value=Math.max(o.startTime-ek(),0),a.entries=[o],n())},s=eJ("largest-contentful-paint",o);if(s){n=eB(e,a,e6,t.reportAllChanges);let r=eW(()=>{o(s.takeRecords()),s.disconnect(),n(!0)}),i=e=>{e.isTrusted&&(e2(r),eD(e.type,i,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])eP(e,i,{capture:!0})}})})(e=>{to("lcp",{metric:e}),a=e},{reportAllChanges:!0})}function tc(){return((e,t={})=>{let n=eF("TTFB"),r=eB(e,n,e7,t.reportAllChanges);e9(()=>{let e=eU();e&&(n.value=Math.max(e.responseStart-ek(),0),n.entries=[e],r(!0))})})(e=>{to("ttfb",{metric:e}),i=e})}function tu(){return((e,t={})=>
8{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=ej();ez(()=>{let a;"interactionCount"in performance||n||(n=eJ("event",e0,{type:"event",buffered:!0,durationThreshold:0}));let i=eF("INP"),o=eY(t,e4),s=e=>{e2(()=>{for(let t of e)o._processEntry(t);let t=o._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,a())})},l=eJ("event",s,{durationThreshold:t.durationThreshold??40});a=eB(e,i,e5,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{s(l.takeRecords()),a(!0)}))})})(e=>{to("inp",{metric:e}),o=e})}function tp(e,t,n,r,a=!1){let i;return td(e,t),tt[e]||(i=n(),tt[e]=!0),r&&t({metric:r}),tf(e,t,a?i:void 0)}function td(e,t){te[e]=te[e]||[],te[e].push(t)}function tf(e,t,n){return()=>{n&&n();let r=te[e];if(!r)return;let a=r.indexOf(t);-1!==a&&r.splice(a,1)}}function tg(e){return"number"==typeof e&&isFinite(e)}function tm(e,t,n,{...r}){let a=(0,$.spanToJSON)(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,q.withActiveSpan)(e,()=>{let e=(0,q.startInactiveSpan)({startTime:t,...r});return e&&e.end(n),e})}function th(e){let t,n=(0,m.getClient)();if(!n)return;let{name:r,transaction:a,attributes:i,startTime:o}=e,{release:s,environment:l}=n.getOptions(),{userInfo:c}=n.getDataCollectionOptions(),u=n.getIntegrationByName("Replay"),p=u?.getReplayId(),d=(0,m.getCurrentScope)(),f=d.getUser(),g=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=d.getScopeData().contexts.profile.profile_id}catch{}let h={release:s,environment:l,user:g||void 0,profile_id:t||void 0,replay_id:p||void 0,transaction:a,"user_agent.original":eI.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...i};return(0,q.startInactiveSpan)({name:r,attributes:h,startTime:o,experimental:{standalone:!0}})}function t_(){return eI.addEventListener&&eI.performance}function tE(e){return e/1e3}function tv(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function tT(e,t){let n,r,a=!1;function i(e){!a&&r&&t(e,r.spanContext().spanId,r),a=!0}eP("visibilitychange",n=e=>{("pagehide"===e.type||eI.document?.visibilityState==="hidden")&&(()=>{i("pagehide")})()},{capture:!0,once:!0}),eP("pagehide",n,{capture:!0,once:!0});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e,s()})}function ty(e){return null!=e&&e>0&&e<=6e4}function tS(e){return e?(((0,B.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function tb(e){let t={};if(void 0!=e.nextHopProtocol){let{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(let a of e){if("/"===a){[t,n]=e.split("/");break}if(!isNaN(Number(a))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=a}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,B.browserPerformanceTimeOrigin)()||t_()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":tS(e.redirectStart),"http.request.redirect_end":tS(e.redirectEnd),"http.request.worker_start":tS(e.workerStart),"http.request.fetch_start":tS(e.fetchStart),"http.request.domain_lookup_start":tS(e.domainLookupStart),"http.request.domain_lookup_end":tS(e.domainLookupEnd),"http.request.connect_start":tS(e.connectStart),"http.request.secure_connection_start":tS(e.secureConnectionStart),"http.request.connection_end":tS(e.connectEnd),"http.request.request_start":tS(e.requestStart),"http.request.response_start":tS(e.responseStart),"http.request.response_end":tS(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let tI=0,tA={};function tN(){s=void 0,l=void 0,tA={}}function tR(e,t,n,r,a=n){var i;let o=t["secureConnection"===(i=n)?"connectEnd":"fetch"===i?"domainLookupStart":`${i}End`],s=t[`${n}Start`];s&&o&&tm(e,r+tE(s),r+tE(o),{op:`browser.${a}`,name:t.name,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let tw="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tO=[];function tC(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function tL(e,t,n){if(n[t.name]){U.DEBUG_BUILD&&k.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,tO.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),tO.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{let r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),U.DEBUG_BUILD&&k.debug.log(`Integration installed: ${t.name}`)}function tx(e,t){let n="fetch",r=el(n,e);return ec(n,()=>tB(void 0,t)),r}function tB(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;
8if(!function(){if(!("fetch"in eS))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(eb(eS.fetch))return!0;let e=!1,t=eS.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=eb(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){U.DEBUG_BUILD&&k.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,E.fill)(_.GLOBAL_OBJ,"fetch",function(t){return function(...n){let r=Error(),{method:a,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:tD(t),method:tP(n,"method")?String(n.method).toUpperCase():(0,y.isRequest)(t)&&tP(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:tD(t),method:tP(t,"method")?String(t.method).toUpperCase():"GET"}}(n),o={args:n,fetchData:{method:a,url:i},startTimestamp:1e3*(0,B.timestampInSeconds)(),virtualError:r,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,y.isRequest)(t))return new Headers(t.headers)}catch{}}(n)};return e||eu("fetch",{...o}),t.apply(_.GLOBAL_OBJ,n).then(async t=>(e?e(t):eu("fetch",{...o,endTimestamp:1e3*(0,B.timestampInSeconds)(),response:t}),t),e=>{eu("fetch",{...o,endTimestamp:1e3*(0,B.timestampInSeconds)(),error:e}),(0,y.isError)(e)&&void 0===e.stack&&(e.stack=r.stack,(0,E.addNonEnumerableProperty)(e,"framesToPop",1));let t=(0,m.getClient)(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&(0,y.isError)(e)&&"TypeError"===e.name&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(o.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:(0,E.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function tU(e,t){if(e?.body){let n=e.body,r=n.getReader(),a=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),i=!0;for(;i;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:a}=await r.read();clearTimeout(e),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(a),r.releaseLock(),n.cancel().then(null,()=>{})}}function tk(e){let t;try{t=e.clone()}catch{return}tU(t,()=>{eu("fetch-body-resolved",{endTimestamp:1e3*(0,B.timestampInSeconds)(),response:e})})}function tP(e,t){return(0,y.isObjectLike)(e)&&!!e[t]}function tD(e){return"string"==typeof e?e:e?tP(e,"url")?e.url:e.toString?e.toString():"":""}let tM=new WeakMap,t$=new WeakMap,tG=["text/event-stream","application/x-ndjson","application/stream+json"];function tj(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==g.default?g.default:0))||(e=_.GLOBAL_OBJ.process,e?.type==="renderer"))}let tF=[],tq=new Map,tY=new Map,tH={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"},tJ=({metric:e})=>{if(void 0==e.value)return;let t=tE(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&tH[t.name]);if(!n)return;let{interactionId:r}=n,a=tH[n.name],i=tE((0,B.browserPerformanceTimeOrigin)()+n.startTime),o=(0,$.getActiveSpan)(),s=o?(0,$.getRootSpan)(o):void 0,l=null!=r?tq.get(r):void 0,c=l?.span||s,u=c?(0,$.spanToJSON)(c).description:(0,m.getCurrentScope)().getScopeData().transactionName,p=th({name:l?.elementName||eL(n.target),transaction:u,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${a}`,[x.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.duration},startTime:i});p&&(p.addEvent("inp",{[x.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[x.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),p.end(i+t))};function tW(e){let{name:t,op:n,origin:r,metricName:a,value:i,attributes:o,parentSpan:s,reportEvent:l,startTime:c,endTime:u}=e,p=(0,m.getCurrentScope)().getScopeData().transactionName,d={[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:n,[x.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,[`browser.web_vital.${a}.value`]:i,[V]:p,[z]:p,"user_agent.original":eI.navigator?.userAgent,...o};s&&(0,$.spanToStreamedSpanJSON)(s).attributes?.[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]==="pageload"&&(d["sentry.pageload.span_id"]=s.spanContext().spanId),l&&(d[`browser.web_vital.${a}.report_event`]=l);let f=(0,q.startInactiveSpan)({name:t,attributes:d,startTime:c,parentSpan:s});f&&f.end(u??c)}let tz="WebVitals",tV="sentry_previous_trace";function tX(e){return 1===e.traceFlags}var tK=e.i(157821),tQ=e.i(414697),tZ=e.i(931140);function t0(e={}){let t=e.client||(0,m.getClient)();if(!(0,T.isEnabled)()||!t)return{};let n=(0,tZ.getMainCarrier)(),r=(0,tQ.getAsyncContextStrategy)(n);if(r.getTraceData)return r.getTraceData(e);let a=e.scope||(0,m.getCurrentScope)(),i=e.span||(0,$.getActiveSpan)(),o=(0,G.spanIsNonRecordingSpan)(i)&&!(0,P.hasSpansEnabled)(t.getOptions());if(!i&&(0,m.hasExternalPropagationContext)())return{};let s=i&&!o?(0,$.spanToTraceHeader)(i):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,ev.generateSentryTraceHeader)(t,r,n)}(a),l=i?(0,ey.getDynamicSamplingContextFromSpan)(i):(0,ey.getDynamicSamplingContextFromScope)(t,a),c=(0,tK.dynamicSamplingContextToSentryBaggageHeader)(l);if(!ev.TRACEPARENT_REGEXP.test(s))return k.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let u={"sentry-trace":s,baggage:c};return e.propagateTraceparent&&(u.traceparent=i&&!o?(0,$.spanToTraceparentHeader)(i):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,ev.generateTraceparentHeader)(t,r,n)}(a)),u}function t1(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(tK.SENTRY_BAGGAGE_KEY_PREFIX))}function t3(e,t,n,r){let a={url:ea(e),type:"fetch","http.method":n,[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&(Z(t)||(a[W]=ea(t.href),a[X]=ea(t.href),a["server.address"]=t.host),t.search&&(a["http.query"]=t.search),t.hash&&(a["http.fragment"]=t.hash)),a}let t4="__sentry_xhr_v3__";function t2(e){el("xhr",e),ec("xhr",t5)}function t5(){if(!eI.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),a=1e3*(0,B.timestampInSeconds)(),i=(0,y.isString)(n[0])?n[0].toUpperCase():void 0,o=function(e){if((0,y.isString)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!i||!o)return e.apply(t,n);t[t4]={method:i,url:o,request_headers:{}}
8,"POST"===i&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[t4];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}eu("xhr",{endTimestamp:1e3*(0,B.timestampInSeconds)(),startTimestamp:a,xhr:t,virtualError:r}),t.removeEventListener("readystatechange",s)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(s(),e.apply(t,n))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,a]=n,i=t[t4];return i&&(0,y.isString)(r)&&(0,y.isString)(a)&&(i.request_headers[r.toLowerCase()]=a),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[t4];return r&&(void 0!==n[0]&&(r.body=n[0]),eu("xhr",{startTimestamp:1e3*(0,B.timestampInSeconds)(),xhr:t})),e.apply(t,n)}})}function t8(e){try{return new URL(e,A.location.origin).href}catch{return}}function t6(e){try{return new Headers(e)}catch{return}}let t7={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function t9(e,t){let{url:n}=(0,$.spanToJSON)(e).data;if(!n||"string"!=typeof n)return;let r=()=>void setTimeout(a);if((0,eT.hasSpanStreamingEnabled)(t)){let t=e.end.bind(e);e.end=e=>{let n=e??(0,B.timestampInSeconds)(),i=!1,o=()=>{i||(i=!0,setTimeout(a),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,300)}}let a=ti("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(n)&&(e.setAttributes(tb(t)),r())})})}let ne=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function nt(){let e=A.navigator;return!!e?.userAgent&&ne.test(e.userAgent)}let nn={...H,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...t7};function nr(e,t,n){e.emit("startPageLoadSpan",t,n),(0,m.getCurrentScope)().setTransactionName(t.name);let r=e[ns];return r&&e.emit("afterStartPageLoadSpan",r),r}function na(e,t,n){let{url:r,isRedirect:a}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:a,url:r}),e.emit("startNavigationSpan",t,{isRedirect:a,url:r});let i=(0,m.getCurrentScope)();return i.setTransactionName(t.name),r&&!a&&i.setSDKProcessingMetadata({normalizedRequest:{...w(),url:r}}),e[ns]}function ni(e){let t=A.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function no(e){let t=A.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}let ns="_sentry_idleSpan";function nl(e,t){(0,E.addNonEnumerableProperty)(e,ns,t)}function nc(e){try{return new URL(e,eI.location.origin).toString()}catch{return e}}let nu="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,np=_.GLOBAL_OBJ,nd=null,nf=new Map,ng=new Map;function nm(e){let t=e.split("/").filter(Boolean),n=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?n+=1e3:t.endsWith("*")?n+=100:n+=10}return t.length>0&&(n+=1/t.length),n}function nh(e){if(nf.has(e))return nf.get(e)??null;try{let t=new RegExp(e);return nf.set(e,t),t}catch(t){return nu&&k.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}function n_(){if(!np?._sentryRouteManifest||"string"!=typeof np._sentryRouteManifest)return null;let e=np._sentryRouteManifest;if(nd&&d===e)return nd;nf.clear(),ng.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return nd=t,d=e,t}catch{return nu&&k.debug.warn("Could not extract route manifest"),null}}let nE=e=>{let t=n_();if(!t)return;let n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(ng.has(n))return ng.get(n);let{staticRoutes:r,dynamicRoutes:a}=t;if(!Array.isArray(r)||!Array.isArray(a))return;let i=(function(e,t,n){let r=[];if(t.some(t=>t.path===e))return r;for(let t of n)if(t.regex){let n=nh(t.regex);n?.test(e)&&r.push(t.path)}if(!e.startsWith("/:")){for(let t of n)if(t.hasOptionalPrefix&&t.regex){let n="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,a=nh(t.regex);a?.test(n)&&r.push(t.path)}}return r})(n,r,a).sort((e,t)=>
8nm(e)-nm(t))[0];return ng.set(n,i),i};function nv(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function nT(e,t,n){e.setAttributes({[K]:t,[X]:nc(n)})}let ny="incomplete-app-router-transaction",nS="router-patch",nb={current:void 0},nI=_.GLOBAL_OBJ;function nA(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}_.GLOBAL_OBJ;let nN=new WeakSet;function nR(e,t,n){nN.has(t)||(nN.add(t),["back","forward","push","replace"].forEach(r=>{t?.[r]&&(t[r]=new Proxy(t[r],{apply(t,a,i){if("router-patch"!==nS)return t.apply(a,i);let o=ny,s={[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"},l=i[0],c="/dashboard",u=c&&"string"==typeof l&&!l.startsWith(c)?`${c}${l}`:l;"push"===r?(o=nv(nA(u)),s["navigation.type"]="router.push"):"replace"===r?(o=nv(nA(u)),s["navigation.type"]="router.replace"):"back"===r?s["navigation.type"]="router.back":"forward"===r&&(s["navigation.type"]="router.forward");let p=nE(o),d="back"===r||"forward"===r?void 0:nc(u);return n.current=na(e,{name:p??o,attributes:{...s,[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:p?"route":"url",...p&&{[Q]:p}}},d?{url:d}:void 0),t.apply(a,i)}}))}))}function nw(e,t,n=[t],r="npm"){let a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:h.SDK_VERSION})),a.version=h.SDK_VERSION)}function nO(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}let nC=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/];function nL(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:nC],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function nx(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return U.DEBUG_BUILD&&k.debug.error(`Cannot extract url for event ${(0,v.getEventDescription)(e)}`),null}}let nB=new WeakMap;function nU(e,t){let n=(0,ei.getFramesFromEvent)(e),r=(0,ei.getFramesFromEvent)(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],a=n[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function nk(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function nP(e){return e.exception?.values?.[0]}var nD=e.i(878174),nM=e.i(111053),n$=e.i(872028),nG=e.i(347907);e.i(574860),e.i(272536);var nj=e.i(357082);function nF(e,t){var n,r,a,i,o;let s,l,c=t??(o=e,nq().get(o))??[];if(0===c.length)return;let u=e.getOptions(),p=(n=u._metadata,r=u.tunnel,a=e.getDsn(),i=e.getDataCollectionOptions().userInfo,s={},n?.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&a&&(s.dsn=(0,nM.dsnToString)(a)),(0,nj.createEnvelope)(s,[(l=i?"auto":"never",[{type:"log",item_count:c.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...tj()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:c}])]));nq().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(p)}function nq(){return(0,tZ.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function nY(e,t){var n,r,a,i,o;let s,l,c=t??(o=e,nH().get(o))??[];if(0===c.length)return;let u=e.getOptions(),p=(n=u._metadata,r=u.tunnel,a=e.getDsn(),i=e.getDataCollectionOptions().userInfo,s={},n?.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&a&&(s.dsn=(0,nM.dsnToString)(a)),(0,nj.createEnvelope)(s,[(l=i?"auto":"never",[{type:"trace_metric",item_count:c.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...tj()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:c}])]));nH().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(p)}function nH(){return(0,tZ.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}var nJ=e.i(817433),nW=e.i(665720),nz=e.i(980323);function nV(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let nX=Symbol.for("SentryBufferFullError");function nK(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return(0,nz.rejectedSyncPromise)(nX);let r=n();return t.add(r),r.then(()=>{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return(0,nz.resolvedSyncPromise)(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>nV(setTimeout(()=>t(!1),e)))]):n}}}var nQ=e.i(479838),nZ=e.i(871766),n0=e.i(958927),n1=e.i(929203);let n3=["forwarded","-ip","remote-","via","-user"],n4={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0}
8,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},n2="Not capturing exception because it's already been captured.",n5="Discarded session because of missing or non-string release",n8=Symbol.for("SentryInternalError"),n6=Symbol.for("SentryDoNotSendEventError");function n7(e){return{message:e,[n8]:!0}}function n9(e){return{message:e,[n6]:!0}}function re(e){return(0,y.isObjectLike)(e)&&n8 in e}function rt(e){return(0,y.isObjectLike)(e)&&n6 in e}function rn(e,t,n,r,a){let i,o=0,s=!1;e.on(n,()=>{o=0,clearTimeout(i),s=!1}),e.on(t,t=>{if((o+=r(t))>=8e5)a(e);else if(!s){let t=e.getOptions()._flushInterval??5e3;t>0&&(s=!0,i=nV(setTimeout(()=>{a(e)},t)))}}),e.on("flush",()=>{a(e)})}class rr{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=nK(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?n4:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:n3},httpHeaders:{request:{deny:n3},response:{deny:n3}},httpBodies:[],urlQueryParams:{deny:n3},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7},n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=(0,nM.makeDsn)(e.dsn):U.DEBUG_BUILD&&k.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t,n){let r,a,i;return t||`${r=e.protocol?`${e.protocol}:`:"",a=e.port?`:${e.port}`:"",`${r}//${e.host}${a}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${i={sentry_version:"7"},e.publicKey&&(i.sentry_key=e.publicKey),n&&(i.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(i).toString()}`}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&rn(this,"afterCaptureLog","flushLogs",rl,nF),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&rn(this,"afterCaptureMetric","flushMetrics",rs,nY)}captureException(e,t,n){let r=(0,v.uuid4)();if((0,v.checkOrSetAlreadyCaught)(e))return U.DEBUG_BUILD&&k.debug.log(n2),r;let a={event_id:r,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,n)).then(e=>e),"error"),a.event_id}captureMessage(e,t,n,r){let a={event_id:(0,v.uuid4)(),...n},i=(0,y.isParameterizedString)(e)?e:String(e),o=(0,y.isPrimitive)(e),s=o?this.eventFromMessage(i,t,a):this.eventFromException(e,a);return this._process(()=>s.then(e=>this._captureEvent(e,a,r)),o?"unknown":"error"),a.event_id}captureEvent(e,t,n){let r=(0,v.uuid4)();if(t?.originalException&&(0,v.checkOrSetAlreadyCaught)(t.originalException))return U.DEBUG_BUILD&&k.debug.log(n2),r;let a={event_id:r,...t},i=e.sdkProcessingMetadata||{},o=i.capturedSpanScope,s=i.capturedSpanIsolationScope,l=ra(e.type);return this._process(()=>this._captureEvent(e,a,o||n,s),l),a.event_id}captureSession(e){this.sendSession(e),(0,nJ.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;
8if(this.emit("flush"),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),tL(this,e,this._integrations),t||tC(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||(0,eT.hasSpanStreamingEnabled)(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?n.push(function(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return(0,$.streamedSpanJsonToSerializedSpan)(t)}(t)):r.push(t);if(0===n.length)return;e.spans=r;let a=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...tj()&&{ingest_settings:{infer_ip:a,infer_user_agent:a}},items:n}]}(e,this),r=(0,nG.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=(0,nj.addItemToEnvelope)(r,(0,nj.createAttachmentEnvelopeItem)(e));n&&(r=(0,nj.addItemToEnvelope)(r,n)),this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:n=n$.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let r=e.attrs||{};if(!r.release&&!t){U.DEBUG_BUILD&&k.debug.warn(n5);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){U.DEBUG_BUILD&&k.debug.warn(n5);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);let r=(0,nG.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;U.DEBUG_BUILD&&k.debug.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return U.DEBUG_BUILD&&k.debug.error("Error while sending envelope:",e),{}}return U.DEBUG_BUILD&&k.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){var e;let t,{integrations:n}=this._options;this._integrations=(e=this,t={},n.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),n.forEach(n=>{n&&tL(e,n,t)}),t),tC(this,n)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,a=t.exception?.values;if(a){for(let e of(r=!0,n=!1,a))if(e.mechanism?.handled===!1){n=!0;break}}let i="ok"===e.status;(i&&0===e.errors||i&&n)&&((0,nJ.updateSession)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let a=this.getOptions(),i=this.getIntegrationNames();return!t.integrations&&i.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,n1.prepareEvent)(a,e,t,n,this,r).then(e=>
8(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,m.getTraceContextFromScope)(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,ey.getDynamicSamplingContextFromScope)(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=(0,m.getCurrentScope)(),r=(0,m.getIsolationScope)()){return U.DEBUG_BUILD&&ri(e)&&k.debug.log(`Captured error event \`${nO(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{U.DEBUG_BUILD&&(rt(e)?k.debug.log(e.message):re(e)?k.debug.warn(e.message):k.debug.warn(e))})}_processEvent(e,t,n,r){let a=this.getOptions(),{sampleRate:i}=a,o=ro(e),s=ri(e),l=e.type||"error",c=`before send for type \`${l}\``,u=void 0===i?void 0:(0,n0.parseSampleRate)(i),p=ra(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",p),n9("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,y.isThenable)(e))return e.then(e=>{if(!(0,y.isPlainObject)(e)&&null!==e)throw n7(n);return e},e=>{throw n7(`${t} rejected with ${e}`)});if(!(0,y.isPlainObject)(e)&&null!==e)throw n7(n);return e}(function(e,t,n,r){let{beforeSend:a,beforeSendTransaction:i,ignoreSpans:o}=t,s=!(0,nW.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(ri(l)&&a)return a(l,r);if(ro(l)){if(s||o){let t=function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:a,origin:i,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o?.[x.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:o?.[x.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}(l);if(o?.length&&(0,D.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);if(e)l=(0,nZ.merge)(n,{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&&{[x.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[x.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements});else(0,$.showSpanDropWarning)()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(o?.length&&(0,D.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},o)){(0,D.reparentChildSpans)(n,e);continue}if(s){let n=s(e);n?t.push(n):((0,$.showSpanDropWarning)(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(i){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(l,r)}}return l}(this,a,e,t),c)}).then(a=>{if(null===a){if(this.recordDroppedEvent("before_send",p),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw n9(`${c} returned \`null\`, will not send event.`)}let l=n.getSession()||r.getSession();if(s&&l&&this._updateSessionFromEvent(l,a),s&&"number"==typeof u&&(0,nQ.safeMathRandom)()>u)throw this.recordDroppedEvent("sample_rate","error"),n9(`Discarding event because it's not included in the random sample (sampling rate = ${i})`);if(o){let e=(a.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(a.spans?a.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let d=a.transaction_info;return o&&d&&a.transaction!==e.transaction&&(a.transaction_info={...d,source:"custom"}),this.sendEvent(a,t),a}).then(null,e=>{if(rt(e)||re(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),n7(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 9Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===nX&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){var e;let t;U.DEBUG_BUILD&&k.debug.log("Flushing outcomes...");let n=this._clearOutcomes();if(0===n.length){U.DEBUG_BUILD&&k.debug.log("No outcomes to send");return}if(!this._dsn){U.DEBUG_BUILD&&k.debug.log("No dsn provided, will not send outcomes");return}U.DEBUG_BUILD&&k.debug.log("Sending outcomes:",n);let r=(e=this._options.tunnel&&(0,nM.dsnToString)(this._dsn),t=[{type:"client_report"},{timestamp:(0,B.dateTimestampInSeconds)(),discarded_events:n}],(0,nj.createEnvelope)(e?{dsn:e}:{},[t]));this.sendEnvelope(r)}}function ra(e){return"replay_event"===e?"replay":e||"error"}function ri(e){return void 0===e.type}function ro(e){return"transaction"===e.type}function rs(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+rc(e.attributes)}function rl(e){let t=0;return e.message&&(t+=2*e.message.length),t+rc(e.attributes)}function rc(e){if(!e)return 0;let t=0;
9return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*ru(e[0]):(0,y.isPrimitive)(e)?t+=ru(e):t+=100}),t}function ru(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function rp(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function rd(e){return(0,y.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function rf(e,t){var n,r;let a,i,o=rm(e,t),s={type:(n=t,!(a=n?.name)&&r_(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":a),value:(r=t,i=r?.message,r_(r)?Array.isArray(r.message)&&2==r.message.length?r.message[1]:"wasm exception":i?i.error&&"string"==typeof i.error.message?rd(i.error):rd(r):"No error message")};return o.length&&(s.stacktrace={frames:o}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function rg(e,t){return{exception:{values:[rf(e,t)]}}}function rm(e,t){var n,r;let a=t.stacktrace||t.stack||"",i=(n=t)&&rh.test(n.message)?1:0,o="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(a,i,o)}catch{}return[]}let rh=/Minified React error #\d+;/i;function r_(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function rE(e,t,n,r,a){let i;if((0,y.isErrorEvent)(t)&&t.error)return rg(e,t.error);if((0,y.isDOMError)(t)||(0,y.isDOMException)(t)){if("stack"in t){i=rg(e,t);let a=i.exception?.values?.[0];if(r&&n&&a&&!a.stacktrace){let t=rm(e,n);t.length&&(a.stacktrace={frames:t},(0,v.addExceptionMechanism)(i,{synthetic:!0}))}}else{let a=t.name||((0,y.isDOMError)(t)?"DOMError":"DOMException"),o=t.message?`${a}: ${t.message}`:a;i=rv(e,o,n,r),(0,v.addExceptionTypeValue)(i,o)}return"code"in t&&(i.tags={...i.tags,"DOMException.code":`${t.code}`}),i}return(0,y.isError)(t)?rg(e,t):((0,y.isPlainObject)(t)||(0,y.isEvent)(t)?i=function(e,t,n,r){let a=(0,m.getClient)(),i=a?.getOptions().normalizeDepth,o=Object.values(t).find(y.isError),s={__serialized__:(0,nD.normalizeToSize)(t,i)};if(o)return{exception:{values:[rf(e,o)]},extra:s};let l={exception:{values:[{type:(0,y.isEvent)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,E.extractExceptionKeysForMessage)(e),r=t?"promise rejection":"exception";if((0,y.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,y.isEvent)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=rm(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,a):(i=rv(e,t,n,r),(0,v.addExceptionTypeValue)(i,`${t}`,void 0)),(0,v.addExceptionMechanism)(i,{synthetic:!0}),i)}function rv(e,t,n,r){let a={};if(r&&n){let r=rm(e,n);r.length&&(a.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,v.addExceptionMechanism)(a,{synthetic:!0})}if((0,y.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return a.logentry={message:e,params:n},a}return a.message=t,a}class rT extends rr{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:A.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);nw(t,"browser",["browser"],A.SENTRY_SDK_SOURCE||"npm"),super(t);const{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:r}=this._options;A.document&&A.document.addEventListener("visibilitychange",()=>{"hidden"===A.document.visibilityState&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",rp)}eventFromException(e,t){var n,r;let a;return n=this._options.stackParser,r=this._options.attachStacktrace,a=rE(n,e,t?.syntheticException||void 0,r),(0,v.addExceptionMechanism)(a),a.level="error",t?.event_id&&(a.event_id=t.event_id),(0,nz.resolvedSyncPromise)(a)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,a){let i=rv(e,t,r?.syntheticException||void 0,a);return i.level=n,r?.event_id&&(i.event_id=r.event_id),(0,nz.resolvedSyncPromise)(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}let ry=new Set([]),rS=new Set;function rb(){"console"in _.GLOBAL_OBJ&&k.CONSOLE_LEVELS.forEach(function(e){!rS.has(e)&&e in _.GLOBAL_OBJ.console&&(rS.add(e),(0,E.fill)(_.GLOBAL_OBJ.console,e,function(t){return k.originalConsoleMethods[e]=t,function(...t){let n=t[0],r=k.originalConsoleMethods[e],a=ry.size&&"string"==typeof n&&(0,ew.stringMatchesSomePattern)(n,ry);a||eu("console",{args:t,level:e}),(!a||U.DEBUG_BUILD&&k.debug.isEnabled())&&r?.apply(_.GLOBAL_OBJ.console,t)}}))})}function rI(e,t){let n=(0,m.getClient)(),r=(0,m.getIsolationScope)();if(!n)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:i=100}=n.getOptions();if(i<=0)return;let o={timestamp:(0,B.dateTimestampInSeconds)(),...e},s=a?(0,k.consoleSandbox)(()=>a(o,t)):o;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,i))}function rA(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function rN(){if(!eI.document)return;let e=eu.bind(null,"dom"),t=rR(e,!0);eI.document.addEventListener("click",t,!1),eI.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=eI[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,E.fill)(n,"addEventListener",function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){let r=rR(e);i.handler=r,t.call(this,n,r,a)}i.refCount++}catch{}return t.call(this,n,r,a)}}),(0,E.fill)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},a=n[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function rR(e,t=!1){return n=>{var r;if(!n||n._sentryCaptured)return;let a=function(e){try{return e.target}catch{return null}}(n);if(r=n.type,"keypress"===r&&(!a?.tagName||"INPUT"!==a.tagName&&"TEXTAREA"!==a.tagName&&!a.isContentEditable&&1))return;(0,E.addNonEnumerableProperty)(n,"_sentryCaptured",!0),a&&!a._sentryId&&(0,E.addNonEnumerableProperty)(a,"_sentryId",(0,v.uuid4)());let i="keypress"===n.type?"input":n.type;!function(e){if(e.type!==u)return!1;try{if(!e.target||e.target._sentryId!==p)return!1}catch{}return!0}(n)&&(e({event:n,name:i,global:t}),u=n.type,p=a?a._sentryId:void 0),clearTimeout(c),c=eI.setTimeout(()=>{p=void 0,u=void 0},1e3)}}let rw="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDB
9Request,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");function rO(e){return function(...t){let n=t[0];return t[0]=R(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,ei.getFunctionName)(e)}`}}),e.apply(this,t)}}function rC(e){return function(t){return e.apply(this,[R(t,{mechanism:{data:{handler:(0,ei.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function rL(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,E.fill)(n,e,function(t){let n={mechanism:{data:{handler:(0,ei.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=(0,E.getOriginalFunction)(t);return r&&(n.mechanism.data.handler=(0,ei.getFunctionName)(r)),R(t,n)})}),e.apply(this,t)}}function rx(e,t){let n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}function rB(){try{let e=A.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}function rU(e){tw&&k.debug.log(`Global Handler attached: ${e}`)}function rk(){let e=(0,m.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function rP(e){return Array.isArray(e.errors)}function rD(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...rP(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function rM(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function r$(e,t,n,r){let a={filename:e,function:"<anonymous>"===t?ei.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==n&&(a.lineno=n),void 0!==r&&(a.colno=r),a}let rG=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rj=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rF=/\((\S*)(?::(\d+))(?::(\d+))\)/,rq=/at (.+?) ?\(data:(.+?),/,rY=[30,e=>{let t=e.match(rq);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=rG.exec(e);if(n){let[,e,t,r]=n;return r$(e,ei.UNKNOWN_FUNCTION,+t,+r)}let r=rj.exec(e);if(r){if(r[2]?.indexOf("eval")===0){let e=rF.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=rV(r[1]||ei.UNKNOWN_FUNCTION,r[2]);return r$(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],rH=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rJ=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rW=[50,e=>{let t=rH.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=rJ.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||ei.UNKNOWN_FUNCTION;return[n,e]=rV(n,e),r$(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],rz=(0,ei.createStackParser)(rY,rW),rV=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:ei.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},rX={};function rK(e,t=function(e){let t=rX[e];if(t)return t;let n=eI[e];if(eb(n))return rX[e]=n.bind(eI);let r=eI.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a?.[e]&&(n=a[e]),r.head.removeChild(t)}catch(t){ex&&k.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?rX[e]=n.bind(eI):n}("fetch")){let n=0,r=0;async function a(a){let i=a.body.length;n+=i,r++;let o={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw rX.fetch=void 0,e}finally{n-=i,r--}}return function(e,t,n=nK(e.bufferSize||64)){let r={};return{send:function(a){let i=[];if((0,nj.forEachEnvelopeItem)(a,(t,n)=>{let a=(0,nj.envelopeItemTypeToDataCategory)(n);!function(e,t,n=(0,nQ.safeDateNow)()){return(e[t]||e.all||0)>n}(r,a)?i.push(t):e.recordDroppedEvent("ratelimit_backoff",a)}),0===i.length)return Promise.resolve({});let o=(0,nj.createEnvelope)(a[0],i),s=t=>{if((0,nj.envelopeContainsItemType)(o,["client_report"])){U.DEBUG_BUILD&&k.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}(0,nj.forEachEnvelopeItem)(o,(n,r)=>{e.recordDroppedEvent(t,(0,nj.envelopeItemTypeToDataCategory)(r))})};return n.add(()=>t({body:(0,nj.serializeEnvelope)(o)}).then(e=>(413===e.statusCode?(U.DEBUG_BUILD&&k.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(U.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&k.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=(0,nQ.safeDateNow)()){let a={...e},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,n,,,i]=e.split(":",5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!i||i.split(";").includes("custom"))&&(a[e]=r+s):a[e]=r+s;else a.all=r+s}else o?a.all=r+function(e,t=(0,nQ.safeDateNow)()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}
9(o,r):429===t&&(a.all=r+6e4);return a}(r,e)),e),e=>{throw s("network_error"),U.DEBUG_BUILD&&k.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===nX)return U.DEBUG_BUILD&&k.debug.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}(e,a,nK(e.bufferSize||40))}let rQ=/^HTML(\w*)Element$/;function rZ(e){if("u">typeof window&&e===window)return"[Window]";if("u">typeof document&&e===document)return"[Document]";if(function(e){if("u"<typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t,n=(t=Object.getPrototypeOf(e),t?.constructor?t.constructor.name:"null prototype");if(rQ.test(n))return`[HTMLElement: ${eL(e)}]`}}function r0(e){let t;return[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(n){t=nL(e,n.getOptions())},processEvent:(n,r,a)=>(t||(t=nL(e,a.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&(0,ew.stringMatchesSomePattern)(n,t)}(e,t.ignoreTransactions))return U.DEBUG_BUILD&&k.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 10Event: ${(0,v.getEventDescription)(e)}`),!0}else{var n,r,a;if(n=e,r=t.ignoreErrors,r?.length&&nO(n).some(e=>(0,ew.stringMatchesSomePattern)(e,r)))return U.DEBUG_BUILD&&k.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 11Event: ${(0,v.getEventDescription)(e)}`),!0;if(a=e,a.exception?.values?.length&&!a.message&&!a.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return U.DEBUG_BUILD&&k.debug.warn(`Event dropped due to not having an error message, error type or stacktrace. 12Event: ${(0,v.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=nx(e);return!!n&&(0,ew.stringMatchesSomePattern)(n,t)}(e,t.denyUrls))return U.DEBUG_BUILD&&k.debug.warn(`Event dropped due to being matched by \`denyUrls\` option. 13Event: ${(0,v.getEventDescription)(e)}. 14Url: ${nx(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=nx(e);return!n||(0,ew.stringMatchesSomePattern)(n,t)}(e,t.allowUrls))return U.DEBUG_BUILD&&k.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option. 15Event: ${(0,v.getEventDescription)(e)}. 16Url: ${nx(e)}`),!0}return!1}(n,t)?n:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n,r=(0,E.getOriginalFunction)(this);try{nB.has((0,m.getClient)())&&void 0!==r&&(n=r)}catch{}return e.apply(n??this,t)}}catch{}},setup(e){nB.set(e,!0)}},{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,m.getCurrentScope)().getScopeData(),n=(0,m.getIsolationScope)().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:a}=(0,$.spanToJSON)(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!a?.startsWith("ai."))return;e.setAttribute(x.GEN_AI_CONVERSATION_ID_ATTRIBUTE,r)}})}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,E.fill)(A,"setTimeout",rO),t.setInterval&&(0,E.fill)(A,"setInterval",rO),t.requestAnimationFrame&&(0,E.fill)(A,"requestAnimationFrame",rC),t.XMLHttpRequest&&"XMLHttpRequest"in A&&(0,E.fill)(XMLHttpRequest.prototype,"send",rL);let e=t.eventTarget;e&&(Array.isArray(e)?e:rw).forEach(e=>{var n,r;let a;return n=e,r=t,a=A[n]?.prototype,void(a?.hasOwnProperty?.("addEventListener")&&((0,E.fill)(a,"addEventListener",function(e){return function(t,a,i){var o,s,l,c;try{o=a,"function"==typeof o.handleEvent&&(a.handleEvent=R(a.handleEvent,{mechanism:{data:{handler:(0,ei.getFunctionName)(a),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&(s=this,l=t,c=a,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,c)),e.apply(this,[t,R(a,{mechanism:{data:{handler:(0,ei.getFunctionName)(a),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),(0,E.fill)(a,"removeEventListener",function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){let a=n.__sentry_wrapped__;a&&e.call(this,t,a,r)}}catch{}return e.call(this,t,n,r)}})))})}}})(),((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,a,i,o,s,l;let c;t.console&&(n=e,el(c="console",function(e){var t;if((0,m.getClient)()!==n)return;let r={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log",message:(0,ew.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else r.message=`Assertion failed: ${(0,ew.safeJoin)(e.args.slice(1)," ")||"console.assert"}`,r.data.arguments=e.args.slice(1);rI(r,{input:e.args,level:e.level})}),ec(c,rb)),t.dom&&(el("dom",(r=e,a=t.dom,function(e){let t,n;if((0,m.getClient)()!==r)return;let i="object"==typeof a?a.serializeAttribute:void 0,o="object"==typeof a&&"number"==typeof a.maxStringLength?a.maxStringLength:void 0;o&&o>1024&&(tw&&k.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof i&&(i=[i]);try{var s;let r=e.event,a=(s=r)&&s.target?r.target:r;t=eL(a,{keyAttrs:i,maxStringLength:o}),n=I(a)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),rI(l,{event:e.event,name:e.name,global:e.global})})),ec("dom",rN)),t.xhr&&t2((i=e,function(e){if((0,m.getClient)()!==i)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[t4];if(!t||!n||!r)return;let{method:a,url:o,status_code:s,body:l}=r,c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},u={category:"xhr",data:{method:a,url:o,status_code:s},type:"http",level:rA(s)};i.emit("beforeOutgoingRequestBreadcrumb",u,c),rI(u,c)})),t.fetch&&tx((o=e,function(e){if((0,m.getClient)()!==o)return;let{startTimestamp:t,endTimestamp:n}=e;
16if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},a={category:"fetch",data:e.fetchData,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",a,r),rI(a,r)}else{let r=e.response,a={...e.fetchData,status_code:r?.status},i={input:e.args,response:r,startTimestamp:t,endTimestamp:n},s={category:"fetch",data:a,type:"http",level:rA(a.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",s,i),rI(s,i)}})),t.history&&eA((s=e,function(e){if((0,m.getClient)()!==s)return;let t=e.from,n=e.to,r=en(A.location.href),a=t?en(t):void 0,i=en(n);a?.path||(a=r),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),r.protocol===a.protocol&&r.host===a.host&&(t=a.relative),rI({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,m.getClient)()===l&&rI({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,v.getEventDescription)(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,ed(e=>{var t,r,a,i;let o,s,l,c,u,{stackParser:p,attachStacktrace:d}=rk();if((0,m.getClient)()!==n||N>0)return;let{msg:f,url:g,line:h,column:_,error:E}=e,v=(t=rE(p,E||f,void 0,d,!1),r=g,a=h,i=_,0===(u=(c=(l=(s=(o=t.exception=t.exception||{}).values=o.values||[])[0]=s[0]||{}).stacktrace=l.stacktrace||{}).frames=c.frames||[]).length&&u.push({colno:i,lineno:a,filename:function(e){if((0,y.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${ea(e,!1)}>`:e}(r)??b(),function:ei.UNKNOWN_FUNCTION,in_app:!0}),t);v.level="error",(0,T.captureEvent)(v,{originalException:E,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),rU("onerror")),t.onunhandledrejection&&(r=e,em(e=>{var t;let{stackParser:n,attachStacktrace:a}=rk();if((0,m.getClient)()!==r||N>0)return;let i=function(e){if((0,y.isPrimitive)(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}(e),o=(0,y.isPrimitive)(i)?(t=i,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):rE(n,i,void 0,a,!0);o.level="error",(0,T.captureEvent)(o,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),rU("onunhandledrejection"))}}})(),((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,a){!function(e,t,n,r,a,i){if(!a.exception?.values||!i||!(0,y.isError)(i.originalException))return;let o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=function e(t,n,r,a,i,o,s,l){if(o.length>=r+1)return o;let c=[...o];if((0,y.isError)(a[i])){rD(s,l,a);let o=t(n,a[i]),u=c.length;rM(o,i,u,l),c=e(t,n,r,a[i],i,[o,...c],o,u)}return rP(a)&&a.errors.forEach((o,u)=>{if((0,y.isError)(o)){rD(s,l,a);let p=t(n,o),d=c.length;rM(p,`errors[${u}]`,d,l),c=e(t,n,r,o,i,[p,...c],p,d)}}),c}(e,t,r,i.originalException,n,a.exception.values,o,0))}(rf,a.getOptions().stackParser,n,t,e,r)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var n,r,a,i,o,s;let l,c,u,p;if(n=e,(r=t)&&(a=n,i=r,l=a.message,c=i.message,(l||c)&&(!l||c)&&(l||!c)&&l===c&&nk(a,i)&&nU(a,i)&&1||(o=n,s=r,u=nP(s),p=nP(o),u&&p&&u.type===p.type&&u.value===p.value&&nk(o,s)&&nU(o,s))))return U.DEBUG_BUILD&&k.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}},{name:"HttpContext",preprocessEvent(e){if(!A.navigator&&!A.location&&!A.document)return;let t=w(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){let t=e.attributes?.[x.SEMANTIC_ATTRIBUTE_SENTRY_OP];if(!A.navigator&&!A.location&&!A.document)return;let n=w();rx(e,{[X]:"http.client"!==t?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}},{name:"CultureContext",preprocessEvent(e){let t=rB();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=rB();t&&rx(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}},((e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===A.document){tw&&k.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,T.startSession)({ignoreDuration:!0});let e=!1;e2(()=>{e||((0,T.captureSession)(),e=!0)});let n=(0,m.getIsolationScope)(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&(0,T.captureSession)())}),"route"===t&&eA(({from:t,to:n})=>{t!==n&&((0,T.startSession)({ignoreDuration:!0}),(0,T.captureSession)(),e=!0)})}}})()]}var r1=e.i(191788);
16function r3(e){return(0,y.isPlainObject)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":rZ(e)}var r4=e.i(203828);let r2=r4.default.events?r4.default:r4.default.default,r5=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function r8(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let a=r>=0?e[r]:"/";a&&(t=`${a}/${t}`,n="/"===a.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function r6(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let r7=/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js(:\d+)*$/,r9=new class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}(100);_.GLOBAL_OBJ;let ae=!1,at=_.GLOBAL_OBJ;var an=e.i(257660),ar=["access_token","password","token","secret","cookies","cookie","apikey","api_key","authorization"],aa="[Redacted]",ai=e=>"string"==typeof e&&ar.some(t=>e.toLowerCase().includes(t)),ao=e=>{if(e&&"object"==typeof e)for(let t of Object.keys(e))ai(t)&&(e[t]=aa)},as=e=>e.split("&").map(e=>{let t=e.split("=")[0],n=t;try{n=decodeURIComponent(t)}catch{}return ai(n)?`${t}=${aa}`:e}).join("&");globalThis._sentryRouteManifest='{"isrRoutes":[],"dynamicRoutes":[],"staticRoutes":[]}',globalThis._sentryNextJsVersion="16.3.8",globalThis._sentryRewritesTunnelPath="/dashboard/monitoring";let al=function(e,t){f&&f(e,t)};!function(e){let t,n,r,a,o,c;ae&&(0,k.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),ae=!0,!nu&&e.debug&&(0,k.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){A.document&&function(e){let t=nE(e)||e,n=r9.get(t);if(void 0!==n)return n;let r=n_();if(!r?.isrRoutes||!Array.isArray(r.isrRoutes)||0===r.isrRoutes.length)return r9.set(t,!1),!1;let a=r.isrRoutes.includes(t);return r9.set(t,a),a}(A.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=A.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let u={environment:e.environment||g.default.env.SENTRY_ENVIRONMENT||(t="production",`vercel-${t}`)||"production",defaultIntegrations:(a=r0(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&a.push(function(e={}){let t=((e={})=>{let t,n;"enableElementTiming"in e&&(0,k.consoleSandbox)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let r={name:void 0,source:void 0},a=A.document,{enableInp:o,enableLongTask:c,enableLongAnimationFrame:u,_experiments:{enableInteractions:p,enableStandaloneClsSpans:d,enableStandaloneLcpSpans:f},beforeStartSpan:g,idleTimeout:h,finalTimeout:E,childSpanTimeout:v,markBackgroundSpan:T,traceFetch:S,traceXHR:N,trackFetchStreamPerformance:R,shouldCreateSpanForRequest:O,enableHTTPTimings:C,ignoreResourceSpans:L,ignorePerformanceApiSpans:D,instrumentPageLoad:M,instrumentNavigation:j,detectRedirects:Y,linkPreviousTrace:H,consistentTraceSampling:Q,enableReportPageLoaded:ei,onRequestSpanStart:eo,onRequestSpanEnd:es}={...nn,...e},eu=nt();function ep(e,t,i=!0,o){let s="pageload"===t.op,l=t.name,c=g?g(t):t,u=ee(o||b()),p={...u?.pathname&&{[K]:u.pathname},...u&&!Z(u)&&{[X]:u.href},...c.attributes};if(l!==c.name&&(p[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom"),c.attributes=p,!i){let e=(0,B.dateTimestampInSeconds)();(0,q.startInactiveSpan)({...c,startTime:e}).end(e);return}r.name=c.name,r.source=p[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let d=J(c,{idleTimeout:h,finalTimeout:E,childSpanTimeout:v,disableAutoFinish:s,beforeSpanEnd:t=>{!function(e,t){let n=t_(),r=(0,B.browserPerformanceTimeOrigin)();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:a,ignorePerformanceApiSpans:i,ignoreResourceSpans:o}=t,s=tE(r),l=n.getEntries(),{op:c,start_timestamp:u}=(0,$.spanToJSON)(e);
16l.slice(tI).forEach(t=>{let n=tE(t.startTime),r=tE(Math.max(0,t.duration));if("navigation"!==c||!u||!(s+n<u))switch(t.entryType){case"navigation":var a,l,p,d,f,g;let m,h,_;a=e,l=t,p=s,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{tR(a,l,e,p)}),tR(a,l,"secureConnection",p,"TLS/SSL"),tR(a,l,"fetch",p,"cache"),tR(a,l,"domainLookup",p,"DNS"),d=a,f=l,m=(g=p)+tE(f.requestStart),h=g+tE(f.responseEnd),_=g+tE(f.responseStart),f.responseEnd&&(tm(d,m,h,{op:"browser.request",name:f.name,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),tm(d,_,h,{op:"browser.response",name:f.name,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":!function(e,t,n,r,a,i){if(function(e){if(e?.entryType==="measure")try{return"Components â"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,ew.stringMatchesSomePattern)(t.name,i))return;let o=eU(!1),s=a+Math.max(n,tE(o?o.requestStart:0)),l=a+n,c=l+r,u={[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};s!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=s),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&(0,y.isPrimitive)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,y.isPrimitive)(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(u,t),s<=c&&tm(e,s,c,{name:t.name,op:t.entryType,attributes:u})}(e,t,n,r,s,i);break;case"resource":!function(e,t,n,r,a,i,o){var s,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(c))return;let u={[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},p=en(n);p.protocol&&(u["url.scheme"]=p.protocol.split(":").pop()),p.host&&(u["server.address"]=p.host),u["url.same_origin"]=n.includes(eI.location.origin),u[X]=n,s=t,l=u,[["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"]].forEach(([e,t])=>{let n=s[e];null!=n&&("number"==typeof n&&n<0x7fffffff||"string"==typeof n)&&(l[t]=n)});let d={...u,...tb(t)},f=i+r;tm(e,f,f+a,{name:n.replace(eI.location.origin,""),op:c,attributes:d})}(e,t,t.name,n,r,s,o)}}),tI=Math.max(l.length-1,0),function(e,t){let n=eI.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),tg(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):"pageload"===(0,$.spanToJSON)(e).op&&(0,eR.setMeasurement)("connection.rtt",r.rtt,"millisecond"))),tg(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),tg(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,a)}(t,{ignoreResourceSpans:L,ignorePerformanceApiSpans:D,spanStreamingEnabled:(0,eT.hasSpanStreamingEnabled)(e)}),nl(e,void 0);let r=(0,m.getCurrentScope)(),a=r.getPropagationContext();r.setPropagationContext({...a,traceId:d.spanContext().traceId,sampled:(0,$.spanIsSampled)(d),dsc:(0,ey.getDynamicSamplingContextFromSpan)(t)}),s&&(n=void 0)},trimIdleSpanEndTimestamp:!ei});function f(){a&&["interactive","complete"].includes(a.readyState)&&(e.emit("idleSpanEnableAutoFinish",d),a.removeEventListener("readystatechange",f))}s&&ei&&(n=d),nl(e,d),s&&!ei&&a&&(a.addEventListener("readystatechange",f),f())}return{name:"BrowserTracing",setup(e){if(eu){tw&&k.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}function r(){let e=(0,$.getActiveSpan)(),t=e&&(0,$.getRootSpan)(e);if(t){let e="internal_error";U.DEBUG_BUILD&&k.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:F.SPAN_STATUS_ERROR,message:e})}}if(e_||(e_=!0,ed(r),em(r)),u&&_.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,$.getActiveSpan)();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=tE((0,B.browserPerformanceTimeOrigin)()+n.startTime),{start_timestamp:r,op:a}=(0,$.spanToJSON)(t);if("navigation"===a&&r&&e<r)continue;let i=tE(n.duration),o={[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}
16,{invoker:s,invokerType:l,sourceURL:c,sourceFunctionName:u,sourceCharPosition:p}=n.scripts[0];o["browser.script.invoker"]=s,o["browser.script.invoker_type"]=l,c&&(o["code.filepath"]=c),u&&(o["code.function"]=u),-1!==p&&(o["browser.script.source_char_position"]=p),tm(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}}).observe({type:"long-animation-frame",buffered:!0}):c&&ti("longtask",({entries:e})=>{let t=(0,$.getActiveSpan)();if(!t)return;let{op:n,start_timestamp:r}=(0,$.spanToJSON)(t);for(let a of e){let e=tE((0,B.browserPerformanceTimeOrigin)()+a.startTime),i=tE(a.duration);"navigation"===n&&r&&e<r||tm(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}}),p&&ti("event",({entries:e})=>{let t=(0,$.getActiveSpan)();if(t){for(let n of e)if("click"===n.name){let e=tE((0,B.browserPerformanceTimeOrigin)()+n.startTime),r=tE(n.duration),a={name:eL(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},i=I(n.target);i&&(a.attributes["ui.component_name"]=i),tm(t,e,e+r,a)}}}),Y&&a){let e=()=>{t=(0,B.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function i(){let t=e[ns];t&&!(0,$.spanToJSON)(t).timestamp&&(tw&&k.debug.log(`[Tracing] Finishing current active span with op: ${(0,$.spanToJSON)(t).op}`),t.setAttribute(x.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(n,r)=>{if((0,m.getClient)()!==e)return;if(r?.isRedirect){tw&&k.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),ep(e,{op:"navigation.redirect",...n},!1,r.url);return}t=void 0,i(),(0,m.getIsolationScope)().setPropagationContext({traceId:(0,eE.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,P.hasSpansEnabled)()?void 0:(0,eE.generateSpanId)()});let a=(0,m.getCurrentScope)();a.setPropagationContext({traceId:(0,eE.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,P.hasSpansEnabled)()?void 0:(0,eE.generateSpanId)()}),a.setSDKProcessingMetadata({normalizedRequest:void 0}),ep(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0},!0,r?.url)}),e.on("startPageLoadSpan",(t,n={})=>{if((0,m.getClient)()!==e)return;i();let r=n.sentryTrace||ni("sentry-trace")||no("sentry-trace"),a=n.baggage||ni("baggage")||no("baggage"),o=(0,ev.propagationContextFromHeaders)(r,a),s=(0,m.getCurrentScope)();s.setPropagationContext(o),(0,P.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,eE.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:w()}),ep(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{ei&&n&&(n.setAttribute(x.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),n.end())})},afterAllSetup(e){var n,a,c,u,g;let _;if(eu)return;e.addIntegration&&!e.getIntegrationByName?.(tz)&&e.addIntegration(((e={})=>{let t=new Set(e.ignore??[]);return{name:tz,setup(n){let r=(0,eT.hasSpanStreamingEnabled)(n),{enableStandaloneClsSpans:a,enableStandaloneLcpSpans:o}=e._experiments??{},c=r||t.has("cls")?void 0:a||!1,u=r||t.has("lcp")?void 0:o||!1,p=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=t_();if(r&&(0,B.browserPerformanceTimeOrigin)()){r.mark&&eI.performance.mark("sentry-tracing-init");let a=t?function(e){let t,n=0;if(!tv("largest-contentful-paint"))return;let r=tr(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&ty(e.value)&&(n=e.value,t=r)},!0);tT(e,(e,a)=>{(function(e,t,n,r){if(!ty(e))return;ex&&k.debug.log(`Sending LCP span (${e})`);let a=tE(((0,B.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),i=(0,m.getCurrentScope)().getScopeData().transactionName,o=t?eL(t.element):"Largest contentful paint",s={[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[x.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s["lcp.element"]=eL(t.element)),t.id&&(s["lcp.id"]=t.id),t.url&&(s["lcp.url"]=t.url),null!=t.loadTime&&(s["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(s["lcp.renderTime"]=t.renderTime),null!=t.size&&(s["lcp.size"]=t.size));let l=th({name:o,transaction:i,attributes:s,startTime:a});l&&(l.addEvent("lcp",{[x.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[x.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),l.end(a))})(n,t,a,e),r()})}(n):!1===t?tr(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&ty(e.value)&&(tA.lcp={value:e.value,unit:"millisecond"},s=t)},!0):void 0,o=e?function(e){let t,n=0;if(!tv("layout-shift"))return;let r=tn(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);tT(e,(e,a)=>{var i,o,s,l;let c,u,p,d,f;i=n,o=t,s=a,l=e,ex&&k.debug.log(`Sending CLS span (${i})`),c=o?tE(((0,B.browserPerformanceTimeOrigin)()||0)+o.startTime):(0,B.timestampInSeconds)(),u=(0,m.getCurrentScope)().getScopeData().transactionName,p=o?eL(o.sources[0]?.node):"Layout shift",d={[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[x.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":s,"sentry.report_event":l}
16,o?.sources&&o.sources.forEach((e,t)=>{d[`cls.source.${t+1}`]=eL(e.node)}),(f=th({name:p,transaction:u,attributes:d,startTime:c}))&&(f.addEvent("cls",{[x.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[x.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:i}),f.end(c)),r()})}(n):!1===e?tn(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(tA.cls={value:e.value,unit:""},l=t)},!0):void 0,c=tp("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(tA.ttfb={value:e.value,unit:"millisecond"})},tc,i),u=ti("paint",({entries:e})=>{let t=ej();for(let n of e){let e=n.startTime<t.firstHiddenTime;"first-paint"===n.name&&e&&(tA.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&e&&(tA.fcp={value:n.startTime,unit:"millisecond"})}});return()=>{c(),u(),a?.(),o?.()}}return()=>void 0}({recordClsStandaloneSpans:c,recordLcpStandaloneSpans:u,client:n}),d=new WeakSet;n.on("afterStartPageLoadSpan",e=>{d.add(e)}),n.on("spanEnd",e=>{d.delete(e)&&(p(),function(e,t){let n=(0,B.browserPerformanceTimeOrigin)();if(!t_()?.getEntries||!n)return tN();let{spanStreamingEnabled:r,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:i}=t,o=tE(n);if("pageload"===(0,$.spanToJSON)(e).op){if(function(e){let t=eU(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(tA),r){let t=(t,n,r)=>{let a=r??`browser.web_vital.${t}.value`;e.setAttribute(a,n),ex&&k.debug.log("Setting web vital attribute",{[a]:n},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{tA[e]&&t(e,tA[e].value)}),tA["ttfb.requestTime"]&&t("ttfb.requestTime",tA["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var c,u;a||delete tA.cls,i||delete tA.lcp,Object.entries(tA).forEach(([t,n])=>{(0,eR.setMeasurement)(t,n.value,n.unit,e)}),c=e,u=t,s&&u.recordLcpOnPageloadSpan&&(s.element&&c.setAttribute("lcp.element",eL(s.element)),s.id&&c.setAttribute("lcp.id",s.id),s.url&&c.setAttribute("lcp.url",s.url.trim().slice(0,200)),null!=s.loadTime&&c.setAttribute("lcp.loadTime",s.loadTime),null!=s.renderTime&&c.setAttribute("lcp.renderTime",s.renderTime),c.setAttribute("lcp.size",s.size)),l?.sources&&u.recordClsOnPageloadSpan&&l.sources.forEach((e,t)=>c.setAttribute(`cls.source.${t+1}`,eL(e.node)))}e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",o),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",ek())}tN()}(e,{recordClsOnPageloadSpan:!1===c,recordLcpOnPageloadSpan:!1===u,spanStreamingEnabled:r}))}),r?(t.has("lcp")||function(e){let t,n=0;if(!tv("largest-contentful-paint"))return;let r=tr(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&ty(e.value)&&(n=e.value,t=r)},!0);tT(e,(e,a,i)=>{(function(e,t,n,r){if(!ty(e))return;ex&&k.debug.log(`Sending LCP span (${e})`);let a=(0,B.browserPerformanceTimeOrigin)()||0,i=tE(a),o=tE(a+(t?.startTime||0)),s=t?eL(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=eL(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),tW({name:s,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:n,reportEvent:r,startTime:i,endTime:o})})(n,t,i,e),r()})}(n),t.has("cls")||function(e){let t,n=0;if(!tv("layout-shift"))return;let r=tn(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);tT(e,(e,a,i)=>{var o,s,l,c;let u,p,d;o=n,s=t,l=i,c=e,ex&&k.debug.log(`Sending CLS span (${o})`),u=s?tE(((0,B.browserPerformanceTimeOrigin)()||0)+s.startTime):(0,B.timestampInSeconds)(),p=s?eL(s.sources[0]?.node):"Layout shift",d={},s?.sources&&s.sources.forEach((e,t)=>{d[`browser.web_vital.cls.source.${t+1}`]=eL(e.node)}),tW({name:p,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:o,attributes:d,parentSpan:l,reportEvent:c,startTime:u}),r()})}(n),!t.has("inp")&&t_()&&(0,B.browserPerformanceTimeOrigin)()&&ta(({metric:e})=>{var t,n,r;let a,i,o,s,l,c,u,p;if(null==e.value||tE(e.value)>60)return;let d=e.entries.find(t=>t.duration===e.value&&tH[t.name]);d&&(t=e.value,n=d,ex&&k.debug.log(`Sending INP span (${t})`),a=tE((0,B.browserPerformanceTimeOrigin)()+n.startTime),i=tE(t),o=tH[n.name],s=null!=(r=n.interactionId)?tq.get(r):void 0,c=(l=(0,$.getActiveSpan)())?(0,$.getRootSpan)(l):void 0,p=(u=s?.span||
16c)?(0,$.spanToStreamedSpanJSON)(u).name:(0,m.getCurrentScope)().getScopeData().transactionName,tW({name:s?.elementName||eL(n.target),op:`ui.interaction.${o}`,origin:"auto.http.browser.inp",metricName:"inp",value:t,attributes:{[x.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.duration,[V]:p,[z]:p},startTime:a,endTime:a+i,parentSpan:u}))})):t.has("inp")||function(){if(t_()&&(0,B.browserPerformanceTimeOrigin)()){let e=ta(tJ);()=>{e()}}}()},afterAllSetup(){t.has("inp")||function(){let e=Object.keys(tH);function t(e){let t=e.target;if(!t)return;let n=eL(t),r=Math.round(e.timeStamp);if(tY.set(r,n),tY.size>50){let e=tY.keys().next().value;void 0!==e&&tY.delete(e)}}tj()&&e.forEach(e=>{eI.addEventListener(e,t,{capture:!0,passive:!0})});let n=({entries:e})=>{let t=(0,$.getActiveSpan)(),n=t&&(0,$.getRootSpan)(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||tq.has(t))return;let r=e.target?eL(e.target):function(e){let t=Math.round(e.startTime),n=tY.get(t);if(!n)for(let e=-5;e<=5;e++){let r=tY.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(tF.length>10){let e=tF.shift();tq.delete(e)}tF.push(t),tq.set(t,{span:n,elementName:r})})};ti("event",n),ti("first-input",n)}()}}})({ignore:o?[]:["inp"],_experiments:{enableStandaloneClsSpans:d,enableStandaloneLcpSpans:f}}));let I=b();if("off"!==H&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r="session-storage"===t,a=r?function(){try{let e=A.sessionStorage?.getItem(tV);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,$.getRootSpan)(e)!==e)return;let t=(0,m.getCurrentScope)().getPropagationContext();a=function(e,t,n){let r=(0,$.spanToJSON)(t),a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{let e=Number(r.data?.[x.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return a;let i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(tw&&k.debug.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[x.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${i.traceId}-${i.spanId}-${+!!tX(i)}`)),a)}(a,e,t),r&&function(e){try{A.sessionStorage.setItem(tV,JSON.stringify(e))}catch(e){tw&&k.debug.warn("Could not store previous trace in sessionStorage",e)}}(a)});let i=!0;n&&e.on("beforeSampling",e=>{if(!a)return;let t=(0,m.getCurrentScope)(),n=t.getPropagationContext();if(i&&n.parentSpanId){i=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(a.sampleRate),sampled:String(tX(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=tX(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[x.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:a.sampleRate}})}(e,{linkPreviousTrace:H,consistentTraceSampling:Q}),A.location){if(M){let t=(0,B.browserPerformanceTimeOrigin)();nr(e,{name:A.location.pathname,startTime:t?t/1e3:void 0,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}j&&eA(({to:n,from:r})=>{var a,i;let o,s;if(void 0===r&&I?.indexOf(n)!==-1){I=void 0;return}I=void 0;let l=ee(n),c=e[ns],u=c&&Y&&(a=c,i=t,o=(0,$.spanToJSON)(a),!((s=(0,B.dateTimestampInSeconds)())-o.start_timestamp>1.5)&&(!i||!(s-i<=1.5)));na(e,{name:l?.pathname||A.location.pathname,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:n,isRedirect:u})})}T&&(A.document?A.document.addEventListener("visibilitychange",()=>{let e=(0,$.getActiveSpan)();if(!e)return;let t=(0,$.getRootSpan)(e);if(A.document.hidden&&t){let e="cancelled",{op:n,status:r}=(0,$.spanToJSON)(t);tw&&k.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:F.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):tw&&k.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p&&(n=e,a=h,c=E,u=v,g=r,A.document&&addEventListener("click",()=>{let e="ui.action.click",t=n[ns];
16if(t&&["navigation","pageload"].includes((0,$.spanToJSON)(t).op)){tw&&k.debug.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(_&&(_.setAttribute(x.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),_.end(),_=void 0),!g.name){tw&&k.debug.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}_=J({name:g.name,op:e,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:g.source||"url"}},{idleTimeout:a,finalTimeout:c,childSpanTimeout:u})},{capture:!0})),function(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:a,enableHTTPTimings:i,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:l}={...t7,...t},c="function"==typeof a?a:e=>!0,u=e=>(function(e,t){let n=b();if(n){let r,a;try{r=new URL(e,n),a=new URL(n).origin}catch{return!1}let i=r.origin===a;return t?(0,ew.stringMatchesSomePattern)(r.toString(),t)||i&&(0,ew.stringMatchesSomePattern)(r.pathname,t):i}{let n=!!e.match(/^\/(?!\/)/);return t?(0,ew.stringMatchesSomePattern)(e,t):n}})(e,o),p={},d=e.getOptions().propagateTraceparent;n&&tx(t=>{let n=function(e,t,n,r,a){if(!e.fetchData)return;let{method:i,url:o}=e.fetchData,s=(0,P.hasSpansEnabled)()&&t(o);if(e.endTimestamp){var l,c,u;let t,n=e.fetchData.__span;if(!n)return;let i=r[n];i&&(s&&(function(e,t){if(t.response){(0,F.setHttpStatus)(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:F.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(i,e),l=i,c=e,t="object"==typeof(u=a)&&null!==u?u.onRequestSpanEnd:void 0,t?.(l,{headers:c.response?.headers,error:c.error})),delete r[n]);return}let{spanOrigin:p="auto.http.browser",propagateTraceparent:d=!1}="object"==typeof a?a:{spanOrigin:a},f=(0,m.getClient)(),g=!!(0,$.getActiveSpan)(),h=g||!!f&&(0,eT.hasSpanStreamingEnabled)(f),_=s&&h?(0,q.startInactiveSpan)(function(e,t,n){if(e.startsWith("data:")){let r=ea(e);return{name:`${t} ${r}`,attributes:t3(e,void 0,t,n)}}let r=ee(e),a=r?et(r):e;return{name:`${t} ${a}`,attributes:t3(e,r,t,n)}}(o,i,p)):new G.SentryNonRecordingSpan,E=(0,q.spanIsIgnored)(_)&&g?void 0:_;if(s&&!h&&f?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=_.spanContext().spanId,r[_.spanContext().spanId]=_,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){var a,i;let o=t0({span:n,propagateTraceparent:r}),s=o["sentry-trace"],l=o.baggage,c=o.traceparent;if(!s)return;let u=t.headers||((0,y.isRequest)(e)?e.headers:void 0);if(!u)return{"sentry-trace":s,...l&&{baggage:l},...c&&{traceparent:c}};if(a=u,"u">typeof Headers&&(0,y.isInstanceOf)(a,Headers)){let e=new Headers(u);if(e.get("sentry-trace")||e.set("sentry-trace",s),r&&c&&!e.get("traceparent")&&e.set("traceparent",c),l){let t=e.get("baggage");t?t1(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(i=u)&&i.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...u];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",s]),r&&c&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",c]);let t=u.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&t1(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in u?u["sentry-trace"]:void 0,t="traceparent"in u?u.traceparent:void 0,n="baggage"in u?u.baggage:void 0,a=n?Array.isArray(n)?[...n]:[n]:[],i=n&&(Array.isArray(n)?n.find(e=>t1(e)):t1(n));l&&!i&&a.push(l);let o=Object.assign({},u,{"sentry-trace":e??s,...a.length>0&&{baggage:a.join(",")}});return r&&c&&!t&&(o.traceparent=c),o}}(t,n,(0,P.hasSpansEnabled)()&&h?E:void 0,d);r&&(e.args[1]=n,n.headers=r)}if(f){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",_,t)}return _}(t,c,u,p,{propagateTraceparent:d,onRequestSpanEnd:l});if(n){let r=t8(t.fetchData.url),a=r?en(r).host:void 0,o=r?ea(r):void 0;n.setAttributes({[W]:o,[X]:o,"server.address":a}),i&&t9(n,e),s?.(n,{headers:t.headers})}}),r&&t2(t=>{let n=function(e,t,n,r,a,i){let o=e.xhr,s=o?.[t4];if(!o||o.__sentry_own_request__||!s)return;let{url:l,method:c}=s,u=(0,P.hasSpansEnabled)()&&t(l);
16if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&void 0!==s.status_code&&((0,F.setHttpStatus)(n,s.status_code),n.end(),i?.(n,{headers:t6(function(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return ex&&k.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}(o)),error:e.error})),delete r[t]);return}let p=t8(l),d=p?en(p):en(l),f=p?ea(p):void 0,g=ea(er(l)),h=(0,m.getClient)(),_=!!(0,$.getActiveSpan)(),E=_||!!h&&(0,eT.hasSpanStreamingEnabled)(h),v=u&&E?(0,q.startInactiveSpan)({name:`${c} ${g}`,attributes:{url:ea(l),type:"xhr","http.method":c,"http.url":f,[X]:f,"server.address":d?.host,[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new G.SentryNonRecordingSpan,T=(0,q.spanIsIgnored)(v)&&_?void 0:v;return u&&!E&&h?.recordDroppedEvent("no_parent_span","span"),o.__sentry_xhr_span_id__=v.spanContext().spanId,r[o.__sentry_xhr_span_id__]=v,n(l)&&function(e,t,n){let{"sentry-trace":r,baggage:a,traceparent:i}=t0({span:t,propagateTraceparent:n});r&&function(e,t,n,r){let a=e.__sentry_xhr_v3__?.request_headers;if(!a?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!a?.traceparent&&e.setRequestHeader("traceparent",r),n){let t=a?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,a,i)}(o,(0,P.hasSpansEnabled)()&&E?T:void 0,a),h&&h.emit("beforeOutgoingRequestSpan",v,e),v}(t,c,u,p,d,l);n&&(i&&t9(n,e),s?.(n,{headers:t6(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:S,traceXHR:N,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:O,enableHTTPTimings:C,onRequestSpanStart:eo,onRequestSpanEnd:es}),R&&e.addIntegration({name:"FetchStreamPerformance",setup(){let e;el(e="fetch-body-resolved",e=>{if(e.response){let t=tM.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=t$.get(e.response);n&&clearTimeout(n)}}}),ec(e,()=>tB(tk)),tx(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!tG.some(e=>t.startsWith(e)))return;let n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",a=ee(n),i=n.startsWith("data:")?ea(n):a?et(a):n,o=(0,q.startInactiveSpan)({name:`${r} ${i}`,startTime:e.endTimestamp,attributes:{url:ea(n),"http.method":r,type:"fetch",[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client.stream",[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.stream"}});tM.set(e.response,o);let s=setTimeout(()=>{o.isRecording()&&o.end()},9e4);t$.set(e.response,s)}})}})}}})({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[n,{headers:r}]=t;return r?.get("next-router-prefetch")&&n?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){!nt()&&(r&&function(e){if(A.document.getElementById("__NEXT_DATA__"))r2.events.on("routeChangeStart",t=>{let n,r,a=er(t),i=function(e){let t=A.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let n,r,a,i=(n=t.split("/"),r="",n[n.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(n.pop(),r="(?:/(.+?))?"),a=n.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${a}${r}(?:/)?$`));return e.match(i)})}(a);i?(n=i,r="route"):(n=a,r="url"),na(e,{name:n,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r,..."route"===r&&{[Q]:n}}},{url:nc(t)})});else{let t,n,r;f=(t,n)=>{let r="/dashboard",a=r&&!t.startsWith(r)?`${r}${t}`:t,i=nv(new URL(a,A.location.href).pathname),o=nE(i),s=o??i;"router-patch"===nS&&(nS="transition-start-hook");let l=nb.current;l?(l.updateName(s),l.setAttributes({"navigation.type":`router.${n}`,[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o?"route":"url",...o&&{[Q]:o}}),nT(l,i,a),nb.current=void 0):na(e,{name:s,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o?"route":"url","navigation.type":`router.${n}`,...o&&{[Q]:o}}},{url:nc(a)})},A.addEventListener("popstate",()=>{let t=nv(A.location.pathname),n=nE(t);nb.current?.isRecording()?(nb.current.updateName(n??t),nb.current.setAttribute(x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n?"route":"url"),n&&nb.current.setAttribute(Q,n),nT(nb.current,t,A.location.href)):nb.current=na(e,{name:n??t,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n?"route":"url","navigation.type":"browser.popstate",...n&&{[Q]:n}}},{url:nc(t)})}),t=!1,n=0,r=setInterval(()=>{n++;let a=nI?.next?.router??nI?.nd?.router;t||n>500?clearInterval(r):a&&(clearInterval(r),t=!0,nR(e,a,nb),["nd","next"].forEach(t=>{let n=nI[t];
16n&&(nI[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&nR(e,r,nb),t[n]=r,!0)}))}))},20)}}(e),t.afterAllSetup(e),n&&function(e){if(A.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:n,sentryTrace:r,baggage:a}=function(){let e,t=A.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{nu&&k.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:a,props:i}=e;return n.route=r,n.params=a,i?.pageProps&&(n.sentryTrace=i.pageProps._sentryTraceData,n.baggage=i.pageProps._sentryBaggage),n}(),i=(0,tK.parseBaggageHeader)(a),o=t||A.location.pathname;i?.["sentry-transaction"]&&"/_error"===o&&(o=(o=i["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=(0,B.browserPerformanceTimeOrigin)();nr(e,{name:o,startTime:s?s/1e3:void 0,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...t&&{[Q]:t},...n&&{...n}}},{sentryTrace:r,baggage:a})}(e);else{let t,n,r;n=nE(t=nv(A.location.pathname)),nr(e,{name:n??t,startTime:(r=(0,B.browserPerformanceTimeOrigin)())?r/1e3:void 0,attributes:{[x.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[x.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[x.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n?"route":"url",...n&&{[Q]:n}}})}}(e))}}}()),o=g.default.env._sentryAssetPrefix||at._sentryAssetPrefix,c="true"===g.default.env._experimentalThirdPartyOriginStackFrames||"true"===at._experimentalThirdPartyOriginStackFrames,a.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...((e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in _.GLOBAL_OBJ&&!!_.GLOBAL_OBJ.window,a=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let a=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(a||i){let e,i,o=a?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?function(e,t){e=r8(e).slice(1),t=r8(t).slice(1);let n=r6(e.split("/")),r=r6(t.split("/")),a=Math.min(n.length,r.length),i=a;for(let e=0;e<a;e++)if(n[e]!==r[e]){i=e;break}let o=[];for(let e=i;e<n.length;e++)o.push("..");return(o=o.concat(r.slice(i))).join("/")}(t,o):(e=o.length>1024?`<truncated>${o.slice(-1024)}`:o,(i=r5.exec(e))?i.slice(1):[])[2]||"";r.filename=`${n}${s}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>a(e))}}}})}}}catch{return e}}(t)),t}}})({iteratee:a=>{if(r){let n="u">typeof window&&window.location?window.location.origin:"";if(a.filename?.startsWith(n)&&!a.filename.endsWith(".js"))return a;if(e)a.filename?.startsWith(e)&&(a.filename=a.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(a.filename);e===n&&(a.filename=a.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(a.filename);a.filename=a.filename?.replace(e,"app://").replace(n,"")}catch{}return r?a.filename?.includes("/_next")&&(a.filename=decodeURI(a.filename)):a.filename?.startsWith("app:///_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(r7)&&(a.in_app=!1),a}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:o,basePath:"/dashboard",rewriteFramesAssetPrefixPath:"/dashboard",experimentalThirdPartyOriginStackFrames:c})),a),release:"2008741821f2d0e8caca3305a1af5341809b0aed",...e};!function(e){let t="/dashboard/monitoring";if(t&&e.dsn){let n=(0,nM.dsnFromString)(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let a=r[1],i=r[2],o=`${t}?o=${a}&p=${n.projectId}`;i&&(o+=`&r=${i}`),e.tunnel=o,nu&&k.debug.log(`Tunneling events to "${o}"`)}
16else nu&&k.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(u),nw(u,"nextjs",["nextjs","react"]),u.ignoreSpans=[...u.ignoreSpans||[],/^\/404$/,RegExp(`^${ny}$`)],nw(n={...u},"react"),(0,T.setContext)("react",{version:r1.version}),r=function(e={}){var t;let n,r=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===A.window||A.nw)return!1;let e=A.chrome||A.browser;if(!e?.runtime?.id)return!1;let t=b();return!(A===A.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(tw&&(0,k.consoleSandbox)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),a=null==e.defaultIntegrations?r0():e.defaultIntegrations,i={...e,enabled:!r&&e.enabled,stackParser:(0,ei.stackParserFromStackParserOptions)(e.stackParser||rz),integrations:function(e){let t,n,r=e.defaultIntegrations||[],a=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(a))t=[...r,...a];else if("function"==typeof a){let e=a(r);t=Array.isArray(e)?e:[e]}else t=r;return n={},t.forEach(e=>{let{name:t}=e,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.values(n)}({integrations:e.integrations,defaultIntegrations:a}),transport:e.transport||rK};return(0,nD.setNormalizeStringifier)(rZ),!0===i.debug&&(U.DEBUG_BUILD?k.debug.enable():(0,k.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,m.getCurrentScope)().update(i.initialScope),t=n=new rT(i),(0,m.getCurrentScope)().setClient(t),n.init(),n}(n),(0,nD.setNormalizeStringifier)(r3);let p=(e,t)=>{var n;return(n=t?.originalException,(0,y.isError)(n)&&"string"==typeof n.digest&&n.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};p.id="NextRedirectErrorFilter",(0,T.addEventProcessor)(p);try{(0,m.getGlobalScope)().setTag("turbopack",!0)}catch{}}({dsn:"https://8e6e2a9cfe58434d06355509e0ce4e44@o4508603473920000.ingest.us.sentry.io/4510976906428416",environment:"production",release:g.default.env.NEXT_BUILD_ID,tracesSampleRate:.1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend(e){var t;let n;if(e.exception?.values?.some(e=>"ChunkLoadError"===e.type||/Loading chunk \d+ failed/i.test(e.value||""))){let e="u">typeof navigator&&!1===navigator.onLine,t="u">typeof navigator&&navigator.userActivation?.isActive===!1;if(e||t)return null}return(e.exception?.values?.flatMap(e=>e.stacktrace?.frames||[])||[]).some(e=>{let t=e.filename||"";return/^(chrome|moz|safari(-web)?)-extension:\/\//.test(t)||/^app:\/\/\/(?:scripts\/)?(?:inpage\.js|injectedScript\.bundle\.js)$/i.test(t)})||e.exception?.values?.some(e=>/sseError not found/.test(e.value||""))?null:((n=e?.request)&&(ao(n.data),ao(n.headers),ao(n.cookies),n.url=(e=>{if("string"!=typeof e)return e;let t=e.indexOf("?");return -1===t?e:`${e.slice(0,t)}?${as(e.slice(t+1))}`})(n.url),n.query_string="string"==typeof(t=n.query_string)?as(t):Array.isArray(t)?t.map(e=>Array.isArray(e)&&ai(String(e[0]))?[e[0],aa]:e):(t&&"object"==typeof t&&ao(t),t)),e)}});let ac=()=>{L("replayIntegration").then(e=>{!function(e){let t=(0,m.getClient)();if(!t){U.DEBUG_BUILD&&k.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}(e({maskAllText:!1,maskAllInputs:!0,blockAllMedia:!1,mask:[".sentry-mask","[data-sentry-mask]"]}))}).catch(()=>{})};"requestIdleCallback"in window?window.requestIdleCallback(ac,{timeout:5e3}):setTimeout(ac,2e3),(0,an.setErrorReporter)((e,t,{componentName:n})=>{m.withScope(r=>{r.setTag("metal-ui.component",n??"unknown"),r.setContext("metal-ui",{componentStack:t?.componentStack}),T.captureException(e)})}),e.s(["onRouterTransitionStart",0,(...e)=>{if("function"==typeof al)return al(...e)}],960153)},14760,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={BailoutToCSRError:function(){return o},isBailoutToCSRError:function(){return s}};
16for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i="BAILOUT_TO_CLIENT_SIDE_RENDERING";class o extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=i}}function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===i}}]); 17 18//# debugId=7510d4ba-67c9-8d08-d517-9ac602c844ca
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.