PageSourceSearch

https://simplynoise.com/_expo/static/js/web/index-78095b179c3263a931b4ee41e9c50883.js

js simplynoise.com collected 2026-09-24 17:12:51 UTC 2,615,712 bytes, 1,251 lines download raw bytes

1__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"init",{enumerable:!0,get:function(){return n.init}}),Object.defineProperty(e,"captureReactException",{enumerable:!0,get:function(){return o.captureReactException}}),Object.defineProperty(e,"reactErrorHandler",{enumerable:!0,get:function(){return o.reactErrorHandler}}),Object.defineProperty(e,"Profiler",{enumerable:!0,get:function(){return u.Profiler}}),Object.defineProperty(e,"useProfiler",{enumerable:!0,get:function(){return u.useProfiler}}),Object.defineProperty(e,"withProfiler",{enumerable:!0,get:function(){return u.withProfiler}}),Object.defineProperty(e,"ErrorBoundary",{enumerable:!0,get:function(){return c.ErrorBoundary}}),Object.defineProperty(e,"withErrorBoundary",{enumerable:!0,get:function(){return c.withErrorBoundary}}),Object.defineProperty(e,"createReduxEnhancer",{enumerable:!0,get:function(){return f.createReduxEnhancer}}),Object.defineProperty(e,"reactRouterV3BrowserTracingIntegration",{enumerable:!0,get:function(){return b.reactRouterV3BrowserTracingIntegration}}),Object.defineProperty(e,"tanstackRouterBrowserTracingIntegration",{enumerable:!0,get:function(){return p.tanstackRouterBrowserTracingIntegration}}),Object.defineProperty(e,"reactRouterV4BrowserTracingIntegration",{enumerable:!0,get:function(){return R.reactRouterV4BrowserTracingIntegration}}),Object.defineProperty(e,"reactRouterV5BrowserTracingIntegration",{enumerable:!0,get:function(){return R.reactRouterV5BrowserTracingIntegration}}),Object.defineProperty(e,"withSentryRouting",{enumerable:!0,get:function(){return R.withSentryRouting}}),Object.defineProperty(e,"reactRouterV6BrowserTracingIntegration",{enumerable:!0,get:function(){return w.reactRouterV6BrowserTracingIntegration}}),Object.defineProperty(e,"withSentryReactRouterV6Routing",{enumerable:!0,get:function(){return w.withSentryReactRouterV6Routing}}),Object.defineProperty(e,"wrapCreateBrowserRouterV6",{enumerable:!0,get:function(){return w.wrapCreateBrowserRouterV6}}),Object.defineProperty(e,"wrapCreateMemoryRouterV6",{enumerable:!0,get:function(){return w.wrapCreateMemoryRouterV6}}),Object.defineProperty(e,"wrapUseRoutesV6",{enumerable:!0,get:function(){return w.wrapUseRoutesV6}}),Object.defineProperty(e,"reactRouterV7BrowserTracingIntegration",{enumerable:!0,get:function(){return y.reactRouterV7BrowserTracingIntegration}}),Object.defineProperty(e,"withSentryReactRouterV7Routing",{enumerable:!0,get:function(){return y.withSentryReactRouterV7Routing}}),Object.defineProperty(e,"wrapCreateBrowserRouterV7",{enumerable:!0,get:function(){return y.wrapCreateBrowserRouterV7}}),Object.defineProperty(e,"wrapCreateMemoryRouterV7",{enumerable:!0,get:function(){return y.wrapCreateMemoryRouterV7}}),Object.defineProperty(e,"wrapUseRoutesV7",{enumerable:!0,get:function(){return y.wrapUseRoutesV7}}),Object.defineProperty(e,"reactRouterBrowserTracingIntegration",{enumerable:!0,get:function(){return l.reactRouterBrowserTracingIntegration}}),Object.defineProperty(e,"wrapCreateBrowserRouter",{enumerable:!0,get:function(){return l.wrapCreateBrowserRouter}}),Object.defineProperty(e,"wrapCreateMemoryRouter",{enumerable:!0,get:function(){return l.wrapCreateMemoryRouter}}),Object.defineProperty(e,"wrapReactRouterRouting",{enumerable:!0,get:function(){return l.wrapReactRouterRouting}}),Object.defineProperty(e,"wrapUseRoutes",{enumerable:!0,get:function(){return l.wrapUseRoutes}});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),f=r(d[5]),b=r(d[6]),p=r(d[7]),R=r(d[8]),w=r(d[9]),y=r(d[10]),l=r(d[11])},1534,[1537,2758,2760,2761,2764,2766,2767,2768,2769,2770,2775,2776]);
2__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"feedbackAsyncIntegration",{enumerable:!0,get:function(){return t.feedbackAsyncIntegration}}),Object.defineProperty(e,"feedbackIntegration",{enumerable:!0,get:function(){return n.feedbackSyncIntegration}}),Object.defineProperty(e,"feedbackSyncIntegration",{enumerable:!0,get:function(){return n.feedbackSyncIntegration}}),Object.defineProperty(e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return o.MULTIPLEXED_TRANSPORT_EXTRA_KEY}}),Object.defineProperty(e,"SDK_VERSION",{enumerable:!0,get:function(){return o.SDK_VERSION}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return o.SEMANTIC_ATTRIBUTE_SENTRY_OP}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE}}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"addBreadcrumb",{enumerable:!0,get:function(){return o.addBreadcrumb}}),Object.defineProperty(e,"addEventProcessor",{enumerable:!0,get:function(){return o.addEventProcessor}}),Object.defineProperty(e,"addIntegration",{enumerable:!0,get:function(){return o.addIntegration}}),Object.defineProperty(e,"bindScopeToEmitter",{enumerable:!0,get:function(){return o.bindScopeToEmitter}}),Object.defineProperty(e,"captureConsoleIntegration",{enumerable:!0,get:function(){return o.captureConsoleIntegration}}),Object.defineProperty(e,"captureEvent",{enumerable:!0,get:function(){return o.captureEvent}}),Object.defineProperty(e,"captureException",{enumerable:!0,get:function(){return o.captureException}}),Object.defineProperty(e,"captureFeedback",{enumerable:!0,get:function(){return o.captureFeedback}}),Object.defineProperty(e,"captureMessage",{enumerable:!0,get:function(){return o.captureMessage}}),Object.defineProperty(e,"captureSession",{enumerable:!0,get:function(){return o.captureSession}}),Object.defineProperty(e,"close",{enumerable:!0,get:function(){return o.close}}),Object.defineProperty(e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return o.consoleLoggingIntegration}}),Object.defineProperty(e,"continueTrace",{enumerable:!0,get:function(){return o.continueTrace}}),Object.defineProperty(e,"createConsolaReporter",{enumerable:!0,get:function(){return o.createConsolaReporter}}),Object.defineProperty(e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return o.createLangChainCallbackHandler}}),Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return o.createTransport}}),Object.defineProperty(e,"dedupeIntegration",{enumerable:!0,get:function(){return o.dedupeIntegration}}),Object.defineProperty(e,"endSession",{enumerable:!0,get:function(){return o.endSession}}),Object.defineProperty(e,"eventFiltersIntegration",{enumerable:!0,get:function(){return o.eventFiltersIntegration}}),Object.defineProperty(e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return o.extraErrorDataIntegration}}),Object.defineProperty(e,"featureFlagsIntegration",{enumerable:!0,get:function(){return o.featureFlagsIntegration}}),Object.defineProperty(e,"flush",{enumerable:!0,get:function(){return o.flush}}),Object.defineProperty(e,"functionToStringIntegration",{enumerable:!0,get:function(){return o.functionToStringIntegration}}),Object.defineProperty(e,"getActiveSpan",{enumerable:!0,get:function(){return o.getActiveSpan}}),Object.defineProperty(e,"getClient",{enumerable:!0,get:function(){return o.getClient}}),Object.defineProperty(e,"getCurrentScope",{enumerable:!0,get:function(){return o.getCurrentScope}}),Object.defineProperty(e,"getGlobalScope",{enumerable:!0,get:function(){return o.getGlobalScope}}),Object.defineProperty(e,"getIsolationScope",{enumerable:!0,get:function(){return o.getIsolationScope}}),Object.defineProperty(e,"getRootSpan",{enumerable:!0,get:function(){return o.getRootSpan}}),Object.defineProperty(e,"getSpanDescendants",{enumerable:!0,get:function(){return o.getSpanDescendants}}),Object.defineProperty(e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return o.getSpanStatusFromHttpCode}}),Object.defineProperty(e,"getTraceData",{enumerable:!0,get:function(){return o.getTraceData}}),Object.defineProperty(e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return o.inboundFiltersIntegration}}),Object.defineProperty(e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return o.instrumentAnthropicAiClient}}),Object.defineProperty(e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return o.instrumentCreateReactAgent}}),Object.defineProperty(e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return o.instrumentGoogleGenAIClient}}),Object.defineProperty(e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return o.instrumentLangChainEmbeddings}}),Object.defineProperty(e,"instrumentLangGraph",{enumerable:!0,get:function(){return o.instrumentLangGraph}}),Object.defineProperty(e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return o.instrumentOpenAiClient}}),Object.defineProperty(e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return o.instrumentSupabaseClient}}),Object.defineProperty(e,"isEnabled",{enumerable:!0,get:function(){return o.isEnabled}}),Object.defineProperty(e,"isInitialized",{enumerable:!0,get:function(){return o.isInitialized}}),Object.defineProperty(e,"lastEventId",{enumerable:!0,get:function(){return o.lastEventId}}),Object.defineProperty(e,"logger",{enumerable:!0,get:function(){return o.logger}}),Object.defineProperty(e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return o.makeMultiplexedTransport}}),Object.defineProperty(e,"metrics",{enumerable:!0,get:function(){return o.metrics}}),Object.defineProperty(e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return o.moduleMetadataIntegration}}),Object.defineProperty(e,"parameterize",{enumerable:!0,get:function(){return o.parameterize}}),Object.defineProperty(e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return o.registerSpanErrorInstrumentation}}),Object.defineProperty(e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return o.rewriteFramesIntegration}}),Object.defineProperty(e,"setAttribute",{enumerable:!0,get:function(){return o.setAttribute}}),Object.defineProperty(e,"setAttributes",{enumerable:!0,get:function(){return o.setAttributes}}),Object.defineProperty(e,"setContext",{enumerable:!0,get:function(){return o.setContext}}),Object.defineProperty(e,"setConversationId",{enumerable:!0,get:function(){return o.setConversationId}}),Object.defineProperty(e,"setCurrentClient",{enumerable:!0,get:function(){return o.setCurrentClient}}),Object.defineProperty(e,"setExtra",{enumerable:!0,get:function(){return o.setExtra}}),Object.defineProperty(e,"setExtras",{enumerable:!0,get:function(){return o.setExtras}}),Object.defineProperty(e,"setHttpStatus",{enumerable:!0,get:function(){return o.setHttpStatus}}),Object.defineProperty(e,"setMeasurement",{enumerable:!0,get:function(){return o.setMeasurement}}),Object.defineProperty(e,"setTag",{enumerable:!0,get:function(){return o.setTag}}),Object.defineProperty(e,"setTags",{enumerable:!0,get:function(){return o.setTags}}),Object.defineProperty(e,"setUser",{enumerable:!0,get:function(){return o.setUser}}),Object.defineProperty(e,"spanToBaggageHeader",{enumerable:!0,get:function(){return o.spanToBaggageHeader}}),Object.defineProperty(e,"spanToJSON",{enumerable:!0,get:function(){return o.spanToJSON}}),Object.defineProperty(e,"spanToTraceHeader",{enumerable:!0,get:function(){return o.spanToTraceHeader}}),Object.defineProperty(e,"startInactiveSpan",{enumerable:!0,get:function(){return o.startInactiveSpan}}),Object.defineProperty(e,"startNewTrace",{enumerable:!0,get:function(){return o.startNewTrace}}),Object.defineProperty(e,"startSession",{enumerable:!0,get:function(){return o.startSession}}),Object.defineProperty(e,"startSpan",{enumerable:!0,get:function(){return o.startSpan}}),Object.defineProperty(e,"startSpanManual",{enumerable:!0,get:function(){return o.startSpanManual}}),Object.defineProperty(e,"supabaseIntegration",{enumerable:!0,get:function(){return o.supabaseIntegration}}),Object.defineProperty(e,"suppressTracing",{enumerable:!0,get:function(){return o.suppressTracing}}),Object.defineProperty(e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return o.thirdPartyErrorFilterIntegration}}),Object.defineProperty(e,"updateSpanName",{enumerable:!0,get:function(){return o.updateSpanName}}),Object.defineProperty(e,"withActiveSpan",{enumerable:!0,get:function(){return o.withActiveSpan}}),Object.defineProperty(e,"withIsolationScope",{enumerable:!0,get:function(){return o.withIsolationScope}}),Object.defineProperty(e,"withScope",{enumerable:!0,get:function(){return o.withScope}}),Object.defineProperty(e,"withStreamedSpan",{enumerable:!0,get:function(){return o.withStreamedSpan}}),Object.defineProperty(e,"zodErrorsIntegration",{enumerable:!0,get:function(){return o.zodErrorsIntegration}}),Object.defineProperty(e,"WINDOW",{enumerable:!0,get:function(){return u.WINDOW}}),Object.defineProperty(e,"BrowserClient",{enumerable:!0,get:function(){return c.BrowserClient}}),Object.defineProperty(e,"makeFetchTransport",{enumerable:!0,get:function(){return b.makeFetchTransport}}),Object.defineProperty(e,"uiProfiler",{enumerable:!0,get:function(){return f.uiProfiler}}),Object.defineProperty(e,"chromeStackLineParser",{enumerable:!0,get:function(){return p.chromeStackLineParser}}),Object.defineProperty(e,"defaultStackLineParsers",{enumerable:!0,get:function(){return p.defaultStackLineParsers}}),Object.defineProperty(e,"defaultStackParser",{enumerable:!0,get:function(){return p.defaultStackParser}}),Object.defineProperty(e,"geckoStackLineParser",{enumerable:!0,get:function(){return p.geckoStackLineParser}}),Object.defineProperty(e,"opera10StackLineParser",{enumerable:!0,get:function(){return p.opera10StackLineParser}}),Object.defineProperty(e,"opera11StackLineParser",{enumerable:!0,get:function(){return p.opera11StackLineParser}}),Object.defineProperty(e,"winjsStackLineParser",{enumerable:!0,get:function(){return p.winjsStackLineParser}}),Object.defineProperty(e,"eventFromException",{enumerable:!0,get:function(){return l.eventFromException}}),Object.defineProperty(e,"eventFromMessage",{enumerable:!0,get:function(){return l.eventFromMessage}}),Object.defineProperty(e,"exceptionFromError",{enumerable:!0,get:function(){return l.exceptionFromError}}),Object.defineProperty(e,"createUserFeedbackEnvelope",{enumerable:!0,get:function(){return s.createUserFeedbackEnvelope}}),Object.defineProperty(e,"forceLoad",{enumerable:!0,get:function(){return P.forceLoad}}),Object.defineProperty(e,"getDefaultIntegrations",{enumerable:!0,get:function(){return P.getDefaultIntegrations}}),Object.defineProperty(e,"init",{enumerable:!0,get:function(){return P.init}}),Object.defineProperty(e,"onLoad",{enumerable:!0,get:function(){return P.onLoad}}),Object.defineProperty(e,"showReportDialog",{enumerable:!0,get:function(){return O.showReportDialog}}),Object.defineProperty(e,"breadcrumbsIntegration",{enumerable:!0,get:function(){return y.breadcrumbsIntegration}}),Object.defineProperty(e,"globalHandlersIntegration",{enumerable:!0,get:function(){return j.globalHandlersIntegration}}),Object.defineProperty(e,"httpContextIntegration",{enumerable:!0,get:function(){return I.httpContextIntegration}}),Object.defineProperty(e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return S.linkedErrorsIntegration}}),Object.defineProperty(e,"browserApiErrorsIntegration",{enumerable:!0,get:function(){return T.browserApiErrorsIntegration}}),Object.defineProperty(e,"browserSessionIntegration",{enumerable:!0,get:function(){return E.browserSessionIntegration}}),Object.defineProperty(e,"lazyLoadIntegration",{enumerable:!0,get:function(){return C.lazyLoadIntegration}}),Object.defineProperty(e,"reportingObserverIntegration",{enumerable:!0,get:function(){return k.reportingObserverIntegration}}),Object.defineProperty(e,"httpClientIntegration",{enumerable:!0,get:function(){return A.httpClientIntegration}}),Object.defineProperty(e,"contextLinesIntegration
2",{enumerable:!0,get:function(){return h.contextLinesIntegration}}),Object.defineProperty(e,"graphqlClientIntegration",{enumerable:!0,get:function(){return w.graphqlClientIntegration}}),Object.defineProperty(e,"viewHierarchyIntegration",{enumerable:!0,get:function(){return R.viewHierarchyIntegration}}),Object.defineProperty(e,"getReplay",{enumerable:!0,get:function(){return L.getReplay}}),Object.defineProperty(e,"replayIntegration",{enumerable:!0,get:function(){return L.replayIntegration}}),Object.defineProperty(e,"replayCanvasIntegration",{enumerable:!0,get:function(){return _.replayCanvasIntegration}}),Object.defineProperty(e,"getFeedback",{enumerable:!0,get:function(){return v.getFeedback}}),Object.defineProperty(e,"sendFeedback",{enumerable:!0,get:function(){return v.sendFeedback}}),Object.defineProperty(e,"defaultRequestInstrumentationOptions",{enumerable:!0,get:function(){return F.defaultRequestInstrumentationOptions}}),Object.defineProperty(e,"instrumentOutgoingRequests",{enumerable:!0,get:function(){return F.instrumentOutgoingRequests}}),Object.defineProperty(e,"browserTracingIntegration",{enumerable:!0,get:function(){return N.browserTracingIntegration}}),Object.defineProperty(e,"isBotUserAgent",{enumerable:!0,get:function(){return N.isBotUserAgent}}),Object.defineProperty(e,"startBrowserTracingNavigationSpan",{enumerable:!0,get:function(){return N.startBrowserTracingNavigationSpan}}),Object.defineProperty(e,"startBrowserTracingPageLoadSpan",{enumerable:!0,get:function(){return N.startBrowserTracingPageLoadSpan}}),Object.defineProperty(e,"elementTimingIntegration",{enumerable:!0,get:function(){return B.elementTimingIntegration}}),Object.defineProperty(e,"normalizeStringifyValue",{enumerable:!0,get:function(){return M.normalizeStringifyValue}}),Object.defineProperty(e,"reportPageLoaded",{enumerable:!0,get:function(){return x.reportPageLoaded}}),Object.defineProperty(e,"setActiveSpanInBrowser",{enumerable:!0,get:function(){return D.setActiveSpanInBrowser}}),Object.defineProperty(e,"spanStreamingIntegration",{enumerable:!0,get:function(){return U.spanStreamingIntegration}}),Object.defineProperty(e,"fetchStreamPerformanceIntegration",{enumerable:!0,get:function(){return H.fetchStreamPerformanceIntegration}}),Object.defineProperty(e,"webVitalsIntegration",{enumerable:!0,get:function(){return z.webVitalsIntegration}}),Object.defineProperty(e,"makeBrowserOfflineTransport",{enumerable:!0,get:function(){return G.makeBrowserOfflineTransport}}),Object.defineProperty(e,"browserProfilingIntegration",{enumerable:!0,get:function(){return W.browserProfilingIntegration}}),Object.defineProperty(e,"spotlightBrowserIntegration",{enumerable:!0,get:function(){return Y.spotlightBrowserIntegration}}),Object.defineProperty(e,"cultureContextIntegration",{enumerable:!0,get:function(){return q.cultureContextIntegration}}),Object.defineProperty(e,"buildLaunchDarklyFlagUsedHandler",{enumerable:!0,get:function(){return V.buildLaunchDarklyFlagUsedHandler}}),Object.defineProperty(e,"launchDarklyIntegration",{enumerable:!0,get:function(){return V.launchDarklyIntegration}}),Object.defineProperty(e,"OpenFeatureIntegrationHook",{enumerable:!0,get:function(){return K.OpenFeatureIntegrationHook}}),Object.defineProperty(e,"openFeatureIntegration",{enumerable:!0,get:function(){return K.openFeatureIntegration}}),Object.defineProperty(e,"unleashIntegration",{enumerable:!0,get:function(){return X.unleashIntegration}}),Object.defineProperty(e,"growthbookIntegration",{enumerable:!0,get:function(){return J.growthbookIntegration}}),Object.defineProperty(e,"statsigIntegration",{enumerable:!0,get:function(){return Q.statsigIntegration}}),Object.defineProperty(e,"diagnoseSdkConnectivity",{enumerable:!0,get:function(){return Z.diagnoseSdkConnectivity}}),Object.defineProperty(e,"registerWebWorker",{enumerable:!0,get:function(){return $.registerWebWorker}}),Object.defineProperty(e,"webWorkerIntegration",{enumerable:!0,get:function(){return $.webWorkerIntegration}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),b=r(d[5]),f=r(d[6]),p=r(d[7]),l=r(d[8]),s=r(d[9]),P=r(d[10]),O=r(d[11]),y=r(d[12]),j=r(d[13]),I=r
2(d[14]),S=r(d[15]),T=r(d[16]),E=r(d[17]),C=r(d[18]),k=r(d[19]),A=r(d[20]),h=r(d[21]),w=r(d[22]),R=r(d[23]),L=r(d[24]),_=r(d[25]),v=r(d[26]),F=r(d[27]),N=r(d[28]),B=r(d[29]),M=r(d[30]),x=r(d[31]),D=r(d[32]),U=r(d[33]),H=r(d[34]),z=r(d[35]),G=r(d[36]),W=r(d[37]),Y=r(d[38]),q=r(d[39]),V=r(d[40]),K=r(d[41]),X=r(d[42]),J=r(d[43]),Q=r(d[44]),Z=r(d[45]),$=r(d[46])},1537,[1538,1951,1766,1950,1952,1954,2221,2223,1953,2224,2225,2235,2226,2230,2231,2232,2227,2228,1765,2236,2237,2238,2239,2240,2241,2467,1539,2693,2695,1955,2233,2742,2743,2744,2696,2739,2745,2746,2750,2229,2751,2752,2753,2754,2755,2756,2757]);
3__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"feedbackAsyncIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o=(0,t.buildFeedbackIntegration)({lazyLoadIntegration:n.lazyLoadIntegration})},1538,[1539,1765]);
4__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"buildFeedbackIntegration",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"feedbackModalIntegration",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(_e,"feedbackScreenshotIntegration",{enumerable:!0,get:function(){return an}}),Object.defineProperty(_e,"getFeedback",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"sendFeedback",{enumerable:!0,get:function(){return h}});var e=_r(_d[0]);const n=e.GLOBAL_OBJ,t=n.document,r=n.navigator,o="Report a Bug",i="Unable to submit feedback with empty message",a="No client setup, cannot send feedback.",l="Unable to determine if Feedback was correctly sent.",s="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",c="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",u={ERROR_EMPTY_MESSAGE:i,ERROR_NO_CLIENT:a,ERROR_TIMEOUT:l,ERROR_FORBIDDEN:s,ERROR_GENERIC:c};function d(e,n){return n?.[e]??u[e]}function _(e,n){return new Error(d(e,n))}const h=(n,t={includeReplay:!0})=>{const r=t.errorMessages;if(!n.message)throw _("ERROR_EMPTY_MESSAGE",r);const o=(0,e.getClient)();if(!o)throw _("ERROR_NO_CLIENT",r);n.tags&&Object.keys(n.tags).length&&(0,e.getCurrentScope)().setTags(n.tags);const i=(0,e.captureFeedback)({source:"api",url:(0,e.getLocationHref)(),...n},t);return new Promise((e,n)=>{const t=setTimeout(()=>{a(),n(d("ERROR_TIMEOUT",r))},3e4),a=o.on("afterSendEvent",(o,l)=>{if(o.event_id===i)return clearTimeout(t),a(),l?.statusCode&&l.statusCode>=200&&l.statusCode<300?e(i):n(d(403===l?.statusCode?"ERROR_FORBIDDEN":"ERROR_GENERIC",r))})})},p='undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function f(e,n){return{...e,...n,tags:{...e.tags,...n.tags},onFormOpen:()=>{n.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{n.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(t,r)=>{n.onSubmitSuccess?.(t,r),e.onSubmitSuccess?.(t,r)},onSubmitError:t=>{n.onSubmitError?.(t),e.onSubmitError?.(t)},onFormSubmitted:()=>{n.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...n.themeDark},themeLight:{...e.themeLight,...n.themeLight}}}function g(e){const n=t.createElement("style");return n.textContent="\n.widget__actor {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: var(--page-margin);\n  inset: var(--actor-inset);\n\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  padding: 16px;\n\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  line-height: 1.14em;\n  text-decoration: none;\n\n  background: var(--actor-background, var(--background));\n  border-radius: var(--actor-border-radius, 1.7em/50%);\n  border: var(--actor-border, var(--border));
4\n  box-shadow: var(--actor-box-shadow, var(--box-shadow));\n  color: var(--actor-color, var(--foreground));\n  fill: var(--actor-color, var(--foreground));\n  cursor: pointer;\n  opacity: 1;\n  transition: transform 0.2s ease-in-out;\n  transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden=\"true\"] {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n  transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n  background: var(--actor-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n  width: 1.14em;\n  height: 1.14em;\n}\n\n@media (max-width: 600px) {\n  .widget__actor span {\n    display: none;\n  }\n}\n",e&&n.setAttribute("nonce",e),n}function m(e,n){return Object.entries(n).forEach(([n,t])=>{e.setAttributeNS(null,n,t)}),e}function b(){const e=e=>n.document.createElementNS("http://www.w3.org/2000/svg",e),t=m(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),r=m(e("g"),{clipPath:"url(#clip0_57_80)"}),o=m(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(r).appendChild(o);const i=e("defs"),a=m(e("clipPath"),{id:"clip0_57_80"}),l=m(e("rect"),{width:"20",height:"20",fill:"white"});return a.appendChild(l),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(l),t}function v({triggerLabel:e,triggerAriaLabel:n,shadow:r,styleNonce:i}){const a=t.createElement("button");if(a.type="button",a.className="widget__actor",a.ariaHidden="false",a.ariaLabel=n||e||o,a.appendChild(b()),e){const n=t.createElement("span");n.appendChild(t.createTextNode(e)),a.appendChild(n)}const l=g(i);return{el:a,appendToDom(){r.appendChild(l),r.appendChild(a)},removeFromDom(){a.remove(),l.remove()},show(){a.ariaHidden="false"},hide(){a.ariaHidden="true"}}}const y="rgba(88, 74, 192, 1)",x={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:y,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},w={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackgroun
4d:y,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function k(e){return`\n  --foreground: ${e.foreground};\n  --background: ${e.background};\n  --accent-foreground: ${e.accentForeground};\n  --accent-background: ${e.accentBackground};\n  --success-color: ${e.successColor};\n  --error-color: ${e.errorColor};\n  --border: ${e.border};\n  --box-shadow: ${e.boxShadow};\n  --outline: ${e.outline};\n  --interactive-filter: ${e.interactiveFilter};\n  `}function C({colorScheme:e,themeDark:n,themeLight:r,styleNonce:o}){const i=t.createElement("style");return i.textContent=`\n:host {\n  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n  --font-size: 14px;\n  --z-index: 100000;\n\n  --page-margin: 16px;\n  --inset: auto 0 0 auto;\n  --actor-inset: var(--inset);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ${"system"!==e?`color-scheme: only ${e};`:""}\n\n  ${k("dark"===e?{...w,...n}:{...x,...r})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    color-scheme: only dark;\n\n    ${k({...w,...n})}\n  }\n}`:""}\n`,o&&i.setAttribute("nonce",o),i}const E=({lazyLoadIntegration:n,getModalIntegration:u,getScreenshotIntegration:d})=>({id:_="sentry-feedback",autoInject:g=!0,showBranding:m=!0,isEmailRequired:b=!1,isNameRequired:y=!1,showEmail:x=!0,showName:w=!0,enableScreenshot:k=!0,useSentryUser:E={email:"email",name:"username"},tags:S,styleNonce:R,scriptNonce:L,colorScheme:T="system",themeLight:F={},themeDark:N={},addScreenshotButtonLabel:M="Add a screenshot",cancelButtonLabel:H="Cancel",confirmButtonLabel:P="Confirm",emailLabel:D="Email",emailPlaceholder:B="[email protected]",formTitle:O="Report a Bug",isRequiredLabel:A="(required)",messageLabel:I="Description",messagePlaceholder:q="What's the bug? What did you expect?",nameLabel:U="Name",namePlaceholder:z="Your Name",removeScreenshotButtonLabel:$="Remove screenshot",submitButtonLabel:V="Send Bug Report",successMessageText:j="Thank you for your report!",triggerLabel:W=o,triggerAriaLabel:G="",highlightToolText:Z="Highlight",hideToolText:Y="Hide",removeHighlightText:X="Remove",errorEmptyMessageText:J=i,errorNoClientText:K=a,errorTimeoutText:Q=l,errorForbiddenText:ee=s,errorGenericText:ne=c,onFormOpen:te,onFormClose:re,onSubmitSuccess:oe,onSubmitError:ie,onFormSubmitted:ae}={})=>{const le={id:_,autoInject:g,showBranding:m,isEmailRequired:b,isNameRequired:y,showEmail:x,showName:w,enableScreenshot:k,useSentryUser:E,tags:S,styleNonce:R,scriptNonce:L,colorScheme:T,themeDark:N,themeLight:F,triggerLabel:W,triggerAriaLabel:G,cancelButtonLabel:H,submitButtonLabel:V,confirmButtonLabel:P,formTitle:O,emailLabel:D,emailPlaceholder:B,messageLabel:I,messagePlaceholder:q,nameLabel:U,namePlaceholder:z,successMessageText:j,isRequiredLabel:A,addScreenshotButtonLabel:M,removeScreenshotButtonLabel:$,highlightToolText:Z,hideToolText:Y,removeHighlightText:X,errorEmptyMessageText:J,errorNoClientText:K,errorTimeoutText:Q,errorForbiddenText:ee,errorGenericText:ne,onFormClose:re,onFormOpen:te,onSubmitError:ie,onSubmitSuccess:oe,onFormSubmitted:ae};let se=null,ce=null,ue=[];const de=e=>{if(!se){const n=t.createElement("div");n.id=String(e.id),t.body.appendChild(n),se=n.attachShadow({mode:"open"}),ce=C(e),se.appendChild(ce)}return se},he=async t=>{const o=t.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(r.userAgent)||/Macintosh/i.test(r.userAgent)&&r.maxTouchPoints&&r.maxTouchPoints>1||!isSecureContext);let i,a;try{i=(u?u():await n("feedbackModalIntegration",L))(),(0,e.addIntegration)(i)}catch{throw p&&e.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const t=o?d?d():await n("feedbackScreenshotIntegration",L):void 0;t&&(a=t(),(0,e.addIntegration)(a))}catch{p&&e.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const l={ERROR_EMPTY_MESSAGE:t.errorEmptyMessageText,ERROR_NO_CLIENT:t.errorNoClientText,E
4RROR_TIMEOUT:t.errorTimeoutText,ERROR_FORBIDDEN:t.errorForbiddenText,ERROR_GENERIC:t.errorGenericText},s=i.createDialog({options:{...t,onFormClose:()=>{s?.close(),t.onFormClose?.()},onFormSubmitted:()=>{s?.close(),t.onFormSubmitted?.()}},screenshotIntegration:a,sendFeedback:(e,n)=>h(e,{includeReplay:!0,...n,errorMessages:l}),shadow:de(t)});return s},pe=(n,r={})=>{const o=f(le,r),i="string"==typeof n?t.querySelector(n):"function"==typeof n.addEventListener?n:null;if(!i)throw p&&e.debug.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let a=null;const l=async()=>{a||(a=await he({...o,onFormSubmitted:()=>{a?.removeFromDom(),o.onFormSubmitted?.()}})),a.appendToDom(),a.open()};i.addEventListener("click",l);const s=()=>{ue=ue.filter(e=>e!==s),a?.removeFromDom(),a=null,i.removeEventListener("click",l)};return ue.push(s),s},fe=(e={})=>{const n=f(le,e),t=de(n),r=v({triggerLabel:n.triggerLabel,triggerAriaLabel:n.triggerAriaLabel,shadow:t,styleNonce:R});return pe(r.el,{...n,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){(0,e.isBrowser)()&&le.autoInject&&("loading"===t.readyState?t.addEventListener("DOMContentLoaded",()=>fe().appendToDom()):fe().appendToDom())},attachTo:pe,createWidget(e={}){const n=fe(f(le,e));return n.appendToDom(),n},createForm:async(e={})=>he(f(le,e)),setTheme(e){if(le.colorScheme=e,se){const e=C(le);ce?se.replaceChild(e,ce):se.prepend(e),ce=e}},remove(){se&&(se.parentElement?.remove(),se=null,ce=null),ue.forEach(e=>e()),ue=[]}}};function S(){const n=(0,e.getClient)();return n?.getIntegrationByName("Feedback")}var R,L,T,F,N,M,H,P={},D=[],B=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,O=Array.isArray;function A(e,n){for(var t in n)e[t]=n[t];return e}function I(e){var n=e.parentNode;n&&n.removeChild(e)}function q(e,n,t){var r,o,i,a={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:a[i]=n[i];if(arguments.length>2&&(a.children=arguments.length>3?R.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return U(e,a,r,o,null)}function U(e,n,t,r,o){var i={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++T:o,__i:-1,__u:0};return null==o&&null!=L.vnode&&L.vnode(i),i}function z(e){return e.children}function $(e,n){this.props=e,this.context=n}function V(e,n){if(null==n)return e.__?V(e.__,e.__i+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?V(e):null}function j(e,n,t){var r,o=e.__v,i=o.__e,a=e.__P;if(a)return(r=A({},o)).__v=o.__v+1,L.vnode&&L.vnode(r),re(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,n,null==i?V(o):i,!!(32&o.__u),t),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&W(r),r}function W(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return W(e)}}function G(e){(!e.__d&&(e.__d=!0)&&F.push(e)&&!Z.__r++||N!==L.debounceRendering)&&((N=L.debounceRendering)||M)(Z)}function Z(){var e,n,t,r=[],o=[];for(F.sort(H);e=F.shift();)e.__d&&(t=F.length,n=j(e,r,o)||n,0===t||F.length>t?(oe(r,n,o),o.length=r.length=0,n=void 0,F.sort(H)):n&&L.__c&&L.__c(n,D));n&&oe(r,n,o),Z.__r=0}function Y(e,n,t,r,o,i,a,l,s,c,u){var d,_,h,p,f,g=r&&r.__k||D,m=n.length;for(t.__d=s,X(t,n,g),s=t.__d,d=0;d<m;d++)null!=(h=t.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(_=-1===h.__i?P:g[h.__i]||P,h.__i=d,re(e,h,_,o,i,a,l,s,c,u),p=h.__e,h.ref&&_.ref!=h.ref&&(_.ref&&ae(_.ref,null,h),u.push(h.ref,h.__c||p,h)),null==f&&null!=p&&(f=p),65536&h.__u||_.__k===h.__k?s=J(h,s,e):"function"==typeof h.type&&void 0!==h.__d?s=h.__d:p&&(s=p.nextSibling),h.__d=void 0,h.__u&=-196609);t.__d=s,t.__e=f}function X(e,n,t){var r,o,i,a,l,s=n.length,c=t.length,u=c,d=0;for(e.__k=[],r=0;r<s;r++)null!=(o=e.__k[r]=null==(o=n[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?U(null,o,null,null,o):O(o)?
vendor: 4,477 bytes, line 4
4U(z,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?U(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,l=K(o,t,a=r+d,u),o.__i=l,i=null,-1!==l&&(u--,(i=t[l])&&(i.__u|=131072)),null==i||null===i.__v?(-1==l&&d--,"function"!=typeof o.type&&(o.__u|=65536)):l!==a&&(l===a+1?d++:l>a?u>s-a?d+=l-a:d--:d=l<a&&l==a-1?l-a:0,l!==r+d&&(o.__u|=65536))):(i=t[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=V(i)),le(i,i,!1),t[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(i=t[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=V(i)),le(i,i))}function J(e,n,t){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,n=J(r[o],n,t));return n}e.__e!=n&&(t.insertBefore(e.__e,n||null),n=e.__e);do{n=n&&n.nextSibling}while(null!=n&&8===n.nodeType);return n}function K(e,n,t,r){var o=e.key,i=e.type,a=t-1,l=t+1,s=n[t];if(null===s||s&&o==s.key&&i===s.type)return t;if(r>(null==s||131072&s.__u?0:1))for(;a>=0||l<n.length;){if(a>=0){if((s=n[a])&&!(131072&s.__u)&&o==s.key&&i===s.type)return a;a--}if(l<n.length){if((s=n[l])&&!(131072&s.__u)&&o==s.key&&i===s.type)return l;l++}}return-1}function Q(e,n,t){"-"===n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":"number"!=typeof t||B.test(n)?t:t+"px"}function ee(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||Q(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||Q(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/(PointerCapture)$|Capture$/i,"$1")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r?t.u=r.u:(t.u=Date.now(),e.addEventListener(n,i?te:ne,i)):e.removeEventListener(n,i?te:ne,i);else{if(o)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==n&&"height"!==n&&"href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&"rowSpan"!==n&&"colSpan"!==n&&"role"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&"-"!==n[4]?e.removeAttribute(n):e.setAttribute(n,t))}}function ne(e){if(this.l){var n=this.l[e.type+!1];if(e.t){if(e.t<=n.u)return}else e.t=Date.now();return n(L.event?L.event(e):e)}}function te(e){if(this.l)return this.l[e.type+!0](L.event?L.event(e):e)}function re(e,n,t,r,o,i,a,l,s,c){var u,d,_,h,p,f,g,m,b,v,y,x,w,k,C,E=n.type;if(void 0!==n.constructor)return null;128&t.__u&&(s=!!(32&t.__u),i=[l=n.__e=t.__e]),(u=L.__b)&&u(n);e:if("function"==typeof E)try{if(m=n.props,b=(u=E.contextType)&&r[u.__c],v=u?b?b.props.value:u.__:r,t.__c?g=(d=n.__c=t.__c).__=d.__E:("prototype"in E&&E.prototype.render?n.__c=d=new E(m,v):(n.__c=d=new $(m,v),d.constructor=E,d.render=se),b&&b.sub(d),d.props=m,d.state||(d.state={}),d.context=v,d.__n=r,_=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=A({},d.__s)),A(d.__s,E.getDerivedStateFromProps(m,d.__s))),h=d.props,p=d.state,d.__v=n,_)null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==E.getDerivedStateFromProps&&m!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(m,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(m,d.__s,v)||n.__v===t.__v)){for(n.__v!==t.__v&&(d.props=m,d.state=d.__s,d.__d=!1),n.__e=t.__e,n.__k=t.__k,n.__k.forEach(function(e){e&&(e.__=n)}),y=0;y<d._sb.length;y++)d.__h.push(d._sb[y]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(m,d.__s,v),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,p,f)})}if(d.context=v,d.props=m,d.__P=e,d.__e=!1,x=L.__r,w=0,"prototype"in E&&E.prototype.render){for(d.state=d.__s,d.__d=!1,x&&x(n),u=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,x&&x(n),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(r=A(A({},r),d.getChildContext())),_||null==d.getSnapshotBeforeUpdate||(f=d.getSnapshotBeforeUpdate(h,p)),Y(e,O(C=null!=u&&u.type===z&&null==u.key?u.props.children:u)?C:[C],n,t,r,o,i,a,l,s,c),d.base=n.__e,n.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){n.__v=null,s||null!=i?(n.__e=l,n.__u|=s?160:32,i[i.indexOf(l)]=null):(n.__e=t.__e,n.__k=t.__k),L.__e(e,n,t)}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=ie(t.__e,n,t,r,o,i,a,s,c
vendor: 2,868 bytes, line 4
4);(u=L.diffed)&&u(n)}function oe(e,n,t){for(var r=0;r<t.length;r++)ae(t[r],t[++r],t[++r]);L.__c&&L.__c(n,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(e){e.call(n)})}catch(e){L.__e(e,n.__v)}})}function ie(e,n,t,r,o,i,a,l,s){var c,u,d,_,h,p,f,g=t.props,m=n.props,b=n.type;if("svg"===b&&(o=!0),null!=i)for(c=0;c<i.length;c++)if((h=i[c])&&"setAttribute"in h==!!b&&(b?h.localName===b:3===h.nodeType)){e=h,i[c]=null;break}if(null==e){if(null===b)return document.createTextNode(m);e=o?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,m.is&&m),i=null,l=!1}if(null===b)g===m||l&&e.data===m||(e.data=m);else{if(i=i&&R.call(e.childNodes),g=t.props||P,!l&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(h=e.attributes[c]).name]=h.value;for(c in g)h=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=h:"key"===c||c in m||ee(e,c,null,h,o));for(c in m)h=m[c],"children"==c?_=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?p=h:"checked"==c?f=h:"key"===c||l&&"function"!=typeof h||g[c]===h||ee(e,c,h,g[c],o);if(u)l||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),n.__k=[];else if(d&&(e.innerHTML=""),Y(e,O(_)?_:[_],n,t,r,o&&"foreignObject"!==b,i,a,i?i[0]:t.__k&&V(t,0),l,s),null!=i)for(c=i.length;c--;)null!=i[c]&&I(i[c]);l||(c="value",void 0!==p&&(p!==e[c]||"progress"===b&&!p||"option"===b&&p!==g[c])&&ee(e,c,p,g[c],!1),c="checked",void 0!==f&&f!==e[c]&&ee(e,c,f,g[c],!1))}return e}function ae(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){L.__e(e,t)}}function le(e,n,t){var r,o;if(L.unmount&&L.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ae(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){L.__e(e,n)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&le(r[o],n,t||"function"!=typeof e.type);t||null==e.__e||I(e.__e),e.__=e.__e=e.__d=void 0}function se(e,n,t){return this.constructor(e,t)}function ce(e,n,t){var r,o,i;L.__&&L.__(e,n),r=!1?null:n.__k,o=[],i=[],re(n,e=n.__k=q(z,null,[e]),r||P,P,void 0!==n.ownerSVGElement,r?null:n.firstChild?R.call(n.childNodes):null,o,r?r.__e:n.firstChild,false,i),e.__d=void 0,oe(o,e,i)}R=D.slice,L={__e:function(e,n,t,r){for(var o,i,a;n=n.__;)if((o=n.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(n){e=n}throw e}},T=0,$.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=A({},this.state),"function"==typeof e&&(e=e(A({},t),this.props)),e&&A(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),G(this))},$.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),G(this))},$.prototype.render=z,F=[],M="function"==typeof Promise?Promise.prototype.then.bind(Prom
vendor: 1,516 bytes, line 4
4ise.resolve()):setTimeout,H=function(e,n){return e.__v.__b-n.__v.__b},Z.__r=0;var ue,de,he,pe,fe=0,ge=[],me=[],be=L,ve=be.__b,ye=be.__r,xe=be.diffed,we=be.__c,ke=be.unmount,Ce=be.__;function Ee(e,n){be.__h&&be.__h(de,e,fe||n),fe=0;var t=de.__H||(de.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({__V:me}),t.__[e]}function Se(e){return fe=1,Re(Oe,e)}function Re(e,n,t){var r=Ee(ue++,2);if(r.t=e,!r.__c&&(r.__=[t?t(n):Oe(void 0,n),function(e){var n=r.__N?r.__N[0]:r.__[0],t=r.t(n,e);n!==t&&(r.__N=[t,r.__[1]],r.__c.setState({}))}],r.__c=de,!de.u)){var o=function(e,n,t){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,n,t);var a=!1;return o.forEach(function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(a=!0)}}),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,n,t))};de.u=!0;var i=de.shouldComponentUpdate,a=de.componentWillUpdate;de.componentWillUpdate=function(e,n,t){if(this.__e){var r=i;i=void 0,o(e,n,t),i=r}a&&a.call(this,e,n,t)},de.shouldComponentUpdate=o}return r.__N||r.__}function Le(e,n){var t=Ee(ue++,4);!be.__s&&Be(t.__H,n)&&(t.__=e,t.i=n,de.__h.push(t))}function Te(e,n){var t=Ee(ue++,7);return Be(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function Fe(e,n){return fe=8,Te(function(){return e},n)}function Ne(){for(var e;e=ge.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pe),e.__H.__h.forEach(De),e.__H.__h=[]}catch(n){e.__H.__h=[],be.__e(n,e.__v)}}be.__b=function(e){de=null,ve&&ve(e)}
4,be.__=function(e,n){n.__k&&n.__k.__m&&(e.__m=n.__k.__m),Ce&&Ce(e,n)},be.__r=function(e){ye&&ye(e),ue=0;var n=(de=e.__c).__H;n&&(he===de?(n.__h=[],de.__h=[],n.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=me,e.__N=e.i=void 0})):(n.__h.forEach(Pe),n.__h.forEach(De),n.__h=[],ue=0)),he=de},be.diffed=function(e){xe&&xe(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==ge.push(n)&&pe===be.requestAnimationFrame||((pe=be.requestAnimationFrame)||He)(Ne)),n.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==me&&(e.__=e.__V),e.i=void 0,e.__V=me})),he=de=null},be.__c=function(e,n){n.some(function(e){try{e.__h.forEach(Pe),e.__h=e.__h.filter(function(e){return!e.__||De(e)})}catch(t){n.some(function(e){e.__h&&(e.__h=[])}),n=[],be.__e(t,e.__v)}}),we&&we(e,n)},be.unmount=function(e){ke&&ke(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(e){try{Pe(e)}catch(e){n=e}}),t.__H=void 0,n&&be.__e(n,t.__v))};var Me="function"==typeof requestAnimationFrame;function He(e){var n,t=function(){clearTimeout(r),Me&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);Me&&(n=requestAnimationFrame(t))}function Pe(e){var n=de,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),de=n}function De(e){var n=de;e.__c=e.__(),de=n}function Be(e,n){return!e||e.length!==n.length||n.some(function(n,t){return n!==e[t]})}function Oe(e,n){return"function"==typeof n?n(e):n}const Ae=Object.defineProperty({__proto__:null,useCallback:Fe,useContext:function(e){var n=de.context[e.__c],t=Ee(ue++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(de)),n.props.value):e.__},useDebugValue:function(e,n){be.useDebugValue&&be.useDebugValue(n?n(e):e)},useEffect:function(e,n){var t=Ee(ue++,3);!be.__s&&Be(t.__H,n)&&(t.__=e,t.i=n,de.__H.__h.push(t))},useErrorBoundary:function(e){var n=Ee(ue++,10),t=Se();return n.__=e,de.componentDidCatch||(de.componentDidCatch=function(e,r){n.__&&n.__(e,r),t[1](e)}),[t[0],function(){t[1](void 0)}]},useId:function(){var e=Ee(ue++,11);if(!e.__){for(var n=de.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__},useImperativeHandle:function(e,n,t){fe=6,Le(function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0},null==t?t:t.concat(e))},useLayoutEffect:Le,useMemo:Te,useReducer:Re,useRef:function(e){return fe=5,Te(function(){return{current:e}},[])},useState:Se},Symbol.toStringTag,{value:'Module'});function Ie(){const e=e=>t.createElementNS("http://www.w3.org/2000/svg",e),n=m(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),r=m(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return n.appendChild(r),n}function qe({options:e}){const n=Te(()=>({__html:Ie().outerHTML}),[]);return q("h2",{class:"dialog__header"},q("span",{class:"dialog__title"},e.formTitle),e.showBranding?q("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:n}):null)}function Ue(e,n){const t=[];return n.isNameRequired&&!e.name&&t.push(n.nameLabel),n.isEmailRequired&&!e.email&&t.push(n.emailLabel),e.message||t.push(n.messageLabel),t}function ze(e,n){const t=e.get(n);return"string"==typeof t?t.trim():""}function $e({options:n,defaultEmail:t,defaultName:r,onFormClose:o,onSubmit:i,onSubmitSuccess:a,onSubmitError:l,showEmail:s,showName:c,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:h,cancelButtonLabel:f,emailLabel:g,emailPlaceholder:m,isEmailRequired:b,isNameRequired:v,messageLabel:y,messagePlaceholder:x,nameLabel:w,namePlaceholder:k,submitButtonLabel:C,isRequiredLabel:E}=n,[S,R]=Se(!1),[L,T]=Se(null),[F,N]=Se(!1),M=u?.input,[H,P]=Se(null),D=Fe(e=>{P(e),N(!1)},[]),B=Fe(e=>{const n=Ue(e,{emailLabel:g,isEmailRequired:b,isNameRequired:v,messageLabel:y,nameLabel:w});return n.length>0?T(`Please enter in the following required fields: ${n.join(", ")}`):T(null),0===n.length},[g,b,v,y,w]),O=Fe(async n=>{R(!0);try{if(n.preventDefault(),!(n.target instanceof HTMLFormElement))return;const t=new FormData(n.target),r=await(u&&F?u.value():void 0),o={name:ze(t,"name"),email:ze(t,"email"),message:ze(t,"message"),attachments:r?[r]:void 0};if(!B(o))return;try{const e=await i({name:o.name,email:o.email,message:o.message,source:"widget",tags:d},{attachments:o.attachments});a(o,e)}catch(n){p&&e.debug.error(n);const t=n instanceof Error?n:new Error(String(n));T(t.message),l(t)}}finally{R(!1)}},[u&&F,a,l]);return q("form",{class:"form",onSubmit:O},M&&F?q(M,{onError:D}):null,q("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:S},q("div",{class:"form__top"},L?q("div",{class:"form__error-container"},L):null,c?q("label",{for:"name",class:"form__label"},q(Ve,{label:w,isRequiredLabel:E,isRequired:v}),q("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:k,required:v,type:"text"})):q("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),s?q("label",{for:"email",class:"form__label"},q(Ve,{label:g,isRequiredLabel:E,isRequired:b}),q("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:b,type:"email"})):q("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),q("label",{for:"message",class:"form__label"},q(Ve,{label:y,isRequiredLabel:E,isRequired:!0}),q("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:x,required:!0,rows:5})),M?q("label",{for:"screenshot",class:"form__label"},q("button",{class:"btn btn--default",disabled:S,type:"button",onClick:()=>{P(null),N(e=>!e)}},F?h:_),H?q("div",{class:"form__error-container"},H.message):null):null),q("div",{class:"btn-group"},q("button",{class:"btn btn--primary",disabled:S,type:"submit"},C),q("button",{class:"btn btn--default",disabled:S,type:"button",onClick:o},f))))}function Ve({label:e,isRequired:n,isRequiredLabel:t}){return q("span",{class:"form__label__text"}
4,e,n&&q("span",{class:"form__label__text--required"},t))}function je(){const e=e=>n.document.createElementNS("http://www.w3.org/2000/svg",e),t=m(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),r=m(e("g"),{clipPath:"url(#clip0_57_156)"}),o=m(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=m(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(r).append(i,o);const a=e("defs"),l=m(e("clipPath"),{id:"clip0_57_156"}),s=m(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return l.appendChild(s),a.appendChild(l),t.appendChild(a).appendChild(l).appendChild(s),t}function We({open:e,onFormSubmitted:n,...t}){const r=t.options,o=Te(()=>({__html:je().outerHTML}),[]),[i,a]=Se(null),l=Fe(()=>{i&&(clearTimeout(i),a(null)),n()},[i]),s=Fe((e,r)=>{t.onSubmitSuccess(e,r),a(setTimeout(()=>{n(),a(null)},5e3))},[n]);return q(z,null,i?q("div",{class:"success__position",onClick:l},q("div",{class:"success__content"},r.successMessageText,q("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):q("dialog",{class:"dialog",onClick:r.onFormClose,open:e},q("div",{class:"dialog__position"},q("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},q(qe,{options:r}),q($e,{...t,onSubmitSuccess:s})))))}function Ge(e){const n=t.createElement("style");return n.textContent="\n:host {\n  --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: 0;\n  inset: 0;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0;\n  height: 100vh;\n  width: 100vw;\n\n  color: var(--dialog-color, var(--foreground));\n  fill: var(--dialog-color, var(--foreground));\n  line-height: 1.75em;\n\n  background-color: rgba(0, 0, 0, 0.05);\n  border: none;\n  inset: 0;\n  opacity: 1;\n  transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n  position: fixed;\n  z-index: var(--z-index);\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  display: flex;\n  max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n  .dialog__position {\n    inset: var(--page-margin);\n    padding: 0;\n  }\n}\n\n.dialog__position:has(.editor) {\n  inset: var(--page-margin);\n  padding: 0;\n}\n\n.dialog:not([open]) {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n  transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  padding: var(--dialog-padding, 24px);\n  max-width: 100%;\n  width: 100%;\n  max-height: 100%;\n  overflow: auto;\n\n  background: var(--dialog-background, var(--background));\n  border-radius: var(--dialog-border-radius, 20px);\n  border: var(--dialog-border, var(--border));
4\n  box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n  transform: translate(0, 0) scale(1);\n  transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\n}\n.dialog__title {\n  align-self: center;\n  width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n  .dialog__title {\n    width: auto;\n  }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n  width: auto;\n}\n\n\n.brand-link {\n  display: inline-flex;\n}\n.brand-link:focus-visible {\n  outline: var(--outline);\n}\n\n\n.form {\n  display: flex;\n  overflow: auto;\n  flex-direction: row;\n  gap: 16px;\n  flex: 1 0;\n}\n\n.form fieldset {\n  border: none;\n  margin: 0;\n  padding: 0;\n}\n\n.form__right {\n  flex: 0 0 auto;\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n  width: var(--form-width, 272px);\n}\n\n.form__top {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.form__error-container {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: flex;\n  gap: 4px;\n  align-items: center;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  font-family: inherit;\n  line-height: inherit;\n  background: transparent;\n  box-sizing: border-box;\n  border: var(--input-border, var(--border));\n  border-radius: var(--input-border-radius, 6px);\n  color: var(--input-color, inherit);\n  fill: var(--input-color, inherit);\n  font-size: var(--input-font-size, inherit);\n  font-weight: var(--input-font-weight, 500);\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  opacity: 0.65;\n  color: var(--input-placeholder-color, inherit);\n  filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n  outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.error {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n\n.btn-group {\n  display: grid;\n  gap: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--button-font-size, inherit);\n  font-weight: var(--button-font-weight, 600);\n  padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  color: var(--button-primary-color, var(--accent-foreground));\n  fill: var(--button-primary-color, var(--accent-foreground));\n  background: var(--button-primary-background, var(--accent-background));\n  border: var(--button-primary-border, var(--border));\n  border-radius: var(--button-primary-border-radius, 6px);\n  font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n  color: var(--button-primary-hover-color, var(--accent-foreground));\n  fill: var(--button-primary-hover-color, var(--accent-foreground));\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n  outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-background, var(--background));\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n  outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n  position: fixed;\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  z-index: var(--z-index);\n}\n.success__content {\n  background: var(--success-background, var(--background));\n  border: var(--success-border, var(--border));\n  border-radius: var(--success-border-radius, 1.7em/50%);
4\n  box-shadow: var(--success-box-shadow, var(--box-shadow));\n  font-weight: var(--success-font-weight, 600);\n  color: var(--success-color);\n  fill: var(--success-color);\n  padding: 12px 24px;\n  line-height: 1.75em;\n\n  display: grid;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 6px;\n  cursor: default;\n}\n\n.success__icon {\n  display: flex;\n}\n\n",e&&n.setAttribute("nonce",e),n}function Ze(){const n=(0,e.getCurrentScope)().getUser(),t=(0,e.getIsolationScope)().getUser(),r=(0,e.getGlobalScope)().getUser();return n&&Object.keys(n).length?n:t&&Object.keys(t).length?t:r}const Ye=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:n,screenshotIntegration:r,sendFeedback:o,shadow:i})=>{const a=i,l=n.useSentryUser,s=Ze(),c=t.createElement("div"),u=Ge(n.styleNonce);let d="";const _={get el(){return c},appendToDom(){a.contains(u)||a.contains(c)||(a.appendChild(u),a.appendChild(c))},removeFromDom(){c.remove(),u.remove(),t.body.style.overflow=d},open(){p(!0),n.onFormOpen?.(),(0,e.getClient)()?.emit("openFeedbackWidget"),d=t.body.style.overflow,t.body.style.overflow="hidden"},close(){p(!1),t.body.style.overflow=d}},h=r?.createInput({h:q,hooks:Ae,dialog:_,options:n}),p=e=>{ce(q(We,{options:n,screenshotInput:h,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,defaultName:String(l&&s?.[l.name]||""),defaultEmail:String(l&&s?.[l.email]||""),onFormClose:()=>{p(!1),n.onFormClose?.()},onSubmit:o,onSubmitSuccess:(e,t)=>{p(!1),n.onSubmitSuccess?.(e,t)},onSubmitError:e=>{n.onSubmitError?.(e)},onFormSubmitted:()=>{n.onFormSubmitted?.()},open:e}),c)};return _}});function Xe({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function Je(e){const n=t.createElement("style"),r="#1A141F",o="#302735";return n.textContent=`\n.editor {\n  display: flex;\n  flex-grow: 1;\n  flex-direction: column;\n}\n\n.editor__image-container {\n  justify-items: center;\n  padding: 15px;\n  position: relative;\n  height: 100%;\n  border-radius: var(--menu-border-radius, 6px);\n\n  background-color: ${r};\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ${r} 8px,\n      ${r} 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ${o} 15px,\n      ${o} 16px\n    );\n}\n\n.editor__canvas-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.editor__canvas-container > * {\n  object-fit: contain;\n  position: absolute;\n}\n\n.editor__tool-container {\n  padding-top: 8px;\n  display: flex;\n  justify-content: center;\n}\n\n.editor__tool-bar {\n  display: flex;\n  gap: 8px;\n}\n\n.editor__tool {\n  display: flex;\n  padding: 8px 12px;\n  justify-content: center;\n  align-items: center;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  background: var(--button-background, var(--background));\n  color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n  background: var(--button-primary-background, var(--accent-background));\n  color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n  position: absolute;\n  z-index: 2;\n}\n\n.editor__rect button {\n  opacity: 0;\n  position: absolute;\n  top: -12px;\n  right: -12px;\n  cursor: pointer;\n  padding: 0;\n  z-index: 3;\n  border: none;\n  background: none;\n}\n\n.editor__rect:hover button {\n  opacity: 1;\n}\n`,e&&n.setAttribute("nonce",e),n}function Ke({h:e}){return function({action:n,setAction:t,options:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:"editor__tool "+("highlight"===n?"editor__tool--active":""),onClick:()=>{t("highlight"===n?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:"editor__tool "+("hide"===n?"editor__tool--active":""),onClick:()=>{t("hide"===n?"":"hide")}},r.hideToolText)))}}function Qe({hooks:e}){function o(){const[t,r]=e.useState(n.devicePixelRatio??1);return e.useEffect(()=>{const e=()=>{r(n.devicePixelRatio)},t=matchMedia(`(resolution: ${n.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}return function({onBeforeScreenshot:i,onScreenshot:a,onAfterScreenshot:l,onError:s}){const c=o();e.useEffect(()=>{(async()=>{i();const e=await r.mediaDevices.getDisplayMedia({video:{width:n.innerWidth*c,height:n.innerHeight*c},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=t.createElement("video");await new Promise((n,t)=>{o.srcObject=e,o.onloadedmetadata=()=>
4{a(o,c),e.getTracks().forEach(e=>e.stop()),n()},o.play().catch(t)}),l()})().catch(s)},[])}}function en(e,n,t){switch(e.type){case"highlight":n.shadowColor="rgba(0, 0, 0, 0.7)",n.shadowBlur=50,n.fillStyle=t,n.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),n.clearRect(e.x,e.y,e.w,e.h);break;case"hide":n.fillStyle="rgb(0, 0, 0)",n.fillRect(e.x,e.y,e.w,e.h)}}function nn(e,n,t){if(!e)return;const r=e.getContext("2d",n);r&&t(e,r)}function tn(e,n){nn(e,{alpha:!0},(e,t)=>{t.drawImage(n,0,0,n.width,n.height,0,0,e.width,e.height)})}function rn(e,n,t){nn(e,{alpha:!0},(e,r)=>{t.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),t.forEach(e=>{en(e,r,n)})})}function on({h:e,hooks:r,outputBuffer:o,dialog:i,options:a}){const l=Qe({hooks:r}),s=Ke({h:e}),c=Xe({h:e}),u={__html:Je(a.styleNonce).innerText},d=i.el.style,_=({screenshot:i})=>{const[l,d]=r.useState("highlight"),[_,h]=r.useState([]),p=r.useRef(null),f=r.useRef(null),g=r.useRef(null),m=r.useRef(null),[b,v]=r.useState(1),y=r.useMemo(()=>{const e=t.getElementById(a.id);if(!e)return"white";const n=getComputedStyle(e);return n.getPropertyValue("--button-primary-background")||n.getPropertyValue("--accent-background")},[a.id]);r.useLayoutEffect(()=>{const e=()=>{const n=p.current;n&&(nn(i.canvas,{alpha:!1},e=>{const t=Math.min(n.clientWidth/e.width,n.clientHeight/e.height);v(t)}),0!==n.clientHeight&&0!==n.clientWidth||setTimeout(e,0))};return e(),n.addEventListener("resize",e),()=>{n.removeEventListener("resize",e)}},[i]);const x=r.useCallback((e,n)=>{nn(e,{alpha:!0},(e,t)=>{t.scale(n,n),e.width=i.canvas.width,e.height=i.canvas.height})},[i]);r.useEffect(()=>{x(f.current,i.dpi),tn(f.current,i.canvas)},[i]),r.useEffect(()=>{x(g.current,i.dpi),nn(g.current,{alpha:!0},(e,n)=>{n.clearRect(0,0,e.width,e.height)}),rn(g.current,y,_)},[_,y]),r.useEffect(()=>{x(o,i.dpi),tn(o,i.canvas),nn(t.createElement("canvas"),{alpha:!0},(e,n)=>{n.scale(i.dpi,i.dpi),e.width=i.canvas.width,e.height=i.canvas.height,rn(e,y,_),tn(o,e)})},[_,i,y]);const w=r.useCallback(e=>n=>{n.preventDefault(),n.stopPropagation(),h(n=>{const t=[...n];return t.splice(e,1),t})},[]),k={width:i.canvas.width*b+"px",height:i.canvas.height*b+"px"},C=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:a.styleNonce,dangerouslySetInnerHTML:u}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:p},e("canvas",{ref:f,id:"background",style:k}),e("canvas",{ref:g,id:"foreground",style:k}),e("div",{ref:m,onMouseDown:e=>{if(!l||!m.current)return;const n=m.current.getBoundingClientRect(),r={type:l,x:e.offsetX/b,y:e.offsetY/b},o=(e,t)=>{const r=(t.clientX-n.x)/b,o=(t.clientY-n.y)/b;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,o),w:Math.abs(r-e.x),h:Math.abs(o-e.y)}},i=e=>{nn(g.current,{alpha:!0},(e,n)=>{n.clearRect(0,0,e.width,e.height)}),rn(g.current,y,[..._,o(r,e)])},a=e=>{const n=o(r,e);n.w*b>=1&&n.h*b>=1&&h(e=>[...e,n]),t.removeEventListener("mousemove",i),t.removeEventListener("mouseup",a)};t.addEventListener("mousemove",i),t.addEventListener("mouseup",a)},style:k},_.map((n,t)=>e("div",{key:t,class:"editor__rect",style:{top:n.y*b+"px",left:n.x*b+"px",width:n.w*b+"px",height:n.h*b+"px"}},e("button",{"aria-label":a.removeHighlightText,onClick:w(t),onMouseDown:C,onMouseUp:C,type:"button"},e(c,null))))))),e(s,{options:a,action:l,setAction:d}))};return function({onError:n}){const[i,a]=r.useState();return l({onBeforeScreenshot:r.useCallback(()=>{d.display="none"},[]),onScreenshot:r.useCallback((e,n)=>{nn(t.createElement("canvas"),{alpha:!1},(t,r)=>{r.scale(n,n),t.width=e.videoWidth,t.height=e.videoHeight,r.drawImage(e,0,0,t.width,t.height),a({canvas:t,dpi:n})}),o.width=e.videoWidth,o.height=e.videoHeight},[]),onAfterScreenshot:r.useCallback(()=>{d.display="block"},[]),onError:r.useCallback(e=>{d.display="block",n(e)},[])}),i?e(_,{screenshot:i}):e("div",null)}}const an=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:n,dialog:r,options:o})=>{const i=t.createElement("canvas");return{input:on({h:e,hooks:n,outputBuffer:i,dialog:r,options:o}),value:async()=>{const e=await new Promise(e=>
4{i.toBlob(e,"image/png")});if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}})},1539,[1540]);
5__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return t.registerSpanErrorInstrumentation}}),Object.defineProperty(_e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.getCapturedScopesOnSpan}}),Object.defineProperty(_e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return n.markSpanForOtelSourceInference}}),Object.defineProperty(_e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.setCapturedScopesOnSpan}}),Object.defineProperty(_e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return n.spanShouldInferOtelSource}}),Object.defineProperty(_e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return o.TRACING_DEFAULTS}}),Object.defineProperty(_e,"startIdleSpan",{enumerable:!0,get:function(){return o.startIdleSpan}}),Object.defineProperty(_e,"SentrySpan",{enumerable:!0,get:function(){return u.SentrySpan}}),Object.defineProperty(_e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return c.SentryNonRecordingSpan}}),Object.defineProperty(_e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return b.SPAN_STATUS_ERROR}}),Object.defineProperty(_e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return b.SPAN_STATUS_OK}}),Object.defineProperty(_e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return b.SPAN_STATUS_UNSET}}),Object.defineProperty(_e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return b.getSpanStatusFromHttpCode}}),Object.defineProperty(_e,"setHttpStatus",{enumerable:!0,get:function(){return b.setHttpStatus}}),Object.defineProperty(_e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return f.SUPPRESS_TRACING_KEY}}),Object.defineProperty(_e,"continueTrace",{enumerable:!0,get:function(){return f.continueTrace}}),Object.defineProperty(_e,"isTracingSuppressed",{enumerable:!0,get:function(){return f.isTracingSuppressed}}),Object.defineProperty(_e,"startInactiveSpan",{enumerable:!0,get:function(){return f.startInactiveSpan}}),Object.defineProperty(_e,"startNewTrace",{enumerable:!0,get:function(){return f.startNewTrace}}),Object.defineProperty(_e,"startSpan",{enumerable:!0,get:function(){return f.startSpan}}),Object.defineProperty(_e,"startSpanManual",{enumerable:!0,get:function(){return f.startSpanManual}}),Object.defineProperty(_e,"suppressTracing",{enumerable:!0,get:function(){return f.suppressTracing}}),Object.defineProperty(_e,"withActiveSpan",{enumerable:!0,get:function(){return f.withActiveSpan}}),Object.defineProperty(_e,"bindScopeToEmitter",{enumerable:!0,get:function(){return p.bindScopeToEmitter}}),Object.defineProperty(_e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromClient}}),Object.defineProperty(_e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromScope}}),Object.defineProperty(_e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromSpan}}),Object.defineProperty(_e,"spanToBaggageHeader",{enumerable:!0,get:function(){return l.spanToBaggageHeader}}),Object.defineProperty(_e,"setMeasurement",{enumerable:!0,get:function(){return d.setMeasurement}}),Object.defineProperty(_e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return d.timedEventsToMeasurements}}),Object.defineProperty(_e,"sampleSpan",{enumerable:!0,get:function(){return s.sampleSpan}}),Object.defineProperty(_e,"logSpanEnd",{enumerable:!0,get:function(){return T.logSpanEnd}}),Object.defineProperty(_e,"logSpanStart",{enumerable:!0,get:function(){return T.logSpanStart}}),Object.defineProperty(_e,"captureSpan",{enumerable:!0,get:function(){return E.captureSpan}}),Object.defineProperty(_e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return E.safeSetSpanJSONAttributes}}),Object.defineProperty(_e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return O.GEN_AI_CONVERSATION_ID_ATTRIBUTE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_HIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_KEY}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_PROFILE_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_OP}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_URL_FULL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_EMAIL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_USERNAME}}),Object.defineProperty(_e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return O.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE}}),Object.defineProperty(_e,"createEventEnvelope",{enumerable:!0,get:function(){return P.createEventEnvelope}}),Object.defineProperty(_e,"createSessionEnvelope",{enumerable:!0,get:function(){return P.createSessionEnvelope}}),Object.defineProperty(_e,"createSpanEnvelope",{enumerable:!0,get:function(){return P.createSpanEnvelope}}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return S.addEventProcessor}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return S.captureCheckIn}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return S.captureEvent}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return S.captureException}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return S.captureMessage}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return S.captureSession}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return S.close}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return S.endSession}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return S.flush}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return S.isEnabled}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return S.isInitialized}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return S.lastEventId}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return S.setAttribute}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return S.setAttributes}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return S.setContext}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return S.setConversationId}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return S.setExtra}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return S.setExtras}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return S.setTag}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return S.setTags}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return S.setUser}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return S.startSession}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return S.withMonitor}}),Object.defineProperty(_e,"getClient",{enumerable:!0,get:function(){return y.getClient}}),Object.defineProperty(_e,"getCurrentScope",{enumerable:!0,get:function(){return y.getCurrentScope}}),Object.defineProperty(_e,"getExternalPropagationContext",{enumerable:!0,get:function(){return y.getExternalPropagationContext}}),Object.defineProperty(_e,"getGlobalScope",{enumerable:!0,get:function(){return y.getGlobalScope}}),Object.defineProperty(_e,"getIsolationScope",{enumerable:!0,get:function(){return y.getIsolationScope}}),Object.defineProperty(_e,"getTraceContextFromScope",{enumerable:!0,get:function(){return y.getTraceContextFromScope}}),Object.defineProperty(_e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return y.hasExternalPropagationContext}}),Object.defineProperty(_e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return y.registerExternalPropagationContext}}),Object.defineProperty(_e,"withIsolationScope",{enumerable:!0,get:function(){return y.withIsolationScope}}),Object.defineProperty(_e,"withScope",{enumerable:!0,get:function(){return y.withScope}}),Object.defineProperty(_e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return _.getDefaultCurrentScope}}),Object.defineProperty(_e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return _.getDefaultIsolationScope}}),Object.defineProperty(_e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return j.getAsyncContextStrategy}}),Object.defineProperty(_e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return j.setAsyncContextStrategy}}),Object.defineProperty(_e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return I._INTERNAL_createTracingChannelBinding}}
5),Object.defineProperty(_e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return I.waitForTracingChannelBinding}}),Object.defineProperty(_e,"getGlobalSingleton",{enumerable:!0,get:function(){return N.getGlobalSingleton}}),Object.defineProperty(_e,"getMainCarrier",{enumerable:!0,get:function(){return N.getMainCarrier}}),Object.defineProperty(_e,"closeSession",{enumerable:!0,get:function(){return A.closeSession}}),Object.defineProperty(_e,"makeSession",{enumerable:!0,get:function(){return A.makeSession}}),Object.defineProperty(_e,"updateSession",{enumerable:!0,get:function(){return A.updateSession}}),Object.defineProperty(_e,"Scope",{enumerable:!0,get:function(){return R.Scope}}),Object.defineProperty(_e,"notifyEventProcessors",{enumerable:!0,get:function(){return C.notifyEventProcessors}}),Object.defineProperty(_e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return M.SENTRY_API_VERSION}}),Object.defineProperty(_e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return M.getEnvelopeEndpointWithUrlEncodedAuth}}),Object.defineProperty(_e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return M.getReportDialogEndpoint}}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return U.Client}}),Object.defineProperty(_e,"initAndBind",{enumerable:!0,get:function(){return L.initAndBind}}),Object.defineProperty(_e,"setCurrentClient",{enumerable:!0,get:function(){return L.setCurrentClient}}),Object.defineProperty(_e,"createTransport",{enumerable:!0,get:function(){return F.createTransport}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return v.makeOfflineTransport}}),Object.defineProperty(_e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return h.MULTIPLEXED_TRANSPORT_EXTRA_KEY}}),Object.defineProperty(_e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return h.makeMultiplexedTransport}}),Object.defineProperty(_e,"addIntegration",{enumerable:!0,get:function(){return B.addIntegration}}),Object.defineProperty(_e,"defineIntegration",{enumerable:!0,get:function(){return B.defineIntegration}}),Object.defineProperty(_e,"extendIntegration",{enumerable:!0,get:function(){return B.extendIntegration}}),Object.defineProperty(_e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return B.getIntegrationsToSetup}}),Object.defineProperty(_e,"installedIntegrations",{enumerable:!0,get:function(){return B.installedIntegrations}}),Object.defineProperty(_e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return H._INTERNAL_clearAiProviderSkips}}),Object.defineProperty(_e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return H._INTERNAL_shouldSkipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return H._INTERNAL_skipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_filterKeyValueData",{enumerable:!0,get:function(){return D.filterKeyValueData}}),Object.defineProperty(_e,"_INTERNAL_filterCookies",{enumerable:!0,get:function(){return G.filterCookies}}),Object.defineProperty(_e,"_INTERNAL_filterQueryParams",{enumerable:!0,get:function(){return x.filterQueryParams}}),Object.defineProperty(_e,"envToBool",{enumerable:!0,get:function(){return k.envToBool}}),Object.defineProperty(_e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return Y.applyScopeDataToEvent}}),Object.defineProperty(_e,"getCombinedScopeData",{enumerable:!0,get:function(){return Y.getCombinedScopeData}}),Object.defineProperty(_e,"mergeScopeData",{enumerable:!0,get:function(){return Y.mergeScopeData}}),Object.defineProperty(_e,"prepareEvent",{enumerable:!0,get:function(){return w.prepareEvent}}),Object.defineProperty(_e,"createCheckInEnvelope",{enumerable:!0,get:function(){return q.createCheckInEnvelope}}),Object.defineProperty(_e,"hasSpansEnabled",{enumerable:!0,get:function(){return K.hasSpansEnabled}}),Object.defineProperty(_e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return z.isStreamedBeforeSendSpanCallback}}),Object.defineProperty(_e,"withStreamedSpan",{enumerable:!0,get:function(){return z.withStreamedSpan}}),Object.defineProperty(_e,"isSentryRequestUrl",{enumerable:!0,get:function(){return V.isSentryRequestUrl}}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return W.handleCallbackErrors}}),Object.defineProperty(_e,"fmt",{enumerable:!0,get:function(){return X.fmt}}),Object.defineProperty(_e,"parameterize",{enumerable:!0,get:function(){return X.parameterize}}),Object.defineProperty(_e,"handleTunnelRequest",{enumerable:!0,get:function(){return Q.handleTunnelRequest}}),Object.defineProperty(_e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return J.addAutoIpAddressToSession}}),Object.defineProperty(_e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return J.addAutoIpAddressToUser}}),Object.defineProperty(_e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return Z.INTERNAL_getSegmentSpan}}),Object.defineProperty(_e,"addChildSpanToSpan",{enumerable:!0,get:function(){return Z.addChildSpanToSpan}}),Object.defineProperty(_e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return Z.convertSpanLinksForEnvelope}}),Object.defineProperty(_e,"getActiveSpan",{enumerable:!0,get:function(){return Z.getActiveSpan}}),Object.defineProperty(_e,"getRootSpan",{enumerable:!0,get:function(){return Z.getRootSpan}}),Object.defineProperty(_e,"getSpanDescendants",{enumerable:!0,get:function(){return Z.getSpanDescendants}}),Object.defineProperty(_e,"getStatusMessage",{enumerable:!0,get:function(){return Z.getStatusMessage}}),Object.defineProperty(_e,"spanIsSampled",{enumerable:!0,get:function(){return Z.spanIsSampled}}),Object.defineProperty(_e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return Z.spanTimeInputToSeconds}}),Object.defineProperty(_e,"spanToJSON",{enumerable:!0,get:function(){return Z.spanToJSON}}),Object.defineProperty(_e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return Z.spanToStreamedSpanJSON}}),Object.defineProperty(_e,"spanToTraceContext",{enumerable:!0,get:function(){return Z.spanToTraceContext}}),Object.defineProperty(_e,"spanToTraceHeader",{enumerable:!0,get:function(){return Z.spanToTraceHeader}}),Object.defineProperty(_e,"updateSpanName",{enumerable:!0,get:function(){return Z.updateSpanName}}),Object.defineProperty(_e,"_INTERNAL_setSpanForScope",{enumerable:!0,get:function(){return $._setSpanForScope}}),Object.defineProperty(_e,"parseSampleRate",{enumerable:!0,get:function(){return ee.parseSampleRate}}),Object.defineProperty(_e,"applySdkMetadata",{enumerable:!0,get:function(){return te.applySdkMetadata}}),Object.defineProperty(_e,"getTraceData",{enumerable:!0,get:function(){return re.getTraceData}}),Object.defineProperty(_e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return ne.shouldPropagateTraceForUrl}}),Object.defineProperty(_e,"getTraceMetaTags",{enumerable:!0,get:function(){return oe.getTraceMetaTags}}),Object.defineProperty(_e,"debounce",{enumerable:!0,get:function(){return ue.debounce}}),Object.defineProperty(_e,"derefWeakRef",{enumerable:!0,get:function(){return ie.derefWeakRef}}),Object.defineProperty(_e,"makeWeakRef",{enumerable:!0,get:function(){return ie.makeWeakRef}}),Object.defineProperty(_e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return ae.shouldIgnoreSpan}}),Object.defineProperty(_e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return ce.MAX_BODY_BYTE_LENGTH}}),Object.defineProperty(_e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return ce.captureBodyFromWinterCGRequest}}),Object.defineProperty(_e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return ce.extractQueryParamsFromUrl}}
5),Object.defineProperty(_e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return ce.getMaxBodyByteLength}}),Object.defineProperty(_e,"headersToDict",{enumerable:!0,get:function(){return ce.headersToDict}}),Object.defineProperty(_e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return ce.httpHeadersToSpanAttributes}}),Object.defineProperty(_e,"httpRequestToRequestData",{enumerable:!0,get:function(){return ce.httpRequestToRequestData}}),Object.defineProperty(_e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return ce.winterCGHeadersToDict}}),Object.defineProperty(_e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return ce.winterCGRequestToRequestData}}),Object.defineProperty(_e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEFAULT_ENVIRONMENT}}),Object.defineProperty(_e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEV_ENVIRONMENT}}),Object.defineProperty(_e,"SPAN_KIND",{enumerable:!0,get:function(){return fe.SPAN_KIND}}),Object.defineProperty(_e,"spanKindToName",{enumerable:!0,get:function(){return fe.spanKindToName}}),Object.defineProperty(_e,"addBreadcrumb",{enumerable:!0,get:function(){return pe.addBreadcrumb}}),Object.defineProperty(_e,"functionToStringIntegration",{enumerable:!0,get:function(){return le.functionToStringIntegration}}),Object.defineProperty(_e,"eventFiltersIntegration",{enumerable:!0,get:function(){return de.eventFiltersIntegration}}),Object.defineProperty(_e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return de.inboundFiltersIntegration}}),Object.defineProperty(_e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return ge.linkedErrorsIntegration}}),Object.defineProperty(_e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return me.moduleMetadataIntegration}}),Object.defineProperty(_e,"requestDataIntegration",{enumerable:!0,get:function(){return se.requestDataIntegration}}),Object.defineProperty(_e,"captureConsoleIntegration",{enumerable:!0,get:function(){return Te.captureConsoleIntegration}}),Object.defineProperty(_e,"dedupeIntegration",{enumerable:!0,get:function(){return Ee.dedupeIntegration}}),Object.defineProperty(_e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return Oe.extraErrorDataIntegration}}),Object.defineProperty(_e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return Pe.rewriteFramesIntegration}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return Se.instrumentSupabaseClient}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return Se.supabaseIntegration}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return ye.zodErrorsIntegration}}),Object.defineProperty(_e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return je.thirdPartyErrorFilterIntegration}}),Object.defineProperty(_e,"consoleIntegration",{enumerable:!0,get:function(){return Ie.consoleIntegration}}),Object.defineProperty(_e,"featureFlagsIntegration",{enumerable:!0,get:function(){return Ne.featureFlagsIntegration}}),Object.defineProperty(_e,"growthbookIntegration",{enumerable:!0,get:function(){return Ae.growthbookIntegration}}),Object.defineProperty(_e,"conversationIdIntegration",{enumerable:!0,get:function(){return Re.conversationIdIntegration}}),Object.defineProperty(_e,"profiler",{enumerable:!0,get:function(){return Ce.profiler}}),Object.defineProperty(_e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return Me._INTERNAL_getTracingHeadersForFetchRequest}}),Object.defineProperty(_e,"instrumentFetchRequest",{enumerable:!0,get:function(){return Me.instrumentFetchRequest}}),Object.defineProperty(_e,"captureFeedback",{enumerable:!0,get:function(){return Ue.captureFeedback}}),Object.defineProperty(_e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureLog}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureSerializedLog}}),Object.defineProperty(_e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return Le._INTERNAL_flushLogsBuffer}}),Object.defineProperty(_e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return ve.consoleLoggingIntegration}}),Object.defineProperty(_e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return he._INTERNAL_captureMetric}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return he._INTERNAL_captureSerializedMetric}}),Object.defineProperty(_e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return he._INTERNAL_flushMetricsBuffer}}),Object.defineProperty(_e,"createConsolaReporter",{enumerable:!0,get:function(){return He.createConsolaReporter}}),Object.defineProperty(_e,"addVercelAiProcessors",{enumerable:!0,get:function(){return De.addVercelAiProcessors}}),Object.defineProperty(_e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return De.getProviderMetadataAttributes}}),Object.defineProperty(_e,"getTruncatedJsonString",{enumerable:!0,get:function(){return Ge.getTruncatedJsonString}}),Object.defineProperty(_e,"shouldEnableTruncation",{enumerable:!0,get:function(){return Ge.shouldEnableTruncation}}),Object.defineProperty(_e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE}}),Object.defineProperty(_e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE}}),Object.defineProperty(_e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return ke._INTERNAL_cleanupToolCallSpanContext}}),Object.defineProperty(_e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return ke._INTERNAL_getSpanContextForToolCallId}}),Object.defineProperty(_e,"_INTERNAL_toolCallSpanContextMap",{enumerable:!0,get:function(){return Ye.toolCallSpanContextMap}}),Object.defineProperty(_e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return we.instrumentOpenAiClient}}),Object.defineProperty(_e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return qe.OPENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return Ke.instrumentAnthropicAiClient}}),Object.defineProperty(_e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return ze.ANTHROPIC_AI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return Ve.instrumentGoogleGenAIClient}}),Object.defineProperty(_e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return We.GOOGLE_GENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return Xe.createLangChainCallbackHandler}}),Object.defineProperty(_e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return Qe._INTERNAL_mergeLangChainCallbackHandler}}),Object.defineProperty(_e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return Je.LANGCHAIN_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return Ze.instrumentCreateReactAgent}}),Object.defineProperty(_e,"instrumentLangGraph",{enumerable:!0,get:function(){return Ze.instrumentLangGraph}}),Object.defineProperty(_e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return Ze.instrumentStateGraphCompile}}),Object.defineProperty(_e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return $e.LANGGRAPH_INTEGRATION_NAME}}),Object.defineProperty(_e,"SpanBuffer",{enumerable:!0,get:function(){return et.SpanBuffer}}),Object.defineProperty(_e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return tt.hasSpanStreamingEnabled}}),Object.defineProperty(_e,"spanStreamingIntegration",{enumerable:!0,get:function(){return rt.spanStreamingIntegration}}),Object.defineProperty(_e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return nt._INTERNAL_FLAG_BUFFER_SIZE}}),Object.defineProperty(_e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return nt._INTERNAL_MAX_FLAGS_PER_SPAN}}),Object.defineProperty(_e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return nt._INTERNAL_addFeatureFlagToActiveSpan}}),Object.defineProperty(_e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return nt._INTERNAL_copyFlagsFromScopeToEvent}}),Object.defineProperty(_e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return nt._INTERNAL_insertFlagToScope}}),Object.defineProperty(_e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return ot.applyAggregateErrorsToEvent}}),Object.defineProperty(_e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return ut.getBreadcrumbLogLevelFromHttpStatusCode}}),Object.defineProperty(_e,"dsnFromString",{enumerable:!0,get:function(){return it.dsnFromString}}),Object.defineProperty(_e,"dsnToString",{enumerable:!0,get:function(){return it.dsnToString}}),Object.defineProperty(_e,"makeDsn",{enumerable:!0,get:function(){return it.makeDsn}}),Object.defineProperty(_e,"SentryError",{enumerable:!0,get:function(){return at.SentryError}}),Object.defineProperty(_e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return ct.GLOBAL_OBJ}}),Object.defineProperty(_e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationFilter}}),Object.defineProperty(_e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationHandler}}),Object.defineProperty(_e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchEndInstrumentationHandler}}),Object.defineProperty(_e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return pt.addGlobalErrorInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return lt.addGlobalUnhandledRejectionInstrumentationHandler}}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return dt.addHandler}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return dt.maybeInstrument}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return dt.resetInstrumentationHandlers}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return dt.triggerHandlers}}),Object.defineProperty(_e,"isDOMError",{enumerable:!0,get:function(){return gt.isDOMError}}),Object.defineProperty(_e,"isDOMException",{enumerable:!0,get:function(){return gt.isDOMException}}),Object.defineProperty(_e,"isElement",{enumerable:!0,get:function(){return gt.isElement}}),Object.defineProperty(_e,"isError",{enumerable:!0,get:function(){return gt.isError}}),Object.defineProperty(_e,"isErrorEvent",{enumerable:!0,get:function(){return gt.isErrorEvent}}),Object.defineProperty(_e,"isEvent",{enumerable:!0,get:function(){return gt.isEvent}}),Object.defineProperty(_e,"isInstanceOf",{enumerable:!0,get:function(){return gt.isInstanceOf}}),Object.defineProperty(_e,"isParameterizedString",{enumerable:!0,get:function(){return gt.isParameterizedString}}),Object.defineProperty(_e,"isPlainObject",{enumerable:!0,get:function(){return gt.isPlainObject}}),Object.defineProperty(_e,"isPrimitive",{enumerable:!0,get:function(){return gt.isPrimitive}}),Object.defineProperty(_e,"isRegExp",{enumerable:!0,get:function(){return gt.isRegExp}}),Object.defineProperty(_e,"isString",{enumerable:!0,get:function(){return gt.isString}}),Object.defineProperty(_e,"isSyntheticEvent",{enumerable:!0,get:function(){return gt.isSyntheticEvent}}),Object.defineProperty(_e,"isThenable",{enumerable:!0,get:function(){return gt.isThenable}}),Object.defineProperty(_e,"isVueViewModel",{enumerable:!0,get:function(){return gt.isVueViewModel}}),Object.defineProperty(_e,"isBrowser",{enumerable:!0,get:function(){return mt.isBrowser}}
5),Object.defineProperty(_e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return st.CONSOLE_LEVELS}}),Object.defineProperty(_e,"consoleSandbox",{enumerable:!0,get:function(){return st.consoleSandbox}}),Object.defineProperty(_e,"debug",{enumerable:!0,get:function(){return st.debug}}),Object.defineProperty(_e,"originalConsoleMethods",{enumerable:!0,get:function(){return st.originalConsoleMethods}}),Object.defineProperty(_e,"addContextToFrame",{enumerable:!0,get:function(){return Tt.addContextToFrame}}),Object.defineProperty(_e,"addExceptionMechanism",{enumerable:!0,get:function(){return Tt.addExceptionMechanism}}),Object.defineProperty(_e,"addExceptionTypeValue",{enumerable:!0,get:function(){return Tt.addExceptionTypeValue}}),Object.defineProperty(_e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return Tt.checkOrSetAlreadyCaught}}),Object.defineProperty(_e,"getEventDescription",{enumerable:!0,get:function(){return Tt.getEventDescription}}),Object.defineProperty(_e,"isAlreadyCaptured",{enumerable:!0,get:function(){return Tt.isAlreadyCaptured}}),Object.defineProperty(_e,"parseSemver",{enumerable:!0,get:function(){return Tt.parseSemver}}),Object.defineProperty(_e,"uuid4",{enumerable:!0,get:function(){return Tt.uuid4}}),Object.defineProperty(_e,"normalize",{enumerable:!0,get:function(){return Et.normalize}}),Object.defineProperty(_e,"normalizeToSize",{enumerable:!0,get:function(){return Et.normalizeToSize}}),Object.defineProperty(_e,"normalizeUrlToBase",{enumerable:!0,get:function(){return Et.normalizeUrlToBase}}),Object.defineProperty(_e,"setNormalizeStringifier",{enumerable:!0,get:function(){return Et.setNormalizeStringifier}}),Object.defineProperty(_e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return Ot.setNormalizationDepthOverrideHint}}),Object.defineProperty(_e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return Ot.setSkipNormalizationHint}}),Object.defineProperty(_e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return Pt.addNonEnumerableProperty}}),Object.defineProperty(_e,"convertToPlainObject",{enumerable:!0,get:function(){return Pt.convertToPlainObject}}),Object.defineProperty(_e,"dropUndefinedKeys",{enumerable:!0,get:function(){return Pt.dropUndefinedKeys}}),Object.defineProperty(_e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return Pt.extractExceptionKeysForMessage}}),Object.defineProperty(_e,"fill",{enumerable:!0,get:function(){return Pt.fill}}),Object.defineProperty(_e,"getOriginalFunction",{enumerable:!0,get:function(){return Pt.getOriginalFunction}}),Object.defineProperty(_e,"markFunctionWrapped",{enumerable:!0,get:function(){return Pt.markFunctionWrapped}}),Object.defineProperty(_e,"objectify",{enumerable:!0,get:function(){return Pt.objectify}}),Object.defineProperty(_e,"basename",{enumerable:!0,get:function(){return St.basename}}),Object.defineProperty(_e,"dirname",{enumerable:!0,get:function(){return St.dirname}}),Object.defineProperty(_e,"isAbsolute",{enumerable:!0,get:function(){return St.isAbsolute}}),Object.defineProperty(_e,"join",{enumerable:!0,get:function(){return St.join}}),Object.defineProperty(_e,"normalizePath",{enumerable:!0,get:function(){return St.normalizePath}}),Object.defineProperty(_e,"relative",{enumerable:!0,get:function(){return St.relative}}),Object.defineProperty(_e,"resolve",{enumerable:!0,get:function(){return St.resolve}}),Object.defineProperty(_e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return yt.SENTRY_BUFFER_FULL_ERROR}}),Object.defineProperty(_e,"makePromiseBuffer",{enumerable:!0,get:function(){return yt.makePromiseBuffer}}),Object.defineProperty(_e,"severityLevelFromString",{enumerable:!0,get:function(){return _t.severityLevelFromString}}),Object.defineProperty(_e,"replaceExports",{enumerable:!0,get:function(){return jt.replaceExports}}),Object.defineProperty(_e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return It.UNKNOWN_FUNCTION}}),Object.defineProperty(_e,"createStackParser",{enumerable:!0,get:function(){return It.createStackParser}}),Object.defineProperty(_e,"getFramesFromEvent",{enumerable:!0,get:function(){return It.getFramesFromEvent}}),Object.defineProperty(_e,"getFunctionName",{enumerable:!0,get:function(){return It.getFunctionName}}),Object.defineProperty(_e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return It.stackParserFromStackParserOptions}}),Object.defineProperty(_e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return It.stripSentryFramesAndReverse}}),Object.defineProperty(_e,"isMatchingPattern",{enumerable:!0,get:function(){return Nt.isMatchingPattern}}),Object.defineProperty(_e,"safeJoin",{enumerable:!0,get:function(){return Nt.safeJoin}}),Object.defineProperty(_e,"snipLine",{enumerable:!0,get:function(){return Nt.snipLine}}),Object.defineProperty(_e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return Nt.stringMatchesSomePattern}}),Object.defineProperty(_e,"truncate",{enumerable:!0,get:function(){return Nt.truncate}}),Object.defineProperty(_e,"isNativeFunction",{enumerable:!0,get:function(){return At.isNativeFunction}}
5),Object.defineProperty(_e,"supportsDOMError",{enumerable:!0,get:function(){return At.supportsDOMError}}),Object.defineProperty(_e,"supportsDOMException",{enumerable:!0,get:function(){return At.supportsDOMException}}),Object.defineProperty(_e,"supportsErrorEvent",{enumerable:!0,get:function(){return At.supportsErrorEvent}}),Object.defineProperty(_e,"supportsFetch",{enumerable:!0,get:function(){return At.supportsFetch}}),Object.defineProperty(_e,"supportsHistory",{enumerable:!0,get:function(){return At.supportsHistory}}),Object.defineProperty(_e,"supportsNativeFetch",{enumerable:!0,get:function(){return At.supportsNativeFetch}}),Object.defineProperty(_e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return At.supportsReferrerPolicy}}),Object.defineProperty(_e,"supportsReportingObserver",{enumerable:!0,get:function(){return At.supportsReportingObserver}}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return Rt.SyncPromise}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return Rt.rejectedSyncPromise}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return Rt.resolvedSyncPromise}}),Object.defineProperty(_e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return Ct.browserPerformanceTimeOrigin}}),Object.defineProperty(_e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return Ct.dateTimestampInSeconds}}),Object.defineProperty(_e,"timestampInSeconds",{enumerable:!0,get:function(){return Ct.timestampInSeconds}}),Object.defineProperty(_e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return Mt.TRACEPARENT_REGEXP}}),Object.defineProperty(_e,"extractTraceparentData",{enumerable:!0,get:function(){return Mt.extractTraceparentData}}),Object.defineProperty(_e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return Mt.generateSentryTraceHeader}}),Object.defineProperty(_e,"generateTraceparentHeader",{enumerable:!0,get:function(){return Mt.generateTraceparentHeader}}),Object.defineProperty(_e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return Mt.propagationContextFromHeaders}}),Object.defineProperty(_e,"shouldContinueTrace",{enumerable:!0,get:function(){return Mt.shouldContinueTrace}}),Object.defineProperty(_e,"getSDKSource",{enumerable:!0,get:function(){return Ut.getSDKSource}}),Object.defineProperty(_e,"isBrowserBundle",{enumerable:!0,get:function(){return Ut.isBrowserBundle}}),Object.defineProperty(_e,"addItemToEnvelope",{enumerable:!0,get:function(){return Lt.addItemToEnvelope}}),Object.defineProperty(_e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return Lt.createAttachmentEnvelopeItem}}),Object.defineProperty(_e,"createEnvelope",{enumerable:!0,get:function(){return Lt.createEnvelope}}),Object.defineProperty(_e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return Lt.createEventEnvelopeHeaders}}),Object.defineProperty(_e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return Lt.createSpanEnvelopeItem}}),Object.defineProperty(_e,"envelopeContainsItemType",{enumerable:!0,get:function(){return Lt.envelopeContainsItemType}}),Object.defineProperty(_e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return Lt.envelopeItemTypeToDataCategory}}),Object.defineProperty(_e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return Lt.forEachEnvelopeItem}}),Object.defineProperty(_e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return Lt.getSdkMetadataForEnvelopeHeader}}),Object.defineProperty(_e,"parseEnvelope",{enumerable:!0,get:function(){return Lt.parseEnvelope}}),Object.defineProperty(_e,"serializeEnvelope",{enumerable:!0,get:function(){return Lt.serializeEnvelope}}),Object.defineProperty(_e,"createClientReportEnvelope",{enumerable:!0,get:function(){return Ft.createClientReportEnvelope}}),Object.defineProperty(_e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return vt.DEFAULT_RETRY_AFTER}}),Object.defineProperty(_e,"disabledUntil",{enumerable:!0,get:function(){return vt.disabledUntil}}),Object.defineProperty(_e,"isRateLimited",{enumerable:!0,get:function(){return vt.isRateLimited}}),Object.defineProperty(_e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return vt.parseRetryAfterHeader}}),Object.defineProperty(_e,"updateRateLimits",{enumerable:!0,get:function(){return vt.updateRateLimits}}),Object.defineProperty(_e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return ht.MAX_BAGGAGE_STRING_LENGTH}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return ht.SENTRY_BAGGAGE_KEY_PREFIX}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return ht.SENTRY_BAGGAGE_KEY_PREFIX_REGEX}}),Object.defineProperty(_e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return ht.baggageHeaderToDynamicSamplingContext}}),Object.defineProperty(_e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return ht.dynamicSamplingContextToSentryBaggageHeader}}),Object.defineProperty(_e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return ht.mergeBaggageHeaders}}),Object.defineProperty(_e,"objectToBaggageHeader",{enumerable:!0,get:function(){return ht.objectToBaggageHeader}}),Object.defineProperty(_e,"parseBaggageHeader",{enumerable:!0,get:function(){return ht.parseBaggageHeader}}
5),Object.defineProperty(_e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return Bt.getHttpSpanDetailsFromUrlObject}}),Object.defineProperty(_e,"getSanitizedUrlString",{enumerable:!0,get:function(){return Bt.getSanitizedUrlString}}),Object.defineProperty(_e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return Bt.getSanitizedUrlStringFromUrlObject}}),Object.defineProperty(_e,"isURLObjectRelative",{enumerable:!0,get:function(){return Bt.isURLObjectRelative}}),Object.defineProperty(_e,"parseStringToURLObject",{enumerable:!0,get:function(){return Bt.parseStringToURLObject}}),Object.defineProperty(_e,"parseUrl",{enumerable:!0,get:function(){return Bt.parseUrl}}),Object.defineProperty(_e,"stripDataUrlContent",{enumerable:!0,get:function(){return Bt.stripDataUrlContent}}),Object.defineProperty(_e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return Bt.stripUrlQueryAndFragment}}),Object.defineProperty(_e,"_INTERNAL_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return Ht._enhanceErrorWithSentryInfo}}),Object.defineProperty(_e,"eventFromMessage",{enumerable:!0,get:function(){return Ht.eventFromMessage}}),Object.defineProperty(_e,"eventFromUnknownInput",{enumerable:!0,get:function(){return Ht.eventFromUnknownInput}}),Object.defineProperty(_e,"exceptionFromError",{enumerable:!0,get:function(){return Ht.exceptionFromError}}),Object.defineProperty(_e,"parseStackFrames",{enumerable:!0,get:function(){return Ht.parseStackFrames}}),Object.defineProperty(_e,"LRUMap",{enumerable:!0,get:function(){return Dt.LRUMap}}),Object.defineProperty(_e,"generateSpanId",{enumerable:!0,get:function(){return Gt.generateSpanId}}),Object.defineProperty(_e,"generateTraceId",{enumerable:!0,get:function(){return Gt.generateTraceId}}),Object.defineProperty(_e,"SDK_VERSION",{enumerable:!0,get:function(){return xt.SDK_VERSION}}),Object.defineProperty(_e,"getDebugImagesForResources",{enumerable:!0,get:function(){return kt.getDebugImagesForResources}}),Object.defineProperty(_e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return kt.getFilenameToDebugIdMap}}),Object.defineProperty(_e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return Yt.getFilenameToMetadataMap}}),Object.defineProperty(_e,"escapeStringForRegex",{enumerable:!0,get:function(){return wt.escapeStringForRegex}}),Object.defineProperty(_e,"_INTERNAL_safeDateNow",{enumerable:!0,get:function(){return qt.safeDateNow}}),Object.defineProperty(_e,"_INTERNAL_safeMathRandom",{enumerable:!0,get:function(){return qt.safeMathRandom}}),Object.defineProperty(_e,"_INTERNAL_withRandomSafeContext",{enumerable:!0,get:function(){return qt.withRandomSafeContext}}),Object.defineProperty(_e,"ServerRuntimeClient",{enumerable:!0,get:function(){return Kt.ServerRuntimeClient}}),Object.defineProperty(_e,"trpcMiddleware",{enumerable:!0,get:function(){return zt.trpcMiddleware}}),Object.defineProperty(_e,"wrapMcpServerWithSentry",{enumerable:!0,get:function(){return Vt.wrapMcpServerWithSentry}}),Object.defineProperty(_e,"isNodeEnv",{enumerable:!0,get:function(){return Wt.isNodeEnv}}),Object.defineProperty(_e,"loadModule",{enumerable:!0,get:function(){return Wt.loadModule}}),Object.defineProperty(_e,"filenameIsInApp",{enumerable:!0,get:function(){return Xt.filenameIsInApp}}),Object.defineProperty(_e,"node",{enumerable:!0,get:function(){return Xt.node}}),Object.defineProperty(_e,"nodeStackLineParser",{enumerable:!0,get:function(){return Xt.nodeStackLineParser}}),Object.defineProperty(_e,"vercelWaitUntil",{enumerable:!0,get:function(){return Qt.vercelWaitUntil}}),Object.defineProperty(_e,"flushIfServerless",{enumerable:!0,get:function(){return Jt.flushIfServerless}}),Object.defineProperty(_e,"callFrameToStackFrame",{enumerable:!0,get:function(){return Zt.callFrameToStackFrame}}),Object.defineProperty(_e,"watchdogTimer",{enumerable:!0,get:function(){return Zt.watchdogTimer}}),Object.defineProperty(_e,"_INTERNAL_safeUnref",{enumerable:!0,get:function(){return $t.safeUnref}}),Object.defineProperty(_e,"expressErrorHandler",{enumerable:!0,get:function(){return er.expressErrorHandler}}),Object.defineProperty(_e,"patchExpressModule",{enumerable:!0,get:function(){return er.patchExpressModule}}),Object.defineProperty(_e,"setupExpressErrorHandler",{enumerable:!0,get:function(){return er.setupExpressErrorHandler}}),Object.defineProperty(_e,"_INTERNAL_sanitizeSqlQuery",{enumerable:!0,get:function(){return tr._sanitizeSqlQuery}}),Object.defineProperty(_e,"instrumentPostgresJsSql",{enumerable:!0,get:function(){return tr.instrumentPostgresJsSql}}),Object.defineProperty(_e,"_INTERNAL_getSqlQuerySummary",{enumerable:!0,get:function(){return rr.getSqlQuerySummary}}),Object.defineProperty(_e,"patchHttpModuleClient",{enumerable:!0,get:function(){return nr.patchHttpModuleClient}}),Object.defineProperty(_e,"getHttpClientSubscriptions",{enumerable:!0,get:function(){return or.getHttpClientSubscriptions}}),Object.defineProperty(_e,"getHttpServerSubscriptions",{enumerable:!0,get:function(){return ur.getHttpServerSubscriptions}}),Object.defineProperty(_e,"isStaticAssetRequest",{enumerable:!0,get:function(){return ur.isStaticAssetRequest}}),Object.defineProperty(_e,"recordRequestSession",{enumerable:!0,get:function(){return ir.recordRequestSession}}),Object.defineProperty(_e,"addOutgoingRequestBreadcrumb",{enumerable:!0,get:function(){return ar.addOutgoingRequestBreadcrumb}}),Object.defineProperty(_e,"getRequestOptions",{enumerable:!0,get:function(){return cr.getRequestOptions}}),Object.defineProperty(_e,"getRequestUrl",{enumerable:!0,get:function(){return cr.getRequestUrl}}),Object.defineProperty(_e,"getRequestUrlFromClientRequest",{enumerable:!0,get:function(){return cr.getRequestUrlFromClientRequest}}),Object.defineProperty(_e,"getRequestUrlObject",{enumerable:!0,get:function(){return cr.getRequestUrlObject}}),Object.defineProperty(_e,"HTTP_ON_CLIENT_REQUEST",{enumerable:!0,get:function(){return br.HTTP_ON_CLIENT_REQUEST}}),Object.defineProperty(_e,"HTTP_ON_SERVER_REQUEST",{enumerable:!0,get:function(){return br.HTTP_ON_SERVER_REQUEST}}),Object.defineProperty(_e,"getComponentName",{enumerable:!0,get:function(){return fr.getComponentName}}),Object.defineProperty(_e,"getLocationHref",{enumerable:!0,get:function(){return fr.getLocationHref}}),Object.defineProperty(_e,"htmlTreeAsString",{enumerable:!0,get:function(){return fr.htmlTreeAsString}}),Object.defineProperty(_e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return pr.instrumentLangChainEmbeddings}}),Object.defineProperty(_e,"logger",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(_e,"metrics",{enumerable:!0,get:function(){return Be}});var t=r(_d[0]),n=r(_d[1]),o=r(_d[2]),u=r(_d[3]),c=r(_d[4]),b=r(_d[5]),f=r(_d[6]),p=r(_d[7]),l=r(_d[8]),d=r(_d[9]),s=r(_d[10]),T=r(_d[11]),E=r(_d[12]),O=r(_d[13]),P=r(_d[14]),S=r(_d[15]),y=r(_d[16]),_=r(_d[17]),j=r(_d[18]),I=r
5(_d[19]),N=r(_d[20]),A=r(_d[21]),R=r(_d[22]),C=r(_d[23]),M=r(_d[24]),U=r(_d[25]),L=r(_d[26]),F=r(_d[27]),v=r(_d[28]),h=r(_d[29]),B=r(_d[30]),H=r(_d[31]),D=r(_d[32]),G=r(_d[33]),x=r(_d[34]),k=r(_d[35]),Y=r(_d[36]),w=r(_d[37]),q=r(_d[38]),K=r(_d[39]),z=r(_d[40]),V=r(_d[41]),W=r(_d[42]),X=r(_d[43]),Q=r(_d[44]),J=r(_d[45]),Z=r(_d[46]),$=r(_d[47]),ee=r(_d[48]),te=r(_d[49]),re=r(_d[50]),ne=r(_d[51]),oe=r(_d[52]),ue=r(_d[53]),ie=r(_d[54]),ae=r(_d[55]),ce=r(_d[56]),be=r(_d[57]),fe=r(_d[58]),pe=r(_d[59]),le=r(_d[60]),de=r(_d[61]),ge=r(_d[62]),me=r(_d[63]),se=r(_d[64]),Te=r(_d[65]),Ee=r(_d[66]),Oe=r(_d[67]),Pe=r(_d[68]),Se=r(_d[69]),ye=r(_d[70]),je=r(_d[71]),Ie=r(_d[72]),Ne=r(_d[73]),Ae=r(_d[74]),Re=r(_d[75]),Ce=r(_d[76]),Me=r(_d[77]),Ue=r(_d[78]),Le=r(_d[79]),Fe=e(r(_d[80])),ve=r(_d[81]),he=r(_d[82]),Be=e(r(_d[83])),He=r(_d[84]),De=r(_d[85]),Ge=r(_d[86]),xe=r(_d[87]),ke=r(_d[88]),Ye=r(_d[89]),we=r(_d[90]),qe=r(_d[91]),Ke=r(_d[92]),ze=r(_d[93]),Ve=r(_d[94]),We=r(_d[95]),Xe=r(_d[96]),Qe=r(_d[97]),Je=r(_d[98]),Ze=r(_d[99]),$e=r(_d[100]),et=r(_d[101]),tt=r(_d[102]),rt=r(_d[103]),nt=r(_d[104]),ot=r(_d[105]),ut=r(_d[106]),it=r(_d[107]),at=r(_d[108]),ct=r(_d[109]),bt=r(_d[110]),ft=r(_d[111]),pt=r(_d[112]),lt=r(_d[113]),dt=r(_d[114]),gt=r(_d[115]),mt=r(_d[116]),st=r(_d[117]),Tt=r(_d[118]),Et=r(_d[119]),Ot=r(_d[120]),Pt=r(_d[121]),St=r(_d[122]),yt=r(_d[123]),_t=r(_d[124]),jt=r(_d[125]),It=r(_d[126]),Nt=r(_d[127]),At=r(_d[128]),Rt=r(_d[129]),Ct=r(_d[130]),Mt=r(_d[131]),Ut=r(_d[132]),Lt=r(_d[133]),Ft=r(_d[134]),vt=r(_d[135]),ht=r(_d[136]),Bt=r(_d[137]),Ht=r(_d[138]),Dt=r(_d[139]),Gt=r(_d[140]),xt=r(_d[141]),kt=r(_d[142]),Yt=r(_d[143]),wt=r(_d[144]),qt=r(_d[145]),Kt=r(_d[146]),zt=r(_d[147]),Vt=r(_d[148]),Wt=r(_d[149]),Xt=r(_d[150]),Qt=r(_d[151]),Jt=r(_d[152]),Zt=r(_d[153]),$t=r(_d[154]),er=r(_d[155]),tr=r(_d[156]),rr=r(_d[157]),nr=r(_d[158]),or=r(_d[159]),ur=r(_d[160]),ir=r(_d[161]),ar=r(_d[162]),cr=r(_d[163]),br=r(_d[164]),fr=r(_d[165]),pr=r(_d[166])},1540,[1541,1574,1579,1583,1582,1573,1592,1595,1585,1590,1594,1589,1596,1572,1584,1599,1571,1554,1552,1604,1547,1556,1555,1601,1606,1607,1630,1621,1631,1632,1608,1633,1634,1635,1637,1638,1597,1600,1639,1580,1587,1640,1593,1642,1643,1644,1551,1567,1578,1645,1646,1647,1648,1649,1568,1581,1650,1586,1651,1652,1653,1654,1655,1658,1660,1662,1665,1666,1667,1669,1670,1671,1672,1673,1675,1676,1677,1678,1679,1609,1680,1681,1617,1683,1684,1685,1686,1687,1691,1690,1693,1694,1697,1698,1701,1702,1705,1707,1706,1708,1709,1711,1591,1714,1674,1656,1715,1577,1716,1544,1663,1717,1543,1550,1545,1559,1614,1546,1557,1562,1563,1558,1668,1622,1664,1719,1549,1561,1718,1602,1564,1575,1616,1588,1624,1623,1576,1641,1657,1720,1566,1548,1603,1659,1721,1560,1722,1724,1725,1615,1739,1740,1741,1742,1605,1743,1750,1751,1752,1754,1760,1762,1755,1756,1753,1763,1764]);
6__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return _}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),l=r(d[4]),u=r(d[5]);let s=!1;function _(){function _(){const t=(0,l.getActiveSpan)(),o=t&&(0,l.getRootSpan)(t);if(o){const t="internal_error";n.DEBUG_BUILD&&c.debug.log(`[Tracing] Root span: ${t} -> Global error occurred`),o.setStatus({code:u.SPAN_STATUS_ERROR,message:t})}}s||(s=!0,(0,t.addGlobalErrorInstrumentationHandler)(_),(0,o.addGlobalUnhandledRejectionInstrumentationHandler)(_))}},1541,[1542,1543,1550,1546,1551,1573]);
7__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEBUG_BUILD",{enumerable:!0,get:function(){return _}});const _='undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1542,[]);
8__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);let o=null;function u(n){const o="error";(0,t.addHandler)(o,n),(0,t.maybeInstrument)(o,l)}function l(){o=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(n,u,l,_,c){const s={column:_,error:c,line:l,msg:n,url:u};return(0,t.triggerHandlers)("error",s),!!o&&o.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},1543,[1544,1545]);
9__d(function(g,r,i,a,m,e,d){"use strict";
9Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return t}});const t=globalThis},1544,[]);
10__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return b}});var e=r(d[0]),n=r(d[1]),t=r(d[2]);const o={},u={};function c(e,n){return o[e]=o[e]||[],o[e].push(n),()=>{const t=o[e];if(t){const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}}function f(){Object.keys(o).forEach(e=>{o[e]=void 0})}function s(t,o){if(!u[t]){u[t]=!0;try{o()}catch(o){e.DEBUG_BUILD&&n.debug.error(`Error while instrumenting ${t}`,o)}}}function b(u,c){const f=u&&o[u];if(f)for(const o of f)try{o(c)}catch(c){e.DEBUG_BUILD&&n.debug.error(`Error while triggering instrumentation handler.\nType: ${u}\nName: ${(0,t.getFunctionName)(o)}\nError:`,c)}}},1545,[1542,1546,1549]);
11__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"consoleSandbox",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"originalConsoleMethods",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const c=["debug","info","warn","error","log","assert","trace"],u={};function l(n){if(!("console"in o.GLOBAL_OBJ))return n();const t=o.GLOBAL_OBJ.console,c={},l=Object.keys(u);l.forEach(n=>{const o=u[n];c[n]=t[n],t[n]=o});try{return n()}finally{l.forEach(n=>{t[n]=c[n]})}}function f(){return s().enabled}function b(n,...c){t.DEBUG_BUILD&&f()&&l(()=>{o.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...c)})}function s(){return t.DEBUG_BUILD?(0,n.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const O={enable:function(){s().enabled=!0},disable:function(){s().enabled=!1},isEnabled:f,log:function(...n){b("log",...n)},warn:function(...n){b("warn",...n)},error:function(...n){b("error",...n)}}},1546,[1547,1542,1544]);
12__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getGlobalSingleton",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getMainCarrier",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"getSentryCarrier",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);function _(){return u(t.GLOBAL_OBJ),t.GLOBAL_OBJ}function u(t){const _=t.__SENTRY__=t.__SENTRY__||{};return _.version=_.version||n.SDK_VERSION,_[n.SDK_VERSION]=_[n.SDK_VERSION]||{}}function o(_,u,o=t.GLOBAL_OBJ){const S=o.__SENTRY__=o.__SENTRY__||{},O=S[n.SDK_VERSION]=S[n.SDK_VERSION]||{};return O[_]||(O[_]=u())}},1547,[1548,1544]);
13__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SDK_VERSION",{enumerable:!0,get:function(){return t}});const t="10.63.0"},1548,[]);
14__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"createStackParser",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getFramesFromEvent",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"normalizeStackTracePath",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return a}});const t=50,n="?",c=/\(error: (.*)\)/,o=/captureMessage|captureException/;function u(...n){const o=n.sort((t,n)=>t[0]-n[0]).map(t=>t[1]);return(n,u=0,i=0)=>{const s=[],f=n.split("\n");for(let n=u;n<f.length;n++){let u=f[n];u.length>1024&&(u=u.slice(0,1024));const a=c.test(u)?u.replace(c,"$1"):u;if(!a.includes("Error: ")){for(const t of o){const n=t(a);if(n){s.push(n);break}}if(s.length>=t+i)break}}return a(s.slice(i))}}function i(t){return Array.isArray(t)?u(...t):t}function a(c){if(!c.length)return[];const u=Array.from(c);return/sentryWrapped/.test(s(u).function||"")&&u.pop(),u.reverse(),o.test(s(u).function||"")&&(u.pop(),o.test(s(u).function||"")&&u.pop()),u.slice(0,t).map(t=>({...t,filename:t.filename||s(u).filename,function:t.function||n}))}function s(t){return t[t.length-1]||{}}const f="<anonymous>";function l(t){try{return t&&"function"==typeof t&&t.name||f}catch{return f}}function p(t){const n=t.exception;if(n){const t=[];
14try{return n.values.forEach(n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)}),t}catch{return}}}function b(t){let n=t?.startsWith("file://")?t.slice(7):t;return n?.match(/\/[A-Z]:/)&&(n=n.slice(1)),n}},1549,[]);
15__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return o}});var n=r(d[0]),e=r(d[1]);let t=null;function o(n){const t="unhandledrejection";(0,e.addHandler)(t,n),(0,e.maybeInstrument)(t,u)}function u(){t=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(n){const o=n;return(0,e.triggerHandlers)("unhandledrejection",o),!t||t.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},1550,[1544,1545]);
16__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"TRACE_FLAG_NONE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"TRACE_FLAG_SAMPLED",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"addChildSpanToSpan",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"addStatusMessageAttribute",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"getActiveSpan",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getRootSpan",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"getSimpleStatus",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"getSpanDescendants",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"getStatusMessage",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"getStreamedSpanLinks",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"removeChildSpanFromSpan",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"showSpanDropWarning",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"spanIsSampled",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"spanToJSON",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"spanToTraceContext",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"spanToTraceHeader",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"spanToTraceparentHeader",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"spanToTransactionTraceContext",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"streamedSpanJsonToSerializedSpan",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"updateSpanName",{enumerable:!0,get:function(){return V}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]),f=r(d[7]),S=r(d[8]),_=r(d[9]),b=r(d[10]),T=r(d[11]),l=r(d[12]);const y=0,A=1;let O=!1;function I(t){const{spanId:n,traceId:o}=t.spanContext(),{data:s,op:u,parent_span_id:c,status:p,origin:f,links:S}=v(t);return{parent_span_id:c,span_id:n,trace_id:o,data:s,op:u,status:p,origin:f,links:S}}function P(t){const{spanId:n,traceId:o,isRemote:s}=t.spanContext(),u=s?n:v(t).parent_span_id,c=(0,p.getCapturedScopesOnSpan)(t).scope;return{parent_span_id:u,span_id:s?c?.getPropagationContext().propagationSpanId||(0,S.generateSpanId)():n,trace_id:o}}function N(t){const{traceId:n,spanId:o}=t.spanContext(),s=J(t);return(0,b.generateSentryTraceHeader)(n,o,s)}function E(t){const{traceId:n,spanId:o}=t.spanContext(),s=J(t);return(0,b.generateTraceparentHeader)(n,o,s)}function C(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:n,traceFlags:o,...s},attributes:u})=>({span_id:t,trace_id:n,sampled:o===A,attributes:u,...s})):void 0}function j(t){return t?.length?t.map(({context:{spanId:t,traceId:n,traceFlags:o},attributes:s})=>({span_id:t,trace_id:n,sampled:o===A,attributes:s})):void 0}function R(t){return"number"==typeof t?x(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?x(t.getTime()):(0,_.timestampInSeconds)()}function x(t){return t>9999999999?t/1e3:t}function v(t){if(F(t))return t.getSpanJSON();const{spanId:n,traceId:o}=t.spanContext();if(h(t)){const{attributes:s,startTime:c,name:p,endTime:f,status:S,links:_}=t;return{span_id:n,trace_id:o,data:s,description:p,parent_span_id:k(t),start_timestamp:R(c),timestamp:R(f)||void 0,status:L(S),op:s[u.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:s[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:C(_)}}return{span_id:n,trace_id:o,start_timestamp:0,data:{}}}function U(t){if(F(t))return t.getStreamedSpanJSON();const{spanId:n,traceId:o}=t.spanContext();if(h(t)){const{attributes:s,startTime:u,name:c,endTime:p,status:f,links:S}=t;return{name:c,span_id:n,trace_id:o,parent_span_id:k(t),start_timestamp:R(u),end_timestamp:R(p),is_segment:t===W(t),status:w(f),attributes:B(s,f),links:j(S)}}return{span_id:n,trace_id:o,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===W(t)}
16}function k(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function M(t){return{...t,attributes:(0,n.serializeAttributes)(t.attributes),links:t.links?.map(t=>({...t,attributes:(0,n.serializeAttributes)(t.attributes)}))}}function h(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}function F(t){return"function"==typeof t.getSpanJSON}function J(t){const{traceFlags:n}=t.spanContext();return n===A}function L(t){if(t&&t.code!==c.SPAN_STATUS_UNSET)return t.code===c.SPAN_STATUS_OK?"ok":t.message||"internal_error"}function w(t){return t&&t.code!==c.SPAN_STATUS_OK&&t.code!==c.SPAN_STATUS_UNSET&&"cancelled"!==t.message?"error":"ok"}function B(t,n){const o="error"===w(n)?n?.message:void 0;return{...o&&{[u.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE]:o},...t}}const Y="_sentryChildSpans",D="_sentryRootSpan";function G(t,n){const o=t[D]||t;(0,f.addNonEnumerableProperty)(n,D,o),t[Y]?t[Y].add(n):(0,f.addNonEnumerableProperty)(t,Y,new Set([n]))}function H(t,n){t[Y]&&t[Y].delete(n)}function z(t){const n=new Set;return(function t(o){if(!n.has(o)&&J(o)){n.add(o);const s=o[Y]?Array.from(o[Y]):[];for(const n of s)t(n)}})(t),Array.from(n)}const K=W;function W(t){return t[D]||t}function q(){const n=(0,o.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(n);return u.getActiveSpan?u.getActiveSpan():(0,l._getSpanForScope)((0,s.getCurrentScope)())}function Q(){O||((0,T.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),O=!0)}function V(t,n){t.updateName(n),t.setAttributes({[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[u.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:n})}},1551,[1552,1570,1547,1571,1572,1573,1574,1558,1566,1564,1575,1546,1567]);
17__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function c(n){const c=(0,t.getMainCarrier)();(0,t.getSentryCarrier)(c).acs=n}function o(c){const o=(0,t.getSentryCarrier)(c);return o.acs?o.acs:(0,n.getStackAsyncContextStrategy)()}},1552,[1547,1553]);
18__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"AsyncContextStack",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"getStackAsyncContextStrategy",{enumerable:!0,get:function(){return l}});var t=r(d[0]),e=r(d[1]),o=r(d[2]),c=r(d[3]),n=r(d[4]);class p{constructor(t,o){let c,n;c=t||new e.Scope,n=o||new e.Scope,this._stack=[{scope:c}],this._isolationScope=n}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return(0,c.isThenable)(n)?(0,o.chainAndCopyPromiseLike)(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function s(){const e=(0,n.getMainCarrier)(),o=(0,n.getSentryCarrier)(e);return o.stack=o.stack||new p((0,t.getDefaultCurrentScope)(),(0,t.getDefaultIsolationScope)())}function S(t){return s().withScope(t)}function u(t,e){const o=s();return o.withScope(()=>(o.getStackTop().scope=t,e(t)))}function h(t){return s().withScope(()=>t(s().getIsolationScope()))}function l(){return{withIsolationScope:h,withScope:S,withSetScope:u,withSetIsolationScope:(t,e)=>h(e),getCurrentScope:()=>s().getScope(),getIsolationScope:()=>s().getIsolationScope()}}},1553,[1554,1555,1569,1559,1547]);
19__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function o(){return(0,t.getGlobalSingleton)("defaultCurrentScope",()=>new n.Scope)}function u(){return(0,t.getGlobalSingleton)("defaultIsolationScope",()=>new n.Scope)}},1554,[1547,1555]);
20__d(function(g,r,i,a,m,e,d){"use strict";
20Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return b}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),h=r(d[4]),_=r(d[5]),c=r(d[6]),u=r(d[7]),p=r(d[8]),l=r(d[9]),v=r(d[10]);class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}}clone(){const t=new b;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,(0,p._setSpanForScope)(t,(0,p._getSpanForScope)(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,s.updateSession)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,s){return this.setTags({[t]:s})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,s){return this.setAttributes({[t]:s})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,s){return this._extra={...this._extra,[t]:s},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,s){return null===s?delete this._contexts[t]:this._contexts[t]=s,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const s="function"==typeof t?t(this):t,n=s instanceof b?s.getScopeData():(0,o.isPlainObject)(s)?t:void 0,{tags:h,attributes:_,extra:c,user:u,contexts:p,level:l,fingerprint:v=[],propagationContext:f,conversationId:x}=n||{};return this._tags={...this._tags,...h},this._attributes={...this._attributes,..._},this._extra={...this._extra,...c},this._contexts={...this._contexts,...p},u&&Object.keys(u).length&&(this._user=u),l&&(this._level=l),v.length&&(this._fingerprint=v),f&&(this._propagationContext=f),x&&(this._conversationId=x),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,p._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(t,s){const n="number"==typeof s?s:100;if(n<=0)return this;const o={timestamp:(0,v.dateTimestampInSeconds)(),...t,message:t.message?(0,l.truncate)(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,p._getSpanForScope)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=(0,h.merge)(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}
20captureException(s,o){const h=o?.event_id||(0,_.uuid4)();if(!this._client)return t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture exception!"),h;const c=new Error("Sentry syntheticException");return this._client.captureException(s,{originalException:s,syntheticException:c,...o,event_id:h},this),h}captureMessage(s,o,h){const c=h?.event_id||(0,_.uuid4)();if(!this._client)return t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture message!"),c;const u=h?.syntheticException??new Error(s);return this._client.captureMessage(s,o,{originalException:s,syntheticException:u,...h,event_id:c},this),c}captureEvent(s,o){const h=s.event_id||o?.event_id||(0,_.uuid4)();return this._client?(this._client.captureEvent(s,{...o,event_id:h},this),h):(t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture event!"),h)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}},1555,[1542,1556,1546,1559,1565,1557,1566,1560,1567,1561,1564]);
21__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"closeSession",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"makeSession",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"updateSession",{enumerable:!0,get:function(){return o}});var t=r(d[0]),s=r(d[1]);function n(n){const u=(0,s.timestampInSeconds)(),c={sid:(0,t.uuid4)(),init:!0,timestamp:u,started:u,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>p(c)};return n&&o(c,n),c}function o(n,o={}){if(o.user&&(!n.ipAddress&&o.user.ip_address&&(n.ipAddress=o.user.ip_address),n.did||o.did||(n.did=o.user.id||o.user.email||o.user.username)),n.timestamp=o.timestamp||(0,s.timestampInSeconds)(),o.abnormal_mechanism&&(n.abnormal_mechanism=o.abnormal_mechanism),o.ignoreDuration&&(n.ignoreDuration=o.ignoreDuration),o.sid&&(n.sid=32===o.sid.length?o.sid:(0,t.uuid4)()),void 0!==o.init&&(n.init=o.init),!n.did&&o.did&&(n.did=`${o.did}`),"number"==typeof o.started&&(n.started=o.started),n.ignoreDuration)n.duration=void 0;else if("number"==typeof o.duration)n.duration=o.duration;else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}o.release&&(n.release=o.release),o.environment&&(n.environment=o.environment),!n.ipAddress&&o.ipAddress&&(n.ipAddress=o.ipAddress),!n.userAgent&&o.userAgent&&(n.userAgent=o.userAgent),"number"==typeof o.errors&&(n.errors=o.errors),o.status&&(n.status=o.status)}function u(t,s){let n={};s?n={status:s}:"ok"===t.status&&(n={status:"exited"}),o(t,n)}function p(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}},1556,[1557,1564]);
22__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addContextToFrame",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"addExceptionMechanism",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"addExceptionTypeValue",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getEventDescription",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isAlreadyCaptured",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"parseSemver",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"uuid4",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function u(){const n=c.GLOBAL_OBJ;return n.crypto||n.msCrypto}let p;function s(n=u()){try{if(n?.randomUUID)return(0,t.withRandomSafeContext)(()=>n.randomUUID()).replace(/-/g,"")}catch{}return p||(p="10000000100040008000100000000000"),p.replace(/[018]/g,n=>(n^(16*(0,t.safeMathRandom)()&15)>>n/4).toString(16))}function f(n){return n.exception?.values?.[0]}function l(n){const{message:t,event_id:o}=n;if(t)return t;const c=f(n);return c?c.type&&c.value?`${c.type}: ${c.value}`:c.type||c.value||o||"<unknown>":o||"<unknown>"}function y(n,t,o){const c=n.exception=n.exception||{},u=c.values=c.values||[],p=u[0]=u[0]||{};p.value||(p.value=t||""),p.type||(p.type=o||"Error")}function h(n,t){const o=f(n);if(!o)return;const c=o.mechanism;if(o.mechanism={type:"generic",handled:!0,...c,...t},t&&"data"in t){const n={...c?.data,...t.data};o.mechanism.data=n}}const b=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?
22:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function _(n){return parseInt(n||"",10)}function v(n){const t=n.match(b)||[],o=_(t[1]),c=_(t[2]),u=_(t[3]);return{buildmetadata:t[5],major:isNaN(o)?void 0:o,minor:isNaN(c)?void 0:c,patch:isNaN(u)?void 0:u,prerelease:t[4]}}function x(n,t,c=5){if(void 0===t.lineno)return;const u=n.length,p=Math.max(Math.min(u-1,t.lineno-1),0);t.pre_context=n.slice(Math.max(0,p-c),p).map(n=>(0,o.snipLine)(n,0));const s=Math.min(u-1,p);t.context_line=(0,o.snipLine)(n[s],t.colno||0),t.post_context=n.slice(Math.min(p+1,u),p+1+c).map(n=>(0,o.snipLine)(n,0))}function O(t){if(j(t))return!0;try{(0,n.addNonEnumerableProperty)(t,"__sentry_captured__",!0)}catch{}return!1}function j(n){try{return n.__sentry_captured__}catch{}}},1557,[1558,1560,1561,1544]);
23__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"convertToPlainObject",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dropUndefinedKeys",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"fill",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getOriginalFunction",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"markFunctionWrapped",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"objectify",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"wrapMethod",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(o,c,u){if(!(c in o))return;const s=o[c];if("function"!=typeof s)return;const b=u(s);"function"==typeof b&&f(b,s);try{o[c]=b}catch{t.DEBUG_BUILD&&n.debug.log(`Failed to replace method "${c}" in object`,o)}}function u(o,c,u){try{Object.defineProperty(o,c,{value:u,writable:!0,configurable:!0})}catch{t.DEBUG_BUILD&&n.debug.log(`Failed to add non-enumerable property "${String(c)}" to object`,o)}}function f(t,n){try{const o=n.prototype||{};t.prototype=n.prototype=o,u(t,"__sentry_original__",n)}catch{}}function s(t,n,o,c=!0){const u=t[n];if("function"!=typeof u)throw new Error(`Cannot wrap method: ${n} is not a function`);if(b(u))throw new Error(`Attempting to wrap method ${n} multiple times`);f(o,u),Object.defineProperty(t,n,{writable:!0,configurable:!0,enumerable:c,value:o})}function b(t){return t.__sentry_original__}function l(t){if((0,o.isError)(t))return{message:t.message,name:t.name,stack:t.stack,...p(t)};if((0,o.isEvent)(t)){const{type:n,target:o,currentTarget:c,detail:u}=t;return{type:n,target:o,currentTarget:c,...u?{detail:u}:{},...p(t)}}return t}function p(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}function y(t){const n=Object.keys(l(t));return n.sort(),n[0]?n.join(", "):"[object has no keys]"}function j(t){return O(t,new Map)}function O(t,n){if(null===t||"object"!=typeof t)return t;const o=n.get(t);if(void 0!==o)return o;if(Array.isArray(t)){const o=[];return n.set(t,o),t.forEach(t=>{o.push(O(t,n))}),o}if(_(t)){const o={};n.set(t,o);return Object.keys(t).forEach(c=>{const u=t[c];void 0!==u&&(o[c]=O(u,n))}),o}return t}function _(t){const n=t.constructor;return n===Object||void 0===n}function P(t){let n;switch(!0){case null==t:n=new String(t);break;case"symbol"==typeof t||"bigint"==typeof t:n=Object(t);break;case(0,o.isPrimitive)(t):n=new t.constructor(t);break;default:n=t}return n}},1558,[1542,1546,1559]);
24__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isDOMError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isDOMException",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"isErrorEvent",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isEvent",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isInstanceOf",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"isParameterizedString",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"isPrimitive",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"isRequest",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isSyntheticEvent",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isThenable",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"isVueViewModel",{enumerable:!0,get:function(){return v}});const t=Object.prototype.toString;function n(n){switch(t.call(n)){case"[object Error]":case"[object E
24xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return P(n,Error)}}function u(n,u){return t.call(n)===`[object ${u}]`}function o(t){return u(t,"ErrorEvent")}function c(t){return u(t,"DOMError")}function f(t){return u(t,"DOMException")}function b(t){return u(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function s(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function p(t){return u(t,"Object")}function y(t){return"undefined"!=typeof Event&&P(t,Event)}function j(t){return"undefined"!=typeof Element&&P(t,Element)}function O(t){return u(t,"RegExp")}function E(t){return Boolean(t?.then&&"function"==typeof t.then)}function _(t){return p(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function P(t,n){try{return t instanceof n}catch{return!1}}function v(t){return!("object"!=typeof t||null===t||!(t.__isVue||t._isVue||t.__v_isVNode))}function x(t){return"undefined"!=typeof Request&&P(t,Request)}},1559,[]);
25__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"safeDateNow",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"safeMathRandom",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"withRandomSafeContext",{enumerable:!0,get:function(){return o}});var n=r(d[0]);let t;function o(o){if(void 0!==t)return t?t(o):o();const u=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),f=n.GLOBAL_OBJ;return u in f&&"function"==typeof f[u]?(t=f[u],t(o)):(t=null,o())}function u(){return o(()=>Math.random())}function f(){return o(()=>Date.now())}},1560,[1544]);
26__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isMatchingPattern",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"safeJoin",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"snipLine",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"truncate",{enumerable:!0,get:function(){return i}});var t=r(d[0]),n=r(d[1]);function i(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function u(t,n){let i=t;const u=i.length;if(u<=150)return i;n>u&&(n=u);let o=Math.max(n-60,0);o<5&&(o=0);let s=Math.min(o+140,u);return s>u-5&&(s=u),s===u&&(o=Math.max(s-140,0)),i=i.slice(o,s),o>0&&(i=`'{snip} ${i}`),s<u&&(i+=" {snip}"),i}function o(i,u){if(!Array.isArray(i))return"";const o=[];for(let u=0;u<i.length;u++){const s=i[u];(0,t.isPrimitive)(s)?o.push(String(s)):s instanceof Error?o.push(s.message?`${s.name}: ${s.message}`:s.name):o.push((0,n.stringifyValue)(void 0,s))}return o.join(u)}function s(n,i,u=!1){return!!(0,t.isString)(n)&&((0,t.isRegExp)(i)?i.test(n):(0,t.isString)(i)?u?n===i:n.includes(i):"function"==typeof i&&i(n))}function c(t,n=[],i=!1){for(const u of n)if(s(t,u,i))return!0;return!1}},1561,[1559,1562]);
27__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalize",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"normalizeToSize",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"normalizeUrlToBase",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"setNormalizeStringifier",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stringifyValue",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let c;function u(t){c=t}function f(t,n=100,o=1/0){try{return s("",t,n,o)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function l(t,n=3,o=102400){const c=f(t,n);return u=c,y(JSON.stringify(u))>o?l(t,n-1,o):c;var u}function s(o,c,u=1/0,f=1/0,l=j()){const[b,y]=l;if(null==c||["boolean","string"].includes(typeof c)||"number"==typeof c&&Number.isFinite(c))return c;const O=p(o,c);if(!O.startsWith("[object "))return O;if((0,t.hasSkipNormalizationHint)(c))return c;const h=(0,t.getNormalizationDepthOverrideHint)(c),P=void 0!==h?h:u;if(0===P)return O.replace("object ","");if(b(c))return"[Circular ~]";const $=c;if($&&"function"==typeof $.toJSON)try{return s("",$.toJSON(),P-1,f,l)}catch{}const z=Array.isArray(c)?[]:{};let N=0;const S=(0,n.convertToPlainObject)(c);for(const t in S){if(!Object.prototype.hasOwnProperty.call(S,t))continue;if(N>=f){z[t]="[MaxProperties ~]";break}const n=S[t];z[t]=s(t,n,P-1,f,l),N++}return y(c),z}function p(t,n){try{if(c){const t=c(n);if(t)return t}if(void 0!==g&&n===g)return"[Global]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${(0,o.getFunctionName)(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;return`[object ${b(n)}]`}catch(t){return`**non-serializable** (${t})`}}function b(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}function y(t){return~-encodeURI(t).split(/%..|./).length}function O(t,n){const o=n.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let c=t;try{c=decodeURI(t)}catch{}return c.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${o}/*`,"ig"),"app:///")}function j(){const t=new WeakSet;return[function(n){return!!t.has(n)||(t.add(n),!1)},function(n){t.delete(n)}]}},1562,[1563,1558,1549]);
28__d(function(g,r,i,a,m,e,d){"use strict";
28Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"hasSkipNormalizationHint",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=Symbol.for("sentry.skipNormalization"),o=Symbol.for("sentry.overrideNormalizationDepth");function u(o){(0,t.addNonEnumerableProperty)(o,n,!0)}function c(n,u){(0,t.addNonEnumerableProperty)(n,o,u)}function f(t){return Boolean(t[n])}function l(t){const n=t[o];return"number"==typeof n?n:void 0}},1563,[1558]);
29__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"timestampInSeconds",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);const o=1e3;function u(){return(0,n.safeDateNow)()/o}function f(){const{performance:f}=t.GLOBAL_OBJ;if(!f?.now||!f.timeOrigin)return u;const c=f.timeOrigin;return()=>(c+(0,n.withRandomSafeContext)(()=>f.now()))/o}let c;function s(){return(c??(c=f()))()}let b=null;function O(){const{performance:o}=t.GLOBAL_OBJ;if(!o?.now)return;const u=3e5,f=(0,n.withRandomSafeContext)(()=>o.now()),c=(0,n.safeDateNow)(),s=o.timeOrigin;if("number"==typeof s){if(Math.abs(s+f-c)<u)return s}const b=o.timing?.navigationStart;if("number"==typeof b){if(Math.abs(b+f-c)<u)return b}return c-f}function l(){return null===b&&(b=O()),b}},1564,[1560,1544]);
30__d(function(g,r,i,a,m,e,d){"use strict";function t(n,o,c=2){if(!o||"object"!=typeof o||c<=0)return o;if(n&&0===Object.keys(o).length)return n;const u={...n};for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(u[n]=t(u[n],o[n],c-1));return u}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return t}})},1565,[]);
31__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateSpanId",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"generateTraceId",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(){return(0,n.uuid4)()}function u(){return(0,n.uuid4)().substring(16)}},1566,[1557]);
32__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getSpanForScope",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_setSpanForScope",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o="_sentrySpan";function u(u,c){c?(0,n.addNonEnumerableProperty)(u,o,(0,t.makeWeakRef)(c)):delete u[o]}function c(n){return(0,t.derefWeakRef)(n[o])}},1567,[1558,1568]);
33__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"derefWeakRef",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"makeWeakRef",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){try{const f=t.GLOBAL_OBJ.WeakRef;if("function"==typeof f)return new f(n)}catch{}return n}function f(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}},1568,[1544]);
34__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"chainAndCopyPromiseLike",{enumerable:!0,get:function(){return o}});const n=n=>n instanceof Promise&&!n[t],t=Symbol("chained PromiseLike"),o=(t,o,u)=>{const s=t.then(n=>(o(n),n),n=>{throw u(n),n});return n(s)&&n(t)?s:c(t,s)},c=(n,o)=>{if(!o)return n;let c=!1;for(const t in n){if(t in o)continue;c=!0;const u=n[t];"function"==typeof u?Object.defineProperty(o,t,{value:(...t)=>u.apply(n,t),enumerable:!0,configurable:!0,writable:!0}):o[t]=u}return c&&Object.assign(o,{[t]:!0}),o}},1569,[]);
35__d(function(g,r,i,a,m,e,d){"use strict";
35Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"attributeValueToTypedAttributeValue",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"estimateTypedAttributesSizeInBytes",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isAttributeObject",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"serializeAttributes",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function n(t){return"object"==typeof t&&null!=t&&!Array.isArray(t)&&Object.keys(t).includes("value")}function u(t,u){const{value:o,unit:f}=n(t)?t:{value:t,unit:void 0},s=c(o),l=f&&"string"==typeof f?{unit:f}:{};if(s)return{...s,...l};if(!u||"skip-undefined"===u&&void 0===o)return;let y="";try{y=JSON.stringify(o)??""}catch{}return{value:y,type:"string",...l}}function o(t,n=!1){const o={};for(const[f,s]of Object.entries(t??{})){const t=u(s,n);t&&(o[f]=t)}return o}function f(n){if(!n)return 0;let u=0;for(const[o,f]of Object.entries(n)){u+=2*o.length,u+=2*f.type.length,u+=2*(f.unit?.length??0);const n=f.value;Array.isArray(n)?u+=s(n[0])*n.length:(0,t.isPrimitive)(n)?u+=s(n):u+=100}return u}function s(t){return"string"==typeof t?2*t.length:"boolean"==typeof t?4:"number"==typeof t?8:0}function c(t){if(Array.isArray(t))return{value:t,type:"array"};const n="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";return n?{value:t,type:n}:void 0}},1570,[1559]);
36__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getClient",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"getCurrentScope",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getExternalPropagationContext",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getGlobalScope",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getIsolationScope",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"getTraceContextFromScope",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"withIsolationScope",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"withScope",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]);let u;function p(t){u=t}function f(){return u?.()}function l(){return void 0!==u}function s(){const o=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(o).getCurrentScope()}function S(){const o=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(o).getIsolationScope()}function b(){return(0,n.getGlobalSingleton)("globalScope",()=>new o.Scope)}function y(...o){const c=(0,n.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(c);if(2===o.length){const[t,n]=o;return t?u.withSetScope(t,n):u.withScope(n)}return u.withScope(o[0])}function C(...o){const c=(0,n.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(c);if(2===o.length){const[t,n]=o;return t?u.withSetIsolationScope(t,n):u.withIsolationScope(n)}return u.withIsolationScope(o[0])}function P(){return s().getClient()}function x(t){const n=f();if(n)return{trace_id:n.traceId,span_id:n.spanId};const o=t.getPropagationContext(),{traceId:u,parentSpanId:p,propagationSpanId:l}=o,s={trace_id:u,span_id:l||(0,c.generateSpanId)()};return p&&(s.parent_span_id=p),s}},1571,[1552,1547,1555,1566]);
37__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return D}});const t="sentry.source",n="sentry.sample_rate",T="sentry.previous_trace_sample_rate",E="sentry.op",_="sentry.origin",u="sentry.status.message",I="sentry.idle_span_finish_reason",A="sentry.measurement_unit",S="sentry.measurement_value",o="sentry.release",c="sentry.environment",N="sentry.segment.name",R="sentry.segment.id",f="sentry.sdk.name",b="sentry.sdk.version",s="sentry.sdk.integrations",y="user.id",M="user.email",U="user.ip_address",l="user.n
37ame",O="sentry.custom_span_name",p="sentry.profile_id",P="sentry.exclusive_time",C="cache.hit",j="cache.key",B="cache.item_size",Y="http.request.method",L="url.full",D="sentry.link.type",h="gen_ai.conversation.id"},1572,[]);
38__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"setHttpStatus",{enumerable:!0,get:function(){return c}});const t=0,n=1,s=2;function u(t){if(t<400&&t>=100)return{code:n};if(t>=400&&t<500)switch(t){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"};default:return{code:s,message:"internal_error"}}return{code:s,message:"internal_error"}}function c(t,n){t.setAttribute("http.response.status_code",n);const s=u(n);"unknown_error"!==s.message&&t.setStatus(s)}},1573,[]);
39__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);const o="_sentryScope",u="_sentryIsolationScope",c=Symbol.for("sentry.otelSourceInference");function f(c,f,p){c&&((0,n.addNonEnumerableProperty)(c,u,(0,t.makeWeakRef)(p)),(0,n.addNonEnumerableProperty)(c,o,f))}function p(n){const c=n;return{scope:c[o],isolationScope:(0,t.derefWeakRef)(c[u])}}function l(t){(0,n.addNonEnumerableProperty)(t,c,!0)}function s(n){return!0===n[c]}},1574,[1558,1568]);
40__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"extractTraceparentData",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"generateTraceparentHeader",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"shouldContinueTrace",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),u=r(d[4]),p=r(d[5]);const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function f(t){if(!t)return;const n=t.match(s);if(!n)return;let o;return"1"===n[3]?o=!0:"0"===n[3]&&(o=!1),{traceId:n[1],parentSampled:o,parentSpanId:n[2]}}function l(t,o){const c=f(t),s=(0,n.baggageHeaderToDynamicSamplingContext)(o);if(!c?.traceId)return{traceId:(0,u.generateTraceId)(),sampleRand:(0,p.safeMathRandom)()};const l=I(c,s);s&&(s.sample_rand=l.toString());const{traceId:b,parentSpanId:S,parentSampled:R}=c;return{traceId:b,parentSpanId:S,sampled:R,dsc:s||{},sampleRand:l}}function b(t=(0,u.generateTraceId)(),n=(0,u.generateSpanId)(),o){let c="";return void 0!==o&&(c=o?"-1":"-0"),`${t}-${n}${c}`}function S(t=(0,u.generateTraceId)(),n=(0,u.generateSpanId)(),o){return`00-${t}-${n}-${o?"01":"00"}`}function I(t,n){const o=(0,c.parseSampleRate)(n?.sample_rand);if(void 0!==o)return o;const u=(0,c.parseSampleRate)(n?.sample_rate);return u&&void 0!==t?.parentSampled?t.parentSampled?(0,p.safeMathRandom)()*u:u+(0,p.safeMathRandom)()*(1-u):(0,p.safeMathRandom)()}function R(n,c){const u=(0,o.extractOrgIdFromClient)(n);if(c&&u&&c!==u)return t.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${c}, SDK options: ${u})`),!1;return!(n.getOptions().strictTraceContinuation||!1)||!(c&&!u||!c&&u)||(t.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${c}, Sentry client: ${u})`),!1)}},1575,[1546,1576,1577,1578,1566,1560]);
41__d(function(g,r,i,a,m,e,d){"use strict";
41Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"objectToBaggageHeader",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"parseBaggageHeader",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const o="sentry-",u=/^sentry-/,s=8192;function f(t){const n=l(t);if(!n)return;const c=Object.entries(n).reduce((t,[n,c])=>{if(n.startsWith(o)){t[n.slice(o.length)]=c}return t},{});return Object.keys(c).length>0?c:void 0}function b(t){if(!t)return;return j(Object.entries(t).reduce((t,[n,c])=>(c&&(t[`${o}${n}`]=c),t),{}))}function l(t){if(t&&((0,c.isString)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,n)=>{const c=y(n);return Object.entries(c).forEach(([n,c])=>{t[n]=c}),t},{}):y(t)}function y(t){return t.split(",").map(t=>{const n=t.indexOf("=");if(-1===n)return[];return[t.slice(0,n),t.slice(n+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[n,c])=>(n&&c&&(t[n]=c),t),{})}function j(c){if(0!==Object.keys(c).length)return Object.entries(c).reduce((c,[o,u],f)=>{const b=`${encodeURIComponent(o)}=${encodeURIComponent(u)}`,l=0===f?b:`${c},${b}`;return l.length>s?(t.DEBUG_BUILD&&n.debug.warn(`Not adding key: ${o} with val: ${u} to baggage header due to exceeding baggage size limits.`),c):l},"")}function O(t,n){if(!t)return n;const c=l(t),u=l(n);if(!u)return t;const s={};let f=!1;const b={},y={};for(const[t,n]of Object.entries(u))t.startsWith(o)?(b[t]=n,f=!0):y[t]=n;if(c)for(const[t,n]of Object.entries(c))f&&t.startsWith(o)||(s[t]=n);f&&Object.assign(s,b);for(const[t,n]of Object.entries(y))s[t]??(s[t]=n);return j(s)}},1576,[1542,1546,1559]);
42__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"dsnFromString",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"dsnToString",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"extractOrgIdFromClient",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"extractOrgIdFromDsnHost",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"makeDsn",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]);const o=/^o(\d+)\./,c=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(t){return"http"===t||"https"===t}function p(t,n=!1){const{host:o,path:c,pass:s,port:p,projectId:u,protocol:l,publicKey:f}=t;return`${l}://${f}${n&&s?`:${s}`:""}@${o}${p?`:${p}`:""}/${c?`${c}/`:c}${u}`}function u(t){const o=c.exec(t);if(!o)return void(0,n.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[s,p,u="",f="",b="",I=""]=o.slice(1);let y="",h=I;const $=h.split("/");if($.length>1&&(y=$.slice(0,-1).join("/"),h=$.pop()),h){const t=h.match(/^\d+/);t&&(h=t[0])}return l({host:f,pass:u,path:y,projectId:h,port:b,protocol:s,publicKey:p})}function l(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function f(o){if(!t.DEBUG_BUILD)return!0;const{port:c,projectId:p,protocol:u}=o;return!["protocol","publicKey","host","projectId"].find(t=>!o[t]&&(n.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(p.match(/^\d+$/)?s(u)?!c||!isNaN(parseInt(c,10))||(n.debug.error(`Invalid Sentry Dsn: Invalid port ${c}`),!1):(n.debug.error(`Invalid Sentry Dsn: Invalid protocol ${u}`),!1):(n.debug.error(`Invalid Sentry Dsn: Invalid projectId ${p}`),!1))}function b(t){const n=t.match(o);return n?.[1]}function I(t){const n=t.getOptions(),{host:o}=t.getDsn()||{};let c;
42return n.orgId?c=String(n.orgId):o&&(c=b(o)),c}function y(t){const n="string"==typeof t?u(t):l(t);if(n&&f(n))return n}},1577,[1542,1546]);
43__d(function(g,r,i,a,m,e,d){"use strict";function t(t){if("boolean"==typeof t)return Number(t);const n="string"==typeof t?parseFloat(t):t;return"number"!=typeof n||isNaN(n)||n<0||n>1?void 0:n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseSampleRate",{enumerable:!0,get:function(){return t}})},1578,[]);
44__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"startIdleSpan",{enumerable:!0,get:function(){return O}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]),c=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]),T=r(d[9]),f=r(d[10]),_=r(d[11]),I=r(d[12]),h=r(d[13]);const E={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},N="heartbeatFailed",A="idleTimeout",b="finalTimeout",R="externalFinish";function O(I,O={}){const y=new Map;let C,U=!1,F=R,P=!O.disableAutoFinish;const v=[],{idleTimeout:x=E.idleTimeout,finalTimeout:B=E.finalTimeout,childSpanTimeout:M=E.childSpanTimeout,beforeSpanEnd:J,trimIdleSpanEndTimestamp:L=!0}=O,w=(0,n.getClient)(),G=(0,n.getCurrentScope)();if(!w||!(0,p.hasSpansEnabled)()){const t=new T.SentryNonRecordingSpan({traceId:G.getPropagationContext().traceId});return(0,h.setCapturedScopesOnSpan)(t,G,(0,n.getIsolationScope)()),t}const j=(0,S.getActiveSpan)(),z=D(I);function H(){C&&(clearTimeout(C),C=void 0)}function Y(n){H(),C=setTimeout(()=>{!U&&0===y.size&&P&&(F=A,z.end(n))},x)}function k(n){C=setTimeout(()=>{!U&&P&&(F=N,z.end(n))},M)}function K(n){H(),y.set(n,!0);k((0,l.timestampInSeconds)()+M/1e3)}function $(n){if(y.has(n)&&y.delete(n),0===y.size){Y((0,l.timestampInSeconds)()+x/1e3)}}function q(n){U=!0,y.clear(),v.forEach(n=>n()),(0,u._setSpanForScope)(G,j);const p=(0,S.spanToJSON)(z),{start_timestamp:c}=p;if(!c)return;p.data[s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||z.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,F);const l=p.status;l&&"unknown"!==l||z.setStatus({code:_.SPAN_STATUS_OK}),o.debug.log(`[Tracing] Idle span "${p.op}" finished`);const T=(0,S.getSpanDescendants)(z).filter(n=>n!==z);let f=0;T.forEach(s=>{s.isRecording()&&(s.setStatus({code:_.SPAN_STATUS_ERROR,message:"cancelled"}),s.end(n),t.DEBUG_BUILD&&o.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(s,void 0,2)));const p=(0,S.spanToJSON)(s),{timestamp:c=0,start_timestamp:u=0}=p,l=u<=n,T=c-u<=(B+x)/1e3;if(t.DEBUG_BUILD){const n=JSON.stringify(s,void 0,2);l?T||o.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",n):o.debug.log("[Tracing] Discarding span since it happened after idle span was finished",n)}T&&l||((0,S.removeChildSpanFromSpan)(z,s),f++)}),f>0&&z.setAttribute("sentry.idle_span_discarded_spans",f)}return z.end=new Proxy(z.end,{apply(n,t,s){if(J&&J(z),(0,T.spanIsNonRecordingSpan)(t))return;const[o,...p]=s,u=o||(0,l.timestampInSeconds)(),f=(0,S.spanTimeInputToSeconds)(u),_=(0,S.getSpanDescendants)(z).filter(n=>n!==z),I=(0,S.spanToJSON)(z);if(!_.length||!L)return q(f),Reflect.apply(n,t,[f,...p]);const h=w.getOptions().ignoreSpans,E=_?.reduce((n,t)=>{const s=(0,S.spanToJSON)(t);return s.timestamp?h&&(0,c.shouldIgnoreSpan)({description:s.description,op:s.op,attributes:s.data},h)?n:n?Math.max(n,s.timestamp):s.timestamp:n},void 0),N=I.start_timestamp,A=Math.min(N?N+B/1e3:1/0,Math.max(N||-1/0,Math.min(f,E||1/0)));return q(A),Reflect.apply(n,t,[A,...p])}}),v.push(w.on("spanStart",n=>{if(U||n===z||(0,S.spanToJSON)(n).timestamp||n instanceof f.SentrySpan&&n.isStandaloneSpan())return;(0,S.getSpanDescendants)(z).includes(n)&&K(n.spanContext().spanId)})),v.push(w.on("spanEnd",n=>{U||$(n.spanContext().spanId)})),v.push(w.on("idleSpanEnableAutoFinish",n=>{n===z&&(P=!0,Y(),y.size&&k())})),O.disableAutoFinish||Y(),setTimeout(()=>{U||(z.setStatus({code:_.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),F=b,z.end())},B),z}function D(s){const p=(0,I.startInactiveSpan)(s);return(0,u._setSpanForScope)((0,n.getCurrentScope)(),p),t.DEBUG_BUILD&&o.debug.log("[Tracing] Started span is an i
44dle span"),p}},1579,[1571,1542,1572,1546,1580,1581,1567,1551,1564,1582,1583,1573,1592,1574]);
45__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hasSpansEnabled",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const _=n||(0,t.getClient)()?.getOptions();return!(!_||null==_.tracesSampleRate&&!_.tracesSampler)}},1580,[1571]);
46__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reparentChildSpans",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),i=r(d[2]);function o(t){n.debug.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function s(n,s){if(!s?.length)return!1;for(const p of s){if(u(p)){if(n.description&&(0,i.isMatchingPattern)(n.description,p))return t.DEBUG_BUILD&&o(n),!0;continue}const s=!!p.attributes&&Object.keys(p.attributes).length>0;if(!p.name&&!p.op&&!s)continue;const f=!p.name||n.description&&(0,i.isMatchingPattern)(n.description,p.name),b=!p.op||n.op&&(0,i.isMatchingPattern)(n.op,p.op),y=!p.attributes||Object.entries(p.attributes).every(([t,i])=>c(n.attributes?.[t],i));if(f&&b&&y)return t.DEBUG_BUILD&&o(n),!0}return!1}function c(t,n){return"string"==typeof t&&("string"==typeof n||n instanceof RegExp)?(0,i.isMatchingPattern)(t,n):Array.isArray(t)&&Array.isArray(n)?t.length===n.length&&t.every((t,i)=>t===n[i]):t===n}function p(t,n){const i=n.parent_span_id,o=n.span_id;if(i)for(const n of t)n.parent_span_id===o&&(n.parent_span_id=i)}function u(t){return"string"==typeof t||t instanceof RegExp}},1581,[1542,1546,1561]);
47__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"spanIsNonRecordingSpan",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]);const o=Symbol.for("sentry.nonRecordingSpan");class u{constructor(s={}){this._traceId=s.traceId||(0,n.generateTraceId)(),this._spanId=s.spanId||(0,n.generateSpanId)(),this.dropReason=s.dropReason,(0,t.addNonEnumerableProperty)(this,o,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:s.TRACE_FLAG_NONE}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,s){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function c(t){return!!t&&!0===t[o]}},1582,[1558,1566,1551]);
48__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentrySpan",{enumerable:!0,get:function(){return E}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),p=r(d[5]),o=r(d[6]),h=r(d[7]),S=r(d[8]),u=r(d[9]),c=r(d[10]),T=r(d[11]),l=r(d[12]);class E{constructor(t={}){this._traceId=t.traceId||(0,p.generateTraceId)(),this._spanId=t.spanId||(0,p.generateSpanId)(),this._startTime=t.startTimestamp||(0,h.timestampInSeconds)(),this._links=t.links,this._attributes={},this.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,s){}spanContext(){const{_spanId:t,_traceId:s,_sampled:n}=this;return{spanId:t,traceId:s,traceFlags:n?o.TRACE_FLAG_SAMPLED:o.TRACE_FLAG_NONE}}setAttribute(t,s){return void 0===s?delete this._attributes[t]:this._attributes[t]=s,this}setAttributes(t){return Object.keys(t).forEach(s=>this.setAttribute(s,t[s])),this}updateStartTime(t){this._startTime=(0,o.spanTimeInputToSeconds)(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,(0,l.spanShouldInferOtelSource)(this)||this.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(t){this._endTime||(this._endTime=(0,o.spanTimeInputToSeconds)(t),(0,u.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,o.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[a.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[a.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:(0,c.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,o.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,o.getRootSpan)(this).spanContext().spanId:void 0,links:(0,o.convertSpanLinksForEnvelope)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,o.getRootSpan)(this),status:(0,o.getSimpleStatus)(this._status),attributes:(0,o.addStatusMessageAttribute)(this._attributes,this._status),links:(0,o.getStreamedSpanLinks)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,a){s.DEBUG_BUILD&&_.debug.log("[Tracing] Adding an event to span:",t);const p=I(n)?n:a||(0,h.timestampInSeconds)(),S=I(n)?{}:n||{},u={name:t,time:(0,o.spanTimeInputToSeconds)(p),attributes:S};return this._events.push(u),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const a=(0,t.getClient)();a&&(a.emit("spanEnd",this),this._isStandaloneSpan||a.emit("afterSpanEnd",this));if(!(this._isStandaloneSpan||this===(0,o.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?N((0,n.createSpanEnvelope)([this],a)):(s.DEBUG_BUILD&&_.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),a&&a.recordDroppedEvent("sample_rate","span")));if(a&&(0,T.hasSpanStreamingEnabled)(a))return void a.emit("afterSegmentSpanEnd",this);const p=this._convertSpanToTransaction();if(p){((0,l.getCapturedScopesOnSpan)(this).scope||(0,t.getCurrentScope)()).captureEvent(p)}}_convertSpanToTransaction(){if(!A((0,o.spanToJSON)(this)))return;this._name||(s.DEBUG_BUILD&&_.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=(0,l.getCapturedScopesOnSpan)(this),p=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const h=(0,o.getSpanDescendants)(this).filter(t=>t!==this&&!b(t)).map(t=>(0,o.spanToJSON)(t)).filter(A),u=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let T=!1;h.forEach(t=>{delete t.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],t.op?.startsWith("gen_ai.")&&(T=!0)});const E={contexts:{trace:(0,o.spanToTransactionTraceContext)(this)},spans:h.length>1e3?h.sort((t,s)=>t.start_timestamp-s.start_timestamp).slice(0,1e3):h,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:(0,S.getDynamicSamplingContextFromSpan)(this),hasGenAiSpans:T},request:p,...u&&{transaction_info:{source:u}}},I=(0,c.timedEventsToMeasurements)(this._events);return I&&Object.keys(I).length&&(s.DEBUG_BUILD&&_.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(I,void 0,2)),E.measurements=I),E}}function I(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function A(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}function b(t){return t instanceof E&&t.isStandaloneSpan()}function N(s){const n=(0,t.getClient)();if(!n)return;const a=s[1];a&&0!==a.length?n.sendEnvelope(s):n.recordDroppedEvent("before_send","span")}}
48,1583,[1571,1542,1584,1572,1546,1566,1551,1564,1585,1589,1590,1591,1574]);
49__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_enhanceEventWithSdkInfo",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createEventEnvelope",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createSessionEnvelope",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"createSpanEnvelope",{enumerable:!0,get:function(){return v}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),p=r(d[4]),c=r(d[5]),u=r(d[6]);function l(n,t){if(!t)return n;const o=n.sdk||{};return n.sdk={...o,name:o.name||t.name,version:o.version||t.version,integrations:[...n.sdk?.integrations||[],...t.integrations||[]],packages:[...n.sdk?.packages||[],...t.packages||[]],settings:n.sdk?.settings||t.settings?{...n.sdk?.settings,...t.settings}:void 0},n}function S(n,t,c,u){const l=(0,s.getSdkMetadataForEnvelopeHeader)(c),S={sent_at:new Date((0,p.safeDateNow)()).toISOString(),...l&&{sdk:l},...!!u&&t&&{dsn:(0,o.dsnToString)(t)}},f="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return(0,s.createEnvelope)(S,[f])}function f(n,t,o,p){const c=(0,s.getSdkMetadataForEnvelopeHeader)(o),u=n.type&&"replay_event"!==n.type?n.type:"event";l(n,o?.sdk);const S=(0,s.createEventEnvelopeHeaders)(n,c,p,t);delete n.sdkProcessingMetadata;const f=[{type:u},n];return(0,s.createEnvelope)(S,[f])}function v(l,S){const f=(0,n.getDynamicSamplingContextFromSpan)(l[0]),v=S?.getDsn(),k=S?.getOptions().tunnel,b={sent_at:new Date((0,p.safeDateNow)()).toISOString(),...(y=f,!!y.trace_id&&!!y.public_key&&{trace:f}),...!!k&&v&&{dsn:(0,o.dsnToString)(v)}};var y;const{beforeSendSpan:E,ignoreSpans:O}=S?.getOptions()||{},_=O?.length?l.filter(n=>{const t=(0,u.spanToJSON)(n);return!(0,c.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},O)}):l,h=l.length-_.length;h&&S?.recordDroppedEvent("before_send","span",h);const D=E?n=>{const o=(0,u.spanToJSON)(n),s=(0,t.isStreamedBeforeSendSpanCallback)(E)?o:E(o);return s||((0,u.showSpanDropWarning)(),o)}:u.spanToJSON,N=[];for(const n of _){const t=D(n);t&&N.push((0,s.createSpanEnvelopeItem)(t))}return(0,s.createEnvelope)(b,N)}},1584,[1585,1587,1577,1588,1560,1581,1551]);
50__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"freezeDscOnSpan",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"spanToBaggageHeader",{enumerable:!0,get:function(){return b}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),p=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]),f=r(d[9]);const _="_frozenDsc";function T(n,t){const o=n;(0,u.addNonEnumerableProperty)(o,_,t)}function E(t,o){const c=o.getOptions(),{publicKey:p}=o.getDsn()||{},u={environment:c.environment||n.DEFAULT_ENVIRONMENT,release:c.release,public_key:p,trace_id:t,org_id:(0,s.extractOrgIdFromClient)(o)};return o.emit("createDsc",u),u}function y(n,t){const o=t.getPropagationContext();return o.dsc||E(o.traceId,n)}function C(n){const s=(0,t.getClient)();if(!s)return{};const u=(0,S.getRootSpan)(n),T=(0,S.spanToJSON)(u),C=T.data,b=u.spanContext().traceState,O=b?.get("sentry.sample_rate")??C[o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??C[o.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function R(n){return"number"!=typeof O&&"string"!=typeof O||(n.sample_rate=`${O}`),n}const I=u[_];if(I)return R(I);if((0,l.spanIsNonRecordingSpan)(u)&&!(0,p.hasSpansEnabled)(s.getOptions())){const n=(0,f.getCapturedScopesOnSpan)(u).scope;if(n)return R({...y(s,n)})}const A=b?.get("sentry.dsc"),N=A&&(0,c.baggageHeaderToDynamicSamplingContext)(A);if(N)return R(N);const P=E(n.spanContext().traceId,s),x=C[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??C["sentry.span.source"],D=T.description;return"url"!==x&&D&&(P.transaction=D),(0,p.hasSpansEnabled)()&&(P.sampled=String((0,S.spanIsSampled)(u)),P.sample_rand=b?.get("sentry.sample_rand")??(0,f.getCapturedScopesOnSpan)(u).scope?.getPropagationContext().sampleRand.toString()),R(P),s.emit("createDsc",P,u),P}function b(n){const t=C(n);return(0,c.dynamicSamplingContextToSentryBaggageHeader)(t)}},1585,[1586,1571,1572,1576,1577,1580,1558,1551,1582,1574]);
51__d(function(g,r,i,a,m,e,d){"use strict";
51Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return n}});const t="production",n="development"},1586,[]);
52__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"withStreamedSpan",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return(0,t.addNonEnumerableProperty)(n,"_streamed",!0),n}function u(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}},1587,[1558]);
53__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addItemToEnvelope",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createEnvelope",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"envelopeContainsItemType",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"parseEnvelope",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"serializeEnvelope",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),i=r(d[3]),c=r(d[4]);function u(t,n=[]){return[t,n]}function f(t,n){const[o,i]=t;return[o,[...i,n]]}function l(t,n){const o=t[1];for(const t of o){if(n(t,t[0].type))return!0}return!1}function s(t,n){return l(t,(t,o)=>n.includes(o))}function p(n){const o=(0,t.getSentryCarrier)(c.GLOBAL_OBJ);return o.encodePolyfill?o.encodePolyfill(n):(new TextEncoder).encode(n)}function y(n){const o=(0,t.getSentryCarrier)(c.GLOBAL_OBJ);return o.decodePolyfill?o.decodePolyfill(n):(new TextDecoder).decode(n)}function b(t){const[n,i]=t;let c=JSON.stringify(n);function u(t){"string"==typeof c?c="string"==typeof t?c+t:[p(c),t]:c.push("string"==typeof t?p(t):t)}for(const t of i){const[n,i]=t;if(u(`\n${JSON.stringify(n)}\n`),"string"==typeof i||i instanceof Uint8Array)u(i);else{let t;try{t=JSON.stringify(i)}catch{t=JSON.stringify((0,o.normalize)(i))}u(t)}}return"string"==typeof c?c:O(c)}function O(t){const n=t.reduce((t,n)=>t+n.length,0),o=new Uint8Array(n);let i=0;for(const n of t)o.set(n,i),i+=n.length;return o}function v(t){let n="string"==typeof t?p(t):t;function o(t){const o=n.subarray(0,t);return n=n.subarray(t+1),o}function i(){let t=n.indexOf(10);return t<0&&(t=n.length),JSON.parse(y(o(t)))}const c=i(),u=[];for(;n.length;){const t=i(),n="number"==typeof t.length?t.length:void 0;u.push([t,n?o(n):i()])}return[c,u]}function _(t){return[{type:"span"},t]}function h(t){const n="string"==typeof t.data?p(t.data):t.data;return[{type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},n]}const P={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function S(t){return t in P}function j(t){return S(t)?P[t]:t}function E(t){if(!t?.sdk)return;const{name:n,version:o}=t.sdk;return{name:n,version:o}}function T(t,o,c,u){const f=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date((0,i.safeDateNow)()).toISOString(),...o&&{sdk:o},...!!c&&u&&{dsn:(0,n.dsnToString)(u)},...f&&{trace:f}}}},1588,[1547,1577,1562,1560,1544]);
54__d(function(g,r,i,a,m,e,d){"use strict";
54Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"logSpanEnd",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"logSpanStart",{enumerable:!0,get:function(){return p}});var n=r(d[0]),o=r(d[1]),t=r(d[2]);function p(p){if(!n.DEBUG_BUILD)return;const{description:s="< unknown name >",op:u="< unknown op >",parent_span_id:c}=(0,t.spanToJSON)(p),{spanId:$}=p.spanContext(),f=(0,t.spanIsSampled)(p),l=(0,t.getRootSpan)(p),I=l===p,S=`[Tracing] Starting ${f?"sampled":"unsampled"} ${I?"root ":""}span`,D=[`op: ${u}`,`name: ${s}`,`ID: ${$}`];if(c&&D.push(`parent ID: ${c}`),!I){const{op:n,description:o}=(0,t.spanToJSON)(l);D.push(`root ID: ${l.spanContext().spanId}`),n&&D.push(`root op: ${n}`),o&&D.push(`root description: ${o}`)}o.debug.log(`${S}\n  ${D.join("\n  ")}`)}function s(p){if(!n.DEBUG_BUILD)return;const{description:s="< unknown name >",op:u="< unknown op >"}=(0,t.spanToJSON)(p),{spanId:c}=p.spanContext(),$=`[Tracing] Finishing "${u}" ${(0,t.getRootSpan)(p)===p?"root ":""}span "${s}" with ID ${c}`;o.debug.log($)}},1589,[1542,1546,1551]);
55__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setMeasurement",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),E=r(d[2]),T=r(d[3]);function u(u,o,_,s=(0,T.getActiveSpan)()){const M=s&&(0,T.getRootSpan)(s);M&&(t.DEBUG_BUILD&&E.debug.log(`[Measurement] Setting measurement on root span: ${u} = ${o} ${_}`),M.addEvent(u,{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:o,[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:_}))}function o(t){if(!t||0===t.length)return;const E={};return t.forEach(t=>{const T=t.attributes||{},u=T[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],o=T[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof u&&"number"==typeof o&&(E[t.name]={value:o,unit:u})}),E}},1590,[1542,1572,1546,1551]);
56__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return"stream"===t.getOptions().traceLifecycle}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return t}})},1591,[]);
57__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"continueTrace",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"isTracingSuppressed",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"startInactiveSpan",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"startNewTrace",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"startSpan",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"startSpanManual",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"suppressTracing",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"withActiveSpan",{enumerable:!0,get:function(){return j}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),p=r(d[4]),c=r(d[5]),S=r(d[6]),u=r(d[7]),l=r(d[8]),f=r(d[9]),T=r(d[10]),C=r(d[11]),I=r(d[12]),R=r(d[13]),_=r(d[14]),b=r(d[15]),P=r(d[16]),E=r(d[17]),y=r(d[18]),A=r(d[19]),O=r(d[20]),h=r(d[21]),N=r(d[22]),w=r(d[23]);const v="__SENTRY_SUPPRESS_TRACING__";function x(n,t){const s=K();if(s.startSpan)return s.startSpan(n,t);const p=G(n),{forceTransaction:c,parentSpan:S,scope:l}=n,f=l?.clone();return(0,o.withScope)(f,()=>J(S)(()=>{const s=(0,o.getCurrentScope)(),l=H(s,S),f=(0,o.getClient)(),T=n.onlyIfParent&&!l?Y(s,f):z({parentSpan:l,spanArguments:p,forceTransaction:c,scope:s});return Q(T)&&l||(0,_._setSpanForScope)(s,T),(0,u.handleCallbackErrors)(()=>t(T),()=>{const{status:n}=(0,b.spanToJSON)(T);!T.isRecording()||n&&"ok"!==n||T.setStatus({code:N.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{T.end()})}))}function D(n,t){const s=K();if(s.startSpanManual)return s.startSpanManual(n,t);const p=G(n),{forceTransaction:c,parentSpan:S,scope:l}=n,f=l?.clone();return(0,o.withScope)(f,()=>J(S)(()=>{const s=(0,o.getCurrentScope)(),l=H(s,S),f=n.onlyIfParent&&!l?Y(s,(0,o.getClient)()):z({parentSpan:l,spanArguments:p,forceTransaction:c,scope:s});return Q(f)&&l||(0,_._setSpanForScope)(s,f),(0,u.handleCallbackErrors)(()=>t(f,()=>f.end()),()=>{const{status:n}=(0,b.spanToJSON)(f);!f.isRecording()||n&&"ok"!==n||f.setStatus({code:N.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function M(n){const t=K();if(t.startInactiveSpan)return t.startInactiveSpan(n);const s=G(n),{forceTransaction:p,parentSpan:c}=n;return(n.scope?t=>(0,o.withScope)(n.scope,t):void 0!==c?n=>j(c,n):n=>n())(()=>{const t=(0,o.getCurrentScope)(),S=H(t,c),u=(0,o.getClient)();return n.onlyIfParent&&!S?Y(t,u):z({parentSpan:S,spanArguments:s,forceTransaction:p,scope:t})})}const U=(s,p)=>{const S=(0,t.getMainCarrier)(),u=(0,n.getAsyncContextStrategy)(S);if(u.continueTrace)return u.continueTrace(s,p);const{sentryTrace:l,baggage:f}=s,T=(0,o.getClient)(),C=(0,c.baggageHeaderToDynamicSamplingContext)(f);return T&&!(0,P.shouldContinueTrace)(T,C?.org_id)?k(p):(0,o.withScope)(n=>{const t=(0,P.propagationContextFromHeaders)(l,f);return n.setPropagationContext(t),(0,_._setSpanForScope)(n,void 0),p()})};function j(n,t){const s=K();return s.withActiveSpan?s.withActiveSpan(n,t):(0,o.withScope)(o=>((0,_._setSpanForScope)(o,n||void 0),t(o)))}function B(n){const t=K();return t.suppressTracing?t.suppressTracing(n):(0,o.withScope)(t=>{t.setSDKProcessingMetadata({[v]:!0});const o=n();return t.setSDKProcessingMetadata({[v]:void 0}),o})}function F(n=(0,o.getCurrentScope)()){const t=K();return t.isTracingSuppressed?t.isTracingSuppressed(n):!0===n.getScopeData().sdkProcessingMetadata[v]}function k(n){const t=K();return t.startNewTrace?t.startNewTrace(n):(0,o.withScope)(t=>(t.setPropagationContext({traceId:(0,I.generateTraceId)(),sampleRand:(0,R.safeMathRandom)()}
57),s.DEBUG_BUILD&&S.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),j(null,n)))}function Y(n,t){t?.recordDroppedEvent("no_parent_span","span");const s=new O.SentryNonRecordingSpan({traceId:n.getPropagationContext().traceId});return(0,w.setCapturedScopesOnSpan)(s,n,(0,o.getIsolationScope)()),s}function z({parentSpan:n,spanArguments:t,forceTransaction:s,scope:p}){const c=(0,o.getIsolationScope)();if(!(0,l.hasSpansEnabled)()){const t={...c.getPropagationContext(),...p.getPropagationContext()},o=n?n.spanContext().traceId:t.traceId,S=new O.SentryNonRecordingSpan({traceId:o});return n&&!s&&(0,b.addChildSpanToSpan)(n,S),(0,w.setCapturedScopesOnSpan)(S,p,c),S}const S=(0,o.getClient)();if($(S,t)){F(p)||S?.recordDroppedEvent("ignored","span");const t=new O.SentryNonRecordingSpan({dropReason:"ignored",traceId:n?.spanContext().traceId??p.getPropagationContext().traceId});return(0,w.setCapturedScopesOnSpan)(t,p,c),t}let u;if(n&&!s)u=q(n,p,t,c),(0,b.addChildSpanToSpan)(n,u);else if(n){const o=(0,E.getDynamicSamplingContextFromSpan)(n),{traceId:s,spanId:S}=n.spanContext(),l=(0,b.spanIsSampled)(n);u=L({traceId:s,parentSpanId:S,...t},p,c,l),(0,E.freezeDscOnSpan)(u,o)}else{const{traceId:n,dsc:o,parentSpanId:s,sampled:S}={...c.getPropagationContext(),...p.getPropagationContext()};u=L({traceId:n,parentSpanId:s,...t},p,c,S),o&&(0,E.freezeDscOnSpan)(u,o)}return(0,y.logSpanStart)(u),u}function G(n){const t={isStandalone:(n.experimental||{}).standalone,...n};if(n.startTime){const o={...t};return o.startTimestamp=(0,b.spanTimeInputToSeconds)(n.startTime),delete o.startTime,o}return t}function K(){const o=(0,t.getMainCarrier)();return(0,n.getAsyncContextStrategy)(o)}function L(n,t,c,u){const l=(0,o.getClient)(),f=l?.getOptions()||{},{name:I=""}=n,R={spanAttributes:{...n.attributes},spanName:I,parentSampled:u};l?.emit("beforeSampling",R,{decision:!1});const _=R.parentSampled??u,b=R.spanAttributes,P=t.getPropagationContext(),E=F(t),[y,O,N]=E?[!1]:(0,A.sampleSpan)(f,{name:I,parentSampled:_,attributes:b,normalizedRequest:c.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,C.parseSampleRate)(P.dsc?.sample_rate)},P.sampleRand),v=new h.SentrySpan({...n,attributes:{[p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[p.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==O&&N?O:void 0,...b},sampled:y}
57);return y||!l||E||(s.DEBUG_BUILD&&S.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),l.recordDroppedEvent("sample_rate",(0,T.hasSpanStreamingEnabled)(l)?"span":"transaction")),(0,w.setCapturedScopesOnSpan)(v,t,c),l&&l.emit("spanStart",v),v}function q(n,t,s,p){const{spanId:c,traceId:S}=n.spanContext(),u=F(t),l=!u&&(0,b.spanIsSampled)(n),f=l?new h.SentrySpan({...s,parentSpanId:c,traceId:S,sampled:l}):new O.SentryNonRecordingSpan({traceId:S});(0,b.addChildSpanToSpan)(n,f),(0,w.setCapturedScopesOnSpan)(f,t,p);const C=(0,o.getClient)();return C?((0,T.hasSpanStreamingEnabled)(C)&&(0,O.spanIsNonRecordingSpan)(f)&&((0,O.spanIsNonRecordingSpan)(n)&&n.dropReason?(f.dropReason=n.dropReason,C.recordDroppedEvent(n.dropReason,"span")):u||(f.dropReason="sample_rate",C.recordDroppedEvent("sample_rate","span"))),C.emit("spanStart",f),s.endTimestamp&&(C.emit("spanEnd",f),C.emit("afterSpanEnd",f)),f):f}function H(n,t){if(t)return t;if(null===t)return;const s=(0,_._getSpanForScope)(n);if(!s)return;const p=(0,o.getClient)();return(p?p.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,b.getRootSpan)(s):s}function J(n){return void 0!==n?t=>j(n,t):n=>n()}function $(n,t){const o=n?.getOptions().ignoreSpans;return!!(n&&(0,T.hasSpanStreamingEnabled)(n)&&o?.length)&&(0,f.shouldIgnoreSpan)({description:t.name||"",op:t.attributes?.[p.SEMANTIC_ATTRIBUTE_SENTRY_OP]||t.op,attributes:t.attributes},o)}function Q(n){return(0,O.spanIsNonRecordingSpan)(n)&&"ignored"===n.dropReason}},1592,[1552,1547,1571,1542,1572,1576,1546,1593,1580,1581,1591,1578,1566,1560,1567,1551,1575,1585,1589,1594,1582,1583,1573,1574]);
58__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return t}});var e=r(d[0]),n=r(d[1]);function t(e,n,t=()=>{},o=()=>{}){let u;try{u=e()}catch(e){throw n(e),t(),e}return c(u,n,t,o)}function c(t,c,o,u){return(0,n.isThenable)(t)?(0,e.chainAndCopyPromiseLike)(t,e=>{o(),u(e)},e=>{c(e),o()}):(o(),u(t),t)}},1593,[1569,1559]);
59__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sampleSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),p=r(d[2]),o=r(d[3]);function s(s,l,c){if(!(0,p.hasSpansEnabled)(s))return[!1];let u,f;"function"==typeof s.tracesSampler?(f=s.tracesSampler({...l,inheritOrSampleWith:t=>"number"==typeof l.parentSampleRate?l.parentSampleRate:"boolean"==typeof l.parentSampled?Number(l.parentSampled):t}),u=!0):void 0!==l.parentSampled?f=l.parentSampled:void 0!==s.tracesSampleRate&&(f=s.tracesSampleRate,u=!0);const S=(0,o.parseSampleRate)(f);if(void 0===S)return t.DEBUG_BUILD&&n.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(f)} of type ${JSON.stringify(typeof f)}.`),[!1];if(!S)return t.DEBUG_BUILD&&n.debug.log("[Tracing] Discarding transaction because "+("function"==typeof s.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,S,u];const b=c<S;return b||t.DEBUG_BUILD&&n.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(f)})`),[b,S,u]}},1594,[1542,1546,1580,1578]);
60__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"bindScopeToEmitter",{enumerable:!0,get:function(){return f}});var n=r(d[0]);const t=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],o=["removeListener","off","removeEventListener"],c=Symbol("SentryScopeBoundListeners");let u;function s(n){return void 0!==u&&(n===u||n.listener===u)}function f(c,u=(0,n.getCurrentScope)()){const s=c;if(S(s))return c;h(s);for(const n of t)"function"==typeof s[n]&&(s[n]=y(s,s[n],u));for(const n of o)"function"==typeof s[n]&&(s[n]=v(s,s[n]));return"function"==typeof s.removeAllListeners&&(s.removeAllListeners=L(s,s.removeAllListeners)),c}function l(t,o){return function(...c){return(0,n.withScope)(o,()=>t.apply(this,c))}}function p(n){return"function"==typeof n}function y(n,t,o){return function(...c){const f=c[0],y=c[1],v=c.slice(2);if(!p(y)||s(y))return t.apply(this,c);const L=S(n)||h(n);let b=L.get(f);b||(b=new WeakMap,L.set(f,b));let _=b.get(y);_||(_=l(y,o),b.set(y,_));const w=u;u=_;try{return t.call(this,f,_,...v)}finally{u=w}}}function v(n,t){return function(...o){const c=o[0],u=o[1],s=o.slice(2),f=p(u)?S(n)?.get(c)?.get(u):void 0;return f?t.call(this,c,f,...s):t.apply(this,o)}}function L(n,t){return function(...o){const c=S(n);if(c)if(0===o.length)h(n);else{const n=o[0];c.delete(n)}return t.apply(this,o)}}function h(n){const t=new Map;return n[c]=t,t}function S(n){return n[c]}},1595,[1571]);
61__d(function(g,r,i,a,m,e,d){"use strict";
61Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyBeforeSendSpanCallback",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"captureSpan",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return N}});var n=r(d[0]),t=r(d[1]),S=r(d[2]),T=r(d[3]),E=r(d[4]),s=r(d[5]),o=r(d[6]);function _(s,o){const _=(0,S.spanToStreamedSpanJSON)(s),I=(0,S.INTERNAL_getSegmentSpan)(s),R=(0,S.spanToStreamedSpanJSON)(I),{isolationScope:M,scope:f}=(0,T.getCapturedScopesOnSpan)(s),U=(0,t.getCombinedScopeData)(M,f);u(_,R,o,U);const b=s.kind;o.emit("preprocessSpan",_,{spanKind:b}),_.is_segment&&(p(_,U),c(_,o),o.emit("processSegmentSpan",_)),o.emit("processSpan",_);const{beforeSendSpan:C}=o.getOptions(),l=C&&(0,E.isStreamedBeforeSendSpanCallback)(C)?A(_,C):_,O=l.attributes?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return O&&N(l,{"sentry.span.source":O}),{...(0,S.streamedSpanJsonToSerializedSpan)(l),_segmentSpan:I}}function p(n,t){N(n,(0,s.scopeContextsToSpanAttributes)(t.contexts))}function N(n,t){const S=n.attributes??(n.attributes={});Object.entries(t).forEach(([n,t])=>{null==t||n in S||(S[n]=t)})}function c(t,S){const T=S.getIntegrationNames();T.length&&N(t,{[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:T})}function u(t,S,T,E){const s=T.getSdkMetadata(),{release:_,environment:p}=T.getOptions();N(t,{[n.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:_,[n.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:p||o.DEFAULT_ENVIRONMENT,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME]:S.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID]:S.span_id,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME]:s?.sdk?.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION]:s?.sdk?.version,[n.SEMANTIC_ATTRIBUTE_USER_ID]:E.user?.id,[n.SEMANTIC_ATTRIBUTE_USER_EMAIL]:E.user?.email,[n.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:E.user?.ip_address,[n.SEMANTIC_ATTRIBUTE_USER_USERNAME]:E.user?.username,...E.attributes})}function A(n,t){const T=t(n);return T||((0,S.showSpanDropWarning)(),n)}},1596,[1572,1597,1551,1574,1587,1598,1586]);
62__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getCombinedScopeData",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"mergeAndOverwriteScopeData",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"mergeScopeData",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);function c(t,n){const{fingerprint:s,span:o,breadcrumbs:c,sdkProcessingMetadata:p}=n;l(t,n),o&&y(t,o),P(t,s),b(t,c),x(t,p)}function p(t,n){const{extra:o,tags:c,attributes:p,user:f,contexts:l,level:b,sdkProcessingMetadata:x,breadcrumbs:y,fingerprint:P,eventProcessors:h,attachments:S,propagationContext:k,transactionName:v,span:O}=n;u(t,"extra",o),u(t,"tags",c),u(t,"attributes",p),u(t,"user",f),u(t,"contexts",l),t.sdkProcessingMetadata=(0,s.merge)(t.sdkProcessingMetadata,x,2),b&&(t.level=b),v&&(t.transactionName=v),O&&(t.span=O),y.length&&(t.breadcrumbs=[...t.breadcrumbs,...y]),P.length&&(t.fingerprint=[...t.fingerprint,...P]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),S.length&&(t.attachments=[...t.attachments,...S]),t.propagationContext={...t.propagationContext,...k}}function u(t,n,o){t[n]=(0,s.merge)(t[n],o,1)}function f(n,s){const o=(0,t.getGlobalScope)().getScopeData();return n&&p(o,n.getScopeData()),s&&p(o,s.getScopeData()),o}function l(t,n){const{extra:s,tags:o,user:c,contexts:p,level:u,transactionName:f}=n;Object.keys(s).length&&(t.extra={...s,...t.extra}),Object.keys(o).length&&(t.tags={...o,...t.tags}),Object.keys(c).length&&(t.user={...c,...t.user}),Object.keys(p).length&&(t.contexts={...p,...t.contexts}),u&&(t.level=u),f&&"transaction"!==t.type&&(t.transaction=f)}function b(t,n){const s=[...t.breadcrumbs||[],...n];t.breadcrumbs=s.length?s:void 0}function x(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}function y(t,s){t.contexts={trace:(0,o.spanToTraceContext)(s),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:(0,n.getDynamicSamplingContextFromSpan)(s),...t.sdkProcessingMetadata};const c=(0,o.getRootSpan)(s),p=(0,o.spanToJSON)(c).description;p&&!t.transaction&&"transaction"===t.type&&(t.transaction=p)}function P(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n)),t.fingerprint.length||delete t.fingerprint}},1597,[1571,1585,1565,1551]);
63__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const o={},{response:s,profile:n,cloud_resource:l,culture:u,state:c}=t;if(s&&(null!=s.status_code&&(o["http.response.status_code"]=s.status_code),null!=s.body_size&&(o["http.response.body.size"]=s.body_size)),n&&(n.profile_id&&(o["sentry.profile_id"]=n.profile_id),n.profiler_id&&(o["sentry.profiler_id"]=n.profiler_id)),l)for(const[t,s]of Object.entries(l))null!=s&&(o[t]=s);
63u&&(u.locale&&(o["culture.locale"]=u.locale),u.timezone&&(o["culture.timezone"]=u.timezone)),c?.state&&"string"==typeof c.state.type&&(o["state.type"]=c.state.type);const p=t.angular;if(p){const t=p.version;"string"!=typeof t&&"number"!=typeof t||(o["angular.version"]=t)}const f=t.react;if(f){const t=f.version;"string"!=typeof t&&"number"!=typeof t||(o["react.version"]=t)}return o}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"scopeContextsToSpanAttributes",{enumerable:!0,get:function(){return t}})},1598,[]);
64__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return D}});var e=_r(d[0]),t=_r(d[1]),n=_r(d[2]),r=_r(d[3]),o=_r(d[4]),u=_r(d[5]),c=_r(d[6]),s=_r(d[7]),f=_r(d[8]),p=_r(d[9]),l=_r(d[10]);function b(t,n){return(0,e.getCurrentScope)().captureException(t,(0,s.parseEventHintOrCaptureContext)(n))}function S(t,n){const r="string"==typeof n?n:void 0,o="string"!=typeof n?{captureContext:n}:void 0;return(0,e.getCurrentScope)().captureMessage(t,r,o)}function I(t,n){return(0,e.getCurrentScope)().captureEvent(t,n)}function y(t,n){(0,e.getIsolationScope)().setContext(t,n)}function C(t){(0,e.getIsolationScope)().setExtras(t)}function O(t,n){(0,e.getIsolationScope)().setExtra(t,n)}function P(t){(0,e.getIsolationScope)().setTags(t)}function j(t,n){(0,e.getIsolationScope)().setTag(t,n)}function h(t){(0,e.getIsolationScope)().setAttributes(t)}function v(t,n){(0,e.getIsolationScope)().setAttribute(t,n)}function E(t){(0,e.getIsolationScope)().setUser(t)}function k(t){(0,e.getIsolationScope)().setConversationId(t)}function x(){return(0,e.getIsolationScope)().lastEventId()}function B(n,r){const u=(0,e.getCurrentScope)(),s=(0,e.getClient)();if(s){if(s.captureCheckIn)return s.captureCheckIn(n,r,u);t.DEBUG_BUILD&&o.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else t.DEBUG_BUILD&&o.debug.warn("Cannot capture check-in. No client defined.");return(0,c.uuid4)()}function D(t,n,o){function c(){const e=B({monitorSlug:t,status:"in_progress"},o),r=(0,p.timestampInSeconds)();function c(n){B({monitorSlug:t,status:n,checkInId:e,duration:(0,p.timestampInSeconds)()-r})}let s;try{s=n()}catch(e){throw c("error"),e}return(0,u.isThenable)(s)?s.then(e=>(c("ok"),e),e=>{throw c("error"),e}):(c("ok"),s)}return(0,e.withIsolationScope)(()=>o?.isolateTrace?(0,r.startNewTrace)(c):c())}async function U(n){const r=(0,e.getClient)();return r?r.flush(n):(t.DEBUG_BUILD&&o.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function _(n){const r=(0,e.getClient)();return r?r.close(n):(t.DEBUG_BUILD&&o.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function w(){return!!(0,e.getClient)()}function T(){const t=(0,e.getClient)();return!1!==t?.getOptions().enabled&&!!t?.getTransport()}function A(t){(0,e.getIsolationScope)().addEventProcessor(t)}function L(t){const r=(0,e.getIsolationScope)(),{user:o}=(0,f.getCombinedScopeData)(r,(0,e.getCurrentScope)()),{userAgent:u}
64=l.GLOBAL_OBJ.navigator||{},c=(0,n.makeSession)({user:o,...u&&{userAgent:u},...t}),s=r.getSession();return"ok"===s?.status&&(0,n.updateSession)(s,{status:"exited"}),G(),r.setSession(c),c}function G(){const t=(0,e.getIsolationScope)(),r=(0,e.getCurrentScope)().getSession()||t.getSession();r&&(0,n.closeSession)(r),M(),t.setSession()}function M(){const t=(0,e.getIsolationScope)(),n=(0,e.getClient)(),r=t.getSession();r&&n&&n.captureSession(r)}function N(e=!1){e?G():M()}},1599,[1571,1542,1556,1592,1546,1559,1557,1600,1597,1564,1544]);
65__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyClientOptions",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"applyDebugIds",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"applyDebugMeta",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"parseEventHintOrCaptureContext",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"prepareEvent",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),i=r(d[5]),u=r(d[6]),l=r(d[7]),p=r(d[8]),f=r(d[9]);function b(t,o,s,i,l,b){const{normalizeDepth:O=3,normalizeMaxBreadth:P=1e3}=t,j={...o,event_id:o.event_id||s.event_id||(0,c.uuid4)(),timestamp:o.timestamp||(0,f.dateTimestampInSeconds)()},k=s.integrations||t.integrations.map(t=>t.name);x(j,t),h(j,k),l&&l.emit("applyFrameMetadata",o),void 0===o.type&&_(j,t.stackParser);const z=E(i,s.captureContext);s.mechanism&&(0,c.addExceptionMechanism)(j,s.mechanism);const C=l?l.getEventProcessors():[],D=(0,u.getCombinedScopeData)(b,z),M=[...s.attachments||[],...D.attachments];M.length&&(s.attachments=M),(0,u.applyScopeDataToEvent)(j,D);const S=[...C,...D.eventProcessors];return(s.data&&!0===s.data.__sentry__?(0,p.resolvedSyncPromise)(j):(0,n.notifyEventProcessors)(S,j,s)).then(t=>(t&&v(t),"number"==typeof O&&O>0?y(t,O,P):t))}function x(n,o){const{environment:s,release:c,dist:i,maxValueLength:u}=o;n.environment=n.environment||s||t.DEFAULT_ENVIRONMENT,!n.release&&c&&(n.release=c),!n.dist&&i&&(n.dist=i);const p=n.request;p?.url&&u&&(p.url=(0,l.truncate)(p.url,u)),u&&n.exception?.values?.forEach(t=>{t.value&&(t.value=(0,l.truncate)(t.value,u))})}function _(t,n){const o=(0,s.getFilenameToDebugIdMap)(n);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=o[t.filename])})})}function v(t){const n={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const o=t.debug_meta.images;Object.entries(n).forEach(([t,n])=>{o.push({type:"sourcemap",code_file:t,debug_id:n})})}function h(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}function y(t,n,o){if(!t)return null;const s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,i.normalize)(t.data,n,o)}}))},...t.user&&{user:(0,i.normalize)(t.user,n,o)},...t.contexts&&{contexts:(0,i.normalize)(t.contexts,n,o)},...t.extra&&{extra:(0,i.normalize)(t.extra,n,o)}};return t.contexts?.trace&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=(0,i.normalize)(t.contexts.trace.data,n,o))),t.spans&&(s.spans=t.spans.map(t=>({...t,...t.data&&{data:(0,i.normalize)(t.data,n,o)}}))),t.contexts?.flags&&s.contexts&&(s.contexts.flags=(0,i.normalize)(t.contexts.flags,3,o)),s}function E(t,n){if(!n)return t;const s=t?t.clone():new o.Scope;return s.update(n),s}function O(t){if(t)return P(t)||k(t)?{captureContext:t}:t}function P(t){return t instanceof o.Scope||"function"==typeof t}const j=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function k(t){return Object.keys(t).some(t=>j.includes(t))}},1600,[1586,1601,1555,1603,1557,1562,1597,1561,1602,1564]);
66__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"notifyEventProcessors",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function s(n,t,s,l=0){try{const f=u(t,s,n,l);return(0,o.isThenable)(f)?f:(0,c.resolvedSyncPromise)(f)}catch(n){return(0,c.rejectedSyncPromise)(n)}}function u(c,s,l,f){const b=l[f];if(!c||!b)return c;const v=b({...c},s);return n.DEBUG_BUILD&&null===v&&t.debug.log(`Event processor "${b.id||"?"}" dropped event`),(0,o.isThenable)(v)?v.then(n=>u(n,s,l,f+1)):u(v,s,l,f+1)}},1601,[1542,1546,1559,1602]);
67__d(function(g,r,i,a,m,_e,d){"use strict";
67Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return t}});var e=r(d[0]);function t(e){return new s(t=>{t(e)})}function n(e){return new s((t,n)=>{n(e)})}class s{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new s((n,s)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){s(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){s(e)}else s(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,n)=>{let s,c;return this.then(t=>{c=!1,s=t,e&&e()},t=>{c=!0,s=t,e&&e()}).then(()=>{c?n(s):t(s)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(t){const n=(t,n)=>{0===this._state&&((0,e.isThenable)(n)?n.then(s,c):(this._state=t,this._value=n,this._executeHandlers()))},s=e=>{n(1,e)},c=e=>{n(2,e)};try{t(s,c)}catch(e){c(e)}}}},1602,[1559]);
68__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDebugImagesForResources",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]);let o,c,s,u;function f(t){const f=n.GLOBAL_OBJ._sentryDebugIds,i=n.GLOBAL_OBJ._debugIds;if(!f&&!i)return{};const l=f?Object.keys(f):[],b=i?Object.keys(i):[];if(u&&l.length===c&&b.length===s)return u;c=l.length,s=b.length,u={},o||(o={});const _=(n,c)=>{for(const s of n){const n=c[s],f=o?.[s];if(f&&u&&n)u[f[0]]=n,o&&(o[s]=[f[0],n]);else if(n){const c=t(s);for(let t=c.length-1;t>=0;t--){const f=c[t],i=f?.filename;if(i&&u&&o){u[i]=n,o[s]=[i,n];break}}}}};return f&&_(l,f),i&&_(b,i),u}function i(n,o){const c=f(n);if(!c)return[];const s=[];for(const n of o){const o=(0,t.normalizeStackTracePath)(n);o&&c[o]&&s.push({type:"sourcemap",code_file:n,debug_id:c[o]})}return s}},1603,[1549,1544]);
69__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function u(t,s=1){const l=(0,c.getAsyncContextStrategy)((0,n.getMainCarrier)()).getTracingChannelBinding?.();l?t():s&&(0,o.safeUnref)(setTimeout(()=>{u(t,s-1)},1))}function s(n,o){return{asyncLocalStorage:n,getStoreWithActiveSpan:n=>{const{scope:c,isolationScope:u}=o(),s=c.clone();return(0,t._setSpanForScope)(s,n),{scope:s,isolationScope:u}}}}},1604,[1547,1567,1605,1552]);
70__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return"object"==typeof n&&"function"==typeof n.unref&&n.unref(),n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"safeUnref",{enumerable:!0,get:function(){return n}})},1605,[]);
71__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return p}});var n=r(d[0]);const t="7";function o(n){const t=n.protocol?`${n.protocol}:`:"",o=n.port?`:${n.port}`:"";return`${t}//${n.host}${o}${n.path?`/${n.path}`:""}/api/`}function c(n){return`${o(n)}${n.projectId}/envelope/`}function u(n,o){const c={sentry_version:t};return n.publicKey&&(c.sentry_key=n.publicKey),o&&(c.sentry_client=`${o.name}/${o.version}`),new URLSearchParams(c).toString()}function s(n,t,o){return t||`${c(n)}?${u(n,o)}`}function p(t,c){const u=(0,n.makeDsn)(t);if(!u)return"";const s=`${o(u)}embed/error-page/`;let p=`dsn=${(0,n.dsnToString)(u)}`;for(const n in c)if("dsn"!==n&&"onClose"!==n)if("user"===n){const n=c.user;if(!n)continue;n.name&&(p+=`&name=${encodeURIComponent(n.name)}`),n.email&&(p+=`&email=${encodeURIComponent(n.email)}`)}else p+=`&${encodeURIComponent(n)}=${encodeURIComponent(c[n])}`;return`${s}?${p}`}},1606,[1577]);
72__d(function(g,r,i,a,m,_e,d){"use strict";
72Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return J}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),h=r(d[8]),l=r(d[9]),_=r(d[10]),f=r(d[11]),v=r(d[12]),E=r(d[13]),b=r(d[14]),S=r(d[15]),D=r(d[16]),y=r(d[17]),B=r(d[18]),I=r(d[19]),U=r(d[20]),w=r(d[21]),P=r(d[22]),L=r(d[23]),O=r(d[24]),T=r(d[25]),C=r(d[26]),k=r(d[27]),N=r(d[28]),R=r(d[29]),x=r(d[30]);const M="Not capturing exception because it's already been captured.",F="Discarded session because of missing or non-string release",G=Symbol.for("SentryInternalError"),A=Symbol.for("SentryDoNotSendEventError");function $(e){return{message:e,[G]:!0}}function j(e){return{message:e,[A]:!0}}function W(e){return!!e&&"object"==typeof e&&G in e}function q(e){return!!e&&"object"==typeof e&&A in e}function z(e,t,n,s,o){let c,u=0,p=!1;e.on(n,()=>{u=0,clearTimeout(c),p=!1}),e.on(t,t=>{if(u+=s(t),u>=8e5)o(e);else if(!p){const t=e.getOptions()._flushInterval??5e3;t>0&&(p=!0,c=(0,N.safeUnref)(setTimeout(()=>{o(e)},t)))}}),e.on("flush",()=>{o(e)})}class J{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=(0,L.makePromiseBuffer)(t.transportOptions?.bufferSize??v.DEFAULT_TRANSPORT_BUFFER_SIZE),this._dataCollection=(0,x.resolveDataCollectionOptions)(t),t.dsn?this._dsn=(0,S.makeDsn)(t.dsn):s.DEBUG_BUILD&&b.debug.warn("No DSN provided, client will not send events."),this._dsn){const n=(0,e.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&z(this,"afterCaptureLog","flushLogs",X,u._INTERNAL_flushLogsBuffer);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&z(this,"afterCaptureMetric","flushMetrics",Q,p._INTERNAL_flushMetricsBuffer)}captureException(e,t,n){const o=(0,U.uuid4)();if((0,U.checkOrSetAlreadyCaught)(e))return s.DEBUG_BUILD&&b.debug.log(M),o;const c={event_id:o,...t};return this._process(()=>this.eventFromException(e,c).then(e=>this._captureEvent(e,c,n)).then(e=>e),"error"),c.event_id}captureMessage(e,t,n,s){const o={event_id:(0,U.uuid4)(),...n},c=(0,B.isParameterizedString)(e)?e:String(e),u=(0,B.isPrimitive)(e),p=u?this.eventFromMessage(c,t,o):this.eventFromException(e,o);return this._process(()=>p.then(e=>this._captureEvent(e,o,s)),u?"unknown":"error"),o.event_id}captureEvent(e,t,n){const o=(0,U.uuid4)();if(t?.originalException&&(0,U.checkOrSetAlreadyCaught)(t.originalException))return s.DEBUG_BUILD&&b.debug.log(M),o;const c={event_id:o,...t},u=e.sdkProcessingMetadata||{},p=u.capturedSpanScope,h=u.capturedSpanIsolationScope,l=V(e.type);return this._process(()=>this._captureEvent(e,c,p||n,h),l),c.event_id}captureSession(e){this.sendSession(e),(0,h.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){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),s=await t.flush(e);return n&&s}async close(e){(0,u._INTERNAL_flushLogsBuffer)(this);const 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){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),(0,c.setupIntegration)(this,e,this._integrations),t||(0,c.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}
72){this.emit("beforeSendEvent",e,t);const n=(0,f.extractGenAiSpansFromEvent)(e,this);let s=(0,o.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])s=(0,D.addItemToEnvelope)(s,(0,D.createAttachmentEnvelopeItem)(e));n&&(s=(0,D.addItemToEnvelope)(s,n)),this.sendEnvelope(s).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:n,environment:c=t.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const t=e.attrs||{};if(!t.release&&!n)return void(s.DEBUG_BUILD&&b.debug.warn(F));t.release=t.release||n,t.environment=t.environment||c,e.attrs=t}else{if(!e.release&&!n)return void(s.DEBUG_BUILD&&b.debug.warn(F));e.release=e.release||n,e.environment=e.environment||c}this.emit("beforeSendSession",e);const u=(0,o.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(u)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const o=`${e}:${t}`;s.DEBUG_BUILD&&b.debug.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,s=(...e)=>t(...e);return n.add(s),()=>{n.delete(s)}}emit(e,...t){const 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 s.DEBUG_BUILD&&b.debug.error("Error while sending envelope:",e),{}}return s.DEBUG_BUILD&&b.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,c.setupIntegrations)(this,e),(0,c.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,s=!1;const o=t.exception?.values;if(o){s=!0,n=!1;for(const e of o)if(!1===e.mechanism?.handled){n=!0;break}}const c="ok"===e.status;(c&&0===e.errors||c&&n)&&((0,h.updateSession)(e,{...n&&{status:"crashed"},errors:e.errors||Number(s||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,s,o){const c=this.getOptions(),u=this.getIntegrationNames();return!t.integrations&&u.length&&(t.integrations=u),this.emit("preprocessEvent",e,t),e.type||o.setLastEventId(e.event_id||t.event_id),(0,P.prepareEvent)(c,e,t,s,this,o).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,n.getTraceContextFromScope)(s)},...e.contexts};const o=(0,l.getDynamicSamplingContextFromScope)(this,s);return e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},o=(0,n.getCurrentScope)(),c=(0,n.getIsolationScope)()){return s.DEBUG_BUILD&&H(e)&&b.debug.log(`Captured error event \`${(0,y.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,o,c).then(e=>e.event_id,e=>{s.DEBUG_BUILD&&(q(e)?b.debug.log(e.message):W(e)?b.debug.warn(e.message):b.debug.warn(e))})}_processEvent(e,t,n,s){const o=this.getOptions(),{sampleRate:c}=o,u=K(e),p=H(e),h=`before send for type \`${e.type||"error"}\``,l=void 0===c?void 0:(0,w.parseSampleRate)(c);if(p&&"number"==typeof l&&(0,O.safeMathRandom)()>l)return this.recordDroppedEvent("sample_rate","error"),(0,k.rejectedSyncPromise)(j(`Discarding event because it's not included in the random sample (sampling rate = ${c})`));const _=V(e.type);return this._prepareEvent(e,t,n,s).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",_),j("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;return Y(Z(this,o,e,t),h)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",_),u){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw j(`${h} returned \`null\`, will not send event.`)}const c=n.getSession()||s.getSession();if(p&&c&&this._updateSessionFromEvent(c,o),u){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const l=o.transaction_info;if(u&&l&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...l,source:e}}return this.sendEvent(o,t),o}).then(null,e=>{if(q(e)||W(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),$(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===L.SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,s]=e.split(":");return{reason:n,category:s,quantity:t}})}_flushOutcomes(){s.DEBUG_BUILD&&b.debug.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(s.DEBUG_BUILD&&b.debug.log("No outcomes to send"));if(!this._dsn)return void(s.DEBUG_BUILD&&b.debug.log("No dsn provided, will not send outcomes"));s.DEBUG_BUILD&&b.debug.log("Sending outcomes:",e);const t=(0,E.createClientReportEnvelope)(e,this._options.tunnel&&(0,S.dsnToString)(this._dsn));this.sendEnvelope(t)}}function V(e){return"replay_event"===e?"replay":e||"error"}function Y(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,B.isThenable)(e))return e.then(e=>{if(!(0,B.isPlainObject)(e)&&null!==e)throw $(n);return e},e=>{throw $(`${t} rejected with ${e}`)});if(!(0,B.isPlainObject)(e)&&null!==e)throw $(n);return e}function Z(e,t,n,s){const{beforeSend:o,beforeSendTransaction:c,ignoreSpans:u}=t,p=!(0,_.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan;let h=n;if(H(h)&&o)return o(h,s);if(K(h)){if(p||u){const t=(0,R.convertTransactionEventToSpanJson)(h);if(u?.length&&(0,T.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},u))return null;if(p){const e=p(t);e?h=(0,I.merge)(n,(0,R.convertSpanJsonToTransactionEvent)(e)):(0,C.showSpanDropWarning)()}if(h.spans){const t=[],n=h.spans;for(const e of n)if(u?.length&&(0,T.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},u))(0,T.reparentChildSpans)(n,e);else if(p){const n=p(e);n?t.push(n):((0,C.showSpanDropWarning)(),t.push(e))}else t.push(e);const s=h.spans.length-t.length;s&&e.recordDroppedEvent("before_send","span",s),h.spans=t}}if(c){if(h.spans){const e=h.spans.length;h.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return c(h,s)}}return h}function H(e){return void 0===e.type}function K(e){return"transaction"===e.type}function Q(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+ee(e.attributes)}function X(e){let t=0;return e.message&&(t+=2*e.message.length),t+ee(e.attributes)}function ee(e){if(!e)return 0;let t=0;
72return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*te(e[0]):(0,B.isPrimitive)(e)?t+=te(e):t+=100}),t}function te(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}},1607,[1606,1586,1571,1542,1584,1608,1609,1617,1556,1585,1587,1619,1621,1624,1546,1577,1588,1625,1559,1565,1557,1578,1600,1622,1560,1581,1551,1602,1605,1626,1627]);
73__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addIntegration",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"afterSetupIntegrations",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"defineIntegration",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extendIntegration",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"installedIntegrations",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setupIntegration",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"setupIntegrations",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const c=[];function u(n){const t={};return n.forEach(n=>{const{name:o}=n,c=t[o];c&&!c.isDefaultInstance&&n.isDefaultInstance||(t[o]=n)}),Object.values(t)}function s(n){const t=n.defaultIntegrations||[],o=n.integrations;let c;if(t.forEach(n=>{n.isDefaultInstance=!0}),Array.isArray(o))c=[...t,...o];else if("function"==typeof o){const n=o(t);c=Array.isArray(n)?n:[n]}else c=t;return u(c)}function f(n,t){const o={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(n)}),t.forEach(t=>{t&&l(n,t,o)}),o}function p(n,t){for(const o of t)o?.afterAllSetup&&o.afterAllSetup(n)}function l(n,u,s){if(s[u.name])t.DEBUG_BUILD&&o.debug.log(`Integration skipped because it was already installed: ${u.name}`);else{if(s[u.name]=u,c.includes(u.name)||"function"!=typeof u.setupOnce||(u.setupOnce(),c.push(u.name)),u.setup&&"function"==typeof u.setup&&u.setup(n),"function"==typeof u.preprocessEvent){const t=u.preprocessEvent.bind(u);n.on("preprocessEvent",(o,c)=>t(o,c,n))}if("function"==typeof u.processEvent){const t=u.processEvent.bind(u),o=Object.assign((o,c)=>t(o,c,n),{id:u.name});n.addEventProcessor(o)}["processSpan","processSegmentSpan"].forEach(t=>{const o=u[t];"function"==typeof o&&n.on(t,t=>o.call(u,t,n))}),t.DEBUG_BUILD&&o.debug.log(`Integration installed: ${u.name}`)}}function b(c){const u=(0,n.getClient)();u?u.addIntegration(c):t.DEBUG_BUILD&&o.debug.warn(`Cannot add integration "${c.name}" because no SDK Client is available.`)}function y(n){return n}function I(n,t){const o={...n,...t};for(const c in t){const u=n[c],s=t[c];if("function"==typeof u&&"function"==typeof s){const n=new Proxy(u,{apply:(n,t,o)=>(Reflect.apply(n,t,o),Reflect.apply(s,t,o))});o[c]=n}}return o}},1608,[1571,1542,1546]);
74__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"_INTERNAL_getLogBuffer",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"_removeLoneSurrogates",{enumerable:!0,get:function(){return D}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),l=r(d[5]),c=r(d[6]),f=r(d[7]),p=r(d[8]),_=r(d[9]),b=r(d[10]),y=r(d[11]),v=r(d[12]);const L=100;function S(t,n,o,s=!0){!o||t[n]&&!s||(t[n]=o)}function E(t,n){const o=B(),s=O(t);void 0===s?o.set(t,[n]):s.length>=L?(N(t,s),o.set(t,[n])):o.set(t,[...s,n])}function I(n,v=(0,o.getCurrentScope)(),L=E){const I=v?.getClient()??(0,o.getClient)();if(!I)return void(s.DEBUG_BUILD&&u.debug.warn("No client available to capture log."));const{release:N,environment:O,enableLogs:B=!1,beforeSendLog:R}=I.getOptions();if(!B)return void(s.DEBUG_BUILD&&u.debug.warn("logging option not enabled, log will not be captured."));const[,j]=(0,b._getTraceInfoFromScope)(I,v),C={...n.attributes},{user:{id:A,email:P,username:U},attributes:h={}}=(0,c.getCombinedScopeData)((0,o.getIsolationScope)(),v);S(C,"user.id",A,!1),S(C,"user.email",P,!1),S(C,"user.name",U,!1),S(C,"sentry.release",N),S(C,"sentry.environment",O);const{name:k,version:w}=I.getSdkMetadata()?.sdk??{};S(C,"sentry.sdk.name",k),S(C,"sentry.sdk.version",w);const M=I.getIntegrationByName("Replay"),z=M?.getReplayId(!0);S(C,"sentry.replay_id",z),z&&"buffer"===M?.getRecordingMode()&&S(C,"sentry._internal.replay_is_buffering",!0);const F=n.message;
74if((0,l.isParameterizedString)(F)){const{__sentry_template_string__:t,__sentry_template_values__:n=[]}=F;n?.length&&(C["sentry.message.template"]=t),n.forEach((t,n)=>{C[`sentry.message.parameter.${n}`]=t})}const G=(0,f._getSpanForScope)(v);S(C,"sentry.trace.parent_span_id",G?.spanContext().spanId);const W={...n,attributes:C};I.emit("beforeCaptureLog",W);const x=R?(0,u.consoleSandbox)(()=>R(W)):W;if(!x)return I.recordDroppedEvent("before_send","log_item",1),void(s.DEBUG_BUILD&&u.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:V,message:Y,attributes:q={},severityNumber:X}=x,$=(0,p.timestampInSeconds)(),H=(0,_.getSequenceAttribute)($);L(I,{timestamp:$,level:V,body:D(String(Y)),trace_id:j?.trace_id,severity_number:X??y.SEVERITY_TEXT_TO_SEVERITY_NUMBER[V],attributes:T({...(0,t.serializeAttributes)(h),...(0,t.serializeAttributes)(q,!0),[H.key]:H.value})}),I.emit("afterCaptureLog",x)}function N(t,n){const o=n??O(t)??[];if(0===o.length)return;const s=t.getOptions(),u=(0,v.createLogEnvelope)(o,s._metadata,s.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);B().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(u)}function O(t){return B().get(t)}function B(){return(0,n.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function T(t){const n={};for(const[o,s]of Object.entries(t)){const t=D(o);"string"===s.type?n[t]={...s,value:D(s.value)}:n[t]=s}return n}function D(t){const n=Object(t),o=n.isWellFormed,s=n.toWellFormed;return"function"==typeof o&&"function"==typeof s?o.call(t)?t:s.call(t):t}},1609,[1570,1547,1571,1542,1546,1559,1597,1567,1564,1610,1611,1612,1613]);
75__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSequenceAttribute",{enumerable:!0,get:function(){return o}});const t="sentry.timestamp.sequence";let n,u=0;function o(o){const c=Math.floor(1e3*o);void 0!==n&&c!==n&&(u=0);const s=u;return u++,n=c,{key:t,value:{value:s,type:"integer"}}}},1610,[]);
76__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getTraceInfoFromScope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(c,p){return p?(0,t.withScope)(p,()=>{const u=(0,o.getActiveSpan)(),S=u?(0,o.spanToTraceContext)(u):(0,t.getTraceContextFromScope)(p);return[u?(0,n.getDynamicSamplingContextFromSpan)(u):(0,n.getDynamicSamplingContextFromScope)(c,p),S]}):[void 0,void 0]}},1611,[1571,1585,1551]);
77__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SEVERITY_TEXT_TO_SEVERITY_NUMBER",{enumerable:!0,get:function(){return t}});const t={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},1612,[]);
78__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createLogContainerEnvelopeItem",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createLogEnvelope",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(n,t){const s=t?"auto":"never";return[{type:"log",item_count:n.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}function c(o,c,u,l,p){const f={};return c?.sdk&&(f.sdk={name:c.sdk.name,version:c.sdk.version}),u&&l&&(f.dsn=(0,n.dsnToString)(l)),(0,t.createEnvelope)(f,[s(o,p)])}},1613,[1577,1588,1614]);
79__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isBrowser",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]);function o(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||u())}function u(){const n=t.GLOBAL_OBJ.process;return"renderer"===n?.type}},1614,[1615,1544]);
80__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNodeEnv",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"loadModule",{enumerable:!0,get:function(){return c}});var t=r(d[0]);
80function n(){return!(0,t.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,n){return t.require(n)}function c(t,n=m){let c;try{c=o(n,t)}catch{}if(!c)try{const{cwd:u}=o(n,"process");c=o(n,`${u()}/node_modules/${t}`)}catch{}return c}},1615,[1616]);
81__d(function(g,r,i,a,m,e,d){"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function t(){
82/*! __SENTRY_SDK_SOURCE__ */
83return"npm"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSDKSource",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"isBrowserBundle",{enumerable:!0,get:function(){return n}})},1616,[]);
84__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"_INTERNAL_getMetricBuffer",{enumerable:!0,get:function(){return E}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]),p=r(d[7]),f=r(d[8]),b=r(d[9]),_=r(d[10]);const M=1e3;function y(t,n,o,s=!0){!o||!s&&n in t||(t[n]=o)}function v(t,n){const o=N(),s=E(t);void 0===s?o.set(t,[n]):s.length>=M?(D(t,s),o.set(t,[n])):o.set(t,[...s,n])}function I(t,n,o){const{release:s,environment:c}=n.getOptions(),u={...t.attributes};y(u,"user.id",o.id,!1),y(u,"user.email",o.email,!1),y(u,"user.name",o.username,!1),y(u,"sentry.release",s),y(u,"sentry.environment",c);const{name:l,version:p}=n.getSdkMetadata()?.sdk??{};y(u,"sentry.sdk.name",l),y(u,"sentry.sdk.version",p);const f=n.getIntegrationByName("Replay"),b=f?.getReplayId(!0);return y(u,"sentry.replay_id",b),b&&"buffer"===f?.getRecordingMode()&&y(u,"sentry._internal.replay_is_buffering",!0),{...t,attributes:u}}function S(n,o,s,c){const[,u]=(0,b._getTraceInfoFromScope)(o,s),_=(0,l._getSpanForScope)(s),M=_?_.spanContext().traceId:u?.trace_id,y=_?_.spanContext().spanId:void 0,v=(0,p.timestampInSeconds)(),I=(0,f.getSequenceAttribute)(v);return{timestamp:v,trace_id:M??"",span_id:y,name:n.name,type:n.type,unit:n.unit,value:n.value,attributes:{...(0,t.serializeAttributes)(c),...(0,t.serializeAttributes)(n.attributes,"skip-undefined"),[I.key]:I.value}}}function B(t,n){const l=n?.scope??(0,o.getCurrentScope)(),p=n?.captureSerializedMetric??v,f=l?.getClient()??(0,o.getClient)();if(!f)return void(s.DEBUG_BUILD&&c.debug.warn("No client available to capture metric."));const{_experiments:b,enableMetrics:_,beforeSendMetric:M}=f.getOptions();if(!(_??b?.enableMetrics??!0))return void(s.DEBUG_BUILD&&c.debug.warn("metrics option not enabled, metric will not be captured."));const{user:y,attributes:B}=(0,u.getCombinedScopeData)((0,o.getIsolationScope)(),l),D=I(t,f,y);f.emit("processMetric",D);const E=M||b?.beforeSendMetric,N=E?E(D):D;if(!N)return void(s.DEBUG_BUILD&&c.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const O=S(N,f,l,B);s.DEBUG_BUILD&&c.debug.log("[Metric]",O),p(f,O),f.emit("afterCaptureMetric",N)}function D(t,n){const o=n??E(t)??[];if(0===o.length)return;const s=t.getOptions(),c=(0,_.createMetricEnvelope)(o,s._metadata,s.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);N().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(c)}function E(t){return N().get(t)}function N(){return(0,n.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}},1617,[1570,1547,1571,1542,1546,1597,1567,1564,1610,1611,1618]);
85__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createMetricContainerEnvelopeItem",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createMetricEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(t,n){const s=n?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:t}]}function c(o,c,u,p,_){const f={};return c?.sdk&&(f.sdk={name:c.sdk.name,version:c.sdk.version}),u&&p&&(f.dsn=(0,t.dsnToString)(p)),(0,n.createEnvelope)(f,[s(o,_)])}},1618,[1577,1588,1614]);
86__d(function(g,r,i,a,m,e,d){"use strict";
86Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractGenAiSpansFromEvent",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),s=r(d[2]);function o(o,p){if("transaction"!==o.type||!o.spans?.length||!o.sdkProcessingMetadata?.hasGenAiSpans||!1===p.getOptions().streamGenAiSpans||(0,t.hasSpanStreamingEnabled)(p))return;const u=[],c=[];for(const n of o.spans)n.op?.startsWith("gen_ai.")?u.push((0,s.spanJsonToSerializedStreamedSpan)(n)):c.push(n);if(0===u.length)return;o.spans=c;const f=p.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:u.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,n.isBrowser)()&&{ingest_settings:{infer_ip:f,infer_user_agent:f}},items:u}]}},1619,[1614,1591,1620]);
87__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanJsonToSerializedStreamedSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]);function s(s){const n={trace_id:s.trace_id,span_id:s.span_id,parent_span_id:s.parent_span_id,name:s.description||"",start_timestamp:s.start_timestamp,end_timestamp:s.timestamp||s.start_timestamp,status:s.status&&"ok"!==s.status&&"cancelled"!==s.status?"error":"ok",is_segment:!1,attributes:{...s.data},links:s.links};return(0,t.streamedSpanJsonToSerializedSpan)(n)}},1620,[1551]);
88__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TRANSPORT_BUFFER_SIZE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return c}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),s=r(d[3]),u=r(d[4]);const p=64;function c(c,l,f=(0,s.makePromiseBuffer)(c.bufferSize||p)){let E={};return{send:function(p){const _=[];if((0,n.forEachEnvelopeItem)(p,(t,o)=>{const s=(0,n.envelopeItemTypeToDataCategory)(o);(0,u.isRateLimited)(E,s)?c.recordDroppedEvent("ratelimit_backoff",s):_.push(t)}),0===_.length)return Promise.resolve({});const v=(0,n.createEnvelope)(p[0],_),D=s=>{(0,n.envelopeContainsItemType)(v,["client_report"])?t.DEBUG_BUILD&&o.debug.warn(`Dropping client report. Will not send outcomes (reason: ${s}).`):(0,n.forEachEnvelopeItem)(v,(t,o)=>{c.recordDroppedEvent(s,(0,n.envelopeItemTypeToDataCategory)(o))})};return f.add(()=>l({body:(0,n.serializeEnvelope)(v)}).then(n=>413===n.statusCode?(t.DEBUG_BUILD&&o.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),D("send_error"),n):(t.DEBUG_BUILD&&void 0!==n.statusCode&&(n.statusCode<200||n.statusCode>=300)&&o.debug.warn(`Sentry responded with status code ${n.statusCode} to sent event.`),E=(0,u.updateRateLimits)(E,n),n),n=>{throw D("network_error"),t.DEBUG_BUILD&&o.debug.error("Encountered error running transport request:",n),n})).then(t=>t,n=>{if(n===s.SENTRY_BUFFER_FULL_ERROR)return t.DEBUG_BUILD&&o.debug.error("Skipped sending event because buffer is full."),D("queue_overflow"),Promise.resolve({});throw n})},flush:t=>f.drain(t)}}},1621,[1542,1546,1588,1622,1623]);
89__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"makePromiseBuffer",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=Symbol.for("SentryBufferFullError");function u(u=100){const f=new Set;function c(n){f.delete(n)}return{get $(){return Array.from(f)},add:function(t){if(!(f.size<u))return(0,n.rejectedSyncPromise)(o);const s=t();return f.add(s),s.then(()=>c(s),()=>c(s)),s},drain:function(o){if(!f.size)return(0,n.resolvedSyncPromise)(!0);const u=Promise.allSettled(Array.from(f)).then(()=>!0);if(!o)return u;const c=[u,new Promise(n=>(0,t.safeUnref)(setTimeout(()=>n(!1),o)))];return Promise.race(c)}}}},1622,[1602,1605]);
90__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"disabledUntil",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isRateLimited",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"updateRateLimits",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const n=6e4;function s(s,o=(0,t.safeDateNow)()){const u=parseInt(`${s}`,10);if(!isNaN(u))return 1e3*u;const c=Date.parse(`${s}`);return isNaN(c)?n:c-o}function o(t,n){return t[n]||t.all||0}function u(n,s,u=(0,t.safeDateNow)()){return o(n,s)>u}function c(n,{statusCode:o,headers:u}
90,c=(0,t.safeDateNow)()){const f={...n},l=u?.["x-sentry-rate-limits"],p=u?.["retry-after"];if(l)for(const t of l.trim().split(",")){const[n,s,,,o]=t.split(":",5),u=parseInt(n,10),l=1e3*(isNaN(u)?60:u);if(s)for(const t of s.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(f[t]=c+l);else f.all=c+l}else p?f.all=c+s(p,c):429===o&&(f.all=c+6e4);return f}},1623,[1560]);
91__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createClientReportEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function c(c,o,s){const p=[{type:"client_report"},{timestamp:s||(0,n.dateTimestampInSeconds)(),discarded_events:c}];return(0,t.createEnvelope)(o?{dsn:o}:{},[p])}},1624,[1588,1564]);
92__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const s=[];t.message&&s.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(s.push(n.value),n.type&&s.push(`${n.type}: ${n.value}`))}catch{}return s}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getPossibleEventMessages",{enumerable:!0,get:function(){return t}})},1625,[]);
93__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"convertSpanJsonToTransactionEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"convertTransactionEventToSpanJson",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){const{trace_id:s,parent_span_id:_,span_id:o,status:p,origin:c,data:u,op:T}=n.contexts?.trace??{};return{data:u??{},description:n.transaction,op:T,parent_span_id:_,span_id:o??"",start_timestamp:n.start_timestamp??0,status:p,timestamp:n.timestamp,trace_id:s??"",origin:c,profile_id:u?.[t.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:u?.[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:n.measurements,is_segment:!0}}function s(n){return{type:"transaction",timestamp:n.timestamp,start_timestamp:n.start_timestamp,transaction:n.description,contexts:{trace:{trace_id:n.trace_id,span_id:n.span_id,parent_span_id:n.parent_span_id,op:n.op,status:n.status,origin:n.origin,data:{...n.data,...n.profile_id&&{[t.SEMANTIC_ATTRIBUTE_PROFILE_ID]:n.profile_id},...n.exclusive_time&&{[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.exclusive_time}}}},measurements:n.measurements}}},1626,[1572]);
94__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolveDataCollectionOptions",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const s={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function o(o){const n=null!=o.dataCollection?s:(0,t.defaultPiiToCollectionOptions)(o.sendDefaultPii),u=o.dataCollection??{};return{userInfo:u.userInfo??n.userInfo,cookies:u.cookies??n.cookies,httpHeaders:{request:u.httpHeaders?.request??n.httpHeaders.request,response:u.httpHeaders?.response??n.httpHeaders.response},httpBodies:u.httpBodies??n.httpBodies,queryParams:u.queryParams??n.queryParams,genAI:{inputs:u.genAI?.inputs??n.genAI.inputs,outputs:u.genAI?.outputs??n.genAI.outputs},stackFrameVariables:u.stackFrameVariables??n.stackFrameVariables,frameContextLines:u.frameContextLines??n.frameContextLines}}},1627,[1628]);
95__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"defaultPiiToCollectionOptions",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return!0===n?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:t.PII_HEADER_SNIPPETS},httpHeaders:{request:{deny:t.PII_HEADER_SNIPPETS},response:{deny:t.PII_HEADER_SNIPPETS}},httpBodies:[],queryParams:{deny:t.PII_HEADER_SNIPPETS},genAI:{inputs:!1,outputs:!1}
95,stackFrameVariables:!0,frameContextLines:7}}},1628,[1629]);
96__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FILTERED_VALUE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"PII_HEADER_SNIPPETS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SENSITIVE_COOKIE_NAME_SNIPPETS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SENSITIVE_KEY_SNIPPETS",{enumerable:!0,get:function(){return n}});const t="[Filtered]",s=["forwarded","-ip","remote-","via","-user"],n=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],o=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"]},1629,[]);
97__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initAndBind",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"setCurrentClient",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),u=r(d[2]);function o(o,b){!0===b.debug&&(t.DEBUG_BUILD?u.debug.enable():(0,u.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));(0,n.getCurrentScope)().update(b.initialScope);const l=new o(b);return c(l),l.init(),l}function c(t){(0,n.getCurrentScope)().setClient(t)}},1630,[1571,1542,1546]);
98__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"MIN_DELAY",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"START_DELAY",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return h}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]);const f=100,c=5e3,l=36e5;function h(h){function p(...n){e.DEBUG_BUILD&&t.debug.log("[Offline]:",...n)}return e=>{const t=h(e);if(!e.createStore)throw new Error("No `createStore` function was provided");const y=e.createStore(e);let w,v=c;function S(e){w&&clearTimeout(w),w=(0,u.safeUnref)(setTimeout(async()=>{w=void 0;const e=await y.shift();e&&(p("Attempting to send previously queued event"),e[0].sent_at=new Date((0,o.safeDateNow)()).toISOString(),b(e,!0).catch(e=>{p("Failed to retry sending",e)}))},e))}function _(){w||(S(v),v=Math.min(2*v,l))}async function b(o,u=!1){if(!u&&(0,n.envelopeContainsItemType)(o,["replay_event","replay_recording"]))return await y.push(o),S(f),{};try{if(e.shouldSend&&!1===await e.shouldSend(o))throw new Error("Envelope not sent because `shouldSend` callback returned false");const n=await t.send(o);let u=f;if(n)if(n.headers?.["retry-after"])u=(0,s.parseRetryAfterHeader)(n.headers["retry-after"]);else if(n.headers?.["x-sentry-rate-limits"])u=6e4;else if((n.statusCode||0)>=400)return n;return S(u),v=c,n}catch(t){if(await(l=o,h=t,w=v,!(0,n.envelopeContainsItemType)(l,["client_report"])&&(!e.shouldStore||e.shouldStore(l,h,w))))return u?await y.unshift(o):await y.push(o),_(),p("Error sending. Event queued.",t),{};throw t}var l,h,w}return e.flushAtStartup&&_(),{send:b,flush:e=>(void 0===e&&(v=c,S(f)),t.flush(e))}}}},1631,[1542,1546,1588,1560,1623,1605]);
99__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"eventFromEnvelope",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return l}});var n=_r(d[0]),t=_r(d[1]),r=_r(d[2]);const o="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function u(n,t){let o;return(0,r.forEachEnvelopeItem)(n,(n,r)=>(t.includes(r)&&(o=Array.isArray(n)?n[1]:void 0),!!o)),o}function s(n,t){return r=>{const o=n(r);return{...o,send:async n=>{const r=u(n,["event","transaction","profile","replay_event"]);return r&&(r.release=t),o.send(n)}}}}function c(n,t){return(0,r.createEnvelope)(t?{...n[0],dsn:t}:n[0],n[1])}function l(r,l){return f=>{const p=r(f),v=new Map,E=l||(n=>{const t=n.getEvent();return t?.extra?.[o]&&Array.isArray(t.extra[o])?t.extra[o]:[]});function y(o,u){const c=u?`${o}:${u}`:o;let l=v.get(c);if(!l){const p=(0,t.dsnFromString)(o);if(!p)return;const E=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(p,f.tunnel);l=u?s(r,u)({...f,url:E}):r({...f,url:E}),v.set(c,l)}return[o,l]}return{send:async function(n){const t=E({envelope:n,getEvent:function(t){return u(n,t?.length?t:["event"])}}).map(n=>"string"==typeof n?y(n,void 0):y(n.dsn,n.release)).filter(n=>!!n),r=t.length?t:[["",p]];return(await Promise.all(r.map(([t,r])=>r.send(c(n,t)))))[0]},flush:async function(n){const t=[...v.values(),p];return(await Promise.all(t.map(t=>t.flush(n)))).every(n=>n)}}}}},1632,[1606,1577,1588]);
100__d(function(g,r,i,a,m,e,d){"use strict";
100Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=new Set;function u(u){u.forEach(u=>{o.add(u),n.DEBUG_BUILD&&t.debug.log(`AI provider "${u}" wrapping will be skipped`)})}function p(n){return o.has(n)}function c(){o.clear(),n.DEBUG_BUILD&&t.debug.log("Cleared AI provider skip registrations")}},1633,[1542,1546]);
101__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterKeyValueData",{enumerable:!0,get:function(){return n}});var o=r(d[0]);function t(o,t){return t.some(t=>o.includes(t))}function n(n,s,c){if(!1===s)return{};const E=null!=c?[...o.SENSITIVE_KEY_SNIPPETS,...c]:o.SENSITIVE_KEY_SNIPPETS,u={};if(!0===s){for(const s of Object.keys(n))u[s]=t(s.toLowerCase(),E)?o.FILTERED_VALUE:n[s];return u}if("deny"in s){const c=s.deny.map(o=>o.toLowerCase());for(const s of Object.keys(n)){const f=s.toLowerCase(),l=t(f,E)||c.some(o=>f.includes(o));u[s]=l?o.FILTERED_VALUE:n[s]}return u}const f=s.allow.map(o=>o.toLowerCase());for(const s of Object.keys(n)){const c=s.toLowerCase();if(t(c,E))u[s]=o.FILTERED_VALUE;else{const t=f.some(o=>c.includes(o));u[s]=t?n[s]:o.FILTERED_VALUE}}return u}},1634,[1629]);
102__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterCookies",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);function o(o,c){if(!1===c)return{};try{const f=(0,t.parseCookie)(o);return 0===Object.keys(f).length?{}:(0,u.filterKeyValueData)(f,c,n.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return n.FILTERED_VALUE}}},1635,[1636,1629,1634]);
103__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n={};let o=0;for(;o<t.length;){const c=t.indexOf("=",o);if(-1===c)break;let f=t.indexOf(";",o);if(-1===f)f=t.length;else if(f<c){o=t.lastIndexOf(";",c-1)+1;continue}const l=t.slice(o,c).trim();if(void 0===n[l]){let o=t.slice(c+1,f).trim();34===o.charCodeAt(0)&&(o=o.slice(1,-1));
103try{n[l]=-1!==o.indexOf("%")?decodeURIComponent(o):o}catch{n[l]=o}}o=f+1}return n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseCookie",{enumerable:!0,get:function(){return t}})},1636,[]);
104__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterQueryParams",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function u(u,c){if(!1===c)return{};try{const t=new URLSearchParams(u),f={};return t.forEach((t,n)=>{f[n]=t}),0===Object.keys(f).length?{}:(0,n.filterKeyValueData)(f,c)}catch{return t.FILTERED_VALUE}}},1637,[1629,1634]);
105__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FALSY_ENV_VALUES",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TRUTHY_ENV_VALUES",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"envToBool",{enumerable:!0,get:function(){return o}});const n=new Set(["false","f","n","no","off","0"]),t=new Set(["true","t","y","yes","on","1"]);function o(o,u){const c=String(o).toLowerCase();return!n.has(c)&&(!!t.has(c)||(u?.strict?null:Boolean(o)))}},1638,[]);
106__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createCheckInEnvelope",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function c(c,u,f,k,v){const _={sent_at:new Date((0,o.safeDateNow)()).toISOString()};f?.sdk&&(_.sdk={name:f.sdk.name,version:f.sdk.version}),k&&v&&(_.dsn=(0,n.dsnToString)(v)),u&&(_.trace=u);const l=s(c);return(0,t.createEnvelope)(_,[l])}function s(n){return[{type:"check_in"},n]}},1639,[1577,1588,1560]);
107__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isSentryRequestUrl",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(t,n){const c=n?.getDsn(),o=n?.getOptions().tunnel;return u(t,c)||s(t,o)}function s(t,n){return!!n&&c(t)===c(n)}function u(n,s){const u=(0,t.parseStringToURLObject)(n);return!(!u||(0,t.isURLObjectRelative)(u))&&(!!s&&(c=u.hostname,o=s.host,(c===o||o.length>0&&c.endsWith(`.${o}`))&&/(^|&|\?)sentry_key=/.test(u.search)));var c,o}function c(t){return"/"===t[t.length-1]?t.slice(0,-1):t}},1640,[1641]);
108__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}
108),Object.defineProperty(e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getSanitizedUrlString",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isURLObjectRelative",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"parseStringToURLObject",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"parseUrl",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"stripDataUrlContent",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return h}});var t=r(d[0]);const n="thismessage:/";function o(t){return"isRelative"in t}function u(t,o){const u=t.indexOf("://")<=0&&0!==t.indexOf("//"),c=o??(u?n:void 0);try{if("canParse"in URL&&!URL.canParse(t,c))return;const n=new URL(t,c);return u?{isRelative:u,pathname:n.pathname,search:n.search,hash:n.hash}:n}catch{}}function c(t){if(o(t))return t.pathname;const n=new URL(t);return n.search="",n.hash="",["80","443"].includes(n.port)&&(n.port=""),n.password&&(n.password="%filtered%"),n.username&&(n.username="%filtered%"),n.toString()}function s(t,n,o,u){return`${o?.method?.toUpperCase()??"GET"} ${u||(t?"client"===n?c(t):t.pathname:"/")}`}function l(n,u,c,l,p){const h={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return p&&(h["server"===u?"http.route":"url.template"]=p,h[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),l?.method&&(h[t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=l.method.toUpperCase()),n&&(n.search&&(h["url.query"]=n.search),n.hash&&(h["url.fragment"]=n.hash),n.pathname&&(h["url.path"]=n.pathname,"/"===n.pathname&&(h[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),o(n)||(h[t.SEMANTIC_ATTRIBUTE_URL_FULL]=n.href,n.port&&(h["url.port"]=n.port),n.protocol&&(h["url.scheme"]=n.protocol),n.hostname&&(h["server"===u?"server.address":"url.domain"]=n.hostname))),[s(n,u,l,p),h]}function p(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const o=n[6]||"",u=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:o,hash:u,relative:n[5]+o+u}}function h(t){return t.split(/[?#]/,1)[0]}function f(t){const{protocol:n,host:o,path:u}=t;return`${n?`${n}://`:""}${o?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${u}`}function T(t,n=!0){if(t.startsWith("data:")){const o=t.match(/^data:([^;,]+)/),u=o?o[1]:"text/plain",c=t.includes(";base64,"),s=t.indexOf(",");let l="";if(n&&-1!==s){const n=t.slice(s+1);l=n.length>10?`${n.slice(0,10)}... [truncated]`:n}return`data:${u}${c?",base64":""}${l?`,${l}`:""}`}return t}},1641,[1572]);
109__d(function(g,r,i,a,m,e,d){"use strict";function t(t,...n){const _=new String(String.raw(t,...n));return _.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),_.__sentry_template_values__=n,_}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fmt",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"parameterize",{enumerable:!0,get:function(){return t}});const n=t},1642,[]);
110__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handleTunnelRequest",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]);async function u(u){const{request:l,allowedDsns:p}=u;if(0===p.length)return new Response("Tunnel not configured",{status:500});const c=new Uint8Array(await l.arrayBuffer());let f;try{[f]=(0,o.parseEnvelope)(c)}catch{return new Response("Invalid envelope",{status:400})}if(!f)return new Response("Invalid envelope: missing header",{status:400});const w=f.dsn;if(!w)return new Response("Invalid envelope: missing DSN",{status:400});if(!p.some(n=>n===w))return t.debug.warn(`Sentry tunnel: rejected request with unauthorized DSN (${w})`),new Response("DSN not allowed",{status:403});const v=(0,s.makeDsn)(w);if(!v)return t.debug.warn(`Could not extract DSN Components from: ${w}`),new Response("Invalid DSN",{status:403});const y=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(v);try{return await fetch(y,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:c})}catch(n){return t.debug.error("Sentry tunnel: failed to forward envelope",n),new Response("Failed to forward envelope to Sentry",{status:500})}}},1643,[1606,1546,1577,1588]);
111__d(function(g,r,i,a,m,e,d){"use strict";function s(s){void 0===s.user?.ip_address&&(s.user={...s.user,ip_address:"{{auto}}"})}function t(s){"aggregates"in s?void 0===s.attrs?.ip_address&&(s.attrs={...s.attrs,ip_address:"{{auto}}"}):void 0===s.ipAddress&&(s.ipAddress="{{auto}}")}
111Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return s}})},1644,[]);
112__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applySdkMetadata",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n,s,c=[s],o="npm"){const _=(n._metadata=n._metadata||{}).sdk=n._metadata.sdk||{};_.name||(_.name=`sentry.javascript.${s}`,_.packages=c.map(n=>({name:`${o}:@sentry/${n}`,version:t.SDK_VERSION})),_.version=t.SDK_VERSION)}},1645,[1548]);
113__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getTraceData",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),p=r(d[4]),s=r(d[5]),u=r(d[6]),l=r(d[7]),S=r(d[8]),T=r(d[9]),C=r(d[10]);function f(f={}){const b=f.client||(0,o.getClient)();if(!(0,c.isEnabled)()||!b)return{};const E=(0,n.getMainCarrier)(),P=(0,t.getAsyncContextStrategy)(E);if(P.getTraceData)return P.getTraceData(f);const I=f.scope||(0,o.getCurrentScope)(),D=f.span||(0,s.getActiveSpan)(),H=(0,l.spanIsNonRecordingSpan)(D)&&!(0,u.hasSpansEnabled)(b.getOptions());if(!D&&(0,o.hasExternalPropagationContext)())return{};const _=D&&!H?(0,s.spanToTraceHeader)(D):y(I),v=D?(0,S.getDynamicSamplingContextFromSpan)(D):(0,S.getDynamicSamplingContextFromScope)(b,I),A=(0,T.dynamicSamplingContextToSentryBaggageHeader)(v);if(!C.TRACEPARENT_REGEXP.test(_))return p.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const R={"sentry-trace":_,baggage:A};return f.propagateTraceparent&&(R.traceparent=D&&!H?(0,s.spanToTraceparentHeader)(D):x(I)),R}function y(t){const{traceId:n,sampled:o,propagationSpanId:c}=t.getPropagationContext();return(0,C.generateSentryTraceHeader)(n,c,o)}function x(t){const{traceId:n,sampled:o,propagationSpanId:c}=t.getPropagationContext();return(0,C.generateTraceparentHeader)(n,c,o)}},1646,[1552,1547,1571,1599,1546,1551,1580,1582,1585,1576,1575]);
114__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c="[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:";function u(u,s,f){if("string"!=typeof u||!s)return!0;const l=f?.get(u);if(void 0!==l)return t.DEBUG_BUILD&&!l&&n.debug.log(c,u),l;const b=(0,o.stringMatchesSomePattern)(u,s);return f?.set(u,b),t.DEBUG_BUILD&&!b&&n.debug.log(c,u),b}},1647,[1542,1546,1561]);
115__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getTraceMetaTags",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return Object.entries(n||(0,t.getTraceData)()).map(([t,n])=>`<meta name="${t}" content="${n}"/>`).join("\n")}},1648,[1646]);
116__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n,o){let u,c,f;const l=o?.maxWait?Math.max(o.maxWait,n):0,s=o?.setTimeoutImpl||setTimeout;function v(){return T(),u=t(),u}function T(){void 0!==c&&clearTimeout(c),void 0!==f&&clearTimeout(f),c=f=void 0}function b(){return c&&clearTimeout(c),c=s(v,n),l&&void 0===f&&(f=s(v,l)),u}return b.cancel=T,b.flush=function(){return void 0!==c||void 0!==f?v():u},b}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return t}})},1649,[]);
117__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"headersToDict",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"httpRequestToRequestData",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return h}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]);const f=1048576,l=["text/","application/json","application/x-www-form-urlencoded","application/xml","application/graphql"];function p(t){return"small"===t?1e3:"medium"===t?1e4:f}function y(t){const o={};try{t.forEach((t,n)=>{"string"==typeof t&&(o[n]=t)})}catch{}return o}function b(t){const o=Object.create(null);try{Object.entries(t).forEach(([t,n])=>{"string"==typeof n?o[t]=n:"number"==typeof n&&(o[t]=String(n))})}catch{}return o}function h(t){const o=y(t.headers);return{method:t.method,url:t.url,query_string:q(t.url),headers:o}}function O(t){if(!t)return!1;const o=t.toLowerCase();return l.some(t=>o.includes(t))}async function D(n,c,s){try{const l=n.headers.get("content-type");if(!O(l))return void(t.DEBUG_BUILD&&o.debug.log("Skipping body capture for non-textual content type:",l));if(!n.body)return;const y=n.headers.get("content-length"),b=p(s);if(y){const n=parseInt(y,10);if(!isNaN(n)&&n>f)return void(t.DEBUG_BUILD&&o.debug.log("Skipping body capture: body too large",n))}const h=n.clone().text(),D=new Promise(t=>{(0,u.safeUnref)(setTimeout(()=>t(null),2e3))}),E=await Promise.race([h,D]);if(null===E)return void(t.DEBUG_BUILD&&o.debug.log("Timeout reading request body"));if(!E)return;const _=(new TextEncoder).encode(E),j=_.length;let w;if(j>b){w=`${(new TextDecoder).decode(_.slice(0,b-3))}...`}else w=E;c.setSDKProcessingMetadata({normalizedRequest:{data:w}}),t.DEBUG_BUILD&&o.debug.log("Captured request body:",j,"bytes")}catch(n){t.DEBUG_BUILD&&o.debug.error("Error capturing request body:",n)}}function E(t){const o=t.headers||{},n=("string"==typeof o["x-forwarded-host"]?o["x-forwarded-host"]:void 0)||("string"==typeof o.host?o.host:void 0),c=("string"==typeof o["x-forwarded-proto"]?o["x-forwarded-proto"]:void 0)||t.protocol||(t.socket?.encrypted?"https":"http"),s=t.url||"",u=_({url:s,host:n,protocol:c}),f=t.body||void 0,l=t.cookies;return{url:u,method:t.method,query_string:q(s),headers:b(o),cookies:l,data:f}}function _({url:t,protocol:o,host:n}){return t?.startsWith("http")?t:t&&n?`${o}://${n}${t}`:void 0}function j(t,o=!1,u="request"){const f="boolean"==typeof o?(0,n.defaultPiiToCollectionOptions)(o):o,l="request"===u?f.httpHeaders.request:f.httpHeaders.response,p=f.cookies,y=`http.${u}.header.`,b={};try{const o={};for(const[n,u]of Object.entries(t)){if(null==u)continue;const t=n.toLowerCase();if("cookie"===t||"set-cookie"===t){if(!1===p)continue;if("string"==typeof u&&""!==u){const o=P(u,"set-cookie"===t),n=(0,s.filterKeyValueData)(o,p,c.SENSITIVE_COOKIE_NAME_SNIPPETS);for(const[o,c]of Object.entries(n))b[`${y}${w(t)}.${w(o)}`]=c}else b[`${y}${w(t)}`]=c.FILTERED_VALUE}else{if(!1===l)continue;Array.isArray(u)?o[t]=u.map(t=>null!=t?String(t):t).join(";
117"):"string"==typeof u&&(o[t]=u)}}if(!1!==l){const t=(0,s.filterKeyValueData)(o,l);for(const[o,n]of Object.entries(t))b[`${y}${w(o)}`]=n}}catch{}return b}function w(t){return t.replace(/-/g,"_")}function P(t,o){const n=t.indexOf(";"),c=o&&-1!==n?t.substring(0,n):t,s=o?[c]:c.split("; "),u={};for(const t of s){const o=t.indexOf("="),n=(-1!==o?t.substring(0,o):t).toLowerCase(),c=-1!==o?t.substring(o+1):"";u[n]=c}return u}function q(t){if(t)try{const o=new URL(t,"http://s.io").search.slice(1);return o.length?o:void 0}catch{return}}},1650,[1542,1546,1628,1629,1634,1605]);
118__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_KIND",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"spanKindToName",{enumerable:!0,get:function(){return E}});const n={INTERNAL:0,SERVER:1,CLIENT:2,PRODUCER:3,CONSUMER:4},t={[n.INTERNAL]:"INTERNAL",[n.SERVER]:"SERVER",[n.CLIENT]:"CLIENT",[n.PRODUCER]:"PRODUCER",[n.CONSUMER]:"CONSUMER"};function E(n){return t[n]}},1651,[]);
119__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addBreadcrumb",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c=100;function u(u,s){const b=(0,t.getClient)(),l=(0,t.getIsolationScope)();if(!b)return;const{beforeBreadcrumb:f=null,maxBreadcrumbs:p=c}=b.getOptions();if(p<=0)return;const B={timestamp:(0,o.dateTimestampInSeconds)(),...u},_=f?(0,n.consoleSandbox)(()=>f(B,s)):B;null!==_&&(b.emit&&b.emit("beforeAddBreadcrumb",_,s),l.addBreadcrumb(_,p))}},1652,[1571,1546,1564]);
120__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"functionToStringIntegration",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let c;const u=new WeakMap,p=(0,n.defineIntegration)(()=>({name:"FunctionToString",setupOnce(){c=Function.prototype.toString;try{Function.prototype.toString=function(...n){const p=(0,o.getOriginalFunction)(this),s=u.has((0,t.getClient)())&&void 0!==p?p:this;return c.apply(s,n)}}catch{}},setup(t){u.set(t,!0)}}))},1653,[1571,1608,1558]);
121__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"eventFiltersIntegration",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),i=r(d[3]),s=r(d[4]),c=r(d[5]);const l=[/^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$/],u=(0,t.defineIntegration)((n={})=>{let t;return{name:"EventFilters",setup(o){const i=o.getOptions();t=p(n,i)},processEvent(o,i,s){if(!t){const o=s.getOptions();t=p(n,o)}return v(o,t)?null:o}}}),f=(0,t.defineIntegration)((n={})=>({...u(n),name:"InboundFilters"}));function p(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:l],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function v(t,i){if(t.type){if("transaction"===t.type&&b(t,i.ignoreTransactions))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.getEventDescription)(t)}`),!0}else{if(E(t,i.ignoreErrors))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.getEventDescription)(t)}`),!0;if($(t))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.getEventDescription)(t)}`),!0;if(U(t,i.denyUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(t)}.\nUrl: ${D(t)}`),!0;if(!h(t,i.allowUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(t)}.\nUrl: ${D(t)}`),!0}return!1}function E(n,t){return!!t?.length&&(0,i.getPossibleEventMessages)(n).some(n=>
121(0,c.stringMatchesSomePattern)(n,t))}function b(n,t){if(!t?.length)return!1;const o=n.transaction;return!!o&&(0,c.stringMatchesSomePattern)(o,t)}function U(n,t){if(!t?.length)return!1;const o=D(n);return!!o&&(0,c.stringMatchesSomePattern)(o,t)}function h(n,t){if(!t?.length)return!0;const o=D(n);return!o||(0,c.stringMatchesSomePattern)(o,t)}function y(n=[]){for(let t=n.length-1;t>=0;t--){const o=n[t];if(o&&"<anonymous>"!==o.filename&&"[native code]"!==o.filename)return o.filename||null}return null}function D(t){try{const n=[...t.exception?.values??[]].reverse().find(n=>void 0===n.mechanism?.parent_id&&n.stacktrace?.frames?.length),o=n?.stacktrace?.frames;return o?y(o):null}catch{return n.DEBUG_BUILD&&o.debug.error(`Cannot extract url for event ${(0,s.getEventDescription)(t)}`),null}}function $(n){return!!n.exception?.values?.length&&(!n.message&&!n.exception.values.some(n=>n.stacktrace||n.type&&"Error"!==n.type||n.value))}},1654,[1542,1608,1546,1625,1557,1561]);
122__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s=(0,t.defineIntegration)((t={})=>{const s=t.limit||5,c=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,u,p){const l=p.getOptions();(0,n.applyAggregateErrorsToEvent)(o.exceptionFromError,l.stackParser,c,s,t,u)}}})},1655,[1608,1656,1657]);
123__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(t,o,c,s,u,l){if(!u.exception?.values||!l||!(0,n.isInstanceOf)(l.originalException,Error))return;const p=u.exception.values.length>0?u.exception.values[u.exception.values.length-1]:void 0;p&&(u.exception.values=i(t,o,s,l.originalException,c,u.exception.values,p,0))}function i(t,u,l,p,f,h,x,v){if(h.length>=l+1)return h;let _=[...h];if((0,n.isInstanceOf)(p[f],Error)){c(x,v,p);const n=t(u,p[f]),o=_.length;s(n,f,o,v),_=i(t,u,l,p[f],f,[n,..._],n,o)}return o(p)&&p.errors.forEach((o,h)=>{if((0,n.isInstanceOf)(o,Error)){c(x,v,p);const n=t(u,o),E=_.length;s(n,`errors[${h}]`,E,v),_=i(t,u,l,o,f,[n,..._],n,E)}}),_}function o(n){return Array.isArray(n.errors)}function c(n,t,i){n.mechanism={handled:!0,type:"auto.core.linked_errors",...o(i)&&{is_exception_group:!0},...n.mechanism,exception_id:t}}function s(n,t,i,o){n.mechanism={handled:!0,...n.mechanism,type:"chained",source:t,exception_id:i,parent_id:o}}},1656,[1559]);
124__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"eventFromMessage",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"eventFromUnknownInput",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"exceptionFromError",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"parseStackFrames",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);function c(t,n){return t(n.stack||"",1)}function u(n){return(0,t.isError)(n)&&"__sentry_fetch_url_host__"in n&&"string"==typeof n.__sentry_fetch_url_host__}function f(t){return u(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function _(t,n){const s={type:n.name||n.constructor.name,value:f(n)},o=c(t,n);return o.length&&(s.stacktrace={frames:o}),s}function p(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];if(s instanceof Error)return s}}function y(n){if("name"in n&&"string"==typeof n.name){let t=`'${n.name}' captured as exception`;return"message"in n&&"string"==typeof n.message&&(t+=` with message '${n.message}'`),t}if("message"in n&&"string"==typeof n.message)return n.message;const s=(0,o.extractExceptionKeysForMessage)(n);if((0,t.isErrorEvent)(n))return`Event \`ErrorEvent\` captured as exception with message \`${n.message}\``;const c=l(n);return`${c&&"Object"!==c?`'${c}'`:"Object"} captured as exception with keys: ${s}`}function l(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{}}function h(n,o,c,u){if((0,t.isError)(c))return[c,void 0];if(o.synthetic=!0,(0,t.isPlainObject)(c)){const t=n?.getOptions().normalizeDepth,o={__serialized__:(0,s.normalizeToSize)(c,t)},f=p(c);if(f)return[f,o];const _=y(c),l=u?.syntheticException||new Error(_);return l.message=_,[l,o]}const f=u?.syntheticException||new Error(c);return f.message=`${c}`,[f,void 0]}function v(t,s,o,c){const u=c?.data&&c.data.mechanism||{handled:!0,type:"generic"},[f,p]=h(t,u,o,c),y={exception:{values:[_(s,f)]}};return p&&(y.extra=p),(0,n.addExceptionTypeValue)(y,void 0,void 0),(0,n.addExceptionMechanism)(y,u),{...y,event_id:c?.event_id}}function E(s,o,u="info",f,_){const p={event_id:f?.event_id,level:u};if(_&&f?.syntheticException){const t=c(s,f.syntheticException);t.length&&(p.exception={values:[{value:o,stacktrace:{frames:t}}]},(0,n.addExceptionMechanism)(p,{synthetic:!0}))}
124if((0,t.isParameterizedString)(o)){const{__sentry_template_string__:t,__sentry_template_values__:n}=o;return p.logentry={message:t,params:n},p}return p.message=o,p}},1657,[1559,1557,1562,1558]);
125__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s=(0,t.defineIntegration)(()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",t=>{(0,o.forEachEnvelopeItem)(t,(t,o)=>{if("event"===o){const o=Array.isArray(t)?t[1]:void 0;o&&((0,n.stripMetadataFromStackFrames)(o),t[1]=o)}})}),t.on("applyFrameMetadata",o=>{if(o.type)return;const s=t.getOptions().stackParser;(0,n.addMetadataToStackFrames)(s,o)})}}))},1658,[1608,1659,1588]);
126__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addMetadataToStackFrames",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getMetadataForUrl",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stripMetadataFromStackFrames",{enumerable:!0,get:function(){return l}});var t=r(d[0]);const n=new Map,o=new Set;function c(n){if(!t.GLOBAL_OBJ._sentryModuleMetadata)return{};const o={};for(const c of Object.keys(t.GLOBAL_OBJ._sentryModuleMetadata)){const f=t.GLOBAL_OBJ._sentryModuleMetadata[c],u=n(c);for(const t of u.reverse())if(t.filename){o[t.filename]=f;break}}return o}function f(c){if(t.GLOBAL_OBJ._sentryModuleMetadata)for(const f of Object.keys(t.GLOBAL_OBJ._sentryModuleMetadata)){const u=t.GLOBAL_OBJ._sentryModuleMetadata[f];if(o.has(f))continue;o.add(f);const s=c(f);for(const t of s.reverse())if(t.filename){n.set(t.filename,u);break}}}function u(t,o){return f(t),n.get(o)}function s(t,n){n.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(n=>{if(!n.filename||n.module_metadata)return;const o=u(t,n.filename);o&&(n.module_metadata=o)})})}function l(t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{delete t.module_metadata})})}},1659,[1544]);
127__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"requestDataIntegration",{enumerable:!0,get:function(){return l}});
127var t=r(d[0]),s=r(d[1]),o=r(d[2]),n=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]);const l=(0,s.defineIntegration)((s={})=>{function o(t){const o=t.getDataCollectionOptions(),n={...o,...!0===s.include?.cookies&&!1===o.cookies&&{cookies:!0},...!0===s.include?.headers&&!1===o.httpHeaders.request&&{httpHeaders:{...o.httpHeaders,request:!0}}};return{dataCollection:n,include:{cookies:!1!==n.cookies,data:!0,headers:!1!==n.httpHeaders.request,ip:n.userInfo,query_string:!1!==n.queryParams,url:!0,...s.include}}}return{name:"RequestData",processEvent(t,s,n){const{sdkProcessingMetadata:u={}}=t,{normalizedRequest:c,ipAddress:p}=u,{include:l}=o(n);return c&&f(t,c,{ipAddress:p},l),t},processSegmentSpan(s,n){const{sdkProcessingMetadata:u={}}=(0,t.getIsolationScope)().getScopeData(),{normalizedRequest:c,ipAddress:p}=u;if(!c)return;const{include:l,dataCollection:f}=o(n);S(s,c,p,l,f)}}});function f(t,s,o,n){if(t.request={...t.request,...h(s,n)},n.ip){const n=s.headers&&(0,c.getClientIPAddress)(s.headers)||o.ipAddress;n&&(t.user={...t.user,ip_address:n})}}function S(t,s,n,l,f){const S=h(s,l),q={};if(S.url&&(q["url.full"]=S.url),S.method&&(q["http.request.method"]=S.method),S.query_string&&(q["url.query"]=k(S.query_string)),(0,p.safeSetSpanJSONAttributes)(t,q),S.cookies&&Object.keys(S.cookies).length>0){const s=Object.entries(S.cookies).map(([t,s])=>`${t}=${s}`).join("; "),o=(0,u.httpHeadersToSpanAttributes)({cookie:s},f,"request");(0,p.safeSetSpanJSONAttributes)(t,o)}if(S.headers){const s=(0,u.httpHeadersToSpanAttributes)(S.headers,f,"request");(0,p.safeSetSpanJSONAttributes)(t,s)}if(null!=S.data){const s="string"==typeof S.data?S.data:JSON.stringify(S.data);s&&(0,p.safeSetSpanJSONAttributes)(t,{"http.request.body.data":s})}if(l.ip){const u=s.headers&&(0,c.getClientIPAddress)(s.headers)||n||void 0;u&&(0,p.safeSetSpanJSONAttributes)(t,{[o.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:u})}}function h(t,s){const o={},u={...t.headers};if(s.headers&&(o.headers=u,s.cookies||delete u.cookie,!s.ip)){const t=new Set(c.ipHeaderNames.map(t=>t.toLowerCase()));for(const s of Object.keys(u))t.has(s.toLowerCase())&&delete u[s]}if(o.method=t.method,s.url&&(o.url=t.url),s.cookies){const s=t.cookies||(u?.cookie?(0,n.parseCookie)(u.cookie):void 0);o.cookies=s||{}}return s.query_string&&(o.query_string=t.query_string),s.data&&(o.data=t.data),o}function k(t){if("string"==typeof t)return t||void 0;return(Array.isArray(t)?t:Object.entries(t)).map(([t,s])=>`${t}=${s}`).join("&")||void 0}},1660,[1571,1608,1572,1636,1650,1661,1596]);
128__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getClientIPAddress",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ipHeaderNames",{enumerable:!0,get:function(){return t}});const t=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];function n(n){const F={};for(const t of Object.keys(n))F[t.toLowerCase()]=n[t];return t.map(t=>{const n=F[t.toLowerCase()],o=Array.isArray(n)?n.join(";"):n;return"Forwarded"===t?f(o):o?.split(",").map(t=>t.trim())}).reduce((t,n)=>n?t.concat(n):t,[]).find(t=>null!==t&&o(t))||null}function f(t){if(!t)return null;for(const n of t.split(";"))if(n.startsWith("for="))return n.slice(4);return null}function o(t){return/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(t)}},1661,[]);
129__d(function(g,r,i,a,m,e,d){"use strict";
129Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureConsoleIntegration",{enumerable:!0,get:function(){return v}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]);const v=(0,s.defineIntegration)((n={})=>{const s=n.levels||c.CONSOLE_LEVELS,l=n.handled??!0;return{name:"CaptureConsole",setup(n){"console"in f.GLOBAL_OBJ&&(0,o.addConsoleInstrumentationHandler)(({args:o,level:c})=>{(0,t.getClient)()===n&&s.includes(c)&&E(o,c,l)})}}});function E(o,s,c){const f=(0,u.severityLevelFromString)(s),v=new Error,E={level:(0,u.severityLevelFromString)(s),extra:{arguments:o}};(0,t.withScope)(t=>{if(t.addEventProcessor(t=>(t.logger="console",(0,l.addExceptionMechanism)(t,{handled:c,type:"auto.core.capture_console"}),t)),"assert"===s){if(!o[0]){const n=`Assertion failed: ${(0,p.safeJoin)(o.slice(1)," ")||"console.assert"}`;t.setExtra("arguments",o.slice(1)),t.captureMessage(n,f,{captureContext:E,syntheticException:v})}return}const u=o.find(t=>t instanceof Error);if(u)return void(0,n.captureException)(u,E);const x=(0,p.safeJoin)(o," ");t.captureMessage(x,f,{captureContext:E,syntheticException:v})})}},1662,[1571,1599,1663,1608,1546,1557,1664,1561,1544]);
130__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return f}});var n=r(d[0]),o=r(d[1]),t=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]);const u=new Set([]);function f(n){const o="console",t=(0,c.addHandler)(o,n);return(0,c.maybeInstrument)(o,L),t}function O(n){for(const o of n)u.add(o);return()=>{for(const o of n)u.delete(o)}}function L(){"console"in l.GLOBAL_OBJ&&o.CONSOLE_LEVELS.forEach(function(f){f in l.GLOBAL_OBJ.console&&(0,t.fill)(l.GLOBAL_OBJ.console,f,function(t){return o.originalConsoleMethods[f]=t,function(...t){const O=t[0],L=o.originalConsoleMethods[f],B=u.size&&"string"==typeof O&&(0,s.stringMatchesSomePattern)(O,u);B||(0,c.triggerHandlers)("console",{args:t,level:f}),(!B||n.DEBUG_BUILD&&o.debug.isEnabled())&&L?.apply(l.GLOBAL_OBJ.console,t)}})})}},1663,[1542,1546,1558,1561,1544,1545]);
131__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return"warn"===n?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"severityLevelFromString",{enumerable:!0,get:function(){return n}})},1664,[]);
132__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_shouldDropEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"dedupeIntegration",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),u=r(d[2]),i=r(d[3]);const o=(0,t.defineIntegration)(()=>{let t;return{name:"Dedupe",processEvent(i){if(i.type)return i;try{if(c(i,t))return n.DEBUG_BUILD&&u.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=i}}});function c(n,t){return!!t&&(!!f(n,t)||!!l(n,t))}function f(n,t){const u=n.message,i=t.message;return!(!u&&!i)&&(!(u&&!i||!u&&i)&&(u===i&&(!!s(n,t)&&!!p(n,t))))}function l(n,t){const u=v(t),i=v(n);return!(!u||!i)&&(u.type===i.type&&u.value===i.value&&(!!s(n,t)&&!!p(n,t)))}function p(n,t){let u=(0,i.getFramesFromEvent)(n),o=(0,i.getFramesFromEvent)(t);if(!u&&!o)return!0;if(u&&!o||!u&&o)return!1;if(o.length!==u.length)return!1;for(let n=0;n<o.length;n++){const t=o[n],i=u[n];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function s(n,t){let u=n.fingerprint,i=t.fingerprint;if(!u&&!i)return!0;if(u&&!i||!u&&i)return!1;try{return!(u.join("")!==i.join(""))}catch{return!1}}function v(n){return n.exception?.values?.[0]}},1665,[1542,1608,1546,1549]);
133__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]),f=r(d[6]);const l=(0,n.defineIntegration)((t={})=>{const{depth:n=3,captureErrorCause:o=!0}=t;return{name:"ExtraErrorData",processEvent(t,c,s){const{maxValueLength:u}=s.getOptions();return E(t,c,n,o,u)}}});function E(t,n={},o,f,l){if(!n.originalException||!(0,c.isError)(n.originalException))return t;const E=n.originalException.name||n.originalException.constructor.name,x=p(n.originalException,f,l);if(x){const n={...t.contexts},f=(0,s.normalize)(x,o);return(0,c.isPlainObject)(f)&&((0,u.setSkipNormalizationHint)(f),n[E]=f),{...t,contexts:n}}return t}function p(n,s,u){try{const t=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const s of Object.keys(n)){if(-1!==t.indexOf(s))continue;const l=n[s];o[s]=(0,c.isError)(l)||"string"==typeof l?u?(0,f.truncate)(`${l}`,u):`${l}`:l}if(s&&void 0!==n.cause)if((0,c.isError)(n.cause)){const t=n.cause.name||n.cause.constructor.name;o.cause={[t]:p(n.cause,!1,u)}}else o.cause=n.cause;if("function"==typeof n.toJSON){const t=n.toJSON();for(const n of Object.keys(t)){const s=t[n];o[n]=(0,c.isError)(s)?s.toString():s}}return o}catch(n){t.DEBUG_BUILD&&o.debug.error("Unable to extract extra data from the Error object:",n)}return null}},1666,[1542,1608,1546,1559,1562,1563,1561]);
134__d(function(g,r,i,a,m,e,d){"use strict";
134Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateIteratee",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const o=(0,t.defineIntegration)((t={})=>{const n=t.root,o=t.prefix||"app:///",f="window"in c.GLOBAL_OBJ&&!!c.GLOBAL_OBJ.window,l=t.iteratee||s({isBrowser:f,root:n,prefix:o});function u(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map(t=>{return{...t,...t.stacktrace&&{stacktrace:(n=t.stacktrace,{...n,frames:n?.frames?.map(t=>l(t))})}};var n})}}}catch{return t}}return{name:"RewriteFrames",processEvent(t){let n=t;return t.exception&&Array.isArray(t.exception.values)&&(n=u(n)),n}}});function s({isBrowser:t,root:c,prefix:o}){return s=>{if(!s.filename)return s;const f=/^[a-zA-Z]:\\/.test(s.filename)||s.filename.includes("\\")&&!s.filename.includes("/"),l=/^\//.test(s.filename);if(t){if(c){const t=s.filename;0===t.indexOf(c)&&(s.filename=t.replace(c,o))}}else if(f||l){const t=f?s.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):s.filename,l=c?(0,n.relative)(c,t):(0,n.basename)(t);s.filename=`${o}${l}`}return s}}},1667,[1608,1668,1544]);
135__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,n){let i=0;for(let n=t.length-1;n>=0;n--){const l=t[n];"."===l?t.splice(n,1):".."===l?(t.splice(n,1),i++):i&&(t.splice(n,1),i--)}if(n)for(;i--;i)t.unshift("..");return t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"basename",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"dirname",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isAbsolute",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"join",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"normalizePath",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"relative",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"resolve",{enumerable:!0,get:function(){return l}});const n=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function i(t){const i=t.length>1024?`<truncated>${t.slice(-1024)}`:t,l=n.exec(i);return l?l.slice(1):[]}function l(...n){let i="",l=!1;for(let t=n.length-1;t>=-1&&!l;t--){const c=t>=0?n[t]:"/";c&&(i=`${c}/${i}`,l="/"===c.charAt(0))}return i=t(i.split("/").filter(t=>!!t),!l).join("/"),(l?"/":"")+i||"."}function c(t){let n=0;for(;n<t.length&&""===t[n];n++);let i=t.length-1;for(;i>=0&&""===t[i];i--);return n>i?[]:t.slice(n,i-n+1)}function o(t,n){t=l(t).slice(1),n=l(n).slice(1);const i=c(t.split("/")),o=c(n.split("/")),u=Math.min(i.length,o.length);let f=u;for(let t=0;t<u;t++)if(i[t]!==o[t]){f=t;break}let s=[];for(let t=f;t<i.length;t++)s.push("..");return s=s.concat(o.slice(f)),s.join("/")}function u(n){const i=f(n),l="/"===n.slice(-1);let c=t(n.split("/").filter(t=>!!t),!i).join("/");return c||i||(c="."),c&&l&&(c+="/"),(i?"/":"")+c}function f(t){return"/"===t.charAt(0)}function s(...t){return u(t.join("/"))}function b(t){const n=i(t),l=n[0]||"";let c=n[1];return l||c?(c&&(c=c.slice(0,c.length-1)),l+c):"."}function h(t,n){let l=i(t)[2]||"";return n&&l.slice(-1*n.length)===n&&(l=l.slice(0,l.length-n.length)),l}},1668,[]);
136__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DB_OPERATIONS_TO_INSTRUMENT",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"FILTER_MAPPINGS",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"extractOperation",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"translateFiltersIntoMethods",{enumerable:!0,get:function(){return R}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]),c=r(d[6]),p=r(d[7]),l=r(d[8]),f=r(d[9]),h=r(d[10]);const y=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],b=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],S={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},T=["select","insert","upsert","update","delete"];function E(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function O(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function _(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function I(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function R(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...o]=t.split(".");let s;return s=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&S[n]||"filter",`${s}(${e}, ${o.join(".")})`}function P(e,t=!1){return new Proxy(e,{apply:(n,s,c)=>(0,h.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,s,c).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:f.SPAN_STATUS_ERROR}),(0,o.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:f.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:f.SPAN_STATUS_ERROR}),e.end(),(0,o.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...c))})}function A(e){const t=e.auth;if(t&&!O(e.auth)){for(const n of y){const o=t[n];o&&("function"==typeof e.auth[n]&&(e.auth[n]=P(o)))}for(const n of b){const o=t.admin[n];o&&("function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=P(o,!0)))}E(e.auth)}}function N(n,s){O(n.prototype.then)||(n.prototype.then=new Proxy(n.prototype.then,{apply(n,c,y){const b=T,S=c,E=I(S.method,S.headers);if(!b.includes(E))return Reflect.apply(n,c,y);if(!S?.url?.pathname||"string"!=typeof S.url.pathname)return Reflect.apply(n,c,y);const O=S.url.pathname.split("/"),P=O.length>0?O[O.length-1]:"",A=[];
136for(const[e,t]of S.url.searchParams.entries())A.push(R(e,t));const N=Object.create(null);if((0,l.isPlainObject)(S.body))for(const[e,t]of Object.entries(S.body))N[e]=t;const U=(0,t.getClient)(),j=s.sendOperationData??!0===U?.getDataCollectionOptions().userInfo,k=_(S.body,N),w="select"===E?"":`${E}${$=S.body,v=N,void 0!==_($,v)?"(...) ":""}`;var $,v;const x=j?A.join(" "):A.length>0?"[redacted]":"",B=[w.trimEnd(),x].filter(Boolean).join(" "),D=B?`${B} from(${P})`:`from(${P})`,C={"db.table":P,"db.schema":S.schema,"db.url":S.url.origin,"db.sdk":S.headers["X-Client-Info"],"db.system":"postgresql","db.operation":E,[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return A.length&&j&&(C["db.query"]=A),void 0!==k&&j&&(C["db.body"]=k),(0,h.startSpan)({name:D,attributes:C},t=>Reflect.apply(n,c,[]).then(n=>{if(t&&(n&&"object"==typeof n&&"status"in n&&(0,f.setHttpStatus)(t,n.status||500),t.end()),n?.error){const e=new Error(n.error.message);n.error.code&&(e.code=n.error.code),n.error.details&&(e.details=n.error.details);const t={};A.length&&j&&(t.query=A),void 0!==k&&j&&(t.body=k),(0,o.captureException)(e,e=>(e.addEventProcessor(e=>((0,p.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",t),e))}const s={type:"supabase",category:`db.${E}`,message:D},u={};return A.length&&j&&(u.query=A),void 0!==k&&j&&(u.body=k),Object.keys(u).length&&(s.data=u),(0,e.addBreadcrumb)(s),n},e=>{throw t&&((0,f.setHttpStatus)(t,500),t.end()),e}).then(...y))}}),E(n.prototype.then))}function U(e,t){for(const o of T)O(e.prototype[o])||(e.prototype[o]=new Proxy(e.prototype[o],{apply(e,s,u){const p=Reflect.apply(e,s,u),l=p.constructor;return n.DEBUG_BUILD&&c.debug.log(`Instrumenting ${o} operation's PostgRESTFilterBuilder`),N(l,t),p}}),E(e.prototype[o]))}const j=(e,t={})=>{if(!e)return void(n.DEBUG_BUILD&&c.debug.warn("Supabase integration was not installed because no Supabase client was provided."));const o=e.constructor===Function?e:e.constructor;var s,u;u=t,O((s=o).prototype.from)||(s.prototype.from=new Proxy(s.prototype.from,{apply(e,t,n){const o=Reflect.apply(e,t,n);return U(o.constructor,u),o}}),E(s.prototype.from)),A(e)},k=(e,t)=>({setupOnce(){j(e,t)},name:"Supabase"}),w=(0,s.defineIntegration)(e=>k(e.supabaseClient,{sendOperationData:e.sendOperationData}))},1669,[1652,1571,1542,1599,1608,1572,1546,1557,1559,1573,1592]);
137__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"applyZodErrorsToEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"flattenIssue",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"flattenIssuePath",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"formatIssueMessage",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return l}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);function s(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function o(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function u(e){const t=new Set;for(const n of e.issues){const e=o(n.path);e.length>0&&t.add(e)}const s=Array.from(t);if(0===s.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,n.truncate)(s.join(", "),100)}`}function c(e,n=!1,o,c){if(!(o.exception?.values&&c.originalException&&(l=c.originalException,(0,t.isError)(l)&&"ZodError"===l.name&&Array.isArray(l.issues))&&0!==c.originalException.issues.length))return o;var l;try{const t=(n?c.originalException.issues:c.originalException.issues.slice(0,e)).map(s);return n&&(Array.isArray(c.attachments)||(c.attachments=[]),c.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:t})})),{...o,exception:{...o.exception,values:[{...o.exception.values[0],value:u(c.originalException)},...o.exception.values.slice(1)]},extra:{...o.extra,"zoderror.issues":t.slice(0,e)}}}catch(e){return{...o,extra:{...o.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const l=(0,e.defineIntegration)((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(n,s)=>c(t,e.saveZodIssuesAsAttachment,n,s)}})},1670,[1608,1559,1561]);
138__d(function(g,r,_i,a,m,e,d){"use strict";
138Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),i=r(d[2]),o=r(d[3]),s=r(d[4]);const l=(0,t.defineIntegration)(t=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",t=>{(0,i.forEachEnvelopeItem)(t,(t,i)=>{if("event"===i){const i=Array.isArray(t)?t[1]:void 0;i&&((0,n.stripMetadataFromStackFrames)(i),t[1]=i)}})}),t.on("applyFrameMetadata",i=>{if(i.type)return;const o=t.getOptions().stackParser;(0,n.addMetadataToStackFrames)(o,i)})},preprocessEvent(n){t.ignoreSentryInternalFrames&&(s.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(n.sdkProcessingMetadata={...n.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(n){const i=!!t.ignoreSentryInternalFrames&&(!0===n.sdkProcessingMetadata?.insideSentryWrapped&&1===n.exception?.values?.length),o=u(n,t.ignoreSentryInternalFrames,i);if(o){if(o["drop-error-if-contains-third-party-frames"===t.behaviour||"apply-tag-if-contains-third-party-frames"===t.behaviour?"some":"every"](n=>!n.some(n=>t.filterKeys.includes(n)))){if("drop-error-if-contains-third-party-frames"===t.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===t.behaviour)return null;n.tags={...n.tags,third_party_code:!0}}}return n}}));function c(t,n,i){if(0!==n)return!1;if(i&&p(t))return!0;if("sentryWrapped"===t.function)return!0;if(!t.context_line||!t.filename)return!1;if(!t.filename.includes("sentry")||!t.filename.includes("helpers")||!t.context_line.includes(h))return!1;if(t.pre_context){const n=t.pre_context.length;for(let i=0;i<n;i++)if(t.pre_context[i]?.includes(y))return!0}return!1}function u(t,n,i){const s=(0,o.getFramesFromEvent)(t);if(s)return s.filter((t,o)=>!!t.filename&&((null!=t.lineno||null!=t.colno||null!=t.instruction_addr)&&(!n||!c(t,o,!!i)))).map(t=>t.module_metadata?Object.keys(t.module_metadata).filter(t=>t.startsWith(f)).map(t=>t.slice(f.length)):[])}function p(t){return!t.context_line&&!t.pre_context&&!!t.function&&t.function.length<=2}const f="_sentryBundlerPluginAppKey:",y="Attempt to invoke user-land function",h="fn.apply(this, wrappedArguments)"},1671,[1608,1659,1588,1549,1544]);
139__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addConsoleBreadcrumb",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"consoleIntegration",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),u=r(d[5]),c=r(d[6]),f=r(d[7]);const O=(0,s.defineIntegration)((t={})=>{const s=new Set(t.levels||l.CONSOLE_LEVELS);return{name:"Console",setup(l){const u=(0,o.addConsoleInstrumentationHandler)(({args:t,level:o})=>{(0,n.getClient)()===l&&s.has(o)&&L(o,t)});if(l.registerCleanup(u),t.filter){const n=(0,o.addConsoleInstrumentationFilter)(t.filter);l.registerCleanup(n)}}}});function L(n,o){const s={category:"console",data:{arguments:o,logger:"console"},level:(0,u.severityLevelFromString)(n),message:p(o)};if("assert"===n){if(!1!==o[0])return;{const t=o.slice(1);s.message=t.length>0?`Assertion failed: ${p(t)}`:"Assertion failed",s.data.arguments=t}}(0,t.addBreadcrumb)(s,{input:o,level:n})}function p(t){return"util"in f.GLOBAL_OBJ&&"function"==typeof f.GLOBAL_OBJ.util.format?f.GLOBAL_OBJ.util.format(...t):(0,c.safeJoin)(t," ")}},1672,[1652,1571,1663,1608,1546,1664,1561,1544]);
140__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"featureFlagsIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o=(0,t.defineIntegration)(()=>({name:"FeatureFlags",processEvent:(t,o,c)=>(0,n._INTERNAL_copyFlagsFromScopeToEvent)(t),addFeatureFlag(t,o){(0,n._INTERNAL_insertFlagToScope)(t,o),(0,n._INTERNAL_addFeatureFlagToActiveSpan)(t,o)}}))},1673,[1608,1674]);
141__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return p}}
141),Object.defineProperty(e,"_INTERNAL_insertToFlagBuffer",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);const f=100,c=10,l="flag.evaluation.";function s(n){if(n.type)return n;const o=(0,t.getCurrentScope)().getScopeData().contexts.flags,u=o?o.values:[];return u.length?(void 0===n.contexts&&(n.contexts={}),n.contexts.flags={values:[...u]},n):n}function p(n,o,u=f){const c=(0,t.getCurrentScope)().getScopeData().contexts;c.flags||(c.flags={values:[]});_(c.flags.values,n,o,u)}function _(t,u,f,c){if("boolean"!=typeof f)return;if(t.length>c)return void(n.DEBUG_BUILD&&o.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${c}`));const l=t.findIndex(t=>t.flag===u);-1!==l&&t.splice(l,1),t.length===c&&t.shift(),t.push({flag:u,result:f})}function b(t,n,o=c){if("boolean"!=typeof n)return;const f=(0,u.getActiveSpan)();if(!f)return;const s=(0,u.spanToJSON)(f).data;if(`${l}${t}`in s)return void f.setAttribute(`${l}${t}`,n);Object.keys(s).filter(t=>t.startsWith(l)).length<o&&f.setAttribute(`${l}${t}`,n)}},1674,[1571,1542,1546,1551]);
142__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"growthbookIntegration",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);const u=(0,t.defineIntegration)(({growthbookClass:t})=>({name:"GrowthBook",setupOnce(){const o=t.prototype;"function"==typeof o.isOn&&(0,n.fill)(o,"isOn",c),"function"==typeof o.getFeatureValue&&(0,n.fill)(o,"getFeatureValue",c)},processEvent:(t,n,u)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(t)}));function c(t){return function(...n){const u=n[0],c=t.apply(this,n);return"string"==typeof u&&"boolean"==typeof c&&((0,o._INTERNAL_insertFlagToScope)(u,c),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(u,c)),c}}},1675,[1608,1674,1558]);
143__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"conversationIdIntegration",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);const c=(0,n.defineIntegration)(()=>({name:"ConversationId",setup(n){n.on("spanStart",n=>{const c=(0,t.getCurrentScope)().getScopeData(),p=(0,t.getIsolationScope)().getScopeData(),I=c.conversationId||p.conversationId;if(I){const{op:t,data:c,description:p}=(0,s.spanToJSON)(n);if(!t?.startsWith("gen_ai.")&&!c["ai.operationId"]&&!p?.startsWith("ai."))return;n.setAttribute(o.GEN_AI_CONVERSATION_ID_ATTRIBUTE,I)}})}}))},1676,[1571,1608,1572,1551]);
144__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"profiler",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function l(n){return!!n&&void 0!==n._profiler&&"function"==typeof n._profiler.start&&"function"==typeof n._profiler.stop}const f={startProfiler:function(){const f=(0,n.getClient)();if(!f)return void(t.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));const s=f.getIntegrationByName("ProfilingIntegration");s?l(s)?s._profiler.start():t.DEBUG_BUILD&&o.debug.warn("Profiler is not available on profiling integration."):t.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")},stopProfiler:function(){const f=(0,n.getClient)();if(!f)return void(t.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));const s=f.getIntegrationByName("ProfilingIntegration");s?l(s)?s._profiler.stop():t.DEBUG_BUILD&&o.debug.warn("Profiler is not available on profiling integration."):t.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")}}},1677,[1571,1542,1546]);
145__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"_callOnRequestSpanEnd",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"instrumentFetchRequest",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]),p=r(d[5]),u=r(d[6]),f=r(d[7
145]),h=r(d[8]),l=r(d[9]),b=r(d[10]),y=r(d[11]);function _(n,o,c,f,b){if(!n.fetchData)return;const{method:y,url:_}=n.fetchData,A=(0,p.hasSpansEnabled)()&&o(_);if(n.endTimestamp){const t=n.fetchData.__span;if(!t)return;const s=f[t];return void(s&&(A&&(R(s,n),S(s,n,b)),delete f[t]))}const{spanOrigin:v="auto.http.browser",propagateTraceparent:O=!1}="object"==typeof b?b:{spanOrigin:b},I=(0,t.getClient)(),j=!!(0,s.getActiveSpan)()||!!I&&(0,h.hasSpanStreamingEnabled)(I),D=A&&j?(0,l.startInactiveSpan)(E(_,y,v)):new u.SentryNonRecordingSpan;if(A&&!j&&I?.recordDroppedEvent("no_parent_span","span"),n.fetchData.__span=D.spanContext().spanId,f[D.spanContext().spanId]=D,c(n.fetchData.url)){const t=n.args[0],s={...n.args[1]||{}},o=T(t,s,(0,p.hasSpansEnabled)()&&j?D:void 0,O);o&&(n.args[1]=s,s.headers=o)}if(I){const t={input:n.args,response:n.response,startTimestamp:n.startTimestamp,endTimestamp:n.endTimestamp};I.emit("beforeOutgoingRequestSpan",D,t)}return D}function S(t,n,s){const o="object"==typeof s&&null!==s?s.onRequestSpanEnd:void 0;o?.(t,{headers:n.response?.headers,error:n.error})}function T(t,n,s,o){const p=(0,b.getTraceData)({span:s,propagateTraceparent:o}),u=p["sentry-trace"],f=p.baggage,h=p.traceparent;if(!u)return;const l=n.headers||((0,c.isRequest)(t)?t.headers:void 0);if(l){if(y=l,"undefined"!=typeof Headers&&(0,c.isInstanceOf)(y,Headers)){const t=new Headers(l);if(t.get("sentry-trace")||t.set("sentry-trace",u),o&&h&&!t.get("traceparent")&&t.set("traceparent",h),f){const n=t.get("baggage");n?A(n)||t.set("baggage",`${n},${f}`):t.set("baggage",f)}return t}if(v(l)){const t=[...l];t.find(t=>"sentry-trace"===t[0])||t.push(["sentry-trace",u]),o&&h&&!t.find(t=>"traceparent"===t[0])&&t.push(["traceparent",h]);const n=l.find(t=>"baggage"===t[0]&&"string"==typeof t[1]&&A(t[1]));return f&&!n&&t.push(["baggage",f]),t}{const t="sentry-trace"in l?l["sentry-trace"]:void 0,n="traceparent"in l?l.traceparent:void 0,s="baggage"in l?l.baggage:void 0,c=s?Array.isArray(s)?[...s]:[s]:[],p=s&&(Array.isArray(s)?s.find(t=>A(t)):A(s));f&&!p&&c.push(f);const b=Object.assign({},l,{"sentry-trace":t??u,baggage:c.length>0?c.join(","):void 0});return o&&h&&!n&&(b.traceparent=h),b}}return{...p};var y}function R(t,n){if(n.response){(0,o.setHttpStatus)(t,n.response.status);const s=n.response?.headers?.get("content-length");if(s){const n=parseInt(s);n>0&&t.setAttribute("http.response_content_length",n)}}else n.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"});t.end()}function A(t){return"string"==typeof t&&t.split(",").some(t=>t.trim().startsWith(f.SENTRY_BAGGAGE_KEY_PREFIX))}function v(t){return!!Array.isArray(t)&&t.every(t=>Array.isArray(t)&&2===t.length&&"string"==typeof t[0])}function E(t,n,s){if(t.startsWith("data:")){return{name:`${n} ${(0,y.stripDataUrlContent)(t)}`,attributes:O(t,void 0,n,s)}}const o=(0,y.parseStringToURLObject)(t);return{name:`${n} ${o?(0,y.getSanitizedUrlStringFromUrlObject)(o):t}`,attributes:O(t,o,n,s)}}function O(t,s,o,c){const p={url:(0,y.stripDataUrlContent)(t),type:"fetch","http.method":o,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return s&&((0,y.isURLObjectRelative)(s)||(p["http.url"]=(0,y.stripDataUrlContent)(s.href),p["server.address"]=s.host),s.search&&(p["http.query"]=s.search),s.hash&&(p["http.fragment"]=s.hash)),p}},1678,[1571,1572,1551,1573,1559,1580,1582,1576,1591,1592,1646,1641]);
146__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureFeedback",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n,c={},s=(0,t.getCurrentScope)()){const{message:o,name:u,email:l,url:f,source:b,associatedEventId:_,tags:p}=n,v={contexts:{feedback:{contact_email:l,name:u,message:o,url:f,source:b,associated_event_id:_}},type:"feedback",level:"info",tags:p},k=s?.getClient()||(0,t.getClient)();k&&k.emit("beforeSendFeedback",v,c);return s.captureEvent(v,c)}},1679,[1571]);
147__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fmt",{enumerable:!0,get:function(){return n.fmt}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"error",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"fatal",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"info",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"trace",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"warn",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]);function u(n,u,o,c,f){(0,t._INTERNAL_captureLog)({level:n,message:u,attributes:o,severityNumber:f},c)}function o(t,n,{scope:o}={}){u("trace",t,n,o)}function c(t,n,{scope:o}={}){u("debug",t,n,o)}function f(t,n,{scope:o}={}){u("info",t,n,o)}function b(t,n,{scope:o}={}){u("warn",t,n,o)}function p(t,n,{scope:o}={}){u("error",t,n,o)}function l(t,n,{scope:o}={}){u("fatal",t,n,o)}},1680,[1609,1642]);
148__d(function(g,r,i,a,m,e,d){"use strict";
148Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),f=r(d[7]),b=r(d[8]),p=r(d[9]);const L={[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},_=(0,o.defineIntegration)((o={})=>{const l=o.levels||c.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(o){const{enableLogs:_,normalizeDepth:C=3,normalizeMaxBreadth:E=1e3}=o.getOptions();if(!_)return void(n.DEBUG_BUILD&&c.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled"));const I=(0,s.addConsoleInstrumentationHandler)(({args:n,level:s})=>{if((0,t.getClient)()!==o||!l.includes(s))return;const c=n[0],_=n.slice(1);if("assert"===s){if(!c){const t=_.length>0?`Assertion failed: ${(0,p.formatConsoleArgs)(_,C,E)}`:"Assertion failed";(0,b._INTERNAL_captureLog)({level:"error",message:t,attributes:L})}return}const I="log"===s,v={...L};if((0,u.isPlainObject)(c)){Object.assign(v,(0,f.normalize)(c,C,E));const t="string"==typeof n[1]?2:1;n.slice(t).forEach((t,n)=>{v[`sentry.message.parameter.${n}`]=(0,f.normalize)(t,C,E)})}else{if(_.length>0&&"string"==typeof c&&!(0,p.hasConsoleSubstitutions)(c)){const t=(0,p.createConsoleTemplateAttributes)(c,_);for(const[n,s]of Object.entries(t))v[n]=n.startsWith("sentry.message.parameter.")?(0,f.normalize)(s,C,E):s}}(0,b._INTERNAL_captureLog)({level:I?"info":s,message:(0,p.formatConsoleArgs)(n,C,E),severityNumber:I?10:void 0,attributes:v})});o.registerCleanup(I)}}})},1681,[1571,1542,1663,1608,1572,1546,1559,1562,1609,1682]);
149__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createConsoleTemplateAttributes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"formatConsoleArgs",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"hasConsoleSubstitutions",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"safeJoinConsoleArgs",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function u(t,n,u){return"util"in o.GLOBAL_OBJ&&"function"==typeof o.GLOBAL_OBJ.util.format?o.GLOBAL_OBJ.util.format(...t):s(t,n,u)}function s(o,u,s){return o.map(o=>(0,t.isPrimitive)(o)?String(o):JSON.stringify((0,n.normalize)(o,u,s))).join(" ")}function f(t){return/%[sdifocO]/.test(t)}function c(t,n){const o={},u=new Array(n.length).fill("{}").join(" ");return o["sentry.message.template"]=`${t} ${u}`,n.forEach((t,n)=>{o[`sentry.message.parameter.${n}`]=t}),o}},1682,[1559,1562,1544]);
150__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"count",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"distribution",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"gauge",{enumerable:!0,get:function(){return c}});var t=r(d[0]);function n(n,u,c,o){(0,t._INTERNAL_captureMetric)({type:n,name:u,value:c,unit:o?.unit,attributes:o?.attributes},{scope:o?.scope})}function u(t,u=1,c){n("counter",t,u,c)}function c(t,u,c){n("gauge",t,u,c)}function o(t,u,c){n("distribution",t,u,c)}},1683,[1617]);
151__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createConsolaReporter",{enumerable:!0,get:function(){return f}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),l=r(d[4]);const c=["trace","debug","info","warn","error","fatal"];function f(o={}){const f=new Set(o.levels??c),u=o.client;return{log(o){const{type:c,level:b,message:h,args:O,tag:j,date:z,...C}=o,P=u||(0,t.getClient)();if(!P)return;const _=p(c,b);if(!f.has(_))return;const{normalizeDepth:w=3,normalizeMaxBreadth:A=1e3}=P.getOptions(),T={};for(const[t,s]of Object.entries(C))T[t]=(0,l.normalize)(s,w,A);T["sentry.origin"]="auto.log.consola",j&&(T["consola.tag"]=j),c&&(T["consola.type"]=c),null!=b&&"number"==typeof b&&(T["consola.level"]=b);const x=v(y(O,w,A),w,A);x?.attributes&&Object.assign(T,x.attributes),(0,s._INTERNAL_captureLog)({level:_,message:x?.message||h||O&&(0,n.formatConsoleArgs)(O,w,A)||"",attributes:T})}}}const u={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},b={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function p(t,s){if("verbose"===t)return"debug";if("silent"===t)return"trace";if(t){const s=u[t];if(s)return s}if("number"==typeof s){const t=b[s];if(t)return t}return"info"}function y(t,s,l){if(!t?.length)return{message:""};const c=(0,n.formatConsoleArgs)(t,s,l),f=t[0];if((0,o.isPlainObject)(f)){const s="string"==typeof t[1]?2:1;return{message:c,attributes:f,messageParameters:t.slice(s)}}{const s=t.slice(1),o=s.length>0&&"string"==typeof f&&!(0,n.hasConsoleSubstitutions)(f);return{message:c,messageTemplate:o?f:void 0,messageParameters:o?s:void 0}}}function v(t,s,o){const{message:c,attributes:f,messageTemplate:u,messageParameters:b}=t,p={};if(u&&b){const t=(0,n.createConsoleTemplateAttributes)(u,b);for(const[n,c]of Object.entries(t))p[n]=n.startsWith("sentry.message.parameter.")?(0,l.normalize)(c,s,o):c}else b&&b.length>0&&b.forEach((t,n)=>{p[`sentry.message.parameter.${n}`]=(0,l.normalize)(t,s,o)});return{message:c,attributes:{...(0,l.normalize)(f,s,o),...p}}}},1684,[1571,1609,1682,1559,1562]);
152__d(function(g,r,i,a,m,e,d){"use strict";
152Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addVercelAiProcessors",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"processVercelAiSpanAttributes",{enumerable:!0,get:function(){return R}});var T=r(d[0]),_=r(d[1]),t=r(d[2]),E=r(d[3]),A=r(d[4]),n=r(d[5]),I=r(d[6]),o=r(d[7]),s=r(d[8]);function O(_){const{data:A,description:n}=(0,E.spanToJSON)(_);if(!n)return;if(A[s.AI_TOOL_CALL_NAME_ATTRIBUTE]&&A[s.AI_TOOL_CALL_ID_ATTRIBUTE]&&"ai.toolCall"===n)return void P(_,A);if(!A[s.AI_OPERATION_ID_ATTRIBUTE]&&!n.startsWith("ai."))return;const I=(0,T.getClient)(),o=I?.getIntegrationByName("VercelAI");B(_,n,A,(0,t.shouldEnableTruncation)(o?.options?.enableTruncation))}function N(T){if("transaction"===T.type&&T.spans){const _=new Map;for(const t of T.spans)S(t),(0,o.accumulateTokensForParent)(t,_);(0,o.applyToolDescriptionsAndTokens)(T.spans,_);const t=T.contexts?.trace;"gen_ai.invoke_agent"===t?.op&&(0,o.applyAccumulatedTokens)(t,_)}return T}function c(T){return"string"!=typeof T?"stop":"tool-calls"===T?"tool_call":T}function U(T){const _=T[s.AI_RESPONSE_TEXT_ATTRIBUTE],t=T[s.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE],E=T[s.AI_RESPONSE_FINISH_REASON_ATTRIBUTE];if(null==_&&null==t)return;const n=[];if("string"==typeof _&&_.length>0&&n.push({type:"text",content:_}),null!=t)try{const _="string"==typeof t?JSON.parse(t):t;if(Array.isArray(_)){for(const T of _){const _=T.input??T.args;n.push({type:"tool_call",id:T.toolCallId,name:T.toolName,arguments:"string"==typeof _?_:JSON.stringify(_??{})})}delete T[s.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]}}catch{}if(n.length>0){const _={role:"assistant",parts:n,finish_reason:c(E)};T[A.GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE]=JSON.stringify([_]),delete T[s.AI_RESPONSE_TEXT_ATTRIBUTE]}}function R(T){p(T,s.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE),p(T,"ai.usage.inputTokens",A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,"ai.usage.outputTokens",A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,"ai.response.avgOutputTokensPerSecond","ai.response.avgCompletionTokensPerSecond");if(Object.keys(T).some(T=>T.startsWith(s.AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX))||"number"!=typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]||"number"!=typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]||(T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]+T[A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]),"number"==typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]){const _="number"==typeof T[A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]?T[A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:0;T[A.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=_+T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]}if(T[s.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(T[s.AI_PROMPT_TOOLS_ATTRIBUTE])&&(T[s.AI_PROMPT_TOOLS_ATTRIBUTE]=(0,o.convertAvailableToolsToJsonString)(T[s.AI_PROMPT_TOOLS_ATTRIBUTE])),T[s.OPERATION_NAME_ATTRIBUTE]){const _=T[s.AI_OPERATION_ID_ATTRIBUTE]?T[s.AI_OPERATION_ID_ATTRIBUTE]:T[s.OPERATION_NAME_ATTRIBUTE],t=n.SPAN_TO_OPERATION_NAME.get(_)??_;T[A.GEN_AI_OPERATION_NAME_ATTRIBUTE]=t,delete T[s.OPERATION_NAME_ATTRIBUTE]}if(p(T,s.AI_PROMPT_MESSAGES_ATTRIBUTE,A.GEN_AI_INPUT_MESSAGES_ATTRIBUTE),U(T),p(T,s.AI_RESPONSE_OBJECT_ATTRIBUTE,"gen_ai.response.object"),p(T,s.AI_PROMPT_TOOLS_ATTRIBUTE,"gen_ai.request.available_tools"),p(T,s.AI_TOOL_CALL_ARGS_ATTRIBUTE,A.GEN_AI_TOOL_INPUT_ATTRIBUTE),p(T,s.AI_TOOL_CALL_RESULT_ATTRIBUTE,A.GEN_AI_TOOL_OUTPUT_ATTRIBUTE),p(T,s.AI_SCHEMA_ATTRIBUTE,"gen_ai.request.schema"),p(T,s.AI_MODEL_ID_ATTRIBUTE,A.GEN_AI_REQUEST_MODEL_ATTRIBUTE),Array.isArray(T[s.AI_VALUES_ATTRIBUTE])){const _=T[s.AI_VALUES_ATTRIBUTE].map(T=>{try{return JSON.parse(T)}catch{return T}});T[A.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]=1===_.length?_[0]:JSON.stringify(_)}f(T);for(const _ of Object.keys(T))Array.isArray(T[_])&&(T[_]=JSON.stringify(T[_])),_.startsWith("ai.")&&p(T,_,`vercel.${_}`)}function S(T){const{data:_,origin:t}=T;"auto.vercelai.otel"===t&&(T.status&&"ok"!==T.status&&(T.status="internal_error"),R(_))}function u(T){const t=T.attributes;if("auto.vercelai.otel"===t?.[_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]){if(R(t),"gen_ai.execute_tool"===t[_.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&T.parent_span_id){const _=n.toolDescriptionMap.get(T.parent_span_id);if(_){const T=t[A.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof T){const E=_.get(T);E&&(t[A.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=E)}}}n.toolDescriptionMap.delete(T.span_id)}}function p(T,_,t){null!=T[_]&&(T[t]=T[_],delete T[_])}function P(T,t){T.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel"),T.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.execute_tool"),T.setAttribute(A.GEN_AI_OPERATION_NAME_ATTRIBUTE,"execute_tool"),p(t,s.AI_TOOL_CALL_NAME_ATTRIBUTE,A.GEN_AI_TOOL_NAME_ATTRIBUTE),p(t,s.AI_TOOL_CALL_ID_ATTRIBUTE,A.GEN_AI_TOOL_CALL_ID_ATTRIBUTE);
152const E=t[A.GEN_AI_TOOL_CALL_ID_ATTRIBUTE];"string"==typeof E&&n.toolCallSpanContextMap.set(E,T.spanContext()),t[A.GEN_AI_TOOL_TYPE_ATTRIBUTE]||T.setAttribute(A.GEN_AI_TOOL_TYPE_ATTRIBUTE,"function");const I=t[A.GEN_AI_TOOL_NAME_ATTRIBUTE];I&&T.updateName(`execute_tool ${I}`)}function B(t,O,N,c){t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel");const U=O.replace("ai.","");t.setAttribute("ai.pipeline.name",U),t.updateName(U);const R=N[s.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE];R&&"string"==typeof R&&t.setAttribute("gen_ai.function_id",R),(0,o.requestMessagesFromPrompt)(t,N,c),N[s.AI_MODEL_ID_ATTRIBUTE]&&!N[A.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]&&t.setAttribute(A.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,N[s.AI_MODEL_ID_ATTRIBUTE]),t.setAttribute("ai.streaming",O.includes("stream"));const S=n.SPAN_TO_OPERATION_NAME.get(O);if(S?t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,`gen_ai.${S}`):O.startsWith("ai.stream")&&t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,"ai.run"),"invoke_agent"===S)return void(R&&"string"==typeof R?t.updateName(`invoke_agent ${R}`):t.updateName("invoke_agent"));const u=N[s.AI_MODEL_ID_ATTRIBUTE];u&&S&&t.updateName(`${S} ${u}`);const p=(0,T.getClient)();if(p&&(0,I.hasSpanStreamingEnabled)(p)&&N[s.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(N[s.AI_PROMPT_TOOLS_ATTRIBUTE])){const T=new Map;for(const _ of N[s.AI_PROMPT_TOOLS_ATTRIBUTE])try{const t="string"==typeof _?JSON.parse(_):_;t?.name&&t?.description&&T.set(t.name,t.description)}catch{}if(T.size>0){const _=(0,E.spanToJSON)(t).parent_span_id;_&&n.toolDescriptionMap.set(_,T)}}}function l(T){T.on("spanStart",O),T.addEventProcessor(Object.assign(N,{id:"VercelAiEventProcessor"})),T.on("processSpan",T=>{u(T)})}function G(T){const _={};if(!T||"object"!=typeof T)return _;const t=T,E=t.openai??t.azure;if(E&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,E.cachedPromptTokens),L(_,"gen_ai.usage.output_tokens.reasoning",E.reasoningTokens),L(_,"gen_ai.usage.output_tokens.prediction_accepted",E.acceptedPredictionTokens),L(_,"gen_ai.usage.output_tokens.prediction_rejected",E.rejectedPredictionTokens),L(_,A.GEN_AI_CONVERSATION_ID_ATTRIBUTE,E.responseId)),t.anthropic){const T=t.anthropic.usage?.cache_read_input_tokens??t.anthropic.cacheReadInputTokens;L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,T);const E=t.anthropic.usage?.cache_creation_input_tokens??t.anthropic.cacheCreationInputTokens;L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,E)}return t.bedrock?.usage&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t.bedrock.usage.cacheReadInputTokens),L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,t.bedrock.usage.cacheWriteInputTokens)),t.deepseek&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t.deepseek.promptCacheHitTokens),L(_,"gen_ai.usage.input_tokens.cache_miss",t.deepseek.promptCacheMissTokens)),_}function f(T){const _=T[s.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE];if(_)try{const t=G(JSON.parse(_));for(const[_,E]of Object.entries(t))_===A.GEN_AI_CONVERSATION_ID_ATTRIBUTE&&T[_]||(T[_]=E)}catch{}}function L(T,_,t){null!=t&&(T[_]=t)}},1685,[1571,1572,1686,1551,1687,1690,1591,1691,1692]);
153__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildMethodPath",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"endStreamSpan",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractSystemInstructions",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getJsonString",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"getTruncatedJsonString",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"resolveAIRecordingOptions",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"setTokenUsageAttributes",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldEnableTruncation",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"wrapPromiseWithMethods",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]);function T(t){const o=(0,n.getClient)()?.getDataCollectionOptions().genAI;return{...t,recordInputs:t?.recordInputs??o?.inputs??!1,recordOutputs:t?.recordOutputs??o?.outputs??!1}}function _(t){if(void 0!==t)return t;const s=(0,n.getClient)();return!s||!(0,o.hasSpanStreamingEnabled)(s)&&!1===s.getOptions().streamGenAiSpans}function f(t,n){return t?`${t}.${n}`:n}function p(t,n,o,s,c){if(void 0!==n&&t.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:n}),void 0!==o&&t.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:o}),void 0!==n||void 0!==o||void 0!==s||void 0!==c){const T=(n??0)+(o??0)+(s??0)+(c??0);t.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:T})}}function E(t,n,o){if(!t.isRecording())return;const s={[u.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};n.responseId&&(s[u.GEN_AI_RESPONSE_ID_ATTRIBUTE]=n.responseId),n.responseModel&&(s[u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=n.responseModel),void 0!==n.promptTokens&&(s[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=n.promptTokens),void 0!==n.completionTokens&&(s[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=n.completionTokens),void 0!==n.totalTokens?s[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.totalTokens:void 0===n.promptTokens&&void 0===n.completionTokens&&void 0===n.cacheCreationInputTokens&&void 0===n.cacheReadInputTokens||(s[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=(n.promptTokens??0)+(n.completionTokens??0)+(n.cacheCreationInputTokens??0)+(n.cacheReadInputTokens??0)),n.finishReasons.length&&(s[u.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(n.finishReasons)),o&&n.responseTexts.length&&(s[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=n.responseTexts.join("")),o&&n.toolCalls.length&&(s[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n.toolCalls)),t.setAttributes(s),t.end()}function A(t){return"string"==typeof t?t:JSON.stringify(t)}function l(t){if("string"==typeof t)return(0,c.truncateGenAiStringInput)(t);if(Array.isArray(t)){const n=(0,c.truncateGenAiMessages)(t);return JSON.stringify(n)}return JSON.stringify(t)}function I(t){if(!Array.isArray(t))return{systemInstructions:void 0,filteredMessages:t};const n=t.findIndex(t=>t&&"object"==typeof t&&"role"in t&&"system"===t.role);if(-1===n)return{systemInstructions:void 0,filteredMessages:t};const o=t[n],s="string"==typeof o.content?o.content:void 0!==o.content?JSON.stringify(o.content):void 0;if(!s)return{systemInstructions:void 0,filteredMessages:t};return{systemInstructions:JSON.stringify([{type:"text",content:s}]),filteredMessages:[...t.slice(0,n),...t.slice(n+1)]}}
153async function S(n,o,s){const u=n.catch(n=>{throw(0,t.captureException)(n,{mechanism:{handled:!1,type:s}}),n}),c=await o,T=await u;return T&&"object"==typeof T&&"data"in T?{...T,data:c}:c}function O(t,n,o){return(0,s.isThenable)(t)?new Proxy(t,{get(t,s){const u=s in Promise.prototype||s===Symbol.toStringTag?n:t,c=Reflect.get(u,s);return"withResponse"===s&&"function"==typeof c?function(){return S(c.call(t),n,o)}:"function"==typeof c?c.bind(u):c}}):n}},1686,[1599,1571,1591,1559,1687,1688]);
154__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GEN_AI_AGENT_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"GEN_AI_INPUT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"GEN_AI_OPERATION_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"GEN_AI_PIPELINE_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"GEN_AI_PROMPT_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE",{enumerable:!0,get:function(){return O}}
154),Object.defineProperty(e,"GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"GEN_AI_REQUEST_MODEL_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"GEN_AI_REQUEST_STREAM_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"GEN_AI_REQUEST_TOP_K_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"GEN_AI_REQUEST_TOP_P_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"GEN_AI_RESPONSE_ID_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"GEN_AI_RESPONSE_MODEL_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"GEN_AI_RESPONSE_STREAMING_ATTRIBUTE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"GEN_AI_RESPONSE_TEXT_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"GEN_AI_SYSTEM_ATTRIBUTE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"GEN_AI_TOOL_CALL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return X}}),Object.defineProperty(e,"GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"GEN_AI_TOOL_INPUT_ATTRIBUTE",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"GEN_AI_TOOL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"GEN_AI_TOOL_OUTPUT_ATTRIBUTE",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"GEN_AI_TOOL_TYPE_ATTRIBUTE",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return s}});const n="gen_ai.prompt",t="gen_ai.system",_="gen_ai.request.model",T="gen_ai.request.stream",E="gen_ai.request.temperature",u="gen_ai.request.max_tokens",o="gen_ai.request.frequency_penalty",A="gen_ai.request.presence_penalty",I="gen_ai.request.top_p",c="gen_ai.request.top_k",O="gen_ai.request.encoding_format",N="gen_ai.request.dimensions",f="gen_ai.response.finish_reasons",b="gen_ai.response.model",R="gen_ai.response.id",P="gen_ai.response.stop_reason",U="gen_ai.usage.input_tokens",p="gen_ai.usage.output_tokens",s="gen_ai.usage.total_tokens",S="gen_ai.operation.name",l="sentry.sdk_meta.gen_ai.input.messages.original_length",G="gen_ai.input.messages",y="gen_ai.output.messages",B="gen_ai.system_instructions",j="gen_ai.response.text",L="gen_ai.request.available_tools",M="gen_ai.response.streaming",C="gen_ai.response.tool_calls",D="gen_ai.agent.name",q="gen_ai.pipeline.name",Q="gen_ai.conversation.id",k="gen_ai.usage.cache_creation_input_tokens",K="gen_ai.usage.cache_read_input_tokens",h="gen_ai.usage.input_tokens.cache_write",H="gen_ai.usage.input_tokens.cached",Y="gen_ai.invoke_agent",v="gen_ai.embeddings.input",x="gen_ai.embeddings",F="gen_ai.execute_tool",V="gen_ai.tool.name",X="gen_ai.tool.call.id",w="gen_ai.tool.type",W="gen_ai.tool.input",z="gen_ai.tool.output",J="gen_ai.tool.description"},1687,[]);
155__d(function(g,r,i,a,m,e,d){"use strict";
155Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"truncateGenAiMessages",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"truncateGenAiStringInput",{enumerable:!0,get:function(){return I}});var t=r(d[0]);const n=2e4,o=t=>(new TextEncoder).encode(t).length,c=t=>o(JSON.stringify(t));function u(t,n){if(o(t)<=n)return t;let c=0,u=t.length,s="";for(;c<=u;){const f=Math.floor((c+u)/2),l=t.slice(0,f);o(l)<=n?(s=l,c=f+1):u=f-1}return s}function s(t){return"string"==typeof t?t:"text"in t&&"string"==typeof t.text?t.text:""}function f(t,n){return"string"==typeof t?n:{...t,text:n}}function l(t){return null!==t&&"object"==typeof t&&"content"in t&&"string"==typeof t.content}function p(t){return null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)}function y(t){return null!==t&&"object"==typeof t&&"parts"in t&&Array.isArray(t.parts)&&t.parts.length>0}function A(t,n){const o={...t,content:""},s=n-c(o);if(s<=0)return[];const f=u(t.content,s);return[{...t,content:f}]}function b(t){return"parts"in t&&Array.isArray(t.parts)?{key:"parts",items:t.parts}:"content"in t&&Array.isArray(t.content)?{key:"content",items:t.content}:{key:null,items:[]}}function M(t,n){const{key:l,items:p}=b(t);if(null===l||0===p.length)return[];const y=p.map(t=>f(t,""));let A=n-c({...t,[l]:y});if(A<=0)return[];const M=[];for(const t of p){const n=s(t),c=o(n);if(!(c<=A)){if(0===M.length){const o=u(n,A);o&&M.push(f(t,o));break}break}M.push(t),A-=c}return M.length<=0?[]:[{...t,[l]:M}]}function h(t,n){if(!t)return[];if("string"==typeof t){const o=u(t,n);return o?[o]:[]}return"object"!=typeof t?[]:l(t)?A(t,n):p(t)||y(t)?M(t,n):[]}function j(n){return n.map(n=>{let o;return n&&"object"==typeof n&&(p(n)?o={...n,content:j(n.content)}:"content"in n&&(0,t.isContentMedia)(n.content)&&(o={...n,content:(0,t.stripInlineMediaFromSingleMessage)(n.content)}),y(n)&&(o={...o??n,parts:j(n.parts)}),(0,t.isContentMedia)(o)?o=(0,t.stripInlineMediaFromSingleMessage)(o):(0,t.isContentMedia)(n)&&(o=(0,t.stripInlineMediaFromSingleMessage)(n))),o??n})}function _(t,n){if(!Array.isArray(t)||0===t.length)return t;const o=n-2,u=j([t[t.length-1]]),s=u[0];return c(s)<=o?u:h(s,o)}function S(t){return _(t,n)}function I(t){return u(t,n)}},1688,[1689]);
156__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return!(!t||"object"!=typeof t)&&(o(t)||f(t)||n(t)||p(t)||s(t)||l(t)||y(t)||c(t)||_(t)||b(t)||h(t)||j(t))}function n(t){return"image_url"in t&&("string"==typeof t.image_url?t.image_url.startsWith("data:"):u(t))}function u(t){return"image_url"in t&&!!t.image_url&&"object"==typeof t.image_url&&"url"in t.image_url&&"string"==typeof t.image_url.url&&t.image_url.url.startsWith("data:")}function o(n){return"type"in n&&"string"==typeof n.type&&"source"in n&&t(n.source)}function f(t){return"inlineData"in t&&!!t.inlineData&&"object"==typeof t.inlineData&&"data"in t.inlineData&&"string"==typeof t.inlineData.data}function p(t){return"type"in t&&"input_audio"===t.type&&"input_audio"in t&&!!t.input_audio&&"object"==typeof t.input_audio&&"data"in t.input_audio&&"string"==typeof t.input_audio.data}function s(t){return"type"in t&&"file"===t.type&&"file"in t&&!!t.file&&"object"==typeof t.file&&"file_data"in t.file&&"string"==typeof t.file.file_data}function l(t){return"media_type"in t&&"string"==typeof t.media_type&&"data"in t}function y(t){return"type"in t&&"file"===t.type&&"mediaType"in t&&"string"==typeof t.mediaType&&"data"in t&&"string"==typeof t.data&&!t.data.startsWith("http://")&&!t.data.startsWith("https://")}function c(t){return"type"in t&&"image"===t.type&&"image"in t&&"string"==typeof t.image&&!t.image.startsWith("http://")&&!t.image.startsWith("https://")}function _(t){return"type"in t&&("blob"===t.type||"base64"===t.type)}function b(t){return"b64_json"in t}function h(t){return"type"in t&&"result"in t&&"image_generation"===t.type}function j(t){return"uri"in t&&"string"==typeof t.uri&&t.uri.startsWith("data:")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isContentMedia",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"stripInlineMediaFromSingleMessage",{enumerable:!0,get:function(){return M}});const D="[Blob substitute]",W=["image_url","data","content","b64_json","result","uri","image"];function M(n){const o={...n};t(o.source)&&(o.source=M(o.source)),f(n)&&(o.inlineData={...n.inlineData,data:D}),u(n)&&(o.image_url={...n.image_url,url:D}),p(n)&&(o.input_audio={...n.input_audio,data:D}),s(n)&&(o.file={...n.file,file_data:D});for(const t of W)"string"==typeof o[t]&&(o[t]=D);return o}},1689,[]);
157__d(function(g,r,i,a,m,e,d){"use strict";
157Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_TO_OPERATION_NAME",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"toolCallSpanContextMap",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"toolDescriptionMap",{enumerable:!0,get:function(){return n}});const t=new Map,n=new Map,o=new Map([["ai.generateText","invoke_agent"],["ai.streamText","invoke_agent"],["ai.generateObject","invoke_agent"],["ai.streamObject","invoke_agent"],["ai.generateText.doGenerate","generate_content"],["ai.streamText.doStream","generate_content"],["ai.generateObject.doGenerate","generate_content"],["ai.streamObject.doStream","generate_content"],["ai.embed.doEmbed","embeddings"],["ai.embedMany.doEmbed","embeddings"],["ai.rerank.doRerank","rerank"],["ai.toolCall","execute_tool"]])},1690,[]);
158__d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"accumulateTokensForParent",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"applyAccumulatedTokens",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"applyToolDescriptionsAndTokens",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"convertAvailableToolsToJsonString",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"convertUserInputToMessagesFormat",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"requestMessagesFromPrompt",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function T(n,o){const s=n.parent_span_id;if(!s)return;const T=n.data[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE],_=n.data[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE];if("number"==typeof T||"number"==typeof _){const t=o.get(s)||{inputTokens:0,outputTokens:0};"number"==typeof T&&(t.inputTokens+=T),"number"==typeof _&&(t.outputTokens+=_),o.set(s,t)}}function _(n,o){const s=o.get(n.span_id);s&&n.data&&(s.inputTokens>0&&(n.data[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=s.inputTokens),s.outputTokens>0&&(n.data[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=s.outputTokens),(s.inputTokens>0||s.outputTokens>0)&&(n.data["gen_ai.usage.total_tokens"]=s.inputTokens+s.outputTokens))}function u(n){const o=new Map;for(const s of n){const n=s.data[t.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE];if("string"==typeof n)try{const t=JSON.parse(n);for(const n of t)n.name&&n.description&&!o.has(n.name)&&o.set(n.name,n.description)}catch{}}return o}function c(n,o){const s=u(n);for(const T of n){if("gen_ai.execute_tool"===T.op){const n=T.data[t.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof n){const o=s.get(n);o&&(T.data[t.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=o)}}"gen_ai.invoke_agent"===T.op&&_(T,o)}}function A(t){return o.toolCallSpanContextMap.get(t)}function E(t){o.toolCallSpanContextMap.delete(t)}function p(t){const n=t.map(t=>{if("string"==typeof t)try{return JSON.parse(t)}catch{return t}return t});return JSON.stringify(n)}function I(t){return t.filter(t=>!!t&&"object"==typeof t&&"role"in t&&"content"in t)}function f(t){try{const n=JSON.parse(t);if(n&&"object"==typeof n){let{messages:t}=n;const{prompt:o,system:s}=n,T=[];if("string"==typeof s&&T.push({role:"system",content:s}),"string"==typeof t)try{t=JSON.parse(t)}catch{}if(Array.isArray(t))return T.push(...I(t)),T;if(Array.isArray(o))return T.push(...I(o)),T;if("string"==typeof o&&T.push({role:"user",content:o}),T.length>0)return T}}catch{}return[]}function S(o,T,_){if("string"!=typeof T[s.AI_PROMPT_ATTRIBUTE]||T[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]||T[s.AI_PROMPT_MESSAGES_ATTRIBUTE]){if
158("string"==typeof T[s.AI_PROMPT_MESSAGES_ATTRIBUTE]){const u=T[s.AI_PROMPT_MESSAGES_ATTRIBUTE];try{const T=JSON.parse(u);if(Array.isArray(T)){const{systemInstructions:c,filteredMessages:A}=(0,n.extractSystemInstructions)(T);c&&o.setAttribute(t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,c);const E=Array.isArray(A)?A.length:0,p=_||A!==T?_?(0,n.getTruncatedJsonString)(A):(0,n.getJsonString)(A):u;o.setAttributes({[s.AI_PROMPT_MESSAGES_ATTRIBUTE]:p,[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:p,[t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:E})}}catch{}}}else{const u=f(T[s.AI_PROMPT_ATTRIBUTE]);if(u.length){const{systemInstructions:T,filteredMessages:c}=(0,n.extractSystemInstructions)(u);T&&o.setAttribute(t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,T);const A=Array.isArray(c)?c.length:0,E=_?(0,n.getTruncatedJsonString)(c):(0,n.getJsonString)(c);o.setAttributes({[s.AI_PROMPT_ATTRIBUTE]:E,[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:E,[t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:A})}}}},1691,[1687,1686,1690,1692]);
159__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AI_MODEL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"AI_OPERATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"AI_PROMPT_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"AI_PROMPT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"AI_PROMPT_TOOLS_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"AI_RESPONSE_FINISH_REASON_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"AI_RESPONSE_OBJECT_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"AI_RESPONSE_TEXT_ATTRIBUTE",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"AI_RESPONSE_TOOL_CALLS_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"AI_SCHEMA_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"AI_TOOL_CALL_ARGS_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"AI_TOOL_CALL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"AI_TOOL_CALL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"AI_TOOL_CALL_RESULT_ATTRIBUTE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"AI_USAGE_PROMPT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"AI_USAGE_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"AI_VALUES_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"OPERATION_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return t}});const t="operation.name",n="ai.operationId",T="ai.prompt",o="ai.schema",_="ai.response.object",u="ai.values",A="ai.response.text",E="ai.response.toolCalls",I="ai.response.finishReason",O="ai.prompt.messages",c="ai.prompt.tools",f="ai.model.id",b="ai.response.providerMetadata",l="ai.usage.cachedInputTokens",P="ai.usage.inputTokenDetails.",p="ai.telemetry.functionId",R="ai.usage.completionTokens",s="ai.usage.promptTokens",U="ai.usage.tokens",S="ai.toolCall.name",j="ai.toolCall.id",y="ai.toolCall.args",B="ai.toolCall.result"},1692,[]);
160__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return N}});
160var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),_=r(d[5]),c=r(d[6]),T=r(d[7]),E=r(d[8]),A=r(d[9]),p=r(d[10]);function I(n){const o=[...Array.isArray(n.tools)?n.tools:[],...n.web_search_options&&"object"==typeof n.web_search_options?[{type:"web_search_options",...n.web_search_options}]:[]];if(0!==o.length)try{return JSON.stringify(o)}catch(n){return void(t.DEBUG_BUILD&&s.debug.error("Failed to serialize OpenAI tools:",n))}}function l(t,n){const s={[c.GEN_AI_SYSTEM_ATTRIBUTE]:"openai",[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:n,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(t.length>0&&"object"==typeof t[0]&&null!==t[0]){const n=t[0],o=I(n);o&&(s[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=o),Object.assign(s,(0,p.extractRequestParameters)(n))}else s[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return s}function S(t,n,o,s){if("embeddings"===o&&"input"in n){const o=n.input;if(null==o)return;if("string"==typeof o&&0===o.length)return;if(Array.isArray(o)&&0===o.length)return;return void t.setAttribute(c.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o))}const u="input"in n?n.input:"messages"in n?n.messages:void 0;if(!u)return;if(Array.isArray(u)&&0===u.length)return;const{systemInstructions:_,filteredMessages:E}=(0,T.extractSystemInstructions)(u);_&&t.setAttribute(c.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,_),t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,s?(0,T.getTruncatedJsonString)(E):(0,T.getJsonString)(E)),Array.isArray(E)?t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,E.length):t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,1)}function f(t,o,s,E,I){return function(...f){const y=s.operation||"unknown",N=l(f,y),R=N[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",b=f[0],h=b&&"object"==typeof b&&!0===b.stream,O={name:`${y} ${R}`,op:`gen_ai.${y}`,attributes:N};if(h){let s;const c=(0,_.startSpanManual)(O,_=>(s=t.apply(E,f),I.recordInputs&&b&&S(_,b,y,(0,T.shouldEnableTruncation)(I.enableTruncation)),(async()=>{try{const t=await s;return(0,A.instrumentStream)(t,_,I.recordOutputs??!1)}catch(t){throw _.setStatus({code:u.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:o}}}),_.end(),t}})()));return(0,T.wrapPromiseWithMethods)(s,c,"auto.ai.openai")}let U;const G=(0,_.startSpan)(O,s=>(U=t.apply(E,f),I.recordInputs&&b&&S(s,b,y,(0,T.shouldEnableTruncation)(I.enableTruncation)),U.then(t=>((0,p.addResponseAttributes)(s,t,I.recordOutputs),t),t=>{throw(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:o}}}),t})));return(0,T.wrapPromiseWithMethods)(U,G,"auto.ai.openai")}}function y(t,n="",o){return new Proxy(t,{get(t,s){const u=t[s],_=(0,T.buildMethodPath)(n,String(s)),c=E.OPENAI_METHOD_REGISTRY[_];return"function"==typeof u&&c?f(u,_,c,t,o):"function"==typeof u?u.bind(t):u&&"object"==typeof u?y(u,_,o):u}})}function N(t,n){return y(t,"",(0,T.resolveAIRecordingOptions)(n))}},1693,[1542,1599,1572,1546,1573,1592,1687,1686,1694,1695,1696]);
161__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"OPENAI_METHOD_REGISTRY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"RESPONSES_TOOL_CALL_EVENT_TYPES",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"RESPONSE_EVENT_TYPES",{enumerable:!0,get:function(){return s}});const t="OpenAI",n={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},o=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],s=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...o]},1694,[]);
162__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentStream",{enumerable:!0,get:function(){return f}});
162var o=r(d[0]),s=r(d[1]),t=r(d[2]),n=r(d[3]),l=r(d[4]);function p(o,s){for(const t of o){const o=t.index;if(void 0!==o&&t.function)if(o in s.chatCompletionToolCalls){const n=s.chatCompletionToolCalls[o];t.function.arguments&&n?.function&&(n.function.arguments+=t.function.arguments)}else s.chatCompletionToolCalls[o]={...t,function:{name:t.function.name,arguments:t.function.arguments||""}}}}function u(o,s,t){s.responseId=o.id??s.responseId,s.responseModel=o.model??s.responseModel,o.usage&&(s.promptTokens=o.usage.prompt_tokens,s.completionTokens=o.usage.completion_tokens,s.totalTokens=o.usage.total_tokens);for(const n of o.choices??[])t&&(n.delta?.content&&s.responseTexts.push(n.delta.content),n.delta?.tool_calls&&p(n.delta.tool_calls,s)),n.finish_reason&&s.finishReasons.push(n.finish_reason)}function c(t,l,p,u){if(!t||"object"!=typeof t)return void l.eventTypes.push("unknown:non-object");if(t instanceof Error)return u.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),void(0,o.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in t))return;const c=t;if(n.RESPONSE_EVENT_TYPES.includes(c.type)){if(p&&("response.output_item.done"===c.type&&"item"in c&&l.responsesApiToolCalls.push(c.item),"response.output_text.delta"===c.type&&"delta"in c&&c.delta))l.responseTexts.push(c.delta);else if("response"in c){const{response:o}=c;l.responseId=o.id??l.responseId,l.responseModel=o.model??l.responseModel,o.usage&&(l.promptTokens=o.usage.input_tokens,l.completionTokens=o.usage.output_tokens,l.totalTokens=o.usage.total_tokens),o.status&&l.finishReasons.push(o.status),p&&o.output_text&&l.responseTexts.push(o.output_text)}}else l.eventTypes.push(c.type)}async function*f(o,s,n){const p={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const t of o)(0,l.isChatCompletionChunk)(t)?u(t,p,n):(0,l.isResponsesApiStreamEvent)(t)&&c(t,p,n,s),yield t}finally{const o=[...Object.values(p.chatCompletionToolCalls),...p.responsesApiToolCalls];(0,t.endStreamSpan)(s,{...p,toolCalls:o},n)}}},1695,[1599,1573,1686,1694,1696]);
163__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addResponseAttributes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractRequestParameters",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"isChatCompletionChunk",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isResponsesApiStreamEvent",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(t){return null!==t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.startsWith("response.")}function _(t){return null!==t&&"object"==typeof t&&"object"in t&&"chat.completion.chunk"===t.object}function E(n,_,E){if(!_||"object"!=typeof _)return;const o=_,T={};if("string"==typeof o.id&&(T[t.GEN_AI_RESPONSE_ID_ATTRIBUTE]=o.id),"string"==typeof o.model&&(T[t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=o.model),"conversation"===o.object&&"string"==typeof o.id&&(T[t.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=o.id),o.usage&&"object"==typeof o.usage){const n=o.usage,_=n.prompt_tokens??n.input_tokens;"number"==typeof _&&(T[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=_);const E=n.completion_tokens??n.output_tokens;"number"==typeof E&&(T[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=E),"number"==typeof n.total_tokens&&(T[t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.total_tokens)}if(Array.isArray(o.choices)){const n=o.choices,_=n.map(t=>t.finish_reason).filter(t=>"string"==typeof t);if(_.length>0&&(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(_)),E){const _=n.map(t=>{const n=t.message;return n?.content||""});T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=JSON.stringify(_);const E=n.map(t=>{const n=t.message;return n?.tool_calls}).filter(t=>Array.isArray(t)&&t.length>0).flat();E.length>0&&(T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(E))}}if("string"==typeof o.status&&(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]||(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify([o.status]))),E&&("string"!=typeof o.output_text||T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]||(T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=o.output_text),Array.isArray(o.output)&&o.output.length>0&&!T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE])){const n=o.output.f
163ilter(t=>"function_call"===t?.type);n.length>0&&(T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n))}n.setAttributes(T)}function o(t){return"conversation"in t&&"string"==typeof t.conversation?t.conversation:"previous_response_id"in t&&"string"==typeof t.previous_response_id?t.previous_response_id:void 0}function T(n){const _={[t.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:n.model??"unknown"};"temperature"in n&&(_[t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=n.temperature),"top_p"in n&&(_[t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=n.top_p),"frequency_penalty"in n&&(_[t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=n.frequency_penalty),"presence_penalty"in n&&(_[t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=n.presence_penalty),"stream"in n&&(_[t.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=n.stream),"encoding_format"in n&&(_[t.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=n.encoding_format),"dimensions"in n&&(_[t.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=n.dimensions);const E=o(n);return E&&(_[t.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=E),_}},1696,[1687]);
164__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return U}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),_=r(d[3]),s=r(d[4]),E=r(d[5]),T=r(d[6]),u=r(d[7]),c=r(d[8]);function p(t,o,_){const E={[s.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:_,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(t.length>0&&"object"==typeof t[0]&&null!==t[0]){const n=t[0];n.tools&&Array.isArray(n.tools)&&(E[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n.tools)),E[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=n.model??"unknown","temperature"in n&&(E[s.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=n.temperature),"top_p"in n&&(E[s.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=n.top_p),"stream"in n&&(E[s.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=n.stream),"top_k"in n&&(E[s.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=n.top_k),"frequency_penalty"in n&&(E[s.GEN_AI_REQUEST_FREQUENCY_PENA
164LTY_ATTRIBUTE]=n.frequency_penalty),"max_tokens"in n&&(E[s.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=n.max_tokens)}else E[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===o||"models.get"===o?t[0]:"unknown";return E}function A(t,n,o){const _=(0,c.messagesFromParams)(n);(0,c.setMessagesAttribute)(t,_,o),"prompt"in n&&t.setAttributes({[s.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(n.prompt)})}function R(t,n){if("content"in n&&Array.isArray(n.content)){t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.content.map(t=>t.text).filter(t=>!!t).join("")});const o=[];for(const t of n.content)"tool_use"!==t.type&&"server_tool_use"!==t.type||o.push(t);o.length>0&&t.setAttributes({[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(o)})}"completion"in n&&t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.completion}),"input_tokens"in n&&t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(n.input_tokens)})}function I(t,n){"id"in n&&"model"in n&&(t.setAttributes({[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]:n.id,[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:n.model}),"usage"in n&&n.usage&&(0,E.setTokenUsageAttributes)(t,n.usage.input_tokens,n.usage.output_tokens,n.usage.cache_creation_input_tokens,n.usage.cache_read_input_tokens))}function l(t,n,o){n&&"object"==typeof n&&("type"in n&&"error"===n.type?(0,c.handleResponseError)(t,n):(o&&R(t,n),I(t,n)))}function S(n,_,s){throw(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:s}}}),_.isRecording()&&(_.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),_.end()),n}function N(t,n,o,T,c,p,R,I,l,N,f){const y={name:`${p} ${c[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"}`,op:`gen_ai.${p}`,attributes:c};if(N&&!f){let n;const s=(0,_.startSpanManual)(y,_=>(n=t.apply(o,T),l.recordInputs&&I&&A(_,I,(0,E.shouldEnableTruncation)(l.enableTruncation)),(async()=>{try{const t=await n;return(0,u.instrumentAsyncIterableStream)(t,_,l.recordOutputs??!1)}catch(t){return S(t,_,R)}})()));return(0,E.wrapPromiseWithMethods)(n,s,"auto.ai.anthropic")}return(0,_.startSpanManual)(y,t=>{try{l.recordInputs&&I&&A(t,I,(0,E.shouldEnableTruncation)(l.enableTruncation));const _=n.apply(o,T);return(0,u.instrumentMessageStream)(_,t,l.recordOutputs??!1)}catch(n){return S(n,t,R)}})}function f(n,o,T,u,c){return new Proxy(n,{apply(R,I,S){const f=T.operation||"unknown",y=p(S,o,f),U=y[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",O="object"==typeof S[0]?S[0]:void 0,h=Boolean(O?.stream),b=!0===T.streaming;if(h||b)return N(n,R,u,S,y,f,o,O,c,h,b);let P;const B=(0,_.startSpan)({name:`${f} ${U}`,op:`gen_ai.${f}`,attributes:y},n=>(P=R.apply(u,S),c.recordInputs&&O&&A(n,O,(0,E.shouldEnableTruncation)(c.enableTruncation)),P.then(t=>(l(n,t,c.recordOutputs),t),n=>{throw(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:o}}}),n})));return(0,E.wrapPromiseWithMethods)(P,B,"auto.ai.anthropic")}})}function y(t,n="",o){return new Proxy(t,{get(t,_){const s=t[_],u=(0,E.buildMethodPath)(n,String(_)),c=T.ANTHROPIC_METHOD_REGISTRY[u];return"function"==typeof s&&c?f(s,u,c,t,o):"function"==typeof s?s.bind(t):s&&"object"==typeof s?y(s,u,o):s}})}function U(t,n){return y(t,"",(0,E.resolveAIRecordingOptions)(n))}},1697,[1599,1572,1573,1592,1687,1686,1698,1699,1700]);
165__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ANTHROPIC_METHOD_REGISTRY",{enumerable:!0,get:function(){return o}});const t="Anthropic_AI",o={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}}},1698,[]);
166__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentAsyncIterableStream",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"instrumentMessageStream",{enumerable:!0,get:function(){return y}});
166var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function c(o,c){return"type"in o&&"string"==typeof o.type&&"error"===o.type&&(c.setStatus({code:n.SPAN_STATUS_ERROR,message:(0,s.mapAnthropicErrorToStatusMessage)(o.error?.type)}),(0,t.captureException)(o.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}function p(t,n){if("message_delta"===t.type&&t.usage&&"output_tokens"in t.usage&&"number"==typeof t.usage.output_tokens&&(n.completionTokens=t.usage.output_tokens),t.message){const o=t.message;o.id&&(n.responseId=o.id),o.model&&(n.responseModel=o.model),o.stop_reason&&n.finishReasons.push(o.stop_reason),o.usage&&("number"==typeof o.usage.input_tokens&&(n.promptTokens=o.usage.input_tokens),"number"==typeof o.usage.cache_creation_input_tokens&&(n.cacheCreationInputTokens=o.usage.cache_creation_input_tokens),"number"==typeof o.usage.cache_read_input_tokens&&(n.cacheReadInputTokens=o.usage.cache_read_input_tokens))}}function u(t,n){"content_block_start"===t.type&&"number"==typeof t.index&&t.content_block&&("tool_use"!==t.content_block.type&&"server_tool_use"!==t.content_block.type||(n.activeToolBlocks[t.index]={id:t.content_block.id,name:t.content_block.name,inputJsonParts:[]}))}function l(t,n,o){if("content_block_delta"===t.type&&t.delta){if("number"==typeof t.index&&"partial_json"in t.delta&&"string"==typeof t.delta.partial_json){const o=n.activeToolBlocks[t.index];o&&o.inputJsonParts.push(t.delta.partial_json)}o&&"string"==typeof t.delta.text&&n.responseTexts.push(t.delta.text)}}function _(t,n){if("content_block_stop"!==t.type||"number"!=typeof t.index)return;const o=n.activeToolBlocks[t.index];if(!o)return;const s=o.inputJsonParts.join("");let c;try{c=s?JSON.parse(s):{}}catch{c={__unparsed:s}}n.toolCalls.push({type:"tool_use",id:o.id,name:o.name,input:c}),delete n.activeToolBlocks[t.index]}function f(t,n,o,s){if(!t||"object"!=typeof t)return;c(t,s)||(p(t,n),u(t,n),l(t,n,o),_(t,n))}async function*k(t,n,s){const c={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of t)f(o,c,s,n),yield o}finally{(0,o.endStreamSpan)(n,c,s)}}function y(s,c,p){const u={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return s.on("streamEvent",t=>{f(t,u,p,c)}),s.on("message",()=>{(0,o.endStreamSpan)(c,u,p)}),s.on("error",o=>{(0,t.captureException)(o,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),c.isRecording()&&(c.setStatus({code:n.SPAN_STATUS_ERROR,message:"internal_error"}),c.end())}),s}},1699,[1599,1573,1686,1700]);
167__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handleResponseError",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"mapAnthropicErrorToStatusMessage",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"messagesFromParams",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"setMessagesAttribute",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function u(t,n,u){if(Array.isArray(n)&&0===n.length)return;const{systemInstructions:_,filteredMessages:c}=(0,s.extractSystemInstructions)(n);_&&t.setAttributes({[o.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]:_});const l=Array.isArray(c)?c.length:1;t.setAttributes({[o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:u?(0,s.getTruncatedJsonString)(c):(0,s.getJsonString)(c),[o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const _={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function c(t){return t&&_[t]||"internal_error"}function l(o,s){s.error&&(o.setStatus({code:n.SPAN_STATUS_ERROR,message:c(s.error.type)}),(0,t.captureException)(s.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function A(t){const{system:n,messages:o,input:s}=t,u="string"==typeof n?[{role:"system",content:t.system}]:[],_=Array.isArray(s)?s:null!=s?[s]:void 0,c=Array.isArray(o)?o:null!=o?[o]:[];return[...u,..._??c]}},1700,[1599,1573,1687,1686]);
168__d(function(g,r,i,a,m,e,d){"use strict";
168Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractModel",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),T=r(d[4]),u=r(d[5]),E=r(d[6]),_=r(d[7]),c=r(d[8]),A=r(d[9]);function p(t,n){if("model"in t&&"string"==typeof t.model)return t.model;if(n&&"object"==typeof n){const t=n;if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function f(t){const n={};return"temperature"in t&&"number"==typeof t.temperature&&(n[u.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"topP"in t&&"number"==typeof t.topP&&(n[u.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.topP),"topK"in t&&"number"==typeof t.topK&&(n[u.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.topK),"maxOutputTokens"in t&&"number"==typeof t.maxOutputTokens&&(n[u.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.maxOutputTokens),"frequencyPenalty"in t&&"number"==typeof t.frequencyPenalty&&(n[u.GEN_AI_REQUEST_FREQUENCY_PENA
168LTY_ATTRIBUTE]=t.frequencyPenalty),"presencePenalty"in t&&"number"==typeof t.presencePenalty&&(n[u.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=t.presencePenalty),n}function l(t,o,s){const T={[u.GEN_AI_SYSTEM_ATTRIBUTE]:_.GOOGLE_GENAI_SYSTEM_NAME,[u.GEN_AI_OPERATION_NAME_ATTRIBUTE]:t,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(o){if(T[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p(o,s),"config"in o&&"object"==typeof o.config&&o.config){const t=o.config;if(Object.assign(T,f(t)),"tools"in t&&Array.isArray(t.tools)){const n=t.tools.flatMap(t=>t.functionDeclarations);T[u.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n)}}}else T[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p({},s);return T}function I(t,n,o,s){if(o){const o=n.contents;return void(null!=o&&t.setAttribute(u.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o)))}const T=[];if("config"in n&&n.config&&"object"==typeof n.config&&"systemInstruction"in n.config&&n.config.systemInstruction&&T.push(...(0,A.contentUnionToMessages)(n.config.systemInstruction,"system")),"history"in n&&T.push(...(0,A.contentUnionToMessages)(n.history,"user")),"contents"in n&&T.push(...(0,A.contentUnionToMessages)(n.contents,"user")),"message"in n&&T.push(...(0,A.contentUnionToMessages)(n.message,"user")),Array.isArray(T)&&T.length){const{systemInstructions:n,filteredMessages:o}=(0,E.extractSystemInstructions)(T);n&&t.setAttribute(u.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,n);const _=Array.isArray(o)?o.length:0;t.setAttributes({[u.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:_,[u.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:s?(0,E.getTruncatedJsonString)(o):(0,E.getJsonString)(o)})}}function y(t,n,o){if(n&&"object"==typeof n){if(n.modelVersion&&t.setAttribute(u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n.modelVersion),n.usageMetadata&&"object"==typeof n.usageMetadata){const o=n.usageMetadata;"number"==typeof o.promptTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:o.promptTokenCount}),"number"==typeof o.candidatesTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:o.candidatesTokenCount}),"number"==typeof o.totalTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:o.totalTokenCount})}if(o&&Array.isArray(n.candidates)&&n.candidates.length>0){const o=n.candidates.map(t=>t.content?.parts&&Array.isArray(t.content.parts)?t.content.parts.map(t=>"string"==typeof t.text?t.text:"").filter(t=>t.length>0).join(""):"").filter(t=>t.length>0);o.length>0&&t.setAttributes({[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:o.join("")})}if(o&&n.functionCalls){const o=n.functionCalls;Array.isArray(o)&&o.length>0&&t.setAttributes({[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(o)})}}}function S(n,_,A,p,f){const S="embeddings"===A.operation;return new Proxy(n,{apply(n,N,R){const U=A.operation||"unknown",O=R[0],b=l(U,O,p),G=b[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown";return A.streaming?(0,s.startSpanManual)({name:`${U} ${G}`,op:`gen_ai.${U}`,attributes:b},async s=>{try{f.recordInputs&&O&&I(s,O,S,(0,E.shouldEnableTruncation)(f.enableTruncation));const t=await n.apply(p,R);return(0,c.instrumentStream)(t,s,Boolean(f.recordOutputs))}catch(n){throw s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:_}}}),s.end(),n}}):(0,s.startSpan)({name:`${U} ${G}`,op:`gen_ai.${U}`,attributes:b},o=>(f.recordInputs&&O&&I(o,O,S,(0,E.shouldEnableTruncation)(f.enableTruncation)),(0,T.handleCallbackErrors)(()=>n.apply(p,R),n=>{(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:_}}})},()=>{},t=>{S||y(o,t,f.recordOutputs)})))}})}function N(t,n="",o){return new Proxy(t,{get:(t,s,T)=>{const u=Reflect.get(t,s,T),c=(0,E.buildMethodPath)(n,String(s)),A=_.GOOGLE_GENAI_METHOD_REGISTRY[c];if("function"==typeof u&&A){const n=A.operation?S(u,c,A,t,o):u.bind(t);return A.proxyResultPath?function(...t){const s=n(...t);return s&&"object"==typeof s?N(s,A.proxyResultPath,o):s}:n}return"function"==typeof u?u.bind(t):u&&"object"==typeof u?N(u,c,o):u}})}function R(t,n){return N(t,"",(0,E.resolveAIRecordingOptions)(n))}},1701,[1599,1572,1573,1592,1593,1687,1686,1702,1703,1704]);
169__d(function(g,r,i,a,m,e,d){"use strict";
169Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GOOGLE_GENAI_METHOD_REGISTRY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GOOGLE_GENAI_SYSTEM_NAME",{enumerable:!0,get:function(){return o}});const t="Google_GenAI",n={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},o="google_genai"},1702,[]);
170__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentStream",{enumerable:!0,get:function(){return f}});var n=r(d[0]),o=r(d[1]),t=r(d[2]);function s(t,s){const l=t?.promptFeedback;if(l?.blockReason){const t=l.blockReasonMessage??l.blockReason;return s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(`Content blocked: ${t}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function l(n,o){"string"==typeof n.responseId&&(o.responseId=n.responseId),"string"==typeof n.modelVersion&&(o.responseModel=n.modelVersion);const t=n.usageMetadata;t&&("number"==typeof t.promptTokenCount&&(o.promptTokens=t.promptTokenCount),"number"==typeof t.candidatesTokenCount&&(o.completionTokens=t.candidatesTokenCount),"number"==typeof t.totalTokenCount&&(o.totalTokens=t.totalTokenCount))}function u(n,o,t){Array.isArray(n.functionCalls)&&o.toolCalls.push(...n.functionCalls);for(const s of n.candidates??[]){s?.finishReason&&!o.finishReasons.includes(s.finishReason)&&o.finishReasons.push(s.finishReason);for(const n of s?.content?.parts??[])t&&n.text&&o.responseTexts.push(n.text),n.functionCall&&o.toolCalls.push({type:"function",id:n.functionCall.id,name:n.functionCall.name,arguments:n.functionCall.args})}}function c(n,o,t,c){n&&!s(n,c)&&(l(n,o),u(n,o,t))}async function*f(n,o,s){const l={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const t of n)c(t,l,s,o),yield t}finally{(0,t.endStreamSpan)(o,l,s)}}},1703,[1599,1573,1686]);
171__d(function(g,r,i,a,m,e,d){"use strict";function t(n,o="user"){return"string"==typeof n?[{role:o,content:n}]:Array.isArray(n)?n.flatMap(n=>t(n,o)):"object"==typeof n&&n?"role"in n&&"string"==typeof n.role?[n]:"parts"in n?[{...n,role:o}]:[{role:o,content:n}]:[]}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"contentUnionToMessages",{enumerable:!0,get:function(){return t}})},1704,[]);
172__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return E}});var t=r(d[0]),n=r(d[1]),_=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]),l=r(d[6]),T=r(d[7]);function E(E={}){const{recordInputs:A,recordOutputs:I}=(0,s.resolveAIRecordingOptions)(E),N=(0,s.shouldEnableTruncation)(E.enableTruncation),R=new Map,u=t=>{const n=R.get(t);n?.isRecording()&&(n.end(),R.delete(t))},h={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(t,_,s,l,E,I,u,h){const S=(0,T.getInvocationParams)(I),O=(0,T.extractLLMRequestAttributes)(t,_,A,N,S,u),p=O[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE],M=O[c.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${M} ${p}`,op:"gen_ai.chat",attributes:{...(0,T.getAgentNameFromMetadata)(u),...O,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},t=>(R.set(s,t),t))},handleChatModelStart(t,_,s,l,E,I,u,h){const S=(0,T.getInvocationParams)(I),O=(0,T.extractChatModelRequestAttributes)(t,_,A,N,S,u),p=(0,T.extractToolDefinitions)(E);p&&(O[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=p);const M=O[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE],L=O[c.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${L} ${M}
172`,op:"gen_ai.chat",attributes:{...(0,T.getAgentNameFromMetadata)(u),...O,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},t=>(R.set(s,t),t))},handleLLMEnd(t,n,_,o,c){const s=R.get(n);if(s?.isRecording()){const _=(0,T.extractLlmResponseAttributes)(t,I);_&&s.setAttributes(_),u(n)}},handleLLMError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.llm_error_handler`}})},handleChainStart(t,_,c,s,l,T,E,I){if(T?.__sentry_langgraph__)return;const N=I||t.name||"unknown_chain",u={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":N};A&&(u["langchain.chain.inputs"]=JSON.stringify(_)),(0,o.startSpanManual)({name:`chain ${N}`,op:"gen_ai.invoke_agent",attributes:{...u,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},t=>(R.set(c,t),t))},handleChainEnd(t,n){const _=R.get(n);_?.isRecording()&&(I&&_.setAttributes({"langchain.chain.outputs":JSON.stringify(t)}),u(n))},handleChainError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.chain_error_handler`}})},handleToolStart(t,_,s,E,I,N,u){if(N?.__sentry_langgraph__)return;const h=u||t.name||"unknown_tool",S={...(0,T.getAgentNameFromMetadata)(N),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[c.GEN_AI_TOOL_NAME_ATTRIBUTE]:h};A&&(S[c.GEN_AI_TOOL_INPUT_ATTRIBUTE]=_),(0,o.startSpanManual)({name:`execute_tool ${h}`,op:"gen_ai.execute_tool",attributes:{...S,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},t=>(R.set(s,t),t))},handleToolEnd(t,n){const _=R.get(n);if(_?.isRecording()){if(I){const n=t&&"object"==typeof t&&"content"in t?t.content:t;_.setAttributes({[c.GEN_AI_TOOL_OUTPUT_ATTRIBUTE]:"string"==typeof n?n:JSON.stringify(n)})}u(n)}},handleToolError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.tool_error_handler`}})},copy:()=>h,toJSON:()=>({lc:1,type:"not_implemented",id:h.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:h.lc_id})};return h}},1705,[1599,1572,1573,1592,1687,1686,1706,1707]);
173__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"LANGCHAIN_ORIGIN",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ROLE_MAP",{enumerable:!0,get:function(){return s}});const t="LangChain",n="auto.ai.langchain",s={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},1706,[]);
174__d(function(_g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"extractChatModelRequestAttributes",{enumerable:!0,get:function(){return g}}),Object.defineProperty(e,"extractLLMRequestAttributes",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"extractLlmResponseAttributes",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extractToolDefinitions",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getAgentNameFromMetadata",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"getInvocationParams",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"normalizeLangChainMessages",{enumerable:!0,get:function(){return l}});var n=_r(d[0]),t=_r(d[1]),r=_r(d[2]),o=_r(d[3]),_=_r(d[4]);const s=(n,t,r)=>{null!=r&&(n[t]=r)},c=(n,t,r)=>{const o=Number(r);Number.isNaN(o)||(n[t]=o)};function T(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return String(n)}}function u(n){if(Array.isArray(n))try{const t=n.map(n=>n&&"object"==typeof n&&(0,r.isContentMedia)(n)?(0,r.stripInlineMediaFromSingleMessage)(n):n);return JSON.stringify(t)}catch{return String(n)}return T(n)}function E(n){const t=n.toLowerCase();return _.ROLE_MAP[t]??t}function A(n){return n.includes("System")?"system":n.includes("Human")?"user":n.includes("AI")||n.includes("Assistant")?"assistant":n.includes("Function")?"function":n.includes("Tool")?"tool":"user"}function f(n){if(n&&!Array.isArray(n))return n.invocation_params}function l(n){return n.map(n=>{const t=n._getType;if("function"==typeof t){return{role:E(t.call(n)),content:u(n.content)}}if(1===n.lc&&n.kwargs){const t=n.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:E("string"==typeof r?A(r):"user"),content:u(n.kwargs?.content)}}if(n.type){return{role:E(String(n.type).toLowerCase()),content:u(n.content)}}if(n.role)return{role:E(String(n.role)),content:u(n.content)};const r=n.constructor?.name;return r&&"Object"!==r?{role:E(A(r)),content:u(n.content)}:{role:"user",content:u(n.content)}})}function N(n,r,o){const _={},T="kwargs"in n?n.kwargs:void 0,u=r?.temperature??o?.ls_temperature??T?.temperature;c(_,t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,u);const E=r?.max_tokens??o?.ls_max_tokens??T?.max_tokens;c(_,t.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,E);const A=r?.top_p??T?.top_p;c(_,t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,A);const f=r?.frequency_penalty;
174c(_,t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE,f);const l=r?.presence_penalty;return c(_,t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,l),r&&"stream"in r&&s(_,t.GEN_AI_REQUEST_STREAM_ATTRIBUTE,Boolean(r.stream)),_}function I(r,o,s,c,u){return{[t.GEN_AI_SYSTEM_ATTRIBUTE]:T(r??"langchain"),[t.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"chat",[t.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:T(o),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:_.LANGCHAIN_ORIGIN,...N(s,c,u)}}function S(n,r,_,c,T,u){const E=u?.ls_provider,A=I(E,T?.model??u?.ls_model_name??"unknown",n,T,u);if(_&&Array.isArray(r)&&r.length>0){s(A,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,r.length);const n=r.map(n=>({role:"user",content:n}));s(A,t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,c?(0,o.getTruncatedJsonString)(n):(0,o.getJsonString)(n))}return A}function g(n,r,_,c,T,u){const E=I(u?.ls_provider??n.id?.[2],T?.model??u?.ls_model_name??"unknown",n,T,u);if(_&&Array.isArray(r)&&r.length>0){const n=l(r.flat()),{systemInstructions:_,filteredMessages:T}=(0,o.extractSystemInstructions)(n);_&&s(E,t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,_);const u=Array.isArray(T)?T.length:0;s(E,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,u),s(E,t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,c?(0,o.getTruncatedJsonString)(T):(0,o.getJsonString)(T))}return E}function p(n,r){const o=[],_=n.flat();for(const n of _){const t=n.message,r=t?.tool_calls;if(Array.isArray(r)&&r.length>0)o.push(...r);else{const t=n.message?.content;if(Array.isArray(t))for(const n of t){const t=n;"tool_use"===t.type&&o.push(t)}}}o.length>0&&s(r,t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,T(o))}function R(n,r){if(!n)return;const o=n.tokenUsage,_=n.usage;if(o)c(r,t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,o.promptTokens),c(r,t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,o.completionTokens),c(r,t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,o.totalTokens);else if(_){c(r,t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,_.input_tokens),c(r,t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,_.output_tokens);const n=Number(_.input_tokens),o=Number(_.output_tokens),s=(Number.isNaN(n)?0:n)+(Number.isNaN(o)?0:o);s>0&&c(r,t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,s),void 0!==_.cache_creation_input_tokens&&c(r,t.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,_.cache_creation_input_tokens),void 0!==_.cache_read_input_tokens&&c(r,t.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,_.cache_read_input_tokens)}}function y(n,r){if(!n)return;const o={};if(Array.isArray(n.generations)){const _=n.generations.flat().map(n=>n.generationInfo?.finish_reason?n.generationInfo.finish_reason:n.generation_info?.finish_reason?n.generation_info.finish_reason:null).filter(n=>"string"==typeof n);if(_.length>0&&s(o,t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,T(_)),p(n.generations,o),r){const r=n.generations.flat().map(n=>n.text??n.message?.content).filter(n=>"string"==typeof n);r.length>0&&s(o,t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,T(r))}}R(n.llmOutput,o);const _=n.llmOutput,c=n.generations?.[0]?.[0],u=c?.message,E=_?.model_name??_?.model??u?.response_metadata?.model_name;E&&s(o,t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,E);const A=_?.id??u?.id;A&&s(o,t.GEN_AI_RESPONSE_ID_ATTRIBUTE,A);const f=_?.stop_reason??u?.response_metadata?.finish_reason;return f&&s(o,t.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,T(f)),o}function U(n){const r={},o=n?.lc_agent_name;return"string"==typeof o&&(r[t.GEN_AI_AGENT_NAME_ATTRIBUTE]=o),r}function O(n){const t=n?.invocation_params?.tools??n?.options?.tools;if(!Array.isArray(t)||0===t.length)return;const r=t.map(n=>{const t=n.function;return{type:"function",name:n.name??t?.name??"",description:n.description??t?.description}});return JSON.stringify(r)}function G(n){if(!n||"object"!=typeof n)return!1;const t=n;return"function"==typeof t.addHandler&&"function"==typeof t.copy}function P(n){return"object"==typeof n&&"SentryCallbackHandler"===n?.name}function b(n){return n.some(P)}function B(n,t){if(!n)return[t];
174if(G(n)){if(b(n.handlers??[]))return n;const r=n.copy();return r.addHandler(t,!0),r}const r=Array.isArray(n)?n:[n];return b(r)?n:[...r,t]}},1707,[1572,1687,1689,1686,1706]);
175__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"instrumentLangGraph",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return I}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),_=r(d[3]),s=r(d[4]),c=r(d[5]),T=r(d[6]),A=r(d[7]),l=r(d[8]),E=r(d[9]);let u=!1;const p="__sentry_patched__";function I(c,A){if(Object.prototype.hasOwnProperty.call(c,p))return c;const E=(0,T.createLangChainCallbackHandler)(A),I=new Proxy(c,{apply:(c,T,p)=>u?Reflect.apply(c,T,p):(0,_.startSpan)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"create_agent"}},n=>{try{const t=Reflect.apply(c,T,p),o=p.length>0?p[0]:{};o?.name&&"string"==typeof o.name&&(n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,o.name),n.updateName(`create_agent ${o.name}`));const _=t.invoke;return _&&"function"==typeof _&&(t.invoke=N(_.bind(t),t,o,A,void 0,E)),t}catch(_){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(_,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),_}}
175)});return Object.defineProperty(I,p,{value:!0,enumerable:!1}),I}function N(T,u,p,I,N,R){return new Proxy(T,{apply(T,y,S){const O=N?.modelName??N?.model;return(0,_.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"invoke_agent"}},async n=>{try{const t=p?.name;t&&"string"==typeof t&&(n.setAttribute(s.GEN_AI_PIPELINE_NAME_ATTRIBUTE,t),n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,t),n.updateName(`invoke_agent ${t}`)),O&&n.setAttribute(s.GEN_AI_REQUEST_MODEL_ATTRIBUTE,O);const o=S.length>1?S[1]:void 0,_=o?.configurable,l=_?.thread_id;if(l&&"string"==typeof l&&n.setAttribute(s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,l),R){const n=S[1]??{};S[1]=n;const o=n.metadata??{};n.metadata={...o,__sentry_langgraph__:!0,..."string"==typeof t?{lc_agent_name:t}:{}},n.callbacks=(0,A._INTERNAL_mergeLangChainCallbackHandler)(n.callbacks,R)}const N=(0,E.extractToolsFromCompiledGraph)(u);N&&n.setAttribute(s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE,JSON.stringify(N));const f=I.recordInputs,b=I.recordOutputs,G=S.length>0?S[0]?.messages??[]:[];if(G&&f){const t=(0,A.normalizeLangChainMessages)(G),{systemInstructions:o,filteredMessages:_}=(0,c.extractSystemInstructions)(t);o&&n.setAttribute(s.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,o);const T=(0,c.shouldEnableTruncation)(I.enableTruncation),l=Array.isArray(_)?_.length:0;n.setAttributes({[s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:T?(0,c.getTruncatedJsonString)(_):(0,c.getJsonString)(_),[s.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const h=await Reflect.apply(T,y,S);return b&&(0,E.setResponseAttributes)(n,G??null,h),h}catch(_){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(_,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),_}}
175)}})}function R(t,n){if(Object.prototype.hasOwnProperty.call(t,p))return t;const o=(0,c.resolveAIRecordingOptions)(n),_=(0,T.createLangChainCallbackHandler)(o),s=new Proxy(t,{apply(t,n,s){const c=(0,E.extractLLMFromParams)(s),T=(0,E.extractAgentNameFromParams)(s),A=s[0];let l;A&&Array.isArray(A.tools)&&A.tools.length>0&&(0,E.wrapToolsWithSpans)(A.tools,o,T??void 0),u=!0;try{l=Reflect.apply(t,n,s)}finally{u=!1}const p=l.invoke;if(p&&"function"==typeof p){const t={};T&&(t.name=T),l.invoke=N(p.bind(l),l,t,o,c,_)}return l}});return Object.defineProperty(s,p,{value:!0,enumerable:!1}),s}function y(t,n){return t.compile=I(t.compile,(0,c.resolveAIRecordingOptions)(n)),t}},1708,[1599,1572,1573,1592,1687,1686,1705,1707,1709,1710]);
176__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"LANGGRAPH_ORIGIN",{enumerable:!0,get:function(){return n}});const t="LangGraph",n="auto.ai.langgraph"},1709,[]);
177__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractAgentNameFromParams",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"extractLLMFromParams",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"extractModelMetadata",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"extractTokenUsageFromMessage",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractToolCalls",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"extractToolsFromCompiledGraph",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"setResponseAttributes",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"wrapToolsWithSpans",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),_=r(d[4]),c=r(d[5]),T=r(d[6]);function u(t){const n=t[0];if("object"!=typeof n||!n||!("llm"in n)||!n.llm||"object"!=typeof n.llm)return null;const o=n.llm;return"string"!=typeof o.modelName&&"string"!=typeof o.model?null:o}function l(t){const n=t[0];return"object"==typeof n&&n&&"name"in n&&"string"==typeof n.name?n.name:null}function p(c,u,l){const p="__sentry_tool_wrapped__";for(const f of c){if(!f||"object"!=typeof f)continue;const c=f,E=c.invoke;if("function"!=typeof E||Object.prototype.hasOwnProperty.call(c,p))continue;const A="string"==typeof c.name?c.name:"unknown_tool",y="string"==typeof c.description?c.description:void 0,O=new Proxy(E,{apply(c,p,f){const E={[
177n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:T.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:_.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,[_.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[_.GEN_AI_TOOL_NAME_ATTRIBUTE]:A,[_.GEN_AI_TOOL_TYPE_ATTRIBUTE]:"function"},O=f[1],I=O?.metadata?.lc_agent_name??l;"string"==typeof I&&(E[_.GEN_AI_AGENT_NAME_ATTRIBUTE]=I),y&&(E[_.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=y);const b=f[0];if("object"==typeof b&&b&&("id"in b&&"string"==typeof b.id&&(E[_.GEN_AI_TOOL_CALL_ID_ATTRIBUTE]=b.id),u.recordInputs)){const t="args"in b&&"object"==typeof b.args?b.args:b;try{E[_.GEN_AI_TOOL_INPUT_ATTRIBUTE]=JSON.stringify(t)}catch{}}return(0,s.startSpan)({op:_.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,name:`execute_tool ${A}`,attributes:E},async n=>{try{const t=await Reflect.apply(c,p,f);if(u.recordOutputs)try{const o=t&&"object"==typeof t&&"content"in t?t.content:t;n.setAttribute(_.GEN_AI_TOOL_OUTPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o))}catch{}return t}catch(s){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(s,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),s}})}});c.invoke=O,Object.defineProperty(c,p,{value:!0,enumerable:!1})}return c}function f(t){if(!t||0===t.length)return null;const n=[];for(const o of t)if(o&&"object"==typeof o){const t=o.tool_calls;t&&Array.isArray(t)&&n.push(...t)}return n.length>0?n:null}function E(t){const n=t;let o=0,s=0,_=0;if(n.usage_metadata&&"object"==typeof n.usage_metadata){const t=n.usage_metadata;return"number"==typeof t.input_tokens&&(o=t.input_tokens),"number"==typeof t.output_tokens&&(s=t.output_tokens),"number"==typeof t.total_tokens&&(_=t.total_tokens),{inputTokens:o,outputTokens:s,totalTokens:_}}if(n.response_metadata&&"object"==typeof n.response_metadata){const t=n.response_metadata;if(t.tokenUsage&&"object"==typeof t.tokenUsage){const n=t.tokenUsage;"number"==typeof n.promptTokens&&(o=n.promptTokens),"number"==typeof n.completionTokens&&(s=n.completionTokens),"number"==typeof n.totalTokens&&(_=n.totalTokens)}}return{inputTokens:o,outputTokens:s,totalTokens:_}}function A(t,n){const o=n;if(o.response_metadata&&"object"==typeof o.response_metadata){const n=o.response_metadata;n.model_name&&"string"==typeof n.model_name&&t.setAttribute(_.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&t.setAttribute(_.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,[n.finish_reason])}}function y(t){if(!t.builder?.nodes?.tools?.runnable?.tools)return null;const n=t.builder?.nodes?.tools?.runnable?.tools;return n&&Array.isArray(n)&&0!==n.length?n.map(t=>({name:t.lc_kwargs?.name,description:t.lc_kwargs?.description,schema:t.lc_kwargs?.schema})):null}function O(t,n,o){const s=o,T=s?.messages;if(!T||!Array.isArray(T))return;const u=n?.length??0,l=T.length>u?T.slice(u):[];if(0===l.length)return;const p=f(l);p&&t.setAttribute(_.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,JSON.stringify(p));const y=(0,c.normalizeLangChainMessages)(l);t.setAttribute(_.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,JSON.stringify(y));let O=0,I=0,b=0;for(const n of l){const o=E(n);O+=o.inputTokens,I+=o.outputTokens,b+=o.totalTokens,A(t,n)}O>0&&t.setAttribute(_.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,O),I>0&&t.setAttribute(_.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,I),b>0&&t.setAttribute(_.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,b)}},1710,[1599,1572,1573,1592,1687,1707,1709]);
178__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SpanBuffer",{enumerable:!0,get:function(){return u}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),c=r(d[3]),h=r(d[4]),o=r(d[5]);class u{constructor(t,s){this._traceBuckets=new Map,this._client=t;const{maxSpanLimit:n,flushInterval:c,maxTraceWeightInBytes:h}=s??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=c&&c>0?c:5e3,this._maxTraceWeight=h&&h>0?h:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(t=>{clearTimeout(t.timeout)}),this._traceBuckets.clear()})}add(t){const s=t.trace_id;let c=this._traceBuckets.get(s);c||(c={spans:new Set,size:0,timeout:(0,n.safeUnref)(setTimeout(()=>{this.flush(s)},this._flushInterval))},this._traceBuckets.set(s,c)),c.spans.add(t),c.size+=(0,o.estimateSerializedSpanSizeInBytes)(t),(c.spans.size>=this._maxSpanLimit||c.size>=this._maxTraceWeight)&&this.flush(s)}drain(){this._traceBuckets.size&&(t.DEBUG_BUILD&&s.debug.log(`Flushing span tree map with ${this._traceBuckets.size}
178 traces`),this._traceBuckets.forEach((t,s)=>{this.flush(s)}))}flush(n){const o=this._traceBuckets.get(n);if(!o)return;if(!o.spans.size)return void this._removeTrace(n);const u=Array.from(o.spans),l=u[0]?._segmentSpan;if(!l)return t.DEBUG_BUILD&&s.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(n);const _=(0,c.getDynamicSamplingContextFromSpan)(l),p=u.map(t=>{const{_segmentSpan:s,...n}=t;return n}),f=(0,h.createStreamedSpanEnvelope)(p,_,this._client);t.DEBUG_BUILD&&s.debug.log(`Sending span envelope for trace ${n} with ${p.length} spans`),this._client.sendEnvelope(f).then(null,n=>{t.DEBUG_BUILD&&s.debug.error("Error while sending streamed span envelope:",n)}),this._removeTrace(n)}_removeTrace(t){const s=this._traceBuckets.get(t);s&&clearTimeout(s.timeout),this._traceBuckets.delete(t)}}},1711,[1542,1546,1605,1585,1712,1713]);
179__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createStreamedSpanEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function c(c,p,_){const l=_.getOptions(),f=_.getDsn(),v=l.tunnel,y=(0,n.getSdkMetadataForEnvelopeHeader)(l._metadata),S={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...u(p)&&{trace:p},...y&&{sdk:y},...!!v&&f&&{dsn:(0,t.dsnToString)(f)}},O=_.getDataCollectionOptions().userInfo?"auto":"never",b=[{type:"span",item_count:c.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:O,infer_user_agent:O}},items:c}];return(0,n.createEnvelope)(S,[b])}function u(t){return!!t.trace_id&&!!t.public_key}},1712,[1577,1588,1614,1560]);
180__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"estimateSerializedSpanSizeInBytes",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){let s=156;if(s+=2*n.name.length,s+=(0,t.estimateTypedAttributesSizeInBytes)(n.attributes),n.links&&n.links.length>0){const u=n.links[0],l=u?.attributes;s+=(100+(l?(0,t.estimateTypedAttributesSizeInBytes)(l):0))*n.links.length}return s}},1713,[1570]);
181__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanStreamingIntegration",{enumerable:!0,get:function(){return l}});var n=r(d[0]),t=r(d[1]),c=r(d[2]),o=r(d[3]),s=r(d[4]),S=r(d[5]),p=r(d[6]),f=r(d[7]);const l=(0,t.defineIntegration)(()=>({name:"SpanStreaming",setup(t){const l="SpanStreaming integration requires",u="Falling back to static trace lifecycle.",b=t.getOptions();if(!(0,s.hasSpanStreamingEnabled)(t))return b.traceLifecycle="static",void(n.DEBUG_BUILD&&p.debug.warn(`${l} \`traceLifecycle\` to be set to "stream"! ${u}`));const y=b.beforeSendSpan;if(y&&!(0,c.isStreamedBeforeSendSpanCallback)(y))return b.traceLifecycle="static",void(n.DEBUG_BUILD&&p.debug.warn(`${l} a beforeSendSpan callback using \`withStreamedSpan\`! ${u}`));const B=new S.SpanBuffer(t);t.on("afterSpanEnd",n=>{(0,f.spanIsSampled)(n)&&B.add((0,o.captureSpan)(n,t))})}}))},1714,[1542,1608,1587,1596,1591,1711,1546,1551]);
182__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return t}})},1715,[]);
183__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentryError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}},1716,[]);
184__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"parseFetchArgs",{enumerable:!0,get:function(){return E}});
184var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]);function h(t,n){const o="fetch",s=(0,l.addHandler)(o,t);return(0,l.maybeInstrument)(o,()=>p(void 0,n)),s}function f(t){const n="fetch-body-resolved",o=(0,l.addHandler)(n,t);return(0,l.maybeInstrument)(n,()=>p(b)),o}function p(h,f=!1){f&&!(0,s.supportsNativeFetch)()||(0,o.fill)(u.GLOBAL_OBJ,"fetch",function(s){return function(...f){const p=new Error,{method:y,url:b}=E(f),T={args:f,fetchData:{method:y,url:b},startTimestamp:1e3*(0,c.timestampInSeconds)(),virtualError:p,headers:w(f)};return h||(0,l.triggerHandlers)("fetch",{...T}),s.apply(u.GLOBAL_OBJ,f).then(async t=>(h?h(t):(0,l.triggerHandlers)("fetch",{...T,endTimestamp:1e3*(0,c.timestampInSeconds)(),response:t}),t),s=>{(0,l.triggerHandlers)("fetch",{...T,endTimestamp:1e3*(0,c.timestampInSeconds)(),error:s}),(0,n.isError)(s)&&void 0===s.stack&&(s.stack=p.stack,(0,o.addNonEnumerableProperty)(s,"framesToPop",1));const u=(0,t.getClient)(),h=u?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==h&&s instanceof TypeError&&("Failed to fetch"===s.message||"Load failed"===s.message||"NetworkError when attempting to fetch resource."===s.message))try{const t=new URL(T.fetchData.url).host;"always"===h?s.message=`${s.message} (${t})`:(0,o.addNonEnumerableProperty)(s,"__sentry_fetch_url_host__",t)}catch{}throw s})}})}async function y(t,n){if(t?.body){const o=t.body,s=o.getReader(),c=setTimeout(()=>{o.cancel().then(null,()=>{})},9e4);let u=!0;for(;u;){let t;try{t=setTimeout(()=>{o.cancel().then(null,()=>{})},5e3);const{done:c}=await s.read();clearTimeout(t),c&&(n(),u=!1)}catch{u=!1}finally{clearTimeout(t)}}clearTimeout(c),s.releaseLock(),o.cancel().then(null,()=>{})}}function b(t){let n;try{n=t.clone()}catch{return}y(n,()=>{(0,l.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,c.timestampInSeconds)(),response:t})})}function T(t,n){return!!t&&"object"==typeof t&&!!t[n]}function _(t){return"string"==typeof t?t:t?T(t,"url")?t.url:t.toString?t.toString():"":""}function E(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[o,s]=t;return{url:_(o),method:T(s,"method")?String(s.method).toUpperCase():(0,n.isRequest)(o)&&T(o,"method")?String(o.method).toUpperCase():"GET"}}const o=t[0];return{url:_(o),method:T(o,"method")?String(o.method).toUpperCase():"GET"}}function w(t){const[o,s]=t;try{if("object"==typeof s&&null!==s&&"headers"in s&&s.headers)return new Headers(s.headers);if((0,n.isRequest)(o))return new Headers(o.headers)}catch{}}},1717,[1571,1559,1558,1718,1564,1544,1545]);
185__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNativeFunction",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"supportsDOMError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"supportsDOMException",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"supportsErrorEvent",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"supportsFetch",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"supportsHistory",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"supportsNativeFetch",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"supportsReportingObserver",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]);const u=r(d[2]).GLOBAL_OBJ;function o(){try{return new ErrorEvent(""),!0}catch{return!1}}function c(){try{return new DOMError(""),!0}catch{return!1}}function f(){try{return new DOMException(""),!0}catch{return!1}}function s(){return"history"in u&&!!u.history}const p=b;function b(){if(!("fetch"in u))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function y(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function h(){if("string"==typeof EdgeRuntime)return!0;if(!b())return!1;if(y(u.fetch))return!0;let o=!1;const c=u.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t),t.contentWindow?.fetch&&(o=y(t.contentWindow.fetch)),c.head.removeChild(t)}catch(u){t.DEBUG_BUILD&&n.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",u)}return o}function l(){return"ReportingObserver"in u}function O(){if(!b())return!1;
185try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}},1718,[1542,1546,1544]);
186__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n,u){const c=t[n];if("function"==typeof c){try{t[n]=u}catch{Object.defineProperty(t,n,{value:u,writable:!0,configurable:!0,enumerable:!0})}if(t.default===c)try{t.default=u}catch{Object.defineProperty(t,"default",{value:u,writable:!0,configurable:!0,enumerable:!0})}}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"replaceExports",{enumerable:!0,get:function(){return t}})},1719,[]);
187__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LRUMap",{enumerable:!0,get:function(){return t}});class t{constructor(t){this._maxSize=t,this._cache=new Map}get size(){return this._cache.size}get(t){const c=this._cache.get(t);if(void 0!==c)return this._cache.delete(t),this._cache.set(t,c),c}set(t,c){if(this._cache.size>=this._maxSize){const t=this._cache.keys().next().value;this._cache.delete(t)}this._cache.set(t,c)}remove(t){const c=this._cache.get(t);return c&&this._cache.delete(t),c}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const t=[];return this._cache.forEach(c=>t.push(c)),t}}},1720,[]);
188__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"escapeStringForRegex",{enumerable:!0,get:function(){return t}})},1721,[]);
189__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ServerRuntimeClient",{enumerable:!0,get:function(){return k}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),i=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]),l=r(d[9]),_=r(d[10]),v=r(d[11]),f=r(d[12]);class k extends s.Client{constructor(t){(0,u.addUserAgentToTransportHeaders)(t),"stream"!==t.traceLifecycle||t.integrations.some(t=>"SpanStreaming"===t.name)||t.integrations.push((0,i.spanStreamingIntegration)()),super(t),this._disposeCallbacks=[],this._setUpMetricsProcessing()}eventFromException(t,s){const n=(0,p.eventFromUnknownInput)(this,this._options.stackParser,t,s);return n.level="error",(0,v.resolvedSyncPromise)(n)}eventFromMessage(t,s="info",n){return(0,v.resolvedSyncPromise)((0,p.eventFromMessage)(this._options.stackParser,t,s,n,this._options.attachStacktrace))}captureException(t,s,n){return S(s),super.captureException(t,s,n)}captureEvent(t,s,n){return!t.type&&t.exception?.values&&t.exception.values.length>0&&S(s),super.captureEvent(t,s,n)}captureCheckIn(s,n,i){const c="checkInId"in s&&s.checkInId?s.checkInId:(0,l.uuid4)();if(!this._isEnabled())return o.DEBUG_BUILD&&h.debug.warn("SDK not enabled, will not capture check-in."),c;const u=this.getOptions(),{release:p,environment:_,tunnel:v}=u,k={check_in_id:c,monitor_slug:s.monitorSlug,status:s.status,release:p,environment:_};"duration"in s&&(k.duration=s.duration),n&&(k.monitor_config={schedule:n.schedule,checkin_margin:n.checkinMargin,max_runtime:n.maxRuntime,timezone:n.timezone,failure_issue_threshold:n.failureIssueThreshold,recovery_threshold:n.recoveryThreshold});const[S,I]=(0,f._getTraceInfoFromScope)(this,i);I&&(k.contexts={trace:I});const E=(0,t.createCheckInEnvelope)(k,S,this.getSdkMetadata(),v,this.getDsn());return o.DEBUG_BUILD&&h.debug.log("Sending checkin:",s.monitorSlug,s.status),this.sendEnvelope(E),c}registerCleanup(t){this._disposeCallbacks.push(t)}dispose(){o.DEBUG_BUILD&&h.debug.log("Disposing client...");for(const t of this._disposeCallbacks)try{t()}catch{}this._disposeCallbacks.length=0;for(const t of Object.keys(this._hooks))this._hooks[t]?.clear();this._hooks={},this._eventProcessors.length=0,this._integrations={},this._outcomes={},this._transport=void 0,this._promiseBuffer=(0,_.makePromiseBuffer)(c.DEFAULT_TRANSPORT_BUFFER_SIZE)}_prepareEvent(t,s,n,o){return this._options.platform&&(t.platform=t.platform||this._options.platform),this._options.runtime&&(t.contexts={...t.contexts,runtime:t.contexts?.runtime||this._options.runtime}),this._options.serverName&&(t.server_name=t.server_name||this._options.serverName),super._prepareEvent(t,s,n,o)}_setUpMetricsProcessing(){this.on("processMetric",t=>{this._options.serverName&&(t.attributes={"server.address":this._options.serverName,...t.attributes})})}}function S(t){const s=(0,n.getIsolationScope)().getScopeData().sdkProcessingMetadata.requestSession;if(s){const n=t?.mechanism?.handled??!0;n&&"crashed"!==s.status?s.status="errored":n||(s.status="crashed")}}},1722,[1639,1607,1571,1542,1714,1621,1723,1546,1657,1557,1622,1602,1611]);
190__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t._metadata?.sdk,s=n?.name&&n?.version?`${n?.name}/${n?.version}`:void 0;t.transportOptions={...t.transportOptions,headers:{...s&&{"user-agent":s},...t.transportOptions?.headers}}}
190Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addUserAgentToTransportHeaders",{enumerable:!0,get:function(){return t}})},1723,[]);
191__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"trpcMiddleware",{enumerable:!0,get:function(){return l}});var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),c=r(d[4]),p=r(d[5]);const u={mechanism:{handled:!1,type:"auto.rpc.trpc.middleware"}};function s(t){"object"==typeof t&&null!==t&&"ok"in t&&!t.ok&&"error"in t&&(0,e.captureException)(t.error,u)}function l(l={}){return async function(f){const{path:h,type:T,next:_,rawInput:y,getRawInput:I}=f,R=(0,t.getClient)(),E=R?.getOptions(),w=R?.getDataCollectionOptions(),v={procedure_path:h,procedure_type:T};if((0,p.setNormalizationDepthOverrideHint)(v,1+(E?.normalizeDepth??5)),(void 0!==l.attachRpcInput?l.attachRpcInput:w?.httpBodies.includes("incomingRequest"))&&(void 0!==y&&(v.input=(0,o.normalize)(y)),void 0!==I&&"function"==typeof I))try{const t=await I();v.input=(0,o.normalize)(t)}catch{}return(0,t.withIsolationScope)(t=>(t.setContext("trpc",v),(0,c.startSpanManual)({name:`trpc/${h}`,op:"rpc.server",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"},forceTransaction:!!l.forceTransaction},async t=>{try{const e=await _();return s(e),t.end(),e}catch(n){throw(0,e.captureException)(n,u),t.end(),n}})))}}},1724,[1571,1599,1572,1562,1592,1563]);
192__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapMcpServerWithSentry",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]);const p=new WeakSet;function u(u,l){if(p.has(u))return u;if(!(0,c.validateMcpServerInstance)(u))return u;const f=u,w=(0,t.getClient)(),O=w?.getDataCollectionOptions().genAI,v={recordInputs:l?.recordInputs??O?.inputs??!1,recordOutputs:l?.recordOutputs??O?.outputs??!1};return(0,n.fill)(f,"connect",t=>async function(n,...s){const c=await t.call(this,n,...s);return(0,o.wrapTransportOnMessage)(n,v),(0,o.wrapTransportSend)(n,v),(0,o.wrapTransportOnClose)(n),(0,o.wrapTransportError)(n),c}),(0,s.wrapAllMCPHandlers)(f),(0,s.wrapExistingHandlers)(f),p.add(u),u}},1725,[1571,1558,1726,1728,1732]);
193__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapAllMCPHandlers",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"wrapExistingHandlers",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"wrapPromptHandlers",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"wrapResourceHandlers",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"wrapToolHandlers",{enumerable:!0,get:function(){return p}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),c=r(d[3]);function u(t,o){(0,n.fill)(t,o,t=>function(n,...c){const u=c[c.length-1];if("function"!=typeof u)return t.call(this,n,...c);const f=s(u,o,n);return t.call(this,n,...c.slice(0,-1),f)})}function s(n,c,u){return function(...s){try{return f.call(this,n,c,u,s)}catch(c){return t.DEBUG_BUILD&&o.debug.warn("MCP handler wrapping failed:",c),n.apply(this,s)}}}function f(t,o,n,c){try{const u=t.apply(this,c);return u&&"object"==typeof u&&"function"==typeof u.then?Promise.resolve(u).catch(t=>{throw l(t,o,n),t}):u}catch(t){throw l(t,o,n),t}}function l(t,o,n){try{const u={};"tool"===o||"registerTool"===o?(u.tool_name=n,"ProtocolValidationError"===t.name||t.message.includes("validation")||t.message.includes("protocol")?(0,c.captureError)(t,"validation",u):"ServerTimeoutError"===t.name||t.message.includes("timed out")||t.message.includes("timeout")?(0,c.captureError)(t,"timeout",u):(0,c.captureError)(t,"tool_execution",u)):"resource"===o||"registerResource"===o?(u.resource_uri=n,(0,c.captureError)(t,"resource_execution",u)):"prompt"!==o&&"registerPrompt"!==o||(u.prompt_name=n,(0,c.captureError)(t,"prompt_execution",u))}catch(t){}}function p(t){"function"==typeof t.tool&&u(t,"tool"),"function"==typeof t.registerTool&&u(t,"registerTool")}function y(t){"function"==typeof t.resource&&u(t,"resource"),"function"==typeof t.registerResource&&u(t,"registerResource")}function b(t){"function"==typeof t.prompt&&u(t,"prompt"),"function"==typeof t.registerPrompt&&u(t,"registerPrompt")}function h(t){p(t),y(t),b(t)}
193function P(t){const o=t,n=o._registeredTools;if(n&&"object"==typeof n)for(const[t,o]of Object.entries(n))"function"==typeof o.executor&&(o.executor=s(o.executor,"registerTool",t));const c=o._registeredResources;if(c&&"object"==typeof c)for(const[t,o]of Object.entries(c))"function"==typeof o.readCallback&&(o.readCallback=s(o.readCallback,"registerResource",t));const u=o._registeredResourceTemplates;if(u&&"object"==typeof u)for(const[t,o]of Object.entries(u))"function"==typeof o.readCallback&&(o.readCallback=s(o.readCallback,"registerResource",t));const f=o._registeredPrompts;if(f&&"object"==typeof f)for(const[t,o]of Object.entries(f))"function"==typeof o.handler&&(o.handler=s(o.handler,"registerPrompt",t))}},1726,[1542,1546,1558,1727]);
194__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureError",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),c=r(d[2]),o=r(d[3]);function u(u,s,_){try{if(!(0,t.getClient)())return;const p=(0,c.getActiveSpan)();p?.isRecording()&&p.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(u,{mechanism:{type:"auto.ai.mcp_server",handled:!1,data:{error_type:s||"handler_execution",..._}}})}catch{}}},1727,[1571,1599,1551,1573]);
195__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapTransportError",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"wrapTransportOnClose",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"wrapTransportOnMessage",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"wrapTransportSend",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]),S=r(d[9]);function h(l,h){l.onmessage&&(0,n.fill)(l,"onmessage",n=>function(b,R){if((0,S.isJsonRpcRequest)(b)){const S="initialize"===b.method;let O;if(S)try{O=(0,u.extractSessionDataFromInitializeRequest)(b),(0,p.storeSessionDataForTransport)(l,O)}catch{}const T=(0,t.getIsolationScope)().clone();return(0,t.withIsolationScope)(T,()=>{const t=(0,f.buildMcpServerSpanConfig)(b,l,R,h),p=(0,o.startInactiveSpan)(t);return S&&O&&p.setAttributes({...(0,u.buildClientAttributesFromInfo)(O.clientInfo),...O.protocolVersion&&{[s.MCP_PROTOCOL_VERSION_ATTRIBUTE]:O.protocolVersion}}),(0,c.storeSpanForRequest)(l,b.id,p,b.method),(0,o.withActiveSpan)(p,()=>n.call(this,b,R))})}return(0,S.isJsonRpcNotification)(b)?(0,f.createMcpNotificationSpan)(b,l,R,h,()=>n.call(this,b,R)):n.call(this,b,R)})}function b(t,o){t.send&&(0,n.fill)(t,"send",n=>async function(...s){const[l]=s;if((0,S.isJsonRpcNotification)(l))return(0,f.createMcpOutgoingNotificationSpan)(l,t,o,()=>n.call(this,...s));if((0,S.isJsonRpcResponse)(l)&&null!==l.id&&void 0!==l.id){if(l.error&&T(l.error),(0,S.isValidContentItem)(l.result)&&(l.result.protocolVersion||l.result.serverInfo))try{const n=(0,u.extractSessionDataFromInitializeResponse)(l.result);(0,p.updateSessionDataForTransport)(t,n)}catch{}(0,c.completeSpanWithResults)(t,l.id,l.result,o,!!l.error)}return n.call(this,...s)})}function R(t){t.onclose&&(0,n.fill)(t,"onclose",n=>function(...o){return(0,c.cleanupPendingSpansForTransport)(t),(0,p.cleanupSessionDataForTransport)(t),n.call(this,...o)})}function O(t){t.onerror&&(0,n.fill)(t,"onerror",t=>function(n){return y(n),t.call(this,n)})}function T(t){try{if(t&&"object"==typeof t&&"code"in t&&"message"in t){const n=t;if(-32603===n.code||n.code>=-32099&&n.code<=-32e3){const t=new Error(n.message);t.name=`JsonRpcError_${n.code}`,(0,l.captureError)(t,"protocol")}}}catch{}}function y(t){try{(0,l.captureError)(t,"transport")}catch{}}},1728,[1571,1558,1592,1729,1730,1727,1733,1734,1735,1732]);
196__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CLIENT_ADDRESS_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"CLIENT_PORT_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"MCP_FUNCTION_ORIGIN_VALUE",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"MCP_LOGGING_DATA_TYPE_ATTRIBUTE",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"MCP_LOGGING_LEVEL_ATTRIBUTE",{enumerable:!0,get:function(){return A}}
196),Object.defineProperty(e,"MCP_LOGGING_LOGGER_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"MCP_LOGGING_MESSAGE_ATTRIBUTE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"MCP_METHOD_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"MCP_NOTIFICATION_ORIGIN_VALUE",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"MCP_PROMPT_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"MCP_PROTOCOL_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"MCP_REQUEST_ARGUMENT",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"MCP_REQUEST_ID_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"MCP_RESOURCE_URI_ATTRIBUTE",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"MCP_ROUTE_SOURCE_VALUE",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"MCP_SERVER_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"MCP_SERVER_OP_VALUE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"MCP_SERVER_TITLE_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"MCP_SERVER_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"MCP_SESSION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"MCP_TOOL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"MCP_TRANSPORT_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"NETWORK_PROTOCOL_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"NETWORK_TRANSPORT_ATTRIBUTE",{enumerable:!0,get:function(){return N}});const t="mcp.method.name",n="mcp.request.id",T="mcp.session.id",o="mcp.transport",_="mcp.server.name",u="mcp.server.title",c="mcp.server.version",O="mcp.protocol.version",E="mcp.tool.name",P="mcp.resource.uri",R="mcp.prompt.name",p="mcp.tool.result.is_error",f="mcp.tool.result.content_count",b="mcp.prompt.result.description",I="mcp.prompt.result.message_count",l="mcp.request.argument",A="mcp.logging.level",U="mcp.logging.logger",C="mcp.logging.data_type",M="mcp.logging.message",N="network.transport",s="network.protocol.version",y="client.address",j="client.port",S="mcp.server",L="mcp.notification.client_to_server",B="mcp.notification.server_to_client",G="auto.function.mcp_server",V="auto.mcp.notification",v="route"},1729,[]);
197__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupPendingSpansForTransport",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"completeSpanWithResults",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"storeSpanForRequest",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);const c=new Map,u=new WeakMap;function l(t){const n=t.sessionId;if(n){let t=c.get(n);return t||(t=new Map,c.set(n,t)),t}let s=u.get(t);return s||(s=new Map,u.set(t,s)),s}function p(t,n,s,o){l(t).set(n,{span:s,method:o,startTime:Date.now()})}function f(c,u,p,f,S=!1){const R=l(c),b=R.get(u);if(b){const{span:c,method:l}=b;if(S)c.setStatus({code:t.SPAN_STATUS_ERROR,message:"internal_error"});else if("initialize"===l){const t=(0,o.extractSessionDataFromInitializeResponse)(p),s={...(0,o.buildServerAttributesFromInfo)(t.serverInfo)};t.protocolVersion&&(s[n.MCP_PROTOCOL_VERSION_ATTRIBUTE]=t.protocolVersion),c.setAttributes(s)}else if("tools/call"===l){const t=(0,s.extractToolResultAttributes)(p,f.recordOutputs);c.setAttributes(t)}else if("prompts/get"===l){const t=(0,s.extractPromptResultAttributes)(p,f.recordOutputs);c.setAttributes(t)}c.end(),R.delete(u)}}function S(n){const s=n.sessionId;if(s){const n=c.get(s);if(n){for(const[,s]of n)s.span.setStatus({code:t.SPAN_STATUS_ERROR,message:"cancelled"}),s.span.end();c.delete(s)}return}const o=u.get(n);if(o){for(const[,n]of o)n.span.setStatus({code:t.SPAN_STATUS_ERROR,message:"cancelled"}),n.span.end();
197o.clear()}}},1730,[1573,1729,1731,1733]);
198__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractPromptResultAttributes",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"extractToolResultAttributes",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);function o(o,s){const i={[t.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE]:o.length};for(const[t,c]of o.entries()){if(!(0,n.isValidContentItem)(c))continue;const u=1===o.length?"mcp.tool.result":`mcp.tool.result.${t}`;if("string"==typeof c.type&&(i[`${u}.content_type`]=c.type),s){const t=(t,n)=>{"string"==typeof n&&(i[`${u}.${t}`]=n)};t("mime_type",c.mimeType),t("uri",c.uri),t("name",c.name),"string"==typeof c.text&&(i[`${u}.content`]=c.text),"string"==typeof c.data&&(i[`${u}.data_size`]=c.data.length);const o=c.resource;(0,n.isValidContentItem)(o)&&(t("resource_uri",o.uri),t("resource_mime_type",o.mimeType))}}return i}function s(s,i){if(!(0,n.isValidContentItem)(s))return{};const c=Array.isArray(s.content)?o(s.content,i):{};return"boolean"==typeof s.isError&&(c[t.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE]=s.isError),c}function i(o,s){const i={};if(!(0,n.isValidContentItem)(o))return i;if(s&&"string"==typeof o.description&&(i[t.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE]=o.description),Array.isArray(o.messages)&&(i[t.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE]=o.messages.length,s)){const t=o.messages;for(const[o,s]of t.entries()){if(!(0,n.isValidContentItem)(s))continue;const c=1===t.length?"mcp.prompt.result":`mcp.prompt.result.${o}`;if(((n,o)=>{if("string"==typeof o){const s=1===t.length?`${c}.message_${n}`:`${c}.${n}`;i[s]=o}})("role",s.role),(0,n.isValidContentItem)(s.content)){const n=s.content;if("string"==typeof n.text){const o=1===t.length?`${c}.message_content`:`${c}.content`;i[o]=n.text}}}}return i}},1731,[1729,1732]);
199__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isJsonRpcNotification",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isJsonRpcRequest",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isJsonRpcResponse",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isValidContentItem",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"validateMcpServerInstance",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);function o(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"method"in n&&"id"in n}function c(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"method"in n&&!("id"in n)}function u(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"id"in n&&("result"in n||"error"in n)}function s(o){return"object"==typeof o&&null!==o&&"connect"in o&&("tool"in o&&"resource"in o&&"prompt"in o||"registerTool"in o&&"registerResource"in o&&"registerPrompt"in o)||(n.DEBUG_BUILD&&t.debug.warn("Did not patch MCP server. Interface is incompatible."),!1)}function p(n){return null!=n&&"object"==typeof n}},1732,[1542,1546]);
200__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildClientAttributesFromInfo",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"buildServerAttributesFromInfo",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"buildTransportAttributes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractClientInfo",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"extractSessionDataFromInitializeRequest",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"extractSessionDataFromInitializeResponse",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getClientAttributes",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getServerAttributes",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getTransportTypes",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(t){const n={};return(0,o.isValidContentItem)(t)&&("string"==typeof t.name&&(n.name=t.name),"string"==typeof t.title&&(n.title=t.title),"string"==typeof t.version&&(n.version=t.version)),n}function c(t){const n={};return(0,o.isValidContentItem)(t.params)&&("string"==typeof t.params.protocolVersion&&(n.protocolVersion=t.params.protocolVersion),t.params.clientInfo&&(n.clientInfo=s(t.params.clientInfo))),n}function u(t){const n={};return(0,o.isValidContentItem)(t)&&("string"==typeof t.protocolVersion&&(n.protocolVersion=t.protocolVersion),t.serverInfo&&(n.serverInfo=s(t.serverInfo))),n}function T(t){const o=(0,n.getClientInfoForTransport)(t),s={};return o?.name&&(s["mcp.client.name"]=o.name),o?.title&&(s["mcp.client.title"]=o.title),o?.version&&(s["mcp.client.version"]=o.version),s}function l(t){const n={};return t?.name&&(n["mcp.client.name"]=t.name),t?.title&&(n["mcp.client.title"]=t.title),t?.version&&(n["mcp.client.version"]=t.version),n}function p(o){const s=(0,n.getSessionDataForTransport)(o)?.serverInfo,c={};return s?.name&&(c[t.MCP_SERVER_NAME_ATTRIBUTE]=s.name),s?.title&&(c[t.MCP_SERVER_TIT
200LE_ATTRIBUTE]=s.title),s?.version&&(c[t.MCP_SERVER_VERSION_ATTRIBUTE]=s.version),c}function f(n){const o={};return n?.name&&(o[t.MCP_SERVER_NAME_ATTRIBUTE]=n.name),n?.title&&(o[t.MCP_SERVER_TITLE_ATTRIBUTE]=n.title),n?.version&&(o[t.MCP_SERVER_VERSION_ATTRIBUTE]=n.version),o}function I(t){return{address:t?.requestInfo?.remoteAddress||t?.clientAddress||t?.request?.ip||t?.request?.connection?.remoteAddress,port:t?.requestInfo?.remotePort||t?.clientPort||t?.request?.connection?.remotePort}}function R(t){if(!t?.constructor)return{mcpTransport:"unknown",networkTransport:"unknown"};const n="string"==typeof t.constructor?.name?t.constructor.name:"unknown";let o="unknown";const s=n.toLowerCase();return s.includes("stdio")?o="pipe":(s.includes("http")||s.includes("sse"))&&(o="tcp"),{mcpTransport:n,networkTransport:o}}function E(o,s){const c=o&&"sessionId"in o?o.sessionId:void 0,u=s?I(s):{},{mcpTransport:l,networkTransport:f}=R(o),E=T(o),_=p(o),P=(0,n.getProtocolVersionForTransport)(o);return{...c&&{[t.MCP_SESSION_ID_ATTRIBUTE]:c},...u.address&&{[t.CLIENT_ADDRESS_ATTRIBUTE]:u.address},...u.port&&{[t.CLIENT_PORT_ATTRIBUTE]:u.port},[t.MCP_TRANSPORT_ATTRIBUTE]:l,[t.NETWORK_TRANSPORT_ATTRIBUTE]:f,[t.NETWORK_PROTOCOL_VERSION_ATTRIBUTE]:"2.0",...P&&{[t.MCP_PROTOCOL_VERSION_ATTRIBUTE]:P},...E,..._}}},1733,[1729,1734,1732]);
201__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupSessionDataForTransport",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getClientInfoForTransport",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getProtocolVersionForTransport",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getSessionDataForTransport",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"storeSessionDataForTransport",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"updateSessionDataForTransport",{enumerable:!0,get:function(){return c}});const n=new Map,t=new WeakMap;function o(o){const u=o.sessionId;return u?n.get(u):t.get(o)}function u(o,u){const s=o.sessionId;s?n.set(s,u):t.set(o,u)}function s(n,t){u(n,t)}function c(n,t){u(n,{...o(n)||{},...t})}function f(n){return o(n)?.clientInfo}function p(n){return o(n)?.protocolVersion}function l(n){return o(n)}function b(t){const o=t.sessionId;o&&n.delete(o)}},1734,[]);
202__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildMcpServerSpanConfig",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createMcpNotificationSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createMcpOutgoingNotificationSpan",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),_=r(d[4]),u=r(d[5]),s=r(d[6]),T=r(d[7]);function p(t,n){return n?`${t} ${n}`:t}function I(t){let o,c;switch(t){case"request":o=_.MCP_SERVER_OP_VALUE,c=_.MCP_FUNCTION_ORIGIN_VALUE;break;case"notification-incoming":o=_.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE,c=_.MCP_NOTIFICATION_ORIGIN_VALUE;break;case"notification-outgoing":o=_.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE,c=_.MCP_NOTIFICATION_ORIGIN_VALUE}return{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:o,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:_.MCP_ROUTE_SOURCE_VALUE}}function E(n){const{type:E,message:f,transport:O,extra:l,callback:C,options:A}=n,{method:N}=f,b=f.params;let M;if("request"===E){M=p(N,(0,u.extractTargetInfo)(N,b||{}).target)}else M=N;const R={...(0,T.buildTransportAttributes)(O,l),[_.MCP_METHOD_NAME_ATTRIBUTE]:N,...(0,c.buildTypeSpecificAttributes)(E,f,b,A?.recordInputs),...I(E)},P=(0,t.getClient)(),S=Boolean(P?.getDataCollectionOptions().userInfo),U=(0,s.filterMcpPiiFromSpanData)(R,S);return(0,o.startSpan)({name:M,forceTransaction:!0,attributes:U},C)}function f(t,n,o,c,_){return E({type:"notification-incoming",message:t,transport:n,extra:o,callback:_,options:c})}function O(t,n,o,c){return E({type:"notification-outgoing",message:t,transport:n,options:o,callback:c})}function l(n,o,E,f){const{method:O}=n,l=n.params,C=p(O,(0,u.extractTargetInfo)(O,l||{}).target),A={...(0,T.buildTransportAttributes)(o,E),[_.MCP_METHOD_NAME_ATTRIBUTE]:O,...(0,c.buildTypeSpecificAttributes)("request",n,l,f?.recordInputs),...I("request")},N=(0,t.getClient)(),b=Boolean(N?.getDataCollectionOptions().userInfo),M=(0,s.filterMcpPiiFromSpanData)(A,b);return{name:C,op:_.MCP_SERVER_OP_VALUE,forceTransaction:!0,attributes:M}}},1735,[1571,1572,1592,1736,1729,1737,1738,1733]);
203__d(function(g,r,i,a,m,e,d){"use strict";
203Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildTypeSpecificAttributes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getNotificationAttributes",{enumerable:!0,get:function(){return n}});var t=r(d[0]),o=r(d[1]),s=r(d[2]);function n(s,n,c){const p={};switch(s){case"notifications/cancelled":n?.requestId&&(p["mcp.cancelled.request_id"]=String(n.requestId)),n?.reason&&(p["mcp.cancelled.reason"]=String(n.reason));break;case"notifications/message":n?.level&&(p[o.MCP_LOGGING_LEVEL_ATTRIBUTE]=String(n.level)),n?.logger&&(p[o.MCP_LOGGING_LOGGER_ATTRIBUTE]=String(n.logger)),void 0!==n?.data&&(p[o.MCP_LOGGING_DATA_TYPE_ATTRIBUTE]=typeof n.data,c&&(p[o.MCP_LOGGING_MESSAGE_ATTRIBUTE]="string"==typeof(u=n.data)?u:JSON.stringify(u)));break;case"notifications/progress":n?.progressToken&&(p["mcp.progress.token"]=String(n.progressToken)),"number"==typeof n?.progress&&(p["mcp.progress.current"]=n.progress),"number"==typeof n?.total&&(p["mcp.progress.total"]=n.total,"number"==typeof n?.progress&&(p["mcp.progress.percentage"]=n.progress/n.total*100)),n?.message&&(p["mcp.progress.message"]=String(n.message));break;case"notifications/resources/updated":if(n?.uri){p[o.MCP_RESOURCE_URI_ATTRIBUTE]=String(n.uri);const s=(0,t.parseStringToURLObject)(String(n.uri));s&&!(0,t.isURLObjectRelative)(s)&&(p["mcp.resource.protocol"]=s.protocol.replace(":",""))}break;case"notifications/initialized":p["mcp.lifecycle.phase"]="initialization_complete",p["mcp.protocol.ready"]=1}var u;return p}function c(t,c,p,u){if("request"===t){const t=c,n=(0,s.extractTargetInfo)(t.method,p||{});return{...void 0!==t.id&&{[o.MCP_REQUEST_ID_ATTRIBUTE]:String(t.id)},...n.attributes,...u?(0,s.getRequestArguments)(t.method,p||{}):{}}}return n(c.method,p||{},u)}},1736,[1641,1729,1737]);
204__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractTargetInfo",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getRequestArguments",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const u={"tools/call":{targetField:"name",targetAttribute:t.MCP_TOOL_NAME_ATTRIBUTE,captureArguments:!0,argumentsField:"arguments"},"resources/read":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE,captureUri:!0},"resources/subscribe":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE},"resources/unsubscribe":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE},"prompts/get":{targetField:"name",targetAttribute:t.MCP_PROMPT_NAME_ATTRIBUTE,captureName:!0,captureArguments:!0,argumentsField:"arguments"}};function n(t,n){const s=u[t];if(!s)return{attributes:{}};const c=s.targetField&&"string"==typeof n?.[s.targetField]?n[s.targetField]:void 0;return{target:c,attributes:c&&s.targetAttribute?{[s.targetAttribute]:c}:{}}}function s(n,s){const c={},o=u[n];if(!o)return c;if(o.captureArguments&&o.argumentsField&&s?.[o.argumentsField]){const u=s[o.argumentsField];if("object"==typeof u&&null!==u)for(const[n,s]of Object.entries(u))c[`${t.MCP_REQUEST_ARGUMENT}.${n.toLowerCase()}`]=JSON.stringify(s)}return o.captureUri&&s?.uri&&(c[`${t.MCP_REQUEST_ARGUMENT}.uri`]=JSON.stringify(s.uri)),o.captureName&&s?.name&&(c[`${t.MCP_REQUEST_ARGUMENT}.name`]=JSON.stringify(s.name)),c}},1737,[1729]);
205__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterMcpPiiFromSpanData",{enumerable:!0,get:function(){return T}});var t=r(d[0]);const n=new Set([t.CLIENT_ADDRESS_ATTRIBUTE,t.CLIENT_PORT_ATTRIBUTE,t.MCP_RESOURCE_URI_ATTRIBUTE]);function u(t){return n.has(t)}function T(t,n){return n?t:Object.entries(t).reduce((t,[n,T])=>(u(n)||(t[n]=T),t),{})}},1738,[1729]);
206__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filenameIsInApp",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"node",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"nodeStackLineParser",{enumerable:!0,get:function(){return c}});var n=r(d[0]);function t(n,t=!1){return!(t||n&&!n.startsWith("/")&&!n.match(/^[A-Z]:/)&&!n.startsWith(".")&&!n.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==n&&!n.includes("node_modules/")}function o(o){const c=/^\s*[-]{4,}$/,f=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/,l=/at (?:async )?(.+?) \(data:(.*?),/;return v=>{const h=v.match(l);
206if(h)return{filename:`<data:${h[2]}>`,function:h[1]};const p=v.match(f);if(p){let c,f,l,v,h;if(p[1]){l=p[1];let n=l.lastIndexOf(".");if("."===l[n-1]&&n--,n>0){c=l.slice(0,n),f=l.slice(n+1);const t=c.indexOf(".Module");t>0&&(l=l.slice(t+1),c=c.slice(0,t))}v=void 0}f&&(v=c,h=f),"<anonymous>"===f&&(h=void 0,l=void 0),void 0===l&&(h=h||n.UNKNOWN_FUNCTION,l=v?`${v}.${h}`:h);let y=(0,n.normalizeStackTracePath)(p[2]);const O="native"===p[5];y||!p[5]||O||(y=p[5]);const b=y?s(y):void 0;return{filename:b??y,module:b&&o?.(b),function:l,lineno:u(p[3]),colno:u(p[4]),in_app:t(y||"",O)}}return v.match(c)?{filename:v}:void 0}}function c(n){return[90,o(n)]}function u(n){return parseInt(n||"",10)||void 0}function s(n){try{return decodeURI(n)}catch{return}}},1739,[1549]);
207__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"vercelWaitUntil",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){if("string"!=typeof EdgeRuntime)return;const o=t.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],u=o?.get?.();u?.waitUntil&&u.waitUntil(n)}},1740,[1544]);
208__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"flushIfServerless",{enumerable:!0,get:function(){return u}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]);async function l(n){try{t.debug.log("Flushing events..."),await(0,e.flush)(n),t.debug.log("Done flushing events")}catch(e){t.debug.log("Error while flushing events:\n",e)}}async function u(e={}){const{timeout:t=2e3}=e;if("cloudflareWaitUntil"in e&&"function"==typeof e?.cloudflareWaitUntil)return void e.cloudflareWaitUntil(l(t));if("cloudflareCtx"in e&&"function"==typeof e.cloudflareCtx?.waitUntil)return void e.cloudflareCtx.waitUntil(l(t));if(o.GLOBAL_OBJ[Symbol.for("@vercel/request-context")])return void(0,n.vercelWaitUntil)(l(t));if("undefined"==typeof process)return;!!(process.env.FUNCTIONS_WORKER_RUNTIME||process.env.LAMBDA_TASK_ROOT||process.env.K_SERVICE||process.env.CF_PAGES||process.env.VERCEL||process.env.NETLIFY)&&await l(t)}},1741,[1599,1546,1740,1544]);
209__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"callFrameToStackFrame",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"watchdogTimer",{enumerable:!0,get:function(){return t}});var n=r(d[0]),o=r(d[1]);function t(n,o,t,l){const c=n();let u=!1,f=!0;return setInterval(()=>{const n=c.getTimeMs();!1===u&&n>o+t&&(u=!0,f&&l()),n<o+t&&(u=!1)},20),{poll:()=>{c.reset()},enabled:n=>{f=n}}}function l(t,l,c){const u=l?l.replace(/^file:\/\//,""):void 0,f=t.location.columnNumber?t.location.columnNumber+1:void 0,b=t.location.lineNumber?t.location.lineNumber+1:void 0;return{filename:u,module:c(u),function:t.functionName||o.UNKNOWN_FUNCTION,colno:f,lineno:b,in_app:u?(0,n.filenameIsInApp)(u):void 0}}},1742,[1739,1549]);
210__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"expressErrorHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"patchExpressModule",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"setupExpressErrorHandler",{enumerable:!0,get:function(){return y}});var e=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),n=r(d[4]),u=r(d[5]),p=r(d[6]),c=r(d[7]);let h=!1;function l(t,p){let l,f;if(!p&&t.express){const{express:s,...n}=t;f=s,l=()=>n,h||(h=!0,o.DEBUG_BUILD&&e.debug.warn("[Express] `patchExpressModule(options)` is deprecated. Use `patchExpressModule(moduleExports, getOptions)` instead."))}else{if("function"!=typeof p)throw new TypeError("`patchExpressModule(moduleExports, getOptions)` requires a `getOptions` callback");l=p,f=t}const y=(0,c.getDefaultExport)(f),E=(0,s.isExpressWithRouterPrototype)(y)?y.Router.prototype:(0,s.isExpressWithoutRouterPrototype)(y)?y.Router:void 0;if(!E)throw new TypeError("no valid Express route function to instrument");const x=E.route;try{(0,n.wrapMethod)(E,"route",function(...e){const t=x.apply(this,e),o=this.stack[this.stack.length-1];return(0,u.patchLayer)(l,o,(0,s.getLayerPath)(e)),t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express route method:",t)}const b=E.use;try{(0,n.wrapMethod)(E,"use",function(...e){const t=b.apply(this,e),o=this.stack[this.stack.length-1];return o?((0,u.patchLayer)(l,o,(0,s.getLayerPath)(e)),t):t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express use method:",t)}const{application:P}=y,D=P.use;try{(0,n.wrapMethod)(P,"use",function(...e){const t=D.apply(this,e),o=(0,s.isExpressWithRouterPrototype)(y)?this.router:this._router;if(o){const t=o.stack[o.stack.length-1];t&&(0,u.patchLayer)(l,t,(0,s.getLayerPath)(e))}return t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express application.use method:",t)}return y}function f(e){return function(o,n,u,c){(0,p.setSDKProcessingMetadata)(n);if((e?.shouldHandleError||s.defaultShouldHandleError)(o)){const e=(0,t.captureException)(o,{mechanism:{type:"auto.middleware.express",handled:!1}});u.sentry=e}c(o)}}function y(e,t){e.use(function(e,t,o){(0,p.setSDKProcessingMetadata)(e),o()}),e.use(f(t))}},1743,[1546,1599,1542,1744,1558,1747,1748,1749]);
211__d(function(g,r,i,a,m,e,d){"use strict";
211Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"asErrorAndMessage",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"defaultShouldHandleError",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getActualMatchedRoute",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getConstructedRoute",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getLayerMetadata",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getLayerPath",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getRouterPath",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isExpressWithRouterPrototype",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"isExpressWithoutRouterPrototype",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"isLayerIgnored",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isRoutePattern",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);const o=t=>t instanceof Error?[t,t.message]:[String(t),String(t)];function s(t){return t.includes(":")||t.includes("*")}const c=(t,u,o)=>{if("router"===u.name){const s=y("",u),c=s||(o||t||"/");return{attributes:{[n.ATTR_EXPRESS_NAME]:c,[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_ROUTER},name:`router - ${c}`}}return"bound dispatch"===u.name||"handle"===u.name?{attributes:{[n.ATTR_EXPRESS_NAME]:(t||o)??"request handler",[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_REQUEST_HANDLER},name:"request handler"+(u.path?` - ${t||o}`:"")}:{attributes:{[n.ATTR_EXPRESS_NAME]:u.name,[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_MIDDLEWARE},name:`middleware - ${u.name}`}},y=(t,n)=>{const u=Array.isArray(n.handle?.stack)?n.handle?.stack?.[0]:void 0;return u?.route?.path?`${t}${u.route.path}`:u&&Array.isArray(u?.handle?.stack)?y(t,u):t},f=(t,n,o)=>{if(Array.isArray(o?.ignoreLayersType)&&o?.ignoreLayersType?.includes(n))return!0;if(!Array.isArray(o?.ignoreLayers))return!1;try{return(0,u.stringMatchesSomePattern)(t,o.ignoreLayers,!0)}catch{}return!1};function l(n,u){const o=(0,t.getStoredLayers)(n);if(0===o.length)return;if(o.every(t=>"/"===t))return"/"===n.originalUrl?"/":void 0;if("*"===u)return u;if(u.includes("/")&&(u.includes(",")||u.includes("\\")||u.includes("*")||u.includes("[")))return u;const c=u.startsWith("/")?u:`/${u}`;return c.length>0&&(n.originalUrl===c||n.originalUrl.startsWith(c)||s(c))?c:void 0}function p(n){const u=(0,t.getStoredLayers)(n);let o="";for(const t of u)"/"!==t&&"/*"!==t&&(o+=!o||o.endsWith("/")?t:`/${t}`);return o.replace(/\/{2,}/g,"/")}const E=t=>{const n=t[0];return Array.isArray(n)?n.map(t=>b(t)||"").join(","):b(n)},b=t=>"string"==typeof t?t:t instanceof RegExp||"number"==typeof t?String(t):void 0,P=t=>R(t?.Router?.prototype),R=t=>("object"==typeof t||"function"==typeof t)&&!!t&&"route"in t&&"function"==typeof t.route,h=t=>R(t.Router)&&!P(t);function A(t){const n=t.status||t.statusCode||t.status_code||t.output?.statusCode;return n?parseInt(n,10):500}function T(t){return A(t)>=500}},1744,[1745,1746,1561]);
212__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getStoredLayers",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"storeLayer",{enumerable:!0,get:function(){return n}});const t=new WeakMap,n=(n,u)=>{const o=t.get(n);o?o.push(u):t.set(n,[u])},u=n=>{let u=t.get(n);return u||(u=[],t.set(n,u)),u}},1745,[]);
213__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ATTR_EXPRESS_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ATTR_EXPRESS_TYPE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"ATTR_HTTP_ROUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ExpressLayerType_MIDDLEWARE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"ExpressLayerType_REQUEST_HANDLER",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"ExpressLayerType_ROUTER",{enumerable:!0,get:function(){return o}});const t="express.name",n="http.route",u="express.type",o="router",p="middleware",c="request_handler"},1746,[]);
214__d(function(g,r,_i,a,m,e,d){"use strict";
214Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchLayer",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),i=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),l=r(d[8]),T=r(d[9]),f=r(d[10]),E=r(d[11]),R=r(d[12]);function S(S,_,h){if(!_?.handle)return;const A=_,y=A.handle;if(!(0,c.getOriginalFunction)(y)&&4!==y.length){for(const t in y)t in b||Object.defineProperty(b,t,{get:()=>y[t],set(n){y[t]=n}});(0,c.markFunctionWrapped)(b,y),Object.defineProperty(A,"handle",{enumerable:!0,configurable:!0,writable:!0,value:b})}function b(c,_,...b){const P=S();(0,R.setSDKProcessingMetadata)(c);const O=(0,o.getActiveSpan)();if(!O)return y.apply(this,[c,_,...b]);h&&(0,l.storeLayer)(c,h);const I=(0,l.getStoredLayers)(c),M=!!h,N=(0,f.getConstructedRoute)(c),U=(0,f.getActualMatchedRoute)(c,N);P.onRouteResolved?.(U);const L=(0,f.getLayerMetadata)(N,A,h),v=L.attributes[T.ATTR_EXPRESS_NAME],j=L.attributes[T.ATTR_EXPRESS_TYPE],w=Object.assign(L.attributes,{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.express",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${j}.express`});if(U&&(w[T.ATTR_HTTP_ROUTE]=U),(0,f.isLayerIgnored)(L.attributes[T.ATTR_EXPRESS_NAME],j,P))return M&&I.pop(),y.apply(this,[c,_,...b]);const B=(0,u.getIsolationScope)();if(B!==(0,E.getDefaultIsolationScope)()){if("request_handler"===j){const t=c.method?c.method.toUpperCase():"GET";B.setTransactionName(`${t} ${N}`)}}else t.DEBUG_BUILD&&s.debug.warn("Isolation scope is still default isolation scope - skipping setting transactionName");return(0,p.startSpanManual)({name:v,attributes:w},t=>{let n=!1;L.attributes[T.ATTR_EXPRESS_TYPE]===T.ExpressLayerType_ROUTER&&(t.end(),n=!0);const s=()=>{n||(n=!0,t.end())};for(let o=0;o<b.length;o++){const u=b[o];if("function"==typeof u){b[o]=function(...o){const l=o[0],T=!!l&&"route"!==l&&"router"!==l;if(!n&&T){const[n,s]=(0,f.asErrorAndMessage)(l);t.setStatus({code:i.SPAN_STATUS_ERROR,message:s})}return n||(n=!0,_.removeListener("finish",s),t.end()),c.route&&T||!M||I.pop(),(0,p.withActiveSpan)(O,()=>u.apply(this,o))};break}}try{return y.apply(this,[c,_,...b])}catch(n){const[s,o]=(0,f.asErrorAndMessage)(n);throw t.setStatus({code:i.SPAN_STATUS_ERROR,message:o}),n}finally{n||_.once("finish",s)}})}}},1747,[1542,1572,1546,1551,1573,1558,1571,1592,1745,1746,1744,1554,1748]);
215__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setSDKProcessingMetadata",{enumerable:!0,get:function(){return s}});var t=r(d[0]),o=r(d[1]);function s(s){const n=(0,t.getIsolationScope)()?.getScopeData()?.sdkProcessingMetadata;if(!n?.normalizedRequest){const n=(0,o.httpRequestToRequestData)(s);(0,t.getIsolationScope)().setSDKProcessingMetadata({normalizedRequest:n})}}},1748,[1571,1650]);
216__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return!!t&&"object"==typeof t&&"default"in t&&t.default||t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultExport",{enumerable:!0,get:function(){return t}})},1749,[]);
217__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"_reconstructQuery",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"_sanitizeSqlQuery",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"instrumentPostgresJsSql",{enumerable:!0,get:function(){return f}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),i=r(d[5]);const c=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,u=Symbol("sentryPostgresConnectionContext"),p=Symbol.for("sentry.instrumented.postgresjs"),l=Symbol.for("sentry.query.from.instrumented.sql");function f(t,o){return t&&"function"==typeof t?b(t,{requireParentSpan:!0,...o}):(e.DEBUG_BUILD&&n.debug.warn("instrumentPostgresJsSql: provided value is not a valid postgres.js sql instance"),t)}function b(e,t,n){if(e[p])return e;const o=new Proxy(e,{apply(e,n,s){const i=Reflect.apply(e,n,s);return i&&"object"==typeof i&&"handle"in i&&R(i,o,t),i},get(e,n){const s=e[n];return"string"!=typeof n||"function"!=typeof s?s:"unsafe"===n||"file"===n?y(s,e,o,t):"begin"===n||"reserve"===n?E(s,e,o,t):s}});return n?o[u]=n:D(e,o),e[p]=!0,o[p]=!0,o}function y(e,t,n,o){return function(...s){const i=Reflect.apply(e,t,s);return i&&"object"==typeof i&&"handle"in i&&R(i,n,o),i}}function E(e,t,n,o){return function(...s){const i=n[u];if(!("function"==typeof s[s.length-1])){const n=Reflect.apply(e,t,s);return n&&"function"==typeof n.then?n.then(e=>b(e,o,i)):n}const c=1===s.length?s[0]:s[1],p=function(e){const t=b(e,o,i);return c(t)},l=1===s.length?[p]:[s[0],p];return Reflect.apply(e,t,l)}}function R(o,c,p){if(o.handle?.__sentryWrapped)return;o[l]=!0;const f=o.handle,b=async function(...l){if(this.executed||!_(p))return f.apply(this,l);const b=T(A(o.strings));return(0,i.startSpanManual)({name:b||"postgresjs.query",op:"db"},o=>{o.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.postgresjs"),o.setAttributes({"db.system.name":"postgres","db.query.text":b});const i=c?c[u]:void 0;
217if(h(o,i),p.requestHook)try{p.requestHook(o,b,i)}catch(t){o.setAttribute("sentry.hook.error","requestHook failed"),e.DEBUG_BUILD&&n.debug.error("Error in requestHook for PostgresJs instrumentation:",t)}const y=this;y.resolve=new Proxy(y.resolve,{apply:(t,s,i)=>{try{P(o,b,i?.[0]?.command),o.end()}catch(t){e.DEBUG_BUILD&&n.debug.error("Error ending span in resolve callback:",t)}return Reflect.apply(t,s,i)}}),y.reject=new Proxy(y.reject,{apply:(t,i,c)=>{try{o.setStatus({code:s.SPAN_STATUS_ERROR,message:c?.[0]?.message||"unknown_error"}),o.setAttribute("db.response.status_code",c?.[0]?.code||"unknown"),o.setAttribute("error.type",c?.[0]?.name||"unknown"),P(o,b),o.end()}catch(t){e.DEBUG_BUILD&&n.debug.error("Error ending span in reject callback:",t)}return Reflect.apply(t,i,c)}});try{return f.apply(this,l)}catch(e){throw o.setStatus({code:s.SPAN_STATUS_ERROR,message:e instanceof Error?e.message:"unknown_error"}),o.end(),e}})};b.__sentryWrapped=!0,o.handle=b}function _(e){return void 0!==(0,o.getActiveSpan)()||!e.requireParentSpan}function A(e){if(e?.length)return 1===e.length?e[0]||void 0:e.reduce((e,t,n)=>0===n?t:`${e}$${n}${t}`,"")}let S;function T(e){return e?(S||(S=new RegExp("(?<!\\$)-?\\b\\d+\\b","g")),e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(S,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)")):"Unknown SQL Query"}function h(e,t){if(t&&(t.ATTR_DB_NAMESPACE&&e.setAttribute("db.namespace",t.ATTR_DB_NAMESPACE),t.ATTR_SERVER_ADDRESS&&e.setAttribute("server.address",t.ATTR_SERVER_ADDRESS),void 0!==t.ATTR_SERVER_PORT)){const n=parseInt(t.ATTR_SERVER_PORT,10);isNaN(n)||e.setAttribute("server.port",n)}}function P(e,t,n){if(n)return void e.setAttribute("db.operation.name",n);const o=t?.match(c);o?.[1]&&e.setAttribute("db.operation.name",o[1].toUpperCase())}function D(e,t){const n=e;if(!n.options||"object"!=typeof n.options)return;const o=n.options,s=o.host?.[0]||"localhost",i=o.port?.[0]||5432,c={ATTR_DB_NAMESPACE:"string"==typeof o.database&&""!==o.database?o.database:void 0,ATTR_SERVER_ADDRESS:s,ATTR_SERVER_PORT:String(i)};t[u]=c}},1750,[1542,1572,1546,1551,1573,1592]);
218__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSqlQuerySummary",{enumerable:!0,get:function(){return T}});const n=255,o=/[^\s(,;)]+/.source,s=new RegExp(`^\\s*(?<operation>(?:CREATE|DROP)\\s+(?:TABLE|INDEX)|ALTER\\s+TABLE)(?:\\s+IF\\s+(?:NOT\\s+)?EXISTS)?\\s+(?<table>${o})`,"i"),t=new RegExp(`^\\s*(?<operation>INSERT)\\s+INTO\\s+(?<table>${o})`,"i"),u=new RegExp(`^\\s*(?<operation>UPDATE)\\s+(?<table>${o})`,"i"),p=new RegExp(`^\\s*(?<operation>DELETE)\\s+FROM\\s+(?<table>${o})`,"i"),c=/^\s*\(?\s*(?<operation>SELECT)\b/i,l=/^\s*(?<operation>PRAGMA)\s+(?<command>\S+)/i,E=/\b(?:FROM|JOIN)\s+|\(\s*(SELECT)\b|\b(?:UNION|INTERSECT|EXCEPT|MINUS)\s+(?:ALL\s+)?(SELECT)\b/gi,b=/^(?:"[^"]*"|'[^']*'|[^\s(,;)]+)/,f=/^\s*,\s*((?:"[^"]*"|'[^']*'|[^\s(,;)]+))/,x=/^\(\s*(SELECT)\b/i;function T(n){if(!n)return;const o=l.exec(n);if(o?.groups?.operation&&o.groups.command){const n=o.groups.operation,s=o.groups.command,t=s.indexOf("(");return $(`${n} ${t>=0?s.substring(0,t):s}`)}const E=s.exec(n);if(E?.groups?.operation&&E.groups.table)return $(`${E.groups.operation} ${E.groups.table}`);const b=t.exec(n);if(b?.groups?.operation&&b.groups.table){const o=[b.groups.operation,b.groups.table],s=n.slice(b[0].length),t=/\b(SELECT)\b/i.exec(s);if(t?.[1]){o.push(t[1]);const n=h(s.slice(t.index));o.push(...n)}return $(o.join(" "))}const f=u.exec(n);if(f?.groups?.operation&&f.groups.table)return $(`${f.groups.operation} ${f.groups.table}`);const x=p.exec(n);if(x?.groups?.operation&&x.groups.table)return $(`${x.groups.operation} ${x.groups.table}`);const T=c.exec(n);if(T?.groups?.operation){const o=h(n.slice(T[0].length));return o.length>0?$(`${T.groups.operation} ${o.join(" ")}`):T.groups.operation}return $(n.trim().split(/\s+/)[0]??n)}function h(n){const o=[];let s;for(E.lastIndex=0;null!==(s=E.exec(n));){if(s[1]||s[2]){o.push(s[1]||s[2]);continue}const t=n.slice(s.index+s[0].length),u=x.exec(t);if(u?.[1]){o.push(u[1]),E.lastIndex=s.index+s[0].length+u[0].length;continue}const p=b.exec(t);if(!p)continue;o.push(p[0]);let c,l=t.slice(p[0].length);for(;null!==(c=f.exec(l))&&c[1];)o.push(c[1]),l=l.slice(c[0].length)}return o}function $(o){if(o.length<=n)return o;const s=o.substring(0,n),t=s.lastIndexOf(" ");return t>0?s.substring(0,t):s}},1751,[]);
219__d(function(g,r,i,a,m,e,d){"use strict";
219Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchHttpModuleClient",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);function c(t,c){if(!(0,o.getOriginalFunction)(t.request)){const{[n.HTTP_ON_CLIENT_REQUEST]:s}=(0,u.getHttpClientSubscriptions)({...c,http:t}),f=t.request;(0,o.wrapMethod)(t,"request",function(...t){const o=f.apply(this,t);return s({request:o},n.HTTP_ON_CLIENT_REQUEST),o})}}function s(t){(0,o.getOriginalFunction)(t.get)||(0,o.wrapMethod)(t,"get",function(n,o,u){const c=t.request.call(this,n,o,u);return c.end(),c})}function f(n,o={}){const u=(0,t.getDefaultExport)(n),p=n;if(u!==n){f(u,o);for(const t of["get","request"]){const n=Object.getOwnPropertyDescriptor(u,t);n&&Object.defineProperty(p,t,n)}return p}return c(p,o),s(p),n}const p=(t,n={})=>f(t,n)},1752,[1749,1753,1558,1754]);
220__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HTTP_ON_CLIENT_REQUEST",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"HTTP_ON_SERVER_REQUEST",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"LOG_PREFIX",{enumerable:!0,get:function(){return t}});const t="@sentry/instrumentation-http",n="http.client.request.created",u="http.server.request.start"},1753,[]);
221__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getHttpClientSubscriptions",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),p=r(d[5]),c=r(d[6]),S=r(d[7]),R=r(d[8]),l=r(d[9]),_=r(d[10]),T=r(d[11]),b=r(d[12]);function P(P){const f=new S.LRUMap(100);return{[T.HTTP_ON_CLIENT_REQUEST]:S=>{if(!0===(0,s.getCurrentScope)().getScopeData().sdkProcessingMetadata[c.SUPPRESS_TRACING_KEY])return;const E=(0,s.getClient)()?.getOptions(),{errorMonitor:O="error",spans:C=!E||(0,p.hasSpansEnabled)(E),propagateTrace:U=!1,breadcrumbs:q=!0,http:v,https:A,suppressOtelWarning:L=!1}=P,{request:H}=S;if(P.ignoreOutgoingRequests?.((0,l.getRequestUrlFromClientRequest)(H),H))return;let I=!1;function D(n,o){I||(I=!0,(0,t.addOutgoingRequestBreadcrumb)(n,o))}if(!C)return q&&((N=H).on(O,()=>D(N,void 0)),N.prependListener("response",t=>{N.listenerCount("response")<=1&&t.resume(),t.on("end",()=>D(N,t)),t.on(O,()=>D(N,t))})),void(U&&(0,_.injectTracePropagationHeaders)(H,f));var N;L||(v&&(0,b.doubleWrapWarning)(v),A&&(0,b.doubleWrapWarning)(A));const j=(0,c.startInactiveSpan)((0,R.getOutgoingRequestSpanData)(H));P.outgoingRequestHook?.(j,H),U&&(j.isRecording()?(0,c.withActiveSpan)(j,()=>{(0,_.injectTracePropagationHeaders)(H,f)}):(0,_.injectTracePropagationHeaders)(H,f));let B=!1;function G(t){B||(B=!0,j.setStatus(t),j.end())}const W=()=>G({code:u.SPAN_STATUS_UNSET});H.on("close",W),H.on(O,t=>{n.DEBUG_BUILD&&o.debug.log(T.LOG_PREFIX,"outgoingRequest on request error()",t),q&&D(H,void 0),G({code:u.SPAN_STATUS_ERROR})}),H.prependListener("response",t=>{H.removeListener("close",W),H.listenerCount("response")<=1&&t.resume(),(0,R.setIncomingResponseSpanData)(t,j),P.outgoingResponseHook?.(j,t);let s=!1;function p(p){if(!s){s=!0,p&&n.DEBUG_BUILD&&o.debug.log(T.LOG_PREFIX,"outgoingRequest on response error()",p),q&&D(H,t);const c=t.aborted&&!t.complete,S=p||"number"!=typeof t.statusCode||c?{code:u.SPAN_STATUS_ERROR}:(0,u.getSpanStatusFromHttpCode)(t.statusCode);P.applyCustomAttributesOnSpan?.(j,H,t),G(S)}}t.on("end",()=>p()),t.on(O,p)})}}}},1754,[1755,1542,1546,1571,1573,1580,1592,1720,1757,1756,1758,1753,1759]);
222__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addOutgoingRequestBreadcrumb",{enumerable:!0,get:function(){return o}});
222var t=r(d[0]),s=r(d[1]),u=r(d[2]),n=r(d[3]);function o(o,c){const h=(0,n.getRequestUrlFromClientRequest)(o),p=(0,u.parseUrl)(h),l=c?.statusCode,b=(0,s.getBreadcrumbLogLevelFromHttpStatusCode)(l);(0,t.addBreadcrumb)({category:"http",data:{status_code:l,url:(0,u.getSanitizedUrlString)(p),"http.method":o.method||"GET",...p.search?{"http.query":p.search}:{},...p.hash?{"http.fragment":p.hash}:{}},type:"http",level:b},{event:"response",request:o,response:c})}},1755,[1652,1715,1641,1756]);
223__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t.host||"",o=/^(.*):(\d+)$/.exec(n),u=o?o[1]:n,s=t.port??(o?Number(o[2]):void 0);return{method:t.method,port:s,protocol:t.protocol,host:t.host,hostname:u,path:t.path,headers:t.getHeaders()}}function n(t){try{return String(o(t))}catch{return""}}function o(t){const n=t.protocol||"http:",o=t.headers?.host&&String(t.headers?.host)||t.hostname||t.host||"",u=!t.port||80===t.port||443===t.port||/^(.*):(\d+)$/.test(o)?"":`:${t.port}`,s=t.path?t.path:"/",c=`${n}//${o}${u}`;return new URL(s.startsWith("//")?`${c}${s}`:s,c)}function u(o){return String(n(t(o)))}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getRequestOptions",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getRequestUrl",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getRequestUrlFromClientRequest",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getRequestUrlObject",{enumerable:!0,get:function(){return o}})},1756,[]);
224__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getOutgoingRequestSpanData",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"setIncomingResponseSpanData",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(s){const p=(0,o.getRequestUrlFromClientRequest)(s),[u,c]=(0,n.getHttpSpanDetail
224sFromUrlObject)((0,n.parseStringToURLObject)(p),"client","auto.http.client",s),h=s.getHeader("user-agent");return{name:u,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client","otel.kind":"CLIENT","http.url":p,"http.method":s.method,"http.target":s.path||"/","net.peer.name":s.host,"http.host":s.getHeader("host"),...h?{"user_agent.original":h}:{},...c},onlyIfParent:!0}}function p(t,n){const{statusCode:o,statusMessage:s,httpVersion:p,socket:h}=t,l="QUIC"!==p?.toUpperCase()?"ip_tcp":"ip_udp";n.setAttributes({"http.response.status_code":o,"network.protocol.version":p,"http.flavor":p,"network.transport":l,"net.transport":l,"http.status_text":s?.toUpperCase(),"http.status_code":o,...c(t),...u(h)})}function u(t){if(!t)return{};const{remoteAddress:n,remotePort:o}=t;return{"network.peer.address":n,"network.peer.port":o,"net.peer.ip":n,"net.peer.port":o}}function c(t){const{headers:n}=t,o=n["content-length"],s=o?parseInt(String(o),10):-1,p=n["content-encoding"];return s>=0?p&&"identity"!==p?{"http.response_content_length":s}:{"http.response_content_length_uncompressed":s}:{}}},1757,[1572,1641,1756]);
225__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"injectTracePropagationHeaders",{enumerable:!0,get:function(){return _}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),U=r(d[8]);function _(_,E){const b=(0,p.getRequestUrlFromClientRequest)(_),l=(0,e.getClient)()?.getOptions(),{tracePropagationTargets:B,propagateTraceparent:D}=l??{};if(!(0,c.shouldPropagateTraceForUrl)(b,B,E))return;if(!!_.getHeader("sentry-trace"))return;const f=(0,s.getTraceData)({propagateTraceparent:D});if(!f)return;const{"sentry-trace":G,baggage:I,traceparent:L}=f;if(G)try{_.setHeader("sentry-trace",G),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added sentry-trace header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set sentry-trace header:",(0,o.isError)(e)?e.message:"Unknown error")}if(L&&!_.getHeader("traceparent"))try{_.setHeader("traceparent",L),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added traceparent header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set traceparent header:",(0,o.isError)(e)?e.message:"Unknown error")}if(I){const e=(0,U.mergeBaggageHeaders)(_.getHeader("baggage"),I);if(e)try{_.setHeader("baggage",e),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added baggage header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set baggage header:",(0,o.isError)(e)?e.message:"Unknown error")}}}},1758,[1571,1542,1546,1559,1646,1647,1753,1756,1576]);
226__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"doubleWrapWarning",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"warning",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);const o=t=>"function"==typeof t.__unwrap,s="Double-wrapped http.client detected. Either disable spans in Sentry.httpIntegration, or disable the OpenTelemetry HTTP instrumentation. See: https://docs.sentry.io/platforms/javascript/guides/express/opentelemetry/custom-setup/#custom-http-instrumentation";let u=!1;const p=t.DEBUG_BUILD?t=>{u||(o(t.request)||o(t.get))&&(u=!0,n.debug.warn(s))}:()=>{}},1759,[1542,1546]);
227__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getHttpServerSubscriptions",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"instrumentServer",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"isStaticAssetRequest",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]),u=r(d[5]),c=r(d[6]),l=r(d[7]),S=r(d[8]),h=r(d[9]),_=r(d[10]),R=r(d[11]),f=r(d[12]),T=r(d[13]),E=r(d[14]);const A="Http.Server",y="Http.SentryServerSpans",C=new WeakMap,I=Symbol.for("sentry_http_server_instrumented");function b(t){return!t[I]&&(t[I]=!0)}function q(t,p){const f=p.emit;if(f===C.get(p))return;const T=new Proxy(f,{apply(p,f,T){const[E,...y]=T;if("request"!==E)return p.apply(f,T);const C=(0,o.getClient)(),[I,q]=y;if(!C||!b(I))return p.apply(f,T);n.DEBUG_BUILD&&s.debug.log(A,"Handling incoming request");const U=(0,o.getIsolationScope)().clone();U.setClient(C);const v=I.socket?.remoteAddress,N=I.url||"/",O=(0,u.httpRequestToRequestData)(I),{maxRequestBodySize:P="medium",ignoreRequestBody:D,sessions:w=!0,sessionFlushingDelayMS:M=6e4}=t;"none"===P||D?.(N,I)||(0,c.patchRequestToCaptureBody)(I,U,P,A),U.setSDKProcessingMetadata({normalizedRequest:O,ipAddress:v});const x=`${(I.method||"GET").toUpperCase()} ${(0,l.stripUrlQueryAndFragment)(N)}`;return U.setTransactionName(x),w&&(0,S.recordRequestSession)(C,{requestIsolationScope:U,response:q,sessionFlushingDelayMS:M??6e4}),(0,o.withIsolationScope)(U,()=>{const n=O.headers?.["sentry-trace"],s=O.headers?.baggage,u=Array.isArray(n)?n[0]:n;return(0,_.continueTrace)({sentryTrace:u,baggage:Array.isArray(s)?s[0]:s},()=>{const n=(0,o.getCurrentScope)().getPropagationContext();n.propagationSpanId=(0,h.generateSpanId)(),u||(n.traceId=(0,h.generateTraceId)(),n.sampleRand=(0,R.safeMathRandom)()),q.once("close",()=>{U.setContext("response",{status_code:q.statusCode})});const s=t.wrapServerEmitRequest;let c=!1;return s?s(I,q,O,()=>{c=p.apply(f,T)}):c=p.apply(f,T),c})})}});C.set(p,T),p.emit=T}function U(n){const s=n.wrapServerEmitRequest,u=v(n),c={...n,wrapServerEmitRequest(t,c,l,S){const h=(0,o.getClient)()?.getOptions();n.spans??(!!h&&(0,p.hasSpansEnabled)(h))?u(t,c,l,S):s?s(t,c,l,S):S()}};return{[t.HTTP_ON_SERVER_REQUEST]:t=>{const{server:n}=t;q(c,n)}}}function v(t){const{wrapServerEmitRequest:p,ignoreIncomingRequests:c,ignoreStaticAssets:S=!0,onSpanCreated:h,errorMonitor:R="error",onSpanEnd:A}=t;return(t,C,I,b)=>{return"undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__?p?p(t,C,I,q):q():b();function q(){const p=(0,o.getIsolationScope)().getClient();if(!p)return b();if(N(t,{ignoreStaticAssets:S,ignoreIncomingRequests:c}))return n.DEBUG_BUILD&&s.debug.log(y,"Skipping span creation for incoming request",t.url),b();const q=I.url||t.url||"/",U=(0,l.parseStringToURLObject)(q),v=U?U.pathname:(0,l.stripUrlQueryAndFragment)(q),O=(t.method||"GET").toUpperCase(),D=`${O} ${v}`,w=t.headers,M=w["user-agent"],x=w["x-forwarded-for"],B=t.httpVersion,H=w.host,j=H?.replace(/^(.*)(:[0-9]{1,5}
227)/,"$1")||"localhost",$=q.startsWith("https")?"https":"http",{socket:G}=t,{localAddress:F,localPort:k,remoteAddress:Q,remotePort:Y}=G??{};return(0,_.startSpanManual)({name:D,kind:E.SPAN_KIND.SERVER,attributes:{[f.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.server",[f.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.server",[f.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url","http.route":v,"otel.kind":"SERVER","net.host.ip":F,"net.host.port":k,"net.peer.ip":Q,"net.peer.port":Y,"sentry.http.prefetch":(V=t,"1"===V.headers["next-router-prefetch"]||void 0),"http.url":q,"http.method":O,"http.target":U?`${U.pathname}${U.search}`:v,"http.host":H,"net.host.name":j,"http.client_ip":"string"==typeof x?x.split(",")[0]:void 0,"http.user_agent":M,"http.scheme":$,"http.flavor":B,"net.transport":"QUIC"===B?.toUpperCase()?"ip_udp":"ip_tcp",...P(t),...(0,u.httpHeadersToSpanAttributes)(I.headers||{},p.getDataCollectionOptions())}},n=>{h?.(n,t,C);let s=!1;function o(o){s||(s=!0,n.setAttributes({"http.status_text":C.statusMessage?.toUpperCase(),"http.response.status_code":C.statusCode,"http.status_code":C.statusCode,...(0,u.httpHeadersToSpanAttributes)((0,u.headersToDict)(C.headers),p?.getDataCollectionOptions()??!1,"response")}),n.setStatus(o),A?.(n,t,C),n.end())}C.once("close",()=>{o((0,T.getSpanStatusFromHttpCode)(C.statusCode))}),C.once(R,()=>{const t=(0,T.getSpanStatusFromHttpCode)(C.statusCode);o(t.code===T.SPAN_STATUS_ERROR?t:{code:T.SPAN_STATUS_ERROR})}),b()});var V}}}function N(t,{ignoreStaticAssets:n,ignoreIncomingRequests:s}){const o=t.url,p=t.method?.toUpperCase();return"OPTIONS"===p||"HEAD"===p||!o||(!(!n||"GET"!==p||!O(o))||!!s?.(o,t))}function O(t){const n=(0,l.stripUrlQueryAndFragment)(t);return!!n.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)||!!n.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)}function P(t){const{headers:n}=t,s=n["content-length"],o=s?parseInt(String(s),10):-1,p=n["content-encoding"];return o>=0?p&&"identity"!==p?{"http.request_content_length":o}:{"http.request_content_length_uncompressed":o}:{}}},1760,[1753,1542,1546,1571,1580,1650,1761,1641,1762,1566,1592,1560,1572,1573,1651]);
228__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchRequestToCaptureBody",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);function u(u,c,f,s){let y=0;const l=[];o.DEBUG_BUILD&&t.debug.log(s,"Patching request.on");const p=new WeakMap,b=(0,n.getMaxBodyByteLength)(f);try{u.on=u.addListener=new Proxy(u.on,{apply:(n,u,c)=>{const[f,B,...h]=c;if("data"===f){o.DEBUG_BUILD&&t.debug.log(s,`Handling request.on("data") with maximum body size of ${b}b`);const c=new Proxy(B,{apply:(n,u,c)=>{try{const n=c[0],u=Buffer.from(n);y<b?(l.push(u),y+=u.byteLength):o.DEBUG_BUILD&&t.debug.log(s,`Dropping request body chunk because maximum body length of ${b}b is exceeded.`)}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Encountered error while storing body chunk.")}return Reflect.apply(n,u,c)}});return p.set(B,c),Reflect.apply(n,u,[f,c,...h])}return Reflect.apply(n,u,c)}}),u.off=u.removeListener=new Proxy(u.off,{apply:(t,o,n)=>{const[,u]=n,c=p.get(u);if(c){p.delete(u);const f=n.slice();return f[1]=c,Reflect.apply(t,o,f)}return Reflect.apply(t,o,n)}}),u.on("end",()=>{try{const t=Buffer.concat(l).toString("utf-8");if(t){const o=Buffer.byteLength(t,"utf-8")>b?`${Buffer.from(t).subarray(0,b-3).toString("utf-8")}...`:t;c.setSDKProcessingMetadata({normalizedRequest:{data:o}})}}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Error building captured request body",n)}})}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Error patching request to capture body",n)}}},1761,[1546,1542,1650]);
229__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"recordRequestSession",{enumerable:!0,get:function(){return c}});
229var s=r(d[0]),t=r(d[1]),o=r(d[2]),n=r(d[3]);const u=new WeakMap;function c(c,{requestIsolationScope:l,response:f,sessionFlushingDelayMS:D}){l.setSDKProcessingMetadata({requestSession:{status:"ok"}}),f.once("close",()=>{const f=l.getScopeData().sdkProcessingMetadata.requestSession;if(c&&f){t.DEBUG_BUILD&&s.debug.log(`Recorded request session with status: ${f.status}`);const l=new Date((0,o.safeDateNow)());l.setSeconds(0,0);const S=l.toISOString(),h=u.get(c),U=h?.[S]||{exited:0,crashed:0,errored:0};if(U[{ok:"exited",crashed:"crashed",errored:"errored"}[f.status]]++,h)h[S]=U;else{t.DEBUG_BUILD&&s.debug.log("Opened new request session aggregate.");const o={[S]:U};u.set(c,o);const l=()=>{clearTimeout(h),f(),u.delete(c);const s=Object.entries(o).map(([s,t])=>({started:s,exited:t.exited,errored:t.errored,crashed:t.crashed}));c.sendSession({aggregates:s})},f=c.on("flush",()=>{t.DEBUG_BUILD&&s.debug.log("Sending request session aggregate due to client flush"),l()}),h=setTimeout(()=>{t.DEBUG_BUILD&&s.debug.log("Sending request session aggregate due to flushing schedule"),l()},D);(0,n.safeUnref)(h)}}})}},1762,[1546,1542,1560,1605]);
230__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getComponentName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getLocationHref",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"htmlTreeAsString",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=r(d[1]).GLOBAL_OBJ,o=80;function s(t,n={}){if(!t)return"<unknown>";try{let s=t;const i=5,l=[];let f=0,c=0;const p=" > ",y=p.length;let h;const b=Array.isArray(n)?n:n.keyAttrs,A=!Array.isArray(n)&&n.maxStringLength||o;for(;s&&f++<i&&(h=u(s,b),!("html"===h||f>1&&c+l.length*y+h.length>=A));)l.push(h),c+=h.length,s=s.parentNode;return l.reverse().join(p)}catch{return"<unknown>"}}function u(o,s){const u=o,i=[];if(!u?.tagName)return"";if(n.HTMLElement&&u instanceof HTMLElement&&u.dataset){if(u.dataset.sentryComponent)return u.dataset.sentryComponent;if(u.dataset.sentryElement)return u.dataset.sentryElement}i.push(u.tagName.toLowerCase());const l=s?.length?s.filter(t=>u.getAttribute(t)).map(t=>[t,u.getAttribute(t)]):null;if(l?.length)l.forEach(t=>{i.push(`[${t[0]}="${t[1]}"]`)});else{u.id&&i.push(`#${u.id}`);const n=u.className;if(n&&(0,t.isString)(n)){const t=n.split(/\s+/);for(const n of t)i.push(`.${n}`)}}for(const t of["aria-label","type","name","title","alt"]){const n=u.getAttribute(t);n&&i.push(`[${t}="${n}"]`)}return i.join("")}function i(){try{return n.document.location.href}catch{return""}}function l(t,o=5){if(!n.HTMLElement)return null;let s=t;for(let t=0;t<o;t++){if(!s)return null;if(s instanceof HTMLElement){if(s.dataset.sentryComponent)return s.dataset.sentryComponent;if(s.dataset.sentryElement)return s.dataset.sentryElement}s=s.parentNode}return null}},1763,[1559,1544]);
231__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentEmbeddingMethod",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return I}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),E=r(d[3]),_=r(d[4]),u=r(d[5]);function T(n){const t=n.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}function c(n){const o=n??{},_={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:u.LANGCHAIN_ORIGIN,[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:E.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,[E.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"embeddings",[E.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:o.model??"unknown"};return _[E.GEN_AI_SYSTEM_ATTRIBUTE]=T(o),"dimensions"in o&&(_[E.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=o.dimensions),"encodingFormat"in o&&(_[E.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=o.encodingFormat),_}function s(t,u={}){const{recordInputs:T}=(0,_.resolveAIRecordingOptions)(u);return new Proxy(t,{apply(t,_,u){const s=c(_),I=s[E.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown";if(T){const n=u[0];null!=n&&(s[E.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]="string"==typeof n?n:JSON.stringify(n))}return(0,o.startSpan)({name:`embeddings ${I}`,op:E.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,attributes:s},()=>Reflect.apply(t,_,u).then(void 0,t=>{throw(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),t}))}})}function I(n,t){const o=n;return"function"==typeof o.embedQuery&&(o.embedQuery=s(o.embedQuery,t)),"function"==typeof o.embedDocuments&&(o.embedDocuments=s(o.embedDocuments,t)),n}},1764,[1599,1572,1592,1687,1686,1706]);
232__d(function(g,r,i,a,m,e,d){"use strict";
232Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"lazyLoadIntegration",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],c={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};function s(n){return c[n]||n.replace("Integration","").toLowerCase()}const l=t.WINDOW;async function u(n,c){const u=o.includes(n)?s(n):void 0,p=l.Sentry=l.Sentry||{};if(!u)throw new Error(`Cannot lazy load integration: ${n}`);const f=p[n];if("function"==typeof f&&!("_isShim"in f))return f;const h=I(u),y=t.WINDOW.document.createElement("script");y.src=h,y.crossOrigin="anonymous",y.referrerPolicy="strict-origin",c&&y.setAttribute("nonce",c);const b=new Promise((n,t)=>{y.addEventListener("load",()=>n()),y.addEventListener("error",t)}),C=t.WINDOW.document.currentScript,w=t.WINDOW.document.body||t.WINDOW.document.head||C?.parentElement;if(!w)throw new Error(`Could not find parent element to insert lazy-loaded ${n} script`);w.appendChild(y);try{await b}catch{throw new Error(`Error when loading integration: ${n}`)}const E=p[n];if("function"!=typeof E)throw new Error(`Could not load integration: ${n}`);return E}function I(t){const o=(0,n.getClient)(),c=o?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${n.SDK_VERSION}/${t}.min.js`,c).toString()}},1765,[1766,1950]);
233__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return t.registerSpanErrorInstrumentation}}),Object.defineProperty(_e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.getCapturedScopesOnSpan}}),Object.defineProperty(_e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return n.markSpanForOtelSourceInference}}),Object.defineProperty(_e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.setCapturedScopesOnSpan}}),Object.defineProperty(_e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return n.spanShouldInferOtelSource}}),Object.defineProperty(_e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return o.TRACING_DEFAULTS}}),Object.defineProperty(_e,"startIdleSpan",{enumerable:!0,get:function(){return o.startIdleSpan}}),Object.defineProperty(_e,"SentrySpan",{enumerable:!0,get:function(){return u.SentrySpan}}),Object.defineProperty(_e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return c.SentryNonRecordingSpan}}),Object.defineProperty(_e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return b.SPAN_STATUS_ERROR}}),Object.defineProperty(_e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return b.SPAN_STATUS_OK}}),Object.defineProperty(_e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return b.SPAN_STATUS_UNSET}}),Object.defineProperty(_e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return b.getSpanStatusFromHttpCode}}),Object.defineProperty(_e,"setHttpStatus",{enumerable:!0,get:function(){return b.setHttpStatus}}),Object.defineProperty(_e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return f.SUPPRESS_TRACING_KEY}}),Object.defineProperty(_e,"continueTrace",{enumerable:!0,get:function(){return f.continueTrace}}),Object.defineProperty(_e,"isTracingSuppressed",{enumerable:!0,get:function(){return f.isTracingSuppressed}}),Object.defineProperty(_e,"startInactiveSpan",{enumerable:!0,get:function(){return f.startInactiveSpan}}),Object.defineProperty(_e,"startNewTrace",{enumerable:!0,get:function(){return f.startNewTrace}}),Object.defineProperty(_e,"startSpan",{enumerable:!0,get:function(){return f.startSpan}}),Object.defineProperty(_e,"startSpanManual",{enumerable:!0,get:function(){return f.startSpanManual}}),Object.defineProperty(_e,"suppressTracing",{enumerable:!0,get:function(){return f.suppressTracing}}),Object.defineProperty(_e,"withActiveSpan",{enumerable:!0,get:function(){return f.withActiveSpan}}),Object.defineProperty(_e,"bindScopeToEmitter",{enumerable:!0,get:function(){return p.bindScopeToEmitter}}),Object.defineProperty(_e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromClient}}),Object.defineProperty(_e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromScope}}),Object.defineProperty(_e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromSpan}}),Object.defineProperty(_e,"spanToBaggageHeader",{enumerable:!0,get:function(){return l.spanToBaggageHeader}}),Object.defineProperty(_e,"setMeasurement",{enumerable:!0,get:function(){return d.setMeasurement}}),Object.defineProperty(_e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return d.timedEventsToMeasurements}}),Object.defineProperty(_e,"sampleSpan",{enumerable:!0,get:function(){return s.sampleSpan}}),Object.defineProperty(_e,"logSpanEnd",{enumerable:!0,get:function(){return T.logSpanEnd}}),Object.defineProperty(_e,"logSpanStart",{enumerable:!0,get:function(){return T.logSpanStart}}),Object.defineProperty(_e,"captureSpan",{enumerable:!0,get:function(){return E.captureSpan}}),Object.defineProperty(_e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return E.safeSetSpanJSONAttributes}}),Object.defineProperty(_e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return O.GEN_AI_CONVERSATION_ID_ATTRIBUTE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_HIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_KEY}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_PROFILE_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_OP}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_URL_FULL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_EMAIL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_USERNAME}}),Object.defineProperty(_e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return O.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE}}),Object.defineProperty(_e,"createEventEnvelope",{enumerable:!0,get:function(){return S.createEventEnvelope}}),Object.defineProperty(_e,"createSessionEnvelope",{enumerable:!0,get:function(){return S.createSessionEnvelope}}),Object.defineProperty(_e,"createSpanEnvelope",{enumerable:!0,get:function(){return S.createSpanEnvelope}}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return P.addEventProcessor}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return P.captureCheckIn}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return P.captureEvent}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return P.captureException}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return P.captureMessage}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return P.captureSession}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return P.close}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return P.endSession}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return P.flush}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return P.isEnabled}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return P.isInitialized}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return P.lastEventId}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return P.setAttribute}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return P.setAttributes}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return P.setContext}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return P.setConversationId}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return P.setExtra}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return P.setExtras}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return P.setTag}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return P.setTags}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return P.setUser}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return P.startSession}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return P.withMonitor}}),Object.defineProperty(_e,"getClient",{enumerable:!0,get:function(){return y.getClient}}),Object.defineProperty(_e,"getCurrentScope",{enumerable:!0,get:function(){return y.getCurrentScope}}),Object.defineProperty(_e,"getExternalPropagationContext",{enumerable:!0,get:function(){return y.getExternalPropagationContext}}),Object.defineProperty(_e,"getGlobalScope",{enumerable:!0,get:function(){return y.getGlobalScope}}),Object.defineProperty(_e,"getIsolationScope",{enumerable:!0,get:function(){return y.getIsolationScope}}),Object.defineProperty(_e,"getTraceContextFromScope",{enumerable:!0,get:function(){return y.getTraceContextFromScope}}),Object.defineProperty(_e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return y.hasExternalPropagationContext}}),Object.defineProperty(_e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return y.registerExternalPropagationContext}}),Object.defineProperty(_e,"withIsolationScope",{enumerable:!0,get:function(){return y.withIsolationScope}}),Object.defineProperty(_e,"withScope",{enumerable:!0,get:function(){return y.withScope}}),Object.defineProperty(_e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return _.getDefaultCurrentScope}}),Object.defineProperty(_e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return _.getDefaultIsolationScope}}),Object.defineProperty(_e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return j.getAsyncContextStrategy}}),Object.defineProperty(_e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return j.setAsyncContextStrategy}}),Object.defineProperty(_e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return I._INTERNAL_createTracingChannelBinding}}
233),Object.defineProperty(_e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return I.waitForTracingChannelBinding}}),Object.defineProperty(_e,"getGlobalSingleton",{enumerable:!0,get:function(){return A.getGlobalSingleton}}),Object.defineProperty(_e,"getMainCarrier",{enumerable:!0,get:function(){return A.getMainCarrier}}),Object.defineProperty(_e,"closeSession",{enumerable:!0,get:function(){return N.closeSession}}),Object.defineProperty(_e,"makeSession",{enumerable:!0,get:function(){return N.makeSession}}),Object.defineProperty(_e,"updateSession",{enumerable:!0,get:function(){return N.updateSession}}),Object.defineProperty(_e,"Scope",{enumerable:!0,get:function(){return R.Scope}}),Object.defineProperty(_e,"notifyEventProcessors",{enumerable:!0,get:function(){return C.notifyEventProcessors}}),Object.defineProperty(_e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return M.SENTRY_API_VERSION}}),Object.defineProperty(_e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return M.getEnvelopeEndpointWithUrlEncodedAuth}}),Object.defineProperty(_e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return M.getReportDialogEndpoint}}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return U.Client}}),Object.defineProperty(_e,"initAndBind",{enumerable:!0,get:function(){return L.initAndBind}}),Object.defineProperty(_e,"setCurrentClient",{enumerable:!0,get:function(){return L.setCurrentClient}}),Object.defineProperty(_e,"createTransport",{enumerable:!0,get:function(){return F.createTransport}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return v.makeOfflineTransport}}),Object.defineProperty(_e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return B.MULTIPLEXED_TRANSPORT_EXTRA_KEY}}),Object.defineProperty(_e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return B.makeMultiplexedTransport}}),Object.defineProperty(_e,"addIntegration",{enumerable:!0,get:function(){return h.addIntegration}}),Object.defineProperty(_e,"defineIntegration",{enumerable:!0,get:function(){return h.defineIntegration}}),Object.defineProperty(_e,"extendIntegration",{enumerable:!0,get:function(){return h.extendIntegration}}),Object.defineProperty(_e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return h.getIntegrationsToSetup}}),Object.defineProperty(_e,"installedIntegrations",{enumerable:!0,get:function(){return h.installedIntegrations}}),Object.defineProperty(_e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return D._INTERNAL_clearAiProviderSkips}}),Object.defineProperty(_e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return D._INTERNAL_shouldSkipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return D._INTERNAL_skipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_filterKeyValueData",{enumerable:!0,get:function(){return G.filterKeyValueData}}),Object.defineProperty(_e,"_INTERNAL_filterCookies",{enumerable:!0,get:function(){return H.filterCookies}}),Object.defineProperty(_e,"_INTERNAL_filterQueryParams",{enumerable:!0,get:function(){return x.filterQueryParams}}),Object.defineProperty(_e,"envToBool",{enumerable:!0,get:function(){return k.envToBool}}),Object.defineProperty(_e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return Y.applyScopeDataToEvent}}),Object.defineProperty(_e,"getCombinedScopeData",{enumerable:!0,get:function(){return Y.getCombinedScopeData}}),Object.defineProperty(_e,"mergeScopeData",{enumerable:!0,get:function(){return Y.mergeScopeData}}),Object.defineProperty(_e,"prepareEvent",{enumerable:!0,get:function(){return K.prepareEvent}}),Object.defineProperty(_e,"createCheckInEnvelope",{enumerable:!0,get:function(){return w.createCheckInEnvelope}}),Object.defineProperty(_e,"hasSpansEnabled",{enumerable:!0,get:function(){return z.hasSpansEnabled}}),Object.defineProperty(_e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return V.isStreamedBeforeSendSpanCallback}}),Object.defineProperty(_e,"withStreamedSpan",{enumerable:!0,get:function(){return V.withStreamedSpan}}),Object.defineProperty(_e,"isSentryRequestUrl",{enumerable:!0,get:function(){return q.isSentryRequestUrl}}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return X.handleCallbackErrors}}),Object.defineProperty(_e,"fmt",{enumerable:!0,get:function(){return W.fmt}}),Object.defineProperty(_e,"parameterize",{enumerable:!0,get:function(){return W.parameterize}}),Object.defineProperty(_e,"handleTunnelRequest",{enumerable:!0,get:function(){return J.handleTunnelRequest}}),Object.defineProperty(_e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return Q.addAutoIpAddressToSession}}),Object.defineProperty(_e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return Q.addAutoIpAddressToUser}}),Object.defineProperty(_e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return Z.INTERNAL_getSegmentSpan}}),Object.defineProperty(_e,"addChildSpanToSpan",{enumerable:!0,get:function(){return Z.addChildSpanToSpan}}),Object.defineProperty(_e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return Z.convertSpanLinksForEnvelope}}),Object.defineProperty(_e,"getActiveSpan",{enumerable:!0,get:function(){return Z.getActiveSpan}}),Object.defineProperty(_e,"getRootSpan",{enumerable:!0,get:function(){return Z.getRootSpan}}),Object.defineProperty(_e,"getSpanDescendants",{enumerable:!0,get:function(){return Z.getSpanDescendants}}),Object.defineProperty(_e,"getStatusMessage",{enumerable:!0,get:function(){return Z.getStatusMessage}}),Object.defineProperty(_e,"spanIsSampled",{enumerable:!0,get:function(){return Z.spanIsSampled}}),Object.defineProperty(_e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return Z.spanTimeInputToSeconds}}),Object.defineProperty(_e,"spanToJSON",{enumerable:!0,get:function(){return Z.spanToJSON}}),Object.defineProperty(_e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return Z.spanToStreamedSpanJSON}}),Object.defineProperty(_e,"spanToTraceContext",{enumerable:!0,get:function(){return Z.spanToTraceContext}}),Object.defineProperty(_e,"spanToTraceHeader",{enumerable:!0,get:function(){return Z.spanToTraceHeader}}),Object.defineProperty(_e,"updateSpanName",{enumerable:!0,get:function(){return Z.updateSpanName}}),Object.defineProperty(_e,"_INTERNAL_setSpanForScope",{enumerable:!0,get:function(){return $._setSpanForScope}}),Object.defineProperty(_e,"parseSampleRate",{enumerable:!0,get:function(){return ee.parseSampleRate}}),Object.defineProperty(_e,"applySdkMetadata",{enumerable:!0,get:function(){return te.applySdkMetadata}}),Object.defineProperty(_e,"getTraceData",{enumerable:!0,get:function(){return ne.getTraceData}}),Object.defineProperty(_e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return re.shouldPropagateTraceForUrl}}),Object.defineProperty(_e,"getTraceMetaTags",{enumerable:!0,get:function(){return oe.getTraceMetaTags}}),Object.defineProperty(_e,"debounce",{enumerable:!0,get:function(){return ue.debounce}}),Object.defineProperty(_e,"derefWeakRef",{enumerable:!0,get:function(){return ie.derefWeakRef}}),Object.defineProperty(_e,"makeWeakRef",{enumerable:!0,get:function(){return ie.makeWeakRef}}),Object.defineProperty(_e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return ae.shouldIgnoreSpan}}),Object.defineProperty(_e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return ce.MAX_BODY_BYTE_LENGTH}}),Object.defineProperty(_e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return ce.captureBodyFromWinterCGRequest}}),Object.defineProperty(_e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return ce.extractQueryParamsFromUrl}}
233),Object.defineProperty(_e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return ce.getMaxBodyByteLength}}),Object.defineProperty(_e,"headersToDict",{enumerable:!0,get:function(){return ce.headersToDict}}),Object.defineProperty(_e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return ce.httpHeadersToSpanAttributes}}),Object.defineProperty(_e,"httpRequestToRequestData",{enumerable:!0,get:function(){return ce.httpRequestToRequestData}}),Object.defineProperty(_e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return ce.winterCGHeadersToDict}}),Object.defineProperty(_e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return ce.winterCGRequestToRequestData}}),Object.defineProperty(_e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEFAULT_ENVIRONMENT}}),Object.defineProperty(_e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEV_ENVIRONMENT}}),Object.defineProperty(_e,"SPAN_KIND",{enumerable:!0,get:function(){return fe.SPAN_KIND}}),Object.defineProperty(_e,"spanKindToName",{enumerable:!0,get:function(){return fe.spanKindToName}}),Object.defineProperty(_e,"addBreadcrumb",{enumerable:!0,get:function(){return pe.addBreadcrumb}}),Object.defineProperty(_e,"functionToStringIntegration",{enumerable:!0,get:function(){return le.functionToStringIntegration}}),Object.defineProperty(_e,"eventFiltersIntegration",{enumerable:!0,get:function(){return de.eventFiltersIntegration}}),Object.defineProperty(_e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return de.inboundFiltersIntegration}}),Object.defineProperty(_e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return ge.linkedErrorsIntegration}}),Object.defineProperty(_e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return me.moduleMetadataIntegration}}),Object.defineProperty(_e,"requestDataIntegration",{enumerable:!0,get:function(){return se.requestDataIntegration}}),Object.defineProperty(_e,"captureConsoleIntegration",{enumerable:!0,get:function(){return Te.captureConsoleIntegration}}),Object.defineProperty(_e,"dedupeIntegration",{enumerable:!0,get:function(){return Ee.dedupeIntegration}}),Object.defineProperty(_e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return Oe.extraErrorDataIntegration}}),Object.defineProperty(_e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return Se.rewriteFramesIntegration}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return Pe.instrumentSupabaseClient}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return Pe.supabaseIntegration}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return ye.zodErrorsIntegration}}),Object.defineProperty(_e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return je.thirdPartyErrorFilterIntegration}}),Object.defineProperty(_e,"consoleIntegration",{enumerable:!0,get:function(){return Ie.consoleIntegration}}),Object.defineProperty(_e,"featureFlagsIntegration",{enumerable:!0,get:function(){return Ae.featureFlagsIntegration}}),Object.defineProperty(_e,"growthbookIntegration",{enumerable:!0,get:function(){return Ne.growthbookIntegration}}),Object.defineProperty(_e,"conversationIdIntegration",{enumerable:!0,get:function(){return Re.conversationIdIntegration}}),Object.defineProperty(_e,"profiler",{enumerable:!0,get:function(){return Ce.profiler}}),Object.defineProperty(_e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return Me._INTERNAL_getTracingHeadersForFetchRequest}}),Object.defineProperty(_e,"instrumentFetchRequest",{enumerable:!0,get:function(){return Me.instrumentFetchRequest}}),Object.defineProperty(_e,"captureFeedback",{enumerable:!0,get:function(){return Ue.captureFeedback}}),Object.defineProperty(_e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureLog}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureSerializedLog}}),Object.defineProperty(_e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return Le._INTERNAL_flushLogsBuffer}}),Object.defineProperty(_e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return ve.consoleLoggingIntegration}}),Object.defineProperty(_e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return Be._INTERNAL_captureMetric}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return Be._INTERNAL_captureSerializedMetric}}),Object.defineProperty(_e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return Be._INTERNAL_flushMetricsBuffer}}),Object.defineProperty(_e,"createConsolaReporter",{enumerable:!0,get:function(){return De.createConsolaReporter}}),Object.defineProperty(_e,"addVercelAiProcessors",{enumerable:!0,get:function(){return Ge.addVercelAiProcessors}}),Object.defineProperty(_e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return Ge.getProviderMetadataAttributes}}),Object.defineProperty(_e,"getTruncatedJsonString",{enumerable:!0,get:function(){return He.getTruncatedJsonString}}),Object.defineProperty(_e,"shouldEnableTruncation",{enumerable:!0,get:function(){return He.shouldEnableTruncation}}),Object.defineProperty(_e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE}}),Object.defineProperty(_e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE}}),Object.defineProperty(_e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return ke._INTERNAL_cleanupToolCallSpanContext}}),Object.defineProperty(_e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return ke._INTERNAL_getSpanContextForToolCallId}}),Object.defineProperty(_e,"_INTERNAL_toolCallSpanContextMap",{enumerable:!0,get:function(){return Ye.toolCallSpanContextMap}}),Object.defineProperty(_e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return Ke.instrumentOpenAiClient}}),Object.defineProperty(_e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return we.OPENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return ze.instrumentAnthropicAiClient}}),Object.defineProperty(_e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return Ve.ANTHROPIC_AI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return qe.instrumentGoogleGenAIClient}}),Object.defineProperty(_e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return Xe.GOOGLE_GENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return We.createLangChainCallbackHandler}}),Object.defineProperty(_e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return Je._INTERNAL_mergeLangChainCallbackHandler}}),Object.defineProperty(_e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return Qe.LANGCHAIN_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return Ze.instrumentCreateReactAgent}}),Object.defineProperty(_e,"instrumentLangGraph",{enumerable:!0,get:function(){return Ze.instrumentLangGraph}}),Object.defineProperty(_e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return Ze.instrumentStateGraphCompile}}),Object.defineProperty(_e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return $e.LANGGRAPH_INTEGRATION_NAME}}),Object.defineProperty(_e,"SpanBuffer",{enumerable:!0,get:function(){return et.SpanBuffer}}),Object.defineProperty(_e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return tt.hasSpanStreamingEnabled}}),Object.defineProperty(_e,"spanStreamingIntegration",{enumerable:!0,get:function(){return nt.spanStreamingIntegration}}),Object.defineProperty(_e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return rt._INTERNAL_FLAG_BUFFER_SIZE}}),Object.defineProperty(_e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return rt._INTERNAL_MAX_FLAGS_PER_SPAN}}),Object.defineProperty(_e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return rt._INTERNAL_addFeatureFlagToActiveSpan}}),Object.defineProperty(_e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return rt._INTERNAL_copyFlagsFromScopeToEvent}}),Object.defineProperty(_e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return rt._INTERNAL_insertFlagToScope}}),Object.defineProperty(_e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return ot.applyAggregateErrorsToEvent}}),Object.defineProperty(_e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return ut.getBreadcrumbLogLevelFromHttpStatusCode}}),Object.defineProperty(_e,"dsnFromString",{enumerable:!0,get:function(){return it.dsnFromString}}),Object.defineProperty(_e,"dsnToString",{enumerable:!0,get:function(){return it.dsnToString}}),Object.defineProperty(_e,"makeDsn",{enumerable:!0,get:function(){return it.makeDsn}}),Object.defineProperty(_e,"SentryError",{enumerable:!0,get:function(){return at.SentryError}}),Object.defineProperty(_e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return ct.GLOBAL_OBJ}}),Object.defineProperty(_e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationFilter}}),Object.defineProperty(_e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationHandler}}),Object.defineProperty(_e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchEndInstrumentationHandler}}),Object.defineProperty(_e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return pt.addGlobalErrorInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return lt.addGlobalUnhandledRejectionInstrumentationHandler}}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return dt.addHandler}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return dt.maybeInstrument}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return dt.resetInstrumentationHandlers}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return dt.triggerHandlers}}),Object.defineProperty(_e,"isDOMError",{enumerable:!0,get:function(){return gt.isDOMError}}),Object.defineProperty(_e,"isDOMException",{enumerable:!0,get:function(){return gt.isDOMException}}),Object.defineProperty(_e,"isElement",{enumerable:!0,get:function(){return gt.isElement}}),Object.defineProperty(_e,"isError",{enumerable:!0,get:function(){return gt.isError}}),Object.defineProperty(_e,"isErrorEvent",{enumerable:!0,get:function(){return gt.isErrorEvent}}),Object.defineProperty(_e,"isEvent",{enumerable:!0,get:function(){return gt.isEvent}}),Object.defineProperty(_e,"isInstanceOf",{enumerable:!0,get:function(){return gt.isInstanceOf}}),Object.defineProperty(_e,"isParameterizedString",{enumerable:!0,get:function(){return gt.isParameterizedString}}),Object.defineProperty(_e,"isPlainObject",{enumerable:!0,get:function(){return gt.isPlainObject}}),Object.defineProperty(_e,"isPrimitive",{enumerable:!0,get:function(){return gt.isPrimitive}}),Object.defineProperty(_e,"isRegExp",{enumerable:!0,get:function(){return gt.isRegExp}}),Object.defineProperty(_e,"isString",{enumerable:!0,get:function(){return gt.isString}}),Object.defineProperty(_e,"isSyntheticEvent",{enumerable:!0,get:function(){return gt.isSyntheticEvent}}),Object.defineProperty(_e,"isThenable",{enumerable:!0,get:function(){return gt.isThenable}}),Object.defineProperty(_e,"isVueViewModel",{enumerable:!0,get:function(){return gt.isVueViewModel}}),Object.defineProperty(_e,"isBrowser",{enumerable:!0,get:function(){return mt.isBrowser}}
233),Object.defineProperty(_e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return st.CONSOLE_LEVELS}}),Object.defineProperty(_e,"consoleSandbox",{enumerable:!0,get:function(){return st.consoleSandbox}}),Object.defineProperty(_e,"debug",{enumerable:!0,get:function(){return st.debug}}),Object.defineProperty(_e,"originalConsoleMethods",{enumerable:!0,get:function(){return st.originalConsoleMethods}}),Object.defineProperty(_e,"addContextToFrame",{enumerable:!0,get:function(){return Tt.addContextToFrame}}),Object.defineProperty(_e,"addExceptionMechanism",{enumerable:!0,get:function(){return Tt.addExceptionMechanism}}),Object.defineProperty(_e,"addExceptionTypeValue",{enumerable:!0,get:function(){return Tt.addExceptionTypeValue}}),Object.defineProperty(_e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return Tt.checkOrSetAlreadyCaught}}),Object.defineProperty(_e,"getEventDescription",{enumerable:!0,get:function(){return Tt.getEventDescription}}),Object.defineProperty(_e,"isAlreadyCaptured",{enumerable:!0,get:function(){return Tt.isAlreadyCaptured}}),Object.defineProperty(_e,"parseSemver",{enumerable:!0,get:function(){return Tt.parseSemver}}),Object.defineProperty(_e,"uuid4",{enumerable:!0,get:function(){return Tt.uuid4}}),Object.defineProperty(_e,"normalize",{enumerable:!0,get:function(){return Et.normalize}}),Object.defineProperty(_e,"normalizeToSize",{enumerable:!0,get:function(){return Et.normalizeToSize}}),Object.defineProperty(_e,"normalizeUrlToBase",{enumerable:!0,get:function(){return Et.normalizeUrlToBase}}),Object.defineProperty(_e,"setNormalizeStringifier",{enumerable:!0,get:function(){return Et.setNormalizeStringifier}}),Object.defineProperty(_e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return Ot.setNormalizationDepthOverrideHint}}),Object.defineProperty(_e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return Ot.setSkipNormalizationHint}}),Object.defineProperty(_e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return St.addNonEnumerableProperty}}),Object.defineProperty(_e,"convertToPlainObject",{enumerable:!0,get:function(){return St.convertToPlainObject}}),Object.defineProperty(_e,"dropUndefinedKeys",{enumerable:!0,get:function(){return St.dropUndefinedKeys}}),Object.defineProperty(_e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return St.extractExceptionKeysForMessage}}),Object.defineProperty(_e,"fill",{enumerable:!0,get:function(){return St.fill}}),Object.defineProperty(_e,"getOriginalFunction",{enumerable:!0,get:function(){return St.getOriginalFunction}}),Object.defineProperty(_e,"markFunctionWrapped",{enumerable:!0,get:function(){return St.markFunctionWrapped}}),Object.defineProperty(_e,"objectify",{enumerable:!0,get:function(){return St.objectify}}),Object.defineProperty(_e,"basename",{enumerable:!0,get:function(){return Pt.basename}}),Object.defineProperty(_e,"dirname",{enumerable:!0,get:function(){return Pt.dirname}}),Object.defineProperty(_e,"isAbsolute",{enumerable:!0,get:function(){return Pt.isAbsolute}}),Object.defineProperty(_e,"join",{enumerable:!0,get:function(){return Pt.join}}),Object.defineProperty(_e,"normalizePath",{enumerable:!0,get:function(){return Pt.normalizePath}}),Object.defineProperty(_e,"relative",{enumerable:!0,get:function(){return Pt.relative}}),Object.defineProperty(_e,"resolve",{enumerable:!0,get:function(){return Pt.resolve}}),Object.defineProperty(_e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return yt.SENTRY_BUFFER_FULL_ERROR}}),Object.defineProperty(_e,"makePromiseBuffer",{enumerable:!0,get:function(){return yt.makePromiseBuffer}}),Object.defineProperty(_e,"severityLevelFromString",{enumerable:!0,get:function(){return _t.severityLevelFromString}}),Object.defineProperty(_e,"replaceExports",{enumerable:!0,get:function(){return jt.replaceExports}}),Object.defineProperty(_e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return It.UNKNOWN_FUNCTION}}),Object.defineProperty(_e,"createStackParser",{enumerable:!0,get:function(){return It.createStackParser}}),Object.defineProperty(_e,"getFramesFromEvent",{enumerable:!0,get:function(){return It.getFramesFromEvent}}),Object.defineProperty(_e,"getFunctionName",{enumerable:!0,get:function(){return It.getFunctionName}}),Object.defineProperty(_e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return It.stackParserFromStackParserOptions}}),Object.defineProperty(_e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return It.stripSentryFramesAndReverse}}),Object.defineProperty(_e,"isMatchingPattern",{enumerable:!0,get:function(){return At.isMatchingPattern}}),Object.defineProperty(_e,"safeJoin",{enumerable:!0,get:function(){return At.safeJoin}}),Object.defineProperty(_e,"snipLine",{enumerable:!0,get:function(){return At.snipLine}}),Object.defineProperty(_e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return At.stringMatchesSomePattern}}),Object.defineProperty(_e,"truncate",{enumerable:!0,get:function(){return At.truncate}}),Object.defineProperty(_e,"isNativeFunction",{enumerable:!0,get:function(){return Nt.isNativeFunction}}
233),Object.defineProperty(_e,"supportsDOMError",{enumerable:!0,get:function(){return Nt.supportsDOMError}}),Object.defineProperty(_e,"supportsDOMException",{enumerable:!0,get:function(){return Nt.supportsDOMException}}),Object.defineProperty(_e,"supportsErrorEvent",{enumerable:!0,get:function(){return Nt.supportsErrorEvent}}),Object.defineProperty(_e,"supportsFetch",{enumerable:!0,get:function(){return Nt.supportsFetch}}),Object.defineProperty(_e,"supportsHistory",{enumerable:!0,get:function(){return Nt.supportsHistory}}),Object.defineProperty(_e,"supportsNativeFetch",{enumerable:!0,get:function(){return Nt.supportsNativeFetch}}),Object.defineProperty(_e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return Nt.supportsReferrerPolicy}}),Object.defineProperty(_e,"supportsReportingObserver",{enumerable:!0,get:function(){return Nt.supportsReportingObserver}}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return Rt.SyncPromise}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return Rt.rejectedSyncPromise}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return Rt.resolvedSyncPromise}}),Object.defineProperty(_e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return Ct.browserPerformanceTimeOrigin}}),Object.defineProperty(_e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return Ct.dateTimestampInSeconds}}),Object.defineProperty(_e,"timestampInSeconds",{enumerable:!0,get:function(){return Ct.timestampInSeconds}}),Object.defineProperty(_e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return Mt.TRACEPARENT_REGEXP}}),Object.defineProperty(_e,"extractTraceparentData",{enumerable:!0,get:function(){return Mt.extractTraceparentData}}),Object.defineProperty(_e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return Mt.generateSentryTraceHeader}}),Object.defineProperty(_e,"generateTraceparentHeader",{enumerable:!0,get:function(){return Mt.generateTraceparentHeader}}),Object.defineProperty(_e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return Mt.propagationContextFromHeaders}}),Object.defineProperty(_e,"shouldContinueTrace",{enumerable:!0,get:function(){return Mt.shouldContinueTrace}}),Object.defineProperty(_e,"getSDKSource",{enumerable:!0,get:function(){return Ut.getSDKSource}}),Object.defineProperty(_e,"isBrowserBundle",{enumerable:!0,get:function(){return Ut.isBrowserBundle}}),Object.defineProperty(_e,"addItemToEnvelope",{enumerable:!0,get:function(){return Lt.addItemToEnvelope}}),Object.defineProperty(_e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return Lt.createAttachmentEnvelopeItem}}),Object.defineProperty(_e,"createEnvelope",{enumerable:!0,get:function(){return Lt.createEnvelope}}),Object.defineProperty(_e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return Lt.createEventEnvelopeHeaders}}),Object.defineProperty(_e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return Lt.createSpanEnvelopeItem}}),Object.defineProperty(_e,"envelopeContainsItemType",{enumerable:!0,get:function(){return Lt.envelopeContainsItemType}}),Object.defineProperty(_e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return Lt.envelopeItemTypeToDataCategory}}),Object.defineProperty(_e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return Lt.forEachEnvelopeItem}}),Object.defineProperty(_e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return Lt.getSdkMetadataForEnvelopeHeader}}),Object.defineProperty(_e,"parseEnvelope",{enumerable:!0,get:function(){return Lt.parseEnvelope}}),Object.defineProperty(_e,"serializeEnvelope",{enumerable:!0,get:function(){return Lt.serializeEnvelope}}),Object.defineProperty(_e,"createClientReportEnvelope",{enumerable:!0,get:function(){return Ft.createClientReportEnvelope}}),Object.defineProperty(_e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return vt.DEFAULT_RETRY_AFTER}}),Object.defineProperty(_e,"disabledUntil",{enumerable:!0,get:function(){return vt.disabledUntil}}),Object.defineProperty(_e,"isRateLimited",{enumerable:!0,get:function(){return vt.isRateLimited}}),Object.defineProperty(_e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return vt.parseRetryAfterHeader}}),Object.defineProperty(_e,"updateRateLimits",{enumerable:!0,get:function(){return vt.updateRateLimits}}),Object.defineProperty(_e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return Bt.MAX_BAGGAGE_STRING_LENGTH}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return Bt.SENTRY_BAGGAGE_KEY_PREFIX}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return Bt.SENTRY_BAGGAGE_KEY_PREFIX_REGEX}}),Object.defineProperty(_e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return Bt.baggageHeaderToDynamicSamplingContext}}),Object.defineProperty(_e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return Bt.dynamicSamplingContextToSentryBaggageHeader}}),Object.defineProperty(_e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return Bt.mergeBaggageHeaders}}),Object.defineProperty(_e,"objectToBaggageHeader",{enumerable:!0,get:function(){return Bt.objectToBaggageHeader}}),Object.defineProperty(_e,"parseBaggageHeader",{enumerable:!0,get:function(){return Bt.parseBaggageHeader}}
233),Object.defineProperty(_e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return ht.getHttpSpanDetailsFromUrlObject}}),Object.defineProperty(_e,"getSanitizedUrlString",{enumerable:!0,get:function(){return ht.getSanitizedUrlString}}),Object.defineProperty(_e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return ht.getSanitizedUrlStringFromUrlObject}}),Object.defineProperty(_e,"isURLObjectRelative",{enumerable:!0,get:function(){return ht.isURLObjectRelative}}),Object.defineProperty(_e,"parseStringToURLObject",{enumerable:!0,get:function(){return ht.parseStringToURLObject}}),Object.defineProperty(_e,"parseUrl",{enumerable:!0,get:function(){return ht.parseUrl}}),Object.defineProperty(_e,"stripDataUrlContent",{enumerable:!0,get:function(){return ht.stripDataUrlContent}}),Object.defineProperty(_e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return ht.stripUrlQueryAndFragment}}),Object.defineProperty(_e,"_INTERNAL_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return Dt._enhanceErrorWithSentryInfo}}),Object.defineProperty(_e,"eventFromMessage",{enumerable:!0,get:function(){return Dt.eventFromMessage}}),Object.defineProperty(_e,"eventFromUnknownInput",{enumerable:!0,get:function(){return Dt.eventFromUnknownInput}}),Object.defineProperty(_e,"exceptionFromError",{enumerable:!0,get:function(){return Dt.exceptionFromError}}),Object.defineProperty(_e,"parseStackFrames",{enumerable:!0,get:function(){return Dt.parseStackFrames}}),Object.defineProperty(_e,"LRUMap",{enumerable:!0,get:function(){return Gt.LRUMap}}),Object.defineProperty(_e,"generateSpanId",{enumerable:!0,get:function(){return Ht.generateSpanId}}),Object.defineProperty(_e,"generateTraceId",{enumerable:!0,get:function(){return Ht.generateTraceId}}),Object.defineProperty(_e,"SDK_VERSION",{enumerable:!0,get:function(){return xt.SDK_VERSION}}),Object.defineProperty(_e,"getDebugImagesForResources",{enumerable:!0,get:function(){return kt.getDebugImagesForResources}}),Object.defineProperty(_e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return kt.getFilenameToDebugIdMap}}),Object.defineProperty(_e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return Yt.getFilenameToMetadataMap}}),Object.defineProperty(_e,"escapeStringForRegex",{enumerable:!0,get:function(){return Kt.escapeStringForRegex}}),Object.defineProperty(_e,"_INTERNAL_safeDateNow",{enumerable:!0,get:function(){return wt.safeDateNow}}),Object.defineProperty(_e,"_INTERNAL_safeMathRandom",{enumerable:!0,get:function(){return wt.safeMathRandom}}),Object.defineProperty(_e,"_INTERNAL_withRandomSafeContext",{enumerable:!0,get:function(){return wt.withRandomSafeContext}}),Object.defineProperty(_e,"getComponentName",{enumerable:!0,get:function(){return zt.getComponentName}}),Object.defineProperty(_e,"getLocationHref",{enumerable:!0,get:function(){return zt.getLocationHref}}),Object.defineProperty(_e,"htmlTreeAsString",{enumerable:!0,get:function(){return zt.htmlTreeAsString}}),Object.defineProperty(_e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return Vt.instrumentLangChainEmbeddings}}),Object.defineProperty(_e,"logger",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(_e,"metrics",{enumerable:!0,get:function(){return he}});var t=r(_d[0]),n=r(_d[1]),o=r(_d[2]),u=r(_d[3]),c=r(_d[4]),b=r(_d[5]),f=r(_d[6]),p=r(_d[7]),l=r(_d[8]),d=r(_d[9]),s=r(_d[10]),T=r(_d[11]),E=r(_d[12]),O=r(_d[13]),S=r(_d[14]),P=r(_d[15]),y=r(_d[16]),_=r(_d[17]),j=r(_d[18]),I=r(_d[19]),A=r(_d[20]),N=r(_d[21]),R=r(_d[22]),C=r(_d[23]),M=r(_d[24]),U=r(_d[25]),L=r(_d[26]),F=r(_d[27]),v=r(_d[28]),B=r(_d[29]),h=r(_d[30]),D=r(_d[31]),G=r(_d[32]),H=r(_d[33]),x=r(_d[34]),k=r(_d[35]),Y=r(_d[36]),K=r(_d[37]),w=r(_d[38]),z=r(_d[39]),V=r(_d[40]),q=r(_d[41]),X=r(_d[42]),W=r(_d[43]),J=r(_d[44]),Q=r(_d[45]),Z=r(_d[46]),$=r(_d[47]),ee=r(_d[48]),te=r(_d[49]),ne=r(_d[50]),re=r(_d[51]),oe=r(_d[52]),ue=r(_d[53]),ie=r(_d[54]),ae=r(_d[55]),ce=r(_d[56]),be=r(_d[57]),fe=r(_d[58]),pe=r(_d[59]),le=r(_d[60]),de=r(_d[61]),ge=r(_d[62]),me=r(_d[63]),se=r(_d[64]),Te=r(_d[65]),Ee=r(_d[66]),Oe=r(_d[67]),Se=r(_d[68]),Pe=r(_d[69]),ye=r(_d[70]),je=r(_d[71]),Ie=r(_d[72]),Ae=r(_d[73]),Ne=r(_d[74]),Re=r(_d[75]),Ce=r(_d[76]),Me=r(_d[77]),Ue=r(_d[78]),Le=r(_d[79]),Fe=e(r(_d[80])),ve=r(_d[81]),Be=r(_d[82]),he=e(r(_d[83])),De=r(_d[84]),Ge=r(_d[85]),He=r(_d[86]),xe=r(_d[87]),ke=r(_d[88]),Ye=r(_d[89]),Ke=r(_d[90]),we=r(_d[91]),ze=r(_d[92]),Ve=r(_d[93]),qe=r(_d[94]),Xe=r(_d[95]),We=r(_d[96]),Je=r(_d[97]),Qe=r(_d[98]),Ze=r(_d[99]),$e=r(_d[100]),et=r(_d[101]),tt=r(_d[102]),nt=r(_d[103]),rt=r(_d[104]),ot=r(_d[105]),ut=r(_d[106]),it=r(_d[107]),at=r(_d[108]),ct=r(_d[109]),bt=r(_d[110]),ft=r(_d[111]
233),pt=r(_d[112]),lt=r(_d[113]),dt=r(_d[114]),gt=r(_d[115]),mt=r(_d[116]),st=r(_d[117]),Tt=r(_d[118]),Et=r(_d[119]),Ot=r(_d[120]),St=r(_d[121]),Pt=r(_d[122]),yt=r(_d[123]),_t=r(_d[124]),jt=r(_d[125]),It=r(_d[126]),At=r(_d[127]),Nt=r(_d[128]),Rt=r(_d[129]),Ct=r(_d[130]),Mt=r(_d[131]),Ut=r(_d[132]),Lt=r(_d[133]),Ft=r(_d[134]),vt=r(_d[135]),Bt=r(_d[136]),ht=r(_d[137]),Dt=r(_d[138]),Gt=r(_d[139]),Ht=r(_d[140]),xt=r(_d[141]),kt=r(_d[142]),Yt=r(_d[143]),Kt=r(_d[144]),wt=r(_d[145]),zt=r(_d[146]),Vt=r(_d[147])},1766,[1767,1800,1805,1809,1808,1799,1818,1821,1811,1816,1820,1815,1822,1798,1810,1825,1797,1780,1778,1830,1773,1782,1781,1827,1832,1833,1856,1847,1857,1858,1834,1859,1860,1861,1863,1864,1823,1826,1865,1806,1813,1866,1819,1868,1869,1870,1777,1793,1804,1871,1872,1873,1874,1875,1794,1807,1876,1812,1877,1878,1879,1880,1881,1884,1886,1888,1891,1892,1893,1895,1896,1897,1898,1899,1901,1902,1903,1904,1905,1835,1906,1907,1843,1909,1910,1911,1912,1913,1917,1916,1919,1920,1923,1924,1927,1928,1931,1933,1932,1934,1935,1937,1817,1940,1900,1882,1941,1803,1942,1770,1889,1943,1769,1776,1771,1785,1840,1772,1783,1788,1789,1784,1894,1848,1890,1945,1775,1787,1944,1828,1790,1801,1842,1814,1850,1849,1802,1867,1883,1946,1792,1774,1829,1885,1947,1786,1948,1949]);
234__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return _}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),l=r(d[4]),u=r(d[5]);let s=!1;function _(){function _(){const t=(0,l.getActiveSpan)(),o=t&&(0,l.getRootSpan)(t);if(o){const t="internal_error";n.DEBUG_BUILD&&c.debug.log(`[Tracing] Root span: ${t} -> Global error occurred`),o.setStatus({code:u.SPAN_STATUS_ERROR,message:t})}}s||(s=!0,(0,t.addGlobalErrorInstrumentationHandler)(_),(0,o.addGlobalUnhandledRejectionInstrumentationHandler)(_))}},1767,[1768,1769,1776,1772,1777,1799]);
235__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEBUG_BUILD",{enumerable:!0,get:function(){return _}});const _='undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1768,[]);
236__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);let o=null;function u(n){const o="error";(0,t.addHandler)(o,n),(0,t.maybeInstrument)(o,l)}function l(){o=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(n,u,l,_,c){const s={column:_,error:c,line:l,msg:n,url:u};return(0,t.triggerHandlers)("error",s),!!o&&o.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},1769,[1770,1771]);
237__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return t}});const t=globalThis},1770,[]);
238__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return b}});var e=r(d[0]),n=r(d[1]),t=r(d[2]);const o={},u={};function c(e,n){return o[e]=o[e]||[],o[e].push(n),()=>{const t=o[e];if(t){const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}}function f(){Object.keys(o).forEach(e=>{o[e]=void 0})}function s(t,o){if(!u[t]){u[t]=!0;try{o()}catch(o){e.DEBUG_BUILD&&n.debug.error(`Error while instrumenting ${t}`,o)}}}function b(u,c){const f=u&&o[u];if(f)for(const o of f)try{o(c)}catch(c){e.DEBUG_BUILD&&n.debug.error(`Error while triggering instrumentation handler.\nType: ${u}\nName: ${(0,t.getFunctionName)(o)}\nError:`,c)}}},1771,[1768,1772,1775]);
239__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"consoleSandbox",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"originalConsoleMethods",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const c=["debug","info","warn","error","log","assert","trace"],u={};function l(n){if(!("console"in o.GLOBAL_OBJ))return n();const t=o.GLOBAL_OBJ.console,c={},l=Object.keys(u);l.forEach(n=>{const o=u[n];c[n]=t[n],t[n]=o});try{return n()}finally{l.forEach(n=>{t[n]=c[n]})}}function f(){return s().enabled}function b(n,...c){t.DEBUG_BUILD&&f()&&l(()=>{o.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...c)})}function s(){return t.DEBUG_BUILD?(0,n.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const O={enable:function(){s().enabled=!0},disable:function(){s().enabled=!1},isEnabled:f,log:function(...n){b("log",...n)},warn:function(...n){b("warn",...n)},error:function(...n){b("error",...n)}}},1772,[1773,1768,1770]);
240__d(function(g,r,i,a,m,e,d){"use strict";
240Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getGlobalSingleton",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getMainCarrier",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"getSentryCarrier",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);function _(){return u(t.GLOBAL_OBJ),t.GLOBAL_OBJ}function u(t){const _=t.__SENTRY__=t.__SENTRY__||{};return _.version=_.version||n.SDK_VERSION,_[n.SDK_VERSION]=_[n.SDK_VERSION]||{}}function o(_,u,o=t.GLOBAL_OBJ){const S=o.__SENTRY__=o.__SENTRY__||{},O=S[n.SDK_VERSION]=S[n.SDK_VERSION]||{};return O[_]||(O[_]=u())}},1773,[1774,1770]);
241__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SDK_VERSION",{enumerable:!0,get:function(){return t}});const t="10.63.0"},1774,[]);
242__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"createStackParser",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getFramesFromEvent",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"normalizeStackTracePath",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return a}});const t=50,n="?",c=/\(error: (.*)\)/,o=/captureMessage|captureException/;function u(...n){const o=n.sort((t,n)=>t[0]-n[0]).map(t=>t[1]);return(n,u=0,i=0)=>{const s=[],f=n.split("\n");for(let n=u;n<f.length;n++){let u=f[n];u.length>1024&&(u=u.slice(0,1024));const a=c.test(u)?u.replace(c,"$1"):u;if(!a.includes("Error: ")){for(const t of o){const n=t(a);if(n){s.push(n);break}}if(s.length>=t+i)break}}return a(s.slice(i))}}function i(t){return Array.isArray(t)?u(...t):t}function a(c){if(!c.length)return[];const u=Array.from(c);return/sentryWrapped/.test(s(u).function||"")&&u.pop(),u.reverse(),o.test(s(u).function||"")&&(u.pop(),o.test(s(u).function||"")&&u.pop()),u.slice(0,t).map(t=>({...t,filename:t.filename||s(u).filename,function:t.function||n}))}function s(t){return t[t.length-1]||{}}const f="<anonymous>";function l(t){try{return t&&"function"==typeof t&&t.name||f}catch{return f}}function p(t){const n=t.exception;if(n){const t=[];try{return n.values.forEach(n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)}),t}catch{return}}}function b(t){let n=t?.startsWith("file://")?t.slice(7):t;return n?.match(/\/[A-Z]:/)&&(n=n.slice(1)),n}},1775,[]);
243__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return o}});var n=r(d[0]),e=r(d[1]);let t=null;function o(n){const t="unhandledrejection";(0,e.addHandler)(t,n),(0,e.maybeInstrument)(t,u)}function u(){t=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(n){const o=n;return(0,e.triggerHandlers)("unhandledrejection",o),!t||t.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},1776,[1770,1771]);
244__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"TRACE_FLAG_NONE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"TRACE_FLAG_SAMPLED",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"addChildSpanToSpan",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"addStatusMessageAttribute",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"getActiveSpan",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getRootSpan",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"getSimpleStatus",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"getSpanDescendants",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"getStatusMessage",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"getStreamedSpanLinks",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"removeChildSpanFromSpan",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"showSpanDropWarning",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"spanIsSampled",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"spanToJSON",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"spanToTraceContext",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"spanToTraceHeader",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"spanToTraceparentHeader",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"spanToTransactionTraceContext",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"streamedSpanJsonToSerializedSpan",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"updateSpanName",{enumerable:!0,get:function(){return V}});
244var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]),f=r(d[7]),S=r(d[8]),_=r(d[9]),b=r(d[10]),T=r(d[11]),l=r(d[12]);const y=0,A=1;let O=!1;function I(t){const{spanId:n,traceId:o}=t.spanContext(),{data:s,op:u,parent_span_id:c,status:p,origin:f,links:S}=v(t);return{parent_span_id:c,span_id:n,trace_id:o,data:s,op:u,status:p,origin:f,links:S}}function P(t){const{spanId:n,traceId:o,isRemote:s}=t.spanContext(),u=s?n:v(t).parent_span_id,c=(0,p.getCapturedScopesOnSpan)(t).scope;return{parent_span_id:u,span_id:s?c?.getPropagationContext().propagationSpanId||(0,S.generateSpanId)():n,trace_id:o}}function N(t){const{traceId:n,spanId:o}=t.spanContext(),s=J(t);return(0,b.generateSentryTraceHeader)(n,o,s)}function E(t){const{traceId:n,spanId:o}=t.spanContext(),s=J(t);return(0,b.generateTraceparentHeader)(n,o,s)}function C(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:n,traceFlags:o,...s},attributes:u})=>({span_id:t,trace_id:n,sampled:o===A,attributes:u,...s})):void 0}function j(t){return t?.length?t.map(({context:{spanId:t,traceId:n,traceFlags:o},attributes:s})=>({span_id:t,trace_id:n,sampled:o===A,attributes:s})):void 0}function R(t){return"number"==typeof t?x(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?x(t.getTime()):(0,_.timestampInSeconds)()}function x(t){return t>9999999999?t/1e3:t}function v(t){if(F(t))return t.getSpanJSON();const{spanId:n,traceId:o}=t.spanContext();if(h(t)){const{attributes:s,startTime:c,name:p,endTime:f,status:S,links:_}=t;return{span_id:n,trace_id:o,data:s,description:p,parent_span_id:k(t),start_timestamp:R(c),timestamp:R(f)||void 0,status:L(S),op:s[u.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:s[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:C(_)}}return{span_id:n,trace_id:o,start_timestamp:0,data:{}}}function U(t){if(F(t))return t.getStreamedSpanJSON();const{spanId:n,traceId:o}=t.spanContext();if(h(t)){const{attributes:s,startTime:u,name:c,endTime:p,status:f,links:S}=t;return{name:c,span_id:n,trace_id:o,parent_span_id:k(t),start_timestamp:R(u),end_timestamp:R(p),is_segment:t===W(t),status:w(f),attributes:B(s,f),links:j(S)}}return{span_id:n,trace_id:o,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===W(t)}}function k(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function M(t){return{...t,attributes:(0,n.serializeAttributes)(t.attributes),links:t.links?.map(t=>({...t,attributes:(0,n.serializeAttributes)(t.attributes)}))}}function h(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}function F(t){return"function"==typeof t.getSpanJSON}function J(t){const{traceFlags:n}=t.spanContext();return n===A}function L(t){if(t&&t.code!==c.SPAN_STATUS_UNSET)return t.code===c.SPAN_STATUS_OK?"ok":t.message||"internal_error"}function w(t){return t&&t.code!==c.SPAN_STATUS_OK&&t.code!==c.SPAN_STATUS_UNSET&&"cancelled"!==t.message?"error":"ok"}function B(t,n){const o="error"===w(n)?n?.message:void 0;return{...o&&{[u.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE]:o},...t}}const Y="_sentryChildSpans",D="_sentryRootSpan";function G(t,n){const o=t[D]||t;(0,f.addNonEnumerableProperty)(n,D,o),t[Y]?t[Y].add(n):(0,f.addNonEnumerableProperty)(t,Y,new Set([n]))}function H(t,n){t[Y]&&t[Y].delete(n)}function z(t){const n=new Set;return(function t(o){if(!n.has(o)&&J(o)){n.add(o);const s=o[Y]?Array.from(o[Y]):[];for(const n of s)t(n)}})(t),Array.from(n)}const K=W;function W(t){return t[D]||t}function q(){const n=(0,o.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(n);return u.getActiveSpan?u.getActiveSpan():(0,l._getSpanForScope)((0,s.getCurrentScope)())}function Q(){O||((0,T.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),O=!0)}function V(t,n){t.updateName(n),t.setAttributes({[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[u.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:n})}},1777,[1778,1796,1773,1797,1798,1799,1800,1784,1792,1790,1801,1772,1793]);
245__d(function(g,r,i,a,m,e,d){"use strict";
245Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function c(n){const c=(0,t.getMainCarrier)();(0,t.getSentryCarrier)(c).acs=n}function o(c){const o=(0,t.getSentryCarrier)(c);return o.acs?o.acs:(0,n.getStackAsyncContextStrategy)()}},1778,[1773,1779]);
246__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"AsyncContextStack",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"getStackAsyncContextStrategy",{enumerable:!0,get:function(){return l}});var t=r(d[0]),e=r(d[1]),o=r(d[2]),c=r(d[3]),n=r(d[4]);class p{constructor(t,o){let c,n;c=t||new e.Scope,n=o||new e.Scope,this._stack=[{scope:c}],this._isolationScope=n}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return(0,c.isThenable)(n)?(0,o.chainAndCopyPromiseLike)(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function s(){const e=(0,n.getMainCarrier)(),o=(0,n.getSentryCarrier)(e);return o.stack=o.stack||new p((0,t.getDefaultCurrentScope)(),(0,t.getDefaultIsolationScope)())}function S(t){return s().withScope(t)}function u(t,e){const o=s();return o.withScope(()=>(o.getStackTop().scope=t,e(t)))}function h(t){return s().withScope(()=>t(s().getIsolationScope()))}function l(){return{withIsolationScope:h,withScope:S,withSetScope:u,withSetIsolationScope:(t,e)=>h(e),getCurrentScope:()=>s().getScope(),getIsolationScope:()=>s().getIsolationScope()}}},1779,[1780,1781,1795,1785,1773]);
247__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function o(){return(0,t.getGlobalSingleton)("defaultCurrentScope",()=>new n.Scope)}function u(){return(0,t.getGlobalSingleton)("defaultIsolationScope",()=>new n.Scope)}},1780,[1773,1781]);
248__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return b}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),h=r(d[4]),_=r(d[5]),c=r(d[6]),u=r(d[7]),p=r(d[8]),l=r(d[9]),v=r(d[10]);class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}}clone(){const t=new b;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,(0,p._setSpanForScope)(t,(0,p._getSpanForScope)(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,s.updateSession)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,s){return this.setTags({[t]:s})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,s){return this.setAttributes({[t]:s})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,s){return this._extra={...this._extra,[t]:s},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,s){return null===s?delete this._contexts[t]:this._contexts[t]=s,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const s="function"==typeof t?t(this):t,n=s instanceof b?s.getScopeData():(0,o.isPlainObject)(s)?t:void 0,{tags:h,attributes:_,extra:c,user:u,contexts:p,level:l,fingerprint:v=[],propagationContext:f,conversationId:x}=n||{};return this._tags={...this._tags,...h},this._attributes={...this._attributes,..._},this._extra={...this._extra,...c},this._contexts={...this._contexts,...p},u&&Object.keys(u).length&&(this._user=u),l&&(this._level=l),v.length&&(this._fingerprint=v),f&&(this._propagationContext=f),x&&(this._conversationId=x),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,p._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(t,s){const n="number"==typeof s?s:100;if(n<=0)return this;const o={timestamp:(0,v.dateTimestampInSeconds)(),...t,message:t.message?(0,l.truncate)(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,p._getSpanForScope)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=(0,h.merge)(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}
248captureException(s,o){const h=o?.event_id||(0,_.uuid4)();if(!this._client)return t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture exception!"),h;const c=new Error("Sentry syntheticException");return this._client.captureException(s,{originalException:s,syntheticException:c,...o,event_id:h},this),h}captureMessage(s,o,h){const c=h?.event_id||(0,_.uuid4)();if(!this._client)return t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture message!"),c;const u=h?.syntheticException??new Error(s);return this._client.captureMessage(s,o,{originalException:s,syntheticException:u,...h,event_id:c},this),c}captureEvent(s,o){const h=s.event_id||o?.event_id||(0,_.uuid4)();return this._client?(this._client.captureEvent(s,{...o,event_id:h},this),h):(t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture event!"),h)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}},1781,[1768,1782,1772,1785,1791,1783,1792,1786,1793,1787,1790]);
249__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"closeSession",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"makeSession",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"updateSession",{enumerable:!0,get:function(){return o}});var t=r(d[0]),s=r(d[1]);function n(n){const u=(0,s.timestampInSeconds)(),c={sid:(0,t.uuid4)(),init:!0,timestamp:u,started:u,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>p(c)};return n&&o(c,n),c}function o(n,o={}){if(o.user&&(!n.ipAddress&&o.user.ip_address&&(n.ipAddress=o.user.ip_address),n.did||o.did||(n.did=o.user.id||o.user.email||o.user.username)),n.timestamp=o.timestamp||(0,s.timestampInSeconds)(),o.abnormal_mechanism&&(n.abnormal_mechanism=o.abnormal_mechanism),o.ignoreDuration&&(n.ignoreDuration=o.ignoreDuration),o.sid&&(n.sid=32===o.sid.length?o.sid:(0,t.uuid4)()),void 0!==o.init&&(n.init=o.init),!n.did&&o.did&&(n.did=`${o.did}`),"number"==typeof o.started&&(n.started=o.started),n.ignoreDuration)n.duration=void 0;else if("number"==typeof o.duration)n.duration=o.duration;else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}o.release&&(n.release=o.release),o.environment&&(n.environment=o.environment),!n.ipAddress&&o.ipAddress&&(n.ipAddress=o.ipAddress),!n.userAgent&&o.userAgent&&(n.userAgent=o.userAgent),"number"==typeof o.errors&&(n.errors=o.errors),o.status&&(n.status=o.status)}function u(t,s){let n={};s?n={status:s}:"ok"===t.status&&(n={status:"exited"}),o(t,n)}function p(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}},1782,[1783,1790]);
250__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addContextToFrame",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"addExceptionMechanism",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"addExceptionTypeValue",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getEventDescription",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isAlreadyCaptured",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"parseSemver",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"uuid4",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function u(){const n=c.GLOBAL_OBJ;return n.crypto||n.msCrypto}let p;function s(n=u()){try{if(n?.randomUUID)return(0,t.withRandomSafeContext)(()=>n.randomUUID()).replace(/-/g,"")}catch{}return p||(p="10000000100040008000100000000000"),p.replace(/[018]/g,n=>(n^(16*(0,t.safeMathRandom)()&15)>>n/4).toString(16))}function f(n){return n.exception?.values?.[0]}function l(n){const{message:t,event_id:o}=n;if(t)return t;const c=f(n);return c?c.type&&c.value?`${c.type}: ${c.value}`:c.type||c.value||o||"<unknown>":o||"<unknown>"}function y(n,t,o){const c=n.exception=n.exception||{},u=c.values=c.values||[],p=u[0]=u[0]||{};p.value||(p.value=t||""),p.type||(p.type=o||"Error")}function h(n,t){const o=f(n);if(!o)return;const c=o.mechanism;if(o.mechanism={type:"generic",handled:!0,...c,...t},t&&"data"in t){const n={...c?.data,...t.data};o.mechanism.data=n}}const b=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?
250:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function _(n){return parseInt(n||"",10)}function v(n){const t=n.match(b)||[],o=_(t[1]),c=_(t[2]),u=_(t[3]);return{buildmetadata:t[5],major:isNaN(o)?void 0:o,minor:isNaN(c)?void 0:c,patch:isNaN(u)?void 0:u,prerelease:t[4]}}function x(n,t,c=5){if(void 0===t.lineno)return;const u=n.length,p=Math.max(Math.min(u-1,t.lineno-1),0);t.pre_context=n.slice(Math.max(0,p-c),p).map(n=>(0,o.snipLine)(n,0));const s=Math.min(u-1,p);t.context_line=(0,o.snipLine)(n[s],t.colno||0),t.post_context=n.slice(Math.min(p+1,u),p+1+c).map(n=>(0,o.snipLine)(n,0))}function O(t){if(j(t))return!0;try{(0,n.addNonEnumerableProperty)(t,"__sentry_captured__",!0)}catch{}return!1}function j(n){try{return n.__sentry_captured__}catch{}}},1783,[1784,1786,1787,1770]);
251__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"convertToPlainObject",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dropUndefinedKeys",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"fill",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getOriginalFunction",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"markFunctionWrapped",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"objectify",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"wrapMethod",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(o,c,u){if(!(c in o))return;const s=o[c];if("function"!=typeof s)return;const b=u(s);"function"==typeof b&&f(b,s);try{o[c]=b}catch{t.DEBUG_BUILD&&n.debug.log(`Failed to replace method "${c}" in object`,o)}}function u(o,c,u){try{Object.defineProperty(o,c,{value:u,writable:!0,configurable:!0})}catch{t.DEBUG_BUILD&&n.debug.log(`Failed to add non-enumerable property "${String(c)}" to object`,o)}}function f(t,n){try{const o=n.prototype||{};t.prototype=n.prototype=o,u(t,"__sentry_original__",n)}catch{}}function s(t,n,o,c=!0){const u=t[n];if("function"!=typeof u)throw new Error(`Cannot wrap method: ${n} is not a function`);if(b(u))throw new Error(`Attempting to wrap method ${n} multiple times`);f(o,u),Object.defineProperty(t,n,{writable:!0,configurable:!0,enumerable:c,value:o})}function b(t){return t.__sentry_original__}function l(t){if((0,o.isError)(t))return{message:t.message,name:t.name,stack:t.stack,...p(t)};if((0,o.isEvent)(t)){const{type:n,target:o,currentTarget:c,detail:u}=t;return{type:n,target:o,currentTarget:c,...u?{detail:u}:{},...p(t)}}return t}function p(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}function y(t){const n=Object.keys(l(t));return n.sort(),n[0]?n.join(", "):"[object has no keys]"}function j(t){return O(t,new Map)}function O(t,n){if(null===t||"object"!=typeof t)return t;const o=n.get(t);if(void 0!==o)return o;if(Array.isArray(t)){const o=[];return n.set(t,o),t.forEach(t=>{o.push(O(t,n))}),o}if(_(t)){const o={};n.set(t,o);return Object.keys(t).forEach(c=>{const u=t[c];void 0!==u&&(o[c]=O(u,n))}),o}return t}function _(t){const n=t.constructor;return n===Object||void 0===n}function P(t){let n;switch(!0){case null==t:n=new String(t);break;case"symbol"==typeof t||"bigint"==typeof t:n=Object(t);break;case(0,o.isPrimitive)(t):n=new t.constructor(t);break;default:n=t}return n}},1784,[1768,1772,1785]);
252__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isDOMError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isDOMException",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"isErrorEvent",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isEvent",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isInstanceOf",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"isParameterizedString",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"isPrimitive",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"isRequest",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isSyntheticEvent",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isThenable",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"isVueViewModel",{enumerable:!0,get:function(){return v}});const t=Object.prototype.toString;function n(n){switch(t.call(n)){case"[object Error]":case"[object E
252xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return P(n,Error)}}function u(n,u){return t.call(n)===`[object ${u}]`}function o(t){return u(t,"ErrorEvent")}function c(t){return u(t,"DOMError")}function f(t){return u(t,"DOMException")}function b(t){return u(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function s(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function p(t){return u(t,"Object")}function y(t){return"undefined"!=typeof Event&&P(t,Event)}function j(t){return"undefined"!=typeof Element&&P(t,Element)}function O(t){return u(t,"RegExp")}function E(t){return Boolean(t?.then&&"function"==typeof t.then)}function _(t){return p(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function P(t,n){try{return t instanceof n}catch{return!1}}function v(t){return!("object"!=typeof t||null===t||!(t.__isVue||t._isVue||t.__v_isVNode))}function x(t){return"undefined"!=typeof Request&&P(t,Request)}},1785,[]);
253__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"safeDateNow",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"safeMathRandom",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"withRandomSafeContext",{enumerable:!0,get:function(){return o}});var n=r(d[0]);let t;function o(o){if(void 0!==t)return t?t(o):o();const u=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),f=n.GLOBAL_OBJ;return u in f&&"function"==typeof f[u]?(t=f[u],t(o)):(t=null,o())}function u(){return o(()=>Math.random())}function f(){return o(()=>Date.now())}},1786,[1770]);
254__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isMatchingPattern",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"safeJoin",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"snipLine",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"truncate",{enumerable:!0,get:function(){return i}});var t=r(d[0]),n=r(d[1]);function i(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function u(t,n){let i=t;const u=i.length;if(u<=150)return i;n>u&&(n=u);let o=Math.max(n-60,0);o<5&&(o=0);let s=Math.min(o+140,u);return s>u-5&&(s=u),s===u&&(o=Math.max(s-140,0)),i=i.slice(o,s),o>0&&(i=`'{snip} ${i}`),s<u&&(i+=" {snip}"),i}function o(i,u){if(!Array.isArray(i))return"";const o=[];for(let u=0;u<i.length;u++){const s=i[u];(0,t.isPrimitive)(s)?o.push(String(s)):s instanceof Error?o.push(s.message?`${s.name}: ${s.message}`:s.name):o.push((0,n.stringifyValue)(void 0,s))}return o.join(u)}function s(n,i,u=!1){return!!(0,t.isString)(n)&&((0,t.isRegExp)(i)?i.test(n):(0,t.isString)(i)?u?n===i:n.includes(i):"function"==typeof i&&i(n))}function c(t,n=[],i=!1){for(const u of n)if(s(t,u,i))return!0;return!1}},1787,[1785,1788]);
255__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalize",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"normalizeToSize",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"normalizeUrlToBase",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"setNormalizeStringifier",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stringifyValue",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let c;function u(t){c=t}function f(t,n=100,o=1/0){try{return s("",t,n,o)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function l(t,n=3,o=102400){const c=f(t,n);return u=c,y(JSON.stringify(u))>o?l(t,n-1,o):c;var u}function s(o,c,u=1/0,f=1/0,l=j()){const[b,y]=l;if(null==c||["boolean","string"].includes(typeof c)||"number"==typeof c&&Number.isFinite(c))return c;const O=p(o,c);if(!O.startsWith("[object "))return O;if((0,t.hasSkipNormalizationHint)(c))return c;const h=(0,t.getNormalizationDepthOverrideHint)(c),P=void 0!==h?h:u;if(0===P)return O.replace("object ","");if(b(c))return"[Circular ~]";const $=c;if($&&"function"==typeof $.toJSON)try{return s("",$.toJSON(),P-1,f,l)}catch{}const z=Array.isArray(c)?[]:{};let N=0;const S=(0,n.convertToPlainObject)(c);for(const t in S){if(!Object.prototype.hasOwnProperty.call(S,t))continue;if(N>=f){z[t]="[MaxProperties ~]";break}const n=S[t];z[t]=s(t,n,P-1,f,l),N++}return y(c),z}function p(t,n){try{if(c){const t=c(n);if(t)return t}if(void 0!==g&&n===g)return"[Global]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${(0,o.getFunctionName)(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;return`[object ${b(n)}]`}catch(t){return`**non-serializable** (${t})`}}function b(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}function y(t){return~-encodeURI(t).split(/%..|./).length}function O(t,n){const o=n.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let c=t;try{c=decodeURI(t)}catch{}return c.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${o}/*`,"ig"),"app:///")}function j(){const t=new WeakSet;return[function(n){return!!t.has(n)||(t.add(n),!1)},function(n){t.delete(n)}]}},1788,[1789,1784,1775]);
256__d(function(g,r,i,a,m,e,d){"use strict";
256Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"hasSkipNormalizationHint",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=Symbol.for("sentry.skipNormalization"),o=Symbol.for("sentry.overrideNormalizationDepth");function u(o){(0,t.addNonEnumerableProperty)(o,n,!0)}function c(n,u){(0,t.addNonEnumerableProperty)(n,o,u)}function f(t){return Boolean(t[n])}function l(t){const n=t[o];return"number"==typeof n?n:void 0}},1789,[1784]);
257__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"timestampInSeconds",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);const o=1e3;function u(){return(0,n.safeDateNow)()/o}function f(){const{performance:f}=t.GLOBAL_OBJ;if(!f?.now||!f.timeOrigin)return u;const c=f.timeOrigin;return()=>(c+(0,n.withRandomSafeContext)(()=>f.now()))/o}let c;function s(){return(c??(c=f()))()}let b=null;function O(){const{performance:o}=t.GLOBAL_OBJ;if(!o?.now)return;const u=3e5,f=(0,n.withRandomSafeContext)(()=>o.now()),c=(0,n.safeDateNow)(),s=o.timeOrigin;if("number"==typeof s){if(Math.abs(s+f-c)<u)return s}const b=o.timing?.navigationStart;if("number"==typeof b){if(Math.abs(b+f-c)<u)return b}return c-f}function l(){return null===b&&(b=O()),b}},1790,[1786,1770]);
258__d(function(g,r,i,a,m,e,d){"use strict";function t(n,o,c=2){if(!o||"object"!=typeof o||c<=0)return o;if(n&&0===Object.keys(o).length)return n;const u={...n};for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(u[n]=t(u[n],o[n],c-1));return u}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return t}})},1791,[]);
259__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateSpanId",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"generateTraceId",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(){return(0,n.uuid4)()}function u(){return(0,n.uuid4)().substring(16)}},1792,[1783]);
260__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getSpanForScope",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_setSpanForScope",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o="_sentrySpan";function u(u,c){c?(0,n.addNonEnumerableProperty)(u,o,(0,t.makeWeakRef)(c)):delete u[o]}function c(n){return(0,t.derefWeakRef)(n[o])}},1793,[1784,1794]);
261__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"derefWeakRef",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"makeWeakRef",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){try{const f=t.GLOBAL_OBJ.WeakRef;if("function"==typeof f)return new f(n)}catch{}return n}function f(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}},1794,[1770]);
262__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"chainAndCopyPromiseLike",{enumerable:!0,get:function(){return o}});const n=n=>n instanceof Promise&&!n[t],t=Symbol("chained PromiseLike"),o=(t,o,u)=>{const s=t.then(n=>(o(n),n),n=>{throw u(n),n});return n(s)&&n(t)?s:c(t,s)},c=(n,o)=>{if(!o)return n;let c=!1;for(const t in n){if(t in o)continue;c=!0;const u=n[t];"function"==typeof u?Object.defineProperty(o,t,{value:(...t)=>u.apply(n,t),enumerable:!0,configurable:!0,writable:!0}):o[t]=u}return c&&Object.assign(o,{[t]:!0}),o}},1795,[]);
263__d(function(g,r,i,a,m,e,d){"use strict";
263Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"attributeValueToTypedAttributeValue",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"estimateTypedAttributesSizeInBytes",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isAttributeObject",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"serializeAttributes",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function n(t){return"object"==typeof t&&null!=t&&!Array.isArray(t)&&Object.keys(t).includes("value")}function u(t,u){const{value:o,unit:f}=n(t)?t:{value:t,unit:void 0},s=c(o),l=f&&"string"==typeof f?{unit:f}:{};if(s)return{...s,...l};if(!u||"skip-undefined"===u&&void 0===o)return;let y="";try{y=JSON.stringify(o)??""}catch{}return{value:y,type:"string",...l}}function o(t,n=!1){const o={};for(const[f,s]of Object.entries(t??{})){const t=u(s,n);t&&(o[f]=t)}return o}function f(n){if(!n)return 0;let u=0;for(const[o,f]of Object.entries(n)){u+=2*o.length,u+=2*f.type.length,u+=2*(f.unit?.length??0);const n=f.value;Array.isArray(n)?u+=s(n[0])*n.length:(0,t.isPrimitive)(n)?u+=s(n):u+=100}return u}function s(t){return"string"==typeof t?2*t.length:"boolean"==typeof t?4:"number"==typeof t?8:0}function c(t){if(Array.isArray(t))return{value:t,type:"array"};const n="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";return n?{value:t,type:n}:void 0}},1796,[1785]);
264__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getClient",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"getCurrentScope",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getExternalPropagationContext",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getGlobalScope",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getIsolationScope",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"getTraceContextFromScope",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"withIsolationScope",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"withScope",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]);let u;function p(t){u=t}function f(){return u?.()}function l(){return void 0!==u}function s(){const o=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(o).getCurrentScope()}function S(){const o=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(o).getIsolationScope()}function b(){return(0,n.getGlobalSingleton)("globalScope",()=>new o.Scope)}function y(...o){const c=(0,n.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(c);if(2===o.length){const[t,n]=o;return t?u.withSetScope(t,n):u.withScope(n)}return u.withScope(o[0])}function C(...o){const c=(0,n.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(c);if(2===o.length){const[t,n]=o;return t?u.withSetIsolationScope(t,n):u.withIsolationScope(n)}return u.withIsolationScope(o[0])}function P(){return s().getClient()}function x(t){const n=f();if(n)return{trace_id:n.traceId,span_id:n.spanId};const o=t.getPropagationContext(),{traceId:u,parentSpanId:p,propagationSpanId:l}=o,s={trace_id:u,span_id:l||(0,c.generateSpanId)()};return p&&(s.parent_span_id=p),s}},1797,[1778,1773,1781,1792]);
265__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return D}});const t="sentry.source",n="sentry.sample_rate",T="sentry.previous_trace_sample_rate",E="sentry.op",_="sentry.origin",u="sentry.status.message",I="sentry.idle_span_finish_reason",A="sentry.measurement_unit",S="sentry.measurement_value",o="sentry.release",c="sentry.environment",N="sentry.segment.name",R="sentry.segment.id",f="sentry.sdk.name",b="sentry.sdk.version",s="sentry.sdk.integrations",y="user.id",M="user.email",U="user.ip_address",l="user.n
265ame",O="sentry.custom_span_name",p="sentry.profile_id",P="sentry.exclusive_time",C="cache.hit",j="cache.key",B="cache.item_size",Y="http.request.method",L="url.full",D="sentry.link.type",h="gen_ai.conversation.id"},1798,[]);
266__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"setHttpStatus",{enumerable:!0,get:function(){return c}});const t=0,n=1,s=2;function u(t){if(t<400&&t>=100)return{code:n};if(t>=400&&t<500)switch(t){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"};default:return{code:s,message:"internal_error"}}return{code:s,message:"internal_error"}}function c(t,n){t.setAttribute("http.response.status_code",n);const s=u(n);"unknown_error"!==s.message&&t.setStatus(s)}},1799,[]);
267__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);const o="_sentryScope",u="_sentryIsolationScope",c=Symbol.for("sentry.otelSourceInference");function f(c,f,p){c&&((0,n.addNonEnumerableProperty)(c,u,(0,t.makeWeakRef)(p)),(0,n.addNonEnumerableProperty)(c,o,f))}function p(n){const c=n;return{scope:c[o],isolationScope:(0,t.derefWeakRef)(c[u])}}function l(t){(0,n.addNonEnumerableProperty)(t,c,!0)}function s(n){return!0===n[c]}},1800,[1784,1794]);
268__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"extractTraceparentData",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"generateTraceparentHeader",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"shouldContinueTrace",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),u=r(d[4]),p=r(d[5]);const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function f(t){if(!t)return;const n=t.match(s);if(!n)return;let o;return"1"===n[3]?o=!0:"0"===n[3]&&(o=!1),{traceId:n[1],parentSampled:o,parentSpanId:n[2]}}function l(t,o){const c=f(t),s=(0,n.baggageHeaderToDynamicSamplingContext)(o);if(!c?.traceId)return{traceId:(0,u.generateTraceId)(),sampleRand:(0,p.safeMathRandom)()};const l=I(c,s);s&&(s.sample_rand=l.toString());const{traceId:b,parentSpanId:S,parentSampled:R}=c;return{traceId:b,parentSpanId:S,sampled:R,dsc:s||{},sampleRand:l}}function b(t=(0,u.generateTraceId)(),n=(0,u.generateSpanId)(),o){let c="";return void 0!==o&&(c=o?"-1":"-0"),`${t}-${n}${c}`}function S(t=(0,u.generateTraceId)(),n=(0,u.generateSpanId)(),o){return`00-${t}-${n}-${o?"01":"00"}`}function I(t,n){const o=(0,c.parseSampleRate)(n?.sample_rand);if(void 0!==o)return o;const u=(0,c.parseSampleRate)(n?.sample_rate);return u&&void 0!==t?.parentSampled?t.parentSampled?(0,p.safeMathRandom)()*u:u+(0,p.safeMathRandom)()*(1-u):(0,p.safeMathRandom)()}function R(n,c){const u=(0,o.extractOrgIdFromClient)(n);if(c&&u&&c!==u)return t.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${c}, SDK options: ${u})`),!1;return!(n.getOptions().strictTraceContinuation||!1)||!(c&&!u||!c&&u)||(t.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${c}, Sentry client: ${u})`),!1)}},1801,[1772,1802,1803,1804,1792,1786]);
269__d(function(g,r,i,a,m,e,d){"use strict";
269Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"objectToBaggageHeader",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"parseBaggageHeader",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const o="sentry-",u=/^sentry-/,s=8192;function f(t){const n=l(t);if(!n)return;const c=Object.entries(n).reduce((t,[n,c])=>{if(n.startsWith(o)){t[n.slice(o.length)]=c}return t},{});return Object.keys(c).length>0?c:void 0}function b(t){if(!t)return;return j(Object.entries(t).reduce((t,[n,c])=>(c&&(t[`${o}${n}`]=c),t),{}))}function l(t){if(t&&((0,c.isString)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,n)=>{const c=y(n);return Object.entries(c).forEach(([n,c])=>{t[n]=c}),t},{}):y(t)}function y(t){return t.split(",").map(t=>{const n=t.indexOf("=");if(-1===n)return[];return[t.slice(0,n),t.slice(n+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[n,c])=>(n&&c&&(t[n]=c),t),{})}function j(c){if(0!==Object.keys(c).length)return Object.entries(c).reduce((c,[o,u],f)=>{const b=`${encodeURIComponent(o)}=${encodeURIComponent(u)}`,l=0===f?b:`${c},${b}`;return l.length>s?(t.DEBUG_BUILD&&n.debug.warn(`Not adding key: ${o} with val: ${u} to baggage header due to exceeding baggage size limits.`),c):l},"")}function O(t,n){if(!t)return n;const c=l(t),u=l(n);if(!u)return t;const s={};let f=!1;const b={},y={};for(const[t,n]of Object.entries(u))t.startsWith(o)?(b[t]=n,f=!0):y[t]=n;if(c)for(const[t,n]of Object.entries(c))f&&t.startsWith(o)||(s[t]=n);f&&Object.assign(s,b);for(const[t,n]of Object.entries(y))s[t]??(s[t]=n);return j(s)}},1802,[1768,1772,1785]);
270__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"dsnFromString",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"dsnToString",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"extractOrgIdFromClient",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"extractOrgIdFromDsnHost",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"makeDsn",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]);const o=/^o(\d+)\./,c=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(t){return"http"===t||"https"===t}function p(t,n=!1){const{host:o,path:c,pass:s,port:p,projectId:u,protocol:l,publicKey:f}=t;return`${l}://${f}${n&&s?`:${s}`:""}@${o}${p?`:${p}`:""}/${c?`${c}/`:c}${u}`}function u(t){const o=c.exec(t);if(!o)return void(0,n.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[s,p,u="",f="",b="",I=""]=o.slice(1);let y="",h=I;const $=h.split("/");if($.length>1&&(y=$.slice(0,-1).join("/"),h=$.pop()),h){const t=h.match(/^\d+/);t&&(h=t[0])}return l({host:f,pass:u,path:y,projectId:h,port:b,protocol:s,publicKey:p})}function l(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function f(o){if(!t.DEBUG_BUILD)return!0;const{port:c,projectId:p,protocol:u}=o;return!["protocol","publicKey","host","projectId"].find(t=>!o[t]&&(n.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(p.match(/^\d+$/)?s(u)?!c||!isNaN(parseInt(c,10))||(n.debug.error(`Invalid Sentry Dsn: Invalid port ${c}`),!1):(n.debug.error(`Invalid Sentry Dsn: Invalid protocol ${u}`),!1):(n.debug.error(`Invalid Sentry Dsn: Invalid projectId ${p}`),!1))}function b(t){const n=t.match(o);return n?.[1]}function I(t){const n=t.getOptions(),{host:o}=t.getDsn()||{};let c;
270return n.orgId?c=String(n.orgId):o&&(c=b(o)),c}function y(t){const n="string"==typeof t?u(t):l(t);if(n&&f(n))return n}},1803,[1768,1772]);
271__d(function(g,r,i,a,m,e,d){"use strict";function t(t){if("boolean"==typeof t)return Number(t);const n="string"==typeof t?parseFloat(t):t;return"number"!=typeof n||isNaN(n)||n<0||n>1?void 0:n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseSampleRate",{enumerable:!0,get:function(){return t}})},1804,[]);
272__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"startIdleSpan",{enumerable:!0,get:function(){return O}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]),c=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]),T=r(d[9]),f=r(d[10]),_=r(d[11]),I=r(d[12]),h=r(d[13]);const E={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},N="heartbeatFailed",A="idleTimeout",b="finalTimeout",R="externalFinish";function O(I,O={}){const y=new Map;let C,U=!1,F=R,P=!O.disableAutoFinish;const v=[],{idleTimeout:x=E.idleTimeout,finalTimeout:B=E.finalTimeout,childSpanTimeout:M=E.childSpanTimeout,beforeSpanEnd:J,trimIdleSpanEndTimestamp:L=!0}=O,w=(0,n.getClient)(),G=(0,n.getCurrentScope)();if(!w||!(0,p.hasSpansEnabled)()){const t=new T.SentryNonRecordingSpan({traceId:G.getPropagationContext().traceId});return(0,h.setCapturedScopesOnSpan)(t,G,(0,n.getIsolationScope)()),t}const j=(0,S.getActiveSpan)(),z=D(I);function H(){C&&(clearTimeout(C),C=void 0)}function Y(n){H(),C=setTimeout(()=>{!U&&0===y.size&&P&&(F=A,z.end(n))},x)}function k(n){C=setTimeout(()=>{!U&&P&&(F=N,z.end(n))},M)}function K(n){H(),y.set(n,!0);k((0,l.timestampInSeconds)()+M/1e3)}function $(n){if(y.has(n)&&y.delete(n),0===y.size){Y((0,l.timestampInSeconds)()+x/1e3)}}function q(n){U=!0,y.clear(),v.forEach(n=>n()),(0,u._setSpanForScope)(G,j);const p=(0,S.spanToJSON)(z),{start_timestamp:c}=p;if(!c)return;p.data[s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||z.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,F);const l=p.status;l&&"unknown"!==l||z.setStatus({code:_.SPAN_STATUS_OK}),o.debug.log(`[Tracing] Idle span "${p.op}" finished`);const T=(0,S.getSpanDescendants)(z).filter(n=>n!==z);let f=0;T.forEach(s=>{s.isRecording()&&(s.setStatus({code:_.SPAN_STATUS_ERROR,message:"cancelled"}),s.end(n),t.DEBUG_BUILD&&o.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(s,void 0,2)));const p=(0,S.spanToJSON)(s),{timestamp:c=0,start_timestamp:u=0}=p,l=u<=n,T=c-u<=(B+x)/1e3;if(t.DEBUG_BUILD){const n=JSON.stringify(s,void 0,2);l?T||o.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",n):o.debug.log("[Tracing] Discarding span since it happened after idle span was finished",n)}T&&l||((0,S.removeChildSpanFromSpan)(z,s),f++)}),f>0&&z.setAttribute("sentry.idle_span_discarded_spans",f)}return z.end=new Proxy(z.end,{apply(n,t,s){if(J&&J(z),(0,T.spanIsNonRecordingSpan)(t))return;const[o,...p]=s,u=o||(0,l.timestampInSeconds)(),f=(0,S.spanTimeInputToSeconds)(u),_=(0,S.getSpanDescendants)(z).filter(n=>n!==z),I=(0,S.spanToJSON)(z);if(!_.length||!L)return q(f),Reflect.apply(n,t,[f,...p]);const h=w.getOptions().ignoreSpans,E=_?.reduce((n,t)=>{const s=(0,S.spanToJSON)(t);return s.timestamp?h&&(0,c.shouldIgnoreSpan)({description:s.description,op:s.op,attributes:s.data},h)?n:n?Math.max(n,s.timestamp):s.timestamp:n},void 0),N=I.start_timestamp,A=Math.min(N?N+B/1e3:1/0,Math.max(N||-1/0,Math.min(f,E||1/0)));return q(A),Reflect.apply(n,t,[A,...p])}}),v.push(w.on("spanStart",n=>{if(U||n===z||(0,S.spanToJSON)(n).timestamp||n instanceof f.SentrySpan&&n.isStandaloneSpan())return;(0,S.getSpanDescendants)(z).includes(n)&&K(n.spanContext().spanId)})),v.push(w.on("spanEnd",n=>{U||$(n.spanContext().spanId)})),v.push(w.on("idleSpanEnableAutoFinish",n=>{n===z&&(P=!0,Y(),y.size&&k())})),O.disableAutoFinish||Y(),setTimeout(()=>{U||(z.setStatus({code:_.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),F=b,z.end())},B),z}function D(s){const p=(0,I.startInactiveSpan)(s);return(0,u._setSpanForScope)((0,n.getCurrentScope)(),p),t.DEBUG_BUILD&&o.debug.log("[Tracing] Started span is an i
272dle span"),p}},1805,[1797,1768,1798,1772,1806,1807,1793,1777,1790,1808,1809,1799,1818,1800]);
273__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hasSpansEnabled",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const _=n||(0,t.getClient)()?.getOptions();return!(!_||null==_.tracesSampleRate&&!_.tracesSampler)}},1806,[1797]);
274__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reparentChildSpans",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),i=r(d[2]);function o(t){n.debug.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function s(n,s){if(!s?.length)return!1;for(const p of s){if(u(p)){if(n.description&&(0,i.isMatchingPattern)(n.description,p))return t.DEBUG_BUILD&&o(n),!0;continue}const s=!!p.attributes&&Object.keys(p.attributes).length>0;if(!p.name&&!p.op&&!s)continue;const f=!p.name||n.description&&(0,i.isMatchingPattern)(n.description,p.name),b=!p.op||n.op&&(0,i.isMatchingPattern)(n.op,p.op),y=!p.attributes||Object.entries(p.attributes).every(([t,i])=>c(n.attributes?.[t],i));if(f&&b&&y)return t.DEBUG_BUILD&&o(n),!0}return!1}function c(t,n){return"string"==typeof t&&("string"==typeof n||n instanceof RegExp)?(0,i.isMatchingPattern)(t,n):Array.isArray(t)&&Array.isArray(n)?t.length===n.length&&t.every((t,i)=>t===n[i]):t===n}function p(t,n){const i=n.parent_span_id,o=n.span_id;if(i)for(const n of t)n.parent_span_id===o&&(n.parent_span_id=i)}function u(t){return"string"==typeof t||t instanceof RegExp}},1807,[1768,1772,1787]);
275__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"spanIsNonRecordingSpan",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]);const o=Symbol.for("sentry.nonRecordingSpan");class u{constructor(s={}){this._traceId=s.traceId||(0,n.generateTraceId)(),this._spanId=s.spanId||(0,n.generateSpanId)(),this.dropReason=s.dropReason,(0,t.addNonEnumerableProperty)(this,o,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:s.TRACE_FLAG_NONE}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,s){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function c(t){return!!t&&!0===t[o]}},1808,[1784,1792,1777]);
276__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentrySpan",{enumerable:!0,get:function(){return E}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),p=r(d[5]),o=r(d[6]),h=r(d[7]),S=r(d[8]),u=r(d[9]),c=r(d[10]),T=r(d[11]),l=r(d[12]);class E{constructor(t={}){this._traceId=t.traceId||(0,p.generateTraceId)(),this._spanId=t.spanId||(0,p.generateSpanId)(),this._startTime=t.startTimestamp||(0,h.timestampInSeconds)(),this._links=t.links,this._attributes={},this.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,s){}spanContext(){const{_spanId:t,_traceId:s,_sampled:n}=this;return{spanId:t,traceId:s,traceFlags:n?o.TRACE_FLAG_SAMPLED:o.TRACE_FLAG_NONE}}setAttribute(t,s){return void 0===s?delete this._attributes[t]:this._attributes[t]=s,this}setAttributes(t){return Object.keys(t).forEach(s=>this.setAttribute(s,t[s])),this}updateStartTime(t){this._startTime=(0,o.spanTimeInputToSeconds)(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,(0,l.spanShouldInferOtelSource)(this)||this.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(t){this._endTime||(this._endTime=(0,o.spanTimeInputToSeconds)(t),(0,u.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,o.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[a.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[a.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:(0,c.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,o.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,o.getRootSpan)(this).spanContext().spanId:void 0,links:(0,o.convertSpanLinksForEnvelope)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,o.getRootSpan)(this),status:(0,o.getSimpleStatus)(this._status),attributes:(0,o.addStatusMessageAttribute)(this._attributes,this._status),links:(0,o.getStreamedSpanLinks)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,a){s.DEBUG_BUILD&&_.debug.log("[Tracing] Adding an event to span:",t);const p=I(n)?n:a||(0,h.timestampInSeconds)(),S=I(n)?{}:n||{},u={name:t,time:(0,o.spanTimeInputToSeconds)(p),attributes:S};return this._events.push(u),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const a=(0,t.getClient)();a&&(a.emit("spanEnd",this),this._isStandaloneSpan||a.emit("afterSpanEnd",this));if(!(this._isStandaloneSpan||this===(0,o.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?N((0,n.createSpanEnvelope)([this],a)):(s.DEBUG_BUILD&&_.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),a&&a.recordDroppedEvent("sample_rate","span")));if(a&&(0,T.hasSpanStreamingEnabled)(a))return void a.emit("afterSegmentSpanEnd",this);const p=this._convertSpanToTransaction();if(p){((0,l.getCapturedScopesOnSpan)(this).scope||(0,t.getCurrentScope)()).captureEvent(p)}}_convertSpanToTransaction(){if(!A((0,o.spanToJSON)(this)))return;this._name||(s.DEBUG_BUILD&&_.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=(0,l.getCapturedScopesOnSpan)(this),p=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const h=(0,o.getSpanDescendants)(this).filter(t=>t!==this&&!b(t)).map(t=>(0,o.spanToJSON)(t)).filter(A),u=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let T=!1;h.forEach(t=>{delete t.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],t.op?.startsWith("gen_ai.")&&(T=!0)});const E={contexts:{trace:(0,o.spanToTransactionTraceContext)(this)},spans:h.length>1e3?h.sort((t,s)=>t.start_timestamp-s.start_timestamp).slice(0,1e3):h,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:(0,S.getDynamicSamplingContextFromSpan)(this),hasGenAiSpans:T},request:p,...u&&{transaction_info:{source:u}}},I=(0,c.timedEventsToMeasurements)(this._events);return I&&Object.keys(I).length&&(s.DEBUG_BUILD&&_.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(I,void 0,2)),E.measurements=I),E}}function I(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function A(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}function b(t){return t instanceof E&&t.isStandaloneSpan()}function N(s){const n=(0,t.getClient)();if(!n)return;const a=s[1];a&&0!==a.length?n.sendEnvelope(s):n.recordDroppedEvent("before_send","span")}},1809,[1797,1768,1810,1798,1772,1792,1777,1790,1811,1815,1816,1817,1800]);
277__d(function(g,r,i,a,m,e,d){"use strict";
277Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_enhanceEventWithSdkInfo",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createEventEnvelope",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createSessionEnvelope",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"createSpanEnvelope",{enumerable:!0,get:function(){return v}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),p=r(d[4]),c=r(d[5]),u=r(d[6]);function l(n,t){if(!t)return n;const o=n.sdk||{};return n.sdk={...o,name:o.name||t.name,version:o.version||t.version,integrations:[...n.sdk?.integrations||[],...t.integrations||[]],packages:[...n.sdk?.packages||[],...t.packages||[]],settings:n.sdk?.settings||t.settings?{...n.sdk?.settings,...t.settings}:void 0},n}function S(n,t,c,u){const l=(0,s.getSdkMetadataForEnvelopeHeader)(c),S={sent_at:new Date((0,p.safeDateNow)()).toISOString(),...l&&{sdk:l},...!!u&&t&&{dsn:(0,o.dsnToString)(t)}},f="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return(0,s.createEnvelope)(S,[f])}function f(n,t,o,p){const c=(0,s.getSdkMetadataForEnvelopeHeader)(o),u=n.type&&"replay_event"!==n.type?n.type:"event";l(n,o?.sdk);const S=(0,s.createEventEnvelopeHeaders)(n,c,p,t);delete n.sdkProcessingMetadata;const f=[{type:u},n];return(0,s.createEnvelope)(S,[f])}function v(l,S){const f=(0,n.getDynamicSamplingContextFromSpan)(l[0]),v=S?.getDsn(),k=S?.getOptions().tunnel,b={sent_at:new Date((0,p.safeDateNow)()).toISOString(),...(y=f,!!y.trace_id&&!!y.public_key&&{trace:f}),...!!k&&v&&{dsn:(0,o.dsnToString)(v)}};var y;const{beforeSendSpan:E,ignoreSpans:O}=S?.getOptions()||{},_=O?.length?l.filter(n=>{const t=(0,u.spanToJSON)(n);return!(0,c.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},O)}):l,h=l.length-_.length;h&&S?.recordDroppedEvent("before_send","span",h);const D=E?n=>{const o=(0,u.spanToJSON)(n),s=(0,t.isStreamedBeforeSendSpanCallback)(E)?o:E(o);return s||((0,u.showSpanDropWarning)(),o)}:u.spanToJSON,N=[];for(const n of _){const t=D(n);t&&N.push((0,s.createSpanEnvelopeItem)(t))}return(0,s.createEnvelope)(b,N)}},1810,[1811,1813,1803,1814,1786,1807,1777]);
278__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"freezeDscOnSpan",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"spanToBaggageHeader",{enumerable:!0,get:function(){return b}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),p=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]),f=r(d[9]);const _="_frozenDsc";function T(n,t){const o=n;(0,u.addNonEnumerableProperty)(o,_,t)}function E(t,o){const c=o.getOptions(),{publicKey:p}=o.getDsn()||{},u={environment:c.environment||n.DEFAULT_ENVIRONMENT,release:c.release,public_key:p,trace_id:t,org_id:(0,s.extractOrgIdFromClient)(o)};return o.emit("createDsc",u),u}function y(n,t){const o=t.getPropagationContext();return o.dsc||E(o.traceId,n)}function C(n){const s=(0,t.getClient)();if(!s)return{};const u=(0,S.getRootSpan)(n),T=(0,S.spanToJSON)(u),C=T.data,b=u.spanContext().traceState,O=b?.get("sentry.sample_rate")??C[o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??C[o.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function R(n){return"number"!=typeof O&&"string"!=typeof O||(n.sample_rate=`${O}`),n}const I=u[_];if(I)return R(I);if((0,l.spanIsNonRecordingSpan)(u)&&!(0,p.hasSpansEnabled)(s.getOptions())){const n=(0,f.getCapturedScopesOnSpan)(u).scope;if(n)return R({...y(s,n)})}const A=b?.get("sentry.dsc"),N=A&&(0,c.baggageHeaderToDynamicSamplingContext)(A);if(N)return R(N);const P=E(n.spanContext().traceId,s),x=C[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??C["sentry.span.source"],D=T.description;return"url"!==x&&D&&(P.transaction=D),(0,p.hasSpansEnabled)()&&(P.sampled=String((0,S.spanIsSampled)(u)),P.sample_rand=b?.get("sentry.sample_rand")??(0,f.getCapturedScopesOnSpan)(u).scope?.getPropagationContext().sampleRand.toString()),R(P),s.emit("createDsc",P,u),P}function b(n){const t=C(n);return(0,c.dynamicSamplingContextToSentryBaggageHeader)(t)}},1811,[1812,1797,1798,1802,1803,1806,1784,1777,1808,1800]);
279__d(function(g,r,i,a,m,e,d){"use strict";
279Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return n}});const t="production",n="development"},1812,[]);
280__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"withStreamedSpan",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return(0,t.addNonEnumerableProperty)(n,"_streamed",!0),n}function u(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}},1813,[1784]);
281__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addItemToEnvelope",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createEnvelope",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"envelopeContainsItemType",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"parseEnvelope",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"serializeEnvelope",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),i=r(d[3]),c=r(d[4]);function u(t,n=[]){return[t,n]}function f(t,n){const[o,i]=t;return[o,[...i,n]]}function l(t,n){const o=t[1];for(const t of o){if(n(t,t[0].type))return!0}return!1}function s(t,n){return l(t,(t,o)=>n.includes(o))}function p(n){const o=(0,t.getSentryCarrier)(c.GLOBAL_OBJ);return o.encodePolyfill?o.encodePolyfill(n):(new TextEncoder).encode(n)}function y(n){const o=(0,t.getSentryCarrier)(c.GLOBAL_OBJ);return o.decodePolyfill?o.decodePolyfill(n):(new TextDecoder).decode(n)}function b(t){const[n,i]=t;let c=JSON.stringify(n);function u(t){"string"==typeof c?c="string"==typeof t?c+t:[p(c),t]:c.push("string"==typeof t?p(t):t)}for(const t of i){const[n,i]=t;if(u(`\n${JSON.stringify(n)}\n`),"string"==typeof i||i instanceof Uint8Array)u(i);else{let t;try{t=JSON.stringify(i)}catch{t=JSON.stringify((0,o.normalize)(i))}u(t)}}return"string"==typeof c?c:O(c)}function O(t){const n=t.reduce((t,n)=>t+n.length,0),o=new Uint8Array(n);let i=0;for(const n of t)o.set(n,i),i+=n.length;return o}function v(t){let n="string"==typeof t?p(t):t;function o(t){const o=n.subarray(0,t);return n=n.subarray(t+1),o}function i(){let t=n.indexOf(10);return t<0&&(t=n.length),JSON.parse(y(o(t)))}const c=i(),u=[];for(;n.length;){const t=i(),n="number"==typeof t.length?t.length:void 0;u.push([t,n?o(n):i()])}return[c,u]}function _(t){return[{type:"span"},t]}function h(t){const n="string"==typeof t.data?p(t.data):t.data;return[{type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},n]}const P={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function S(t){return t in P}function j(t){return S(t)?P[t]:t}function E(t){if(!t?.sdk)return;const{name:n,version:o}=t.sdk;return{name:n,version:o}}function T(t,o,c,u){const f=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date((0,i.safeDateNow)()).toISOString(),...o&&{sdk:o},...!!c&&u&&{dsn:(0,n.dsnToString)(u)},...f&&{trace:f}}}},1814,[1773,1803,1788,1786,1770]);
282__d(function(g,r,i,a,m,e,d){"use strict";
282Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"logSpanEnd",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"logSpanStart",{enumerable:!0,get:function(){return p}});var n=r(d[0]),o=r(d[1]),t=r(d[2]);function p(p){if(!n.DEBUG_BUILD)return;const{description:s="< unknown name >",op:u="< unknown op >",parent_span_id:c}=(0,t.spanToJSON)(p),{spanId:$}=p.spanContext(),f=(0,t.spanIsSampled)(p),l=(0,t.getRootSpan)(p),I=l===p,S=`[Tracing] Starting ${f?"sampled":"unsampled"} ${I?"root ":""}span`,D=[`op: ${u}`,`name: ${s}`,`ID: ${$}`];if(c&&D.push(`parent ID: ${c}`),!I){const{op:n,description:o}=(0,t.spanToJSON)(l);D.push(`root ID: ${l.spanContext().spanId}`),n&&D.push(`root op: ${n}`),o&&D.push(`root description: ${o}`)}o.debug.log(`${S}\n  ${D.join("\n  ")}`)}function s(p){if(!n.DEBUG_BUILD)return;const{description:s="< unknown name >",op:u="< unknown op >"}=(0,t.spanToJSON)(p),{spanId:c}=p.spanContext(),$=`[Tracing] Finishing "${u}" ${(0,t.getRootSpan)(p)===p?"root ":""}span "${s}" with ID ${c}`;o.debug.log($)}},1815,[1768,1772,1777]);
283__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setMeasurement",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),E=r(d[2]),T=r(d[3]);function u(u,o,_,s=(0,T.getActiveSpan)()){const M=s&&(0,T.getRootSpan)(s);M&&(t.DEBUG_BUILD&&E.debug.log(`[Measurement] Setting measurement on root span: ${u} = ${o} ${_}`),M.addEvent(u,{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:o,[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:_}))}function o(t){if(!t||0===t.length)return;const E={};return t.forEach(t=>{const T=t.attributes||{},u=T[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],o=T[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof u&&"number"==typeof o&&(E[t.name]={value:o,unit:u})}),E}},1816,[1768,1798,1772,1777]);
284__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return"stream"===t.getOptions().traceLifecycle}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return t}})},1817,[]);
285__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"continueTrace",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"isTracingSuppressed",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"startInactiveSpan",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"startNewTrace",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"startSpan",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"startSpanManual",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"suppressTracing",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"withActiveSpan",{enumerable:!0,get:function(){return j}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),p=r(d[4]),c=r(d[5]),S=r(d[6]),u=r(d[7]),l=r(d[8]),f=r(d[9]),T=r(d[10]),C=r(d[11]),I=r(d[12]),R=r(d[13]),_=r(d[14]),b=r(d[15]),P=r(d[16]),E=r(d[17]),y=r(d[18]),A=r(d[19]),O=r(d[20]),h=r(d[21]),N=r(d[22]),w=r(d[23]);const v="__SENTRY_SUPPRESS_TRACING__";function x(n,t){const s=K();if(s.startSpan)return s.startSpan(n,t);const p=G(n),{forceTransaction:c,parentSpan:S,scope:l}=n,f=l?.clone();return(0,o.withScope)(f,()=>J(S)(()=>{const s=(0,o.getCurrentScope)(),l=H(s,S),f=(0,o.getClient)(),T=n.onlyIfParent&&!l?Y(s,f):z({parentSpan:l,spanArguments:p,forceTransaction:c,scope:s});return Q(T)&&l||(0,_._setSpanForScope)(s,T),(0,u.handleCallbackErrors)(()=>t(T),()=>{const{status:n}=(0,b.spanToJSON)(T);!T.isRecording()||n&&"ok"!==n||T.setStatus({code:N.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{T.end()})}))}function D(n,t){const s=K();if(s.startSpanManual)return s.startSpanManual(n,t);const p=G(n),{forceTransaction:c,parentSpan:S,scope:l}=n,f=l?.clone();return(0,o.withScope)(f,()=>J(S)(()=>{const s=(0,o.getCurrentScope)(),l=H(s,S),f=n.onlyIfParent&&!l?Y(s,(0,o.getClient)()):z({parentSpan:l,spanArguments:p,forceTransaction:c,scope:s});return Q(f)&&l||(0,_._setSpanForScope)(s,f),(0,u.handleCallbackErrors)(()=>t(f,()=>f.end()),()=>{const{status:n}=(0,b.spanToJSON)(f);!f.isRecording()||n&&"ok"!==n||f.setStatus({code:N.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function M(n){const t=K();if(t.startInactiveSpan)return t.startInactiveSpan(n);const s=G(n),{forceTransaction:p,parentSpan:c}=n;return(n.scope?t=>(0,o.withScope)(n.scope,t):void 0!==c?n=>j(c,n):n=>n())(()=>{const t=(0,o.getCurrentScope)(),S=H(t,c),u=(0,o.getClient)();return n.onlyIfParent&&!S?Y(t,u):z({parentSpan:S,spanArguments:s,forceTransaction:p,scope:t})})}const U=(s,p)=>{const S=(0,t.getMainCarrier)(),u=(0,n.getAsyncContextStrategy)(S);if(u.continueTrace)return u.continueTrace(s,p);const{sentryTrace:l,baggage:f}=s,T=(0,o.getClient)(),C=(0,c.baggageHeaderToDynamicSamplingContext)(f);return T&&!(0,P.shouldContinueTrace)(T,C?.org_id)?k(p):(0,o.withScope)(n=>{const t=(0,P.propagationContextFromHeaders)(l,f);return n.setPropagationContext(t),(0,_._setSpanForScope)(n,void 0),p()})};function j(n,t){const s=K();return s.withActiveSpan?s.withActiveSpan(n,t):(0,o.withScope)(o=>((0,_._setSpanForScope)(o,n||void 0),t(o)))}function B(n){const t=K();return t.suppressTracing?t.suppressTracing(n):(0,o.withScope)(t=>{t.setSDKProcessingMetadata({[v]:!0});const o=n();return t.setSDKProcessingMetadata({[v]:void 0}),o})}function F(n=(0,o.getCurrentScope)()){const t=K();return t.isTracingSuppressed?t.isTracingSuppressed(n):!0===n.getScopeData().sdkProcessingMetadata[v]}function k(n){const t=K();return t.startNewTrace?t.startNewTrace(n):(0,o.withScope)(t=>(t.setPropagationContext({traceId:(0,I.generateTraceId)(),sampleRand:(0,R.safeMathRandom)()}
285),s.DEBUG_BUILD&&S.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),j(null,n)))}function Y(n,t){t?.recordDroppedEvent("no_parent_span","span");const s=new O.SentryNonRecordingSpan({traceId:n.getPropagationContext().traceId});return(0,w.setCapturedScopesOnSpan)(s,n,(0,o.getIsolationScope)()),s}function z({parentSpan:n,spanArguments:t,forceTransaction:s,scope:p}){const c=(0,o.getIsolationScope)();if(!(0,l.hasSpansEnabled)()){const t={...c.getPropagationContext(),...p.getPropagationContext()},o=n?n.spanContext().traceId:t.traceId,S=new O.SentryNonRecordingSpan({traceId:o});return n&&!s&&(0,b.addChildSpanToSpan)(n,S),(0,w.setCapturedScopesOnSpan)(S,p,c),S}const S=(0,o.getClient)();if($(S,t)){F(p)||S?.recordDroppedEvent("ignored","span");const t=new O.SentryNonRecordingSpan({dropReason:"ignored",traceId:n?.spanContext().traceId??p.getPropagationContext().traceId});return(0,w.setCapturedScopesOnSpan)(t,p,c),t}let u;if(n&&!s)u=q(n,p,t,c),(0,b.addChildSpanToSpan)(n,u);else if(n){const o=(0,E.getDynamicSamplingContextFromSpan)(n),{traceId:s,spanId:S}=n.spanContext(),l=(0,b.spanIsSampled)(n);u=L({traceId:s,parentSpanId:S,...t},p,c,l),(0,E.freezeDscOnSpan)(u,o)}else{const{traceId:n,dsc:o,parentSpanId:s,sampled:S}={...c.getPropagationContext(),...p.getPropagationContext()};u=L({traceId:n,parentSpanId:s,...t},p,c,S),o&&(0,E.freezeDscOnSpan)(u,o)}return(0,y.logSpanStart)(u),u}function G(n){const t={isStandalone:(n.experimental||{}).standalone,...n};if(n.startTime){const o={...t};return o.startTimestamp=(0,b.spanTimeInputToSeconds)(n.startTime),delete o.startTime,o}return t}function K(){const o=(0,t.getMainCarrier)();return(0,n.getAsyncContextStrategy)(o)}function L(n,t,c,u){const l=(0,o.getClient)(),f=l?.getOptions()||{},{name:I=""}=n,R={spanAttributes:{...n.attributes},spanName:I,parentSampled:u};l?.emit("beforeSampling",R,{decision:!1});const _=R.parentSampled??u,b=R.spanAttributes,P=t.getPropagationContext(),E=F(t),[y,O,N]=E?[!1]:(0,A.sampleSpan)(f,{name:I,parentSampled:_,attributes:b,normalizedRequest:c.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,C.parseSampleRate)(P.dsc?.sample_rate)},P.sampleRand),v=new h.SentrySpan({...n,attributes:{[p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[p.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==O&&N?O:void 0,...b},sampled:y}
285);return y||!l||E||(s.DEBUG_BUILD&&S.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),l.recordDroppedEvent("sample_rate",(0,T.hasSpanStreamingEnabled)(l)?"span":"transaction")),(0,w.setCapturedScopesOnSpan)(v,t,c),l&&l.emit("spanStart",v),v}function q(n,t,s,p){const{spanId:c,traceId:S}=n.spanContext(),u=F(t),l=!u&&(0,b.spanIsSampled)(n),f=l?new h.SentrySpan({...s,parentSpanId:c,traceId:S,sampled:l}):new O.SentryNonRecordingSpan({traceId:S});(0,b.addChildSpanToSpan)(n,f),(0,w.setCapturedScopesOnSpan)(f,t,p);const C=(0,o.getClient)();return C?((0,T.hasSpanStreamingEnabled)(C)&&(0,O.spanIsNonRecordingSpan)(f)&&((0,O.spanIsNonRecordingSpan)(n)&&n.dropReason?(f.dropReason=n.dropReason,C.recordDroppedEvent(n.dropReason,"span")):u||(f.dropReason="sample_rate",C.recordDroppedEvent("sample_rate","span"))),C.emit("spanStart",f),s.endTimestamp&&(C.emit("spanEnd",f),C.emit("afterSpanEnd",f)),f):f}function H(n,t){if(t)return t;if(null===t)return;const s=(0,_._getSpanForScope)(n);if(!s)return;const p=(0,o.getClient)();return(p?p.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,b.getRootSpan)(s):s}function J(n){return void 0!==n?t=>j(n,t):n=>n()}function $(n,t){const o=n?.getOptions().ignoreSpans;return!!(n&&(0,T.hasSpanStreamingEnabled)(n)&&o?.length)&&(0,f.shouldIgnoreSpan)({description:t.name||"",op:t.attributes?.[p.SEMANTIC_ATTRIBUTE_SENTRY_OP]||t.op,attributes:t.attributes},o)}function Q(n){return(0,O.spanIsNonRecordingSpan)(n)&&"ignored"===n.dropReason}},1818,[1778,1773,1797,1768,1798,1802,1772,1819,1806,1807,1817,1804,1792,1786,1793,1777,1801,1811,1815,1820,1808,1809,1799,1800]);
286__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return t}});var e=r(d[0]),n=r(d[1]);function t(e,n,t=()=>{},o=()=>{}){let u;try{u=e()}catch(e){throw n(e),t(),e}return c(u,n,t,o)}function c(t,c,o,u){return(0,n.isThenable)(t)?(0,e.chainAndCopyPromiseLike)(t,e=>{o(),u(e)},e=>{c(e),o()}):(o(),u(t),t)}},1819,[1795,1785]);
287__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sampleSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),p=r(d[2]),o=r(d[3]);function s(s,l,c){if(!(0,p.hasSpansEnabled)(s))return[!1];let u,f;"function"==typeof s.tracesSampler?(f=s.tracesSampler({...l,inheritOrSampleWith:t=>"number"==typeof l.parentSampleRate?l.parentSampleRate:"boolean"==typeof l.parentSampled?Number(l.parentSampled):t}),u=!0):void 0!==l.parentSampled?f=l.parentSampled:void 0!==s.tracesSampleRate&&(f=s.tracesSampleRate,u=!0);const S=(0,o.parseSampleRate)(f);if(void 0===S)return t.DEBUG_BUILD&&n.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(f)} of type ${JSON.stringify(typeof f)}.`),[!1];if(!S)return t.DEBUG_BUILD&&n.debug.log("[Tracing] Discarding transaction because "+("function"==typeof s.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,S,u];const b=c<S;return b||t.DEBUG_BUILD&&n.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(f)})`),[b,S,u]}},1820,[1768,1772,1806,1804]);
288__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"bindScopeToEmitter",{enumerable:!0,get:function(){return f}});var n=r(d[0]);const t=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],o=["removeListener","off","removeEventListener"],c=Symbol("SentryScopeBoundListeners");let u;function s(n){return void 0!==u&&(n===u||n.listener===u)}function f(c,u=(0,n.getCurrentScope)()){const s=c;if(S(s))return c;h(s);for(const n of t)"function"==typeof s[n]&&(s[n]=y(s,s[n],u));for(const n of o)"function"==typeof s[n]&&(s[n]=v(s,s[n]));return"function"==typeof s.removeAllListeners&&(s.removeAllListeners=L(s,s.removeAllListeners)),c}function l(t,o){return function(...c){return(0,n.withScope)(o,()=>t.apply(this,c))}}function p(n){return"function"==typeof n}function y(n,t,o){return function(...c){const f=c[0],y=c[1],v=c.slice(2);if(!p(y)||s(y))return t.apply(this,c);const L=S(n)||h(n);let b=L.get(f);b||(b=new WeakMap,L.set(f,b));let _=b.get(y);_||(_=l(y,o),b.set(y,_));const w=u;u=_;try{return t.call(this,f,_,...v)}finally{u=w}}}function v(n,t){return function(...o){const c=o[0],u=o[1],s=o.slice(2),f=p(u)?S(n)?.get(c)?.get(u):void 0;return f?t.call(this,c,f,...s):t.apply(this,o)}}function L(n,t){return function(...o){const c=S(n);if(c)if(0===o.length)h(n);else{const n=o[0];c.delete(n)}return t.apply(this,o)}}function h(n){const t=new Map;return n[c]=t,t}function S(n){return n[c]}},1821,[1797]);
289__d(function(g,r,i,a,m,e,d){"use strict";
289Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyBeforeSendSpanCallback",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"captureSpan",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return N}});var n=r(d[0]),t=r(d[1]),S=r(d[2]),T=r(d[3]),E=r(d[4]),s=r(d[5]),o=r(d[6]);function _(s,o){const _=(0,S.spanToStreamedSpanJSON)(s),I=(0,S.INTERNAL_getSegmentSpan)(s),R=(0,S.spanToStreamedSpanJSON)(I),{isolationScope:M,scope:f}=(0,T.getCapturedScopesOnSpan)(s),U=(0,t.getCombinedScopeData)(M,f);u(_,R,o,U);const b=s.kind;o.emit("preprocessSpan",_,{spanKind:b}),_.is_segment&&(p(_,U),c(_,o),o.emit("processSegmentSpan",_)),o.emit("processSpan",_);const{beforeSendSpan:C}=o.getOptions(),l=C&&(0,E.isStreamedBeforeSendSpanCallback)(C)?A(_,C):_,O=l.attributes?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return O&&N(l,{"sentry.span.source":O}),{...(0,S.streamedSpanJsonToSerializedSpan)(l),_segmentSpan:I}}function p(n,t){N(n,(0,s.scopeContextsToSpanAttributes)(t.contexts))}function N(n,t){const S=n.attributes??(n.attributes={});Object.entries(t).forEach(([n,t])=>{null==t||n in S||(S[n]=t)})}function c(t,S){const T=S.getIntegrationNames();T.length&&N(t,{[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:T})}function u(t,S,T,E){const s=T.getSdkMetadata(),{release:_,environment:p}=T.getOptions();N(t,{[n.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:_,[n.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:p||o.DEFAULT_ENVIRONMENT,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME]:S.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID]:S.span_id,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME]:s?.sdk?.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION]:s?.sdk?.version,[n.SEMANTIC_ATTRIBUTE_USER_ID]:E.user?.id,[n.SEMANTIC_ATTRIBUTE_USER_EMAIL]:E.user?.email,[n.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:E.user?.ip_address,[n.SEMANTIC_ATTRIBUTE_USER_USERNAME]:E.user?.username,...E.attributes})}function A(n,t){const T=t(n);return T||((0,S.showSpanDropWarning)(),n)}},1822,[1798,1823,1777,1800,1813,1824,1812]);
290__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getCombinedScopeData",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"mergeAndOverwriteScopeData",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"mergeScopeData",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);function c(t,n){const{fingerprint:s,span:o,breadcrumbs:c,sdkProcessingMetadata:p}=n;l(t,n),o&&y(t,o),P(t,s),b(t,c),x(t,p)}function p(t,n){const{extra:o,tags:c,attributes:p,user:f,contexts:l,level:b,sdkProcessingMetadata:x,breadcrumbs:y,fingerprint:P,eventProcessors:h,attachments:S,propagationContext:k,transactionName:v,span:O}=n;u(t,"extra",o),u(t,"tags",c),u(t,"attributes",p),u(t,"user",f),u(t,"contexts",l),t.sdkProcessingMetadata=(0,s.merge)(t.sdkProcessingMetadata,x,2),b&&(t.level=b),v&&(t.transactionName=v),O&&(t.span=O),y.length&&(t.breadcrumbs=[...t.breadcrumbs,...y]),P.length&&(t.fingerprint=[...t.fingerprint,...P]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),S.length&&(t.attachments=[...t.attachments,...S]),t.propagationContext={...t.propagationContext,...k}}function u(t,n,o){t[n]=(0,s.merge)(t[n],o,1)}function f(n,s){const o=(0,t.getGlobalScope)().getScopeData();return n&&p(o,n.getScopeData()),s&&p(o,s.getScopeData()),o}function l(t,n){const{extra:s,tags:o,user:c,contexts:p,level:u,transactionName:f}=n;Object.keys(s).length&&(t.extra={...s,...t.extra}),Object.keys(o).length&&(t.tags={...o,...t.tags}),Object.keys(c).length&&(t.user={...c,...t.user}),Object.keys(p).length&&(t.contexts={...p,...t.contexts}),u&&(t.level=u),f&&"transaction"!==t.type&&(t.transaction=f)}function b(t,n){const s=[...t.breadcrumbs||[],...n];t.breadcrumbs=s.length?s:void 0}function x(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}function y(t,s){t.contexts={trace:(0,o.spanToTraceContext)(s),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:(0,n.getDynamicSamplingContextFromSpan)(s),...t.sdkProcessingMetadata};const c=(0,o.getRootSpan)(s),p=(0,o.spanToJSON)(c).description;p&&!t.transaction&&"transaction"===t.type&&(t.transaction=p)}function P(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n)),t.fingerprint.length||delete t.fingerprint}},1823,[1797,1811,1791,1777]);
291__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const o={},{response:s,profile:n,cloud_resource:l,culture:u,state:c}=t;if(s&&(null!=s.status_code&&(o["http.response.status_code"]=s.status_code),null!=s.body_size&&(o["http.response.body.size"]=s.body_size)),n&&(n.profile_id&&(o["sentry.profile_id"]=n.profile_id),n.profiler_id&&(o["sentry.profiler_id"]=n.profiler_id)),l)for(const[t,s]of Object.entries(l))null!=s&&(o[t]=s);
291u&&(u.locale&&(o["culture.locale"]=u.locale),u.timezone&&(o["culture.timezone"]=u.timezone)),c?.state&&"string"==typeof c.state.type&&(o["state.type"]=c.state.type);const p=t.angular;if(p){const t=p.version;"string"!=typeof t&&"number"!=typeof t||(o["angular.version"]=t)}const f=t.react;if(f){const t=f.version;"string"!=typeof t&&"number"!=typeof t||(o["react.version"]=t)}return o}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"scopeContextsToSpanAttributes",{enumerable:!0,get:function(){return t}})},1824,[]);
292__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return D}});var e=_r(d[0]),t=_r(d[1]),n=_r(d[2]),r=_r(d[3]),o=_r(d[4]),u=_r(d[5]),c=_r(d[6]),s=_r(d[7]),f=_r(d[8]),p=_r(d[9]),l=_r(d[10]);function b(t,n){return(0,e.getCurrentScope)().captureException(t,(0,s.parseEventHintOrCaptureContext)(n))}function S(t,n){const r="string"==typeof n?n:void 0,o="string"!=typeof n?{captureContext:n}:void 0;return(0,e.getCurrentScope)().captureMessage(t,r,o)}function I(t,n){return(0,e.getCurrentScope)().captureEvent(t,n)}function y(t,n){(0,e.getIsolationScope)().setContext(t,n)}function C(t){(0,e.getIsolationScope)().setExtras(t)}function O(t,n){(0,e.getIsolationScope)().setExtra(t,n)}function P(t){(0,e.getIsolationScope)().setTags(t)}function j(t,n){(0,e.getIsolationScope)().setTag(t,n)}function h(t){(0,e.getIsolationScope)().setAttributes(t)}function v(t,n){(0,e.getIsolationScope)().setAttribute(t,n)}function E(t){(0,e.getIsolationScope)().setUser(t)}function k(t){(0,e.getIsolationScope)().setConversationId(t)}function x(){return(0,e.getIsolationScope)().lastEventId()}function B(n,r){const u=(0,e.getCurrentScope)(),s=(0,e.getClient)();if(s){if(s.captureCheckIn)return s.captureCheckIn(n,r,u);t.DEBUG_BUILD&&o.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else t.DEBUG_BUILD&&o.debug.warn("Cannot capture check-in. No client defined.");return(0,c.uuid4)()}function D(t,n,o){function c(){const e=B({monitorSlug:t,status:"in_progress"},o),r=(0,p.timestampInSeconds)();function c(n){B({monitorSlug:t,status:n,checkInId:e,duration:(0,p.timestampInSeconds)()-r})}let s;try{s=n()}catch(e){throw c("error"),e}return(0,u.isThenable)(s)?s.then(e=>(c("ok"),e),e=>{throw c("error"),e}):(c("ok"),s)}return(0,e.withIsolationScope)(()=>o?.isolateTrace?(0,r.startNewTrace)(c):c())}async function U(n){const r=(0,e.getClient)();return r?r.flush(n):(t.DEBUG_BUILD&&o.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function _(n){const r=(0,e.getClient)();return r?r.close(n):(t.DEBUG_BUILD&&o.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function w(){return!!(0,e.getClient)()}function T(){const t=(0,e.getClient)();return!1!==t?.getOptions().enabled&&!!t?.getTransport()}function A(t){(0,e.getIsolationScope)().addEventProcessor(t)}function L(t){const r=(0,e.getIsolationScope)(),{user:o}=(0,f.getCombinedScopeData)(r,(0,e.getCurrentScope)()),{userAgent:u}
292=l.GLOBAL_OBJ.navigator||{},c=(0,n.makeSession)({user:o,...u&&{userAgent:u},...t}),s=r.getSession();return"ok"===s?.status&&(0,n.updateSession)(s,{status:"exited"}),G(),r.setSession(c),c}function G(){const t=(0,e.getIsolationScope)(),r=(0,e.getCurrentScope)().getSession()||t.getSession();r&&(0,n.closeSession)(r),M(),t.setSession()}function M(){const t=(0,e.getIsolationScope)(),n=(0,e.getClient)(),r=t.getSession();r&&n&&n.captureSession(r)}function N(e=!1){e?G():M()}},1825,[1797,1768,1782,1818,1772,1785,1783,1826,1823,1790,1770]);
293__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyClientOptions",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"applyDebugIds",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"applyDebugMeta",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"parseEventHintOrCaptureContext",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"prepareEvent",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),i=r(d[5]),u=r(d[6]),l=r(d[7]),p=r(d[8]),f=r(d[9]);function b(t,o,s,i,l,b){const{normalizeDepth:O=3,normalizeMaxBreadth:P=1e3}=t,j={...o,event_id:o.event_id||s.event_id||(0,c.uuid4)(),timestamp:o.timestamp||(0,f.dateTimestampInSeconds)()},k=s.integrations||t.integrations.map(t=>t.name);x(j,t),h(j,k),l&&l.emit("applyFrameMetadata",o),void 0===o.type&&_(j,t.stackParser);const z=E(i,s.captureContext);s.mechanism&&(0,c.addExceptionMechanism)(j,s.mechanism);const C=l?l.getEventProcessors():[],D=(0,u.getCombinedScopeData)(b,z),M=[...s.attachments||[],...D.attachments];M.length&&(s.attachments=M),(0,u.applyScopeDataToEvent)(j,D);const S=[...C,...D.eventProcessors];return(s.data&&!0===s.data.__sentry__?(0,p.resolvedSyncPromise)(j):(0,n.notifyEventProcessors)(S,j,s)).then(t=>(t&&v(t),"number"==typeof O&&O>0?y(t,O,P):t))}function x(n,o){const{environment:s,release:c,dist:i,maxValueLength:u}=o;n.environment=n.environment||s||t.DEFAULT_ENVIRONMENT,!n.release&&c&&(n.release=c),!n.dist&&i&&(n.dist=i);const p=n.request;p?.url&&u&&(p.url=(0,l.truncate)(p.url,u)),u&&n.exception?.values?.forEach(t=>{t.value&&(t.value=(0,l.truncate)(t.value,u))})}function _(t,n){const o=(0,s.getFilenameToDebugIdMap)(n);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=o[t.filename])})})}function v(t){const n={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const o=t.debug_meta.images;Object.entries(n).forEach(([t,n])=>{o.push({type:"sourcemap",code_file:t,debug_id:n})})}function h(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}function y(t,n,o){if(!t)return null;const s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,i.normalize)(t.data,n,o)}}))},...t.user&&{user:(0,i.normalize)(t.user,n,o)},...t.contexts&&{contexts:(0,i.normalize)(t.contexts,n,o)},...t.extra&&{extra:(0,i.normalize)(t.extra,n,o)}};return t.contexts?.trace&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=(0,i.normalize)(t.contexts.trace.data,n,o))),t.spans&&(s.spans=t.spans.map(t=>({...t,...t.data&&{data:(0,i.normalize)(t.data,n,o)}}))),t.contexts?.flags&&s.contexts&&(s.contexts.flags=(0,i.normalize)(t.contexts.flags,3,o)),s}function E(t,n){if(!n)return t;const s=t?t.clone():new o.Scope;return s.update(n),s}function O(t){if(t)return P(t)||k(t)?{captureContext:t}:t}function P(t){return t instanceof o.Scope||"function"==typeof t}const j=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function k(t){return Object.keys(t).some(t=>j.includes(t))}},1826,[1812,1827,1781,1829,1783,1788,1823,1787,1828,1790]);
294__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"notifyEventProcessors",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function s(n,t,s,l=0){try{const f=u(t,s,n,l);return(0,o.isThenable)(f)?f:(0,c.resolvedSyncPromise)(f)}catch(n){return(0,c.rejectedSyncPromise)(n)}}function u(c,s,l,f){const b=l[f];if(!c||!b)return c;const v=b({...c},s);return n.DEBUG_BUILD&&null===v&&t.debug.log(`Event processor "${b.id||"?"}" dropped event`),(0,o.isThenable)(v)?v.then(n=>u(n,s,l,f+1)):u(v,s,l,f+1)}},1827,[1768,1772,1785,1828]);
295__d(function(g,r,i,a,m,_e,d){"use strict";
295Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return t}});var e=r(d[0]);function t(e){return new s(t=>{t(e)})}function n(e){return new s((t,n)=>{n(e)})}class s{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new s((n,s)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){s(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){s(e)}else s(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,n)=>{let s,c;return this.then(t=>{c=!1,s=t,e&&e()},t=>{c=!0,s=t,e&&e()}).then(()=>{c?n(s):t(s)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(t){const n=(t,n)=>{0===this._state&&((0,e.isThenable)(n)?n.then(s,c):(this._state=t,this._value=n,this._executeHandlers()))},s=e=>{n(1,e)},c=e=>{n(2,e)};try{t(s,c)}catch(e){c(e)}}}},1828,[1785]);
296__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDebugImagesForResources",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]);let o,c,s,u;function f(t){const f=n.GLOBAL_OBJ._sentryDebugIds,i=n.GLOBAL_OBJ._debugIds;if(!f&&!i)return{};const l=f?Object.keys(f):[],b=i?Object.keys(i):[];if(u&&l.length===c&&b.length===s)return u;c=l.length,s=b.length,u={},o||(o={});const _=(n,c)=>{for(const s of n){const n=c[s],f=o?.[s];if(f&&u&&n)u[f[0]]=n,o&&(o[s]=[f[0],n]);else if(n){const c=t(s);for(let t=c.length-1;t>=0;t--){const f=c[t],i=f?.filename;if(i&&u&&o){u[i]=n,o[s]=[i,n];break}}}}};return f&&_(l,f),i&&_(b,i),u}function i(n,o){const c=f(n);if(!c)return[];const s=[];for(const n of o){const o=(0,t.normalizeStackTracePath)(n);o&&c[o]&&s.push({type:"sourcemap",code_file:n,debug_id:c[o]})}return s}},1829,[1775,1770]);
297__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function u(t,s=1){const l=(0,c.getAsyncContextStrategy)((0,n.getMainCarrier)()).getTracingChannelBinding?.();l?t():s&&(0,o.safeUnref)(setTimeout(()=>{u(t,s-1)},1))}function s(n,o){return{asyncLocalStorage:n,getStoreWithActiveSpan:n=>{const{scope:c,isolationScope:u}=o(),s=c.clone();return(0,t._setSpanForScope)(s,n),{scope:s,isolationScope:u}}}}},1830,[1773,1793,1831,1778]);
298__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return"object"==typeof n&&"function"==typeof n.unref&&n.unref(),n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"safeUnref",{enumerable:!0,get:function(){return n}})},1831,[]);
299__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return p}});var n=r(d[0]);const t="7";function o(n){const t=n.protocol?`${n.protocol}:`:"",o=n.port?`:${n.port}`:"";return`${t}//${n.host}${o}${n.path?`/${n.path}`:""}/api/`}function c(n){return`${o(n)}${n.projectId}/envelope/`}function u(n,o){const c={sentry_version:t};return n.publicKey&&(c.sentry_key=n.publicKey),o&&(c.sentry_client=`${o.name}/${o.version}`),new URLSearchParams(c).toString()}function s(n,t,o){return t||`${c(n)}?${u(n,o)}`}function p(t,c){const u=(0,n.makeDsn)(t);if(!u)return"";const s=`${o(u)}embed/error-page/`;let p=`dsn=${(0,n.dsnToString)(u)}`;for(const n in c)if("dsn"!==n&&"onClose"!==n)if("user"===n){const n=c.user;if(!n)continue;n.name&&(p+=`&name=${encodeURIComponent(n.name)}`),n.email&&(p+=`&email=${encodeURIComponent(n.email)}`)}else p+=`&${encodeURIComponent(n)}=${encodeURIComponent(c[n])}`;return`${s}?${p}`}},1832,[1803]);
300__d(function(g,r,i,a,m,_e,d){"use strict";
300Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return J}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),h=r(d[8]),l=r(d[9]),_=r(d[10]),f=r(d[11]),v=r(d[12]),E=r(d[13]),b=r(d[14]),S=r(d[15]),D=r(d[16]),y=r(d[17]),B=r(d[18]),I=r(d[19]),U=r(d[20]),w=r(d[21]),P=r(d[22]),L=r(d[23]),O=r(d[24]),T=r(d[25]),C=r(d[26]),k=r(d[27]),N=r(d[28]),R=r(d[29]),x=r(d[30]);const M="Not capturing exception because it's already been captured.",F="Discarded session because of missing or non-string release",G=Symbol.for("SentryInternalError"),A=Symbol.for("SentryDoNotSendEventError");function $(e){return{message:e,[G]:!0}}function j(e){return{message:e,[A]:!0}}function W(e){return!!e&&"object"==typeof e&&G in e}function q(e){return!!e&&"object"==typeof e&&A in e}function z(e,t,n,s,o){let c,u=0,p=!1;e.on(n,()=>{u=0,clearTimeout(c),p=!1}),e.on(t,t=>{if(u+=s(t),u>=8e5)o(e);else if(!p){const t=e.getOptions()._flushInterval??5e3;t>0&&(p=!0,c=(0,N.safeUnref)(setTimeout(()=>{o(e)},t)))}}),e.on("flush",()=>{o(e)})}class J{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=(0,L.makePromiseBuffer)(t.transportOptions?.bufferSize??v.DEFAULT_TRANSPORT_BUFFER_SIZE),this._dataCollection=(0,x.resolveDataCollectionOptions)(t),t.dsn?this._dsn=(0,S.makeDsn)(t.dsn):s.DEBUG_BUILD&&b.debug.warn("No DSN provided, client will not send events."),this._dsn){const n=(0,e.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&z(this,"afterCaptureLog","flushLogs",X,u._INTERNAL_flushLogsBuffer);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&z(this,"afterCaptureMetric","flushMetrics",Q,p._INTERNAL_flushMetricsBuffer)}captureException(e,t,n){const o=(0,U.uuid4)();if((0,U.checkOrSetAlreadyCaught)(e))return s.DEBUG_BUILD&&b.debug.log(M),o;const c={event_id:o,...t};return this._process(()=>this.eventFromException(e,c).then(e=>this._captureEvent(e,c,n)).then(e=>e),"error"),c.event_id}captureMessage(e,t,n,s){const o={event_id:(0,U.uuid4)(),...n},c=(0,B.isParameterizedString)(e)?e:String(e),u=(0,B.isPrimitive)(e),p=u?this.eventFromMessage(c,t,o):this.eventFromException(e,o);return this._process(()=>p.then(e=>this._captureEvent(e,o,s)),u?"unknown":"error"),o.event_id}captureEvent(e,t,n){const o=(0,U.uuid4)();if(t?.originalException&&(0,U.checkOrSetAlreadyCaught)(t.originalException))return s.DEBUG_BUILD&&b.debug.log(M),o;const c={event_id:o,...t},u=e.sdkProcessingMetadata||{},p=u.capturedSpanScope,h=u.capturedSpanIsolationScope,l=V(e.type);return this._process(()=>this._captureEvent(e,c,p||n,h),l),c.event_id}captureSession(e){this.sendSession(e),(0,h.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){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),s=await t.flush(e);return n&&s}async close(e){(0,u._INTERNAL_flushLogsBuffer)(this);const 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){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),(0,c.setupIntegration)(this,e,this._integrations),t||(0,c.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}
300){this.emit("beforeSendEvent",e,t);const n=(0,f.extractGenAiSpansFromEvent)(e,this);let s=(0,o.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])s=(0,D.addItemToEnvelope)(s,(0,D.createAttachmentEnvelopeItem)(e));n&&(s=(0,D.addItemToEnvelope)(s,n)),this.sendEnvelope(s).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:n,environment:c=t.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const t=e.attrs||{};if(!t.release&&!n)return void(s.DEBUG_BUILD&&b.debug.warn(F));t.release=t.release||n,t.environment=t.environment||c,e.attrs=t}else{if(!e.release&&!n)return void(s.DEBUG_BUILD&&b.debug.warn(F));e.release=e.release||n,e.environment=e.environment||c}this.emit("beforeSendSession",e);const u=(0,o.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(u)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const o=`${e}:${t}`;s.DEBUG_BUILD&&b.debug.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,s=(...e)=>t(...e);return n.add(s),()=>{n.delete(s)}}emit(e,...t){const 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 s.DEBUG_BUILD&&b.debug.error("Error while sending envelope:",e),{}}return s.DEBUG_BUILD&&b.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,c.setupIntegrations)(this,e),(0,c.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,s=!1;const o=t.exception?.values;if(o){s=!0,n=!1;for(const e of o)if(!1===e.mechanism?.handled){n=!0;break}}const c="ok"===e.status;(c&&0===e.errors||c&&n)&&((0,h.updateSession)(e,{...n&&{status:"crashed"},errors:e.errors||Number(s||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,s,o){const c=this.getOptions(),u=this.getIntegrationNames();return!t.integrations&&u.length&&(t.integrations=u),this.emit("preprocessEvent",e,t),e.type||o.setLastEventId(e.event_id||t.event_id),(0,P.prepareEvent)(c,e,t,s,this,o).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,n.getTraceContextFromScope)(s)},...e.contexts};const o=(0,l.getDynamicSamplingContextFromScope)(this,s);return e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},o=(0,n.getCurrentScope)(),c=(0,n.getIsolationScope)()){return s.DEBUG_BUILD&&H(e)&&b.debug.log(`Captured error event \`${(0,y.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,o,c).then(e=>e.event_id,e=>{s.DEBUG_BUILD&&(q(e)?b.debug.log(e.message):W(e)?b.debug.warn(e.message):b.debug.warn(e))})}_processEvent(e,t,n,s){const o=this.getOptions(),{sampleRate:c}=o,u=K(e),p=H(e),h=`before send for type \`${e.type||"error"}\``,l=void 0===c?void 0:(0,w.parseSampleRate)(c);if(p&&"number"==typeof l&&(0,O.safeMathRandom)()>l)return this.recordDroppedEvent("sample_rate","error"),(0,k.rejectedSyncPromise)(j(`Discarding event because it's not included in the random sample (sampling rate = ${c})`));const _=V(e.type);return this._prepareEvent(e,t,n,s).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",_),j("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;return Y(Z(this,o,e,t),h)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",_),u){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw j(`${h} returned \`null\`, will not send event.`)}const c=n.getSession()||s.getSession();if(p&&c&&this._updateSessionFromEvent(c,o),u){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const l=o.transaction_info;if(u&&l&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...l,source:e}}return this.sendEvent(o,t),o}).then(null,e=>{if(q(e)||W(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),$(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===L.SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,s]=e.split(":");return{reason:n,category:s,quantity:t}})}_flushOutcomes(){s.DEBUG_BUILD&&b.debug.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(s.DEBUG_BUILD&&b.debug.log("No outcomes to send"));if(!this._dsn)return void(s.DEBUG_BUILD&&b.debug.log("No dsn provided, will not send outcomes"));s.DEBUG_BUILD&&b.debug.log("Sending outcomes:",e);const t=(0,E.createClientReportEnvelope)(e,this._options.tunnel&&(0,S.dsnToString)(this._dsn));this.sendEnvelope(t)}}function V(e){return"replay_event"===e?"replay":e||"error"}function Y(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,B.isThenable)(e))return e.then(e=>{if(!(0,B.isPlainObject)(e)&&null!==e)throw $(n);return e},e=>{throw $(`${t} rejected with ${e}`)});if(!(0,B.isPlainObject)(e)&&null!==e)throw $(n);return e}function Z(e,t,n,s){const{beforeSend:o,beforeSendTransaction:c,ignoreSpans:u}=t,p=!(0,_.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan;let h=n;if(H(h)&&o)return o(h,s);if(K(h)){if(p||u){const t=(0,R.convertTransactionEventToSpanJson)(h);if(u?.length&&(0,T.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},u))return null;if(p){const e=p(t);e?h=(0,I.merge)(n,(0,R.convertSpanJsonToTransactionEvent)(e)):(0,C.showSpanDropWarning)()}if(h.spans){const t=[],n=h.spans;for(const e of n)if(u?.length&&(0,T.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},u))(0,T.reparentChildSpans)(n,e);else if(p){const n=p(e);n?t.push(n):((0,C.showSpanDropWarning)(),t.push(e))}else t.push(e);const s=h.spans.length-t.length;s&&e.recordDroppedEvent("before_send","span",s),h.spans=t}}if(c){if(h.spans){const e=h.spans.length;h.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return c(h,s)}}return h}function H(e){return void 0===e.type}function K(e){return"transaction"===e.type}function Q(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+ee(e.attributes)}function X(e){let t=0;return e.message&&(t+=2*e.message.length),t+ee(e.attributes)}function ee(e){if(!e)return 0;let t=0;
300return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*te(e[0]):(0,B.isPrimitive)(e)?t+=te(e):t+=100}),t}function te(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}},1833,[1832,1812,1797,1768,1810,1834,1835,1843,1782,1811,1813,1845,1847,1850,1772,1803,1814,1851,1785,1791,1783,1804,1826,1848,1786,1807,1777,1828,1831,1852,1853]);
301__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addIntegration",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"afterSetupIntegrations",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"defineIntegration",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extendIntegration",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"installedIntegrations",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setupIntegration",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"setupIntegrations",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const c=[];function u(n){const t={};return n.forEach(n=>{const{name:o}=n,c=t[o];c&&!c.isDefaultInstance&&n.isDefaultInstance||(t[o]=n)}),Object.values(t)}function s(n){const t=n.defaultIntegrations||[],o=n.integrations;let c;if(t.forEach(n=>{n.isDefaultInstance=!0}),Array.isArray(o))c=[...t,...o];else if("function"==typeof o){const n=o(t);c=Array.isArray(n)?n:[n]}else c=t;return u(c)}function f(n,t){const o={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(n)}),t.forEach(t=>{t&&l(n,t,o)}),o}function p(n,t){for(const o of t)o?.afterAllSetup&&o.afterAllSetup(n)}function l(n,u,s){if(s[u.name])t.DEBUG_BUILD&&o.debug.log(`Integration skipped because it was already installed: ${u.name}`);else{if(s[u.name]=u,c.includes(u.name)||"function"!=typeof u.setupOnce||(u.setupOnce(),c.push(u.name)),u.setup&&"function"==typeof u.setup&&u.setup(n),"function"==typeof u.preprocessEvent){const t=u.preprocessEvent.bind(u);n.on("preprocessEvent",(o,c)=>t(o,c,n))}if("function"==typeof u.processEvent){const t=u.processEvent.bind(u),o=Object.assign((o,c)=>t(o,c,n),{id:u.name});n.addEventProcessor(o)}["processSpan","processSegmentSpan"].forEach(t=>{const o=u[t];"function"==typeof o&&n.on(t,t=>o.call(u,t,n))}),t.DEBUG_BUILD&&o.debug.log(`Integration installed: ${u.name}`)}}function b(c){const u=(0,n.getClient)();u?u.addIntegration(c):t.DEBUG_BUILD&&o.debug.warn(`Cannot add integration "${c.name}" because no SDK Client is available.`)}function y(n){return n}function I(n,t){const o={...n,...t};for(const c in t){const u=n[c],s=t[c];if("function"==typeof u&&"function"==typeof s){const n=new Proxy(u,{apply:(n,t,o)=>(Reflect.apply(n,t,o),Reflect.apply(s,t,o))});o[c]=n}}return o}},1834,[1797,1768,1772]);
302__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"_INTERNAL_getLogBuffer",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"_removeLoneSurrogates",{enumerable:!0,get:function(){return D}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),l=r(d[5]),c=r(d[6]),f=r(d[7]),p=r(d[8]),_=r(d[9]),b=r(d[10]),y=r(d[11]),v=r(d[12]);const L=100;function S(t,n,o,s=!0){!o||t[n]&&!s||(t[n]=o)}function E(t,n){const o=B(),s=O(t);void 0===s?o.set(t,[n]):s.length>=L?(N(t,s),o.set(t,[n])):o.set(t,[...s,n])}function I(n,v=(0,o.getCurrentScope)(),L=E){const I=v?.getClient()??(0,o.getClient)();if(!I)return void(s.DEBUG_BUILD&&u.debug.warn("No client available to capture log."));const{release:N,environment:O,enableLogs:B=!1,beforeSendLog:R}=I.getOptions();if(!B)return void(s.DEBUG_BUILD&&u.debug.warn("logging option not enabled, log will not be captured."));const[,j]=(0,b._getTraceInfoFromScope)(I,v),C={...n.attributes},{user:{id:A,email:P,username:U},attributes:h={}}=(0,c.getCombinedScopeData)((0,o.getIsolationScope)(),v);S(C,"user.id",A,!1),S(C,"user.email",P,!1),S(C,"user.name",U,!1),S(C,"sentry.release",N),S(C,"sentry.environment",O);const{name:k,version:w}=I.getSdkMetadata()?.sdk??{};S(C,"sentry.sdk.name",k),S(C,"sentry.sdk.version",w);const M=I.getIntegrationByName("Replay"),z=M?.getReplayId(!0);S(C,"sentry.replay_id",z),z&&"buffer"===M?.getRecordingMode()&&S(C,"sentry._internal.replay_is_buffering",!0);const F=n.message;
302if((0,l.isParameterizedString)(F)){const{__sentry_template_string__:t,__sentry_template_values__:n=[]}=F;n?.length&&(C["sentry.message.template"]=t),n.forEach((t,n)=>{C[`sentry.message.parameter.${n}`]=t})}const G=(0,f._getSpanForScope)(v);S(C,"sentry.trace.parent_span_id",G?.spanContext().spanId);const W={...n,attributes:C};I.emit("beforeCaptureLog",W);const x=R?(0,u.consoleSandbox)(()=>R(W)):W;if(!x)return I.recordDroppedEvent("before_send","log_item",1),void(s.DEBUG_BUILD&&u.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:V,message:Y,attributes:q={},severityNumber:X}=x,$=(0,p.timestampInSeconds)(),H=(0,_.getSequenceAttribute)($);L(I,{timestamp:$,level:V,body:D(String(Y)),trace_id:j?.trace_id,severity_number:X??y.SEVERITY_TEXT_TO_SEVERITY_NUMBER[V],attributes:T({...(0,t.serializeAttributes)(h),...(0,t.serializeAttributes)(q,!0),[H.key]:H.value})}),I.emit("afterCaptureLog",x)}function N(t,n){const o=n??O(t)??[];if(0===o.length)return;const s=t.getOptions(),u=(0,v.createLogEnvelope)(o,s._metadata,s.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);B().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(u)}function O(t){return B().get(t)}function B(){return(0,n.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function T(t){const n={};for(const[o,s]of Object.entries(t)){const t=D(o);"string"===s.type?n[t]={...s,value:D(s.value)}:n[t]=s}return n}function D(t){const n=Object(t),o=n.isWellFormed,s=n.toWellFormed;return"function"==typeof o&&"function"==typeof s?o.call(t)?t:s.call(t):t}},1835,[1796,1773,1797,1768,1772,1785,1823,1793,1790,1836,1837,1838,1839]);
303__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSequenceAttribute",{enumerable:!0,get:function(){return o}});const t="sentry.timestamp.sequence";let n,u=0;function o(o){const c=Math.floor(1e3*o);void 0!==n&&c!==n&&(u=0);const s=u;return u++,n=c,{key:t,value:{value:s,type:"integer"}}}},1836,[]);
304__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getTraceInfoFromScope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(c,p){return p?(0,t.withScope)(p,()=>{const u=(0,o.getActiveSpan)(),S=u?(0,o.spanToTraceContext)(u):(0,t.getTraceContextFromScope)(p);return[u?(0,n.getDynamicSamplingContextFromSpan)(u):(0,n.getDynamicSamplingContextFromScope)(c,p),S]}):[void 0,void 0]}},1837,[1797,1811,1777]);
305__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SEVERITY_TEXT_TO_SEVERITY_NUMBER",{enumerable:!0,get:function(){return t}});const t={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},1838,[]);
306__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createLogContainerEnvelopeItem",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createLogEnvelope",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(n,t){const s=t?"auto":"never";return[{type:"log",item_count:n.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}function c(o,c,u,l,p){const f={};return c?.sdk&&(f.sdk={name:c.sdk.name,version:c.sdk.version}),u&&l&&(f.dsn=(0,n.dsnToString)(l)),(0,t.createEnvelope)(f,[s(o,p)])}},1839,[1803,1814,1840]);
307__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isBrowser",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]);function o(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||u())}function u(){const n=t.GLOBAL_OBJ.process;return"renderer"===n?.type}},1840,[1841,1770]);
308__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNodeEnv",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"loadModule",{enumerable:!0,get:function(){return c}});var t=r(d[0]);
308function n(){return!(0,t.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,n){return t.require(n)}function c(t,n=m){let c;try{c=o(n,t)}catch{}if(!c)try{const{cwd:u}=o(n,"process");c=o(n,`${u()}/node_modules/${t}`)}catch{}return c}},1841,[1842]);
309__d(function(g,r,i,a,m,e,d){"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function t(){
310/*! __SENTRY_SDK_SOURCE__ */
311return"npm"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSDKSource",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"isBrowserBundle",{enumerable:!0,get:function(){return n}})},1842,[]);
312__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"_INTERNAL_getMetricBuffer",{enumerable:!0,get:function(){return E}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]),p=r(d[7]),f=r(d[8]),b=r(d[9]),_=r(d[10]);const M=1e3;function y(t,n,o,s=!0){!o||!s&&n in t||(t[n]=o)}function v(t,n){const o=N(),s=E(t);void 0===s?o.set(t,[n]):s.length>=M?(D(t,s),o.set(t,[n])):o.set(t,[...s,n])}function I(t,n,o){const{release:s,environment:c}=n.getOptions(),u={...t.attributes};y(u,"user.id",o.id,!1),y(u,"user.email",o.email,!1),y(u,"user.name",o.username,!1),y(u,"sentry.release",s),y(u,"sentry.environment",c);const{name:l,version:p}=n.getSdkMetadata()?.sdk??{};y(u,"sentry.sdk.name",l),y(u,"sentry.sdk.version",p);const f=n.getIntegrationByName("Replay"),b=f?.getReplayId(!0);return y(u,"sentry.replay_id",b),b&&"buffer"===f?.getRecordingMode()&&y(u,"sentry._internal.replay_is_buffering",!0),{...t,attributes:u}}function S(n,o,s,c){const[,u]=(0,b._getTraceInfoFromScope)(o,s),_=(0,l._getSpanForScope)(s),M=_?_.spanContext().traceId:u?.trace_id,y=_?_.spanContext().spanId:void 0,v=(0,p.timestampInSeconds)(),I=(0,f.getSequenceAttribute)(v);return{timestamp:v,trace_id:M??"",span_id:y,name:n.name,type:n.type,unit:n.unit,value:n.value,attributes:{...(0,t.serializeAttributes)(c),...(0,t.serializeAttributes)(n.attributes,"skip-undefined"),[I.key]:I.value}}}function B(t,n){const l=n?.scope??(0,o.getCurrentScope)(),p=n?.captureSerializedMetric??v,f=l?.getClient()??(0,o.getClient)();if(!f)return void(s.DEBUG_BUILD&&c.debug.warn("No client available to capture metric."));const{_experiments:b,enableMetrics:_,beforeSendMetric:M}=f.getOptions();if(!(_??b?.enableMetrics??!0))return void(s.DEBUG_BUILD&&c.debug.warn("metrics option not enabled, metric will not be captured."));const{user:y,attributes:B}=(0,u.getCombinedScopeData)((0,o.getIsolationScope)(),l),D=I(t,f,y);f.emit("processMetric",D);const E=M||b?.beforeSendMetric,N=E?E(D):D;if(!N)return void(s.DEBUG_BUILD&&c.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const O=S(N,f,l,B);s.DEBUG_BUILD&&c.debug.log("[Metric]",O),p(f,O),f.emit("afterCaptureMetric",N)}function D(t,n){const o=n??E(t)??[];if(0===o.length)return;const s=t.getOptions(),c=(0,_.createMetricEnvelope)(o,s._metadata,s.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);N().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(c)}function E(t){return N().get(t)}function N(){return(0,n.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}},1843,[1796,1773,1797,1768,1772,1823,1793,1790,1836,1837,1844]);
313__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createMetricContainerEnvelopeItem",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createMetricEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(t,n){const s=n?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:t}]}function c(o,c,u,p,_){const f={};return c?.sdk&&(f.sdk={name:c.sdk.name,version:c.sdk.version}),u&&p&&(f.dsn=(0,t.dsnToString)(p)),(0,n.createEnvelope)(f,[s(o,_)])}},1844,[1803,1814,1840]);
314__d(function(g,r,i,a,m,e,d){"use strict";
314Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractGenAiSpansFromEvent",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),s=r(d[2]);function o(o,p){if("transaction"!==o.type||!o.spans?.length||!o.sdkProcessingMetadata?.hasGenAiSpans||!1===p.getOptions().streamGenAiSpans||(0,t.hasSpanStreamingEnabled)(p))return;const u=[],c=[];for(const n of o.spans)n.op?.startsWith("gen_ai.")?u.push((0,s.spanJsonToSerializedStreamedSpan)(n)):c.push(n);if(0===u.length)return;o.spans=c;const f=p.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:u.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,n.isBrowser)()&&{ingest_settings:{infer_ip:f,infer_user_agent:f}},items:u}]}},1845,[1840,1817,1846]);
315__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanJsonToSerializedStreamedSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]);function s(s){const n={trace_id:s.trace_id,span_id:s.span_id,parent_span_id:s.parent_span_id,name:s.description||"",start_timestamp:s.start_timestamp,end_timestamp:s.timestamp||s.start_timestamp,status:s.status&&"ok"!==s.status&&"cancelled"!==s.status?"error":"ok",is_segment:!1,attributes:{...s.data},links:s.links};return(0,t.streamedSpanJsonToSerializedSpan)(n)}},1846,[1777]);
316__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TRANSPORT_BUFFER_SIZE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return c}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),s=r(d[3]),u=r(d[4]);const p=64;function c(c,l,f=(0,s.makePromiseBuffer)(c.bufferSize||p)){let E={};return{send:function(p){const _=[];if((0,n.forEachEnvelopeItem)(p,(t,o)=>{const s=(0,n.envelopeItemTypeToDataCategory)(o);(0,u.isRateLimited)(E,s)?c.recordDroppedEvent("ratelimit_backoff",s):_.push(t)}),0===_.length)return Promise.resolve({});const v=(0,n.createEnvelope)(p[0],_),D=s=>{(0,n.envelopeContainsItemType)(v,["client_report"])?t.DEBUG_BUILD&&o.debug.warn(`Dropping client report. Will not send outcomes (reason: ${s}).`):(0,n.forEachEnvelopeItem)(v,(t,o)=>{c.recordDroppedEvent(s,(0,n.envelopeItemTypeToDataCategory)(o))})};return f.add(()=>l({body:(0,n.serializeEnvelope)(v)}).then(n=>413===n.statusCode?(t.DEBUG_BUILD&&o.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),D("send_error"),n):(t.DEBUG_BUILD&&void 0!==n.statusCode&&(n.statusCode<200||n.statusCode>=300)&&o.debug.warn(`Sentry responded with status code ${n.statusCode} to sent event.`),E=(0,u.updateRateLimits)(E,n),n),n=>{throw D("network_error"),t.DEBUG_BUILD&&o.debug.error("Encountered error running transport request:",n),n})).then(t=>t,n=>{if(n===s.SENTRY_BUFFER_FULL_ERROR)return t.DEBUG_BUILD&&o.debug.error("Skipped sending event because buffer is full."),D("queue_overflow"),Promise.resolve({});throw n})},flush:t=>f.drain(t)}}},1847,[1768,1772,1814,1848,1849]);
317__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"makePromiseBuffer",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=Symbol.for("SentryBufferFullError");function u(u=100){const f=new Set;function c(n){f.delete(n)}return{get $(){return Array.from(f)},add:function(t){if(!(f.size<u))return(0,n.rejectedSyncPromise)(o);const s=t();return f.add(s),s.then(()=>c(s),()=>c(s)),s},drain:function(o){if(!f.size)return(0,n.resolvedSyncPromise)(!0);const u=Promise.allSettled(Array.from(f)).then(()=>!0);if(!o)return u;const c=[u,new Promise(n=>(0,t.safeUnref)(setTimeout(()=>n(!1),o)))];return Promise.race(c)}}}},1848,[1828,1831]);
318__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"disabledUntil",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isRateLimited",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"updateRateLimits",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const n=6e4;function s(s,o=(0,t.safeDateNow)()){const u=parseInt(`${s}`,10);if(!isNaN(u))return 1e3*u;const c=Date.parse(`${s}`);return isNaN(c)?n:c-o}function o(t,n){return t[n]||t.all||0}function u(n,s,u=(0,t.safeDateNow)()){return o(n,s)>u}function c(n,{statusCode:o,headers:u}
318,c=(0,t.safeDateNow)()){const f={...n},l=u?.["x-sentry-rate-limits"],p=u?.["retry-after"];if(l)for(const t of l.trim().split(",")){const[n,s,,,o]=t.split(":",5),u=parseInt(n,10),l=1e3*(isNaN(u)?60:u);if(s)for(const t of s.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(f[t]=c+l);else f.all=c+l}else p?f.all=c+s(p,c):429===o&&(f.all=c+6e4);return f}},1849,[1786]);
319__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createClientReportEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function c(c,o,s){const p=[{type:"client_report"},{timestamp:s||(0,n.dateTimestampInSeconds)(),discarded_events:c}];return(0,t.createEnvelope)(o?{dsn:o}:{},[p])}},1850,[1814,1790]);
320__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const s=[];t.message&&s.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(s.push(n.value),n.type&&s.push(`${n.type}: ${n.value}`))}catch{}return s}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getPossibleEventMessages",{enumerable:!0,get:function(){return t}})},1851,[]);
321__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"convertSpanJsonToTransactionEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"convertTransactionEventToSpanJson",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){const{trace_id:s,parent_span_id:_,span_id:o,status:p,origin:c,data:u,op:T}=n.contexts?.trace??{};return{data:u??{},description:n.transaction,op:T,parent_span_id:_,span_id:o??"",start_timestamp:n.start_timestamp??0,status:p,timestamp:n.timestamp,trace_id:s??"",origin:c,profile_id:u?.[t.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:u?.[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:n.measurements,is_segment:!0}}function s(n){return{type:"transaction",timestamp:n.timestamp,start_timestamp:n.start_timestamp,transaction:n.description,contexts:{trace:{trace_id:n.trace_id,span_id:n.span_id,parent_span_id:n.parent_span_id,op:n.op,status:n.status,origin:n.origin,data:{...n.data,...n.profile_id&&{[t.SEMANTIC_ATTRIBUTE_PROFILE_ID]:n.profile_id},...n.exclusive_time&&{[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.exclusive_time}}}},measurements:n.measurements}}},1852,[1798]);
322__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolveDataCollectionOptions",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const s={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function o(o){const n=null!=o.dataCollection?s:(0,t.defaultPiiToCollectionOptions)(o.sendDefaultPii),u=o.dataCollection??{};return{userInfo:u.userInfo??n.userInfo,cookies:u.cookies??n.cookies,httpHeaders:{request:u.httpHeaders?.request??n.httpHeaders.request,response:u.httpHeaders?.response??n.httpHeaders.response},httpBodies:u.httpBodies??n.httpBodies,queryParams:u.queryParams??n.queryParams,genAI:{inputs:u.genAI?.inputs??n.genAI.inputs,outputs:u.genAI?.outputs??n.genAI.outputs},stackFrameVariables:u.stackFrameVariables??n.stackFrameVariables,frameContextLines:u.frameContextLines??n.frameContextLines}}},1853,[1854]);
323__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"defaultPiiToCollectionOptions",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return!0===n?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:t.PII_HEADER_SNIPPETS},httpHeaders:{request:{deny:t.PII_HEADER_SNIPPETS},response:{deny:t.PII_HEADER_SNIPPETS}},httpBodies:[],queryParams:{deny:t.PII_HEADER_SNIPPETS},genAI:{inputs:!1,outputs:!1}
323,stackFrameVariables:!0,frameContextLines:7}}},1854,[1855]);
324__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FILTERED_VALUE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"PII_HEADER_SNIPPETS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SENSITIVE_COOKIE_NAME_SNIPPETS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SENSITIVE_KEY_SNIPPETS",{enumerable:!0,get:function(){return n}});const t="[Filtered]",s=["forwarded","-ip","remote-","via","-user"],n=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],o=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"]},1855,[]);
325__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initAndBind",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"setCurrentClient",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),u=r(d[2]);function o(o,b){!0===b.debug&&(t.DEBUG_BUILD?u.debug.enable():(0,u.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));(0,n.getCurrentScope)().update(b.initialScope);const l=new o(b);return c(l),l.init(),l}function c(t){(0,n.getCurrentScope)().setClient(t)}},1856,[1797,1768,1772]);
326__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"MIN_DELAY",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"START_DELAY",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return h}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]);const f=100,c=5e3,l=36e5;function h(h){function p(...n){e.DEBUG_BUILD&&t.debug.log("[Offline]:",...n)}return e=>{const t=h(e);if(!e.createStore)throw new Error("No `createStore` function was provided");const y=e.createStore(e);let w,v=c;function S(e){w&&clearTimeout(w),w=(0,u.safeUnref)(setTimeout(async()=>{w=void 0;const e=await y.shift();e&&(p("Attempting to send previously queued event"),e[0].sent_at=new Date((0,o.safeDateNow)()).toISOString(),b(e,!0).catch(e=>{p("Failed to retry sending",e)}))},e))}function _(){w||(S(v),v=Math.min(2*v,l))}async function b(o,u=!1){if(!u&&(0,n.envelopeContainsItemType)(o,["replay_event","replay_recording"]))return await y.push(o),S(f),{};try{if(e.shouldSend&&!1===await e.shouldSend(o))throw new Error("Envelope not sent because `shouldSend` callback returned false");const n=await t.send(o);let u=f;if(n)if(n.headers?.["retry-after"])u=(0,s.parseRetryAfterHeader)(n.headers["retry-after"]);else if(n.headers?.["x-sentry-rate-limits"])u=6e4;else if((n.statusCode||0)>=400)return n;return S(u),v=c,n}catch(t){if(await(l=o,h=t,w=v,!(0,n.envelopeContainsItemType)(l,["client_report"])&&(!e.shouldStore||e.shouldStore(l,h,w))))return u?await y.unshift(o):await y.push(o),_(),p("Error sending. Event queued.",t),{};throw t}var l,h,w}return e.flushAtStartup&&_(),{send:b,flush:e=>(void 0===e&&(v=c,S(f)),t.flush(e))}}}},1857,[1768,1772,1814,1786,1849,1831]);
327__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"eventFromEnvelope",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return l}});var n=_r(d[0]),t=_r(d[1]),r=_r(d[2]);const o="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function u(n,t){let o;return(0,r.forEachEnvelopeItem)(n,(n,r)=>(t.includes(r)&&(o=Array.isArray(n)?n[1]:void 0),!!o)),o}function s(n,t){return r=>{const o=n(r);return{...o,send:async n=>{const r=u(n,["event","transaction","profile","replay_event"]);return r&&(r.release=t),o.send(n)}}}}function c(n,t){return(0,r.createEnvelope)(t?{...n[0],dsn:t}:n[0],n[1])}function l(r,l){return f=>{const p=r(f),v=new Map,E=l||(n=>{const t=n.getEvent();return t?.extra?.[o]&&Array.isArray(t.extra[o])?t.extra[o]:[]});function y(o,u){const c=u?`${o}:${u}`:o;let l=v.get(c);if(!l){const p=(0,t.dsnFromString)(o);if(!p)return;const E=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(p,f.tunnel);l=u?s(r,u)({...f,url:E}):r({...f,url:E}),v.set(c,l)}return[o,l]}return{send:async function(n){const t=E({envelope:n,getEvent:function(t){return u(n,t?.length?t:["event"])}}).map(n=>"string"==typeof n?y(n,void 0):y(n.dsn,n.release)).filter(n=>!!n),r=t.length?t:[["",p]];return(await Promise.all(r.map(([t,r])=>r.send(c(n,t)))))[0]},flush:async function(n){const t=[...v.values(),p];return(await Promise.all(t.map(t=>t.flush(n)))).every(n=>n)}}}}},1858,[1832,1803,1814]);
328__d(function(g,r,i,a,m,e,d){"use strict";
328Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=new Set;function u(u){u.forEach(u=>{o.add(u),n.DEBUG_BUILD&&t.debug.log(`AI provider "${u}" wrapping will be skipped`)})}function p(n){return o.has(n)}function c(){o.clear(),n.DEBUG_BUILD&&t.debug.log("Cleared AI provider skip registrations")}},1859,[1768,1772]);
329__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterKeyValueData",{enumerable:!0,get:function(){return n}});var o=r(d[0]);function t(o,t){return t.some(t=>o.includes(t))}function n(n,s,c){if(!1===s)return{};const E=null!=c?[...o.SENSITIVE_KEY_SNIPPETS,...c]:o.SENSITIVE_KEY_SNIPPETS,u={};if(!0===s){for(const s of Object.keys(n))u[s]=t(s.toLowerCase(),E)?o.FILTERED_VALUE:n[s];return u}if("deny"in s){const c=s.deny.map(o=>o.toLowerCase());for(const s of Object.keys(n)){const f=s.toLowerCase(),l=t(f,E)||c.some(o=>f.includes(o));u[s]=l?o.FILTERED_VALUE:n[s]}return u}const f=s.allow.map(o=>o.toLowerCase());for(const s of Object.keys(n)){const c=s.toLowerCase();if(t(c,E))u[s]=o.FILTERED_VALUE;else{const t=f.some(o=>c.includes(o));u[s]=t?n[s]:o.FILTERED_VALUE}}return u}},1860,[1855]);
330__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterCookies",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);function o(o,c){if(!1===c)return{};try{const f=(0,t.parseCookie)(o);return 0===Object.keys(f).length?{}:(0,u.filterKeyValueData)(f,c,n.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return n.FILTERED_VALUE}}},1861,[1862,1855,1860]);
331__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n={};let o=0;for(;o<t.length;){const c=t.indexOf("=",o);if(-1===c)break;let f=t.indexOf(";",o);if(-1===f)f=t.length;else if(f<c){o=t.lastIndexOf(";",c-1)+1;continue}const l=t.slice(o,c).trim();if(void 0===n[l]){let o=t.slice(c+1,f).trim();34===o.charCodeAt(0)&&(o=o.slice(1,-1));
331try{n[l]=-1!==o.indexOf("%")?decodeURIComponent(o):o}catch{n[l]=o}}o=f+1}return n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseCookie",{enumerable:!0,get:function(){return t}})},1862,[]);
332__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterQueryParams",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function u(u,c){if(!1===c)return{};try{const t=new URLSearchParams(u),f={};return t.forEach((t,n)=>{f[n]=t}),0===Object.keys(f).length?{}:(0,n.filterKeyValueData)(f,c)}catch{return t.FILTERED_VALUE}}},1863,[1855,1860]);
333__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FALSY_ENV_VALUES",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TRUTHY_ENV_VALUES",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"envToBool",{enumerable:!0,get:function(){return o}});const n=new Set(["false","f","n","no","off","0"]),t=new Set(["true","t","y","yes","on","1"]);function o(o,u){const c=String(o).toLowerCase();return!n.has(c)&&(!!t.has(c)||(u?.strict?null:Boolean(o)))}},1864,[]);
334__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createCheckInEnvelope",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function c(c,u,f,k,v){const _={sent_at:new Date((0,o.safeDateNow)()).toISOString()};f?.sdk&&(_.sdk={name:f.sdk.name,version:f.sdk.version}),k&&v&&(_.dsn=(0,n.dsnToString)(v)),u&&(_.trace=u);const l=s(c);return(0,t.createEnvelope)(_,[l])}function s(n){return[{type:"check_in"},n]}},1865,[1803,1814,1786]);
335__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isSentryRequestUrl",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(t,n){const c=n?.getDsn(),o=n?.getOptions().tunnel;return u(t,c)||s(t,o)}function s(t,n){return!!n&&c(t)===c(n)}function u(n,s){const u=(0,t.parseStringToURLObject)(n);return!(!u||(0,t.isURLObjectRelative)(u))&&(!!s&&(c=u.hostname,o=s.host,(c===o||o.length>0&&c.endsWith(`.${o}`))&&/(^|&|\?)sentry_key=/.test(u.search)));var c,o}function c(t){return"/"===t[t.length-1]?t.slice(0,-1):t}},1866,[1867]);
336__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}
336),Object.defineProperty(e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getSanitizedUrlString",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isURLObjectRelative",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"parseStringToURLObject",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"parseUrl",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"stripDataUrlContent",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return h}});var t=r(d[0]);const n="thismessage:/";function o(t){return"isRelative"in t}function u(t,o){const u=t.indexOf("://")<=0&&0!==t.indexOf("//"),c=o??(u?n:void 0);try{if("canParse"in URL&&!URL.canParse(t,c))return;const n=new URL(t,c);return u?{isRelative:u,pathname:n.pathname,search:n.search,hash:n.hash}:n}catch{}}function c(t){if(o(t))return t.pathname;const n=new URL(t);return n.search="",n.hash="",["80","443"].includes(n.port)&&(n.port=""),n.password&&(n.password="%filtered%"),n.username&&(n.username="%filtered%"),n.toString()}function s(t,n,o,u){return`${o?.method?.toUpperCase()??"GET"} ${u||(t?"client"===n?c(t):t.pathname:"/")}`}function l(n,u,c,l,p){const h={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return p&&(h["server"===u?"http.route":"url.template"]=p,h[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),l?.method&&(h[t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=l.method.toUpperCase()),n&&(n.search&&(h["url.query"]=n.search),n.hash&&(h["url.fragment"]=n.hash),n.pathname&&(h["url.path"]=n.pathname,"/"===n.pathname&&(h[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),o(n)||(h[t.SEMANTIC_ATTRIBUTE_URL_FULL]=n.href,n.port&&(h["url.port"]=n.port),n.protocol&&(h["url.scheme"]=n.protocol),n.hostname&&(h["server"===u?"server.address":"url.domain"]=n.hostname))),[s(n,u,l,p),h]}function p(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const o=n[6]||"",u=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:o,hash:u,relative:n[5]+o+u}}function h(t){return t.split(/[?#]/,1)[0]}function f(t){const{protocol:n,host:o,path:u}=t;return`${n?`${n}://`:""}${o?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${u}`}function T(t,n=!0){if(t.startsWith("data:")){const o=t.match(/^data:([^;,]+)/),u=o?o[1]:"text/plain",c=t.includes(";base64,"),s=t.indexOf(",");let l="";if(n&&-1!==s){const n=t.slice(s+1);l=n.length>10?`${n.slice(0,10)}... [truncated]`:n}return`data:${u}${c?",base64":""}${l?`,${l}`:""}`}return t}},1867,[1798]);
337__d(function(g,r,i,a,m,e,d){"use strict";function t(t,...n){const _=new String(String.raw(t,...n));return _.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),_.__sentry_template_values__=n,_}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fmt",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"parameterize",{enumerable:!0,get:function(){return t}});const n=t},1868,[]);
338__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handleTunnelRequest",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]);async function u(u){const{request:l,allowedDsns:p}=u;if(0===p.length)return new Response("Tunnel not configured",{status:500});const c=new Uint8Array(await l.arrayBuffer());let f;try{[f]=(0,o.parseEnvelope)(c)}catch{return new Response("Invalid envelope",{status:400})}if(!f)return new Response("Invalid envelope: missing header",{status:400});const w=f.dsn;if(!w)return new Response("Invalid envelope: missing DSN",{status:400});if(!p.some(n=>n===w))return t.debug.warn(`Sentry tunnel: rejected request with unauthorized DSN (${w})`),new Response("DSN not allowed",{status:403});const v=(0,s.makeDsn)(w);if(!v)return t.debug.warn(`Could not extract DSN Components from: ${w}`),new Response("Invalid DSN",{status:403});const y=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(v);try{return await fetch(y,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:c})}catch(n){return t.debug.error("Sentry tunnel: failed to forward envelope",n),new Response("Failed to forward envelope to Sentry",{status:500})}}},1869,[1832,1772,1803,1814]);
339__d(function(g,r,i,a,m,e,d){"use strict";function s(s){void 0===s.user?.ip_address&&(s.user={...s.user,ip_address:"{{auto}}"})}function t(s){"aggregates"in s?void 0===s.attrs?.ip_address&&(s.attrs={...s.attrs,ip_address:"{{auto}}"}):void 0===s.ipAddress&&(s.ipAddress="{{auto}}")}
339Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return s}})},1870,[]);
340__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applySdkMetadata",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n,s,c=[s],o="npm"){const _=(n._metadata=n._metadata||{}).sdk=n._metadata.sdk||{};_.name||(_.name=`sentry.javascript.${s}`,_.packages=c.map(n=>({name:`${o}:@sentry/${n}`,version:t.SDK_VERSION})),_.version=t.SDK_VERSION)}},1871,[1774]);
341__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getTraceData",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),p=r(d[4]),s=r(d[5]),u=r(d[6]),l=r(d[7]),S=r(d[8]),T=r(d[9]),C=r(d[10]);function f(f={}){const b=f.client||(0,o.getClient)();if(!(0,c.isEnabled)()||!b)return{};const E=(0,n.getMainCarrier)(),P=(0,t.getAsyncContextStrategy)(E);if(P.getTraceData)return P.getTraceData(f);const I=f.scope||(0,o.getCurrentScope)(),D=f.span||(0,s.getActiveSpan)(),H=(0,l.spanIsNonRecordingSpan)(D)&&!(0,u.hasSpansEnabled)(b.getOptions());if(!D&&(0,o.hasExternalPropagationContext)())return{};const _=D&&!H?(0,s.spanToTraceHeader)(D):y(I),v=D?(0,S.getDynamicSamplingContextFromSpan)(D):(0,S.getDynamicSamplingContextFromScope)(b,I),A=(0,T.dynamicSamplingContextToSentryBaggageHeader)(v);if(!C.TRACEPARENT_REGEXP.test(_))return p.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const R={"sentry-trace":_,baggage:A};return f.propagateTraceparent&&(R.traceparent=D&&!H?(0,s.spanToTraceparentHeader)(D):x(I)),R}function y(t){const{traceId:n,sampled:o,propagationSpanId:c}=t.getPropagationContext();return(0,C.generateSentryTraceHeader)(n,c,o)}function x(t){const{traceId:n,sampled:o,propagationSpanId:c}=t.getPropagationContext();return(0,C.generateTraceparentHeader)(n,c,o)}},1872,[1778,1773,1797,1825,1772,1777,1806,1808,1811,1802,1801]);
342__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c="[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:";function u(u,s,f){if("string"!=typeof u||!s)return!0;const l=f?.get(u);if(void 0!==l)return t.DEBUG_BUILD&&!l&&n.debug.log(c,u),l;const b=(0,o.stringMatchesSomePattern)(u,s);return f?.set(u,b),t.DEBUG_BUILD&&!b&&n.debug.log(c,u),b}},1873,[1768,1772,1787]);
343__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getTraceMetaTags",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return Object.entries(n||(0,t.getTraceData)()).map(([t,n])=>`<meta name="${t}" content="${n}"/>`).join("\n")}},1874,[1872]);
344__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n,o){let u,c,f;const l=o?.maxWait?Math.max(o.maxWait,n):0,s=o?.setTimeoutImpl||setTimeout;function v(){return T(),u=t(),u}function T(){void 0!==c&&clearTimeout(c),void 0!==f&&clearTimeout(f),c=f=void 0}function b(){return c&&clearTimeout(c),c=s(v,n),l&&void 0===f&&(f=s(v,l)),u}return b.cancel=T,b.flush=function(){return void 0!==c||void 0!==f?v():u},b}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return t}})},1875,[]);
345__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"headersToDict",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"httpRequestToRequestData",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return h}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]);const f=1048576,l=["text/","application/json","application/x-www-form-urlencoded","application/xml","application/graphql"];function p(t){return"small"===t?1e3:"medium"===t?1e4:f}function y(t){const o={};try{t.forEach((t,n)=>{"string"==typeof t&&(o[n]=t)})}catch{}return o}function b(t){const o=Object.create(null);try{Object.entries(t).forEach(([t,n])=>{"string"==typeof n?o[t]=n:"number"==typeof n&&(o[t]=String(n))})}catch{}return o}function h(t){const o=y(t.headers);return{method:t.method,url:t.url,query_string:q(t.url),headers:o}}function O(t){if(!t)return!1;const o=t.toLowerCase();return l.some(t=>o.includes(t))}async function D(n,c,s){try{const l=n.headers.get("content-type");if(!O(l))return void(t.DEBUG_BUILD&&o.debug.log("Skipping body capture for non-textual content type:",l));if(!n.body)return;const y=n.headers.get("content-length"),b=p(s);if(y){const n=parseInt(y,10);if(!isNaN(n)&&n>f)return void(t.DEBUG_BUILD&&o.debug.log("Skipping body capture: body too large",n))}const h=n.clone().text(),D=new Promise(t=>{(0,u.safeUnref)(setTimeout(()=>t(null),2e3))}),E=await Promise.race([h,D]);if(null===E)return void(t.DEBUG_BUILD&&o.debug.log("Timeout reading request body"));if(!E)return;const _=(new TextEncoder).encode(E),j=_.length;let w;if(j>b){w=`${(new TextDecoder).decode(_.slice(0,b-3))}...`}else w=E;c.setSDKProcessingMetadata({normalizedRequest:{data:w}}),t.DEBUG_BUILD&&o.debug.log("Captured request body:",j,"bytes")}catch(n){t.DEBUG_BUILD&&o.debug.error("Error capturing request body:",n)}}function E(t){const o=t.headers||{},n=("string"==typeof o["x-forwarded-host"]?o["x-forwarded-host"]:void 0)||("string"==typeof o.host?o.host:void 0),c=("string"==typeof o["x-forwarded-proto"]?o["x-forwarded-proto"]:void 0)||t.protocol||(t.socket?.encrypted?"https":"http"),s=t.url||"",u=_({url:s,host:n,protocol:c}),f=t.body||void 0,l=t.cookies;return{url:u,method:t.method,query_string:q(s),headers:b(o),cookies:l,data:f}}function _({url:t,protocol:o,host:n}){return t?.startsWith("http")?t:t&&n?`${o}://${n}${t}`:void 0}function j(t,o=!1,u="request"){const f="boolean"==typeof o?(0,n.defaultPiiToCollectionOptions)(o):o,l="request"===u?f.httpHeaders.request:f.httpHeaders.response,p=f.cookies,y=`http.${u}.header.`,b={};try{const o={};for(const[n,u]of Object.entries(t)){if(null==u)continue;const t=n.toLowerCase();if("cookie"===t||"set-cookie"===t){if(!1===p)continue;if("string"==typeof u&&""!==u){const o=P(u,"set-cookie"===t),n=(0,s.filterKeyValueData)(o,p,c.SENSITIVE_COOKIE_NAME_SNIPPETS);for(const[o,c]of Object.entries(n))b[`${y}${w(t)}.${w(o)}`]=c}else b[`${y}${w(t)}`]=c.FILTERED_VALUE}else{if(!1===l)continue;Array.isArray(u)?o[t]=u.map(t=>null!=t?String(t):t).join(";
345"):"string"==typeof u&&(o[t]=u)}}if(!1!==l){const t=(0,s.filterKeyValueData)(o,l);for(const[o,n]of Object.entries(t))b[`${y}${w(o)}`]=n}}catch{}return b}function w(t){return t.replace(/-/g,"_")}function P(t,o){const n=t.indexOf(";"),c=o&&-1!==n?t.substring(0,n):t,s=o?[c]:c.split("; "),u={};for(const t of s){const o=t.indexOf("="),n=(-1!==o?t.substring(0,o):t).toLowerCase(),c=-1!==o?t.substring(o+1):"";u[n]=c}return u}function q(t){if(t)try{const o=new URL(t,"http://s.io").search.slice(1);return o.length?o:void 0}catch{return}}},1876,[1768,1772,1854,1855,1860,1831]);
346__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_KIND",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"spanKindToName",{enumerable:!0,get:function(){return E}});const n={INTERNAL:0,SERVER:1,CLIENT:2,PRODUCER:3,CONSUMER:4},t={[n.INTERNAL]:"INTERNAL",[n.SERVER]:"SERVER",[n.CLIENT]:"CLIENT",[n.PRODUCER]:"PRODUCER",[n.CONSUMER]:"CONSUMER"};function E(n){return t[n]}},1877,[]);
347__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addBreadcrumb",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c=100;function u(u,s){const b=(0,t.getClient)(),l=(0,t.getIsolationScope)();if(!b)return;const{beforeBreadcrumb:f=null,maxBreadcrumbs:p=c}=b.getOptions();if(p<=0)return;const B={timestamp:(0,o.dateTimestampInSeconds)(),...u},_=f?(0,n.consoleSandbox)(()=>f(B,s)):B;null!==_&&(b.emit&&b.emit("beforeAddBreadcrumb",_,s),l.addBreadcrumb(_,p))}},1878,[1797,1772,1790]);
348__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"functionToStringIntegration",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let c;const u=new WeakMap,p=(0,n.defineIntegration)(()=>({name:"FunctionToString",setupOnce(){c=Function.prototype.toString;try{Function.prototype.toString=function(...n){const p=(0,o.getOriginalFunction)(this),s=u.has((0,t.getClient)())&&void 0!==p?p:this;return c.apply(s,n)}}catch{}},setup(t){u.set(t,!0)}}))},1879,[1797,1834,1784]);
349__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"eventFiltersIntegration",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),i=r(d[3]),s=r(d[4]),c=r(d[5]);const l=[/^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$/],u=(0,t.defineIntegration)((n={})=>{let t;return{name:"EventFilters",setup(o){const i=o.getOptions();t=p(n,i)},processEvent(o,i,s){if(!t){const o=s.getOptions();t=p(n,o)}return v(o,t)?null:o}}}),f=(0,t.defineIntegration)((n={})=>({...u(n),name:"InboundFilters"}));function p(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:l],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function v(t,i){if(t.type){if("transaction"===t.type&&b(t,i.ignoreTransactions))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.getEventDescription)(t)}`),!0}else{if(E(t,i.ignoreErrors))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.getEventDescription)(t)}`),!0;if($(t))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.getEventDescription)(t)}`),!0;if(U(t,i.denyUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(t)}.\nUrl: ${D(t)}`),!0;if(!h(t,i.allowUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(t)}.\nUrl: ${D(t)}`),!0}return!1}function E(n,t){return!!t?.length&&(0,i.getPossibleEventMessages)(n).some(n=>
349(0,c.stringMatchesSomePattern)(n,t))}function b(n,t){if(!t?.length)return!1;const o=n.transaction;return!!o&&(0,c.stringMatchesSomePattern)(o,t)}function U(n,t){if(!t?.length)return!1;const o=D(n);return!!o&&(0,c.stringMatchesSomePattern)(o,t)}function h(n,t){if(!t?.length)return!0;const o=D(n);return!o||(0,c.stringMatchesSomePattern)(o,t)}function y(n=[]){for(let t=n.length-1;t>=0;t--){const o=n[t];if(o&&"<anonymous>"!==o.filename&&"[native code]"!==o.filename)return o.filename||null}return null}function D(t){try{const n=[...t.exception?.values??[]].reverse().find(n=>void 0===n.mechanism?.parent_id&&n.stacktrace?.frames?.length),o=n?.stacktrace?.frames;return o?y(o):null}catch{return n.DEBUG_BUILD&&o.debug.error(`Cannot extract url for event ${(0,s.getEventDescription)(t)}`),null}}function $(n){return!!n.exception?.values?.length&&(!n.message&&!n.exception.values.some(n=>n.stacktrace||n.type&&"Error"!==n.type||n.value))}},1880,[1768,1834,1772,1851,1783,1787]);
350__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s=(0,t.defineIntegration)((t={})=>{const s=t.limit||5,c=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,u,p){const l=p.getOptions();(0,n.applyAggregateErrorsToEvent)(o.exceptionFromError,l.stackParser,c,s,t,u)}}})},1881,[1834,1882,1883]);
351__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(t,o,c,s,u,l){if(!u.exception?.values||!l||!(0,n.isInstanceOf)(l.originalException,Error))return;const p=u.exception.values.length>0?u.exception.values[u.exception.values.length-1]:void 0;p&&(u.exception.values=i(t,o,s,l.originalException,c,u.exception.values,p,0))}function i(t,u,l,p,f,h,x,v){if(h.length>=l+1)return h;let _=[...h];if((0,n.isInstanceOf)(p[f],Error)){c(x,v,p);const n=t(u,p[f]),o=_.length;s(n,f,o,v),_=i(t,u,l,p[f],f,[n,..._],n,o)}return o(p)&&p.errors.forEach((o,h)=>{if((0,n.isInstanceOf)(o,Error)){c(x,v,p);const n=t(u,o),E=_.length;s(n,`errors[${h}]`,E,v),_=i(t,u,l,o,f,[n,..._],n,E)}}),_}function o(n){return Array.isArray(n.errors)}function c(n,t,i){n.mechanism={handled:!0,type:"auto.core.linked_errors",...o(i)&&{is_exception_group:!0},...n.mechanism,exception_id:t}}function s(n,t,i,o){n.mechanism={handled:!0,...n.mechanism,type:"chained",source:t,exception_id:i,parent_id:o}}},1882,[1785]);
352__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"eventFromMessage",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"eventFromUnknownInput",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"exceptionFromError",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"parseStackFrames",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);function c(t,n){return t(n.stack||"",1)}function u(n){return(0,t.isError)(n)&&"__sentry_fetch_url_host__"in n&&"string"==typeof n.__sentry_fetch_url_host__}function f(t){return u(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function _(t,n){const s={type:n.name||n.constructor.name,value:f(n)},o=c(t,n);return o.length&&(s.stacktrace={frames:o}),s}function p(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];if(s instanceof Error)return s}}function y(n){if("name"in n&&"string"==typeof n.name){let t=`'${n.name}' captured as exception`;return"message"in n&&"string"==typeof n.message&&(t+=` with message '${n.message}'`),t}if("message"in n&&"string"==typeof n.message)return n.message;const s=(0,o.extractExceptionKeysForMessage)(n);if((0,t.isErrorEvent)(n))return`Event \`ErrorEvent\` captured as exception with message \`${n.message}\``;const c=l(n);return`${c&&"Object"!==c?`'${c}'`:"Object"} captured as exception with keys: ${s}`}function l(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{}}function h(n,o,c,u){if((0,t.isError)(c))return[c,void 0];if(o.synthetic=!0,(0,t.isPlainObject)(c)){const t=n?.getOptions().normalizeDepth,o={__serialized__:(0,s.normalizeToSize)(c,t)},f=p(c);if(f)return[f,o];const _=y(c),l=u?.syntheticException||new Error(_);return l.message=_,[l,o]}const f=u?.syntheticException||new Error(c);return f.message=`${c}`,[f,void 0]}function v(t,s,o,c){const u=c?.data&&c.data.mechanism||{handled:!0,type:"generic"},[f,p]=h(t,u,o,c),y={exception:{values:[_(s,f)]}};return p&&(y.extra=p),(0,n.addExceptionTypeValue)(y,void 0,void 0),(0,n.addExceptionMechanism)(y,u),{...y,event_id:c?.event_id}}function E(s,o,u="info",f,_){const p={event_id:f?.event_id,level:u};if(_&&f?.syntheticException){const t=c(s,f.syntheticException);t.length&&(p.exception={values:[{value:o,stacktrace:{frames:t}}]},(0,n.addExceptionMechanism)(p,{synthetic:!0}))}
352if((0,t.isParameterizedString)(o)){const{__sentry_template_string__:t,__sentry_template_values__:n}=o;return p.logentry={message:t,params:n},p}return p.message=o,p}},1883,[1785,1783,1788,1784]);
353__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s=(0,t.defineIntegration)(()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",t=>{(0,o.forEachEnvelopeItem)(t,(t,o)=>{if("event"===o){const o=Array.isArray(t)?t[1]:void 0;o&&((0,n.stripMetadataFromStackFrames)(o),t[1]=o)}})}),t.on("applyFrameMetadata",o=>{if(o.type)return;const s=t.getOptions().stackParser;(0,n.addMetadataToStackFrames)(s,o)})}}))},1884,[1834,1885,1814]);
354__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addMetadataToStackFrames",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getMetadataForUrl",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stripMetadataFromStackFrames",{enumerable:!0,get:function(){return l}});var t=r(d[0]);const n=new Map,o=new Set;function c(n){if(!t.GLOBAL_OBJ._sentryModuleMetadata)return{};const o={};for(const c of Object.keys(t.GLOBAL_OBJ._sentryModuleMetadata)){const f=t.GLOBAL_OBJ._sentryModuleMetadata[c],u=n(c);for(const t of u.reverse())if(t.filename){o[t.filename]=f;break}}return o}function f(c){if(t.GLOBAL_OBJ._sentryModuleMetadata)for(const f of Object.keys(t.GLOBAL_OBJ._sentryModuleMetadata)){const u=t.GLOBAL_OBJ._sentryModuleMetadata[f];if(o.has(f))continue;o.add(f);const s=c(f);for(const t of s.reverse())if(t.filename){n.set(t.filename,u);break}}}function u(t,o){return f(t),n.get(o)}function s(t,n){n.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(n=>{if(!n.filename||n.module_metadata)return;const o=u(t,n.filename);o&&(n.module_metadata=o)})})}function l(t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{delete t.module_metadata})})}},1885,[1770]);
355__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"requestDataIntegration",{enumerable:!0,get:function(){return l}});
355var t=r(d[0]),s=r(d[1]),o=r(d[2]),n=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]);const l=(0,s.defineIntegration)((s={})=>{function o(t){const o=t.getDataCollectionOptions(),n={...o,...!0===s.include?.cookies&&!1===o.cookies&&{cookies:!0},...!0===s.include?.headers&&!1===o.httpHeaders.request&&{httpHeaders:{...o.httpHeaders,request:!0}}};return{dataCollection:n,include:{cookies:!1!==n.cookies,data:!0,headers:!1!==n.httpHeaders.request,ip:n.userInfo,query_string:!1!==n.queryParams,url:!0,...s.include}}}return{name:"RequestData",processEvent(t,s,n){const{sdkProcessingMetadata:u={}}=t,{normalizedRequest:c,ipAddress:p}=u,{include:l}=o(n);return c&&f(t,c,{ipAddress:p},l),t},processSegmentSpan(s,n){const{sdkProcessingMetadata:u={}}=(0,t.getIsolationScope)().getScopeData(),{normalizedRequest:c,ipAddress:p}=u;if(!c)return;const{include:l,dataCollection:f}=o(n);S(s,c,p,l,f)}}});function f(t,s,o,n){if(t.request={...t.request,...h(s,n)},n.ip){const n=s.headers&&(0,c.getClientIPAddress)(s.headers)||o.ipAddress;n&&(t.user={...t.user,ip_address:n})}}function S(t,s,n,l,f){const S=h(s,l),q={};if(S.url&&(q["url.full"]=S.url),S.method&&(q["http.request.method"]=S.method),S.query_string&&(q["url.query"]=k(S.query_string)),(0,p.safeSetSpanJSONAttributes)(t,q),S.cookies&&Object.keys(S.cookies).length>0){const s=Object.entries(S.cookies).map(([t,s])=>`${t}=${s}`).join("; "),o=(0,u.httpHeadersToSpanAttributes)({cookie:s},f,"request");(0,p.safeSetSpanJSONAttributes)(t,o)}if(S.headers){const s=(0,u.httpHeadersToSpanAttributes)(S.headers,f,"request");(0,p.safeSetSpanJSONAttributes)(t,s)}if(null!=S.data){const s="string"==typeof S.data?S.data:JSON.stringify(S.data);s&&(0,p.safeSetSpanJSONAttributes)(t,{"http.request.body.data":s})}if(l.ip){const u=s.headers&&(0,c.getClientIPAddress)(s.headers)||n||void 0;u&&(0,p.safeSetSpanJSONAttributes)(t,{[o.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:u})}}function h(t,s){const o={},u={...t.headers};if(s.headers&&(o.headers=u,s.cookies||delete u.cookie,!s.ip)){const t=new Set(c.ipHeaderNames.map(t=>t.toLowerCase()));for(const s of Object.keys(u))t.has(s.toLowerCase())&&delete u[s]}if(o.method=t.method,s.url&&(o.url=t.url),s.cookies){const s=t.cookies||(u?.cookie?(0,n.parseCookie)(u.cookie):void 0);o.cookies=s||{}}return s.query_string&&(o.query_string=t.query_string),s.data&&(o.data=t.data),o}function k(t){if("string"==typeof t)return t||void 0;return(Array.isArray(t)?t:Object.entries(t)).map(([t,s])=>`${t}=${s}`).join("&")||void 0}},1886,[1797,1834,1798,1862,1876,1887,1822]);
356__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getClientIPAddress",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ipHeaderNames",{enumerable:!0,get:function(){return t}});const t=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];function n(n){const F={};for(const t of Object.keys(n))F[t.toLowerCase()]=n[t];return t.map(t=>{const n=F[t.toLowerCase()],o=Array.isArray(n)?n.join(";"):n;return"Forwarded"===t?f(o):o?.split(",").map(t=>t.trim())}).reduce((t,n)=>n?t.concat(n):t,[]).find(t=>null!==t&&o(t))||null}function f(t){if(!t)return null;for(const n of t.split(";"))if(n.startsWith("for="))return n.slice(4);return null}function o(t){return/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(t)}},1887,[]);
357__d(function(g,r,i,a,m,e,d){"use strict";
357Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureConsoleIntegration",{enumerable:!0,get:function(){return v}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]);const v=(0,s.defineIntegration)((n={})=>{const s=n.levels||c.CONSOLE_LEVELS,l=n.handled??!0;return{name:"CaptureConsole",setup(n){"console"in f.GLOBAL_OBJ&&(0,o.addConsoleInstrumentationHandler)(({args:o,level:c})=>{(0,t.getClient)()===n&&s.includes(c)&&E(o,c,l)})}}});function E(o,s,c){const f=(0,u.severityLevelFromString)(s),v=new Error,E={level:(0,u.severityLevelFromString)(s),extra:{arguments:o}};(0,t.withScope)(t=>{if(t.addEventProcessor(t=>(t.logger="console",(0,l.addExceptionMechanism)(t,{handled:c,type:"auto.core.capture_console"}),t)),"assert"===s){if(!o[0]){const n=`Assertion failed: ${(0,p.safeJoin)(o.slice(1)," ")||"console.assert"}`;t.setExtra("arguments",o.slice(1)),t.captureMessage(n,f,{captureContext:E,syntheticException:v})}return}const u=o.find(t=>t instanceof Error);if(u)return void(0,n.captureException)(u,E);const x=(0,p.safeJoin)(o," ");t.captureMessage(x,f,{captureContext:E,syntheticException:v})})}},1888,[1797,1825,1889,1834,1772,1783,1890,1787,1770]);
358__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return f}});var n=r(d[0]),o=r(d[1]),t=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]);const u=new Set([]);function f(n){const o="console",t=(0,c.addHandler)(o,n);return(0,c.maybeInstrument)(o,L),t}function O(n){for(const o of n)u.add(o);return()=>{for(const o of n)u.delete(o)}}function L(){"console"in l.GLOBAL_OBJ&&o.CONSOLE_LEVELS.forEach(function(f){f in l.GLOBAL_OBJ.console&&(0,t.fill)(l.GLOBAL_OBJ.console,f,function(t){return o.originalConsoleMethods[f]=t,function(...t){const O=t[0],L=o.originalConsoleMethods[f],B=u.size&&"string"==typeof O&&(0,s.stringMatchesSomePattern)(O,u);B||(0,c.triggerHandlers)("console",{args:t,level:f}),(!B||n.DEBUG_BUILD&&o.debug.isEnabled())&&L?.apply(l.GLOBAL_OBJ.console,t)}})})}},1889,[1768,1772,1784,1787,1770,1771]);
359__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return"warn"===n?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"severityLevelFromString",{enumerable:!0,get:function(){return n}})},1890,[]);
360__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_shouldDropEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"dedupeIntegration",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),u=r(d[2]),i=r(d[3]);const o=(0,t.defineIntegration)(()=>{let t;return{name:"Dedupe",processEvent(i){if(i.type)return i;try{if(c(i,t))return n.DEBUG_BUILD&&u.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=i}}});function c(n,t){return!!t&&(!!f(n,t)||!!l(n,t))}function f(n,t){const u=n.message,i=t.message;return!(!u&&!i)&&(!(u&&!i||!u&&i)&&(u===i&&(!!s(n,t)&&!!p(n,t))))}function l(n,t){const u=v(t),i=v(n);return!(!u||!i)&&(u.type===i.type&&u.value===i.value&&(!!s(n,t)&&!!p(n,t)))}function p(n,t){let u=(0,i.getFramesFromEvent)(n),o=(0,i.getFramesFromEvent)(t);if(!u&&!o)return!0;if(u&&!o||!u&&o)return!1;if(o.length!==u.length)return!1;for(let n=0;n<o.length;n++){const t=o[n],i=u[n];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function s(n,t){let u=n.fingerprint,i=t.fingerprint;if(!u&&!i)return!0;if(u&&!i||!u&&i)return!1;try{return!(u.join("")!==i.join(""))}catch{return!1}}function v(n){return n.exception?.values?.[0]}},1891,[1768,1834,1772,1775]);
361__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]),f=r(d[6]);const l=(0,n.defineIntegration)((t={})=>{const{depth:n=3,captureErrorCause:o=!0}=t;return{name:"ExtraErrorData",processEvent(t,c,s){const{maxValueLength:u}=s.getOptions();return E(t,c,n,o,u)}}});function E(t,n={},o,f,l){if(!n.originalException||!(0,c.isError)(n.originalException))return t;const E=n.originalException.name||n.originalException.constructor.name,x=p(n.originalException,f,l);if(x){const n={...t.contexts},f=(0,s.normalize)(x,o);return(0,c.isPlainObject)(f)&&((0,u.setSkipNormalizationHint)(f),n[E]=f),{...t,contexts:n}}return t}function p(n,s,u){try{const t=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const s of Object.keys(n)){if(-1!==t.indexOf(s))continue;const l=n[s];o[s]=(0,c.isError)(l)||"string"==typeof l?u?(0,f.truncate)(`${l}`,u):`${l}`:l}if(s&&void 0!==n.cause)if((0,c.isError)(n.cause)){const t=n.cause.name||n.cause.constructor.name;o.cause={[t]:p(n.cause,!1,u)}}else o.cause=n.cause;if("function"==typeof n.toJSON){const t=n.toJSON();for(const n of Object.keys(t)){const s=t[n];o[n]=(0,c.isError)(s)?s.toString():s}}return o}catch(n){t.DEBUG_BUILD&&o.debug.error("Unable to extract extra data from the Error object:",n)}return null}},1892,[1768,1834,1772,1785,1788,1789,1787]);
362__d(function(g,r,i,a,m,e,d){"use strict";
362Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateIteratee",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const o=(0,t.defineIntegration)((t={})=>{const n=t.root,o=t.prefix||"app:///",f="window"in c.GLOBAL_OBJ&&!!c.GLOBAL_OBJ.window,l=t.iteratee||s({isBrowser:f,root:n,prefix:o});function u(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map(t=>{return{...t,...t.stacktrace&&{stacktrace:(n=t.stacktrace,{...n,frames:n?.frames?.map(t=>l(t))})}};var n})}}}catch{return t}}return{name:"RewriteFrames",processEvent(t){let n=t;return t.exception&&Array.isArray(t.exception.values)&&(n=u(n)),n}}});function s({isBrowser:t,root:c,prefix:o}){return s=>{if(!s.filename)return s;const f=/^[a-zA-Z]:\\/.test(s.filename)||s.filename.includes("\\")&&!s.filename.includes("/"),l=/^\//.test(s.filename);if(t){if(c){const t=s.filename;0===t.indexOf(c)&&(s.filename=t.replace(c,o))}}else if(f||l){const t=f?s.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):s.filename,l=c?(0,n.relative)(c,t):(0,n.basename)(t);s.filename=`${o}${l}`}return s}}},1893,[1834,1894,1770]);
363__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,n){let i=0;for(let n=t.length-1;n>=0;n--){const l=t[n];"."===l?t.splice(n,1):".."===l?(t.splice(n,1),i++):i&&(t.splice(n,1),i--)}if(n)for(;i--;i)t.unshift("..");return t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"basename",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"dirname",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isAbsolute",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"join",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"normalizePath",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"relative",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"resolve",{enumerable:!0,get:function(){return l}});const n=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function i(t){const i=t.length>1024?`<truncated>${t.slice(-1024)}`:t,l=n.exec(i);return l?l.slice(1):[]}function l(...n){let i="",l=!1;for(let t=n.length-1;t>=-1&&!l;t--){const c=t>=0?n[t]:"/";c&&(i=`${c}/${i}`,l="/"===c.charAt(0))}return i=t(i.split("/").filter(t=>!!t),!l).join("/"),(l?"/":"")+i||"."}function c(t){let n=0;for(;n<t.length&&""===t[n];n++);let i=t.length-1;for(;i>=0&&""===t[i];i--);return n>i?[]:t.slice(n,i-n+1)}function o(t,n){t=l(t).slice(1),n=l(n).slice(1);const i=c(t.split("/")),o=c(n.split("/")),u=Math.min(i.length,o.length);let f=u;for(let t=0;t<u;t++)if(i[t]!==o[t]){f=t;break}let s=[];for(let t=f;t<i.length;t++)s.push("..");return s=s.concat(o.slice(f)),s.join("/")}function u(n){const i=f(n),l="/"===n.slice(-1);let c=t(n.split("/").filter(t=>!!t),!i).join("/");return c||i||(c="."),c&&l&&(c+="/"),(i?"/":"")+c}function f(t){return"/"===t.charAt(0)}function s(...t){return u(t.join("/"))}function b(t){const n=i(t),l=n[0]||"";let c=n[1];return l||c?(c&&(c=c.slice(0,c.length-1)),l+c):"."}function h(t,n){let l=i(t)[2]||"";return n&&l.slice(-1*n.length)===n&&(l=l.slice(0,l.length-n.length)),l}},1894,[]);
364__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DB_OPERATIONS_TO_INSTRUMENT",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"FILTER_MAPPINGS",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"extractOperation",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"translateFiltersIntoMethods",{enumerable:!0,get:function(){return R}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]),c=r(d[6]),p=r(d[7]),l=r(d[8]),f=r(d[9]),h=r(d[10]);const y=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],b=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],S={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},T=["select","insert","upsert","update","delete"];function E(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function O(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function _(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function I(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function R(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...o]=t.split(".");let s;return s=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&S[n]||"filter",`${s}(${e}, ${o.join(".")})`}function P(e,t=!1){return new Proxy(e,{apply:(n,s,c)=>(0,h.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,s,c).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:f.SPAN_STATUS_ERROR}),(0,o.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:f.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:f.SPAN_STATUS_ERROR}),e.end(),(0,o.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...c))})}function A(e){const t=e.auth;if(t&&!O(e.auth)){for(const n of y){const o=t[n];o&&("function"==typeof e.auth[n]&&(e.auth[n]=P(o)))}for(const n of b){const o=t.admin[n];o&&("function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=P(o,!0)))}E(e.auth)}}function N(n,s){O(n.prototype.then)||(n.prototype.then=new Proxy(n.prototype.then,{apply(n,c,y){const b=T,S=c,E=I(S.method,S.headers);if(!b.includes(E))return Reflect.apply(n,c,y);if(!S?.url?.pathname||"string"!=typeof S.url.pathname)return Reflect.apply(n,c,y);const O=S.url.pathname.split("/"),P=O.length>0?O[O.length-1]:"",A=[];
364for(const[e,t]of S.url.searchParams.entries())A.push(R(e,t));const N=Object.create(null);if((0,l.isPlainObject)(S.body))for(const[e,t]of Object.entries(S.body))N[e]=t;const U=(0,t.getClient)(),j=s.sendOperationData??!0===U?.getDataCollectionOptions().userInfo,k=_(S.body,N),w="select"===E?"":`${E}${$=S.body,v=N,void 0!==_($,v)?"(...) ":""}`;var $,v;const x=j?A.join(" "):A.length>0?"[redacted]":"",B=[w.trimEnd(),x].filter(Boolean).join(" "),D=B?`${B} from(${P})`:`from(${P})`,C={"db.table":P,"db.schema":S.schema,"db.url":S.url.origin,"db.sdk":S.headers["X-Client-Info"],"db.system":"postgresql","db.operation":E,[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return A.length&&j&&(C["db.query"]=A),void 0!==k&&j&&(C["db.body"]=k),(0,h.startSpan)({name:D,attributes:C},t=>Reflect.apply(n,c,[]).then(n=>{if(t&&(n&&"object"==typeof n&&"status"in n&&(0,f.setHttpStatus)(t,n.status||500),t.end()),n?.error){const e=new Error(n.error.message);n.error.code&&(e.code=n.error.code),n.error.details&&(e.details=n.error.details);const t={};A.length&&j&&(t.query=A),void 0!==k&&j&&(t.body=k),(0,o.captureException)(e,e=>(e.addEventProcessor(e=>((0,p.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",t),e))}const s={type:"supabase",category:`db.${E}`,message:D},u={};return A.length&&j&&(u.query=A),void 0!==k&&j&&(u.body=k),Object.keys(u).length&&(s.data=u),(0,e.addBreadcrumb)(s),n},e=>{throw t&&((0,f.setHttpStatus)(t,500),t.end()),e}).then(...y))}}),E(n.prototype.then))}function U(e,t){for(const o of T)O(e.prototype[o])||(e.prototype[o]=new Proxy(e.prototype[o],{apply(e,s,u){const p=Reflect.apply(e,s,u),l=p.constructor;return n.DEBUG_BUILD&&c.debug.log(`Instrumenting ${o} operation's PostgRESTFilterBuilder`),N(l,t),p}}),E(e.prototype[o]))}const j=(e,t={})=>{if(!e)return void(n.DEBUG_BUILD&&c.debug.warn("Supabase integration was not installed because no Supabase client was provided."));const o=e.constructor===Function?e:e.constructor;var s,u;u=t,O((s=o).prototype.from)||(s.prototype.from=new Proxy(s.prototype.from,{apply(e,t,n){const o=Reflect.apply(e,t,n);return U(o.constructor,u),o}}),E(s.prototype.from)),A(e)},k=(e,t)=>({setupOnce(){j(e,t)},name:"Supabase"}),w=(0,s.defineIntegration)(e=>k(e.supabaseClient,{sendOperationData:e.sendOperationData}))},1895,[1878,1797,1768,1825,1834,1798,1772,1783,1785,1799,1818]);
365__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"applyZodErrorsToEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"flattenIssue",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"flattenIssuePath",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"formatIssueMessage",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return l}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);function s(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function o(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function u(e){const t=new Set;for(const n of e.issues){const e=o(n.path);e.length>0&&t.add(e)}const s=Array.from(t);if(0===s.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,n.truncate)(s.join(", "),100)}`}function c(e,n=!1,o,c){if(!(o.exception?.values&&c.originalException&&(l=c.originalException,(0,t.isError)(l)&&"ZodError"===l.name&&Array.isArray(l.issues))&&0!==c.originalException.issues.length))return o;var l;try{const t=(n?c.originalException.issues:c.originalException.issues.slice(0,e)).map(s);return n&&(Array.isArray(c.attachments)||(c.attachments=[]),c.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:t})})),{...o,exception:{...o.exception,values:[{...o.exception.values[0],value:u(c.originalException)},...o.exception.values.slice(1)]},extra:{...o.extra,"zoderror.issues":t.slice(0,e)}}}catch(e){return{...o,extra:{...o.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const l=(0,e.defineIntegration)((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(n,s)=>c(t,e.saveZodIssuesAsAttachment,n,s)}})},1896,[1834,1785,1787]);
366__d(function(g,r,_i,a,m,e,d){"use strict";
366Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),i=r(d[2]),o=r(d[3]),s=r(d[4]);const l=(0,t.defineIntegration)(t=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",t=>{(0,i.forEachEnvelopeItem)(t,(t,i)=>{if("event"===i){const i=Array.isArray(t)?t[1]:void 0;i&&((0,n.stripMetadataFromStackFrames)(i),t[1]=i)}})}),t.on("applyFrameMetadata",i=>{if(i.type)return;const o=t.getOptions().stackParser;(0,n.addMetadataToStackFrames)(o,i)})},preprocessEvent(n){t.ignoreSentryInternalFrames&&(s.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(n.sdkProcessingMetadata={...n.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(n){const i=!!t.ignoreSentryInternalFrames&&(!0===n.sdkProcessingMetadata?.insideSentryWrapped&&1===n.exception?.values?.length),o=u(n,t.ignoreSentryInternalFrames,i);if(o){if(o["drop-error-if-contains-third-party-frames"===t.behaviour||"apply-tag-if-contains-third-party-frames"===t.behaviour?"some":"every"](n=>!n.some(n=>t.filterKeys.includes(n)))){if("drop-error-if-contains-third-party-frames"===t.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===t.behaviour)return null;n.tags={...n.tags,third_party_code:!0}}}return n}}));function c(t,n,i){if(0!==n)return!1;if(i&&p(t))return!0;if("sentryWrapped"===t.function)return!0;if(!t.context_line||!t.filename)return!1;if(!t.filename.includes("sentry")||!t.filename.includes("helpers")||!t.context_line.includes(h))return!1;if(t.pre_context){const n=t.pre_context.length;for(let i=0;i<n;i++)if(t.pre_context[i]?.includes(y))return!0}return!1}function u(t,n,i){const s=(0,o.getFramesFromEvent)(t);if(s)return s.filter((t,o)=>!!t.filename&&((null!=t.lineno||null!=t.colno||null!=t.instruction_addr)&&(!n||!c(t,o,!!i)))).map(t=>t.module_metadata?Object.keys(t.module_metadata).filter(t=>t.startsWith(f)).map(t=>t.slice(f.length)):[])}function p(t){return!t.context_line&&!t.pre_context&&!!t.function&&t.function.length<=2}const f="_sentryBundlerPluginAppKey:",y="Attempt to invoke user-land function",h="fn.apply(this, wrappedArguments)"},1897,[1834,1885,1814,1775,1770]);
367__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addConsoleBreadcrumb",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"consoleIntegration",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),u=r(d[5]),c=r(d[6]),f=r(d[7]);const O=(0,s.defineIntegration)((t={})=>{const s=new Set(t.levels||l.CONSOLE_LEVELS);return{name:"Console",setup(l){const u=(0,o.addConsoleInstrumentationHandler)(({args:t,level:o})=>{(0,n.getClient)()===l&&s.has(o)&&L(o,t)});if(l.registerCleanup(u),t.filter){const n=(0,o.addConsoleInstrumentationFilter)(t.filter);l.registerCleanup(n)}}}});function L(n,o){const s={category:"console",data:{arguments:o,logger:"console"},level:(0,u.severityLevelFromString)(n),message:p(o)};if("assert"===n){if(!1!==o[0])return;{const t=o.slice(1);s.message=t.length>0?`Assertion failed: ${p(t)}`:"Assertion failed",s.data.arguments=t}}(0,t.addBreadcrumb)(s,{input:o,level:n})}function p(t){return"util"in f.GLOBAL_OBJ&&"function"==typeof f.GLOBAL_OBJ.util.format?f.GLOBAL_OBJ.util.format(...t):(0,c.safeJoin)(t," ")}},1898,[1878,1797,1889,1834,1772,1890,1787,1770]);
368__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"featureFlagsIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o=(0,t.defineIntegration)(()=>({name:"FeatureFlags",processEvent:(t,o,c)=>(0,n._INTERNAL_copyFlagsFromScopeToEvent)(t),addFeatureFlag(t,o){(0,n._INTERNAL_insertFlagToScope)(t,o),(0,n._INTERNAL_addFeatureFlagToActiveSpan)(t,o)}}))},1899,[1834,1900]);
369__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return p}}
369),Object.defineProperty(e,"_INTERNAL_insertToFlagBuffer",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);const f=100,c=10,l="flag.evaluation.";function s(n){if(n.type)return n;const o=(0,t.getCurrentScope)().getScopeData().contexts.flags,u=o?o.values:[];return u.length?(void 0===n.contexts&&(n.contexts={}),n.contexts.flags={values:[...u]},n):n}function p(n,o,u=f){const c=(0,t.getCurrentScope)().getScopeData().contexts;c.flags||(c.flags={values:[]});_(c.flags.values,n,o,u)}function _(t,u,f,c){if("boolean"!=typeof f)return;if(t.length>c)return void(n.DEBUG_BUILD&&o.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${c}`));const l=t.findIndex(t=>t.flag===u);-1!==l&&t.splice(l,1),t.length===c&&t.shift(),t.push({flag:u,result:f})}function b(t,n,o=c){if("boolean"!=typeof n)return;const f=(0,u.getActiveSpan)();if(!f)return;const s=(0,u.spanToJSON)(f).data;if(`${l}${t}`in s)return void f.setAttribute(`${l}${t}`,n);Object.keys(s).filter(t=>t.startsWith(l)).length<o&&f.setAttribute(`${l}${t}`,n)}},1900,[1797,1768,1772,1777]);
370__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"growthbookIntegration",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);const u=(0,t.defineIntegration)(({growthbookClass:t})=>({name:"GrowthBook",setupOnce(){const o=t.prototype;"function"==typeof o.isOn&&(0,n.fill)(o,"isOn",c),"function"==typeof o.getFeatureValue&&(0,n.fill)(o,"getFeatureValue",c)},processEvent:(t,n,u)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(t)}));function c(t){return function(...n){const u=n[0],c=t.apply(this,n);return"string"==typeof u&&"boolean"==typeof c&&((0,o._INTERNAL_insertFlagToScope)(u,c),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(u,c)),c}}},1901,[1834,1900,1784]);
371__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"conversationIdIntegration",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);const c=(0,n.defineIntegration)(()=>({name:"ConversationId",setup(n){n.on("spanStart",n=>{const c=(0,t.getCurrentScope)().getScopeData(),p=(0,t.getIsolationScope)().getScopeData(),I=c.conversationId||p.conversationId;if(I){const{op:t,data:c,description:p}=(0,s.spanToJSON)(n);if(!t?.startsWith("gen_ai.")&&!c["ai.operationId"]&&!p?.startsWith("ai."))return;n.setAttribute(o.GEN_AI_CONVERSATION_ID_ATTRIBUTE,I)}})}}))},1902,[1797,1834,1798,1777]);
372__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"profiler",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function l(n){return!!n&&void 0!==n._profiler&&"function"==typeof n._profiler.start&&"function"==typeof n._profiler.stop}const f={startProfiler:function(){const f=(0,n.getClient)();if(!f)return void(t.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));const s=f.getIntegrationByName("ProfilingIntegration");s?l(s)?s._profiler.start():t.DEBUG_BUILD&&o.debug.warn("Profiler is not available on profiling integration."):t.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")},stopProfiler:function(){const f=(0,n.getClient)();if(!f)return void(t.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));const s=f.getIntegrationByName("ProfilingIntegration");s?l(s)?s._profiler.stop():t.DEBUG_BUILD&&o.debug.warn("Profiler is not available on profiling integration."):t.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")}}},1903,[1797,1768,1772]);
373__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"_callOnRequestSpanEnd",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"instrumentFetchRequest",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]),p=r(d[5]),u=r(d[6]),f=r(d[7
373]),h=r(d[8]),l=r(d[9]),b=r(d[10]),y=r(d[11]);function _(n,o,c,f,b){if(!n.fetchData)return;const{method:y,url:_}=n.fetchData,A=(0,p.hasSpansEnabled)()&&o(_);if(n.endTimestamp){const t=n.fetchData.__span;if(!t)return;const s=f[t];return void(s&&(A&&(R(s,n),S(s,n,b)),delete f[t]))}const{spanOrigin:v="auto.http.browser",propagateTraceparent:O=!1}="object"==typeof b?b:{spanOrigin:b},I=(0,t.getClient)(),j=!!(0,s.getActiveSpan)()||!!I&&(0,h.hasSpanStreamingEnabled)(I),D=A&&j?(0,l.startInactiveSpan)(E(_,y,v)):new u.SentryNonRecordingSpan;if(A&&!j&&I?.recordDroppedEvent("no_parent_span","span"),n.fetchData.__span=D.spanContext().spanId,f[D.spanContext().spanId]=D,c(n.fetchData.url)){const t=n.args[0],s={...n.args[1]||{}},o=T(t,s,(0,p.hasSpansEnabled)()&&j?D:void 0,O);o&&(n.args[1]=s,s.headers=o)}if(I){const t={input:n.args,response:n.response,startTimestamp:n.startTimestamp,endTimestamp:n.endTimestamp};I.emit("beforeOutgoingRequestSpan",D,t)}return D}function S(t,n,s){const o="object"==typeof s&&null!==s?s.onRequestSpanEnd:void 0;o?.(t,{headers:n.response?.headers,error:n.error})}function T(t,n,s,o){const p=(0,b.getTraceData)({span:s,propagateTraceparent:o}),u=p["sentry-trace"],f=p.baggage,h=p.traceparent;if(!u)return;const l=n.headers||((0,c.isRequest)(t)?t.headers:void 0);if(l){if(y=l,"undefined"!=typeof Headers&&(0,c.isInstanceOf)(y,Headers)){const t=new Headers(l);if(t.get("sentry-trace")||t.set("sentry-trace",u),o&&h&&!t.get("traceparent")&&t.set("traceparent",h),f){const n=t.get("baggage");n?A(n)||t.set("baggage",`${n},${f}`):t.set("baggage",f)}return t}if(v(l)){const t=[...l];t.find(t=>"sentry-trace"===t[0])||t.push(["sentry-trace",u]),o&&h&&!t.find(t=>"traceparent"===t[0])&&t.push(["traceparent",h]);const n=l.find(t=>"baggage"===t[0]&&"string"==typeof t[1]&&A(t[1]));return f&&!n&&t.push(["baggage",f]),t}{const t="sentry-trace"in l?l["sentry-trace"]:void 0,n="traceparent"in l?l.traceparent:void 0,s="baggage"in l?l.baggage:void 0,c=s?Array.isArray(s)?[...s]:[s]:[],p=s&&(Array.isArray(s)?s.find(t=>A(t)):A(s));f&&!p&&c.push(f);const b=Object.assign({},l,{"sentry-trace":t??u,baggage:c.length>0?c.join(","):void 0});return o&&h&&!n&&(b.traceparent=h),b}}return{...p};var y}function R(t,n){if(n.response){(0,o.setHttpStatus)(t,n.response.status);const s=n.response?.headers?.get("content-length");if(s){const n=parseInt(s);n>0&&t.setAttribute("http.response_content_length",n)}}else n.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"});t.end()}function A(t){return"string"==typeof t&&t.split(",").some(t=>t.trim().startsWith(f.SENTRY_BAGGAGE_KEY_PREFIX))}function v(t){return!!Array.isArray(t)&&t.every(t=>Array.isArray(t)&&2===t.length&&"string"==typeof t[0])}function E(t,n,s){if(t.startsWith("data:")){return{name:`${n} ${(0,y.stripDataUrlContent)(t)}`,attributes:O(t,void 0,n,s)}}const o=(0,y.parseStringToURLObject)(t);return{name:`${n} ${o?(0,y.getSanitizedUrlStringFromUrlObject)(o):t}`,attributes:O(t,o,n,s)}}function O(t,s,o,c){const p={url:(0,y.stripDataUrlContent)(t),type:"fetch","http.method":o,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return s&&((0,y.isURLObjectRelative)(s)||(p["http.url"]=(0,y.stripDataUrlContent)(s.href),p["server.address"]=s.host),s.search&&(p["http.query"]=s.search),s.hash&&(p["http.fragment"]=s.hash)),p}},1904,[1797,1798,1777,1799,1785,1806,1808,1802,1817,1818,1872,1867]);
374__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureFeedback",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n,c={},s=(0,t.getCurrentScope)()){const{message:o,name:u,email:l,url:f,source:b,associatedEventId:_,tags:p}=n,v={contexts:{feedback:{contact_email:l,name:u,message:o,url:f,source:b,associated_event_id:_}},type:"feedback",level:"info",tags:p},k=s?.getClient()||(0,t.getClient)();k&&k.emit("beforeSendFeedback",v,c);return s.captureEvent(v,c)}},1905,[1797]);
375__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fmt",{enumerable:!0,get:function(){return n.fmt}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"error",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"fatal",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"info",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"trace",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"warn",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]);function u(n,u,o,c,f){(0,t._INTERNAL_captureLog)({level:n,message:u,attributes:o,severityNumber:f},c)}function o(t,n,{scope:o}={}){u("trace",t,n,o)}function c(t,n,{scope:o}={}){u("debug",t,n,o)}function f(t,n,{scope:o}={}){u("info",t,n,o)}function b(t,n,{scope:o}={}){u("warn",t,n,o)}function p(t,n,{scope:o}={}){u("error",t,n,o)}function l(t,n,{scope:o}={}){u("fatal",t,n,o)}},1906,[1835,1868]);
376__d(function(g,r,i,a,m,e,d){"use strict";
376Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),f=r(d[7]),b=r(d[8]),p=r(d[9]);const L={[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},_=(0,o.defineIntegration)((o={})=>{const l=o.levels||c.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(o){const{enableLogs:_,normalizeDepth:C=3,normalizeMaxBreadth:E=1e3}=o.getOptions();if(!_)return void(n.DEBUG_BUILD&&c.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled"));const I=(0,s.addConsoleInstrumentationHandler)(({args:n,level:s})=>{if((0,t.getClient)()!==o||!l.includes(s))return;const c=n[0],_=n.slice(1);if("assert"===s){if(!c){const t=_.length>0?`Assertion failed: ${(0,p.formatConsoleArgs)(_,C,E)}`:"Assertion failed";(0,b._INTERNAL_captureLog)({level:"error",message:t,attributes:L})}return}const I="log"===s,v={...L};if((0,u.isPlainObject)(c)){Object.assign(v,(0,f.normalize)(c,C,E));const t="string"==typeof n[1]?2:1;n.slice(t).forEach((t,n)=>{v[`sentry.message.parameter.${n}`]=(0,f.normalize)(t,C,E)})}else{if(_.length>0&&"string"==typeof c&&!(0,p.hasConsoleSubstitutions)(c)){const t=(0,p.createConsoleTemplateAttributes)(c,_);for(const[n,s]of Object.entries(t))v[n]=n.startsWith("sentry.message.parameter.")?(0,f.normalize)(s,C,E):s}}(0,b._INTERNAL_captureLog)({level:I?"info":s,message:(0,p.formatConsoleArgs)(n,C,E),severityNumber:I?10:void 0,attributes:v})});o.registerCleanup(I)}}})},1907,[1797,1768,1889,1834,1798,1772,1785,1788,1835,1908]);
377__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createConsoleTemplateAttributes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"formatConsoleArgs",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"hasConsoleSubstitutions",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"safeJoinConsoleArgs",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function u(t,n,u){return"util"in o.GLOBAL_OBJ&&"function"==typeof o.GLOBAL_OBJ.util.format?o.GLOBAL_OBJ.util.format(...t):s(t,n,u)}function s(o,u,s){return o.map(o=>(0,t.isPrimitive)(o)?String(o):JSON.stringify((0,n.normalize)(o,u,s))).join(" ")}function f(t){return/%[sdifocO]/.test(t)}function c(t,n){const o={},u=new Array(n.length).fill("{}").join(" ");return o["sentry.message.template"]=`${t} ${u}`,n.forEach((t,n)=>{o[`sentry.message.parameter.${n}`]=t}),o}},1908,[1785,1788,1770]);
378__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"count",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"distribution",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"gauge",{enumerable:!0,get:function(){return c}});var t=r(d[0]);function n(n,u,c,o){(0,t._INTERNAL_captureMetric)({type:n,name:u,value:c,unit:o?.unit,attributes:o?.attributes},{scope:o?.scope})}function u(t,u=1,c){n("counter",t,u,c)}function c(t,u,c){n("gauge",t,u,c)}function o(t,u,c){n("distribution",t,u,c)}},1909,[1843]);
379__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createConsolaReporter",{enumerable:!0,get:function(){return f}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),l=r(d[4]);const c=["trace","debug","info","warn","error","fatal"];function f(o={}){const f=new Set(o.levels??c),u=o.client;return{log(o){const{type:c,level:b,message:h,args:O,tag:j,date:z,...C}=o,P=u||(0,t.getClient)();if(!P)return;const _=p(c,b);if(!f.has(_))return;const{normalizeDepth:w=3,normalizeMaxBreadth:A=1e3}=P.getOptions(),T={};for(const[t,s]of Object.entries(C))T[t]=(0,l.normalize)(s,w,A);T["sentry.origin"]="auto.log.consola",j&&(T["consola.tag"]=j),c&&(T["consola.type"]=c),null!=b&&"number"==typeof b&&(T["consola.level"]=b);const x=v(y(O,w,A),w,A);x?.attributes&&Object.assign(T,x.attributes),(0,s._INTERNAL_captureLog)({level:_,message:x?.message||h||O&&(0,n.formatConsoleArgs)(O,w,A)||"",attributes:T})}}}const u={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},b={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function p(t,s){if("verbose"===t)return"debug";if("silent"===t)return"trace";if(t){const s=u[t];if(s)return s}if("number"==typeof s){const t=b[s];if(t)return t}return"info"}function y(t,s,l){if(!t?.length)return{message:""};const c=(0,n.formatConsoleArgs)(t,s,l),f=t[0];if((0,o.isPlainObject)(f)){const s="string"==typeof t[1]?2:1;return{message:c,attributes:f,messageParameters:t.slice(s)}}{const s=t.slice(1),o=s.length>0&&"string"==typeof f&&!(0,n.hasConsoleSubstitutions)(f);return{message:c,messageTemplate:o?f:void 0,messageParameters:o?s:void 0}}}function v(t,s,o){const{message:c,attributes:f,messageTemplate:u,messageParameters:b}=t,p={};if(u&&b){const t=(0,n.createConsoleTemplateAttributes)(u,b);for(const[n,c]of Object.entries(t))p[n]=n.startsWith("sentry.message.parameter.")?(0,l.normalize)(c,s,o):c}else b&&b.length>0&&b.forEach((t,n)=>{p[`sentry.message.parameter.${n}`]=(0,l.normalize)(t,s,o)});return{message:c,attributes:{...(0,l.normalize)(f,s,o),...p}}}},1910,[1797,1835,1908,1785,1788]);
380__d(function(g,r,i,a,m,e,d){"use strict";
380Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addVercelAiProcessors",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"processVercelAiSpanAttributes",{enumerable:!0,get:function(){return R}});var T=r(d[0]),_=r(d[1]),t=r(d[2]),E=r(d[3]),A=r(d[4]),n=r(d[5]),I=r(d[6]),o=r(d[7]),s=r(d[8]);function O(_){const{data:A,description:n}=(0,E.spanToJSON)(_);if(!n)return;if(A[s.AI_TOOL_CALL_NAME_ATTRIBUTE]&&A[s.AI_TOOL_CALL_ID_ATTRIBUTE]&&"ai.toolCall"===n)return void P(_,A);if(!A[s.AI_OPERATION_ID_ATTRIBUTE]&&!n.startsWith("ai."))return;const I=(0,T.getClient)(),o=I?.getIntegrationByName("VercelAI");B(_,n,A,(0,t.shouldEnableTruncation)(o?.options?.enableTruncation))}function N(T){if("transaction"===T.type&&T.spans){const _=new Map;for(const t of T.spans)S(t),(0,o.accumulateTokensForParent)(t,_);(0,o.applyToolDescriptionsAndTokens)(T.spans,_);const t=T.contexts?.trace;"gen_ai.invoke_agent"===t?.op&&(0,o.applyAccumulatedTokens)(t,_)}return T}function c(T){return"string"!=typeof T?"stop":"tool-calls"===T?"tool_call":T}function U(T){const _=T[s.AI_RESPONSE_TEXT_ATTRIBUTE],t=T[s.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE],E=T[s.AI_RESPONSE_FINISH_REASON_ATTRIBUTE];if(null==_&&null==t)return;const n=[];if("string"==typeof _&&_.length>0&&n.push({type:"text",content:_}),null!=t)try{const _="string"==typeof t?JSON.parse(t):t;if(Array.isArray(_)){for(const T of _){const _=T.input??T.args;n.push({type:"tool_call",id:T.toolCallId,name:T.toolName,arguments:"string"==typeof _?_:JSON.stringify(_??{})})}delete T[s.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]}}catch{}if(n.length>0){const _={role:"assistant",parts:n,finish_reason:c(E)};T[A.GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE]=JSON.stringify([_]),delete T[s.AI_RESPONSE_TEXT_ATTRIBUTE]}}function R(T){p(T,s.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE),p(T,"ai.usage.inputTokens",A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,"ai.usage.outputTokens",A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,"ai.response.avgOutputTokensPerSecond","ai.response.avgCompletionTokensPerSecond");if(Object.keys(T).some(T=>T.startsWith(s.AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX))||"number"!=typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]||"number"!=typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]||(T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]+T[A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]),"number"==typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]){const _="number"==typeof T[A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]?T[A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:0;T[A.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=_+T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]}if(T[s.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(T[s.AI_PROMPT_TOOLS_ATTRIBUTE])&&(T[s.AI_PROMPT_TOOLS_ATTRIBUTE]=(0,o.convertAvailableToolsToJsonString)(T[s.AI_PROMPT_TOOLS_ATTRIBUTE])),T[s.OPERATION_NAME_ATTRIBUTE]){const _=T[s.AI_OPERATION_ID_ATTRIBUTE]?T[s.AI_OPERATION_ID_ATTRIBUTE]:T[s.OPERATION_NAME_ATTRIBUTE],t=n.SPAN_TO_OPERATION_NAME.get(_)??_;T[A.GEN_AI_OPERATION_NAME_ATTRIBUTE]=t,delete T[s.OPERATION_NAME_ATTRIBUTE]}if(p(T,s.AI_PROMPT_MESSAGES_ATTRIBUTE,A.GEN_AI_INPUT_MESSAGES_ATTRIBUTE),U(T),p(T,s.AI_RESPONSE_OBJECT_ATTRIBUTE,"gen_ai.response.object"),p(T,s.AI_PROMPT_TOOLS_ATTRIBUTE,"gen_ai.request.available_tools"),p(T,s.AI_TOOL_CALL_ARGS_ATTRIBUTE,A.GEN_AI_TOOL_INPUT_ATTRIBUTE),p(T,s.AI_TOOL_CALL_RESULT_ATTRIBUTE,A.GEN_AI_TOOL_OUTPUT_ATTRIBUTE),p(T,s.AI_SCHEMA_ATTRIBUTE,"gen_ai.request.schema"),p(T,s.AI_MODEL_ID_ATTRIBUTE,A.GEN_AI_REQUEST_MODEL_ATTRIBUTE),Array.isArray(T[s.AI_VALUES_ATTRIBUTE])){const _=T[s.AI_VALUES_ATTRIBUTE].map(T=>{try{return JSON.parse(T)}catch{return T}});T[A.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]=1===_.length?_[0]:JSON.stringify(_)}f(T);for(const _ of Object.keys(T))Array.isArray(T[_])&&(T[_]=JSON.stringify(T[_])),_.startsWith("ai.")&&p(T,_,`vercel.${_}`)}function S(T){const{data:_,origin:t}=T;"auto.vercelai.otel"===t&&(T.status&&"ok"!==T.status&&(T.status="internal_error"),R(_))}function u(T){const t=T.attributes;if("auto.vercelai.otel"===t?.[_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]){if(R(t),"gen_ai.execute_tool"===t[_.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&T.parent_span_id){const _=n.toolDescriptionMap.get(T.parent_span_id);if(_){const T=t[A.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof T){const E=_.get(T);E&&(t[A.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=E)}}}n.toolDescriptionMap.delete(T.span_id)}}function p(T,_,t){null!=T[_]&&(T[t]=T[_],delete T[_])}function P(T,t){T.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel"),T.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.execute_tool"),T.setAttribute(A.GEN_AI_OPERATION_NAME_ATTRIBUTE,"execute_tool"),p(t,s.AI_TOOL_CALL_NAME_ATTRIBUTE,A.GEN_AI_TOOL_NAME_ATTRIBUTE),p(t,s.AI_TOOL_CALL_ID_ATTRIBUTE,A.GEN_AI_TOOL_CALL_ID_ATTRIBUTE);
380const E=t[A.GEN_AI_TOOL_CALL_ID_ATTRIBUTE];"string"==typeof E&&n.toolCallSpanContextMap.set(E,T.spanContext()),t[A.GEN_AI_TOOL_TYPE_ATTRIBUTE]||T.setAttribute(A.GEN_AI_TOOL_TYPE_ATTRIBUTE,"function");const I=t[A.GEN_AI_TOOL_NAME_ATTRIBUTE];I&&T.updateName(`execute_tool ${I}`)}function B(t,O,N,c){t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel");const U=O.replace("ai.","");t.setAttribute("ai.pipeline.name",U),t.updateName(U);const R=N[s.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE];R&&"string"==typeof R&&t.setAttribute("gen_ai.function_id",R),(0,o.requestMessagesFromPrompt)(t,N,c),N[s.AI_MODEL_ID_ATTRIBUTE]&&!N[A.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]&&t.setAttribute(A.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,N[s.AI_MODEL_ID_ATTRIBUTE]),t.setAttribute("ai.streaming",O.includes("stream"));const S=n.SPAN_TO_OPERATION_NAME.get(O);if(S?t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,`gen_ai.${S}`):O.startsWith("ai.stream")&&t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,"ai.run"),"invoke_agent"===S)return void(R&&"string"==typeof R?t.updateName(`invoke_agent ${R}`):t.updateName("invoke_agent"));const u=N[s.AI_MODEL_ID_ATTRIBUTE];u&&S&&t.updateName(`${S} ${u}`);const p=(0,T.getClient)();if(p&&(0,I.hasSpanStreamingEnabled)(p)&&N[s.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(N[s.AI_PROMPT_TOOLS_ATTRIBUTE])){const T=new Map;for(const _ of N[s.AI_PROMPT_TOOLS_ATTRIBUTE])try{const t="string"==typeof _?JSON.parse(_):_;t?.name&&t?.description&&T.set(t.name,t.description)}catch{}if(T.size>0){const _=(0,E.spanToJSON)(t).parent_span_id;_&&n.toolDescriptionMap.set(_,T)}}}function l(T){T.on("spanStart",O),T.addEventProcessor(Object.assign(N,{id:"VercelAiEventProcessor"})),T.on("processSpan",T=>{u(T)})}function G(T){const _={};if(!T||"object"!=typeof T)return _;const t=T,E=t.openai??t.azure;if(E&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,E.cachedPromptTokens),L(_,"gen_ai.usage.output_tokens.reasoning",E.reasoningTokens),L(_,"gen_ai.usage.output_tokens.prediction_accepted",E.acceptedPredictionTokens),L(_,"gen_ai.usage.output_tokens.prediction_rejected",E.rejectedPredictionTokens),L(_,A.GEN_AI_CONVERSATION_ID_ATTRIBUTE,E.responseId)),t.anthropic){const T=t.anthropic.usage?.cache_read_input_tokens??t.anthropic.cacheReadInputTokens;L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,T);const E=t.anthropic.usage?.cache_creation_input_tokens??t.anthropic.cacheCreationInputTokens;L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,E)}return t.bedrock?.usage&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t.bedrock.usage.cacheReadInputTokens),L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,t.bedrock.usage.cacheWriteInputTokens)),t.deepseek&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t.deepseek.promptCacheHitTokens),L(_,"gen_ai.usage.input_tokens.cache_miss",t.deepseek.promptCacheMissTokens)),_}function f(T){const _=T[s.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE];if(_)try{const t=G(JSON.parse(_));for(const[_,E]of Object.entries(t))_===A.GEN_AI_CONVERSATION_ID_ATTRIBUTE&&T[_]||(T[_]=E)}catch{}}function L(T,_,t){null!=t&&(T[_]=t)}},1911,[1797,1798,1912,1777,1913,1916,1817,1917,1918]);
381__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildMethodPath",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"endStreamSpan",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractSystemInstructions",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getJsonString",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"getTruncatedJsonString",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"resolveAIRecordingOptions",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"setTokenUsageAttributes",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldEnableTruncation",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"wrapPromiseWithMethods",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]);function T(t){const o=(0,n.getClient)()?.getDataCollectionOptions().genAI;return{...t,recordInputs:t?.recordInputs??o?.inputs??!1,recordOutputs:t?.recordOutputs??o?.outputs??!1}}function _(t){if(void 0!==t)return t;const s=(0,n.getClient)();return!s||!(0,o.hasSpanStreamingEnabled)(s)&&!1===s.getOptions().streamGenAiSpans}function f(t,n){return t?`${t}.${n}`:n}function p(t,n,o,s,c){if(void 0!==n&&t.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:n}),void 0!==o&&t.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:o}),void 0!==n||void 0!==o||void 0!==s||void 0!==c){const T=(n??0)+(o??0)+(s??0)+(c??0);t.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:T})}}function E(t,n,o){if(!t.isRecording())return;const s={[u.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};n.responseId&&(s[u.GEN_AI_RESPONSE_ID_ATTRIBUTE]=n.responseId),n.responseModel&&(s[u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=n.responseModel),void 0!==n.promptTokens&&(s[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=n.promptTokens),void 0!==n.completionTokens&&(s[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=n.completionTokens),void 0!==n.totalTokens?s[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.totalTokens:void 0===n.promptTokens&&void 0===n.completionTokens&&void 0===n.cacheCreationInputTokens&&void 0===n.cacheReadInputTokens||(s[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=(n.promptTokens??0)+(n.completionTokens??0)+(n.cacheCreationInputTokens??0)+(n.cacheReadInputTokens??0)),n.finishReasons.length&&(s[u.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(n.finishReasons)),o&&n.responseTexts.length&&(s[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=n.responseTexts.join("")),o&&n.toolCalls.length&&(s[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n.toolCalls)),t.setAttributes(s),t.end()}function A(t){return"string"==typeof t?t:JSON.stringify(t)}function l(t){if("string"==typeof t)return(0,c.truncateGenAiStringInput)(t);if(Array.isArray(t)){const n=(0,c.truncateGenAiMessages)(t);return JSON.stringify(n)}return JSON.stringify(t)}function I(t){if(!Array.isArray(t))return{systemInstructions:void 0,filteredMessages:t};const n=t.findIndex(t=>t&&"object"==typeof t&&"role"in t&&"system"===t.role);if(-1===n)return{systemInstructions:void 0,filteredMessages:t};const o=t[n],s="string"==typeof o.content?o.content:void 0!==o.content?JSON.stringify(o.content):void 0;if(!s)return{systemInstructions:void 0,filteredMessages:t};return{systemInstructions:JSON.stringify([{type:"text",content:s}]),filteredMessages:[...t.slice(0,n),...t.slice(n+1)]}}
381async function S(n,o,s){const u=n.catch(n=>{throw(0,t.captureException)(n,{mechanism:{handled:!1,type:s}}),n}),c=await o,T=await u;return T&&"object"==typeof T&&"data"in T?{...T,data:c}:c}function O(t,n,o){return(0,s.isThenable)(t)?new Proxy(t,{get(t,s){const u=s in Promise.prototype||s===Symbol.toStringTag?n:t,c=Reflect.get(u,s);return"withResponse"===s&&"function"==typeof c?function(){return S(c.call(t),n,o)}:"function"==typeof c?c.bind(u):c}}):n}},1912,[1825,1797,1817,1785,1913,1914]);
382__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GEN_AI_AGENT_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"GEN_AI_INPUT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"GEN_AI_OPERATION_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"GEN_AI_PIPELINE_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"GEN_AI_PROMPT_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE",{enumerable:!0,get:function(){return O}}
382),Object.defineProperty(e,"GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"GEN_AI_REQUEST_MODEL_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"GEN_AI_REQUEST_STREAM_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"GEN_AI_REQUEST_TOP_K_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"GEN_AI_REQUEST_TOP_P_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"GEN_AI_RESPONSE_ID_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"GEN_AI_RESPONSE_MODEL_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"GEN_AI_RESPONSE_STREAMING_ATTRIBUTE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"GEN_AI_RESPONSE_TEXT_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"GEN_AI_SYSTEM_ATTRIBUTE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"GEN_AI_TOOL_CALL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return X}}),Object.defineProperty(e,"GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"GEN_AI_TOOL_INPUT_ATTRIBUTE",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"GEN_AI_TOOL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"GEN_AI_TOOL_OUTPUT_ATTRIBUTE",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"GEN_AI_TOOL_TYPE_ATTRIBUTE",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return s}});const n="gen_ai.prompt",t="gen_ai.system",_="gen_ai.request.model",T="gen_ai.request.stream",E="gen_ai.request.temperature",u="gen_ai.request.max_tokens",o="gen_ai.request.frequency_penalty",A="gen_ai.request.presence_penalty",I="gen_ai.request.top_p",c="gen_ai.request.top_k",O="gen_ai.request.encoding_format",N="gen_ai.request.dimensions",f="gen_ai.response.finish_reasons",b="gen_ai.response.model",R="gen_ai.response.id",P="gen_ai.response.stop_reason",U="gen_ai.usage.input_tokens",p="gen_ai.usage.output_tokens",s="gen_ai.usage.total_tokens",S="gen_ai.operation.name",l="sentry.sdk_meta.gen_ai.input.messages.original_length",G="gen_ai.input.messages",y="gen_ai.output.messages",B="gen_ai.system_instructions",j="gen_ai.response.text",L="gen_ai.request.available_tools",M="gen_ai.response.streaming",C="gen_ai.response.tool_calls",D="gen_ai.agent.name",q="gen_ai.pipeline.name",Q="gen_ai.conversation.id",k="gen_ai.usage.cache_creation_input_tokens",K="gen_ai.usage.cache_read_input_tokens",h="gen_ai.usage.input_tokens.cache_write",H="gen_ai.usage.input_tokens.cached",Y="gen_ai.invoke_agent",v="gen_ai.embeddings.input",x="gen_ai.embeddings",F="gen_ai.execute_tool",V="gen_ai.tool.name",X="gen_ai.tool.call.id",w="gen_ai.tool.type",W="gen_ai.tool.input",z="gen_ai.tool.output",J="gen_ai.tool.description"},1913,[]);
383__d(function(g,r,i,a,m,e,d){"use strict";
383Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"truncateGenAiMessages",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"truncateGenAiStringInput",{enumerable:!0,get:function(){return I}});var t=r(d[0]);const n=2e4,o=t=>(new TextEncoder).encode(t).length,c=t=>o(JSON.stringify(t));function u(t,n){if(o(t)<=n)return t;let c=0,u=t.length,s="";for(;c<=u;){const f=Math.floor((c+u)/2),l=t.slice(0,f);o(l)<=n?(s=l,c=f+1):u=f-1}return s}function s(t){return"string"==typeof t?t:"text"in t&&"string"==typeof t.text?t.text:""}function f(t,n){return"string"==typeof t?n:{...t,text:n}}function l(t){return null!==t&&"object"==typeof t&&"content"in t&&"string"==typeof t.content}function p(t){return null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)}function y(t){return null!==t&&"object"==typeof t&&"parts"in t&&Array.isArray(t.parts)&&t.parts.length>0}function A(t,n){const o={...t,content:""},s=n-c(o);if(s<=0)return[];const f=u(t.content,s);return[{...t,content:f}]}function b(t){return"parts"in t&&Array.isArray(t.parts)?{key:"parts",items:t.parts}:"content"in t&&Array.isArray(t.content)?{key:"content",items:t.content}:{key:null,items:[]}}function M(t,n){const{key:l,items:p}=b(t);if(null===l||0===p.length)return[];const y=p.map(t=>f(t,""));let A=n-c({...t,[l]:y});if(A<=0)return[];const M=[];for(const t of p){const n=s(t),c=o(n);if(!(c<=A)){if(0===M.length){const o=u(n,A);o&&M.push(f(t,o));break}break}M.push(t),A-=c}return M.length<=0?[]:[{...t,[l]:M}]}function h(t,n){if(!t)return[];if("string"==typeof t){const o=u(t,n);return o?[o]:[]}return"object"!=typeof t?[]:l(t)?A(t,n):p(t)||y(t)?M(t,n):[]}function j(n){return n.map(n=>{let o;return n&&"object"==typeof n&&(p(n)?o={...n,content:j(n.content)}:"content"in n&&(0,t.isContentMedia)(n.content)&&(o={...n,content:(0,t.stripInlineMediaFromSingleMessage)(n.content)}),y(n)&&(o={...o??n,parts:j(n.parts)}),(0,t.isContentMedia)(o)?o=(0,t.stripInlineMediaFromSingleMessage)(o):(0,t.isContentMedia)(n)&&(o=(0,t.stripInlineMediaFromSingleMessage)(n))),o??n})}function _(t,n){if(!Array.isArray(t)||0===t.length)return t;const o=n-2,u=j([t[t.length-1]]),s=u[0];return c(s)<=o?u:h(s,o)}function S(t){return _(t,n)}function I(t){return u(t,n)}},1914,[1915]);
384__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return!(!t||"object"!=typeof t)&&(o(t)||f(t)||n(t)||p(t)||s(t)||l(t)||y(t)||c(t)||_(t)||b(t)||h(t)||j(t))}function n(t){return"image_url"in t&&("string"==typeof t.image_url?t.image_url.startsWith("data:"):u(t))}function u(t){return"image_url"in t&&!!t.image_url&&"object"==typeof t.image_url&&"url"in t.image_url&&"string"==typeof t.image_url.url&&t.image_url.url.startsWith("data:")}function o(n){return"type"in n&&"string"==typeof n.type&&"source"in n&&t(n.source)}function f(t){return"inlineData"in t&&!!t.inlineData&&"object"==typeof t.inlineData&&"data"in t.inlineData&&"string"==typeof t.inlineData.data}function p(t){return"type"in t&&"input_audio"===t.type&&"input_audio"in t&&!!t.input_audio&&"object"==typeof t.input_audio&&"data"in t.input_audio&&"string"==typeof t.input_audio.data}function s(t){return"type"in t&&"file"===t.type&&"file"in t&&!!t.file&&"object"==typeof t.file&&"file_data"in t.file&&"string"==typeof t.file.file_data}function l(t){return"media_type"in t&&"string"==typeof t.media_type&&"data"in t}function y(t){return"type"in t&&"file"===t.type&&"mediaType"in t&&"string"==typeof t.mediaType&&"data"in t&&"string"==typeof t.data&&!t.data.startsWith("http://")&&!t.data.startsWith("https://")}function c(t){return"type"in t&&"image"===t.type&&"image"in t&&"string"==typeof t.image&&!t.image.startsWith("http://")&&!t.image.startsWith("https://")}function _(t){return"type"in t&&("blob"===t.type||"base64"===t.type)}function b(t){return"b64_json"in t}function h(t){return"type"in t&&"result"in t&&"image_generation"===t.type}function j(t){return"uri"in t&&"string"==typeof t.uri&&t.uri.startsWith("data:")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isContentMedia",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"stripInlineMediaFromSingleMessage",{enumerable:!0,get:function(){return M}});const D="[Blob substitute]",W=["image_url","data","content","b64_json","result","uri","image"];function M(n){const o={...n};t(o.source)&&(o.source=M(o.source)),f(n)&&(o.inlineData={...n.inlineData,data:D}),u(n)&&(o.image_url={...n.image_url,url:D}),p(n)&&(o.input_audio={...n.input_audio,data:D}),s(n)&&(o.file={...n.file,file_data:D});for(const t of W)"string"==typeof o[t]&&(o[t]=D);return o}},1915,[]);
385__d(function(g,r,i,a,m,e,d){"use strict";
385Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_TO_OPERATION_NAME",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"toolCallSpanContextMap",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"toolDescriptionMap",{enumerable:!0,get:function(){return n}});const t=new Map,n=new Map,o=new Map([["ai.generateText","invoke_agent"],["ai.streamText","invoke_agent"],["ai.generateObject","invoke_agent"],["ai.streamObject","invoke_agent"],["ai.generateText.doGenerate","generate_content"],["ai.streamText.doStream","generate_content"],["ai.generateObject.doGenerate","generate_content"],["ai.streamObject.doStream","generate_content"],["ai.embed.doEmbed","embeddings"],["ai.embedMany.doEmbed","embeddings"],["ai.rerank.doRerank","rerank"],["ai.toolCall","execute_tool"]])},1916,[]);
386__d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"accumulateTokensForParent",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"applyAccumulatedTokens",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"applyToolDescriptionsAndTokens",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"convertAvailableToolsToJsonString",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"convertUserInputToMessagesFormat",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"requestMessagesFromPrompt",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function T(n,o){const s=n.parent_span_id;if(!s)return;const T=n.data[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE],_=n.data[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE];if("number"==typeof T||"number"==typeof _){const t=o.get(s)||{inputTokens:0,outputTokens:0};"number"==typeof T&&(t.inputTokens+=T),"number"==typeof _&&(t.outputTokens+=_),o.set(s,t)}}function _(n,o){const s=o.get(n.span_id);s&&n.data&&(s.inputTokens>0&&(n.data[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=s.inputTokens),s.outputTokens>0&&(n.data[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=s.outputTokens),(s.inputTokens>0||s.outputTokens>0)&&(n.data["gen_ai.usage.total_tokens"]=s.inputTokens+s.outputTokens))}function u(n){const o=new Map;for(const s of n){const n=s.data[t.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE];if("string"==typeof n)try{const t=JSON.parse(n);for(const n of t)n.name&&n.description&&!o.has(n.name)&&o.set(n.name,n.description)}catch{}}return o}function c(n,o){const s=u(n);for(const T of n){if("gen_ai.execute_tool"===T.op){const n=T.data[t.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof n){const o=s.get(n);o&&(T.data[t.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=o)}}"gen_ai.invoke_agent"===T.op&&_(T,o)}}function A(t){return o.toolCallSpanContextMap.get(t)}function E(t){o.toolCallSpanContextMap.delete(t)}function p(t){const n=t.map(t=>{if("string"==typeof t)try{return JSON.parse(t)}catch{return t}return t});return JSON.stringify(n)}function I(t){return t.filter(t=>!!t&&"object"==typeof t&&"role"in t&&"content"in t)}function f(t){try{const n=JSON.parse(t);if(n&&"object"==typeof n){let{messages:t}=n;const{prompt:o,system:s}=n,T=[];if("string"==typeof s&&T.push({role:"system",content:s}),"string"==typeof t)try{t=JSON.parse(t)}catch{}if(Array.isArray(t))return T.push(...I(t)),T;if(Array.isArray(o))return T.push(...I(o)),T;if("string"==typeof o&&T.push({role:"user",content:o}),T.length>0)return T}}catch{}return[]}function S(o,T,_){if("string"!=typeof T[s.AI_PROMPT_ATTRIBUTE]||T[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]||T[s.AI_PROMPT_MESSAGES_ATTRIBUTE]){if
386("string"==typeof T[s.AI_PROMPT_MESSAGES_ATTRIBUTE]){const u=T[s.AI_PROMPT_MESSAGES_ATTRIBUTE];try{const T=JSON.parse(u);if(Array.isArray(T)){const{systemInstructions:c,filteredMessages:A}=(0,n.extractSystemInstructions)(T);c&&o.setAttribute(t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,c);const E=Array.isArray(A)?A.length:0,p=_||A!==T?_?(0,n.getTruncatedJsonString)(A):(0,n.getJsonString)(A):u;o.setAttributes({[s.AI_PROMPT_MESSAGES_ATTRIBUTE]:p,[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:p,[t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:E})}}catch{}}}else{const u=f(T[s.AI_PROMPT_ATTRIBUTE]);if(u.length){const{systemInstructions:T,filteredMessages:c}=(0,n.extractSystemInstructions)(u);T&&o.setAttribute(t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,T);const A=Array.isArray(c)?c.length:0,E=_?(0,n.getTruncatedJsonString)(c):(0,n.getJsonString)(c);o.setAttributes({[s.AI_PROMPT_ATTRIBUTE]:E,[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:E,[t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:A})}}}},1917,[1913,1912,1916,1918]);
387__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AI_MODEL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"AI_OPERATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"AI_PROMPT_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"AI_PROMPT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"AI_PROMPT_TOOLS_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"AI_RESPONSE_FINISH_REASON_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"AI_RESPONSE_OBJECT_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"AI_RESPONSE_TEXT_ATTRIBUTE",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"AI_RESPONSE_TOOL_CALLS_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"AI_SCHEMA_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"AI_TOOL_CALL_ARGS_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"AI_TOOL_CALL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"AI_TOOL_CALL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"AI_TOOL_CALL_RESULT_ATTRIBUTE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"AI_USAGE_PROMPT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"AI_USAGE_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"AI_VALUES_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"OPERATION_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return t}});const t="operation.name",n="ai.operationId",T="ai.prompt",o="ai.schema",_="ai.response.object",u="ai.values",A="ai.response.text",E="ai.response.toolCalls",I="ai.response.finishReason",O="ai.prompt.messages",c="ai.prompt.tools",f="ai.model.id",b="ai.response.providerMetadata",l="ai.usage.cachedInputTokens",P="ai.usage.inputTokenDetails.",p="ai.telemetry.functionId",R="ai.usage.completionTokens",s="ai.usage.promptTokens",U="ai.usage.tokens",S="ai.toolCall.name",j="ai.toolCall.id",y="ai.toolCall.args",B="ai.toolCall.result"},1918,[]);
388__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return N}});
388var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),_=r(d[5]),c=r(d[6]),T=r(d[7]),E=r(d[8]),A=r(d[9]),p=r(d[10]);function I(n){const o=[...Array.isArray(n.tools)?n.tools:[],...n.web_search_options&&"object"==typeof n.web_search_options?[{type:"web_search_options",...n.web_search_options}]:[]];if(0!==o.length)try{return JSON.stringify(o)}catch(n){return void(t.DEBUG_BUILD&&s.debug.error("Failed to serialize OpenAI tools:",n))}}function l(t,n){const s={[c.GEN_AI_SYSTEM_ATTRIBUTE]:"openai",[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:n,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(t.length>0&&"object"==typeof t[0]&&null!==t[0]){const n=t[0],o=I(n);o&&(s[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=o),Object.assign(s,(0,p.extractRequestParameters)(n))}else s[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return s}function S(t,n,o,s){if("embeddings"===o&&"input"in n){const o=n.input;if(null==o)return;if("string"==typeof o&&0===o.length)return;if(Array.isArray(o)&&0===o.length)return;return void t.setAttribute(c.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o))}const u="input"in n?n.input:"messages"in n?n.messages:void 0;if(!u)return;if(Array.isArray(u)&&0===u.length)return;const{systemInstructions:_,filteredMessages:E}=(0,T.extractSystemInstructions)(u);_&&t.setAttribute(c.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,_),t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,s?(0,T.getTruncatedJsonString)(E):(0,T.getJsonString)(E)),Array.isArray(E)?t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,E.length):t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,1)}function f(t,o,s,E,I){return function(...f){const y=s.operation||"unknown",N=l(f,y),R=N[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",b=f[0],h=b&&"object"==typeof b&&!0===b.stream,O={name:`${y} ${R}`,op:`gen_ai.${y}`,attributes:N};if(h){let s;const c=(0,_.startSpanManual)(O,_=>(s=t.apply(E,f),I.recordInputs&&b&&S(_,b,y,(0,T.shouldEnableTruncation)(I.enableTruncation)),(async()=>{try{const t=await s;return(0,A.instrumentStream)(t,_,I.recordOutputs??!1)}catch(t){throw _.setStatus({code:u.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:o}}}),_.end(),t}})()));return(0,T.wrapPromiseWithMethods)(s,c,"auto.ai.openai")}let U;const G=(0,_.startSpan)(O,s=>(U=t.apply(E,f),I.recordInputs&&b&&S(s,b,y,(0,T.shouldEnableTruncation)(I.enableTruncation)),U.then(t=>((0,p.addResponseAttributes)(s,t,I.recordOutputs),t),t=>{throw(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:o}}}),t})));return(0,T.wrapPromiseWithMethods)(U,G,"auto.ai.openai")}}function y(t,n="",o){return new Proxy(t,{get(t,s){const u=t[s],_=(0,T.buildMethodPath)(n,String(s)),c=E.OPENAI_METHOD_REGISTRY[_];return"function"==typeof u&&c?f(u,_,c,t,o):"function"==typeof u?u.bind(t):u&&"object"==typeof u?y(u,_,o):u}})}function N(t,n){return y(t,"",(0,T.resolveAIRecordingOptions)(n))}},1919,[1768,1825,1798,1772,1799,1818,1913,1912,1920,1921,1922]);
389__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"OPENAI_METHOD_REGISTRY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"RESPONSES_TOOL_CALL_EVENT_TYPES",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"RESPONSE_EVENT_TYPES",{enumerable:!0,get:function(){return s}});const t="OpenAI",n={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},o=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],s=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...o]},1920,[]);
390__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentStream",{enumerable:!0,get:function(){return f}});
390var o=r(d[0]),s=r(d[1]),t=r(d[2]),n=r(d[3]),l=r(d[4]);function p(o,s){for(const t of o){const o=t.index;if(void 0!==o&&t.function)if(o in s.chatCompletionToolCalls){const n=s.chatCompletionToolCalls[o];t.function.arguments&&n?.function&&(n.function.arguments+=t.function.arguments)}else s.chatCompletionToolCalls[o]={...t,function:{name:t.function.name,arguments:t.function.arguments||""}}}}function u(o,s,t){s.responseId=o.id??s.responseId,s.responseModel=o.model??s.responseModel,o.usage&&(s.promptTokens=o.usage.prompt_tokens,s.completionTokens=o.usage.completion_tokens,s.totalTokens=o.usage.total_tokens);for(const n of o.choices??[])t&&(n.delta?.content&&s.responseTexts.push(n.delta.content),n.delta?.tool_calls&&p(n.delta.tool_calls,s)),n.finish_reason&&s.finishReasons.push(n.finish_reason)}function c(t,l,p,u){if(!t||"object"!=typeof t)return void l.eventTypes.push("unknown:non-object");if(t instanceof Error)return u.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),void(0,o.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in t))return;const c=t;if(n.RESPONSE_EVENT_TYPES.includes(c.type)){if(p&&("response.output_item.done"===c.type&&"item"in c&&l.responsesApiToolCalls.push(c.item),"response.output_text.delta"===c.type&&"delta"in c&&c.delta))l.responseTexts.push(c.delta);else if("response"in c){const{response:o}=c;l.responseId=o.id??l.responseId,l.responseModel=o.model??l.responseModel,o.usage&&(l.promptTokens=o.usage.input_tokens,l.completionTokens=o.usage.output_tokens,l.totalTokens=o.usage.total_tokens),o.status&&l.finishReasons.push(o.status),p&&o.output_text&&l.responseTexts.push(o.output_text)}}else l.eventTypes.push(c.type)}async function*f(o,s,n){const p={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const t of o)(0,l.isChatCompletionChunk)(t)?u(t,p,n):(0,l.isResponsesApiStreamEvent)(t)&&c(t,p,n,s),yield t}finally{const o=[...Object.values(p.chatCompletionToolCalls),...p.responsesApiToolCalls];(0,t.endStreamSpan)(s,{...p,toolCalls:o},n)}}},1921,[1825,1799,1912,1920,1922]);
391__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addResponseAttributes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractRequestParameters",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"isChatCompletionChunk",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isResponsesApiStreamEvent",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(t){return null!==t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.startsWith("response.")}function _(t){return null!==t&&"object"==typeof t&&"object"in t&&"chat.completion.chunk"===t.object}function E(n,_,E){if(!_||"object"!=typeof _)return;const o=_,T={};if("string"==typeof o.id&&(T[t.GEN_AI_RESPONSE_ID_ATTRIBUTE]=o.id),"string"==typeof o.model&&(T[t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=o.model),"conversation"===o.object&&"string"==typeof o.id&&(T[t.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=o.id),o.usage&&"object"==typeof o.usage){const n=o.usage,_=n.prompt_tokens??n.input_tokens;"number"==typeof _&&(T[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=_);const E=n.completion_tokens??n.output_tokens;"number"==typeof E&&(T[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=E),"number"==typeof n.total_tokens&&(T[t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.total_tokens)}if(Array.isArray(o.choices)){const n=o.choices,_=n.map(t=>t.finish_reason).filter(t=>"string"==typeof t);if(_.length>0&&(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(_)),E){const _=n.map(t=>{const n=t.message;return n?.content||""});T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=JSON.stringify(_);const E=n.map(t=>{const n=t.message;return n?.tool_calls}).filter(t=>Array.isArray(t)&&t.length>0).flat();E.length>0&&(T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(E))}}if("string"==typeof o.status&&(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]||(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify([o.status]))),E&&("string"!=typeof o.output_text||T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]||(T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=o.output_text),Array.isArray(o.output)&&o.output.length>0&&!T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE])){const n=o.output.f
391ilter(t=>"function_call"===t?.type);n.length>0&&(T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n))}n.setAttributes(T)}function o(t){return"conversation"in t&&"string"==typeof t.conversation?t.conversation:"previous_response_id"in t&&"string"==typeof t.previous_response_id?t.previous_response_id:void 0}function T(n){const _={[t.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:n.model??"unknown"};"temperature"in n&&(_[t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=n.temperature),"top_p"in n&&(_[t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=n.top_p),"frequency_penalty"in n&&(_[t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=n.frequency_penalty),"presence_penalty"in n&&(_[t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=n.presence_penalty),"stream"in n&&(_[t.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=n.stream),"encoding_format"in n&&(_[t.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=n.encoding_format),"dimensions"in n&&(_[t.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=n.dimensions);const E=o(n);return E&&(_[t.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=E),_}},1922,[1913]);
392__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return U}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),_=r(d[3]),s=r(d[4]),E=r(d[5]),T=r(d[6]),u=r(d[7]),c=r(d[8]);function p(t,o,_){const E={[s.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:_,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(t.length>0&&"object"==typeof t[0]&&null!==t[0]){const n=t[0];n.tools&&Array.isArray(n.tools)&&(E[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n.tools)),E[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=n.model??"unknown","temperature"in n&&(E[s.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=n.temperature),"top_p"in n&&(E[s.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=n.top_p),"stream"in n&&(E[s.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=n.stream),"top_k"in n&&(E[s.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=n.top_k),"frequency_penalty"in n&&(E[s.GEN_AI_REQUEST_FREQUENCY_PENA
392LTY_ATTRIBUTE]=n.frequency_penalty),"max_tokens"in n&&(E[s.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=n.max_tokens)}else E[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===o||"models.get"===o?t[0]:"unknown";return E}function A(t,n,o){const _=(0,c.messagesFromParams)(n);(0,c.setMessagesAttribute)(t,_,o),"prompt"in n&&t.setAttributes({[s.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(n.prompt)})}function R(t,n){if("content"in n&&Array.isArray(n.content)){t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.content.map(t=>t.text).filter(t=>!!t).join("")});const o=[];for(const t of n.content)"tool_use"!==t.type&&"server_tool_use"!==t.type||o.push(t);o.length>0&&t.setAttributes({[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(o)})}"completion"in n&&t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.completion}),"input_tokens"in n&&t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(n.input_tokens)})}function I(t,n){"id"in n&&"model"in n&&(t.setAttributes({[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]:n.id,[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:n.model}),"usage"in n&&n.usage&&(0,E.setTokenUsageAttributes)(t,n.usage.input_tokens,n.usage.output_tokens,n.usage.cache_creation_input_tokens,n.usage.cache_read_input_tokens))}function l(t,n,o){n&&"object"==typeof n&&("type"in n&&"error"===n.type?(0,c.handleResponseError)(t,n):(o&&R(t,n),I(t,n)))}function S(n,_,s){throw(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:s}}}),_.isRecording()&&(_.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),_.end()),n}function N(t,n,o,T,c,p,R,I,l,N,f){const y={name:`${p} ${c[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"}`,op:`gen_ai.${p}`,attributes:c};if(N&&!f){let n;const s=(0,_.startSpanManual)(y,_=>(n=t.apply(o,T),l.recordInputs&&I&&A(_,I,(0,E.shouldEnableTruncation)(l.enableTruncation)),(async()=>{try{const t=await n;return(0,u.instrumentAsyncIterableStream)(t,_,l.recordOutputs??!1)}catch(t){return S(t,_,R)}})()));return(0,E.wrapPromiseWithMethods)(n,s,"auto.ai.anthropic")}return(0,_.startSpanManual)(y,t=>{try{l.recordInputs&&I&&A(t,I,(0,E.shouldEnableTruncation)(l.enableTruncation));const _=n.apply(o,T);return(0,u.instrumentMessageStream)(_,t,l.recordOutputs??!1)}catch(n){return S(n,t,R)}})}function f(n,o,T,u,c){return new Proxy(n,{apply(R,I,S){const f=T.operation||"unknown",y=p(S,o,f),U=y[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",O="object"==typeof S[0]?S[0]:void 0,h=Boolean(O?.stream),b=!0===T.streaming;if(h||b)return N(n,R,u,S,y,f,o,O,c,h,b);let P;const B=(0,_.startSpan)({name:`${f} ${U}`,op:`gen_ai.${f}`,attributes:y},n=>(P=R.apply(u,S),c.recordInputs&&O&&A(n,O,(0,E.shouldEnableTruncation)(c.enableTruncation)),P.then(t=>(l(n,t,c.recordOutputs),t),n=>{throw(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:o}}}),n})));return(0,E.wrapPromiseWithMethods)(P,B,"auto.ai.anthropic")}})}function y(t,n="",o){return new Proxy(t,{get(t,_){const s=t[_],u=(0,E.buildMethodPath)(n,String(_)),c=T.ANTHROPIC_METHOD_REGISTRY[u];return"function"==typeof s&&c?f(s,u,c,t,o):"function"==typeof s?s.bind(t):s&&"object"==typeof s?y(s,u,o):s}})}function U(t,n){return y(t,"",(0,E.resolveAIRecordingOptions)(n))}},1923,[1825,1798,1799,1818,1913,1912,1924,1925,1926]);
393__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ANTHROPIC_METHOD_REGISTRY",{enumerable:!0,get:function(){return o}});const t="Anthropic_AI",o={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}}},1924,[]);
394__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentAsyncIterableStream",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"instrumentMessageStream",{enumerable:!0,get:function(){return y}});
394var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function c(o,c){return"type"in o&&"string"==typeof o.type&&"error"===o.type&&(c.setStatus({code:n.SPAN_STATUS_ERROR,message:(0,s.mapAnthropicErrorToStatusMessage)(o.error?.type)}),(0,t.captureException)(o.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}function p(t,n){if("message_delta"===t.type&&t.usage&&"output_tokens"in t.usage&&"number"==typeof t.usage.output_tokens&&(n.completionTokens=t.usage.output_tokens),t.message){const o=t.message;o.id&&(n.responseId=o.id),o.model&&(n.responseModel=o.model),o.stop_reason&&n.finishReasons.push(o.stop_reason),o.usage&&("number"==typeof o.usage.input_tokens&&(n.promptTokens=o.usage.input_tokens),"number"==typeof o.usage.cache_creation_input_tokens&&(n.cacheCreationInputTokens=o.usage.cache_creation_input_tokens),"number"==typeof o.usage.cache_read_input_tokens&&(n.cacheReadInputTokens=o.usage.cache_read_input_tokens))}}function u(t,n){"content_block_start"===t.type&&"number"==typeof t.index&&t.content_block&&("tool_use"!==t.content_block.type&&"server_tool_use"!==t.content_block.type||(n.activeToolBlocks[t.index]={id:t.content_block.id,name:t.content_block.name,inputJsonParts:[]}))}function l(t,n,o){if("content_block_delta"===t.type&&t.delta){if("number"==typeof t.index&&"partial_json"in t.delta&&"string"==typeof t.delta.partial_json){const o=n.activeToolBlocks[t.index];o&&o.inputJsonParts.push(t.delta.partial_json)}o&&"string"==typeof t.delta.text&&n.responseTexts.push(t.delta.text)}}function _(t,n){if("content_block_stop"!==t.type||"number"!=typeof t.index)return;const o=n.activeToolBlocks[t.index];if(!o)return;const s=o.inputJsonParts.join("");let c;try{c=s?JSON.parse(s):{}}catch{c={__unparsed:s}}n.toolCalls.push({type:"tool_use",id:o.id,name:o.name,input:c}),delete n.activeToolBlocks[t.index]}function f(t,n,o,s){if(!t||"object"!=typeof t)return;c(t,s)||(p(t,n),u(t,n),l(t,n,o),_(t,n))}async function*k(t,n,s){const c={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of t)f(o,c,s,n),yield o}finally{(0,o.endStreamSpan)(n,c,s)}}function y(s,c,p){const u={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return s.on("streamEvent",t=>{f(t,u,p,c)}),s.on("message",()=>{(0,o.endStreamSpan)(c,u,p)}),s.on("error",o=>{(0,t.captureException)(o,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),c.isRecording()&&(c.setStatus({code:n.SPAN_STATUS_ERROR,message:"internal_error"}),c.end())}),s}},1925,[1825,1799,1912,1926]);
395__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handleResponseError",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"mapAnthropicErrorToStatusMessage",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"messagesFromParams",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"setMessagesAttribute",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function u(t,n,u){if(Array.isArray(n)&&0===n.length)return;const{systemInstructions:_,filteredMessages:c}=(0,s.extractSystemInstructions)(n);_&&t.setAttributes({[o.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]:_});const l=Array.isArray(c)?c.length:1;t.setAttributes({[o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:u?(0,s.getTruncatedJsonString)(c):(0,s.getJsonString)(c),[o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const _={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function c(t){return t&&_[t]||"internal_error"}function l(o,s){s.error&&(o.setStatus({code:n.SPAN_STATUS_ERROR,message:c(s.error.type)}),(0,t.captureException)(s.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function A(t){const{system:n,messages:o,input:s}=t,u="string"==typeof n?[{role:"system",content:t.system}]:[],_=Array.isArray(s)?s:null!=s?[s]:void 0,c=Array.isArray(o)?o:null!=o?[o]:[];return[...u,..._??c]}},1926,[1825,1799,1913,1912]);
396__d(function(g,r,i,a,m,e,d){"use strict";
396Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractModel",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),T=r(d[4]),u=r(d[5]),E=r(d[6]),_=r(d[7]),c=r(d[8]),A=r(d[9]);function p(t,n){if("model"in t&&"string"==typeof t.model)return t.model;if(n&&"object"==typeof n){const t=n;if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function f(t){const n={};return"temperature"in t&&"number"==typeof t.temperature&&(n[u.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"topP"in t&&"number"==typeof t.topP&&(n[u.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.topP),"topK"in t&&"number"==typeof t.topK&&(n[u.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.topK),"maxOutputTokens"in t&&"number"==typeof t.maxOutputTokens&&(n[u.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.maxOutputTokens),"frequencyPenalty"in t&&"number"==typeof t.frequencyPenalty&&(n[u.GEN_AI_REQUEST_FREQUENCY_PENA
396LTY_ATTRIBUTE]=t.frequencyPenalty),"presencePenalty"in t&&"number"==typeof t.presencePenalty&&(n[u.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=t.presencePenalty),n}function l(t,o,s){const T={[u.GEN_AI_SYSTEM_ATTRIBUTE]:_.GOOGLE_GENAI_SYSTEM_NAME,[u.GEN_AI_OPERATION_NAME_ATTRIBUTE]:t,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(o){if(T[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p(o,s),"config"in o&&"object"==typeof o.config&&o.config){const t=o.config;if(Object.assign(T,f(t)),"tools"in t&&Array.isArray(t.tools)){const n=t.tools.flatMap(t=>t.functionDeclarations);T[u.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n)}}}else T[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p({},s);return T}function I(t,n,o,s){if(o){const o=n.contents;return void(null!=o&&t.setAttribute(u.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o)))}const T=[];if("config"in n&&n.config&&"object"==typeof n.config&&"systemInstruction"in n.config&&n.config.systemInstruction&&T.push(...(0,A.contentUnionToMessages)(n.config.systemInstruction,"system")),"history"in n&&T.push(...(0,A.contentUnionToMessages)(n.history,"user")),"contents"in n&&T.push(...(0,A.contentUnionToMessages)(n.contents,"user")),"message"in n&&T.push(...(0,A.contentUnionToMessages)(n.message,"user")),Array.isArray(T)&&T.length){const{systemInstructions:n,filteredMessages:o}=(0,E.extractSystemInstructions)(T);n&&t.setAttribute(u.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,n);const _=Array.isArray(o)?o.length:0;t.setAttributes({[u.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:_,[u.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:s?(0,E.getTruncatedJsonString)(o):(0,E.getJsonString)(o)})}}function y(t,n,o){if(n&&"object"==typeof n){if(n.modelVersion&&t.setAttribute(u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n.modelVersion),n.usageMetadata&&"object"==typeof n.usageMetadata){const o=n.usageMetadata;"number"==typeof o.promptTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:o.promptTokenCount}),"number"==typeof o.candidatesTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:o.candidatesTokenCount}),"number"==typeof o.totalTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:o.totalTokenCount})}if(o&&Array.isArray(n.candidates)&&n.candidates.length>0){const o=n.candidates.map(t=>t.content?.parts&&Array.isArray(t.content.parts)?t.content.parts.map(t=>"string"==typeof t.text?t.text:"").filter(t=>t.length>0).join(""):"").filter(t=>t.length>0);o.length>0&&t.setAttributes({[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:o.join("")})}if(o&&n.functionCalls){const o=n.functionCalls;Array.isArray(o)&&o.length>0&&t.setAttributes({[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(o)})}}}function S(n,_,A,p,f){const S="embeddings"===A.operation;return new Proxy(n,{apply(n,N,R){const U=A.operation||"unknown",O=R[0],b=l(U,O,p),G=b[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown";return A.streaming?(0,s.startSpanManual)({name:`${U} ${G}`,op:`gen_ai.${U}`,attributes:b},async s=>{try{f.recordInputs&&O&&I(s,O,S,(0,E.shouldEnableTruncation)(f.enableTruncation));const t=await n.apply(p,R);return(0,c.instrumentStream)(t,s,Boolean(f.recordOutputs))}catch(n){throw s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:_}}}),s.end(),n}}):(0,s.startSpan)({name:`${U} ${G}`,op:`gen_ai.${U}`,attributes:b},o=>(f.recordInputs&&O&&I(o,O,S,(0,E.shouldEnableTruncation)(f.enableTruncation)),(0,T.handleCallbackErrors)(()=>n.apply(p,R),n=>{(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:_}}})},()=>{},t=>{S||y(o,t,f.recordOutputs)})))}})}function N(t,n="",o){return new Proxy(t,{get:(t,s,T)=>{const u=Reflect.get(t,s,T),c=(0,E.buildMethodPath)(n,String(s)),A=_.GOOGLE_GENAI_METHOD_REGISTRY[c];if("function"==typeof u&&A){const n=A.operation?S(u,c,A,t,o):u.bind(t);return A.proxyResultPath?function(...t){const s=n(...t);return s&&"object"==typeof s?N(s,A.proxyResultPath,o):s}:n}return"function"==typeof u?u.bind(t):u&&"object"==typeof u?N(u,c,o):u}})}function R(t,n){return N(t,"",(0,E.resolveAIRecordingOptions)(n))}},1927,[1825,1798,1799,1818,1819,1913,1912,1928,1929,1930]);
397__d(function(g,r,i,a,m,e,d){"use strict";
397Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GOOGLE_GENAI_METHOD_REGISTRY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GOOGLE_GENAI_SYSTEM_NAME",{enumerable:!0,get:function(){return o}});const t="Google_GenAI",n={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},o="google_genai"},1928,[]);
398__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentStream",{enumerable:!0,get:function(){return f}});var n=r(d[0]),o=r(d[1]),t=r(d[2]);function s(t,s){const l=t?.promptFeedback;if(l?.blockReason){const t=l.blockReasonMessage??l.blockReason;return s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(`Content blocked: ${t}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function l(n,o){"string"==typeof n.responseId&&(o.responseId=n.responseId),"string"==typeof n.modelVersion&&(o.responseModel=n.modelVersion);const t=n.usageMetadata;t&&("number"==typeof t.promptTokenCount&&(o.promptTokens=t.promptTokenCount),"number"==typeof t.candidatesTokenCount&&(o.completionTokens=t.candidatesTokenCount),"number"==typeof t.totalTokenCount&&(o.totalTokens=t.totalTokenCount))}function u(n,o,t){Array.isArray(n.functionCalls)&&o.toolCalls.push(...n.functionCalls);for(const s of n.candidates??[]){s?.finishReason&&!o.finishReasons.includes(s.finishReason)&&o.finishReasons.push(s.finishReason);for(const n of s?.content?.parts??[])t&&n.text&&o.responseTexts.push(n.text),n.functionCall&&o.toolCalls.push({type:"function",id:n.functionCall.id,name:n.functionCall.name,arguments:n.functionCall.args})}}function c(n,o,t,c){n&&!s(n,c)&&(l(n,o),u(n,o,t))}async function*f(n,o,s){const l={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const t of n)c(t,l,s,o),yield t}finally{(0,t.endStreamSpan)(o,l,s)}}},1929,[1825,1799,1912]);
399__d(function(g,r,i,a,m,e,d){"use strict";function t(n,o="user"){return"string"==typeof n?[{role:o,content:n}]:Array.isArray(n)?n.flatMap(n=>t(n,o)):"object"==typeof n&&n?"role"in n&&"string"==typeof n.role?[n]:"parts"in n?[{...n,role:o}]:[{role:o,content:n}]:[]}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"contentUnionToMessages",{enumerable:!0,get:function(){return t}})},1930,[]);
400__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return E}});var t=r(d[0]),n=r(d[1]),_=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]),l=r(d[6]),T=r(d[7]);function E(E={}){const{recordInputs:A,recordOutputs:I}=(0,s.resolveAIRecordingOptions)(E),N=(0,s.shouldEnableTruncation)(E.enableTruncation),R=new Map,u=t=>{const n=R.get(t);n?.isRecording()&&(n.end(),R.delete(t))},h={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(t,_,s,l,E,I,u,h){const S=(0,T.getInvocationParams)(I),O=(0,T.extractLLMRequestAttributes)(t,_,A,N,S,u),p=O[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE],M=O[c.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${M} ${p}`,op:"gen_ai.chat",attributes:{...(0,T.getAgentNameFromMetadata)(u),...O,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},t=>(R.set(s,t),t))},handleChatModelStart(t,_,s,l,E,I,u,h){const S=(0,T.getInvocationParams)(I),O=(0,T.extractChatModelRequestAttributes)(t,_,A,N,S,u),p=(0,T.extractToolDefinitions)(E);p&&(O[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=p);const M=O[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE],L=O[c.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${L} ${M}
400`,op:"gen_ai.chat",attributes:{...(0,T.getAgentNameFromMetadata)(u),...O,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},t=>(R.set(s,t),t))},handleLLMEnd(t,n,_,o,c){const s=R.get(n);if(s?.isRecording()){const _=(0,T.extractLlmResponseAttributes)(t,I);_&&s.setAttributes(_),u(n)}},handleLLMError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.llm_error_handler`}})},handleChainStart(t,_,c,s,l,T,E,I){if(T?.__sentry_langgraph__)return;const N=I||t.name||"unknown_chain",u={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":N};A&&(u["langchain.chain.inputs"]=JSON.stringify(_)),(0,o.startSpanManual)({name:`chain ${N}`,op:"gen_ai.invoke_agent",attributes:{...u,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},t=>(R.set(c,t),t))},handleChainEnd(t,n){const _=R.get(n);_?.isRecording()&&(I&&_.setAttributes({"langchain.chain.outputs":JSON.stringify(t)}),u(n))},handleChainError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.chain_error_handler`}})},handleToolStart(t,_,s,E,I,N,u){if(N?.__sentry_langgraph__)return;const h=u||t.name||"unknown_tool",S={...(0,T.getAgentNameFromMetadata)(N),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[c.GEN_AI_TOOL_NAME_ATTRIBUTE]:h};A&&(S[c.GEN_AI_TOOL_INPUT_ATTRIBUTE]=_),(0,o.startSpanManual)({name:`execute_tool ${h}`,op:"gen_ai.execute_tool",attributes:{...S,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},t=>(R.set(s,t),t))},handleToolEnd(t,n){const _=R.get(n);if(_?.isRecording()){if(I){const n=t&&"object"==typeof t&&"content"in t?t.content:t;_.setAttributes({[c.GEN_AI_TOOL_OUTPUT_ATTRIBUTE]:"string"==typeof n?n:JSON.stringify(n)})}u(n)}},handleToolError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.tool_error_handler`}})},copy:()=>h,toJSON:()=>({lc:1,type:"not_implemented",id:h.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:h.lc_id})};return h}},1931,[1825,1798,1799,1818,1913,1912,1932,1933]);
401__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"LANGCHAIN_ORIGIN",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ROLE_MAP",{enumerable:!0,get:function(){return s}});const t="LangChain",n="auto.ai.langchain",s={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},1932,[]);
402__d(function(_g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"extractChatModelRequestAttributes",{enumerable:!0,get:function(){return g}}),Object.defineProperty(e,"extractLLMRequestAttributes",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"extractLlmResponseAttributes",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extractToolDefinitions",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getAgentNameFromMetadata",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"getInvocationParams",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"normalizeLangChainMessages",{enumerable:!0,get:function(){return l}});var n=_r(d[0]),t=_r(d[1]),r=_r(d[2]),o=_r(d[3]),_=_r(d[4]);const s=(n,t,r)=>{null!=r&&(n[t]=r)},c=(n,t,r)=>{const o=Number(r);Number.isNaN(o)||(n[t]=o)};function T(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return String(n)}}function u(n){if(Array.isArray(n))try{const t=n.map(n=>n&&"object"==typeof n&&(0,r.isContentMedia)(n)?(0,r.stripInlineMediaFromSingleMessage)(n):n);return JSON.stringify(t)}catch{return String(n)}return T(n)}function E(n){const t=n.toLowerCase();return _.ROLE_MAP[t]??t}function A(n){return n.includes("System")?"system":n.includes("Human")?"user":n.includes("AI")||n.includes("Assistant")?"assistant":n.includes("Function")?"function":n.includes("Tool")?"tool":"user"}function f(n){if(n&&!Array.isArray(n))return n.invocation_params}function l(n){return n.map(n=>{const t=n._getType;if("function"==typeof t){return{role:E(t.call(n)),content:u(n.content)}}if(1===n.lc&&n.kwargs){const t=n.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:E("string"==typeof r?A(r):"user"),content:u(n.kwargs?.content)}}if(n.type){return{role:E(String(n.type).toLowerCase()),content:u(n.content)}}if(n.role)return{role:E(String(n.role)),content:u(n.content)};const r=n.constructor?.name;return r&&"Object"!==r?{role:E(A(r)),content:u(n.content)}:{role:"user",content:u(n.content)}})}function N(n,r,o){const _={},T="kwargs"in n?n.kwargs:void 0,u=r?.temperature??o?.ls_temperature??T?.temperature;c(_,t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,u);const E=r?.max_tokens??o?.ls_max_tokens??T?.max_tokens;c(_,t.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,E);const A=r?.top_p??T?.top_p;c(_,t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,A);const f=r?.frequency_penalty;
402c(_,t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE,f);const l=r?.presence_penalty;return c(_,t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,l),r&&"stream"in r&&s(_,t.GEN_AI_REQUEST_STREAM_ATTRIBUTE,Boolean(r.stream)),_}function I(r,o,s,c,u){return{[t.GEN_AI_SYSTEM_ATTRIBUTE]:T(r??"langchain"),[t.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"chat",[t.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:T(o),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:_.LANGCHAIN_ORIGIN,...N(s,c,u)}}function S(n,r,_,c,T,u){const E=u?.ls_provider,A=I(E,T?.model??u?.ls_model_name??"unknown",n,T,u);if(_&&Array.isArray(r)&&r.length>0){s(A,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,r.length);const n=r.map(n=>({role:"user",content:n}));s(A,t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,c?(0,o.getTruncatedJsonString)(n):(0,o.getJsonString)(n))}return A}function g(n,r,_,c,T,u){const E=I(u?.ls_provider??n.id?.[2],T?.model??u?.ls_model_name??"unknown",n,T,u);if(_&&Array.isArray(r)&&r.length>0){const n=l(r.flat()),{systemInstructions:_,filteredMessages:T}=(0,o.extractSystemInstructions)(n);_&&s(E,t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,_);const u=Array.isArray(T)?T.length:0;s(E,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,u),s(E,t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,c?(0,o.getTruncatedJsonString)(T):(0,o.getJsonString)(T))}return E}function p(n,r){const o=[],_=n.flat();for(const n of _){const t=n.message,r=t?.tool_calls;if(Array.isArray(r)&&r.length>0)o.push(...r);else{const t=n.message?.content;if(Array.isArray(t))for(const n of t){const t=n;"tool_use"===t.type&&o.push(t)}}}o.length>0&&s(r,t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,T(o))}function R(n,r){if(!n)return;const o=n.tokenUsage,_=n.usage;if(o)c(r,t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,o.promptTokens),c(r,t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,o.completionTokens),c(r,t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,o.totalTokens);else if(_){c(r,t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,_.input_tokens),c(r,t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,_.output_tokens);const n=Number(_.input_tokens),o=Number(_.output_tokens),s=(Number.isNaN(n)?0:n)+(Number.isNaN(o)?0:o);s>0&&c(r,t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,s),void 0!==_.cache_creation_input_tokens&&c(r,t.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,_.cache_creation_input_tokens),void 0!==_.cache_read_input_tokens&&c(r,t.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,_.cache_read_input_tokens)}}function y(n,r){if(!n)return;const o={};if(Array.isArray(n.generations)){const _=n.generations.flat().map(n=>n.generationInfo?.finish_reason?n.generationInfo.finish_reason:n.generation_info?.finish_reason?n.generation_info.finish_reason:null).filter(n=>"string"==typeof n);if(_.length>0&&s(o,t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,T(_)),p(n.generations,o),r){const r=n.generations.flat().map(n=>n.text??n.message?.content).filter(n=>"string"==typeof n);r.length>0&&s(o,t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,T(r))}}R(n.llmOutput,o);const _=n.llmOutput,c=n.generations?.[0]?.[0],u=c?.message,E=_?.model_name??_?.model??u?.response_metadata?.model_name;E&&s(o,t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,E);const A=_?.id??u?.id;A&&s(o,t.GEN_AI_RESPONSE_ID_ATTRIBUTE,A);const f=_?.stop_reason??u?.response_metadata?.finish_reason;return f&&s(o,t.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,T(f)),o}function U(n){const r={},o=n?.lc_agent_name;return"string"==typeof o&&(r[t.GEN_AI_AGENT_NAME_ATTRIBUTE]=o),r}function O(n){const t=n?.invocation_params?.tools??n?.options?.tools;if(!Array.isArray(t)||0===t.length)return;const r=t.map(n=>{const t=n.function;return{type:"function",name:n.name??t?.name??"",description:n.description??t?.description}});return JSON.stringify(r)}function G(n){if(!n||"object"!=typeof n)return!1;const t=n;return"function"==typeof t.addHandler&&"function"==typeof t.copy}function P(n){return"object"==typeof n&&"SentryCallbackHandler"===n?.name}function b(n){return n.some(P)}function B(n,t){if(!n)return[t];
402if(G(n)){if(b(n.handlers??[]))return n;const r=n.copy();return r.addHandler(t,!0),r}const r=Array.isArray(n)?n:[n];return b(r)?n:[...r,t]}},1933,[1798,1913,1915,1912,1932]);
403__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"instrumentLangGraph",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return I}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),_=r(d[3]),s=r(d[4]),c=r(d[5]),T=r(d[6]),A=r(d[7]),l=r(d[8]),E=r(d[9]);let u=!1;const p="__sentry_patched__";function I(c,A){if(Object.prototype.hasOwnProperty.call(c,p))return c;const E=(0,T.createLangChainCallbackHandler)(A),I=new Proxy(c,{apply:(c,T,p)=>u?Reflect.apply(c,T,p):(0,_.startSpan)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"create_agent"}},n=>{try{const t=Reflect.apply(c,T,p),o=p.length>0?p[0]:{};o?.name&&"string"==typeof o.name&&(n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,o.name),n.updateName(`create_agent ${o.name}`));const _=t.invoke;return _&&"function"==typeof _&&(t.invoke=N(_.bind(t),t,o,A,void 0,E)),t}catch(_){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(_,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),_}}
403)});return Object.defineProperty(I,p,{value:!0,enumerable:!1}),I}function N(T,u,p,I,N,R){return new Proxy(T,{apply(T,y,S){const O=N?.modelName??N?.model;return(0,_.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"invoke_agent"}},async n=>{try{const t=p?.name;t&&"string"==typeof t&&(n.setAttribute(s.GEN_AI_PIPELINE_NAME_ATTRIBUTE,t),n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,t),n.updateName(`invoke_agent ${t}`)),O&&n.setAttribute(s.GEN_AI_REQUEST_MODEL_ATTRIBUTE,O);const o=S.length>1?S[1]:void 0,_=o?.configurable,l=_?.thread_id;if(l&&"string"==typeof l&&n.setAttribute(s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,l),R){const n=S[1]??{};S[1]=n;const o=n.metadata??{};n.metadata={...o,__sentry_langgraph__:!0,..."string"==typeof t?{lc_agent_name:t}:{}},n.callbacks=(0,A._INTERNAL_mergeLangChainCallbackHandler)(n.callbacks,R)}const N=(0,E.extractToolsFromCompiledGraph)(u);N&&n.setAttribute(s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE,JSON.stringify(N));const f=I.recordInputs,b=I.recordOutputs,G=S.length>0?S[0]?.messages??[]:[];if(G&&f){const t=(0,A.normalizeLangChainMessages)(G),{systemInstructions:o,filteredMessages:_}=(0,c.extractSystemInstructions)(t);o&&n.setAttribute(s.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,o);const T=(0,c.shouldEnableTruncation)(I.enableTruncation),l=Array.isArray(_)?_.length:0;n.setAttributes({[s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:T?(0,c.getTruncatedJsonString)(_):(0,c.getJsonString)(_),[s.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const h=await Reflect.apply(T,y,S);return b&&(0,E.setResponseAttributes)(n,G??null,h),h}catch(_){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(_,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),_}}
403)}})}function R(t,n){if(Object.prototype.hasOwnProperty.call(t,p))return t;const o=(0,c.resolveAIRecordingOptions)(n),_=(0,T.createLangChainCallbackHandler)(o),s=new Proxy(t,{apply(t,n,s){const c=(0,E.extractLLMFromParams)(s),T=(0,E.extractAgentNameFromParams)(s),A=s[0];let l;A&&Array.isArray(A.tools)&&A.tools.length>0&&(0,E.wrapToolsWithSpans)(A.tools,o,T??void 0),u=!0;try{l=Reflect.apply(t,n,s)}finally{u=!1}const p=l.invoke;if(p&&"function"==typeof p){const t={};T&&(t.name=T),l.invoke=N(p.bind(l),l,t,o,c,_)}return l}});return Object.defineProperty(s,p,{value:!0,enumerable:!1}),s}function y(t,n){return t.compile=I(t.compile,(0,c.resolveAIRecordingOptions)(n)),t}},1934,[1825,1798,1799,1818,1913,1912,1931,1933,1935,1936]);
404__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"LANGGRAPH_ORIGIN",{enumerable:!0,get:function(){return n}});const t="LangGraph",n="auto.ai.langgraph"},1935,[]);
405__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractAgentNameFromParams",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"extractLLMFromParams",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"extractModelMetadata",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"extractTokenUsageFromMessage",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractToolCalls",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"extractToolsFromCompiledGraph",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"setResponseAttributes",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"wrapToolsWithSpans",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),_=r(d[4]),c=r(d[5]),T=r(d[6]);function u(t){const n=t[0];if("object"!=typeof n||!n||!("llm"in n)||!n.llm||"object"!=typeof n.llm)return null;const o=n.llm;return"string"!=typeof o.modelName&&"string"!=typeof o.model?null:o}function l(t){const n=t[0];return"object"==typeof n&&n&&"name"in n&&"string"==typeof n.name?n.name:null}function p(c,u,l){const p="__sentry_tool_wrapped__";for(const f of c){if(!f||"object"!=typeof f)continue;const c=f,E=c.invoke;if("function"!=typeof E||Object.prototype.hasOwnProperty.call(c,p))continue;const A="string"==typeof c.name?c.name:"unknown_tool",y="string"==typeof c.description?c.description:void 0,O=new Proxy(E,{apply(c,p,f){const E={[
405n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:T.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:_.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,[_.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[_.GEN_AI_TOOL_NAME_ATTRIBUTE]:A,[_.GEN_AI_TOOL_TYPE_ATTRIBUTE]:"function"},O=f[1],I=O?.metadata?.lc_agent_name??l;"string"==typeof I&&(E[_.GEN_AI_AGENT_NAME_ATTRIBUTE]=I),y&&(E[_.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=y);const b=f[0];if("object"==typeof b&&b&&("id"in b&&"string"==typeof b.id&&(E[_.GEN_AI_TOOL_CALL_ID_ATTRIBUTE]=b.id),u.recordInputs)){const t="args"in b&&"object"==typeof b.args?b.args:b;try{E[_.GEN_AI_TOOL_INPUT_ATTRIBUTE]=JSON.stringify(t)}catch{}}return(0,s.startSpan)({op:_.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,name:`execute_tool ${A}`,attributes:E},async n=>{try{const t=await Reflect.apply(c,p,f);if(u.recordOutputs)try{const o=t&&"object"==typeof t&&"content"in t?t.content:t;n.setAttribute(_.GEN_AI_TOOL_OUTPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o))}catch{}return t}catch(s){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(s,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),s}})}});c.invoke=O,Object.defineProperty(c,p,{value:!0,enumerable:!1})}return c}function f(t){if(!t||0===t.length)return null;const n=[];for(const o of t)if(o&&"object"==typeof o){const t=o.tool_calls;t&&Array.isArray(t)&&n.push(...t)}return n.length>0?n:null}function E(t){const n=t;let o=0,s=0,_=0;if(n.usage_metadata&&"object"==typeof n.usage_metadata){const t=n.usage_metadata;return"number"==typeof t.input_tokens&&(o=t.input_tokens),"number"==typeof t.output_tokens&&(s=t.output_tokens),"number"==typeof t.total_tokens&&(_=t.total_tokens),{inputTokens:o,outputTokens:s,totalTokens:_}}if(n.response_metadata&&"object"==typeof n.response_metadata){const t=n.response_metadata;if(t.tokenUsage&&"object"==typeof t.tokenUsage){const n=t.tokenUsage;"number"==typeof n.promptTokens&&(o=n.promptTokens),"number"==typeof n.completionTokens&&(s=n.completionTokens),"number"==typeof n.totalTokens&&(_=n.totalTokens)}}return{inputTokens:o,outputTokens:s,totalTokens:_}}function A(t,n){const o=n;if(o.response_metadata&&"object"==typeof o.response_metadata){const n=o.response_metadata;n.model_name&&"string"==typeof n.model_name&&t.setAttribute(_.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&t.setAttribute(_.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,[n.finish_reason])}}function y(t){if(!t.builder?.nodes?.tools?.runnable?.tools)return null;const n=t.builder?.nodes?.tools?.runnable?.tools;return n&&Array.isArray(n)&&0!==n.length?n.map(t=>({name:t.lc_kwargs?.name,description:t.lc_kwargs?.description,schema:t.lc_kwargs?.schema})):null}function O(t,n,o){const s=o,T=s?.messages;if(!T||!Array.isArray(T))return;const u=n?.length??0,l=T.length>u?T.slice(u):[];if(0===l.length)return;const p=f(l);p&&t.setAttribute(_.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,JSON.stringify(p));const y=(0,c.normalizeLangChainMessages)(l);t.setAttribute(_.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,JSON.stringify(y));let O=0,I=0,b=0;for(const n of l){const o=E(n);O+=o.inputTokens,I+=o.outputTokens,b+=o.totalTokens,A(t,n)}O>0&&t.setAttribute(_.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,O),I>0&&t.setAttribute(_.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,I),b>0&&t.setAttribute(_.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,b)}},1936,[1825,1798,1799,1818,1913,1933,1935]);
406__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SpanBuffer",{enumerable:!0,get:function(){return u}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),c=r(d[3]),h=r(d[4]),o=r(d[5]);class u{constructor(t,s){this._traceBuckets=new Map,this._client=t;const{maxSpanLimit:n,flushInterval:c,maxTraceWeightInBytes:h}=s??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=c&&c>0?c:5e3,this._maxTraceWeight=h&&h>0?h:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(t=>{clearTimeout(t.timeout)}),this._traceBuckets.clear()})}add(t){const s=t.trace_id;let c=this._traceBuckets.get(s);c||(c={spans:new Set,size:0,timeout:(0,n.safeUnref)(setTimeout(()=>{this.flush(s)},this._flushInterval))},this._traceBuckets.set(s,c)),c.spans.add(t),c.size+=(0,o.estimateSerializedSpanSizeInBytes)(t),(c.spans.size>=this._maxSpanLimit||c.size>=this._maxTraceWeight)&&this.flush(s)}drain(){this._traceBuckets.size&&(t.DEBUG_BUILD&&s.debug.log(`Flushing span tree map with ${this._traceBuckets.size}
406 traces`),this._traceBuckets.forEach((t,s)=>{this.flush(s)}))}flush(n){const o=this._traceBuckets.get(n);if(!o)return;if(!o.spans.size)return void this._removeTrace(n);const u=Array.from(o.spans),l=u[0]?._segmentSpan;if(!l)return t.DEBUG_BUILD&&s.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(n);const _=(0,c.getDynamicSamplingContextFromSpan)(l),p=u.map(t=>{const{_segmentSpan:s,...n}=t;return n}),f=(0,h.createStreamedSpanEnvelope)(p,_,this._client);t.DEBUG_BUILD&&s.debug.log(`Sending span envelope for trace ${n} with ${p.length} spans`),this._client.sendEnvelope(f).then(null,n=>{t.DEBUG_BUILD&&s.debug.error("Error while sending streamed span envelope:",n)}),this._removeTrace(n)}_removeTrace(t){const s=this._traceBuckets.get(t);s&&clearTimeout(s.timeout),this._traceBuckets.delete(t)}}},1937,[1768,1772,1831,1811,1938,1939]);
407__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createStreamedSpanEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function c(c,p,_){const l=_.getOptions(),f=_.getDsn(),v=l.tunnel,y=(0,n.getSdkMetadataForEnvelopeHeader)(l._metadata),S={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...u(p)&&{trace:p},...y&&{sdk:y},...!!v&&f&&{dsn:(0,t.dsnToString)(f)}},O=_.getDataCollectionOptions().userInfo?"auto":"never",b=[{type:"span",item_count:c.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:O,infer_user_agent:O}},items:c}];return(0,n.createEnvelope)(S,[b])}function u(t){return!!t.trace_id&&!!t.public_key}},1938,[1803,1814,1840,1786]);
408__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"estimateSerializedSpanSizeInBytes",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){let s=156;if(s+=2*n.name.length,s+=(0,t.estimateTypedAttributesSizeInBytes)(n.attributes),n.links&&n.links.length>0){const u=n.links[0],l=u?.attributes;s+=(100+(l?(0,t.estimateTypedAttributesSizeInBytes)(l):0))*n.links.length}return s}},1939,[1796]);
409__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanStreamingIntegration",{enumerable:!0,get:function(){return l}});var n=r(d[0]),t=r(d[1]),c=r(d[2]),o=r(d[3]),s=r(d[4]),S=r(d[5]),p=r(d[6]),f=r(d[7]);const l=(0,t.defineIntegration)(()=>({name:"SpanStreaming",setup(t){const l="SpanStreaming integration requires",u="Falling back to static trace lifecycle.",b=t.getOptions();if(!(0,s.hasSpanStreamingEnabled)(t))return b.traceLifecycle="static",void(n.DEBUG_BUILD&&p.debug.warn(`${l} \`traceLifecycle\` to be set to "stream"! ${u}`));const y=b.beforeSendSpan;if(y&&!(0,c.isStreamedBeforeSendSpanCallback)(y))return b.traceLifecycle="static",void(n.DEBUG_BUILD&&p.debug.warn(`${l} a beforeSendSpan callback using \`withStreamedSpan\`! ${u}`));const B=new S.SpanBuffer(t);t.on("afterSpanEnd",n=>{(0,f.spanIsSampled)(n)&&B.add((0,o.captureSpan)(n,t))})}}))},1940,[1768,1834,1813,1822,1817,1937,1772,1777]);
410__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return t}})},1941,[]);
411__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentryError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}},1942,[]);
412__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"parseFetchArgs",{enumerable:!0,get:function(){return E}});
412var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]);function h(t,n){const o="fetch",s=(0,l.addHandler)(o,t);return(0,l.maybeInstrument)(o,()=>p(void 0,n)),s}function f(t){const n="fetch-body-resolved",o=(0,l.addHandler)(n,t);return(0,l.maybeInstrument)(n,()=>p(b)),o}function p(h,f=!1){f&&!(0,s.supportsNativeFetch)()||(0,o.fill)(u.GLOBAL_OBJ,"fetch",function(s){return function(...f){const p=new Error,{method:y,url:b}=E(f),T={args:f,fetchData:{method:y,url:b},startTimestamp:1e3*(0,c.timestampInSeconds)(),virtualError:p,headers:w(f)};return h||(0,l.triggerHandlers)("fetch",{...T}),s.apply(u.GLOBAL_OBJ,f).then(async t=>(h?h(t):(0,l.triggerHandlers)("fetch",{...T,endTimestamp:1e3*(0,c.timestampInSeconds)(),response:t}),t),s=>{(0,l.triggerHandlers)("fetch",{...T,endTimestamp:1e3*(0,c.timestampInSeconds)(),error:s}),(0,n.isError)(s)&&void 0===s.stack&&(s.stack=p.stack,(0,o.addNonEnumerableProperty)(s,"framesToPop",1));const u=(0,t.getClient)(),h=u?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==h&&s instanceof TypeError&&("Failed to fetch"===s.message||"Load failed"===s.message||"NetworkError when attempting to fetch resource."===s.message))try{const t=new URL(T.fetchData.url).host;"always"===h?s.message=`${s.message} (${t})`:(0,o.addNonEnumerableProperty)(s,"__sentry_fetch_url_host__",t)}catch{}throw s})}})}async function y(t,n){if(t?.body){const o=t.body,s=o.getReader(),c=setTimeout(()=>{o.cancel().then(null,()=>{})},9e4);let u=!0;for(;u;){let t;try{t=setTimeout(()=>{o.cancel().then(null,()=>{})},5e3);const{done:c}=await s.read();clearTimeout(t),c&&(n(),u=!1)}catch{u=!1}finally{clearTimeout(t)}}clearTimeout(c),s.releaseLock(),o.cancel().then(null,()=>{})}}function b(t){let n;try{n=t.clone()}catch{return}y(n,()=>{(0,l.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,c.timestampInSeconds)(),response:t})})}function T(t,n){return!!t&&"object"==typeof t&&!!t[n]}function _(t){return"string"==typeof t?t:t?T(t,"url")?t.url:t.toString?t.toString():"":""}function E(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[o,s]=t;return{url:_(o),method:T(s,"method")?String(s.method).toUpperCase():(0,n.isRequest)(o)&&T(o,"method")?String(o.method).toUpperCase():"GET"}}const o=t[0];return{url:_(o),method:T(o,"method")?String(o.method).toUpperCase():"GET"}}function w(t){const[o,s]=t;try{if("object"==typeof s&&null!==s&&"headers"in s&&s.headers)return new Headers(s.headers);if((0,n.isRequest)(o))return new Headers(o.headers)}catch{}}},1943,[1797,1785,1784,1944,1790,1770,1771]);
413__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNativeFunction",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"supportsDOMError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"supportsDOMException",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"supportsErrorEvent",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"supportsFetch",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"supportsHistory",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"supportsNativeFetch",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"supportsReportingObserver",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]);const u=r(d[2]).GLOBAL_OBJ;function o(){try{return new ErrorEvent(""),!0}catch{return!1}}function c(){try{return new DOMError(""),!0}catch{return!1}}function f(){try{return new DOMException(""),!0}catch{return!1}}function s(){return"history"in u&&!!u.history}const p=b;function b(){if(!("fetch"in u))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function y(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function h(){if("string"==typeof EdgeRuntime)return!0;if(!b())return!1;if(y(u.fetch))return!0;let o=!1;const c=u.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t),t.contentWindow?.fetch&&(o=y(t.contentWindow.fetch)),c.head.removeChild(t)}catch(u){t.DEBUG_BUILD&&n.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",u)}return o}function l(){return"ReportingObserver"in u}function O(){if(!b())return!1;
413try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}},1944,[1768,1772,1770]);
414__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n,u){const c=t[n];if("function"==typeof c){try{t[n]=u}catch{Object.defineProperty(t,n,{value:u,writable:!0,configurable:!0,enumerable:!0})}if(t.default===c)try{t.default=u}catch{Object.defineProperty(t,"default",{value:u,writable:!0,configurable:!0,enumerable:!0})}}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"replaceExports",{enumerable:!0,get:function(){return t}})},1945,[]);
415__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LRUMap",{enumerable:!0,get:function(){return t}});class t{constructor(t){this._maxSize=t,this._cache=new Map}get size(){return this._cache.size}get(t){const c=this._cache.get(t);if(void 0!==c)return this._cache.delete(t),this._cache.set(t,c),c}set(t,c){if(this._cache.size>=this._maxSize){const t=this._cache.keys().next().value;this._cache.delete(t)}this._cache.set(t,c)}remove(t){const c=this._cache.get(t);return c&&this._cache.delete(t),c}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const t=[];return this._cache.forEach(c=>t.push(c)),t}}},1946,[]);
416__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"escapeStringForRegex",{enumerable:!0,get:function(){return t}})},1947,[]);
417__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getComponentName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getLocationHref",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"htmlTreeAsString",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=r(d[1]).GLOBAL_OBJ,o=80;function s(t,n={}){if(!t)return"<unknown>";try{let s=t;const i=5,l=[];let f=0,c=0;const p=" > ",y=p.length;let h;const b=Array.isArray(n)?n:n.keyAttrs,A=!Array.isArray(n)&&n.maxStringLength||o;for(;s&&f++<i&&(h=u(s,b),!("html"===h||f>1&&c+l.length*y+h.length>=A));)l.push(h),c+=h.length,s=s.parentNode;return l.reverse().join(p)}catch{return"<unknown>"}}function u(o,s){const u=o,i=[];if(!u?.tagName)return"";if(n.HTMLElement&&u instanceof HTMLElement&&u.dataset){if(u.dataset.sentryComponent)return u.dataset.sentryComponent;if(u.dataset.sentryElement)return u.dataset.sentryElement}i.push(u.tagName.toLowerCase());const l=s?.length?s.filter(t=>u.getAttribute(t)).map(t=>[t,u.getAttribute(t)]):null;if(l?.length)l.forEach(t=>{i.push(`[${t[0]}="${t[1]}"]`)});else{u.id&&i.push(`#${u.id}`);const n=u.className;if(n&&(0,t.isString)(n)){const t=n.split(/\s+/);for(const n of t)i.push(`.${n}`)}}for(const t of["aria-label","type","name","title","alt"]){const n=u.getAttribute(t);n&&i.push(`[${t}="${n}"]`)}return i.join("")}function i(){try{return n.document.location.href}catch{return""}}function l(t,o=5){if(!n.HTMLElement)return null;let s=t;for(let t=0;t<o;t++){if(!s)return null;if(s instanceof HTMLElement){if(s.dataset.sentryComponent)return s.dataset.sentryComponent;if(s.dataset.sentryElement)return s.dataset.sentryElement}s=s.parentNode}return null}},1948,[1785,1770]);
418__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentEmbeddingMethod",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return I}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),E=r(d[3]),_=r(d[4]),u=r(d[5]);function T(n){const t=n.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}function c(n){const o=n??{},_={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:u.LANGCHAIN_ORIGIN,[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:E.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,[E.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"embeddings",[E.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:o.model??"unknown"};return _[E.GEN_AI_SYSTEM_ATTRIBUTE]=T(o),"dimensions"in o&&(_[E.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=o.dimensions),"encodingFormat"in o&&(_[E.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=o.encodingFormat),_}function s(t,u={}){const{recordInputs:T}=(0,_.resolveAIRecordingOptions)(u);return new Proxy(t,{apply(t,_,u){const s=c(_),I=s[E.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown";if(T){const n=u[0];null!=n&&(s[E.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]="string"==typeof n?n:JSON.stringify(n))}return(0,o.startSpan)({name:`embeddings ${I}`,op:E.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,attributes:s},()=>Reflect.apply(t,_,u).then(void 0,t=>{throw(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),t}))}})}function I(n,t){const o=n;return"function"==typeof o.embedQuery&&(o.embedQuery=s(o.embedQuery,t)),"function"==typeof o.embedDocuments&&(o.embedDocuments=s(o.embedDocuments,t)),n}},1949,[1825,1798,1818,1913,1912,1932]);
419__d(function(g,r,i,a,m,e,d){"use strict";
419Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WINDOW",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getHttpRequestData",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"ignoreNextOnError",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldIgnoreOnError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"wrap",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=t.GLOBAL_OBJ;let o=0;function c(){return o>0}function p(){o++,setTimeout(()=>{o--})}function u(n,o={}){if("function"!=typeof n)return n;try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){const t=n.__sentry_wrapped__;return"function"==typeof t?t:n}if((0,t.getOriginalFunction)(n))return n}catch{return n}const c=function(...c){t.GLOBAL_OBJ._sentryWrappedDepth=(t.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{const t=c.map(t=>u(t,o));return n.apply(this,t)}catch(n){throw p(),(0,t.withScope)(p=>{p.addEventProcessor(n=>(o.mechanism&&((0,t.addExceptionTypeValue)(n,void 0,void 0),(0,t.addExceptionMechanism)(n,o.mechanism)),n.extra={...n.extra,arguments:c},n)),(0,t.captureException)(n)}),n}finally{t.GLOBAL_OBJ._sentryWrappedDepth=(t.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(c[t]=n[t])}catch{}(0,t.markFunctionWrapped)(c,n),(0,t.addNonEnumerableProperty)(n,"__sentry_wrapped__",c);try{Object.getOwnPropertyDescriptor(c,"name").configurable&&Object.defineProperty(c,"name",{get:()=>n.name})}catch{}return c}function s(){const o=(0,t.getLocationHref)(),{referrer:c}=n.document||{},{userAgent:p}=n.navigator||{};return{url:o,headers:{...c&&{Referer:c},...p&&{"User-Agent":p}}}}},1950,[1766]);
420__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"feedbackSyncIntegration",{enumerable:!0,get:function(){return n}});var t=r(d[0]);const n=(0,t.buildFeedbackIntegration)({getModalIntegration:()=>t.feedbackModalIntegration,getScreenshotIntegration:()=>t.feedbackScreenshotIntegration})},1951,[1539]);
421__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BrowserClient",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"applyDefaultOptions",{enumerable:!0,get:function(){return c}});var t=r(d[0]),s=r(d[1]),n=r(d[2]);class o extends t.Client{constructor(s){const o=c(s),p=n.WINDOW.SENTRY_SDK_SOURCE||(0,t.getSDKSource)();(0,t.applySdkMetadata)(o,"browser",["browser"],p),super(o);const{userInfo:_}=this.getDataCollectionOptions();o._metadata?.sdk&&(o._metadata.sdk.settings={infer_ip:_?"auto":"never",...o._metadata.sdk.settings});const{sendClientReports:u,enableLogs:l,_experiments:f,enableMetrics:E}=this._options,S=E??f?.enableMetrics??!0;n.WINDOW.document&&(u||l||S)&&n.WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===n.WINDOW.document.visibilityState&&(u&&this._flushOutcomes(),l&&(0,t._INTERNAL_flushLogsBuffer)(this),S&&(0,t._INTERNAL_flushMetricsBuffer)(this))}),_&&this.on("beforeSendSession",t.addAutoIpAddressToSession)}eventFromException(t,n){return(0,s.eventFromException)(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",o){return(0,s.eventFromMessage)(this._options.stackParser,t,n,o,this._options.attachStacktrace)}_prepareEvent(t,s,n,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,s,n,o)}}function c(t){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:n.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}}
421,1952,[1766,1953,1950]);
422__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"eventFromException",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"eventFromMessage",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"eventFromUnknownInput",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"exceptionFromError",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"extractMessage",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extractType",{enumerable:!0,get:function(){return v}});var t=r(d[0]);function n(t,n){const o=c(t,n),s={type:v(n),value:y(n)};return o.length&&(s.stacktrace={frames:o}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function o(o,s,u,f){const p=(0,t.getClient)(),l=p?.getOptions().normalizeDepth,v=(y=s,Object.values(y).find(t=>t instanceof Error));var y;const E={__serialized__:(0,t.normalizeToSize)(s,l)};if(v)return{exception:{values:[n(o,v)]},extra:E};const x={exception:{values:[{type:(0,t.isEvent)(s)?s.constructor.name:f?"UnhandledRejection":"Error",value:b(s,{isUnhandledRejection:f})}]},extra:E};if(u){const t=c(o,u);t.length&&(x.exception.values[0].stacktrace={frames:t})}return x}function s(t,o){return{exception:{values:[n(t,o)]}}}function c(t,n){const o=n.stacktrace||n.stack||"",s=f(n),c=p(n);try{return t(o,s,c)}catch{}return[]}const u=/Minified React error #\d+;/i;function f(t){return t&&u.test(t.message)?1:0}function p(t){return"number"==typeof t.framesToPop?t.framesToPop:0}function l(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function v(t){const n=t?.name;if(!n&&l(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return n}function y(n){const o=n?.message;return l(n)?Array.isArray(n.message)&&2==n.message.length?n.message[1]:"wasm exception":o?o.error&&"string"==typeof o.error.message?(0,t._INTERNAL_enhanceErrorWithSentryInfo)(o.error):(0,t._INTERNAL_enhanceErrorWithSentryInfo)(n):"No error message"}function E(n,o,s,c){const u=h(n,o,s?.syntheticException||void 0,c);return(0,t.addExceptionMechanism)(u),u.level="error",s?.event_id&&(u.event_id=s.event_id),(0,t.resolvedSyncPromise)(u)}function x(n,o,s="info",c,u){const f=_(n,o,c?.syntheticException||void 0,u);return f.level=s,c?.event_id&&(f.event_id=c.event_id),(0,t.resolvedSyncPromise)(f)}function h(n,u,f,p,l){let v;if((0,t.isErrorEvent)(u)&&u.error){return s(n,u.error)}if((0,t.isDOMError)(u)||(0,t.isDOMException)(u)){const o=u;if("stack"in u){v=s(n,u);const o=v.exception?.values?.[0];if(p&&f&&o&&!o.stacktrace){const s=c(n,f);s.length&&(o.stacktrace={frames:s},(0,t.addExceptionMechanism)(v,{synthetic:!0}))}}else{const s=o.name||((0,t.isDOMError)(o)?"DOMError":"DOMException"),c=o.message?`${s}: ${o.message}`:s;v=_(n,c,f,p),(0,t.addExceptionTypeValue)(v,c)}return"code"in o&&(v.tags={...v.tags,"DOMException.code":`${o.code}`}),v}if((0,t.isError)(u))return s(n,u);if((0,t.isPlainObject)(u)||(0,t.isEvent)(u)){return v=o(n,u,f,l),(0,t.addExceptionMechanism)(v,{synthetic:!0}),v}return v=_(n,u,f,p),(0,t.addExceptionTypeValue)(v,`${u}`,void 0),(0,t.addExceptionMechanism)(v,{synthetic:!0}),v}function _(n,o,s,u){const f={};if(u&&s){const u=c(n,s);u.length&&(f.exception={values:[{value:o,stacktrace:{frames:u}}]}),(0,t.addExceptionMechanism)(f,{synthetic:!0})}if((0,t.isParameterizedString)(o)){const{__sentry_template_string__:t,__sentry_template_values__:n}=o;return f.logentry={message:t,params:n},f}return f.message=o,f}function b(n,{isUnhandledRejection:o}){const s=(0,t.extractExceptionKeysForMessage)(n),c=o?"promise rejection":"exception";if((0,t.isErrorEvent)(n))return`Event \`ErrorEvent\` captured as ${c} with message \`${n.message}\``;if((0,t.isEvent)(n)){return`Event \`${O(n)}\` (type=${n.type}) captured as ${c}`}return`Object captured as ${c} with keys: ${s}`}function O(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{}}},1953,[1766]);
423__d(function(g,r,i,a,m,_e,d){"use strict";
423Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"makeFetchTransport",{enumerable:!0,get:function(){return o}});var e=r(d[0]),t=r(d[1]);const n=40;function o(o,s=(0,t.getNativeImplementation)("fetch")){let c=0,f=0;return(0,e.createTransport)(o,async function(e){const n=e.body.length;c+=n,f++;const u={body:e.body,method:"POST",referrerPolicy:"strict-origin",headers:o.headers,keepalive:c<=6e4&&f<15,...o.fetchOptions};try{const e=await s(o.url,u);return{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}}catch(e){throw(0,t.clearCachedImplementation)("fetch"),e}finally{c-=n,f--}},(0,e.makePromiseBuffer)(o.bufferSize||n))}},1954,[1766,1955]);
424__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addClsInstrumentationHandler",{enumerable:!0,get:function(){return t.addClsInstrumentationHandler}}),Object.defineProperty(e,"addInpInstrumentationHandler",{enumerable:!0,get:function(){return t.addInpInstrumentationHandler}}),Object.defineProperty(e,"addLcpInstrumentationHandler",{enumerable:!0,get:function(){return t.addLcpInstrumentationHandler}}),Object.defineProperty(e,"addPerformanceInstrumentationHandler",{enumerable:!0,get:function(){return t.addPerformanceInstrumentationHandler}}),Object.defineProperty(e,"addTtfbInstrumentationHandler",{enumerable:!0,get:function(){return t.addTtfbInstrumentationHandler}}),Object.defineProperty(e,"addPerformanceEntries",{enumerable:!0,get:function(){return n.addPerformanceEntries}}),Object.defineProperty(e,"addWebVitalsToSpan",{enumerable:!0,get:function(){return n.addWebVitalsToSpan}}),Object.defineProperty(e,"startTrackingInteractions",{enumerable:!0,get:function(){return n.startTrackingInteractions}}),Object.defineProperty(e,"startTrackingLongAnimationFrames",{enumerable:!0,get:function(){return n.startTrackingLongAnimationFrames}}),Object.defineProperty(e,"startTrackingLongTasks",{enumerable:!0,get:function(){return n.startTrackingLongTasks}}),Object.defineProperty(e,"startTrackingWebVitals",{enumerable:!0,get:function(){return n.startTrackingWebVitals}}),Object.defineProperty(e,"elementTimingIntegration",{enumerable:!0,get:function(){return o.elementTimingIntegration}}),Object.defineProperty(e,"startTrackingElementTiming",{enumerable:!0,get:function(){return o.startTrackingElementTiming}}),Object.defineProperty(e,"extractNetworkProtocol",{enumerable:!0,get:function(){return u.extractNetworkProtocol}}),Object.defineProperty(e,"trackClsAsSpan",{enumerable:!0,get:function(){return c.trackClsAsSpan}}),Object.defineProperty(e,"trackInpAsSpan",{enumerable:!0,get:function(){return c.trackInpAsSpan}}),Object.defineProperty(e,"trackLcpAsSpan",{enumerable:!0,get:function(){return c.trackLcpAsSpan}}),Object.defineProperty(e,"whenIdleOrHidden",{enumerable:!0,get:function(){return s.whenIdleOrHidden}}),Object.defineProperty(e,"addClickKeypressInstrumentationHandler",{enumerable:!0,get:function(){return l.addClickKeypressInstrumentationHandler}}),Object.defineProperty(e,"addHistoryInstrumentationHandler",{enumerable:!0,get:function(){return f.addHistoryInstrumentationHandler}}),Object.defineProperty(e,"clearCachedImplementation",{enumerable:!0,get:function(){return b.clearCachedImplementation}}),Object.defineProperty(e,"fetch",{enumerable:!0,get:function(){return b.fetch}}),Object.defineProperty(e,"getNativeImplementation",{enumerable:!0,get:function(){return b.getNativeImplementation}}),Object.defineProperty(e,"setTimeout",{enumerable:!0,get:function(){return b.setTimeout}}),Object.defineProperty(e,"SENTRY_XHR_DATA_KEY",{enumerable:!0,get:function(){return p.SENTRY_XHR_DATA_KEY}}),Object.defineProperty(e,"addXhrInstrumentationHandler",{enumerable:!0,get:function(){return p.addXhrInstrumentationHandler}}),Object.defineProperty(e,"getBodyString",{enumerable:!0,get:function(){return y.getBodyString}}),Object.defineProperty(e,"getFetchRequestArgBody",{enumerable:!0,get:function(){return y.getFetchRequestArgBody}}),Object.defineProperty(e,"parseXhrResponseHeaders",{enumerable:!0,get:function(){return y.parseXhrResponseHeaders}}),Object.defineProperty(e,"serializeFormData",{enumerable:!0,get:function(){return y.serializeFormData}}),Object.defineProperty(e,"resourceTimingToSpanAttributes",{enumerable:!0,get:function(){return P.resourceTimingToSpanAttributes}}),Object.defineProperty(e,"htmlTreeAsString",{enumerable:!0,get:function(){return O.htmlTreeAsString}}),Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return j.isElement}}),Object.defineProperty(e,"registerInpInteractionListener",{enumerable:!0,get:function(){return I.registerInpInteractionListener}}),Object.defineProperty(e,"startTrackingINP",{enumerable:!0,get:function(){return I.startTrackingINP}});
424var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),s=r(d[5]),l=r(d[6]),f=r(d[7]),b=r(d[8]),p=r(d[9]),y=r(d[10]),P=r(d[11]),O=r(d[12]),j=r(d[13]),I=r(d[14])},1955,[1956,2205,2212,2208,2213,2201,2215,2216,2217,2218,2219,2211,2206,2220,2214]);
425__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addClsInstrumentationHandler",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"addInpInstrumentationHandler",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"addLcpInstrumentationHandler",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"addPerformanceInstrumentationHandler",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"addTtfbInstrumentationHandler",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"isPerformanceEventTiming",{enumerable:!0,get:function(){return D}});var n=r(d[0]),e=r(d[1]),t=r(d[2]),o=r(d[3]),u=r(d[4]),c=r(d[5]),f=r(d[6]);const l={},s={};let b,p,P,h;function y(n,e=!1){return L("cls",n,C,b,e)}function I(n,e=!1){return L("lcp",n,H,p,e)}function O(n){return L("ttfb",n,_,P)}function j(n){return L("inp",n,E,h)}function v(n,e){return N(n,e),s[n]||(B(n),s[n]=!0),A(n,e)}function T(t,o){const u=l[t];if(u?.length)for(const c of u)try{c(o)}catch(o){e.DEBUG_BUILD&&n.debug.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,n.getFunctionName)(c)}\nError:`,o)}}function C(){return(0,t.onCLS)(n=>{T("cls",{metric:n}),b=n},{reportAllChanges:!0})}function H(){return(0,u.onLCP)(n=>{T("lcp",{metric:n}),p=n},{reportAllChanges:!0})}function _(){return(0,f.onTTFB)(n=>{T("ttfb",{metric:n}),P=n})}function E(){return(0,o.onINP)(n=>{T("inp",{metric:n}),h=n})}function L(n,e,t,o,u=!1){let c;return N(n,e),s[n]||(c=t(),s[n]=!0),o&&e({metric:o}),A(n,e,u?c:void 0)}function B(n){const e={};"event"===n&&(e.durationThreshold=0),(0,c.observe)(n,e=>{T(n,{entries:e})},e)}function N(n,e){l[n]=l[n]||[],l[n].push(e)}function A(n,e,t){return()=>{t&&t();const o=l[n];if(!o)return;const u=o.indexOf(e);-1!==u&&o.splice(u,1)}}function D(n){return"duration"in n}},1956,[1957,2182,2183,2198,2202,2194,2204]);
426__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return t.registerSpanErrorInstrumentation}}),Object.defineProperty(_e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.getCapturedScopesOnSpan}}),Object.defineProperty(_e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return n.markSpanForOtelSourceInference}}),Object.defineProperty(_e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.setCapturedScopesOnSpan}}),Object.defineProperty(_e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return n.spanShouldInferOtelSource}}),Object.defineProperty(_e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return o.TRACING_DEFAULTS}}),Object.defineProperty(_e,"startIdleSpan",{enumerable:!0,get:function(){return o.startIdleSpan}}),Object.defineProperty(_e,"SentrySpan",{enumerable:!0,get:function(){return u.SentrySpan}}),Object.defineProperty(_e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return c.SentryNonRecordingSpan}}),Object.defineProperty(_e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return b.SPAN_STATUS_ERROR}}),Object.defineProperty(_e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return b.SPAN_STATUS_OK}}),Object.defineProperty(_e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return b.SPAN_STATUS_UNSET}}),Object.defineProperty(_e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return b.getSpanStatusFromHttpCode}}),Object.defineProperty(_e,"setHttpStatus",{enumerable:!0,get:function(){return b.setHttpStatus}}),Object.defineProperty(_e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return f.SUPPRESS_TRACING_KEY}}),Object.defineProperty(_e,"continueTrace",{enumerable:!0,get:function(){return f.continueTrace}}),Object.defineProperty(_e,"isTracingSuppressed",{enumerable:!0,get:function(){return f.isTracingSuppressed}}),Object.defineProperty(_e,"startInactiveSpan",{enumerable:!0,get:function(){return f.startInactiveSpan}}),Object.defineProperty(_e,"startNewTrace",{enumerable:!0,get:function(){return f.startNewTrace}}),Object.defineProperty(_e,"startSpan",{enumerable:!0,get:function(){return f.startSpan}}),Object.defineProperty(_e,"startSpanManual",{enumerable:!0,get:function(){return f.startSpanManual}}),Object.defineProperty(_e,"suppressTracing",{enumerable:!0,get:function(){return f.suppressTracing}}),Object.defineProperty(_e,"withActiveSpan",{enumerable:!0,get:function(){return f.withActiveSpan}}),Object.defineProperty(_e,"bindScopeToEmitter",{enumerable:!0,get:function(){return p.bindScopeToEmitter}}),Object.defineProperty(_e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromClient}}),Object.defineProperty(_e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromScope}}),Object.defineProperty(_e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromSpan}}),Object.defineProperty(_e,"spanToBaggageHeader",{enumerable:!0,get:function(){return l.spanToBaggageHeader}}),Object.defineProperty(_e,"setMeasurement",{enumerable:!0,get:function(){return d.setMeasurement}}),Object.defineProperty(_e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return d.timedEventsToMeasurements}}),Object.defineProperty(_e,"sampleSpan",{enumerable:!0,get:function(){return s.sampleSpan}}),Object.defineProperty(_e,"logSpanEnd",{enumerable:!0,get:function(){return T.logSpanEnd}}),Object.defineProperty(_e,"logSpanStart",{enumerable:!0,get:function(){return T.logSpanStart}}),Object.defineProperty(_e,"captureSpan",{enumerable:!0,get:function(){return E.captureSpan}}),Object.defineProperty(_e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return E.safeSetSpanJSONAttributes}}),Object.defineProperty(_e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return O.GEN_AI_CONVERSATION_ID_ATTRIBUTE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_HIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_KEY}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_PROFILE_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_OP}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_URL_FULL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_EMAIL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_USERNAME}}),Object.defineProperty(_e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return O.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE}}),Object.defineProperty(_e,"createEventEnvelope",{enumerable:!0,get:function(){return P.createEventEnvelope}}),Object.defineProperty(_e,"createSessionEnvelope",{enumerable:!0,get:function(){return P.createSessionEnvelope}}),Object.defineProperty(_e,"createSpanEnvelope",{enumerable:!0,get:function(){return P.createSpanEnvelope}}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return S.addEventProcessor}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return S.captureCheckIn}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return S.captureEvent}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return S.captureException}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return S.captureMessage}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return S.captureSession}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return S.close}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return S.endSession}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return S.flush}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return S.isEnabled}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return S.isInitialized}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return S.lastEventId}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return S.setAttribute}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return S.setAttributes}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return S.setContext}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return S.setConversationId}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return S.setExtra}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return S.setExtras}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return S.setTag}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return S.setTags}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return S.setUser}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return S.startSession}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return S.withMonitor}}),Object.defineProperty(_e,"getClient",{enumerable:!0,get:function(){return y.getClient}}),Object.defineProperty(_e,"getCurrentScope",{enumerable:!0,get:function(){return y.getCurrentScope}}),Object.defineProperty(_e,"getExternalPropagationContext",{enumerable:!0,get:function(){return y.getExternalPropagationContext}}),Object.defineProperty(_e,"getGlobalScope",{enumerable:!0,get:function(){return y.getGlobalScope}}),Object.defineProperty(_e,"getIsolationScope",{enumerable:!0,get:function(){return y.getIsolationScope}}),Object.defineProperty(_e,"getTraceContextFromScope",{enumerable:!0,get:function(){return y.getTraceContextFromScope}}),Object.defineProperty(_e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return y.hasExternalPropagationContext}}),Object.defineProperty(_e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return y.registerExternalPropagationContext}}),Object.defineProperty(_e,"withIsolationScope",{enumerable:!0,get:function(){return y.withIsolationScope}}),Object.defineProperty(_e,"withScope",{enumerable:!0,get:function(){return y.withScope}}),Object.defineProperty(_e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return _.getDefaultCurrentScope}}),Object.defineProperty(_e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return _.getDefaultIsolationScope}}),Object.defineProperty(_e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return j.getAsyncContextStrategy}}),Object.defineProperty(_e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return j.setAsyncContextStrategy}}),Object.defineProperty(_e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return I._INTERNAL_createTracingChannelBinding}}
426),Object.defineProperty(_e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return I.waitForTracingChannelBinding}}),Object.defineProperty(_e,"getGlobalSingleton",{enumerable:!0,get:function(){return N.getGlobalSingleton}}),Object.defineProperty(_e,"getMainCarrier",{enumerable:!0,get:function(){return N.getMainCarrier}}),Object.defineProperty(_e,"closeSession",{enumerable:!0,get:function(){return A.closeSession}}),Object.defineProperty(_e,"makeSession",{enumerable:!0,get:function(){return A.makeSession}}),Object.defineProperty(_e,"updateSession",{enumerable:!0,get:function(){return A.updateSession}}),Object.defineProperty(_e,"Scope",{enumerable:!0,get:function(){return R.Scope}}),Object.defineProperty(_e,"notifyEventProcessors",{enumerable:!0,get:function(){return C.notifyEventProcessors}}),Object.defineProperty(_e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return M.SENTRY_API_VERSION}}),Object.defineProperty(_e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return M.getEnvelopeEndpointWithUrlEncodedAuth}}),Object.defineProperty(_e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return M.getReportDialogEndpoint}}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return U.Client}}),Object.defineProperty(_e,"initAndBind",{enumerable:!0,get:function(){return L.initAndBind}}),Object.defineProperty(_e,"setCurrentClient",{enumerable:!0,get:function(){return L.setCurrentClient}}),Object.defineProperty(_e,"createTransport",{enumerable:!0,get:function(){return F.createTransport}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return v.makeOfflineTransport}}),Object.defineProperty(_e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return h.MULTIPLEXED_TRANSPORT_EXTRA_KEY}}),Object.defineProperty(_e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return h.makeMultiplexedTransport}}),Object.defineProperty(_e,"addIntegration",{enumerable:!0,get:function(){return B.addIntegration}}),Object.defineProperty(_e,"defineIntegration",{enumerable:!0,get:function(){return B.defineIntegration}}),Object.defineProperty(_e,"extendIntegration",{enumerable:!0,get:function(){return B.extendIntegration}}),Object.defineProperty(_e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return B.getIntegrationsToSetup}}),Object.defineProperty(_e,"installedIntegrations",{enumerable:!0,get:function(){return B.installedIntegrations}}),Object.defineProperty(_e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return H._INTERNAL_clearAiProviderSkips}}),Object.defineProperty(_e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return H._INTERNAL_shouldSkipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return H._INTERNAL_skipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_filterKeyValueData",{enumerable:!0,get:function(){return D.filterKeyValueData}}),Object.defineProperty(_e,"_INTERNAL_filterCookies",{enumerable:!0,get:function(){return G.filterCookies}}),Object.defineProperty(_e,"_INTERNAL_filterQueryParams",{enumerable:!0,get:function(){return x.filterQueryParams}}),Object.defineProperty(_e,"envToBool",{enumerable:!0,get:function(){return k.envToBool}}),Object.defineProperty(_e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return Y.applyScopeDataToEvent}}),Object.defineProperty(_e,"getCombinedScopeData",{enumerable:!0,get:function(){return Y.getCombinedScopeData}}),Object.defineProperty(_e,"mergeScopeData",{enumerable:!0,get:function(){return Y.mergeScopeData}}),Object.defineProperty(_e,"prepareEvent",{enumerable:!0,get:function(){return w.prepareEvent}}),Object.defineProperty(_e,"createCheckInEnvelope",{enumerable:!0,get:function(){return q.createCheckInEnvelope}}),Object.defineProperty(_e,"hasSpansEnabled",{enumerable:!0,get:function(){return K.hasSpansEnabled}}),Object.defineProperty(_e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return z.isStreamedBeforeSendSpanCallback}}),Object.defineProperty(_e,"withStreamedSpan",{enumerable:!0,get:function(){return z.withStreamedSpan}}),Object.defineProperty(_e,"isSentryRequestUrl",{enumerable:!0,get:function(){return V.isSentryRequestUrl}}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return W.handleCallbackErrors}}),Object.defineProperty(_e,"fmt",{enumerable:!0,get:function(){return X.fmt}}),Object.defineProperty(_e,"parameterize",{enumerable:!0,get:function(){return X.parameterize}}),Object.defineProperty(_e,"handleTunnelRequest",{enumerable:!0,get:function(){return Q.handleTunnelRequest}}),Object.defineProperty(_e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return J.addAutoIpAddressToSession}}),Object.defineProperty(_e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return J.addAutoIpAddressToUser}}),Object.defineProperty(_e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return Z.INTERNAL_getSegmentSpan}}),Object.defineProperty(_e,"addChildSpanToSpan",{enumerable:!0,get:function(){return Z.addChildSpanToSpan}}),Object.defineProperty(_e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return Z.convertSpanLinksForEnvelope}}),Object.defineProperty(_e,"getActiveSpan",{enumerable:!0,get:function(){return Z.getActiveSpan}}),Object.defineProperty(_e,"getRootSpan",{enumerable:!0,get:function(){return Z.getRootSpan}}),Object.defineProperty(_e,"getSpanDescendants",{enumerable:!0,get:function(){return Z.getSpanDescendants}}),Object.defineProperty(_e,"getStatusMessage",{enumerable:!0,get:function(){return Z.getStatusMessage}}),Object.defineProperty(_e,"spanIsSampled",{enumerable:!0,get:function(){return Z.spanIsSampled}}),Object.defineProperty(_e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return Z.spanTimeInputToSeconds}}),Object.defineProperty(_e,"spanToJSON",{enumerable:!0,get:function(){return Z.spanToJSON}}),Object.defineProperty(_e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return Z.spanToStreamedSpanJSON}}),Object.defineProperty(_e,"spanToTraceContext",{enumerable:!0,get:function(){return Z.spanToTraceContext}}),Object.defineProperty(_e,"spanToTraceHeader",{enumerable:!0,get:function(){return Z.spanToTraceHeader}}),Object.defineProperty(_e,"updateSpanName",{enumerable:!0,get:function(){return Z.updateSpanName}}),Object.defineProperty(_e,"_INTERNAL_setSpanForScope",{enumerable:!0,get:function(){return $._setSpanForScope}}),Object.defineProperty(_e,"parseSampleRate",{enumerable:!0,get:function(){return ee.parseSampleRate}}),Object.defineProperty(_e,"applySdkMetadata",{enumerable:!0,get:function(){return te.applySdkMetadata}}),Object.defineProperty(_e,"getTraceData",{enumerable:!0,get:function(){return re.getTraceData}}),Object.defineProperty(_e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return ne.shouldPropagateTraceForUrl}}),Object.defineProperty(_e,"getTraceMetaTags",{enumerable:!0,get:function(){return oe.getTraceMetaTags}}),Object.defineProperty(_e,"debounce",{enumerable:!0,get:function(){return ue.debounce}}),Object.defineProperty(_e,"derefWeakRef",{enumerable:!0,get:function(){return ie.derefWeakRef}}),Object.defineProperty(_e,"makeWeakRef",{enumerable:!0,get:function(){return ie.makeWeakRef}}),Object.defineProperty(_e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return ae.shouldIgnoreSpan}}),Object.defineProperty(_e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return ce.MAX_BODY_BYTE_LENGTH}}),Object.defineProperty(_e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return ce.captureBodyFromWinterCGRequest}}),Object.defineProperty(_e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return ce.extractQueryParamsFromUrl}}
426),Object.defineProperty(_e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return ce.getMaxBodyByteLength}}),Object.defineProperty(_e,"headersToDict",{enumerable:!0,get:function(){return ce.headersToDict}}),Object.defineProperty(_e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return ce.httpHeadersToSpanAttributes}}),Object.defineProperty(_e,"httpRequestToRequestData",{enumerable:!0,get:function(){return ce.httpRequestToRequestData}}),Object.defineProperty(_e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return ce.winterCGHeadersToDict}}),Object.defineProperty(_e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return ce.winterCGRequestToRequestData}}),Object.defineProperty(_e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEFAULT_ENVIRONMENT}}),Object.defineProperty(_e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEV_ENVIRONMENT}}),Object.defineProperty(_e,"SPAN_KIND",{enumerable:!0,get:function(){return fe.SPAN_KIND}}),Object.defineProperty(_e,"spanKindToName",{enumerable:!0,get:function(){return fe.spanKindToName}}),Object.defineProperty(_e,"addBreadcrumb",{enumerable:!0,get:function(){return pe.addBreadcrumb}}),Object.defineProperty(_e,"functionToStringIntegration",{enumerable:!0,get:function(){return le.functionToStringIntegration}}),Object.defineProperty(_e,"eventFiltersIntegration",{enumerable:!0,get:function(){return de.eventFiltersIntegration}}),Object.defineProperty(_e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return de.inboundFiltersIntegration}}),Object.defineProperty(_e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return ge.linkedErrorsIntegration}}),Object.defineProperty(_e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return me.moduleMetadataIntegration}}),Object.defineProperty(_e,"requestDataIntegration",{enumerable:!0,get:function(){return se.requestDataIntegration}}),Object.defineProperty(_e,"captureConsoleIntegration",{enumerable:!0,get:function(){return Te.captureConsoleIntegration}}),Object.defineProperty(_e,"dedupeIntegration",{enumerable:!0,get:function(){return Ee.dedupeIntegration}}),Object.defineProperty(_e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return Oe.extraErrorDataIntegration}}),Object.defineProperty(_e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return Pe.rewriteFramesIntegration}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return Se.instrumentSupabaseClient}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return Se.supabaseIntegration}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return ye.zodErrorsIntegration}}),Object.defineProperty(_e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return je.thirdPartyErrorFilterIntegration}}),Object.defineProperty(_e,"consoleIntegration",{enumerable:!0,get:function(){return Ie.consoleIntegration}}),Object.defineProperty(_e,"featureFlagsIntegration",{enumerable:!0,get:function(){return Ne.featureFlagsIntegration}}),Object.defineProperty(_e,"growthbookIntegration",{enumerable:!0,get:function(){return Ae.growthbookIntegration}}),Object.defineProperty(_e,"conversationIdIntegration",{enumerable:!0,get:function(){return Re.conversationIdIntegration}}),Object.defineProperty(_e,"profiler",{enumerable:!0,get:function(){return Ce.profiler}}),Object.defineProperty(_e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return Me._INTERNAL_getTracingHeadersForFetchRequest}}),Object.defineProperty(_e,"instrumentFetchRequest",{enumerable:!0,get:function(){return Me.instrumentFetchRequest}}),Object.defineProperty(_e,"captureFeedback",{enumerable:!0,get:function(){return Ue.captureFeedback}}),Object.defineProperty(_e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureLog}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureSerializedLog}}),Object.defineProperty(_e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return Le._INTERNAL_flushLogsBuffer}}),Object.defineProperty(_e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return ve.consoleLoggingIntegration}}),Object.defineProperty(_e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return he._INTERNAL_captureMetric}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return he._INTERNAL_captureSerializedMetric}}),Object.defineProperty(_e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return he._INTERNAL_flushMetricsBuffer}}),Object.defineProperty(_e,"createConsolaReporter",{enumerable:!0,get:function(){return He.createConsolaReporter}}),Object.defineProperty(_e,"addVercelAiProcessors",{enumerable:!0,get:function(){return De.addVercelAiProcessors}}),Object.defineProperty(_e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return De.getProviderMetadataAttributes}}),Object.defineProperty(_e,"getTruncatedJsonString",{enumerable:!0,get:function(){return Ge.getTruncatedJsonString}}),Object.defineProperty(_e,"shouldEnableTruncation",{enumerable:!0,get:function(){return Ge.shouldEnableTruncation}}),Object.defineProperty(_e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE}}),Object.defineProperty(_e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE}}),Object.defineProperty(_e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return ke._INTERNAL_cleanupToolCallSpanContext}}),Object.defineProperty(_e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return ke._INTERNAL_getSpanContextForToolCallId}}),Object.defineProperty(_e,"_INTERNAL_toolCallSpanContextMap",{enumerable:!0,get:function(){return Ye.toolCallSpanContextMap}}),Object.defineProperty(_e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return we.instrumentOpenAiClient}}),Object.defineProperty(_e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return qe.OPENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return Ke.instrumentAnthropicAiClient}}),Object.defineProperty(_e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return ze.ANTHROPIC_AI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return Ve.instrumentGoogleGenAIClient}}),Object.defineProperty(_e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return We.GOOGLE_GENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return Xe.createLangChainCallbackHandler}}),Object.defineProperty(_e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return Qe._INTERNAL_mergeLangChainCallbackHandler}}),Object.defineProperty(_e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return Je.LANGCHAIN_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return Ze.instrumentCreateReactAgent}}),Object.defineProperty(_e,"instrumentLangGraph",{enumerable:!0,get:function(){return Ze.instrumentLangGraph}}),Object.defineProperty(_e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return Ze.instrumentStateGraphCompile}}),Object.defineProperty(_e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return $e.LANGGRAPH_INTEGRATION_NAME}}),Object.defineProperty(_e,"SpanBuffer",{enumerable:!0,get:function(){return et.SpanBuffer}}),Object.defineProperty(_e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return tt.hasSpanStreamingEnabled}}),Object.defineProperty(_e,"spanStreamingIntegration",{enumerable:!0,get:function(){return rt.spanStreamingIntegration}}),Object.defineProperty(_e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return nt._INTERNAL_FLAG_BUFFER_SIZE}}),Object.defineProperty(_e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return nt._INTERNAL_MAX_FLAGS_PER_SPAN}}),Object.defineProperty(_e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return nt._INTERNAL_addFeatureFlagToActiveSpan}}),Object.defineProperty(_e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return nt._INTERNAL_copyFlagsFromScopeToEvent}}),Object.defineProperty(_e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return nt._INTERNAL_insertFlagToScope}}),Object.defineProperty(_e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return ot.applyAggregateErrorsToEvent}}),Object.defineProperty(_e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return ut.getBreadcrumbLogLevelFromHttpStatusCode}}),Object.defineProperty(_e,"dsnFromString",{enumerable:!0,get:function(){return it.dsnFromString}}),Object.defineProperty(_e,"dsnToString",{enumerable:!0,get:function(){return it.dsnToString}}),Object.defineProperty(_e,"makeDsn",{enumerable:!0,get:function(){return it.makeDsn}}),Object.defineProperty(_e,"SentryError",{enumerable:!0,get:function(){return at.SentryError}}),Object.defineProperty(_e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return ct.GLOBAL_OBJ}}),Object.defineProperty(_e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationFilter}}),Object.defineProperty(_e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationHandler}}),Object.defineProperty(_e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchEndInstrumentationHandler}}),Object.defineProperty(_e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return pt.addGlobalErrorInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return lt.addGlobalUnhandledRejectionInstrumentationHandler}}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return dt.addHandler}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return dt.maybeInstrument}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return dt.resetInstrumentationHandlers}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return dt.triggerHandlers}}),Object.defineProperty(_e,"isDOMError",{enumerable:!0,get:function(){return gt.isDOMError}}),Object.defineProperty(_e,"isDOMException",{enumerable:!0,get:function(){return gt.isDOMException}}),Object.defineProperty(_e,"isElement",{enumerable:!0,get:function(){return gt.isElement}}),Object.defineProperty(_e,"isError",{enumerable:!0,get:function(){return gt.isError}}),Object.defineProperty(_e,"isErrorEvent",{enumerable:!0,get:function(){return gt.isErrorEvent}}),Object.defineProperty(_e,"isEvent",{enumerable:!0,get:function(){return gt.isEvent}}),Object.defineProperty(_e,"isInstanceOf",{enumerable:!0,get:function(){return gt.isInstanceOf}}),Object.defineProperty(_e,"isParameterizedString",{enumerable:!0,get:function(){return gt.isParameterizedString}}),Object.defineProperty(_e,"isPlainObject",{enumerable:!0,get:function(){return gt.isPlainObject}}),Object.defineProperty(_e,"isPrimitive",{enumerable:!0,get:function(){return gt.isPrimitive}}),Object.defineProperty(_e,"isRegExp",{enumerable:!0,get:function(){return gt.isRegExp}}),Object.defineProperty(_e,"isString",{enumerable:!0,get:function(){return gt.isString}}),Object.defineProperty(_e,"isSyntheticEvent",{enumerable:!0,get:function(){return gt.isSyntheticEvent}}),Object.defineProperty(_e,"isThenable",{enumerable:!0,get:function(){return gt.isThenable}}),Object.defineProperty(_e,"isVueViewModel",{enumerable:!0,get:function(){return gt.isVueViewModel}}),Object.defineProperty(_e,"isBrowser",{enumerable:!0,get:function(){return mt.isBrowser}}
426),Object.defineProperty(_e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return st.CONSOLE_LEVELS}}),Object.defineProperty(_e,"consoleSandbox",{enumerable:!0,get:function(){return st.consoleSandbox}}),Object.defineProperty(_e,"debug",{enumerable:!0,get:function(){return st.debug}}),Object.defineProperty(_e,"originalConsoleMethods",{enumerable:!0,get:function(){return st.originalConsoleMethods}}),Object.defineProperty(_e,"addContextToFrame",{enumerable:!0,get:function(){return Tt.addContextToFrame}}),Object.defineProperty(_e,"addExceptionMechanism",{enumerable:!0,get:function(){return Tt.addExceptionMechanism}}),Object.defineProperty(_e,"addExceptionTypeValue",{enumerable:!0,get:function(){return Tt.addExceptionTypeValue}}),Object.defineProperty(_e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return Tt.checkOrSetAlreadyCaught}}),Object.defineProperty(_e,"getEventDescription",{enumerable:!0,get:function(){return Tt.getEventDescription}}),Object.defineProperty(_e,"isAlreadyCaptured",{enumerable:!0,get:function(){return Tt.isAlreadyCaptured}}),Object.defineProperty(_e,"parseSemver",{enumerable:!0,get:function(){return Tt.parseSemver}}),Object.defineProperty(_e,"uuid4",{enumerable:!0,get:function(){return Tt.uuid4}}),Object.defineProperty(_e,"normalize",{enumerable:!0,get:function(){return Et.normalize}}),Object.defineProperty(_e,"normalizeToSize",{enumerable:!0,get:function(){return Et.normalizeToSize}}),Object.defineProperty(_e,"normalizeUrlToBase",{enumerable:!0,get:function(){return Et.normalizeUrlToBase}}),Object.defineProperty(_e,"setNormalizeStringifier",{enumerable:!0,get:function(){return Et.setNormalizeStringifier}}),Object.defineProperty(_e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return Ot.setNormalizationDepthOverrideHint}}),Object.defineProperty(_e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return Ot.setSkipNormalizationHint}}),Object.defineProperty(_e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return Pt.addNonEnumerableProperty}}),Object.defineProperty(_e,"convertToPlainObject",{enumerable:!0,get:function(){return Pt.convertToPlainObject}}),Object.defineProperty(_e,"dropUndefinedKeys",{enumerable:!0,get:function(){return Pt.dropUndefinedKeys}}),Object.defineProperty(_e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return Pt.extractExceptionKeysForMessage}}),Object.defineProperty(_e,"fill",{enumerable:!0,get:function(){return Pt.fill}}),Object.defineProperty(_e,"getOriginalFunction",{enumerable:!0,get:function(){return Pt.getOriginalFunction}}),Object.defineProperty(_e,"markFunctionWrapped",{enumerable:!0,get:function(){return Pt.markFunctionWrapped}}),Object.defineProperty(_e,"objectify",{enumerable:!0,get:function(){return Pt.objectify}}),Object.defineProperty(_e,"basename",{enumerable:!0,get:function(){return St.basename}}),Object.defineProperty(_e,"dirname",{enumerable:!0,get:function(){return St.dirname}}),Object.defineProperty(_e,"isAbsolute",{enumerable:!0,get:function(){return St.isAbsolute}}),Object.defineProperty(_e,"join",{enumerable:!0,get:function(){return St.join}}),Object.defineProperty(_e,"normalizePath",{enumerable:!0,get:function(){return St.normalizePath}}),Object.defineProperty(_e,"relative",{enumerable:!0,get:function(){return St.relative}}),Object.defineProperty(_e,"resolve",{enumerable:!0,get:function(){return St.resolve}}),Object.defineProperty(_e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return yt.SENTRY_BUFFER_FULL_ERROR}}),Object.defineProperty(_e,"makePromiseBuffer",{enumerable:!0,get:function(){return yt.makePromiseBuffer}}),Object.defineProperty(_e,"severityLevelFromString",{enumerable:!0,get:function(){return _t.severityLevelFromString}}),Object.defineProperty(_e,"replaceExports",{enumerable:!0,get:function(){return jt.replaceExports}}),Object.defineProperty(_e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return It.UNKNOWN_FUNCTION}}),Object.defineProperty(_e,"createStackParser",{enumerable:!0,get:function(){return It.createStackParser}}),Object.defineProperty(_e,"getFramesFromEvent",{enumerable:!0,get:function(){return It.getFramesFromEvent}}),Object.defineProperty(_e,"getFunctionName",{enumerable:!0,get:function(){return It.getFunctionName}}),Object.defineProperty(_e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return It.stackParserFromStackParserOptions}}),Object.defineProperty(_e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return It.stripSentryFramesAndReverse}}),Object.defineProperty(_e,"isMatchingPattern",{enumerable:!0,get:function(){return Nt.isMatchingPattern}}),Object.defineProperty(_e,"safeJoin",{enumerable:!0,get:function(){return Nt.safeJoin}}),Object.defineProperty(_e,"snipLine",{enumerable:!0,get:function(){return Nt.snipLine}}),Object.defineProperty(_e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return Nt.stringMatchesSomePattern}}),Object.defineProperty(_e,"truncate",{enumerable:!0,get:function(){return Nt.truncate}}),Object.defineProperty(_e,"isNativeFunction",{enumerable:!0,get:function(){return At.isNativeFunction}}
426),Object.defineProperty(_e,"supportsDOMError",{enumerable:!0,get:function(){return At.supportsDOMError}}),Object.defineProperty(_e,"supportsDOMException",{enumerable:!0,get:function(){return At.supportsDOMException}}),Object.defineProperty(_e,"supportsErrorEvent",{enumerable:!0,get:function(){return At.supportsErrorEvent}}),Object.defineProperty(_e,"supportsFetch",{enumerable:!0,get:function(){return At.supportsFetch}}),Object.defineProperty(_e,"supportsHistory",{enumerable:!0,get:function(){return At.supportsHistory}}),Object.defineProperty(_e,"supportsNativeFetch",{enumerable:!0,get:function(){return At.supportsNativeFetch}}),Object.defineProperty(_e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return At.supportsReferrerPolicy}}),Object.defineProperty(_e,"supportsReportingObserver",{enumerable:!0,get:function(){return At.supportsReportingObserver}}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return Rt.SyncPromise}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return Rt.rejectedSyncPromise}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return Rt.resolvedSyncPromise}}),Object.defineProperty(_e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return Ct.browserPerformanceTimeOrigin}}),Object.defineProperty(_e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return Ct.dateTimestampInSeconds}}),Object.defineProperty(_e,"timestampInSeconds",{enumerable:!0,get:function(){return Ct.timestampInSeconds}}),Object.defineProperty(_e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return Mt.TRACEPARENT_REGEXP}}),Object.defineProperty(_e,"extractTraceparentData",{enumerable:!0,get:function(){return Mt.extractTraceparentData}}),Object.defineProperty(_e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return Mt.generateSentryTraceHeader}}),Object.defineProperty(_e,"generateTraceparentHeader",{enumerable:!0,get:function(){return Mt.generateTraceparentHeader}}),Object.defineProperty(_e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return Mt.propagationContextFromHeaders}}),Object.defineProperty(_e,"shouldContinueTrace",{enumerable:!0,get:function(){return Mt.shouldContinueTrace}}),Object.defineProperty(_e,"getSDKSource",{enumerable:!0,get:function(){return Ut.getSDKSource}}),Object.defineProperty(_e,"isBrowserBundle",{enumerable:!0,get:function(){return Ut.isBrowserBundle}}),Object.defineProperty(_e,"addItemToEnvelope",{enumerable:!0,get:function(){return Lt.addItemToEnvelope}}),Object.defineProperty(_e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return Lt.createAttachmentEnvelopeItem}}),Object.defineProperty(_e,"createEnvelope",{enumerable:!0,get:function(){return Lt.createEnvelope}}),Object.defineProperty(_e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return Lt.createEventEnvelopeHeaders}}),Object.defineProperty(_e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return Lt.createSpanEnvelopeItem}}),Object.defineProperty(_e,"envelopeContainsItemType",{enumerable:!0,get:function(){return Lt.envelopeContainsItemType}}),Object.defineProperty(_e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return Lt.envelopeItemTypeToDataCategory}}),Object.defineProperty(_e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return Lt.forEachEnvelopeItem}}),Object.defineProperty(_e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return Lt.getSdkMetadataForEnvelopeHeader}}),Object.defineProperty(_e,"parseEnvelope",{enumerable:!0,get:function(){return Lt.parseEnvelope}}),Object.defineProperty(_e,"serializeEnvelope",{enumerable:!0,get:function(){return Lt.serializeEnvelope}}),Object.defineProperty(_e,"createClientReportEnvelope",{enumerable:!0,get:function(){return Ft.createClientReportEnvelope}}),Object.defineProperty(_e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return vt.DEFAULT_RETRY_AFTER}}),Object.defineProperty(_e,"disabledUntil",{enumerable:!0,get:function(){return vt.disabledUntil}}),Object.defineProperty(_e,"isRateLimited",{enumerable:!0,get:function(){return vt.isRateLimited}}),Object.defineProperty(_e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return vt.parseRetryAfterHeader}}),Object.defineProperty(_e,"updateRateLimits",{enumerable:!0,get:function(){return vt.updateRateLimits}}),Object.defineProperty(_e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return ht.MAX_BAGGAGE_STRING_LENGTH}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return ht.SENTRY_BAGGAGE_KEY_PREFIX}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return ht.SENTRY_BAGGAGE_KEY_PREFIX_REGEX}}),Object.defineProperty(_e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return ht.baggageHeaderToDynamicSamplingContext}}),Object.defineProperty(_e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return ht.dynamicSamplingContextToSentryBaggageHeader}}),Object.defineProperty(_e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return ht.mergeBaggageHeaders}}),Object.defineProperty(_e,"objectToBaggageHeader",{enumerable:!0,get:function(){return ht.objectToBaggageHeader}}),Object.defineProperty(_e,"parseBaggageHeader",{enumerable:!0,get:function(){return ht.parseBaggageHeader}}
426),Object.defineProperty(_e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return Bt.getHttpSpanDetailsFromUrlObject}}),Object.defineProperty(_e,"getSanitizedUrlString",{enumerable:!0,get:function(){return Bt.getSanitizedUrlString}}),Object.defineProperty(_e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return Bt.getSanitizedUrlStringFromUrlObject}}),Object.defineProperty(_e,"isURLObjectRelative",{enumerable:!0,get:function(){return Bt.isURLObjectRelative}}),Object.defineProperty(_e,"parseStringToURLObject",{enumerable:!0,get:function(){return Bt.parseStringToURLObject}}),Object.defineProperty(_e,"parseUrl",{enumerable:!0,get:function(){return Bt.parseUrl}}),Object.defineProperty(_e,"stripDataUrlContent",{enumerable:!0,get:function(){return Bt.stripDataUrlContent}}),Object.defineProperty(_e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return Bt.stripUrlQueryAndFragment}}),Object.defineProperty(_e,"_INTERNAL_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return Ht._enhanceErrorWithSentryInfo}}),Object.defineProperty(_e,"eventFromMessage",{enumerable:!0,get:function(){return Ht.eventFromMessage}}),Object.defineProperty(_e,"eventFromUnknownInput",{enumerable:!0,get:function(){return Ht.eventFromUnknownInput}}),Object.defineProperty(_e,"exceptionFromError",{enumerable:!0,get:function(){return Ht.exceptionFromError}}),Object.defineProperty(_e,"parseStackFrames",{enumerable:!0,get:function(){return Ht.parseStackFrames}}),Object.defineProperty(_e,"LRUMap",{enumerable:!0,get:function(){return Dt.LRUMap}}),Object.defineProperty(_e,"generateSpanId",{enumerable:!0,get:function(){return Gt.generateSpanId}}),Object.defineProperty(_e,"generateTraceId",{enumerable:!0,get:function(){return Gt.generateTraceId}}),Object.defineProperty(_e,"SDK_VERSION",{enumerable:!0,get:function(){return xt.SDK_VERSION}}),Object.defineProperty(_e,"getDebugImagesForResources",{enumerable:!0,get:function(){return kt.getDebugImagesForResources}}),Object.defineProperty(_e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return kt.getFilenameToDebugIdMap}}),Object.defineProperty(_e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return Yt.getFilenameToMetadataMap}}),Object.defineProperty(_e,"escapeStringForRegex",{enumerable:!0,get:function(){return wt.escapeStringForRegex}}),Object.defineProperty(_e,"_INTERNAL_safeDateNow",{enumerable:!0,get:function(){return qt.safeDateNow}}),Object.defineProperty(_e,"_INTERNAL_safeMathRandom",{enumerable:!0,get:function(){return qt.safeMathRandom}}),Object.defineProperty(_e,"_INTERNAL_withRandomSafeContext",{enumerable:!0,get:function(){return qt.withRandomSafeContext}}),Object.defineProperty(_e,"ServerRuntimeClient",{enumerable:!0,get:function(){return Kt.ServerRuntimeClient}}),Object.defineProperty(_e,"trpcMiddleware",{enumerable:!0,get:function(){return zt.trpcMiddleware}}),Object.defineProperty(_e,"wrapMcpServerWithSentry",{enumerable:!0,get:function(){return Vt.wrapMcpServerWithSentry}}),Object.defineProperty(_e,"isNodeEnv",{enumerable:!0,get:function(){return Wt.isNodeEnv}}),Object.defineProperty(_e,"loadModule",{enumerable:!0,get:function(){return Wt.loadModule}}),Object.defineProperty(_e,"filenameIsInApp",{enumerable:!0,get:function(){return Xt.filenameIsInApp}}),Object.defineProperty(_e,"node",{enumerable:!0,get:function(){return Xt.node}}),Object.defineProperty(_e,"nodeStackLineParser",{enumerable:!0,get:function(){return Xt.nodeStackLineParser}}),Object.defineProperty(_e,"vercelWaitUntil",{enumerable:!0,get:function(){return Qt.vercelWaitUntil}}),Object.defineProperty(_e,"flushIfServerless",{enumerable:!0,get:function(){return Jt.flushIfServerless}}),Object.defineProperty(_e,"callFrameToStackFrame",{enumerable:!0,get:function(){return Zt.callFrameToStackFrame}}),Object.defineProperty(_e,"watchdogTimer",{enumerable:!0,get:function(){return Zt.watchdogTimer}}),Object.defineProperty(_e,"_INTERNAL_safeUnref",{enumerable:!0,get:function(){return $t.safeUnref}}),Object.defineProperty(_e,"expressErrorHandler",{enumerable:!0,get:function(){return er.expressErrorHandler}}),Object.defineProperty(_e,"patchExpressModule",{enumerable:!0,get:function(){return er.patchExpressModule}}),Object.defineProperty(_e,"setupExpressErrorHandler",{enumerable:!0,get:function(){return er.setupExpressErrorHandler}}),Object.defineProperty(_e,"_INTERNAL_sanitizeSqlQuery",{enumerable:!0,get:function(){return tr._sanitizeSqlQuery}}),Object.defineProperty(_e,"instrumentPostgresJsSql",{enumerable:!0,get:function(){return tr.instrumentPostgresJsSql}}),Object.defineProperty(_e,"_INTERNAL_getSqlQuerySummary",{enumerable:!0,get:function(){return rr.getSqlQuerySummary}}),Object.defineProperty(_e,"patchHttpModuleClient",{enumerable:!0,get:function(){return nr.patchHttpModuleClient}}),Object.defineProperty(_e,"getHttpClientSubscriptions",{enumerable:!0,get:function(){return or.getHttpClientSubscriptions}}),Object.defineProperty(_e,"getHttpServerSubscriptions",{enumerable:!0,get:function(){return ur.getHttpServerSubscriptions}}),Object.defineProperty(_e,"isStaticAssetRequest",{enumerable:!0,get:function(){return ur.isStaticAssetRequest}}),Object.defineProperty(_e,"recordRequestSession",{enumerable:!0,get:function(){return ir.recordRequestSession}}),Object.defineProperty(_e,"addOutgoingRequestBreadcrumb",{enumerable:!0,get:function(){return ar.addOutgoingRequestBreadcrumb}}),Object.defineProperty(_e,"getRequestOptions",{enumerable:!0,get:function(){return cr.getRequestOptions}}),Object.defineProperty(_e,"getRequestUrl",{enumerable:!0,get:function(){return cr.getRequestUrl}}),Object.defineProperty(_e,"getRequestUrlFromClientRequest",{enumerable:!0,get:function(){return cr.getRequestUrlFromClientRequest}}),Object.defineProperty(_e,"getRequestUrlObject",{enumerable:!0,get:function(){return cr.getRequestUrlObject}}),Object.defineProperty(_e,"HTTP_ON_CLIENT_REQUEST",{enumerable:!0,get:function(){return br.HTTP_ON_CLIENT_REQUEST}}),Object.defineProperty(_e,"HTTP_ON_SERVER_REQUEST",{enumerable:!0,get:function(){return br.HTTP_ON_SERVER_REQUEST}}),Object.defineProperty(_e,"getComponentName",{enumerable:!0,get:function(){return fr.getComponentName}}),Object.defineProperty(_e,"getLocationHref",{enumerable:!0,get:function(){return fr.getLocationHref}}),Object.defineProperty(_e,"htmlTreeAsString",{enumerable:!0,get:function(){return fr.htmlTreeAsString}}),Object.defineProperty(_e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return pr.instrumentLangChainEmbeddings}}),Object.defineProperty(_e,"logger",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(_e,"metrics",{enumerable:!0,get:function(){return Be}});var t=r(_d[0]),n=r(_d[1]),o=r(_d[2]),u=r(_d[3]),c=r(_d[4]),b=r(_d[5]),f=r(_d[6]),p=r(_d[7]),l=r(_d[8]),d=r(_d[9]),s=r(_d[10]),T=r(_d[11]),E=r(_d[12]),O=r(_d[13]),P=r(_d[14]),S=r(_d[15]),y=r(_d[16]),_=r(_d[17]),j=r(_d[18]),I=r
426(_d[19]),N=r(_d[20]),A=r(_d[21]),R=r(_d[22]),C=r(_d[23]),M=r(_d[24]),U=r(_d[25]),L=r(_d[26]),F=r(_d[27]),v=r(_d[28]),h=r(_d[29]),B=r(_d[30]),H=r(_d[31]),D=r(_d[32]),G=r(_d[33]),x=r(_d[34]),k=r(_d[35]),Y=r(_d[36]),w=r(_d[37]),q=r(_d[38]),K=r(_d[39]),z=r(_d[40]),V=r(_d[41]),W=r(_d[42]),X=r(_d[43]),Q=r(_d[44]),J=r(_d[45]),Z=r(_d[46]),$=r(_d[47]),ee=r(_d[48]),te=r(_d[49]),re=r(_d[50]),ne=r(_d[51]),oe=r(_d[52]),ue=r(_d[53]),ie=r(_d[54]),ae=r(_d[55]),ce=r(_d[56]),be=r(_d[57]),fe=r(_d[58]),pe=r(_d[59]),le=r(_d[60]),de=r(_d[61]),ge=r(_d[62]),me=r(_d[63]),se=r(_d[64]),Te=r(_d[65]),Ee=r(_d[66]),Oe=r(_d[67]),Pe=r(_d[68]),Se=r(_d[69]),ye=r(_d[70]),je=r(_d[71]),Ie=r(_d[72]),Ne=r(_d[73]),Ae=r(_d[74]),Re=r(_d[75]),Ce=r(_d[76]),Me=r(_d[77]),Ue=r(_d[78]),Le=r(_d[79]),Fe=e(r(_d[80])),ve=r(_d[81]),he=r(_d[82]),Be=e(r(_d[83])),He=r(_d[84]),De=r(_d[85]),Ge=r(_d[86]),xe=r(_d[87]),ke=r(_d[88]),Ye=r(_d[89]),we=r(_d[90]),qe=r(_d[91]),Ke=r(_d[92]),ze=r(_d[93]),Ve=r(_d[94]),We=r(_d[95]),Xe=r(_d[96]),Qe=r(_d[97]),Je=r(_d[98]),Ze=r(_d[99]),$e=r(_d[100]),et=r(_d[101]),tt=r(_d[102]),rt=r(_d[103]),nt=r(_d[104]),ot=r(_d[105]),ut=r(_d[106]),it=r(_d[107]),at=r(_d[108]),ct=r(_d[109]),bt=r(_d[110]),ft=r(_d[111]),pt=r(_d[112]),lt=r(_d[113]),dt=r(_d[114]),gt=r(_d[115]),mt=r(_d[116]),st=r(_d[117]),Tt=r(_d[118]),Et=r(_d[119]),Ot=r(_d[120]),Pt=r(_d[121]),St=r(_d[122]),yt=r(_d[123]),_t=r(_d[124]),jt=r(_d[125]),It=r(_d[126]),Nt=r(_d[127]),At=r(_d[128]),Rt=r(_d[129]),Ct=r(_d[130]),Mt=r(_d[131]),Ut=r(_d[132]),Lt=r(_d[133]),Ft=r(_d[134]),vt=r(_d[135]),ht=r(_d[136]),Bt=r(_d[137]),Ht=r(_d[138]),Dt=r(_d[139]),Gt=r(_d[140]),xt=r(_d[141]),kt=r(_d[142]),Yt=r(_d[143]),wt=r(_d[144]),qt=r(_d[145]),Kt=r(_d[146]),zt=r(_d[147]),Vt=r(_d[148]),Wt=r(_d[149]),Xt=r(_d[150]),Qt=r(_d[151]),Jt=r(_d[152]),Zt=r(_d[153]),$t=r(_d[154]),er=r(_d[155]),tr=r(_d[156]),rr=r(_d[157]),nr=r(_d[158]),or=r(_d[159]),ur=r(_d[160]),ir=r(_d[161]),ar=r(_d[162]),cr=r(_d[163]),br=r(_d[164]),fr=r(_d[165]),pr=r(_d[166])},1957,[1958,1991,1996,2000,1999,1990,2009,2012,2002,2007,2011,2006,2013,1989,2001,2016,1988,1971,1969,2021,1964,1973,1972,2018,2023,2024,2047,2038,2048,2049,2025,2050,2051,2052,2054,2055,2014,2017,2056,1997,2004,2057,2010,2059,2060,2061,1968,1984,1995,2062,2063,2064,2065,2066,1985,1998,2067,2003,2068,2069,2070,2071,2072,2075,2077,2079,2082,2083,2084,2086,2087,2088,2089,2090,2092,2093,2094,2095,2096,2026,2097,2098,2034,2100,2101,2102,2103,2104,2108,2107,2110,2111,2114,2115,2118,2119,2122,2124,2123,2125,2126,2128,2008,2131,2091,2073,2132,1994,2133,1961,2080,2134,1960,1967,1962,1976,2031,1963,1974,1979,1980,1975,2085,2039,2081,2136,1966,1978,2135,2019,1981,1992,2033,2005,2041,2040,1993,2058,2074,2137,1983,1965,2020,2076,2138,1977,2139,2141,2142,2032,2156,2157,2158,2159,2022,2160,2167,2168,2169,2171,2177,2179,2172,2173,2170,2180,2181]);
427__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return _}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),l=r(d[4]),u=r(d[5]);let s=!1;function _(){function _(){const t=(0,l.getActiveSpan)(),o=t&&(0,l.getRootSpan)(t);if(o){const t="internal_error";n.DEBUG_BUILD&&c.debug.log(`[Tracing] Root span: ${t} -> Global error occurred`),o.setStatus({code:u.SPAN_STATUS_ERROR,message:t})}}s||(s=!0,(0,t.addGlobalErrorInstrumentationHandler)(_),(0,o.addGlobalUnhandledRejectionInstrumentationHandler)(_))}},1958,[1959,1960,1967,1963,1968,1990]);
428__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEBUG_BUILD",{enumerable:!0,get:function(){return _}});const _='undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1959,[]);
429__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);let o=null;function u(n){const o="error";(0,t.addHandler)(o,n),(0,t.maybeInstrument)(o,l)}function l(){o=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(n,u,l,_,c){const s={column:_,error:c,line:l,msg:n,url:u};return(0,t.triggerHandlers)("error",s),!!o&&o.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},1960,[1961,1962]);
430__d(function(g,r,i,a,m,e,d){"use strict";
430Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return t}});const t=globalThis},1961,[]);
431__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return b}});var e=r(d[0]),n=r(d[1]),t=r(d[2]);const o={},u={};function c(e,n){return o[e]=o[e]||[],o[e].push(n),()=>{const t=o[e];if(t){const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}}function f(){Object.keys(o).forEach(e=>{o[e]=void 0})}function s(t,o){if(!u[t]){u[t]=!0;try{o()}catch(o){e.DEBUG_BUILD&&n.debug.error(`Error while instrumenting ${t}`,o)}}}function b(u,c){const f=u&&o[u];if(f)for(const o of f)try{o(c)}catch(c){e.DEBUG_BUILD&&n.debug.error(`Error while triggering instrumentation handler.\nType: ${u}\nName: ${(0,t.getFunctionName)(o)}\nError:`,c)}}},1962,[1959,1963,1966]);
432__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"consoleSandbox",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"originalConsoleMethods",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const c=["debug","info","warn","error","log","assert","trace"],u={};function l(n){if(!("console"in o.GLOBAL_OBJ))return n();const t=o.GLOBAL_OBJ.console,c={},l=Object.keys(u);l.forEach(n=>{const o=u[n];c[n]=t[n],t[n]=o});try{return n()}finally{l.forEach(n=>{t[n]=c[n]})}}function f(){return s().enabled}function b(n,...c){t.DEBUG_BUILD&&f()&&l(()=>{o.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...c)})}function s(){return t.DEBUG_BUILD?(0,n.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const O={enable:function(){s().enabled=!0},disable:function(){s().enabled=!1},isEnabled:f,log:function(...n){b("log",...n)},warn:function(...n){b("warn",...n)},error:function(...n){b("error",...n)}}},1963,[1964,1959,1961]);
433__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getGlobalSingleton",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getMainCarrier",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"getSentryCarrier",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);function _(){return u(t.GLOBAL_OBJ),t.GLOBAL_OBJ}function u(t){const _=t.__SENTRY__=t.__SENTRY__||{};return _.version=_.version||n.SDK_VERSION,_[n.SDK_VERSION]=_[n.SDK_VERSION]||{}}function o(_,u,o=t.GLOBAL_OBJ){const S=o.__SENTRY__=o.__SENTRY__||{},O=S[n.SDK_VERSION]=S[n.SDK_VERSION]||{};return O[_]||(O[_]=u())}},1964,[1965,1961]);
434__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SDK_VERSION",{enumerable:!0,get:function(){return t}});const t="10.63.0"},1965,[]);
435__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"createStackParser",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getFramesFromEvent",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"normalizeStackTracePath",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return a}});const t=50,n="?",c=/\(error: (.*)\)/,o=/captureMessage|captureException/;function u(...n){const o=n.sort((t,n)=>t[0]-n[0]).map(t=>t[1]);return(n,u=0,i=0)=>{const s=[],f=n.split("\n");for(let n=u;n<f.length;n++){let u=f[n];u.length>1024&&(u=u.slice(0,1024));const a=c.test(u)?u.replace(c,"$1"):u;if(!a.includes("Error: ")){for(const t of o){const n=t(a);if(n){s.push(n);break}}if(s.length>=t+i)break}}return a(s.slice(i))}}function i(t){return Array.isArray(t)?u(...t):t}function a(c){if(!c.length)return[];const u=Array.from(c);return/sentryWrapped/.test(s(u).function||"")&&u.pop(),u.reverse(),o.test(s(u).function||"")&&(u.pop(),o.test(s(u).function||"")&&u.pop()),u.slice(0,t).map(t=>({...t,filename:t.filename||s(u).filename,function:t.function||n}))}function s(t){return t[t.length-1]||{}}const f="<anonymous>";function l(t){try{return t&&"function"==typeof t&&t.name||f}catch{return f}}function p(t){const n=t.exception;if(n){const t=[];
435try{return n.values.forEach(n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)}),t}catch{return}}}function b(t){let n=t?.startsWith("file://")?t.slice(7):t;return n?.match(/\/[A-Z]:/)&&(n=n.slice(1)),n}},1966,[]);
436__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return o}});var n=r(d[0]),e=r(d[1]);let t=null;function o(n){const t="unhandledrejection";(0,e.addHandler)(t,n),(0,e.maybeInstrument)(t,u)}function u(){t=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(n){const o=n;return(0,e.triggerHandlers)("unhandledrejection",o),!t||t.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},1967,[1961,1962]);
437__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"TRACE_FLAG_NONE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"TRACE_FLAG_SAMPLED",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"addChildSpanToSpan",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"addStatusMessageAttribute",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"getActiveSpan",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getRootSpan",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"getSimpleStatus",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"getSpanDescendants",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"getStatusMessage",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"getStreamedSpanLinks",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"removeChildSpanFromSpan",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"showSpanDropWarning",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"spanIsSampled",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"spanToJSON",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"spanToTraceContext",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"spanToTraceHeader",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"spanToTraceparentHeader",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"spanToTransactionTraceContext",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"streamedSpanJsonToSerializedSpan",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"updateSpanName",{enumerable:!0,get:function(){return V}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]),f=r(d[7]),S=r(d[8]),_=r(d[9]),b=r(d[10]),T=r(d[11]),l=r(d[12]);const y=0,A=1;let O=!1;function I(t){const{spanId:n,traceId:o}=t.spanContext(),{data:s,op:u,parent_span_id:c,status:p,origin:f,links:S}=v(t);return{parent_span_id:c,span_id:n,trace_id:o,data:s,op:u,status:p,origin:f,links:S}}function P(t){const{spanId:n,traceId:o,isRemote:s}=t.spanContext(),u=s?n:v(t).parent_span_id,c=(0,p.getCapturedScopesOnSpan)(t).scope;return{parent_span_id:u,span_id:s?c?.getPropagationContext().propagationSpanId||(0,S.generateSpanId)():n,trace_id:o}}function N(t){const{traceId:n,spanId:o}=t.spanContext(),s=J(t);return(0,b.generateSentryTraceHeader)(n,o,s)}function E(t){const{traceId:n,spanId:o}=t.spanContext(),s=J(t);return(0,b.generateTraceparentHeader)(n,o,s)}function C(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:n,traceFlags:o,...s},attributes:u})=>({span_id:t,trace_id:n,sampled:o===A,attributes:u,...s})):void 0}function j(t){return t?.length?t.map(({context:{spanId:t,traceId:n,traceFlags:o},attributes:s})=>({span_id:t,trace_id:n,sampled:o===A,attributes:s})):void 0}function R(t){return"number"==typeof t?x(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?x(t.getTime()):(0,_.timestampInSeconds)()}function x(t){return t>9999999999?t/1e3:t}function v(t){if(F(t))return t.getSpanJSON();const{spanId:n,traceId:o}=t.spanContext();if(h(t)){const{attributes:s,startTime:c,name:p,endTime:f,status:S,links:_}=t;return{span_id:n,trace_id:o,data:s,description:p,parent_span_id:k(t),start_timestamp:R(c),timestamp:R(f)||void 0,status:L(S),op:s[u.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:s[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:C(_)}}return{span_id:n,trace_id:o,start_timestamp:0,data:{}}}function U(t){if(F(t))return t.getStreamedSpanJSON();const{spanId:n,traceId:o}=t.spanContext();if(h(t)){const{attributes:s,startTime:u,name:c,endTime:p,status:f,links:S}=t;return{name:c,span_id:n,trace_id:o,parent_span_id:k(t),start_timestamp:R(u),end_timestamp:R(p),is_segment:t===W(t),status:w(f),attributes:B(s,f),links:j(S)}}return{span_id:n,trace_id:o,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===W(t)}
437}function k(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function M(t){return{...t,attributes:(0,n.serializeAttributes)(t.attributes),links:t.links?.map(t=>({...t,attributes:(0,n.serializeAttributes)(t.attributes)}))}}function h(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}function F(t){return"function"==typeof t.getSpanJSON}function J(t){const{traceFlags:n}=t.spanContext();return n===A}function L(t){if(t&&t.code!==c.SPAN_STATUS_UNSET)return t.code===c.SPAN_STATUS_OK?"ok":t.message||"internal_error"}function w(t){return t&&t.code!==c.SPAN_STATUS_OK&&t.code!==c.SPAN_STATUS_UNSET&&"cancelled"!==t.message?"error":"ok"}function B(t,n){const o="error"===w(n)?n?.message:void 0;return{...o&&{[u.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE]:o},...t}}const Y="_sentryChildSpans",D="_sentryRootSpan";function G(t,n){const o=t[D]||t;(0,f.addNonEnumerableProperty)(n,D,o),t[Y]?t[Y].add(n):(0,f.addNonEnumerableProperty)(t,Y,new Set([n]))}function H(t,n){t[Y]&&t[Y].delete(n)}function z(t){const n=new Set;return(function t(o){if(!n.has(o)&&J(o)){n.add(o);const s=o[Y]?Array.from(o[Y]):[];for(const n of s)t(n)}})(t),Array.from(n)}const K=W;function W(t){return t[D]||t}function q(){const n=(0,o.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(n);return u.getActiveSpan?u.getActiveSpan():(0,l._getSpanForScope)((0,s.getCurrentScope)())}function Q(){O||((0,T.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),O=!0)}function V(t,n){t.updateName(n),t.setAttributes({[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[u.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:n})}},1968,[1969,1987,1964,1988,1989,1990,1991,1975,1983,1981,1992,1963,1984]);
438__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function c(n){const c=(0,t.getMainCarrier)();(0,t.getSentryCarrier)(c).acs=n}function o(c){const o=(0,t.getSentryCarrier)(c);return o.acs?o.acs:(0,n.getStackAsyncContextStrategy)()}},1969,[1964,1970]);
439__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"AsyncContextStack",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"getStackAsyncContextStrategy",{enumerable:!0,get:function(){return l}});var t=r(d[0]),e=r(d[1]),o=r(d[2]),c=r(d[3]),n=r(d[4]);class p{constructor(t,o){let c,n;c=t||new e.Scope,n=o||new e.Scope,this._stack=[{scope:c}],this._isolationScope=n}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return(0,c.isThenable)(n)?(0,o.chainAndCopyPromiseLike)(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function s(){const e=(0,n.getMainCarrier)(),o=(0,n.getSentryCarrier)(e);return o.stack=o.stack||new p((0,t.getDefaultCurrentScope)(),(0,t.getDefaultIsolationScope)())}function S(t){return s().withScope(t)}function u(t,e){const o=s();return o.withScope(()=>(o.getStackTop().scope=t,e(t)))}function h(t){return s().withScope(()=>t(s().getIsolationScope()))}function l(){return{withIsolationScope:h,withScope:S,withSetScope:u,withSetIsolationScope:(t,e)=>h(e),getCurrentScope:()=>s().getScope(),getIsolationScope:()=>s().getIsolationScope()}}},1970,[1971,1972,1986,1976,1964]);
440__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function o(){return(0,t.getGlobalSingleton)("defaultCurrentScope",()=>new n.Scope)}function u(){return(0,t.getGlobalSingleton)("defaultIsolationScope",()=>new n.Scope)}},1971,[1964,1972]);
441__d(function(g,r,i,a,m,e,d){"use strict";
441Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return b}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),h=r(d[4]),_=r(d[5]),c=r(d[6]),u=r(d[7]),p=r(d[8]),l=r(d[9]),v=r(d[10]);class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}}clone(){const t=new b;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,(0,p._setSpanForScope)(t,(0,p._getSpanForScope)(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,s.updateSession)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,s){return this.setTags({[t]:s})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,s){return this.setAttributes({[t]:s})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,s){return this._extra={...this._extra,[t]:s},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,s){return null===s?delete this._contexts[t]:this._contexts[t]=s,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const s="function"==typeof t?t(this):t,n=s instanceof b?s.getScopeData():(0,o.isPlainObject)(s)?t:void 0,{tags:h,attributes:_,extra:c,user:u,contexts:p,level:l,fingerprint:v=[],propagationContext:f,conversationId:x}=n||{};return this._tags={...this._tags,...h},this._attributes={...this._attributes,..._},this._extra={...this._extra,...c},this._contexts={...this._contexts,...p},u&&Object.keys(u).length&&(this._user=u),l&&(this._level=l),v.length&&(this._fingerprint=v),f&&(this._propagationContext=f),x&&(this._conversationId=x),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,p._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(t,s){const n="number"==typeof s?s:100;if(n<=0)return this;const o={timestamp:(0,v.dateTimestampInSeconds)(),...t,message:t.message?(0,l.truncate)(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,p._getSpanForScope)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=(0,h.merge)(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}
441captureException(s,o){const h=o?.event_id||(0,_.uuid4)();if(!this._client)return t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture exception!"),h;const c=new Error("Sentry syntheticException");return this._client.captureException(s,{originalException:s,syntheticException:c,...o,event_id:h},this),h}captureMessage(s,o,h){const c=h?.event_id||(0,_.uuid4)();if(!this._client)return t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture message!"),c;const u=h?.syntheticException??new Error(s);return this._client.captureMessage(s,o,{originalException:s,syntheticException:u,...h,event_id:c},this),c}captureEvent(s,o){const h=s.event_id||o?.event_id||(0,_.uuid4)();return this._client?(this._client.captureEvent(s,{...o,event_id:h},this),h):(t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture event!"),h)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}},1972,[1959,1973,1963,1976,1982,1974,1983,1977,1984,1978,1981]);
442__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"closeSession",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"makeSession",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"updateSession",{enumerable:!0,get:function(){return o}});var t=r(d[0]),s=r(d[1]);function n(n){const u=(0,s.timestampInSeconds)(),c={sid:(0,t.uuid4)(),init:!0,timestamp:u,started:u,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>p(c)};return n&&o(c,n),c}function o(n,o={}){if(o.user&&(!n.ipAddress&&o.user.ip_address&&(n.ipAddress=o.user.ip_address),n.did||o.did||(n.did=o.user.id||o.user.email||o.user.username)),n.timestamp=o.timestamp||(0,s.timestampInSeconds)(),o.abnormal_mechanism&&(n.abnormal_mechanism=o.abnormal_mechanism),o.ignoreDuration&&(n.ignoreDuration=o.ignoreDuration),o.sid&&(n.sid=32===o.sid.length?o.sid:(0,t.uuid4)()),void 0!==o.init&&(n.init=o.init),!n.did&&o.did&&(n.did=`${o.did}`),"number"==typeof o.started&&(n.started=o.started),n.ignoreDuration)n.duration=void 0;else if("number"==typeof o.duration)n.duration=o.duration;else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}o.release&&(n.release=o.release),o.environment&&(n.environment=o.environment),!n.ipAddress&&o.ipAddress&&(n.ipAddress=o.ipAddress),!n.userAgent&&o.userAgent&&(n.userAgent=o.userAgent),"number"==typeof o.errors&&(n.errors=o.errors),o.status&&(n.status=o.status)}function u(t,s){let n={};s?n={status:s}:"ok"===t.status&&(n={status:"exited"}),o(t,n)}function p(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}},1973,[1974,1981]);
443__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addContextToFrame",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"addExceptionMechanism",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"addExceptionTypeValue",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getEventDescription",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isAlreadyCaptured",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"parseSemver",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"uuid4",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function u(){const n=c.GLOBAL_OBJ;return n.crypto||n.msCrypto}let p;function s(n=u()){try{if(n?.randomUUID)return(0,t.withRandomSafeContext)(()=>n.randomUUID()).replace(/-/g,"")}catch{}return p||(p="10000000100040008000100000000000"),p.replace(/[018]/g,n=>(n^(16*(0,t.safeMathRandom)()&15)>>n/4).toString(16))}function f(n){return n.exception?.values?.[0]}function l(n){const{message:t,event_id:o}=n;if(t)return t;const c=f(n);return c?c.type&&c.value?`${c.type}: ${c.value}`:c.type||c.value||o||"<unknown>":o||"<unknown>"}function y(n,t,o){const c=n.exception=n.exception||{},u=c.values=c.values||[],p=u[0]=u[0]||{};p.value||(p.value=t||""),p.type||(p.type=o||"Error")}function h(n,t){const o=f(n);if(!o)return;const c=o.mechanism;if(o.mechanism={type:"generic",handled:!0,...c,...t},t&&"data"in t){const n={...c?.data,...t.data};o.mechanism.data=n}}const b=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?
443:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function _(n){return parseInt(n||"",10)}function v(n){const t=n.match(b)||[],o=_(t[1]),c=_(t[2]),u=_(t[3]);return{buildmetadata:t[5],major:isNaN(o)?void 0:o,minor:isNaN(c)?void 0:c,patch:isNaN(u)?void 0:u,prerelease:t[4]}}function x(n,t,c=5){if(void 0===t.lineno)return;const u=n.length,p=Math.max(Math.min(u-1,t.lineno-1),0);t.pre_context=n.slice(Math.max(0,p-c),p).map(n=>(0,o.snipLine)(n,0));const s=Math.min(u-1,p);t.context_line=(0,o.snipLine)(n[s],t.colno||0),t.post_context=n.slice(Math.min(p+1,u),p+1+c).map(n=>(0,o.snipLine)(n,0))}function O(t){if(j(t))return!0;try{(0,n.addNonEnumerableProperty)(t,"__sentry_captured__",!0)}catch{}return!1}function j(n){try{return n.__sentry_captured__}catch{}}},1974,[1975,1977,1978,1961]);
444__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"convertToPlainObject",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dropUndefinedKeys",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"fill",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getOriginalFunction",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"markFunctionWrapped",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"objectify",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"wrapMethod",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(o,c,u){if(!(c in o))return;const s=o[c];if("function"!=typeof s)return;const b=u(s);"function"==typeof b&&f(b,s);try{o[c]=b}catch{t.DEBUG_BUILD&&n.debug.log(`Failed to replace method "${c}" in object`,o)}}function u(o,c,u){try{Object.defineProperty(o,c,{value:u,writable:!0,configurable:!0})}catch{t.DEBUG_BUILD&&n.debug.log(`Failed to add non-enumerable property "${String(c)}" to object`,o)}}function f(t,n){try{const o=n.prototype||{};t.prototype=n.prototype=o,u(t,"__sentry_original__",n)}catch{}}function s(t,n,o,c=!0){const u=t[n];if("function"!=typeof u)throw new Error(`Cannot wrap method: ${n} is not a function`);if(b(u))throw new Error(`Attempting to wrap method ${n} multiple times`);f(o,u),Object.defineProperty(t,n,{writable:!0,configurable:!0,enumerable:c,value:o})}function b(t){return t.__sentry_original__}function l(t){if((0,o.isError)(t))return{message:t.message,name:t.name,stack:t.stack,...p(t)};if((0,o.isEvent)(t)){const{type:n,target:o,currentTarget:c,detail:u}=t;return{type:n,target:o,currentTarget:c,...u?{detail:u}:{},...p(t)}}return t}function p(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}function y(t){const n=Object.keys(l(t));return n.sort(),n[0]?n.join(", "):"[object has no keys]"}function j(t){return O(t,new Map)}function O(t,n){if(null===t||"object"!=typeof t)return t;const o=n.get(t);if(void 0!==o)return o;if(Array.isArray(t)){const o=[];return n.set(t,o),t.forEach(t=>{o.push(O(t,n))}),o}if(_(t)){const o={};n.set(t,o);return Object.keys(t).forEach(c=>{const u=t[c];void 0!==u&&(o[c]=O(u,n))}),o}return t}function _(t){const n=t.constructor;return n===Object||void 0===n}function P(t){let n;switch(!0){case null==t:n=new String(t);break;case"symbol"==typeof t||"bigint"==typeof t:n=Object(t);break;case(0,o.isPrimitive)(t):n=new t.constructor(t);break;default:n=t}return n}},1975,[1959,1963,1976]);
445__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isDOMError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isDOMException",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"isErrorEvent",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isEvent",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isInstanceOf",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"isParameterizedString",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"isPrimitive",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"isRequest",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isSyntheticEvent",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isThenable",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"isVueViewModel",{enumerable:!0,get:function(){return v}});const t=Object.prototype.toString;function n(n){switch(t.call(n)){case"[object Error]":case"[object E
445xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return P(n,Error)}}function u(n,u){return t.call(n)===`[object ${u}]`}function o(t){return u(t,"ErrorEvent")}function c(t){return u(t,"DOMError")}function f(t){return u(t,"DOMException")}function b(t){return u(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function s(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function p(t){return u(t,"Object")}function y(t){return"undefined"!=typeof Event&&P(t,Event)}function j(t){return"undefined"!=typeof Element&&P(t,Element)}function O(t){return u(t,"RegExp")}function E(t){return Boolean(t?.then&&"function"==typeof t.then)}function _(t){return p(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function P(t,n){try{return t instanceof n}catch{return!1}}function v(t){return!("object"!=typeof t||null===t||!(t.__isVue||t._isVue||t.__v_isVNode))}function x(t){return"undefined"!=typeof Request&&P(t,Request)}},1976,[]);
446__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"safeDateNow",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"safeMathRandom",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"withRandomSafeContext",{enumerable:!0,get:function(){return o}});var n=r(d[0]);let t;function o(o){if(void 0!==t)return t?t(o):o();const u=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),f=n.GLOBAL_OBJ;return u in f&&"function"==typeof f[u]?(t=f[u],t(o)):(t=null,o())}function u(){return o(()=>Math.random())}function f(){return o(()=>Date.now())}},1977,[1961]);
447__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isMatchingPattern",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"safeJoin",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"snipLine",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"truncate",{enumerable:!0,get:function(){return i}});var t=r(d[0]),n=r(d[1]);function i(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function u(t,n){let i=t;const u=i.length;if(u<=150)return i;n>u&&(n=u);let o=Math.max(n-60,0);o<5&&(o=0);let s=Math.min(o+140,u);return s>u-5&&(s=u),s===u&&(o=Math.max(s-140,0)),i=i.slice(o,s),o>0&&(i=`'{snip} ${i}`),s<u&&(i+=" {snip}"),i}function o(i,u){if(!Array.isArray(i))return"";const o=[];for(let u=0;u<i.length;u++){const s=i[u];(0,t.isPrimitive)(s)?o.push(String(s)):s instanceof Error?o.push(s.message?`${s.name}: ${s.message}`:s.name):o.push((0,n.stringifyValue)(void 0,s))}return o.join(u)}function s(n,i,u=!1){return!!(0,t.isString)(n)&&((0,t.isRegExp)(i)?i.test(n):(0,t.isString)(i)?u?n===i:n.includes(i):"function"==typeof i&&i(n))}function c(t,n=[],i=!1){for(const u of n)if(s(t,u,i))return!0;return!1}},1978,[1976,1979]);
448__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalize",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"normalizeToSize",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"normalizeUrlToBase",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"setNormalizeStringifier",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stringifyValue",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let c;function u(t){c=t}function f(t,n=100,o=1/0){try{return s("",t,n,o)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function l(t,n=3,o=102400){const c=f(t,n);return u=c,y(JSON.stringify(u))>o?l(t,n-1,o):c;var u}function s(o,c,u=1/0,f=1/0,l=j()){const[b,y]=l;if(null==c||["boolean","string"].includes(typeof c)||"number"==typeof c&&Number.isFinite(c))return c;const O=p(o,c);if(!O.startsWith("[object "))return O;if((0,t.hasSkipNormalizationHint)(c))return c;const h=(0,t.getNormalizationDepthOverrideHint)(c),P=void 0!==h?h:u;if(0===P)return O.replace("object ","");if(b(c))return"[Circular ~]";const $=c;if($&&"function"==typeof $.toJSON)try{return s("",$.toJSON(),P-1,f,l)}catch{}const z=Array.isArray(c)?[]:{};let N=0;const S=(0,n.convertToPlainObject)(c);for(const t in S){if(!Object.prototype.hasOwnProperty.call(S,t))continue;if(N>=f){z[t]="[MaxProperties ~]";break}const n=S[t];z[t]=s(t,n,P-1,f,l),N++}return y(c),z}function p(t,n){try{if(c){const t=c(n);if(t)return t}if(void 0!==g&&n===g)return"[Global]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${(0,o.getFunctionName)(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;return`[object ${b(n)}]`}catch(t){return`**non-serializable** (${t})`}}function b(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}function y(t){return~-encodeURI(t).split(/%..|./).length}function O(t,n){const o=n.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let c=t;try{c=decodeURI(t)}catch{}return c.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${o}/*`,"ig"),"app:///")}function j(){const t=new WeakSet;return[function(n){return!!t.has(n)||(t.add(n),!1)},function(n){t.delete(n)}]}},1979,[1980,1975,1966]);
449__d(function(g,r,i,a,m,e,d){"use strict";
449Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"hasSkipNormalizationHint",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=Symbol.for("sentry.skipNormalization"),o=Symbol.for("sentry.overrideNormalizationDepth");function u(o){(0,t.addNonEnumerableProperty)(o,n,!0)}function c(n,u){(0,t.addNonEnumerableProperty)(n,o,u)}function f(t){return Boolean(t[n])}function l(t){const n=t[o];return"number"==typeof n?n:void 0}},1980,[1975]);
450__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"timestampInSeconds",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);const o=1e3;function u(){return(0,n.safeDateNow)()/o}function f(){const{performance:f}=t.GLOBAL_OBJ;if(!f?.now||!f.timeOrigin)return u;const c=f.timeOrigin;return()=>(c+(0,n.withRandomSafeContext)(()=>f.now()))/o}let c;function s(){return(c??(c=f()))()}let b=null;function O(){const{performance:o}=t.GLOBAL_OBJ;if(!o?.now)return;const u=3e5,f=(0,n.withRandomSafeContext)(()=>o.now()),c=(0,n.safeDateNow)(),s=o.timeOrigin;if("number"==typeof s){if(Math.abs(s+f-c)<u)return s}const b=o.timing?.navigationStart;if("number"==typeof b){if(Math.abs(b+f-c)<u)return b}return c-f}function l(){return null===b&&(b=O()),b}},1981,[1977,1961]);
451__d(function(g,r,i,a,m,e,d){"use strict";function t(n,o,c=2){if(!o||"object"!=typeof o||c<=0)return o;if(n&&0===Object.keys(o).length)return n;const u={...n};for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(u[n]=t(u[n],o[n],c-1));return u}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return t}})},1982,[]);
452__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateSpanId",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"generateTraceId",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(){return(0,n.uuid4)()}function u(){return(0,n.uuid4)().substring(16)}},1983,[1974]);
453__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getSpanForScope",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_setSpanForScope",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o="_sentrySpan";function u(u,c){c?(0,n.addNonEnumerableProperty)(u,o,(0,t.makeWeakRef)(c)):delete u[o]}function c(n){return(0,t.derefWeakRef)(n[o])}},1984,[1975,1985]);
454__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"derefWeakRef",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"makeWeakRef",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){try{const f=t.GLOBAL_OBJ.WeakRef;if("function"==typeof f)return new f(n)}catch{}return n}function f(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}},1985,[1961]);
455__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"chainAndCopyPromiseLike",{enumerable:!0,get:function(){return o}});const n=n=>n instanceof Promise&&!n[t],t=Symbol("chained PromiseLike"),o=(t,o,u)=>{const s=t.then(n=>(o(n),n),n=>{throw u(n),n});return n(s)&&n(t)?s:c(t,s)},c=(n,o)=>{if(!o)return n;let c=!1;for(const t in n){if(t in o)continue;c=!0;const u=n[t];"function"==typeof u?Object.defineProperty(o,t,{value:(...t)=>u.apply(n,t),enumerable:!0,configurable:!0,writable:!0}):o[t]=u}return c&&Object.assign(o,{[t]:!0}),o}},1986,[]);
456__d(function(g,r,i,a,m,e,d){"use strict";
456Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"attributeValueToTypedAttributeValue",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"estimateTypedAttributesSizeInBytes",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isAttributeObject",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"serializeAttributes",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function n(t){return"object"==typeof t&&null!=t&&!Array.isArray(t)&&Object.keys(t).includes("value")}function u(t,u){const{value:o,unit:f}=n(t)?t:{value:t,unit:void 0},s=c(o),l=f&&"string"==typeof f?{unit:f}:{};if(s)return{...s,...l};if(!u||"skip-undefined"===u&&void 0===o)return;let y="";try{y=JSON.stringify(o)??""}catch{}return{value:y,type:"string",...l}}function o(t,n=!1){const o={};for(const[f,s]of Object.entries(t??{})){const t=u(s,n);t&&(o[f]=t)}return o}function f(n){if(!n)return 0;let u=0;for(const[o,f]of Object.entries(n)){u+=2*o.length,u+=2*f.type.length,u+=2*(f.unit?.length??0);const n=f.value;Array.isArray(n)?u+=s(n[0])*n.length:(0,t.isPrimitive)(n)?u+=s(n):u+=100}return u}function s(t){return"string"==typeof t?2*t.length:"boolean"==typeof t?4:"number"==typeof t?8:0}function c(t){if(Array.isArray(t))return{value:t,type:"array"};const n="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";return n?{value:t,type:n}:void 0}},1987,[1976]);
457__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getClient",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"getCurrentScope",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getExternalPropagationContext",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getGlobalScope",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getIsolationScope",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"getTraceContextFromScope",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"withIsolationScope",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"withScope",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]);let u;function p(t){u=t}function f(){return u?.()}function l(){return void 0!==u}function s(){const o=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(o).getCurrentScope()}function S(){const o=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(o).getIsolationScope()}function b(){return(0,n.getGlobalSingleton)("globalScope",()=>new o.Scope)}function y(...o){const c=(0,n.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(c);if(2===o.length){const[t,n]=o;return t?u.withSetScope(t,n):u.withScope(n)}return u.withScope(o[0])}function C(...o){const c=(0,n.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(c);if(2===o.length){const[t,n]=o;return t?u.withSetIsolationScope(t,n):u.withIsolationScope(n)}return u.withIsolationScope(o[0])}function P(){return s().getClient()}function x(t){const n=f();if(n)return{trace_id:n.traceId,span_id:n.spanId};const o=t.getPropagationContext(),{traceId:u,parentSpanId:p,propagationSpanId:l}=o,s={trace_id:u,span_id:l||(0,c.generateSpanId)()};return p&&(s.parent_span_id=p),s}},1988,[1969,1964,1972,1983]);
458__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return D}});const t="sentry.source",n="sentry.sample_rate",T="sentry.previous_trace_sample_rate",E="sentry.op",_="sentry.origin",u="sentry.status.message",I="sentry.idle_span_finish_reason",A="sentry.measurement_unit",S="sentry.measurement_value",o="sentry.release",c="sentry.environment",N="sentry.segment.name",R="sentry.segment.id",f="sentry.sdk.name",b="sentry.sdk.version",s="sentry.sdk.integrations",y="user.id",M="user.email",U="user.ip_address",l="user.n
458ame",O="sentry.custom_span_name",p="sentry.profile_id",P="sentry.exclusive_time",C="cache.hit",j="cache.key",B="cache.item_size",Y="http.request.method",L="url.full",D="sentry.link.type",h="gen_ai.conversation.id"},1989,[]);
459__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"setHttpStatus",{enumerable:!0,get:function(){return c}});const t=0,n=1,s=2;function u(t){if(t<400&&t>=100)return{code:n};if(t>=400&&t<500)switch(t){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"};default:return{code:s,message:"internal_error"}}return{code:s,message:"internal_error"}}function c(t,n){t.setAttribute("http.response.status_code",n);const s=u(n);"unknown_error"!==s.message&&t.setStatus(s)}},1990,[]);
460__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);const o="_sentryScope",u="_sentryIsolationScope",c=Symbol.for("sentry.otelSourceInference");function f(c,f,p){c&&((0,n.addNonEnumerableProperty)(c,u,(0,t.makeWeakRef)(p)),(0,n.addNonEnumerableProperty)(c,o,f))}function p(n){const c=n;return{scope:c[o],isolationScope:(0,t.derefWeakRef)(c[u])}}function l(t){(0,n.addNonEnumerableProperty)(t,c,!0)}function s(n){return!0===n[c]}},1991,[1975,1985]);
461__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"extractTraceparentData",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"generateTraceparentHeader",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"shouldContinueTrace",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),u=r(d[4]),p=r(d[5]);const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function f(t){if(!t)return;const n=t.match(s);if(!n)return;let o;return"1"===n[3]?o=!0:"0"===n[3]&&(o=!1),{traceId:n[1],parentSampled:o,parentSpanId:n[2]}}function l(t,o){const c=f(t),s=(0,n.baggageHeaderToDynamicSamplingContext)(o);if(!c?.traceId)return{traceId:(0,u.generateTraceId)(),sampleRand:(0,p.safeMathRandom)()};const l=I(c,s);s&&(s.sample_rand=l.toString());const{traceId:b,parentSpanId:S,parentSampled:R}=c;return{traceId:b,parentSpanId:S,sampled:R,dsc:s||{},sampleRand:l}}function b(t=(0,u.generateTraceId)(),n=(0,u.generateSpanId)(),o){let c="";return void 0!==o&&(c=o?"-1":"-0"),`${t}-${n}${c}`}function S(t=(0,u.generateTraceId)(),n=(0,u.generateSpanId)(),o){return`00-${t}-${n}-${o?"01":"00"}`}function I(t,n){const o=(0,c.parseSampleRate)(n?.sample_rand);if(void 0!==o)return o;const u=(0,c.parseSampleRate)(n?.sample_rate);return u&&void 0!==t?.parentSampled?t.parentSampled?(0,p.safeMathRandom)()*u:u+(0,p.safeMathRandom)()*(1-u):(0,p.safeMathRandom)()}function R(n,c){const u=(0,o.extractOrgIdFromClient)(n);if(c&&u&&c!==u)return t.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${c}, SDK options: ${u})`),!1;return!(n.getOptions().strictTraceContinuation||!1)||!(c&&!u||!c&&u)||(t.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${c}, Sentry client: ${u})`),!1)}},1992,[1963,1993,1994,1995,1983,1977]);
462__d(function(g,r,i,a,m,e,d){"use strict";
462Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"objectToBaggageHeader",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"parseBaggageHeader",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const o="sentry-",u=/^sentry-/,s=8192;function f(t){const n=l(t);if(!n)return;const c=Object.entries(n).reduce((t,[n,c])=>{if(n.startsWith(o)){t[n.slice(o.length)]=c}return t},{});return Object.keys(c).length>0?c:void 0}function b(t){if(!t)return;return j(Object.entries(t).reduce((t,[n,c])=>(c&&(t[`${o}${n}`]=c),t),{}))}function l(t){if(t&&((0,c.isString)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,n)=>{const c=y(n);return Object.entries(c).forEach(([n,c])=>{t[n]=c}),t},{}):y(t)}function y(t){return t.split(",").map(t=>{const n=t.indexOf("=");if(-1===n)return[];return[t.slice(0,n),t.slice(n+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[n,c])=>(n&&c&&(t[n]=c),t),{})}function j(c){if(0!==Object.keys(c).length)return Object.entries(c).reduce((c,[o,u],f)=>{const b=`${encodeURIComponent(o)}=${encodeURIComponent(u)}`,l=0===f?b:`${c},${b}`;return l.length>s?(t.DEBUG_BUILD&&n.debug.warn(`Not adding key: ${o} with val: ${u} to baggage header due to exceeding baggage size limits.`),c):l},"")}function O(t,n){if(!t)return n;const c=l(t),u=l(n);if(!u)return t;const s={};let f=!1;const b={},y={};for(const[t,n]of Object.entries(u))t.startsWith(o)?(b[t]=n,f=!0):y[t]=n;if(c)for(const[t,n]of Object.entries(c))f&&t.startsWith(o)||(s[t]=n);f&&Object.assign(s,b);for(const[t,n]of Object.entries(y))s[t]??(s[t]=n);return j(s)}},1993,[1959,1963,1976]);
463__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"dsnFromString",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"dsnToString",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"extractOrgIdFromClient",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"extractOrgIdFromDsnHost",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"makeDsn",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]);const o=/^o(\d+)\./,c=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(t){return"http"===t||"https"===t}function p(t,n=!1){const{host:o,path:c,pass:s,port:p,projectId:u,protocol:l,publicKey:f}=t;return`${l}://${f}${n&&s?`:${s}`:""}@${o}${p?`:${p}`:""}/${c?`${c}/`:c}${u}`}function u(t){const o=c.exec(t);if(!o)return void(0,n.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[s,p,u="",f="",b="",I=""]=o.slice(1);let y="",h=I;const $=h.split("/");if($.length>1&&(y=$.slice(0,-1).join("/"),h=$.pop()),h){const t=h.match(/^\d+/);t&&(h=t[0])}return l({host:f,pass:u,path:y,projectId:h,port:b,protocol:s,publicKey:p})}function l(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function f(o){if(!t.DEBUG_BUILD)return!0;const{port:c,projectId:p,protocol:u}=o;return!["protocol","publicKey","host","projectId"].find(t=>!o[t]&&(n.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(p.match(/^\d+$/)?s(u)?!c||!isNaN(parseInt(c,10))||(n.debug.error(`Invalid Sentry Dsn: Invalid port ${c}`),!1):(n.debug.error(`Invalid Sentry Dsn: Invalid protocol ${u}`),!1):(n.debug.error(`Invalid Sentry Dsn: Invalid projectId ${p}`),!1))}function b(t){const n=t.match(o);return n?.[1]}function I(t){const n=t.getOptions(),{host:o}=t.getDsn()||{};let c;
463return n.orgId?c=String(n.orgId):o&&(c=b(o)),c}function y(t){const n="string"==typeof t?u(t):l(t);if(n&&f(n))return n}},1994,[1959,1963]);
464__d(function(g,r,i,a,m,e,d){"use strict";function t(t){if("boolean"==typeof t)return Number(t);const n="string"==typeof t?parseFloat(t):t;return"number"!=typeof n||isNaN(n)||n<0||n>1?void 0:n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseSampleRate",{enumerable:!0,get:function(){return t}})},1995,[]);
465__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"startIdleSpan",{enumerable:!0,get:function(){return O}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]),c=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]),T=r(d[9]),f=r(d[10]),_=r(d[11]),I=r(d[12]),h=r(d[13]);const E={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},N="heartbeatFailed",A="idleTimeout",b="finalTimeout",R="externalFinish";function O(I,O={}){const y=new Map;let C,U=!1,F=R,P=!O.disableAutoFinish;const v=[],{idleTimeout:x=E.idleTimeout,finalTimeout:B=E.finalTimeout,childSpanTimeout:M=E.childSpanTimeout,beforeSpanEnd:J,trimIdleSpanEndTimestamp:L=!0}=O,w=(0,n.getClient)(),G=(0,n.getCurrentScope)();if(!w||!(0,p.hasSpansEnabled)()){const t=new T.SentryNonRecordingSpan({traceId:G.getPropagationContext().traceId});return(0,h.setCapturedScopesOnSpan)(t,G,(0,n.getIsolationScope)()),t}const j=(0,S.getActiveSpan)(),z=D(I);function H(){C&&(clearTimeout(C),C=void 0)}function Y(n){H(),C=setTimeout(()=>{!U&&0===y.size&&P&&(F=A,z.end(n))},x)}function k(n){C=setTimeout(()=>{!U&&P&&(F=N,z.end(n))},M)}function K(n){H(),y.set(n,!0);k((0,l.timestampInSeconds)()+M/1e3)}function $(n){if(y.has(n)&&y.delete(n),0===y.size){Y((0,l.timestampInSeconds)()+x/1e3)}}function q(n){U=!0,y.clear(),v.forEach(n=>n()),(0,u._setSpanForScope)(G,j);const p=(0,S.spanToJSON)(z),{start_timestamp:c}=p;if(!c)return;p.data[s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||z.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,F);const l=p.status;l&&"unknown"!==l||z.setStatus({code:_.SPAN_STATUS_OK}),o.debug.log(`[Tracing] Idle span "${p.op}" finished`);const T=(0,S.getSpanDescendants)(z).filter(n=>n!==z);let f=0;T.forEach(s=>{s.isRecording()&&(s.setStatus({code:_.SPAN_STATUS_ERROR,message:"cancelled"}),s.end(n),t.DEBUG_BUILD&&o.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(s,void 0,2)));const p=(0,S.spanToJSON)(s),{timestamp:c=0,start_timestamp:u=0}=p,l=u<=n,T=c-u<=(B+x)/1e3;if(t.DEBUG_BUILD){const n=JSON.stringify(s,void 0,2);l?T||o.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",n):o.debug.log("[Tracing] Discarding span since it happened after idle span was finished",n)}T&&l||((0,S.removeChildSpanFromSpan)(z,s),f++)}),f>0&&z.setAttribute("sentry.idle_span_discarded_spans",f)}return z.end=new Proxy(z.end,{apply(n,t,s){if(J&&J(z),(0,T.spanIsNonRecordingSpan)(t))return;const[o,...p]=s,u=o||(0,l.timestampInSeconds)(),f=(0,S.spanTimeInputToSeconds)(u),_=(0,S.getSpanDescendants)(z).filter(n=>n!==z),I=(0,S.spanToJSON)(z);if(!_.length||!L)return q(f),Reflect.apply(n,t,[f,...p]);const h=w.getOptions().ignoreSpans,E=_?.reduce((n,t)=>{const s=(0,S.spanToJSON)(t);return s.timestamp?h&&(0,c.shouldIgnoreSpan)({description:s.description,op:s.op,attributes:s.data},h)?n:n?Math.max(n,s.timestamp):s.timestamp:n},void 0),N=I.start_timestamp,A=Math.min(N?N+B/1e3:1/0,Math.max(N||-1/0,Math.min(f,E||1/0)));return q(A),Reflect.apply(n,t,[A,...p])}}),v.push(w.on("spanStart",n=>{if(U||n===z||(0,S.spanToJSON)(n).timestamp||n instanceof f.SentrySpan&&n.isStandaloneSpan())return;(0,S.getSpanDescendants)(z).includes(n)&&K(n.spanContext().spanId)})),v.push(w.on("spanEnd",n=>{U||$(n.spanContext().spanId)})),v.push(w.on("idleSpanEnableAutoFinish",n=>{n===z&&(P=!0,Y(),y.size&&k())})),O.disableAutoFinish||Y(),setTimeout(()=>{U||(z.setStatus({code:_.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),F=b,z.end())},B),z}function D(s){const p=(0,I.startInactiveSpan)(s);return(0,u._setSpanForScope)((0,n.getCurrentScope)(),p),t.DEBUG_BUILD&&o.debug.log("[Tracing] Started span is an i
465dle span"),p}},1996,[1988,1959,1989,1963,1997,1998,1984,1968,1981,1999,2000,1990,2009,1991]);
466__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hasSpansEnabled",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const _=n||(0,t.getClient)()?.getOptions();return!(!_||null==_.tracesSampleRate&&!_.tracesSampler)}},1997,[1988]);
467__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reparentChildSpans",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),i=r(d[2]);function o(t){n.debug.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function s(n,s){if(!s?.length)return!1;for(const p of s){if(u(p)){if(n.description&&(0,i.isMatchingPattern)(n.description,p))return t.DEBUG_BUILD&&o(n),!0;continue}const s=!!p.attributes&&Object.keys(p.attributes).length>0;if(!p.name&&!p.op&&!s)continue;const f=!p.name||n.description&&(0,i.isMatchingPattern)(n.description,p.name),b=!p.op||n.op&&(0,i.isMatchingPattern)(n.op,p.op),y=!p.attributes||Object.entries(p.attributes).every(([t,i])=>c(n.attributes?.[t],i));if(f&&b&&y)return t.DEBUG_BUILD&&o(n),!0}return!1}function c(t,n){return"string"==typeof t&&("string"==typeof n||n instanceof RegExp)?(0,i.isMatchingPattern)(t,n):Array.isArray(t)&&Array.isArray(n)?t.length===n.length&&t.every((t,i)=>t===n[i]):t===n}function p(t,n){const i=n.parent_span_id,o=n.span_id;if(i)for(const n of t)n.parent_span_id===o&&(n.parent_span_id=i)}function u(t){return"string"==typeof t||t instanceof RegExp}},1998,[1959,1963,1978]);
468__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"spanIsNonRecordingSpan",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]);const o=Symbol.for("sentry.nonRecordingSpan");class u{constructor(s={}){this._traceId=s.traceId||(0,n.generateTraceId)(),this._spanId=s.spanId||(0,n.generateSpanId)(),this.dropReason=s.dropReason,(0,t.addNonEnumerableProperty)(this,o,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:s.TRACE_FLAG_NONE}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,s){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function c(t){return!!t&&!0===t[o]}},1999,[1975,1983,1968]);
469__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentrySpan",{enumerable:!0,get:function(){return E}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),p=r(d[5]),o=r(d[6]),h=r(d[7]),S=r(d[8]),u=r(d[9]),c=r(d[10]),T=r(d[11]),l=r(d[12]);class E{constructor(t={}){this._traceId=t.traceId||(0,p.generateTraceId)(),this._spanId=t.spanId||(0,p.generateSpanId)(),this._startTime=t.startTimestamp||(0,h.timestampInSeconds)(),this._links=t.links,this._attributes={},this.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,s){}spanContext(){const{_spanId:t,_traceId:s,_sampled:n}=this;return{spanId:t,traceId:s,traceFlags:n?o.TRACE_FLAG_SAMPLED:o.TRACE_FLAG_NONE}}setAttribute(t,s){return void 0===s?delete this._attributes[t]:this._attributes[t]=s,this}setAttributes(t){return Object.keys(t).forEach(s=>this.setAttribute(s,t[s])),this}updateStartTime(t){this._startTime=(0,o.spanTimeInputToSeconds)(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,(0,l.spanShouldInferOtelSource)(this)||this.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(t){this._endTime||(this._endTime=(0,o.spanTimeInputToSeconds)(t),(0,u.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,o.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[a.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[a.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:(0,c.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,o.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,o.getRootSpan)(this).spanContext().spanId:void 0,links:(0,o.convertSpanLinksForEnvelope)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,o.getRootSpan)(this),status:(0,o.getSimpleStatus)(this._status),attributes:(0,o.addStatusMessageAttribute)(this._attributes,this._status),links:(0,o.getStreamedSpanLinks)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,a){s.DEBUG_BUILD&&_.debug.log("[Tracing] Adding an event to span:",t);const p=I(n)?n:a||(0,h.timestampInSeconds)(),S=I(n)?{}:n||{},u={name:t,time:(0,o.spanTimeInputToSeconds)(p),attributes:S};return this._events.push(u),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const a=(0,t.getClient)();a&&(a.emit("spanEnd",this),this._isStandaloneSpan||a.emit("afterSpanEnd",this));if(!(this._isStandaloneSpan||this===(0,o.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?N((0,n.createSpanEnvelope)([this],a)):(s.DEBUG_BUILD&&_.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),a&&a.recordDroppedEvent("sample_rate","span")));if(a&&(0,T.hasSpanStreamingEnabled)(a))return void a.emit("afterSegmentSpanEnd",this);const p=this._convertSpanToTransaction();if(p){((0,l.getCapturedScopesOnSpan)(this).scope||(0,t.getCurrentScope)()).captureEvent(p)}}_convertSpanToTransaction(){if(!A((0,o.spanToJSON)(this)))return;this._name||(s.DEBUG_BUILD&&_.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=(0,l.getCapturedScopesOnSpan)(this),p=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const h=(0,o.getSpanDescendants)(this).filter(t=>t!==this&&!b(t)).map(t=>(0,o.spanToJSON)(t)).filter(A),u=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let T=!1;h.forEach(t=>{delete t.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],t.op?.startsWith("gen_ai.")&&(T=!0)});const E={contexts:{trace:(0,o.spanToTransactionTraceContext)(this)},spans:h.length>1e3?h.sort((t,s)=>t.start_timestamp-s.start_timestamp).slice(0,1e3):h,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:(0,S.getDynamicSamplingContextFromSpan)(this),hasGenAiSpans:T},request:p,...u&&{transaction_info:{source:u}}},I=(0,c.timedEventsToMeasurements)(this._events);return I&&Object.keys(I).length&&(s.DEBUG_BUILD&&_.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(I,void 0,2)),E.measurements=I),E}}function I(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function A(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}function b(t){return t instanceof E&&t.isStandaloneSpan()}function N(s){const n=(0,t.getClient)();if(!n)return;const a=s[1];a&&0!==a.length?n.sendEnvelope(s):n.recordDroppedEvent("before_send","span")}},2000,[1988,1959,2001,1989,1963,1983,1968,1981,2002,2006,2007,2008,1991]);
470__d(function(g,r,i,a,m,e,d){"use strict";
470Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_enhanceEventWithSdkInfo",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createEventEnvelope",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createSessionEnvelope",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"createSpanEnvelope",{enumerable:!0,get:function(){return v}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),p=r(d[4]),c=r(d[5]),u=r(d[6]);function l(n,t){if(!t)return n;const o=n.sdk||{};return n.sdk={...o,name:o.name||t.name,version:o.version||t.version,integrations:[...n.sdk?.integrations||[],...t.integrations||[]],packages:[...n.sdk?.packages||[],...t.packages||[]],settings:n.sdk?.settings||t.settings?{...n.sdk?.settings,...t.settings}:void 0},n}function S(n,t,c,u){const l=(0,s.getSdkMetadataForEnvelopeHeader)(c),S={sent_at:new Date((0,p.safeDateNow)()).toISOString(),...l&&{sdk:l},...!!u&&t&&{dsn:(0,o.dsnToString)(t)}},f="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return(0,s.createEnvelope)(S,[f])}function f(n,t,o,p){const c=(0,s.getSdkMetadataForEnvelopeHeader)(o),u=n.type&&"replay_event"!==n.type?n.type:"event";l(n,o?.sdk);const S=(0,s.createEventEnvelopeHeaders)(n,c,p,t);delete n.sdkProcessingMetadata;const f=[{type:u},n];return(0,s.createEnvelope)(S,[f])}function v(l,S){const f=(0,n.getDynamicSamplingContextFromSpan)(l[0]),v=S?.getDsn(),k=S?.getOptions().tunnel,b={sent_at:new Date((0,p.safeDateNow)()).toISOString(),...(y=f,!!y.trace_id&&!!y.public_key&&{trace:f}),...!!k&&v&&{dsn:(0,o.dsnToString)(v)}};var y;const{beforeSendSpan:E,ignoreSpans:O}=S?.getOptions()||{},_=O?.length?l.filter(n=>{const t=(0,u.spanToJSON)(n);return!(0,c.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},O)}):l,h=l.length-_.length;h&&S?.recordDroppedEvent("before_send","span",h);const D=E?n=>{const o=(0,u.spanToJSON)(n),s=(0,t.isStreamedBeforeSendSpanCallback)(E)?o:E(o);return s||((0,u.showSpanDropWarning)(),o)}:u.spanToJSON,N=[];for(const n of _){const t=D(n);t&&N.push((0,s.createSpanEnvelopeItem)(t))}return(0,s.createEnvelope)(b,N)}},2001,[2002,2004,1994,2005,1977,1998,1968]);
471__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"freezeDscOnSpan",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"spanToBaggageHeader",{enumerable:!0,get:function(){return b}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),p=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]),f=r(d[9]);const _="_frozenDsc";function T(n,t){const o=n;(0,u.addNonEnumerableProperty)(o,_,t)}function E(t,o){const c=o.getOptions(),{publicKey:p}=o.getDsn()||{},u={environment:c.environment||n.DEFAULT_ENVIRONMENT,release:c.release,public_key:p,trace_id:t,org_id:(0,s.extractOrgIdFromClient)(o)};return o.emit("createDsc",u),u}function y(n,t){const o=t.getPropagationContext();return o.dsc||E(o.traceId,n)}function C(n){const s=(0,t.getClient)();if(!s)return{};const u=(0,S.getRootSpan)(n),T=(0,S.spanToJSON)(u),C=T.data,b=u.spanContext().traceState,O=b?.get("sentry.sample_rate")??C[o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??C[o.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function R(n){return"number"!=typeof O&&"string"!=typeof O||(n.sample_rate=`${O}`),n}const I=u[_];if(I)return R(I);if((0,l.spanIsNonRecordingSpan)(u)&&!(0,p.hasSpansEnabled)(s.getOptions())){const n=(0,f.getCapturedScopesOnSpan)(u).scope;if(n)return R({...y(s,n)})}const A=b?.get("sentry.dsc"),N=A&&(0,c.baggageHeaderToDynamicSamplingContext)(A);if(N)return R(N);const P=E(n.spanContext().traceId,s),x=C[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??C["sentry.span.source"],D=T.description;return"url"!==x&&D&&(P.transaction=D),(0,p.hasSpansEnabled)()&&(P.sampled=String((0,S.spanIsSampled)(u)),P.sample_rand=b?.get("sentry.sample_rand")??(0,f.getCapturedScopesOnSpan)(u).scope?.getPropagationContext().sampleRand.toString()),R(P),s.emit("createDsc",P,u),P}function b(n){const t=C(n);return(0,c.dynamicSamplingContextToSentryBaggageHeader)(t)}},2002,[2003,1988,1989,1993,1994,1997,1975,1968,1999,1991]);
472__d(function(g,r,i,a,m,e,d){"use strict";
472Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return n}});const t="production",n="development"},2003,[]);
473__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"withStreamedSpan",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return(0,t.addNonEnumerableProperty)(n,"_streamed",!0),n}function u(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}},2004,[1975]);
474__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addItemToEnvelope",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createEnvelope",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"envelopeContainsItemType",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"parseEnvelope",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"serializeEnvelope",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),i=r(d[3]),c=r(d[4]);function u(t,n=[]){return[t,n]}function f(t,n){const[o,i]=t;return[o,[...i,n]]}function l(t,n){const o=t[1];for(const t of o){if(n(t,t[0].type))return!0}return!1}function s(t,n){return l(t,(t,o)=>n.includes(o))}function p(n){const o=(0,t.getSentryCarrier)(c.GLOBAL_OBJ);return o.encodePolyfill?o.encodePolyfill(n):(new TextEncoder).encode(n)}function y(n){const o=(0,t.getSentryCarrier)(c.GLOBAL_OBJ);return o.decodePolyfill?o.decodePolyfill(n):(new TextDecoder).decode(n)}function b(t){const[n,i]=t;let c=JSON.stringify(n);function u(t){"string"==typeof c?c="string"==typeof t?c+t:[p(c),t]:c.push("string"==typeof t?p(t):t)}for(const t of i){const[n,i]=t;if(u(`\n${JSON.stringify(n)}\n`),"string"==typeof i||i instanceof Uint8Array)u(i);else{let t;try{t=JSON.stringify(i)}catch{t=JSON.stringify((0,o.normalize)(i))}u(t)}}return"string"==typeof c?c:O(c)}function O(t){const n=t.reduce((t,n)=>t+n.length,0),o=new Uint8Array(n);let i=0;for(const n of t)o.set(n,i),i+=n.length;return o}function v(t){let n="string"==typeof t?p(t):t;function o(t){const o=n.subarray(0,t);return n=n.subarray(t+1),o}function i(){let t=n.indexOf(10);return t<0&&(t=n.length),JSON.parse(y(o(t)))}const c=i(),u=[];for(;n.length;){const t=i(),n="number"==typeof t.length?t.length:void 0;u.push([t,n?o(n):i()])}return[c,u]}function _(t){return[{type:"span"},t]}function h(t){const n="string"==typeof t.data?p(t.data):t.data;return[{type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},n]}const P={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function S(t){return t in P}function j(t){return S(t)?P[t]:t}function E(t){if(!t?.sdk)return;const{name:n,version:o}=t.sdk;return{name:n,version:o}}function T(t,o,c,u){const f=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date((0,i.safeDateNow)()).toISOString(),...o&&{sdk:o},...!!c&&u&&{dsn:(0,n.dsnToString)(u)},...f&&{trace:f}}}},2005,[1964,1994,1979,1977,1961]);
475__d(function(g,r,i,a,m,e,d){"use strict";
475Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"logSpanEnd",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"logSpanStart",{enumerable:!0,get:function(){return p}});var n=r(d[0]),o=r(d[1]),t=r(d[2]);function p(p){if(!n.DEBUG_BUILD)return;const{description:s="< unknown name >",op:u="< unknown op >",parent_span_id:c}=(0,t.spanToJSON)(p),{spanId:$}=p.spanContext(),f=(0,t.spanIsSampled)(p),l=(0,t.getRootSpan)(p),I=l===p,S=`[Tracing] Starting ${f?"sampled":"unsampled"} ${I?"root ":""}span`,D=[`op: ${u}`,`name: ${s}`,`ID: ${$}`];if(c&&D.push(`parent ID: ${c}`),!I){const{op:n,description:o}=(0,t.spanToJSON)(l);D.push(`root ID: ${l.spanContext().spanId}`),n&&D.push(`root op: ${n}`),o&&D.push(`root description: ${o}`)}o.debug.log(`${S}\n  ${D.join("\n  ")}`)}function s(p){if(!n.DEBUG_BUILD)return;const{description:s="< unknown name >",op:u="< unknown op >"}=(0,t.spanToJSON)(p),{spanId:c}=p.spanContext(),$=`[Tracing] Finishing "${u}" ${(0,t.getRootSpan)(p)===p?"root ":""}span "${s}" with ID ${c}`;o.debug.log($)}},2006,[1959,1963,1968]);
476__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setMeasurement",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),E=r(d[2]),T=r(d[3]);function u(u,o,_,s=(0,T.getActiveSpan)()){const M=s&&(0,T.getRootSpan)(s);M&&(t.DEBUG_BUILD&&E.debug.log(`[Measurement] Setting measurement on root span: ${u} = ${o} ${_}`),M.addEvent(u,{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:o,[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:_}))}function o(t){if(!t||0===t.length)return;const E={};return t.forEach(t=>{const T=t.attributes||{},u=T[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],o=T[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof u&&"number"==typeof o&&(E[t.name]={value:o,unit:u})}),E}},2007,[1959,1989,1963,1968]);
477__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return"stream"===t.getOptions().traceLifecycle}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return t}})},2008,[]);
478__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"continueTrace",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"isTracingSuppressed",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"startInactiveSpan",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"startNewTrace",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"startSpan",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"startSpanManual",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"suppressTracing",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"withActiveSpan",{enumerable:!0,get:function(){return j}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),p=r(d[4]),c=r(d[5]),S=r(d[6]),u=r(d[7]),l=r(d[8]),f=r(d[9]),T=r(d[10]),C=r(d[11]),I=r(d[12]),R=r(d[13]),_=r(d[14]),b=r(d[15]),P=r(d[16]),E=r(d[17]),y=r(d[18]),A=r(d[19]),O=r(d[20]),h=r(d[21]),N=r(d[22]),w=r(d[23]);const v="__SENTRY_SUPPRESS_TRACING__";function x(n,t){const s=K();if(s.startSpan)return s.startSpan(n,t);const p=G(n),{forceTransaction:c,parentSpan:S,scope:l}=n,f=l?.clone();return(0,o.withScope)(f,()=>J(S)(()=>{const s=(0,o.getCurrentScope)(),l=H(s,S),f=(0,o.getClient)(),T=n.onlyIfParent&&!l?Y(s,f):z({parentSpan:l,spanArguments:p,forceTransaction:c,scope:s});return Q(T)&&l||(0,_._setSpanForScope)(s,T),(0,u.handleCallbackErrors)(()=>t(T),()=>{const{status:n}=(0,b.spanToJSON)(T);!T.isRecording()||n&&"ok"!==n||T.setStatus({code:N.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{T.end()})}))}function D(n,t){const s=K();if(s.startSpanManual)return s.startSpanManual(n,t);const p=G(n),{forceTransaction:c,parentSpan:S,scope:l}=n,f=l?.clone();return(0,o.withScope)(f,()=>J(S)(()=>{const s=(0,o.getCurrentScope)(),l=H(s,S),f=n.onlyIfParent&&!l?Y(s,(0,o.getClient)()):z({parentSpan:l,spanArguments:p,forceTransaction:c,scope:s});return Q(f)&&l||(0,_._setSpanForScope)(s,f),(0,u.handleCallbackErrors)(()=>t(f,()=>f.end()),()=>{const{status:n}=(0,b.spanToJSON)(f);!f.isRecording()||n&&"ok"!==n||f.setStatus({code:N.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function M(n){const t=K();if(t.startInactiveSpan)return t.startInactiveSpan(n);const s=G(n),{forceTransaction:p,parentSpan:c}=n;return(n.scope?t=>(0,o.withScope)(n.scope,t):void 0!==c?n=>j(c,n):n=>n())(()=>{const t=(0,o.getCurrentScope)(),S=H(t,c),u=(0,o.getClient)();return n.onlyIfParent&&!S?Y(t,u):z({parentSpan:S,spanArguments:s,forceTransaction:p,scope:t})})}const U=(s,p)=>{const S=(0,t.getMainCarrier)(),u=(0,n.getAsyncContextStrategy)(S);if(u.continueTrace)return u.continueTrace(s,p);const{sentryTrace:l,baggage:f}=s,T=(0,o.getClient)(),C=(0,c.baggageHeaderToDynamicSamplingContext)(f);return T&&!(0,P.shouldContinueTrace)(T,C?.org_id)?k(p):(0,o.withScope)(n=>{const t=(0,P.propagationContextFromHeaders)(l,f);return n.setPropagationContext(t),(0,_._setSpanForScope)(n,void 0),p()})};function j(n,t){const s=K();return s.withActiveSpan?s.withActiveSpan(n,t):(0,o.withScope)(o=>((0,_._setSpanForScope)(o,n||void 0),t(o)))}function B(n){const t=K();return t.suppressTracing?t.suppressTracing(n):(0,o.withScope)(t=>{t.setSDKProcessingMetadata({[v]:!0});const o=n();return t.setSDKProcessingMetadata({[v]:void 0}),o})}function F(n=(0,o.getCurrentScope)()){const t=K();return t.isTracingSuppressed?t.isTracingSuppressed(n):!0===n.getScopeData().sdkProcessingMetadata[v]}function k(n){const t=K();return t.startNewTrace?t.startNewTrace(n):(0,o.withScope)(t=>(t.setPropagationContext({traceId:(0,I.generateTraceId)(),sampleRand:(0,R.safeMathRandom)()}
478),s.DEBUG_BUILD&&S.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),j(null,n)))}function Y(n,t){t?.recordDroppedEvent("no_parent_span","span");const s=new O.SentryNonRecordingSpan({traceId:n.getPropagationContext().traceId});return(0,w.setCapturedScopesOnSpan)(s,n,(0,o.getIsolationScope)()),s}function z({parentSpan:n,spanArguments:t,forceTransaction:s,scope:p}){const c=(0,o.getIsolationScope)();if(!(0,l.hasSpansEnabled)()){const t={...c.getPropagationContext(),...p.getPropagationContext()},o=n?n.spanContext().traceId:t.traceId,S=new O.SentryNonRecordingSpan({traceId:o});return n&&!s&&(0,b.addChildSpanToSpan)(n,S),(0,w.setCapturedScopesOnSpan)(S,p,c),S}const S=(0,o.getClient)();if($(S,t)){F(p)||S?.recordDroppedEvent("ignored","span");const t=new O.SentryNonRecordingSpan({dropReason:"ignored",traceId:n?.spanContext().traceId??p.getPropagationContext().traceId});return(0,w.setCapturedScopesOnSpan)(t,p,c),t}let u;if(n&&!s)u=q(n,p,t,c),(0,b.addChildSpanToSpan)(n,u);else if(n){const o=(0,E.getDynamicSamplingContextFromSpan)(n),{traceId:s,spanId:S}=n.spanContext(),l=(0,b.spanIsSampled)(n);u=L({traceId:s,parentSpanId:S,...t},p,c,l),(0,E.freezeDscOnSpan)(u,o)}else{const{traceId:n,dsc:o,parentSpanId:s,sampled:S}={...c.getPropagationContext(),...p.getPropagationContext()};u=L({traceId:n,parentSpanId:s,...t},p,c,S),o&&(0,E.freezeDscOnSpan)(u,o)}return(0,y.logSpanStart)(u),u}function G(n){const t={isStandalone:(n.experimental||{}).standalone,...n};if(n.startTime){const o={...t};return o.startTimestamp=(0,b.spanTimeInputToSeconds)(n.startTime),delete o.startTime,o}return t}function K(){const o=(0,t.getMainCarrier)();return(0,n.getAsyncContextStrategy)(o)}function L(n,t,c,u){const l=(0,o.getClient)(),f=l?.getOptions()||{},{name:I=""}=n,R={spanAttributes:{...n.attributes},spanName:I,parentSampled:u};l?.emit("beforeSampling",R,{decision:!1});const _=R.parentSampled??u,b=R.spanAttributes,P=t.getPropagationContext(),E=F(t),[y,O,N]=E?[!1]:(0,A.sampleSpan)(f,{name:I,parentSampled:_,attributes:b,normalizedRequest:c.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,C.parseSampleRate)(P.dsc?.sample_rate)},P.sampleRand),v=new h.SentrySpan({...n,attributes:{[p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[p.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==O&&N?O:void 0,...b},sampled:y}
478);return y||!l||E||(s.DEBUG_BUILD&&S.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),l.recordDroppedEvent("sample_rate",(0,T.hasSpanStreamingEnabled)(l)?"span":"transaction")),(0,w.setCapturedScopesOnSpan)(v,t,c),l&&l.emit("spanStart",v),v}function q(n,t,s,p){const{spanId:c,traceId:S}=n.spanContext(),u=F(t),l=!u&&(0,b.spanIsSampled)(n),f=l?new h.SentrySpan({...s,parentSpanId:c,traceId:S,sampled:l}):new O.SentryNonRecordingSpan({traceId:S});(0,b.addChildSpanToSpan)(n,f),(0,w.setCapturedScopesOnSpan)(f,t,p);const C=(0,o.getClient)();return C?((0,T.hasSpanStreamingEnabled)(C)&&(0,O.spanIsNonRecordingSpan)(f)&&((0,O.spanIsNonRecordingSpan)(n)&&n.dropReason?(f.dropReason=n.dropReason,C.recordDroppedEvent(n.dropReason,"span")):u||(f.dropReason="sample_rate",C.recordDroppedEvent("sample_rate","span"))),C.emit("spanStart",f),s.endTimestamp&&(C.emit("spanEnd",f),C.emit("afterSpanEnd",f)),f):f}function H(n,t){if(t)return t;if(null===t)return;const s=(0,_._getSpanForScope)(n);if(!s)return;const p=(0,o.getClient)();return(p?p.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,b.getRootSpan)(s):s}function J(n){return void 0!==n?t=>j(n,t):n=>n()}function $(n,t){const o=n?.getOptions().ignoreSpans;return!!(n&&(0,T.hasSpanStreamingEnabled)(n)&&o?.length)&&(0,f.shouldIgnoreSpan)({description:t.name||"",op:t.attributes?.[p.SEMANTIC_ATTRIBUTE_SENTRY_OP]||t.op,attributes:t.attributes},o)}function Q(n){return(0,O.spanIsNonRecordingSpan)(n)&&"ignored"===n.dropReason}},2009,[1969,1964,1988,1959,1989,1993,1963,2010,1997,1998,2008,1995,1983,1977,1984,1968,1992,2002,2006,2011,1999,2000,1990,1991]);
479__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return t}});var e=r(d[0]),n=r(d[1]);function t(e,n,t=()=>{},o=()=>{}){let u;try{u=e()}catch(e){throw n(e),t(),e}return c(u,n,t,o)}function c(t,c,o,u){return(0,n.isThenable)(t)?(0,e.chainAndCopyPromiseLike)(t,e=>{o(),u(e)},e=>{c(e),o()}):(o(),u(t),t)}},2010,[1986,1976]);
480__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sampleSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),p=r(d[2]),o=r(d[3]);function s(s,l,c){if(!(0,p.hasSpansEnabled)(s))return[!1];let u,f;"function"==typeof s.tracesSampler?(f=s.tracesSampler({...l,inheritOrSampleWith:t=>"number"==typeof l.parentSampleRate?l.parentSampleRate:"boolean"==typeof l.parentSampled?Number(l.parentSampled):t}),u=!0):void 0!==l.parentSampled?f=l.parentSampled:void 0!==s.tracesSampleRate&&(f=s.tracesSampleRate,u=!0);const S=(0,o.parseSampleRate)(f);if(void 0===S)return t.DEBUG_BUILD&&n.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(f)} of type ${JSON.stringify(typeof f)}.`),[!1];if(!S)return t.DEBUG_BUILD&&n.debug.log("[Tracing] Discarding transaction because "+("function"==typeof s.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,S,u];const b=c<S;return b||t.DEBUG_BUILD&&n.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(f)})`),[b,S,u]}},2011,[1959,1963,1997,1995]);
481__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"bindScopeToEmitter",{enumerable:!0,get:function(){return f}});var n=r(d[0]);const t=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],o=["removeListener","off","removeEventListener"],c=Symbol("SentryScopeBoundListeners");let u;function s(n){return void 0!==u&&(n===u||n.listener===u)}function f(c,u=(0,n.getCurrentScope)()){const s=c;if(S(s))return c;h(s);for(const n of t)"function"==typeof s[n]&&(s[n]=y(s,s[n],u));for(const n of o)"function"==typeof s[n]&&(s[n]=v(s,s[n]));return"function"==typeof s.removeAllListeners&&(s.removeAllListeners=L(s,s.removeAllListeners)),c}function l(t,o){return function(...c){return(0,n.withScope)(o,()=>t.apply(this,c))}}function p(n){return"function"==typeof n}function y(n,t,o){return function(...c){const f=c[0],y=c[1],v=c.slice(2);if(!p(y)||s(y))return t.apply(this,c);const L=S(n)||h(n);let b=L.get(f);b||(b=new WeakMap,L.set(f,b));let _=b.get(y);_||(_=l(y,o),b.set(y,_));const w=u;u=_;try{return t.call(this,f,_,...v)}finally{u=w}}}function v(n,t){return function(...o){const c=o[0],u=o[1],s=o.slice(2),f=p(u)?S(n)?.get(c)?.get(u):void 0;return f?t.call(this,c,f,...s):t.apply(this,o)}}function L(n,t){return function(...o){const c=S(n);if(c)if(0===o.length)h(n);else{const n=o[0];c.delete(n)}return t.apply(this,o)}}function h(n){const t=new Map;return n[c]=t,t}function S(n){return n[c]}},2012,[1988]);
482__d(function(g,r,i,a,m,e,d){"use strict";
482Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyBeforeSendSpanCallback",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"captureSpan",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return N}});var n=r(d[0]),t=r(d[1]),S=r(d[2]),T=r(d[3]),E=r(d[4]),s=r(d[5]),o=r(d[6]);function _(s,o){const _=(0,S.spanToStreamedSpanJSON)(s),I=(0,S.INTERNAL_getSegmentSpan)(s),R=(0,S.spanToStreamedSpanJSON)(I),{isolationScope:M,scope:f}=(0,T.getCapturedScopesOnSpan)(s),U=(0,t.getCombinedScopeData)(M,f);u(_,R,o,U);const b=s.kind;o.emit("preprocessSpan",_,{spanKind:b}),_.is_segment&&(p(_,U),c(_,o),o.emit("processSegmentSpan",_)),o.emit("processSpan",_);const{beforeSendSpan:C}=o.getOptions(),l=C&&(0,E.isStreamedBeforeSendSpanCallback)(C)?A(_,C):_,O=l.attributes?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return O&&N(l,{"sentry.span.source":O}),{...(0,S.streamedSpanJsonToSerializedSpan)(l),_segmentSpan:I}}function p(n,t){N(n,(0,s.scopeContextsToSpanAttributes)(t.contexts))}function N(n,t){const S=n.attributes??(n.attributes={});Object.entries(t).forEach(([n,t])=>{null==t||n in S||(S[n]=t)})}function c(t,S){const T=S.getIntegrationNames();T.length&&N(t,{[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:T})}function u(t,S,T,E){const s=T.getSdkMetadata(),{release:_,environment:p}=T.getOptions();N(t,{[n.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:_,[n.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:p||o.DEFAULT_ENVIRONMENT,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME]:S.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID]:S.span_id,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME]:s?.sdk?.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION]:s?.sdk?.version,[n.SEMANTIC_ATTRIBUTE_USER_ID]:E.user?.id,[n.SEMANTIC_ATTRIBUTE_USER_EMAIL]:E.user?.email,[n.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:E.user?.ip_address,[n.SEMANTIC_ATTRIBUTE_USER_USERNAME]:E.user?.username,...E.attributes})}function A(n,t){const T=t(n);return T||((0,S.showSpanDropWarning)(),n)}},2013,[1989,2014,1968,1991,2004,2015,2003]);
483__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getCombinedScopeData",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"mergeAndOverwriteScopeData",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"mergeScopeData",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);function c(t,n){const{fingerprint:s,span:o,breadcrumbs:c,sdkProcessingMetadata:p}=n;l(t,n),o&&y(t,o),P(t,s),b(t,c),x(t,p)}function p(t,n){const{extra:o,tags:c,attributes:p,user:f,contexts:l,level:b,sdkProcessingMetadata:x,breadcrumbs:y,fingerprint:P,eventProcessors:h,attachments:S,propagationContext:k,transactionName:v,span:O}=n;u(t,"extra",o),u(t,"tags",c),u(t,"attributes",p),u(t,"user",f),u(t,"contexts",l),t.sdkProcessingMetadata=(0,s.merge)(t.sdkProcessingMetadata,x,2),b&&(t.level=b),v&&(t.transactionName=v),O&&(t.span=O),y.length&&(t.breadcrumbs=[...t.breadcrumbs,...y]),P.length&&(t.fingerprint=[...t.fingerprint,...P]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),S.length&&(t.attachments=[...t.attachments,...S]),t.propagationContext={...t.propagationContext,...k}}function u(t,n,o){t[n]=(0,s.merge)(t[n],o,1)}function f(n,s){const o=(0,t.getGlobalScope)().getScopeData();return n&&p(o,n.getScopeData()),s&&p(o,s.getScopeData()),o}function l(t,n){const{extra:s,tags:o,user:c,contexts:p,level:u,transactionName:f}=n;Object.keys(s).length&&(t.extra={...s,...t.extra}),Object.keys(o).length&&(t.tags={...o,...t.tags}),Object.keys(c).length&&(t.user={...c,...t.user}),Object.keys(p).length&&(t.contexts={...p,...t.contexts}),u&&(t.level=u),f&&"transaction"!==t.type&&(t.transaction=f)}function b(t,n){const s=[...t.breadcrumbs||[],...n];t.breadcrumbs=s.length?s:void 0}function x(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}function y(t,s){t.contexts={trace:(0,o.spanToTraceContext)(s),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:(0,n.getDynamicSamplingContextFromSpan)(s),...t.sdkProcessingMetadata};const c=(0,o.getRootSpan)(s),p=(0,o.spanToJSON)(c).description;p&&!t.transaction&&"transaction"===t.type&&(t.transaction=p)}function P(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n)),t.fingerprint.length||delete t.fingerprint}},2014,[1988,2002,1982,1968]);
484__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const o={},{response:s,profile:n,cloud_resource:l,culture:u,state:c}=t;if(s&&(null!=s.status_code&&(o["http.response.status_code"]=s.status_code),null!=s.body_size&&(o["http.response.body.size"]=s.body_size)),n&&(n.profile_id&&(o["sentry.profile_id"]=n.profile_id),n.profiler_id&&(o["sentry.profiler_id"]=n.profiler_id)),l)for(const[t,s]of Object.entries(l))null!=s&&(o[t]=s);
484u&&(u.locale&&(o["culture.locale"]=u.locale),u.timezone&&(o["culture.timezone"]=u.timezone)),c?.state&&"string"==typeof c.state.type&&(o["state.type"]=c.state.type);const p=t.angular;if(p){const t=p.version;"string"!=typeof t&&"number"!=typeof t||(o["angular.version"]=t)}const f=t.react;if(f){const t=f.version;"string"!=typeof t&&"number"!=typeof t||(o["react.version"]=t)}return o}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"scopeContextsToSpanAttributes",{enumerable:!0,get:function(){return t}})},2015,[]);
485__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return D}});var e=_r(d[0]),t=_r(d[1]),n=_r(d[2]),r=_r(d[3]),o=_r(d[4]),u=_r(d[5]),c=_r(d[6]),s=_r(d[7]),f=_r(d[8]),p=_r(d[9]),l=_r(d[10]);function b(t,n){return(0,e.getCurrentScope)().captureException(t,(0,s.parseEventHintOrCaptureContext)(n))}function S(t,n){const r="string"==typeof n?n:void 0,o="string"!=typeof n?{captureContext:n}:void 0;return(0,e.getCurrentScope)().captureMessage(t,r,o)}function I(t,n){return(0,e.getCurrentScope)().captureEvent(t,n)}function y(t,n){(0,e.getIsolationScope)().setContext(t,n)}function C(t){(0,e.getIsolationScope)().setExtras(t)}function O(t,n){(0,e.getIsolationScope)().setExtra(t,n)}function P(t){(0,e.getIsolationScope)().setTags(t)}function j(t,n){(0,e.getIsolationScope)().setTag(t,n)}function h(t){(0,e.getIsolationScope)().setAttributes(t)}function v(t,n){(0,e.getIsolationScope)().setAttribute(t,n)}function E(t){(0,e.getIsolationScope)().setUser(t)}function k(t){(0,e.getIsolationScope)().setConversationId(t)}function x(){return(0,e.getIsolationScope)().lastEventId()}function B(n,r){const u=(0,e.getCurrentScope)(),s=(0,e.getClient)();if(s){if(s.captureCheckIn)return s.captureCheckIn(n,r,u);t.DEBUG_BUILD&&o.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else t.DEBUG_BUILD&&o.debug.warn("Cannot capture check-in. No client defined.");return(0,c.uuid4)()}function D(t,n,o){function c(){const e=B({monitorSlug:t,status:"in_progress"},o),r=(0,p.timestampInSeconds)();function c(n){B({monitorSlug:t,status:n,checkInId:e,duration:(0,p.timestampInSeconds)()-r})}let s;try{s=n()}catch(e){throw c("error"),e}return(0,u.isThenable)(s)?s.then(e=>(c("ok"),e),e=>{throw c("error"),e}):(c("ok"),s)}return(0,e.withIsolationScope)(()=>o?.isolateTrace?(0,r.startNewTrace)(c):c())}async function U(n){const r=(0,e.getClient)();return r?r.flush(n):(t.DEBUG_BUILD&&o.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function _(n){const r=(0,e.getClient)();return r?r.close(n):(t.DEBUG_BUILD&&o.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function w(){return!!(0,e.getClient)()}function T(){const t=(0,e.getClient)();return!1!==t?.getOptions().enabled&&!!t?.getTransport()}function A(t){(0,e.getIsolationScope)().addEventProcessor(t)}function L(t){const r=(0,e.getIsolationScope)(),{user:o}=(0,f.getCombinedScopeData)(r,(0,e.getCurrentScope)()),{userAgent:u}
485=l.GLOBAL_OBJ.navigator||{},c=(0,n.makeSession)({user:o,...u&&{userAgent:u},...t}),s=r.getSession();return"ok"===s?.status&&(0,n.updateSession)(s,{status:"exited"}),G(),r.setSession(c),c}function G(){const t=(0,e.getIsolationScope)(),r=(0,e.getCurrentScope)().getSession()||t.getSession();r&&(0,n.closeSession)(r),M(),t.setSession()}function M(){const t=(0,e.getIsolationScope)(),n=(0,e.getClient)(),r=t.getSession();r&&n&&n.captureSession(r)}function N(e=!1){e?G():M()}},2016,[1988,1959,1973,2009,1963,1976,1974,2017,2014,1981,1961]);
486__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyClientOptions",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"applyDebugIds",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"applyDebugMeta",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"parseEventHintOrCaptureContext",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"prepareEvent",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),i=r(d[5]),u=r(d[6]),l=r(d[7]),p=r(d[8]),f=r(d[9]);function b(t,o,s,i,l,b){const{normalizeDepth:O=3,normalizeMaxBreadth:P=1e3}=t,j={...o,event_id:o.event_id||s.event_id||(0,c.uuid4)(),timestamp:o.timestamp||(0,f.dateTimestampInSeconds)()},k=s.integrations||t.integrations.map(t=>t.name);x(j,t),h(j,k),l&&l.emit("applyFrameMetadata",o),void 0===o.type&&_(j,t.stackParser);const z=E(i,s.captureContext);s.mechanism&&(0,c.addExceptionMechanism)(j,s.mechanism);const C=l?l.getEventProcessors():[],D=(0,u.getCombinedScopeData)(b,z),M=[...s.attachments||[],...D.attachments];M.length&&(s.attachments=M),(0,u.applyScopeDataToEvent)(j,D);const S=[...C,...D.eventProcessors];return(s.data&&!0===s.data.__sentry__?(0,p.resolvedSyncPromise)(j):(0,n.notifyEventProcessors)(S,j,s)).then(t=>(t&&v(t),"number"==typeof O&&O>0?y(t,O,P):t))}function x(n,o){const{environment:s,release:c,dist:i,maxValueLength:u}=o;n.environment=n.environment||s||t.DEFAULT_ENVIRONMENT,!n.release&&c&&(n.release=c),!n.dist&&i&&(n.dist=i);const p=n.request;p?.url&&u&&(p.url=(0,l.truncate)(p.url,u)),u&&n.exception?.values?.forEach(t=>{t.value&&(t.value=(0,l.truncate)(t.value,u))})}function _(t,n){const o=(0,s.getFilenameToDebugIdMap)(n);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=o[t.filename])})})}function v(t){const n={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const o=t.debug_meta.images;Object.entries(n).forEach(([t,n])=>{o.push({type:"sourcemap",code_file:t,debug_id:n})})}function h(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}function y(t,n,o){if(!t)return null;const s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,i.normalize)(t.data,n,o)}}))},...t.user&&{user:(0,i.normalize)(t.user,n,o)},...t.contexts&&{contexts:(0,i.normalize)(t.contexts,n,o)},...t.extra&&{extra:(0,i.normalize)(t.extra,n,o)}};return t.contexts?.trace&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=(0,i.normalize)(t.contexts.trace.data,n,o))),t.spans&&(s.spans=t.spans.map(t=>({...t,...t.data&&{data:(0,i.normalize)(t.data,n,o)}}))),t.contexts?.flags&&s.contexts&&(s.contexts.flags=(0,i.normalize)(t.contexts.flags,3,o)),s}function E(t,n){if(!n)return t;const s=t?t.clone():new o.Scope;return s.update(n),s}function O(t){if(t)return P(t)||k(t)?{captureContext:t}:t}function P(t){return t instanceof o.Scope||"function"==typeof t}const j=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function k(t){return Object.keys(t).some(t=>j.includes(t))}},2017,[2003,2018,1972,2020,1974,1979,2014,1978,2019,1981]);
487__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"notifyEventProcessors",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function s(n,t,s,l=0){try{const f=u(t,s,n,l);return(0,o.isThenable)(f)?f:(0,c.resolvedSyncPromise)(f)}catch(n){return(0,c.rejectedSyncPromise)(n)}}function u(c,s,l,f){const b=l[f];if(!c||!b)return c;const v=b({...c},s);return n.DEBUG_BUILD&&null===v&&t.debug.log(`Event processor "${b.id||"?"}" dropped event`),(0,o.isThenable)(v)?v.then(n=>u(n,s,l,f+1)):u(v,s,l,f+1)}},2018,[1959,1963,1976,2019]);
488__d(function(g,r,i,a,m,_e,d){"use strict";
488Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return t}});var e=r(d[0]);function t(e){return new s(t=>{t(e)})}function n(e){return new s((t,n)=>{n(e)})}class s{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new s((n,s)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){s(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){s(e)}else s(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,n)=>{let s,c;return this.then(t=>{c=!1,s=t,e&&e()},t=>{c=!0,s=t,e&&e()}).then(()=>{c?n(s):t(s)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(t){const n=(t,n)=>{0===this._state&&((0,e.isThenable)(n)?n.then(s,c):(this._state=t,this._value=n,this._executeHandlers()))},s=e=>{n(1,e)},c=e=>{n(2,e)};try{t(s,c)}catch(e){c(e)}}}},2019,[1976]);
489__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDebugImagesForResources",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]);let o,c,s,u;function f(t){const f=n.GLOBAL_OBJ._sentryDebugIds,i=n.GLOBAL_OBJ._debugIds;if(!f&&!i)return{};const l=f?Object.keys(f):[],b=i?Object.keys(i):[];if(u&&l.length===c&&b.length===s)return u;c=l.length,s=b.length,u={},o||(o={});const _=(n,c)=>{for(const s of n){const n=c[s],f=o?.[s];if(f&&u&&n)u[f[0]]=n,o&&(o[s]=[f[0],n]);else if(n){const c=t(s);for(let t=c.length-1;t>=0;t--){const f=c[t],i=f?.filename;if(i&&u&&o){u[i]=n,o[s]=[i,n];break}}}}};return f&&_(l,f),i&&_(b,i),u}function i(n,o){const c=f(n);if(!c)return[];const s=[];for(const n of o){const o=(0,t.normalizeStackTracePath)(n);o&&c[o]&&s.push({type:"sourcemap",code_file:n,debug_id:c[o]})}return s}},2020,[1966,1961]);
490__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function u(t,s=1){const l=(0,c.getAsyncContextStrategy)((0,n.getMainCarrier)()).getTracingChannelBinding?.();l?t():s&&(0,o.safeUnref)(setTimeout(()=>{u(t,s-1)},1))}function s(n,o){return{asyncLocalStorage:n,getStoreWithActiveSpan:n=>{const{scope:c,isolationScope:u}=o(),s=c.clone();return(0,t._setSpanForScope)(s,n),{scope:s,isolationScope:u}}}}},2021,[1964,1984,2022,1969]);
491__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return"object"==typeof n&&"function"==typeof n.unref&&n.unref(),n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"safeUnref",{enumerable:!0,get:function(){return n}})},2022,[]);
492__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return p}});var n=r(d[0]);const t="7";function o(n){const t=n.protocol?`${n.protocol}:`:"",o=n.port?`:${n.port}`:"";return`${t}//${n.host}${o}${n.path?`/${n.path}`:""}/api/`}function c(n){return`${o(n)}${n.projectId}/envelope/`}function u(n,o){const c={sentry_version:t};return n.publicKey&&(c.sentry_key=n.publicKey),o&&(c.sentry_client=`${o.name}/${o.version}`),new URLSearchParams(c).toString()}function s(n,t,o){return t||`${c(n)}?${u(n,o)}`}function p(t,c){const u=(0,n.makeDsn)(t);if(!u)return"";const s=`${o(u)}embed/error-page/`;let p=`dsn=${(0,n.dsnToString)(u)}`;for(const n in c)if("dsn"!==n&&"onClose"!==n)if("user"===n){const n=c.user;if(!n)continue;n.name&&(p+=`&name=${encodeURIComponent(n.name)}`),n.email&&(p+=`&email=${encodeURIComponent(n.email)}`)}else p+=`&${encodeURIComponent(n)}=${encodeURIComponent(c[n])}`;return`${s}?${p}`}},2023,[1994]);
493__d(function(g,r,i,a,m,_e,d){"use strict";
493Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return J}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),h=r(d[8]),l=r(d[9]),_=r(d[10]),f=r(d[11]),v=r(d[12]),E=r(d[13]),b=r(d[14]),S=r(d[15]),D=r(d[16]),y=r(d[17]),B=r(d[18]),I=r(d[19]),U=r(d[20]),w=r(d[21]),P=r(d[22]),L=r(d[23]),O=r(d[24]),T=r(d[25]),C=r(d[26]),k=r(d[27]),N=r(d[28]),R=r(d[29]),x=r(d[30]);const M="Not capturing exception because it's already been captured.",F="Discarded session because of missing or non-string release",G=Symbol.for("SentryInternalError"),A=Symbol.for("SentryDoNotSendEventError");function $(e){return{message:e,[G]:!0}}function j(e){return{message:e,[A]:!0}}function W(e){return!!e&&"object"==typeof e&&G in e}function q(e){return!!e&&"object"==typeof e&&A in e}function z(e,t,n,s,o){let c,u=0,p=!1;e.on(n,()=>{u=0,clearTimeout(c),p=!1}),e.on(t,t=>{if(u+=s(t),u>=8e5)o(e);else if(!p){const t=e.getOptions()._flushInterval??5e3;t>0&&(p=!0,c=(0,N.safeUnref)(setTimeout(()=>{o(e)},t)))}}),e.on("flush",()=>{o(e)})}class J{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=(0,L.makePromiseBuffer)(t.transportOptions?.bufferSize??v.DEFAULT_TRANSPORT_BUFFER_SIZE),this._dataCollection=(0,x.resolveDataCollectionOptions)(t),t.dsn?this._dsn=(0,S.makeDsn)(t.dsn):s.DEBUG_BUILD&&b.debug.warn("No DSN provided, client will not send events."),this._dsn){const n=(0,e.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&z(this,"afterCaptureLog","flushLogs",X,u._INTERNAL_flushLogsBuffer);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&z(this,"afterCaptureMetric","flushMetrics",Q,p._INTERNAL_flushMetricsBuffer)}captureException(e,t,n){const o=(0,U.uuid4)();if((0,U.checkOrSetAlreadyCaught)(e))return s.DEBUG_BUILD&&b.debug.log(M),o;const c={event_id:o,...t};return this._process(()=>this.eventFromException(e,c).then(e=>this._captureEvent(e,c,n)).then(e=>e),"error"),c.event_id}captureMessage(e,t,n,s){const o={event_id:(0,U.uuid4)(),...n},c=(0,B.isParameterizedString)(e)?e:String(e),u=(0,B.isPrimitive)(e),p=u?this.eventFromMessage(c,t,o):this.eventFromException(e,o);return this._process(()=>p.then(e=>this._captureEvent(e,o,s)),u?"unknown":"error"),o.event_id}captureEvent(e,t,n){const o=(0,U.uuid4)();if(t?.originalException&&(0,U.checkOrSetAlreadyCaught)(t.originalException))return s.DEBUG_BUILD&&b.debug.log(M),o;const c={event_id:o,...t},u=e.sdkProcessingMetadata||{},p=u.capturedSpanScope,h=u.capturedSpanIsolationScope,l=V(e.type);return this._process(()=>this._captureEvent(e,c,p||n,h),l),c.event_id}captureSession(e){this.sendSession(e),(0,h.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){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),s=await t.flush(e);return n&&s}async close(e){(0,u._INTERNAL_flushLogsBuffer)(this);const 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){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),(0,c.setupIntegration)(this,e,this._integrations),t||(0,c.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}
493){this.emit("beforeSendEvent",e,t);const n=(0,f.extractGenAiSpansFromEvent)(e,this);let s=(0,o.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])s=(0,D.addItemToEnvelope)(s,(0,D.createAttachmentEnvelopeItem)(e));n&&(s=(0,D.addItemToEnvelope)(s,n)),this.sendEnvelope(s).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:n,environment:c=t.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const t=e.attrs||{};if(!t.release&&!n)return void(s.DEBUG_BUILD&&b.debug.warn(F));t.release=t.release||n,t.environment=t.environment||c,e.attrs=t}else{if(!e.release&&!n)return void(s.DEBUG_BUILD&&b.debug.warn(F));e.release=e.release||n,e.environment=e.environment||c}this.emit("beforeSendSession",e);const u=(0,o.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(u)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const o=`${e}:${t}`;s.DEBUG_BUILD&&b.debug.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,s=(...e)=>t(...e);return n.add(s),()=>{n.delete(s)}}emit(e,...t){const 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 s.DEBUG_BUILD&&b.debug.error("Error while sending envelope:",e),{}}return s.DEBUG_BUILD&&b.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,c.setupIntegrations)(this,e),(0,c.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,s=!1;const o=t.exception?.values;if(o){s=!0,n=!1;for(const e of o)if(!1===e.mechanism?.handled){n=!0;break}}const c="ok"===e.status;(c&&0===e.errors||c&&n)&&((0,h.updateSession)(e,{...n&&{status:"crashed"},errors:e.errors||Number(s||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,s,o){const c=this.getOptions(),u=this.getIntegrationNames();return!t.integrations&&u.length&&(t.integrations=u),this.emit("preprocessEvent",e,t),e.type||o.setLastEventId(e.event_id||t.event_id),(0,P.prepareEvent)(c,e,t,s,this,o).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,n.getTraceContextFromScope)(s)},...e.contexts};const o=(0,l.getDynamicSamplingContextFromScope)(this,s);return e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},o=(0,n.getCurrentScope)(),c=(0,n.getIsolationScope)()){return s.DEBUG_BUILD&&H(e)&&b.debug.log(`Captured error event \`${(0,y.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,o,c).then(e=>e.event_id,e=>{s.DEBUG_BUILD&&(q(e)?b.debug.log(e.message):W(e)?b.debug.warn(e.message):b.debug.warn(e))})}_processEvent(e,t,n,s){const o=this.getOptions(),{sampleRate:c}=o,u=K(e),p=H(e),h=`before send for type \`${e.type||"error"}\``,l=void 0===c?void 0:(0,w.parseSampleRate)(c);if(p&&"number"==typeof l&&(0,O.safeMathRandom)()>l)return this.recordDroppedEvent("sample_rate","error"),(0,k.rejectedSyncPromise)(j(`Discarding event because it's not included in the random sample (sampling rate = ${c})`));const _=V(e.type);return this._prepareEvent(e,t,n,s).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",_),j("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;return Y(Z(this,o,e,t),h)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",_),u){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw j(`${h} returned \`null\`, will not send event.`)}const c=n.getSession()||s.getSession();if(p&&c&&this._updateSessionFromEvent(c,o),u){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const l=o.transaction_info;if(u&&l&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...l,source:e}}return this.sendEvent(o,t),o}).then(null,e=>{if(q(e)||W(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),$(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===L.SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,s]=e.split(":");return{reason:n,category:s,quantity:t}})}_flushOutcomes(){s.DEBUG_BUILD&&b.debug.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(s.DEBUG_BUILD&&b.debug.log("No outcomes to send"));if(!this._dsn)return void(s.DEBUG_BUILD&&b.debug.log("No dsn provided, will not send outcomes"));s.DEBUG_BUILD&&b.debug.log("Sending outcomes:",e);const t=(0,E.createClientReportEnvelope)(e,this._options.tunnel&&(0,S.dsnToString)(this._dsn));this.sendEnvelope(t)}}function V(e){return"replay_event"===e?"replay":e||"error"}function Y(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,B.isThenable)(e))return e.then(e=>{if(!(0,B.isPlainObject)(e)&&null!==e)throw $(n);return e},e=>{throw $(`${t} rejected with ${e}`)});if(!(0,B.isPlainObject)(e)&&null!==e)throw $(n);return e}function Z(e,t,n,s){const{beforeSend:o,beforeSendTransaction:c,ignoreSpans:u}=t,p=!(0,_.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan;let h=n;if(H(h)&&o)return o(h,s);if(K(h)){if(p||u){const t=(0,R.convertTransactionEventToSpanJson)(h);if(u?.length&&(0,T.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},u))return null;if(p){const e=p(t);e?h=(0,I.merge)(n,(0,R.convertSpanJsonToTransactionEvent)(e)):(0,C.showSpanDropWarning)()}if(h.spans){const t=[],n=h.spans;for(const e of n)if(u?.length&&(0,T.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},u))(0,T.reparentChildSpans)(n,e);else if(p){const n=p(e);n?t.push(n):((0,C.showSpanDropWarning)(),t.push(e))}else t.push(e);const s=h.spans.length-t.length;s&&e.recordDroppedEvent("before_send","span",s),h.spans=t}}if(c){if(h.spans){const e=h.spans.length;h.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return c(h,s)}}return h}function H(e){return void 0===e.type}function K(e){return"transaction"===e.type}function Q(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+ee(e.attributes)}function X(e){let t=0;return e.message&&(t+=2*e.message.length),t+ee(e.attributes)}function ee(e){if(!e)return 0;let t=0;
493return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*te(e[0]):(0,B.isPrimitive)(e)?t+=te(e):t+=100}),t}function te(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}},2024,[2023,2003,1988,1959,2001,2025,2026,2034,1973,2002,2004,2036,2038,2041,1963,1994,2005,2042,1976,1982,1974,1995,2017,2039,1977,1998,1968,2019,2022,2043,2044]);
494__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addIntegration",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"afterSetupIntegrations",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"defineIntegration",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extendIntegration",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"installedIntegrations",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setupIntegration",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"setupIntegrations",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const c=[];function u(n){const t={};return n.forEach(n=>{const{name:o}=n,c=t[o];c&&!c.isDefaultInstance&&n.isDefaultInstance||(t[o]=n)}),Object.values(t)}function s(n){const t=n.defaultIntegrations||[],o=n.integrations;let c;if(t.forEach(n=>{n.isDefaultInstance=!0}),Array.isArray(o))c=[...t,...o];else if("function"==typeof o){const n=o(t);c=Array.isArray(n)?n:[n]}else c=t;return u(c)}function f(n,t){const o={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(n)}),t.forEach(t=>{t&&l(n,t,o)}),o}function p(n,t){for(const o of t)o?.afterAllSetup&&o.afterAllSetup(n)}function l(n,u,s){if(s[u.name])t.DEBUG_BUILD&&o.debug.log(`Integration skipped because it was already installed: ${u.name}`);else{if(s[u.name]=u,c.includes(u.name)||"function"!=typeof u.setupOnce||(u.setupOnce(),c.push(u.name)),u.setup&&"function"==typeof u.setup&&u.setup(n),"function"==typeof u.preprocessEvent){const t=u.preprocessEvent.bind(u);n.on("preprocessEvent",(o,c)=>t(o,c,n))}if("function"==typeof u.processEvent){const t=u.processEvent.bind(u),o=Object.assign((o,c)=>t(o,c,n),{id:u.name});n.addEventProcessor(o)}["processSpan","processSegmentSpan"].forEach(t=>{const o=u[t];"function"==typeof o&&n.on(t,t=>o.call(u,t,n))}),t.DEBUG_BUILD&&o.debug.log(`Integration installed: ${u.name}`)}}function b(c){const u=(0,n.getClient)();u?u.addIntegration(c):t.DEBUG_BUILD&&o.debug.warn(`Cannot add integration "${c.name}" because no SDK Client is available.`)}function y(n){return n}function I(n,t){const o={...n,...t};for(const c in t){const u=n[c],s=t[c];if("function"==typeof u&&"function"==typeof s){const n=new Proxy(u,{apply:(n,t,o)=>(Reflect.apply(n,t,o),Reflect.apply(s,t,o))});o[c]=n}}return o}},2025,[1988,1959,1963]);
495__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"_INTERNAL_getLogBuffer",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"_removeLoneSurrogates",{enumerable:!0,get:function(){return D}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),l=r(d[5]),c=r(d[6]),f=r(d[7]),p=r(d[8]),_=r(d[9]),b=r(d[10]),y=r(d[11]),v=r(d[12]);const L=100;function S(t,n,o,s=!0){!o||t[n]&&!s||(t[n]=o)}function E(t,n){const o=B(),s=O(t);void 0===s?o.set(t,[n]):s.length>=L?(N(t,s),o.set(t,[n])):o.set(t,[...s,n])}function I(n,v=(0,o.getCurrentScope)(),L=E){const I=v?.getClient()??(0,o.getClient)();if(!I)return void(s.DEBUG_BUILD&&u.debug.warn("No client available to capture log."));const{release:N,environment:O,enableLogs:B=!1,beforeSendLog:R}=I.getOptions();if(!B)return void(s.DEBUG_BUILD&&u.debug.warn("logging option not enabled, log will not be captured."));const[,j]=(0,b._getTraceInfoFromScope)(I,v),C={...n.attributes},{user:{id:A,email:P,username:U},attributes:h={}}=(0,c.getCombinedScopeData)((0,o.getIsolationScope)(),v);S(C,"user.id",A,!1),S(C,"user.email",P,!1),S(C,"user.name",U,!1),S(C,"sentry.release",N),S(C,"sentry.environment",O);const{name:k,version:w}=I.getSdkMetadata()?.sdk??{};S(C,"sentry.sdk.name",k),S(C,"sentry.sdk.version",w);const M=I.getIntegrationByName("Replay"),z=M?.getReplayId(!0);S(C,"sentry.replay_id",z),z&&"buffer"===M?.getRecordingMode()&&S(C,"sentry._internal.replay_is_buffering",!0);const F=n.message;
495if((0,l.isParameterizedString)(F)){const{__sentry_template_string__:t,__sentry_template_values__:n=[]}=F;n?.length&&(C["sentry.message.template"]=t),n.forEach((t,n)=>{C[`sentry.message.parameter.${n}`]=t})}const G=(0,f._getSpanForScope)(v);S(C,"sentry.trace.parent_span_id",G?.spanContext().spanId);const W={...n,attributes:C};I.emit("beforeCaptureLog",W);const x=R?(0,u.consoleSandbox)(()=>R(W)):W;if(!x)return I.recordDroppedEvent("before_send","log_item",1),void(s.DEBUG_BUILD&&u.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:V,message:Y,attributes:q={},severityNumber:X}=x,$=(0,p.timestampInSeconds)(),H=(0,_.getSequenceAttribute)($);L(I,{timestamp:$,level:V,body:D(String(Y)),trace_id:j?.trace_id,severity_number:X??y.SEVERITY_TEXT_TO_SEVERITY_NUMBER[V],attributes:T({...(0,t.serializeAttributes)(h),...(0,t.serializeAttributes)(q,!0),[H.key]:H.value})}),I.emit("afterCaptureLog",x)}function N(t,n){const o=n??O(t)??[];if(0===o.length)return;const s=t.getOptions(),u=(0,v.createLogEnvelope)(o,s._metadata,s.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);B().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(u)}function O(t){return B().get(t)}function B(){return(0,n.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function T(t){const n={};for(const[o,s]of Object.entries(t)){const t=D(o);"string"===s.type?n[t]={...s,value:D(s.value)}:n[t]=s}return n}function D(t){const n=Object(t),o=n.isWellFormed,s=n.toWellFormed;return"function"==typeof o&&"function"==typeof s?o.call(t)?t:s.call(t):t}},2026,[1987,1964,1988,1959,1963,1976,2014,1984,1981,2027,2028,2029,2030]);
496__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSequenceAttribute",{enumerable:!0,get:function(){return o}});const t="sentry.timestamp.sequence";let n,u=0;function o(o){const c=Math.floor(1e3*o);void 0!==n&&c!==n&&(u=0);const s=u;return u++,n=c,{key:t,value:{value:s,type:"integer"}}}},2027,[]);
497__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getTraceInfoFromScope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(c,p){return p?(0,t.withScope)(p,()=>{const u=(0,o.getActiveSpan)(),S=u?(0,o.spanToTraceContext)(u):(0,t.getTraceContextFromScope)(p);return[u?(0,n.getDynamicSamplingContextFromSpan)(u):(0,n.getDynamicSamplingContextFromScope)(c,p),S]}):[void 0,void 0]}},2028,[1988,2002,1968]);
498__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SEVERITY_TEXT_TO_SEVERITY_NUMBER",{enumerable:!0,get:function(){return t}});const t={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},2029,[]);
499__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createLogContainerEnvelopeItem",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createLogEnvelope",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(n,t){const s=t?"auto":"never";return[{type:"log",item_count:n.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}function c(o,c,u,l,p){const f={};return c?.sdk&&(f.sdk={name:c.sdk.name,version:c.sdk.version}),u&&l&&(f.dsn=(0,n.dsnToString)(l)),(0,t.createEnvelope)(f,[s(o,p)])}},2030,[1994,2005,2031]);
500__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isBrowser",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]);function o(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||u())}function u(){const n=t.GLOBAL_OBJ.process;return"renderer"===n?.type}},2031,[2032,1961]);
501__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNodeEnv",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"loadModule",{enumerable:!0,get:function(){return c}});var t=r(d[0]);
501function n(){return!(0,t.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,n){return t.require(n)}function c(t,n=m){let c;try{c=o(n,t)}catch{}if(!c)try{const{cwd:u}=o(n,"process");c=o(n,`${u()}/node_modules/${t}`)}catch{}return c}},2032,[2033]);
502__d(function(g,r,i,a,m,e,d){"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function t(){
503/*! __SENTRY_SDK_SOURCE__ */
504return"npm"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSDKSource",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"isBrowserBundle",{enumerable:!0,get:function(){return n}})},2033,[]);
505__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"_INTERNAL_getMetricBuffer",{enumerable:!0,get:function(){return E}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]),p=r(d[7]),f=r(d[8]),b=r(d[9]),_=r(d[10]);const M=1e3;function y(t,n,o,s=!0){!o||!s&&n in t||(t[n]=o)}function v(t,n){const o=N(),s=E(t);void 0===s?o.set(t,[n]):s.length>=M?(D(t,s),o.set(t,[n])):o.set(t,[...s,n])}function I(t,n,o){const{release:s,environment:c}=n.getOptions(),u={...t.attributes};y(u,"user.id",o.id,!1),y(u,"user.email",o.email,!1),y(u,"user.name",o.username,!1),y(u,"sentry.release",s),y(u,"sentry.environment",c);const{name:l,version:p}=n.getSdkMetadata()?.sdk??{};y(u,"sentry.sdk.name",l),y(u,"sentry.sdk.version",p);const f=n.getIntegrationByName("Replay"),b=f?.getReplayId(!0);return y(u,"sentry.replay_id",b),b&&"buffer"===f?.getRecordingMode()&&y(u,"sentry._internal.replay_is_buffering",!0),{...t,attributes:u}}function S(n,o,s,c){const[,u]=(0,b._getTraceInfoFromScope)(o,s),_=(0,l._getSpanForScope)(s),M=_?_.spanContext().traceId:u?.trace_id,y=_?_.spanContext().spanId:void 0,v=(0,p.timestampInSeconds)(),I=(0,f.getSequenceAttribute)(v);return{timestamp:v,trace_id:M??"",span_id:y,name:n.name,type:n.type,unit:n.unit,value:n.value,attributes:{...(0,t.serializeAttributes)(c),...(0,t.serializeAttributes)(n.attributes,"skip-undefined"),[I.key]:I.value}}}function B(t,n){const l=n?.scope??(0,o.getCurrentScope)(),p=n?.captureSerializedMetric??v,f=l?.getClient()??(0,o.getClient)();if(!f)return void(s.DEBUG_BUILD&&c.debug.warn("No client available to capture metric."));const{_experiments:b,enableMetrics:_,beforeSendMetric:M}=f.getOptions();if(!(_??b?.enableMetrics??!0))return void(s.DEBUG_BUILD&&c.debug.warn("metrics option not enabled, metric will not be captured."));const{user:y,attributes:B}=(0,u.getCombinedScopeData)((0,o.getIsolationScope)(),l),D=I(t,f,y);f.emit("processMetric",D);const E=M||b?.beforeSendMetric,N=E?E(D):D;if(!N)return void(s.DEBUG_BUILD&&c.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const O=S(N,f,l,B);s.DEBUG_BUILD&&c.debug.log("[Metric]",O),p(f,O),f.emit("afterCaptureMetric",N)}function D(t,n){const o=n??E(t)??[];if(0===o.length)return;const s=t.getOptions(),c=(0,_.createMetricEnvelope)(o,s._metadata,s.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);N().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(c)}function E(t){return N().get(t)}function N(){return(0,n.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}},2034,[1987,1964,1988,1959,1963,2014,1984,1981,2027,2028,2035]);
506__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createMetricContainerEnvelopeItem",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createMetricEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(t,n){const s=n?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:t}]}function c(o,c,u,p,_){const f={};return c?.sdk&&(f.sdk={name:c.sdk.name,version:c.sdk.version}),u&&p&&(f.dsn=(0,t.dsnToString)(p)),(0,n.createEnvelope)(f,[s(o,_)])}},2035,[1994,2005,2031]);
507__d(function(g,r,i,a,m,e,d){"use strict";
507Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractGenAiSpansFromEvent",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),s=r(d[2]);function o(o,p){if("transaction"!==o.type||!o.spans?.length||!o.sdkProcessingMetadata?.hasGenAiSpans||!1===p.getOptions().streamGenAiSpans||(0,t.hasSpanStreamingEnabled)(p))return;const u=[],c=[];for(const n of o.spans)n.op?.startsWith("gen_ai.")?u.push((0,s.spanJsonToSerializedStreamedSpan)(n)):c.push(n);if(0===u.length)return;o.spans=c;const f=p.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:u.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,n.isBrowser)()&&{ingest_settings:{infer_ip:f,infer_user_agent:f}},items:u}]}},2036,[2031,2008,2037]);
508__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanJsonToSerializedStreamedSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]);function s(s){const n={trace_id:s.trace_id,span_id:s.span_id,parent_span_id:s.parent_span_id,name:s.description||"",start_timestamp:s.start_timestamp,end_timestamp:s.timestamp||s.start_timestamp,status:s.status&&"ok"!==s.status&&"cancelled"!==s.status?"error":"ok",is_segment:!1,attributes:{...s.data},links:s.links};return(0,t.streamedSpanJsonToSerializedSpan)(n)}},2037,[1968]);
509__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TRANSPORT_BUFFER_SIZE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return c}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),s=r(d[3]),u=r(d[4]);const p=64;function c(c,l,f=(0,s.makePromiseBuffer)(c.bufferSize||p)){let E={};return{send:function(p){const _=[];if((0,n.forEachEnvelopeItem)(p,(t,o)=>{const s=(0,n.envelopeItemTypeToDataCategory)(o);(0,u.isRateLimited)(E,s)?c.recordDroppedEvent("ratelimit_backoff",s):_.push(t)}),0===_.length)return Promise.resolve({});const v=(0,n.createEnvelope)(p[0],_),D=s=>{(0,n.envelopeContainsItemType)(v,["client_report"])?t.DEBUG_BUILD&&o.debug.warn(`Dropping client report. Will not send outcomes (reason: ${s}).`):(0,n.forEachEnvelopeItem)(v,(t,o)=>{c.recordDroppedEvent(s,(0,n.envelopeItemTypeToDataCategory)(o))})};return f.add(()=>l({body:(0,n.serializeEnvelope)(v)}).then(n=>413===n.statusCode?(t.DEBUG_BUILD&&o.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),D("send_error"),n):(t.DEBUG_BUILD&&void 0!==n.statusCode&&(n.statusCode<200||n.statusCode>=300)&&o.debug.warn(`Sentry responded with status code ${n.statusCode} to sent event.`),E=(0,u.updateRateLimits)(E,n),n),n=>{throw D("network_error"),t.DEBUG_BUILD&&o.debug.error("Encountered error running transport request:",n),n})).then(t=>t,n=>{if(n===s.SENTRY_BUFFER_FULL_ERROR)return t.DEBUG_BUILD&&o.debug.error("Skipped sending event because buffer is full."),D("queue_overflow"),Promise.resolve({});throw n})},flush:t=>f.drain(t)}}},2038,[1959,1963,2005,2039,2040]);
510__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"makePromiseBuffer",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=Symbol.for("SentryBufferFullError");function u(u=100){const f=new Set;function c(n){f.delete(n)}return{get $(){return Array.from(f)},add:function(t){if(!(f.size<u))return(0,n.rejectedSyncPromise)(o);const s=t();return f.add(s),s.then(()=>c(s),()=>c(s)),s},drain:function(o){if(!f.size)return(0,n.resolvedSyncPromise)(!0);const u=Promise.allSettled(Array.from(f)).then(()=>!0);if(!o)return u;const c=[u,new Promise(n=>(0,t.safeUnref)(setTimeout(()=>n(!1),o)))];return Promise.race(c)}}}},2039,[2019,2022]);
511__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"disabledUntil",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isRateLimited",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"updateRateLimits",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const n=6e4;function s(s,o=(0,t.safeDateNow)()){const u=parseInt(`${s}`,10);if(!isNaN(u))return 1e3*u;const c=Date.parse(`${s}`);return isNaN(c)?n:c-o}function o(t,n){return t[n]||t.all||0}function u(n,s,u=(0,t.safeDateNow)()){return o(n,s)>u}function c(n,{statusCode:o,headers:u}
511,c=(0,t.safeDateNow)()){const f={...n},l=u?.["x-sentry-rate-limits"],p=u?.["retry-after"];if(l)for(const t of l.trim().split(",")){const[n,s,,,o]=t.split(":",5),u=parseInt(n,10),l=1e3*(isNaN(u)?60:u);if(s)for(const t of s.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(f[t]=c+l);else f.all=c+l}else p?f.all=c+s(p,c):429===o&&(f.all=c+6e4);return f}},2040,[1977]);
512__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createClientReportEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function c(c,o,s){const p=[{type:"client_report"},{timestamp:s||(0,n.dateTimestampInSeconds)(),discarded_events:c}];return(0,t.createEnvelope)(o?{dsn:o}:{},[p])}},2041,[2005,1981]);
513__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const s=[];t.message&&s.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(s.push(n.value),n.type&&s.push(`${n.type}: ${n.value}`))}catch{}return s}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getPossibleEventMessages",{enumerable:!0,get:function(){return t}})},2042,[]);
514__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"convertSpanJsonToTransactionEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"convertTransactionEventToSpanJson",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){const{trace_id:s,parent_span_id:_,span_id:o,status:p,origin:c,data:u,op:T}=n.contexts?.trace??{};return{data:u??{},description:n.transaction,op:T,parent_span_id:_,span_id:o??"",start_timestamp:n.start_timestamp??0,status:p,timestamp:n.timestamp,trace_id:s??"",origin:c,profile_id:u?.[t.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:u?.[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:n.measurements,is_segment:!0}}function s(n){return{type:"transaction",timestamp:n.timestamp,start_timestamp:n.start_timestamp,transaction:n.description,contexts:{trace:{trace_id:n.trace_id,span_id:n.span_id,parent_span_id:n.parent_span_id,op:n.op,status:n.status,origin:n.origin,data:{...n.data,...n.profile_id&&{[t.SEMANTIC_ATTRIBUTE_PROFILE_ID]:n.profile_id},...n.exclusive_time&&{[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.exclusive_time}}}},measurements:n.measurements}}},2043,[1989]);
515__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolveDataCollectionOptions",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const s={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function o(o){const n=null!=o.dataCollection?s:(0,t.defaultPiiToCollectionOptions)(o.sendDefaultPii),u=o.dataCollection??{};return{userInfo:u.userInfo??n.userInfo,cookies:u.cookies??n.cookies,httpHeaders:{request:u.httpHeaders?.request??n.httpHeaders.request,response:u.httpHeaders?.response??n.httpHeaders.response},httpBodies:u.httpBodies??n.httpBodies,queryParams:u.queryParams??n.queryParams,genAI:{inputs:u.genAI?.inputs??n.genAI.inputs,outputs:u.genAI?.outputs??n.genAI.outputs},stackFrameVariables:u.stackFrameVariables??n.stackFrameVariables,frameContextLines:u.frameContextLines??n.frameContextLines}}},2044,[2045]);
516__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"defaultPiiToCollectionOptions",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return!0===n?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:t.PII_HEADER_SNIPPETS},httpHeaders:{request:{deny:t.PII_HEADER_SNIPPETS},response:{deny:t.PII_HEADER_SNIPPETS}},httpBodies:[],queryParams:{deny:t.PII_HEADER_SNIPPETS},genAI:{inputs:!1,outputs:!1}
516,stackFrameVariables:!0,frameContextLines:7}}},2045,[2046]);
517__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FILTERED_VALUE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"PII_HEADER_SNIPPETS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SENSITIVE_COOKIE_NAME_SNIPPETS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SENSITIVE_KEY_SNIPPETS",{enumerable:!0,get:function(){return n}});const t="[Filtered]",s=["forwarded","-ip","remote-","via","-user"],n=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],o=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"]},2046,[]);
518__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initAndBind",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"setCurrentClient",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),u=r(d[2]);function o(o,b){!0===b.debug&&(t.DEBUG_BUILD?u.debug.enable():(0,u.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));(0,n.getCurrentScope)().update(b.initialScope);const l=new o(b);return c(l),l.init(),l}function c(t){(0,n.getCurrentScope)().setClient(t)}},2047,[1988,1959,1963]);
519__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"MIN_DELAY",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"START_DELAY",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return h}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]);const f=100,c=5e3,l=36e5;function h(h){function p(...n){e.DEBUG_BUILD&&t.debug.log("[Offline]:",...n)}return e=>{const t=h(e);if(!e.createStore)throw new Error("No `createStore` function was provided");const y=e.createStore(e);let w,v=c;function S(e){w&&clearTimeout(w),w=(0,u.safeUnref)(setTimeout(async()=>{w=void 0;const e=await y.shift();e&&(p("Attempting to send previously queued event"),e[0].sent_at=new Date((0,o.safeDateNow)()).toISOString(),b(e,!0).catch(e=>{p("Failed to retry sending",e)}))},e))}function _(){w||(S(v),v=Math.min(2*v,l))}async function b(o,u=!1){if(!u&&(0,n.envelopeContainsItemType)(o,["replay_event","replay_recording"]))return await y.push(o),S(f),{};try{if(e.shouldSend&&!1===await e.shouldSend(o))throw new Error("Envelope not sent because `shouldSend` callback returned false");const n=await t.send(o);let u=f;if(n)if(n.headers?.["retry-after"])u=(0,s.parseRetryAfterHeader)(n.headers["retry-after"]);else if(n.headers?.["x-sentry-rate-limits"])u=6e4;else if((n.statusCode||0)>=400)return n;return S(u),v=c,n}catch(t){if(await(l=o,h=t,w=v,!(0,n.envelopeContainsItemType)(l,["client_report"])&&(!e.shouldStore||e.shouldStore(l,h,w))))return u?await y.unshift(o):await y.push(o),_(),p("Error sending. Event queued.",t),{};throw t}var l,h,w}return e.flushAtStartup&&_(),{send:b,flush:e=>(void 0===e&&(v=c,S(f)),t.flush(e))}}}},2048,[1959,1963,2005,1977,2040,2022]);
520__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"eventFromEnvelope",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return l}});var n=_r(d[0]),t=_r(d[1]),r=_r(d[2]);const o="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function u(n,t){let o;return(0,r.forEachEnvelopeItem)(n,(n,r)=>(t.includes(r)&&(o=Array.isArray(n)?n[1]:void 0),!!o)),o}function s(n,t){return r=>{const o=n(r);return{...o,send:async n=>{const r=u(n,["event","transaction","profile","replay_event"]);return r&&(r.release=t),o.send(n)}}}}function c(n,t){return(0,r.createEnvelope)(t?{...n[0],dsn:t}:n[0],n[1])}function l(r,l){return f=>{const p=r(f),v=new Map,E=l||(n=>{const t=n.getEvent();return t?.extra?.[o]&&Array.isArray(t.extra[o])?t.extra[o]:[]});function y(o,u){const c=u?`${o}:${u}`:o;let l=v.get(c);if(!l){const p=(0,t.dsnFromString)(o);if(!p)return;const E=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(p,f.tunnel);l=u?s(r,u)({...f,url:E}):r({...f,url:E}),v.set(c,l)}return[o,l]}return{send:async function(n){const t=E({envelope:n,getEvent:function(t){return u(n,t?.length?t:["event"])}}).map(n=>"string"==typeof n?y(n,void 0):y(n.dsn,n.release)).filter(n=>!!n),r=t.length?t:[["",p]];return(await Promise.all(r.map(([t,r])=>r.send(c(n,t)))))[0]},flush:async function(n){const t=[...v.values(),p];return(await Promise.all(t.map(t=>t.flush(n)))).every(n=>n)}}}}},2049,[2023,1994,2005]);
521__d(function(g,r,i,a,m,e,d){"use strict";
521Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=new Set;function u(u){u.forEach(u=>{o.add(u),n.DEBUG_BUILD&&t.debug.log(`AI provider "${u}" wrapping will be skipped`)})}function p(n){return o.has(n)}function c(){o.clear(),n.DEBUG_BUILD&&t.debug.log("Cleared AI provider skip registrations")}},2050,[1959,1963]);
522__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterKeyValueData",{enumerable:!0,get:function(){return n}});var o=r(d[0]);function t(o,t){return t.some(t=>o.includes(t))}function n(n,s,c){if(!1===s)return{};const E=null!=c?[...o.SENSITIVE_KEY_SNIPPETS,...c]:o.SENSITIVE_KEY_SNIPPETS,u={};if(!0===s){for(const s of Object.keys(n))u[s]=t(s.toLowerCase(),E)?o.FILTERED_VALUE:n[s];return u}if("deny"in s){const c=s.deny.map(o=>o.toLowerCase());for(const s of Object.keys(n)){const f=s.toLowerCase(),l=t(f,E)||c.some(o=>f.includes(o));u[s]=l?o.FILTERED_VALUE:n[s]}return u}const f=s.allow.map(o=>o.toLowerCase());for(const s of Object.keys(n)){const c=s.toLowerCase();if(t(c,E))u[s]=o.FILTERED_VALUE;else{const t=f.some(o=>c.includes(o));u[s]=t?n[s]:o.FILTERED_VALUE}}return u}},2051,[2046]);
523__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterCookies",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);function o(o,c){if(!1===c)return{};try{const f=(0,t.parseCookie)(o);return 0===Object.keys(f).length?{}:(0,u.filterKeyValueData)(f,c,n.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return n.FILTERED_VALUE}}},2052,[2053,2046,2051]);
524__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n={};let o=0;for(;o<t.length;){const c=t.indexOf("=",o);if(-1===c)break;let f=t.indexOf(";",o);if(-1===f)f=t.length;else if(f<c){o=t.lastIndexOf(";",c-1)+1;continue}const l=t.slice(o,c).trim();if(void 0===n[l]){let o=t.slice(c+1,f).trim();34===o.charCodeAt(0)&&(o=o.slice(1,-1));
524try{n[l]=-1!==o.indexOf("%")?decodeURIComponent(o):o}catch{n[l]=o}}o=f+1}return n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseCookie",{enumerable:!0,get:function(){return t}})},2053,[]);
525__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterQueryParams",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function u(u,c){if(!1===c)return{};try{const t=new URLSearchParams(u),f={};return t.forEach((t,n)=>{f[n]=t}),0===Object.keys(f).length?{}:(0,n.filterKeyValueData)(f,c)}catch{return t.FILTERED_VALUE}}},2054,[2046,2051]);
526__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FALSY_ENV_VALUES",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TRUTHY_ENV_VALUES",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"envToBool",{enumerable:!0,get:function(){return o}});const n=new Set(["false","f","n","no","off","0"]),t=new Set(["true","t","y","yes","on","1"]);function o(o,u){const c=String(o).toLowerCase();return!n.has(c)&&(!!t.has(c)||(u?.strict?null:Boolean(o)))}},2055,[]);
527__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createCheckInEnvelope",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function c(c,u,f,k,v){const _={sent_at:new Date((0,o.safeDateNow)()).toISOString()};f?.sdk&&(_.sdk={name:f.sdk.name,version:f.sdk.version}),k&&v&&(_.dsn=(0,n.dsnToString)(v)),u&&(_.trace=u);const l=s(c);return(0,t.createEnvelope)(_,[l])}function s(n){return[{type:"check_in"},n]}},2056,[1994,2005,1977]);
528__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isSentryRequestUrl",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(t,n){const c=n?.getDsn(),o=n?.getOptions().tunnel;return u(t,c)||s(t,o)}function s(t,n){return!!n&&c(t)===c(n)}function u(n,s){const u=(0,t.parseStringToURLObject)(n);return!(!u||(0,t.isURLObjectRelative)(u))&&(!!s&&(c=u.hostname,o=s.host,(c===o||o.length>0&&c.endsWith(`.${o}`))&&/(^|&|\?)sentry_key=/.test(u.search)));var c,o}function c(t){return"/"===t[t.length-1]?t.slice(0,-1):t}},2057,[2058]);
529__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}
529),Object.defineProperty(e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getSanitizedUrlString",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isURLObjectRelative",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"parseStringToURLObject",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"parseUrl",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"stripDataUrlContent",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return h}});var t=r(d[0]);const n="thismessage:/";function o(t){return"isRelative"in t}function u(t,o){const u=t.indexOf("://")<=0&&0!==t.indexOf("//"),c=o??(u?n:void 0);try{if("canParse"in URL&&!URL.canParse(t,c))return;const n=new URL(t,c);return u?{isRelative:u,pathname:n.pathname,search:n.search,hash:n.hash}:n}catch{}}function c(t){if(o(t))return t.pathname;const n=new URL(t);return n.search="",n.hash="",["80","443"].includes(n.port)&&(n.port=""),n.password&&(n.password="%filtered%"),n.username&&(n.username="%filtered%"),n.toString()}function s(t,n,o,u){return`${o?.method?.toUpperCase()??"GET"} ${u||(t?"client"===n?c(t):t.pathname:"/")}`}function l(n,u,c,l,p){const h={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return p&&(h["server"===u?"http.route":"url.template"]=p,h[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),l?.method&&(h[t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=l.method.toUpperCase()),n&&(n.search&&(h["url.query"]=n.search),n.hash&&(h["url.fragment"]=n.hash),n.pathname&&(h["url.path"]=n.pathname,"/"===n.pathname&&(h[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),o(n)||(h[t.SEMANTIC_ATTRIBUTE_URL_FULL]=n.href,n.port&&(h["url.port"]=n.port),n.protocol&&(h["url.scheme"]=n.protocol),n.hostname&&(h["server"===u?"server.address":"url.domain"]=n.hostname))),[s(n,u,l,p),h]}function p(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const o=n[6]||"",u=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:o,hash:u,relative:n[5]+o+u}}function h(t){return t.split(/[?#]/,1)[0]}function f(t){const{protocol:n,host:o,path:u}=t;return`${n?`${n}://`:""}${o?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${u}`}function T(t,n=!0){if(t.startsWith("data:")){const o=t.match(/^data:([^;,]+)/),u=o?o[1]:"text/plain",c=t.includes(";base64,"),s=t.indexOf(",");let l="";if(n&&-1!==s){const n=t.slice(s+1);l=n.length>10?`${n.slice(0,10)}... [truncated]`:n}return`data:${u}${c?",base64":""}${l?`,${l}`:""}`}return t}},2058,[1989]);
530__d(function(g,r,i,a,m,e,d){"use strict";function t(t,...n){const _=new String(String.raw(t,...n));return _.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),_.__sentry_template_values__=n,_}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fmt",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"parameterize",{enumerable:!0,get:function(){return t}});const n=t},2059,[]);
531__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handleTunnelRequest",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]);async function u(u){const{request:l,allowedDsns:p}=u;if(0===p.length)return new Response("Tunnel not configured",{status:500});const c=new Uint8Array(await l.arrayBuffer());let f;try{[f]=(0,o.parseEnvelope)(c)}catch{return new Response("Invalid envelope",{status:400})}if(!f)return new Response("Invalid envelope: missing header",{status:400});const w=f.dsn;if(!w)return new Response("Invalid envelope: missing DSN",{status:400});if(!p.some(n=>n===w))return t.debug.warn(`Sentry tunnel: rejected request with unauthorized DSN (${w})`),new Response("DSN not allowed",{status:403});const v=(0,s.makeDsn)(w);if(!v)return t.debug.warn(`Could not extract DSN Components from: ${w}`),new Response("Invalid DSN",{status:403});const y=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(v);try{return await fetch(y,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:c})}catch(n){return t.debug.error("Sentry tunnel: failed to forward envelope",n),new Response("Failed to forward envelope to Sentry",{status:500})}}},2060,[2023,1963,1994,2005]);
532__d(function(g,r,i,a,m,e,d){"use strict";function s(s){void 0===s.user?.ip_address&&(s.user={...s.user,ip_address:"{{auto}}"})}function t(s){"aggregates"in s?void 0===s.attrs?.ip_address&&(s.attrs={...s.attrs,ip_address:"{{auto}}"}):void 0===s.ipAddress&&(s.ipAddress="{{auto}}")}
532Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return s}})},2061,[]);
533__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applySdkMetadata",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n,s,c=[s],o="npm"){const _=(n._metadata=n._metadata||{}).sdk=n._metadata.sdk||{};_.name||(_.name=`sentry.javascript.${s}`,_.packages=c.map(n=>({name:`${o}:@sentry/${n}`,version:t.SDK_VERSION})),_.version=t.SDK_VERSION)}},2062,[1965]);
534__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getTraceData",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),p=r(d[4]),s=r(d[5]),u=r(d[6]),l=r(d[7]),S=r(d[8]),T=r(d[9]),C=r(d[10]);function f(f={}){const b=f.client||(0,o.getClient)();if(!(0,c.isEnabled)()||!b)return{};const E=(0,n.getMainCarrier)(),P=(0,t.getAsyncContextStrategy)(E);if(P.getTraceData)return P.getTraceData(f);const I=f.scope||(0,o.getCurrentScope)(),D=f.span||(0,s.getActiveSpan)(),H=(0,l.spanIsNonRecordingSpan)(D)&&!(0,u.hasSpansEnabled)(b.getOptions());if(!D&&(0,o.hasExternalPropagationContext)())return{};const _=D&&!H?(0,s.spanToTraceHeader)(D):y(I),v=D?(0,S.getDynamicSamplingContextFromSpan)(D):(0,S.getDynamicSamplingContextFromScope)(b,I),A=(0,T.dynamicSamplingContextToSentryBaggageHeader)(v);if(!C.TRACEPARENT_REGEXP.test(_))return p.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const R={"sentry-trace":_,baggage:A};return f.propagateTraceparent&&(R.traceparent=D&&!H?(0,s.spanToTraceparentHeader)(D):x(I)),R}function y(t){const{traceId:n,sampled:o,propagationSpanId:c}=t.getPropagationContext();return(0,C.generateSentryTraceHeader)(n,c,o)}function x(t){const{traceId:n,sampled:o,propagationSpanId:c}=t.getPropagationContext();return(0,C.generateTraceparentHeader)(n,c,o)}},2063,[1969,1964,1988,2016,1963,1968,1997,1999,2002,1993,1992]);
535__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c="[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:";function u(u,s,f){if("string"!=typeof u||!s)return!0;const l=f?.get(u);if(void 0!==l)return t.DEBUG_BUILD&&!l&&n.debug.log(c,u),l;const b=(0,o.stringMatchesSomePattern)(u,s);return f?.set(u,b),t.DEBUG_BUILD&&!b&&n.debug.log(c,u),b}},2064,[1959,1963,1978]);
536__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getTraceMetaTags",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return Object.entries(n||(0,t.getTraceData)()).map(([t,n])=>`<meta name="${t}" content="${n}"/>`).join("\n")}},2065,[2063]);
537__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n,o){let u,c,f;const l=o?.maxWait?Math.max(o.maxWait,n):0,s=o?.setTimeoutImpl||setTimeout;function v(){return T(),u=t(),u}function T(){void 0!==c&&clearTimeout(c),void 0!==f&&clearTimeout(f),c=f=void 0}function b(){return c&&clearTimeout(c),c=s(v,n),l&&void 0===f&&(f=s(v,l)),u}return b.cancel=T,b.flush=function(){return void 0!==c||void 0!==f?v():u},b}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return t}})},2066,[]);
538__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"headersToDict",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"httpRequestToRequestData",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return h}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]);const f=1048576,l=["text/","application/json","application/x-www-form-urlencoded","application/xml","application/graphql"];function p(t){return"small"===t?1e3:"medium"===t?1e4:f}function y(t){const o={};try{t.forEach((t,n)=>{"string"==typeof t&&(o[n]=t)})}catch{}return o}function b(t){const o=Object.create(null);try{Object.entries(t).forEach(([t,n])=>{"string"==typeof n?o[t]=n:"number"==typeof n&&(o[t]=String(n))})}catch{}return o}function h(t){const o=y(t.headers);return{method:t.method,url:t.url,query_string:q(t.url),headers:o}}function O(t){if(!t)return!1;const o=t.toLowerCase();return l.some(t=>o.includes(t))}async function D(n,c,s){try{const l=n.headers.get("content-type");if(!O(l))return void(t.DEBUG_BUILD&&o.debug.log("Skipping body capture for non-textual content type:",l));if(!n.body)return;const y=n.headers.get("content-length"),b=p(s);if(y){const n=parseInt(y,10);if(!isNaN(n)&&n>f)return void(t.DEBUG_BUILD&&o.debug.log("Skipping body capture: body too large",n))}const h=n.clone().text(),D=new Promise(t=>{(0,u.safeUnref)(setTimeout(()=>t(null),2e3))}),E=await Promise.race([h,D]);if(null===E)return void(t.DEBUG_BUILD&&o.debug.log("Timeout reading request body"));if(!E)return;const _=(new TextEncoder).encode(E),j=_.length;let w;if(j>b){w=`${(new TextDecoder).decode(_.slice(0,b-3))}...`}else w=E;c.setSDKProcessingMetadata({normalizedRequest:{data:w}}),t.DEBUG_BUILD&&o.debug.log("Captured request body:",j,"bytes")}catch(n){t.DEBUG_BUILD&&o.debug.error("Error capturing request body:",n)}}function E(t){const o=t.headers||{},n=("string"==typeof o["x-forwarded-host"]?o["x-forwarded-host"]:void 0)||("string"==typeof o.host?o.host:void 0),c=("string"==typeof o["x-forwarded-proto"]?o["x-forwarded-proto"]:void 0)||t.protocol||(t.socket?.encrypted?"https":"http"),s=t.url||"",u=_({url:s,host:n,protocol:c}),f=t.body||void 0,l=t.cookies;return{url:u,method:t.method,query_string:q(s),headers:b(o),cookies:l,data:f}}function _({url:t,protocol:o,host:n}){return t?.startsWith("http")?t:t&&n?`${o}://${n}${t}`:void 0}function j(t,o=!1,u="request"){const f="boolean"==typeof o?(0,n.defaultPiiToCollectionOptions)(o):o,l="request"===u?f.httpHeaders.request:f.httpHeaders.response,p=f.cookies,y=`http.${u}.header.`,b={};try{const o={};for(const[n,u]of Object.entries(t)){if(null==u)continue;const t=n.toLowerCase();if("cookie"===t||"set-cookie"===t){if(!1===p)continue;if("string"==typeof u&&""!==u){const o=P(u,"set-cookie"===t),n=(0,s.filterKeyValueData)(o,p,c.SENSITIVE_COOKIE_NAME_SNIPPETS);for(const[o,c]of Object.entries(n))b[`${y}${w(t)}.${w(o)}`]=c}else b[`${y}${w(t)}`]=c.FILTERED_VALUE}else{if(!1===l)continue;Array.isArray(u)?o[t]=u.map(t=>null!=t?String(t):t).join(";
538"):"string"==typeof u&&(o[t]=u)}}if(!1!==l){const t=(0,s.filterKeyValueData)(o,l);for(const[o,n]of Object.entries(t))b[`${y}${w(o)}`]=n}}catch{}return b}function w(t){return t.replace(/-/g,"_")}function P(t,o){const n=t.indexOf(";"),c=o&&-1!==n?t.substring(0,n):t,s=o?[c]:c.split("; "),u={};for(const t of s){const o=t.indexOf("="),n=(-1!==o?t.substring(0,o):t).toLowerCase(),c=-1!==o?t.substring(o+1):"";u[n]=c}return u}function q(t){if(t)try{const o=new URL(t,"http://s.io").search.slice(1);return o.length?o:void 0}catch{return}}},2067,[1959,1963,2045,2046,2051,2022]);
539__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_KIND",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"spanKindToName",{enumerable:!0,get:function(){return E}});const n={INTERNAL:0,SERVER:1,CLIENT:2,PRODUCER:3,CONSUMER:4},t={[n.INTERNAL]:"INTERNAL",[n.SERVER]:"SERVER",[n.CLIENT]:"CLIENT",[n.PRODUCER]:"PRODUCER",[n.CONSUMER]:"CONSUMER"};function E(n){return t[n]}},2068,[]);
540__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addBreadcrumb",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c=100;function u(u,s){const b=(0,t.getClient)(),l=(0,t.getIsolationScope)();if(!b)return;const{beforeBreadcrumb:f=null,maxBreadcrumbs:p=c}=b.getOptions();if(p<=0)return;const B={timestamp:(0,o.dateTimestampInSeconds)(),...u},_=f?(0,n.consoleSandbox)(()=>f(B,s)):B;null!==_&&(b.emit&&b.emit("beforeAddBreadcrumb",_,s),l.addBreadcrumb(_,p))}},2069,[1988,1963,1981]);
541__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"functionToStringIntegration",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let c;const u=new WeakMap,p=(0,n.defineIntegration)(()=>({name:"FunctionToString",setupOnce(){c=Function.prototype.toString;try{Function.prototype.toString=function(...n){const p=(0,o.getOriginalFunction)(this),s=u.has((0,t.getClient)())&&void 0!==p?p:this;return c.apply(s,n)}}catch{}},setup(t){u.set(t,!0)}}))},2070,[1988,2025,1975]);
542__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"eventFiltersIntegration",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),i=r(d[3]),s=r(d[4]),c=r(d[5]);const l=[/^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$/],u=(0,t.defineIntegration)((n={})=>{let t;return{name:"EventFilters",setup(o){const i=o.getOptions();t=p(n,i)},processEvent(o,i,s){if(!t){const o=s.getOptions();t=p(n,o)}return v(o,t)?null:o}}}),f=(0,t.defineIntegration)((n={})=>({...u(n),name:"InboundFilters"}));function p(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:l],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function v(t,i){if(t.type){if("transaction"===t.type&&b(t,i.ignoreTransactions))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.getEventDescription)(t)}`),!0}else{if(E(t,i.ignoreErrors))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.getEventDescription)(t)}`),!0;if($(t))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.getEventDescription)(t)}`),!0;if(U(t,i.denyUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(t)}.\nUrl: ${D(t)}`),!0;if(!h(t,i.allowUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(t)}.\nUrl: ${D(t)}`),!0}return!1}function E(n,t){return!!t?.length&&(0,i.getPossibleEventMessages)(n).some(n=>
542(0,c.stringMatchesSomePattern)(n,t))}function b(n,t){if(!t?.length)return!1;const o=n.transaction;return!!o&&(0,c.stringMatchesSomePattern)(o,t)}function U(n,t){if(!t?.length)return!1;const o=D(n);return!!o&&(0,c.stringMatchesSomePattern)(o,t)}function h(n,t){if(!t?.length)return!0;const o=D(n);return!o||(0,c.stringMatchesSomePattern)(o,t)}function y(n=[]){for(let t=n.length-1;t>=0;t--){const o=n[t];if(o&&"<anonymous>"!==o.filename&&"[native code]"!==o.filename)return o.filename||null}return null}function D(t){try{const n=[...t.exception?.values??[]].reverse().find(n=>void 0===n.mechanism?.parent_id&&n.stacktrace?.frames?.length),o=n?.stacktrace?.frames;return o?y(o):null}catch{return n.DEBUG_BUILD&&o.debug.error(`Cannot extract url for event ${(0,s.getEventDescription)(t)}`),null}}function $(n){return!!n.exception?.values?.length&&(!n.message&&!n.exception.values.some(n=>n.stacktrace||n.type&&"Error"!==n.type||n.value))}},2071,[1959,2025,1963,2042,1974,1978]);
543__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s=(0,t.defineIntegration)((t={})=>{const s=t.limit||5,c=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,u,p){const l=p.getOptions();(0,n.applyAggregateErrorsToEvent)(o.exceptionFromError,l.stackParser,c,s,t,u)}}})},2072,[2025,2073,2074]);
544__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(t,o,c,s,u,l){if(!u.exception?.values||!l||!(0,n.isInstanceOf)(l.originalException,Error))return;const p=u.exception.values.length>0?u.exception.values[u.exception.values.length-1]:void 0;p&&(u.exception.values=i(t,o,s,l.originalException,c,u.exception.values,p,0))}function i(t,u,l,p,f,h,x,v){if(h.length>=l+1)return h;let _=[...h];if((0,n.isInstanceOf)(p[f],Error)){c(x,v,p);const n=t(u,p[f]),o=_.length;s(n,f,o,v),_=i(t,u,l,p[f],f,[n,..._],n,o)}return o(p)&&p.errors.forEach((o,h)=>{if((0,n.isInstanceOf)(o,Error)){c(x,v,p);const n=t(u,o),E=_.length;s(n,`errors[${h}]`,E,v),_=i(t,u,l,o,f,[n,..._],n,E)}}),_}function o(n){return Array.isArray(n.errors)}function c(n,t,i){n.mechanism={handled:!0,type:"auto.core.linked_errors",...o(i)&&{is_exception_group:!0},...n.mechanism,exception_id:t}}function s(n,t,i,o){n.mechanism={handled:!0,...n.mechanism,type:"chained",source:t,exception_id:i,parent_id:o}}},2073,[1976]);
545__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"eventFromMessage",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"eventFromUnknownInput",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"exceptionFromError",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"parseStackFrames",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);function c(t,n){return t(n.stack||"",1)}function u(n){return(0,t.isError)(n)&&"__sentry_fetch_url_host__"in n&&"string"==typeof n.__sentry_fetch_url_host__}function f(t){return u(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function _(t,n){const s={type:n.name||n.constructor.name,value:f(n)},o=c(t,n);return o.length&&(s.stacktrace={frames:o}),s}function p(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];if(s instanceof Error)return s}}function y(n){if("name"in n&&"string"==typeof n.name){let t=`'${n.name}' captured as exception`;return"message"in n&&"string"==typeof n.message&&(t+=` with message '${n.message}'`),t}if("message"in n&&"string"==typeof n.message)return n.message;const s=(0,o.extractExceptionKeysForMessage)(n);if((0,t.isErrorEvent)(n))return`Event \`ErrorEvent\` captured as exception with message \`${n.message}\``;const c=l(n);return`${c&&"Object"!==c?`'${c}'`:"Object"} captured as exception with keys: ${s}`}function l(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{}}function h(n,o,c,u){if((0,t.isError)(c))return[c,void 0];if(o.synthetic=!0,(0,t.isPlainObject)(c)){const t=n?.getOptions().normalizeDepth,o={__serialized__:(0,s.normalizeToSize)(c,t)},f=p(c);if(f)return[f,o];const _=y(c),l=u?.syntheticException||new Error(_);return l.message=_,[l,o]}const f=u?.syntheticException||new Error(c);return f.message=`${c}`,[f,void 0]}function v(t,s,o,c){const u=c?.data&&c.data.mechanism||{handled:!0,type:"generic"},[f,p]=h(t,u,o,c),y={exception:{values:[_(s,f)]}};return p&&(y.extra=p),(0,n.addExceptionTypeValue)(y,void 0,void 0),(0,n.addExceptionMechanism)(y,u),{...y,event_id:c?.event_id}}function E(s,o,u="info",f,_){const p={event_id:f?.event_id,level:u};if(_&&f?.syntheticException){const t=c(s,f.syntheticException);t.length&&(p.exception={values:[{value:o,stacktrace:{frames:t}}]},(0,n.addExceptionMechanism)(p,{synthetic:!0}))}
545if((0,t.isParameterizedString)(o)){const{__sentry_template_string__:t,__sentry_template_values__:n}=o;return p.logentry={message:t,params:n},p}return p.message=o,p}},2074,[1976,1974,1979,1975]);
546__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s=(0,t.defineIntegration)(()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",t=>{(0,o.forEachEnvelopeItem)(t,(t,o)=>{if("event"===o){const o=Array.isArray(t)?t[1]:void 0;o&&((0,n.stripMetadataFromStackFrames)(o),t[1]=o)}})}),t.on("applyFrameMetadata",o=>{if(o.type)return;const s=t.getOptions().stackParser;(0,n.addMetadataToStackFrames)(s,o)})}}))},2075,[2025,2076,2005]);
547__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addMetadataToStackFrames",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getMetadataForUrl",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stripMetadataFromStackFrames",{enumerable:!0,get:function(){return l}});var t=r(d[0]);const n=new Map,o=new Set;function c(n){if(!t.GLOBAL_OBJ._sentryModuleMetadata)return{};const o={};for(const c of Object.keys(t.GLOBAL_OBJ._sentryModuleMetadata)){const f=t.GLOBAL_OBJ._sentryModuleMetadata[c],u=n(c);for(const t of u.reverse())if(t.filename){o[t.filename]=f;break}}return o}function f(c){if(t.GLOBAL_OBJ._sentryModuleMetadata)for(const f of Object.keys(t.GLOBAL_OBJ._sentryModuleMetadata)){const u=t.GLOBAL_OBJ._sentryModuleMetadata[f];if(o.has(f))continue;o.add(f);const s=c(f);for(const t of s.reverse())if(t.filename){n.set(t.filename,u);break}}}function u(t,o){return f(t),n.get(o)}function s(t,n){n.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(n=>{if(!n.filename||n.module_metadata)return;const o=u(t,n.filename);o&&(n.module_metadata=o)})})}function l(t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{delete t.module_metadata})})}},2076,[1961]);
548__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"requestDataIntegration",{enumerable:!0,get:function(){return l}});
548var t=r(d[0]),s=r(d[1]),o=r(d[2]),n=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]);const l=(0,s.defineIntegration)((s={})=>{function o(t){const o=t.getDataCollectionOptions(),n={...o,...!0===s.include?.cookies&&!1===o.cookies&&{cookies:!0},...!0===s.include?.headers&&!1===o.httpHeaders.request&&{httpHeaders:{...o.httpHeaders,request:!0}}};return{dataCollection:n,include:{cookies:!1!==n.cookies,data:!0,headers:!1!==n.httpHeaders.request,ip:n.userInfo,query_string:!1!==n.queryParams,url:!0,...s.include}}}return{name:"RequestData",processEvent(t,s,n){const{sdkProcessingMetadata:u={}}=t,{normalizedRequest:c,ipAddress:p}=u,{include:l}=o(n);return c&&f(t,c,{ipAddress:p},l),t},processSegmentSpan(s,n){const{sdkProcessingMetadata:u={}}=(0,t.getIsolationScope)().getScopeData(),{normalizedRequest:c,ipAddress:p}=u;if(!c)return;const{include:l,dataCollection:f}=o(n);S(s,c,p,l,f)}}});function f(t,s,o,n){if(t.request={...t.request,...h(s,n)},n.ip){const n=s.headers&&(0,c.getClientIPAddress)(s.headers)||o.ipAddress;n&&(t.user={...t.user,ip_address:n})}}function S(t,s,n,l,f){const S=h(s,l),q={};if(S.url&&(q["url.full"]=S.url),S.method&&(q["http.request.method"]=S.method),S.query_string&&(q["url.query"]=k(S.query_string)),(0,p.safeSetSpanJSONAttributes)(t,q),S.cookies&&Object.keys(S.cookies).length>0){const s=Object.entries(S.cookies).map(([t,s])=>`${t}=${s}`).join("; "),o=(0,u.httpHeadersToSpanAttributes)({cookie:s},f,"request");(0,p.safeSetSpanJSONAttributes)(t,o)}if(S.headers){const s=(0,u.httpHeadersToSpanAttributes)(S.headers,f,"request");(0,p.safeSetSpanJSONAttributes)(t,s)}if(null!=S.data){const s="string"==typeof S.data?S.data:JSON.stringify(S.data);s&&(0,p.safeSetSpanJSONAttributes)(t,{"http.request.body.data":s})}if(l.ip){const u=s.headers&&(0,c.getClientIPAddress)(s.headers)||n||void 0;u&&(0,p.safeSetSpanJSONAttributes)(t,{[o.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:u})}}function h(t,s){const o={},u={...t.headers};if(s.headers&&(o.headers=u,s.cookies||delete u.cookie,!s.ip)){const t=new Set(c.ipHeaderNames.map(t=>t.toLowerCase()));for(const s of Object.keys(u))t.has(s.toLowerCase())&&delete u[s]}if(o.method=t.method,s.url&&(o.url=t.url),s.cookies){const s=t.cookies||(u?.cookie?(0,n.parseCookie)(u.cookie):void 0);o.cookies=s||{}}return s.query_string&&(o.query_string=t.query_string),s.data&&(o.data=t.data),o}function k(t){if("string"==typeof t)return t||void 0;return(Array.isArray(t)?t:Object.entries(t)).map(([t,s])=>`${t}=${s}`).join("&")||void 0}},2077,[1988,2025,1989,2053,2067,2078,2013]);
549__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getClientIPAddress",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ipHeaderNames",{enumerable:!0,get:function(){return t}});const t=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];function n(n){const F={};for(const t of Object.keys(n))F[t.toLowerCase()]=n[t];return t.map(t=>{const n=F[t.toLowerCase()],o=Array.isArray(n)?n.join(";"):n;return"Forwarded"===t?f(o):o?.split(",").map(t=>t.trim())}).reduce((t,n)=>n?t.concat(n):t,[]).find(t=>null!==t&&o(t))||null}function f(t){if(!t)return null;for(const n of t.split(";"))if(n.startsWith("for="))return n.slice(4);return null}function o(t){return/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(t)}},2078,[]);
550__d(function(g,r,i,a,m,e,d){"use strict";
550Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureConsoleIntegration",{enumerable:!0,get:function(){return v}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]);const v=(0,s.defineIntegration)((n={})=>{const s=n.levels||c.CONSOLE_LEVELS,l=n.handled??!0;return{name:"CaptureConsole",setup(n){"console"in f.GLOBAL_OBJ&&(0,o.addConsoleInstrumentationHandler)(({args:o,level:c})=>{(0,t.getClient)()===n&&s.includes(c)&&E(o,c,l)})}}});function E(o,s,c){const f=(0,u.severityLevelFromString)(s),v=new Error,E={level:(0,u.severityLevelFromString)(s),extra:{arguments:o}};(0,t.withScope)(t=>{if(t.addEventProcessor(t=>(t.logger="console",(0,l.addExceptionMechanism)(t,{handled:c,type:"auto.core.capture_console"}),t)),"assert"===s){if(!o[0]){const n=`Assertion failed: ${(0,p.safeJoin)(o.slice(1)," ")||"console.assert"}`;t.setExtra("arguments",o.slice(1)),t.captureMessage(n,f,{captureContext:E,syntheticException:v})}return}const u=o.find(t=>t instanceof Error);if(u)return void(0,n.captureException)(u,E);const x=(0,p.safeJoin)(o," ");t.captureMessage(x,f,{captureContext:E,syntheticException:v})})}},2079,[1988,2016,2080,2025,1963,1974,2081,1978,1961]);
551__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return f}});var n=r(d[0]),o=r(d[1]),t=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]);const u=new Set([]);function f(n){const o="console",t=(0,c.addHandler)(o,n);return(0,c.maybeInstrument)(o,L),t}function O(n){for(const o of n)u.add(o);return()=>{for(const o of n)u.delete(o)}}function L(){"console"in l.GLOBAL_OBJ&&o.CONSOLE_LEVELS.forEach(function(f){f in l.GLOBAL_OBJ.console&&(0,t.fill)(l.GLOBAL_OBJ.console,f,function(t){return o.originalConsoleMethods[f]=t,function(...t){const O=t[0],L=o.originalConsoleMethods[f],B=u.size&&"string"==typeof O&&(0,s.stringMatchesSomePattern)(O,u);B||(0,c.triggerHandlers)("console",{args:t,level:f}),(!B||n.DEBUG_BUILD&&o.debug.isEnabled())&&L?.apply(l.GLOBAL_OBJ.console,t)}})})}},2080,[1959,1963,1975,1978,1961,1962]);
552__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return"warn"===n?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"severityLevelFromString",{enumerable:!0,get:function(){return n}})},2081,[]);
553__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_shouldDropEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"dedupeIntegration",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),u=r(d[2]),i=r(d[3]);const o=(0,t.defineIntegration)(()=>{let t;return{name:"Dedupe",processEvent(i){if(i.type)return i;try{if(c(i,t))return n.DEBUG_BUILD&&u.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=i}}});function c(n,t){return!!t&&(!!f(n,t)||!!l(n,t))}function f(n,t){const u=n.message,i=t.message;return!(!u&&!i)&&(!(u&&!i||!u&&i)&&(u===i&&(!!s(n,t)&&!!p(n,t))))}function l(n,t){const u=v(t),i=v(n);return!(!u||!i)&&(u.type===i.type&&u.value===i.value&&(!!s(n,t)&&!!p(n,t)))}function p(n,t){let u=(0,i.getFramesFromEvent)(n),o=(0,i.getFramesFromEvent)(t);if(!u&&!o)return!0;if(u&&!o||!u&&o)return!1;if(o.length!==u.length)return!1;for(let n=0;n<o.length;n++){const t=o[n],i=u[n];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function s(n,t){let u=n.fingerprint,i=t.fingerprint;if(!u&&!i)return!0;if(u&&!i||!u&&i)return!1;try{return!(u.join("")!==i.join(""))}catch{return!1}}function v(n){return n.exception?.values?.[0]}},2082,[1959,2025,1963,1966]);
554__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]),f=r(d[6]);const l=(0,n.defineIntegration)((t={})=>{const{depth:n=3,captureErrorCause:o=!0}=t;return{name:"ExtraErrorData",processEvent(t,c,s){const{maxValueLength:u}=s.getOptions();return E(t,c,n,o,u)}}});function E(t,n={},o,f,l){if(!n.originalException||!(0,c.isError)(n.originalException))return t;const E=n.originalException.name||n.originalException.constructor.name,x=p(n.originalException,f,l);if(x){const n={...t.contexts},f=(0,s.normalize)(x,o);return(0,c.isPlainObject)(f)&&((0,u.setSkipNormalizationHint)(f),n[E]=f),{...t,contexts:n}}return t}function p(n,s,u){try{const t=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const s of Object.keys(n)){if(-1!==t.indexOf(s))continue;const l=n[s];o[s]=(0,c.isError)(l)||"string"==typeof l?u?(0,f.truncate)(`${l}`,u):`${l}`:l}if(s&&void 0!==n.cause)if((0,c.isError)(n.cause)){const t=n.cause.name||n.cause.constructor.name;o.cause={[t]:p(n.cause,!1,u)}}else o.cause=n.cause;if("function"==typeof n.toJSON){const t=n.toJSON();for(const n of Object.keys(t)){const s=t[n];o[n]=(0,c.isError)(s)?s.toString():s}}return o}catch(n){t.DEBUG_BUILD&&o.debug.error("Unable to extract extra data from the Error object:",n)}return null}},2083,[1959,2025,1963,1976,1979,1980,1978]);
555__d(function(g,r,i,a,m,e,d){"use strict";
555Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateIteratee",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const o=(0,t.defineIntegration)((t={})=>{const n=t.root,o=t.prefix||"app:///",f="window"in c.GLOBAL_OBJ&&!!c.GLOBAL_OBJ.window,l=t.iteratee||s({isBrowser:f,root:n,prefix:o});function u(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map(t=>{return{...t,...t.stacktrace&&{stacktrace:(n=t.stacktrace,{...n,frames:n?.frames?.map(t=>l(t))})}};var n})}}}catch{return t}}return{name:"RewriteFrames",processEvent(t){let n=t;return t.exception&&Array.isArray(t.exception.values)&&(n=u(n)),n}}});function s({isBrowser:t,root:c,prefix:o}){return s=>{if(!s.filename)return s;const f=/^[a-zA-Z]:\\/.test(s.filename)||s.filename.includes("\\")&&!s.filename.includes("/"),l=/^\//.test(s.filename);if(t){if(c){const t=s.filename;0===t.indexOf(c)&&(s.filename=t.replace(c,o))}}else if(f||l){const t=f?s.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):s.filename,l=c?(0,n.relative)(c,t):(0,n.basename)(t);s.filename=`${o}${l}`}return s}}},2084,[2025,2085,1961]);
556__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,n){let i=0;for(let n=t.length-1;n>=0;n--){const l=t[n];"."===l?t.splice(n,1):".."===l?(t.splice(n,1),i++):i&&(t.splice(n,1),i--)}if(n)for(;i--;i)t.unshift("..");return t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"basename",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"dirname",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isAbsolute",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"join",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"normalizePath",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"relative",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"resolve",{enumerable:!0,get:function(){return l}});const n=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function i(t){const i=t.length>1024?`<truncated>${t.slice(-1024)}`:t,l=n.exec(i);return l?l.slice(1):[]}function l(...n){let i="",l=!1;for(let t=n.length-1;t>=-1&&!l;t--){const c=t>=0?n[t]:"/";c&&(i=`${c}/${i}`,l="/"===c.charAt(0))}return i=t(i.split("/").filter(t=>!!t),!l).join("/"),(l?"/":"")+i||"."}function c(t){let n=0;for(;n<t.length&&""===t[n];n++);let i=t.length-1;for(;i>=0&&""===t[i];i--);return n>i?[]:t.slice(n,i-n+1)}function o(t,n){t=l(t).slice(1),n=l(n).slice(1);const i=c(t.split("/")),o=c(n.split("/")),u=Math.min(i.length,o.length);let f=u;for(let t=0;t<u;t++)if(i[t]!==o[t]){f=t;break}let s=[];for(let t=f;t<i.length;t++)s.push("..");return s=s.concat(o.slice(f)),s.join("/")}function u(n){const i=f(n),l="/"===n.slice(-1);let c=t(n.split("/").filter(t=>!!t),!i).join("/");return c||i||(c="."),c&&l&&(c+="/"),(i?"/":"")+c}function f(t){return"/"===t.charAt(0)}function s(...t){return u(t.join("/"))}function b(t){const n=i(t),l=n[0]||"";let c=n[1];return l||c?(c&&(c=c.slice(0,c.length-1)),l+c):"."}function h(t,n){let l=i(t)[2]||"";return n&&l.slice(-1*n.length)===n&&(l=l.slice(0,l.length-n.length)),l}},2085,[]);
557__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DB_OPERATIONS_TO_INSTRUMENT",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"FILTER_MAPPINGS",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"extractOperation",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"translateFiltersIntoMethods",{enumerable:!0,get:function(){return R}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]),c=r(d[6]),p=r(d[7]),l=r(d[8]),f=r(d[9]),h=r(d[10]);const y=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],b=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],S={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},T=["select","insert","upsert","update","delete"];function E(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function O(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function _(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function I(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function R(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...o]=t.split(".");let s;return s=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&S[n]||"filter",`${s}(${e}, ${o.join(".")})`}function P(e,t=!1){return new Proxy(e,{apply:(n,s,c)=>(0,h.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,s,c).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:f.SPAN_STATUS_ERROR}),(0,o.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:f.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:f.SPAN_STATUS_ERROR}),e.end(),(0,o.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...c))})}function A(e){const t=e.auth;if(t&&!O(e.auth)){for(const n of y){const o=t[n];o&&("function"==typeof e.auth[n]&&(e.auth[n]=P(o)))}for(const n of b){const o=t.admin[n];o&&("function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=P(o,!0)))}E(e.auth)}}function N(n,s){O(n.prototype.then)||(n.prototype.then=new Proxy(n.prototype.then,{apply(n,c,y){const b=T,S=c,E=I(S.method,S.headers);if(!b.includes(E))return Reflect.apply(n,c,y);if(!S?.url?.pathname||"string"!=typeof S.url.pathname)return Reflect.apply(n,c,y);const O=S.url.pathname.split("/"),P=O.length>0?O[O.length-1]:"",A=[];
557for(const[e,t]of S.url.searchParams.entries())A.push(R(e,t));const N=Object.create(null);if((0,l.isPlainObject)(S.body))for(const[e,t]of Object.entries(S.body))N[e]=t;const U=(0,t.getClient)(),j=s.sendOperationData??!0===U?.getDataCollectionOptions().userInfo,k=_(S.body,N),w="select"===E?"":`${E}${$=S.body,v=N,void 0!==_($,v)?"(...) ":""}`;var $,v;const x=j?A.join(" "):A.length>0?"[redacted]":"",B=[w.trimEnd(),x].filter(Boolean).join(" "),D=B?`${B} from(${P})`:`from(${P})`,C={"db.table":P,"db.schema":S.schema,"db.url":S.url.origin,"db.sdk":S.headers["X-Client-Info"],"db.system":"postgresql","db.operation":E,[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return A.length&&j&&(C["db.query"]=A),void 0!==k&&j&&(C["db.body"]=k),(0,h.startSpan)({name:D,attributes:C},t=>Reflect.apply(n,c,[]).then(n=>{if(t&&(n&&"object"==typeof n&&"status"in n&&(0,f.setHttpStatus)(t,n.status||500),t.end()),n?.error){const e=new Error(n.error.message);n.error.code&&(e.code=n.error.code),n.error.details&&(e.details=n.error.details);const t={};A.length&&j&&(t.query=A),void 0!==k&&j&&(t.body=k),(0,o.captureException)(e,e=>(e.addEventProcessor(e=>((0,p.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",t),e))}const s={type:"supabase",category:`db.${E}`,message:D},u={};return A.length&&j&&(u.query=A),void 0!==k&&j&&(u.body=k),Object.keys(u).length&&(s.data=u),(0,e.addBreadcrumb)(s),n},e=>{throw t&&((0,f.setHttpStatus)(t,500),t.end()),e}).then(...y))}}),E(n.prototype.then))}function U(e,t){for(const o of T)O(e.prototype[o])||(e.prototype[o]=new Proxy(e.prototype[o],{apply(e,s,u){const p=Reflect.apply(e,s,u),l=p.constructor;return n.DEBUG_BUILD&&c.debug.log(`Instrumenting ${o} operation's PostgRESTFilterBuilder`),N(l,t),p}}),E(e.prototype[o]))}const j=(e,t={})=>{if(!e)return void(n.DEBUG_BUILD&&c.debug.warn("Supabase integration was not installed because no Supabase client was provided."));const o=e.constructor===Function?e:e.constructor;var s,u;u=t,O((s=o).prototype.from)||(s.prototype.from=new Proxy(s.prototype.from,{apply(e,t,n){const o=Reflect.apply(e,t,n);return U(o.constructor,u),o}}),E(s.prototype.from)),A(e)},k=(e,t)=>({setupOnce(){j(e,t)},name:"Supabase"}),w=(0,s.defineIntegration)(e=>k(e.supabaseClient,{sendOperationData:e.sendOperationData}))},2086,[2069,1988,1959,2016,2025,1989,1963,1974,1976,1990,2009]);
558__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"applyZodErrorsToEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"flattenIssue",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"flattenIssuePath",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"formatIssueMessage",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return l}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);function s(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function o(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function u(e){const t=new Set;for(const n of e.issues){const e=o(n.path);e.length>0&&t.add(e)}const s=Array.from(t);if(0===s.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,n.truncate)(s.join(", "),100)}`}function c(e,n=!1,o,c){if(!(o.exception?.values&&c.originalException&&(l=c.originalException,(0,t.isError)(l)&&"ZodError"===l.name&&Array.isArray(l.issues))&&0!==c.originalException.issues.length))return o;var l;try{const t=(n?c.originalException.issues:c.originalException.issues.slice(0,e)).map(s);return n&&(Array.isArray(c.attachments)||(c.attachments=[]),c.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:t})})),{...o,exception:{...o.exception,values:[{...o.exception.values[0],value:u(c.originalException)},...o.exception.values.slice(1)]},extra:{...o.extra,"zoderror.issues":t.slice(0,e)}}}catch(e){return{...o,extra:{...o.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const l=(0,e.defineIntegration)((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(n,s)=>c(t,e.saveZodIssuesAsAttachment,n,s)}})},2087,[2025,1976,1978]);
559__d(function(g,r,_i,a,m,e,d){"use strict";
559Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),i=r(d[2]),o=r(d[3]),s=r(d[4]);const l=(0,t.defineIntegration)(t=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",t=>{(0,i.forEachEnvelopeItem)(t,(t,i)=>{if("event"===i){const i=Array.isArray(t)?t[1]:void 0;i&&((0,n.stripMetadataFromStackFrames)(i),t[1]=i)}})}),t.on("applyFrameMetadata",i=>{if(i.type)return;const o=t.getOptions().stackParser;(0,n.addMetadataToStackFrames)(o,i)})},preprocessEvent(n){t.ignoreSentryInternalFrames&&(s.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(n.sdkProcessingMetadata={...n.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(n){const i=!!t.ignoreSentryInternalFrames&&(!0===n.sdkProcessingMetadata?.insideSentryWrapped&&1===n.exception?.values?.length),o=u(n,t.ignoreSentryInternalFrames,i);if(o){if(o["drop-error-if-contains-third-party-frames"===t.behaviour||"apply-tag-if-contains-third-party-frames"===t.behaviour?"some":"every"](n=>!n.some(n=>t.filterKeys.includes(n)))){if("drop-error-if-contains-third-party-frames"===t.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===t.behaviour)return null;n.tags={...n.tags,third_party_code:!0}}}return n}}));function c(t,n,i){if(0!==n)return!1;if(i&&p(t))return!0;if("sentryWrapped"===t.function)return!0;if(!t.context_line||!t.filename)return!1;if(!t.filename.includes("sentry")||!t.filename.includes("helpers")||!t.context_line.includes(h))return!1;if(t.pre_context){const n=t.pre_context.length;for(let i=0;i<n;i++)if(t.pre_context[i]?.includes(y))return!0}return!1}function u(t,n,i){const s=(0,o.getFramesFromEvent)(t);if(s)return s.filter((t,o)=>!!t.filename&&((null!=t.lineno||null!=t.colno||null!=t.instruction_addr)&&(!n||!c(t,o,!!i)))).map(t=>t.module_metadata?Object.keys(t.module_metadata).filter(t=>t.startsWith(f)).map(t=>t.slice(f.length)):[])}function p(t){return!t.context_line&&!t.pre_context&&!!t.function&&t.function.length<=2}const f="_sentryBundlerPluginAppKey:",y="Attempt to invoke user-land function",h="fn.apply(this, wrappedArguments)"},2088,[2025,2076,2005,1966,1961]);
560__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addConsoleBreadcrumb",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"consoleIntegration",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),u=r(d[5]),c=r(d[6]),f=r(d[7]);const O=(0,s.defineIntegration)((t={})=>{const s=new Set(t.levels||l.CONSOLE_LEVELS);return{name:"Console",setup(l){const u=(0,o.addConsoleInstrumentationHandler)(({args:t,level:o})=>{(0,n.getClient)()===l&&s.has(o)&&L(o,t)});if(l.registerCleanup(u),t.filter){const n=(0,o.addConsoleInstrumentationFilter)(t.filter);l.registerCleanup(n)}}}});function L(n,o){const s={category:"console",data:{arguments:o,logger:"console"},level:(0,u.severityLevelFromString)(n),message:p(o)};if("assert"===n){if(!1!==o[0])return;{const t=o.slice(1);s.message=t.length>0?`Assertion failed: ${p(t)}`:"Assertion failed",s.data.arguments=t}}(0,t.addBreadcrumb)(s,{input:o,level:n})}function p(t){return"util"in f.GLOBAL_OBJ&&"function"==typeof f.GLOBAL_OBJ.util.format?f.GLOBAL_OBJ.util.format(...t):(0,c.safeJoin)(t," ")}},2089,[2069,1988,2080,2025,1963,2081,1978,1961]);
561__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"featureFlagsIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o=(0,t.defineIntegration)(()=>({name:"FeatureFlags",processEvent:(t,o,c)=>(0,n._INTERNAL_copyFlagsFromScopeToEvent)(t),addFeatureFlag(t,o){(0,n._INTERNAL_insertFlagToScope)(t,o),(0,n._INTERNAL_addFeatureFlagToActiveSpan)(t,o)}}))},2090,[2025,2091]);
562__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return p}}
562),Object.defineProperty(e,"_INTERNAL_insertToFlagBuffer",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);const f=100,c=10,l="flag.evaluation.";function s(n){if(n.type)return n;const o=(0,t.getCurrentScope)().getScopeData().contexts.flags,u=o?o.values:[];return u.length?(void 0===n.contexts&&(n.contexts={}),n.contexts.flags={values:[...u]},n):n}function p(n,o,u=f){const c=(0,t.getCurrentScope)().getScopeData().contexts;c.flags||(c.flags={values:[]});_(c.flags.values,n,o,u)}function _(t,u,f,c){if("boolean"!=typeof f)return;if(t.length>c)return void(n.DEBUG_BUILD&&o.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${c}`));const l=t.findIndex(t=>t.flag===u);-1!==l&&t.splice(l,1),t.length===c&&t.shift(),t.push({flag:u,result:f})}function b(t,n,o=c){if("boolean"!=typeof n)return;const f=(0,u.getActiveSpan)();if(!f)return;const s=(0,u.spanToJSON)(f).data;if(`${l}${t}`in s)return void f.setAttribute(`${l}${t}`,n);Object.keys(s).filter(t=>t.startsWith(l)).length<o&&f.setAttribute(`${l}${t}`,n)}},2091,[1988,1959,1963,1968]);
563__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"growthbookIntegration",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);const u=(0,t.defineIntegration)(({growthbookClass:t})=>({name:"GrowthBook",setupOnce(){const o=t.prototype;"function"==typeof o.isOn&&(0,n.fill)(o,"isOn",c),"function"==typeof o.getFeatureValue&&(0,n.fill)(o,"getFeatureValue",c)},processEvent:(t,n,u)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(t)}));function c(t){return function(...n){const u=n[0],c=t.apply(this,n);return"string"==typeof u&&"boolean"==typeof c&&((0,o._INTERNAL_insertFlagToScope)(u,c),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(u,c)),c}}},2092,[2025,2091,1975]);
564__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"conversationIdIntegration",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);const c=(0,n.defineIntegration)(()=>({name:"ConversationId",setup(n){n.on("spanStart",n=>{const c=(0,t.getCurrentScope)().getScopeData(),p=(0,t.getIsolationScope)().getScopeData(),I=c.conversationId||p.conversationId;if(I){const{op:t,data:c,description:p}=(0,s.spanToJSON)(n);if(!t?.startsWith("gen_ai.")&&!c["ai.operationId"]&&!p?.startsWith("ai."))return;n.setAttribute(o.GEN_AI_CONVERSATION_ID_ATTRIBUTE,I)}})}}))},2093,[1988,2025,1989,1968]);
565__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"profiler",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function l(n){return!!n&&void 0!==n._profiler&&"function"==typeof n._profiler.start&&"function"==typeof n._profiler.stop}const f={startProfiler:function(){const f=(0,n.getClient)();if(!f)return void(t.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));const s=f.getIntegrationByName("ProfilingIntegration");s?l(s)?s._profiler.start():t.DEBUG_BUILD&&o.debug.warn("Profiler is not available on profiling integration."):t.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")},stopProfiler:function(){const f=(0,n.getClient)();if(!f)return void(t.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));const s=f.getIntegrationByName("ProfilingIntegration");s?l(s)?s._profiler.stop():t.DEBUG_BUILD&&o.debug.warn("Profiler is not available on profiling integration."):t.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")}}},2094,[1988,1959,1963]);
566__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"_callOnRequestSpanEnd",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"instrumentFetchRequest",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]),p=r(d[5]),u=r(d[6]),f=r(d[7
566]),h=r(d[8]),l=r(d[9]),b=r(d[10]),y=r(d[11]);function _(n,o,c,f,b){if(!n.fetchData)return;const{method:y,url:_}=n.fetchData,A=(0,p.hasSpansEnabled)()&&o(_);if(n.endTimestamp){const t=n.fetchData.__span;if(!t)return;const s=f[t];return void(s&&(A&&(R(s,n),S(s,n,b)),delete f[t]))}const{spanOrigin:v="auto.http.browser",propagateTraceparent:O=!1}="object"==typeof b?b:{spanOrigin:b},I=(0,t.getClient)(),j=!!(0,s.getActiveSpan)()||!!I&&(0,h.hasSpanStreamingEnabled)(I),D=A&&j?(0,l.startInactiveSpan)(E(_,y,v)):new u.SentryNonRecordingSpan;if(A&&!j&&I?.recordDroppedEvent("no_parent_span","span"),n.fetchData.__span=D.spanContext().spanId,f[D.spanContext().spanId]=D,c(n.fetchData.url)){const t=n.args[0],s={...n.args[1]||{}},o=T(t,s,(0,p.hasSpansEnabled)()&&j?D:void 0,O);o&&(n.args[1]=s,s.headers=o)}if(I){const t={input:n.args,response:n.response,startTimestamp:n.startTimestamp,endTimestamp:n.endTimestamp};I.emit("beforeOutgoingRequestSpan",D,t)}return D}function S(t,n,s){const o="object"==typeof s&&null!==s?s.onRequestSpanEnd:void 0;o?.(t,{headers:n.response?.headers,error:n.error})}function T(t,n,s,o){const p=(0,b.getTraceData)({span:s,propagateTraceparent:o}),u=p["sentry-trace"],f=p.baggage,h=p.traceparent;if(!u)return;const l=n.headers||((0,c.isRequest)(t)?t.headers:void 0);if(l){if(y=l,"undefined"!=typeof Headers&&(0,c.isInstanceOf)(y,Headers)){const t=new Headers(l);if(t.get("sentry-trace")||t.set("sentry-trace",u),o&&h&&!t.get("traceparent")&&t.set("traceparent",h),f){const n=t.get("baggage");n?A(n)||t.set("baggage",`${n},${f}`):t.set("baggage",f)}return t}if(v(l)){const t=[...l];t.find(t=>"sentry-trace"===t[0])||t.push(["sentry-trace",u]),o&&h&&!t.find(t=>"traceparent"===t[0])&&t.push(["traceparent",h]);const n=l.find(t=>"baggage"===t[0]&&"string"==typeof t[1]&&A(t[1]));return f&&!n&&t.push(["baggage",f]),t}{const t="sentry-trace"in l?l["sentry-trace"]:void 0,n="traceparent"in l?l.traceparent:void 0,s="baggage"in l?l.baggage:void 0,c=s?Array.isArray(s)?[...s]:[s]:[],p=s&&(Array.isArray(s)?s.find(t=>A(t)):A(s));f&&!p&&c.push(f);const b=Object.assign({},l,{"sentry-trace":t??u,baggage:c.length>0?c.join(","):void 0});return o&&h&&!n&&(b.traceparent=h),b}}return{...p};var y}function R(t,n){if(n.response){(0,o.setHttpStatus)(t,n.response.status);const s=n.response?.headers?.get("content-length");if(s){const n=parseInt(s);n>0&&t.setAttribute("http.response_content_length",n)}}else n.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"});t.end()}function A(t){return"string"==typeof t&&t.split(",").some(t=>t.trim().startsWith(f.SENTRY_BAGGAGE_KEY_PREFIX))}function v(t){return!!Array.isArray(t)&&t.every(t=>Array.isArray(t)&&2===t.length&&"string"==typeof t[0])}function E(t,n,s){if(t.startsWith("data:")){return{name:`${n} ${(0,y.stripDataUrlContent)(t)}`,attributes:O(t,void 0,n,s)}}const o=(0,y.parseStringToURLObject)(t);return{name:`${n} ${o?(0,y.getSanitizedUrlStringFromUrlObject)(o):t}`,attributes:O(t,o,n,s)}}function O(t,s,o,c){const p={url:(0,y.stripDataUrlContent)(t),type:"fetch","http.method":o,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return s&&((0,y.isURLObjectRelative)(s)||(p["http.url"]=(0,y.stripDataUrlContent)(s.href),p["server.address"]=s.host),s.search&&(p["http.query"]=s.search),s.hash&&(p["http.fragment"]=s.hash)),p}},2095,[1988,1989,1968,1990,1976,1997,1999,1993,2008,2009,2063,2058]);
567__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureFeedback",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n,c={},s=(0,t.getCurrentScope)()){const{message:o,name:u,email:l,url:f,source:b,associatedEventId:_,tags:p}=n,v={contexts:{feedback:{contact_email:l,name:u,message:o,url:f,source:b,associated_event_id:_}},type:"feedback",level:"info",tags:p},k=s?.getClient()||(0,t.getClient)();k&&k.emit("beforeSendFeedback",v,c);return s.captureEvent(v,c)}},2096,[1988]);
568__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fmt",{enumerable:!0,get:function(){return n.fmt}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"error",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"fatal",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"info",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"trace",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"warn",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]);function u(n,u,o,c,f){(0,t._INTERNAL_captureLog)({level:n,message:u,attributes:o,severityNumber:f},c)}function o(t,n,{scope:o}={}){u("trace",t,n,o)}function c(t,n,{scope:o}={}){u("debug",t,n,o)}function f(t,n,{scope:o}={}){u("info",t,n,o)}function b(t,n,{scope:o}={}){u("warn",t,n,o)}function p(t,n,{scope:o}={}){u("error",t,n,o)}function l(t,n,{scope:o}={}){u("fatal",t,n,o)}},2097,[2026,2059]);
569__d(function(g,r,i,a,m,e,d){"use strict";
569Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),f=r(d[7]),b=r(d[8]),p=r(d[9]);const L={[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},_=(0,o.defineIntegration)((o={})=>{const l=o.levels||c.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(o){const{enableLogs:_,normalizeDepth:C=3,normalizeMaxBreadth:E=1e3}=o.getOptions();if(!_)return void(n.DEBUG_BUILD&&c.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled"));const I=(0,s.addConsoleInstrumentationHandler)(({args:n,level:s})=>{if((0,t.getClient)()!==o||!l.includes(s))return;const c=n[0],_=n.slice(1);if("assert"===s){if(!c){const t=_.length>0?`Assertion failed: ${(0,p.formatConsoleArgs)(_,C,E)}`:"Assertion failed";(0,b._INTERNAL_captureLog)({level:"error",message:t,attributes:L})}return}const I="log"===s,v={...L};if((0,u.isPlainObject)(c)){Object.assign(v,(0,f.normalize)(c,C,E));const t="string"==typeof n[1]?2:1;n.slice(t).forEach((t,n)=>{v[`sentry.message.parameter.${n}`]=(0,f.normalize)(t,C,E)})}else{if(_.length>0&&"string"==typeof c&&!(0,p.hasConsoleSubstitutions)(c)){const t=(0,p.createConsoleTemplateAttributes)(c,_);for(const[n,s]of Object.entries(t))v[n]=n.startsWith("sentry.message.parameter.")?(0,f.normalize)(s,C,E):s}}(0,b._INTERNAL_captureLog)({level:I?"info":s,message:(0,p.formatConsoleArgs)(n,C,E),severityNumber:I?10:void 0,attributes:v})});o.registerCleanup(I)}}})},2098,[1988,1959,2080,2025,1989,1963,1976,1979,2026,2099]);
570__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createConsoleTemplateAttributes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"formatConsoleArgs",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"hasConsoleSubstitutions",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"safeJoinConsoleArgs",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function u(t,n,u){return"util"in o.GLOBAL_OBJ&&"function"==typeof o.GLOBAL_OBJ.util.format?o.GLOBAL_OBJ.util.format(...t):s(t,n,u)}function s(o,u,s){return o.map(o=>(0,t.isPrimitive)(o)?String(o):JSON.stringify((0,n.normalize)(o,u,s))).join(" ")}function f(t){return/%[sdifocO]/.test(t)}function c(t,n){const o={},u=new Array(n.length).fill("{}").join(" ");return o["sentry.message.template"]=`${t} ${u}`,n.forEach((t,n)=>{o[`sentry.message.parameter.${n}`]=t}),o}},2099,[1976,1979,1961]);
571__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"count",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"distribution",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"gauge",{enumerable:!0,get:function(){return c}});var t=r(d[0]);function n(n,u,c,o){(0,t._INTERNAL_captureMetric)({type:n,name:u,value:c,unit:o?.unit,attributes:o?.attributes},{scope:o?.scope})}function u(t,u=1,c){n("counter",t,u,c)}function c(t,u,c){n("gauge",t,u,c)}function o(t,u,c){n("distribution",t,u,c)}},2100,[2034]);
572__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createConsolaReporter",{enumerable:!0,get:function(){return f}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),l=r(d[4]);const c=["trace","debug","info","warn","error","fatal"];function f(o={}){const f=new Set(o.levels??c),u=o.client;return{log(o){const{type:c,level:b,message:h,args:O,tag:j,date:z,...C}=o,P=u||(0,t.getClient)();if(!P)return;const _=p(c,b);if(!f.has(_))return;const{normalizeDepth:w=3,normalizeMaxBreadth:A=1e3}=P.getOptions(),T={};for(const[t,s]of Object.entries(C))T[t]=(0,l.normalize)(s,w,A);T["sentry.origin"]="auto.log.consola",j&&(T["consola.tag"]=j),c&&(T["consola.type"]=c),null!=b&&"number"==typeof b&&(T["consola.level"]=b);const x=v(y(O,w,A),w,A);x?.attributes&&Object.assign(T,x.attributes),(0,s._INTERNAL_captureLog)({level:_,message:x?.message||h||O&&(0,n.formatConsoleArgs)(O,w,A)||"",attributes:T})}}}const u={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},b={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function p(t,s){if("verbose"===t)return"debug";if("silent"===t)return"trace";if(t){const s=u[t];if(s)return s}if("number"==typeof s){const t=b[s];if(t)return t}return"info"}function y(t,s,l){if(!t?.length)return{message:""};const c=(0,n.formatConsoleArgs)(t,s,l),f=t[0];if((0,o.isPlainObject)(f)){const s="string"==typeof t[1]?2:1;return{message:c,attributes:f,messageParameters:t.slice(s)}}{const s=t.slice(1),o=s.length>0&&"string"==typeof f&&!(0,n.hasConsoleSubstitutions)(f);return{message:c,messageTemplate:o?f:void 0,messageParameters:o?s:void 0}}}function v(t,s,o){const{message:c,attributes:f,messageTemplate:u,messageParameters:b}=t,p={};if(u&&b){const t=(0,n.createConsoleTemplateAttributes)(u,b);for(const[n,c]of Object.entries(t))p[n]=n.startsWith("sentry.message.parameter.")?(0,l.normalize)(c,s,o):c}else b&&b.length>0&&b.forEach((t,n)=>{p[`sentry.message.parameter.${n}`]=(0,l.normalize)(t,s,o)});return{message:c,attributes:{...(0,l.normalize)(f,s,o),...p}}}},2101,[1988,2026,2099,1976,1979]);
573__d(function(g,r,i,a,m,e,d){"use strict";
573Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addVercelAiProcessors",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"processVercelAiSpanAttributes",{enumerable:!0,get:function(){return R}});var T=r(d[0]),_=r(d[1]),t=r(d[2]),E=r(d[3]),A=r(d[4]),n=r(d[5]),I=r(d[6]),o=r(d[7]),s=r(d[8]);function O(_){const{data:A,description:n}=(0,E.spanToJSON)(_);if(!n)return;if(A[s.AI_TOOL_CALL_NAME_ATTRIBUTE]&&A[s.AI_TOOL_CALL_ID_ATTRIBUTE]&&"ai.toolCall"===n)return void P(_,A);if(!A[s.AI_OPERATION_ID_ATTRIBUTE]&&!n.startsWith("ai."))return;const I=(0,T.getClient)(),o=I?.getIntegrationByName("VercelAI");B(_,n,A,(0,t.shouldEnableTruncation)(o?.options?.enableTruncation))}function N(T){if("transaction"===T.type&&T.spans){const _=new Map;for(const t of T.spans)S(t),(0,o.accumulateTokensForParent)(t,_);(0,o.applyToolDescriptionsAndTokens)(T.spans,_);const t=T.contexts?.trace;"gen_ai.invoke_agent"===t?.op&&(0,o.applyAccumulatedTokens)(t,_)}return T}function c(T){return"string"!=typeof T?"stop":"tool-calls"===T?"tool_call":T}function U(T){const _=T[s.AI_RESPONSE_TEXT_ATTRIBUTE],t=T[s.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE],E=T[s.AI_RESPONSE_FINISH_REASON_ATTRIBUTE];if(null==_&&null==t)return;const n=[];if("string"==typeof _&&_.length>0&&n.push({type:"text",content:_}),null!=t)try{const _="string"==typeof t?JSON.parse(t):t;if(Array.isArray(_)){for(const T of _){const _=T.input??T.args;n.push({type:"tool_call",id:T.toolCallId,name:T.toolName,arguments:"string"==typeof _?_:JSON.stringify(_??{})})}delete T[s.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]}}catch{}if(n.length>0){const _={role:"assistant",parts:n,finish_reason:c(E)};T[A.GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE]=JSON.stringify([_]),delete T[s.AI_RESPONSE_TEXT_ATTRIBUTE]}}function R(T){p(T,s.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE),p(T,"ai.usage.inputTokens",A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,"ai.usage.outputTokens",A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,"ai.response.avgOutputTokensPerSecond","ai.response.avgCompletionTokensPerSecond");if(Object.keys(T).some(T=>T.startsWith(s.AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX))||"number"!=typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]||"number"!=typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]||(T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]+T[A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]),"number"==typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]){const _="number"==typeof T[A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]?T[A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:0;T[A.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=_+T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]}if(T[s.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(T[s.AI_PROMPT_TOOLS_ATTRIBUTE])&&(T[s.AI_PROMPT_TOOLS_ATTRIBUTE]=(0,o.convertAvailableToolsToJsonString)(T[s.AI_PROMPT_TOOLS_ATTRIBUTE])),T[s.OPERATION_NAME_ATTRIBUTE]){const _=T[s.AI_OPERATION_ID_ATTRIBUTE]?T[s.AI_OPERATION_ID_ATTRIBUTE]:T[s.OPERATION_NAME_ATTRIBUTE],t=n.SPAN_TO_OPERATION_NAME.get(_)??_;T[A.GEN_AI_OPERATION_NAME_ATTRIBUTE]=t,delete T[s.OPERATION_NAME_ATTRIBUTE]}if(p(T,s.AI_PROMPT_MESSAGES_ATTRIBUTE,A.GEN_AI_INPUT_MESSAGES_ATTRIBUTE),U(T),p(T,s.AI_RESPONSE_OBJECT_ATTRIBUTE,"gen_ai.response.object"),p(T,s.AI_PROMPT_TOOLS_ATTRIBUTE,"gen_ai.request.available_tools"),p(T,s.AI_TOOL_CALL_ARGS_ATTRIBUTE,A.GEN_AI_TOOL_INPUT_ATTRIBUTE),p(T,s.AI_TOOL_CALL_RESULT_ATTRIBUTE,A.GEN_AI_TOOL_OUTPUT_ATTRIBUTE),p(T,s.AI_SCHEMA_ATTRIBUTE,"gen_ai.request.schema"),p(T,s.AI_MODEL_ID_ATTRIBUTE,A.GEN_AI_REQUEST_MODEL_ATTRIBUTE),Array.isArray(T[s.AI_VALUES_ATTRIBUTE])){const _=T[s.AI_VALUES_ATTRIBUTE].map(T=>{try{return JSON.parse(T)}catch{return T}});T[A.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]=1===_.length?_[0]:JSON.stringify(_)}f(T);for(const _ of Object.keys(T))Array.isArray(T[_])&&(T[_]=JSON.stringify(T[_])),_.startsWith("ai.")&&p(T,_,`vercel.${_}`)}function S(T){const{data:_,origin:t}=T;"auto.vercelai.otel"===t&&(T.status&&"ok"!==T.status&&(T.status="internal_error"),R(_))}function u(T){const t=T.attributes;if("auto.vercelai.otel"===t?.[_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]){if(R(t),"gen_ai.execute_tool"===t[_.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&T.parent_span_id){const _=n.toolDescriptionMap.get(T.parent_span_id);if(_){const T=t[A.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof T){const E=_.get(T);E&&(t[A.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=E)}}}n.toolDescriptionMap.delete(T.span_id)}}function p(T,_,t){null!=T[_]&&(T[t]=T[_],delete T[_])}function P(T,t){T.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel"),T.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.execute_tool"),T.setAttribute(A.GEN_AI_OPERATION_NAME_ATTRIBUTE,"execute_tool"),p(t,s.AI_TOOL_CALL_NAME_ATTRIBUTE,A.GEN_AI_TOOL_NAME_ATTRIBUTE),p(t,s.AI_TOOL_CALL_ID_ATTRIBUTE,A.GEN_AI_TOOL_CALL_ID_ATTRIBUTE);
573const E=t[A.GEN_AI_TOOL_CALL_ID_ATTRIBUTE];"string"==typeof E&&n.toolCallSpanContextMap.set(E,T.spanContext()),t[A.GEN_AI_TOOL_TYPE_ATTRIBUTE]||T.setAttribute(A.GEN_AI_TOOL_TYPE_ATTRIBUTE,"function");const I=t[A.GEN_AI_TOOL_NAME_ATTRIBUTE];I&&T.updateName(`execute_tool ${I}`)}function B(t,O,N,c){t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel");const U=O.replace("ai.","");t.setAttribute("ai.pipeline.name",U),t.updateName(U);const R=N[s.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE];R&&"string"==typeof R&&t.setAttribute("gen_ai.function_id",R),(0,o.requestMessagesFromPrompt)(t,N,c),N[s.AI_MODEL_ID_ATTRIBUTE]&&!N[A.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]&&t.setAttribute(A.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,N[s.AI_MODEL_ID_ATTRIBUTE]),t.setAttribute("ai.streaming",O.includes("stream"));const S=n.SPAN_TO_OPERATION_NAME.get(O);if(S?t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,`gen_ai.${S}`):O.startsWith("ai.stream")&&t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,"ai.run"),"invoke_agent"===S)return void(R&&"string"==typeof R?t.updateName(`invoke_agent ${R}`):t.updateName("invoke_agent"));const u=N[s.AI_MODEL_ID_ATTRIBUTE];u&&S&&t.updateName(`${S} ${u}`);const p=(0,T.getClient)();if(p&&(0,I.hasSpanStreamingEnabled)(p)&&N[s.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(N[s.AI_PROMPT_TOOLS_ATTRIBUTE])){const T=new Map;for(const _ of N[s.AI_PROMPT_TOOLS_ATTRIBUTE])try{const t="string"==typeof _?JSON.parse(_):_;t?.name&&t?.description&&T.set(t.name,t.description)}catch{}if(T.size>0){const _=(0,E.spanToJSON)(t).parent_span_id;_&&n.toolDescriptionMap.set(_,T)}}}function l(T){T.on("spanStart",O),T.addEventProcessor(Object.assign(N,{id:"VercelAiEventProcessor"})),T.on("processSpan",T=>{u(T)})}function G(T){const _={};if(!T||"object"!=typeof T)return _;const t=T,E=t.openai??t.azure;if(E&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,E.cachedPromptTokens),L(_,"gen_ai.usage.output_tokens.reasoning",E.reasoningTokens),L(_,"gen_ai.usage.output_tokens.prediction_accepted",E.acceptedPredictionTokens),L(_,"gen_ai.usage.output_tokens.prediction_rejected",E.rejectedPredictionTokens),L(_,A.GEN_AI_CONVERSATION_ID_ATTRIBUTE,E.responseId)),t.anthropic){const T=t.anthropic.usage?.cache_read_input_tokens??t.anthropic.cacheReadInputTokens;L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,T);const E=t.anthropic.usage?.cache_creation_input_tokens??t.anthropic.cacheCreationInputTokens;L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,E)}return t.bedrock?.usage&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t.bedrock.usage.cacheReadInputTokens),L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,t.bedrock.usage.cacheWriteInputTokens)),t.deepseek&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t.deepseek.promptCacheHitTokens),L(_,"gen_ai.usage.input_tokens.cache_miss",t.deepseek.promptCacheMissTokens)),_}function f(T){const _=T[s.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE];if(_)try{const t=G(JSON.parse(_));for(const[_,E]of Object.entries(t))_===A.GEN_AI_CONVERSATION_ID_ATTRIBUTE&&T[_]||(T[_]=E)}catch{}}function L(T,_,t){null!=t&&(T[_]=t)}},2102,[1988,1989,2103,1968,2104,2107,2008,2108,2109]);
574__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildMethodPath",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"endStreamSpan",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractSystemInstructions",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getJsonString",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"getTruncatedJsonString",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"resolveAIRecordingOptions",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"setTokenUsageAttributes",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldEnableTruncation",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"wrapPromiseWithMethods",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]);function T(t){const o=(0,n.getClient)()?.getDataCollectionOptions().genAI;return{...t,recordInputs:t?.recordInputs??o?.inputs??!1,recordOutputs:t?.recordOutputs??o?.outputs??!1}}function _(t){if(void 0!==t)return t;const s=(0,n.getClient)();return!s||!(0,o.hasSpanStreamingEnabled)(s)&&!1===s.getOptions().streamGenAiSpans}function f(t,n){return t?`${t}.${n}`:n}function p(t,n,o,s,c){if(void 0!==n&&t.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:n}),void 0!==o&&t.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:o}),void 0!==n||void 0!==o||void 0!==s||void 0!==c){const T=(n??0)+(o??0)+(s??0)+(c??0);t.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:T})}}function E(t,n,o){if(!t.isRecording())return;const s={[u.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};n.responseId&&(s[u.GEN_AI_RESPONSE_ID_ATTRIBUTE]=n.responseId),n.responseModel&&(s[u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=n.responseModel),void 0!==n.promptTokens&&(s[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=n.promptTokens),void 0!==n.completionTokens&&(s[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=n.completionTokens),void 0!==n.totalTokens?s[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.totalTokens:void 0===n.promptTokens&&void 0===n.completionTokens&&void 0===n.cacheCreationInputTokens&&void 0===n.cacheReadInputTokens||(s[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=(n.promptTokens??0)+(n.completionTokens??0)+(n.cacheCreationInputTokens??0)+(n.cacheReadInputTokens??0)),n.finishReasons.length&&(s[u.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(n.finishReasons)),o&&n.responseTexts.length&&(s[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=n.responseTexts.join("")),o&&n.toolCalls.length&&(s[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n.toolCalls)),t.setAttributes(s),t.end()}function A(t){return"string"==typeof t?t:JSON.stringify(t)}function l(t){if("string"==typeof t)return(0,c.truncateGenAiStringInput)(t);if(Array.isArray(t)){const n=(0,c.truncateGenAiMessages)(t);return JSON.stringify(n)}return JSON.stringify(t)}function I(t){if(!Array.isArray(t))return{systemInstructions:void 0,filteredMessages:t};const n=t.findIndex(t=>t&&"object"==typeof t&&"role"in t&&"system"===t.role);if(-1===n)return{systemInstructions:void 0,filteredMessages:t};const o=t[n],s="string"==typeof o.content?o.content:void 0!==o.content?JSON.stringify(o.content):void 0;if(!s)return{systemInstructions:void 0,filteredMessages:t};return{systemInstructions:JSON.stringify([{type:"text",content:s}]),filteredMessages:[...t.slice(0,n),...t.slice(n+1)]}}
574async function S(n,o,s){const u=n.catch(n=>{throw(0,t.captureException)(n,{mechanism:{handled:!1,type:s}}),n}),c=await o,T=await u;return T&&"object"==typeof T&&"data"in T?{...T,data:c}:c}function O(t,n,o){return(0,s.isThenable)(t)?new Proxy(t,{get(t,s){const u=s in Promise.prototype||s===Symbol.toStringTag?n:t,c=Reflect.get(u,s);return"withResponse"===s&&"function"==typeof c?function(){return S(c.call(t),n,o)}:"function"==typeof c?c.bind(u):c}}):n}},2103,[2016,1988,2008,1976,2104,2105]);
575__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GEN_AI_AGENT_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"GEN_AI_INPUT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"GEN_AI_OPERATION_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"GEN_AI_PIPELINE_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"GEN_AI_PROMPT_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE",{enumerable:!0,get:function(){return O}}
575),Object.defineProperty(e,"GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"GEN_AI_REQUEST_MODEL_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"GEN_AI_REQUEST_STREAM_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"GEN_AI_REQUEST_TOP_K_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"GEN_AI_REQUEST_TOP_P_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"GEN_AI_RESPONSE_ID_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"GEN_AI_RESPONSE_MODEL_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"GEN_AI_RESPONSE_STREAMING_ATTRIBUTE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"GEN_AI_RESPONSE_TEXT_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"GEN_AI_SYSTEM_ATTRIBUTE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"GEN_AI_TOOL_CALL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return X}}),Object.defineProperty(e,"GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"GEN_AI_TOOL_INPUT_ATTRIBUTE",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"GEN_AI_TOOL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"GEN_AI_TOOL_OUTPUT_ATTRIBUTE",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"GEN_AI_TOOL_TYPE_ATTRIBUTE",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return s}});const n="gen_ai.prompt",t="gen_ai.system",_="gen_ai.request.model",T="gen_ai.request.stream",E="gen_ai.request.temperature",u="gen_ai.request.max_tokens",o="gen_ai.request.frequency_penalty",A="gen_ai.request.presence_penalty",I="gen_ai.request.top_p",c="gen_ai.request.top_k",O="gen_ai.request.encoding_format",N="gen_ai.request.dimensions",f="gen_ai.response.finish_reasons",b="gen_ai.response.model",R="gen_ai.response.id",P="gen_ai.response.stop_reason",U="gen_ai.usage.input_tokens",p="gen_ai.usage.output_tokens",s="gen_ai.usage.total_tokens",S="gen_ai.operation.name",l="sentry.sdk_meta.gen_ai.input.messages.original_length",G="gen_ai.input.messages",y="gen_ai.output.messages",B="gen_ai.system_instructions",j="gen_ai.response.text",L="gen_ai.request.available_tools",M="gen_ai.response.streaming",C="gen_ai.response.tool_calls",D="gen_ai.agent.name",q="gen_ai.pipeline.name",Q="gen_ai.conversation.id",k="gen_ai.usage.cache_creation_input_tokens",K="gen_ai.usage.cache_read_input_tokens",h="gen_ai.usage.input_tokens.cache_write",H="gen_ai.usage.input_tokens.cached",Y="gen_ai.invoke_agent",v="gen_ai.embeddings.input",x="gen_ai.embeddings",F="gen_ai.execute_tool",V="gen_ai.tool.name",X="gen_ai.tool.call.id",w="gen_ai.tool.type",W="gen_ai.tool.input",z="gen_ai.tool.output",J="gen_ai.tool.description"},2104,[]);
576__d(function(g,r,i,a,m,e,d){"use strict";
576Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"truncateGenAiMessages",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"truncateGenAiStringInput",{enumerable:!0,get:function(){return I}});var t=r(d[0]);const n=2e4,o=t=>(new TextEncoder).encode(t).length,c=t=>o(JSON.stringify(t));function u(t,n){if(o(t)<=n)return t;let c=0,u=t.length,s="";for(;c<=u;){const f=Math.floor((c+u)/2),l=t.slice(0,f);o(l)<=n?(s=l,c=f+1):u=f-1}return s}function s(t){return"string"==typeof t?t:"text"in t&&"string"==typeof t.text?t.text:""}function f(t,n){return"string"==typeof t?n:{...t,text:n}}function l(t){return null!==t&&"object"==typeof t&&"content"in t&&"string"==typeof t.content}function p(t){return null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)}function y(t){return null!==t&&"object"==typeof t&&"parts"in t&&Array.isArray(t.parts)&&t.parts.length>0}function A(t,n){const o={...t,content:""},s=n-c(o);if(s<=0)return[];const f=u(t.content,s);return[{...t,content:f}]}function b(t){return"parts"in t&&Array.isArray(t.parts)?{key:"parts",items:t.parts}:"content"in t&&Array.isArray(t.content)?{key:"content",items:t.content}:{key:null,items:[]}}function M(t,n){const{key:l,items:p}=b(t);if(null===l||0===p.length)return[];const y=p.map(t=>f(t,""));let A=n-c({...t,[l]:y});if(A<=0)return[];const M=[];for(const t of p){const n=s(t),c=o(n);if(!(c<=A)){if(0===M.length){const o=u(n,A);o&&M.push(f(t,o));break}break}M.push(t),A-=c}return M.length<=0?[]:[{...t,[l]:M}]}function h(t,n){if(!t)return[];if("string"==typeof t){const o=u(t,n);return o?[o]:[]}return"object"!=typeof t?[]:l(t)?A(t,n):p(t)||y(t)?M(t,n):[]}function j(n){return n.map(n=>{let o;return n&&"object"==typeof n&&(p(n)?o={...n,content:j(n.content)}:"content"in n&&(0,t.isContentMedia)(n.content)&&(o={...n,content:(0,t.stripInlineMediaFromSingleMessage)(n.content)}),y(n)&&(o={...o??n,parts:j(n.parts)}),(0,t.isContentMedia)(o)?o=(0,t.stripInlineMediaFromSingleMessage)(o):(0,t.isContentMedia)(n)&&(o=(0,t.stripInlineMediaFromSingleMessage)(n))),o??n})}function _(t,n){if(!Array.isArray(t)||0===t.length)return t;const o=n-2,u=j([t[t.length-1]]),s=u[0];return c(s)<=o?u:h(s,o)}function S(t){return _(t,n)}function I(t){return u(t,n)}},2105,[2106]);
577__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return!(!t||"object"!=typeof t)&&(o(t)||f(t)||n(t)||p(t)||s(t)||l(t)||y(t)||c(t)||_(t)||b(t)||h(t)||j(t))}function n(t){return"image_url"in t&&("string"==typeof t.image_url?t.image_url.startsWith("data:"):u(t))}function u(t){return"image_url"in t&&!!t.image_url&&"object"==typeof t.image_url&&"url"in t.image_url&&"string"==typeof t.image_url.url&&t.image_url.url.startsWith("data:")}function o(n){return"type"in n&&"string"==typeof n.type&&"source"in n&&t(n.source)}function f(t){return"inlineData"in t&&!!t.inlineData&&"object"==typeof t.inlineData&&"data"in t.inlineData&&"string"==typeof t.inlineData.data}function p(t){return"type"in t&&"input_audio"===t.type&&"input_audio"in t&&!!t.input_audio&&"object"==typeof t.input_audio&&"data"in t.input_audio&&"string"==typeof t.input_audio.data}function s(t){return"type"in t&&"file"===t.type&&"file"in t&&!!t.file&&"object"==typeof t.file&&"file_data"in t.file&&"string"==typeof t.file.file_data}function l(t){return"media_type"in t&&"string"==typeof t.media_type&&"data"in t}function y(t){return"type"in t&&"file"===t.type&&"mediaType"in t&&"string"==typeof t.mediaType&&"data"in t&&"string"==typeof t.data&&!t.data.startsWith("http://")&&!t.data.startsWith("https://")}function c(t){return"type"in t&&"image"===t.type&&"image"in t&&"string"==typeof t.image&&!t.image.startsWith("http://")&&!t.image.startsWith("https://")}function _(t){return"type"in t&&("blob"===t.type||"base64"===t.type)}function b(t){return"b64_json"in t}function h(t){return"type"in t&&"result"in t&&"image_generation"===t.type}function j(t){return"uri"in t&&"string"==typeof t.uri&&t.uri.startsWith("data:")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isContentMedia",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"stripInlineMediaFromSingleMessage",{enumerable:!0,get:function(){return M}});const D="[Blob substitute]",W=["image_url","data","content","b64_json","result","uri","image"];function M(n){const o={...n};t(o.source)&&(o.source=M(o.source)),f(n)&&(o.inlineData={...n.inlineData,data:D}),u(n)&&(o.image_url={...n.image_url,url:D}),p(n)&&(o.input_audio={...n.input_audio,data:D}),s(n)&&(o.file={...n.file,file_data:D});for(const t of W)"string"==typeof o[t]&&(o[t]=D);return o}},2106,[]);
578__d(function(g,r,i,a,m,e,d){"use strict";
578Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_TO_OPERATION_NAME",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"toolCallSpanContextMap",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"toolDescriptionMap",{enumerable:!0,get:function(){return n}});const t=new Map,n=new Map,o=new Map([["ai.generateText","invoke_agent"],["ai.streamText","invoke_agent"],["ai.generateObject","invoke_agent"],["ai.streamObject","invoke_agent"],["ai.generateText.doGenerate","generate_content"],["ai.streamText.doStream","generate_content"],["ai.generateObject.doGenerate","generate_content"],["ai.streamObject.doStream","generate_content"],["ai.embed.doEmbed","embeddings"],["ai.embedMany.doEmbed","embeddings"],["ai.rerank.doRerank","rerank"],["ai.toolCall","execute_tool"]])},2107,[]);
579__d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"accumulateTokensForParent",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"applyAccumulatedTokens",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"applyToolDescriptionsAndTokens",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"convertAvailableToolsToJsonString",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"convertUserInputToMessagesFormat",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"requestMessagesFromPrompt",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function T(n,o){const s=n.parent_span_id;if(!s)return;const T=n.data[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE],_=n.data[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE];if("number"==typeof T||"number"==typeof _){const t=o.get(s)||{inputTokens:0,outputTokens:0};"number"==typeof T&&(t.inputTokens+=T),"number"==typeof _&&(t.outputTokens+=_),o.set(s,t)}}function _(n,o){const s=o.get(n.span_id);s&&n.data&&(s.inputTokens>0&&(n.data[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=s.inputTokens),s.outputTokens>0&&(n.data[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=s.outputTokens),(s.inputTokens>0||s.outputTokens>0)&&(n.data["gen_ai.usage.total_tokens"]=s.inputTokens+s.outputTokens))}function u(n){const o=new Map;for(const s of n){const n=s.data[t.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE];if("string"==typeof n)try{const t=JSON.parse(n);for(const n of t)n.name&&n.description&&!o.has(n.name)&&o.set(n.name,n.description)}catch{}}return o}function c(n,o){const s=u(n);for(const T of n){if("gen_ai.execute_tool"===T.op){const n=T.data[t.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof n){const o=s.get(n);o&&(T.data[t.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=o)}}"gen_ai.invoke_agent"===T.op&&_(T,o)}}function A(t){return o.toolCallSpanContextMap.get(t)}function E(t){o.toolCallSpanContextMap.delete(t)}function p(t){const n=t.map(t=>{if("string"==typeof t)try{return JSON.parse(t)}catch{return t}return t});return JSON.stringify(n)}function I(t){return t.filter(t=>!!t&&"object"==typeof t&&"role"in t&&"content"in t)}function f(t){try{const n=JSON.parse(t);if(n&&"object"==typeof n){let{messages:t}=n;const{prompt:o,system:s}=n,T=[];if("string"==typeof s&&T.push({role:"system",content:s}),"string"==typeof t)try{t=JSON.parse(t)}catch{}if(Array.isArray(t))return T.push(...I(t)),T;if(Array.isArray(o))return T.push(...I(o)),T;if("string"==typeof o&&T.push({role:"user",content:o}),T.length>0)return T}}catch{}return[]}function S(o,T,_){if("string"!=typeof T[s.AI_PROMPT_ATTRIBUTE]||T[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]||T[s.AI_PROMPT_MESSAGES_ATTRIBUTE]){if
579("string"==typeof T[s.AI_PROMPT_MESSAGES_ATTRIBUTE]){const u=T[s.AI_PROMPT_MESSAGES_ATTRIBUTE];try{const T=JSON.parse(u);if(Array.isArray(T)){const{systemInstructions:c,filteredMessages:A}=(0,n.extractSystemInstructions)(T);c&&o.setAttribute(t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,c);const E=Array.isArray(A)?A.length:0,p=_||A!==T?_?(0,n.getTruncatedJsonString)(A):(0,n.getJsonString)(A):u;o.setAttributes({[s.AI_PROMPT_MESSAGES_ATTRIBUTE]:p,[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:p,[t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:E})}}catch{}}}else{const u=f(T[s.AI_PROMPT_ATTRIBUTE]);if(u.length){const{systemInstructions:T,filteredMessages:c}=(0,n.extractSystemInstructions)(u);T&&o.setAttribute(t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,T);const A=Array.isArray(c)?c.length:0,E=_?(0,n.getTruncatedJsonString)(c):(0,n.getJsonString)(c);o.setAttributes({[s.AI_PROMPT_ATTRIBUTE]:E,[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:E,[t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:A})}}}},2108,[2104,2103,2107,2109]);
580__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AI_MODEL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"AI_OPERATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"AI_PROMPT_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"AI_PROMPT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"AI_PROMPT_TOOLS_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"AI_RESPONSE_FINISH_REASON_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"AI_RESPONSE_OBJECT_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"AI_RESPONSE_TEXT_ATTRIBUTE",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"AI_RESPONSE_TOOL_CALLS_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"AI_SCHEMA_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"AI_TOOL_CALL_ARGS_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"AI_TOOL_CALL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"AI_TOOL_CALL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"AI_TOOL_CALL_RESULT_ATTRIBUTE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"AI_USAGE_PROMPT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"AI_USAGE_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"AI_VALUES_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"OPERATION_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return t}});const t="operation.name",n="ai.operationId",T="ai.prompt",o="ai.schema",_="ai.response.object",u="ai.values",A="ai.response.text",E="ai.response.toolCalls",I="ai.response.finishReason",O="ai.prompt.messages",c="ai.prompt.tools",f="ai.model.id",b="ai.response.providerMetadata",l="ai.usage.cachedInputTokens",P="ai.usage.inputTokenDetails.",p="ai.telemetry.functionId",R="ai.usage.completionTokens",s="ai.usage.promptTokens",U="ai.usage.tokens",S="ai.toolCall.name",j="ai.toolCall.id",y="ai.toolCall.args",B="ai.toolCall.result"},2109,[]);
581__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return N}});
581var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),_=r(d[5]),c=r(d[6]),T=r(d[7]),E=r(d[8]),A=r(d[9]),p=r(d[10]);function I(n){const o=[...Array.isArray(n.tools)?n.tools:[],...n.web_search_options&&"object"==typeof n.web_search_options?[{type:"web_search_options",...n.web_search_options}]:[]];if(0!==o.length)try{return JSON.stringify(o)}catch(n){return void(t.DEBUG_BUILD&&s.debug.error("Failed to serialize OpenAI tools:",n))}}function l(t,n){const s={[c.GEN_AI_SYSTEM_ATTRIBUTE]:"openai",[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:n,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(t.length>0&&"object"==typeof t[0]&&null!==t[0]){const n=t[0],o=I(n);o&&(s[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=o),Object.assign(s,(0,p.extractRequestParameters)(n))}else s[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return s}function S(t,n,o,s){if("embeddings"===o&&"input"in n){const o=n.input;if(null==o)return;if("string"==typeof o&&0===o.length)return;if(Array.isArray(o)&&0===o.length)return;return void t.setAttribute(c.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o))}const u="input"in n?n.input:"messages"in n?n.messages:void 0;if(!u)return;if(Array.isArray(u)&&0===u.length)return;const{systemInstructions:_,filteredMessages:E}=(0,T.extractSystemInstructions)(u);_&&t.setAttribute(c.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,_),t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,s?(0,T.getTruncatedJsonString)(E):(0,T.getJsonString)(E)),Array.isArray(E)?t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,E.length):t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,1)}function f(t,o,s,E,I){return function(...f){const y=s.operation||"unknown",N=l(f,y),R=N[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",b=f[0],h=b&&"object"==typeof b&&!0===b.stream,O={name:`${y} ${R}`,op:`gen_ai.${y}`,attributes:N};if(h){let s;const c=(0,_.startSpanManual)(O,_=>(s=t.apply(E,f),I.recordInputs&&b&&S(_,b,y,(0,T.shouldEnableTruncation)(I.enableTruncation)),(async()=>{try{const t=await s;return(0,A.instrumentStream)(t,_,I.recordOutputs??!1)}catch(t){throw _.setStatus({code:u.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:o}}}),_.end(),t}})()));return(0,T.wrapPromiseWithMethods)(s,c,"auto.ai.openai")}let U;const G=(0,_.startSpan)(O,s=>(U=t.apply(E,f),I.recordInputs&&b&&S(s,b,y,(0,T.shouldEnableTruncation)(I.enableTruncation)),U.then(t=>((0,p.addResponseAttributes)(s,t,I.recordOutputs),t),t=>{throw(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:o}}}),t})));return(0,T.wrapPromiseWithMethods)(U,G,"auto.ai.openai")}}function y(t,n="",o){return new Proxy(t,{get(t,s){const u=t[s],_=(0,T.buildMethodPath)(n,String(s)),c=E.OPENAI_METHOD_REGISTRY[_];return"function"==typeof u&&c?f(u,_,c,t,o):"function"==typeof u?u.bind(t):u&&"object"==typeof u?y(u,_,o):u}})}function N(t,n){return y(t,"",(0,T.resolveAIRecordingOptions)(n))}},2110,[1959,2016,1989,1963,1990,2009,2104,2103,2111,2112,2113]);
582__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"OPENAI_METHOD_REGISTRY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"RESPONSES_TOOL_CALL_EVENT_TYPES",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"RESPONSE_EVENT_TYPES",{enumerable:!0,get:function(){return s}});const t="OpenAI",n={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},o=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],s=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...o]},2111,[]);
583__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentStream",{enumerable:!0,get:function(){return f}});
583var o=r(d[0]),s=r(d[1]),t=r(d[2]),n=r(d[3]),l=r(d[4]);function p(o,s){for(const t of o){const o=t.index;if(void 0!==o&&t.function)if(o in s.chatCompletionToolCalls){const n=s.chatCompletionToolCalls[o];t.function.arguments&&n?.function&&(n.function.arguments+=t.function.arguments)}else s.chatCompletionToolCalls[o]={...t,function:{name:t.function.name,arguments:t.function.arguments||""}}}}function u(o,s,t){s.responseId=o.id??s.responseId,s.responseModel=o.model??s.responseModel,o.usage&&(s.promptTokens=o.usage.prompt_tokens,s.completionTokens=o.usage.completion_tokens,s.totalTokens=o.usage.total_tokens);for(const n of o.choices??[])t&&(n.delta?.content&&s.responseTexts.push(n.delta.content),n.delta?.tool_calls&&p(n.delta.tool_calls,s)),n.finish_reason&&s.finishReasons.push(n.finish_reason)}function c(t,l,p,u){if(!t||"object"!=typeof t)return void l.eventTypes.push("unknown:non-object");if(t instanceof Error)return u.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),void(0,o.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in t))return;const c=t;if(n.RESPONSE_EVENT_TYPES.includes(c.type)){if(p&&("response.output_item.done"===c.type&&"item"in c&&l.responsesApiToolCalls.push(c.item),"response.output_text.delta"===c.type&&"delta"in c&&c.delta))l.responseTexts.push(c.delta);else if("response"in c){const{response:o}=c;l.responseId=o.id??l.responseId,l.responseModel=o.model??l.responseModel,o.usage&&(l.promptTokens=o.usage.input_tokens,l.completionTokens=o.usage.output_tokens,l.totalTokens=o.usage.total_tokens),o.status&&l.finishReasons.push(o.status),p&&o.output_text&&l.responseTexts.push(o.output_text)}}else l.eventTypes.push(c.type)}async function*f(o,s,n){const p={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const t of o)(0,l.isChatCompletionChunk)(t)?u(t,p,n):(0,l.isResponsesApiStreamEvent)(t)&&c(t,p,n,s),yield t}finally{const o=[...Object.values(p.chatCompletionToolCalls),...p.responsesApiToolCalls];(0,t.endStreamSpan)(s,{...p,toolCalls:o},n)}}},2112,[2016,1990,2103,2111,2113]);
584__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addResponseAttributes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractRequestParameters",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"isChatCompletionChunk",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isResponsesApiStreamEvent",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(t){return null!==t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.startsWith("response.")}function _(t){return null!==t&&"object"==typeof t&&"object"in t&&"chat.completion.chunk"===t.object}function E(n,_,E){if(!_||"object"!=typeof _)return;const o=_,T={};if("string"==typeof o.id&&(T[t.GEN_AI_RESPONSE_ID_ATTRIBUTE]=o.id),"string"==typeof o.model&&(T[t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=o.model),"conversation"===o.object&&"string"==typeof o.id&&(T[t.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=o.id),o.usage&&"object"==typeof o.usage){const n=o.usage,_=n.prompt_tokens??n.input_tokens;"number"==typeof _&&(T[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=_);const E=n.completion_tokens??n.output_tokens;"number"==typeof E&&(T[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=E),"number"==typeof n.total_tokens&&(T[t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.total_tokens)}if(Array.isArray(o.choices)){const n=o.choices,_=n.map(t=>t.finish_reason).filter(t=>"string"==typeof t);if(_.length>0&&(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(_)),E){const _=n.map(t=>{const n=t.message;return n?.content||""});T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=JSON.stringify(_);const E=n.map(t=>{const n=t.message;return n?.tool_calls}).filter(t=>Array.isArray(t)&&t.length>0).flat();E.length>0&&(T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(E))}}if("string"==typeof o.status&&(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]||(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify([o.status]))),E&&("string"!=typeof o.output_text||T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]||(T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=o.output_text),Array.isArray(o.output)&&o.output.length>0&&!T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE])){const n=o.output.f
584ilter(t=>"function_call"===t?.type);n.length>0&&(T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n))}n.setAttributes(T)}function o(t){return"conversation"in t&&"string"==typeof t.conversation?t.conversation:"previous_response_id"in t&&"string"==typeof t.previous_response_id?t.previous_response_id:void 0}function T(n){const _={[t.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:n.model??"unknown"};"temperature"in n&&(_[t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=n.temperature),"top_p"in n&&(_[t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=n.top_p),"frequency_penalty"in n&&(_[t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=n.frequency_penalty),"presence_penalty"in n&&(_[t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=n.presence_penalty),"stream"in n&&(_[t.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=n.stream),"encoding_format"in n&&(_[t.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=n.encoding_format),"dimensions"in n&&(_[t.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=n.dimensions);const E=o(n);return E&&(_[t.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=E),_}},2113,[2104]);
585__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return U}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),_=r(d[3]),s=r(d[4]),E=r(d[5]),T=r(d[6]),u=r(d[7]),c=r(d[8]);function p(t,o,_){const E={[s.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:_,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(t.length>0&&"object"==typeof t[0]&&null!==t[0]){const n=t[0];n.tools&&Array.isArray(n.tools)&&(E[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n.tools)),E[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=n.model??"unknown","temperature"in n&&(E[s.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=n.temperature),"top_p"in n&&(E[s.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=n.top_p),"stream"in n&&(E[s.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=n.stream),"top_k"in n&&(E[s.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=n.top_k),"frequency_penalty"in n&&(E[s.GEN_AI_REQUEST_FREQUENCY_PENA
585LTY_ATTRIBUTE]=n.frequency_penalty),"max_tokens"in n&&(E[s.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=n.max_tokens)}else E[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===o||"models.get"===o?t[0]:"unknown";return E}function A(t,n,o){const _=(0,c.messagesFromParams)(n);(0,c.setMessagesAttribute)(t,_,o),"prompt"in n&&t.setAttributes({[s.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(n.prompt)})}function R(t,n){if("content"in n&&Array.isArray(n.content)){t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.content.map(t=>t.text).filter(t=>!!t).join("")});const o=[];for(const t of n.content)"tool_use"!==t.type&&"server_tool_use"!==t.type||o.push(t);o.length>0&&t.setAttributes({[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(o)})}"completion"in n&&t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.completion}),"input_tokens"in n&&t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(n.input_tokens)})}function I(t,n){"id"in n&&"model"in n&&(t.setAttributes({[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]:n.id,[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:n.model}),"usage"in n&&n.usage&&(0,E.setTokenUsageAttributes)(t,n.usage.input_tokens,n.usage.output_tokens,n.usage.cache_creation_input_tokens,n.usage.cache_read_input_tokens))}function l(t,n,o){n&&"object"==typeof n&&("type"in n&&"error"===n.type?(0,c.handleResponseError)(t,n):(o&&R(t,n),I(t,n)))}function S(n,_,s){throw(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:s}}}),_.isRecording()&&(_.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),_.end()),n}function N(t,n,o,T,c,p,R,I,l,N,f){const y={name:`${p} ${c[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"}`,op:`gen_ai.${p}`,attributes:c};if(N&&!f){let n;const s=(0,_.startSpanManual)(y,_=>(n=t.apply(o,T),l.recordInputs&&I&&A(_,I,(0,E.shouldEnableTruncation)(l.enableTruncation)),(async()=>{try{const t=await n;return(0,u.instrumentAsyncIterableStream)(t,_,l.recordOutputs??!1)}catch(t){return S(t,_,R)}})()));return(0,E.wrapPromiseWithMethods)(n,s,"auto.ai.anthropic")}return(0,_.startSpanManual)(y,t=>{try{l.recordInputs&&I&&A(t,I,(0,E.shouldEnableTruncation)(l.enableTruncation));const _=n.apply(o,T);return(0,u.instrumentMessageStream)(_,t,l.recordOutputs??!1)}catch(n){return S(n,t,R)}})}function f(n,o,T,u,c){return new Proxy(n,{apply(R,I,S){const f=T.operation||"unknown",y=p(S,o,f),U=y[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",O="object"==typeof S[0]?S[0]:void 0,h=Boolean(O?.stream),b=!0===T.streaming;if(h||b)return N(n,R,u,S,y,f,o,O,c,h,b);let P;const B=(0,_.startSpan)({name:`${f} ${U}`,op:`gen_ai.${f}`,attributes:y},n=>(P=R.apply(u,S),c.recordInputs&&O&&A(n,O,(0,E.shouldEnableTruncation)(c.enableTruncation)),P.then(t=>(l(n,t,c.recordOutputs),t),n=>{throw(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:o}}}),n})));return(0,E.wrapPromiseWithMethods)(P,B,"auto.ai.anthropic")}})}function y(t,n="",o){return new Proxy(t,{get(t,_){const s=t[_],u=(0,E.buildMethodPath)(n,String(_)),c=T.ANTHROPIC_METHOD_REGISTRY[u];return"function"==typeof s&&c?f(s,u,c,t,o):"function"==typeof s?s.bind(t):s&&"object"==typeof s?y(s,u,o):s}})}function U(t,n){return y(t,"",(0,E.resolveAIRecordingOptions)(n))}},2114,[2016,1989,1990,2009,2104,2103,2115,2116,2117]);
586__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ANTHROPIC_METHOD_REGISTRY",{enumerable:!0,get:function(){return o}});const t="Anthropic_AI",o={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}}},2115,[]);
587__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentAsyncIterableStream",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"instrumentMessageStream",{enumerable:!0,get:function(){return y}});
587var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function c(o,c){return"type"in o&&"string"==typeof o.type&&"error"===o.type&&(c.setStatus({code:n.SPAN_STATUS_ERROR,message:(0,s.mapAnthropicErrorToStatusMessage)(o.error?.type)}),(0,t.captureException)(o.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}function p(t,n){if("message_delta"===t.type&&t.usage&&"output_tokens"in t.usage&&"number"==typeof t.usage.output_tokens&&(n.completionTokens=t.usage.output_tokens),t.message){const o=t.message;o.id&&(n.responseId=o.id),o.model&&(n.responseModel=o.model),o.stop_reason&&n.finishReasons.push(o.stop_reason),o.usage&&("number"==typeof o.usage.input_tokens&&(n.promptTokens=o.usage.input_tokens),"number"==typeof o.usage.cache_creation_input_tokens&&(n.cacheCreationInputTokens=o.usage.cache_creation_input_tokens),"number"==typeof o.usage.cache_read_input_tokens&&(n.cacheReadInputTokens=o.usage.cache_read_input_tokens))}}function u(t,n){"content_block_start"===t.type&&"number"==typeof t.index&&t.content_block&&("tool_use"!==t.content_block.type&&"server_tool_use"!==t.content_block.type||(n.activeToolBlocks[t.index]={id:t.content_block.id,name:t.content_block.name,inputJsonParts:[]}))}function l(t,n,o){if("content_block_delta"===t.type&&t.delta){if("number"==typeof t.index&&"partial_json"in t.delta&&"string"==typeof t.delta.partial_json){const o=n.activeToolBlocks[t.index];o&&o.inputJsonParts.push(t.delta.partial_json)}o&&"string"==typeof t.delta.text&&n.responseTexts.push(t.delta.text)}}function _(t,n){if("content_block_stop"!==t.type||"number"!=typeof t.index)return;const o=n.activeToolBlocks[t.index];if(!o)return;const s=o.inputJsonParts.join("");let c;try{c=s?JSON.parse(s):{}}catch{c={__unparsed:s}}n.toolCalls.push({type:"tool_use",id:o.id,name:o.name,input:c}),delete n.activeToolBlocks[t.index]}function f(t,n,o,s){if(!t||"object"!=typeof t)return;c(t,s)||(p(t,n),u(t,n),l(t,n,o),_(t,n))}async function*k(t,n,s){const c={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of t)f(o,c,s,n),yield o}finally{(0,o.endStreamSpan)(n,c,s)}}function y(s,c,p){const u={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return s.on("streamEvent",t=>{f(t,u,p,c)}),s.on("message",()=>{(0,o.endStreamSpan)(c,u,p)}),s.on("error",o=>{(0,t.captureException)(o,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),c.isRecording()&&(c.setStatus({code:n.SPAN_STATUS_ERROR,message:"internal_error"}),c.end())}),s}},2116,[2016,1990,2103,2117]);
588__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handleResponseError",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"mapAnthropicErrorToStatusMessage",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"messagesFromParams",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"setMessagesAttribute",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function u(t,n,u){if(Array.isArray(n)&&0===n.length)return;const{systemInstructions:_,filteredMessages:c}=(0,s.extractSystemInstructions)(n);_&&t.setAttributes({[o.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]:_});const l=Array.isArray(c)?c.length:1;t.setAttributes({[o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:u?(0,s.getTruncatedJsonString)(c):(0,s.getJsonString)(c),[o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const _={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function c(t){return t&&_[t]||"internal_error"}function l(o,s){s.error&&(o.setStatus({code:n.SPAN_STATUS_ERROR,message:c(s.error.type)}),(0,t.captureException)(s.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function A(t){const{system:n,messages:o,input:s}=t,u="string"==typeof n?[{role:"system",content:t.system}]:[],_=Array.isArray(s)?s:null!=s?[s]:void 0,c=Array.isArray(o)?o:null!=o?[o]:[];return[...u,..._??c]}},2117,[2016,1990,2104,2103]);
589__d(function(g,r,i,a,m,e,d){"use strict";
589Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractModel",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),T=r(d[4]),u=r(d[5]),E=r(d[6]),_=r(d[7]),c=r(d[8]),A=r(d[9]);function p(t,n){if("model"in t&&"string"==typeof t.model)return t.model;if(n&&"object"==typeof n){const t=n;if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function f(t){const n={};return"temperature"in t&&"number"==typeof t.temperature&&(n[u.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"topP"in t&&"number"==typeof t.topP&&(n[u.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.topP),"topK"in t&&"number"==typeof t.topK&&(n[u.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.topK),"maxOutputTokens"in t&&"number"==typeof t.maxOutputTokens&&(n[u.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.maxOutputTokens),"frequencyPenalty"in t&&"number"==typeof t.frequencyPenalty&&(n[u.GEN_AI_REQUEST_FREQUENCY_PENA
589LTY_ATTRIBUTE]=t.frequencyPenalty),"presencePenalty"in t&&"number"==typeof t.presencePenalty&&(n[u.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=t.presencePenalty),n}function l(t,o,s){const T={[u.GEN_AI_SYSTEM_ATTRIBUTE]:_.GOOGLE_GENAI_SYSTEM_NAME,[u.GEN_AI_OPERATION_NAME_ATTRIBUTE]:t,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(o){if(T[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p(o,s),"config"in o&&"object"==typeof o.config&&o.config){const t=o.config;if(Object.assign(T,f(t)),"tools"in t&&Array.isArray(t.tools)){const n=t.tools.flatMap(t=>t.functionDeclarations);T[u.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n)}}}else T[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p({},s);return T}function I(t,n,o,s){if(o){const o=n.contents;return void(null!=o&&t.setAttribute(u.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o)))}const T=[];if("config"in n&&n.config&&"object"==typeof n.config&&"systemInstruction"in n.config&&n.config.systemInstruction&&T.push(...(0,A.contentUnionToMessages)(n.config.systemInstruction,"system")),"history"in n&&T.push(...(0,A.contentUnionToMessages)(n.history,"user")),"contents"in n&&T.push(...(0,A.contentUnionToMessages)(n.contents,"user")),"message"in n&&T.push(...(0,A.contentUnionToMessages)(n.message,"user")),Array.isArray(T)&&T.length){const{systemInstructions:n,filteredMessages:o}=(0,E.extractSystemInstructions)(T);n&&t.setAttribute(u.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,n);const _=Array.isArray(o)?o.length:0;t.setAttributes({[u.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:_,[u.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:s?(0,E.getTruncatedJsonString)(o):(0,E.getJsonString)(o)})}}function y(t,n,o){if(n&&"object"==typeof n){if(n.modelVersion&&t.setAttribute(u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n.modelVersion),n.usageMetadata&&"object"==typeof n.usageMetadata){const o=n.usageMetadata;"number"==typeof o.promptTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:o.promptTokenCount}),"number"==typeof o.candidatesTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:o.candidatesTokenCount}),"number"==typeof o.totalTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:o.totalTokenCount})}if(o&&Array.isArray(n.candidates)&&n.candidates.length>0){const o=n.candidates.map(t=>t.content?.parts&&Array.isArray(t.content.parts)?t.content.parts.map(t=>"string"==typeof t.text?t.text:"").filter(t=>t.length>0).join(""):"").filter(t=>t.length>0);o.length>0&&t.setAttributes({[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:o.join("")})}if(o&&n.functionCalls){const o=n.functionCalls;Array.isArray(o)&&o.length>0&&t.setAttributes({[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(o)})}}}function S(n,_,A,p,f){const S="embeddings"===A.operation;return new Proxy(n,{apply(n,N,R){const U=A.operation||"unknown",O=R[0],b=l(U,O,p),G=b[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown";return A.streaming?(0,s.startSpanManual)({name:`${U} ${G}`,op:`gen_ai.${U}`,attributes:b},async s=>{try{f.recordInputs&&O&&I(s,O,S,(0,E.shouldEnableTruncation)(f.enableTruncation));const t=await n.apply(p,R);return(0,c.instrumentStream)(t,s,Boolean(f.recordOutputs))}catch(n){throw s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:_}}}),s.end(),n}}):(0,s.startSpan)({name:`${U} ${G}`,op:`gen_ai.${U}`,attributes:b},o=>(f.recordInputs&&O&&I(o,O,S,(0,E.shouldEnableTruncation)(f.enableTruncation)),(0,T.handleCallbackErrors)(()=>n.apply(p,R),n=>{(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:_}}})},()=>{},t=>{S||y(o,t,f.recordOutputs)})))}})}function N(t,n="",o){return new Proxy(t,{get:(t,s,T)=>{const u=Reflect.get(t,s,T),c=(0,E.buildMethodPath)(n,String(s)),A=_.GOOGLE_GENAI_METHOD_REGISTRY[c];if("function"==typeof u&&A){const n=A.operation?S(u,c,A,t,o):u.bind(t);return A.proxyResultPath?function(...t){const s=n(...t);return s&&"object"==typeof s?N(s,A.proxyResultPath,o):s}:n}return"function"==typeof u?u.bind(t):u&&"object"==typeof u?N(u,c,o):u}})}function R(t,n){return N(t,"",(0,E.resolveAIRecordingOptions)(n))}},2118,[2016,1989,1990,2009,2010,2104,2103,2119,2120,2121]);
590__d(function(g,r,i,a,m,e,d){"use strict";
590Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GOOGLE_GENAI_METHOD_REGISTRY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GOOGLE_GENAI_SYSTEM_NAME",{enumerable:!0,get:function(){return o}});const t="Google_GenAI",n={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},o="google_genai"},2119,[]);
591__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentStream",{enumerable:!0,get:function(){return f}});var n=r(d[0]),o=r(d[1]),t=r(d[2]);function s(t,s){const l=t?.promptFeedback;if(l?.blockReason){const t=l.blockReasonMessage??l.blockReason;return s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(`Content blocked: ${t}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function l(n,o){"string"==typeof n.responseId&&(o.responseId=n.responseId),"string"==typeof n.modelVersion&&(o.responseModel=n.modelVersion);const t=n.usageMetadata;t&&("number"==typeof t.promptTokenCount&&(o.promptTokens=t.promptTokenCount),"number"==typeof t.candidatesTokenCount&&(o.completionTokens=t.candidatesTokenCount),"number"==typeof t.totalTokenCount&&(o.totalTokens=t.totalTokenCount))}function u(n,o,t){Array.isArray(n.functionCalls)&&o.toolCalls.push(...n.functionCalls);for(const s of n.candidates??[]){s?.finishReason&&!o.finishReasons.includes(s.finishReason)&&o.finishReasons.push(s.finishReason);for(const n of s?.content?.parts??[])t&&n.text&&o.responseTexts.push(n.text),n.functionCall&&o.toolCalls.push({type:"function",id:n.functionCall.id,name:n.functionCall.name,arguments:n.functionCall.args})}}function c(n,o,t,c){n&&!s(n,c)&&(l(n,o),u(n,o,t))}async function*f(n,o,s){const l={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const t of n)c(t,l,s,o),yield t}finally{(0,t.endStreamSpan)(o,l,s)}}},2120,[2016,1990,2103]);
592__d(function(g,r,i,a,m,e,d){"use strict";function t(n,o="user"){return"string"==typeof n?[{role:o,content:n}]:Array.isArray(n)?n.flatMap(n=>t(n,o)):"object"==typeof n&&n?"role"in n&&"string"==typeof n.role?[n]:"parts"in n?[{...n,role:o}]:[{role:o,content:n}]:[]}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"contentUnionToMessages",{enumerable:!0,get:function(){return t}})},2121,[]);
593__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return E}});var t=r(d[0]),n=r(d[1]),_=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]),l=r(d[6]),T=r(d[7]);function E(E={}){const{recordInputs:A,recordOutputs:I}=(0,s.resolveAIRecordingOptions)(E),N=(0,s.shouldEnableTruncation)(E.enableTruncation),R=new Map,u=t=>{const n=R.get(t);n?.isRecording()&&(n.end(),R.delete(t))},h={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(t,_,s,l,E,I,u,h){const S=(0,T.getInvocationParams)(I),O=(0,T.extractLLMRequestAttributes)(t,_,A,N,S,u),p=O[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE],M=O[c.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${M} ${p}`,op:"gen_ai.chat",attributes:{...(0,T.getAgentNameFromMetadata)(u),...O,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},t=>(R.set(s,t),t))},handleChatModelStart(t,_,s,l,E,I,u,h){const S=(0,T.getInvocationParams)(I),O=(0,T.extractChatModelRequestAttributes)(t,_,A,N,S,u),p=(0,T.extractToolDefinitions)(E);p&&(O[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=p);const M=O[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE],L=O[c.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${L} ${M}
593`,op:"gen_ai.chat",attributes:{...(0,T.getAgentNameFromMetadata)(u),...O,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},t=>(R.set(s,t),t))},handleLLMEnd(t,n,_,o,c){const s=R.get(n);if(s?.isRecording()){const _=(0,T.extractLlmResponseAttributes)(t,I);_&&s.setAttributes(_),u(n)}},handleLLMError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.llm_error_handler`}})},handleChainStart(t,_,c,s,l,T,E,I){if(T?.__sentry_langgraph__)return;const N=I||t.name||"unknown_chain",u={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":N};A&&(u["langchain.chain.inputs"]=JSON.stringify(_)),(0,o.startSpanManual)({name:`chain ${N}`,op:"gen_ai.invoke_agent",attributes:{...u,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},t=>(R.set(c,t),t))},handleChainEnd(t,n){const _=R.get(n);_?.isRecording()&&(I&&_.setAttributes({"langchain.chain.outputs":JSON.stringify(t)}),u(n))},handleChainError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.chain_error_handler`}})},handleToolStart(t,_,s,E,I,N,u){if(N?.__sentry_langgraph__)return;const h=u||t.name||"unknown_tool",S={...(0,T.getAgentNameFromMetadata)(N),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[c.GEN_AI_TOOL_NAME_ATTRIBUTE]:h};A&&(S[c.GEN_AI_TOOL_INPUT_ATTRIBUTE]=_),(0,o.startSpanManual)({name:`execute_tool ${h}`,op:"gen_ai.execute_tool",attributes:{...S,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},t=>(R.set(s,t),t))},handleToolEnd(t,n){const _=R.get(n);if(_?.isRecording()){if(I){const n=t&&"object"==typeof t&&"content"in t?t.content:t;_.setAttributes({[c.GEN_AI_TOOL_OUTPUT_ATTRIBUTE]:"string"==typeof n?n:JSON.stringify(n)})}u(n)}},handleToolError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.tool_error_handler`}})},copy:()=>h,toJSON:()=>({lc:1,type:"not_implemented",id:h.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:h.lc_id})};return h}},2122,[2016,1989,1990,2009,2104,2103,2123,2124]);
594__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"LANGCHAIN_ORIGIN",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ROLE_MAP",{enumerable:!0,get:function(){return s}});const t="LangChain",n="auto.ai.langchain",s={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},2123,[]);
595__d(function(_g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"extractChatModelRequestAttributes",{enumerable:!0,get:function(){return g}}),Object.defineProperty(e,"extractLLMRequestAttributes",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"extractLlmResponseAttributes",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extractToolDefinitions",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getAgentNameFromMetadata",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"getInvocationParams",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"normalizeLangChainMessages",{enumerable:!0,get:function(){return l}});var n=_r(d[0]),t=_r(d[1]),r=_r(d[2]),o=_r(d[3]),_=_r(d[4]);const s=(n,t,r)=>{null!=r&&(n[t]=r)},c=(n,t,r)=>{const o=Number(r);Number.isNaN(o)||(n[t]=o)};function T(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return String(n)}}function u(n){if(Array.isArray(n))try{const t=n.map(n=>n&&"object"==typeof n&&(0,r.isContentMedia)(n)?(0,r.stripInlineMediaFromSingleMessage)(n):n);return JSON.stringify(t)}catch{return String(n)}return T(n)}function E(n){const t=n.toLowerCase();return _.ROLE_MAP[t]??t}function A(n){return n.includes("System")?"system":n.includes("Human")?"user":n.includes("AI")||n.includes("Assistant")?"assistant":n.includes("Function")?"function":n.includes("Tool")?"tool":"user"}function f(n){if(n&&!Array.isArray(n))return n.invocation_params}function l(n){return n.map(n=>{const t=n._getType;if("function"==typeof t){return{role:E(t.call(n)),content:u(n.content)}}if(1===n.lc&&n.kwargs){const t=n.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:E("string"==typeof r?A(r):"user"),content:u(n.kwargs?.content)}}if(n.type){return{role:E(String(n.type).toLowerCase()),content:u(n.content)}}if(n.role)return{role:E(String(n.role)),content:u(n.content)};const r=n.constructor?.name;return r&&"Object"!==r?{role:E(A(r)),content:u(n.content)}:{role:"user",content:u(n.content)}})}function N(n,r,o){const _={},T="kwargs"in n?n.kwargs:void 0,u=r?.temperature??o?.ls_temperature??T?.temperature;c(_,t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,u);const E=r?.max_tokens??o?.ls_max_tokens??T?.max_tokens;c(_,t.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,E);const A=r?.top_p??T?.top_p;c(_,t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,A);const f=r?.frequency_penalty;
595c(_,t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE,f);const l=r?.presence_penalty;return c(_,t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,l),r&&"stream"in r&&s(_,t.GEN_AI_REQUEST_STREAM_ATTRIBUTE,Boolean(r.stream)),_}function I(r,o,s,c,u){return{[t.GEN_AI_SYSTEM_ATTRIBUTE]:T(r??"langchain"),[t.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"chat",[t.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:T(o),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:_.LANGCHAIN_ORIGIN,...N(s,c,u)}}function S(n,r,_,c,T,u){const E=u?.ls_provider,A=I(E,T?.model??u?.ls_model_name??"unknown",n,T,u);if(_&&Array.isArray(r)&&r.length>0){s(A,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,r.length);const n=r.map(n=>({role:"user",content:n}));s(A,t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,c?(0,o.getTruncatedJsonString)(n):(0,o.getJsonString)(n))}return A}function g(n,r,_,c,T,u){const E=I(u?.ls_provider??n.id?.[2],T?.model??u?.ls_model_name??"unknown",n,T,u);if(_&&Array.isArray(r)&&r.length>0){const n=l(r.flat()),{systemInstructions:_,filteredMessages:T}=(0,o.extractSystemInstructions)(n);_&&s(E,t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,_);const u=Array.isArray(T)?T.length:0;s(E,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,u),s(E,t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,c?(0,o.getTruncatedJsonString)(T):(0,o.getJsonString)(T))}return E}function p(n,r){const o=[],_=n.flat();for(const n of _){const t=n.message,r=t?.tool_calls;if(Array.isArray(r)&&r.length>0)o.push(...r);else{const t=n.message?.content;if(Array.isArray(t))for(const n of t){const t=n;"tool_use"===t.type&&o.push(t)}}}o.length>0&&s(r,t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,T(o))}function R(n,r){if(!n)return;const o=n.tokenUsage,_=n.usage;if(o)c(r,t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,o.promptTokens),c(r,t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,o.completionTokens),c(r,t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,o.totalTokens);else if(_){c(r,t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,_.input_tokens),c(r,t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,_.output_tokens);const n=Number(_.input_tokens),o=Number(_.output_tokens),s=(Number.isNaN(n)?0:n)+(Number.isNaN(o)?0:o);s>0&&c(r,t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,s),void 0!==_.cache_creation_input_tokens&&c(r,t.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,_.cache_creation_input_tokens),void 0!==_.cache_read_input_tokens&&c(r,t.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,_.cache_read_input_tokens)}}function y(n,r){if(!n)return;const o={};if(Array.isArray(n.generations)){const _=n.generations.flat().map(n=>n.generationInfo?.finish_reason?n.generationInfo.finish_reason:n.generation_info?.finish_reason?n.generation_info.finish_reason:null).filter(n=>"string"==typeof n);if(_.length>0&&s(o,t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,T(_)),p(n.generations,o),r){const r=n.generations.flat().map(n=>n.text??n.message?.content).filter(n=>"string"==typeof n);r.length>0&&s(o,t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,T(r))}}R(n.llmOutput,o);const _=n.llmOutput,c=n.generations?.[0]?.[0],u=c?.message,E=_?.model_name??_?.model??u?.response_metadata?.model_name;E&&s(o,t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,E);const A=_?.id??u?.id;A&&s(o,t.GEN_AI_RESPONSE_ID_ATTRIBUTE,A);const f=_?.stop_reason??u?.response_metadata?.finish_reason;return f&&s(o,t.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,T(f)),o}function U(n){const r={},o=n?.lc_agent_name;return"string"==typeof o&&(r[t.GEN_AI_AGENT_NAME_ATTRIBUTE]=o),r}function O(n){const t=n?.invocation_params?.tools??n?.options?.tools;if(!Array.isArray(t)||0===t.length)return;const r=t.map(n=>{const t=n.function;return{type:"function",name:n.name??t?.name??"",description:n.description??t?.description}});return JSON.stringify(r)}function G(n){if(!n||"object"!=typeof n)return!1;const t=n;return"function"==typeof t.addHandler&&"function"==typeof t.copy}function P(n){return"object"==typeof n&&"SentryCallbackHandler"===n?.name}function b(n){return n.some(P)}function B(n,t){if(!n)return[t];
595if(G(n)){if(b(n.handlers??[]))return n;const r=n.copy();return r.addHandler(t,!0),r}const r=Array.isArray(n)?n:[n];return b(r)?n:[...r,t]}},2124,[1989,2104,2106,2103,2123]);
596__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"instrumentLangGraph",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return I}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),_=r(d[3]),s=r(d[4]),c=r(d[5]),T=r(d[6]),A=r(d[7]),l=r(d[8]),E=r(d[9]);let u=!1;const p="__sentry_patched__";function I(c,A){if(Object.prototype.hasOwnProperty.call(c,p))return c;const E=(0,T.createLangChainCallbackHandler)(A),I=new Proxy(c,{apply:(c,T,p)=>u?Reflect.apply(c,T,p):(0,_.startSpan)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"create_agent"}},n=>{try{const t=Reflect.apply(c,T,p),o=p.length>0?p[0]:{};o?.name&&"string"==typeof o.name&&(n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,o.name),n.updateName(`create_agent ${o.name}`));const _=t.invoke;return _&&"function"==typeof _&&(t.invoke=N(_.bind(t),t,o,A,void 0,E)),t}catch(_){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(_,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),_}}
596)});return Object.defineProperty(I,p,{value:!0,enumerable:!1}),I}function N(T,u,p,I,N,R){return new Proxy(T,{apply(T,y,S){const O=N?.modelName??N?.model;return(0,_.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"invoke_agent"}},async n=>{try{const t=p?.name;t&&"string"==typeof t&&(n.setAttribute(s.GEN_AI_PIPELINE_NAME_ATTRIBUTE,t),n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,t),n.updateName(`invoke_agent ${t}`)),O&&n.setAttribute(s.GEN_AI_REQUEST_MODEL_ATTRIBUTE,O);const o=S.length>1?S[1]:void 0,_=o?.configurable,l=_?.thread_id;if(l&&"string"==typeof l&&n.setAttribute(s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,l),R){const n=S[1]??{};S[1]=n;const o=n.metadata??{};n.metadata={...o,__sentry_langgraph__:!0,..."string"==typeof t?{lc_agent_name:t}:{}},n.callbacks=(0,A._INTERNAL_mergeLangChainCallbackHandler)(n.callbacks,R)}const N=(0,E.extractToolsFromCompiledGraph)(u);N&&n.setAttribute(s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE,JSON.stringify(N));const f=I.recordInputs,b=I.recordOutputs,G=S.length>0?S[0]?.messages??[]:[];if(G&&f){const t=(0,A.normalizeLangChainMessages)(G),{systemInstructions:o,filteredMessages:_}=(0,c.extractSystemInstructions)(t);o&&n.setAttribute(s.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,o);const T=(0,c.shouldEnableTruncation)(I.enableTruncation),l=Array.isArray(_)?_.length:0;n.setAttributes({[s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:T?(0,c.getTruncatedJsonString)(_):(0,c.getJsonString)(_),[s.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const h=await Reflect.apply(T,y,S);return b&&(0,E.setResponseAttributes)(n,G??null,h),h}catch(_){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(_,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),_}}
596)}})}function R(t,n){if(Object.prototype.hasOwnProperty.call(t,p))return t;const o=(0,c.resolveAIRecordingOptions)(n),_=(0,T.createLangChainCallbackHandler)(o),s=new Proxy(t,{apply(t,n,s){const c=(0,E.extractLLMFromParams)(s),T=(0,E.extractAgentNameFromParams)(s),A=s[0];let l;A&&Array.isArray(A.tools)&&A.tools.length>0&&(0,E.wrapToolsWithSpans)(A.tools,o,T??void 0),u=!0;try{l=Reflect.apply(t,n,s)}finally{u=!1}const p=l.invoke;if(p&&"function"==typeof p){const t={};T&&(t.name=T),l.invoke=N(p.bind(l),l,t,o,c,_)}return l}});return Object.defineProperty(s,p,{value:!0,enumerable:!1}),s}function y(t,n){return t.compile=I(t.compile,(0,c.resolveAIRecordingOptions)(n)),t}},2125,[2016,1989,1990,2009,2104,2103,2122,2124,2126,2127]);
597__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"LANGGRAPH_ORIGIN",{enumerable:!0,get:function(){return n}});const t="LangGraph",n="auto.ai.langgraph"},2126,[]);
598__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractAgentNameFromParams",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"extractLLMFromParams",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"extractModelMetadata",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"extractTokenUsageFromMessage",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractToolCalls",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"extractToolsFromCompiledGraph",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"setResponseAttributes",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"wrapToolsWithSpans",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),_=r(d[4]),c=r(d[5]),T=r(d[6]);function u(t){const n=t[0];if("object"!=typeof n||!n||!("llm"in n)||!n.llm||"object"!=typeof n.llm)return null;const o=n.llm;return"string"!=typeof o.modelName&&"string"!=typeof o.model?null:o}function l(t){const n=t[0];return"object"==typeof n&&n&&"name"in n&&"string"==typeof n.name?n.name:null}function p(c,u,l){const p="__sentry_tool_wrapped__";for(const f of c){if(!f||"object"!=typeof f)continue;const c=f,E=c.invoke;if("function"!=typeof E||Object.prototype.hasOwnProperty.call(c,p))continue;const A="string"==typeof c.name?c.name:"unknown_tool",y="string"==typeof c.description?c.description:void 0,O=new Proxy(E,{apply(c,p,f){const E={[
598n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:T.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:_.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,[_.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[_.GEN_AI_TOOL_NAME_ATTRIBUTE]:A,[_.GEN_AI_TOOL_TYPE_ATTRIBUTE]:"function"},O=f[1],I=O?.metadata?.lc_agent_name??l;"string"==typeof I&&(E[_.GEN_AI_AGENT_NAME_ATTRIBUTE]=I),y&&(E[_.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=y);const b=f[0];if("object"==typeof b&&b&&("id"in b&&"string"==typeof b.id&&(E[_.GEN_AI_TOOL_CALL_ID_ATTRIBUTE]=b.id),u.recordInputs)){const t="args"in b&&"object"==typeof b.args?b.args:b;try{E[_.GEN_AI_TOOL_INPUT_ATTRIBUTE]=JSON.stringify(t)}catch{}}return(0,s.startSpan)({op:_.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,name:`execute_tool ${A}`,attributes:E},async n=>{try{const t=await Reflect.apply(c,p,f);if(u.recordOutputs)try{const o=t&&"object"==typeof t&&"content"in t?t.content:t;n.setAttribute(_.GEN_AI_TOOL_OUTPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o))}catch{}return t}catch(s){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(s,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),s}})}});c.invoke=O,Object.defineProperty(c,p,{value:!0,enumerable:!1})}return c}function f(t){if(!t||0===t.length)return null;const n=[];for(const o of t)if(o&&"object"==typeof o){const t=o.tool_calls;t&&Array.isArray(t)&&n.push(...t)}return n.length>0?n:null}function E(t){const n=t;let o=0,s=0,_=0;if(n.usage_metadata&&"object"==typeof n.usage_metadata){const t=n.usage_metadata;return"number"==typeof t.input_tokens&&(o=t.input_tokens),"number"==typeof t.output_tokens&&(s=t.output_tokens),"number"==typeof t.total_tokens&&(_=t.total_tokens),{inputTokens:o,outputTokens:s,totalTokens:_}}if(n.response_metadata&&"object"==typeof n.response_metadata){const t=n.response_metadata;if(t.tokenUsage&&"object"==typeof t.tokenUsage){const n=t.tokenUsage;"number"==typeof n.promptTokens&&(o=n.promptTokens),"number"==typeof n.completionTokens&&(s=n.completionTokens),"number"==typeof n.totalTokens&&(_=n.totalTokens)}}return{inputTokens:o,outputTokens:s,totalTokens:_}}function A(t,n){const o=n;if(o.response_metadata&&"object"==typeof o.response_metadata){const n=o.response_metadata;n.model_name&&"string"==typeof n.model_name&&t.setAttribute(_.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&t.setAttribute(_.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,[n.finish_reason])}}function y(t){if(!t.builder?.nodes?.tools?.runnable?.tools)return null;const n=t.builder?.nodes?.tools?.runnable?.tools;return n&&Array.isArray(n)&&0!==n.length?n.map(t=>({name:t.lc_kwargs?.name,description:t.lc_kwargs?.description,schema:t.lc_kwargs?.schema})):null}function O(t,n,o){const s=o,T=s?.messages;if(!T||!Array.isArray(T))return;const u=n?.length??0,l=T.length>u?T.slice(u):[];if(0===l.length)return;const p=f(l);p&&t.setAttribute(_.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,JSON.stringify(p));const y=(0,c.normalizeLangChainMessages)(l);t.setAttribute(_.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,JSON.stringify(y));let O=0,I=0,b=0;for(const n of l){const o=E(n);O+=o.inputTokens,I+=o.outputTokens,b+=o.totalTokens,A(t,n)}O>0&&t.setAttribute(_.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,O),I>0&&t.setAttribute(_.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,I),b>0&&t.setAttribute(_.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,b)}},2127,[2016,1989,1990,2009,2104,2124,2126]);
599__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SpanBuffer",{enumerable:!0,get:function(){return u}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),c=r(d[3]),h=r(d[4]),o=r(d[5]);class u{constructor(t,s){this._traceBuckets=new Map,this._client=t;const{maxSpanLimit:n,flushInterval:c,maxTraceWeightInBytes:h}=s??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=c&&c>0?c:5e3,this._maxTraceWeight=h&&h>0?h:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(t=>{clearTimeout(t.timeout)}),this._traceBuckets.clear()})}add(t){const s=t.trace_id;let c=this._traceBuckets.get(s);c||(c={spans:new Set,size:0,timeout:(0,n.safeUnref)(setTimeout(()=>{this.flush(s)},this._flushInterval))},this._traceBuckets.set(s,c)),c.spans.add(t),c.size+=(0,o.estimateSerializedSpanSizeInBytes)(t),(c.spans.size>=this._maxSpanLimit||c.size>=this._maxTraceWeight)&&this.flush(s)}drain(){this._traceBuckets.size&&(t.DEBUG_BUILD&&s.debug.log(`Flushing span tree map with ${this._traceBuckets.size}
599 traces`),this._traceBuckets.forEach((t,s)=>{this.flush(s)}))}flush(n){const o=this._traceBuckets.get(n);if(!o)return;if(!o.spans.size)return void this._removeTrace(n);const u=Array.from(o.spans),l=u[0]?._segmentSpan;if(!l)return t.DEBUG_BUILD&&s.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(n);const _=(0,c.getDynamicSamplingContextFromSpan)(l),p=u.map(t=>{const{_segmentSpan:s,...n}=t;return n}),f=(0,h.createStreamedSpanEnvelope)(p,_,this._client);t.DEBUG_BUILD&&s.debug.log(`Sending span envelope for trace ${n} with ${p.length} spans`),this._client.sendEnvelope(f).then(null,n=>{t.DEBUG_BUILD&&s.debug.error("Error while sending streamed span envelope:",n)}),this._removeTrace(n)}_removeTrace(t){const s=this._traceBuckets.get(t);s&&clearTimeout(s.timeout),this._traceBuckets.delete(t)}}},2128,[1959,1963,2022,2002,2129,2130]);
600__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createStreamedSpanEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function c(c,p,_){const l=_.getOptions(),f=_.getDsn(),v=l.tunnel,y=(0,n.getSdkMetadataForEnvelopeHeader)(l._metadata),S={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...u(p)&&{trace:p},...y&&{sdk:y},...!!v&&f&&{dsn:(0,t.dsnToString)(f)}},O=_.getDataCollectionOptions().userInfo?"auto":"never",b=[{type:"span",item_count:c.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:O,infer_user_agent:O}},items:c}];return(0,n.createEnvelope)(S,[b])}function u(t){return!!t.trace_id&&!!t.public_key}},2129,[1994,2005,2031,1977]);
601__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"estimateSerializedSpanSizeInBytes",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){let s=156;if(s+=2*n.name.length,s+=(0,t.estimateTypedAttributesSizeInBytes)(n.attributes),n.links&&n.links.length>0){const u=n.links[0],l=u?.attributes;s+=(100+(l?(0,t.estimateTypedAttributesSizeInBytes)(l):0))*n.links.length}return s}},2130,[1987]);
602__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanStreamingIntegration",{enumerable:!0,get:function(){return l}});var n=r(d[0]),t=r(d[1]),c=r(d[2]),o=r(d[3]),s=r(d[4]),S=r(d[5]),p=r(d[6]),f=r(d[7]);const l=(0,t.defineIntegration)(()=>({name:"SpanStreaming",setup(t){const l="SpanStreaming integration requires",u="Falling back to static trace lifecycle.",b=t.getOptions();if(!(0,s.hasSpanStreamingEnabled)(t))return b.traceLifecycle="static",void(n.DEBUG_BUILD&&p.debug.warn(`${l} \`traceLifecycle\` to be set to "stream"! ${u}`));const y=b.beforeSendSpan;if(y&&!(0,c.isStreamedBeforeSendSpanCallback)(y))return b.traceLifecycle="static",void(n.DEBUG_BUILD&&p.debug.warn(`${l} a beforeSendSpan callback using \`withStreamedSpan\`! ${u}`));const B=new S.SpanBuffer(t);t.on("afterSpanEnd",n=>{(0,f.spanIsSampled)(n)&&B.add((0,o.captureSpan)(n,t))})}}))},2131,[1959,2025,2004,2013,2008,2128,1963,1968]);
603__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return t}})},2132,[]);
604__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentryError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}},2133,[]);
605__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"parseFetchArgs",{enumerable:!0,get:function(){return E}});
605var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]);function h(t,n){const o="fetch",s=(0,l.addHandler)(o,t);return(0,l.maybeInstrument)(o,()=>p(void 0,n)),s}function f(t){const n="fetch-body-resolved",o=(0,l.addHandler)(n,t);return(0,l.maybeInstrument)(n,()=>p(b)),o}function p(h,f=!1){f&&!(0,s.supportsNativeFetch)()||(0,o.fill)(u.GLOBAL_OBJ,"fetch",function(s){return function(...f){const p=new Error,{method:y,url:b}=E(f),T={args:f,fetchData:{method:y,url:b},startTimestamp:1e3*(0,c.timestampInSeconds)(),virtualError:p,headers:w(f)};return h||(0,l.triggerHandlers)("fetch",{...T}),s.apply(u.GLOBAL_OBJ,f).then(async t=>(h?h(t):(0,l.triggerHandlers)("fetch",{...T,endTimestamp:1e3*(0,c.timestampInSeconds)(),response:t}),t),s=>{(0,l.triggerHandlers)("fetch",{...T,endTimestamp:1e3*(0,c.timestampInSeconds)(),error:s}),(0,n.isError)(s)&&void 0===s.stack&&(s.stack=p.stack,(0,o.addNonEnumerableProperty)(s,"framesToPop",1));const u=(0,t.getClient)(),h=u?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==h&&s instanceof TypeError&&("Failed to fetch"===s.message||"Load failed"===s.message||"NetworkError when attempting to fetch resource."===s.message))try{const t=new URL(T.fetchData.url).host;"always"===h?s.message=`${s.message} (${t})`:(0,o.addNonEnumerableProperty)(s,"__sentry_fetch_url_host__",t)}catch{}throw s})}})}async function y(t,n){if(t?.body){const o=t.body,s=o.getReader(),c=setTimeout(()=>{o.cancel().then(null,()=>{})},9e4);let u=!0;for(;u;){let t;try{t=setTimeout(()=>{o.cancel().then(null,()=>{})},5e3);const{done:c}=await s.read();clearTimeout(t),c&&(n(),u=!1)}catch{u=!1}finally{clearTimeout(t)}}clearTimeout(c),s.releaseLock(),o.cancel().then(null,()=>{})}}function b(t){let n;try{n=t.clone()}catch{return}y(n,()=>{(0,l.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,c.timestampInSeconds)(),response:t})})}function T(t,n){return!!t&&"object"==typeof t&&!!t[n]}function _(t){return"string"==typeof t?t:t?T(t,"url")?t.url:t.toString?t.toString():"":""}function E(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[o,s]=t;return{url:_(o),method:T(s,"method")?String(s.method).toUpperCase():(0,n.isRequest)(o)&&T(o,"method")?String(o.method).toUpperCase():"GET"}}const o=t[0];return{url:_(o),method:T(o,"method")?String(o.method).toUpperCase():"GET"}}function w(t){const[o,s]=t;try{if("object"==typeof s&&null!==s&&"headers"in s&&s.headers)return new Headers(s.headers);if((0,n.isRequest)(o))return new Headers(o.headers)}catch{}}},2134,[1988,1976,1975,2135,1981,1961,1962]);
606__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNativeFunction",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"supportsDOMError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"supportsDOMException",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"supportsErrorEvent",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"supportsFetch",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"supportsHistory",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"supportsNativeFetch",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"supportsReportingObserver",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]);const u=r(d[2]).GLOBAL_OBJ;function o(){try{return new ErrorEvent(""),!0}catch{return!1}}function c(){try{return new DOMError(""),!0}catch{return!1}}function f(){try{return new DOMException(""),!0}catch{return!1}}function s(){return"history"in u&&!!u.history}const p=b;function b(){if(!("fetch"in u))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function y(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function h(){if("string"==typeof EdgeRuntime)return!0;if(!b())return!1;if(y(u.fetch))return!0;let o=!1;const c=u.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t),t.contentWindow?.fetch&&(o=y(t.contentWindow.fetch)),c.head.removeChild(t)}catch(u){t.DEBUG_BUILD&&n.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",u)}return o}function l(){return"ReportingObserver"in u}function O(){if(!b())return!1;
606try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}},2135,[1959,1963,1961]);
607__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n,u){const c=t[n];if("function"==typeof c){try{t[n]=u}catch{Object.defineProperty(t,n,{value:u,writable:!0,configurable:!0,enumerable:!0})}if(t.default===c)try{t.default=u}catch{Object.defineProperty(t,"default",{value:u,writable:!0,configurable:!0,enumerable:!0})}}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"replaceExports",{enumerable:!0,get:function(){return t}})},2136,[]);
608__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LRUMap",{enumerable:!0,get:function(){return t}});class t{constructor(t){this._maxSize=t,this._cache=new Map}get size(){return this._cache.size}get(t){const c=this._cache.get(t);if(void 0!==c)return this._cache.delete(t),this._cache.set(t,c),c}set(t,c){if(this._cache.size>=this._maxSize){const t=this._cache.keys().next().value;this._cache.delete(t)}this._cache.set(t,c)}remove(t){const c=this._cache.get(t);return c&&this._cache.delete(t),c}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const t=[];return this._cache.forEach(c=>t.push(c)),t}}},2137,[]);
609__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"escapeStringForRegex",{enumerable:!0,get:function(){return t}})},2138,[]);
610__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ServerRuntimeClient",{enumerable:!0,get:function(){return k}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),i=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]),l=r(d[9]),_=r(d[10]),v=r(d[11]),f=r(d[12]);class k extends s.Client{constructor(t){(0,u.addUserAgentToTransportHeaders)(t),"stream"!==t.traceLifecycle||t.integrations.some(t=>"SpanStreaming"===t.name)||t.integrations.push((0,i.spanStreamingIntegration)()),super(t),this._disposeCallbacks=[],this._setUpMetricsProcessing()}eventFromException(t,s){const n=(0,p.eventFromUnknownInput)(this,this._options.stackParser,t,s);return n.level="error",(0,v.resolvedSyncPromise)(n)}eventFromMessage(t,s="info",n){return(0,v.resolvedSyncPromise)((0,p.eventFromMessage)(this._options.stackParser,t,s,n,this._options.attachStacktrace))}captureException(t,s,n){return S(s),super.captureException(t,s,n)}captureEvent(t,s,n){return!t.type&&t.exception?.values&&t.exception.values.length>0&&S(s),super.captureEvent(t,s,n)}captureCheckIn(s,n,i){const c="checkInId"in s&&s.checkInId?s.checkInId:(0,l.uuid4)();if(!this._isEnabled())return o.DEBUG_BUILD&&h.debug.warn("SDK not enabled, will not capture check-in."),c;const u=this.getOptions(),{release:p,environment:_,tunnel:v}=u,k={check_in_id:c,monitor_slug:s.monitorSlug,status:s.status,release:p,environment:_};"duration"in s&&(k.duration=s.duration),n&&(k.monitor_config={schedule:n.schedule,checkin_margin:n.checkinMargin,max_runtime:n.maxRuntime,timezone:n.timezone,failure_issue_threshold:n.failureIssueThreshold,recovery_threshold:n.recoveryThreshold});const[S,I]=(0,f._getTraceInfoFromScope)(this,i);I&&(k.contexts={trace:I});const E=(0,t.createCheckInEnvelope)(k,S,this.getSdkMetadata(),v,this.getDsn());return o.DEBUG_BUILD&&h.debug.log("Sending checkin:",s.monitorSlug,s.status),this.sendEnvelope(E),c}registerCleanup(t){this._disposeCallbacks.push(t)}dispose(){o.DEBUG_BUILD&&h.debug.log("Disposing client...");for(const t of this._disposeCallbacks)try{t()}catch{}this._disposeCallbacks.length=0;for(const t of Object.keys(this._hooks))this._hooks[t]?.clear();this._hooks={},this._eventProcessors.length=0,this._integrations={},this._outcomes={},this._transport=void 0,this._promiseBuffer=(0,_.makePromiseBuffer)(c.DEFAULT_TRANSPORT_BUFFER_SIZE)}_prepareEvent(t,s,n,o){return this._options.platform&&(t.platform=t.platform||this._options.platform),this._options.runtime&&(t.contexts={...t.contexts,runtime:t.contexts?.runtime||this._options.runtime}),this._options.serverName&&(t.server_name=t.server_name||this._options.serverName),super._prepareEvent(t,s,n,o)}_setUpMetricsProcessing(){this.on("processMetric",t=>{this._options.serverName&&(t.attributes={"server.address":this._options.serverName,...t.attributes})})}}function S(t){const s=(0,n.getIsolationScope)().getScopeData().sdkProcessingMetadata.requestSession;if(s){const n=t?.mechanism?.handled??!0;n&&"crashed"!==s.status?s.status="errored":n||(s.status="crashed")}}},2139,[2056,2024,1988,1959,2131,2038,2140,1963,2074,1974,2039,2019,2028]);
611__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t._metadata?.sdk,s=n?.name&&n?.version?`${n?.name}/${n?.version}`:void 0;t.transportOptions={...t.transportOptions,headers:{...s&&{"user-agent":s},...t.transportOptions?.headers}}}
611Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addUserAgentToTransportHeaders",{enumerable:!0,get:function(){return t}})},2140,[]);
612__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"trpcMiddleware",{enumerable:!0,get:function(){return l}});var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),c=r(d[4]),p=r(d[5]);const u={mechanism:{handled:!1,type:"auto.rpc.trpc.middleware"}};function s(t){"object"==typeof t&&null!==t&&"ok"in t&&!t.ok&&"error"in t&&(0,e.captureException)(t.error,u)}function l(l={}){return async function(f){const{path:h,type:T,next:_,rawInput:y,getRawInput:I}=f,R=(0,t.getClient)(),E=R?.getOptions(),w=R?.getDataCollectionOptions(),v={procedure_path:h,procedure_type:T};if((0,p.setNormalizationDepthOverrideHint)(v,1+(E?.normalizeDepth??5)),(void 0!==l.attachRpcInput?l.attachRpcInput:w?.httpBodies.includes("incomingRequest"))&&(void 0!==y&&(v.input=(0,o.normalize)(y)),void 0!==I&&"function"==typeof I))try{const t=await I();v.input=(0,o.normalize)(t)}catch{}return(0,t.withIsolationScope)(t=>(t.setContext("trpc",v),(0,c.startSpanManual)({name:`trpc/${h}`,op:"rpc.server",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"},forceTransaction:!!l.forceTransaction},async t=>{try{const e=await _();return s(e),t.end(),e}catch(n){throw(0,e.captureException)(n,u),t.end(),n}})))}}},2141,[1988,2016,1989,1979,2009,1980]);
613__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapMcpServerWithSentry",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]);const p=new WeakSet;function u(u,l){if(p.has(u))return u;if(!(0,c.validateMcpServerInstance)(u))return u;const f=u,w=(0,t.getClient)(),O=w?.getDataCollectionOptions().genAI,v={recordInputs:l?.recordInputs??O?.inputs??!1,recordOutputs:l?.recordOutputs??O?.outputs??!1};return(0,n.fill)(f,"connect",t=>async function(n,...s){const c=await t.call(this,n,...s);return(0,o.wrapTransportOnMessage)(n,v),(0,o.wrapTransportSend)(n,v),(0,o.wrapTransportOnClose)(n),(0,o.wrapTransportError)(n),c}),(0,s.wrapAllMCPHandlers)(f),(0,s.wrapExistingHandlers)(f),p.add(u),u}},2142,[1988,1975,2143,2145,2149]);
614__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapAllMCPHandlers",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"wrapExistingHandlers",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"wrapPromptHandlers",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"wrapResourceHandlers",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"wrapToolHandlers",{enumerable:!0,get:function(){return p}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),c=r(d[3]);function u(t,o){(0,n.fill)(t,o,t=>function(n,...c){const u=c[c.length-1];if("function"!=typeof u)return t.call(this,n,...c);const f=s(u,o,n);return t.call(this,n,...c.slice(0,-1),f)})}function s(n,c,u){return function(...s){try{return f.call(this,n,c,u,s)}catch(c){return t.DEBUG_BUILD&&o.debug.warn("MCP handler wrapping failed:",c),n.apply(this,s)}}}function f(t,o,n,c){try{const u=t.apply(this,c);return u&&"object"==typeof u&&"function"==typeof u.then?Promise.resolve(u).catch(t=>{throw l(t,o,n),t}):u}catch(t){throw l(t,o,n),t}}function l(t,o,n){try{const u={};"tool"===o||"registerTool"===o?(u.tool_name=n,"ProtocolValidationError"===t.name||t.message.includes("validation")||t.message.includes("protocol")?(0,c.captureError)(t,"validation",u):"ServerTimeoutError"===t.name||t.message.includes("timed out")||t.message.includes("timeout")?(0,c.captureError)(t,"timeout",u):(0,c.captureError)(t,"tool_execution",u)):"resource"===o||"registerResource"===o?(u.resource_uri=n,(0,c.captureError)(t,"resource_execution",u)):"prompt"!==o&&"registerPrompt"!==o||(u.prompt_name=n,(0,c.captureError)(t,"prompt_execution",u))}catch(t){}}function p(t){"function"==typeof t.tool&&u(t,"tool"),"function"==typeof t.registerTool&&u(t,"registerTool")}function y(t){"function"==typeof t.resource&&u(t,"resource"),"function"==typeof t.registerResource&&u(t,"registerResource")}function b(t){"function"==typeof t.prompt&&u(t,"prompt"),"function"==typeof t.registerPrompt&&u(t,"registerPrompt")}function h(t){p(t),y(t),b(t)}
614function P(t){const o=t,n=o._registeredTools;if(n&&"object"==typeof n)for(const[t,o]of Object.entries(n))"function"==typeof o.executor&&(o.executor=s(o.executor,"registerTool",t));const c=o._registeredResources;if(c&&"object"==typeof c)for(const[t,o]of Object.entries(c))"function"==typeof o.readCallback&&(o.readCallback=s(o.readCallback,"registerResource",t));const u=o._registeredResourceTemplates;if(u&&"object"==typeof u)for(const[t,o]of Object.entries(u))"function"==typeof o.readCallback&&(o.readCallback=s(o.readCallback,"registerResource",t));const f=o._registeredPrompts;if(f&&"object"==typeof f)for(const[t,o]of Object.entries(f))"function"==typeof o.handler&&(o.handler=s(o.handler,"registerPrompt",t))}},2143,[1959,1963,1975,2144]);
615__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureError",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),c=r(d[2]),o=r(d[3]);function u(u,s,_){try{if(!(0,t.getClient)())return;const p=(0,c.getActiveSpan)();p?.isRecording()&&p.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(u,{mechanism:{type:"auto.ai.mcp_server",handled:!1,data:{error_type:s||"handler_execution",..._}}})}catch{}}},2144,[1988,2016,1968,1990]);
616__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapTransportError",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"wrapTransportOnClose",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"wrapTransportOnMessage",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"wrapTransportSend",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]),S=r(d[9]);function h(l,h){l.onmessage&&(0,n.fill)(l,"onmessage",n=>function(b,R){if((0,S.isJsonRpcRequest)(b)){const S="initialize"===b.method;let O;if(S)try{O=(0,u.extractSessionDataFromInitializeRequest)(b),(0,p.storeSessionDataForTransport)(l,O)}catch{}const T=(0,t.getIsolationScope)().clone();return(0,t.withIsolationScope)(T,()=>{const t=(0,f.buildMcpServerSpanConfig)(b,l,R,h),p=(0,o.startInactiveSpan)(t);return S&&O&&p.setAttributes({...(0,u.buildClientAttributesFromInfo)(O.clientInfo),...O.protocolVersion&&{[s.MCP_PROTOCOL_VERSION_ATTRIBUTE]:O.protocolVersion}}),(0,c.storeSpanForRequest)(l,b.id,p,b.method),(0,o.withActiveSpan)(p,()=>n.call(this,b,R))})}return(0,S.isJsonRpcNotification)(b)?(0,f.createMcpNotificationSpan)(b,l,R,h,()=>n.call(this,b,R)):n.call(this,b,R)})}function b(t,o){t.send&&(0,n.fill)(t,"send",n=>async function(...s){const[l]=s;if((0,S.isJsonRpcNotification)(l))return(0,f.createMcpOutgoingNotificationSpan)(l,t,o,()=>n.call(this,...s));if((0,S.isJsonRpcResponse)(l)&&null!==l.id&&void 0!==l.id){if(l.error&&T(l.error),(0,S.isValidContentItem)(l.result)&&(l.result.protocolVersion||l.result.serverInfo))try{const n=(0,u.extractSessionDataFromInitializeResponse)(l.result);(0,p.updateSessionDataForTransport)(t,n)}catch{}(0,c.completeSpanWithResults)(t,l.id,l.result,o,!!l.error)}return n.call(this,...s)})}function R(t){t.onclose&&(0,n.fill)(t,"onclose",n=>function(...o){return(0,c.cleanupPendingSpansForTransport)(t),(0,p.cleanupSessionDataForTransport)(t),n.call(this,...o)})}function O(t){t.onerror&&(0,n.fill)(t,"onerror",t=>function(n){return y(n),t.call(this,n)})}function T(t){try{if(t&&"object"==typeof t&&"code"in t&&"message"in t){const n=t;if(-32603===n.code||n.code>=-32099&&n.code<=-32e3){const t=new Error(n.message);t.name=`JsonRpcError_${n.code}`,(0,l.captureError)(t,"protocol")}}}catch{}}function y(t){try{(0,l.captureError)(t,"transport")}catch{}}},2145,[1988,1975,2009,2146,2147,2144,2150,2151,2152,2149]);
617__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CLIENT_ADDRESS_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"CLIENT_PORT_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"MCP_FUNCTION_ORIGIN_VALUE",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"MCP_LOGGING_DATA_TYPE_ATTRIBUTE",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"MCP_LOGGING_LEVEL_ATTRIBUTE",{enumerable:!0,get:function(){return A}}
617),Object.defineProperty(e,"MCP_LOGGING_LOGGER_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"MCP_LOGGING_MESSAGE_ATTRIBUTE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"MCP_METHOD_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"MCP_NOTIFICATION_ORIGIN_VALUE",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"MCP_PROMPT_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"MCP_PROTOCOL_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"MCP_REQUEST_ARGUMENT",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"MCP_REQUEST_ID_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"MCP_RESOURCE_URI_ATTRIBUTE",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"MCP_ROUTE_SOURCE_VALUE",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"MCP_SERVER_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"MCP_SERVER_OP_VALUE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"MCP_SERVER_TITLE_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"MCP_SERVER_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"MCP_SESSION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"MCP_TOOL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"MCP_TRANSPORT_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"NETWORK_PROTOCOL_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"NETWORK_TRANSPORT_ATTRIBUTE",{enumerable:!0,get:function(){return N}});const t="mcp.method.name",n="mcp.request.id",T="mcp.session.id",o="mcp.transport",_="mcp.server.name",u="mcp.server.title",c="mcp.server.version",O="mcp.protocol.version",E="mcp.tool.name",P="mcp.resource.uri",R="mcp.prompt.name",p="mcp.tool.result.is_error",f="mcp.tool.result.content_count",b="mcp.prompt.result.description",I="mcp.prompt.result.message_count",l="mcp.request.argument",A="mcp.logging.level",U="mcp.logging.logger",C="mcp.logging.data_type",M="mcp.logging.message",N="network.transport",s="network.protocol.version",y="client.address",j="client.port",S="mcp.server",L="mcp.notification.client_to_server",B="mcp.notification.server_to_client",G="auto.function.mcp_server",V="auto.mcp.notification",v="route"},2146,[]);
618__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupPendingSpansForTransport",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"completeSpanWithResults",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"storeSpanForRequest",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);const c=new Map,u=new WeakMap;function l(t){const n=t.sessionId;if(n){let t=c.get(n);return t||(t=new Map,c.set(n,t)),t}let s=u.get(t);return s||(s=new Map,u.set(t,s)),s}function p(t,n,s,o){l(t).set(n,{span:s,method:o,startTime:Date.now()})}function f(c,u,p,f,S=!1){const R=l(c),b=R.get(u);if(b){const{span:c,method:l}=b;if(S)c.setStatus({code:t.SPAN_STATUS_ERROR,message:"internal_error"});else if("initialize"===l){const t=(0,o.extractSessionDataFromInitializeResponse)(p),s={...(0,o.buildServerAttributesFromInfo)(t.serverInfo)};t.protocolVersion&&(s[n.MCP_PROTOCOL_VERSION_ATTRIBUTE]=t.protocolVersion),c.setAttributes(s)}else if("tools/call"===l){const t=(0,s.extractToolResultAttributes)(p,f.recordOutputs);c.setAttributes(t)}else if("prompts/get"===l){const t=(0,s.extractPromptResultAttributes)(p,f.recordOutputs);c.setAttributes(t)}c.end(),R.delete(u)}}function S(n){const s=n.sessionId;if(s){const n=c.get(s);if(n){for(const[,s]of n)s.span.setStatus({code:t.SPAN_STATUS_ERROR,message:"cancelled"}),s.span.end();c.delete(s)}return}const o=u.get(n);if(o){for(const[,n]of o)n.span.setStatus({code:t.SPAN_STATUS_ERROR,message:"cancelled"}),n.span.end();
618o.clear()}}},2147,[1990,2146,2148,2150]);
619__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractPromptResultAttributes",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"extractToolResultAttributes",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);function o(o,s){const i={[t.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE]:o.length};for(const[t,c]of o.entries()){if(!(0,n.isValidContentItem)(c))continue;const u=1===o.length?"mcp.tool.result":`mcp.tool.result.${t}`;if("string"==typeof c.type&&(i[`${u}.content_type`]=c.type),s){const t=(t,n)=>{"string"==typeof n&&(i[`${u}.${t}`]=n)};t("mime_type",c.mimeType),t("uri",c.uri),t("name",c.name),"string"==typeof c.text&&(i[`${u}.content`]=c.text),"string"==typeof c.data&&(i[`${u}.data_size`]=c.data.length);const o=c.resource;(0,n.isValidContentItem)(o)&&(t("resource_uri",o.uri),t("resource_mime_type",o.mimeType))}}return i}function s(s,i){if(!(0,n.isValidContentItem)(s))return{};const c=Array.isArray(s.content)?o(s.content,i):{};return"boolean"==typeof s.isError&&(c[t.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE]=s.isError),c}function i(o,s){const i={};if(!(0,n.isValidContentItem)(o))return i;if(s&&"string"==typeof o.description&&(i[t.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE]=o.description),Array.isArray(o.messages)&&(i[t.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE]=o.messages.length,s)){const t=o.messages;for(const[o,s]of t.entries()){if(!(0,n.isValidContentItem)(s))continue;const c=1===t.length?"mcp.prompt.result":`mcp.prompt.result.${o}`;if(((n,o)=>{if("string"==typeof o){const s=1===t.length?`${c}.message_${n}`:`${c}.${n}`;i[s]=o}})("role",s.role),(0,n.isValidContentItem)(s.content)){const n=s.content;if("string"==typeof n.text){const o=1===t.length?`${c}.message_content`:`${c}.content`;i[o]=n.text}}}}return i}},2148,[2146,2149]);
620__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isJsonRpcNotification",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isJsonRpcRequest",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isJsonRpcResponse",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isValidContentItem",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"validateMcpServerInstance",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);function o(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"method"in n&&"id"in n}function c(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"method"in n&&!("id"in n)}function u(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"id"in n&&("result"in n||"error"in n)}function s(o){return"object"==typeof o&&null!==o&&"connect"in o&&("tool"in o&&"resource"in o&&"prompt"in o||"registerTool"in o&&"registerResource"in o&&"registerPrompt"in o)||(n.DEBUG_BUILD&&t.debug.warn("Did not patch MCP server. Interface is incompatible."),!1)}function p(n){return null!=n&&"object"==typeof n}},2149,[1959,1963]);
621__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildClientAttributesFromInfo",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"buildServerAttributesFromInfo",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"buildTransportAttributes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractClientInfo",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"extractSessionDataFromInitializeRequest",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"extractSessionDataFromInitializeResponse",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getClientAttributes",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getServerAttributes",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getTransportTypes",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(t){const n={};return(0,o.isValidContentItem)(t)&&("string"==typeof t.name&&(n.name=t.name),"string"==typeof t.title&&(n.title=t.title),"string"==typeof t.version&&(n.version=t.version)),n}function c(t){const n={};return(0,o.isValidContentItem)(t.params)&&("string"==typeof t.params.protocolVersion&&(n.protocolVersion=t.params.protocolVersion),t.params.clientInfo&&(n.clientInfo=s(t.params.clientInfo))),n}function u(t){const n={};return(0,o.isValidContentItem)(t)&&("string"==typeof t.protocolVersion&&(n.protocolVersion=t.protocolVersion),t.serverInfo&&(n.serverInfo=s(t.serverInfo))),n}function T(t){const o=(0,n.getClientInfoForTransport)(t),s={};return o?.name&&(s["mcp.client.name"]=o.name),o?.title&&(s["mcp.client.title"]=o.title),o?.version&&(s["mcp.client.version"]=o.version),s}function l(t){const n={};return t?.name&&(n["mcp.client.name"]=t.name),t?.title&&(n["mcp.client.title"]=t.title),t?.version&&(n["mcp.client.version"]=t.version),n}function p(o){const s=(0,n.getSessionDataForTransport)(o)?.serverInfo,c={};return s?.name&&(c[t.MCP_SERVER_NAME_ATTRIBUTE]=s.name),s?.title&&(c[t.MCP_SERVER_TIT
621LE_ATTRIBUTE]=s.title),s?.version&&(c[t.MCP_SERVER_VERSION_ATTRIBUTE]=s.version),c}function f(n){const o={};return n?.name&&(o[t.MCP_SERVER_NAME_ATTRIBUTE]=n.name),n?.title&&(o[t.MCP_SERVER_TITLE_ATTRIBUTE]=n.title),n?.version&&(o[t.MCP_SERVER_VERSION_ATTRIBUTE]=n.version),o}function I(t){return{address:t?.requestInfo?.remoteAddress||t?.clientAddress||t?.request?.ip||t?.request?.connection?.remoteAddress,port:t?.requestInfo?.remotePort||t?.clientPort||t?.request?.connection?.remotePort}}function R(t){if(!t?.constructor)return{mcpTransport:"unknown",networkTransport:"unknown"};const n="string"==typeof t.constructor?.name?t.constructor.name:"unknown";let o="unknown";const s=n.toLowerCase();return s.includes("stdio")?o="pipe":(s.includes("http")||s.includes("sse"))&&(o="tcp"),{mcpTransport:n,networkTransport:o}}function E(o,s){const c=o&&"sessionId"in o?o.sessionId:void 0,u=s?I(s):{},{mcpTransport:l,networkTransport:f}=R(o),E=T(o),_=p(o),P=(0,n.getProtocolVersionForTransport)(o);return{...c&&{[t.MCP_SESSION_ID_ATTRIBUTE]:c},...u.address&&{[t.CLIENT_ADDRESS_ATTRIBUTE]:u.address},...u.port&&{[t.CLIENT_PORT_ATTRIBUTE]:u.port},[t.MCP_TRANSPORT_ATTRIBUTE]:l,[t.NETWORK_TRANSPORT_ATTRIBUTE]:f,[t.NETWORK_PROTOCOL_VERSION_ATTRIBUTE]:"2.0",...P&&{[t.MCP_PROTOCOL_VERSION_ATTRIBUTE]:P},...E,..._}}},2150,[2146,2151,2149]);
622__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupSessionDataForTransport",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getClientInfoForTransport",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getProtocolVersionForTransport",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getSessionDataForTransport",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"storeSessionDataForTransport",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"updateSessionDataForTransport",{enumerable:!0,get:function(){return c}});const n=new Map,t=new WeakMap;function o(o){const u=o.sessionId;return u?n.get(u):t.get(o)}function u(o,u){const s=o.sessionId;s?n.set(s,u):t.set(o,u)}function s(n,t){u(n,t)}function c(n,t){u(n,{...o(n)||{},...t})}function f(n){return o(n)?.clientInfo}function p(n){return o(n)?.protocolVersion}function l(n){return o(n)}function b(t){const o=t.sessionId;o&&n.delete(o)}},2151,[]);
623__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildMcpServerSpanConfig",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createMcpNotificationSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createMcpOutgoingNotificationSpan",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),_=r(d[4]),u=r(d[5]),s=r(d[6]),T=r(d[7]);function p(t,n){return n?`${t} ${n}`:t}function I(t){let o,c;switch(t){case"request":o=_.MCP_SERVER_OP_VALUE,c=_.MCP_FUNCTION_ORIGIN_VALUE;break;case"notification-incoming":o=_.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE,c=_.MCP_NOTIFICATION_ORIGIN_VALUE;break;case"notification-outgoing":o=_.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE,c=_.MCP_NOTIFICATION_ORIGIN_VALUE}return{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:o,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:_.MCP_ROUTE_SOURCE_VALUE}}function E(n){const{type:E,message:f,transport:O,extra:l,callback:C,options:A}=n,{method:N}=f,b=f.params;let M;if("request"===E){M=p(N,(0,u.extractTargetInfo)(N,b||{}).target)}else M=N;const R={...(0,T.buildTransportAttributes)(O,l),[_.MCP_METHOD_NAME_ATTRIBUTE]:N,...(0,c.buildTypeSpecificAttributes)(E,f,b,A?.recordInputs),...I(E)},P=(0,t.getClient)(),S=Boolean(P?.getDataCollectionOptions().userInfo),U=(0,s.filterMcpPiiFromSpanData)(R,S);return(0,o.startSpan)({name:M,forceTransaction:!0,attributes:U},C)}function f(t,n,o,c,_){return E({type:"notification-incoming",message:t,transport:n,extra:o,callback:_,options:c})}function O(t,n,o,c){return E({type:"notification-outgoing",message:t,transport:n,options:o,callback:c})}function l(n,o,E,f){const{method:O}=n,l=n.params,C=p(O,(0,u.extractTargetInfo)(O,l||{}).target),A={...(0,T.buildTransportAttributes)(o,E),[_.MCP_METHOD_NAME_ATTRIBUTE]:O,...(0,c.buildTypeSpecificAttributes)("request",n,l,f?.recordInputs),...I("request")},N=(0,t.getClient)(),b=Boolean(N?.getDataCollectionOptions().userInfo),M=(0,s.filterMcpPiiFromSpanData)(A,b);return{name:C,op:_.MCP_SERVER_OP_VALUE,forceTransaction:!0,attributes:M}}},2152,[1988,1989,2009,2153,2146,2154,2155,2150]);
624__d(function(g,r,i,a,m,e,d){"use strict";
624Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildTypeSpecificAttributes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getNotificationAttributes",{enumerable:!0,get:function(){return n}});var t=r(d[0]),o=r(d[1]),s=r(d[2]);function n(s,n,c){const p={};switch(s){case"notifications/cancelled":n?.requestId&&(p["mcp.cancelled.request_id"]=String(n.requestId)),n?.reason&&(p["mcp.cancelled.reason"]=String(n.reason));break;case"notifications/message":n?.level&&(p[o.MCP_LOGGING_LEVEL_ATTRIBUTE]=String(n.level)),n?.logger&&(p[o.MCP_LOGGING_LOGGER_ATTRIBUTE]=String(n.logger)),void 0!==n?.data&&(p[o.MCP_LOGGING_DATA_TYPE_ATTRIBUTE]=typeof n.data,c&&(p[o.MCP_LOGGING_MESSAGE_ATTRIBUTE]="string"==typeof(u=n.data)?u:JSON.stringify(u)));break;case"notifications/progress":n?.progressToken&&(p["mcp.progress.token"]=String(n.progressToken)),"number"==typeof n?.progress&&(p["mcp.progress.current"]=n.progress),"number"==typeof n?.total&&(p["mcp.progress.total"]=n.total,"number"==typeof n?.progress&&(p["mcp.progress.percentage"]=n.progress/n.total*100)),n?.message&&(p["mcp.progress.message"]=String(n.message));break;case"notifications/resources/updated":if(n?.uri){p[o.MCP_RESOURCE_URI_ATTRIBUTE]=String(n.uri);const s=(0,t.parseStringToURLObject)(String(n.uri));s&&!(0,t.isURLObjectRelative)(s)&&(p["mcp.resource.protocol"]=s.protocol.replace(":",""))}break;case"notifications/initialized":p["mcp.lifecycle.phase"]="initialization_complete",p["mcp.protocol.ready"]=1}var u;return p}function c(t,c,p,u){if("request"===t){const t=c,n=(0,s.extractTargetInfo)(t.method,p||{});return{...void 0!==t.id&&{[o.MCP_REQUEST_ID_ATTRIBUTE]:String(t.id)},...n.attributes,...u?(0,s.getRequestArguments)(t.method,p||{}):{}}}return n(c.method,p||{},u)}},2153,[2058,2146,2154]);
625__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractTargetInfo",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getRequestArguments",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const u={"tools/call":{targetField:"name",targetAttribute:t.MCP_TOOL_NAME_ATTRIBUTE,captureArguments:!0,argumentsField:"arguments"},"resources/read":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE,captureUri:!0},"resources/subscribe":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE},"resources/unsubscribe":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE},"prompts/get":{targetField:"name",targetAttribute:t.MCP_PROMPT_NAME_ATTRIBUTE,captureName:!0,captureArguments:!0,argumentsField:"arguments"}};function n(t,n){const s=u[t];if(!s)return{attributes:{}};const c=s.targetField&&"string"==typeof n?.[s.targetField]?n[s.targetField]:void 0;return{target:c,attributes:c&&s.targetAttribute?{[s.targetAttribute]:c}:{}}}function s(n,s){const c={},o=u[n];if(!o)return c;if(o.captureArguments&&o.argumentsField&&s?.[o.argumentsField]){const u=s[o.argumentsField];if("object"==typeof u&&null!==u)for(const[n,s]of Object.entries(u))c[`${t.MCP_REQUEST_ARGUMENT}.${n.toLowerCase()}`]=JSON.stringify(s)}return o.captureUri&&s?.uri&&(c[`${t.MCP_REQUEST_ARGUMENT}.uri`]=JSON.stringify(s.uri)),o.captureName&&s?.name&&(c[`${t.MCP_REQUEST_ARGUMENT}.name`]=JSON.stringify(s.name)),c}},2154,[2146]);
626__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterMcpPiiFromSpanData",{enumerable:!0,get:function(){return T}});var t=r(d[0]);const n=new Set([t.CLIENT_ADDRESS_ATTRIBUTE,t.CLIENT_PORT_ATTRIBUTE,t.MCP_RESOURCE_URI_ATTRIBUTE]);function u(t){return n.has(t)}function T(t,n){return n?t:Object.entries(t).reduce((t,[n,T])=>(u(n)||(t[n]=T),t),{})}},2155,[2146]);
627__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filenameIsInApp",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"node",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"nodeStackLineParser",{enumerable:!0,get:function(){return c}});var n=r(d[0]);function t(n,t=!1){return!(t||n&&!n.startsWith("/")&&!n.match(/^[A-Z]:/)&&!n.startsWith(".")&&!n.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==n&&!n.includes("node_modules/")}function o(o){const c=/^\s*[-]{4,}$/,f=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/,l=/at (?:async )?(.+?) \(data:(.*?),/;return v=>{const h=v.match(l);
627if(h)return{filename:`<data:${h[2]}>`,function:h[1]};const p=v.match(f);if(p){let c,f,l,v,h;if(p[1]){l=p[1];let n=l.lastIndexOf(".");if("."===l[n-1]&&n--,n>0){c=l.slice(0,n),f=l.slice(n+1);const t=c.indexOf(".Module");t>0&&(l=l.slice(t+1),c=c.slice(0,t))}v=void 0}f&&(v=c,h=f),"<anonymous>"===f&&(h=void 0,l=void 0),void 0===l&&(h=h||n.UNKNOWN_FUNCTION,l=v?`${v}.${h}`:h);let y=(0,n.normalizeStackTracePath)(p[2]);const O="native"===p[5];y||!p[5]||O||(y=p[5]);const b=y?s(y):void 0;return{filename:b??y,module:b&&o?.(b),function:l,lineno:u(p[3]),colno:u(p[4]),in_app:t(y||"",O)}}return v.match(c)?{filename:v}:void 0}}function c(n){return[90,o(n)]}function u(n){return parseInt(n||"",10)||void 0}function s(n){try{return decodeURI(n)}catch{return}}},2156,[1966]);
628__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"vercelWaitUntil",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){if("string"!=typeof EdgeRuntime)return;const o=t.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],u=o?.get?.();u?.waitUntil&&u.waitUntil(n)}},2157,[1961]);
629__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"flushIfServerless",{enumerable:!0,get:function(){return u}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]);async function l(n){try{t.debug.log("Flushing events..."),await(0,e.flush)(n),t.debug.log("Done flushing events")}catch(e){t.debug.log("Error while flushing events:\n",e)}}async function u(e={}){const{timeout:t=2e3}=e;if("cloudflareWaitUntil"in e&&"function"==typeof e?.cloudflareWaitUntil)return void e.cloudflareWaitUntil(l(t));if("cloudflareCtx"in e&&"function"==typeof e.cloudflareCtx?.waitUntil)return void e.cloudflareCtx.waitUntil(l(t));if(o.GLOBAL_OBJ[Symbol.for("@vercel/request-context")])return void(0,n.vercelWaitUntil)(l(t));if("undefined"==typeof process)return;!!(process.env.FUNCTIONS_WORKER_RUNTIME||process.env.LAMBDA_TASK_ROOT||process.env.K_SERVICE||process.env.CF_PAGES||process.env.VERCEL||process.env.NETLIFY)&&await l(t)}},2158,[2016,1963,2157,1961]);
630__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"callFrameToStackFrame",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"watchdogTimer",{enumerable:!0,get:function(){return t}});var n=r(d[0]),o=r(d[1]);function t(n,o,t,l){const c=n();let u=!1,f=!0;return setInterval(()=>{const n=c.getTimeMs();!1===u&&n>o+t&&(u=!0,f&&l()),n<o+t&&(u=!1)},20),{poll:()=>{c.reset()},enabled:n=>{f=n}}}function l(t,l,c){const u=l?l.replace(/^file:\/\//,""):void 0,f=t.location.columnNumber?t.location.columnNumber+1:void 0,b=t.location.lineNumber?t.location.lineNumber+1:void 0;return{filename:u,module:c(u),function:t.functionName||o.UNKNOWN_FUNCTION,colno:f,lineno:b,in_app:u?(0,n.filenameIsInApp)(u):void 0}}},2159,[2156,1966]);
631__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"expressErrorHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"patchExpressModule",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"setupExpressErrorHandler",{enumerable:!0,get:function(){return y}});var e=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),n=r(d[4]),u=r(d[5]),p=r(d[6]),c=r(d[7]);let h=!1;function l(t,p){let l,f;if(!p&&t.express){const{express:s,...n}=t;f=s,l=()=>n,h||(h=!0,o.DEBUG_BUILD&&e.debug.warn("[Express] `patchExpressModule(options)` is deprecated. Use `patchExpressModule(moduleExports, getOptions)` instead."))}else{if("function"!=typeof p)throw new TypeError("`patchExpressModule(moduleExports, getOptions)` requires a `getOptions` callback");l=p,f=t}const y=(0,c.getDefaultExport)(f),E=(0,s.isExpressWithRouterPrototype)(y)?y.Router.prototype:(0,s.isExpressWithoutRouterPrototype)(y)?y.Router:void 0;if(!E)throw new TypeError("no valid Express route function to instrument");const x=E.route;try{(0,n.wrapMethod)(E,"route",function(...e){const t=x.apply(this,e),o=this.stack[this.stack.length-1];return(0,u.patchLayer)(l,o,(0,s.getLayerPath)(e)),t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express route method:",t)}const b=E.use;try{(0,n.wrapMethod)(E,"use",function(...e){const t=b.apply(this,e),o=this.stack[this.stack.length-1];return o?((0,u.patchLayer)(l,o,(0,s.getLayerPath)(e)),t):t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express use method:",t)}const{application:P}=y,D=P.use;try{(0,n.wrapMethod)(P,"use",function(...e){const t=D.apply(this,e),o=(0,s.isExpressWithRouterPrototype)(y)?this.router:this._router;if(o){const t=o.stack[o.stack.length-1];t&&(0,u.patchLayer)(l,t,(0,s.getLayerPath)(e))}return t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express application.use method:",t)}return y}function f(e){return function(o,n,u,c){(0,p.setSDKProcessingMetadata)(n);if((e?.shouldHandleError||s.defaultShouldHandleError)(o)){const e=(0,t.captureException)(o,{mechanism:{type:"auto.middleware.express",handled:!1}});u.sentry=e}c(o)}}function y(e,t){e.use(function(e,t,o){(0,p.setSDKProcessingMetadata)(e),o()}),e.use(f(t))}},2160,[1963,2016,1959,2161,1975,2164,2165,2166]);
632__d(function(g,r,i,a,m,e,d){"use strict";
632Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"asErrorAndMessage",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"defaultShouldHandleError",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getActualMatchedRoute",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getConstructedRoute",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getLayerMetadata",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getLayerPath",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getRouterPath",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isExpressWithRouterPrototype",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"isExpressWithoutRouterPrototype",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"isLayerIgnored",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isRoutePattern",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);const o=t=>t instanceof Error?[t,t.message]:[String(t),String(t)];function s(t){return t.includes(":")||t.includes("*")}const c=(t,u,o)=>{if("router"===u.name){const s=y("",u),c=s||(o||t||"/");return{attributes:{[n.ATTR_EXPRESS_NAME]:c,[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_ROUTER},name:`router - ${c}`}}return"bound dispatch"===u.name||"handle"===u.name?{attributes:{[n.ATTR_EXPRESS_NAME]:(t||o)??"request handler",[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_REQUEST_HANDLER},name:"request handler"+(u.path?` - ${t||o}`:"")}:{attributes:{[n.ATTR_EXPRESS_NAME]:u.name,[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_MIDDLEWARE},name:`middleware - ${u.name}`}},y=(t,n)=>{const u=Array.isArray(n.handle?.stack)?n.handle?.stack?.[0]:void 0;return u?.route?.path?`${t}${u.route.path}`:u&&Array.isArray(u?.handle?.stack)?y(t,u):t},f=(t,n,o)=>{if(Array.isArray(o?.ignoreLayersType)&&o?.ignoreLayersType?.includes(n))return!0;if(!Array.isArray(o?.ignoreLayers))return!1;try{return(0,u.stringMatchesSomePattern)(t,o.ignoreLayers,!0)}catch{}return!1};function l(n,u){const o=(0,t.getStoredLayers)(n);if(0===o.length)return;if(o.every(t=>"/"===t))return"/"===n.originalUrl?"/":void 0;if("*"===u)return u;if(u.includes("/")&&(u.includes(",")||u.includes("\\")||u.includes("*")||u.includes("[")))return u;const c=u.startsWith("/")?u:`/${u}`;return c.length>0&&(n.originalUrl===c||n.originalUrl.startsWith(c)||s(c))?c:void 0}function p(n){const u=(0,t.getStoredLayers)(n);let o="";for(const t of u)"/"!==t&&"/*"!==t&&(o+=!o||o.endsWith("/")?t:`/${t}`);return o.replace(/\/{2,}/g,"/")}const E=t=>{const n=t[0];return Array.isArray(n)?n.map(t=>b(t)||"").join(","):b(n)},b=t=>"string"==typeof t?t:t instanceof RegExp||"number"==typeof t?String(t):void 0,P=t=>R(t?.Router?.prototype),R=t=>("object"==typeof t||"function"==typeof t)&&!!t&&"route"in t&&"function"==typeof t.route,h=t=>R(t.Router)&&!P(t);function A(t){const n=t.status||t.statusCode||t.status_code||t.output?.statusCode;return n?parseInt(n,10):500}function T(t){return A(t)>=500}},2161,[2162,2163,1978]);
633__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getStoredLayers",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"storeLayer",{enumerable:!0,get:function(){return n}});const t=new WeakMap,n=(n,u)=>{const o=t.get(n);o?o.push(u):t.set(n,[u])},u=n=>{let u=t.get(n);return u||(u=[],t.set(n,u)),u}},2162,[]);
634__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ATTR_EXPRESS_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ATTR_EXPRESS_TYPE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"ATTR_HTTP_ROUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ExpressLayerType_MIDDLEWARE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"ExpressLayerType_REQUEST_HANDLER",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"ExpressLayerType_ROUTER",{enumerable:!0,get:function(){return o}});const t="express.name",n="http.route",u="express.type",o="router",p="middleware",c="request_handler"},2163,[]);
635__d(function(g,r,_i,a,m,e,d){"use strict";
635Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchLayer",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),i=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),l=r(d[8]),T=r(d[9]),f=r(d[10]),E=r(d[11]),R=r(d[12]);function S(S,_,h){if(!_?.handle)return;const A=_,y=A.handle;if(!(0,c.getOriginalFunction)(y)&&4!==y.length){for(const t in y)t in b||Object.defineProperty(b,t,{get:()=>y[t],set(n){y[t]=n}});(0,c.markFunctionWrapped)(b,y),Object.defineProperty(A,"handle",{enumerable:!0,configurable:!0,writable:!0,value:b})}function b(c,_,...b){const P=S();(0,R.setSDKProcessingMetadata)(c);const O=(0,o.getActiveSpan)();if(!O)return y.apply(this,[c,_,...b]);h&&(0,l.storeLayer)(c,h);const I=(0,l.getStoredLayers)(c),M=!!h,N=(0,f.getConstructedRoute)(c),U=(0,f.getActualMatchedRoute)(c,N);P.onRouteResolved?.(U);const L=(0,f.getLayerMetadata)(N,A,h),v=L.attributes[T.ATTR_EXPRESS_NAME],j=L.attributes[T.ATTR_EXPRESS_TYPE],w=Object.assign(L.attributes,{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.express",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${j}.express`});if(U&&(w[T.ATTR_HTTP_ROUTE]=U),(0,f.isLayerIgnored)(L.attributes[T.ATTR_EXPRESS_NAME],j,P))return M&&I.pop(),y.apply(this,[c,_,...b]);const B=(0,u.getIsolationScope)();if(B!==(0,E.getDefaultIsolationScope)()){if("request_handler"===j){const t=c.method?c.method.toUpperCase():"GET";B.setTransactionName(`${t} ${N}`)}}else t.DEBUG_BUILD&&s.debug.warn("Isolation scope is still default isolation scope - skipping setting transactionName");return(0,p.startSpanManual)({name:v,attributes:w},t=>{let n=!1;L.attributes[T.ATTR_EXPRESS_TYPE]===T.ExpressLayerType_ROUTER&&(t.end(),n=!0);const s=()=>{n||(n=!0,t.end())};for(let o=0;o<b.length;o++){const u=b[o];if("function"==typeof u){b[o]=function(...o){const l=o[0],T=!!l&&"route"!==l&&"router"!==l;if(!n&&T){const[n,s]=(0,f.asErrorAndMessage)(l);t.setStatus({code:i.SPAN_STATUS_ERROR,message:s})}return n||(n=!0,_.removeListener("finish",s),t.end()),c.route&&T||!M||I.pop(),(0,p.withActiveSpan)(O,()=>u.apply(this,o))};break}}try{return y.apply(this,[c,_,...b])}catch(n){const[s,o]=(0,f.asErrorAndMessage)(n);throw t.setStatus({code:i.SPAN_STATUS_ERROR,message:o}),n}finally{n||_.once("finish",s)}})}}},2164,[1959,1989,1963,1968,1990,1975,1988,2009,2162,2163,2161,1971,2165]);
636__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setSDKProcessingMetadata",{enumerable:!0,get:function(){return s}});var t=r(d[0]),o=r(d[1]);function s(s){const n=(0,t.getIsolationScope)()?.getScopeData()?.sdkProcessingMetadata;if(!n?.normalizedRequest){const n=(0,o.httpRequestToRequestData)(s);(0,t.getIsolationScope)().setSDKProcessingMetadata({normalizedRequest:n})}}},2165,[1988,2067]);
637__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return!!t&&"object"==typeof t&&"default"in t&&t.default||t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultExport",{enumerable:!0,get:function(){return t}})},2166,[]);
638__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"_reconstructQuery",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"_sanitizeSqlQuery",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"instrumentPostgresJsSql",{enumerable:!0,get:function(){return f}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),i=r(d[5]);const c=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,u=Symbol("sentryPostgresConnectionContext"),p=Symbol.for("sentry.instrumented.postgresjs"),l=Symbol.for("sentry.query.from.instrumented.sql");function f(t,o){return t&&"function"==typeof t?b(t,{requireParentSpan:!0,...o}):(e.DEBUG_BUILD&&n.debug.warn("instrumentPostgresJsSql: provided value is not a valid postgres.js sql instance"),t)}function b(e,t,n){if(e[p])return e;const o=new Proxy(e,{apply(e,n,s){const i=Reflect.apply(e,n,s);return i&&"object"==typeof i&&"handle"in i&&R(i,o,t),i},get(e,n){const s=e[n];return"string"!=typeof n||"function"!=typeof s?s:"unsafe"===n||"file"===n?y(s,e,o,t):"begin"===n||"reserve"===n?E(s,e,o,t):s}});return n?o[u]=n:D(e,o),e[p]=!0,o[p]=!0,o}function y(e,t,n,o){return function(...s){const i=Reflect.apply(e,t,s);return i&&"object"==typeof i&&"handle"in i&&R(i,n,o),i}}function E(e,t,n,o){return function(...s){const i=n[u];if(!("function"==typeof s[s.length-1])){const n=Reflect.apply(e,t,s);return n&&"function"==typeof n.then?n.then(e=>b(e,o,i)):n}const c=1===s.length?s[0]:s[1],p=function(e){const t=b(e,o,i);return c(t)},l=1===s.length?[p]:[s[0],p];return Reflect.apply(e,t,l)}}function R(o,c,p){if(o.handle?.__sentryWrapped)return;o[l]=!0;const f=o.handle,b=async function(...l){if(this.executed||!_(p))return f.apply(this,l);const b=T(A(o.strings));return(0,i.startSpanManual)({name:b||"postgresjs.query",op:"db"},o=>{o.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.postgresjs"),o.setAttributes({"db.system.name":"postgres","db.query.text":b});const i=c?c[u]:void 0;
638if(h(o,i),p.requestHook)try{p.requestHook(o,b,i)}catch(t){o.setAttribute("sentry.hook.error","requestHook failed"),e.DEBUG_BUILD&&n.debug.error("Error in requestHook for PostgresJs instrumentation:",t)}const y=this;y.resolve=new Proxy(y.resolve,{apply:(t,s,i)=>{try{P(o,b,i?.[0]?.command),o.end()}catch(t){e.DEBUG_BUILD&&n.debug.error("Error ending span in resolve callback:",t)}return Reflect.apply(t,s,i)}}),y.reject=new Proxy(y.reject,{apply:(t,i,c)=>{try{o.setStatus({code:s.SPAN_STATUS_ERROR,message:c?.[0]?.message||"unknown_error"}),o.setAttribute("db.response.status_code",c?.[0]?.code||"unknown"),o.setAttribute("error.type",c?.[0]?.name||"unknown"),P(o,b),o.end()}catch(t){e.DEBUG_BUILD&&n.debug.error("Error ending span in reject callback:",t)}return Reflect.apply(t,i,c)}});try{return f.apply(this,l)}catch(e){throw o.setStatus({code:s.SPAN_STATUS_ERROR,message:e instanceof Error?e.message:"unknown_error"}),o.end(),e}})};b.__sentryWrapped=!0,o.handle=b}function _(e){return void 0!==(0,o.getActiveSpan)()||!e.requireParentSpan}function A(e){if(e?.length)return 1===e.length?e[0]||void 0:e.reduce((e,t,n)=>0===n?t:`${e}$${n}${t}`,"")}let S;function T(e){return e?(S||(S=new RegExp("(?<!\\$)-?\\b\\d+\\b","g")),e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(S,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)")):"Unknown SQL Query"}function h(e,t){if(t&&(t.ATTR_DB_NAMESPACE&&e.setAttribute("db.namespace",t.ATTR_DB_NAMESPACE),t.ATTR_SERVER_ADDRESS&&e.setAttribute("server.address",t.ATTR_SERVER_ADDRESS),void 0!==t.ATTR_SERVER_PORT)){const n=parseInt(t.ATTR_SERVER_PORT,10);isNaN(n)||e.setAttribute("server.port",n)}}function P(e,t,n){if(n)return void e.setAttribute("db.operation.name",n);const o=t?.match(c);o?.[1]&&e.setAttribute("db.operation.name",o[1].toUpperCase())}function D(e,t){const n=e;if(!n.options||"object"!=typeof n.options)return;const o=n.options,s=o.host?.[0]||"localhost",i=o.port?.[0]||5432,c={ATTR_DB_NAMESPACE:"string"==typeof o.database&&""!==o.database?o.database:void 0,ATTR_SERVER_ADDRESS:s,ATTR_SERVER_PORT:String(i)};t[u]=c}},2167,[1959,1989,1963,1968,1990,2009]);
639__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSqlQuerySummary",{enumerable:!0,get:function(){return T}});const n=255,o=/[^\s(,;)]+/.source,s=new RegExp(`^\\s*(?<operation>(?:CREATE|DROP)\\s+(?:TABLE|INDEX)|ALTER\\s+TABLE)(?:\\s+IF\\s+(?:NOT\\s+)?EXISTS)?\\s+(?<table>${o})`,"i"),t=new RegExp(`^\\s*(?<operation>INSERT)\\s+INTO\\s+(?<table>${o})`,"i"),u=new RegExp(`^\\s*(?<operation>UPDATE)\\s+(?<table>${o})`,"i"),p=new RegExp(`^\\s*(?<operation>DELETE)\\s+FROM\\s+(?<table>${o})`,"i"),c=/^\s*\(?\s*(?<operation>SELECT)\b/i,l=/^\s*(?<operation>PRAGMA)\s+(?<command>\S+)/i,E=/\b(?:FROM|JOIN)\s+|\(\s*(SELECT)\b|\b(?:UNION|INTERSECT|EXCEPT|MINUS)\s+(?:ALL\s+)?(SELECT)\b/gi,b=/^(?:"[^"]*"|'[^']*'|[^\s(,;)]+)/,f=/^\s*,\s*((?:"[^"]*"|'[^']*'|[^\s(,;)]+))/,x=/^\(\s*(SELECT)\b/i;function T(n){if(!n)return;const o=l.exec(n);if(o?.groups?.operation&&o.groups.command){const n=o.groups.operation,s=o.groups.command,t=s.indexOf("(");return $(`${n} ${t>=0?s.substring(0,t):s}`)}const E=s.exec(n);if(E?.groups?.operation&&E.groups.table)return $(`${E.groups.operation} ${E.groups.table}`);const b=t.exec(n);if(b?.groups?.operation&&b.groups.table){const o=[b.groups.operation,b.groups.table],s=n.slice(b[0].length),t=/\b(SELECT)\b/i.exec(s);if(t?.[1]){o.push(t[1]);const n=h(s.slice(t.index));o.push(...n)}return $(o.join(" "))}const f=u.exec(n);if(f?.groups?.operation&&f.groups.table)return $(`${f.groups.operation} ${f.groups.table}`);const x=p.exec(n);if(x?.groups?.operation&&x.groups.table)return $(`${x.groups.operation} ${x.groups.table}`);const T=c.exec(n);if(T?.groups?.operation){const o=h(n.slice(T[0].length));return o.length>0?$(`${T.groups.operation} ${o.join(" ")}`):T.groups.operation}return $(n.trim().split(/\s+/)[0]??n)}function h(n){const o=[];let s;for(E.lastIndex=0;null!==(s=E.exec(n));){if(s[1]||s[2]){o.push(s[1]||s[2]);continue}const t=n.slice(s.index+s[0].length),u=x.exec(t);if(u?.[1]){o.push(u[1]),E.lastIndex=s.index+s[0].length+u[0].length;continue}const p=b.exec(t);if(!p)continue;o.push(p[0]);let c,l=t.slice(p[0].length);for(;null!==(c=f.exec(l))&&c[1];)o.push(c[1]),l=l.slice(c[0].length)}return o}function $(o){if(o.length<=n)return o;const s=o.substring(0,n),t=s.lastIndexOf(" ");return t>0?s.substring(0,t):s}},2168,[]);
640__d(function(g,r,i,a,m,e,d){"use strict";
640Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchHttpModuleClient",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);function c(t,c){if(!(0,o.getOriginalFunction)(t.request)){const{[n.HTTP_ON_CLIENT_REQUEST]:s}=(0,u.getHttpClientSubscriptions)({...c,http:t}),f=t.request;(0,o.wrapMethod)(t,"request",function(...t){const o=f.apply(this,t);return s({request:o},n.HTTP_ON_CLIENT_REQUEST),o})}}function s(t){(0,o.getOriginalFunction)(t.get)||(0,o.wrapMethod)(t,"get",function(n,o,u){const c=t.request.call(this,n,o,u);return c.end(),c})}function f(n,o={}){const u=(0,t.getDefaultExport)(n),p=n;if(u!==n){f(u,o);for(const t of["get","request"]){const n=Object.getOwnPropertyDescriptor(u,t);n&&Object.defineProperty(p,t,n)}return p}return c(p,o),s(p),n}const p=(t,n={})=>f(t,n)},2169,[2166,2170,1975,2171]);
641__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HTTP_ON_CLIENT_REQUEST",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"HTTP_ON_SERVER_REQUEST",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"LOG_PREFIX",{enumerable:!0,get:function(){return t}});const t="@sentry/instrumentation-http",n="http.client.request.created",u="http.server.request.start"},2170,[]);
642__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getHttpClientSubscriptions",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),p=r(d[5]),c=r(d[6]),S=r(d[7]),R=r(d[8]),l=r(d[9]),_=r(d[10]),T=r(d[11]),b=r(d[12]);function P(P){const f=new S.LRUMap(100);return{[T.HTTP_ON_CLIENT_REQUEST]:S=>{if(!0===(0,s.getCurrentScope)().getScopeData().sdkProcessingMetadata[c.SUPPRESS_TRACING_KEY])return;const E=(0,s.getClient)()?.getOptions(),{errorMonitor:O="error",spans:C=!E||(0,p.hasSpansEnabled)(E),propagateTrace:U=!1,breadcrumbs:q=!0,http:v,https:A,suppressOtelWarning:L=!1}=P,{request:H}=S;if(P.ignoreOutgoingRequests?.((0,l.getRequestUrlFromClientRequest)(H),H))return;let I=!1;function D(n,o){I||(I=!0,(0,t.addOutgoingRequestBreadcrumb)(n,o))}if(!C)return q&&((N=H).on(O,()=>D(N,void 0)),N.prependListener("response",t=>{N.listenerCount("response")<=1&&t.resume(),t.on("end",()=>D(N,t)),t.on(O,()=>D(N,t))})),void(U&&(0,_.injectTracePropagationHeaders)(H,f));var N;L||(v&&(0,b.doubleWrapWarning)(v),A&&(0,b.doubleWrapWarning)(A));const j=(0,c.startInactiveSpan)((0,R.getOutgoingRequestSpanData)(H));P.outgoingRequestHook?.(j,H),U&&(j.isRecording()?(0,c.withActiveSpan)(j,()=>{(0,_.injectTracePropagationHeaders)(H,f)}):(0,_.injectTracePropagationHeaders)(H,f));let B=!1;function G(t){B||(B=!0,j.setStatus(t),j.end())}const W=()=>G({code:u.SPAN_STATUS_UNSET});H.on("close",W),H.on(O,t=>{n.DEBUG_BUILD&&o.debug.log(T.LOG_PREFIX,"outgoingRequest on request error()",t),q&&D(H,void 0),G({code:u.SPAN_STATUS_ERROR})}),H.prependListener("response",t=>{H.removeListener("close",W),H.listenerCount("response")<=1&&t.resume(),(0,R.setIncomingResponseSpanData)(t,j),P.outgoingResponseHook?.(j,t);let s=!1;function p(p){if(!s){s=!0,p&&n.DEBUG_BUILD&&o.debug.log(T.LOG_PREFIX,"outgoingRequest on response error()",p),q&&D(H,t);const c=t.aborted&&!t.complete,S=p||"number"!=typeof t.statusCode||c?{code:u.SPAN_STATUS_ERROR}:(0,u.getSpanStatusFromHttpCode)(t.statusCode);P.applyCustomAttributesOnSpan?.(j,H,t),G(S)}}t.on("end",()=>p()),t.on(O,p)})}}}},2171,[2172,1959,1963,1988,1990,1997,2009,2137,2174,2173,2175,2170,2176]);
643__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addOutgoingRequestBreadcrumb",{enumerable:!0,get:function(){return o}});
643var t=r(d[0]),s=r(d[1]),u=r(d[2]),n=r(d[3]);function o(o,c){const h=(0,n.getRequestUrlFromClientRequest)(o),p=(0,u.parseUrl)(h),l=c?.statusCode,b=(0,s.getBreadcrumbLogLevelFromHttpStatusCode)(l);(0,t.addBreadcrumb)({category:"http",data:{status_code:l,url:(0,u.getSanitizedUrlString)(p),"http.method":o.method||"GET",...p.search?{"http.query":p.search}:{},...p.hash?{"http.fragment":p.hash}:{}},type:"http",level:b},{event:"response",request:o,response:c})}},2172,[2069,2132,2058,2173]);
644__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t.host||"",o=/^(.*):(\d+)$/.exec(n),u=o?o[1]:n,s=t.port??(o?Number(o[2]):void 0);return{method:t.method,port:s,protocol:t.protocol,host:t.host,hostname:u,path:t.path,headers:t.getHeaders()}}function n(t){try{return String(o(t))}catch{return""}}function o(t){const n=t.protocol||"http:",o=t.headers?.host&&String(t.headers?.host)||t.hostname||t.host||"",u=!t.port||80===t.port||443===t.port||/^(.*):(\d+)$/.test(o)?"":`:${t.port}`,s=t.path?t.path:"/",c=`${n}//${o}${u}`;return new URL(s.startsWith("//")?`${c}${s}`:s,c)}function u(o){return String(n(t(o)))}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getRequestOptions",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getRequestUrl",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getRequestUrlFromClientRequest",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getRequestUrlObject",{enumerable:!0,get:function(){return o}})},2173,[]);
645__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getOutgoingRequestSpanData",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"setIncomingResponseSpanData",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(s){const p=(0,o.getRequestUrlFromClientRequest)(s),[u,c]=(0,n.getHttpSpanDetail
645sFromUrlObject)((0,n.parseStringToURLObject)(p),"client","auto.http.client",s),h=s.getHeader("user-agent");return{name:u,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client","otel.kind":"CLIENT","http.url":p,"http.method":s.method,"http.target":s.path||"/","net.peer.name":s.host,"http.host":s.getHeader("host"),...h?{"user_agent.original":h}:{},...c},onlyIfParent:!0}}function p(t,n){const{statusCode:o,statusMessage:s,httpVersion:p,socket:h}=t,l="QUIC"!==p?.toUpperCase()?"ip_tcp":"ip_udp";n.setAttributes({"http.response.status_code":o,"network.protocol.version":p,"http.flavor":p,"network.transport":l,"net.transport":l,"http.status_text":s?.toUpperCase(),"http.status_code":o,...c(t),...u(h)})}function u(t){if(!t)return{};const{remoteAddress:n,remotePort:o}=t;return{"network.peer.address":n,"network.peer.port":o,"net.peer.ip":n,"net.peer.port":o}}function c(t){const{headers:n}=t,o=n["content-length"],s=o?parseInt(String(o),10):-1,p=n["content-encoding"];return s>=0?p&&"identity"!==p?{"http.response_content_length":s}:{"http.response_content_length_uncompressed":s}:{}}},2174,[1989,2058,2173]);
646__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"injectTracePropagationHeaders",{enumerable:!0,get:function(){return _}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),U=r(d[8]);function _(_,E){const b=(0,p.getRequestUrlFromClientRequest)(_),l=(0,e.getClient)()?.getOptions(),{tracePropagationTargets:B,propagateTraceparent:D}=l??{};if(!(0,c.shouldPropagateTraceForUrl)(b,B,E))return;if(!!_.getHeader("sentry-trace"))return;const f=(0,s.getTraceData)({propagateTraceparent:D});if(!f)return;const{"sentry-trace":G,baggage:I,traceparent:L}=f;if(G)try{_.setHeader("sentry-trace",G),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added sentry-trace header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set sentry-trace header:",(0,o.isError)(e)?e.message:"Unknown error")}if(L&&!_.getHeader("traceparent"))try{_.setHeader("traceparent",L),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added traceparent header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set traceparent header:",(0,o.isError)(e)?e.message:"Unknown error")}if(I){const e=(0,U.mergeBaggageHeaders)(_.getHeader("baggage"),I);if(e)try{_.setHeader("baggage",e),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added baggage header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set baggage header:",(0,o.isError)(e)?e.message:"Unknown error")}}}},2175,[1988,1959,1963,1976,2063,2064,2170,2173,1993]);
647__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"doubleWrapWarning",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"warning",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);const o=t=>"function"==typeof t.__unwrap,s="Double-wrapped http.client detected. Either disable spans in Sentry.httpIntegration, or disable the OpenTelemetry HTTP instrumentation. See: https://docs.sentry.io/platforms/javascript/guides/express/opentelemetry/custom-setup/#custom-http-instrumentation";let u=!1;const p=t.DEBUG_BUILD?t=>{u||(o(t.request)||o(t.get))&&(u=!0,n.debug.warn(s))}:()=>{}},2176,[1959,1963]);
648__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getHttpServerSubscriptions",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"instrumentServer",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"isStaticAssetRequest",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]),u=r(d[5]),c=r(d[6]),l=r(d[7]),S=r(d[8]),h=r(d[9]),_=r(d[10]),R=r(d[11]),f=r(d[12]),T=r(d[13]),E=r(d[14]);const A="Http.Server",y="Http.SentryServerSpans",C=new WeakMap,I=Symbol.for("sentry_http_server_instrumented");function b(t){return!t[I]&&(t[I]=!0)}function q(t,p){const f=p.emit;if(f===C.get(p))return;const T=new Proxy(f,{apply(p,f,T){const[E,...y]=T;if("request"!==E)return p.apply(f,T);const C=(0,o.getClient)(),[I,q]=y;if(!C||!b(I))return p.apply(f,T);n.DEBUG_BUILD&&s.debug.log(A,"Handling incoming request");const U=(0,o.getIsolationScope)().clone();U.setClient(C);const v=I.socket?.remoteAddress,N=I.url||"/",O=(0,u.httpRequestToRequestData)(I),{maxRequestBodySize:P="medium",ignoreRequestBody:D,sessions:w=!0,sessionFlushingDelayMS:M=6e4}=t;"none"===P||D?.(N,I)||(0,c.patchRequestToCaptureBody)(I,U,P,A),U.setSDKProcessingMetadata({normalizedRequest:O,ipAddress:v});const x=`${(I.method||"GET").toUpperCase()} ${(0,l.stripUrlQueryAndFragment)(N)}`;return U.setTransactionName(x),w&&(0,S.recordRequestSession)(C,{requestIsolationScope:U,response:q,sessionFlushingDelayMS:M??6e4}),(0,o.withIsolationScope)(U,()=>{const n=O.headers?.["sentry-trace"],s=O.headers?.baggage,u=Array.isArray(n)?n[0]:n;return(0,_.continueTrace)({sentryTrace:u,baggage:Array.isArray(s)?s[0]:s},()=>{const n=(0,o.getCurrentScope)().getPropagationContext();n.propagationSpanId=(0,h.generateSpanId)(),u||(n.traceId=(0,h.generateTraceId)(),n.sampleRand=(0,R.safeMathRandom)()),q.once("close",()=>{U.setContext("response",{status_code:q.statusCode})});const s=t.wrapServerEmitRequest;let c=!1;return s?s(I,q,O,()=>{c=p.apply(f,T)}):c=p.apply(f,T),c})})}});C.set(p,T),p.emit=T}function U(n){const s=n.wrapServerEmitRequest,u=v(n),c={...n,wrapServerEmitRequest(t,c,l,S){const h=(0,o.getClient)()?.getOptions();n.spans??(!!h&&(0,p.hasSpansEnabled)(h))?u(t,c,l,S):s?s(t,c,l,S):S()}};return{[t.HTTP_ON_SERVER_REQUEST]:t=>{const{server:n}=t;q(c,n)}}}function v(t){const{wrapServerEmitRequest:p,ignoreIncomingRequests:c,ignoreStaticAssets:S=!0,onSpanCreated:h,errorMonitor:R="error",onSpanEnd:A}=t;return(t,C,I,b)=>{return"undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__?p?p(t,C,I,q):q():b();function q(){const p=(0,o.getIsolationScope)().getClient();if(!p)return b();if(N(t,{ignoreStaticAssets:S,ignoreIncomingRequests:c}))return n.DEBUG_BUILD&&s.debug.log(y,"Skipping span creation for incoming request",t.url),b();const q=I.url||t.url||"/",U=(0,l.parseStringToURLObject)(q),v=U?U.pathname:(0,l.stripUrlQueryAndFragment)(q),O=(t.method||"GET").toUpperCase(),D=`${O} ${v}`,w=t.headers,M=w["user-agent"],x=w["x-forwarded-for"],B=t.httpVersion,H=w.host,j=H?.replace(/^(.*)(:[0-9]{1,5}
648)/,"$1")||"localhost",$=q.startsWith("https")?"https":"http",{socket:G}=t,{localAddress:F,localPort:k,remoteAddress:Q,remotePort:Y}=G??{};return(0,_.startSpanManual)({name:D,kind:E.SPAN_KIND.SERVER,attributes:{[f.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.server",[f.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.server",[f.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url","http.route":v,"otel.kind":"SERVER","net.host.ip":F,"net.host.port":k,"net.peer.ip":Q,"net.peer.port":Y,"sentry.http.prefetch":(V=t,"1"===V.headers["next-router-prefetch"]||void 0),"http.url":q,"http.method":O,"http.target":U?`${U.pathname}${U.search}`:v,"http.host":H,"net.host.name":j,"http.client_ip":"string"==typeof x?x.split(",")[0]:void 0,"http.user_agent":M,"http.scheme":$,"http.flavor":B,"net.transport":"QUIC"===B?.toUpperCase()?"ip_udp":"ip_tcp",...P(t),...(0,u.httpHeadersToSpanAttributes)(I.headers||{},p.getDataCollectionOptions())}},n=>{h?.(n,t,C);let s=!1;function o(o){s||(s=!0,n.setAttributes({"http.status_text":C.statusMessage?.toUpperCase(),"http.response.status_code":C.statusCode,"http.status_code":C.statusCode,...(0,u.httpHeadersToSpanAttributes)((0,u.headersToDict)(C.headers),p?.getDataCollectionOptions()??!1,"response")}),n.setStatus(o),A?.(n,t,C),n.end())}C.once("close",()=>{o((0,T.getSpanStatusFromHttpCode)(C.statusCode))}),C.once(R,()=>{const t=(0,T.getSpanStatusFromHttpCode)(C.statusCode);o(t.code===T.SPAN_STATUS_ERROR?t:{code:T.SPAN_STATUS_ERROR})}),b()});var V}}}function N(t,{ignoreStaticAssets:n,ignoreIncomingRequests:s}){const o=t.url,p=t.method?.toUpperCase();return"OPTIONS"===p||"HEAD"===p||!o||(!(!n||"GET"!==p||!O(o))||!!s?.(o,t))}function O(t){const n=(0,l.stripUrlQueryAndFragment)(t);return!!n.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)||!!n.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)}function P(t){const{headers:n}=t,s=n["content-length"],o=s?parseInt(String(s),10):-1,p=n["content-encoding"];return o>=0?p&&"identity"!==p?{"http.request_content_length":o}:{"http.request_content_length_uncompressed":o}:{}}},2177,[2170,1959,1963,1988,1997,2067,2178,2058,2179,1983,2009,1977,1989,1990,2068]);
649__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchRequestToCaptureBody",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);function u(u,c,f,s){let y=0;const l=[];o.DEBUG_BUILD&&t.debug.log(s,"Patching request.on");const p=new WeakMap,b=(0,n.getMaxBodyByteLength)(f);try{u.on=u.addListener=new Proxy(u.on,{apply:(n,u,c)=>{const[f,B,...h]=c;if("data"===f){o.DEBUG_BUILD&&t.debug.log(s,`Handling request.on("data") with maximum body size of ${b}b`);const c=new Proxy(B,{apply:(n,u,c)=>{try{const n=c[0],u=Buffer.from(n);y<b?(l.push(u),y+=u.byteLength):o.DEBUG_BUILD&&t.debug.log(s,`Dropping request body chunk because maximum body length of ${b}b is exceeded.`)}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Encountered error while storing body chunk.")}return Reflect.apply(n,u,c)}});return p.set(B,c),Reflect.apply(n,u,[f,c,...h])}return Reflect.apply(n,u,c)}}),u.off=u.removeListener=new Proxy(u.off,{apply:(t,o,n)=>{const[,u]=n,c=p.get(u);if(c){p.delete(u);const f=n.slice();return f[1]=c,Reflect.apply(t,o,f)}return Reflect.apply(t,o,n)}}),u.on("end",()=>{try{const t=Buffer.concat(l).toString("utf-8");if(t){const o=Buffer.byteLength(t,"utf-8")>b?`${Buffer.from(t).subarray(0,b-3).toString("utf-8")}...`:t;c.setSDKProcessingMetadata({normalizedRequest:{data:o}})}}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Error building captured request body",n)}})}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Error patching request to capture body",n)}}},2178,[1963,1959,2067]);
650__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"recordRequestSession",{enumerable:!0,get:function(){return c}});
650var s=r(d[0]),t=r(d[1]),o=r(d[2]),n=r(d[3]);const u=new WeakMap;function c(c,{requestIsolationScope:l,response:f,sessionFlushingDelayMS:D}){l.setSDKProcessingMetadata({requestSession:{status:"ok"}}),f.once("close",()=>{const f=l.getScopeData().sdkProcessingMetadata.requestSession;if(c&&f){t.DEBUG_BUILD&&s.debug.log(`Recorded request session with status: ${f.status}`);const l=new Date((0,o.safeDateNow)());l.setSeconds(0,0);const S=l.toISOString(),h=u.get(c),U=h?.[S]||{exited:0,crashed:0,errored:0};if(U[{ok:"exited",crashed:"crashed",errored:"errored"}[f.status]]++,h)h[S]=U;else{t.DEBUG_BUILD&&s.debug.log("Opened new request session aggregate.");const o={[S]:U};u.set(c,o);const l=()=>{clearTimeout(h),f(),u.delete(c);const s=Object.entries(o).map(([s,t])=>({started:s,exited:t.exited,errored:t.errored,crashed:t.crashed}));c.sendSession({aggregates:s})},f=c.on("flush",()=>{t.DEBUG_BUILD&&s.debug.log("Sending request session aggregate due to client flush"),l()}),h=setTimeout(()=>{t.DEBUG_BUILD&&s.debug.log("Sending request session aggregate due to flushing schedule"),l()},D);(0,n.safeUnref)(h)}}})}},2179,[1963,1959,1977,2022]);
651__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getComponentName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getLocationHref",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"htmlTreeAsString",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=r(d[1]).GLOBAL_OBJ,o=80;function s(t,n={}){if(!t)return"<unknown>";try{let s=t;const i=5,l=[];let f=0,c=0;const p=" > ",y=p.length;let h;const b=Array.isArray(n)?n:n.keyAttrs,A=!Array.isArray(n)&&n.maxStringLength||o;for(;s&&f++<i&&(h=u(s,b),!("html"===h||f>1&&c+l.length*y+h.length>=A));)l.push(h),c+=h.length,s=s.parentNode;return l.reverse().join(p)}catch{return"<unknown>"}}function u(o,s){const u=o,i=[];if(!u?.tagName)return"";if(n.HTMLElement&&u instanceof HTMLElement&&u.dataset){if(u.dataset.sentryComponent)return u.dataset.sentryComponent;if(u.dataset.sentryElement)return u.dataset.sentryElement}i.push(u.tagName.toLowerCase());const l=s?.length?s.filter(t=>u.getAttribute(t)).map(t=>[t,u.getAttribute(t)]):null;if(l?.length)l.forEach(t=>{i.push(`[${t[0]}="${t[1]}"]`)});else{u.id&&i.push(`#${u.id}`);const n=u.className;if(n&&(0,t.isString)(n)){const t=n.split(/\s+/);for(const n of t)i.push(`.${n}`)}}for(const t of["aria-label","type","name","title","alt"]){const n=u.getAttribute(t);n&&i.push(`[${t}="${n}"]`)}return i.join("")}function i(){try{return n.document.location.href}catch{return""}}function l(t,o=5){if(!n.HTMLElement)return null;let s=t;for(let t=0;t<o;t++){if(!s)return null;if(s instanceof HTMLElement){if(s.dataset.sentryComponent)return s.dataset.sentryComponent;if(s.dataset.sentryElement)return s.dataset.sentryElement}s=s.parentNode}return null}},2180,[1976,1961]);
652__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentEmbeddingMethod",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return I}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),E=r(d[3]),_=r(d[4]),u=r(d[5]);function T(n){const t=n.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}function c(n){const o=n??{},_={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:u.LANGCHAIN_ORIGIN,[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:E.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,[E.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"embeddings",[E.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:o.model??"unknown"};return _[E.GEN_AI_SYSTEM_ATTRIBUTE]=T(o),"dimensions"in o&&(_[E.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=o.dimensions),"encodingFormat"in o&&(_[E.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=o.encodingFormat),_}function s(t,u={}){const{recordInputs:T}=(0,_.resolveAIRecordingOptions)(u);return new Proxy(t,{apply(t,_,u){const s=c(_),I=s[E.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown";if(T){const n=u[0];null!=n&&(s[E.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]="string"==typeof n?n:JSON.stringify(n))}return(0,o.startSpan)({name:`embeddings ${I}`,op:E.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,attributes:s},()=>Reflect.apply(t,_,u).then(void 0,t=>{throw(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),t}))}})}function I(n,t){const o=n;return"function"==typeof o.embedQuery&&(o.embedQuery=s(o.embedQuery,t)),"function"==typeof o.embedDocuments&&(o.embedDocuments=s(o.embedDocuments,t)),n}},2181,[2016,1989,2009,2104,2103,2123]);
653__d(function(g,r,i,a,m,e,d){"use strict";
653Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEBUG_BUILD",{enumerable:!0,get:function(){return _}});const _='undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},2182,[]);
654__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CLSThresholds",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"onCLS",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]),l=r(d[6]),f=r(d[7]),b=r(d[8]);const _=[.1,.25],y=(y,h={})=>{(0,b.onFCP)((0,f.runOnce)(()=>{const f=(0,s.initMetric)("CLS",0);let b;const p=(0,o.getVisibilityWatcher)(),v=(0,u.initUnique)(h,c.LayoutShiftManager),C=t=>{for(const n of t)v._processEntry(n);v._sessionValue>f.value&&(f.value=v._sessionValue,f.entries=v._sessionEntries,b())},O=(0,l.observe)("layout-shift",C);O&&(b=(0,n.bindReporter)(y,f,_,h.reportAllChanges),p.onHidden(()=>{C(O.takeRecords()),b(!0)}),t.WINDOW?.setTimeout?.(b))}))}},2183,[2184,2185,2186,2190,2192,2193,2194,2195,2196]);
655__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WINDOW",{enumerable:!0,get:function(){return t}});const t=r(d[0]).GLOBAL_OBJ},2184,[1957]);
656__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"bindReporter",{enumerable:!0,get:function(){return n}});const t=(t,n)=>t>n[1]?"poor":t>n[0]?"needs-improvement":"good",n=(n,o,u,l)=>{let v,c;return p=>{o.value>=0&&(p||l)&&(c=o.value-(v??0),(c||void 0===v)&&(v=o.value,o.delta=c,o.rating=t(o.value,u),n(o)))}}},2185,[]);
657__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"getVisibilityWatcher",{enumerable:!0,get:function(){return p}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);let s=-1;const c=new Set,o=e=>{if(u(e)&&s>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(const e of c)e();isFinite(s)||(s="visibilitychange"===e.type?e.timeStamp:0,(0,n.removePageListener)("prerenderingchange",o,!0))}},p=()=>{if(e.WINDOW.document&&s<0){const c=(0,t.getActivationStart)(),p=e.WINDOW.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(e=>"hidden"===e.name&&e.startTime>c)[0]?.startTime;s=p??("hidden"!==e.WINDOW.document?.visibilityState||e.WINDOW.document?.prerendering?1/0:0),(0,n.addPageListener)("visibilitychange",o,!0),(0,n.addPageListener)("pagehide",o,!0),(0,n.addPageListener)("prerenderingchange",o,!0)}return{get firstHiddenTime(){return s},onHidden(e){c.add(e)}}};function u(t){return"pagehide"===t.type||"hidden"===e.WINDOW.document?.visibilityState}},2186,[2184,2187,2189]);
658__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getActivationStart",{enumerable:!0,get:function(){return n}});var t=r(d[0]);const n=()=>{const n=(0,t.getNavigationEntry)();return n?.activationStart??0}},2187,[2188]);
659__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getNavigationEntry",{enumerable:!0,get:function(){return n}});var t=r(d[0]);const n=(n=!0)=>{const o=t.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!n||o&&o.responseStart>0&&o.responseStart<performance.now())return o}},2188,[2184]);
660__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addPageListener",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"removePageListener",{enumerable:!0,get:function(){return u}});var n=r(d[0]);function t(t,u,o){n.WINDOW.document&&n.WINDOW.addEventListener(t,u,o)}function u(t,u,o){n.WINDOW.document&&n.WINDOW.removeEventListener(t,u,o)}},2189,[2184]);
661__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initMetric",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]);const u=(u,s=-1)=>{const p=(0,c.getNavigationEntry)();let l="navigate";p&&(t.WINDOW.document?.prerendering||(0,o.getActivationStart)()>0?l="prerender":t.WINDOW.document?.wasDiscarded?l="restore":p.type&&(l=p.type.replace(/_/g,"-")));return{name:u,value:s,rating:"good",delta:0,entries:[],id:(0,n.generateUniqueID)(),navigationType:l}}},2190,[2184,2191,2187,2188]);
662__d(function(g,r,i,a,m,e,d){"use strict";
662Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateUniqueID",{enumerable:!0,get:function(){return t}});const t=()=>`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},2191,[]);
663__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initUnique",{enumerable:!0,get:function(){return n}});const t=new WeakMap;function n(n,u){try{return t.get(n)||t.set(n,new u),t.get(n)}catch(t){return new u}}},2192,[]);
664__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LayoutShiftManager",{enumerable:!0,get:function(){return s}});class s{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(s){if(s.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&s.startTime-n.startTime<1e3&&s.startTime-t.startTime<5e3?(this._sessionValue+=s.value,this._sessionEntries.push(s)):(this._sessionValue=s.value,this._sessionEntries=[s]),this._onAfterProcessingUnexpectedShift?.(s)}}},2193,[]);
665__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"observe",{enumerable:!0,get:function(){return t}});const t=(t,n,s={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const o=new PerformanceObserver(t=>{Promise.resolve().then(()=>{n(t.getEntries())})});return o.observe({type:t,buffered:!0,...s}),o}}catch{}}},2194,[]);
666__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"runOnce",{enumerable:!0,get:function(){return t}});const t=t=>{let n=!1;return()=>{n||(t(),n=!0)}}},2195,[]);
667__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FCPThresholds",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"onFCP",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]);const f=[1800,3e3],l=(l,b={})=>{(0,u.whenActivated)(()=>{const u=(0,o.getVisibilityWatcher)(),p=(0,s.initMetric)("FCP");let h;const v=(0,c.observe)("paint",t=>{for(const o of t)"first-contentful-paint"===o.name&&(v.disconnect(),o.startTime<u.firstHiddenTime&&(p.value=Math.max(o.startTime-(0,n.getActivationStart)(),0),p.entries.push(o),h(!0)))});v&&(h=(0,t.bindReporter)(l,p,f,b.reportAllChanges))})}},2196,[2185,2187,2186,2190,2194,2197]);
668__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"whenActivated",{enumerable:!0,get:function(){return t}});var n=r(d[0]);const t=t=>{n.WINDOW.document?.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()}},2197,[2184]);
669__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"INPThresholds",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"onINP",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),l=r(d[5]),u=r(d[6]),f=r(d[7]),b=r(d[8]);const h=[200,500],p=(p,v={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const y=(0,n.getVisibilityWatcher)();(0,f.whenActivated)(()=>{(0,u.initInteractionCountPolyfill)();const n=(0,o.initMetric)("INP");let f;const P=(0,c.initUnique)(v,s.InteractionManager),I=t=>{(0,b.whenIdleOrHidden)(()=>{for(const n of t)P._processEntry(n);const o=P._estimateP98LongestInteraction();o&&o._latency!==n.value&&(n.value=o._latency,n.entries=o.entries,f())})},_=(0,l.observe)("event",I,{durationThreshold:v.durationThreshold??40});f=(0,t.bindReporter)(p,n,h,v.reportAllChanges),_&&(_.observe({type:"first-input",buffered:!0}),y.onHidden(()=>{I(_.takeRecords()),f(!0)}))})}},2198,[2185,2186,2190,2192,2199,2194,2200,2197,2201]);
670__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"InteractionManager",{enumerable:!0,get:function(){return s}});var t=r(d[0]);let n=0;class s{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){n=(0,t.getInteractionCount)(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const s=Math.min(this._longestInteractionList.length-1,Math.floor(((0,t.getInteractionCount)()-n)/50));return this._longestInteractionList[s]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!t.interactionId&&"first-input"!==t.entryType)return;const n=this._longestInteractionList.at(-1);let s=this._longestInteractionMap.get(t.interactionId);if(s||this._longestInteractionList.length<10||t.duration>n._latency){if(s?t.duration>s._latency?(s.entries=[t],s._latency=t.duration):t.duration===s._latency&&t.startTime===s.entries[0].startTime&&s.entries.push(t):(s={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(s.id,s),this._longestInteractionList.push(s)),this._longestInteractionList.sort((t,n)=>n._latency-t._latency),this._longestInteractionList.length>10){const t=this._longestInteractionList.splice(10);for(const n of t)this._longestInteractionMap.delete(n.id)}this._onAfterProcessingINPCandidate?.(s)}}}},2199,[2200]);
671__d(function(g,r,i,a,m,_e,d){"use strict";
671Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"getInteractionCount",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"initInteractionCountPolyfill",{enumerable:!0,get:function(){return l}});var e=r(d[0]);let t=0,n=1/0,o=0;const c=e=>{e.forEach(e=>{e.interactionId&&(n=Math.min(n,e.interactionId),o=Math.max(o,e.interactionId),t=o?(o-n)/7+1:0)})};let u;const f=()=>u?t:performance.interactionCount||0,l=()=>{"interactionCount"in performance||u||(u=(0,e.observe)("event",c,{type:"event",buffered:!0,durationThreshold:0}))}},2200,[2194]);
672__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"whenIdleOrHidden",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const u=u=>{const s=t.WINDOW.requestIdleCallback||t.WINDOW.setTimeout;"hidden"===t.WINDOW.document?.visibilityState?u():(u=(0,c.runOnce)(u),(0,n.addPageListener)("visibilitychange",u,{once:!0,capture:!0}),(0,n.addPageListener)("pagehide",u,{once:!0,capture:!0}),s(()=>{u(),(0,n.removePageListener)("visibilitychange",u,{capture:!0}),(0,n.removePageListener)("pagehide",u,{capture:!0})}))}},2201,[2184,2189,2195]);
673__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LCPThresholds",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"onLCP",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),f=r(d[7]),p=r(d[8]),b=r(d[9]),h=r(d[10]);const y=[2500,4e3],P=(P,v={})=>{(0,b.whenActivated)(()=>{const b=(0,o.getVisibilityWatcher)(),C=(0,c.initMetric)("LCP");let L;const O=(0,l.initUnique)(v,u.LCPEntryManager),T=t=>{v.reportAllChanges||(t=t.slice(-1));for(const o of t)O._processEntry(o),o.startTime<b.firstHiddenTime&&(C.value=Math.max(o.startTime-(0,n.getActivationStart)(),0),C.entries=[o],L())},_=(0,f.observe)("largest-contentful-paint",T);if(_){L=(0,t.bindReporter)(P,C,y,v.reportAllChanges);const n=(0,p.runOnce)(()=>{T(_.takeRecords()),_.disconnect(),L(!0)}),o=t=>{t.isTrusted&&((0,h.whenIdleOrHidden)(n),(0,s.removePageListener)(t.type,o,{capture:!0}))};for(const t of["keydown","click","visibilitychange"])(0,s.addPageListener)(t,o,{capture:!0})}})}},2202,[2185,2187,2186,2189,2190,2192,2203,2194,2195,2197,2201]);
674__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LCPEntryManager",{enumerable:!0,get:function(){return n}});class n{_processEntry(n){this._onBeforeProcessingEntry?.(n)}}},2203,[]);
675__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TTFBThresholds",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"onTTFB",{enumerable:!0,get:function(){return T}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]);const l=[800,1800],p=n=>{t.WINDOW.document?.prerendering?(0,u.whenActivated)(()=>p(n)):"complete"!==t.WINDOW.document?.readyState?addEventListener("load",()=>p(n),!0):setTimeout(n)},T=(t,u={})=>{const T=(0,s.initMetric)("TTFB"),v=(0,n.bindReporter)(t,T,l,u.reportAllChanges);p(()=>{const t=(0,c.getNavigationEntry)();t&&(T.value=Math.max(t.responseStart-(0,o.getActivationStart)(),0),T.entries=[t],v(!0))})}},2204,[2184,2185,2187,2188,2190,2197]);
676__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_addMeasureSpans",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"_addNavigationSpans",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"_addResourceSpans",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"_setResourceRequestAttributes",{enumerable:!0,get:function(){return $}}),Object.defineProperty(e,"addPerformanceEntries",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"addWebVitalsToSpan",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"startTrackingInteractions",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"startTrackingLongAnimationFrames",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"startTrackingLongTasks",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"startTrackingWebVitals",{enumerable:!0,get:function(){return I}});
676var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),p=r(d[6]),l=r(d[7]),f=r(d[8]),T=r(d[9]),b=r(d[10]),S=r(d[11]);const _=2147483647;let y,v,A=0,E={};function I({recordClsStandaloneSpans:n,recordLcpStandaloneSpans:p,client:f}){const T=(0,l.getBrowserPerformanceAPI)();if(T&&(0,t.browserPerformanceTimeOrigin)()){T.mark&&o.WINDOW.performance.mark("sentry-tracing-init");const t=p?(0,u.trackLcpAsStandaloneSpan)(f):!1===p?(0,c.addLcpInstrumentationHandler)(({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(0,u.isValidLcpMetric)(t.value)&&(E.lcp={value:t.value,unit:"millisecond"},y=n)},!0):void 0,l=n?(0,s.trackClsAsStandaloneSpan)(f):!1===n?(0,c.addClsInstrumentationHandler)(({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(E.cls={value:t.value,unit:""},v=n)},!0):void 0,S=(0,c.addTtfbInstrumentationHandler)(({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(E.ttfb={value:t.value,unit:"millisecond"})}),_=(0,c.addPerformanceInstrumentationHandler)("paint",({entries:t})=>{const n=(0,b.getVisibilityWatcher)();for(const o of t){const t=o.startTime<n.firstHiddenTime;"first-paint"===o.name&&t&&(E.fp={value:o.startTime,unit:"millisecond"}),"first-contentful-paint"===o.name&&t&&(E.fcp={value:o.startTime,unit:"millisecond"})}});return()=>{S(),_(),t?.(),l?.()}}return()=>{}}function h(){(0,c.addPerformanceInstrumentationHandler)("longtask",({entries:n})=>{const o=(0,t.getActiveSpan)();if(!o)return;const{op:s,start_timestamp:c}=(0,t.spanToJSON)(o);for(const u of n){const n=(0,l.msToSec)((0,t.browserPerformanceTimeOrigin)()+u.startTime),p=(0,l.msToSec)(u.duration);"navigation"===s&&c&&n<c||(0,l.startAndEndSpan)(o,n,n+p,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}})}function w(){new PerformanceObserver(n=>{const o=(0,t.getActiveSpan)();if(o)for(const s of n.getEntries()){if(!s.scripts[0])continue;const n=(0,l.msToSec)((0,t.browserPerformanceTimeOrigin)()+s.startTime),{start_timestamp:c,op:u}=(0,t.spanToJSON)(o);if("navigation"===u&&c&&n<c)continue;const p=(0,l.msToSec)(s.duration),f={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},T=s.scripts[0],{invoker:b,invokerType:S,sourceURL:_,sourceFunctionName:y,sourceCharPosition:v}=T;f["browser.script.invoker"]=b,f["browser.script.invoker_type"]=S,_&&(f["code.filepath"]=_),y&&(f["code.function"]=y),-1!==v&&(f["browser.script.source_char_position"]=v),(0,l.startAndEndSpan)(o,n,n+p,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}).observe({type:"long-animation-frame",buffered:!0})}function O(){(0,c.addPerformanceInstrumentationHandler)("event",({entries:o})=>{const s=(0,t.getActiveSpan)();if(s)for(const c of o)if("click"===c.name){const o=(0,l.msToSec)((0,t.browserPerformanceTimeOrigin)()+c.startTime),u=(0,l.msToSec)(c.duration),p={name:(0,n.htmlTreeAsString)(c.target),op:`ui.interaction.${c.name}`,startTime:o,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},f=(0,t.getComponentName)(c.target);f&&(p.attributes["ui.component_name"]=f),(0,l.startAndEndSpan)(s,o,o+u,p)}})}function N(n,o){const s=(0,l.getBrowserPerformanceAPI)(),c=(0,t.browserPerformanceTimeOrigin)();if(!s?.getEntries||!c)return;const{spanStreamingEnabled:u,ignorePerformanceApiSpans:p,ignoreResourceSpans:f}=o,T=(0,l.msToSec)(c),b=s.getEntries(),{op:S,start_timestamp:_}=(0,t.spanToJSON)(n);b.slice(A).forEach(t=>{const o=(0,l.msToSec)(t.startTime),s=(0,l.msToSec)(Math.max(0,t.duration));if(!("navigation"===S&&_&&T+o<_))switch(t.entryType){case"navigation":B(n,t,T);break;case"mark":case"paint":case"measure":C(n,t,o,s,T,p);break;case"resource":q(n,t,t.name,o,s,T,f)}}),A=Math.max(b.length-1,0),W(n,u)}function P(n,o){const s=(0,t.browserPerformanceTimeOrigin)();if(!(0,l.getBrowserPerformanceAPI)()?.getEntries||!s)return void R();const{spanStreamingEnabled:c,recordClsOnPageloadSpan:u,recordLcpOnPageloadSpan:p}=o,T=(0,l.msToSec)(s);if("pageload"===(0,t.spanToJSON)(n).op){if(Y(E),c){const o=(o,s,c)=>{const u=c??`browser.web_vital.${o}.value`;n.setAttribute(u,s),S.DEBUG_BUILD&&t.debug.log("Setting web vital attribute",{[u]:s},"on pageload span")};["ttfb","fp","fcp"].forEach(t=>{E[t]&&o(t,E[t].value)}),E["ttfb.requestTime"]&&o("ttfb.requestTime",E["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}
676else u||delete E.cls,p||delete E.lcp,Object.entries(E).forEach(([o,s])=>{(0,t.setMeasurement)(o,s.value,s.unit,n)}),G(n,o);n.setAttribute(c?"browser.performance.time_origin":"performance.timeOrigin",T),n.setAttribute(c?"browser.performance.navigation.activation_start":"performance.activationStart",(0,f.getActivationStart)())}R()}function R(){y=void 0,v=void 0,E={}}function k(t){if("measure"===t?.entryType)try{return"Components \u269b"===t.detail.devtools.track}catch{return}}function C(n,o,s,c,u,p){if(k(o))return;if(["mark","measure"].includes(o.entryType)&&(0,t.stringMatchesSomePattern)(o.name,p))return;const f=(0,T.getNavigationEntry)(!1),b=(0,l.msToSec)(f?f.requestStart:0),S=u+Math.max(s,b),_=u+s,y=_+c,v={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};S!==_&&(v["sentry.browser.measure_happened_before_request"]=!0,v["sentry.browser.measure_start_time"]=S),M(v,o),S<=y&&(0,l.startAndEndSpan)(n,S,y,{name:o.name,op:o.entryType,attributes:v})}function M(n,o){try{const s=o.detail;if(!s)return;if("object"==typeof s){for(const[o,c]of Object.entries(s))if(c&&(0,t.isPrimitive)(c))n[`sentry.browser.measure.detail.${o}`]=c;else if(void 0!==c)try{n[`sentry.browser.measure.detail.${o}`]=JSON.stringify(c)}catch{}return}if((0,t.isPrimitive)(s))return void(n["sentry.browser.measure.detail"]=s);try{n["sentry.browser.measure.detail"]=JSON.stringify(s)}catch{}}catch{}}function B(t,n,o){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(s=>{L(t,n,s,o)}),L(t,n,"secureConnection",o,"TLS/SSL"),L(t,n,"fetch",o,"cache"),L(t,n,"domainLookup",o,"DNS"),j(t,n,o)}function L(n,o,s,c,u=s){const p=o[U(s)],f=o[`${s}Start`];f&&p&&(0,l.startAndEndSpan)(n,c+(0,l.msToSec)(f),c+(0,l.msToSec)(p),{op:`browser.${u}`,name:o.name,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===s&&null!=o.redirectCount?{"http.redirect_count":o.redirectCount}:{}}})}function U(t){return"secureConnection"===t?"connectEnd":"fetch"===t?"domainLookupStart":`${t}End`}function j(n,o,s){const c=s+(0,l.msToSec)(o.requestStart),u=s+(0,l.msToSec)(o.responseEnd),p=s+(0,l.msToSec)(o.responseStart);o.responseEnd&&((0,l.startAndEndSpan)(n,c,u,{op:"browser.request",name:o.name,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),(0,l.startAndEndSpan)(n,p,u,{op:"browser.response",name:o.name,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}function q(n,s,c,u,f,T,b){if("xmlhttprequest"===s.initiatorType||"fetch"===s.initiatorType)return;const S=s.initiatorType?`resource.${s.initiatorType}`:"resource.other";if(b?.includes(S))return;const _={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},y=(0,t.parseUrl)(c);y.protocol&&(_["url.scheme"]=y.protocol.split(":").pop()),y.host&&(_["server.address"]=y.host),_["url.same_origin"]=c.includes(o.WINDOW.location.origin),_[t.SEMANTIC_ATTRIBUTE_URL_FULL]=c,$(s,_,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const v={..._,...(0,p.resourceTimingToSpanAttributes)(s)},A=T+u,E=A+f;(0,l.startAndEndSpan)(n,A,E,{name:c.replace(o.WINDOW.location.origin,""),op:S,attributes:v})}function W(n,s){const c=o.WINDOW.navigator;if(!c)return;const u=c.connection;u&&(u.effectiveType&&n.setAttribute(s?"network.connection.effective_type":"effectiveConnectionType",u.effectiveType),u.type&&n.setAttribute(s?"network.connection.type":"connectionType",u.type),(0,l.isMeasurementValue)(u.rtt)&&(s?n.setAttribute("network.connection.rtt",u.rtt):"pageload"===(0,t.spanToJSON)(n).op&&(0,t.setMeasurement)("connection.rtt",u.rtt,"millisecond"))),(0,l.isMeasurementValue)(c.deviceMemory)&&(s?n.setAttribute("device.memory.estimated_capacity",c.deviceMemory):n.setAttribute("deviceMemory",`${c.deviceMemory} GB`)),(0,l.isMeasurementValue)(c.hardwareConcurrency)&&(s?n.setAttribute("device.processor_count",c.hardwareConcurrency):n.setAttribute("hardwareConcurrency",String(c.hardwareConcurrency)))}function G(t,o){y&&o.recordLcpOnPageloadSpan&&(y.element&&t.setAttribute("lcp.element",(0,n.htmlTreeAsString)(y.element)),y.id&&t.setAttribute("lcp.id",y.id),y.url&&t.setAttribute("lcp.url",y.url.trim().slice(0,200)),null!=y.loadTime&&t.setAttribute("lcp.loadTime",y.loadTime),null!=y.renderTime&&t.setAttribute("lcp.renderTime",y.renderTime),t.setAttribute("lcp.size",y.size)),v?.sources&&o.recordClsOnPageloadSpan&&v.sources.forEac
676h((o,s)=>t.setAttribute(`cls.source.${s+1}`,(0,n.htmlTreeAsString)(o.node)))}function $(t,n,o){o.forEach(([o,s])=>{const c=t[o];null!=c&&("number"==typeof c&&c<_||"string"==typeof c)&&(n[s]=c)})}function Y(t){const n=(0,T.getNavigationEntry)(!1);if(!n)return;const{responseStart:o,requestStart:s}=n;s<=o&&(t["ttfb.requestTime"]={value:o-s,unit:"millisecond"})}},2205,[1957,2206,2184,2207,1956,2210,2211,2208,2187,2188,2186,2182]);
677__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"htmlTreeAsString",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const n=80,o={};try{"undefined"!=typeof Node&&(o.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(o.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,o.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,o.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,o.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(o.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function s(t,n,s){const c=o[n];if(c)try{return c.call(t,s)}catch{}const p=t[n];return"function"==typeof p?p.call(t,s):p}function c(t,o={}){if(!t)return"<unknown>";try{let c=t;const l=5,u=[];let f=0,y=0;const h=" > ",b=h.length;let E;const O=Array.isArray(o)?o:o.keyAttrs,A=!Array.isArray(o)&&o.maxStringLength||n;for(;c&&f++<l&&(E=p(c,O),!("html"===E||f>1&&y+u.length*b+E.length>=A));)u.push(E),y+=E.length,c=s(c,"parentNode");return u.reverse().join(h)}catch{return"<unknown>"}}function p(n,o){const c=[],p=s(n,"tagName");if(!p)return"";if("undefined"!=typeof HTMLElement&&n instanceof HTMLElement){const t=s(n,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}c.push(p.toLowerCase());const l=o?.length?o.filter(t=>s(n,"getAttribute",t)).map(t=>[t,s(n,"getAttribute",t)]):null;if(l?.length)l.forEach(t=>{c.push(`[${t[0]}="${t[1]}"]`)});else{const o=s(n,"id");o&&c.push(`#${o}`);const p=s(n,"className");if(p&&(0,t.isString)(p)){const t=p.split(/\s+/);for(const n of t)c.push(`.${n}`)}}for(const t of["aria-label","type","name","title","alt"]){const o=s(n,"getAttribute",t);o&&c.push(`[${t}="${o}"]`)}return c.join("")}},2206,[1957]);
678__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_sendStandaloneClsSpan",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"trackClsAsStandaloneSpan",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),T=r(d[4]);function c(t){let n,s=0;if(!(0,T.supportsWebVital)("layout-shift"))return;const c=(0,o.addClsInstrumentationHandler)(({metric:t})=>{const o=t.entries[t.entries.length-1];o&&(s=t.value,n=o)},!0);(0,T.listenForWebVitalReportEvents)(t,(t,o)=>{l(s,n,o,t),c()})}function l(o,c,l,E){n.DEBUG_BUILD&&t.debug.log(`Sending CLS span (${o})`);const u=c?(0,T.msToSec)(((0,t.browserPerformanceTimeOrigin)()||0)+c.startTime):(0,t.timestampInSeconds)(),S=(0,t.getCurrentScope)().getScopeData().transactionName,_=c?(0,s.htmlTreeAsString)(c.sources[0]?.node):"Layout shift",I={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":l,"sentry.report_event":E};c?.sources&&c.sources.forEach((t,n)=>{I[`cls.source.${n+1}`]=(0,s.htmlTreeAsString)(t.node)});const p=(0,T.startStandaloneWebVitalSpan)({name:_,transaction:S,attributes:I,startTime:u});p&&(p.addEvent("cls",{[t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:o}),p.end(u))}},2207,[1957,2182,2206,1956,2208]);
679__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractNetworkProtocol",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getBrowserPerformanceAPI",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"isMeasurementValue",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"listenForWebVitalReportEvents",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"msToSec",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"startAndEndSpan",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"startStandaloneWebVitalSpan",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"supportsWebVital",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function u(t){return"number"==typeof t&&isFinite(t)}
679function s(n,o,u,{...s}){const c=(0,t.spanToJSON)(n).start_timestamp;return c&&c>o&&"function"==typeof n.updateStartTime&&n.updateStartTime(o),(0,t.withActiveSpan)(n,()=>{const n=(0,t.startInactiveSpan)({startTime:o,...s});return n&&n.end(u),n})}function c(o){const u=(0,t.getClient)();if(!u)return;const{name:s,transaction:c,attributes:p,startTime:f}=o,{release:l,environment:b}=u.getOptions(),{userInfo:v}=u.getDataCollectionOptions(),y=u.getIntegrationByName("Replay"),O=y?.getReplayId(),S=(0,t.getCurrentScope)(),P=S.getUser(),I=void 0!==P?P.email||P.id||P.ip_address:void 0;let N;try{N=S.getScopeData().contexts.profile.profile_id}catch{}const _={release:l,environment:b,user:I||void 0,profile_id:N||void 0,replay_id:O||void 0,transaction:c,"user_agent.original":n.WINDOW.navigator?.userAgent,"client.address":v?"{{auto}}":void 0,...p};return(0,t.startInactiveSpan)({name:s,attributes:_,startTime:f,experimental:{standalone:!0}})}function p(){return n.WINDOW.addEventListener&&n.WINDOW.performance}function f(t){return t/1e3}function l(t){let n="unknown",o="unknown",u="";for(const s of t){if("/"===s){[n,o]=t.split("/");break}if(!isNaN(Number(s))){n="h"===u?"http":u,o=t.split(u)[1];break}u+=s}return u===t&&(n=u),{name:n,version:o}}function b(t){try{return PerformanceObserver.supportedEntryTypes.includes(t)}catch{return!1}}function v(t,n){let u,s=!1;function c(t){!s&&u&&n(t,u.spanContext().spanId,u),s=!0}(0,o.onHidden)(()=>{c("pagehide")});const p=t.on("beforeStartNavigationSpan",(t,n)=>{n?.isRedirect||(c("navigation"),p(),f())}),f=t.on("afterStartPageLoadSpan",t=>{u=t,f()})}},2208,[1957,2184,2209]);
680__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"onHidden",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);const c=c=>{const o=n=>{"pagehide"!==n.type&&"hidden"!==t.WINDOW.document?.visibilityState||c(n)};(0,n.addPageListener)("visibilitychange",o,{capture:!0,once:!0}),(0,n.addPageListener)("pagehide",o,{capture:!0,once:!0})}},2209,[2184,2189]);
681__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_PLAUSIBLE_LCP_DURATION",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"_sendStandaloneLcpSpan",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"isValidLcpMetric",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"trackLcpAsStandaloneSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),l=r(d[2]),c=r(d[3]),o=r(d[4]);const T=6e4;function u(t){return null!=t&&t>0&&t<=T}function s(t){let n,l=0;if(!(0,o.supportsWebVital)("largest-contentful-paint"))return;const T=(0,c.addLcpInstrumentationHandler)(({metric:t})=>{const c=t.entries[t.entries.length-1];c&&u(t.value)&&(l=t.value,n=c)},!0);(0,o.listenForWebVitalReportEvents)(t,(t,c)=>{p(l,n,c,t),T()})}function p(c,T,s,p){if(!u(c))return;n.DEBUG_BUILD&&t.debug.log(`Sending LCP span (${c})`);const E=(0,o.msToSec)(((0,t.browserPerformanceTimeOrigin)()||0)+(T?.startTime||0)),_=(0,t.getCurrentScope)().getScopeData().transactionName,S=T?(0,l.htmlTreeAsString)(T.element):"Largest contentful paint",A={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":s,"sentry.report_event":p};T&&(T.element&&(A["lcp.element"]=(0,l.htmlTreeAsString)(T.element)),T.id&&(A["lcp.id"]=T.id),T.url&&(A["lcp.url"]=T.url),null!=T.loadTime&&(A["lcp.loadTime"]=T.loadTime),null!=T.renderTime&&(A["lcp.renderTime"]=T.renderTime),null!=T.size&&(A["lcp.size"]=T.size));const I=(0,o.startStandaloneWebVitalSpan)({name:S,transaction:_,attributes:A,startTime:E});I&&(I.addEvent("lcp",{[t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:c}),I.end(E))}},2210,[1957,2182,2206,1956,2208]);
682__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resourceTimingToSpanAttributes",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);function o(n){return n?(((0,t.browserPerformanceTimeOrigin)()||performance.timeOrigin)+n)/1e3:n}function s(s){const c={};
682if(null!=s.nextHopProtocol){const{name:t,version:o}=(0,n.extractNetworkProtocol)(s.nextHopProtocol);c["network.protocol.version"]=o,c["network.protocol.name"]=t}return(0,t.browserPerformanceTimeOrigin)()||(0,n.getBrowserPerformanceAPI)()?.timeOrigin?(u={...c,"http.request.redirect_start":o(s.redirectStart),"http.request.redirect_end":o(s.redirectEnd),"http.request.worker_start":o(s.workerStart),"http.request.fetch_start":o(s.fetchStart),"http.request.domain_lookup_start":o(s.domainLookupStart),"http.request.domain_lookup_end":o(s.domainLookupEnd),"http.request.connect_start":o(s.connectStart),"http.request.secure_connection_start":o(s.secureConnectionStart),"http.request.connection_end":o(s.connectEnd),"http.request.request_start":o(s.requestStart),"http.request.response_start":o(s.responseStart),"http.request.response_end":o(s.responseEnd),"http.request.time_to_first_byte":null!=s.responseStart?s.responseStart/1e3:void 0},Object.fromEntries(Object.entries(u).filter(([,t])=>null!=t))):c;var u}},2211,[1957,2208]);
683__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"elementTimingIntegration",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"startTrackingElementTiming",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);const l=(0,t.defineIntegration)(()=>({name:"ElementTiming",setup(){(0,u.getBrowserPerformanceAPI)()&&(0,t.browserPerformanceTimeOrigin)()&&(0,n.addPerformanceInstrumentationHandler)("element",({entries:n})=>{for(const u of n){const n=u;if(!n.identifier)continue;const l=n.identifier,o=n.name,s=n.renderTime,c=n.loadTime,f={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":l};o&&(f["ui.element.paint_type"]=o),n.id&&(f["ui.element.id"]=n.id),n.element&&(f["ui.element.type"]=n.element.tagName.toLowerCase()),n.url&&(f["ui.element.url"]=n.url),n.naturalWidth&&(f["ui.element.width"]=n.naturalWidth),n.naturalHeight&&(f["ui.element.height"]=n.naturalHeight),s>0&&t.metrics.distribution("ui.element.render_time",s,{unit:"millisecond",attributes:f}),c>0&&t.metrics.distribution("ui.element.load_time",c,{unit:"millisecond",attributes:f})}})}}));function o(){return()=>{}}},2212,[1957,1956,2208]);
684__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"_emitWebVitalSpan",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"_sendClsSpan",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"_sendInpSpan",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"_sendLcpSpan",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"trackClsAsSpan",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"trackInpAsSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"trackLcpAsSpan",{enumerable:!0,get:function(){return T}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),l=r(d[5]),c=r(d[6]),u=r(d[7]);function p(t){const{name:n,op:s,origin:l,metricName:c,value:u,attributes:p,parentSpan:T,reportEvent:b,startTime:S,endTime:_}=t,f=(0,e.getCurrentScope)().getScopeData().transactionName,I={[e.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l,[e.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s,[e.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,[`browser.web_vital.${c}.value`]:u,"sentry.transaction":f,"user_agent.original":o.WINDOW.navigator?.userAgent,...p};T&&"pageload"===(0,e.spanToStreamedSpanJSON)(T).attributes?.[e.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&(I["sentry.pageload.span_id"]=T.spanContext().spanId),b&&(I[`browser.web_vital.${c}.report_event`]=b);const v=(0,e.startInactiveSpan)({name:n,attributes:I,startTime:S,parentSpan:T});v&&v.end(_??S)}function T(e){let t,n=0;if(!(0,u.supportsWebVital)("largest-contentful-paint"))return;const o=(0,l.addLcpInstrumentationHandler)(({metric:e})=>{const o=e.entries[e.entries.length-1];o&&(0,c.isValidLcpMetric)(e.value)&&(n=e.value,t=o)},!0);(0,u.listenForWebVitalReportEvents)(e,(e,s,l)=>{b(n,t,l,e),o()})}function b(o,s,l,T){if(!(0,c.isValidLcpMetric)(o))return;t.DEBUG_BUILD&&e.debug.log(`Sending LCP span (${o})`);const b=(0,e.browserPerformanceTimeOrigin)()||0,S=(0,u.msToSec)(b),_=(0,u.msToSec)(b+(s?.startTime||0)),f=s?(0,n.htmlTreeAsString)(s.element):"Largest contentful paint",I={};s?.element&&(I["browser.web_vital.lcp.element"]=(0,n.htmlTreeAsString)(s.element)),s?.id&&(I["browser.web_vital.lcp.id"]=s.id),s?.url&&(I["browser.web_vital.lcp.url"]=s.url),null!=s?.loadTime&&(I["browser.web_vital.lcp.load_time"]=s.loadTime),null!=s?.renderTime&&(I["browser.web_vital.lcp.render_time"]=s.renderTime),null!=s?.size&&(I["browser.web_vital.lcp.size"]=s.size),p({name:f,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:o,attributes:I,parentSpan:l,reportEvent:T,startTime:S,endTime:_})}function S(e){let t,n=0;if(!(0,u.supportsWebVital)("layout-shift"))return;const o=(0,l.addClsInstrumentationHandler)(({metric:e})=>{const o=e.entries[e.entries.length-1];o&&(n=e.value,t=o)},!0);(0,u.listenForWebVitalReportEvents)(e,(e,s,l)=>
684{_(n,t,l,e),o()})}function _(o,s,l,c){t.DEBUG_BUILD&&e.debug.log(`Sending CLS span (${o})`);const T=s?(0,u.msToSec)(((0,e.browserPerformanceTimeOrigin)()||0)+s.startTime):(0,e.timestampInSeconds)(),b=s?(0,n.htmlTreeAsString)(s.sources[0]?.node):"Layout shift",S={};s?.sources&&s.sources.forEach((e,t)=>{S[`browser.web_vital.cls.source.${t+1}`]=(0,n.htmlTreeAsString)(e.node)}),p({name:b,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:o,attributes:S,parentSpan:l,reportEvent:c,startTime:T})}function f(){if(!(0,u.getBrowserPerformanceAPI)()||!(0,e.browserPerformanceTimeOrigin)())return;(0,l.addInpInstrumentationHandler)(({metric:e})=>{if(null==e.value)return;if((0,u.msToSec)(e.value)>s.MAX_PLAUSIBLE_INP_DURATION)return;const t=e.entries.find(t=>t.duration===e.value&&s.INP_ENTRY_MAP[t.name]);t&&I(e.value,t)})}function I(o,l){t.DEBUG_BUILD&&e.debug.log(`Sending INP span (${o})`);const c=(0,u.msToSec)((0,e.browserPerformanceTimeOrigin)()+l.startTime),T=(0,u.msToSec)(o),b=s.INP_ENTRY_MAP[l.name],S=(0,s.getCachedInteractionContext)(l.interactionId),_=(0,e.getActiveSpan)(),f=_?(0,e.getRootSpan)(_):void 0,I=S?.span||f,v=I?(0,e.spanToStreamedSpanJSON)(I).name:(0,e.getCurrentScope)().getScopeData().transactionName;p({name:S?.elementName||(0,n.htmlTreeAsString)(l.target),op:`ui.interaction.${b}`,origin:"auto.http.browser.inp",metricName:"inp",value:o,attributes:{[e.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:l.duration,"sentry.transaction":v},startTime:c,endTime:c+T,parentSpan:I})}},2213,[1957,2182,2206,2184,2214,1956,2210,2208]);
685__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"INP_ENTRY_MAP",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"MAX_PLAUSIBLE_INP_DURATION",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"_onInp",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_trackINP",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"getCachedInteractionContext",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"registerInpInteractionListener",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"startTrackingINP",{enumerable:!0,get:function(){return T}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]);const u=[],l=new Map,p=new Map,f=60;function T(){if((0,s.getBrowserPerformanceAPI)()&&(0,t.browserPerformanceTimeOrigin)()){const t=v();return()=>{t()}}return()=>{}}const I={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function v(){return(0,c.addInpInstrumentationHandler)(E)}const E=({metric:o})=>{if(null==o.value)return;const c=(0,s.msToSec)(o.value);if(c>f)return;const u=o.entries.find(t=>t.duration===o.value&&I[t.name]);if(!u)return;const{interactionId:p}=u,T=I[u.name],v=(0,s.msToSec)((0,t.browserPerformanceTimeOrigin)()+u.startTime),E=(0,t.getActiveSpan)(),S=E?(0,t.getRootSpan)(E):void 0,_=null!=p?l.get(p):void 0,N=_?.span||S,h=N?(0,t.spanToJSON)(N).description:(0,t.getCurrentScope)().getScopeData().transactionName,A=_?.elementName||(0,n.htmlTreeAsString)(u.target),b={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${T}`,[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:u.duration},P=(0,s.startStandaloneWebVitalSpan)({name:A,transaction:h,attributes:b,startTime:v});P&&(P.addEvent("inp",{[t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:o.value}),P.end(v+c))};function S(t){return null!=t?l.get(t):void 0}function _(){const s=Object.keys(I);function f(t){const o=t.target;if(!o)return;const c=(0,n.htmlTreeAsString)(o),s=Math.round(t.timeStamp);if(p.set(s,c),p.size>50){const t=p.keys().next().value;void 0!==t&&p.delete(t)}}function T(t){const n=Math.round(t.startTime);let o=p.get(n);if(!o)for(let t=-5;t<=5;t++){const c=p.get(n+t);if(c){o=c;break}}return o||"<unknown>"}
685(0,t.isBrowser)()&&s.forEach(t=>{o.WINDOW.addEventListener(t,f,{capture:!0,passive:!0})});const v=({entries:o})=>{const s=(0,t.getActiveSpan)(),p=s&&(0,t.getRootSpan)(s);o.forEach(t=>{if(!(0,c.isPerformanceEventTiming)(t))return;const o=t.interactionId;if(null==o)return;if(l.has(o))return;const s=t.target?(0,n.htmlTreeAsString)(t.target):T(t);if(u.length>10){const t=u.shift();l.delete(t)}u.push(o),l.set(o,{span:p,elementName:s})})};(0,c.addPerformanceInstrumentationHandler)("event",v),(0,c.addPerformanceInstrumentationHandler)("first-input",v)}},2214,[1957,2206,2184,1956,2208]);
686__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addClickKeypressInstrumentationHandler",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"instrumentDOM",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]);const s=1e3;let u,o,c;function l(n){(0,t.addHandler)("dom",n),(0,t.maybeInstrument)("dom",y)}function y(){if(!n.WINDOW.document)return;const s=t.triggerHandlers.bind(null,"dom"),u=h(s,!0);n.WINDOW.document.addEventListener("click",u,!1),n.WINDOW.document.addEventListener("keypress",u,!1),["EventTarget","Node"].forEach(u=>{const o=n.WINDOW,c=o[u]?.prototype;c?.hasOwnProperty?.("addEventListener")&&((0,t.fill)(c,"addEventListener",function(t){return function(n,u,o){if("click"===n||"keypress"==n)try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},c=u[n]=u[n]||{refCount:0};if(!c.handler){const u=h(s);c.handler=u,t.call(this,n,u,o)}c.refCount++}catch{}return t.call(this,n,u,o)}}),(0,t.fill)(c,"removeEventListener",function(t){return function(n,s,u){if("click"===n||"keypress"==n)try{const s=this.__sentry_instrumentation_handlers__||{},o=s[n];o&&(o.refCount--,o.refCount<=0&&(t.call(this,n,o.handler,u),o.handler=void 0,delete s[n]),0===Object.keys(s).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,n,s,u)}}))})}function _(t){if(t.type!==o)return!1;try{if(!t.target||t.target._sentryId!==c)return!1}catch{}return!0}function f(t,n){return"keypress"===t&&(!n?.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}function h(l,y=!1){return h=>{if(!h||h._sentryCaptured)return;const v=p(h);if(f(h.type,v))return;(0,t.addNonEnumerableProperty)(h,"_sentryCaptured",!0),v&&!v._sentryId&&(0,t.addNonEnumerableProperty)(v,"_sentryId",(0,t.uuid4)());const b="keypress"===h.type?"input":h.type;if(!_(h)){l({event:h,name:b,global:y}),o=h.type,c=v?v._sentryId:void 0}clearTimeout(u),u=n.WINDOW.setTimeout(()=>{c=void 0,o=void 0},s)}}function p(t){try{return t.target}catch{return null}}},2215,[1957,2184]);
687__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addHistoryInstrumentationHandler",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"instrumentHistory",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);let o;function s(n){const o="history";(0,t.addHandler)(o,n),(0,t.maybeInstrument)(o,u)}function u(){function s(n){return function(...s){const u=s.length>2?s[2]:void 0;if(u){const f=o,l=c(String(u));if(o=l,f===l)return n.apply(this,s);const y={from:f,to:l};(0,t.triggerHandlers)("history",y)}return n.apply(this,s)}}n.WINDOW.addEventListener("popstate",()=>{const s=n.WINDOW.location.href,u=o;if(o=s,u===s)return;const c={from:u,to:s};(0,t.triggerHandlers)("history",c)}),(0,t.supportsHistory)()&&((0,t.fill)(n.WINDOW.history,"pushState",s),(0,t.fill)(n.WINDOW.history,"replaceState",s))}function c(t){try{return new URL(t,n.WINDOW.location.origin).toString()}catch{return t}}},2216,[1957,2184]);
688__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"clearCachedImplementation",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"fetch",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"getNativeImplementation",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"setTimeout",{enumerable:!0,get:function(){return l}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);const o={};function c(c){const u=o[c];if(u)return u;let f=n.WINDOW[c];if((0,e.isNativeFunction)(f))return o[c]=f.bind(n.WINDOW);const l=n.WINDOW.document;if(l&&"function"==typeof l.createElement)try{const e=l.createElement("iframe");e.hidden=!0,l.head.appendChild(e);const t=e.contentWindow;t?.[c]&&(f=t[c]),l.head.removeChild(e)}catch(n){t.DEBUG_BUILD&&e.debug.warn(`Could not create sandbox iframe for ${c} check, bailing to window.${c}: `,n)}return f?o[c]=f.bind(n.WINDOW):f}function u(e){o[e]=void 0}function f(...e){return c("fetch")(...e)}function l(...e){return c("setTimeout")(...e)}
688},2217,[1957,2182,2184]);
689__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_XHR_DATA_KEY",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"addXhrInstrumentationHandler",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"instrumentXHR",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]);const s="__sentry_xhr_v3__";function o(n){(0,t.addHandler)("xhr",n),(0,t.maybeInstrument)("xhr",p)}function p(){if(!n.WINDOW.XMLHttpRequest)return;const o=XMLHttpRequest.prototype;o.open=new Proxy(o.open,{apply(n,o,p){const c=new Error,y=1e3*(0,t.timestampInSeconds)(),_=(0,t.isString)(p[0])?p[0].toUpperCase():void 0,l=u(p[1]);if(!_||!l)return n.apply(o,p);o[s]={method:_,url:l,request_headers:{}},"POST"===_&&l.match(/sentry_key/)&&(o.__sentry_own_request__=!0);const h=()=>{const n=o[s];if(n&&4===o.readyState){try{n.status_code=o.status}catch{}const s={endTimestamp:1e3*(0,t.timestampInSeconds)(),startTimestamp:y,xhr:o,virtualError:c};(0,t.triggerHandlers)("xhr",s)}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?o.onreadystatechange=new Proxy(o.onreadystatechange,{apply:(t,n,s)=>(h(),t.apply(n,s))}):o.addEventListener("readystatechange",h),o.setRequestHeader=new Proxy(o.setRequestHeader,{apply(n,o,p){const[u,c]=p,y=o[s];return y&&(0,t.isString)(u)&&(0,t.isString)(c)&&(y.request_headers[u.toLowerCase()]=c),n.apply(o,p)}}),n.apply(o,p)}}),o.send=new Proxy(o.send,{apply(n,o,p){const u=o[s];if(!u)return n.apply(o,p);void 0!==p[0]&&(u.body=p[0]);const c={startTimestamp:1e3*(0,t.timestampInSeconds)(),xhr:o};return(0,t.triggerHandlers)("xhr",c),n.apply(o,p)}})}function u(n){if((0,t.isString)(n))return n;try{return n.toString()}catch{}}},2218,[1957,2184]);
690__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ORIGINAL_REQ_BODY",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getBodyString",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getFetchRequestArgBody",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"parseXhrResponseHeaders",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"serializeFormData",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);const o=Symbol.for("sentry__originalRequestBody");function u(t){return new URLSearchParams(t).toString()}function c(o,c=t.debug){try{if("string"==typeof o)return[o];if(o instanceof URLSearchParams)return[o.toString()];if(o instanceof FormData)return[u(o)];if(!o)return[void 0]}catch(t){return n.DEBUG_BUILD&&c.error(t,"Failed to serialize body",o),[void 0,"BODY_PARSE_ERROR"]}return n.DEBUG_BUILD&&c.log("Skipping network body because of body type",o),[void 0,"UNPARSEABLE_BODY_TYPE"]}function s(t=[]){if(t.length>=2&&t[1]&&"object"==typeof t[1]&&"body"in t[1])return t[1].body;if(t.length>=1&&t[0]instanceof Request){const n=t[0][o];return void 0!==n?n:void 0}}function f(o){let u;try{u=o.getAllResponseHeaders()}catch(u){return n.DEBUG_BUILD&&t.debug.error(u,"Failed to get xhr response headers",o),{}}return u?u.split("\r\n").reduce((t,n)=>{const[o,u]=n.split(": ");return u&&(t[o.toLowerCase()]=u),t},{}):{}}},2219,[1957,2182]);
691__d(function(g,r,i,a,m,e,d){"use strict";function t(t){if("undefined"==typeof Element)return!1;try{return t instanceof Element}catch{return!1}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return t}})},2220,[]);
692__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"uiProfiler",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o={startProfiler:function(){const o=(0,t.getClient)();if(!o)return void(n.DEBUG_BUILD&&t.debug.warn("No Sentry client available, profiling is not started"));o.getIntegrationByName("BrowserProfiling")?o.emit("startUIProfiler"):n.DEBUG_BUILD&&t.debug.warn("BrowserProfiling integration is not available")},stopProfiler:function(){const o=(0,t.getClient)();if(!o)return void(n.DEBUG_BUILD&&t.debug.warn("No Sentry client available, profiling is not started"));
692o.getIntegrationByName("BrowserProfiling")?o.emit("stopUIProfiler"):n.DEBUG_BUILD&&t.debug.warn("ProfilingIntegration is not available")}}},2221,[1766,2222]);
693__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEBUG_BUILD",{enumerable:!0,get:function(){return _}});const _='undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},2222,[]);
694__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"chromeStackLineParser",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"defaultStackLineParsers",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"defaultStackParser",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"geckoStackLineParser",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"opera10StackLineParser",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"opera11StackLineParser",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"winjsStackLineParser",{enumerable:!0,get:function(){return v}});var n=r(d[0]);function t(t,o,c,s){const u={filename:t,function:"<anonymous>"===o?n.UNKNOWN_FUNCTION:o,in_app:!0};return void 0!==c&&(u.lineno=c),void 0!==s&&(u.colno=s),u}const o=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,c=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=/at (.+?) ?\(data:(.+?),/,f=[30,f=>{const N=f.match(u);if(N)return{filename:`<data:${N[2]}>`,function:N[1]};const l=o.exec(f);if(l){const[,o,c,s]=l;return t(o,n.UNKNOWN_FUNCTION,+c,+s)}const O=c.exec(f);if(O){if(0===O[2]?.indexOf("eval")){const n=s.exec(O[2]);n&&(O[2]=n[1],O[3]=n[2],O[4]=n[3])}const[o,c]=j(O[1]||n.UNKNOWN_FUNCTION,O[2]);return t(c,o,O[3]?+O[3]:void 0,O[4]?+O[4]:void 0)}}],N=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,O=[50,o=>{const c=N.exec(o);if(c){if(c[3]&&c[3].indexOf(" > eval")>-1){const n=l.exec(c[3]);n&&(c[1]=c[1]||"eval",c[3]=n[1],c[4]=n[2],c[5]="")}let o=c[3],s=c[1]||n.UNKNOWN_FUNCTION;return[s,o]=j(s,o),t(o,s,c[4]?+c[4]:void 0,c[5]?+c[5]:void 0)}}],b=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,v=[40,o=>{const c=b.exec(o);return c?t(c[2],c[1]||n.UNKNOWN_FUNCTION,+c[3],c[4]?+c[4]:void 0):void 0}],x=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,P=[10,o=>{const c=x.exec(o);return c?t(c[2],c[3]||n.UNKNOWN_FUNCTION,+c[1]):void 0}],U=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,p=[20,o=>{const c=U.exec(o);return c?t(c[5],c[3]||c[4]||n.UNKNOWN_FUNCTION,+c[1],+c[2]):void 0}],S=[f,O],_=(0,n.createStackParser)(...S),j=(t,o)=>{const c=-1!==t.indexOf("safari-extension"),s=-1!==t.indexOf("safari-web-extension");return c||s?[-1!==t.indexOf("@")?t.split("@")[0]:n.UNKNOWN_FUNCTION,c?`safari-extension:${o}`:`safari-web-extension:${o}`]:[t,o]}},2223,[1766]);
695__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createUserFeedbackEnvelope",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(t,{metadata:o,tunnel:u,dsn:c}){const v={event_id:t.event_id,sent_at:(new Date).toISOString(),...o?.sdk&&{sdk:{name:o.sdk.name,version:o.sdk.version}},...!!u&&!!c&&{dsn:(0,n.dsnToString)(c)}},_=s(t);return(0,n.createEnvelope)(v,[_])}function s(n){return[{type:"user_report"},n]}},2224,[1766]);
696__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"forceLoad",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getDefaultIntegrations",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"init",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"onLoad",{enumerable:!0,get:function(){return j}});
696var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]),l=r(d[6]),f=r(d[7]),I=r(d[8]),b=r(d[9]),p=r(d[10]),k=r(d[11]),P=r(d[12]);function S(n){return[(0,t.inboundFiltersIntegration)(),(0,t.functionToStringIntegration)(),(0,t.conversationIdIntegration)(),(0,s.browserApiErrorsIntegration)(),(0,o.breadcrumbsIntegration)(),(0,l.globalHandlersIntegration)(),(0,I.linkedErrorsIntegration)(),(0,t.dedupeIntegration)(),(0,f.httpContextIntegration)(),(0,c.cultureContextIntegration)(),(0,u.browserSessionIntegration)()]}function y(o={}){const s=!o.skipBrowserExtensionCheck&&(0,P.checkAndWarnIfIsEmbeddedBrowserExtension)();let u=null==o.defaultIntegrations?S():o.defaultIntegrations;const c={...o,enabled:!s&&o.enabled,stackParser:(0,t.stackParserFromStackParserOptions)(o.stackParser||b.defaultStackParser),integrations:(0,t.getIntegrationsToSetup)({integrations:o.integrations,defaultIntegrations:u}),transport:o.transport||p.makeFetchTransport};return(0,t.setNormalizeStringifier)(k.normalizeStringifyValue),(0,t.initAndBind)(n.BrowserClient,c)}function O(){}function j(t){t()}},2225,[1766,1952,2226,2227,2228,2229,2230,2231,2232,2223,1954,2233,2234]);
697__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"breadcrumbsIntegration",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);const c=1024,u=(0,t.defineIntegration)((o={})=>{const s={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...o};return{name:"Breadcrumbs",setup(o){s.console&&(0,t.addConsoleInstrumentationHandler)(p(o)),s.dom&&(0,n.addClickKeypressInstrumentationHandler)(f(o,s.dom)),s.xhr&&(0,n.addXhrInstrumentationHandler)(h(o)),s.fetch&&(0,t.addFetchInstrumentationHandler)(v(o)),s.history&&(0,n.addHistoryInstrumentationHandler)(b(o)),s.sentry&&o.on("beforeSendEvent",l(o))}}});function l(n){return function(o){(0,t.getClient)()===n&&(0,t.addBreadcrumb)({category:"sentry."+("transaction"===o.type?"transaction":"event"),event_id:o.event_id,level:o.level,message:(0,t.getEventDescription)(o)},{event:o})}}function f(s,u){return function(l){if((0,t.getClient)()!==s)return;let f,p,h="object"==typeof u?u.serializeAttribute:void 0,v="object"==typeof u&&"number"==typeof u.maxStringLength?u.maxStringLength:void 0;v&&v>c&&(o.DEBUG_BUILD&&t.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${v} was configured. Sentry will use 1024 instead.`),v=c),"string"==typeof h&&(h=[h]);try{const o=l.event,s=y(o)?o.target:o;f=(0,n.htmlTreeAsString)(s,{keyAttrs:h,maxStringLength:v}),p=(0,t.getComponentName)(s)}catch{f="<unknown>"}if(0===f.length)return;const b={category:`ui.${l.name}`,message:f};p&&(b.data={"ui.component_name":p}),(0,t.addBreadcrumb)(b,{event:l.event,name:l.name,global:l.global})}}function p(n){return function(o){if((0,t.getClient)()!==n)return;const s={category:"console",data:{arguments:o.args,logger:"console"},level:(0,t.severityLevelFromString)(o.level),message:(0,t.safeJoin)(o.args," ")};if("assert"===o.level){if(!1!==o.args[0])return;s.message=`Assertion failed: ${(0,t.safeJoin)(o.args.slice(1)," ")||"console.assert"}`,s.data.arguments=o.args.slice(1)}(0,t.addBreadcrumb)(s,{input:o.args,level:o.level})}}function h(o){return function(s){if((0,t.getClient)()!==o)return;const{startTimestamp:c,endTimestamp:u}=s,l=s.xhr[n.SENTRY_XHR_DATA_KEY];if(!c||!u||!l)return;const{method:f,url:p,status_code:h,body:v}=l,b={method:f,url:p,status_code:h},y={xhr:s.xhr,input:v,startTimestamp:c,endTimestamp:u},_={category:"xhr",data:b,type:"http",level:(0,t.getBreadcrumbLogLevelFromHttpStatusCode)(h)};o.emit("beforeOutgoingRequestBreadcrumb",_,y),(0,t.addBreadcrumb)(_,y)}}function v(n){return function(o){if((0,t.getClient)()!==n)return;const{startTimestamp:s,endTimestamp:c}=o;if(c&&(!o.fetchData.url.match(/sentry_key/)||"POST"!==o.fetchData.method))if(o.error){const u={data:o.error,input:o.args,startTimestamp:s,endTimestamp:c},l={category:"fetch",data:o.fetchData,level:"error",type:"http"};n.emit("beforeOutgoingRequestBreadcrumb",l,u),(0,t.addBreadcrumb)(l,u)}else{const u=o.response,l={...o.fetchData,status_code:u?.status},f={input:o.args,response:u,startTimestamp:s,endTimestamp:c},p={category:"fetch",data:l,type:"http",level:(0,t.getBreadcrumbLogLevelFromHttpStatusCode)(l.status_code)};n.emit("beforeOutgoingRequestBreadcrumb",p,f),(0,t.addBreadcrumb)(p,f)}}}
697function b(n){return function(o){if((0,t.getClient)()!==n)return;let c=o.from,u=o.to;const l=(0,t.parseUrl)(s.WINDOW.location.href);let f=c?(0,t.parseUrl)(c):void 0;const p=(0,t.parseUrl)(u);f?.path||(f=l),l.protocol===p.protocol&&l.host===p.host&&(u=p.relative),l.protocol===f.protocol&&l.host===f.host&&(c=f.relative),(0,t.addBreadcrumb)({category:"navigation",data:{from:c,to:u}})}}function y(t){return!!t&&!!t.target}},2226,[1766,1955,2222,1950]);
698__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"browserApiErrorsIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);const o="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),s=(0,t.defineIntegration)((s={})=>{const h={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...s};return{name:"BrowserApiErrors",setupOnce(){h.setTimeout&&(0,t.fill)(n.WINDOW,"setTimeout",c),h.setInterval&&(0,t.fill)(n.WINDOW,"setInterval",c),h.requestAnimationFrame&&(0,t.fill)(n.WINDOW,"requestAnimationFrame",u),h.XMLHttpRequest&&"XMLHttpRequest"in n.WINDOW&&(0,t.fill)(XMLHttpRequest.prototype,"send",l);const s=h.eventTarget;if(s){(Array.isArray(s)?s:o).forEach(t=>p(t,h))}}}});function c(o){return function(...s){const c=s[0];return s[0]=(0,n.wrap)(c,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,t.getFunctionName)(o)}`}}),o.apply(this,s)}}function u(o){return function(s){return o.apply(this,[(0,n.wrap)(s,{mechanism:{data:{handler:(0,t.getFunctionName)(o)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function l(o){return function(...s){const c=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in c&&"function"==typeof c[o]&&(0,t.fill)(c,o,function(s){const c={mechanism:{data:{handler:(0,t.getFunctionName)(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},u=(0,t.getOriginalFunction)(s);return u&&(c.mechanism.data.handler=(0,t.getFunctionName)(u)),(0,n.wrap)(s,c)})}),o.apply(this,s)}}function p(o,s){const c=n.WINDOW,u=c[o]?.prototype;u?.hasOwnProperty?.("addEventListener")&&((0,t.fill)(u,"addEventListener",function(c){return function(u,l,p){try{"function"==typeof l.handleEvent&&(l.handleEvent=(0,n.wrap)(l.handleEvent,{mechanism:{data:{handler:(0,t.getFunctionName)(l),target:o},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return s.unregisterOriginalCallbacks&&h(this,u,l),c.apply(this,[u,(0,n.wrap)(l,{mechanism:{data:{handler:(0,t.getFunctionName)(l),target:o},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),p])}}),(0,t.fill)(u,"removeEventListener",function(t){return function(n,o,s){try{if(Object.prototype.hasOwnProperty.call(o,"__sentry_wrapped__")){const c=o.__sentry_wrapped__;c&&t.call(this,n,c,s)}}catch{}return t.call(this,n,o,s)}}))}function h(t,n,o){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(n,o)}},2227,[1766,1950]);
699__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"browserSessionIntegration",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]);const u=(0,n.defineIntegration)((u={})=>{const c=u.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===s.WINDOW.document)return void(o.DEBUG_BUILD&&n.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));(0,n.startSession)({ignoreDuration:!0});let u=!1;(0,t.whenIdleOrHidden)(()=>{u||((0,n.captureSession)(),u=!0)});const p=(0,n.getIsolationScope)();let l=p.getUser();p.addScopeListener(t=>{const o=t.getUser();
699l?.id===o?.id&&l?.ip_address===o?.ip_address||(l=o,u&&(0,n.captureSession)())}),"route"===c&&(0,t.addHistoryInstrumentationHandler)(({from:t,to:o})=>{t!==o&&((0,n.startSession)({ignoreDuration:!0}),(0,n.captureSession)(),u=!0)})}}})},2228,[1766,1955,2222,1950]);
700__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cultureContextIntegration",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);const c=(0,t.defineIntegration)(()=>({name:"CultureContext",preprocessEvent(t){const n=o();n&&(t.contexts={...t.contexts,culture:{...n,...t.contexts?.culture}})},processSegmentSpan(n){const c=o();c&&(0,t.safeSetSpanJSONAttributes)(n,{"culture.locale":c.locale,"culture.timezone":c.timezone,"culture.calendar":c.calendar})}}));function o(){try{const t=n.WINDOW.Intl;if(!t)return;const c=t.DateTimeFormat().resolvedOptions();return{locale:c.locale,timezone:c.timeZone,calendar:c.calendar}}catch{return}}},2229,[1766,1950]);
701__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"_eventFromRejectionWithPrimitive",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"_getUnhandledRejectionError",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"globalHandlersIntegration",{enumerable:!0,get:function(){return c}});var e=r(d[0]),n=r(d[1]),t=r(d[2]),o=r(d[3]);const c=(0,e.defineIntegration)((e={})=>{const n={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){n.onerror&&(l(e),p("onerror")),n.onunhandledrejection&&(u(e),p("onunhandledrejection"))}}});function l(n){(0,e.addGlobalErrorInstrumentationHandler)(c=>{const{stackParser:l,attachStacktrace:u}=v();if((0,e.getClient)()!==n||(0,o.shouldIgnoreOnError)())return;const{msg:s,url:f,line:p,column:b,error:j}=c,k=h((0,t.eventFromUnknownInput)(l,j||s,void 0,u,!1),f,p,b);k.level="error",(0,e.captureEvent)(k,{originalException:j,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function u(n){(0,e.addGlobalUnhandledRejectionInstrumentationHandler)(c=>{const{stackParser:l,attachStacktrace:u}=v();if((0,e.getClient)()!==n||(0,o.shouldIgnoreOnError)())return;const h=s(c),p=(0,e.isPrimitive)(h)?f(h):(0,t.eventFromUnknownInput)(l,h,void 0,u,!0);p.level="error",(0,e.captureEvent)(p,{originalException:h,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function s(n){if((0,e.isPrimitive)(n))return n;try{if("reason"in n)return n.reason;if("detail"in n&&"reason"in n.detail)return n.detail.reason}catch{}return n}function f(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function h(n,t,o,c){const l=n.exception=n.exception||{},u=l.values=l.values||[],s=u[0]=u[0]||{},f=s.stacktrace=s.stacktrace||{},h=f.frames=f.frames||[];return 0===h.length&&h.push({colno:c,lineno:o,filename:b(t)??(0,e.getLocationHref)(),function:e.UNKNOWN_FUNCTION,in_app:!0}),n}function p(t){n.DEBUG_BUILD&&e.debug.log(`Global Handler attached: ${t}`)}function v(){const n=(0,e.getClient)();return n?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function b(n){if((0,e.isString)(n)&&0!==n.length)return n.startsWith("data:")?`<${(0,e.stripDataUrlContent)(n,!1)}>`:n}},2230,[1766,2222,1953,1950]);
702__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"httpContextIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);const s=(0,t.defineIntegration)(()=>({name:"HttpContext",preprocessEvent(t){if(!n.WINDOW.navigator&&!n.WINDOW.location&&!n.WINDOW.document)return;const s=(0,n.getHttpRequestData)(),o={...s.headers,...t.request?.headers};t.request={...s,...t.request,headers:o}},processSegmentSpan(s){const o=s.attributes?.[t.SEMANTIC_ATTRIBUTE_SENTRY_OP];if(!n.WINDOW.navigator&&!n.WINDOW.location&&!n.WINDOW.document)return;const u=(0,n.getHttpRequestData)();(0,t.safeSetSpanJSONAttributes)(s,{"url.full":"http.client"!==o?u.url:void 0,"http.request.header.user_agent":u.headers["User-Agent"],"http.request.header.referer":u.headers.Referer})}}))},2231,[1766,1950]);
703__d(function(g,r,i,a,m,e,d){"use strict";
703Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o=(0,t.defineIntegration)((o={})=>{const s=o.limit||5,c=o.key||"cause";return{name:"LinkedErrors",preprocessEvent(o,u,p){const l=p.getOptions();(0,t.applyAggregateErrorsToEvent)(n.exceptionFromError,l.stackParser,c,s,o,u)}}})},2232,[1766,1953]);
704__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalizeStringifyValue",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const n=/^HTML(\w*)Element$/;function o(o){if("undefined"!=typeof window&&o===window)return"[Window]";if("undefined"!=typeof document&&o===document)return"[Document]";if((0,t.isElement)(o)){const c=u(o);if(n.test(c))return`[HTMLElement: ${(0,t.htmlTreeAsString)(o)}]`}}function u(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}},2233,[1955]);
705__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"checkAndWarnIfIsEmbeddedBrowserExtension",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(){return!!c()&&(t.DEBUG_BUILD&&(0,n.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)}function c(){if(void 0===o.WINDOW.window)return!1;const t=o.WINDOW;if(t.nw)return!1;const s=t.chrome||t.browser;if(!s?.runtime?.id)return!1;const c=(0,n.getLocationHref)();return!(o.WINDOW===o.WINDOW.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(c))}},2234,[1766,2222,1950]);
706__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"showReportDialog",{enumerable:!0,get:function(){return s}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);function s(s={}){const c=n.WINDOW.document,u=c?.head||c?.body;if(!u)return void(o.DEBUG_BUILD&&t.debug.error("[showReportDialog] Global document not defined"));const l=(0,t.getCurrentScope)(),D=(0,t.getClient)(),f=D?.getDsn();if(!f)return void(o.DEBUG_BUILD&&t.debug.error("[showReportDialog] DSN not configured"));const p={...s,user:{...l.getUser(),...s.user},eventId:s.eventId||(0,t.lastEventId)()},_=n.WINDOW.document.createElement("script");_.async=!0,_.crossOrigin="anonymous",_.src=(0,t.getReportDialogEndpoint)(f,p);const{onLoad:v,onClose:I}=p;if(v&&(_.onload=v),I){const t=o=>{if("__sentry_reportdialog_closed__"===o.data)try{I()}finally{n.WINDOW.removeEventListener("message",t)}};n.WINDOW.addEventListener("message",t)}u.appendChild(_)}},2235,[1766,2222,1950]);
707__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reportingObserverIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=t.GLOBAL_OBJ,o=new WeakMap,s=(0,t.defineIntegration)((s={})=>{const c=s.types||["crash","deprecation","intervention"];function p(n){if(o.has((0,t.getClient)()))for(const o of n)(0,t.withScope)(n=>{n.setExtra("url",o.url);const s=`ReportingObserver [${o.type}]`;let c="No details available";if(o.body){const t={};for(const n in o.body)t[n]=o.body[n];if(n.setExtra("body",t),"crash"===o.type){const t=o.body;c=[t.crashId||"",t.reason||""].join(" ").trim()||c}else{c=o.body.message||c}}(0,t.captureMessage)(`${s}: ${c}`)})}return{name:"ReportingObserver",setupOnce(){if(!(0,t.supportsReportingObserver)())return;new n.ReportingObserver(p,{buffered:!0,types:c}).observe()},setup(t){o.set(t,!0)}}})},2236,[1766]);
708__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"httpClientIntegration",{enumerable:!0,get:function(){return o}});var e=r(d[0]),t=r(d[1]),s=r(d[2]);const o=(0,e.defineIntegration)((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){h(e,t),H(e,t)}}});
708function n(t,s,o,n,u){if(k(t,o.status,o.url)){const t=q(s,n);let c,f,p,h;const H=C();if(!1!==H.requestHeaders&&(c=(0,e._INTERNAL_filterKeyValueData)(l(t.headers),H.requestHeaders)),!1!==H.responseHeaders&&(f=(0,e._INTERNAL_filterKeyValueData)(l(o.headers),H.responseHeaders)),!1!==H.cookies){const s=t.headers.get("Cookie")||void 0;if(s){const t=(0,e._INTERNAL_filterCookies)(s,H.cookies);"object"==typeof t&&(p=t)}const n=o.headers.get("Set-Cookie")||void 0;if(n){const t=(0,e._INTERNAL_filterCookies)(n,H.cookies);"object"==typeof t&&(h=t)}}const k=_({url:t.url,method:t.method,status:o.status,requestHeaders:c,responseHeaders:f,requestCookies:p,responseCookies:h,error:u,type:"fetch"});(0,e.captureEvent)(k)}}function u(t,s,o,n,u){if(k(t,s.status,s.responseURL)){let t,c,l;const p=C();if(!1!==p.cookies)try{const t=s.getResponseHeader("Set-Cookie")||s.getResponseHeader("set-cookie")||void 0;if(t){const s=(0,e._INTERNAL_filterCookies)(t,p.cookies);"object"==typeof s&&(c=s)}}catch{}if(!1!==p.responseHeaders)try{l=(0,e._INTERNAL_filterKeyValueData)(f(s),p.responseHeaders)}catch{}!1!==p.requestHeaders&&(t=(0,e._INTERNAL_filterKeyValueData)(n,p.requestHeaders));const h=_({url:s.responseURL,method:o,status:s.status,requestHeaders:t,responseHeaders:l,responseCookies:c,error:u,type:"xhr"});(0,e.captureEvent)(h)}}function c(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function l(e){const t={};return e.forEach((e,s)=>{t[s]=e}),t}function f(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{const[s,o]=t.split(": ");return s&&o&&(e[s]=o),e},{}):{}}function p(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}function h(t,s){(0,e.supportsNativeFetch)()&&(0,e.addFetchInstrumentationHandler)(o=>{if((0,e.getClient)()!==t)return;const{response:u,args:c,error:l,virtualError:f}=o,[p,h]=c;u&&n(s,p,u,h,l||f)},!1)}function H(o,n){"XMLHttpRequest"in e.GLOBAL_OBJ&&(0,t.addXhrInstrumentationHandler)(c=>{if((0,e.getClient)()!==o)return;const{error:l,virtualError:f}=c,p=c.xhr,h=p[t.SENTRY_XHR_DATA_KEY];if(!h)return;const{method:H,request_headers:k}=h;try{u(n,p,H,k,l||f)}catch(t){s.DEBUG_BUILD&&e.debug.warn("Error while extracting response event form XHR response",t)}})}function k(t,s,o){return p(t.failedRequestStatusCodes,s)&&(n=t.failedRequestTargets,u=o,n.some(e=>"string"==typeof e?u.includes(e):e.test(u)))&&!(0,e.isSentryRequestUrl)(o,(0,e.getClient)());var n,u}function _(t){const s=(0,e.getClient)(),o=s&&t.error&&t.error instanceof Error?t.error.stack:void 0,n=o&&s?s.getOptions().stackParser(o,0,1):void 0,u=`HTTP Client Error with status code: ${t.status}`,l={message:u,exception:{values:[{type:"Error",value:u,stacktrace:n?{frames:n}:void 0}]},request:{url:t.url,method:t.method,headers:t.requestHeaders,cookies:t.requestCookies},contexts:{response:{status_code:t.status,headers:t.responseHeaders,cookies:t.responseCookies,body_size:c(t.responseHeaders)}}};return(0,e.addExceptionMechanism)(l,{type:`auto.http.client.${t.type}`,handled:!1}),l}function q(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function C(){const t=(0,e.getClient)();if(!t)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};const s=t.getOptions();if(null==s.dataCollection){const e=Boolean(s.sendDefaultPii);return{cookies:e,requestHeaders:e,responseHeaders:e}}const{cookies:o,httpHeaders:n}=t.getDataCollectionOptions();return{cookies:o,requestHeaders:n.request,responseHeaders:n.response}}},2237,[1766,1955,2222]);
709__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applySourceContextToFrame",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"contextLinesIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const n=t.GLOBAL_OBJ,o=(0,t.defineIntegration)((t={})=>({name:"ContextLines",processEvent:(n,o,s)=>c(n,t.frameContextLines??s?.getDataCollectionOptions().frameContextLines??7)}));function c(o,c){const u=n.document,f=n.location&&(0,t.stripUrlQueryAndFragment)(n.location.href);if(!u||!f)return o;const l=o.exception?.values;if(!l?.length)return o;const p=u.documentElement.innerHTML;if(!p)return o;const h=["<!DOCTYPE html>","<html>",...p.split("\n"),"</html>"];return l.forEach(t=>{const n=t.stacktrace;n?.frames&&(n.frames=n.frames.map(t=>s(t,h,f,c)))}),o}function s(n,o,c,s){return n.filename===c&&n.lineno&&o.length?((0,t.addContextToFrame)(o,n,s),n):n}},2238,[1766]);
710__d(function(g,r,i,a,m,e,d){"use strict";
710Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getGraphQLOperation",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getGraphQLRequestPayload",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getRequestPayloadXhrOrFetch",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"graphqlClientIntegration",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"parseGraphQLQuery",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function o(n,o){n.on("beforeOutgoingRequestSpan",(n,s)=>{const c=(0,t.spanToJSON)(n).data||{};if(!("http.client"===c[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]))return;const h=c[t.SEMANTIC_ATTRIBUTE_URL_FULL]||c["http.url"]||c.url,q=c[t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||c["http.method"];if(!(0,t.isString)(h)||!(0,t.isString)(q))return;const{endpoints:T}=o,b=(0,t.stringMatchesSomePattern)(h,T),_=p(s);if(b&&_){const t=l(_);if(t){const o=u(t);n.updateName(`${q} ${h} (${o})`),y(t)&&n.setAttribute("graphql.document",t.query),f(t)&&(n.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),n.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}})}function s(n,o){n.on("beforeOutgoingRequestBreadcrumb",(n,s)=>{const{category:c,type:h,data:q}=n;if("http"===h&&("fetch"===c||"xhr"===c)){const n=q?.url,{endpoints:c}=o,h=(0,t.stringMatchesSomePattern)(n,c),T=p(s);if(h&&q&&T){const t=l(T);if(!q.graphql&&t){const n=u(t);q["graphql.operation"]=n,y(t)&&(q["graphql.document"]=t.query),f(t)&&(q["graphql.persisted_query.hash.sha256"]=t.extensions.persistedQuery.sha256Hash,q["graphql.persisted_query.version"]=t.extensions.persistedQuery.version)}}}})}function u(t){if(f(t))return`persisted ${t.operationName}`;if(y(t)){const{query:n,operationName:o}=t,{operationName:s=o,operationType:u}=c(n);return s?`${u} ${s}`:`${u}`}return"unknown"}function p(t){let o;if("xhr"in t){const s=t.xhr[n.SENTRY_XHR_DATA_KEY];o=s&&(0,n.getBodyString)(s.body)[0]}else{const s=(0,n.getFetchRequestArgBody)(t.input);o=(0,n.getBodyString)(s)[0]}return o}function c(t){const n=t.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(n)return{operationType:n[1],operationName:n[2]};const o=t.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return o?{operationType:o[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function h(t){return"object"==typeof t&&null!==t}function y(t){return h(t)&&"string"==typeof t.query}function f(t){return h(t)&&"string"==typeof t.operationName&&h(t.extensions)&&h(t.extensions.persistedQuery)&&"string"==typeof t.extensions.persistedQuery.sha256Hash&&"number"==typeof t.extensions.persistedQuery.version}function l(t){try{const n=JSON.parse(t);return y(n)||f(n)?n:void 0}catch{return}}const q=(0,t.defineIntegration)(t=>({name:"GraphQLClient",setup(n){o(n,t),s(n,t)}}))},2239,[1766,1955]);
711__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"viewHierarchyIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o=(0,t.defineIntegration)((o={})=>{const c=["script"];function s(n,h,u=0){if(!n)return;const l="shadowRoot"in n&&n.shadowRoot?n.shadowRoot.children:n.children;for(const n of l){if(!(n instanceof HTMLElement))continue;const l=(0,t.getComponentName)(n,1)||void 0,f=n.tagName.toLowerCase();if(c.includes(f))continue;const p=o.onElement?.({element:n,componentName:l,tagName:f,depth:u})||{};if("skip"===p)continue;if("children"===p){s(n,h,u+1);continue}const{x:y,y:w,width:v,height:b}=n.getBoundingClientRect(),N={identifier:n.id||void 0,type:l||f,visible:!0,alpha:1,height:b,width:v,x:y,y:w,...p},_=[];N.children=_,s(n,N.children,u+1),h.push(N)}}return{name:"ViewHierarchy",processEvent:(t,c)=>{if(void 0!==t.type||!1===o.shouldAttach?.(t,c))return t;const h={rendering_system:"DOM",positioning:"absolute",windows:[]};s(o.rootElement?.()||n.WINDOW.document.body,h.windows);const u={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(h)};return c.attachments=c.attachments||[],c.attachments.push(u),t}}})},2240,[1766,1950]);
712__d(function(e,t,n,r,s,o,i){"use strict";Object.defineProperty(o,'__esModule',{value:!0}),Object.defineProperty(o,"getReplay",{enumerable:!0,get:function(){return ko}}),Object.defineProperty(o,"replayIntegration",{enumerable:!0,get:function(){return fo}});var a=t(i[0]),c=t(i[1]);const l=a.GLOBAL_OBJ,u="sentryReplaySession",d="Unable to send Replay",h=15e4,p=5e3,m=2e7,f=36e5;var y=Object.defineProperty,g=(e,t,n)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t,n)=>g(e,"symbol"!=typeof t?t+"":t,n),k=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(k||{});
712function b(e){return e.nodeType===e.ELEMENT_NODE}function v(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function w(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function _(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function I(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,E).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function C(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function E(e){let t;if(x(e))try{t=I(e.styleSheet)||_(e)}catch(e){}else if(M(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=C(e)),n&&(t=T(t)),n||r)return t}return t||e.cssText}function T(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function x(e){return"styleSheet"in e}function M(e){return"selectorText"in e}class R{constructor(){S(this,"idNodeMap",new Map),S(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function A({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function O({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function D(e){return e.toLowerCase()}function L(e){return e.toUpperCase()}const N="__rrweb_original__";function F(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const s=t.getImageData,o=N in s?s[N]:s;
712if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}function B(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?D(t):null}function P(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function U(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const z={};function W(e){const t=z[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return z[e]=r.bind(window)}function H(...e){return W("setTimeout")(...e)}function j(...e){return W("clearTimeout")(...e)}function $(e){try{return e.contentDocument}catch{}}function q(e){try{return e.contentWindow}catch{}}let K=1;const V=new RegExp("[^a-z0-9-_:]");function J(){return K++}function G(e){if(e instanceof HTMLFormElement)return"form";const t=D(e.tagName);return V.test(t)?"div":t}function Y(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let X,Q;const Z=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ee=/^(?:[a-z+]+:)?\/\//i,te=/^www\..*/i,ne=/^(data:)([^,]*),(.*)/i;function re(e,t){if(!e||0===t.size)return e;try{const n=e.split(";"),r=[];for(let e of n){if(e=e.trim(),!e)continue;const n=e.indexOf(":");if(-1===n){r.push(e);continue}const s=e.slice(0,n).trim();t.has(s)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}function se(e,t){return(e||"").replace(Z,(e,n,r,s,o,i)=>{const a=r||o||i,c=n||s||"";if(!a)return e;if(ee.test(a)||te.test(a))return`url(${c}${a}${c})`;if(ne.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${Y(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`})}const oe=/^[^ \t\n\r\u000c]+/,ie=/^[, \t\n\r\u000c]+/;function ae(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(ie),!(n>=t.length);){let o=r(oe);if(","===o.slice(-1))o=le(e,o.substring(0,o.length-1)),s.push(o);else{let r="";o=le(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,s.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return s.join(", ")}const ce=new WeakMap;function le(e,t){return t&&""!==t.trim()?ue(e,t):t}function ue(e,t){let n=ce.get(e);if(n||(n=e.createElement("a"),ce.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function de(e,t,n,r,s,o,i){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0]))return le(e,r);if("xlink:href"===n&&"#"!==r[0])return le(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return le(e,r);if("srcset"===n)return ae(e,r);if("style"===n){let t=se(r,ue(e));return i&&i.size>0&&(t=re(t,i)),t}return"object"===t&&"data"===n?le(e,r):"function"==typeof o?o(n,r,s):r}function he(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function pe(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}function me(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function fe(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:fe(e.parentNode,t,n,r+1):-1}function ye(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(me(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function ge(e,t,n,r,s,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(o){if(c=fe(i,ye(r,s)),c<0)return!0;a=fe(i,ye(t,n),c>=0?c:1/0)}else{if(a=fe(i,ye(t,n)),a<0)return!1;c=fe(i,ye(r,s),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!o}catch(e){}return!!o}function Se(e,t,n){const r=q(e);if(!r)return;let s,o=!1;
712try{s=r.document.readyState}catch(e){return}if("complete"!==s){const r=H(()=>{o||(t(),o=!0)},n);return void e.addEventListener("load",()=>{j(r),o=!0,t()})}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return H(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function ke(e,t,n){let r,s=!1;try{r=e.sheet}catch(e){r=null}if(r)return;const o=H(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{j(o),s=!0,t()})}function be(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:f,maskInputFn:y,dataURLOptions:g={},inlineImages:S,recordCanvas:b,keepIframeSrcFn:v,newlyAddedElement:w=!1,ignoreCSSAttributes:_}=t,I=ve(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:k.Document,childNodes:[],compatMode:e.compatMode}:{type:k.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:k.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return _e(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:y,dataURLOptions:g,inlineImages:S,recordCanvas:b,keepIframeSrcFn:v,newlyAddedElement:w,rootId:I,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,ignoreCSSAttributes:_});case e.TEXT_NODE:return we(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:f,maskInputOptions:m,maskInputFn:y,rootId:I});case e.CDATA_SECTION_NODE:return{type:k.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:k.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}function ve(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function we(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const p="STYLE"===d||void 0,m="SCRIPT"===d||void 0,f="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(h=I(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=se(h,ue(t.doc))}m&&(h="SCRIPT_PLACEHOLDER");const y=ge(e,r,o,s,i,n);if(p||m||f||!h||!y||(h=a?a(h,e.parentElement):h.replace(/[\S]/g,"*")),f&&h&&(c.textarea||y)&&(h=l?l(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h){h=O({isMasked:ge(e,r,o,s,i,A({type:null,tagName:d,maskInputOptions:c})),element:e,value:h,maskInputFn:l})}return{type:k.Text,textContent:h||"",isStyle:p,rootId:u}}function _e(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:f,maskTextClass:y,unmaskTextClass:g,maskTextSelector:S,unmaskTextSelector:b,ignoreCSSAttributes:v}=t,w=pe(e,r,s,o),_=G(e);let C={};const E=e.attributes.length;for(let t=0;t<E;t++){const r=e.attributes[t];r.name&&!he(_,r.name,r.value)&&(C[r.name]=de(n,_,D(r.name),r.value,e,c,v))}if("link"===_&&i){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let r=null;t&&(r=I(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=se(r,t.href))}if("style"===_&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=I(e.sheet);t&&(C._cssText=se(t,ue(n)))}if("input"===_||"textarea"===_||"select"===_||"option"===_){const t=e,n=B(t),r=P(t,L(_),n),s=t.checked;if("submit"!==n&&"button"!==n&&r){const e=ge(t,y,S,g,b,A({type:n,tagName:L(_),maskInputOptions:a}));C.value=O({isMasked:e,element:t,value:r,maskInputFn:l})}s&&(C.checked=s)}if("option"===_&&(e.selected&&!a.select?C.selected=!0:delete C.selected),"canvas"===_&&h)if("2d"===e.__context)F(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(C.rr_dataURL=t)}if("img"===_&&d){X||(X=n.createElement("canvas"),Q=X.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",s=t.crossOrigin,o=()=>{t.removeEventListener("load",o);
712try{X.width=t.naturalWidth,X.height=t.naturalHeight,Q.drawImage(t,0,0),C.rr_dataURL=X.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(s?C.crossOrigin=s:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if("audio"!==_&&"video"!==_||(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),w){const{width:t,height:n}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${n}px`}}let T;"iframe"!==_||p(C.src)||(w||$(e)||(C.rr_src=C.src),delete C.src);try{customElements.get(_)&&(T=!0)}catch(e){}return{type:k.Element,tagName:_,attributes:C,childNodes:[],isSVG:(x=e,Boolean("svg"===x.tagName||x.ownerSVGElement)||void 0),needBlock:w,rootId:f,isCustom:T};var x}function Ie(e){return null==e?"":e.toLowerCase()}function Ce(e,t){if(t.comment&&e.type===k.Comment)return!0;if(e.type===k.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===U(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Ie(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ie(e.attributes.name)||"icon"===Ie(e.attributes.rel)||"apple-touch-icon"===Ie(e.attributes.rel)||"shortcut icon"===Ie(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Ie(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ie(e.attributes.property).match(/^(og|twitter|fb):/)||Ie(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ie(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Ie(e.attributes.name)||"googlebot"===Ie(e.attributes.name)||"bingbot"===Ie(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Ie(e.attributes.name)||"generator"===Ie(e.attributes.name)||"framework"===Ie(e.attributes.name)||"publisher"===Ie(e.attributes.name)||"progid"===Ie(e.attributes.name)||Ie(e.attributes.property).match(/^article:/)||Ie(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Ie(e.attributes.name)||"yandex-verification"===Ie(e.attributes.name)||"csrf-token"===Ie(e.attributes.name)||"p:domain_verify"===Ie(e.attributes.name)||"verify-v1"===Ie(e.attributes.name)||"verification"===Ie(e.attributes.name)||"shopify-checkout-api-token"===Ie(e.attributes.name)))return!0}}return!1}function Ee(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_={},inlineImages:I=!1,recordCanvas:C=!1,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:x=5e3,onBlockedImageLoad:M,onStylesheetLoad:R,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:D=!1,ignoreCSSAttributes:L}=t;let{preserveWhiteSpace:N=!0}=t;const F=be(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,dataURLOptions:_,inlineImages:I,recordCanvas:C,keepIframeSrcFn:O,newlyAddedElement:D,ignoreCSSAttributes:L});if(!F)return console.warn(e,"not serialized"),null;let B;B=r.hasNode(e)?r.getId(e):Ce(F,S)||!N&&F.type===k.Text&&!F.isStyle&&!F.textContent.trim().length?-2:J();const P=Object.assign(F,{id:B});if(r.add(e,P),-2===B)return null;E&&E(e);let z=!h;if(P.type===k.Element){z=z&&!P.needBlock;const t=e.shadowRoot;t&&w(t)&&(P.isShadowHost=!0)}if((P.type===k.Document||P.type===k.Element)&&z){S.headWhitespace&&P.type===k.Element&&"head"===P.tagName&&(N=!1);const t={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:I,recordCanvas:C,preserveWhiteSpace:N,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:x,onBlockedImageLoad:M,onStylesheetLoad:R,stylesheetLoadTimeout:A,keepIframeSrcFn:O,ignoreCSSAttributes:L},v=e.childNodes?Array.from(e.childNodes):[];for(const e of v){const n=Ee(e,t);n&&P.childNodes.push(n)}if(b(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Ee(n,t);r&&(w(e.shadowRoot)&&(r.isShadow=!0),P.childNodes.push(r))}}if(e.parentNode&&v(e.parentNode)&&w(e.parentNode)&&(P.isShadow=!0),P.type!==k.Element||"iframe"!==P.tagName||P.needBlock||Se(e,()=>{const t=$(e);
712if(t&&T){const n=Ee(t,{doc:t,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:I,recordCanvas:C,preserveWhiteSpace:N,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:A,keepIframeSrcFn:O,ignoreCSSAttributes:L});n&&T(e,n)}},x),P.type===k.Element&&"img"===P.tagName&&!e.complete&&P.needBlock){const t=e,n=()=>{if(t.isConnected&&!t.complete&&M)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&M(t,P,e)}catch(e){}t.removeEventListener("load",n)};t.isConnected&&t.addEventListener("load",n)}return P.type===k.Element&&"link"===P.tagName&&"string"==typeof P.attributes.rel&&("stylesheet"===P.attributes.rel||"preload"===P.attributes.rel&&"string"==typeof P.attributes.href&&"css"===U(P.attributes.href))&&ke(e,()=>{if(R){const t=Ee(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:I,recordCanvas:C,preserveWhiteSpace:N,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:A,keepIframeSrcFn:O,ignoreCSSAttributes:L});t&&R(e,t)}},A),P.type===k.Element&&delete P.needBlock,P}function Te(e,t){const{mirror:n=new R,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOM:S=!1,dataURLOptions:k,preserveWhiteSpace:b,onSerialize:v,onIframeLoad:w,iframeLoadTimeout:_,onBlockedImageLoad:I,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:x=new Set([])}=t||{};return Ee(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===m?{}:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S,dataURLOptions:k,inlineImages:h,recordCanvas:p,preserveWhiteSpace:b,onSerialize:v,onIframeLoad:w,iframeLoadTimeout:_,onBlockedImageLoad:I,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:T,newlyAddedElement:!1,ignoreCSSAttributes:x})}function xe(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Me="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Re={map:{},getId:()=>(console.error(Me),-1),getNode:()=>(console.error(Me),null),removeNodeFromMap(){console.error(Me)},has:()=>(console.error(Me),!1),reset(){console.error(Me)}};function Ae(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();s||!1!==n.leading||(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(rt(r),r=null),s=i,e.apply(c,o)):r||!1===n.trailing||(r=nt(()=>{s=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)},a))}}function Oe(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){nt(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Oe(e,t,o||{},!0)}function De(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Re=new Proxy(Re,{get:(e,t,n)=>("map"===t&&console.error(Me),Reflect.get(e,t,n))}));let Le=Date.now;function Ne(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Fe(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Be(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Pe(e){if(!e)return null;
712try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function Ue(e,t,n,r,s){if(!e)return!1;const o=Pe(e);if(!o)return!1;const i=ye(t,n);if(!s){const e=r&&o.matches(r);return i(o)&&!e}const a=fe(o,i);let c=-1;return!(a<0)&&(r&&(c=fe(o,ye(null,r))),a>-1&&c<0||a<c)}function ze(e,t){return-1!==t.getId(e)}function We(e,t){return-2===t.getId(e)}function He(e,t){if(v(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||He(e.parentNode,t))}function je(e){return Boolean(e.changedTouches)}function $e(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function qe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Ke(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Ve(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Le=()=>(new Date).getTime());class Je{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ge(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ye(e){let t,n=e;for(;t=Ge(n);)n=t;return n}function Xe(e){const t=e.ownerDocument;if(!t)return!1;const n=Ye(e);return t.contains(n)}function Qe(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Xe(e))}const Ze={};function et(e){const t=Ze[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return Ze[e]=r.bind(window)}function tt(...e){return et("requestAnimationFrame")(...e)}function nt(...e){return et("setTimeout")(...e)}function rt(...e){return et("clearTimeout")(...e)}var st=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(st||{}),ot=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ot||{}),it=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(it||{}),at=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(at||{}),ct=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(ct||{});let lt;function ut(e){lt=e}function dt(){lt=void 0}const ht=e=>{if(!lt)return e;return(...t)=>{try{return e(...t)}catch(e){if(lt&&!0===lt(e))return()=>{};throw e}}};for(var pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
712+/",mt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ft=0;ft<64;ft++)mt[pt.charCodeAt(ft)]=ft;class yt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function gt(e){try{return e.contentDocument}catch(e){}}function St(e){try{return e.contentWindow}catch(e){}}class kt{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("undefined"==typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{const t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);const n=t.cssRules[0];return n&&n.type===CSSRule.STYLE_RULE?n.style:null}catch{return null}}parseWithDetachedElement(e){const t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}function bt(e){return"__ln"in e}class vt{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&bt(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&bt(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const wt=(e,t)=>`${e}@${t}`;class _t{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new vt,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!Qe(s))return;const o=v(s.parentNode)?this.mirror.getId(Ge(s)):this.mirror.getId(s.parentNode),i=r(s);if(-1===o||-1===i)return n.addNode(s);const a=Ee(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{qe(e,this.mirror)&&!Ue(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Ke(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ve(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(Ue(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);const n=St(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});a&&(e.push({parentId:o,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Ct(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)Tt(this.droppedSet,e)||Ct(this.removes,e,this.mirror)?Tt(this.movedSet,e)?s(e):this.droppedSet.add(e):s(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);
712if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),s(e.value)}const i={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!We(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Ue(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ge(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Pe(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=B(t),s=t.tagName;r=P(t,s,n);const o=A({maskInputOptions:this.maskInputOptions,tagName:s,type:n});r=O({isMasked:ge(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(Ue(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(gt(t))return;n="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!he(t.tagName,n)&&(s.attributes[n]=de(this.doc,D(t.tagName),D(n),r,t,this.maskAttributeFn),"style"===n)){const n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||"")||o!==(n?.getPropertyPriority(e)||"")?s.styleDiff[e]=""===o?r:[r,o]:s._unchangedStyles[e]=[r,o]}if(n)for(const e of Array.from(n))""===t.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(Ue(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),r=v(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Ue(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||We(t,this.mirror)||!ze(t,this.mirror)||(this.addedSet.has(t)?(It(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||He(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[wt(n,r)]?It(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!v(e.target)||!w(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(We(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[wt(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Ue(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>
712this.genAdds(e)),Ve(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new kt(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function It(e,t){e.delete(t),t.childNodes?.forEach(t=>It(e,t))}function Ct(e,t,n){return 0!==e.length&&Et(e,t,n)}function Et(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function Tt(e,t){return 0!==e.size&&xt(e,t)}function xt(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||xt(e,n))}const Mt=[];function Rt(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function At(e,t){const n=new _t;Mt.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(r=window[s]);const o=new r(ht(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Ot({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=Ae(ht(t=>{const n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),o),l=ht(Ae(ht(e=>{const t=Rt(e),{clientX:n,clientY:s}=je(e)?e.changedTouches[0]:e;i||(i=Le()),a.push({x:n,y:s,id:r.getId(t),timeOffset:Le()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?ot.Drag:e instanceof MouseEvent?ot.MouseMove:ot.TouchMove)}),s,{trailing:!1})),u=[xe("mousemove",l,n),xe("touchmove",l,n),xe("drag",l,n)];return ht(()=>{u.forEach(e=>e())})}function Dt({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;const u=t=>i=>{const a=Rt(i);if(Ue(a,r,s,o,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=at.Mouse;break;case"touch":c=at.Touch;break;case"pen":c=at.Pen}c===at.Touch?it[t]===it.MouseDown?u="TouchStart":it[t]===it.MouseUp&&(u="TouchEnd"):at.Pen}else je(i)&&(c=at.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===at.Touch||u.startsWith("Mouse")&&c===at.Mouse)&&(c=null)):it[t]===it.Click&&(c=l,l=null);const d=je(i)?i.changedTouches[0]:i;if(!d)return;const h=n.getId(a),{clientX:p,clientY:m}=d;ht(e)({type:it[u],id:h,x:p,y:m,...null!==c&&{pointerType:c}})};return Object.keys(it).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(e=>{let n=D(e);const r=u(e);if(window.PointerEvent)switch(it[e]){case it.MouseDown:case it.MouseUp:n=n.replace("mouse","pointer");break;case it.TouchStart:case it.TouchEnd:return}c.push(xe(n,r,t))}),ht(()=>{c.forEach(e=>e())})}function Lt({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){return xe("scroll",ht(Ae(ht(i=>{const a=Rt(i);if(!a||Ue(a,r,s,o,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=Ne(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})}),i.scroll||100)),t)}function Nt({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return xe("resize",ht(Ae(ht(()=>{const t=Fe(),s=Be();n===t&&r===s||(e({width:Number(s),height:Number(t)}),n=t,r=s)}),200)),t)}const Ft=["INPUT","TEXTAREA","SELECT"],Bt=new WeakMap;
712function Pt({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:f}){function y(e){let n=Rt(e);const u=e.isTrusted,y=n&&L(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||Ft.indexOf(y)<0||Ue(n,r,s,o,!0))return;const S=n;if(S.classList.contains(i)||a&&S.matches(a))return;const k=B(n);let b=P(S,y,k),v=!1;const w=A({maskInputOptions:c,tagName:y,type:k}),_=ge(n,h,m,p,f,w);"radio"!==k&&"checkbox"!==k||(v=n.checked),b=O({isMasked:_,element:n,value:b,maskInputFn:l}),g(n,d?{text:b,isChecked:v,userTriggered:u}:{text:b,isChecked:v});const I=n.name;"radio"===k&&I&&v&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(e=>{if(e!==n){const t=O({isMasked:_,element:e,value:P(e,y,k),maskInputFn:l});g(e,d?{text:t,isChecked:!v,userTriggered:!1}:{text:t,isChecked:!v})}})}function g(t,r){const s=Bt.get(t);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){Bt.set(t,r);const s=n.getId(t);ht(e)({...r,id:s})}}const S=("last"===u.input?["change"]:["input","change"]).map(e=>xe(e,ht(y),t)),k=t.defaultView;if(!k)return()=>{S.forEach(e=>e())};const b=k.Object.getOwnPropertyDescriptor(k.HTMLInputElement.prototype,"value"),v=[[k.HTMLInputElement.prototype,"value"],[k.HTMLInputElement.prototype,"checked"],[k.HTMLSelectElement.prototype,"value"],[k.HTMLTextAreaElement.prototype,"value"],[k.HTMLSelectElement.prototype,"selectedIndex"],[k.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&S.push(...v.map(e=>Oe(e[0],e[1],{set(){ht(y)({target:this,isTrusted:!1})}},!1,k))),ht(()=>{S.forEach(e=>e())})}function Ut(e){return(function(e,t){if(Gt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Gt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Gt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Gt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t})(e,[])}function zt(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function Wt({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ht((r,s,o)=>{const[i,a]=o,{id:c,styleId:l}=zt(s,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:a}]}),r.apply(s,o)})});const o=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:ht((r,s,o)=>{const[i]=o,{id:a,styleId:c}=zt(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),r.apply(s,o)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:ht((r,s,o)=>{const[i]=o,{id:a,styleId:c}=zt(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),r.apply(s,o)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ht((r,s,o)=>{const[i]=o,{id:a,styleId:c}=zt(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(s,o)})}));const c={};Yt("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Yt("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Yt("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Yt("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([r,s])=>{l[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(l[r].insertRule,{apply:ht((r,s,o)=>{const[i,a]=o,{id:c,styleId:l}=zt(s.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Ut(s),a||0]}]}),r.apply(s,o)})}),s.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:ht((r,s,o)=>{const[i]=o,{id:a,styleId:c}=zt(s.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Ut(s),i]}]}),r.apply(s,o)})})}),ht(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEac
712h(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function Ht({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const s="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,o=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&s&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(e){const n=o.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),ht(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function jt({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:ht((s,i,a)=>{const[c,l,u]=a;if(n.has(c))return o.apply(i,[c,l,u]);const{id:d,styleId:h}=zt(i.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:c,value:l,priority:u},index:Ut(i.parentRule)}),s.apply(i,a)})});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:ht((s,o,a)=>{const[c]=a;if(n.has(c))return i.apply(o,[c]);const{id:l,styleId:u}=zt(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Ut(o.parentRule)}),s.apply(o,a)})}),ht(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i})}function $t({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=ht(i=>Ae(ht(o=>{const a=Rt(o);if(!a||Ue(a,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=a;e({type:i,id:s.getId(a),currentTime:c,volume:l,muted:u,playbackRate:d})}),o.media||500)),c=[xe("play",a(ct.Play),i),xe("pause",a(ct.Pause),i),xe("seeked",a(ct.Seeked),i),xe("volumechange",a(ct.VolumeChange),i),xe("ratechange",a(ct.RateChange),i)];return ht(()=>{c.forEach(e=>e())})}function qt({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return s.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=De(t.fonts,"add",function(t){return function(n){return nt(ht(()=>{const t=s.get(n);t&&(e(t),s.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=o}),r.push(i),ht(()=>{r.forEach(e=>e())})}function Kt(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=ht(()=>{const e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:u,endOffset:d}=i;Ue(a,r,s,o,!0)||Ue(u,r,s,o,!0)||c.push({start:n.getId(a),startOffset:l,end:n.getId(u),endOffset:d})}i({ranges:c})});return c(),xe("selectionchange",c)}function Vt({doc:e,customElementCb:t}){const n=e.defaultView;if(!n||!n.customElements)return()=>{};return De(n.customElements,"define",function(e){return function(n,r,s){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,s])}})}function Jt(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=At(e,e.doc));const s=Ot(e),o=Dt(e),i=Lt(e),a=Nt(e,{win:n}),c=Pt(e),l=$t(e);let u=()=>{},d=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(u=Wt(e,{win:n}),d=Ht(e,e.doc),h=jt(e,{win:n}),e.collectFonts&&(p=qt(e)));const m=Kt(e),f=Vt(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return ht(()=>{Mt.forEach(e=>e.reset()),r?.disconnect(),s(),o(),i(),a(),c(),l(),u(),d(),h(),p(),m(),f(),y.forEach(e=>e())})}function Gt(e){return void 0!==window[e]}function Yt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Xt{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const s=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=s.get(t);
712return i||(i=this.generateIdFn(),s.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=r.get(t);return s||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Qt{constructor(){this.crossOriginIframeMirror=new Xt(J),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Zt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Xt(J),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Xt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);const t=St(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&St(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const n=gt(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case st.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:st.IncrementalSnapshot,data:{source:ot.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case st.Meta:case st.Load:case st.DomContentLoaded:return!1;case st.Plugin:return t;case st.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case st.IncrementalSnapshot:switch(t.data.source){case ot.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case ot.Drag:case ot.TouchMove:case ot.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case ot.ViewportResize:return!1;case ot.MediaInteraction:case ot.MouseInteraction:case ot.Scroll:case ot.CanvasMutation:case ot.Input:return this.replaceIds(t.data,e,["id"]),t;case ot.StyleSheetRule:case ot.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ot.Font:return t;case ot.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case ot.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(const s of r)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
712h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===k.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class en{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tn{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!w(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=At({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Lt({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),nt(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Ht({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=gt(e),n=St(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(De(e.prototype,"attachShadow",function(e){return function(r){const s=e.call(this,r);return this.shadowRoot&&Qe(this)&&n.addShadowRoot(this.shadowRoot,t),s}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class nn{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Je,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:E(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class rn{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,tt(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let sn,on;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const an=new R;function cn(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:h=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:f,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:S,maskInputFn:k,maskTextFn:b,maxCanvasSize:v=null,packFn:w,sampling:_={},dataURLOptions:I={},mousemoveWait:C,recordDOM:E=!0,recordCanvas:T=!1,recordCrossOriginIframes:x=!1,recordAfter:M=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:A=!1,inlineImages:O=!1,plugins:D,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:F,onMutation:B,getCanvasManager:P}=e;ut(F);const U=!x||window.parent===window;let z=!1;if(!U)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!z)return()=>{};void 0!==C&&void 0===_.mousemove&&(_.mousemove=C),an.reset();const W=!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},H=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};let j;$e();let $=0;const q=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!z&&(e=w(e)),e};sn=(e,s)=>{const o=e;if(o.timestamp=Le(),!Mt[0]?.isFrozen()||o.type===st.FullSnapshot||o.type===st.IncrementalSnapshot&&o.data.source===ot.Mutation||Mt.forEach(e
712=>e.unfreeze()),U)t?.(q(o),s);else if(z){const e={type:"rrweb",event:q(o),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(o.type===st.FullSnapshot)j=o,$=0;else if(o.type===st.IncrementalSnapshot){if(o.data.source===ot.Mutation&&o.data.isAttachIframe)return;$++;const e=r&&$>=r,t=n&&j&&o.timestamp-j.timestamp>n;(e||t)&&ee(!0)}};const K=e=>{sn({type:st.IncrementalSnapshot,data:{source:ot.Mutation,...e}})},V=e=>sn({type:st.IncrementalSnapshot,data:{source:ot.Scroll,...e}}),J=e=>sn({type:st.IncrementalSnapshot,data:{source:ot.CanvasMutation,...e}}),G=new nn({mutationCb:K,adoptedStyleSheetCb:e=>sn({type:st.IncrementalSnapshot,data:{source:ot.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Qt:new Zt({mirror:an,mutationCb:K,stylesheetManager:G,recordCrossOriginIframes:x,wrappedEmit:sn});for(const e of D||[])e.getMirror&&e.getMirror({nodeMirror:an,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const X=new rn,Q=ln(P,{mirror:an,win:window,mutationCb:e=>sn({type:st.IncrementalSnapshot,data:{source:ot.CanvasMutation,...e}}),recordCanvas:T,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:v,sampling:_.canvas,dataURLOptions:I,errorHandler:F}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new en:new tn({mutationCb:K,scrollCb:V,bypassOptions:{onMutation:B,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:W,dataURLOptions:I,maskAttributeFn:S,maskTextFn:b,maskInputFn:k,recordCanvas:T,inlineImages:O,sampling:_,slimDOMOptions:H,iframeManager:Y,stylesheetManager:G,canvasManager:Q,keepIframeSrcFn:L,processedNodeManager:X,ignoreCSSAttributes:N},mirror:an}),ee=(e=!1)=>{if(!E)return;sn({type:st.Meta,data:{href:window.location.href,width:Be(),height:Fe()}},e),G.reset(),Z.init(),Mt.forEach(e=>e.lock());const t=Te(document,{mirror:an,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:W,maskAttributeFn:S,maskInputFn:k,maskTextFn:b,slimDOM:H,dataURLOptions:I,recordCanvas:T,inlineImages:O,onSerialize:e=>{qe(e,an)&&Y.addIframe(e),Ke(e,an)&&G.trackLinkElement(e),Ve(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t);const n=St(e);n&&Q.addWindow(n),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{G.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{K({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:L,ignoreCSSAttributes:N});if(!t)return console.warn("Failed to snapshot the document");sn({type:st.FullSnapshot,data:{node:t,initialOffset:Ne(window)}}),Mt.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,an.getId(document))};on=ee;try{const e=[],t=e=>ht(Jt)({onMutation:B,mutationCb:K,mousemoveCb:(e,t)=>sn({type:st.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>sn({type:st.IncrementalSnapshot,data:{source:ot.MouseInteraction,...e}}),scrollCb:V,viewportResizeCb:e=>sn({type:st.IncrementalSnapshot,data:{source:ot.ViewportResize,...e}}),inputCb:e=>sn({type:st.IncrementalSnapshot,data:{source:ot.Input,...e}}),mediaInteractionCb:e=>sn({type:st.IncrementalSnapshot,data:{source:ot.MediaInteraction,...e}}),styleSheetRuleCb:e=>sn({type:st.IncrementalSnapshot,data:{source:ot.StyleSheetRule,...e}}),styleDeclarationCb:e=>sn({type:st.IncrementalSnapshot,data:{source:ot.StyleDeclaration,...e}}),canvasMutationCb:J,fontCb:e=>sn({type:st.IncrementalSnapshot,data:{source:ot.Font,...e}}),selectionCb:e=>{sn({type:st.IncrementalSnapshot,data:{source:ot.Selection,...e}})},customElementCb:e=>{sn({type:st.IncrementalSnapshot,data:{source:ot.CustomElement,...e}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,maskInputOptions:W,inlineStylesheet:m,sampling:_,recordDOM:E,recordCanvas:T,inlineImages:O,userTriggeredOnInput:R,collectFonts:A,doc:e,maskAttributeFn:S,maskInputFn:k,maskTextFn:b,keepIframeSrcFn:L,blockSelector:o,unblockSelector:i,slimDOMOptions:H,dataURLOptions:I,mirror:an,iframeManager:Y,stylesheetManager:G,shadowDomManager:Z,processedNodeManager:X,canvasManager:Q,ignoreCSSAttributes:N,plugins:D?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>sn({type:st.Plugin,data:{plugin:e.name,payload:t}}
712)}))||[]},{});Y.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(xe("DOMContentLoaded",()=>{sn({type:st.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()})),e.push(xe("load",()=>{sn({type:st.Load,data:{}}),"load"===M&&n()},window))),()=>{e.forEach(e=>e()),X.destroy(),on=void 0,dt()}}catch(e){console.warn(e)}}function ln(e,t){try{return e?e(t):new yt}catch{return console.warn("Unable to initialize CanvasManager"),new yt}}var un,dn;cn.mirror=an,cn.takeFullSnapshot=function(e){if(!on)throw new Error("please take full snapshot after start recording");on(e)},(dn=un||(un={}))[dn.NotStarted=0]="NotStarted",dn[dn.Running=1]="Running",dn[dn.Stopped=2]="Stopped";function hn(e){return e>9999999999?e:1e3*e}function pn(e){return e>9999999999?e/1e3:e}function mn(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:st.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,a.normalize)(t,10,1e3)}}),"console"===t.category)))}function fn(e){return e.closest("button,a")||e}function yn(e){const t=gn(e);return t&&t instanceof Element?fn(t):t}function gn(e){return Sn(e)?e.target:e}function Sn(e){return"object"==typeof e&&!!e&&"target"in e}let kn;const bn=new Set([ot.Mutation,ot.StyleSheetRule,ot.StyleDeclaration,ot.AdoptedStyleSheet,ot.CanvasMutation,ot.Selection,ot.MediaInteraction]);class vn{constructor(e,t,n=mn){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=Cn()},kn||(kn=[],(0,a.fill)(l,"open",function(e){return function(...t){if(kn)try{kn.forEach(e=>e())}catch{}return e.apply(l,t)}})),kn.push(t),()=>{const e=kn?kn.indexOf(t):-1;e>-1&&kn.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(_n(t,this._ignoreSelector)||!In(e))return;const n={timestamp:pn(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=pn(e)}registerScroll(e=Date.now()){this._lastScroll=pn(e)}registerClick(e){const t=fn(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){const e=[],t=Cn();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:l.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};return void this._addBreadcrumbEvent(t,s)}if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:l.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,c.setTimeout)(()=>this._checkClicks(),1e3)}}const wn=["A","BUTTON","INPUT"];function _n(e,t){return!wn.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}function In(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function Cn(){return Date.now()/1e3}function En(e,t){try{if(!Tn(t))return;const{source:n}=t.data;if(bn.has(n)&&e.registerMutation(t.timestamp),n===ot.Scroll&&e.registerScroll(t.timestamp),xn(t)){const{type:n,id:r}=t.data,s=cn.mirror.getNode(r);s instanceof HTMLElement&&n===it.Click&&e.registerClick(s)}}catch{}}function Tn(e){return 3===e.type}function xn(e){return e.data.source===ot.MouseInteraction}function Mn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Rn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Rn||{});const An=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function On(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(An.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const Dn=e=>t=>{if(!e.isEnabled())return;const n=Nn(t);if(!n)return;const r="click"===t.name,s=r?t.event:void 0;var o,i,a;!(r&&e.clickDetector&&s?.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(o=e.clickDetector,i=n,a=yn(t.event),o.handleClick(i,a)),mn(e,n
712)};function Ln(e,t){const n=cn.mirror.getId(e),r=n&&cn.mirror.getNode(n),s=r&&cn.mirror.getMeta(r),o=s&&Bn(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>e.type===Rn.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:On(o.attributes)}}:{}}}function Nn(e){const{target:t,message:n}=Fn(e);return Mn({category:`ui.${e.name}`,...Ln(t,n)})}function Fn(e){const t="click"===e.name;let n,r=null;try{r=t?yn(e.event):gn(e.event),n=(0,c.htmlTreeAsString)(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Bn(e){return e.type===Rn.Element}function Pn(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=Un(t);n&&mn(e,n)}function Un(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||zn(i)||!o)return null;const a=t||r||s,l=1===o.length;if(!a&&l)return null;const u=(0,c.htmlTreeAsString)(i,{maxStringLength:200})||"<unknown>";return Mn({category:"ui.keyDown",message:u,data:{...Ln(i,u).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function zn(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const Wn={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:$n(o),end:$n(s),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=$n(s);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:m,type:f}=e;if(0===s)return null;return{type:`${t}.${f}`,start:$n(p),end:$n(o),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:h}}}};function Hn(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function jn(e){const t=Wn[e.entryType];return t?t(e):null}function $n(e){return(((0,a.browserPerformanceTimeOrigin)()||l.performance.timeOrigin)+e)/1e3}function qn(e){const t=e.entries[e.entries.length-1];return Gn(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Kn(e){return void 0!==e.sources}function Vn(e){const t=[],n=[];for(const r of e.entries)if(Kn(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=cn.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Gn(e,"cumulative-layout-shift",n,t)}function Jn(e){const t=e.entries[e.entries.length-1];return Gn(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function Gn(e,t,n,r){const s=e.value,o=e.rating,i=$n(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map(e=>cn.mirror.getId(e)):void 0,attributions:r}}}function Yn(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(e=>{r.push((0,c.addPerformanceInstrumentationHandler)(e,n))}),r.push((0,c.addLcpInstrumentationHandler)(Hn(qn,e)),(0,c.addClsInstrumentationHandler)(Hn(Vn,e)),(0,c.addInpInstrumentationHandler)(Hn(Jn,e))),()=>{r.forEach(e=>e())}}const Xn='undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Qn(){const e=new Blob(["var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
712,M=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
712++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if(\"function\"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G=\"undefined\"!=typeof TextEncoder&&new TextEncoder,H=\"undefined\"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error(\"Adding invalid event\");const n=this._hasEvents?\",\":\"\";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push(\"]\",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push(\"[\")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener(\"message\",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&\"function\"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:\"init\",success:!0,response:void 0});"]);return URL.createObjectURL(e)}const Zn=["log","warn","error"],er="[Replay] ";function tr(e,t="info"){(0,a.addBreadcrumb)({category:"console",data:{logger:"replay"},level:t,message:`${er}${e}`},{level:t})}const nr=(function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};
712return Xn?(Zn.forEach(e=>{n[e]=(...n)=>{a.debug[e](er,...n),t&&tr(n.join(""),(0,a.severityLevelFromString)(e))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),a.debug.error(er,r),e?(0,a.captureException)(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&tr(r,"error")},n.infoTick=(...e)=>{a.debug.log(er,...e),t&&setTimeout(()=>tr(e[0]),0)}):Zn.forEach(e=>{n[e]=()=>{}}),n})();class rr extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class sr{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>m)throw new rr;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(const{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:hn(e)}}class or{constructor(e){this._onMessage=({data:e})=>{const t=e;if("number"!=typeof t.id)return;const n=this._pending.get(t.id);if(n&&n.method===t.method){if(this._pending.delete(t.id),!t.success)return Xn&&nr.error("Error in compression worker: ",t.response),void n.reject(new Error("Error in compression worker"));n.resolve(t.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():(Xn&&nr.warn("Received worker message with unsuccessful status",n),t(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{Xn&&nr.warn("Failed to load Replay compression worker",e),t(new Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){Xn&&nr.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(new Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise((r,s)=>{this._pending.set(n,{method:e,resolve:r,reject:s});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),s(e)}})}_getAndIncrementId(){return this._id++}}class ir{constructor(e){this._worker=new or(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=hn(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>m?Promise.reject(new rr):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Xn&&nr.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class ar{constructor(e){this._fallback=new sr,this._compression=new ir(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}
712async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Xn&&nr.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Xn&&nr.exception(e,"Failed to add events when switching buffers.")}}}function cr({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=lr(t);if(e)return e}return Xn&&nr.log("Using simple buffer"),new sr}function lr(e){try{const t=e||ur();if(!t)return;Xn&&nr.log("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new ar(n)}catch(e){Xn&&nr.exception(e,"Failed to create compression worker")}}function ur(){return"undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":Qn()}function dr(){try{return"sessionStorage"in l&&!!l.sessionStorage}catch{return!1}}function hr(){if(dr())try{l.sessionStorage.removeItem(u)}catch{}}function pr(e){return void 0!==e&&Math.random()<e}function mr(e){if(dr())try{l.sessionStorage.setItem(u,JSON.stringify(e))}catch{}}function fr(e){const t=Date.now();return{id:e.id||(0,a.uuid4)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function yr(e,t){return pr(e)?"session":!!t&&"buffer"}function gr({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=fr({sampled:yr(e,t),previousSessionId:r});return n&&mr(s),s}function Sr(){if(!dr())return null;try{const e=l.sessionStorage.getItem(u);if(!e)return null;const t=JSON.parse(e);return Xn&&nr.infoTick("Loading existing session"),fr(t)}catch{return null}}function kr(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function br(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return kr(e.started,t,r)||kr(e.lastActivity,n,r)}function vr(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!br(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function wr({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&Sr();return s?vr(s,{sessionIdleExpire:e,maxReplayDuration:t})?(Xn&&nr.infoTick("Session in sessionStorage is expired, creating new one..."),gr(r,{previousSessionId:s.id})):s:(Xn&&nr.infoTick("Creating new session"),gr(r,{previousSessionId:n}))}function _r(e){return e.type===st.Custom}function Ir(e,t,n){return!!Tr(e,t)&&(Er(e,t,n),!0)}function Cr(e,t,n){return Tr(e,t)?Er(e,t,n):Promise.resolve(null)}async function Er(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s="buffer"===e.recordingMode;try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=xr(t,e.getOptions().beforeAddRecordingEvent);if(!o)return;return await r.addEvent(o)}catch(t){const n=t&&t instanceof rr,o=n?"eventBufferOverflow":"eventBufferError",i=(0,a.getClient)();if(i){const e=n?"buffer_overflow":"internal_sdk_error";i.recordDroppedEvent(e,"replay")}if(n&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o})}}function Tr(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=hn(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Xn&&nr.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function xr(e,t){try{if("function"==typeof t&&_r(e))return t(e)}catch(e){return Xn&&nr.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Mr(e,t){const n=e.getContext();n.traceIds.size<100&&n.traceIds.add(t)}function Rr(e){return t=>{if(!e.isEnabled()||!(0,a.spanIsSampled)(t))return;const n=t.spanContext().traceId;n&&Mr(e,n)}}function Ar(e){return!e.type}function Or(e){return"transaction"===e.type}function Dr(e){return"replay_event"===e.type}function Lr(e){return"feedback"===e.type}function Nr(e){return(t,n)=>{if(!e.isEnabled()||!Ar(t)&&!Or(t))return;const r=n.statusCode;!r||r<200||r>=300||(Or(t)?Fr(e,t):Br(e,t))}}function Fr(e,t){const n=t.contexts?.trace?.trace_id;n&&Mr(e,n)}function Br(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&(0,c.setTimeout)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function Pr(e){return t=>{e.isEnabled()&&Ar(t)&&Ur(e,t)}}function Ur(e,t){const n=t.exception?.values?.[0]?.value;if("string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){mn(e,Mn({category:"replay.hydrate-error",data:{url:(0,a.getL
712ocationHref)()}}))}}function zr(e){const t=(0,a.getClient)();t&&t.on("beforeAddBreadcrumb",t=>Wr(e,t))}function Wr(e,t){if(!e.isEnabled()||!$r(t))return;const n=Hr(t);n&&mn(e,n)}function Hr(e){return!$r(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?jr(e):Mn(e)}function jr(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return Mn(e);let n=!1;const r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>p?(n=!0,`${e.slice(0,p)}\u2026`):e;if("object"==typeof e)try{const t=(0,a.normalize)(e,7);return JSON.stringify(t).length>p?(n=!0,`${JSON.stringify(t,null,2).slice(0,p)}\u2026`):t}catch{}return e});return Mn({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function $r(e){return!!e.category}function qr(e,t){return!(e.type||!e.exception?.values?.length)&&!!t.originalException?.__rrweb__}function Kr(){const e=(0,a.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,a.getActiveSpan)();if(t){delete(0,a.getDynamicSamplingContextFromSpan)(t).replay_id}}function Vr(e){const t=(0,a.getCurrentScope)().getPropagationContext().dsc;t&&(t.replay_id=e);const n=(0,a.getActiveSpan)();if(n){(0,a.getDynamicSamplingContextFromSpan)(n).replay_id=e}}function Jr(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:st.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1))}function Gr(e,t){return"buffer"===e.recordingMode&&(t.message!==d&&(!(!t.exception||t.type)&&pr(e.getOptions().errorSampleRate)))}function Yr(e){return Object.assign((t,n)=>{if(e.session&&vr(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&Kr(),!e.isEnabled()||e.isPaused())return t;if(Dr(t))return delete t.breadcrumbs,t;if(!Ar(t)&&!Or(t)&&!Lr(t))return t;if(!e.checkAndHandleExpiredSession())return Kr(),t;if(Lr(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),Jr(e,t),t;if(qr(t,n)&&!e.getOptions()._experiments.captureExceptions)return Xn&&nr.log("Ignoring error from rrweb internals",t),null;const r=Gr(e,t);if((r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&"buffer"===e.recordingMode&&"buffer"===e.session?.sampled){const t=e.session;t.dirty=!0,e.getOptions().stickySession&&mr(t)}return t},{id:"Replay"})}function Xr(e,t){return t.map(({type:t,start:n,end:r,name:s,data:o})=>{const i=e.throttledAddEvent({type:st.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i})}function Qr(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Zr(e){return t=>{if(!e.isEnabled())return;const n=Qr(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Xr(e,[n]),!1)))}}function es(e,t){return(!Xn||!e.getOptions()._experiments.traceInternals)&&(0,a.isSentryRequestUrl)(t,(0,a.getClient)())}function ts(e,t){e.isEnabled()&&null!==t&&(es(e,t.name)||e.addUpdate(()=>(Xr(e,[t]),!0)))}function ns(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=(0,c.serializeFormData)(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function rs(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ss(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function os(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:o,statusCode:i,request:a,response:c}}}function is(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function as(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=ls(n);return r.body=s,o?.length&&(r._meta={warnings:o}),r}function cs(e,t){return Object.entries(e).reduce((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n},{})}function ls(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>h,n=us(e);if(t){const t=e.slice(0,h);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function us(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function ds(e,t){const n=hs(e);return(0,a.stringMatchesSomePattern)(n,t)}function hs(e,t=l.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(l.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function ps(e,t,n){try{const r=os("resource.fetch",await fs(e,t,n));ts(n.replay,r)}catch(e){Xn&&nr.exception(e,"Failed to capture fetch breadcrumb")}}function ms(e,t){const{input:n,response:r}=t,s=ns(n?(0,c.getFetchRequestArgBody)(n):void 0),o=r?rs(r.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}async function fs(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=ds(i,n.networkDetailAllowUrls)&&!ds(i,n.networkDetailDenyUrls);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:d?ys(n,t.input,l):is(l),response:await gs(d,n,t.response,u)}}function ys({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?vs(n,t):{};if(!e)return as(s,r,void 0);const o=(0,c.getFetchRequestArgBody)(n),[i,a]=(0,c.getBodyString)(o,nr),l=as(s,r,i);return a?ss(l,a):l}async function gs(e,{networkCaptureBodies:t,networkResponseHeaders:n}
712,r,s){if(!e&&void 0!==s)return is(s);const o=r?bs(r.headers,n):{};if(!r||!t&&void 0!==s)return as(o,s,void 0);const[i,a]=await ks(r),c=Ss(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return a?ss(c,a):c}function Ss(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e?.length&&void 0===n?ns(e):n;return r?as(s,o,t?e:void 0):is(o)}catch(e){return Xn&&nr.exception(e,"Failed to serialize response body"),as(s,n,void 0)}}async function ks(e){const t=_s(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await Is(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Xn&&nr.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Xn&&nr.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function bs(e,t){const n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function vs(e,t){return 1===e.length&&"string"!=typeof e[0]?ws(e[0],t):2===e.length?ws(e[1],t):{}}function ws(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?bs(n,t):Array.isArray(n)?{}:cs(n,t):{}}function _s(e){try{return e.clone()}catch(e){Xn&&nr.exception(e,"Failed to clone response body")}}function Is(e){return new Promise((t,n)=>{const r=(0,c.setTimeout)(()=>n(new Error("Timeout while trying to read response body")),500);Cs(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function Cs(e){return await e.text()}async function Es(e,t,n){try{const r=os("resource.xhr",xs(e,t,n));ts(n.replay,r)}catch(e){Xn&&nr.exception(e,"Failed to capture xhr breadcrumb")}}function Ts(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=ns(r),o=n.getResponseHeader("content-length")?rs(n.getResponseHeader("content-length")):As(n.response,n.responseType);void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}function xs(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:l,method:u,status_code:d=0,request_body_size:h,response_body_size:p}=e.data;if(!l)return null;if(!a||!ds(l,n.networkDetailAllowUrls)||ds(l,n.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:o,url:l,method:u,statusCode:d,request:is(h),response:is(p)}}const m=a[c.SENTRY_XHR_DATA_KEY],f=m?cs(m.request_headers,n.networkRequestHeaders):{},y=cs((0,c.parseXhrResponseHeaders)(a),n.networkResponseHeaders),[g,S]=n.networkCaptureBodies?(0,c.getBodyString)(i,nr):[void 0],[k,b]=n.networkCaptureBodies?Ms(a):[void 0],v=as(f,h,g),w=as(y,p,k);return{startTimestamp:s,endTimestamp:o,url:l,method:u,statusCode:d,request:S?ss(v,S):v,response:b?ss(w,b):w}}function Ms(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Rs(e.response,e.responseType)}catch(e){t.push(e)}return Xn&&nr.warn("Failed to get xhr response body",...t),[void 0]}function Rs(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Xn&&nr.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Xn&&nr.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function As(e,t){try{return ns("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function Os(e){const t=(0,a.getClient)();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(e,t)=>Ds(a,e,t))}catch{}}function Ds(e,t,n){if(t.data)try{Ls(t)&&Fs(n)&&(Ts(t,n),Es(t,n,e)),Ns(t)&&Bs(n)&&(ms(t,n),ps(t,n,e))}catch(e){Xn&&nr.exception(e,"Error when enriching network breadcrumb")}}function Ls(e){return"xhr"===e.category}function Ns(e){return"fetch"===e.category}function Fs(e){return e?.xhr}function Bs(e){return void 0!==e?.input}function Ps(e){const t=(0,a.getClient)();(0,c.addClickKeypressInstrumentationHandler)(Dn(e)),(0,c.addHistoryInstrumentationHandler)(Zr(e)),zr(e),Os(e);const n=Yr(e);(0,a.addEventProcessor)(n),t&&(t.on("beforeSendEvent",Pr(e)),t.on("afterSendEvent",Nr(e)),t.on("createDsc",t=>{const n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=n)}}),t.on("afterSegmentSpanEnd",Rr(e)),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,n)=>{const r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function Us(e){try{return Promise.all(Xr(e,[zs(l.performance.memory)]))}catch{return[]}}function zs(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Ws(e,t,n){return(0,a.debounce)(e,t,{...n,setTimeoutImpl:c.setTimeout})}const Hs=a.GLOBAL_OBJ.navigator;function js(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Xn&&nr.warn("Received replay event after session expired."));const s=r||!t;t=!0,$s(n),e.clickDetector&&En(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!Ir(e,n,s))return!0;
712if(!s)return!1;const t=e.session;if(Ks(e,s),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){const n=e.eventBuffer.getEarliestTimestamp();n&&(Xn&&nr.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&mr(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}}function $s(e){const t=e.data;if(e.type===st.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===ot.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(const e of t.attributes){const t=cn.mirror.getNode(e.id),n=t&&cn.mirror.getMeta(t);if(n?.type===Rn.Element)for(const[t,r]of Object.entries(e.attributes))null===r?delete n.attributes[t]:n.attributes[t]=r}}function qs(e){const t=e.getOptions();return{type:st.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function Ks(e,t){t&&0===e.session?.segmentId&&Ir(e,qs(e),!1)}function Vs(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Js(e,t,n,r){return(0,a.createEnvelope)((0,a.createEventEnvelopeHeaders)(e,(0,a.getSdkMetadataForEnvelopeHeader)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function Gs({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function Ys({client:e,scope:t,replayId:n,event:r}){const s={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,s);const o=await(0,a.prepareEvent)(e.getOptions(),r,s,t,e,(0,a.getIsolationScope)());if(!o)return null;e.emit("postprocessEvent",o,s),o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:c,version:l,settings:u}=i?.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},o}async function Xs({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=Gs({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:l,traceIds:u,initialTimestamp:h}=r,p=(0,a.getClient)(),m=(0,a.getCurrentScope)(),f=p?.getTransport(),y=p?.getDsn();if(!(p&&f&&y&&o.sampled))return Promise.resolve({});const g={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:s/1e3,error_ids:l,trace_ids:u,urls:c,replay_id:t,segment_id:n,replay_type:o.sampled},S=await Ys({scope:m,client:p,replayId:t,event:g});if(!S)return p.recordDroppedEvent("event_processor","replay"),Xn&&nr.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete S.sdkProcessingMetadata;const k=Js(S,i,y,p.getOptions().tunnel);let b;try{b=await f.send(k)}catch(e){const t=new Error(d);try{t.cause=e}catch{}throw t}const v=(0,a.updateRateLimits)({},b);if((0,a.isRateLimited)(v,"replay"))throw new Zs(v);if("number"==typeof b.statusCode&&(b.statusCode<200||b.statusCode>=300))throw new Qs(b.statusCode);return b}class Qs extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Zs extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}
712class eo extends Error{constructor(){super("Session is too long, not sending replay")}}async function to(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Xs(e),!0}catch(n){if(n instanceof Qs||n instanceof Zs)throw n;if((0,a.setContext)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${d} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{(0,c.setTimeout)(async()=>{try{await to(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}const no="__THROTTLED";function ro(e,t,n){const r=new Map,s=e=>{const t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})};let o=!1;return(...n)=>{const i=Math.floor(Date.now()/1e3);if(s(i),[...r.values()].reduce((e,t)=>e+t,0)>=t){const e=o;return o=!0,e?"__SKIPPED":no}o=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...n)}}class so{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=Ws(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=ro((e,t)=>Cr(this,e,t),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(s&&(this.clickDetector=new vn(this,s)),Xn){const t=e._experiments;nr.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===l.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=Mn({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=Mn({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{Pn(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){Xn&&nr.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Xn&&nr.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Xn&&nr.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Xn&&nr.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Xn&&nr.log("Buffering is in progress, call `flush()` to save the replay"));Xn&&nr.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=wr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Xn&&nr.log("Buffering is in progress, call `flush()` to save the replay"));Xn&&nr.infoTick("Starting replay in buffer mode");const e=wr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=cn({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:js(this),.../iPhone|iPad|iPod/i.test(Hs?.userAgent??"")||/Macintosh/i.test(Hs?.userAgent??"")&&Hs?.maxTouchPoints&&Hs?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";const n=t??"manual";(0,a.getClient)()?.emit("replayEnd",{sessionId:this.session?.id,reason:n});try{Xn&&nr.log(`Stopping Replay triggered by ${n}`),Kr(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,r=this,hr(),r.session=void 0}catch(e){this.handleException(e)}var r}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Xn&&nr.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Xn&&nr.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Xn&&nr.log("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),Vr(this.session.id)),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||!1!==this.session?.sampled)return this.session?.id}
712checkAndHandleExpiredSession(){if(!this._lastActivity||!kr(this._lastActivity,this.timeouts.sessionIdlePause)||"session"!==this.session?.sampled)return!!this._checkSession();this.pause()}setInitialState(){const e=`${l.location.pathname}${l.location.hash}${l.location.search}`,t=`${l.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===no){const e=Mn({category:"replay.throttled"});this.addUpdate(()=>!Ir(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastActiveSpan||(0,a.getActiveSpan)(),t=e&&(0,a.getRootSpan)(e),n=(t&&(0,a.spanToJSON)(t).data||{})[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&n&&["route","custom"].includes(n))return(0,a.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=cr({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&(0,a.getClient)()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&Vr(this.session.id)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=wr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!vr(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{l.document.addEventListener("visibilitychange",this._handleVisibilityChange),l.addEventListener("blur",this._handleWindowBlur),l.addEventListener("focus",this._handleWindowFocus),l.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Ps(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=Yn(this)}_removeListeners(){try{l.document.removeEventListener("visibilitychange",this._handleVisibilityChange),l.removeEventListener("blur",this._handleWindowBlur),l.removeEventListener("focus",this._handleWindowFocus),l.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;vr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?Kr():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Xn&&nr.log("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:st.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(jn).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(Xr(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();
712n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await Us(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new eo;const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await to({replayId:e,recordingData:s,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendError"});const t=(0,a.getClient)();if(t){let n;n=e instanceof Zs?"ratelimit_backoff":e instanceof eo?"invalid":"send_error",t.recordDroppedEvent(n,"replay")}}}else Xn&&nr.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Xn&&nr.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(r||s)return Xn&&nr.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&Xn&&nr.log("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&mr(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{const n=Vs(e.target),r=t.join(",");return n?.matches(r)}))return!1;const n=e.length,r=this._options.mutationLimit,s=r&&n>r;if(n>this._options.mutationBreadcrumbLimit||s){const e=Mn({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(e)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function oo(e,t){return[...e,...t].join(",")}function io({mask:e,unmask:t,block:n,unblock:r,ignore:s}){return{maskTextSelector:oo(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:oo(t,[]),blockSelector:oo(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:oo(r,[]),ignoreSelector:oo(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function ao({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){if(s.unmaskTextSelector&&e.matches(s.unmaskTextSelector))return o;const i=n.includes(t),a=r&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return i||a?o.replace(/[\S]/g,"*"):o}const co='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lo=["content-length","content-type","accept"],uo=Symbol.for("sentry__originalRequestBody");let ho=!1,po=!1;function mo(){if("undefined"==typeof Request||po)return;const e=Request;try{const t=function(t,n){const r=new e(t,n);return null!=n?.body&&(r[uo]=n.body),r};t.prototype=e.prototype,a.GLOBAL_OBJ.Request=t,po=!0}catch{}}const fo=e=>new yo(e);class yo{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:s=!0,useCompression:o=!0,workerUrl:i,_experiments:c={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:h=750,mutationLimit:p=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:S=[],networkCaptureBodies:k=!0,networkRequestHeaders:b=[],networkResponseHeaders:v=[],mask:w=[],maskAttributes:_=["title","placeholder","aria-label"],unmask:I=[],block:C=[],unblock:E=[],ignore:T=[],maskFn:x,beforeAddRecordingEvent:M,beforeErrorSampling:R,onError:A,attachRawBodyFromRequest:O=!1}={}){this.name="Replay";const D=io({mask:w,unmask:I,block:C,unblock:E,ignore:T});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(e,t,n)=>ao({maskAttributes:_,maskAllText:l,privacyOptions:D,key:e,value:t,el:n}),...D,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(c.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,f),stickySession:s,useCompression:o,workerUrl:i,blockAllMedia:d,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:h,mutationLimit:p,slowClickTimeout:m,slowClickIgnoreSelectors:y,networkDetailAllowUrls:g,networkDetailDenyUrls:S,networkCaptureBodies:k,networkRequestHeaders:So(b),networkResponseHeaders:So(v),beforeAddRecordingEvent:M,beforeErrorSampling:R,onError:A,attachRawBodyFromRequest:O,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${co}`:co,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,a.isBrowser)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ho}set _isInitialized(e){ho=e}afterAllSetup(e){(0,a.isBrowser)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&mo(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
712startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){const t=this.getReplayId(!0);t&&((0,a.safeSetSpanJSONAttributes)(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&(0,a.safeSetSpanJSONAttributes)(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=go(this._initialOptions,e);this._replay=new so({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function go(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=(0,a.parseSampleRate)(n.replaysSessionSampleRate),o=(0,a.parseSampleRate)(n.replaysOnErrorSampleRate);return null==s&&null==o&&(0,a.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=s&&(r.sessionSampleRate=s),null!=o&&(r.errorSampleRate=o),r}function So(e){return[...lo,...e.map(e=>e.toLowerCase())]}function ko(){const e=(0,a.getClient)();return e?.getIntegrationByName("Replay")}},2241,[2242,1955]);
713__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return t.registerSpanErrorInstrumentation}}),Object.defineProperty(_e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.getCapturedScopesOnSpan}}),Object.defineProperty(_e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return n.markSpanForOtelSourceInference}}),Object.defineProperty(_e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.setCapturedScopesOnSpan}}),Object.defineProperty(_e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return n.spanShouldInferOtelSource}}),Object.defineProperty(_e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return o.TRACING_DEFAULTS}}),Object.defineProperty(_e,"startIdleSpan",{enumerable:!0,get:function(){return o.startIdleSpan}}),Object.defineProperty(_e,"SentrySpan",{enumerable:!0,get:function(){return u.SentrySpan}}),Object.defineProperty(_e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return c.SentryNonRecordingSpan}}),Object.defineProperty(_e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return b.SPAN_STATUS_ERROR}}),Object.defineProperty(_e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return b.SPAN_STATUS_OK}}),Object.defineProperty(_e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return b.SPAN_STATUS_UNSET}}),Object.defineProperty(_e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return b.getSpanStatusFromHttpCode}}),Object.defineProperty(_e,"setHttpStatus",{enumerable:!0,get:function(){return b.setHttpStatus}}),Object.defineProperty(_e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return f.SUPPRESS_TRACING_KEY}}),Object.defineProperty(_e,"continueTrace",{enumerable:!0,get:function(){return f.continueTrace}}),Object.defineProperty(_e,"isTracingSuppressed",{enumerable:!0,get:function(){return f.isTracingSuppressed}}),Object.defineProperty(_e,"startInactiveSpan",{enumerable:!0,get:function(){return f.startInactiveSpan}}),Object.defineProperty(_e,"startNewTrace",{enumerable:!0,get:function(){return f.startNewTrace}}),Object.defineProperty(_e,"startSpan",{enumerable:!0,get:function(){return f.startSpan}}),Object.defineProperty(_e,"startSpanManual",{enumerable:!0,get:function(){return f.startSpanManual}}),Object.defineProperty(_e,"suppressTracing",{enumerable:!0,get:function(){return f.suppressTracing}}),Object.defineProperty(_e,"withActiveSpan",{enumerable:!0,get:function(){return f.withActiveSpan}}),Object.defineProperty(_e,"bindScopeToEmitter",{enumerable:!0,get:function(){return p.bindScopeToEmitter}}),Object.defineProperty(_e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromClient}}),Object.defineProperty(_e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromScope}}),Object.defineProperty(_e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromSpan}}),Object.defineProperty(_e,"spanToBaggageHeader",{enumerable:!0,get:function(){return l.spanToBaggageHeader}}),Object.defineProperty(_e,"setMeasurement",{enumerable:!0,get:function(){return d.setMeasurement}}),Object.defineProperty(_e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return d.timedEventsToMeasurements}}),Object.defineProperty(_e,"sampleSpan",{enumerable:!0,get:function(){return s.sampleSpan}}),Object.defineProperty(_e,"logSpanEnd",{enumerable:!0,get:function(){return T.logSpanEnd}}),Object.defineProperty(_e,"logSpanStart",{enumerable:!0,get:function(){return T.logSpanStart}}),Object.defineProperty(_e,"captureSpan",{enumerable:!0,get:function(){return E.captureSpan}}),Object.defineProperty(_e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return E.safeSetSpanJSONAttributes}}),Object.defineProperty(_e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return O.GEN_AI_CONVERSATION_ID_ATTRIBUTE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_HIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_KEY}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_PROFILE_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_OP}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_URL_FULL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_EMAIL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_USERNAME}}),Object.defineProperty(_e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return O.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE}}),Object.defineProperty(_e,"createEventEnvelope",{enumerable:!0,get:function(){return P.createEventEnvelope}}),Object.defineProperty(_e,"createSessionEnvelope",{enumerable:!0,get:function(){return P.createSessionEnvelope}}),Object.defineProperty(_e,"createSpanEnvelope",{enumerable:!0,get:function(){return P.createSpanEnvelope}}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return S.addEventProcessor}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return S.captureCheckIn}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return S.captureEvent}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return S.captureException}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return S.captureMessage}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return S.captureSession}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return S.close}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return S.endSession}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return S.flush}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return S.isEnabled}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return S.isInitialized}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return S.lastEventId}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return S.setAttribute}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return S.setAttributes}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return S.setContext}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return S.setConversationId}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return S.setExtra}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return S.setExtras}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return S.setTag}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return S.setTags}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return S.setUser}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return S.startSession}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return S.withMonitor}}),Object.defineProperty(_e,"getClient",{enumerable:!0,get:function(){return y.getClient}}),Object.defineProperty(_e,"getCurrentScope",{enumerable:!0,get:function(){return y.getCurrentScope}}),Object.defineProperty(_e,"getExternalPropagationContext",{enumerable:!0,get:function(){return y.getExternalPropagationContext}}),Object.defineProperty(_e,"getGlobalScope",{enumerable:!0,get:function(){return y.getGlobalScope}}),Object.defineProperty(_e,"getIsolationScope",{enumerable:!0,get:function(){return y.getIsolationScope}}),Object.defineProperty(_e,"getTraceContextFromScope",{enumerable:!0,get:function(){return y.getTraceContextFromScope}}),Object.defineProperty(_e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return y.hasExternalPropagationContext}}),Object.defineProperty(_e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return y.registerExternalPropagationContext}}),Object.defineProperty(_e,"withIsolationScope",{enumerable:!0,get:function(){return y.withIsolationScope}}),Object.defineProperty(_e,"withScope",{enumerable:!0,get:function(){return y.withScope}}),Object.defineProperty(_e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return _.getDefaultCurrentScope}}),Object.defineProperty(_e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return _.getDefaultIsolationScope}}),Object.defineProperty(_e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return j.getAsyncContextStrategy}}),Object.defineProperty(_e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return j.setAsyncContextStrategy}}),Object.defineProperty(_e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return I._INTERNAL_createTracingChannelBinding}}
713),Object.defineProperty(_e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return I.waitForTracingChannelBinding}}),Object.defineProperty(_e,"getGlobalSingleton",{enumerable:!0,get:function(){return N.getGlobalSingleton}}),Object.defineProperty(_e,"getMainCarrier",{enumerable:!0,get:function(){return N.getMainCarrier}}),Object.defineProperty(_e,"closeSession",{enumerable:!0,get:function(){return A.closeSession}}),Object.defineProperty(_e,"makeSession",{enumerable:!0,get:function(){return A.makeSession}}),Object.defineProperty(_e,"updateSession",{enumerable:!0,get:function(){return A.updateSession}}),Object.defineProperty(_e,"Scope",{enumerable:!0,get:function(){return R.Scope}}),Object.defineProperty(_e,"notifyEventProcessors",{enumerable:!0,get:function(){return C.notifyEventProcessors}}),Object.defineProperty(_e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return M.SENTRY_API_VERSION}}),Object.defineProperty(_e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return M.getEnvelopeEndpointWithUrlEncodedAuth}}),Object.defineProperty(_e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return M.getReportDialogEndpoint}}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return U.Client}}),Object.defineProperty(_e,"initAndBind",{enumerable:!0,get:function(){return L.initAndBind}}),Object.defineProperty(_e,"setCurrentClient",{enumerable:!0,get:function(){return L.setCurrentClient}}),Object.defineProperty(_e,"createTransport",{enumerable:!0,get:function(){return F.createTransport}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return v.makeOfflineTransport}}),Object.defineProperty(_e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return h.MULTIPLEXED_TRANSPORT_EXTRA_KEY}}),Object.defineProperty(_e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return h.makeMultiplexedTransport}}),Object.defineProperty(_e,"addIntegration",{enumerable:!0,get:function(){return B.addIntegration}}),Object.defineProperty(_e,"defineIntegration",{enumerable:!0,get:function(){return B.defineIntegration}}),Object.defineProperty(_e,"extendIntegration",{enumerable:!0,get:function(){return B.extendIntegration}}),Object.defineProperty(_e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return B.getIntegrationsToSetup}}),Object.defineProperty(_e,"installedIntegrations",{enumerable:!0,get:function(){return B.installedIntegrations}}),Object.defineProperty(_e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return H._INTERNAL_clearAiProviderSkips}}),Object.defineProperty(_e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return H._INTERNAL_shouldSkipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return H._INTERNAL_skipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_filterKeyValueData",{enumerable:!0,get:function(){return D.filterKeyValueData}}),Object.defineProperty(_e,"_INTERNAL_filterCookies",{enumerable:!0,get:function(){return G.filterCookies}}),Object.defineProperty(_e,"_INTERNAL_filterQueryParams",{enumerable:!0,get:function(){return x.filterQueryParams}}),Object.defineProperty(_e,"envToBool",{enumerable:!0,get:function(){return k.envToBool}}),Object.defineProperty(_e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return Y.applyScopeDataToEvent}}),Object.defineProperty(_e,"getCombinedScopeData",{enumerable:!0,get:function(){return Y.getCombinedScopeData}}),Object.defineProperty(_e,"mergeScopeData",{enumerable:!0,get:function(){return Y.mergeScopeData}}),Object.defineProperty(_e,"prepareEvent",{enumerable:!0,get:function(){return w.prepareEvent}}),Object.defineProperty(_e,"createCheckInEnvelope",{enumerable:!0,get:function(){return q.createCheckInEnvelope}}),Object.defineProperty(_e,"hasSpansEnabled",{enumerable:!0,get:function(){return K.hasSpansEnabled}}),Object.defineProperty(_e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return z.isStreamedBeforeSendSpanCallback}}),Object.defineProperty(_e,"withStreamedSpan",{enumerable:!0,get:function(){return z.withStreamedSpan}}),Object.defineProperty(_e,"isSentryRequestUrl",{enumerable:!0,get:function(){return V.isSentryRequestUrl}}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return W.handleCallbackErrors}}),Object.defineProperty(_e,"fmt",{enumerable:!0,get:function(){return X.fmt}}),Object.defineProperty(_e,"parameterize",{enumerable:!0,get:function(){return X.parameterize}}),Object.defineProperty(_e,"handleTunnelRequest",{enumerable:!0,get:function(){return Q.handleTunnelRequest}}),Object.defineProperty(_e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return J.addAutoIpAddressToSession}}),Object.defineProperty(_e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return J.addAutoIpAddressToUser}}),Object.defineProperty(_e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return Z.INTERNAL_getSegmentSpan}}),Object.defineProperty(_e,"addChildSpanToSpan",{enumerable:!0,get:function(){return Z.addChildSpanToSpan}}),Object.defineProperty(_e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return Z.convertSpanLinksForEnvelope}}),Object.defineProperty(_e,"getActiveSpan",{enumerable:!0,get:function(){return Z.getActiveSpan}}),Object.defineProperty(_e,"getRootSpan",{enumerable:!0,get:function(){return Z.getRootSpan}}),Object.defineProperty(_e,"getSpanDescendants",{enumerable:!0,get:function(){return Z.getSpanDescendants}}),Object.defineProperty(_e,"getStatusMessage",{enumerable:!0,get:function(){return Z.getStatusMessage}}),Object.defineProperty(_e,"spanIsSampled",{enumerable:!0,get:function(){return Z.spanIsSampled}}),Object.defineProperty(_e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return Z.spanTimeInputToSeconds}}),Object.defineProperty(_e,"spanToJSON",{enumerable:!0,get:function(){return Z.spanToJSON}}),Object.defineProperty(_e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return Z.spanToStreamedSpanJSON}}),Object.defineProperty(_e,"spanToTraceContext",{enumerable:!0,get:function(){return Z.spanToTraceContext}}),Object.defineProperty(_e,"spanToTraceHeader",{enumerable:!0,get:function(){return Z.spanToTraceHeader}}),Object.defineProperty(_e,"updateSpanName",{enumerable:!0,get:function(){return Z.updateSpanName}}),Object.defineProperty(_e,"_INTERNAL_setSpanForScope",{enumerable:!0,get:function(){return $._setSpanForScope}}),Object.defineProperty(_e,"parseSampleRate",{enumerable:!0,get:function(){return ee.parseSampleRate}}),Object.defineProperty(_e,"applySdkMetadata",{enumerable:!0,get:function(){return te.applySdkMetadata}}),Object.defineProperty(_e,"getTraceData",{enumerable:!0,get:function(){return re.getTraceData}}),Object.defineProperty(_e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return ne.shouldPropagateTraceForUrl}}),Object.defineProperty(_e,"getTraceMetaTags",{enumerable:!0,get:function(){return oe.getTraceMetaTags}}),Object.defineProperty(_e,"debounce",{enumerable:!0,get:function(){return ue.debounce}}),Object.defineProperty(_e,"derefWeakRef",{enumerable:!0,get:function(){return ie.derefWeakRef}}),Object.defineProperty(_e,"makeWeakRef",{enumerable:!0,get:function(){return ie.makeWeakRef}}),Object.defineProperty(_e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return ae.shouldIgnoreSpan}}),Object.defineProperty(_e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return ce.MAX_BODY_BYTE_LENGTH}}),Object.defineProperty(_e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return ce.captureBodyFromWinterCGRequest}}),Object.defineProperty(_e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return ce.extractQueryParamsFromUrl}}
713),Object.defineProperty(_e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return ce.getMaxBodyByteLength}}),Object.defineProperty(_e,"headersToDict",{enumerable:!0,get:function(){return ce.headersToDict}}),Object.defineProperty(_e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return ce.httpHeadersToSpanAttributes}}),Object.defineProperty(_e,"httpRequestToRequestData",{enumerable:!0,get:function(){return ce.httpRequestToRequestData}}),Object.defineProperty(_e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return ce.winterCGHeadersToDict}}),Object.defineProperty(_e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return ce.winterCGRequestToRequestData}}),Object.defineProperty(_e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEFAULT_ENVIRONMENT}}),Object.defineProperty(_e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEV_ENVIRONMENT}}),Object.defineProperty(_e,"SPAN_KIND",{enumerable:!0,get:function(){return fe.SPAN_KIND}}),Object.defineProperty(_e,"spanKindToName",{enumerable:!0,get:function(){return fe.spanKindToName}}),Object.defineProperty(_e,"addBreadcrumb",{enumerable:!0,get:function(){return pe.addBreadcrumb}}),Object.defineProperty(_e,"functionToStringIntegration",{enumerable:!0,get:function(){return le.functionToStringIntegration}}),Object.defineProperty(_e,"eventFiltersIntegration",{enumerable:!0,get:function(){return de.eventFiltersIntegration}}),Object.defineProperty(_e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return de.inboundFiltersIntegration}}),Object.defineProperty(_e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return ge.linkedErrorsIntegration}}),Object.defineProperty(_e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return me.moduleMetadataIntegration}}),Object.defineProperty(_e,"requestDataIntegration",{enumerable:!0,get:function(){return se.requestDataIntegration}}),Object.defineProperty(_e,"captureConsoleIntegration",{enumerable:!0,get:function(){return Te.captureConsoleIntegration}}),Object.defineProperty(_e,"dedupeIntegration",{enumerable:!0,get:function(){return Ee.dedupeIntegration}}),Object.defineProperty(_e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return Oe.extraErrorDataIntegration}}),Object.defineProperty(_e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return Pe.rewriteFramesIntegration}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return Se.instrumentSupabaseClient}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return Se.supabaseIntegration}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return ye.zodErrorsIntegration}}),Object.defineProperty(_e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return je.thirdPartyErrorFilterIntegration}}),Object.defineProperty(_e,"consoleIntegration",{enumerable:!0,get:function(){return Ie.consoleIntegration}}),Object.defineProperty(_e,"featureFlagsIntegration",{enumerable:!0,get:function(){return Ne.featureFlagsIntegration}}),Object.defineProperty(_e,"growthbookIntegration",{enumerable:!0,get:function(){return Ae.growthbookIntegration}}),Object.defineProperty(_e,"conversationIdIntegration",{enumerable:!0,get:function(){return Re.conversationIdIntegration}}),Object.defineProperty(_e,"profiler",{enumerable:!0,get:function(){return Ce.profiler}}),Object.defineProperty(_e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return Me._INTERNAL_getTracingHeadersForFetchRequest}}),Object.defineProperty(_e,"instrumentFetchRequest",{enumerable:!0,get:function(){return Me.instrumentFetchRequest}}),Object.defineProperty(_e,"captureFeedback",{enumerable:!0,get:function(){return Ue.captureFeedback}}),Object.defineProperty(_e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureLog}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureSerializedLog}}),Object.defineProperty(_e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return Le._INTERNAL_flushLogsBuffer}}),Object.defineProperty(_e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return ve.consoleLoggingIntegration}}),Object.defineProperty(_e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return he._INTERNAL_captureMetric}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return he._INTERNAL_captureSerializedMetric}}),Object.defineProperty(_e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return he._INTERNAL_flushMetricsBuffer}}),Object.defineProperty(_e,"createConsolaReporter",{enumerable:!0,get:function(){return He.createConsolaReporter}}),Object.defineProperty(_e,"addVercelAiProcessors",{enumerable:!0,get:function(){return De.addVercelAiProcessors}}),Object.defineProperty(_e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return De.getProviderMetadataAttributes}}),Object.defineProperty(_e,"getTruncatedJsonString",{enumerable:!0,get:function(){return Ge.getTruncatedJsonString}}),Object.defineProperty(_e,"shouldEnableTruncation",{enumerable:!0,get:function(){return Ge.shouldEnableTruncation}}),Object.defineProperty(_e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE}}),Object.defineProperty(_e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE}}),Object.defineProperty(_e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return ke._INTERNAL_cleanupToolCallSpanContext}}),Object.defineProperty(_e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return ke._INTERNAL_getSpanContextForToolCallId}}),Object.defineProperty(_e,"_INTERNAL_toolCallSpanContextMap",{enumerable:!0,get:function(){return Ye.toolCallSpanContextMap}}),Object.defineProperty(_e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return we.instrumentOpenAiClient}}),Object.defineProperty(_e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return qe.OPENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return Ke.instrumentAnthropicAiClient}}),Object.defineProperty(_e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return ze.ANTHROPIC_AI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return Ve.instrumentGoogleGenAIClient}}),Object.defineProperty(_e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return We.GOOGLE_GENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return Xe.createLangChainCallbackHandler}}),Object.defineProperty(_e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return Qe._INTERNAL_mergeLangChainCallbackHandler}}),Object.defineProperty(_e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return Je.LANGCHAIN_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return Ze.instrumentCreateReactAgent}}),Object.defineProperty(_e,"instrumentLangGraph",{enumerable:!0,get:function(){return Ze.instrumentLangGraph}}),Object.defineProperty(_e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return Ze.instrumentStateGraphCompile}}),Object.defineProperty(_e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return $e.LANGGRAPH_INTEGRATION_NAME}}),Object.defineProperty(_e,"SpanBuffer",{enumerable:!0,get:function(){return et.SpanBuffer}}),Object.defineProperty(_e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return tt.hasSpanStreamingEnabled}}),Object.defineProperty(_e,"spanStreamingIntegration",{enumerable:!0,get:function(){return rt.spanStreamingIntegration}}),Object.defineProperty(_e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return nt._INTERNAL_FLAG_BUFFER_SIZE}}),Object.defineProperty(_e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return nt._INTERNAL_MAX_FLAGS_PER_SPAN}}),Object.defineProperty(_e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return nt._INTERNAL_addFeatureFlagToActiveSpan}}),Object.defineProperty(_e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return nt._INTERNAL_copyFlagsFromScopeToEvent}}),Object.defineProperty(_e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return nt._INTERNAL_insertFlagToScope}}),Object.defineProperty(_e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return ot.applyAggregateErrorsToEvent}}),Object.defineProperty(_e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return ut.getBreadcrumbLogLevelFromHttpStatusCode}}),Object.defineProperty(_e,"dsnFromString",{enumerable:!0,get:function(){return it.dsnFromString}}),Object.defineProperty(_e,"dsnToString",{enumerable:!0,get:function(){return it.dsnToString}}),Object.defineProperty(_e,"makeDsn",{enumerable:!0,get:function(){return it.makeDsn}}),Object.defineProperty(_e,"SentryError",{enumerable:!0,get:function(){return at.SentryError}}),Object.defineProperty(_e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return ct.GLOBAL_OBJ}}),Object.defineProperty(_e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationFilter}}),Object.defineProperty(_e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationHandler}}),Object.defineProperty(_e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchEndInstrumentationHandler}}),Object.defineProperty(_e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return pt.addGlobalErrorInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return lt.addGlobalUnhandledRejectionInstrumentationHandler}}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return dt.addHandler}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return dt.maybeInstrument}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return dt.resetInstrumentationHandlers}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return dt.triggerHandlers}}),Object.defineProperty(_e,"isDOMError",{enumerable:!0,get:function(){return gt.isDOMError}}),Object.defineProperty(_e,"isDOMException",{enumerable:!0,get:function(){return gt.isDOMException}}),Object.defineProperty(_e,"isElement",{enumerable:!0,get:function(){return gt.isElement}}),Object.defineProperty(_e,"isError",{enumerable:!0,get:function(){return gt.isError}}),Object.defineProperty(_e,"isErrorEvent",{enumerable:!0,get:function(){return gt.isErrorEvent}}),Object.defineProperty(_e,"isEvent",{enumerable:!0,get:function(){return gt.isEvent}}),Object.defineProperty(_e,"isInstanceOf",{enumerable:!0,get:function(){return gt.isInstanceOf}}),Object.defineProperty(_e,"isParameterizedString",{enumerable:!0,get:function(){return gt.isParameterizedString}}),Object.defineProperty(_e,"isPlainObject",{enumerable:!0,get:function(){return gt.isPlainObject}}),Object.defineProperty(_e,"isPrimitive",{enumerable:!0,get:function(){return gt.isPrimitive}}),Object.defineProperty(_e,"isRegExp",{enumerable:!0,get:function(){return gt.isRegExp}}),Object.defineProperty(_e,"isString",{enumerable:!0,get:function(){return gt.isString}}),Object.defineProperty(_e,"isSyntheticEvent",{enumerable:!0,get:function(){return gt.isSyntheticEvent}}),Object.defineProperty(_e,"isThenable",{enumerable:!0,get:function(){return gt.isThenable}}),Object.defineProperty(_e,"isVueViewModel",{enumerable:!0,get:function(){return gt.isVueViewModel}}),Object.defineProperty(_e,"isBrowser",{enumerable:!0,get:function(){return mt.isBrowser}}
713),Object.defineProperty(_e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return st.CONSOLE_LEVELS}}),Object.defineProperty(_e,"consoleSandbox",{enumerable:!0,get:function(){return st.consoleSandbox}}),Object.defineProperty(_e,"debug",{enumerable:!0,get:function(){return st.debug}}),Object.defineProperty(_e,"originalConsoleMethods",{enumerable:!0,get:function(){return st.originalConsoleMethods}}),Object.defineProperty(_e,"addContextToFrame",{enumerable:!0,get:function(){return Tt.addContextToFrame}}),Object.defineProperty(_e,"addExceptionMechanism",{enumerable:!0,get:function(){return Tt.addExceptionMechanism}}),Object.defineProperty(_e,"addExceptionTypeValue",{enumerable:!0,get:function(){return Tt.addExceptionTypeValue}}),Object.defineProperty(_e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return Tt.checkOrSetAlreadyCaught}}),Object.defineProperty(_e,"getEventDescription",{enumerable:!0,get:function(){return Tt.getEventDescription}}),Object.defineProperty(_e,"isAlreadyCaptured",{enumerable:!0,get:function(){return Tt.isAlreadyCaptured}}),Object.defineProperty(_e,"parseSemver",{enumerable:!0,get:function(){return Tt.parseSemver}}),Object.defineProperty(_e,"uuid4",{enumerable:!0,get:function(){return Tt.uuid4}}),Object.defineProperty(_e,"normalize",{enumerable:!0,get:function(){return Et.normalize}}),Object.defineProperty(_e,"normalizeToSize",{enumerable:!0,get:function(){return Et.normalizeToSize}}),Object.defineProperty(_e,"normalizeUrlToBase",{enumerable:!0,get:function(){return Et.normalizeUrlToBase}}),Object.defineProperty(_e,"setNormalizeStringifier",{enumerable:!0,get:function(){return Et.setNormalizeStringifier}}),Object.defineProperty(_e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return Ot.setNormalizationDepthOverrideHint}}),Object.defineProperty(_e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return Ot.setSkipNormalizationHint}}),Object.defineProperty(_e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return Pt.addNonEnumerableProperty}}),Object.defineProperty(_e,"convertToPlainObject",{enumerable:!0,get:function(){return Pt.convertToPlainObject}}),Object.defineProperty(_e,"dropUndefinedKeys",{enumerable:!0,get:function(){return Pt.dropUndefinedKeys}}),Object.defineProperty(_e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return Pt.extractExceptionKeysForMessage}}),Object.defineProperty(_e,"fill",{enumerable:!0,get:function(){return Pt.fill}}),Object.defineProperty(_e,"getOriginalFunction",{enumerable:!0,get:function(){return Pt.getOriginalFunction}}),Object.defineProperty(_e,"markFunctionWrapped",{enumerable:!0,get:function(){return Pt.markFunctionWrapped}}),Object.defineProperty(_e,"objectify",{enumerable:!0,get:function(){return Pt.objectify}}),Object.defineProperty(_e,"basename",{enumerable:!0,get:function(){return St.basename}}),Object.defineProperty(_e,"dirname",{enumerable:!0,get:function(){return St.dirname}}),Object.defineProperty(_e,"isAbsolute",{enumerable:!0,get:function(){return St.isAbsolute}}),Object.defineProperty(_e,"join",{enumerable:!0,get:function(){return St.join}}),Object.defineProperty(_e,"normalizePath",{enumerable:!0,get:function(){return St.normalizePath}}),Object.defineProperty(_e,"relative",{enumerable:!0,get:function(){return St.relative}}),Object.defineProperty(_e,"resolve",{enumerable:!0,get:function(){return St.resolve}}),Object.defineProperty(_e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return yt.SENTRY_BUFFER_FULL_ERROR}}),Object.defineProperty(_e,"makePromiseBuffer",{enumerable:!0,get:function(){return yt.makePromiseBuffer}}),Object.defineProperty(_e,"severityLevelFromString",{enumerable:!0,get:function(){return _t.severityLevelFromString}}),Object.defineProperty(_e,"replaceExports",{enumerable:!0,get:function(){return jt.replaceExports}}),Object.defineProperty(_e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return It.UNKNOWN_FUNCTION}}),Object.defineProperty(_e,"createStackParser",{enumerable:!0,get:function(){return It.createStackParser}}),Object.defineProperty(_e,"getFramesFromEvent",{enumerable:!0,get:function(){return It.getFramesFromEvent}}),Object.defineProperty(_e,"getFunctionName",{enumerable:!0,get:function(){return It.getFunctionName}}),Object.defineProperty(_e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return It.stackParserFromStackParserOptions}}),Object.defineProperty(_e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return It.stripSentryFramesAndReverse}}),Object.defineProperty(_e,"isMatchingPattern",{enumerable:!0,get:function(){return Nt.isMatchingPattern}}),Object.defineProperty(_e,"safeJoin",{enumerable:!0,get:function(){return Nt.safeJoin}}),Object.defineProperty(_e,"snipLine",{enumerable:!0,get:function(){return Nt.snipLine}}),Object.defineProperty(_e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return Nt.stringMatchesSomePattern}}),Object.defineProperty(_e,"truncate",{enumerable:!0,get:function(){return Nt.truncate}}),Object.defineProperty(_e,"isNativeFunction",{enumerable:!0,get:function(){return At.isNativeFunction}}
713),Object.defineProperty(_e,"supportsDOMError",{enumerable:!0,get:function(){return At.supportsDOMError}}),Object.defineProperty(_e,"supportsDOMException",{enumerable:!0,get:function(){return At.supportsDOMException}}),Object.defineProperty(_e,"supportsErrorEvent",{enumerable:!0,get:function(){return At.supportsErrorEvent}}),Object.defineProperty(_e,"supportsFetch",{enumerable:!0,get:function(){return At.supportsFetch}}),Object.defineProperty(_e,"supportsHistory",{enumerable:!0,get:function(){return At.supportsHistory}}),Object.defineProperty(_e,"supportsNativeFetch",{enumerable:!0,get:function(){return At.supportsNativeFetch}}),Object.defineProperty(_e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return At.supportsReferrerPolicy}}),Object.defineProperty(_e,"supportsReportingObserver",{enumerable:!0,get:function(){return At.supportsReportingObserver}}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return Rt.SyncPromise}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return Rt.rejectedSyncPromise}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return Rt.resolvedSyncPromise}}),Object.defineProperty(_e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return Ct.browserPerformanceTimeOrigin}}),Object.defineProperty(_e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return Ct.dateTimestampInSeconds}}),Object.defineProperty(_e,"timestampInSeconds",{enumerable:!0,get:function(){return Ct.timestampInSeconds}}),Object.defineProperty(_e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return Mt.TRACEPARENT_REGEXP}}),Object.defineProperty(_e,"extractTraceparentData",{enumerable:!0,get:function(){return Mt.extractTraceparentData}}),Object.defineProperty(_e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return Mt.generateSentryTraceHeader}}),Object.defineProperty(_e,"generateTraceparentHeader",{enumerable:!0,get:function(){return Mt.generateTraceparentHeader}}),Object.defineProperty(_e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return Mt.propagationContextFromHeaders}}),Object.defineProperty(_e,"shouldContinueTrace",{enumerable:!0,get:function(){return Mt.shouldContinueTrace}}),Object.defineProperty(_e,"getSDKSource",{enumerable:!0,get:function(){return Ut.getSDKSource}}),Object.defineProperty(_e,"isBrowserBundle",{enumerable:!0,get:function(){return Ut.isBrowserBundle}}),Object.defineProperty(_e,"addItemToEnvelope",{enumerable:!0,get:function(){return Lt.addItemToEnvelope}}),Object.defineProperty(_e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return Lt.createAttachmentEnvelopeItem}}),Object.defineProperty(_e,"createEnvelope",{enumerable:!0,get:function(){return Lt.createEnvelope}}),Object.defineProperty(_e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return Lt.createEventEnvelopeHeaders}}),Object.defineProperty(_e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return Lt.createSpanEnvelopeItem}}),Object.defineProperty(_e,"envelopeContainsItemType",{enumerable:!0,get:function(){return Lt.envelopeContainsItemType}}),Object.defineProperty(_e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return Lt.envelopeItemTypeToDataCategory}}),Object.defineProperty(_e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return Lt.forEachEnvelopeItem}}),Object.defineProperty(_e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return Lt.getSdkMetadataForEnvelopeHeader}}),Object.defineProperty(_e,"parseEnvelope",{enumerable:!0,get:function(){return Lt.parseEnvelope}}),Object.defineProperty(_e,"serializeEnvelope",{enumerable:!0,get:function(){return Lt.serializeEnvelope}}),Object.defineProperty(_e,"createClientReportEnvelope",{enumerable:!0,get:function(){return Ft.createClientReportEnvelope}}),Object.defineProperty(_e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return vt.DEFAULT_RETRY_AFTER}}),Object.defineProperty(_e,"disabledUntil",{enumerable:!0,get:function(){return vt.disabledUntil}}),Object.defineProperty(_e,"isRateLimited",{enumerable:!0,get:function(){return vt.isRateLimited}}),Object.defineProperty(_e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return vt.parseRetryAfterHeader}}),Object.defineProperty(_e,"updateRateLimits",{enumerable:!0,get:function(){return vt.updateRateLimits}}),Object.defineProperty(_e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return ht.MAX_BAGGAGE_STRING_LENGTH}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return ht.SENTRY_BAGGAGE_KEY_PREFIX}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return ht.SENTRY_BAGGAGE_KEY_PREFIX_REGEX}}),Object.defineProperty(_e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return ht.baggageHeaderToDynamicSamplingContext}}),Object.defineProperty(_e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return ht.dynamicSamplingContextToSentryBaggageHeader}}),Object.defineProperty(_e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return ht.mergeBaggageHeaders}}),Object.defineProperty(_e,"objectToBaggageHeader",{enumerable:!0,get:function(){return ht.objectToBaggageHeader}}),Object.defineProperty(_e,"parseBaggageHeader",{enumerable:!0,get:function(){return ht.parseBaggageHeader}}
713),Object.defineProperty(_e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return Bt.getHttpSpanDetailsFromUrlObject}}),Object.defineProperty(_e,"getSanitizedUrlString",{enumerable:!0,get:function(){return Bt.getSanitizedUrlString}}),Object.defineProperty(_e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return Bt.getSanitizedUrlStringFromUrlObject}}),Object.defineProperty(_e,"isURLObjectRelative",{enumerable:!0,get:function(){return Bt.isURLObjectRelative}}),Object.defineProperty(_e,"parseStringToURLObject",{enumerable:!0,get:function(){return Bt.parseStringToURLObject}}),Object.defineProperty(_e,"parseUrl",{enumerable:!0,get:function(){return Bt.parseUrl}}),Object.defineProperty(_e,"stripDataUrlContent",{enumerable:!0,get:function(){return Bt.stripDataUrlContent}}),Object.defineProperty(_e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return Bt.stripUrlQueryAndFragment}}),Object.defineProperty(_e,"_INTERNAL_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return Ht._enhanceErrorWithSentryInfo}}),Object.defineProperty(_e,"eventFromMessage",{enumerable:!0,get:function(){return Ht.eventFromMessage}}),Object.defineProperty(_e,"eventFromUnknownInput",{enumerable:!0,get:function(){return Ht.eventFromUnknownInput}}),Object.defineProperty(_e,"exceptionFromError",{enumerable:!0,get:function(){return Ht.exceptionFromError}}),Object.defineProperty(_e,"parseStackFrames",{enumerable:!0,get:function(){return Ht.parseStackFrames}}),Object.defineProperty(_e,"LRUMap",{enumerable:!0,get:function(){return Dt.LRUMap}}),Object.defineProperty(_e,"generateSpanId",{enumerable:!0,get:function(){return Gt.generateSpanId}}),Object.defineProperty(_e,"generateTraceId",{enumerable:!0,get:function(){return Gt.generateTraceId}}),Object.defineProperty(_e,"SDK_VERSION",{enumerable:!0,get:function(){return xt.SDK_VERSION}}),Object.defineProperty(_e,"getDebugImagesForResources",{enumerable:!0,get:function(){return kt.getDebugImagesForResources}}),Object.defineProperty(_e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return kt.getFilenameToDebugIdMap}}),Object.defineProperty(_e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return Yt.getFilenameToMetadataMap}}),Object.defineProperty(_e,"escapeStringForRegex",{enumerable:!0,get:function(){return wt.escapeStringForRegex}}),Object.defineProperty(_e,"_INTERNAL_safeDateNow",{enumerable:!0,get:function(){return qt.safeDateNow}}),Object.defineProperty(_e,"_INTERNAL_safeMathRandom",{enumerable:!0,get:function(){return qt.safeMathRandom}}),Object.defineProperty(_e,"_INTERNAL_withRandomSafeContext",{enumerable:!0,get:function(){return qt.withRandomSafeContext}}),Object.defineProperty(_e,"ServerRuntimeClient",{enumerable:!0,get:function(){return Kt.ServerRuntimeClient}}),Object.defineProperty(_e,"trpcMiddleware",{enumerable:!0,get:function(){return zt.trpcMiddleware}}),Object.defineProperty(_e,"wrapMcpServerWithSentry",{enumerable:!0,get:function(){return Vt.wrapMcpServerWithSentry}}),Object.defineProperty(_e,"isNodeEnv",{enumerable:!0,get:function(){return Wt.isNodeEnv}}),Object.defineProperty(_e,"loadModule",{enumerable:!0,get:function(){return Wt.loadModule}}),Object.defineProperty(_e,"filenameIsInApp",{enumerable:!0,get:function(){return Xt.filenameIsInApp}}),Object.defineProperty(_e,"node",{enumerable:!0,get:function(){return Xt.node}}),Object.defineProperty(_e,"nodeStackLineParser",{enumerable:!0,get:function(){return Xt.nodeStackLineParser}}),Object.defineProperty(_e,"vercelWaitUntil",{enumerable:!0,get:function(){return Qt.vercelWaitUntil}}),Object.defineProperty(_e,"flushIfServerless",{enumerable:!0,get:function(){return Jt.flushIfServerless}}),Object.defineProperty(_e,"callFrameToStackFrame",{enumerable:!0,get:function(){return Zt.callFrameToStackFrame}}),Object.defineProperty(_e,"watchdogTimer",{enumerable:!0,get:function(){return Zt.watchdogTimer}}),Object.defineProperty(_e,"_INTERNAL_safeUnref",{enumerable:!0,get:function(){return $t.safeUnref}}),Object.defineProperty(_e,"expressErrorHandler",{enumerable:!0,get:function(){return er.expressErrorHandler}}),Object.defineProperty(_e,"patchExpressModule",{enumerable:!0,get:function(){return er.patchExpressModule}}),Object.defineProperty(_e,"setupExpressErrorHandler",{enumerable:!0,get:function(){return er.setupExpressErrorHandler}}),Object.defineProperty(_e,"_INTERNAL_sanitizeSqlQuery",{enumerable:!0,get:function(){return tr._sanitizeSqlQuery}}),Object.defineProperty(_e,"instrumentPostgresJsSql",{enumerable:!0,get:function(){return tr.instrumentPostgresJsSql}}),Object.defineProperty(_e,"_INTERNAL_getSqlQuerySummary",{enumerable:!0,get:function(){return rr.getSqlQuerySummary}}),Object.defineProperty(_e,"patchHttpModuleClient",{enumerable:!0,get:function(){return nr.patchHttpModuleClient}}),Object.defineProperty(_e,"getHttpClientSubscriptions",{enumerable:!0,get:function(){return or.getHttpClientSubscriptions}}),Object.defineProperty(_e,"getHttpServerSubscriptions",{enumerable:!0,get:function(){return ur.getHttpServerSubscriptions}}),Object.defineProperty(_e,"isStaticAssetRequest",{enumerable:!0,get:function(){return ur.isStaticAssetRequest}}),Object.defineProperty(_e,"recordRequestSession",{enumerable:!0,get:function(){return ir.recordRequestSession}}),Object.defineProperty(_e,"addOutgoingRequestBreadcrumb",{enumerable:!0,get:function(){return ar.addOutgoingRequestBreadcrumb}}),Object.defineProperty(_e,"getRequestOptions",{enumerable:!0,get:function(){return cr.getRequestOptions}}),Object.defineProperty(_e,"getRequestUrl",{enumerable:!0,get:function(){return cr.getRequestUrl}}),Object.defineProperty(_e,"getRequestUrlFromClientRequest",{enumerable:!0,get:function(){return cr.getRequestUrlFromClientRequest}}),Object.defineProperty(_e,"getRequestUrlObject",{enumerable:!0,get:function(){return cr.getRequestUrlObject}}),Object.defineProperty(_e,"HTTP_ON_CLIENT_REQUEST",{enumerable:!0,get:function(){return br.HTTP_ON_CLIENT_REQUEST}}),Object.defineProperty(_e,"HTTP_ON_SERVER_REQUEST",{enumerable:!0,get:function(){return br.HTTP_ON_SERVER_REQUEST}}),Object.defineProperty(_e,"getComponentName",{enumerable:!0,get:function(){return fr.getComponentName}}),Object.defineProperty(_e,"getLocationHref",{enumerable:!0,get:function(){return fr.getLocationHref}}),Object.defineProperty(_e,"htmlTreeAsString",{enumerable:!0,get:function(){return fr.htmlTreeAsString}}),Object.defineProperty(_e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return pr.instrumentLangChainEmbeddings}}),Object.defineProperty(_e,"logger",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(_e,"metrics",{enumerable:!0,get:function(){return Be}});var t=r(_d[0]),n=r(_d[1]),o=r(_d[2]),u=r(_d[3]),c=r(_d[4]),b=r(_d[5]),f=r(_d[6]),p=r(_d[7]),l=r(_d[8]),d=r(_d[9]),s=r(_d[10]),T=r(_d[11]),E=r(_d[12]),O=r(_d[13]),P=r(_d[14]),S=r(_d[15]),y=r(_d[16]),_=r(_d[17]),j=r(_d[18]),I=r
713(_d[19]),N=r(_d[20]),A=r(_d[21]),R=r(_d[22]),C=r(_d[23]),M=r(_d[24]),U=r(_d[25]),L=r(_d[26]),F=r(_d[27]),v=r(_d[28]),h=r(_d[29]),B=r(_d[30]),H=r(_d[31]),D=r(_d[32]),G=r(_d[33]),x=r(_d[34]),k=r(_d[35]),Y=r(_d[36]),w=r(_d[37]),q=r(_d[38]),K=r(_d[39]),z=r(_d[40]),V=r(_d[41]),W=r(_d[42]),X=r(_d[43]),Q=r(_d[44]),J=r(_d[45]),Z=r(_d[46]),$=r(_d[47]),ee=r(_d[48]),te=r(_d[49]),re=r(_d[50]),ne=r(_d[51]),oe=r(_d[52]),ue=r(_d[53]),ie=r(_d[54]),ae=r(_d[55]),ce=r(_d[56]),be=r(_d[57]),fe=r(_d[58]),pe=r(_d[59]),le=r(_d[60]),de=r(_d[61]),ge=r(_d[62]),me=r(_d[63]),se=r(_d[64]),Te=r(_d[65]),Ee=r(_d[66]),Oe=r(_d[67]),Pe=r(_d[68]),Se=r(_d[69]),ye=r(_d[70]),je=r(_d[71]),Ie=r(_d[72]),Ne=r(_d[73]),Ae=r(_d[74]),Re=r(_d[75]),Ce=r(_d[76]),Me=r(_d[77]),Ue=r(_d[78]),Le=r(_d[79]),Fe=e(r(_d[80])),ve=r(_d[81]),he=r(_d[82]),Be=e(r(_d[83])),He=r(_d[84]),De=r(_d[85]),Ge=r(_d[86]),xe=r(_d[87]),ke=r(_d[88]),Ye=r(_d[89]),we=r(_d[90]),qe=r(_d[91]),Ke=r(_d[92]),ze=r(_d[93]),Ve=r(_d[94]),We=r(_d[95]),Xe=r(_d[96]),Qe=r(_d[97]),Je=r(_d[98]),Ze=r(_d[99]),$e=r(_d[100]),et=r(_d[101]),tt=r(_d[102]),rt=r(_d[103]),nt=r(_d[104]),ot=r(_d[105]),ut=r(_d[106]),it=r(_d[107]),at=r(_d[108]),ct=r(_d[109]),bt=r(_d[110]),ft=r(_d[111]),pt=r(_d[112]),lt=r(_d[113]),dt=r(_d[114]),gt=r(_d[115]),mt=r(_d[116]),st=r(_d[117]),Tt=r(_d[118]),Et=r(_d[119]),Ot=r(_d[120]),Pt=r(_d[121]),St=r(_d[122]),yt=r(_d[123]),_t=r(_d[124]),jt=r(_d[125]),It=r(_d[126]),Nt=r(_d[127]),At=r(_d[128]),Rt=r(_d[129]),Ct=r(_d[130]),Mt=r(_d[131]),Ut=r(_d[132]),Lt=r(_d[133]),Ft=r(_d[134]),vt=r(_d[135]),ht=r(_d[136]),Bt=r(_d[137]),Ht=r(_d[138]),Dt=r(_d[139]),Gt=r(_d[140]),xt=r(_d[141]),kt=r(_d[142]),Yt=r(_d[143]),wt=r(_d[144]),qt=r(_d[145]),Kt=r(_d[146]),zt=r(_d[147]),Vt=r(_d[148]),Wt=r(_d[149]),Xt=r(_d[150]),Qt=r(_d[151]),Jt=r(_d[152]),Zt=r(_d[153]),$t=r(_d[154]),er=r(_d[155]),tr=r(_d[156]),rr=r(_d[157]),nr=r(_d[158]),or=r(_d[159]),ur=r(_d[160]),ir=r(_d[161]),ar=r(_d[162]),cr=r(_d[163]),br=r(_d[164]),fr=r(_d[165]),pr=r(_d[166])},2242,[2243,2276,2281,2285,2284,2275,2294,2297,2287,2292,2296,2291,2298,2274,2286,2301,2273,2256,2254,2306,2249,2258,2257,2303,2308,2309,2332,2323,2333,2334,2310,2335,2336,2337,2339,2340,2299,2302,2341,2282,2289,2342,2295,2344,2345,2346,2253,2269,2280,2347,2348,2349,2350,2351,2270,2283,2352,2288,2353,2354,2355,2356,2357,2360,2362,2364,2367,2368,2369,2371,2372,2373,2374,2375,2377,2378,2379,2380,2381,2311,2382,2383,2319,2385,2386,2387,2388,2389,2393,2392,2395,2396,2399,2400,2403,2404,2407,2409,2408,2410,2411,2413,2293,2416,2376,2358,2417,2279,2418,2246,2365,2419,2245,2252,2247,2261,2316,2248,2259,2264,2265,2260,2370,2324,2366,2421,2251,2263,2420,2304,2266,2277,2318,2290,2326,2325,2278,2343,2359,2422,2268,2250,2305,2361,2423,2262,2424,2426,2427,2317,2441,2442,2443,2444,2307,2445,2452,2453,2454,2456,2462,2464,2457,2458,2455,2465,2466]);
714__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return _}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),l=r(d[4]),u=r(d[5]);let s=!1;function _(){function _(){const t=(0,l.getActiveSpan)(),o=t&&(0,l.getRootSpan)(t);if(o){const t="internal_error";n.DEBUG_BUILD&&c.debug.log(`[Tracing] Root span: ${t} -> Global error occurred`),o.setStatus({code:u.SPAN_STATUS_ERROR,message:t})}}s||(s=!0,(0,t.addGlobalErrorInstrumentationHandler)(_),(0,o.addGlobalUnhandledRejectionInstrumentationHandler)(_))}},2243,[2244,2245,2252,2248,2253,2275]);
715__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEBUG_BUILD",{enumerable:!0,get:function(){return _}});const _='undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},2244,[]);
716__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);let o=null;function u(n){const o="error";(0,t.addHandler)(o,n),(0,t.maybeInstrument)(o,l)}function l(){o=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(n,u,l,_,c){const s={column:_,error:c,line:l,msg:n,url:u};return(0,t.triggerHandlers)("error",s),!!o&&o.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},2245,[2246,2247]);
717__d(function(g,r,i,a,m,e,d){"use strict";
717Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return t}});const t=globalThis},2246,[]);
718__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return b}});var e=r(d[0]),n=r(d[1]),t=r(d[2]);const o={},u={};function c(e,n){return o[e]=o[e]||[],o[e].push(n),()=>{const t=o[e];if(t){const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}}function f(){Object.keys(o).forEach(e=>{o[e]=void 0})}function s(t,o){if(!u[t]){u[t]=!0;try{o()}catch(o){e.DEBUG_BUILD&&n.debug.error(`Error while instrumenting ${t}`,o)}}}function b(u,c){const f=u&&o[u];if(f)for(const o of f)try{o(c)}catch(c){e.DEBUG_BUILD&&n.debug.error(`Error while triggering instrumentation handler.\nType: ${u}\nName: ${(0,t.getFunctionName)(o)}\nError:`,c)}}},2247,[2244,2248,2251]);
719__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"consoleSandbox",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"originalConsoleMethods",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const c=["debug","info","warn","error","log","assert","trace"],u={};function l(n){if(!("console"in o.GLOBAL_OBJ))return n();const t=o.GLOBAL_OBJ.console,c={},l=Object.keys(u);l.forEach(n=>{const o=u[n];c[n]=t[n],t[n]=o});try{return n()}finally{l.forEach(n=>{t[n]=c[n]})}}function f(){return s().enabled}function b(n,...c){t.DEBUG_BUILD&&f()&&l(()=>{o.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...c)})}function s(){return t.DEBUG_BUILD?(0,n.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const O={enable:function(){s().enabled=!0},disable:function(){s().enabled=!1},isEnabled:f,log:function(...n){b("log",...n)},warn:function(...n){b("warn",...n)},error:function(...n){b("error",...n)}}},2248,[2249,2244,2246]);
720__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getGlobalSingleton",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getMainCarrier",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"getSentryCarrier",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);function _(){return u(t.GLOBAL_OBJ),t.GLOBAL_OBJ}function u(t){const _=t.__SENTRY__=t.__SENTRY__||{};return _.version=_.version||n.SDK_VERSION,_[n.SDK_VERSION]=_[n.SDK_VERSION]||{}}function o(_,u,o=t.GLOBAL_OBJ){const S=o.__SENTRY__=o.__SENTRY__||{},O=S[n.SDK_VERSION]=S[n.SDK_VERSION]||{};return O[_]||(O[_]=u())}},2249,[2250,2246]);
721__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SDK_VERSION",{enumerable:!0,get:function(){return t}});const t="10.63.0"},2250,[]);
722__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"createStackParser",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getFramesFromEvent",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"normalizeStackTracePath",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return a}});const t=50,n="?",c=/\(error: (.*)\)/,o=/captureMessage|captureException/;function u(...n){const o=n.sort((t,n)=>t[0]-n[0]).map(t=>t[1]);return(n,u=0,i=0)=>{const s=[],f=n.split("\n");for(let n=u;n<f.length;n++){let u=f[n];u.length>1024&&(u=u.slice(0,1024));const a=c.test(u)?u.replace(c,"$1"):u;if(!a.includes("Error: ")){for(const t of o){const n=t(a);if(n){s.push(n);break}}if(s.length>=t+i)break}}return a(s.slice(i))}}function i(t){return Array.isArray(t)?u(...t):t}function a(c){if(!c.length)return[];const u=Array.from(c);return/sentryWrapped/.test(s(u).function||"")&&u.pop(),u.reverse(),o.test(s(u).function||"")&&(u.pop(),o.test(s(u).function||"")&&u.pop()),u.slice(0,t).map(t=>({...t,filename:t.filename||s(u).filename,function:t.function||n}))}function s(t){return t[t.length-1]||{}}const f="<anonymous>";function l(t){try{return t&&"function"==typeof t&&t.name||f}catch{return f}}function p(t){const n=t.exception;if(n){const t=[];
722try{return n.values.forEach(n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)}),t}catch{return}}}function b(t){let n=t?.startsWith("file://")?t.slice(7):t;return n?.match(/\/[A-Z]:/)&&(n=n.slice(1)),n}},2251,[]);
723__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return o}});var n=r(d[0]),e=r(d[1]);let t=null;function o(n){const t="unhandledrejection";(0,e.addHandler)(t,n),(0,e.maybeInstrument)(t,u)}function u(){t=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(n){const o=n;return(0,e.triggerHandlers)("unhandledrejection",o),!t||t.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},2252,[2246,2247]);
724__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"TRACE_FLAG_NONE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"TRACE_FLAG_SAMPLED",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"addChildSpanToSpan",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"addStatusMessageAttribute",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"getActiveSpan",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getRootSpan",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"getSimpleStatus",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"getSpanDescendants",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"getStatusMessage",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"getStreamedSpanLinks",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"removeChildSpanFromSpan",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"showSpanDropWarning",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"spanIsSampled",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"spanToJSON",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"spanToTraceContext",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"spanToTraceHeader",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"spanToTraceparentHeader",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"spanToTransactionTraceContext",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"streamedSpanJsonToSerializedSpan",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"updateSpanName",{enumerable:!0,get:function(){return V}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]),f=r(d[7]),S=r(d[8]),_=r(d[9]),b=r(d[10]),T=r(d[11]),l=r(d[12]);const y=0,A=1;let O=!1;function I(t){const{spanId:n,traceId:o}=t.spanContext(),{data:s,op:u,parent_span_id:c,status:p,origin:f,links:S}=v(t);return{parent_span_id:c,span_id:n,trace_id:o,data:s,op:u,status:p,origin:f,links:S}}function P(t){const{spanId:n,traceId:o,isRemote:s}=t.spanContext(),u=s?n:v(t).parent_span_id,c=(0,p.getCapturedScopesOnSpan)(t).scope;return{parent_span_id:u,span_id:s?c?.getPropagationContext().propagationSpanId||(0,S.generateSpanId)():n,trace_id:o}}function N(t){const{traceId:n,spanId:o}=t.spanContext(),s=J(t);return(0,b.generateSentryTraceHeader)(n,o,s)}function E(t){const{traceId:n,spanId:o}=t.spanContext(),s=J(t);return(0,b.generateTraceparentHeader)(n,o,s)}function C(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:n,traceFlags:o,...s},attributes:u})=>({span_id:t,trace_id:n,sampled:o===A,attributes:u,...s})):void 0}function j(t){return t?.length?t.map(({context:{spanId:t,traceId:n,traceFlags:o},attributes:s})=>({span_id:t,trace_id:n,sampled:o===A,attributes:s})):void 0}function R(t){return"number"==typeof t?x(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?x(t.getTime()):(0,_.timestampInSeconds)()}function x(t){return t>9999999999?t/1e3:t}function v(t){if(F(t))return t.getSpanJSON();const{spanId:n,traceId:o}=t.spanContext();if(h(t)){const{attributes:s,startTime:c,name:p,endTime:f,status:S,links:_}=t;return{span_id:n,trace_id:o,data:s,description:p,parent_span_id:k(t),start_timestamp:R(c),timestamp:R(f)||void 0,status:L(S),op:s[u.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:s[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:C(_)}}return{span_id:n,trace_id:o,start_timestamp:0,data:{}}}function U(t){if(F(t))return t.getStreamedSpanJSON();const{spanId:n,traceId:o}=t.spanContext();if(h(t)){const{attributes:s,startTime:u,name:c,endTime:p,status:f,links:S}=t;return{name:c,span_id:n,trace_id:o,parent_span_id:k(t),start_timestamp:R(u),end_timestamp:R(p),is_segment:t===W(t),status:w(f),attributes:B(s,f),links:j(S)}}return{span_id:n,trace_id:o,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===W(t)}
724}function k(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function M(t){return{...t,attributes:(0,n.serializeAttributes)(t.attributes),links:t.links?.map(t=>({...t,attributes:(0,n.serializeAttributes)(t.attributes)}))}}function h(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}function F(t){return"function"==typeof t.getSpanJSON}function J(t){const{traceFlags:n}=t.spanContext();return n===A}function L(t){if(t&&t.code!==c.SPAN_STATUS_UNSET)return t.code===c.SPAN_STATUS_OK?"ok":t.message||"internal_error"}function w(t){return t&&t.code!==c.SPAN_STATUS_OK&&t.code!==c.SPAN_STATUS_UNSET&&"cancelled"!==t.message?"error":"ok"}function B(t,n){const o="error"===w(n)?n?.message:void 0;return{...o&&{[u.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE]:o},...t}}const Y="_sentryChildSpans",D="_sentryRootSpan";function G(t,n){const o=t[D]||t;(0,f.addNonEnumerableProperty)(n,D,o),t[Y]?t[Y].add(n):(0,f.addNonEnumerableProperty)(t,Y,new Set([n]))}function H(t,n){t[Y]&&t[Y].delete(n)}function z(t){const n=new Set;return(function t(o){if(!n.has(o)&&J(o)){n.add(o);const s=o[Y]?Array.from(o[Y]):[];for(const n of s)t(n)}})(t),Array.from(n)}const K=W;function W(t){return t[D]||t}function q(){const n=(0,o.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(n);return u.getActiveSpan?u.getActiveSpan():(0,l._getSpanForScope)((0,s.getCurrentScope)())}function Q(){O||((0,T.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),O=!0)}function V(t,n){t.updateName(n),t.setAttributes({[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[u.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:n})}},2253,[2254,2272,2249,2273,2274,2275,2276,2260,2268,2266,2277,2248,2269]);
725__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function c(n){const c=(0,t.getMainCarrier)();(0,t.getSentryCarrier)(c).acs=n}function o(c){const o=(0,t.getSentryCarrier)(c);return o.acs?o.acs:(0,n.getStackAsyncContextStrategy)()}},2254,[2249,2255]);
726__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"AsyncContextStack",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"getStackAsyncContextStrategy",{enumerable:!0,get:function(){return l}});var t=r(d[0]),e=r(d[1]),o=r(d[2]),c=r(d[3]),n=r(d[4]);class p{constructor(t,o){let c,n;c=t||new e.Scope,n=o||new e.Scope,this._stack=[{scope:c}],this._isolationScope=n}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return(0,c.isThenable)(n)?(0,o.chainAndCopyPromiseLike)(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function s(){const e=(0,n.getMainCarrier)(),o=(0,n.getSentryCarrier)(e);return o.stack=o.stack||new p((0,t.getDefaultCurrentScope)(),(0,t.getDefaultIsolationScope)())}function S(t){return s().withScope(t)}function u(t,e){const o=s();return o.withScope(()=>(o.getStackTop().scope=t,e(t)))}function h(t){return s().withScope(()=>t(s().getIsolationScope()))}function l(){return{withIsolationScope:h,withScope:S,withSetScope:u,withSetIsolationScope:(t,e)=>h(e),getCurrentScope:()=>s().getScope(),getIsolationScope:()=>s().getIsolationScope()}}},2255,[2256,2257,2271,2261,2249]);
727__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function o(){return(0,t.getGlobalSingleton)("defaultCurrentScope",()=>new n.Scope)}function u(){return(0,t.getGlobalSingleton)("defaultIsolationScope",()=>new n.Scope)}},2256,[2249,2257]);
728__d(function(g,r,i,a,m,e,d){"use strict";
728Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return b}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),h=r(d[4]),_=r(d[5]),c=r(d[6]),u=r(d[7]),p=r(d[8]),l=r(d[9]),v=r(d[10]);class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}}clone(){const t=new b;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,(0,p._setSpanForScope)(t,(0,p._getSpanForScope)(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,s.updateSession)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,s){return this.setTags({[t]:s})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,s){return this.setAttributes({[t]:s})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,s){return this._extra={...this._extra,[t]:s},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,s){return null===s?delete this._contexts[t]:this._contexts[t]=s,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const s="function"==typeof t?t(this):t,n=s instanceof b?s.getScopeData():(0,o.isPlainObject)(s)?t:void 0,{tags:h,attributes:_,extra:c,user:u,contexts:p,level:l,fingerprint:v=[],propagationContext:f,conversationId:x}=n||{};return this._tags={...this._tags,...h},this._attributes={...this._attributes,..._},this._extra={...this._extra,...c},this._contexts={...this._contexts,...p},u&&Object.keys(u).length&&(this._user=u),l&&(this._level=l),v.length&&(this._fingerprint=v),f&&(this._propagationContext=f),x&&(this._conversationId=x),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,p._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(t,s){const n="number"==typeof s?s:100;if(n<=0)return this;const o={timestamp:(0,v.dateTimestampInSeconds)(),...t,message:t.message?(0,l.truncate)(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,p._getSpanForScope)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=(0,h.merge)(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}
728captureException(s,o){const h=o?.event_id||(0,_.uuid4)();if(!this._client)return t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture exception!"),h;const c=new Error("Sentry syntheticException");return this._client.captureException(s,{originalException:s,syntheticException:c,...o,event_id:h},this),h}captureMessage(s,o,h){const c=h?.event_id||(0,_.uuid4)();if(!this._client)return t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture message!"),c;const u=h?.syntheticException??new Error(s);return this._client.captureMessage(s,o,{originalException:s,syntheticException:u,...h,event_id:c},this),c}captureEvent(s,o){const h=s.event_id||o?.event_id||(0,_.uuid4)();return this._client?(this._client.captureEvent(s,{...o,event_id:h},this),h):(t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture event!"),h)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}},2257,[2244,2258,2248,2261,2267,2259,2268,2262,2269,2263,2266]);
729__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"closeSession",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"makeSession",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"updateSession",{enumerable:!0,get:function(){return o}});var t=r(d[0]),s=r(d[1]);function n(n){const u=(0,s.timestampInSeconds)(),c={sid:(0,t.uuid4)(),init:!0,timestamp:u,started:u,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>p(c)};return n&&o(c,n),c}function o(n,o={}){if(o.user&&(!n.ipAddress&&o.user.ip_address&&(n.ipAddress=o.user.ip_address),n.did||o.did||(n.did=o.user.id||o.user.email||o.user.username)),n.timestamp=o.timestamp||(0,s.timestampInSeconds)(),o.abnormal_mechanism&&(n.abnormal_mechanism=o.abnormal_mechanism),o.ignoreDuration&&(n.ignoreDuration=o.ignoreDuration),o.sid&&(n.sid=32===o.sid.length?o.sid:(0,t.uuid4)()),void 0!==o.init&&(n.init=o.init),!n.did&&o.did&&(n.did=`${o.did}`),"number"==typeof o.started&&(n.started=o.started),n.ignoreDuration)n.duration=void 0;else if("number"==typeof o.duration)n.duration=o.duration;else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}o.release&&(n.release=o.release),o.environment&&(n.environment=o.environment),!n.ipAddress&&o.ipAddress&&(n.ipAddress=o.ipAddress),!n.userAgent&&o.userAgent&&(n.userAgent=o.userAgent),"number"==typeof o.errors&&(n.errors=o.errors),o.status&&(n.status=o.status)}function u(t,s){let n={};s?n={status:s}:"ok"===t.status&&(n={status:"exited"}),o(t,n)}function p(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}},2258,[2259,2266]);
730__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addContextToFrame",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"addExceptionMechanism",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"addExceptionTypeValue",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getEventDescription",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isAlreadyCaptured",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"parseSemver",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"uuid4",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function u(){const n=c.GLOBAL_OBJ;return n.crypto||n.msCrypto}let p;function s(n=u()){try{if(n?.randomUUID)return(0,t.withRandomSafeContext)(()=>n.randomUUID()).replace(/-/g,"")}catch{}return p||(p="10000000100040008000100000000000"),p.replace(/[018]/g,n=>(n^(16*(0,t.safeMathRandom)()&15)>>n/4).toString(16))}function f(n){return n.exception?.values?.[0]}function l(n){const{message:t,event_id:o}=n;if(t)return t;const c=f(n);return c?c.type&&c.value?`${c.type}: ${c.value}`:c.type||c.value||o||"<unknown>":o||"<unknown>"}function y(n,t,o){const c=n.exception=n.exception||{},u=c.values=c.values||[],p=u[0]=u[0]||{};p.value||(p.value=t||""),p.type||(p.type=o||"Error")}function h(n,t){const o=f(n);if(!o)return;const c=o.mechanism;if(o.mechanism={type:"generic",handled:!0,...c,...t},t&&"data"in t){const n={...c?.data,...t.data};o.mechanism.data=n}}const b=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?
730:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function _(n){return parseInt(n||"",10)}function v(n){const t=n.match(b)||[],o=_(t[1]),c=_(t[2]),u=_(t[3]);return{buildmetadata:t[5],major:isNaN(o)?void 0:o,minor:isNaN(c)?void 0:c,patch:isNaN(u)?void 0:u,prerelease:t[4]}}function x(n,t,c=5){if(void 0===t.lineno)return;const u=n.length,p=Math.max(Math.min(u-1,t.lineno-1),0);t.pre_context=n.slice(Math.max(0,p-c),p).map(n=>(0,o.snipLine)(n,0));const s=Math.min(u-1,p);t.context_line=(0,o.snipLine)(n[s],t.colno||0),t.post_context=n.slice(Math.min(p+1,u),p+1+c).map(n=>(0,o.snipLine)(n,0))}function O(t){if(j(t))return!0;try{(0,n.addNonEnumerableProperty)(t,"__sentry_captured__",!0)}catch{}return!1}function j(n){try{return n.__sentry_captured__}catch{}}},2259,[2260,2262,2263,2246]);
731__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"convertToPlainObject",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dropUndefinedKeys",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"fill",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getOriginalFunction",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"markFunctionWrapped",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"objectify",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"wrapMethod",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(o,c,u){if(!(c in o))return;const s=o[c];if("function"!=typeof s)return;const b=u(s);"function"==typeof b&&f(b,s);try{o[c]=b}catch{t.DEBUG_BUILD&&n.debug.log(`Failed to replace method "${c}" in object`,o)}}function u(o,c,u){try{Object.defineProperty(o,c,{value:u,writable:!0,configurable:!0})}catch{t.DEBUG_BUILD&&n.debug.log(`Failed to add non-enumerable property "${String(c)}" to object`,o)}}function f(t,n){try{const o=n.prototype||{};t.prototype=n.prototype=o,u(t,"__sentry_original__",n)}catch{}}function s(t,n,o,c=!0){const u=t[n];if("function"!=typeof u)throw new Error(`Cannot wrap method: ${n} is not a function`);if(b(u))throw new Error(`Attempting to wrap method ${n} multiple times`);f(o,u),Object.defineProperty(t,n,{writable:!0,configurable:!0,enumerable:c,value:o})}function b(t){return t.__sentry_original__}function l(t){if((0,o.isError)(t))return{message:t.message,name:t.name,stack:t.stack,...p(t)};if((0,o.isEvent)(t)){const{type:n,target:o,currentTarget:c,detail:u}=t;return{type:n,target:o,currentTarget:c,...u?{detail:u}:{},...p(t)}}return t}function p(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}function y(t){const n=Object.keys(l(t));return n.sort(),n[0]?n.join(", "):"[object has no keys]"}function j(t){return O(t,new Map)}function O(t,n){if(null===t||"object"!=typeof t)return t;const o=n.get(t);if(void 0!==o)return o;if(Array.isArray(t)){const o=[];return n.set(t,o),t.forEach(t=>{o.push(O(t,n))}),o}if(_(t)){const o={};n.set(t,o);return Object.keys(t).forEach(c=>{const u=t[c];void 0!==u&&(o[c]=O(u,n))}),o}return t}function _(t){const n=t.constructor;return n===Object||void 0===n}function P(t){let n;switch(!0){case null==t:n=new String(t);break;case"symbol"==typeof t||"bigint"==typeof t:n=Object(t);break;case(0,o.isPrimitive)(t):n=new t.constructor(t);break;default:n=t}return n}},2260,[2244,2248,2261]);
732__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isDOMError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isDOMException",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"isErrorEvent",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isEvent",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isInstanceOf",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"isParameterizedString",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"isPrimitive",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"isRequest",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isSyntheticEvent",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isThenable",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"isVueViewModel",{enumerable:!0,get:function(){return v}});const t=Object.prototype.toString;function n(n){switch(t.call(n)){case"[object Error]":case"[object E
732xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return P(n,Error)}}function u(n,u){return t.call(n)===`[object ${u}]`}function o(t){return u(t,"ErrorEvent")}function c(t){return u(t,"DOMError")}function f(t){return u(t,"DOMException")}function b(t){return u(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function s(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function p(t){return u(t,"Object")}function y(t){return"undefined"!=typeof Event&&P(t,Event)}function j(t){return"undefined"!=typeof Element&&P(t,Element)}function O(t){return u(t,"RegExp")}function E(t){return Boolean(t?.then&&"function"==typeof t.then)}function _(t){return p(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function P(t,n){try{return t instanceof n}catch{return!1}}function v(t){return!("object"!=typeof t||null===t||!(t.__isVue||t._isVue||t.__v_isVNode))}function x(t){return"undefined"!=typeof Request&&P(t,Request)}},2261,[]);
733__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"safeDateNow",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"safeMathRandom",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"withRandomSafeContext",{enumerable:!0,get:function(){return o}});var n=r(d[0]);let t;function o(o){if(void 0!==t)return t?t(o):o();const u=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),f=n.GLOBAL_OBJ;return u in f&&"function"==typeof f[u]?(t=f[u],t(o)):(t=null,o())}function u(){return o(()=>Math.random())}function f(){return o(()=>Date.now())}},2262,[2246]);
734__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isMatchingPattern",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"safeJoin",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"snipLine",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"truncate",{enumerable:!0,get:function(){return i}});var t=r(d[0]),n=r(d[1]);function i(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function u(t,n){let i=t;const u=i.length;if(u<=150)return i;n>u&&(n=u);let o=Math.max(n-60,0);o<5&&(o=0);let s=Math.min(o+140,u);return s>u-5&&(s=u),s===u&&(o=Math.max(s-140,0)),i=i.slice(o,s),o>0&&(i=`'{snip} ${i}`),s<u&&(i+=" {snip}"),i}function o(i,u){if(!Array.isArray(i))return"";const o=[];for(let u=0;u<i.length;u++){const s=i[u];(0,t.isPrimitive)(s)?o.push(String(s)):s instanceof Error?o.push(s.message?`${s.name}: ${s.message}`:s.name):o.push((0,n.stringifyValue)(void 0,s))}return o.join(u)}function s(n,i,u=!1){return!!(0,t.isString)(n)&&((0,t.isRegExp)(i)?i.test(n):(0,t.isString)(i)?u?n===i:n.includes(i):"function"==typeof i&&i(n))}function c(t,n=[],i=!1){for(const u of n)if(s(t,u,i))return!0;return!1}},2263,[2261,2264]);
735__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalize",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"normalizeToSize",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"normalizeUrlToBase",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"setNormalizeStringifier",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stringifyValue",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let c;function u(t){c=t}function f(t,n=100,o=1/0){try{return s("",t,n,o)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function l(t,n=3,o=102400){const c=f(t,n);return u=c,y(JSON.stringify(u))>o?l(t,n-1,o):c;var u}function s(o,c,u=1/0,f=1/0,l=j()){const[b,y]=l;if(null==c||["boolean","string"].includes(typeof c)||"number"==typeof c&&Number.isFinite(c))return c;const O=p(o,c);if(!O.startsWith("[object "))return O;if((0,t.hasSkipNormalizationHint)(c))return c;const h=(0,t.getNormalizationDepthOverrideHint)(c),P=void 0!==h?h:u;if(0===P)return O.replace("object ","");if(b(c))return"[Circular ~]";const $=c;if($&&"function"==typeof $.toJSON)try{return s("",$.toJSON(),P-1,f,l)}catch{}const z=Array.isArray(c)?[]:{};let N=0;const S=(0,n.convertToPlainObject)(c);for(const t in S){if(!Object.prototype.hasOwnProperty.call(S,t))continue;if(N>=f){z[t]="[MaxProperties ~]";break}const n=S[t];z[t]=s(t,n,P-1,f,l),N++}return y(c),z}function p(t,n){try{if(c){const t=c(n);if(t)return t}if(void 0!==g&&n===g)return"[Global]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${(0,o.getFunctionName)(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;return`[object ${b(n)}]`}catch(t){return`**non-serializable** (${t})`}}function b(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}function y(t){return~-encodeURI(t).split(/%..|./).length}function O(t,n){const o=n.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let c=t;try{c=decodeURI(t)}catch{}return c.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${o}/*`,"ig"),"app:///")}function j(){const t=new WeakSet;return[function(n){return!!t.has(n)||(t.add(n),!1)},function(n){t.delete(n)}]}},2264,[2265,2260,2251]);
736__d(function(g,r,i,a,m,e,d){"use strict";
736Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"hasSkipNormalizationHint",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=Symbol.for("sentry.skipNormalization"),o=Symbol.for("sentry.overrideNormalizationDepth");function u(o){(0,t.addNonEnumerableProperty)(o,n,!0)}function c(n,u){(0,t.addNonEnumerableProperty)(n,o,u)}function f(t){return Boolean(t[n])}function l(t){const n=t[o];return"number"==typeof n?n:void 0}},2265,[2260]);
737__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"timestampInSeconds",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);const o=1e3;function u(){return(0,n.safeDateNow)()/o}function f(){const{performance:f}=t.GLOBAL_OBJ;if(!f?.now||!f.timeOrigin)return u;const c=f.timeOrigin;return()=>(c+(0,n.withRandomSafeContext)(()=>f.now()))/o}let c;function s(){return(c??(c=f()))()}let b=null;function O(){const{performance:o}=t.GLOBAL_OBJ;if(!o?.now)return;const u=3e5,f=(0,n.withRandomSafeContext)(()=>o.now()),c=(0,n.safeDateNow)(),s=o.timeOrigin;if("number"==typeof s){if(Math.abs(s+f-c)<u)return s}const b=o.timing?.navigationStart;if("number"==typeof b){if(Math.abs(b+f-c)<u)return b}return c-f}function l(){return null===b&&(b=O()),b}},2266,[2262,2246]);
738__d(function(g,r,i,a,m,e,d){"use strict";function t(n,o,c=2){if(!o||"object"!=typeof o||c<=0)return o;if(n&&0===Object.keys(o).length)return n;const u={...n};for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(u[n]=t(u[n],o[n],c-1));return u}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return t}})},2267,[]);
739__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateSpanId",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"generateTraceId",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(){return(0,n.uuid4)()}function u(){return(0,n.uuid4)().substring(16)}},2268,[2259]);
740__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getSpanForScope",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_setSpanForScope",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o="_sentrySpan";function u(u,c){c?(0,n.addNonEnumerableProperty)(u,o,(0,t.makeWeakRef)(c)):delete u[o]}function c(n){return(0,t.derefWeakRef)(n[o])}},2269,[2260,2270]);
741__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"derefWeakRef",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"makeWeakRef",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){try{const f=t.GLOBAL_OBJ.WeakRef;if("function"==typeof f)return new f(n)}catch{}return n}function f(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}},2270,[2246]);
742__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"chainAndCopyPromiseLike",{enumerable:!0,get:function(){return o}});const n=n=>n instanceof Promise&&!n[t],t=Symbol("chained PromiseLike"),o=(t,o,u)=>{const s=t.then(n=>(o(n),n),n=>{throw u(n),n});return n(s)&&n(t)?s:c(t,s)},c=(n,o)=>{if(!o)return n;let c=!1;for(const t in n){if(t in o)continue;c=!0;const u=n[t];"function"==typeof u?Object.defineProperty(o,t,{value:(...t)=>u.apply(n,t),enumerable:!0,configurable:!0,writable:!0}):o[t]=u}return c&&Object.assign(o,{[t]:!0}),o}},2271,[]);
743__d(function(g,r,i,a,m,e,d){"use strict";
743Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"attributeValueToTypedAttributeValue",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"estimateTypedAttributesSizeInBytes",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isAttributeObject",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"serializeAttributes",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function n(t){return"object"==typeof t&&null!=t&&!Array.isArray(t)&&Object.keys(t).includes("value")}function u(t,u){const{value:o,unit:f}=n(t)?t:{value:t,unit:void 0},s=c(o),l=f&&"string"==typeof f?{unit:f}:{};if(s)return{...s,...l};if(!u||"skip-undefined"===u&&void 0===o)return;let y="";try{y=JSON.stringify(o)??""}catch{}return{value:y,type:"string",...l}}function o(t,n=!1){const o={};for(const[f,s]of Object.entries(t??{})){const t=u(s,n);t&&(o[f]=t)}return o}function f(n){if(!n)return 0;let u=0;for(const[o,f]of Object.entries(n)){u+=2*o.length,u+=2*f.type.length,u+=2*(f.unit?.length??0);const n=f.value;Array.isArray(n)?u+=s(n[0])*n.length:(0,t.isPrimitive)(n)?u+=s(n):u+=100}return u}function s(t){return"string"==typeof t?2*t.length:"boolean"==typeof t?4:"number"==typeof t?8:0}function c(t){if(Array.isArray(t))return{value:t,type:"array"};const n="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";return n?{value:t,type:n}:void 0}},2272,[2261]);
744__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getClient",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"getCurrentScope",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getExternalPropagationContext",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getGlobalScope",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getIsolationScope",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"getTraceContextFromScope",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"withIsolationScope",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"withScope",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]);let u;function p(t){u=t}function f(){return u?.()}function l(){return void 0!==u}function s(){const o=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(o).getCurrentScope()}function S(){const o=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(o).getIsolationScope()}function b(){return(0,n.getGlobalSingleton)("globalScope",()=>new o.Scope)}function y(...o){const c=(0,n.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(c);if(2===o.length){const[t,n]=o;return t?u.withSetScope(t,n):u.withScope(n)}return u.withScope(o[0])}function C(...o){const c=(0,n.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(c);if(2===o.length){const[t,n]=o;return t?u.withSetIsolationScope(t,n):u.withIsolationScope(n)}return u.withIsolationScope(o[0])}function P(){return s().getClient()}function x(t){const n=f();if(n)return{trace_id:n.traceId,span_id:n.spanId};const o=t.getPropagationContext(),{traceId:u,parentSpanId:p,propagationSpanId:l}=o,s={trace_id:u,span_id:l||(0,c.generateSpanId)()};return p&&(s.parent_span_id=p),s}},2273,[2254,2249,2257,2268]);
745__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return D}});const t="sentry.source",n="sentry.sample_rate",T="sentry.previous_trace_sample_rate",E="sentry.op",_="sentry.origin",u="sentry.status.message",I="sentry.idle_span_finish_reason",A="sentry.measurement_unit",S="sentry.measurement_value",o="sentry.release",c="sentry.environment",N="sentry.segment.name",R="sentry.segment.id",f="sentry.sdk.name",b="sentry.sdk.version",s="sentry.sdk.integrations",y="user.id",M="user.email",U="user.ip_address",l="user.n
745ame",O="sentry.custom_span_name",p="sentry.profile_id",P="sentry.exclusive_time",C="cache.hit",j="cache.key",B="cache.item_size",Y="http.request.method",L="url.full",D="sentry.link.type",h="gen_ai.conversation.id"},2274,[]);
746__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"setHttpStatus",{enumerable:!0,get:function(){return c}});const t=0,n=1,s=2;function u(t){if(t<400&&t>=100)return{code:n};if(t>=400&&t<500)switch(t){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"};default:return{code:s,message:"internal_error"}}return{code:s,message:"internal_error"}}function c(t,n){t.setAttribute("http.response.status_code",n);const s=u(n);"unknown_error"!==s.message&&t.setStatus(s)}},2275,[]);
747__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);const o="_sentryScope",u="_sentryIsolationScope",c=Symbol.for("sentry.otelSourceInference");function f(c,f,p){c&&((0,n.addNonEnumerableProperty)(c,u,(0,t.makeWeakRef)(p)),(0,n.addNonEnumerableProperty)(c,o,f))}function p(n){const c=n;return{scope:c[o],isolationScope:(0,t.derefWeakRef)(c[u])}}function l(t){(0,n.addNonEnumerableProperty)(t,c,!0)}function s(n){return!0===n[c]}},2276,[2260,2270]);
748__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"extractTraceparentData",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"generateTraceparentHeader",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"shouldContinueTrace",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),u=r(d[4]),p=r(d[5]);const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function f(t){if(!t)return;const n=t.match(s);if(!n)return;let o;return"1"===n[3]?o=!0:"0"===n[3]&&(o=!1),{traceId:n[1],parentSampled:o,parentSpanId:n[2]}}function l(t,o){const c=f(t),s=(0,n.baggageHeaderToDynamicSamplingContext)(o);if(!c?.traceId)return{traceId:(0,u.generateTraceId)(),sampleRand:(0,p.safeMathRandom)()};const l=I(c,s);s&&(s.sample_rand=l.toString());const{traceId:b,parentSpanId:S,parentSampled:R}=c;return{traceId:b,parentSpanId:S,sampled:R,dsc:s||{},sampleRand:l}}function b(t=(0,u.generateTraceId)(),n=(0,u.generateSpanId)(),o){let c="";return void 0!==o&&(c=o?"-1":"-0"),`${t}-${n}${c}`}function S(t=(0,u.generateTraceId)(),n=(0,u.generateSpanId)(),o){return`00-${t}-${n}-${o?"01":"00"}`}function I(t,n){const o=(0,c.parseSampleRate)(n?.sample_rand);if(void 0!==o)return o;const u=(0,c.parseSampleRate)(n?.sample_rate);return u&&void 0!==t?.parentSampled?t.parentSampled?(0,p.safeMathRandom)()*u:u+(0,p.safeMathRandom)()*(1-u):(0,p.safeMathRandom)()}function R(n,c){const u=(0,o.extractOrgIdFromClient)(n);if(c&&u&&c!==u)return t.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${c}, SDK options: ${u})`),!1;return!(n.getOptions().strictTraceContinuation||!1)||!(c&&!u||!c&&u)||(t.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${c}, Sentry client: ${u})`),!1)}},2277,[2248,2278,2279,2280,2268,2262]);
749__d(function(g,r,i,a,m,e,d){"use strict";
749Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"objectToBaggageHeader",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"parseBaggageHeader",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const o="sentry-",u=/^sentry-/,s=8192;function f(t){const n=l(t);if(!n)return;const c=Object.entries(n).reduce((t,[n,c])=>{if(n.startsWith(o)){t[n.slice(o.length)]=c}return t},{});return Object.keys(c).length>0?c:void 0}function b(t){if(!t)return;return j(Object.entries(t).reduce((t,[n,c])=>(c&&(t[`${o}${n}`]=c),t),{}))}function l(t){if(t&&((0,c.isString)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,n)=>{const c=y(n);return Object.entries(c).forEach(([n,c])=>{t[n]=c}),t},{}):y(t)}function y(t){return t.split(",").map(t=>{const n=t.indexOf("=");if(-1===n)return[];return[t.slice(0,n),t.slice(n+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[n,c])=>(n&&c&&(t[n]=c),t),{})}function j(c){if(0!==Object.keys(c).length)return Object.entries(c).reduce((c,[o,u],f)=>{const b=`${encodeURIComponent(o)}=${encodeURIComponent(u)}`,l=0===f?b:`${c},${b}`;return l.length>s?(t.DEBUG_BUILD&&n.debug.warn(`Not adding key: ${o} with val: ${u} to baggage header due to exceeding baggage size limits.`),c):l},"")}function O(t,n){if(!t)return n;const c=l(t),u=l(n);if(!u)return t;const s={};let f=!1;const b={},y={};for(const[t,n]of Object.entries(u))t.startsWith(o)?(b[t]=n,f=!0):y[t]=n;if(c)for(const[t,n]of Object.entries(c))f&&t.startsWith(o)||(s[t]=n);f&&Object.assign(s,b);for(const[t,n]of Object.entries(y))s[t]??(s[t]=n);return j(s)}},2278,[2244,2248,2261]);
750__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"dsnFromString",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"dsnToString",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"extractOrgIdFromClient",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"extractOrgIdFromDsnHost",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"makeDsn",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]);const o=/^o(\d+)\./,c=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(t){return"http"===t||"https"===t}function p(t,n=!1){const{host:o,path:c,pass:s,port:p,projectId:u,protocol:l,publicKey:f}=t;return`${l}://${f}${n&&s?`:${s}`:""}@${o}${p?`:${p}`:""}/${c?`${c}/`:c}${u}`}function u(t){const o=c.exec(t);if(!o)return void(0,n.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[s,p,u="",f="",b="",I=""]=o.slice(1);let y="",h=I;const $=h.split("/");if($.length>1&&(y=$.slice(0,-1).join("/"),h=$.pop()),h){const t=h.match(/^\d+/);t&&(h=t[0])}return l({host:f,pass:u,path:y,projectId:h,port:b,protocol:s,publicKey:p})}function l(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function f(o){if(!t.DEBUG_BUILD)return!0;const{port:c,projectId:p,protocol:u}=o;return!["protocol","publicKey","host","projectId"].find(t=>!o[t]&&(n.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(p.match(/^\d+$/)?s(u)?!c||!isNaN(parseInt(c,10))||(n.debug.error(`Invalid Sentry Dsn: Invalid port ${c}`),!1):(n.debug.error(`Invalid Sentry Dsn: Invalid protocol ${u}`),!1):(n.debug.error(`Invalid Sentry Dsn: Invalid projectId ${p}`),!1))}function b(t){const n=t.match(o);return n?.[1]}function I(t){const n=t.getOptions(),{host:o}=t.getDsn()||{};let c;
750return n.orgId?c=String(n.orgId):o&&(c=b(o)),c}function y(t){const n="string"==typeof t?u(t):l(t);if(n&&f(n))return n}},2279,[2244,2248]);
751__d(function(g,r,i,a,m,e,d){"use strict";function t(t){if("boolean"==typeof t)return Number(t);const n="string"==typeof t?parseFloat(t):t;return"number"!=typeof n||isNaN(n)||n<0||n>1?void 0:n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseSampleRate",{enumerable:!0,get:function(){return t}})},2280,[]);
752__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"startIdleSpan",{enumerable:!0,get:function(){return O}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]),c=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]),T=r(d[9]),f=r(d[10]),_=r(d[11]),I=r(d[12]),h=r(d[13]);const E={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},N="heartbeatFailed",A="idleTimeout",b="finalTimeout",R="externalFinish";function O(I,O={}){const y=new Map;let C,U=!1,F=R,P=!O.disableAutoFinish;const v=[],{idleTimeout:x=E.idleTimeout,finalTimeout:B=E.finalTimeout,childSpanTimeout:M=E.childSpanTimeout,beforeSpanEnd:J,trimIdleSpanEndTimestamp:L=!0}=O,w=(0,n.getClient)(),G=(0,n.getCurrentScope)();if(!w||!(0,p.hasSpansEnabled)()){const t=new T.SentryNonRecordingSpan({traceId:G.getPropagationContext().traceId});return(0,h.setCapturedScopesOnSpan)(t,G,(0,n.getIsolationScope)()),t}const j=(0,S.getActiveSpan)(),z=D(I);function H(){C&&(clearTimeout(C),C=void 0)}function Y(n){H(),C=setTimeout(()=>{!U&&0===y.size&&P&&(F=A,z.end(n))},x)}function k(n){C=setTimeout(()=>{!U&&P&&(F=N,z.end(n))},M)}function K(n){H(),y.set(n,!0);k((0,l.timestampInSeconds)()+M/1e3)}function $(n){if(y.has(n)&&y.delete(n),0===y.size){Y((0,l.timestampInSeconds)()+x/1e3)}}function q(n){U=!0,y.clear(),v.forEach(n=>n()),(0,u._setSpanForScope)(G,j);const p=(0,S.spanToJSON)(z),{start_timestamp:c}=p;if(!c)return;p.data[s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||z.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,F);const l=p.status;l&&"unknown"!==l||z.setStatus({code:_.SPAN_STATUS_OK}),o.debug.log(`[Tracing] Idle span "${p.op}" finished`);const T=(0,S.getSpanDescendants)(z).filter(n=>n!==z);let f=0;T.forEach(s=>{s.isRecording()&&(s.setStatus({code:_.SPAN_STATUS_ERROR,message:"cancelled"}),s.end(n),t.DEBUG_BUILD&&o.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(s,void 0,2)));const p=(0,S.spanToJSON)(s),{timestamp:c=0,start_timestamp:u=0}=p,l=u<=n,T=c-u<=(B+x)/1e3;if(t.DEBUG_BUILD){const n=JSON.stringify(s,void 0,2);l?T||o.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",n):o.debug.log("[Tracing] Discarding span since it happened after idle span was finished",n)}T&&l||((0,S.removeChildSpanFromSpan)(z,s),f++)}),f>0&&z.setAttribute("sentry.idle_span_discarded_spans",f)}return z.end=new Proxy(z.end,{apply(n,t,s){if(J&&J(z),(0,T.spanIsNonRecordingSpan)(t))return;const[o,...p]=s,u=o||(0,l.timestampInSeconds)(),f=(0,S.spanTimeInputToSeconds)(u),_=(0,S.getSpanDescendants)(z).filter(n=>n!==z),I=(0,S.spanToJSON)(z);if(!_.length||!L)return q(f),Reflect.apply(n,t,[f,...p]);const h=w.getOptions().ignoreSpans,E=_?.reduce((n,t)=>{const s=(0,S.spanToJSON)(t);return s.timestamp?h&&(0,c.shouldIgnoreSpan)({description:s.description,op:s.op,attributes:s.data},h)?n:n?Math.max(n,s.timestamp):s.timestamp:n},void 0),N=I.start_timestamp,A=Math.min(N?N+B/1e3:1/0,Math.max(N||-1/0,Math.min(f,E||1/0)));return q(A),Reflect.apply(n,t,[A,...p])}}),v.push(w.on("spanStart",n=>{if(U||n===z||(0,S.spanToJSON)(n).timestamp||n instanceof f.SentrySpan&&n.isStandaloneSpan())return;(0,S.getSpanDescendants)(z).includes(n)&&K(n.spanContext().spanId)})),v.push(w.on("spanEnd",n=>{U||$(n.spanContext().spanId)})),v.push(w.on("idleSpanEnableAutoFinish",n=>{n===z&&(P=!0,Y(),y.size&&k())})),O.disableAutoFinish||Y(),setTimeout(()=>{U||(z.setStatus({code:_.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),F=b,z.end())},B),z}function D(s){const p=(0,I.startInactiveSpan)(s);return(0,u._setSpanForScope)((0,n.getCurrentScope)(),p),t.DEBUG_BUILD&&o.debug.log("[Tracing] Started span is an i
752dle span"),p}},2281,[2273,2244,2274,2248,2282,2283,2269,2253,2266,2284,2285,2275,2294,2276]);
753__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hasSpansEnabled",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const _=n||(0,t.getClient)()?.getOptions();return!(!_||null==_.tracesSampleRate&&!_.tracesSampler)}},2282,[2273]);
754__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reparentChildSpans",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),i=r(d[2]);function o(t){n.debug.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function s(n,s){if(!s?.length)return!1;for(const p of s){if(u(p)){if(n.description&&(0,i.isMatchingPattern)(n.description,p))return t.DEBUG_BUILD&&o(n),!0;continue}const s=!!p.attributes&&Object.keys(p.attributes).length>0;if(!p.name&&!p.op&&!s)continue;const f=!p.name||n.description&&(0,i.isMatchingPattern)(n.description,p.name),b=!p.op||n.op&&(0,i.isMatchingPattern)(n.op,p.op),y=!p.attributes||Object.entries(p.attributes).every(([t,i])=>c(n.attributes?.[t],i));if(f&&b&&y)return t.DEBUG_BUILD&&o(n),!0}return!1}function c(t,n){return"string"==typeof t&&("string"==typeof n||n instanceof RegExp)?(0,i.isMatchingPattern)(t,n):Array.isArray(t)&&Array.isArray(n)?t.length===n.length&&t.every((t,i)=>t===n[i]):t===n}function p(t,n){const i=n.parent_span_id,o=n.span_id;if(i)for(const n of t)n.parent_span_id===o&&(n.parent_span_id=i)}function u(t){return"string"==typeof t||t instanceof RegExp}},2283,[2244,2248,2263]);
755__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"spanIsNonRecordingSpan",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]);const o=Symbol.for("sentry.nonRecordingSpan");class u{constructor(s={}){this._traceId=s.traceId||(0,n.generateTraceId)(),this._spanId=s.spanId||(0,n.generateSpanId)(),this.dropReason=s.dropReason,(0,t.addNonEnumerableProperty)(this,o,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:s.TRACE_FLAG_NONE}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,s){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function c(t){return!!t&&!0===t[o]}},2284,[2260,2268,2253]);
756__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentrySpan",{enumerable:!0,get:function(){return E}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),p=r(d[5]),o=r(d[6]),h=r(d[7]),S=r(d[8]),u=r(d[9]),c=r(d[10]),T=r(d[11]),l=r(d[12]);class E{constructor(t={}){this._traceId=t.traceId||(0,p.generateTraceId)(),this._spanId=t.spanId||(0,p.generateSpanId)(),this._startTime=t.startTimestamp||(0,h.timestampInSeconds)(),this._links=t.links,this._attributes={},this.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,s){}spanContext(){const{_spanId:t,_traceId:s,_sampled:n}=this;return{spanId:t,traceId:s,traceFlags:n?o.TRACE_FLAG_SAMPLED:o.TRACE_FLAG_NONE}}setAttribute(t,s){return void 0===s?delete this._attributes[t]:this._attributes[t]=s,this}setAttributes(t){return Object.keys(t).forEach(s=>this.setAttribute(s,t[s])),this}updateStartTime(t){this._startTime=(0,o.spanTimeInputToSeconds)(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,(0,l.spanShouldInferOtelSource)(this)||this.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(t){this._endTime||(this._endTime=(0,o.spanTimeInputToSeconds)(t),(0,u.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,o.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[a.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[a.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:(0,c.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,o.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,o.getRootSpan)(this).spanContext().spanId:void 0,links:(0,o.convertSpanLinksForEnvelope)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,o.getRootSpan)(this),status:(0,o.getSimpleStatus)(this._status),attributes:(0,o.addStatusMessageAttribute)(this._attributes,this._status),links:(0,o.getStreamedSpanLinks)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,a){s.DEBUG_BUILD&&_.debug.log("[Tracing] Adding an event to span:",t);const p=I(n)?n:a||(0,h.timestampInSeconds)(),S=I(n)?{}:n||{},u={name:t,time:(0,o.spanTimeInputToSeconds)(p),attributes:S};return this._events.push(u),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const a=(0,t.getClient)();a&&(a.emit("spanEnd",this),this._isStandaloneSpan||a.emit("afterSpanEnd",this));if(!(this._isStandaloneSpan||this===(0,o.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?N((0,n.createSpanEnvelope)([this],a)):(s.DEBUG_BUILD&&_.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),a&&a.recordDroppedEvent("sample_rate","span")));if(a&&(0,T.hasSpanStreamingEnabled)(a))return void a.emit("afterSegmentSpanEnd",this);const p=this._convertSpanToTransaction();if(p){((0,l.getCapturedScopesOnSpan)(this).scope||(0,t.getCurrentScope)()).captureEvent(p)}}_convertSpanToTransaction(){if(!A((0,o.spanToJSON)(this)))return;this._name||(s.DEBUG_BUILD&&_.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=(0,l.getCapturedScopesOnSpan)(this),p=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const h=(0,o.getSpanDescendants)(this).filter(t=>t!==this&&!b(t)).map(t=>(0,o.spanToJSON)(t)).filter(A),u=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let T=!1;h.forEach(t=>{delete t.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],t.op?.startsWith("gen_ai.")&&(T=!0)});const E={contexts:{trace:(0,o.spanToTransactionTraceContext)(this)},spans:h.length>1e3?h.sort((t,s)=>t.start_timestamp-s.start_timestamp).slice(0,1e3):h,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:(0,S.getDynamicSamplingContextFromSpan)(this),hasGenAiSpans:T},request:p,...u&&{transaction_info:{source:u}}},I=(0,c.timedEventsToMeasurements)(this._events);return I&&Object.keys(I).length&&(s.DEBUG_BUILD&&_.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(I,void 0,2)),E.measurements=I),E}}function I(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function A(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}function b(t){return t instanceof E&&t.isStandaloneSpan()}function N(s){const n=(0,t.getClient)();if(!n)return;const a=s[1];a&&0!==a.length?n.sendEnvelope(s):n.recordDroppedEvent("before_send","span")}},2285,[2273,2244,2286,2274,2248,2268,2253,2266,2287,2291,2292,2293,2276]);
757__d(function(g,r,i,a,m,e,d){"use strict";
757Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_enhanceEventWithSdkInfo",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createEventEnvelope",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createSessionEnvelope",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"createSpanEnvelope",{enumerable:!0,get:function(){return v}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),p=r(d[4]),c=r(d[5]),u=r(d[6]);function l(n,t){if(!t)return n;const o=n.sdk||{};return n.sdk={...o,name:o.name||t.name,version:o.version||t.version,integrations:[...n.sdk?.integrations||[],...t.integrations||[]],packages:[...n.sdk?.packages||[],...t.packages||[]],settings:n.sdk?.settings||t.settings?{...n.sdk?.settings,...t.settings}:void 0},n}function S(n,t,c,u){const l=(0,s.getSdkMetadataForEnvelopeHeader)(c),S={sent_at:new Date((0,p.safeDateNow)()).toISOString(),...l&&{sdk:l},...!!u&&t&&{dsn:(0,o.dsnToString)(t)}},f="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return(0,s.createEnvelope)(S,[f])}function f(n,t,o,p){const c=(0,s.getSdkMetadataForEnvelopeHeader)(o),u=n.type&&"replay_event"!==n.type?n.type:"event";l(n,o?.sdk);const S=(0,s.createEventEnvelopeHeaders)(n,c,p,t);delete n.sdkProcessingMetadata;const f=[{type:u},n];return(0,s.createEnvelope)(S,[f])}function v(l,S){const f=(0,n.getDynamicSamplingContextFromSpan)(l[0]),v=S?.getDsn(),k=S?.getOptions().tunnel,b={sent_at:new Date((0,p.safeDateNow)()).toISOString(),...(y=f,!!y.trace_id&&!!y.public_key&&{trace:f}),...!!k&&v&&{dsn:(0,o.dsnToString)(v)}};var y;const{beforeSendSpan:E,ignoreSpans:O}=S?.getOptions()||{},_=O?.length?l.filter(n=>{const t=(0,u.spanToJSON)(n);return!(0,c.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},O)}):l,h=l.length-_.length;h&&S?.recordDroppedEvent("before_send","span",h);const D=E?n=>{const o=(0,u.spanToJSON)(n),s=(0,t.isStreamedBeforeSendSpanCallback)(E)?o:E(o);return s||((0,u.showSpanDropWarning)(),o)}:u.spanToJSON,N=[];for(const n of _){const t=D(n);t&&N.push((0,s.createSpanEnvelopeItem)(t))}return(0,s.createEnvelope)(b,N)}},2286,[2287,2289,2279,2290,2262,2283,2253]);
758__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"freezeDscOnSpan",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"spanToBaggageHeader",{enumerable:!0,get:function(){return b}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),p=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]),f=r(d[9]);const _="_frozenDsc";function T(n,t){const o=n;(0,u.addNonEnumerableProperty)(o,_,t)}function E(t,o){const c=o.getOptions(),{publicKey:p}=o.getDsn()||{},u={environment:c.environment||n.DEFAULT_ENVIRONMENT,release:c.release,public_key:p,trace_id:t,org_id:(0,s.extractOrgIdFromClient)(o)};return o.emit("createDsc",u),u}function y(n,t){const o=t.getPropagationContext();return o.dsc||E(o.traceId,n)}function C(n){const s=(0,t.getClient)();if(!s)return{};const u=(0,S.getRootSpan)(n),T=(0,S.spanToJSON)(u),C=T.data,b=u.spanContext().traceState,O=b?.get("sentry.sample_rate")??C[o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??C[o.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function R(n){return"number"!=typeof O&&"string"!=typeof O||(n.sample_rate=`${O}`),n}const I=u[_];if(I)return R(I);if((0,l.spanIsNonRecordingSpan)(u)&&!(0,p.hasSpansEnabled)(s.getOptions())){const n=(0,f.getCapturedScopesOnSpan)(u).scope;if(n)return R({...y(s,n)})}const A=b?.get("sentry.dsc"),N=A&&(0,c.baggageHeaderToDynamicSamplingContext)(A);if(N)return R(N);const P=E(n.spanContext().traceId,s),x=C[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??C["sentry.span.source"],D=T.description;return"url"!==x&&D&&(P.transaction=D),(0,p.hasSpansEnabled)()&&(P.sampled=String((0,S.spanIsSampled)(u)),P.sample_rand=b?.get("sentry.sample_rand")??(0,f.getCapturedScopesOnSpan)(u).scope?.getPropagationContext().sampleRand.toString()),R(P),s.emit("createDsc",P,u),P}function b(n){const t=C(n);return(0,c.dynamicSamplingContextToSentryBaggageHeader)(t)}},2287,[2288,2273,2274,2278,2279,2282,2260,2253,2284,2276]);
759__d(function(g,r,i,a,m,e,d){"use strict";
759Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return n}});const t="production",n="development"},2288,[]);
760__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"withStreamedSpan",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return(0,t.addNonEnumerableProperty)(n,"_streamed",!0),n}function u(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}},2289,[2260]);
761__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addItemToEnvelope",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createEnvelope",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"envelopeContainsItemType",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"parseEnvelope",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"serializeEnvelope",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),i=r(d[3]),c=r(d[4]);function u(t,n=[]){return[t,n]}function f(t,n){const[o,i]=t;return[o,[...i,n]]}function l(t,n){const o=t[1];for(const t of o){if(n(t,t[0].type))return!0}return!1}function s(t,n){return l(t,(t,o)=>n.includes(o))}function p(n){const o=(0,t.getSentryCarrier)(c.GLOBAL_OBJ);return o.encodePolyfill?o.encodePolyfill(n):(new TextEncoder).encode(n)}function y(n){const o=(0,t.getSentryCarrier)(c.GLOBAL_OBJ);return o.decodePolyfill?o.decodePolyfill(n):(new TextDecoder).decode(n)}function b(t){const[n,i]=t;let c=JSON.stringify(n);function u(t){"string"==typeof c?c="string"==typeof t?c+t:[p(c),t]:c.push("string"==typeof t?p(t):t)}for(const t of i){const[n,i]=t;if(u(`\n${JSON.stringify(n)}\n`),"string"==typeof i||i instanceof Uint8Array)u(i);else{let t;try{t=JSON.stringify(i)}catch{t=JSON.stringify((0,o.normalize)(i))}u(t)}}return"string"==typeof c?c:O(c)}function O(t){const n=t.reduce((t,n)=>t+n.length,0),o=new Uint8Array(n);let i=0;for(const n of t)o.set(n,i),i+=n.length;return o}function v(t){let n="string"==typeof t?p(t):t;function o(t){const o=n.subarray(0,t);return n=n.subarray(t+1),o}function i(){let t=n.indexOf(10);return t<0&&(t=n.length),JSON.parse(y(o(t)))}const c=i(),u=[];for(;n.length;){const t=i(),n="number"==typeof t.length?t.length:void 0;u.push([t,n?o(n):i()])}return[c,u]}function _(t){return[{type:"span"},t]}function h(t){const n="string"==typeof t.data?p(t.data):t.data;return[{type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},n]}const P={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function S(t){return t in P}function j(t){return S(t)?P[t]:t}function E(t){if(!t?.sdk)return;const{name:n,version:o}=t.sdk;return{name:n,version:o}}function T(t,o,c,u){const f=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date((0,i.safeDateNow)()).toISOString(),...o&&{sdk:o},...!!c&&u&&{dsn:(0,n.dsnToString)(u)},...f&&{trace:f}}}},2290,[2249,2279,2264,2262,2246]);
762__d(function(g,r,i,a,m,e,d){"use strict";
762Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"logSpanEnd",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"logSpanStart",{enumerable:!0,get:function(){return p}});var n=r(d[0]),o=r(d[1]),t=r(d[2]);function p(p){if(!n.DEBUG_BUILD)return;const{description:s="< unknown name >",op:u="< unknown op >",parent_span_id:c}=(0,t.spanToJSON)(p),{spanId:$}=p.spanContext(),f=(0,t.spanIsSampled)(p),l=(0,t.getRootSpan)(p),I=l===p,S=`[Tracing] Starting ${f?"sampled":"unsampled"} ${I?"root ":""}span`,D=[`op: ${u}`,`name: ${s}`,`ID: ${$}`];if(c&&D.push(`parent ID: ${c}`),!I){const{op:n,description:o}=(0,t.spanToJSON)(l);D.push(`root ID: ${l.spanContext().spanId}`),n&&D.push(`root op: ${n}`),o&&D.push(`root description: ${o}`)}o.debug.log(`${S}\n  ${D.join("\n  ")}`)}function s(p){if(!n.DEBUG_BUILD)return;const{description:s="< unknown name >",op:u="< unknown op >"}=(0,t.spanToJSON)(p),{spanId:c}=p.spanContext(),$=`[Tracing] Finishing "${u}" ${(0,t.getRootSpan)(p)===p?"root ":""}span "${s}" with ID ${c}`;o.debug.log($)}},2291,[2244,2248,2253]);
763__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setMeasurement",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),E=r(d[2]),T=r(d[3]);function u(u,o,_,s=(0,T.getActiveSpan)()){const M=s&&(0,T.getRootSpan)(s);M&&(t.DEBUG_BUILD&&E.debug.log(`[Measurement] Setting measurement on root span: ${u} = ${o} ${_}`),M.addEvent(u,{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:o,[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:_}))}function o(t){if(!t||0===t.length)return;const E={};return t.forEach(t=>{const T=t.attributes||{},u=T[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],o=T[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof u&&"number"==typeof o&&(E[t.name]={value:o,unit:u})}),E}},2292,[2244,2274,2248,2253]);
764__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return"stream"===t.getOptions().traceLifecycle}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return t}})},2293,[]);
765__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"continueTrace",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"isTracingSuppressed",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"startInactiveSpan",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"startNewTrace",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"startSpan",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"startSpanManual",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"suppressTracing",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"withActiveSpan",{enumerable:!0,get:function(){return j}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),p=r(d[4]),c=r(d[5]),S=r(d[6]),u=r(d[7]),l=r(d[8]),f=r(d[9]),T=r(d[10]),C=r(d[11]),I=r(d[12]),R=r(d[13]),_=r(d[14]),b=r(d[15]),P=r(d[16]),E=r(d[17]),y=r(d[18]),A=r(d[19]),O=r(d[20]),h=r(d[21]),N=r(d[22]),w=r(d[23]);const v="__SENTRY_SUPPRESS_TRACING__";function x(n,t){const s=K();if(s.startSpan)return s.startSpan(n,t);const p=G(n),{forceTransaction:c,parentSpan:S,scope:l}=n,f=l?.clone();return(0,o.withScope)(f,()=>J(S)(()=>{const s=(0,o.getCurrentScope)(),l=H(s,S),f=(0,o.getClient)(),T=n.onlyIfParent&&!l?Y(s,f):z({parentSpan:l,spanArguments:p,forceTransaction:c,scope:s});return Q(T)&&l||(0,_._setSpanForScope)(s,T),(0,u.handleCallbackErrors)(()=>t(T),()=>{const{status:n}=(0,b.spanToJSON)(T);!T.isRecording()||n&&"ok"!==n||T.setStatus({code:N.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{T.end()})}))}function D(n,t){const s=K();if(s.startSpanManual)return s.startSpanManual(n,t);const p=G(n),{forceTransaction:c,parentSpan:S,scope:l}=n,f=l?.clone();return(0,o.withScope)(f,()=>J(S)(()=>{const s=(0,o.getCurrentScope)(),l=H(s,S),f=n.onlyIfParent&&!l?Y(s,(0,o.getClient)()):z({parentSpan:l,spanArguments:p,forceTransaction:c,scope:s});return Q(f)&&l||(0,_._setSpanForScope)(s,f),(0,u.handleCallbackErrors)(()=>t(f,()=>f.end()),()=>{const{status:n}=(0,b.spanToJSON)(f);!f.isRecording()||n&&"ok"!==n||f.setStatus({code:N.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function M(n){const t=K();if(t.startInactiveSpan)return t.startInactiveSpan(n);const s=G(n),{forceTransaction:p,parentSpan:c}=n;return(n.scope?t=>(0,o.withScope)(n.scope,t):void 0!==c?n=>j(c,n):n=>n())(()=>{const t=(0,o.getCurrentScope)(),S=H(t,c),u=(0,o.getClient)();return n.onlyIfParent&&!S?Y(t,u):z({parentSpan:S,spanArguments:s,forceTransaction:p,scope:t})})}const U=(s,p)=>{const S=(0,t.getMainCarrier)(),u=(0,n.getAsyncContextStrategy)(S);if(u.continueTrace)return u.continueTrace(s,p);const{sentryTrace:l,baggage:f}=s,T=(0,o.getClient)(),C=(0,c.baggageHeaderToDynamicSamplingContext)(f);return T&&!(0,P.shouldContinueTrace)(T,C?.org_id)?k(p):(0,o.withScope)(n=>{const t=(0,P.propagationContextFromHeaders)(l,f);return n.setPropagationContext(t),(0,_._setSpanForScope)(n,void 0),p()})};function j(n,t){const s=K();return s.withActiveSpan?s.withActiveSpan(n,t):(0,o.withScope)(o=>((0,_._setSpanForScope)(o,n||void 0),t(o)))}function B(n){const t=K();return t.suppressTracing?t.suppressTracing(n):(0,o.withScope)(t=>{t.setSDKProcessingMetadata({[v]:!0});const o=n();return t.setSDKProcessingMetadata({[v]:void 0}),o})}function F(n=(0,o.getCurrentScope)()){const t=K();return t.isTracingSuppressed?t.isTracingSuppressed(n):!0===n.getScopeData().sdkProcessingMetadata[v]}function k(n){const t=K();return t.startNewTrace?t.startNewTrace(n):(0,o.withScope)(t=>(t.setPropagationContext({traceId:(0,I.generateTraceId)(),sampleRand:(0,R.safeMathRandom)()}
765),s.DEBUG_BUILD&&S.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),j(null,n)))}function Y(n,t){t?.recordDroppedEvent("no_parent_span","span");const s=new O.SentryNonRecordingSpan({traceId:n.getPropagationContext().traceId});return(0,w.setCapturedScopesOnSpan)(s,n,(0,o.getIsolationScope)()),s}function z({parentSpan:n,spanArguments:t,forceTransaction:s,scope:p}){const c=(0,o.getIsolationScope)();if(!(0,l.hasSpansEnabled)()){const t={...c.getPropagationContext(),...p.getPropagationContext()},o=n?n.spanContext().traceId:t.traceId,S=new O.SentryNonRecordingSpan({traceId:o});return n&&!s&&(0,b.addChildSpanToSpan)(n,S),(0,w.setCapturedScopesOnSpan)(S,p,c),S}const S=(0,o.getClient)();if($(S,t)){F(p)||S?.recordDroppedEvent("ignored","span");const t=new O.SentryNonRecordingSpan({dropReason:"ignored",traceId:n?.spanContext().traceId??p.getPropagationContext().traceId});return(0,w.setCapturedScopesOnSpan)(t,p,c),t}let u;if(n&&!s)u=q(n,p,t,c),(0,b.addChildSpanToSpan)(n,u);else if(n){const o=(0,E.getDynamicSamplingContextFromSpan)(n),{traceId:s,spanId:S}=n.spanContext(),l=(0,b.spanIsSampled)(n);u=L({traceId:s,parentSpanId:S,...t},p,c,l),(0,E.freezeDscOnSpan)(u,o)}else{const{traceId:n,dsc:o,parentSpanId:s,sampled:S}={...c.getPropagationContext(),...p.getPropagationContext()};u=L({traceId:n,parentSpanId:s,...t},p,c,S),o&&(0,E.freezeDscOnSpan)(u,o)}return(0,y.logSpanStart)(u),u}function G(n){const t={isStandalone:(n.experimental||{}).standalone,...n};if(n.startTime){const o={...t};return o.startTimestamp=(0,b.spanTimeInputToSeconds)(n.startTime),delete o.startTime,o}return t}function K(){const o=(0,t.getMainCarrier)();return(0,n.getAsyncContextStrategy)(o)}function L(n,t,c,u){const l=(0,o.getClient)(),f=l?.getOptions()||{},{name:I=""}=n,R={spanAttributes:{...n.attributes},spanName:I,parentSampled:u};l?.emit("beforeSampling",R,{decision:!1});const _=R.parentSampled??u,b=R.spanAttributes,P=t.getPropagationContext(),E=F(t),[y,O,N]=E?[!1]:(0,A.sampleSpan)(f,{name:I,parentSampled:_,attributes:b,normalizedRequest:c.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,C.parseSampleRate)(P.dsc?.sample_rate)},P.sampleRand),v=new h.SentrySpan({...n,attributes:{[p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[p.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==O&&N?O:void 0,...b},sampled:y}
765);return y||!l||E||(s.DEBUG_BUILD&&S.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),l.recordDroppedEvent("sample_rate",(0,T.hasSpanStreamingEnabled)(l)?"span":"transaction")),(0,w.setCapturedScopesOnSpan)(v,t,c),l&&l.emit("spanStart",v),v}function q(n,t,s,p){const{spanId:c,traceId:S}=n.spanContext(),u=F(t),l=!u&&(0,b.spanIsSampled)(n),f=l?new h.SentrySpan({...s,parentSpanId:c,traceId:S,sampled:l}):new O.SentryNonRecordingSpan({traceId:S});(0,b.addChildSpanToSpan)(n,f),(0,w.setCapturedScopesOnSpan)(f,t,p);const C=(0,o.getClient)();return C?((0,T.hasSpanStreamingEnabled)(C)&&(0,O.spanIsNonRecordingSpan)(f)&&((0,O.spanIsNonRecordingSpan)(n)&&n.dropReason?(f.dropReason=n.dropReason,C.recordDroppedEvent(n.dropReason,"span")):u||(f.dropReason="sample_rate",C.recordDroppedEvent("sample_rate","span"))),C.emit("spanStart",f),s.endTimestamp&&(C.emit("spanEnd",f),C.emit("afterSpanEnd",f)),f):f}function H(n,t){if(t)return t;if(null===t)return;const s=(0,_._getSpanForScope)(n);if(!s)return;const p=(0,o.getClient)();return(p?p.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,b.getRootSpan)(s):s}function J(n){return void 0!==n?t=>j(n,t):n=>n()}function $(n,t){const o=n?.getOptions().ignoreSpans;return!!(n&&(0,T.hasSpanStreamingEnabled)(n)&&o?.length)&&(0,f.shouldIgnoreSpan)({description:t.name||"",op:t.attributes?.[p.SEMANTIC_ATTRIBUTE_SENTRY_OP]||t.op,attributes:t.attributes},o)}function Q(n){return(0,O.spanIsNonRecordingSpan)(n)&&"ignored"===n.dropReason}},2294,[2254,2249,2273,2244,2274,2278,2248,2295,2282,2283,2293,2280,2268,2262,2269,2253,2277,2287,2291,2296,2284,2285,2275,2276]);
766__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return t}});var e=r(d[0]),n=r(d[1]);function t(e,n,t=()=>{},o=()=>{}){let u;try{u=e()}catch(e){throw n(e),t(),e}return c(u,n,t,o)}function c(t,c,o,u){return(0,n.isThenable)(t)?(0,e.chainAndCopyPromiseLike)(t,e=>{o(),u(e)},e=>{c(e),o()}):(o(),u(t),t)}},2295,[2271,2261]);
767__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sampleSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),p=r(d[2]),o=r(d[3]);function s(s,l,c){if(!(0,p.hasSpansEnabled)(s))return[!1];let u,f;"function"==typeof s.tracesSampler?(f=s.tracesSampler({...l,inheritOrSampleWith:t=>"number"==typeof l.parentSampleRate?l.parentSampleRate:"boolean"==typeof l.parentSampled?Number(l.parentSampled):t}),u=!0):void 0!==l.parentSampled?f=l.parentSampled:void 0!==s.tracesSampleRate&&(f=s.tracesSampleRate,u=!0);const S=(0,o.parseSampleRate)(f);if(void 0===S)return t.DEBUG_BUILD&&n.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(f)} of type ${JSON.stringify(typeof f)}.`),[!1];if(!S)return t.DEBUG_BUILD&&n.debug.log("[Tracing] Discarding transaction because "+("function"==typeof s.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,S,u];const b=c<S;return b||t.DEBUG_BUILD&&n.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(f)})`),[b,S,u]}},2296,[2244,2248,2282,2280]);
768__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"bindScopeToEmitter",{enumerable:!0,get:function(){return f}});var n=r(d[0]);const t=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],o=["removeListener","off","removeEventListener"],c=Symbol("SentryScopeBoundListeners");let u;function s(n){return void 0!==u&&(n===u||n.listener===u)}function f(c,u=(0,n.getCurrentScope)()){const s=c;if(S(s))return c;h(s);for(const n of t)"function"==typeof s[n]&&(s[n]=y(s,s[n],u));for(const n of o)"function"==typeof s[n]&&(s[n]=v(s,s[n]));return"function"==typeof s.removeAllListeners&&(s.removeAllListeners=L(s,s.removeAllListeners)),c}function l(t,o){return function(...c){return(0,n.withScope)(o,()=>t.apply(this,c))}}function p(n){return"function"==typeof n}function y(n,t,o){return function(...c){const f=c[0],y=c[1],v=c.slice(2);if(!p(y)||s(y))return t.apply(this,c);const L=S(n)||h(n);let b=L.get(f);b||(b=new WeakMap,L.set(f,b));let _=b.get(y);_||(_=l(y,o),b.set(y,_));const w=u;u=_;try{return t.call(this,f,_,...v)}finally{u=w}}}function v(n,t){return function(...o){const c=o[0],u=o[1],s=o.slice(2),f=p(u)?S(n)?.get(c)?.get(u):void 0;return f?t.call(this,c,f,...s):t.apply(this,o)}}function L(n,t){return function(...o){const c=S(n);if(c)if(0===o.length)h(n);else{const n=o[0];c.delete(n)}return t.apply(this,o)}}function h(n){const t=new Map;return n[c]=t,t}function S(n){return n[c]}},2297,[2273]);
769__d(function(g,r,i,a,m,e,d){"use strict";
769Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyBeforeSendSpanCallback",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"captureSpan",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return N}});var n=r(d[0]),t=r(d[1]),S=r(d[2]),T=r(d[3]),E=r(d[4]),s=r(d[5]),o=r(d[6]);function _(s,o){const _=(0,S.spanToStreamedSpanJSON)(s),I=(0,S.INTERNAL_getSegmentSpan)(s),R=(0,S.spanToStreamedSpanJSON)(I),{isolationScope:M,scope:f}=(0,T.getCapturedScopesOnSpan)(s),U=(0,t.getCombinedScopeData)(M,f);u(_,R,o,U);const b=s.kind;o.emit("preprocessSpan",_,{spanKind:b}),_.is_segment&&(p(_,U),c(_,o),o.emit("processSegmentSpan",_)),o.emit("processSpan",_);const{beforeSendSpan:C}=o.getOptions(),l=C&&(0,E.isStreamedBeforeSendSpanCallback)(C)?A(_,C):_,O=l.attributes?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return O&&N(l,{"sentry.span.source":O}),{...(0,S.streamedSpanJsonToSerializedSpan)(l),_segmentSpan:I}}function p(n,t){N(n,(0,s.scopeContextsToSpanAttributes)(t.contexts))}function N(n,t){const S=n.attributes??(n.attributes={});Object.entries(t).forEach(([n,t])=>{null==t||n in S||(S[n]=t)})}function c(t,S){const T=S.getIntegrationNames();T.length&&N(t,{[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:T})}function u(t,S,T,E){const s=T.getSdkMetadata(),{release:_,environment:p}=T.getOptions();N(t,{[n.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:_,[n.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:p||o.DEFAULT_ENVIRONMENT,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME]:S.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID]:S.span_id,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME]:s?.sdk?.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION]:s?.sdk?.version,[n.SEMANTIC_ATTRIBUTE_USER_ID]:E.user?.id,[n.SEMANTIC_ATTRIBUTE_USER_EMAIL]:E.user?.email,[n.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:E.user?.ip_address,[n.SEMANTIC_ATTRIBUTE_USER_USERNAME]:E.user?.username,...E.attributes})}function A(n,t){const T=t(n);return T||((0,S.showSpanDropWarning)(),n)}},2298,[2274,2299,2253,2276,2289,2300,2288]);
770__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getCombinedScopeData",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"mergeAndOverwriteScopeData",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"mergeScopeData",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);function c(t,n){const{fingerprint:s,span:o,breadcrumbs:c,sdkProcessingMetadata:p}=n;l(t,n),o&&y(t,o),P(t,s),b(t,c),x(t,p)}function p(t,n){const{extra:o,tags:c,attributes:p,user:f,contexts:l,level:b,sdkProcessingMetadata:x,breadcrumbs:y,fingerprint:P,eventProcessors:h,attachments:S,propagationContext:k,transactionName:v,span:O}=n;u(t,"extra",o),u(t,"tags",c),u(t,"attributes",p),u(t,"user",f),u(t,"contexts",l),t.sdkProcessingMetadata=(0,s.merge)(t.sdkProcessingMetadata,x,2),b&&(t.level=b),v&&(t.transactionName=v),O&&(t.span=O),y.length&&(t.breadcrumbs=[...t.breadcrumbs,...y]),P.length&&(t.fingerprint=[...t.fingerprint,...P]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),S.length&&(t.attachments=[...t.attachments,...S]),t.propagationContext={...t.propagationContext,...k}}function u(t,n,o){t[n]=(0,s.merge)(t[n],o,1)}function f(n,s){const o=(0,t.getGlobalScope)().getScopeData();return n&&p(o,n.getScopeData()),s&&p(o,s.getScopeData()),o}function l(t,n){const{extra:s,tags:o,user:c,contexts:p,level:u,transactionName:f}=n;Object.keys(s).length&&(t.extra={...s,...t.extra}),Object.keys(o).length&&(t.tags={...o,...t.tags}),Object.keys(c).length&&(t.user={...c,...t.user}),Object.keys(p).length&&(t.contexts={...p,...t.contexts}),u&&(t.level=u),f&&"transaction"!==t.type&&(t.transaction=f)}function b(t,n){const s=[...t.breadcrumbs||[],...n];t.breadcrumbs=s.length?s:void 0}function x(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}function y(t,s){t.contexts={trace:(0,o.spanToTraceContext)(s),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:(0,n.getDynamicSamplingContextFromSpan)(s),...t.sdkProcessingMetadata};const c=(0,o.getRootSpan)(s),p=(0,o.spanToJSON)(c).description;p&&!t.transaction&&"transaction"===t.type&&(t.transaction=p)}function P(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n)),t.fingerprint.length||delete t.fingerprint}},2299,[2273,2287,2267,2253]);
771__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const o={},{response:s,profile:n,cloud_resource:l,culture:u,state:c}=t;if(s&&(null!=s.status_code&&(o["http.response.status_code"]=s.status_code),null!=s.body_size&&(o["http.response.body.size"]=s.body_size)),n&&(n.profile_id&&(o["sentry.profile_id"]=n.profile_id),n.profiler_id&&(o["sentry.profiler_id"]=n.profiler_id)),l)for(const[t,s]of Object.entries(l))null!=s&&(o[t]=s);
771u&&(u.locale&&(o["culture.locale"]=u.locale),u.timezone&&(o["culture.timezone"]=u.timezone)),c?.state&&"string"==typeof c.state.type&&(o["state.type"]=c.state.type);const p=t.angular;if(p){const t=p.version;"string"!=typeof t&&"number"!=typeof t||(o["angular.version"]=t)}const f=t.react;if(f){const t=f.version;"string"!=typeof t&&"number"!=typeof t||(o["react.version"]=t)}return o}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"scopeContextsToSpanAttributes",{enumerable:!0,get:function(){return t}})},2300,[]);
772__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return D}});var e=_r(d[0]),t=_r(d[1]),n=_r(d[2]),r=_r(d[3]),o=_r(d[4]),u=_r(d[5]),c=_r(d[6]),s=_r(d[7]),f=_r(d[8]),p=_r(d[9]),l=_r(d[10]);function b(t,n){return(0,e.getCurrentScope)().captureException(t,(0,s.parseEventHintOrCaptureContext)(n))}function S(t,n){const r="string"==typeof n?n:void 0,o="string"!=typeof n?{captureContext:n}:void 0;return(0,e.getCurrentScope)().captureMessage(t,r,o)}function I(t,n){return(0,e.getCurrentScope)().captureEvent(t,n)}function y(t,n){(0,e.getIsolationScope)().setContext(t,n)}function C(t){(0,e.getIsolationScope)().setExtras(t)}function O(t,n){(0,e.getIsolationScope)().setExtra(t,n)}function P(t){(0,e.getIsolationScope)().setTags(t)}function j(t,n){(0,e.getIsolationScope)().setTag(t,n)}function h(t){(0,e.getIsolationScope)().setAttributes(t)}function v(t,n){(0,e.getIsolationScope)().setAttribute(t,n)}function E(t){(0,e.getIsolationScope)().setUser(t)}function k(t){(0,e.getIsolationScope)().setConversationId(t)}function x(){return(0,e.getIsolationScope)().lastEventId()}function B(n,r){const u=(0,e.getCurrentScope)(),s=(0,e.getClient)();if(s){if(s.captureCheckIn)return s.captureCheckIn(n,r,u);t.DEBUG_BUILD&&o.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else t.DEBUG_BUILD&&o.debug.warn("Cannot capture check-in. No client defined.");return(0,c.uuid4)()}function D(t,n,o){function c(){const e=B({monitorSlug:t,status:"in_progress"},o),r=(0,p.timestampInSeconds)();function c(n){B({monitorSlug:t,status:n,checkInId:e,duration:(0,p.timestampInSeconds)()-r})}let s;try{s=n()}catch(e){throw c("error"),e}return(0,u.isThenable)(s)?s.then(e=>(c("ok"),e),e=>{throw c("error"),e}):(c("ok"),s)}return(0,e.withIsolationScope)(()=>o?.isolateTrace?(0,r.startNewTrace)(c):c())}async function U(n){const r=(0,e.getClient)();return r?r.flush(n):(t.DEBUG_BUILD&&o.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function _(n){const r=(0,e.getClient)();return r?r.close(n):(t.DEBUG_BUILD&&o.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function w(){return!!(0,e.getClient)()}function T(){const t=(0,e.getClient)();return!1!==t?.getOptions().enabled&&!!t?.getTransport()}function A(t){(0,e.getIsolationScope)().addEventProcessor(t)}function L(t){const r=(0,e.getIsolationScope)(),{user:o}=(0,f.getCombinedScopeData)(r,(0,e.getCurrentScope)()),{userAgent:u}
772=l.GLOBAL_OBJ.navigator||{},c=(0,n.makeSession)({user:o,...u&&{userAgent:u},...t}),s=r.getSession();return"ok"===s?.status&&(0,n.updateSession)(s,{status:"exited"}),G(),r.setSession(c),c}function G(){const t=(0,e.getIsolationScope)(),r=(0,e.getCurrentScope)().getSession()||t.getSession();r&&(0,n.closeSession)(r),M(),t.setSession()}function M(){const t=(0,e.getIsolationScope)(),n=(0,e.getClient)(),r=t.getSession();r&&n&&n.captureSession(r)}function N(e=!1){e?G():M()}},2301,[2273,2244,2258,2294,2248,2261,2259,2302,2299,2266,2246]);
773__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyClientOptions",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"applyDebugIds",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"applyDebugMeta",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"parseEventHintOrCaptureContext",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"prepareEvent",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),i=r(d[5]),u=r(d[6]),l=r(d[7]),p=r(d[8]),f=r(d[9]);function b(t,o,s,i,l,b){const{normalizeDepth:O=3,normalizeMaxBreadth:P=1e3}=t,j={...o,event_id:o.event_id||s.event_id||(0,c.uuid4)(),timestamp:o.timestamp||(0,f.dateTimestampInSeconds)()},k=s.integrations||t.integrations.map(t=>t.name);x(j,t),h(j,k),l&&l.emit("applyFrameMetadata",o),void 0===o.type&&_(j,t.stackParser);const z=E(i,s.captureContext);s.mechanism&&(0,c.addExceptionMechanism)(j,s.mechanism);const C=l?l.getEventProcessors():[],D=(0,u.getCombinedScopeData)(b,z),M=[...s.attachments||[],...D.attachments];M.length&&(s.attachments=M),(0,u.applyScopeDataToEvent)(j,D);const S=[...C,...D.eventProcessors];return(s.data&&!0===s.data.__sentry__?(0,p.resolvedSyncPromise)(j):(0,n.notifyEventProcessors)(S,j,s)).then(t=>(t&&v(t),"number"==typeof O&&O>0?y(t,O,P):t))}function x(n,o){const{environment:s,release:c,dist:i,maxValueLength:u}=o;n.environment=n.environment||s||t.DEFAULT_ENVIRONMENT,!n.release&&c&&(n.release=c),!n.dist&&i&&(n.dist=i);const p=n.request;p?.url&&u&&(p.url=(0,l.truncate)(p.url,u)),u&&n.exception?.values?.forEach(t=>{t.value&&(t.value=(0,l.truncate)(t.value,u))})}function _(t,n){const o=(0,s.getFilenameToDebugIdMap)(n);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=o[t.filename])})})}function v(t){const n={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const o=t.debug_meta.images;Object.entries(n).forEach(([t,n])=>{o.push({type:"sourcemap",code_file:t,debug_id:n})})}function h(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}function y(t,n,o){if(!t)return null;const s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,i.normalize)(t.data,n,o)}}))},...t.user&&{user:(0,i.normalize)(t.user,n,o)},...t.contexts&&{contexts:(0,i.normalize)(t.contexts,n,o)},...t.extra&&{extra:(0,i.normalize)(t.extra,n,o)}};return t.contexts?.trace&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=(0,i.normalize)(t.contexts.trace.data,n,o))),t.spans&&(s.spans=t.spans.map(t=>({...t,...t.data&&{data:(0,i.normalize)(t.data,n,o)}}))),t.contexts?.flags&&s.contexts&&(s.contexts.flags=(0,i.normalize)(t.contexts.flags,3,o)),s}function E(t,n){if(!n)return t;const s=t?t.clone():new o.Scope;return s.update(n),s}function O(t){if(t)return P(t)||k(t)?{captureContext:t}:t}function P(t){return t instanceof o.Scope||"function"==typeof t}const j=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function k(t){return Object.keys(t).some(t=>j.includes(t))}},2302,[2288,2303,2257,2305,2259,2264,2299,2263,2304,2266]);
774__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"notifyEventProcessors",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function s(n,t,s,l=0){try{const f=u(t,s,n,l);return(0,o.isThenable)(f)?f:(0,c.resolvedSyncPromise)(f)}catch(n){return(0,c.rejectedSyncPromise)(n)}}function u(c,s,l,f){const b=l[f];if(!c||!b)return c;const v=b({...c},s);return n.DEBUG_BUILD&&null===v&&t.debug.log(`Event processor "${b.id||"?"}" dropped event`),(0,o.isThenable)(v)?v.then(n=>u(n,s,l,f+1)):u(v,s,l,f+1)}},2303,[2244,2248,2261,2304]);
775__d(function(g,r,i,a,m,_e,d){"use strict";
775Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return t}});var e=r(d[0]);function t(e){return new s(t=>{t(e)})}function n(e){return new s((t,n)=>{n(e)})}class s{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new s((n,s)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){s(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){s(e)}else s(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,n)=>{let s,c;return this.then(t=>{c=!1,s=t,e&&e()},t=>{c=!0,s=t,e&&e()}).then(()=>{c?n(s):t(s)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(t){const n=(t,n)=>{0===this._state&&((0,e.isThenable)(n)?n.then(s,c):(this._state=t,this._value=n,this._executeHandlers()))},s=e=>{n(1,e)},c=e=>{n(2,e)};try{t(s,c)}catch(e){c(e)}}}},2304,[2261]);
776__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDebugImagesForResources",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]);let o,c,s,u;function f(t){const f=n.GLOBAL_OBJ._sentryDebugIds,i=n.GLOBAL_OBJ._debugIds;if(!f&&!i)return{};const l=f?Object.keys(f):[],b=i?Object.keys(i):[];if(u&&l.length===c&&b.length===s)return u;c=l.length,s=b.length,u={},o||(o={});const _=(n,c)=>{for(const s of n){const n=c[s],f=o?.[s];if(f&&u&&n)u[f[0]]=n,o&&(o[s]=[f[0],n]);else if(n){const c=t(s);for(let t=c.length-1;t>=0;t--){const f=c[t],i=f?.filename;if(i&&u&&o){u[i]=n,o[s]=[i,n];break}}}}};return f&&_(l,f),i&&_(b,i),u}function i(n,o){const c=f(n);if(!c)return[];const s=[];for(const n of o){const o=(0,t.normalizeStackTracePath)(n);o&&c[o]&&s.push({type:"sourcemap",code_file:n,debug_id:c[o]})}return s}},2305,[2251,2246]);
777__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function u(t,s=1){const l=(0,c.getAsyncContextStrategy)((0,n.getMainCarrier)()).getTracingChannelBinding?.();l?t():s&&(0,o.safeUnref)(setTimeout(()=>{u(t,s-1)},1))}function s(n,o){return{asyncLocalStorage:n,getStoreWithActiveSpan:n=>{const{scope:c,isolationScope:u}=o(),s=c.clone();return(0,t._setSpanForScope)(s,n),{scope:s,isolationScope:u}}}}},2306,[2249,2269,2307,2254]);
778__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return"object"==typeof n&&"function"==typeof n.unref&&n.unref(),n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"safeUnref",{enumerable:!0,get:function(){return n}})},2307,[]);
779__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return p}});var n=r(d[0]);const t="7";function o(n){const t=n.protocol?`${n.protocol}:`:"",o=n.port?`:${n.port}`:"";return`${t}//${n.host}${o}${n.path?`/${n.path}`:""}/api/`}function c(n){return`${o(n)}${n.projectId}/envelope/`}function u(n,o){const c={sentry_version:t};return n.publicKey&&(c.sentry_key=n.publicKey),o&&(c.sentry_client=`${o.name}/${o.version}`),new URLSearchParams(c).toString()}function s(n,t,o){return t||`${c(n)}?${u(n,o)}`}function p(t,c){const u=(0,n.makeDsn)(t);if(!u)return"";const s=`${o(u)}embed/error-page/`;let p=`dsn=${(0,n.dsnToString)(u)}`;for(const n in c)if("dsn"!==n&&"onClose"!==n)if("user"===n){const n=c.user;if(!n)continue;n.name&&(p+=`&name=${encodeURIComponent(n.name)}`),n.email&&(p+=`&email=${encodeURIComponent(n.email)}`)}else p+=`&${encodeURIComponent(n)}=${encodeURIComponent(c[n])}`;return`${s}?${p}`}},2308,[2279]);
780__d(function(g,r,i,a,m,_e,d){"use strict";
780Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return J}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),h=r(d[8]),l=r(d[9]),_=r(d[10]),f=r(d[11]),v=r(d[12]),E=r(d[13]),b=r(d[14]),S=r(d[15]),D=r(d[16]),y=r(d[17]),B=r(d[18]),I=r(d[19]),U=r(d[20]),w=r(d[21]),P=r(d[22]),L=r(d[23]),O=r(d[24]),T=r(d[25]),C=r(d[26]),k=r(d[27]),N=r(d[28]),R=r(d[29]),x=r(d[30]);const M="Not capturing exception because it's already been captured.",F="Discarded session because of missing or non-string release",G=Symbol.for("SentryInternalError"),A=Symbol.for("SentryDoNotSendEventError");function $(e){return{message:e,[G]:!0}}function j(e){return{message:e,[A]:!0}}function W(e){return!!e&&"object"==typeof e&&G in e}function q(e){return!!e&&"object"==typeof e&&A in e}function z(e,t,n,s,o){let c,u=0,p=!1;e.on(n,()=>{u=0,clearTimeout(c),p=!1}),e.on(t,t=>{if(u+=s(t),u>=8e5)o(e);else if(!p){const t=e.getOptions()._flushInterval??5e3;t>0&&(p=!0,c=(0,N.safeUnref)(setTimeout(()=>{o(e)},t)))}}),e.on("flush",()=>{o(e)})}class J{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=(0,L.makePromiseBuffer)(t.transportOptions?.bufferSize??v.DEFAULT_TRANSPORT_BUFFER_SIZE),this._dataCollection=(0,x.resolveDataCollectionOptions)(t),t.dsn?this._dsn=(0,S.makeDsn)(t.dsn):s.DEBUG_BUILD&&b.debug.warn("No DSN provided, client will not send events."),this._dsn){const n=(0,e.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&z(this,"afterCaptureLog","flushLogs",X,u._INTERNAL_flushLogsBuffer);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&z(this,"afterCaptureMetric","flushMetrics",Q,p._INTERNAL_flushMetricsBuffer)}captureException(e,t,n){const o=(0,U.uuid4)();if((0,U.checkOrSetAlreadyCaught)(e))return s.DEBUG_BUILD&&b.debug.log(M),o;const c={event_id:o,...t};return this._process(()=>this.eventFromException(e,c).then(e=>this._captureEvent(e,c,n)).then(e=>e),"error"),c.event_id}captureMessage(e,t,n,s){const o={event_id:(0,U.uuid4)(),...n},c=(0,B.isParameterizedString)(e)?e:String(e),u=(0,B.isPrimitive)(e),p=u?this.eventFromMessage(c,t,o):this.eventFromException(e,o);return this._process(()=>p.then(e=>this._captureEvent(e,o,s)),u?"unknown":"error"),o.event_id}captureEvent(e,t,n){const o=(0,U.uuid4)();if(t?.originalException&&(0,U.checkOrSetAlreadyCaught)(t.originalException))return s.DEBUG_BUILD&&b.debug.log(M),o;const c={event_id:o,...t},u=e.sdkProcessingMetadata||{},p=u.capturedSpanScope,h=u.capturedSpanIsolationScope,l=V(e.type);return this._process(()=>this._captureEvent(e,c,p||n,h),l),c.event_id}captureSession(e){this.sendSession(e),(0,h.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){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),s=await t.flush(e);return n&&s}async close(e){(0,u._INTERNAL_flushLogsBuffer)(this);const 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){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),(0,c.setupIntegration)(this,e,this._integrations),t||(0,c.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}
780){this.emit("beforeSendEvent",e,t);const n=(0,f.extractGenAiSpansFromEvent)(e,this);let s=(0,o.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])s=(0,D.addItemToEnvelope)(s,(0,D.createAttachmentEnvelopeItem)(e));n&&(s=(0,D.addItemToEnvelope)(s,n)),this.sendEnvelope(s).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:n,environment:c=t.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const t=e.attrs||{};if(!t.release&&!n)return void(s.DEBUG_BUILD&&b.debug.warn(F));t.release=t.release||n,t.environment=t.environment||c,e.attrs=t}else{if(!e.release&&!n)return void(s.DEBUG_BUILD&&b.debug.warn(F));e.release=e.release||n,e.environment=e.environment||c}this.emit("beforeSendSession",e);const u=(0,o.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(u)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const o=`${e}:${t}`;s.DEBUG_BUILD&&b.debug.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,s=(...e)=>t(...e);return n.add(s),()=>{n.delete(s)}}emit(e,...t){const 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 s.DEBUG_BUILD&&b.debug.error("Error while sending envelope:",e),{}}return s.DEBUG_BUILD&&b.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,c.setupIntegrations)(this,e),(0,c.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,s=!1;const o=t.exception?.values;if(o){s=!0,n=!1;for(const e of o)if(!1===e.mechanism?.handled){n=!0;break}}const c="ok"===e.status;(c&&0===e.errors||c&&n)&&((0,h.updateSession)(e,{...n&&{status:"crashed"},errors:e.errors||Number(s||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,s,o){const c=this.getOptions(),u=this.getIntegrationNames();return!t.integrations&&u.length&&(t.integrations=u),this.emit("preprocessEvent",e,t),e.type||o.setLastEventId(e.event_id||t.event_id),(0,P.prepareEvent)(c,e,t,s,this,o).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,n.getTraceContextFromScope)(s)},...e.contexts};const o=(0,l.getDynamicSamplingContextFromScope)(this,s);return e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},o=(0,n.getCurrentScope)(),c=(0,n.getIsolationScope)()){return s.DEBUG_BUILD&&H(e)&&b.debug.log(`Captured error event \`${(0,y.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,o,c).then(e=>e.event_id,e=>{s.DEBUG_BUILD&&(q(e)?b.debug.log(e.message):W(e)?b.debug.warn(e.message):b.debug.warn(e))})}_processEvent(e,t,n,s){const o=this.getOptions(),{sampleRate:c}=o,u=K(e),p=H(e),h=`before send for type \`${e.type||"error"}\``,l=void 0===c?void 0:(0,w.parseSampleRate)(c);if(p&&"number"==typeof l&&(0,O.safeMathRandom)()>l)return this.recordDroppedEvent("sample_rate","error"),(0,k.rejectedSyncPromise)(j(`Discarding event because it's not included in the random sample (sampling rate = ${c})`));const _=V(e.type);return this._prepareEvent(e,t,n,s).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",_),j("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;return Y(Z(this,o,e,t),h)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",_),u){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw j(`${h} returned \`null\`, will not send event.`)}const c=n.getSession()||s.getSession();if(p&&c&&this._updateSessionFromEvent(c,o),u){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const l=o.transaction_info;if(u&&l&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...l,source:e}}return this.sendEvent(o,t),o}).then(null,e=>{if(q(e)||W(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),$(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===L.SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,s]=e.split(":");return{reason:n,category:s,quantity:t}})}_flushOutcomes(){s.DEBUG_BUILD&&b.debug.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(s.DEBUG_BUILD&&b.debug.log("No outcomes to send"));if(!this._dsn)return void(s.DEBUG_BUILD&&b.debug.log("No dsn provided, will not send outcomes"));s.DEBUG_BUILD&&b.debug.log("Sending outcomes:",e);const t=(0,E.createClientReportEnvelope)(e,this._options.tunnel&&(0,S.dsnToString)(this._dsn));this.sendEnvelope(t)}}function V(e){return"replay_event"===e?"replay":e||"error"}function Y(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,B.isThenable)(e))return e.then(e=>{if(!(0,B.isPlainObject)(e)&&null!==e)throw $(n);return e},e=>{throw $(`${t} rejected with ${e}`)});if(!(0,B.isPlainObject)(e)&&null!==e)throw $(n);return e}function Z(e,t,n,s){const{beforeSend:o,beforeSendTransaction:c,ignoreSpans:u}=t,p=!(0,_.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan;let h=n;if(H(h)&&o)return o(h,s);if(K(h)){if(p||u){const t=(0,R.convertTransactionEventToSpanJson)(h);if(u?.length&&(0,T.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},u))return null;if(p){const e=p(t);e?h=(0,I.merge)(n,(0,R.convertSpanJsonToTransactionEvent)(e)):(0,C.showSpanDropWarning)()}if(h.spans){const t=[],n=h.spans;for(const e of n)if(u?.length&&(0,T.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},u))(0,T.reparentChildSpans)(n,e);else if(p){const n=p(e);n?t.push(n):((0,C.showSpanDropWarning)(),t.push(e))}else t.push(e);const s=h.spans.length-t.length;s&&e.recordDroppedEvent("before_send","span",s),h.spans=t}}if(c){if(h.spans){const e=h.spans.length;h.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return c(h,s)}}return h}function H(e){return void 0===e.type}function K(e){return"transaction"===e.type}function Q(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+ee(e.attributes)}function X(e){let t=0;return e.message&&(t+=2*e.message.length),t+ee(e.attributes)}function ee(e){if(!e)return 0;let t=0;
780return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*te(e[0]):(0,B.isPrimitive)(e)?t+=te(e):t+=100}),t}function te(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}},2309,[2308,2288,2273,2244,2286,2310,2311,2319,2258,2287,2289,2321,2323,2326,2248,2279,2290,2327,2261,2267,2259,2280,2302,2324,2262,2283,2253,2304,2307,2328,2329]);
781__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addIntegration",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"afterSetupIntegrations",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"defineIntegration",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extendIntegration",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"installedIntegrations",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setupIntegration",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"setupIntegrations",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const c=[];function u(n){const t={};return n.forEach(n=>{const{name:o}=n,c=t[o];c&&!c.isDefaultInstance&&n.isDefaultInstance||(t[o]=n)}),Object.values(t)}function s(n){const t=n.defaultIntegrations||[],o=n.integrations;let c;if(t.forEach(n=>{n.isDefaultInstance=!0}),Array.isArray(o))c=[...t,...o];else if("function"==typeof o){const n=o(t);c=Array.isArray(n)?n:[n]}else c=t;return u(c)}function f(n,t){const o={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(n)}),t.forEach(t=>{t&&l(n,t,o)}),o}function p(n,t){for(const o of t)o?.afterAllSetup&&o.afterAllSetup(n)}function l(n,u,s){if(s[u.name])t.DEBUG_BUILD&&o.debug.log(`Integration skipped because it was already installed: ${u.name}`);else{if(s[u.name]=u,c.includes(u.name)||"function"!=typeof u.setupOnce||(u.setupOnce(),c.push(u.name)),u.setup&&"function"==typeof u.setup&&u.setup(n),"function"==typeof u.preprocessEvent){const t=u.preprocessEvent.bind(u);n.on("preprocessEvent",(o,c)=>t(o,c,n))}if("function"==typeof u.processEvent){const t=u.processEvent.bind(u),o=Object.assign((o,c)=>t(o,c,n),{id:u.name});n.addEventProcessor(o)}["processSpan","processSegmentSpan"].forEach(t=>{const o=u[t];"function"==typeof o&&n.on(t,t=>o.call(u,t,n))}),t.DEBUG_BUILD&&o.debug.log(`Integration installed: ${u.name}`)}}function b(c){const u=(0,n.getClient)();u?u.addIntegration(c):t.DEBUG_BUILD&&o.debug.warn(`Cannot add integration "${c.name}" because no SDK Client is available.`)}function y(n){return n}function I(n,t){const o={...n,...t};for(const c in t){const u=n[c],s=t[c];if("function"==typeof u&&"function"==typeof s){const n=new Proxy(u,{apply:(n,t,o)=>(Reflect.apply(n,t,o),Reflect.apply(s,t,o))});o[c]=n}}return o}},2310,[2273,2244,2248]);
782__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"_INTERNAL_getLogBuffer",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"_removeLoneSurrogates",{enumerable:!0,get:function(){return D}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),l=r(d[5]),c=r(d[6]),f=r(d[7]),p=r(d[8]),_=r(d[9]),b=r(d[10]),y=r(d[11]),v=r(d[12]);const L=100;function S(t,n,o,s=!0){!o||t[n]&&!s||(t[n]=o)}function E(t,n){const o=B(),s=O(t);void 0===s?o.set(t,[n]):s.length>=L?(N(t,s),o.set(t,[n])):o.set(t,[...s,n])}function I(n,v=(0,o.getCurrentScope)(),L=E){const I=v?.getClient()??(0,o.getClient)();if(!I)return void(s.DEBUG_BUILD&&u.debug.warn("No client available to capture log."));const{release:N,environment:O,enableLogs:B=!1,beforeSendLog:R}=I.getOptions();if(!B)return void(s.DEBUG_BUILD&&u.debug.warn("logging option not enabled, log will not be captured."));const[,j]=(0,b._getTraceInfoFromScope)(I,v),C={...n.attributes},{user:{id:A,email:P,username:U},attributes:h={}}=(0,c.getCombinedScopeData)((0,o.getIsolationScope)(),v);S(C,"user.id",A,!1),S(C,"user.email",P,!1),S(C,"user.name",U,!1),S(C,"sentry.release",N),S(C,"sentry.environment",O);const{name:k,version:w}=I.getSdkMetadata()?.sdk??{};S(C,"sentry.sdk.name",k),S(C,"sentry.sdk.version",w);const M=I.getIntegrationByName("Replay"),z=M?.getReplayId(!0);S(C,"sentry.replay_id",z),z&&"buffer"===M?.getRecordingMode()&&S(C,"sentry._internal.replay_is_buffering",!0);const F=n.message;
782if((0,l.isParameterizedString)(F)){const{__sentry_template_string__:t,__sentry_template_values__:n=[]}=F;n?.length&&(C["sentry.message.template"]=t),n.forEach((t,n)=>{C[`sentry.message.parameter.${n}`]=t})}const G=(0,f._getSpanForScope)(v);S(C,"sentry.trace.parent_span_id",G?.spanContext().spanId);const W={...n,attributes:C};I.emit("beforeCaptureLog",W);const x=R?(0,u.consoleSandbox)(()=>R(W)):W;if(!x)return I.recordDroppedEvent("before_send","log_item",1),void(s.DEBUG_BUILD&&u.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:V,message:Y,attributes:q={},severityNumber:X}=x,$=(0,p.timestampInSeconds)(),H=(0,_.getSequenceAttribute)($);L(I,{timestamp:$,level:V,body:D(String(Y)),trace_id:j?.trace_id,severity_number:X??y.SEVERITY_TEXT_TO_SEVERITY_NUMBER[V],attributes:T({...(0,t.serializeAttributes)(h),...(0,t.serializeAttributes)(q,!0),[H.key]:H.value})}),I.emit("afterCaptureLog",x)}function N(t,n){const o=n??O(t)??[];if(0===o.length)return;const s=t.getOptions(),u=(0,v.createLogEnvelope)(o,s._metadata,s.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);B().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(u)}function O(t){return B().get(t)}function B(){return(0,n.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function T(t){const n={};for(const[o,s]of Object.entries(t)){const t=D(o);"string"===s.type?n[t]={...s,value:D(s.value)}:n[t]=s}return n}function D(t){const n=Object(t),o=n.isWellFormed,s=n.toWellFormed;return"function"==typeof o&&"function"==typeof s?o.call(t)?t:s.call(t):t}},2311,[2272,2249,2273,2244,2248,2261,2299,2269,2266,2312,2313,2314,2315]);
783__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSequenceAttribute",{enumerable:!0,get:function(){return o}});const t="sentry.timestamp.sequence";let n,u=0;function o(o){const c=Math.floor(1e3*o);void 0!==n&&c!==n&&(u=0);const s=u;return u++,n=c,{key:t,value:{value:s,type:"integer"}}}},2312,[]);
784__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getTraceInfoFromScope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(c,p){return p?(0,t.withScope)(p,()=>{const u=(0,o.getActiveSpan)(),S=u?(0,o.spanToTraceContext)(u):(0,t.getTraceContextFromScope)(p);return[u?(0,n.getDynamicSamplingContextFromSpan)(u):(0,n.getDynamicSamplingContextFromScope)(c,p),S]}):[void 0,void 0]}},2313,[2273,2287,2253]);
785__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SEVERITY_TEXT_TO_SEVERITY_NUMBER",{enumerable:!0,get:function(){return t}});const t={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},2314,[]);
786__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createLogContainerEnvelopeItem",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createLogEnvelope",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(n,t){const s=t?"auto":"never";return[{type:"log",item_count:n.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}function c(o,c,u,l,p){const f={};return c?.sdk&&(f.sdk={name:c.sdk.name,version:c.sdk.version}),u&&l&&(f.dsn=(0,n.dsnToString)(l)),(0,t.createEnvelope)(f,[s(o,p)])}},2315,[2279,2290,2316]);
787__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isBrowser",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]);function o(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||u())}function u(){const n=t.GLOBAL_OBJ.process;return"renderer"===n?.type}},2316,[2317,2246]);
788__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNodeEnv",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"loadModule",{enumerable:!0,get:function(){return c}});var t=r(d[0]);
788function n(){return!(0,t.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,n){return t.require(n)}function c(t,n=m){let c;try{c=o(n,t)}catch{}if(!c)try{const{cwd:u}=o(n,"process");c=o(n,`${u()}/node_modules/${t}`)}catch{}return c}},2317,[2318]);
789__d(function(g,r,i,a,m,e,d){"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function t(){
790/*! __SENTRY_SDK_SOURCE__ */
791return"npm"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSDKSource",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"isBrowserBundle",{enumerable:!0,get:function(){return n}})},2318,[]);
792__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"_INTERNAL_getMetricBuffer",{enumerable:!0,get:function(){return E}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]),p=r(d[7]),f=r(d[8]),b=r(d[9]),_=r(d[10]);const M=1e3;function y(t,n,o,s=!0){!o||!s&&n in t||(t[n]=o)}function v(t,n){const o=N(),s=E(t);void 0===s?o.set(t,[n]):s.length>=M?(D(t,s),o.set(t,[n])):o.set(t,[...s,n])}function I(t,n,o){const{release:s,environment:c}=n.getOptions(),u={...t.attributes};y(u,"user.id",o.id,!1),y(u,"user.email",o.email,!1),y(u,"user.name",o.username,!1),y(u,"sentry.release",s),y(u,"sentry.environment",c);const{name:l,version:p}=n.getSdkMetadata()?.sdk??{};y(u,"sentry.sdk.name",l),y(u,"sentry.sdk.version",p);const f=n.getIntegrationByName("Replay"),b=f?.getReplayId(!0);return y(u,"sentry.replay_id",b),b&&"buffer"===f?.getRecordingMode()&&y(u,"sentry._internal.replay_is_buffering",!0),{...t,attributes:u}}function S(n,o,s,c){const[,u]=(0,b._getTraceInfoFromScope)(o,s),_=(0,l._getSpanForScope)(s),M=_?_.spanContext().traceId:u?.trace_id,y=_?_.spanContext().spanId:void 0,v=(0,p.timestampInSeconds)(),I=(0,f.getSequenceAttribute)(v);return{timestamp:v,trace_id:M??"",span_id:y,name:n.name,type:n.type,unit:n.unit,value:n.value,attributes:{...(0,t.serializeAttributes)(c),...(0,t.serializeAttributes)(n.attributes,"skip-undefined"),[I.key]:I.value}}}function B(t,n){const l=n?.scope??(0,o.getCurrentScope)(),p=n?.captureSerializedMetric??v,f=l?.getClient()??(0,o.getClient)();if(!f)return void(s.DEBUG_BUILD&&c.debug.warn("No client available to capture metric."));const{_experiments:b,enableMetrics:_,beforeSendMetric:M}=f.getOptions();if(!(_??b?.enableMetrics??!0))return void(s.DEBUG_BUILD&&c.debug.warn("metrics option not enabled, metric will not be captured."));const{user:y,attributes:B}=(0,u.getCombinedScopeData)((0,o.getIsolationScope)(),l),D=I(t,f,y);f.emit("processMetric",D);const E=M||b?.beforeSendMetric,N=E?E(D):D;if(!N)return void(s.DEBUG_BUILD&&c.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const O=S(N,f,l,B);s.DEBUG_BUILD&&c.debug.log("[Metric]",O),p(f,O),f.emit("afterCaptureMetric",N)}function D(t,n){const o=n??E(t)??[];if(0===o.length)return;const s=t.getOptions(),c=(0,_.createMetricEnvelope)(o,s._metadata,s.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);N().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(c)}function E(t){return N().get(t)}function N(){return(0,n.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}},2319,[2272,2249,2273,2244,2248,2299,2269,2266,2312,2313,2320]);
793__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createMetricContainerEnvelopeItem",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createMetricEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(t,n){const s=n?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:t}]}function c(o,c,u,p,_){const f={};return c?.sdk&&(f.sdk={name:c.sdk.name,version:c.sdk.version}),u&&p&&(f.dsn=(0,t.dsnToString)(p)),(0,n.createEnvelope)(f,[s(o,_)])}},2320,[2279,2290,2316]);
794__d(function(g,r,i,a,m,e,d){"use strict";
794Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractGenAiSpansFromEvent",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),s=r(d[2]);function o(o,p){if("transaction"!==o.type||!o.spans?.length||!o.sdkProcessingMetadata?.hasGenAiSpans||!1===p.getOptions().streamGenAiSpans||(0,t.hasSpanStreamingEnabled)(p))return;const u=[],c=[];for(const n of o.spans)n.op?.startsWith("gen_ai.")?u.push((0,s.spanJsonToSerializedStreamedSpan)(n)):c.push(n);if(0===u.length)return;o.spans=c;const f=p.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:u.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,n.isBrowser)()&&{ingest_settings:{infer_ip:f,infer_user_agent:f}},items:u}]}},2321,[2316,2293,2322]);
795__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanJsonToSerializedStreamedSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]);function s(s){const n={trace_id:s.trace_id,span_id:s.span_id,parent_span_id:s.parent_span_id,name:s.description||"",start_timestamp:s.start_timestamp,end_timestamp:s.timestamp||s.start_timestamp,status:s.status&&"ok"!==s.status&&"cancelled"!==s.status?"error":"ok",is_segment:!1,attributes:{...s.data},links:s.links};return(0,t.streamedSpanJsonToSerializedSpan)(n)}},2322,[2253]);
796__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TRANSPORT_BUFFER_SIZE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return c}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),s=r(d[3]),u=r(d[4]);const p=64;function c(c,l,f=(0,s.makePromiseBuffer)(c.bufferSize||p)){let E={};return{send:function(p){const _=[];if((0,n.forEachEnvelopeItem)(p,(t,o)=>{const s=(0,n.envelopeItemTypeToDataCategory)(o);(0,u.isRateLimited)(E,s)?c.recordDroppedEvent("ratelimit_backoff",s):_.push(t)}),0===_.length)return Promise.resolve({});const v=(0,n.createEnvelope)(p[0],_),D=s=>{(0,n.envelopeContainsItemType)(v,["client_report"])?t.DEBUG_BUILD&&o.debug.warn(`Dropping client report. Will not send outcomes (reason: ${s}).`):(0,n.forEachEnvelopeItem)(v,(t,o)=>{c.recordDroppedEvent(s,(0,n.envelopeItemTypeToDataCategory)(o))})};return f.add(()=>l({body:(0,n.serializeEnvelope)(v)}).then(n=>413===n.statusCode?(t.DEBUG_BUILD&&o.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),D("send_error"),n):(t.DEBUG_BUILD&&void 0!==n.statusCode&&(n.statusCode<200||n.statusCode>=300)&&o.debug.warn(`Sentry responded with status code ${n.statusCode} to sent event.`),E=(0,u.updateRateLimits)(E,n),n),n=>{throw D("network_error"),t.DEBUG_BUILD&&o.debug.error("Encountered error running transport request:",n),n})).then(t=>t,n=>{if(n===s.SENTRY_BUFFER_FULL_ERROR)return t.DEBUG_BUILD&&o.debug.error("Skipped sending event because buffer is full."),D("queue_overflow"),Promise.resolve({});throw n})},flush:t=>f.drain(t)}}},2323,[2244,2248,2290,2324,2325]);
797__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"makePromiseBuffer",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=Symbol.for("SentryBufferFullError");function u(u=100){const f=new Set;function c(n){f.delete(n)}return{get $(){return Array.from(f)},add:function(t){if(!(f.size<u))return(0,n.rejectedSyncPromise)(o);const s=t();return f.add(s),s.then(()=>c(s),()=>c(s)),s},drain:function(o){if(!f.size)return(0,n.resolvedSyncPromise)(!0);const u=Promise.allSettled(Array.from(f)).then(()=>!0);if(!o)return u;const c=[u,new Promise(n=>(0,t.safeUnref)(setTimeout(()=>n(!1),o)))];return Promise.race(c)}}}},2324,[2304,2307]);
798__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"disabledUntil",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isRateLimited",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"updateRateLimits",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const n=6e4;function s(s,o=(0,t.safeDateNow)()){const u=parseInt(`${s}`,10);if(!isNaN(u))return 1e3*u;const c=Date.parse(`${s}`);return isNaN(c)?n:c-o}function o(t,n){return t[n]||t.all||0}function u(n,s,u=(0,t.safeDateNow)()){return o(n,s)>u}function c(n,{statusCode:o,headers:u}
798,c=(0,t.safeDateNow)()){const f={...n},l=u?.["x-sentry-rate-limits"],p=u?.["retry-after"];if(l)for(const t of l.trim().split(",")){const[n,s,,,o]=t.split(":",5),u=parseInt(n,10),l=1e3*(isNaN(u)?60:u);if(s)for(const t of s.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(f[t]=c+l);else f.all=c+l}else p?f.all=c+s(p,c):429===o&&(f.all=c+6e4);return f}},2325,[2262]);
799__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createClientReportEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function c(c,o,s){const p=[{type:"client_report"},{timestamp:s||(0,n.dateTimestampInSeconds)(),discarded_events:c}];return(0,t.createEnvelope)(o?{dsn:o}:{},[p])}},2326,[2290,2266]);
800__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const s=[];t.message&&s.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(s.push(n.value),n.type&&s.push(`${n.type}: ${n.value}`))}catch{}return s}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getPossibleEventMessages",{enumerable:!0,get:function(){return t}})},2327,[]);
801__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"convertSpanJsonToTransactionEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"convertTransactionEventToSpanJson",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){const{trace_id:s,parent_span_id:_,span_id:o,status:p,origin:c,data:u,op:T}=n.contexts?.trace??{};return{data:u??{},description:n.transaction,op:T,parent_span_id:_,span_id:o??"",start_timestamp:n.start_timestamp??0,status:p,timestamp:n.timestamp,trace_id:s??"",origin:c,profile_id:u?.[t.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:u?.[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:n.measurements,is_segment:!0}}function s(n){return{type:"transaction",timestamp:n.timestamp,start_timestamp:n.start_timestamp,transaction:n.description,contexts:{trace:{trace_id:n.trace_id,span_id:n.span_id,parent_span_id:n.parent_span_id,op:n.op,status:n.status,origin:n.origin,data:{...n.data,...n.profile_id&&{[t.SEMANTIC_ATTRIBUTE_PROFILE_ID]:n.profile_id},...n.exclusive_time&&{[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.exclusive_time}}}},measurements:n.measurements}}},2328,[2274]);
802__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolveDataCollectionOptions",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const s={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function o(o){const n=null!=o.dataCollection?s:(0,t.defaultPiiToCollectionOptions)(o.sendDefaultPii),u=o.dataCollection??{};return{userInfo:u.userInfo??n.userInfo,cookies:u.cookies??n.cookies,httpHeaders:{request:u.httpHeaders?.request??n.httpHeaders.request,response:u.httpHeaders?.response??n.httpHeaders.response},httpBodies:u.httpBodies??n.httpBodies,queryParams:u.queryParams??n.queryParams,genAI:{inputs:u.genAI?.inputs??n.genAI.inputs,outputs:u.genAI?.outputs??n.genAI.outputs},stackFrameVariables:u.stackFrameVariables??n.stackFrameVariables,frameContextLines:u.frameContextLines??n.frameContextLines}}},2329,[2330]);
803__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"defaultPiiToCollectionOptions",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return!0===n?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:t.PII_HEADER_SNIPPETS},httpHeaders:{request:{deny:t.PII_HEADER_SNIPPETS},response:{deny:t.PII_HEADER_SNIPPETS}},httpBodies:[],queryParams:{deny:t.PII_HEADER_SNIPPETS},genAI:{inputs:!1,outputs:!1}
803,stackFrameVariables:!0,frameContextLines:7}}},2330,[2331]);
804__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FILTERED_VALUE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"PII_HEADER_SNIPPETS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SENSITIVE_COOKIE_NAME_SNIPPETS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SENSITIVE_KEY_SNIPPETS",{enumerable:!0,get:function(){return n}});const t="[Filtered]",s=["forwarded","-ip","remote-","via","-user"],n=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],o=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"]},2331,[]);
805__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initAndBind",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"setCurrentClient",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),u=r(d[2]);function o(o,b){!0===b.debug&&(t.DEBUG_BUILD?u.debug.enable():(0,u.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));(0,n.getCurrentScope)().update(b.initialScope);const l=new o(b);return c(l),l.init(),l}function c(t){(0,n.getCurrentScope)().setClient(t)}},2332,[2273,2244,2248]);
806__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"MIN_DELAY",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"START_DELAY",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return h}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]);const f=100,c=5e3,l=36e5;function h(h){function p(...n){e.DEBUG_BUILD&&t.debug.log("[Offline]:",...n)}return e=>{const t=h(e);if(!e.createStore)throw new Error("No `createStore` function was provided");const y=e.createStore(e);let w,v=c;function S(e){w&&clearTimeout(w),w=(0,u.safeUnref)(setTimeout(async()=>{w=void 0;const e=await y.shift();e&&(p("Attempting to send previously queued event"),e[0].sent_at=new Date((0,o.safeDateNow)()).toISOString(),b(e,!0).catch(e=>{p("Failed to retry sending",e)}))},e))}function _(){w||(S(v),v=Math.min(2*v,l))}async function b(o,u=!1){if(!u&&(0,n.envelopeContainsItemType)(o,["replay_event","replay_recording"]))return await y.push(o),S(f),{};try{if(e.shouldSend&&!1===await e.shouldSend(o))throw new Error("Envelope not sent because `shouldSend` callback returned false");const n=await t.send(o);let u=f;if(n)if(n.headers?.["retry-after"])u=(0,s.parseRetryAfterHeader)(n.headers["retry-after"]);else if(n.headers?.["x-sentry-rate-limits"])u=6e4;else if((n.statusCode||0)>=400)return n;return S(u),v=c,n}catch(t){if(await(l=o,h=t,w=v,!(0,n.envelopeContainsItemType)(l,["client_report"])&&(!e.shouldStore||e.shouldStore(l,h,w))))return u?await y.unshift(o):await y.push(o),_(),p("Error sending. Event queued.",t),{};throw t}var l,h,w}return e.flushAtStartup&&_(),{send:b,flush:e=>(void 0===e&&(v=c,S(f)),t.flush(e))}}}},2333,[2244,2248,2290,2262,2325,2307]);
807__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"eventFromEnvelope",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return l}});var n=_r(d[0]),t=_r(d[1]),r=_r(d[2]);const o="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function u(n,t){let o;return(0,r.forEachEnvelopeItem)(n,(n,r)=>(t.includes(r)&&(o=Array.isArray(n)?n[1]:void 0),!!o)),o}function s(n,t){return r=>{const o=n(r);return{...o,send:async n=>{const r=u(n,["event","transaction","profile","replay_event"]);return r&&(r.release=t),o.send(n)}}}}function c(n,t){return(0,r.createEnvelope)(t?{...n[0],dsn:t}:n[0],n[1])}function l(r,l){return f=>{const p=r(f),v=new Map,E=l||(n=>{const t=n.getEvent();return t?.extra?.[o]&&Array.isArray(t.extra[o])?t.extra[o]:[]});function y(o,u){const c=u?`${o}:${u}`:o;let l=v.get(c);if(!l){const p=(0,t.dsnFromString)(o);if(!p)return;const E=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(p,f.tunnel);l=u?s(r,u)({...f,url:E}):r({...f,url:E}),v.set(c,l)}return[o,l]}return{send:async function(n){const t=E({envelope:n,getEvent:function(t){return u(n,t?.length?t:["event"])}}).map(n=>"string"==typeof n?y(n,void 0):y(n.dsn,n.release)).filter(n=>!!n),r=t.length?t:[["",p]];return(await Promise.all(r.map(([t,r])=>r.send(c(n,t)))))[0]},flush:async function(n){const t=[...v.values(),p];return(await Promise.all(t.map(t=>t.flush(n)))).every(n=>n)}}}}},2334,[2308,2279,2290]);
808__d(function(g,r,i,a,m,e,d){"use strict";
808Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=new Set;function u(u){u.forEach(u=>{o.add(u),n.DEBUG_BUILD&&t.debug.log(`AI provider "${u}" wrapping will be skipped`)})}function p(n){return o.has(n)}function c(){o.clear(),n.DEBUG_BUILD&&t.debug.log("Cleared AI provider skip registrations")}},2335,[2244,2248]);
809__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterKeyValueData",{enumerable:!0,get:function(){return n}});var o=r(d[0]);function t(o,t){return t.some(t=>o.includes(t))}function n(n,s,c){if(!1===s)return{};const E=null!=c?[...o.SENSITIVE_KEY_SNIPPETS,...c]:o.SENSITIVE_KEY_SNIPPETS,u={};if(!0===s){for(const s of Object.keys(n))u[s]=t(s.toLowerCase(),E)?o.FILTERED_VALUE:n[s];return u}if("deny"in s){const c=s.deny.map(o=>o.toLowerCase());for(const s of Object.keys(n)){const f=s.toLowerCase(),l=t(f,E)||c.some(o=>f.includes(o));u[s]=l?o.FILTERED_VALUE:n[s]}return u}const f=s.allow.map(o=>o.toLowerCase());for(const s of Object.keys(n)){const c=s.toLowerCase();if(t(c,E))u[s]=o.FILTERED_VALUE;else{const t=f.some(o=>c.includes(o));u[s]=t?n[s]:o.FILTERED_VALUE}}return u}},2336,[2331]);
810__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterCookies",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);function o(o,c){if(!1===c)return{};try{const f=(0,t.parseCookie)(o);return 0===Object.keys(f).length?{}:(0,u.filterKeyValueData)(f,c,n.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return n.FILTERED_VALUE}}},2337,[2338,2331,2336]);
811__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n={};let o=0;for(;o<t.length;){const c=t.indexOf("=",o);if(-1===c)break;let f=t.indexOf(";",o);if(-1===f)f=t.length;else if(f<c){o=t.lastIndexOf(";",c-1)+1;continue}const l=t.slice(o,c).trim();if(void 0===n[l]){let o=t.slice(c+1,f).trim();34===o.charCodeAt(0)&&(o=o.slice(1,-1));
811try{n[l]=-1!==o.indexOf("%")?decodeURIComponent(o):o}catch{n[l]=o}}o=f+1}return n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseCookie",{enumerable:!0,get:function(){return t}})},2338,[]);
812__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterQueryParams",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function u(u,c){if(!1===c)return{};try{const t=new URLSearchParams(u),f={};return t.forEach((t,n)=>{f[n]=t}),0===Object.keys(f).length?{}:(0,n.filterKeyValueData)(f,c)}catch{return t.FILTERED_VALUE}}},2339,[2331,2336]);
813__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FALSY_ENV_VALUES",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TRUTHY_ENV_VALUES",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"envToBool",{enumerable:!0,get:function(){return o}});const n=new Set(["false","f","n","no","off","0"]),t=new Set(["true","t","y","yes","on","1"]);function o(o,u){const c=String(o).toLowerCase();return!n.has(c)&&(!!t.has(c)||(u?.strict?null:Boolean(o)))}},2340,[]);
814__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createCheckInEnvelope",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function c(c,u,f,k,v){const _={sent_at:new Date((0,o.safeDateNow)()).toISOString()};f?.sdk&&(_.sdk={name:f.sdk.name,version:f.sdk.version}),k&&v&&(_.dsn=(0,n.dsnToString)(v)),u&&(_.trace=u);const l=s(c);return(0,t.createEnvelope)(_,[l])}function s(n){return[{type:"check_in"},n]}},2341,[2279,2290,2262]);
815__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isSentryRequestUrl",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(t,n){const c=n?.getDsn(),o=n?.getOptions().tunnel;return u(t,c)||s(t,o)}function s(t,n){return!!n&&c(t)===c(n)}function u(n,s){const u=(0,t.parseStringToURLObject)(n);return!(!u||(0,t.isURLObjectRelative)(u))&&(!!s&&(c=u.hostname,o=s.host,(c===o||o.length>0&&c.endsWith(`.${o}`))&&/(^|&|\?)sentry_key=/.test(u.search)));var c,o}function c(t){return"/"===t[t.length-1]?t.slice(0,-1):t}},2342,[2343]);
816__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}
816),Object.defineProperty(e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getSanitizedUrlString",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isURLObjectRelative",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"parseStringToURLObject",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"parseUrl",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"stripDataUrlContent",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return h}});var t=r(d[0]);const n="thismessage:/";function o(t){return"isRelative"in t}function u(t,o){const u=t.indexOf("://")<=0&&0!==t.indexOf("//"),c=o??(u?n:void 0);try{if("canParse"in URL&&!URL.canParse(t,c))return;const n=new URL(t,c);return u?{isRelative:u,pathname:n.pathname,search:n.search,hash:n.hash}:n}catch{}}function c(t){if(o(t))return t.pathname;const n=new URL(t);return n.search="",n.hash="",["80","443"].includes(n.port)&&(n.port=""),n.password&&(n.password="%filtered%"),n.username&&(n.username="%filtered%"),n.toString()}function s(t,n,o,u){return`${o?.method?.toUpperCase()??"GET"} ${u||(t?"client"===n?c(t):t.pathname:"/")}`}function l(n,u,c,l,p){const h={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return p&&(h["server"===u?"http.route":"url.template"]=p,h[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),l?.method&&(h[t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=l.method.toUpperCase()),n&&(n.search&&(h["url.query"]=n.search),n.hash&&(h["url.fragment"]=n.hash),n.pathname&&(h["url.path"]=n.pathname,"/"===n.pathname&&(h[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),o(n)||(h[t.SEMANTIC_ATTRIBUTE_URL_FULL]=n.href,n.port&&(h["url.port"]=n.port),n.protocol&&(h["url.scheme"]=n.protocol),n.hostname&&(h["server"===u?"server.address":"url.domain"]=n.hostname))),[s(n,u,l,p),h]}function p(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const o=n[6]||"",u=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:o,hash:u,relative:n[5]+o+u}}function h(t){return t.split(/[?#]/,1)[0]}function f(t){const{protocol:n,host:o,path:u}=t;return`${n?`${n}://`:""}${o?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${u}`}function T(t,n=!0){if(t.startsWith("data:")){const o=t.match(/^data:([^;,]+)/),u=o?o[1]:"text/plain",c=t.includes(";base64,"),s=t.indexOf(",");let l="";if(n&&-1!==s){const n=t.slice(s+1);l=n.length>10?`${n.slice(0,10)}... [truncated]`:n}return`data:${u}${c?",base64":""}${l?`,${l}`:""}`}return t}},2343,[2274]);
817__d(function(g,r,i,a,m,e,d){"use strict";function t(t,...n){const _=new String(String.raw(t,...n));return _.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),_.__sentry_template_values__=n,_}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fmt",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"parameterize",{enumerable:!0,get:function(){return t}});const n=t},2344,[]);
818__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handleTunnelRequest",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]);async function u(u){const{request:l,allowedDsns:p}=u;if(0===p.length)return new Response("Tunnel not configured",{status:500});const c=new Uint8Array(await l.arrayBuffer());let f;try{[f]=(0,o.parseEnvelope)(c)}catch{return new Response("Invalid envelope",{status:400})}if(!f)return new Response("Invalid envelope: missing header",{status:400});const w=f.dsn;if(!w)return new Response("Invalid envelope: missing DSN",{status:400});if(!p.some(n=>n===w))return t.debug.warn(`Sentry tunnel: rejected request with unauthorized DSN (${w})`),new Response("DSN not allowed",{status:403});const v=(0,s.makeDsn)(w);if(!v)return t.debug.warn(`Could not extract DSN Components from: ${w}`),new Response("Invalid DSN",{status:403});const y=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(v);try{return await fetch(y,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:c})}catch(n){return t.debug.error("Sentry tunnel: failed to forward envelope",n),new Response("Failed to forward envelope to Sentry",{status:500})}}},2345,[2308,2248,2279,2290]);
819__d(function(g,r,i,a,m,e,d){"use strict";function s(s){void 0===s.user?.ip_address&&(s.user={...s.user,ip_address:"{{auto}}"})}function t(s){"aggregates"in s?void 0===s.attrs?.ip_address&&(s.attrs={...s.attrs,ip_address:"{{auto}}"}):void 0===s.ipAddress&&(s.ipAddress="{{auto}}")}
819Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return s}})},2346,[]);
820__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applySdkMetadata",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n,s,c=[s],o="npm"){const _=(n._metadata=n._metadata||{}).sdk=n._metadata.sdk||{};_.name||(_.name=`sentry.javascript.${s}`,_.packages=c.map(n=>({name:`${o}:@sentry/${n}`,version:t.SDK_VERSION})),_.version=t.SDK_VERSION)}},2347,[2250]);
821__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getTraceData",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),p=r(d[4]),s=r(d[5]),u=r(d[6]),l=r(d[7]),S=r(d[8]),T=r(d[9]),C=r(d[10]);function f(f={}){const b=f.client||(0,o.getClient)();if(!(0,c.isEnabled)()||!b)return{};const E=(0,n.getMainCarrier)(),P=(0,t.getAsyncContextStrategy)(E);if(P.getTraceData)return P.getTraceData(f);const I=f.scope||(0,o.getCurrentScope)(),D=f.span||(0,s.getActiveSpan)(),H=(0,l.spanIsNonRecordingSpan)(D)&&!(0,u.hasSpansEnabled)(b.getOptions());if(!D&&(0,o.hasExternalPropagationContext)())return{};const _=D&&!H?(0,s.spanToTraceHeader)(D):y(I),v=D?(0,S.getDynamicSamplingContextFromSpan)(D):(0,S.getDynamicSamplingContextFromScope)(b,I),A=(0,T.dynamicSamplingContextToSentryBaggageHeader)(v);if(!C.TRACEPARENT_REGEXP.test(_))return p.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const R={"sentry-trace":_,baggage:A};return f.propagateTraceparent&&(R.traceparent=D&&!H?(0,s.spanToTraceparentHeader)(D):x(I)),R}function y(t){const{traceId:n,sampled:o,propagationSpanId:c}=t.getPropagationContext();return(0,C.generateSentryTraceHeader)(n,c,o)}function x(t){const{traceId:n,sampled:o,propagationSpanId:c}=t.getPropagationContext();return(0,C.generateTraceparentHeader)(n,c,o)}},2348,[2254,2249,2273,2301,2248,2253,2282,2284,2287,2278,2277]);
822__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c="[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:";function u(u,s,f){if("string"!=typeof u||!s)return!0;const l=f?.get(u);if(void 0!==l)return t.DEBUG_BUILD&&!l&&n.debug.log(c,u),l;const b=(0,o.stringMatchesSomePattern)(u,s);return f?.set(u,b),t.DEBUG_BUILD&&!b&&n.debug.log(c,u),b}},2349,[2244,2248,2263]);
823__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getTraceMetaTags",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return Object.entries(n||(0,t.getTraceData)()).map(([t,n])=>`<meta name="${t}" content="${n}"/>`).join("\n")}},2350,[2348]);
824__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n,o){let u,c,f;const l=o?.maxWait?Math.max(o.maxWait,n):0,s=o?.setTimeoutImpl||setTimeout;function v(){return T(),u=t(),u}function T(){void 0!==c&&clearTimeout(c),void 0!==f&&clearTimeout(f),c=f=void 0}function b(){return c&&clearTimeout(c),c=s(v,n),l&&void 0===f&&(f=s(v,l)),u}return b.cancel=T,b.flush=function(){return void 0!==c||void 0!==f?v():u},b}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return t}})},2351,[]);
825__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"headersToDict",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"httpRequestToRequestData",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return h}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]);const f=1048576,l=["text/","application/json","application/x-www-form-urlencoded","application/xml","application/graphql"];function p(t){return"small"===t?1e3:"medium"===t?1e4:f}function y(t){const o={};try{t.forEach((t,n)=>{"string"==typeof t&&(o[n]=t)})}catch{}return o}function b(t){const o=Object.create(null);try{Object.entries(t).forEach(([t,n])=>{"string"==typeof n?o[t]=n:"number"==typeof n&&(o[t]=String(n))})}catch{}return o}function h(t){const o=y(t.headers);return{method:t.method,url:t.url,query_string:q(t.url),headers:o}}function O(t){if(!t)return!1;const o=t.toLowerCase();return l.some(t=>o.includes(t))}async function D(n,c,s){try{const l=n.headers.get("content-type");if(!O(l))return void(t.DEBUG_BUILD&&o.debug.log("Skipping body capture for non-textual content type:",l));if(!n.body)return;const y=n.headers.get("content-length"),b=p(s);if(y){const n=parseInt(y,10);if(!isNaN(n)&&n>f)return void(t.DEBUG_BUILD&&o.debug.log("Skipping body capture: body too large",n))}const h=n.clone().text(),D=new Promise(t=>{(0,u.safeUnref)(setTimeout(()=>t(null),2e3))}),E=await Promise.race([h,D]);if(null===E)return void(t.DEBUG_BUILD&&o.debug.log("Timeout reading request body"));if(!E)return;const _=(new TextEncoder).encode(E),j=_.length;let w;if(j>b){w=`${(new TextDecoder).decode(_.slice(0,b-3))}...`}else w=E;c.setSDKProcessingMetadata({normalizedRequest:{data:w}}),t.DEBUG_BUILD&&o.debug.log("Captured request body:",j,"bytes")}catch(n){t.DEBUG_BUILD&&o.debug.error("Error capturing request body:",n)}}function E(t){const o=t.headers||{},n=("string"==typeof o["x-forwarded-host"]?o["x-forwarded-host"]:void 0)||("string"==typeof o.host?o.host:void 0),c=("string"==typeof o["x-forwarded-proto"]?o["x-forwarded-proto"]:void 0)||t.protocol||(t.socket?.encrypted?"https":"http"),s=t.url||"",u=_({url:s,host:n,protocol:c}),f=t.body||void 0,l=t.cookies;return{url:u,method:t.method,query_string:q(s),headers:b(o),cookies:l,data:f}}function _({url:t,protocol:o,host:n}){return t?.startsWith("http")?t:t&&n?`${o}://${n}${t}`:void 0}function j(t,o=!1,u="request"){const f="boolean"==typeof o?(0,n.defaultPiiToCollectionOptions)(o):o,l="request"===u?f.httpHeaders.request:f.httpHeaders.response,p=f.cookies,y=`http.${u}.header.`,b={};try{const o={};for(const[n,u]of Object.entries(t)){if(null==u)continue;const t=n.toLowerCase();if("cookie"===t||"set-cookie"===t){if(!1===p)continue;if("string"==typeof u&&""!==u){const o=P(u,"set-cookie"===t),n=(0,s.filterKeyValueData)(o,p,c.SENSITIVE_COOKIE_NAME_SNIPPETS);for(const[o,c]of Object.entries(n))b[`${y}${w(t)}.${w(o)}`]=c}else b[`${y}${w(t)}`]=c.FILTERED_VALUE}else{if(!1===l)continue;Array.isArray(u)?o[t]=u.map(t=>null!=t?String(t):t).join(";
825"):"string"==typeof u&&(o[t]=u)}}if(!1!==l){const t=(0,s.filterKeyValueData)(o,l);for(const[o,n]of Object.entries(t))b[`${y}${w(o)}`]=n}}catch{}return b}function w(t){return t.replace(/-/g,"_")}function P(t,o){const n=t.indexOf(";"),c=o&&-1!==n?t.substring(0,n):t,s=o?[c]:c.split("; "),u={};for(const t of s){const o=t.indexOf("="),n=(-1!==o?t.substring(0,o):t).toLowerCase(),c=-1!==o?t.substring(o+1):"";u[n]=c}return u}function q(t){if(t)try{const o=new URL(t,"http://s.io").search.slice(1);return o.length?o:void 0}catch{return}}},2352,[2244,2248,2330,2331,2336,2307]);
826__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_KIND",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"spanKindToName",{enumerable:!0,get:function(){return E}});const n={INTERNAL:0,SERVER:1,CLIENT:2,PRODUCER:3,CONSUMER:4},t={[n.INTERNAL]:"INTERNAL",[n.SERVER]:"SERVER",[n.CLIENT]:"CLIENT",[n.PRODUCER]:"PRODUCER",[n.CONSUMER]:"CONSUMER"};function E(n){return t[n]}},2353,[]);
827__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addBreadcrumb",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c=100;function u(u,s){const b=(0,t.getClient)(),l=(0,t.getIsolationScope)();if(!b)return;const{beforeBreadcrumb:f=null,maxBreadcrumbs:p=c}=b.getOptions();if(p<=0)return;const B={timestamp:(0,o.dateTimestampInSeconds)(),...u},_=f?(0,n.consoleSandbox)(()=>f(B,s)):B;null!==_&&(b.emit&&b.emit("beforeAddBreadcrumb",_,s),l.addBreadcrumb(_,p))}},2354,[2273,2248,2266]);
828__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"functionToStringIntegration",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let c;const u=new WeakMap,p=(0,n.defineIntegration)(()=>({name:"FunctionToString",setupOnce(){c=Function.prototype.toString;try{Function.prototype.toString=function(...n){const p=(0,o.getOriginalFunction)(this),s=u.has((0,t.getClient)())&&void 0!==p?p:this;return c.apply(s,n)}}catch{}},setup(t){u.set(t,!0)}}))},2355,[2273,2310,2260]);
829__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"eventFiltersIntegration",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),i=r(d[3]),s=r(d[4]),c=r(d[5]);const l=[/^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$/],u=(0,t.defineIntegration)((n={})=>{let t;return{name:"EventFilters",setup(o){const i=o.getOptions();t=p(n,i)},processEvent(o,i,s){if(!t){const o=s.getOptions();t=p(n,o)}return v(o,t)?null:o}}}),f=(0,t.defineIntegration)((n={})=>({...u(n),name:"InboundFilters"}));function p(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:l],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function v(t,i){if(t.type){if("transaction"===t.type&&b(t,i.ignoreTransactions))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.getEventDescription)(t)}`),!0}else{if(E(t,i.ignoreErrors))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.getEventDescription)(t)}`),!0;if($(t))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.getEventDescription)(t)}`),!0;if(U(t,i.denyUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(t)}.\nUrl: ${D(t)}`),!0;if(!h(t,i.allowUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(t)}.\nUrl: ${D(t)}`),!0}return!1}function E(n,t){return!!t?.length&&(0,i.getPossibleEventMessages)(n).some(n=>
829(0,c.stringMatchesSomePattern)(n,t))}function b(n,t){if(!t?.length)return!1;const o=n.transaction;return!!o&&(0,c.stringMatchesSomePattern)(o,t)}function U(n,t){if(!t?.length)return!1;const o=D(n);return!!o&&(0,c.stringMatchesSomePattern)(o,t)}function h(n,t){if(!t?.length)return!0;const o=D(n);return!o||(0,c.stringMatchesSomePattern)(o,t)}function y(n=[]){for(let t=n.length-1;t>=0;t--){const o=n[t];if(o&&"<anonymous>"!==o.filename&&"[native code]"!==o.filename)return o.filename||null}return null}function D(t){try{const n=[...t.exception?.values??[]].reverse().find(n=>void 0===n.mechanism?.parent_id&&n.stacktrace?.frames?.length),o=n?.stacktrace?.frames;return o?y(o):null}catch{return n.DEBUG_BUILD&&o.debug.error(`Cannot extract url for event ${(0,s.getEventDescription)(t)}`),null}}function $(n){return!!n.exception?.values?.length&&(!n.message&&!n.exception.values.some(n=>n.stacktrace||n.type&&"Error"!==n.type||n.value))}},2356,[2244,2310,2248,2327,2259,2263]);
830__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s=(0,t.defineIntegration)((t={})=>{const s=t.limit||5,c=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,u,p){const l=p.getOptions();(0,n.applyAggregateErrorsToEvent)(o.exceptionFromError,l.stackParser,c,s,t,u)}}})},2357,[2310,2358,2359]);
831__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(t,o,c,s,u,l){if(!u.exception?.values||!l||!(0,n.isInstanceOf)(l.originalException,Error))return;const p=u.exception.values.length>0?u.exception.values[u.exception.values.length-1]:void 0;p&&(u.exception.values=i(t,o,s,l.originalException,c,u.exception.values,p,0))}function i(t,u,l,p,f,h,x,v){if(h.length>=l+1)return h;let _=[...h];if((0,n.isInstanceOf)(p[f],Error)){c(x,v,p);const n=t(u,p[f]),o=_.length;s(n,f,o,v),_=i(t,u,l,p[f],f,[n,..._],n,o)}return o(p)&&p.errors.forEach((o,h)=>{if((0,n.isInstanceOf)(o,Error)){c(x,v,p);const n=t(u,o),E=_.length;s(n,`errors[${h}]`,E,v),_=i(t,u,l,o,f,[n,..._],n,E)}}),_}function o(n){return Array.isArray(n.errors)}function c(n,t,i){n.mechanism={handled:!0,type:"auto.core.linked_errors",...o(i)&&{is_exception_group:!0},...n.mechanism,exception_id:t}}function s(n,t,i,o){n.mechanism={handled:!0,...n.mechanism,type:"chained",source:t,exception_id:i,parent_id:o}}},2358,[2261]);
832__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"eventFromMessage",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"eventFromUnknownInput",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"exceptionFromError",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"parseStackFrames",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);function c(t,n){return t(n.stack||"",1)}function u(n){return(0,t.isError)(n)&&"__sentry_fetch_url_host__"in n&&"string"==typeof n.__sentry_fetch_url_host__}function f(t){return u(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function _(t,n){const s={type:n.name||n.constructor.name,value:f(n)},o=c(t,n);return o.length&&(s.stacktrace={frames:o}),s}function p(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];if(s instanceof Error)return s}}function y(n){if("name"in n&&"string"==typeof n.name){let t=`'${n.name}' captured as exception`;return"message"in n&&"string"==typeof n.message&&(t+=` with message '${n.message}'`),t}if("message"in n&&"string"==typeof n.message)return n.message;const s=(0,o.extractExceptionKeysForMessage)(n);if((0,t.isErrorEvent)(n))return`Event \`ErrorEvent\` captured as exception with message \`${n.message}\``;const c=l(n);return`${c&&"Object"!==c?`'${c}'`:"Object"} captured as exception with keys: ${s}`}function l(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{}}function h(n,o,c,u){if((0,t.isError)(c))return[c,void 0];if(o.synthetic=!0,(0,t.isPlainObject)(c)){const t=n?.getOptions().normalizeDepth,o={__serialized__:(0,s.normalizeToSize)(c,t)},f=p(c);if(f)return[f,o];const _=y(c),l=u?.syntheticException||new Error(_);return l.message=_,[l,o]}const f=u?.syntheticException||new Error(c);return f.message=`${c}`,[f,void 0]}function v(t,s,o,c){const u=c?.data&&c.data.mechanism||{handled:!0,type:"generic"},[f,p]=h(t,u,o,c),y={exception:{values:[_(s,f)]}};return p&&(y.extra=p),(0,n.addExceptionTypeValue)(y,void 0,void 0),(0,n.addExceptionMechanism)(y,u),{...y,event_id:c?.event_id}}function E(s,o,u="info",f,_){const p={event_id:f?.event_id,level:u};if(_&&f?.syntheticException){const t=c(s,f.syntheticException);t.length&&(p.exception={values:[{value:o,stacktrace:{frames:t}}]},(0,n.addExceptionMechanism)(p,{synthetic:!0}))}
832if((0,t.isParameterizedString)(o)){const{__sentry_template_string__:t,__sentry_template_values__:n}=o;return p.logentry={message:t,params:n},p}return p.message=o,p}},2359,[2261,2259,2264,2260]);
833__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s=(0,t.defineIntegration)(()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",t=>{(0,o.forEachEnvelopeItem)(t,(t,o)=>{if("event"===o){const o=Array.isArray(t)?t[1]:void 0;o&&((0,n.stripMetadataFromStackFrames)(o),t[1]=o)}})}),t.on("applyFrameMetadata",o=>{if(o.type)return;const s=t.getOptions().stackParser;(0,n.addMetadataToStackFrames)(s,o)})}}))},2360,[2310,2361,2290]);
834__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addMetadataToStackFrames",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getMetadataForUrl",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stripMetadataFromStackFrames",{enumerable:!0,get:function(){return l}});var t=r(d[0]);const n=new Map,o=new Set;function c(n){if(!t.GLOBAL_OBJ._sentryModuleMetadata)return{};const o={};for(const c of Object.keys(t.GLOBAL_OBJ._sentryModuleMetadata)){const f=t.GLOBAL_OBJ._sentryModuleMetadata[c],u=n(c);for(const t of u.reverse())if(t.filename){o[t.filename]=f;break}}return o}function f(c){if(t.GLOBAL_OBJ._sentryModuleMetadata)for(const f of Object.keys(t.GLOBAL_OBJ._sentryModuleMetadata)){const u=t.GLOBAL_OBJ._sentryModuleMetadata[f];if(o.has(f))continue;o.add(f);const s=c(f);for(const t of s.reverse())if(t.filename){n.set(t.filename,u);break}}}function u(t,o){return f(t),n.get(o)}function s(t,n){n.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(n=>{if(!n.filename||n.module_metadata)return;const o=u(t,n.filename);o&&(n.module_metadata=o)})})}function l(t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{delete t.module_metadata})})}},2361,[2246]);
835__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"requestDataIntegration",{enumerable:!0,get:function(){return l}});
835var t=r(d[0]),s=r(d[1]),o=r(d[2]),n=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]);const l=(0,s.defineIntegration)((s={})=>{function o(t){const o=t.getDataCollectionOptions(),n={...o,...!0===s.include?.cookies&&!1===o.cookies&&{cookies:!0},...!0===s.include?.headers&&!1===o.httpHeaders.request&&{httpHeaders:{...o.httpHeaders,request:!0}}};return{dataCollection:n,include:{cookies:!1!==n.cookies,data:!0,headers:!1!==n.httpHeaders.request,ip:n.userInfo,query_string:!1!==n.queryParams,url:!0,...s.include}}}return{name:"RequestData",processEvent(t,s,n){const{sdkProcessingMetadata:u={}}=t,{normalizedRequest:c,ipAddress:p}=u,{include:l}=o(n);return c&&f(t,c,{ipAddress:p},l),t},processSegmentSpan(s,n){const{sdkProcessingMetadata:u={}}=(0,t.getIsolationScope)().getScopeData(),{normalizedRequest:c,ipAddress:p}=u;if(!c)return;const{include:l,dataCollection:f}=o(n);S(s,c,p,l,f)}}});function f(t,s,o,n){if(t.request={...t.request,...h(s,n)},n.ip){const n=s.headers&&(0,c.getClientIPAddress)(s.headers)||o.ipAddress;n&&(t.user={...t.user,ip_address:n})}}function S(t,s,n,l,f){const S=h(s,l),q={};if(S.url&&(q["url.full"]=S.url),S.method&&(q["http.request.method"]=S.method),S.query_string&&(q["url.query"]=k(S.query_string)),(0,p.safeSetSpanJSONAttributes)(t,q),S.cookies&&Object.keys(S.cookies).length>0){const s=Object.entries(S.cookies).map(([t,s])=>`${t}=${s}`).join("; "),o=(0,u.httpHeadersToSpanAttributes)({cookie:s},f,"request");(0,p.safeSetSpanJSONAttributes)(t,o)}if(S.headers){const s=(0,u.httpHeadersToSpanAttributes)(S.headers,f,"request");(0,p.safeSetSpanJSONAttributes)(t,s)}if(null!=S.data){const s="string"==typeof S.data?S.data:JSON.stringify(S.data);s&&(0,p.safeSetSpanJSONAttributes)(t,{"http.request.body.data":s})}if(l.ip){const u=s.headers&&(0,c.getClientIPAddress)(s.headers)||n||void 0;u&&(0,p.safeSetSpanJSONAttributes)(t,{[o.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:u})}}function h(t,s){const o={},u={...t.headers};if(s.headers&&(o.headers=u,s.cookies||delete u.cookie,!s.ip)){const t=new Set(c.ipHeaderNames.map(t=>t.toLowerCase()));for(const s of Object.keys(u))t.has(s.toLowerCase())&&delete u[s]}if(o.method=t.method,s.url&&(o.url=t.url),s.cookies){const s=t.cookies||(u?.cookie?(0,n.parseCookie)(u.cookie):void 0);o.cookies=s||{}}return s.query_string&&(o.query_string=t.query_string),s.data&&(o.data=t.data),o}function k(t){if("string"==typeof t)return t||void 0;return(Array.isArray(t)?t:Object.entries(t)).map(([t,s])=>`${t}=${s}`).join("&")||void 0}},2362,[2273,2310,2274,2338,2352,2363,2298]);
836__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getClientIPAddress",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ipHeaderNames",{enumerable:!0,get:function(){return t}});const t=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];function n(n){const F={};for(const t of Object.keys(n))F[t.toLowerCase()]=n[t];return t.map(t=>{const n=F[t.toLowerCase()],o=Array.isArray(n)?n.join(";"):n;return"Forwarded"===t?f(o):o?.split(",").map(t=>t.trim())}).reduce((t,n)=>n?t.concat(n):t,[]).find(t=>null!==t&&o(t))||null}function f(t){if(!t)return null;for(const n of t.split(";"))if(n.startsWith("for="))return n.slice(4);return null}function o(t){return/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(t)}},2363,[]);
837__d(function(g,r,i,a,m,e,d){"use strict";
837Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureConsoleIntegration",{enumerable:!0,get:function(){return v}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]);const v=(0,s.defineIntegration)((n={})=>{const s=n.levels||c.CONSOLE_LEVELS,l=n.handled??!0;return{name:"CaptureConsole",setup(n){"console"in f.GLOBAL_OBJ&&(0,o.addConsoleInstrumentationHandler)(({args:o,level:c})=>{(0,t.getClient)()===n&&s.includes(c)&&E(o,c,l)})}}});function E(o,s,c){const f=(0,u.severityLevelFromString)(s),v=new Error,E={level:(0,u.severityLevelFromString)(s),extra:{arguments:o}};(0,t.withScope)(t=>{if(t.addEventProcessor(t=>(t.logger="console",(0,l.addExceptionMechanism)(t,{handled:c,type:"auto.core.capture_console"}),t)),"assert"===s){if(!o[0]){const n=`Assertion failed: ${(0,p.safeJoin)(o.slice(1)," ")||"console.assert"}`;t.setExtra("arguments",o.slice(1)),t.captureMessage(n,f,{captureContext:E,syntheticException:v})}return}const u=o.find(t=>t instanceof Error);if(u)return void(0,n.captureException)(u,E);const x=(0,p.safeJoin)(o," ");t.captureMessage(x,f,{captureContext:E,syntheticException:v})})}},2364,[2273,2301,2365,2310,2248,2259,2366,2263,2246]);
838__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return f}});var n=r(d[0]),o=r(d[1]),t=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]);const u=new Set([]);function f(n){const o="console",t=(0,c.addHandler)(o,n);return(0,c.maybeInstrument)(o,L),t}function O(n){for(const o of n)u.add(o);return()=>{for(const o of n)u.delete(o)}}function L(){"console"in l.GLOBAL_OBJ&&o.CONSOLE_LEVELS.forEach(function(f){f in l.GLOBAL_OBJ.console&&(0,t.fill)(l.GLOBAL_OBJ.console,f,function(t){return o.originalConsoleMethods[f]=t,function(...t){const O=t[0],L=o.originalConsoleMethods[f],B=u.size&&"string"==typeof O&&(0,s.stringMatchesSomePattern)(O,u);B||(0,c.triggerHandlers)("console",{args:t,level:f}),(!B||n.DEBUG_BUILD&&o.debug.isEnabled())&&L?.apply(l.GLOBAL_OBJ.console,t)}})})}},2365,[2244,2248,2260,2263,2246,2247]);
839__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return"warn"===n?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"severityLevelFromString",{enumerable:!0,get:function(){return n}})},2366,[]);
840__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_shouldDropEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"dedupeIntegration",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),u=r(d[2]),i=r(d[3]);const o=(0,t.defineIntegration)(()=>{let t;return{name:"Dedupe",processEvent(i){if(i.type)return i;try{if(c(i,t))return n.DEBUG_BUILD&&u.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=i}}});function c(n,t){return!!t&&(!!f(n,t)||!!l(n,t))}function f(n,t){const u=n.message,i=t.message;return!(!u&&!i)&&(!(u&&!i||!u&&i)&&(u===i&&(!!s(n,t)&&!!p(n,t))))}function l(n,t){const u=v(t),i=v(n);return!(!u||!i)&&(u.type===i.type&&u.value===i.value&&(!!s(n,t)&&!!p(n,t)))}function p(n,t){let u=(0,i.getFramesFromEvent)(n),o=(0,i.getFramesFromEvent)(t);if(!u&&!o)return!0;if(u&&!o||!u&&o)return!1;if(o.length!==u.length)return!1;for(let n=0;n<o.length;n++){const t=o[n],i=u[n];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function s(n,t){let u=n.fingerprint,i=t.fingerprint;if(!u&&!i)return!0;if(u&&!i||!u&&i)return!1;try{return!(u.join("")!==i.join(""))}catch{return!1}}function v(n){return n.exception?.values?.[0]}},2367,[2244,2310,2248,2251]);
841__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]),f=r(d[6]);const l=(0,n.defineIntegration)((t={})=>{const{depth:n=3,captureErrorCause:o=!0}=t;return{name:"ExtraErrorData",processEvent(t,c,s){const{maxValueLength:u}=s.getOptions();return E(t,c,n,o,u)}}});function E(t,n={},o,f,l){if(!n.originalException||!(0,c.isError)(n.originalException))return t;const E=n.originalException.name||n.originalException.constructor.name,x=p(n.originalException,f,l);if(x){const n={...t.contexts},f=(0,s.normalize)(x,o);return(0,c.isPlainObject)(f)&&((0,u.setSkipNormalizationHint)(f),n[E]=f),{...t,contexts:n}}return t}function p(n,s,u){try{const t=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const s of Object.keys(n)){if(-1!==t.indexOf(s))continue;const l=n[s];o[s]=(0,c.isError)(l)||"string"==typeof l?u?(0,f.truncate)(`${l}`,u):`${l}`:l}if(s&&void 0!==n.cause)if((0,c.isError)(n.cause)){const t=n.cause.name||n.cause.constructor.name;o.cause={[t]:p(n.cause,!1,u)}}else o.cause=n.cause;if("function"==typeof n.toJSON){const t=n.toJSON();for(const n of Object.keys(t)){const s=t[n];o[n]=(0,c.isError)(s)?s.toString():s}}return o}catch(n){t.DEBUG_BUILD&&o.debug.error("Unable to extract extra data from the Error object:",n)}return null}},2368,[2244,2310,2248,2261,2264,2265,2263]);
842__d(function(g,r,i,a,m,e,d){"use strict";
842Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateIteratee",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const o=(0,t.defineIntegration)((t={})=>{const n=t.root,o=t.prefix||"app:///",f="window"in c.GLOBAL_OBJ&&!!c.GLOBAL_OBJ.window,l=t.iteratee||s({isBrowser:f,root:n,prefix:o});function u(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map(t=>{return{...t,...t.stacktrace&&{stacktrace:(n=t.stacktrace,{...n,frames:n?.frames?.map(t=>l(t))})}};var n})}}}catch{return t}}return{name:"RewriteFrames",processEvent(t){let n=t;return t.exception&&Array.isArray(t.exception.values)&&(n=u(n)),n}}});function s({isBrowser:t,root:c,prefix:o}){return s=>{if(!s.filename)return s;const f=/^[a-zA-Z]:\\/.test(s.filename)||s.filename.includes("\\")&&!s.filename.includes("/"),l=/^\//.test(s.filename);if(t){if(c){const t=s.filename;0===t.indexOf(c)&&(s.filename=t.replace(c,o))}}else if(f||l){const t=f?s.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):s.filename,l=c?(0,n.relative)(c,t):(0,n.basename)(t);s.filename=`${o}${l}`}return s}}},2369,[2310,2370,2246]);
843__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,n){let i=0;for(let n=t.length-1;n>=0;n--){const l=t[n];"."===l?t.splice(n,1):".."===l?(t.splice(n,1),i++):i&&(t.splice(n,1),i--)}if(n)for(;i--;i)t.unshift("..");return t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"basename",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"dirname",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isAbsolute",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"join",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"normalizePath",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"relative",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"resolve",{enumerable:!0,get:function(){return l}});const n=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function i(t){const i=t.length>1024?`<truncated>${t.slice(-1024)}`:t,l=n.exec(i);return l?l.slice(1):[]}function l(...n){let i="",l=!1;for(let t=n.length-1;t>=-1&&!l;t--){const c=t>=0?n[t]:"/";c&&(i=`${c}/${i}`,l="/"===c.charAt(0))}return i=t(i.split("/").filter(t=>!!t),!l).join("/"),(l?"/":"")+i||"."}function c(t){let n=0;for(;n<t.length&&""===t[n];n++);let i=t.length-1;for(;i>=0&&""===t[i];i--);return n>i?[]:t.slice(n,i-n+1)}function o(t,n){t=l(t).slice(1),n=l(n).slice(1);const i=c(t.split("/")),o=c(n.split("/")),u=Math.min(i.length,o.length);let f=u;for(let t=0;t<u;t++)if(i[t]!==o[t]){f=t;break}let s=[];for(let t=f;t<i.length;t++)s.push("..");return s=s.concat(o.slice(f)),s.join("/")}function u(n){const i=f(n),l="/"===n.slice(-1);let c=t(n.split("/").filter(t=>!!t),!i).join("/");return c||i||(c="."),c&&l&&(c+="/"),(i?"/":"")+c}function f(t){return"/"===t.charAt(0)}function s(...t){return u(t.join("/"))}function b(t){const n=i(t),l=n[0]||"";let c=n[1];return l||c?(c&&(c=c.slice(0,c.length-1)),l+c):"."}function h(t,n){let l=i(t)[2]||"";return n&&l.slice(-1*n.length)===n&&(l=l.slice(0,l.length-n.length)),l}},2370,[]);
844__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DB_OPERATIONS_TO_INSTRUMENT",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"FILTER_MAPPINGS",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"extractOperation",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"translateFiltersIntoMethods",{enumerable:!0,get:function(){return R}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]),c=r(d[6]),p=r(d[7]),l=r(d[8]),f=r(d[9]),h=r(d[10]);const y=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],b=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],S={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},T=["select","insert","upsert","update","delete"];function E(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function O(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function _(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function I(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function R(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...o]=t.split(".");let s;return s=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&S[n]||"filter",`${s}(${e}, ${o.join(".")})`}function P(e,t=!1){return new Proxy(e,{apply:(n,s,c)=>(0,h.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,s,c).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:f.SPAN_STATUS_ERROR}),(0,o.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:f.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:f.SPAN_STATUS_ERROR}),e.end(),(0,o.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...c))})}function A(e){const t=e.auth;if(t&&!O(e.auth)){for(const n of y){const o=t[n];o&&("function"==typeof e.auth[n]&&(e.auth[n]=P(o)))}for(const n of b){const o=t.admin[n];o&&("function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=P(o,!0)))}E(e.auth)}}function N(n,s){O(n.prototype.then)||(n.prototype.then=new Proxy(n.prototype.then,{apply(n,c,y){const b=T,S=c,E=I(S.method,S.headers);if(!b.includes(E))return Reflect.apply(n,c,y);if(!S?.url?.pathname||"string"!=typeof S.url.pathname)return Reflect.apply(n,c,y);const O=S.url.pathname.split("/"),P=O.length>0?O[O.length-1]:"",A=[];
844for(const[e,t]of S.url.searchParams.entries())A.push(R(e,t));const N=Object.create(null);if((0,l.isPlainObject)(S.body))for(const[e,t]of Object.entries(S.body))N[e]=t;const U=(0,t.getClient)(),j=s.sendOperationData??!0===U?.getDataCollectionOptions().userInfo,k=_(S.body,N),w="select"===E?"":`${E}${$=S.body,v=N,void 0!==_($,v)?"(...) ":""}`;var $,v;const x=j?A.join(" "):A.length>0?"[redacted]":"",B=[w.trimEnd(),x].filter(Boolean).join(" "),D=B?`${B} from(${P})`:`from(${P})`,C={"db.table":P,"db.schema":S.schema,"db.url":S.url.origin,"db.sdk":S.headers["X-Client-Info"],"db.system":"postgresql","db.operation":E,[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return A.length&&j&&(C["db.query"]=A),void 0!==k&&j&&(C["db.body"]=k),(0,h.startSpan)({name:D,attributes:C},t=>Reflect.apply(n,c,[]).then(n=>{if(t&&(n&&"object"==typeof n&&"status"in n&&(0,f.setHttpStatus)(t,n.status||500),t.end()),n?.error){const e=new Error(n.error.message);n.error.code&&(e.code=n.error.code),n.error.details&&(e.details=n.error.details);const t={};A.length&&j&&(t.query=A),void 0!==k&&j&&(t.body=k),(0,o.captureException)(e,e=>(e.addEventProcessor(e=>((0,p.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",t),e))}const s={type:"supabase",category:`db.${E}`,message:D},u={};return A.length&&j&&(u.query=A),void 0!==k&&j&&(u.body=k),Object.keys(u).length&&(s.data=u),(0,e.addBreadcrumb)(s),n},e=>{throw t&&((0,f.setHttpStatus)(t,500),t.end()),e}).then(...y))}}),E(n.prototype.then))}function U(e,t){for(const o of T)O(e.prototype[o])||(e.prototype[o]=new Proxy(e.prototype[o],{apply(e,s,u){const p=Reflect.apply(e,s,u),l=p.constructor;return n.DEBUG_BUILD&&c.debug.log(`Instrumenting ${o} operation's PostgRESTFilterBuilder`),N(l,t),p}}),E(e.prototype[o]))}const j=(e,t={})=>{if(!e)return void(n.DEBUG_BUILD&&c.debug.warn("Supabase integration was not installed because no Supabase client was provided."));const o=e.constructor===Function?e:e.constructor;var s,u;u=t,O((s=o).prototype.from)||(s.prototype.from=new Proxy(s.prototype.from,{apply(e,t,n){const o=Reflect.apply(e,t,n);return U(o.constructor,u),o}}),E(s.prototype.from)),A(e)},k=(e,t)=>({setupOnce(){j(e,t)},name:"Supabase"}),w=(0,s.defineIntegration)(e=>k(e.supabaseClient,{sendOperationData:e.sendOperationData}))},2371,[2354,2273,2244,2301,2310,2274,2248,2259,2261,2275,2294]);
845__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"applyZodErrorsToEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"flattenIssue",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"flattenIssuePath",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"formatIssueMessage",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return l}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);function s(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function o(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function u(e){const t=new Set;for(const n of e.issues){const e=o(n.path);e.length>0&&t.add(e)}const s=Array.from(t);if(0===s.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,n.truncate)(s.join(", "),100)}`}function c(e,n=!1,o,c){if(!(o.exception?.values&&c.originalException&&(l=c.originalException,(0,t.isError)(l)&&"ZodError"===l.name&&Array.isArray(l.issues))&&0!==c.originalException.issues.length))return o;var l;try{const t=(n?c.originalException.issues:c.originalException.issues.slice(0,e)).map(s);return n&&(Array.isArray(c.attachments)||(c.attachments=[]),c.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:t})})),{...o,exception:{...o.exception,values:[{...o.exception.values[0],value:u(c.originalException)},...o.exception.values.slice(1)]},extra:{...o.extra,"zoderror.issues":t.slice(0,e)}}}catch(e){return{...o,extra:{...o.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const l=(0,e.defineIntegration)((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(n,s)=>c(t,e.saveZodIssuesAsAttachment,n,s)}})},2372,[2310,2261,2263]);
846__d(function(g,r,_i,a,m,e,d){"use strict";
846Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),i=r(d[2]),o=r(d[3]),s=r(d[4]);const l=(0,t.defineIntegration)(t=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",t=>{(0,i.forEachEnvelopeItem)(t,(t,i)=>{if("event"===i){const i=Array.isArray(t)?t[1]:void 0;i&&((0,n.stripMetadataFromStackFrames)(i),t[1]=i)}})}),t.on("applyFrameMetadata",i=>{if(i.type)return;const o=t.getOptions().stackParser;(0,n.addMetadataToStackFrames)(o,i)})},preprocessEvent(n){t.ignoreSentryInternalFrames&&(s.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(n.sdkProcessingMetadata={...n.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(n){const i=!!t.ignoreSentryInternalFrames&&(!0===n.sdkProcessingMetadata?.insideSentryWrapped&&1===n.exception?.values?.length),o=u(n,t.ignoreSentryInternalFrames,i);if(o){if(o["drop-error-if-contains-third-party-frames"===t.behaviour||"apply-tag-if-contains-third-party-frames"===t.behaviour?"some":"every"](n=>!n.some(n=>t.filterKeys.includes(n)))){if("drop-error-if-contains-third-party-frames"===t.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===t.behaviour)return null;n.tags={...n.tags,third_party_code:!0}}}return n}}));function c(t,n,i){if(0!==n)return!1;if(i&&p(t))return!0;if("sentryWrapped"===t.function)return!0;if(!t.context_line||!t.filename)return!1;if(!t.filename.includes("sentry")||!t.filename.includes("helpers")||!t.context_line.includes(h))return!1;if(t.pre_context){const n=t.pre_context.length;for(let i=0;i<n;i++)if(t.pre_context[i]?.includes(y))return!0}return!1}function u(t,n,i){const s=(0,o.getFramesFromEvent)(t);if(s)return s.filter((t,o)=>!!t.filename&&((null!=t.lineno||null!=t.colno||null!=t.instruction_addr)&&(!n||!c(t,o,!!i)))).map(t=>t.module_metadata?Object.keys(t.module_metadata).filter(t=>t.startsWith(f)).map(t=>t.slice(f.length)):[])}function p(t){return!t.context_line&&!t.pre_context&&!!t.function&&t.function.length<=2}const f="_sentryBundlerPluginAppKey:",y="Attempt to invoke user-land function",h="fn.apply(this, wrappedArguments)"},2373,[2310,2361,2290,2251,2246]);
847__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addConsoleBreadcrumb",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"consoleIntegration",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),u=r(d[5]),c=r(d[6]),f=r(d[7]);const O=(0,s.defineIntegration)((t={})=>{const s=new Set(t.levels||l.CONSOLE_LEVELS);return{name:"Console",setup(l){const u=(0,o.addConsoleInstrumentationHandler)(({args:t,level:o})=>{(0,n.getClient)()===l&&s.has(o)&&L(o,t)});if(l.registerCleanup(u),t.filter){const n=(0,o.addConsoleInstrumentationFilter)(t.filter);l.registerCleanup(n)}}}});function L(n,o){const s={category:"console",data:{arguments:o,logger:"console"},level:(0,u.severityLevelFromString)(n),message:p(o)};if("assert"===n){if(!1!==o[0])return;{const t=o.slice(1);s.message=t.length>0?`Assertion failed: ${p(t)}`:"Assertion failed",s.data.arguments=t}}(0,t.addBreadcrumb)(s,{input:o,level:n})}function p(t){return"util"in f.GLOBAL_OBJ&&"function"==typeof f.GLOBAL_OBJ.util.format?f.GLOBAL_OBJ.util.format(...t):(0,c.safeJoin)(t," ")}},2374,[2354,2273,2365,2310,2248,2366,2263,2246]);
848__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"featureFlagsIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o=(0,t.defineIntegration)(()=>({name:"FeatureFlags",processEvent:(t,o,c)=>(0,n._INTERNAL_copyFlagsFromScopeToEvent)(t),addFeatureFlag(t,o){(0,n._INTERNAL_insertFlagToScope)(t,o),(0,n._INTERNAL_addFeatureFlagToActiveSpan)(t,o)}}))},2375,[2310,2376]);
849__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return p}}
849),Object.defineProperty(e,"_INTERNAL_insertToFlagBuffer",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);const f=100,c=10,l="flag.evaluation.";function s(n){if(n.type)return n;const o=(0,t.getCurrentScope)().getScopeData().contexts.flags,u=o?o.values:[];return u.length?(void 0===n.contexts&&(n.contexts={}),n.contexts.flags={values:[...u]},n):n}function p(n,o,u=f){const c=(0,t.getCurrentScope)().getScopeData().contexts;c.flags||(c.flags={values:[]});_(c.flags.values,n,o,u)}function _(t,u,f,c){if("boolean"!=typeof f)return;if(t.length>c)return void(n.DEBUG_BUILD&&o.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${c}`));const l=t.findIndex(t=>t.flag===u);-1!==l&&t.splice(l,1),t.length===c&&t.shift(),t.push({flag:u,result:f})}function b(t,n,o=c){if("boolean"!=typeof n)return;const f=(0,u.getActiveSpan)();if(!f)return;const s=(0,u.spanToJSON)(f).data;if(`${l}${t}`in s)return void f.setAttribute(`${l}${t}`,n);Object.keys(s).filter(t=>t.startsWith(l)).length<o&&f.setAttribute(`${l}${t}`,n)}},2376,[2273,2244,2248,2253]);
850__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"growthbookIntegration",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);const u=(0,t.defineIntegration)(({growthbookClass:t})=>({name:"GrowthBook",setupOnce(){const o=t.prototype;"function"==typeof o.isOn&&(0,n.fill)(o,"isOn",c),"function"==typeof o.getFeatureValue&&(0,n.fill)(o,"getFeatureValue",c)},processEvent:(t,n,u)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(t)}));function c(t){return function(...n){const u=n[0],c=t.apply(this,n);return"string"==typeof u&&"boolean"==typeof c&&((0,o._INTERNAL_insertFlagToScope)(u,c),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(u,c)),c}}},2377,[2310,2376,2260]);
851__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"conversationIdIntegration",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);const c=(0,n.defineIntegration)(()=>({name:"ConversationId",setup(n){n.on("spanStart",n=>{const c=(0,t.getCurrentScope)().getScopeData(),p=(0,t.getIsolationScope)().getScopeData(),I=c.conversationId||p.conversationId;if(I){const{op:t,data:c,description:p}=(0,s.spanToJSON)(n);if(!t?.startsWith("gen_ai.")&&!c["ai.operationId"]&&!p?.startsWith("ai."))return;n.setAttribute(o.GEN_AI_CONVERSATION_ID_ATTRIBUTE,I)}})}}))},2378,[2273,2310,2274,2253]);
852__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"profiler",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function l(n){return!!n&&void 0!==n._profiler&&"function"==typeof n._profiler.start&&"function"==typeof n._profiler.stop}const f={startProfiler:function(){const f=(0,n.getClient)();if(!f)return void(t.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));const s=f.getIntegrationByName("ProfilingIntegration");s?l(s)?s._profiler.start():t.DEBUG_BUILD&&o.debug.warn("Profiler is not available on profiling integration."):t.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")},stopProfiler:function(){const f=(0,n.getClient)();if(!f)return void(t.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));const s=f.getIntegrationByName("ProfilingIntegration");s?l(s)?s._profiler.stop():t.DEBUG_BUILD&&o.debug.warn("Profiler is not available on profiling integration."):t.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")}}},2379,[2273,2244,2248]);
853__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"_callOnRequestSpanEnd",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"instrumentFetchRequest",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]),p=r(d[5]),u=r(d[6]),f=r(d[7
853]),h=r(d[8]),l=r(d[9]),b=r(d[10]),y=r(d[11]);function _(n,o,c,f,b){if(!n.fetchData)return;const{method:y,url:_}=n.fetchData,A=(0,p.hasSpansEnabled)()&&o(_);if(n.endTimestamp){const t=n.fetchData.__span;if(!t)return;const s=f[t];return void(s&&(A&&(R(s,n),S(s,n,b)),delete f[t]))}const{spanOrigin:v="auto.http.browser",propagateTraceparent:O=!1}="object"==typeof b?b:{spanOrigin:b},I=(0,t.getClient)(),j=!!(0,s.getActiveSpan)()||!!I&&(0,h.hasSpanStreamingEnabled)(I),D=A&&j?(0,l.startInactiveSpan)(E(_,y,v)):new u.SentryNonRecordingSpan;if(A&&!j&&I?.recordDroppedEvent("no_parent_span","span"),n.fetchData.__span=D.spanContext().spanId,f[D.spanContext().spanId]=D,c(n.fetchData.url)){const t=n.args[0],s={...n.args[1]||{}},o=T(t,s,(0,p.hasSpansEnabled)()&&j?D:void 0,O);o&&(n.args[1]=s,s.headers=o)}if(I){const t={input:n.args,response:n.response,startTimestamp:n.startTimestamp,endTimestamp:n.endTimestamp};I.emit("beforeOutgoingRequestSpan",D,t)}return D}function S(t,n,s){const o="object"==typeof s&&null!==s?s.onRequestSpanEnd:void 0;o?.(t,{headers:n.response?.headers,error:n.error})}function T(t,n,s,o){const p=(0,b.getTraceData)({span:s,propagateTraceparent:o}),u=p["sentry-trace"],f=p.baggage,h=p.traceparent;if(!u)return;const l=n.headers||((0,c.isRequest)(t)?t.headers:void 0);if(l){if(y=l,"undefined"!=typeof Headers&&(0,c.isInstanceOf)(y,Headers)){const t=new Headers(l);if(t.get("sentry-trace")||t.set("sentry-trace",u),o&&h&&!t.get("traceparent")&&t.set("traceparent",h),f){const n=t.get("baggage");n?A(n)||t.set("baggage",`${n},${f}`):t.set("baggage",f)}return t}if(v(l)){const t=[...l];t.find(t=>"sentry-trace"===t[0])||t.push(["sentry-trace",u]),o&&h&&!t.find(t=>"traceparent"===t[0])&&t.push(["traceparent",h]);const n=l.find(t=>"baggage"===t[0]&&"string"==typeof t[1]&&A(t[1]));return f&&!n&&t.push(["baggage",f]),t}{const t="sentry-trace"in l?l["sentry-trace"]:void 0,n="traceparent"in l?l.traceparent:void 0,s="baggage"in l?l.baggage:void 0,c=s?Array.isArray(s)?[...s]:[s]:[],p=s&&(Array.isArray(s)?s.find(t=>A(t)):A(s));f&&!p&&c.push(f);const b=Object.assign({},l,{"sentry-trace":t??u,baggage:c.length>0?c.join(","):void 0});return o&&h&&!n&&(b.traceparent=h),b}}return{...p};var y}function R(t,n){if(n.response){(0,o.setHttpStatus)(t,n.response.status);const s=n.response?.headers?.get("content-length");if(s){const n=parseInt(s);n>0&&t.setAttribute("http.response_content_length",n)}}else n.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"});t.end()}function A(t){return"string"==typeof t&&t.split(",").some(t=>t.trim().startsWith(f.SENTRY_BAGGAGE_KEY_PREFIX))}function v(t){return!!Array.isArray(t)&&t.every(t=>Array.isArray(t)&&2===t.length&&"string"==typeof t[0])}function E(t,n,s){if(t.startsWith("data:")){return{name:`${n} ${(0,y.stripDataUrlContent)(t)}`,attributes:O(t,void 0,n,s)}}const o=(0,y.parseStringToURLObject)(t);return{name:`${n} ${o?(0,y.getSanitizedUrlStringFromUrlObject)(o):t}`,attributes:O(t,o,n,s)}}function O(t,s,o,c){const p={url:(0,y.stripDataUrlContent)(t),type:"fetch","http.method":o,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return s&&((0,y.isURLObjectRelative)(s)||(p["http.url"]=(0,y.stripDataUrlContent)(s.href),p["server.address"]=s.host),s.search&&(p["http.query"]=s.search),s.hash&&(p["http.fragment"]=s.hash)),p}},2380,[2273,2274,2253,2275,2261,2282,2284,2278,2293,2294,2348,2343]);
854__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureFeedback",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n,c={},s=(0,t.getCurrentScope)()){const{message:o,name:u,email:l,url:f,source:b,associatedEventId:_,tags:p}=n,v={contexts:{feedback:{contact_email:l,name:u,message:o,url:f,source:b,associated_event_id:_}},type:"feedback",level:"info",tags:p},k=s?.getClient()||(0,t.getClient)();k&&k.emit("beforeSendFeedback",v,c);return s.captureEvent(v,c)}},2381,[2273]);
855__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fmt",{enumerable:!0,get:function(){return n.fmt}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"error",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"fatal",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"info",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"trace",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"warn",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]);function u(n,u,o,c,f){(0,t._INTERNAL_captureLog)({level:n,message:u,attributes:o,severityNumber:f},c)}function o(t,n,{scope:o}={}){u("trace",t,n,o)}function c(t,n,{scope:o}={}){u("debug",t,n,o)}function f(t,n,{scope:o}={}){u("info",t,n,o)}function b(t,n,{scope:o}={}){u("warn",t,n,o)}function p(t,n,{scope:o}={}){u("error",t,n,o)}function l(t,n,{scope:o}={}){u("fatal",t,n,o)}},2382,[2311,2344]);
856__d(function(g,r,i,a,m,e,d){"use strict";
856Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),f=r(d[7]),b=r(d[8]),p=r(d[9]);const L={[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},_=(0,o.defineIntegration)((o={})=>{const l=o.levels||c.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(o){const{enableLogs:_,normalizeDepth:C=3,normalizeMaxBreadth:E=1e3}=o.getOptions();if(!_)return void(n.DEBUG_BUILD&&c.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled"));const I=(0,s.addConsoleInstrumentationHandler)(({args:n,level:s})=>{if((0,t.getClient)()!==o||!l.includes(s))return;const c=n[0],_=n.slice(1);if("assert"===s){if(!c){const t=_.length>0?`Assertion failed: ${(0,p.formatConsoleArgs)(_,C,E)}`:"Assertion failed";(0,b._INTERNAL_captureLog)({level:"error",message:t,attributes:L})}return}const I="log"===s,v={...L};if((0,u.isPlainObject)(c)){Object.assign(v,(0,f.normalize)(c,C,E));const t="string"==typeof n[1]?2:1;n.slice(t).forEach((t,n)=>{v[`sentry.message.parameter.${n}`]=(0,f.normalize)(t,C,E)})}else{if(_.length>0&&"string"==typeof c&&!(0,p.hasConsoleSubstitutions)(c)){const t=(0,p.createConsoleTemplateAttributes)(c,_);for(const[n,s]of Object.entries(t))v[n]=n.startsWith("sentry.message.parameter.")?(0,f.normalize)(s,C,E):s}}(0,b._INTERNAL_captureLog)({level:I?"info":s,message:(0,p.formatConsoleArgs)(n,C,E),severityNumber:I?10:void 0,attributes:v})});o.registerCleanup(I)}}})},2383,[2273,2244,2365,2310,2274,2248,2261,2264,2311,2384]);
857__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createConsoleTemplateAttributes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"formatConsoleArgs",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"hasConsoleSubstitutions",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"safeJoinConsoleArgs",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function u(t,n,u){return"util"in o.GLOBAL_OBJ&&"function"==typeof o.GLOBAL_OBJ.util.format?o.GLOBAL_OBJ.util.format(...t):s(t,n,u)}function s(o,u,s){return o.map(o=>(0,t.isPrimitive)(o)?String(o):JSON.stringify((0,n.normalize)(o,u,s))).join(" ")}function f(t){return/%[sdifocO]/.test(t)}function c(t,n){const o={},u=new Array(n.length).fill("{}").join(" ");return o["sentry.message.template"]=`${t} ${u}`,n.forEach((t,n)=>{o[`sentry.message.parameter.${n}`]=t}),o}},2384,[2261,2264,2246]);
858__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"count",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"distribution",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"gauge",{enumerable:!0,get:function(){return c}});var t=r(d[0]);function n(n,u,c,o){(0,t._INTERNAL_captureMetric)({type:n,name:u,value:c,unit:o?.unit,attributes:o?.attributes},{scope:o?.scope})}function u(t,u=1,c){n("counter",t,u,c)}function c(t,u,c){n("gauge",t,u,c)}function o(t,u,c){n("distribution",t,u,c)}},2385,[2319]);
859__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createConsolaReporter",{enumerable:!0,get:function(){return f}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),l=r(d[4]);const c=["trace","debug","info","warn","error","fatal"];function f(o={}){const f=new Set(o.levels??c),u=o.client;return{log(o){const{type:c,level:b,message:h,args:O,tag:j,date:z,...C}=o,P=u||(0,t.getClient)();if(!P)return;const _=p(c,b);if(!f.has(_))return;const{normalizeDepth:w=3,normalizeMaxBreadth:A=1e3}=P.getOptions(),T={};for(const[t,s]of Object.entries(C))T[t]=(0,l.normalize)(s,w,A);T["sentry.origin"]="auto.log.consola",j&&(T["consola.tag"]=j),c&&(T["consola.type"]=c),null!=b&&"number"==typeof b&&(T["consola.level"]=b);const x=v(y(O,w,A),w,A);x?.attributes&&Object.assign(T,x.attributes),(0,s._INTERNAL_captureLog)({level:_,message:x?.message||h||O&&(0,n.formatConsoleArgs)(O,w,A)||"",attributes:T})}}}const u={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},b={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function p(t,s){if("verbose"===t)return"debug";if("silent"===t)return"trace";if(t){const s=u[t];if(s)return s}if("number"==typeof s){const t=b[s];if(t)return t}return"info"}function y(t,s,l){if(!t?.length)return{message:""};const c=(0,n.formatConsoleArgs)(t,s,l),f=t[0];if((0,o.isPlainObject)(f)){const s="string"==typeof t[1]?2:1;return{message:c,attributes:f,messageParameters:t.slice(s)}}{const s=t.slice(1),o=s.length>0&&"string"==typeof f&&!(0,n.hasConsoleSubstitutions)(f);return{message:c,messageTemplate:o?f:void 0,messageParameters:o?s:void 0}}}function v(t,s,o){const{message:c,attributes:f,messageTemplate:u,messageParameters:b}=t,p={};if(u&&b){const t=(0,n.createConsoleTemplateAttributes)(u,b);for(const[n,c]of Object.entries(t))p[n]=n.startsWith("sentry.message.parameter.")?(0,l.normalize)(c,s,o):c}else b&&b.length>0&&b.forEach((t,n)=>{p[`sentry.message.parameter.${n}`]=(0,l.normalize)(t,s,o)});return{message:c,attributes:{...(0,l.normalize)(f,s,o),...p}}}},2386,[2273,2311,2384,2261,2264]);
860__d(function(g,r,i,a,m,e,d){"use strict";
860Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addVercelAiProcessors",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"processVercelAiSpanAttributes",{enumerable:!0,get:function(){return R}});var T=r(d[0]),_=r(d[1]),t=r(d[2]),E=r(d[3]),A=r(d[4]),n=r(d[5]),I=r(d[6]),o=r(d[7]),s=r(d[8]);function O(_){const{data:A,description:n}=(0,E.spanToJSON)(_);if(!n)return;if(A[s.AI_TOOL_CALL_NAME_ATTRIBUTE]&&A[s.AI_TOOL_CALL_ID_ATTRIBUTE]&&"ai.toolCall"===n)return void P(_,A);if(!A[s.AI_OPERATION_ID_ATTRIBUTE]&&!n.startsWith("ai."))return;const I=(0,T.getClient)(),o=I?.getIntegrationByName("VercelAI");B(_,n,A,(0,t.shouldEnableTruncation)(o?.options?.enableTruncation))}function N(T){if("transaction"===T.type&&T.spans){const _=new Map;for(const t of T.spans)S(t),(0,o.accumulateTokensForParent)(t,_);(0,o.applyToolDescriptionsAndTokens)(T.spans,_);const t=T.contexts?.trace;"gen_ai.invoke_agent"===t?.op&&(0,o.applyAccumulatedTokens)(t,_)}return T}function c(T){return"string"!=typeof T?"stop":"tool-calls"===T?"tool_call":T}function U(T){const _=T[s.AI_RESPONSE_TEXT_ATTRIBUTE],t=T[s.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE],E=T[s.AI_RESPONSE_FINISH_REASON_ATTRIBUTE];if(null==_&&null==t)return;const n=[];if("string"==typeof _&&_.length>0&&n.push({type:"text",content:_}),null!=t)try{const _="string"==typeof t?JSON.parse(t):t;if(Array.isArray(_)){for(const T of _){const _=T.input??T.args;n.push({type:"tool_call",id:T.toolCallId,name:T.toolName,arguments:"string"==typeof _?_:JSON.stringify(_??{})})}delete T[s.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]}}catch{}if(n.length>0){const _={role:"assistant",parts:n,finish_reason:c(E)};T[A.GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE]=JSON.stringify([_]),delete T[s.AI_RESPONSE_TEXT_ATTRIBUTE]}}function R(T){p(T,s.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE),p(T,"ai.usage.inputTokens",A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,"ai.usage.outputTokens",A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,"ai.response.avgOutputTokensPerSecond","ai.response.avgCompletionTokensPerSecond");if(Object.keys(T).some(T=>T.startsWith(s.AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX))||"number"!=typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]||"number"!=typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]||(T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]+T[A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]),"number"==typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]){const _="number"==typeof T[A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]?T[A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:0;T[A.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=_+T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]}if(T[s.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(T[s.AI_PROMPT_TOOLS_ATTRIBUTE])&&(T[s.AI_PROMPT_TOOLS_ATTRIBUTE]=(0,o.convertAvailableToolsToJsonString)(T[s.AI_PROMPT_TOOLS_ATTRIBUTE])),T[s.OPERATION_NAME_ATTRIBUTE]){const _=T[s.AI_OPERATION_ID_ATTRIBUTE]?T[s.AI_OPERATION_ID_ATTRIBUTE]:T[s.OPERATION_NAME_ATTRIBUTE],t=n.SPAN_TO_OPERATION_NAME.get(_)??_;T[A.GEN_AI_OPERATION_NAME_ATTRIBUTE]=t,delete T[s.OPERATION_NAME_ATTRIBUTE]}if(p(T,s.AI_PROMPT_MESSAGES_ATTRIBUTE,A.GEN_AI_INPUT_MESSAGES_ATTRIBUTE),U(T),p(T,s.AI_RESPONSE_OBJECT_ATTRIBUTE,"gen_ai.response.object"),p(T,s.AI_PROMPT_TOOLS_ATTRIBUTE,"gen_ai.request.available_tools"),p(T,s.AI_TOOL_CALL_ARGS_ATTRIBUTE,A.GEN_AI_TOOL_INPUT_ATTRIBUTE),p(T,s.AI_TOOL_CALL_RESULT_ATTRIBUTE,A.GEN_AI_TOOL_OUTPUT_ATTRIBUTE),p(T,s.AI_SCHEMA_ATTRIBUTE,"gen_ai.request.schema"),p(T,s.AI_MODEL_ID_ATTRIBUTE,A.GEN_AI_REQUEST_MODEL_ATTRIBUTE),Array.isArray(T[s.AI_VALUES_ATTRIBUTE])){const _=T[s.AI_VALUES_ATTRIBUTE].map(T=>{try{return JSON.parse(T)}catch{return T}});T[A.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]=1===_.length?_[0]:JSON.stringify(_)}f(T);for(const _ of Object.keys(T))Array.isArray(T[_])&&(T[_]=JSON.stringify(T[_])),_.startsWith("ai.")&&p(T,_,`vercel.${_}`)}function S(T){const{data:_,origin:t}=T;"auto.vercelai.otel"===t&&(T.status&&"ok"!==T.status&&(T.status="internal_error"),R(_))}function u(T){const t=T.attributes;if("auto.vercelai.otel"===t?.[_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]){if(R(t),"gen_ai.execute_tool"===t[_.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&T.parent_span_id){const _=n.toolDescriptionMap.get(T.parent_span_id);if(_){const T=t[A.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof T){const E=_.get(T);E&&(t[A.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=E)}}}n.toolDescriptionMap.delete(T.span_id)}}function p(T,_,t){null!=T[_]&&(T[t]=T[_],delete T[_])}function P(T,t){T.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel"),T.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.execute_tool"),T.setAttribute(A.GEN_AI_OPERATION_NAME_ATTRIBUTE,"execute_tool"),p(t,s.AI_TOOL_CALL_NAME_ATTRIBUTE,A.GEN_AI_TOOL_NAME_ATTRIBUTE),p(t,s.AI_TOOL_CALL_ID_ATTRIBUTE,A.GEN_AI_TOOL_CALL_ID_ATTRIBUTE);
860const E=t[A.GEN_AI_TOOL_CALL_ID_ATTRIBUTE];"string"==typeof E&&n.toolCallSpanContextMap.set(E,T.spanContext()),t[A.GEN_AI_TOOL_TYPE_ATTRIBUTE]||T.setAttribute(A.GEN_AI_TOOL_TYPE_ATTRIBUTE,"function");const I=t[A.GEN_AI_TOOL_NAME_ATTRIBUTE];I&&T.updateName(`execute_tool ${I}`)}function B(t,O,N,c){t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel");const U=O.replace("ai.","");t.setAttribute("ai.pipeline.name",U),t.updateName(U);const R=N[s.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE];R&&"string"==typeof R&&t.setAttribute("gen_ai.function_id",R),(0,o.requestMessagesFromPrompt)(t,N,c),N[s.AI_MODEL_ID_ATTRIBUTE]&&!N[A.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]&&t.setAttribute(A.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,N[s.AI_MODEL_ID_ATTRIBUTE]),t.setAttribute("ai.streaming",O.includes("stream"));const S=n.SPAN_TO_OPERATION_NAME.get(O);if(S?t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,`gen_ai.${S}`):O.startsWith("ai.stream")&&t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,"ai.run"),"invoke_agent"===S)return void(R&&"string"==typeof R?t.updateName(`invoke_agent ${R}`):t.updateName("invoke_agent"));const u=N[s.AI_MODEL_ID_ATTRIBUTE];u&&S&&t.updateName(`${S} ${u}`);const p=(0,T.getClient)();if(p&&(0,I.hasSpanStreamingEnabled)(p)&&N[s.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(N[s.AI_PROMPT_TOOLS_ATTRIBUTE])){const T=new Map;for(const _ of N[s.AI_PROMPT_TOOLS_ATTRIBUTE])try{const t="string"==typeof _?JSON.parse(_):_;t?.name&&t?.description&&T.set(t.name,t.description)}catch{}if(T.size>0){const _=(0,E.spanToJSON)(t).parent_span_id;_&&n.toolDescriptionMap.set(_,T)}}}function l(T){T.on("spanStart",O),T.addEventProcessor(Object.assign(N,{id:"VercelAiEventProcessor"})),T.on("processSpan",T=>{u(T)})}function G(T){const _={};if(!T||"object"!=typeof T)return _;const t=T,E=t.openai??t.azure;if(E&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,E.cachedPromptTokens),L(_,"gen_ai.usage.output_tokens.reasoning",E.reasoningTokens),L(_,"gen_ai.usage.output_tokens.prediction_accepted",E.acceptedPredictionTokens),L(_,"gen_ai.usage.output_tokens.prediction_rejected",E.rejectedPredictionTokens),L(_,A.GEN_AI_CONVERSATION_ID_ATTRIBUTE,E.responseId)),t.anthropic){const T=t.anthropic.usage?.cache_read_input_tokens??t.anthropic.cacheReadInputTokens;L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,T);const E=t.anthropic.usage?.cache_creation_input_tokens??t.anthropic.cacheCreationInputTokens;L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,E)}return t.bedrock?.usage&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t.bedrock.usage.cacheReadInputTokens),L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,t.bedrock.usage.cacheWriteInputTokens)),t.deepseek&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t.deepseek.promptCacheHitTokens),L(_,"gen_ai.usage.input_tokens.cache_miss",t.deepseek.promptCacheMissTokens)),_}function f(T){const _=T[s.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE];if(_)try{const t=G(JSON.parse(_));for(const[_,E]of Object.entries(t))_===A.GEN_AI_CONVERSATION_ID_ATTRIBUTE&&T[_]||(T[_]=E)}catch{}}function L(T,_,t){null!=t&&(T[_]=t)}},2387,[2273,2274,2388,2253,2389,2392,2293,2393,2394]);
861__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildMethodPath",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"endStreamSpan",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractSystemInstructions",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getJsonString",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"getTruncatedJsonString",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"resolveAIRecordingOptions",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"setTokenUsageAttributes",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldEnableTruncation",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"wrapPromiseWithMethods",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]);function T(t){const o=(0,n.getClient)()?.getDataCollectionOptions().genAI;return{...t,recordInputs:t?.recordInputs??o?.inputs??!1,recordOutputs:t?.recordOutputs??o?.outputs??!1}}function _(t){if(void 0!==t)return t;const s=(0,n.getClient)();return!s||!(0,o.hasSpanStreamingEnabled)(s)&&!1===s.getOptions().streamGenAiSpans}function f(t,n){return t?`${t}.${n}`:n}function p(t,n,o,s,c){if(void 0!==n&&t.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:n}),void 0!==o&&t.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:o}),void 0!==n||void 0!==o||void 0!==s||void 0!==c){const T=(n??0)+(o??0)+(s??0)+(c??0);t.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:T})}}function E(t,n,o){if(!t.isRecording())return;const s={[u.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};n.responseId&&(s[u.GEN_AI_RESPONSE_ID_ATTRIBUTE]=n.responseId),n.responseModel&&(s[u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=n.responseModel),void 0!==n.promptTokens&&(s[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=n.promptTokens),void 0!==n.completionTokens&&(s[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=n.completionTokens),void 0!==n.totalTokens?s[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.totalTokens:void 0===n.promptTokens&&void 0===n.completionTokens&&void 0===n.cacheCreationInputTokens&&void 0===n.cacheReadInputTokens||(s[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=(n.promptTokens??0)+(n.completionTokens??0)+(n.cacheCreationInputTokens??0)+(n.cacheReadInputTokens??0)),n.finishReasons.length&&(s[u.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(n.finishReasons)),o&&n.responseTexts.length&&(s[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=n.responseTexts.join("")),o&&n.toolCalls.length&&(s[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n.toolCalls)),t.setAttributes(s),t.end()}function A(t){return"string"==typeof t?t:JSON.stringify(t)}function l(t){if("string"==typeof t)return(0,c.truncateGenAiStringInput)(t);if(Array.isArray(t)){const n=(0,c.truncateGenAiMessages)(t);return JSON.stringify(n)}return JSON.stringify(t)}function I(t){if(!Array.isArray(t))return{systemInstructions:void 0,filteredMessages:t};const n=t.findIndex(t=>t&&"object"==typeof t&&"role"in t&&"system"===t.role);if(-1===n)return{systemInstructions:void 0,filteredMessages:t};const o=t[n],s="string"==typeof o.content?o.content:void 0!==o.content?JSON.stringify(o.content):void 0;if(!s)return{systemInstructions:void 0,filteredMessages:t};return{systemInstructions:JSON.stringify([{type:"text",content:s}]),filteredMessages:[...t.slice(0,n),...t.slice(n+1)]}}
861async function S(n,o,s){const u=n.catch(n=>{throw(0,t.captureException)(n,{mechanism:{handled:!1,type:s}}),n}),c=await o,T=await u;return T&&"object"==typeof T&&"data"in T?{...T,data:c}:c}function O(t,n,o){return(0,s.isThenable)(t)?new Proxy(t,{get(t,s){const u=s in Promise.prototype||s===Symbol.toStringTag?n:t,c=Reflect.get(u,s);return"withResponse"===s&&"function"==typeof c?function(){return S(c.call(t),n,o)}:"function"==typeof c?c.bind(u):c}}):n}},2388,[2301,2273,2293,2261,2389,2390]);
862__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GEN_AI_AGENT_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"GEN_AI_INPUT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"GEN_AI_OPERATION_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"GEN_AI_PIPELINE_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"GEN_AI_PROMPT_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE",{enumerable:!0,get:function(){return O}}
862),Object.defineProperty(e,"GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"GEN_AI_REQUEST_MODEL_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"GEN_AI_REQUEST_STREAM_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"GEN_AI_REQUEST_TOP_K_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"GEN_AI_REQUEST_TOP_P_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"GEN_AI_RESPONSE_ID_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"GEN_AI_RESPONSE_MODEL_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"GEN_AI_RESPONSE_STREAMING_ATTRIBUTE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"GEN_AI_RESPONSE_TEXT_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"GEN_AI_SYSTEM_ATTRIBUTE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"GEN_AI_TOOL_CALL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return X}}),Object.defineProperty(e,"GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"GEN_AI_TOOL_INPUT_ATTRIBUTE",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"GEN_AI_TOOL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"GEN_AI_TOOL_OUTPUT_ATTRIBUTE",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"GEN_AI_TOOL_TYPE_ATTRIBUTE",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return s}});const n="gen_ai.prompt",t="gen_ai.system",_="gen_ai.request.model",T="gen_ai.request.stream",E="gen_ai.request.temperature",u="gen_ai.request.max_tokens",o="gen_ai.request.frequency_penalty",A="gen_ai.request.presence_penalty",I="gen_ai.request.top_p",c="gen_ai.request.top_k",O="gen_ai.request.encoding_format",N="gen_ai.request.dimensions",f="gen_ai.response.finish_reasons",b="gen_ai.response.model",R="gen_ai.response.id",P="gen_ai.response.stop_reason",U="gen_ai.usage.input_tokens",p="gen_ai.usage.output_tokens",s="gen_ai.usage.total_tokens",S="gen_ai.operation.name",l="sentry.sdk_meta.gen_ai.input.messages.original_length",G="gen_ai.input.messages",y="gen_ai.output.messages",B="gen_ai.system_instructions",j="gen_ai.response.text",L="gen_ai.request.available_tools",M="gen_ai.response.streaming",C="gen_ai.response.tool_calls",D="gen_ai.agent.name",q="gen_ai.pipeline.name",Q="gen_ai.conversation.id",k="gen_ai.usage.cache_creation_input_tokens",K="gen_ai.usage.cache_read_input_tokens",h="gen_ai.usage.input_tokens.cache_write",H="gen_ai.usage.input_tokens.cached",Y="gen_ai.invoke_agent",v="gen_ai.embeddings.input",x="gen_ai.embeddings",F="gen_ai.execute_tool",V="gen_ai.tool.name",X="gen_ai.tool.call.id",w="gen_ai.tool.type",W="gen_ai.tool.input",z="gen_ai.tool.output",J="gen_ai.tool.description"},2389,[]);
863__d(function(g,r,i,a,m,e,d){"use strict";
863Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"truncateGenAiMessages",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"truncateGenAiStringInput",{enumerable:!0,get:function(){return I}});var t=r(d[0]);const n=2e4,o=t=>(new TextEncoder).encode(t).length,c=t=>o(JSON.stringify(t));function u(t,n){if(o(t)<=n)return t;let c=0,u=t.length,s="";for(;c<=u;){const f=Math.floor((c+u)/2),l=t.slice(0,f);o(l)<=n?(s=l,c=f+1):u=f-1}return s}function s(t){return"string"==typeof t?t:"text"in t&&"string"==typeof t.text?t.text:""}function f(t,n){return"string"==typeof t?n:{...t,text:n}}function l(t){return null!==t&&"object"==typeof t&&"content"in t&&"string"==typeof t.content}function p(t){return null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)}function y(t){return null!==t&&"object"==typeof t&&"parts"in t&&Array.isArray(t.parts)&&t.parts.length>0}function A(t,n){const o={...t,content:""},s=n-c(o);if(s<=0)return[];const f=u(t.content,s);return[{...t,content:f}]}function b(t){return"parts"in t&&Array.isArray(t.parts)?{key:"parts",items:t.parts}:"content"in t&&Array.isArray(t.content)?{key:"content",items:t.content}:{key:null,items:[]}}function M(t,n){const{key:l,items:p}=b(t);if(null===l||0===p.length)return[];const y=p.map(t=>f(t,""));let A=n-c({...t,[l]:y});if(A<=0)return[];const M=[];for(const t of p){const n=s(t),c=o(n);if(!(c<=A)){if(0===M.length){const o=u(n,A);o&&M.push(f(t,o));break}break}M.push(t),A-=c}return M.length<=0?[]:[{...t,[l]:M}]}function h(t,n){if(!t)return[];if("string"==typeof t){const o=u(t,n);return o?[o]:[]}return"object"!=typeof t?[]:l(t)?A(t,n):p(t)||y(t)?M(t,n):[]}function j(n){return n.map(n=>{let o;return n&&"object"==typeof n&&(p(n)?o={...n,content:j(n.content)}:"content"in n&&(0,t.isContentMedia)(n.content)&&(o={...n,content:(0,t.stripInlineMediaFromSingleMessage)(n.content)}),y(n)&&(o={...o??n,parts:j(n.parts)}),(0,t.isContentMedia)(o)?o=(0,t.stripInlineMediaFromSingleMessage)(o):(0,t.isContentMedia)(n)&&(o=(0,t.stripInlineMediaFromSingleMessage)(n))),o??n})}function _(t,n){if(!Array.isArray(t)||0===t.length)return t;const o=n-2,u=j([t[t.length-1]]),s=u[0];return c(s)<=o?u:h(s,o)}function S(t){return _(t,n)}function I(t){return u(t,n)}},2390,[2391]);
864__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return!(!t||"object"!=typeof t)&&(o(t)||f(t)||n(t)||p(t)||s(t)||l(t)||y(t)||c(t)||_(t)||b(t)||h(t)||j(t))}function n(t){return"image_url"in t&&("string"==typeof t.image_url?t.image_url.startsWith("data:"):u(t))}function u(t){return"image_url"in t&&!!t.image_url&&"object"==typeof t.image_url&&"url"in t.image_url&&"string"==typeof t.image_url.url&&t.image_url.url.startsWith("data:")}function o(n){return"type"in n&&"string"==typeof n.type&&"source"in n&&t(n.source)}function f(t){return"inlineData"in t&&!!t.inlineData&&"object"==typeof t.inlineData&&"data"in t.inlineData&&"string"==typeof t.inlineData.data}function p(t){return"type"in t&&"input_audio"===t.type&&"input_audio"in t&&!!t.input_audio&&"object"==typeof t.input_audio&&"data"in t.input_audio&&"string"==typeof t.input_audio.data}function s(t){return"type"in t&&"file"===t.type&&"file"in t&&!!t.file&&"object"==typeof t.file&&"file_data"in t.file&&"string"==typeof t.file.file_data}function l(t){return"media_type"in t&&"string"==typeof t.media_type&&"data"in t}function y(t){return"type"in t&&"file"===t.type&&"mediaType"in t&&"string"==typeof t.mediaType&&"data"in t&&"string"==typeof t.data&&!t.data.startsWith("http://")&&!t.data.startsWith("https://")}function c(t){return"type"in t&&"image"===t.type&&"image"in t&&"string"==typeof t.image&&!t.image.startsWith("http://")&&!t.image.startsWith("https://")}function _(t){return"type"in t&&("blob"===t.type||"base64"===t.type)}function b(t){return"b64_json"in t}function h(t){return"type"in t&&"result"in t&&"image_generation"===t.type}function j(t){return"uri"in t&&"string"==typeof t.uri&&t.uri.startsWith("data:")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isContentMedia",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"stripInlineMediaFromSingleMessage",{enumerable:!0,get:function(){return M}});const D="[Blob substitute]",W=["image_url","data","content","b64_json","result","uri","image"];function M(n){const o={...n};t(o.source)&&(o.source=M(o.source)),f(n)&&(o.inlineData={...n.inlineData,data:D}),u(n)&&(o.image_url={...n.image_url,url:D}),p(n)&&(o.input_audio={...n.input_audio,data:D}),s(n)&&(o.file={...n.file,file_data:D});for(const t of W)"string"==typeof o[t]&&(o[t]=D);return o}},2391,[]);
865__d(function(g,r,i,a,m,e,d){"use strict";
865Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_TO_OPERATION_NAME",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"toolCallSpanContextMap",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"toolDescriptionMap",{enumerable:!0,get:function(){return n}});const t=new Map,n=new Map,o=new Map([["ai.generateText","invoke_agent"],["ai.streamText","invoke_agent"],["ai.generateObject","invoke_agent"],["ai.streamObject","invoke_agent"],["ai.generateText.doGenerate","generate_content"],["ai.streamText.doStream","generate_content"],["ai.generateObject.doGenerate","generate_content"],["ai.streamObject.doStream","generate_content"],["ai.embed.doEmbed","embeddings"],["ai.embedMany.doEmbed","embeddings"],["ai.rerank.doRerank","rerank"],["ai.toolCall","execute_tool"]])},2392,[]);
866__d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"accumulateTokensForParent",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"applyAccumulatedTokens",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"applyToolDescriptionsAndTokens",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"convertAvailableToolsToJsonString",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"convertUserInputToMessagesFormat",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"requestMessagesFromPrompt",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function T(n,o){const s=n.parent_span_id;if(!s)return;const T=n.data[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE],_=n.data[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE];if("number"==typeof T||"number"==typeof _){const t=o.get(s)||{inputTokens:0,outputTokens:0};"number"==typeof T&&(t.inputTokens+=T),"number"==typeof _&&(t.outputTokens+=_),o.set(s,t)}}function _(n,o){const s=o.get(n.span_id);s&&n.data&&(s.inputTokens>0&&(n.data[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=s.inputTokens),s.outputTokens>0&&(n.data[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=s.outputTokens),(s.inputTokens>0||s.outputTokens>0)&&(n.data["gen_ai.usage.total_tokens"]=s.inputTokens+s.outputTokens))}function u(n){const o=new Map;for(const s of n){const n=s.data[t.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE];if("string"==typeof n)try{const t=JSON.parse(n);for(const n of t)n.name&&n.description&&!o.has(n.name)&&o.set(n.name,n.description)}catch{}}return o}function c(n,o){const s=u(n);for(const T of n){if("gen_ai.execute_tool"===T.op){const n=T.data[t.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof n){const o=s.get(n);o&&(T.data[t.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=o)}}"gen_ai.invoke_agent"===T.op&&_(T,o)}}function A(t){return o.toolCallSpanContextMap.get(t)}function E(t){o.toolCallSpanContextMap.delete(t)}function p(t){const n=t.map(t=>{if("string"==typeof t)try{return JSON.parse(t)}catch{return t}return t});return JSON.stringify(n)}function I(t){return t.filter(t=>!!t&&"object"==typeof t&&"role"in t&&"content"in t)}function f(t){try{const n=JSON.parse(t);if(n&&"object"==typeof n){let{messages:t}=n;const{prompt:o,system:s}=n,T=[];if("string"==typeof s&&T.push({role:"system",content:s}),"string"==typeof t)try{t=JSON.parse(t)}catch{}if(Array.isArray(t))return T.push(...I(t)),T;if(Array.isArray(o))return T.push(...I(o)),T;if("string"==typeof o&&T.push({role:"user",content:o}),T.length>0)return T}}catch{}return[]}function S(o,T,_){if("string"!=typeof T[s.AI_PROMPT_ATTRIBUTE]||T[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]||T[s.AI_PROMPT_MESSAGES_ATTRIBUTE]){if
866("string"==typeof T[s.AI_PROMPT_MESSAGES_ATTRIBUTE]){const u=T[s.AI_PROMPT_MESSAGES_ATTRIBUTE];try{const T=JSON.parse(u);if(Array.isArray(T)){const{systemInstructions:c,filteredMessages:A}=(0,n.extractSystemInstructions)(T);c&&o.setAttribute(t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,c);const E=Array.isArray(A)?A.length:0,p=_||A!==T?_?(0,n.getTruncatedJsonString)(A):(0,n.getJsonString)(A):u;o.setAttributes({[s.AI_PROMPT_MESSAGES_ATTRIBUTE]:p,[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:p,[t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:E})}}catch{}}}else{const u=f(T[s.AI_PROMPT_ATTRIBUTE]);if(u.length){const{systemInstructions:T,filteredMessages:c}=(0,n.extractSystemInstructions)(u);T&&o.setAttribute(t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,T);const A=Array.isArray(c)?c.length:0,E=_?(0,n.getTruncatedJsonString)(c):(0,n.getJsonString)(c);o.setAttributes({[s.AI_PROMPT_ATTRIBUTE]:E,[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:E,[t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:A})}}}},2393,[2389,2388,2392,2394]);
867__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AI_MODEL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"AI_OPERATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"AI_PROMPT_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"AI_PROMPT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"AI_PROMPT_TOOLS_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"AI_RESPONSE_FINISH_REASON_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"AI_RESPONSE_OBJECT_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"AI_RESPONSE_TEXT_ATTRIBUTE",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"AI_RESPONSE_TOOL_CALLS_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"AI_SCHEMA_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"AI_TOOL_CALL_ARGS_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"AI_TOOL_CALL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"AI_TOOL_CALL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"AI_TOOL_CALL_RESULT_ATTRIBUTE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"AI_USAGE_PROMPT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"AI_USAGE_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"AI_VALUES_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"OPERATION_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return t}});const t="operation.name",n="ai.operationId",T="ai.prompt",o="ai.schema",_="ai.response.object",u="ai.values",A="ai.response.text",E="ai.response.toolCalls",I="ai.response.finishReason",O="ai.prompt.messages",c="ai.prompt.tools",f="ai.model.id",b="ai.response.providerMetadata",l="ai.usage.cachedInputTokens",P="ai.usage.inputTokenDetails.",p="ai.telemetry.functionId",R="ai.usage.completionTokens",s="ai.usage.promptTokens",U="ai.usage.tokens",S="ai.toolCall.name",j="ai.toolCall.id",y="ai.toolCall.args",B="ai.toolCall.result"},2394,[]);
868__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return N}});
868var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),_=r(d[5]),c=r(d[6]),T=r(d[7]),E=r(d[8]),A=r(d[9]),p=r(d[10]);function I(n){const o=[...Array.isArray(n.tools)?n.tools:[],...n.web_search_options&&"object"==typeof n.web_search_options?[{type:"web_search_options",...n.web_search_options}]:[]];if(0!==o.length)try{return JSON.stringify(o)}catch(n){return void(t.DEBUG_BUILD&&s.debug.error("Failed to serialize OpenAI tools:",n))}}function l(t,n){const s={[c.GEN_AI_SYSTEM_ATTRIBUTE]:"openai",[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:n,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(t.length>0&&"object"==typeof t[0]&&null!==t[0]){const n=t[0],o=I(n);o&&(s[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=o),Object.assign(s,(0,p.extractRequestParameters)(n))}else s[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return s}function S(t,n,o,s){if("embeddings"===o&&"input"in n){const o=n.input;if(null==o)return;if("string"==typeof o&&0===o.length)return;if(Array.isArray(o)&&0===o.length)return;return void t.setAttribute(c.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o))}const u="input"in n?n.input:"messages"in n?n.messages:void 0;if(!u)return;if(Array.isArray(u)&&0===u.length)return;const{systemInstructions:_,filteredMessages:E}=(0,T.extractSystemInstructions)(u);_&&t.setAttribute(c.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,_),t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,s?(0,T.getTruncatedJsonString)(E):(0,T.getJsonString)(E)),Array.isArray(E)?t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,E.length):t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,1)}function f(t,o,s,E,I){return function(...f){const y=s.operation||"unknown",N=l(f,y),R=N[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",b=f[0],h=b&&"object"==typeof b&&!0===b.stream,O={name:`${y} ${R}`,op:`gen_ai.${y}`,attributes:N};if(h){let s;const c=(0,_.startSpanManual)(O,_=>(s=t.apply(E,f),I.recordInputs&&b&&S(_,b,y,(0,T.shouldEnableTruncation)(I.enableTruncation)),(async()=>{try{const t=await s;return(0,A.instrumentStream)(t,_,I.recordOutputs??!1)}catch(t){throw _.setStatus({code:u.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:o}}}),_.end(),t}})()));return(0,T.wrapPromiseWithMethods)(s,c,"auto.ai.openai")}let U;const G=(0,_.startSpan)(O,s=>(U=t.apply(E,f),I.recordInputs&&b&&S(s,b,y,(0,T.shouldEnableTruncation)(I.enableTruncation)),U.then(t=>((0,p.addResponseAttributes)(s,t,I.recordOutputs),t),t=>{throw(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:o}}}),t})));return(0,T.wrapPromiseWithMethods)(U,G,"auto.ai.openai")}}function y(t,n="",o){return new Proxy(t,{get(t,s){const u=t[s],_=(0,T.buildMethodPath)(n,String(s)),c=E.OPENAI_METHOD_REGISTRY[_];return"function"==typeof u&&c?f(u,_,c,t,o):"function"==typeof u?u.bind(t):u&&"object"==typeof u?y(u,_,o):u}})}function N(t,n){return y(t,"",(0,T.resolveAIRecordingOptions)(n))}},2395,[2244,2301,2274,2248,2275,2294,2389,2388,2396,2397,2398]);
869__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"OPENAI_METHOD_REGISTRY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"RESPONSES_TOOL_CALL_EVENT_TYPES",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"RESPONSE_EVENT_TYPES",{enumerable:!0,get:function(){return s}});const t="OpenAI",n={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},o=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],s=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...o]},2396,[]);
870__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentStream",{enumerable:!0,get:function(){return f}});
870var o=r(d[0]),s=r(d[1]),t=r(d[2]),n=r(d[3]),l=r(d[4]);function p(o,s){for(const t of o){const o=t.index;if(void 0!==o&&t.function)if(o in s.chatCompletionToolCalls){const n=s.chatCompletionToolCalls[o];t.function.arguments&&n?.function&&(n.function.arguments+=t.function.arguments)}else s.chatCompletionToolCalls[o]={...t,function:{name:t.function.name,arguments:t.function.arguments||""}}}}function u(o,s,t){s.responseId=o.id??s.responseId,s.responseModel=o.model??s.responseModel,o.usage&&(s.promptTokens=o.usage.prompt_tokens,s.completionTokens=o.usage.completion_tokens,s.totalTokens=o.usage.total_tokens);for(const n of o.choices??[])t&&(n.delta?.content&&s.responseTexts.push(n.delta.content),n.delta?.tool_calls&&p(n.delta.tool_calls,s)),n.finish_reason&&s.finishReasons.push(n.finish_reason)}function c(t,l,p,u){if(!t||"object"!=typeof t)return void l.eventTypes.push("unknown:non-object");if(t instanceof Error)return u.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),void(0,o.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in t))return;const c=t;if(n.RESPONSE_EVENT_TYPES.includes(c.type)){if(p&&("response.output_item.done"===c.type&&"item"in c&&l.responsesApiToolCalls.push(c.item),"response.output_text.delta"===c.type&&"delta"in c&&c.delta))l.responseTexts.push(c.delta);else if("response"in c){const{response:o}=c;l.responseId=o.id??l.responseId,l.responseModel=o.model??l.responseModel,o.usage&&(l.promptTokens=o.usage.input_tokens,l.completionTokens=o.usage.output_tokens,l.totalTokens=o.usage.total_tokens),o.status&&l.finishReasons.push(o.status),p&&o.output_text&&l.responseTexts.push(o.output_text)}}else l.eventTypes.push(c.type)}async function*f(o,s,n){const p={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const t of o)(0,l.isChatCompletionChunk)(t)?u(t,p,n):(0,l.isResponsesApiStreamEvent)(t)&&c(t,p,n,s),yield t}finally{const o=[...Object.values(p.chatCompletionToolCalls),...p.responsesApiToolCalls];(0,t.endStreamSpan)(s,{...p,toolCalls:o},n)}}},2397,[2301,2275,2388,2396,2398]);
871__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addResponseAttributes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractRequestParameters",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"isChatCompletionChunk",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isResponsesApiStreamEvent",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(t){return null!==t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.startsWith("response.")}function _(t){return null!==t&&"object"==typeof t&&"object"in t&&"chat.completion.chunk"===t.object}function E(n,_,E){if(!_||"object"!=typeof _)return;const o=_,T={};if("string"==typeof o.id&&(T[t.GEN_AI_RESPONSE_ID_ATTRIBUTE]=o.id),"string"==typeof o.model&&(T[t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=o.model),"conversation"===o.object&&"string"==typeof o.id&&(T[t.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=o.id),o.usage&&"object"==typeof o.usage){const n=o.usage,_=n.prompt_tokens??n.input_tokens;"number"==typeof _&&(T[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=_);const E=n.completion_tokens??n.output_tokens;"number"==typeof E&&(T[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=E),"number"==typeof n.total_tokens&&(T[t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.total_tokens)}if(Array.isArray(o.choices)){const n=o.choices,_=n.map(t=>t.finish_reason).filter(t=>"string"==typeof t);if(_.length>0&&(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(_)),E){const _=n.map(t=>{const n=t.message;return n?.content||""});T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=JSON.stringify(_);const E=n.map(t=>{const n=t.message;return n?.tool_calls}).filter(t=>Array.isArray(t)&&t.length>0).flat();E.length>0&&(T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(E))}}if("string"==typeof o.status&&(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]||(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify([o.status]))),E&&("string"!=typeof o.output_text||T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]||(T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=o.output_text),Array.isArray(o.output)&&o.output.length>0&&!T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE])){const n=o.output.f
871ilter(t=>"function_call"===t?.type);n.length>0&&(T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n))}n.setAttributes(T)}function o(t){return"conversation"in t&&"string"==typeof t.conversation?t.conversation:"previous_response_id"in t&&"string"==typeof t.previous_response_id?t.previous_response_id:void 0}function T(n){const _={[t.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:n.model??"unknown"};"temperature"in n&&(_[t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=n.temperature),"top_p"in n&&(_[t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=n.top_p),"frequency_penalty"in n&&(_[t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=n.frequency_penalty),"presence_penalty"in n&&(_[t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=n.presence_penalty),"stream"in n&&(_[t.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=n.stream),"encoding_format"in n&&(_[t.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=n.encoding_format),"dimensions"in n&&(_[t.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=n.dimensions);const E=o(n);return E&&(_[t.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=E),_}},2398,[2389]);
872__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return U}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),_=r(d[3]),s=r(d[4]),E=r(d[5]),T=r(d[6]),u=r(d[7]),c=r(d[8]);function p(t,o,_){const E={[s.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:_,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(t.length>0&&"object"==typeof t[0]&&null!==t[0]){const n=t[0];n.tools&&Array.isArray(n.tools)&&(E[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n.tools)),E[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=n.model??"unknown","temperature"in n&&(E[s.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=n.temperature),"top_p"in n&&(E[s.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=n.top_p),"stream"in n&&(E[s.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=n.stream),"top_k"in n&&(E[s.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=n.top_k),"frequency_penalty"in n&&(E[s.GEN_AI_REQUEST_FREQUENCY_PENA
872LTY_ATTRIBUTE]=n.frequency_penalty),"max_tokens"in n&&(E[s.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=n.max_tokens)}else E[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===o||"models.get"===o?t[0]:"unknown";return E}function A(t,n,o){const _=(0,c.messagesFromParams)(n);(0,c.setMessagesAttribute)(t,_,o),"prompt"in n&&t.setAttributes({[s.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(n.prompt)})}function R(t,n){if("content"in n&&Array.isArray(n.content)){t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.content.map(t=>t.text).filter(t=>!!t).join("")});const o=[];for(const t of n.content)"tool_use"!==t.type&&"server_tool_use"!==t.type||o.push(t);o.length>0&&t.setAttributes({[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(o)})}"completion"in n&&t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.completion}),"input_tokens"in n&&t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(n.input_tokens)})}function I(t,n){"id"in n&&"model"in n&&(t.setAttributes({[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]:n.id,[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:n.model}),"usage"in n&&n.usage&&(0,E.setTokenUsageAttributes)(t,n.usage.input_tokens,n.usage.output_tokens,n.usage.cache_creation_input_tokens,n.usage.cache_read_input_tokens))}function l(t,n,o){n&&"object"==typeof n&&("type"in n&&"error"===n.type?(0,c.handleResponseError)(t,n):(o&&R(t,n),I(t,n)))}function S(n,_,s){throw(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:s}}}),_.isRecording()&&(_.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),_.end()),n}function N(t,n,o,T,c,p,R,I,l,N,f){const y={name:`${p} ${c[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"}`,op:`gen_ai.${p}`,attributes:c};if(N&&!f){let n;const s=(0,_.startSpanManual)(y,_=>(n=t.apply(o,T),l.recordInputs&&I&&A(_,I,(0,E.shouldEnableTruncation)(l.enableTruncation)),(async()=>{try{const t=await n;return(0,u.instrumentAsyncIterableStream)(t,_,l.recordOutputs??!1)}catch(t){return S(t,_,R)}})()));return(0,E.wrapPromiseWithMethods)(n,s,"auto.ai.anthropic")}return(0,_.startSpanManual)(y,t=>{try{l.recordInputs&&I&&A(t,I,(0,E.shouldEnableTruncation)(l.enableTruncation));const _=n.apply(o,T);return(0,u.instrumentMessageStream)(_,t,l.recordOutputs??!1)}catch(n){return S(n,t,R)}})}function f(n,o,T,u,c){return new Proxy(n,{apply(R,I,S){const f=T.operation||"unknown",y=p(S,o,f),U=y[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",O="object"==typeof S[0]?S[0]:void 0,h=Boolean(O?.stream),b=!0===T.streaming;if(h||b)return N(n,R,u,S,y,f,o,O,c,h,b);let P;const B=(0,_.startSpan)({name:`${f} ${U}`,op:`gen_ai.${f}`,attributes:y},n=>(P=R.apply(u,S),c.recordInputs&&O&&A(n,O,(0,E.shouldEnableTruncation)(c.enableTruncation)),P.then(t=>(l(n,t,c.recordOutputs),t),n=>{throw(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:o}}}),n})));return(0,E.wrapPromiseWithMethods)(P,B,"auto.ai.anthropic")}})}function y(t,n="",o){return new Proxy(t,{get(t,_){const s=t[_],u=(0,E.buildMethodPath)(n,String(_)),c=T.ANTHROPIC_METHOD_REGISTRY[u];return"function"==typeof s&&c?f(s,u,c,t,o):"function"==typeof s?s.bind(t):s&&"object"==typeof s?y(s,u,o):s}})}function U(t,n){return y(t,"",(0,E.resolveAIRecordingOptions)(n))}},2399,[2301,2274,2275,2294,2389,2388,2400,2401,2402]);
873__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ANTHROPIC_METHOD_REGISTRY",{enumerable:!0,get:function(){return o}});const t="Anthropic_AI",o={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}}},2400,[]);
874__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentAsyncIterableStream",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"instrumentMessageStream",{enumerable:!0,get:function(){return y}});
874var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function c(o,c){return"type"in o&&"string"==typeof o.type&&"error"===o.type&&(c.setStatus({code:n.SPAN_STATUS_ERROR,message:(0,s.mapAnthropicErrorToStatusMessage)(o.error?.type)}),(0,t.captureException)(o.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}function p(t,n){if("message_delta"===t.type&&t.usage&&"output_tokens"in t.usage&&"number"==typeof t.usage.output_tokens&&(n.completionTokens=t.usage.output_tokens),t.message){const o=t.message;o.id&&(n.responseId=o.id),o.model&&(n.responseModel=o.model),o.stop_reason&&n.finishReasons.push(o.stop_reason),o.usage&&("number"==typeof o.usage.input_tokens&&(n.promptTokens=o.usage.input_tokens),"number"==typeof o.usage.cache_creation_input_tokens&&(n.cacheCreationInputTokens=o.usage.cache_creation_input_tokens),"number"==typeof o.usage.cache_read_input_tokens&&(n.cacheReadInputTokens=o.usage.cache_read_input_tokens))}}function u(t,n){"content_block_start"===t.type&&"number"==typeof t.index&&t.content_block&&("tool_use"!==t.content_block.type&&"server_tool_use"!==t.content_block.type||(n.activeToolBlocks[t.index]={id:t.content_block.id,name:t.content_block.name,inputJsonParts:[]}))}function l(t,n,o){if("content_block_delta"===t.type&&t.delta){if("number"==typeof t.index&&"partial_json"in t.delta&&"string"==typeof t.delta.partial_json){const o=n.activeToolBlocks[t.index];o&&o.inputJsonParts.push(t.delta.partial_json)}o&&"string"==typeof t.delta.text&&n.responseTexts.push(t.delta.text)}}function _(t,n){if("content_block_stop"!==t.type||"number"!=typeof t.index)return;const o=n.activeToolBlocks[t.index];if(!o)return;const s=o.inputJsonParts.join("");let c;try{c=s?JSON.parse(s):{}}catch{c={__unparsed:s}}n.toolCalls.push({type:"tool_use",id:o.id,name:o.name,input:c}),delete n.activeToolBlocks[t.index]}function f(t,n,o,s){if(!t||"object"!=typeof t)return;c(t,s)||(p(t,n),u(t,n),l(t,n,o),_(t,n))}async function*k(t,n,s){const c={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of t)f(o,c,s,n),yield o}finally{(0,o.endStreamSpan)(n,c,s)}}function y(s,c,p){const u={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return s.on("streamEvent",t=>{f(t,u,p,c)}),s.on("message",()=>{(0,o.endStreamSpan)(c,u,p)}),s.on("error",o=>{(0,t.captureException)(o,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),c.isRecording()&&(c.setStatus({code:n.SPAN_STATUS_ERROR,message:"internal_error"}),c.end())}),s}},2401,[2301,2275,2388,2402]);
875__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handleResponseError",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"mapAnthropicErrorToStatusMessage",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"messagesFromParams",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"setMessagesAttribute",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function u(t,n,u){if(Array.isArray(n)&&0===n.length)return;const{systemInstructions:_,filteredMessages:c}=(0,s.extractSystemInstructions)(n);_&&t.setAttributes({[o.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]:_});const l=Array.isArray(c)?c.length:1;t.setAttributes({[o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:u?(0,s.getTruncatedJsonString)(c):(0,s.getJsonString)(c),[o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const _={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function c(t){return t&&_[t]||"internal_error"}function l(o,s){s.error&&(o.setStatus({code:n.SPAN_STATUS_ERROR,message:c(s.error.type)}),(0,t.captureException)(s.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function A(t){const{system:n,messages:o,input:s}=t,u="string"==typeof n?[{role:"system",content:t.system}]:[],_=Array.isArray(s)?s:null!=s?[s]:void 0,c=Array.isArray(o)?o:null!=o?[o]:[];return[...u,..._??c]}},2402,[2301,2275,2389,2388]);
876__d(function(g,r,i,a,m,e,d){"use strict";
876Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractModel",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),T=r(d[4]),u=r(d[5]),E=r(d[6]),_=r(d[7]),c=r(d[8]),A=r(d[9]);function p(t,n){if("model"in t&&"string"==typeof t.model)return t.model;if(n&&"object"==typeof n){const t=n;if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function f(t){const n={};return"temperature"in t&&"number"==typeof t.temperature&&(n[u.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"topP"in t&&"number"==typeof t.topP&&(n[u.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.topP),"topK"in t&&"number"==typeof t.topK&&(n[u.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.topK),"maxOutputTokens"in t&&"number"==typeof t.maxOutputTokens&&(n[u.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.maxOutputTokens),"frequencyPenalty"in t&&"number"==typeof t.frequencyPenalty&&(n[u.GEN_AI_REQUEST_FREQUENCY_PENA
876LTY_ATTRIBUTE]=t.frequencyPenalty),"presencePenalty"in t&&"number"==typeof t.presencePenalty&&(n[u.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=t.presencePenalty),n}function l(t,o,s){const T={[u.GEN_AI_SYSTEM_ATTRIBUTE]:_.GOOGLE_GENAI_SYSTEM_NAME,[u.GEN_AI_OPERATION_NAME_ATTRIBUTE]:t,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(o){if(T[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p(o,s),"config"in o&&"object"==typeof o.config&&o.config){const t=o.config;if(Object.assign(T,f(t)),"tools"in t&&Array.isArray(t.tools)){const n=t.tools.flatMap(t=>t.functionDeclarations);T[u.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n)}}}else T[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p({},s);return T}function I(t,n,o,s){if(o){const o=n.contents;return void(null!=o&&t.setAttribute(u.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o)))}const T=[];if("config"in n&&n.config&&"object"==typeof n.config&&"systemInstruction"in n.config&&n.config.systemInstruction&&T.push(...(0,A.contentUnionToMessages)(n.config.systemInstruction,"system")),"history"in n&&T.push(...(0,A.contentUnionToMessages)(n.history,"user")),"contents"in n&&T.push(...(0,A.contentUnionToMessages)(n.contents,"user")),"message"in n&&T.push(...(0,A.contentUnionToMessages)(n.message,"user")),Array.isArray(T)&&T.length){const{systemInstructions:n,filteredMessages:o}=(0,E.extractSystemInstructions)(T);n&&t.setAttribute(u.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,n);const _=Array.isArray(o)?o.length:0;t.setAttributes({[u.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:_,[u.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:s?(0,E.getTruncatedJsonString)(o):(0,E.getJsonString)(o)})}}function y(t,n,o){if(n&&"object"==typeof n){if(n.modelVersion&&t.setAttribute(u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n.modelVersion),n.usageMetadata&&"object"==typeof n.usageMetadata){const o=n.usageMetadata;"number"==typeof o.promptTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:o.promptTokenCount}),"number"==typeof o.candidatesTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:o.candidatesTokenCount}),"number"==typeof o.totalTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:o.totalTokenCount})}if(o&&Array.isArray(n.candidates)&&n.candidates.length>0){const o=n.candidates.map(t=>t.content?.parts&&Array.isArray(t.content.parts)?t.content.parts.map(t=>"string"==typeof t.text?t.text:"").filter(t=>t.length>0).join(""):"").filter(t=>t.length>0);o.length>0&&t.setAttributes({[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:o.join("")})}if(o&&n.functionCalls){const o=n.functionCalls;Array.isArray(o)&&o.length>0&&t.setAttributes({[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(o)})}}}function S(n,_,A,p,f){const S="embeddings"===A.operation;return new Proxy(n,{apply(n,N,R){const U=A.operation||"unknown",O=R[0],b=l(U,O,p),G=b[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown";return A.streaming?(0,s.startSpanManual)({name:`${U} ${G}`,op:`gen_ai.${U}`,attributes:b},async s=>{try{f.recordInputs&&O&&I(s,O,S,(0,E.shouldEnableTruncation)(f.enableTruncation));const t=await n.apply(p,R);return(0,c.instrumentStream)(t,s,Boolean(f.recordOutputs))}catch(n){throw s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:_}}}),s.end(),n}}):(0,s.startSpan)({name:`${U} ${G}`,op:`gen_ai.${U}`,attributes:b},o=>(f.recordInputs&&O&&I(o,O,S,(0,E.shouldEnableTruncation)(f.enableTruncation)),(0,T.handleCallbackErrors)(()=>n.apply(p,R),n=>{(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:_}}})},()=>{},t=>{S||y(o,t,f.recordOutputs)})))}})}function N(t,n="",o){return new Proxy(t,{get:(t,s,T)=>{const u=Reflect.get(t,s,T),c=(0,E.buildMethodPath)(n,String(s)),A=_.GOOGLE_GENAI_METHOD_REGISTRY[c];if("function"==typeof u&&A){const n=A.operation?S(u,c,A,t,o):u.bind(t);return A.proxyResultPath?function(...t){const s=n(...t);return s&&"object"==typeof s?N(s,A.proxyResultPath,o):s}:n}return"function"==typeof u?u.bind(t):u&&"object"==typeof u?N(u,c,o):u}})}function R(t,n){return N(t,"",(0,E.resolveAIRecordingOptions)(n))}},2403,[2301,2274,2275,2294,2295,2389,2388,2404,2405,2406]);
877__d(function(g,r,i,a,m,e,d){"use strict";
877Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GOOGLE_GENAI_METHOD_REGISTRY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GOOGLE_GENAI_SYSTEM_NAME",{enumerable:!0,get:function(){return o}});const t="Google_GenAI",n={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},o="google_genai"},2404,[]);
878__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentStream",{enumerable:!0,get:function(){return f}});var n=r(d[0]),o=r(d[1]),t=r(d[2]);function s(t,s){const l=t?.promptFeedback;if(l?.blockReason){const t=l.blockReasonMessage??l.blockReason;return s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(`Content blocked: ${t}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function l(n,o){"string"==typeof n.responseId&&(o.responseId=n.responseId),"string"==typeof n.modelVersion&&(o.responseModel=n.modelVersion);const t=n.usageMetadata;t&&("number"==typeof t.promptTokenCount&&(o.promptTokens=t.promptTokenCount),"number"==typeof t.candidatesTokenCount&&(o.completionTokens=t.candidatesTokenCount),"number"==typeof t.totalTokenCount&&(o.totalTokens=t.totalTokenCount))}function u(n,o,t){Array.isArray(n.functionCalls)&&o.toolCalls.push(...n.functionCalls);for(const s of n.candidates??[]){s?.finishReason&&!o.finishReasons.includes(s.finishReason)&&o.finishReasons.push(s.finishReason);for(const n of s?.content?.parts??[])t&&n.text&&o.responseTexts.push(n.text),n.functionCall&&o.toolCalls.push({type:"function",id:n.functionCall.id,name:n.functionCall.name,arguments:n.functionCall.args})}}function c(n,o,t,c){n&&!s(n,c)&&(l(n,o),u(n,o,t))}async function*f(n,o,s){const l={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const t of n)c(t,l,s,o),yield t}finally{(0,t.endStreamSpan)(o,l,s)}}},2405,[2301,2275,2388]);
879__d(function(g,r,i,a,m,e,d){"use strict";function t(n,o="user"){return"string"==typeof n?[{role:o,content:n}]:Array.isArray(n)?n.flatMap(n=>t(n,o)):"object"==typeof n&&n?"role"in n&&"string"==typeof n.role?[n]:"parts"in n?[{...n,role:o}]:[{role:o,content:n}]:[]}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"contentUnionToMessages",{enumerable:!0,get:function(){return t}})},2406,[]);
880__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return E}});var t=r(d[0]),n=r(d[1]),_=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]),l=r(d[6]),T=r(d[7]);function E(E={}){const{recordInputs:A,recordOutputs:I}=(0,s.resolveAIRecordingOptions)(E),N=(0,s.shouldEnableTruncation)(E.enableTruncation),R=new Map,u=t=>{const n=R.get(t);n?.isRecording()&&(n.end(),R.delete(t))},h={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(t,_,s,l,E,I,u,h){const S=(0,T.getInvocationParams)(I),O=(0,T.extractLLMRequestAttributes)(t,_,A,N,S,u),p=O[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE],M=O[c.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${M} ${p}`,op:"gen_ai.chat",attributes:{...(0,T.getAgentNameFromMetadata)(u),...O,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},t=>(R.set(s,t),t))},handleChatModelStart(t,_,s,l,E,I,u,h){const S=(0,T.getInvocationParams)(I),O=(0,T.extractChatModelRequestAttributes)(t,_,A,N,S,u),p=(0,T.extractToolDefinitions)(E);p&&(O[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=p);const M=O[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE],L=O[c.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${L} ${M}
880`,op:"gen_ai.chat",attributes:{...(0,T.getAgentNameFromMetadata)(u),...O,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},t=>(R.set(s,t),t))},handleLLMEnd(t,n,_,o,c){const s=R.get(n);if(s?.isRecording()){const _=(0,T.extractLlmResponseAttributes)(t,I);_&&s.setAttributes(_),u(n)}},handleLLMError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.llm_error_handler`}})},handleChainStart(t,_,c,s,l,T,E,I){if(T?.__sentry_langgraph__)return;const N=I||t.name||"unknown_chain",u={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":N};A&&(u["langchain.chain.inputs"]=JSON.stringify(_)),(0,o.startSpanManual)({name:`chain ${N}`,op:"gen_ai.invoke_agent",attributes:{...u,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},t=>(R.set(c,t),t))},handleChainEnd(t,n){const _=R.get(n);_?.isRecording()&&(I&&_.setAttributes({"langchain.chain.outputs":JSON.stringify(t)}),u(n))},handleChainError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.chain_error_handler`}})},handleToolStart(t,_,s,E,I,N,u){if(N?.__sentry_langgraph__)return;const h=u||t.name||"unknown_tool",S={...(0,T.getAgentNameFromMetadata)(N),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[c.GEN_AI_TOOL_NAME_ATTRIBUTE]:h};A&&(S[c.GEN_AI_TOOL_INPUT_ATTRIBUTE]=_),(0,o.startSpanManual)({name:`execute_tool ${h}`,op:"gen_ai.execute_tool",attributes:{...S,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},t=>(R.set(s,t),t))},handleToolEnd(t,n){const _=R.get(n);if(_?.isRecording()){if(I){const n=t&&"object"==typeof t&&"content"in t?t.content:t;_.setAttributes({[c.GEN_AI_TOOL_OUTPUT_ATTRIBUTE]:"string"==typeof n?n:JSON.stringify(n)})}u(n)}},handleToolError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.tool_error_handler`}})},copy:()=>h,toJSON:()=>({lc:1,type:"not_implemented",id:h.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:h.lc_id})};return h}},2407,[2301,2274,2275,2294,2389,2388,2408,2409]);
881__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"LANGCHAIN_ORIGIN",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ROLE_MAP",{enumerable:!0,get:function(){return s}});const t="LangChain",n="auto.ai.langchain",s={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},2408,[]);
882__d(function(_g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"extractChatModelRequestAttributes",{enumerable:!0,get:function(){return g}}),Object.defineProperty(e,"extractLLMRequestAttributes",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"extractLlmResponseAttributes",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extractToolDefinitions",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getAgentNameFromMetadata",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"getInvocationParams",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"normalizeLangChainMessages",{enumerable:!0,get:function(){return l}});var n=_r(d[0]),t=_r(d[1]),r=_r(d[2]),o=_r(d[3]),_=_r(d[4]);const s=(n,t,r)=>{null!=r&&(n[t]=r)},c=(n,t,r)=>{const o=Number(r);Number.isNaN(o)||(n[t]=o)};function T(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return String(n)}}function u(n){if(Array.isArray(n))try{const t=n.map(n=>n&&"object"==typeof n&&(0,r.isContentMedia)(n)?(0,r.stripInlineMediaFromSingleMessage)(n):n);return JSON.stringify(t)}catch{return String(n)}return T(n)}function E(n){const t=n.toLowerCase();return _.ROLE_MAP[t]??t}function A(n){return n.includes("System")?"system":n.includes("Human")?"user":n.includes("AI")||n.includes("Assistant")?"assistant":n.includes("Function")?"function":n.includes("Tool")?"tool":"user"}function f(n){if(n&&!Array.isArray(n))return n.invocation_params}function l(n){return n.map(n=>{const t=n._getType;if("function"==typeof t){return{role:E(t.call(n)),content:u(n.content)}}if(1===n.lc&&n.kwargs){const t=n.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:E("string"==typeof r?A(r):"user"),content:u(n.kwargs?.content)}}if(n.type){return{role:E(String(n.type).toLowerCase()),content:u(n.content)}}if(n.role)return{role:E(String(n.role)),content:u(n.content)};const r=n.constructor?.name;return r&&"Object"!==r?{role:E(A(r)),content:u(n.content)}:{role:"user",content:u(n.content)}})}function N(n,r,o){const _={},T="kwargs"in n?n.kwargs:void 0,u=r?.temperature??o?.ls_temperature??T?.temperature;c(_,t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,u);const E=r?.max_tokens??o?.ls_max_tokens??T?.max_tokens;c(_,t.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,E);const A=r?.top_p??T?.top_p;c(_,t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,A);const f=r?.frequency_penalty;
882c(_,t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE,f);const l=r?.presence_penalty;return c(_,t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,l),r&&"stream"in r&&s(_,t.GEN_AI_REQUEST_STREAM_ATTRIBUTE,Boolean(r.stream)),_}function I(r,o,s,c,u){return{[t.GEN_AI_SYSTEM_ATTRIBUTE]:T(r??"langchain"),[t.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"chat",[t.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:T(o),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:_.LANGCHAIN_ORIGIN,...N(s,c,u)}}function S(n,r,_,c,T,u){const E=u?.ls_provider,A=I(E,T?.model??u?.ls_model_name??"unknown",n,T,u);if(_&&Array.isArray(r)&&r.length>0){s(A,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,r.length);const n=r.map(n=>({role:"user",content:n}));s(A,t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,c?(0,o.getTruncatedJsonString)(n):(0,o.getJsonString)(n))}return A}function g(n,r,_,c,T,u){const E=I(u?.ls_provider??n.id?.[2],T?.model??u?.ls_model_name??"unknown",n,T,u);if(_&&Array.isArray(r)&&r.length>0){const n=l(r.flat()),{systemInstructions:_,filteredMessages:T}=(0,o.extractSystemInstructions)(n);_&&s(E,t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,_);const u=Array.isArray(T)?T.length:0;s(E,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,u),s(E,t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,c?(0,o.getTruncatedJsonString)(T):(0,o.getJsonString)(T))}return E}function p(n,r){const o=[],_=n.flat();for(const n of _){const t=n.message,r=t?.tool_calls;if(Array.isArray(r)&&r.length>0)o.push(...r);else{const t=n.message?.content;if(Array.isArray(t))for(const n of t){const t=n;"tool_use"===t.type&&o.push(t)}}}o.length>0&&s(r,t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,T(o))}function R(n,r){if(!n)return;const o=n.tokenUsage,_=n.usage;if(o)c(r,t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,o.promptTokens),c(r,t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,o.completionTokens),c(r,t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,o.totalTokens);else if(_){c(r,t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,_.input_tokens),c(r,t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,_.output_tokens);const n=Number(_.input_tokens),o=Number(_.output_tokens),s=(Number.isNaN(n)?0:n)+(Number.isNaN(o)?0:o);s>0&&c(r,t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,s),void 0!==_.cache_creation_input_tokens&&c(r,t.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,_.cache_creation_input_tokens),void 0!==_.cache_read_input_tokens&&c(r,t.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,_.cache_read_input_tokens)}}function y(n,r){if(!n)return;const o={};if(Array.isArray(n.generations)){const _=n.generations.flat().map(n=>n.generationInfo?.finish_reason?n.generationInfo.finish_reason:n.generation_info?.finish_reason?n.generation_info.finish_reason:null).filter(n=>"string"==typeof n);if(_.length>0&&s(o,t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,T(_)),p(n.generations,o),r){const r=n.generations.flat().map(n=>n.text??n.message?.content).filter(n=>"string"==typeof n);r.length>0&&s(o,t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,T(r))}}R(n.llmOutput,o);const _=n.llmOutput,c=n.generations?.[0]?.[0],u=c?.message,E=_?.model_name??_?.model??u?.response_metadata?.model_name;E&&s(o,t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,E);const A=_?.id??u?.id;A&&s(o,t.GEN_AI_RESPONSE_ID_ATTRIBUTE,A);const f=_?.stop_reason??u?.response_metadata?.finish_reason;return f&&s(o,t.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,T(f)),o}function U(n){const r={},o=n?.lc_agent_name;return"string"==typeof o&&(r[t.GEN_AI_AGENT_NAME_ATTRIBUTE]=o),r}function O(n){const t=n?.invocation_params?.tools??n?.options?.tools;if(!Array.isArray(t)||0===t.length)return;const r=t.map(n=>{const t=n.function;return{type:"function",name:n.name??t?.name??"",description:n.description??t?.description}});return JSON.stringify(r)}function G(n){if(!n||"object"!=typeof n)return!1;const t=n;return"function"==typeof t.addHandler&&"function"==typeof t.copy}function P(n){return"object"==typeof n&&"SentryCallbackHandler"===n?.name}function b(n){return n.some(P)}function B(n,t){if(!n)return[t];
882if(G(n)){if(b(n.handlers??[]))return n;const r=n.copy();return r.addHandler(t,!0),r}const r=Array.isArray(n)?n:[n];return b(r)?n:[...r,t]}},2409,[2274,2389,2391,2388,2408]);
883__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"instrumentLangGraph",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return I}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),_=r(d[3]),s=r(d[4]),c=r(d[5]),T=r(d[6]),A=r(d[7]),l=r(d[8]),E=r(d[9]);let u=!1;const p="__sentry_patched__";function I(c,A){if(Object.prototype.hasOwnProperty.call(c,p))return c;const E=(0,T.createLangChainCallbackHandler)(A),I=new Proxy(c,{apply:(c,T,p)=>u?Reflect.apply(c,T,p):(0,_.startSpan)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"create_agent"}},n=>{try{const t=Reflect.apply(c,T,p),o=p.length>0?p[0]:{};o?.name&&"string"==typeof o.name&&(n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,o.name),n.updateName(`create_agent ${o.name}`));const _=t.invoke;return _&&"function"==typeof _&&(t.invoke=N(_.bind(t),t,o,A,void 0,E)),t}catch(_){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(_,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),_}}
883)});return Object.defineProperty(I,p,{value:!0,enumerable:!1}),I}function N(T,u,p,I,N,R){return new Proxy(T,{apply(T,y,S){const O=N?.modelName??N?.model;return(0,_.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"invoke_agent"}},async n=>{try{const t=p?.name;t&&"string"==typeof t&&(n.setAttribute(s.GEN_AI_PIPELINE_NAME_ATTRIBUTE,t),n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,t),n.updateName(`invoke_agent ${t}`)),O&&n.setAttribute(s.GEN_AI_REQUEST_MODEL_ATTRIBUTE,O);const o=S.length>1?S[1]:void 0,_=o?.configurable,l=_?.thread_id;if(l&&"string"==typeof l&&n.setAttribute(s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,l),R){const n=S[1]??{};S[1]=n;const o=n.metadata??{};n.metadata={...o,__sentry_langgraph__:!0,..."string"==typeof t?{lc_agent_name:t}:{}},n.callbacks=(0,A._INTERNAL_mergeLangChainCallbackHandler)(n.callbacks,R)}const N=(0,E.extractToolsFromCompiledGraph)(u);N&&n.setAttribute(s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE,JSON.stringify(N));const f=I.recordInputs,b=I.recordOutputs,G=S.length>0?S[0]?.messages??[]:[];if(G&&f){const t=(0,A.normalizeLangChainMessages)(G),{systemInstructions:o,filteredMessages:_}=(0,c.extractSystemInstructions)(t);o&&n.setAttribute(s.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,o);const T=(0,c.shouldEnableTruncation)(I.enableTruncation),l=Array.isArray(_)?_.length:0;n.setAttributes({[s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:T?(0,c.getTruncatedJsonString)(_):(0,c.getJsonString)(_),[s.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const h=await Reflect.apply(T,y,S);return b&&(0,E.setResponseAttributes)(n,G??null,h),h}catch(_){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(_,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),_}}
883)}})}function R(t,n){if(Object.prototype.hasOwnProperty.call(t,p))return t;const o=(0,c.resolveAIRecordingOptions)(n),_=(0,T.createLangChainCallbackHandler)(o),s=new Proxy(t,{apply(t,n,s){const c=(0,E.extractLLMFromParams)(s),T=(0,E.extractAgentNameFromParams)(s),A=s[0];let l;A&&Array.isArray(A.tools)&&A.tools.length>0&&(0,E.wrapToolsWithSpans)(A.tools,o,T??void 0),u=!0;try{l=Reflect.apply(t,n,s)}finally{u=!1}const p=l.invoke;if(p&&"function"==typeof p){const t={};T&&(t.name=T),l.invoke=N(p.bind(l),l,t,o,c,_)}return l}});return Object.defineProperty(s,p,{value:!0,enumerable:!1}),s}function y(t,n){return t.compile=I(t.compile,(0,c.resolveAIRecordingOptions)(n)),t}},2410,[2301,2274,2275,2294,2389,2388,2407,2409,2411,2412]);
884__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"LANGGRAPH_ORIGIN",{enumerable:!0,get:function(){return n}});const t="LangGraph",n="auto.ai.langgraph"},2411,[]);
885__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractAgentNameFromParams",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"extractLLMFromParams",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"extractModelMetadata",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"extractTokenUsageFromMessage",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractToolCalls",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"extractToolsFromCompiledGraph",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"setResponseAttributes",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"wrapToolsWithSpans",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),_=r(d[4]),c=r(d[5]),T=r(d[6]);function u(t){const n=t[0];if("object"!=typeof n||!n||!("llm"in n)||!n.llm||"object"!=typeof n.llm)return null;const o=n.llm;return"string"!=typeof o.modelName&&"string"!=typeof o.model?null:o}function l(t){const n=t[0];return"object"==typeof n&&n&&"name"in n&&"string"==typeof n.name?n.name:null}function p(c,u,l){const p="__sentry_tool_wrapped__";for(const f of c){if(!f||"object"!=typeof f)continue;const c=f,E=c.invoke;if("function"!=typeof E||Object.prototype.hasOwnProperty.call(c,p))continue;const A="string"==typeof c.name?c.name:"unknown_tool",y="string"==typeof c.description?c.description:void 0,O=new Proxy(E,{apply(c,p,f){const E={[
885n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:T.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:_.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,[_.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[_.GEN_AI_TOOL_NAME_ATTRIBUTE]:A,[_.GEN_AI_TOOL_TYPE_ATTRIBUTE]:"function"},O=f[1],I=O?.metadata?.lc_agent_name??l;"string"==typeof I&&(E[_.GEN_AI_AGENT_NAME_ATTRIBUTE]=I),y&&(E[_.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=y);const b=f[0];if("object"==typeof b&&b&&("id"in b&&"string"==typeof b.id&&(E[_.GEN_AI_TOOL_CALL_ID_ATTRIBUTE]=b.id),u.recordInputs)){const t="args"in b&&"object"==typeof b.args?b.args:b;try{E[_.GEN_AI_TOOL_INPUT_ATTRIBUTE]=JSON.stringify(t)}catch{}}return(0,s.startSpan)({op:_.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,name:`execute_tool ${A}`,attributes:E},async n=>{try{const t=await Reflect.apply(c,p,f);if(u.recordOutputs)try{const o=t&&"object"==typeof t&&"content"in t?t.content:t;n.setAttribute(_.GEN_AI_TOOL_OUTPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o))}catch{}return t}catch(s){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(s,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),s}})}});c.invoke=O,Object.defineProperty(c,p,{value:!0,enumerable:!1})}return c}function f(t){if(!t||0===t.length)return null;const n=[];for(const o of t)if(o&&"object"==typeof o){const t=o.tool_calls;t&&Array.isArray(t)&&n.push(...t)}return n.length>0?n:null}function E(t){const n=t;let o=0,s=0,_=0;if(n.usage_metadata&&"object"==typeof n.usage_metadata){const t=n.usage_metadata;return"number"==typeof t.input_tokens&&(o=t.input_tokens),"number"==typeof t.output_tokens&&(s=t.output_tokens),"number"==typeof t.total_tokens&&(_=t.total_tokens),{inputTokens:o,outputTokens:s,totalTokens:_}}if(n.response_metadata&&"object"==typeof n.response_metadata){const t=n.response_metadata;if(t.tokenUsage&&"object"==typeof t.tokenUsage){const n=t.tokenUsage;"number"==typeof n.promptTokens&&(o=n.promptTokens),"number"==typeof n.completionTokens&&(s=n.completionTokens),"number"==typeof n.totalTokens&&(_=n.totalTokens)}}return{inputTokens:o,outputTokens:s,totalTokens:_}}function A(t,n){const o=n;if(o.response_metadata&&"object"==typeof o.response_metadata){const n=o.response_metadata;n.model_name&&"string"==typeof n.model_name&&t.setAttribute(_.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&t.setAttribute(_.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,[n.finish_reason])}}function y(t){if(!t.builder?.nodes?.tools?.runnable?.tools)return null;const n=t.builder?.nodes?.tools?.runnable?.tools;return n&&Array.isArray(n)&&0!==n.length?n.map(t=>({name:t.lc_kwargs?.name,description:t.lc_kwargs?.description,schema:t.lc_kwargs?.schema})):null}function O(t,n,o){const s=o,T=s?.messages;if(!T||!Array.isArray(T))return;const u=n?.length??0,l=T.length>u?T.slice(u):[];if(0===l.length)return;const p=f(l);p&&t.setAttribute(_.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,JSON.stringify(p));const y=(0,c.normalizeLangChainMessages)(l);t.setAttribute(_.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,JSON.stringify(y));let O=0,I=0,b=0;for(const n of l){const o=E(n);O+=o.inputTokens,I+=o.outputTokens,b+=o.totalTokens,A(t,n)}O>0&&t.setAttribute(_.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,O),I>0&&t.setAttribute(_.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,I),b>0&&t.setAttribute(_.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,b)}},2412,[2301,2274,2275,2294,2389,2409,2411]);
886__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SpanBuffer",{enumerable:!0,get:function(){return u}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),c=r(d[3]),h=r(d[4]),o=r(d[5]);class u{constructor(t,s){this._traceBuckets=new Map,this._client=t;const{maxSpanLimit:n,flushInterval:c,maxTraceWeightInBytes:h}=s??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=c&&c>0?c:5e3,this._maxTraceWeight=h&&h>0?h:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(t=>{clearTimeout(t.timeout)}),this._traceBuckets.clear()})}add(t){const s=t.trace_id;let c=this._traceBuckets.get(s);c||(c={spans:new Set,size:0,timeout:(0,n.safeUnref)(setTimeout(()=>{this.flush(s)},this._flushInterval))},this._traceBuckets.set(s,c)),c.spans.add(t),c.size+=(0,o.estimateSerializedSpanSizeInBytes)(t),(c.spans.size>=this._maxSpanLimit||c.size>=this._maxTraceWeight)&&this.flush(s)}drain(){this._traceBuckets.size&&(t.DEBUG_BUILD&&s.debug.log(`Flushing span tree map with ${this._traceBuckets.size}
886 traces`),this._traceBuckets.forEach((t,s)=>{this.flush(s)}))}flush(n){const o=this._traceBuckets.get(n);if(!o)return;if(!o.spans.size)return void this._removeTrace(n);const u=Array.from(o.spans),l=u[0]?._segmentSpan;if(!l)return t.DEBUG_BUILD&&s.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(n);const _=(0,c.getDynamicSamplingContextFromSpan)(l),p=u.map(t=>{const{_segmentSpan:s,...n}=t;return n}),f=(0,h.createStreamedSpanEnvelope)(p,_,this._client);t.DEBUG_BUILD&&s.debug.log(`Sending span envelope for trace ${n} with ${p.length} spans`),this._client.sendEnvelope(f).then(null,n=>{t.DEBUG_BUILD&&s.debug.error("Error while sending streamed span envelope:",n)}),this._removeTrace(n)}_removeTrace(t){const s=this._traceBuckets.get(t);s&&clearTimeout(s.timeout),this._traceBuckets.delete(t)}}},2413,[2244,2248,2307,2287,2414,2415]);
887__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createStreamedSpanEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function c(c,p,_){const l=_.getOptions(),f=_.getDsn(),v=l.tunnel,y=(0,n.getSdkMetadataForEnvelopeHeader)(l._metadata),S={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...u(p)&&{trace:p},...y&&{sdk:y},...!!v&&f&&{dsn:(0,t.dsnToString)(f)}},O=_.getDataCollectionOptions().userInfo?"auto":"never",b=[{type:"span",item_count:c.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:O,infer_user_agent:O}},items:c}];return(0,n.createEnvelope)(S,[b])}function u(t){return!!t.trace_id&&!!t.public_key}},2414,[2279,2290,2316,2262]);
888__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"estimateSerializedSpanSizeInBytes",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){let s=156;if(s+=2*n.name.length,s+=(0,t.estimateTypedAttributesSizeInBytes)(n.attributes),n.links&&n.links.length>0){const u=n.links[0],l=u?.attributes;s+=(100+(l?(0,t.estimateTypedAttributesSizeInBytes)(l):0))*n.links.length}return s}},2415,[2272]);
889__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanStreamingIntegration",{enumerable:!0,get:function(){return l}});var n=r(d[0]),t=r(d[1]),c=r(d[2]),o=r(d[3]),s=r(d[4]),S=r(d[5]),p=r(d[6]),f=r(d[7]);const l=(0,t.defineIntegration)(()=>({name:"SpanStreaming",setup(t){const l="SpanStreaming integration requires",u="Falling back to static trace lifecycle.",b=t.getOptions();if(!(0,s.hasSpanStreamingEnabled)(t))return b.traceLifecycle="static",void(n.DEBUG_BUILD&&p.debug.warn(`${l} \`traceLifecycle\` to be set to "stream"! ${u}`));const y=b.beforeSendSpan;if(y&&!(0,c.isStreamedBeforeSendSpanCallback)(y))return b.traceLifecycle="static",void(n.DEBUG_BUILD&&p.debug.warn(`${l} a beforeSendSpan callback using \`withStreamedSpan\`! ${u}`));const B=new S.SpanBuffer(t);t.on("afterSpanEnd",n=>{(0,f.spanIsSampled)(n)&&B.add((0,o.captureSpan)(n,t))})}}))},2416,[2244,2310,2289,2298,2293,2413,2248,2253]);
890__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return t}})},2417,[]);
891__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentryError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}},2418,[]);
892__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"parseFetchArgs",{enumerable:!0,get:function(){return E}});
892var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]);function h(t,n){const o="fetch",s=(0,l.addHandler)(o,t);return(0,l.maybeInstrument)(o,()=>p(void 0,n)),s}function f(t){const n="fetch-body-resolved",o=(0,l.addHandler)(n,t);return(0,l.maybeInstrument)(n,()=>p(b)),o}function p(h,f=!1){f&&!(0,s.supportsNativeFetch)()||(0,o.fill)(u.GLOBAL_OBJ,"fetch",function(s){return function(...f){const p=new Error,{method:y,url:b}=E(f),T={args:f,fetchData:{method:y,url:b},startTimestamp:1e3*(0,c.timestampInSeconds)(),virtualError:p,headers:w(f)};return h||(0,l.triggerHandlers)("fetch",{...T}),s.apply(u.GLOBAL_OBJ,f).then(async t=>(h?h(t):(0,l.triggerHandlers)("fetch",{...T,endTimestamp:1e3*(0,c.timestampInSeconds)(),response:t}),t),s=>{(0,l.triggerHandlers)("fetch",{...T,endTimestamp:1e3*(0,c.timestampInSeconds)(),error:s}),(0,n.isError)(s)&&void 0===s.stack&&(s.stack=p.stack,(0,o.addNonEnumerableProperty)(s,"framesToPop",1));const u=(0,t.getClient)(),h=u?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==h&&s instanceof TypeError&&("Failed to fetch"===s.message||"Load failed"===s.message||"NetworkError when attempting to fetch resource."===s.message))try{const t=new URL(T.fetchData.url).host;"always"===h?s.message=`${s.message} (${t})`:(0,o.addNonEnumerableProperty)(s,"__sentry_fetch_url_host__",t)}catch{}throw s})}})}async function y(t,n){if(t?.body){const o=t.body,s=o.getReader(),c=setTimeout(()=>{o.cancel().then(null,()=>{})},9e4);let u=!0;for(;u;){let t;try{t=setTimeout(()=>{o.cancel().then(null,()=>{})},5e3);const{done:c}=await s.read();clearTimeout(t),c&&(n(),u=!1)}catch{u=!1}finally{clearTimeout(t)}}clearTimeout(c),s.releaseLock(),o.cancel().then(null,()=>{})}}function b(t){let n;try{n=t.clone()}catch{return}y(n,()=>{(0,l.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,c.timestampInSeconds)(),response:t})})}function T(t,n){return!!t&&"object"==typeof t&&!!t[n]}function _(t){return"string"==typeof t?t:t?T(t,"url")?t.url:t.toString?t.toString():"":""}function E(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[o,s]=t;return{url:_(o),method:T(s,"method")?String(s.method).toUpperCase():(0,n.isRequest)(o)&&T(o,"method")?String(o.method).toUpperCase():"GET"}}const o=t[0];return{url:_(o),method:T(o,"method")?String(o.method).toUpperCase():"GET"}}function w(t){const[o,s]=t;try{if("object"==typeof s&&null!==s&&"headers"in s&&s.headers)return new Headers(s.headers);if((0,n.isRequest)(o))return new Headers(o.headers)}catch{}}},2419,[2273,2261,2260,2420,2266,2246,2247]);
893__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNativeFunction",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"supportsDOMError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"supportsDOMException",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"supportsErrorEvent",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"supportsFetch",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"supportsHistory",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"supportsNativeFetch",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"supportsReportingObserver",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]);const u=r(d[2]).GLOBAL_OBJ;function o(){try{return new ErrorEvent(""),!0}catch{return!1}}function c(){try{return new DOMError(""),!0}catch{return!1}}function f(){try{return new DOMException(""),!0}catch{return!1}}function s(){return"history"in u&&!!u.history}const p=b;function b(){if(!("fetch"in u))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function y(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function h(){if("string"==typeof EdgeRuntime)return!0;if(!b())return!1;if(y(u.fetch))return!0;let o=!1;const c=u.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t),t.contentWindow?.fetch&&(o=y(t.contentWindow.fetch)),c.head.removeChild(t)}catch(u){t.DEBUG_BUILD&&n.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",u)}return o}function l(){return"ReportingObserver"in u}function O(){if(!b())return!1;
893try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}},2420,[2244,2248,2246]);
894__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n,u){const c=t[n];if("function"==typeof c){try{t[n]=u}catch{Object.defineProperty(t,n,{value:u,writable:!0,configurable:!0,enumerable:!0})}if(t.default===c)try{t.default=u}catch{Object.defineProperty(t,"default",{value:u,writable:!0,configurable:!0,enumerable:!0})}}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"replaceExports",{enumerable:!0,get:function(){return t}})},2421,[]);
895__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LRUMap",{enumerable:!0,get:function(){return t}});class t{constructor(t){this._maxSize=t,this._cache=new Map}get size(){return this._cache.size}get(t){const c=this._cache.get(t);if(void 0!==c)return this._cache.delete(t),this._cache.set(t,c),c}set(t,c){if(this._cache.size>=this._maxSize){const t=this._cache.keys().next().value;this._cache.delete(t)}this._cache.set(t,c)}remove(t){const c=this._cache.get(t);return c&&this._cache.delete(t),c}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const t=[];return this._cache.forEach(c=>t.push(c)),t}}},2422,[]);
896__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"escapeStringForRegex",{enumerable:!0,get:function(){return t}})},2423,[]);
897__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ServerRuntimeClient",{enumerable:!0,get:function(){return k}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),i=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]),l=r(d[9]),_=r(d[10]),v=r(d[11]),f=r(d[12]);class k extends s.Client{constructor(t){(0,u.addUserAgentToTransportHeaders)(t),"stream"!==t.traceLifecycle||t.integrations.some(t=>"SpanStreaming"===t.name)||t.integrations.push((0,i.spanStreamingIntegration)()),super(t),this._disposeCallbacks=[],this._setUpMetricsProcessing()}eventFromException(t,s){const n=(0,p.eventFromUnknownInput)(this,this._options.stackParser,t,s);return n.level="error",(0,v.resolvedSyncPromise)(n)}eventFromMessage(t,s="info",n){return(0,v.resolvedSyncPromise)((0,p.eventFromMessage)(this._options.stackParser,t,s,n,this._options.attachStacktrace))}captureException(t,s,n){return S(s),super.captureException(t,s,n)}captureEvent(t,s,n){return!t.type&&t.exception?.values&&t.exception.values.length>0&&S(s),super.captureEvent(t,s,n)}captureCheckIn(s,n,i){const c="checkInId"in s&&s.checkInId?s.checkInId:(0,l.uuid4)();if(!this._isEnabled())return o.DEBUG_BUILD&&h.debug.warn("SDK not enabled, will not capture check-in."),c;const u=this.getOptions(),{release:p,environment:_,tunnel:v}=u,k={check_in_id:c,monitor_slug:s.monitorSlug,status:s.status,release:p,environment:_};"duration"in s&&(k.duration=s.duration),n&&(k.monitor_config={schedule:n.schedule,checkin_margin:n.checkinMargin,max_runtime:n.maxRuntime,timezone:n.timezone,failure_issue_threshold:n.failureIssueThreshold,recovery_threshold:n.recoveryThreshold});const[S,I]=(0,f._getTraceInfoFromScope)(this,i);I&&(k.contexts={trace:I});const E=(0,t.createCheckInEnvelope)(k,S,this.getSdkMetadata(),v,this.getDsn());return o.DEBUG_BUILD&&h.debug.log("Sending checkin:",s.monitorSlug,s.status),this.sendEnvelope(E),c}registerCleanup(t){this._disposeCallbacks.push(t)}dispose(){o.DEBUG_BUILD&&h.debug.log("Disposing client...");for(const t of this._disposeCallbacks)try{t()}catch{}this._disposeCallbacks.length=0;for(const t of Object.keys(this._hooks))this._hooks[t]?.clear();this._hooks={},this._eventProcessors.length=0,this._integrations={},this._outcomes={},this._transport=void 0,this._promiseBuffer=(0,_.makePromiseBuffer)(c.DEFAULT_TRANSPORT_BUFFER_SIZE)}_prepareEvent(t,s,n,o){return this._options.platform&&(t.platform=t.platform||this._options.platform),this._options.runtime&&(t.contexts={...t.contexts,runtime:t.contexts?.runtime||this._options.runtime}),this._options.serverName&&(t.server_name=t.server_name||this._options.serverName),super._prepareEvent(t,s,n,o)}_setUpMetricsProcessing(){this.on("processMetric",t=>{this._options.serverName&&(t.attributes={"server.address":this._options.serverName,...t.attributes})})}}function S(t){const s=(0,n.getIsolationScope)().getScopeData().sdkProcessingMetadata.requestSession;if(s){const n=t?.mechanism?.handled??!0;n&&"crashed"!==s.status?s.status="errored":n||(s.status="crashed")}}},2424,[2341,2309,2273,2244,2416,2323,2425,2248,2359,2259,2324,2304,2313]);
898__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t._metadata?.sdk,s=n?.name&&n?.version?`${n?.name}/${n?.version}`:void 0;t.transportOptions={...t.transportOptions,headers:{...s&&{"user-agent":s},...t.transportOptions?.headers}}}
898Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addUserAgentToTransportHeaders",{enumerable:!0,get:function(){return t}})},2425,[]);
899__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"trpcMiddleware",{enumerable:!0,get:function(){return l}});var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),c=r(d[4]),p=r(d[5]);const u={mechanism:{handled:!1,type:"auto.rpc.trpc.middleware"}};function s(t){"object"==typeof t&&null!==t&&"ok"in t&&!t.ok&&"error"in t&&(0,e.captureException)(t.error,u)}function l(l={}){return async function(f){const{path:h,type:T,next:_,rawInput:y,getRawInput:I}=f,R=(0,t.getClient)(),E=R?.getOptions(),w=R?.getDataCollectionOptions(),v={procedure_path:h,procedure_type:T};if((0,p.setNormalizationDepthOverrideHint)(v,1+(E?.normalizeDepth??5)),(void 0!==l.attachRpcInput?l.attachRpcInput:w?.httpBodies.includes("incomingRequest"))&&(void 0!==y&&(v.input=(0,o.normalize)(y)),void 0!==I&&"function"==typeof I))try{const t=await I();v.input=(0,o.normalize)(t)}catch{}return(0,t.withIsolationScope)(t=>(t.setContext("trpc",v),(0,c.startSpanManual)({name:`trpc/${h}`,op:"rpc.server",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"},forceTransaction:!!l.forceTransaction},async t=>{try{const e=await _();return s(e),t.end(),e}catch(n){throw(0,e.captureException)(n,u),t.end(),n}})))}}},2426,[2273,2301,2274,2264,2294,2265]);
900__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapMcpServerWithSentry",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]);const p=new WeakSet;function u(u,l){if(p.has(u))return u;if(!(0,c.validateMcpServerInstance)(u))return u;const f=u,w=(0,t.getClient)(),O=w?.getDataCollectionOptions().genAI,v={recordInputs:l?.recordInputs??O?.inputs??!1,recordOutputs:l?.recordOutputs??O?.outputs??!1};return(0,n.fill)(f,"connect",t=>async function(n,...s){const c=await t.call(this,n,...s);return(0,o.wrapTransportOnMessage)(n,v),(0,o.wrapTransportSend)(n,v),(0,o.wrapTransportOnClose)(n),(0,o.wrapTransportError)(n),c}),(0,s.wrapAllMCPHandlers)(f),(0,s.wrapExistingHandlers)(f),p.add(u),u}},2427,[2273,2260,2428,2430,2434]);
901__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapAllMCPHandlers",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"wrapExistingHandlers",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"wrapPromptHandlers",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"wrapResourceHandlers",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"wrapToolHandlers",{enumerable:!0,get:function(){return p}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),c=r(d[3]);function u(t,o){(0,n.fill)(t,o,t=>function(n,...c){const u=c[c.length-1];if("function"!=typeof u)return t.call(this,n,...c);const f=s(u,o,n);return t.call(this,n,...c.slice(0,-1),f)})}function s(n,c,u){return function(...s){try{return f.call(this,n,c,u,s)}catch(c){return t.DEBUG_BUILD&&o.debug.warn("MCP handler wrapping failed:",c),n.apply(this,s)}}}function f(t,o,n,c){try{const u=t.apply(this,c);return u&&"object"==typeof u&&"function"==typeof u.then?Promise.resolve(u).catch(t=>{throw l(t,o,n),t}):u}catch(t){throw l(t,o,n),t}}function l(t,o,n){try{const u={};"tool"===o||"registerTool"===o?(u.tool_name=n,"ProtocolValidationError"===t.name||t.message.includes("validation")||t.message.includes("protocol")?(0,c.captureError)(t,"validation",u):"ServerTimeoutError"===t.name||t.message.includes("timed out")||t.message.includes("timeout")?(0,c.captureError)(t,"timeout",u):(0,c.captureError)(t,"tool_execution",u)):"resource"===o||"registerResource"===o?(u.resource_uri=n,(0,c.captureError)(t,"resource_execution",u)):"prompt"!==o&&"registerPrompt"!==o||(u.prompt_name=n,(0,c.captureError)(t,"prompt_execution",u))}catch(t){}}function p(t){"function"==typeof t.tool&&u(t,"tool"),"function"==typeof t.registerTool&&u(t,"registerTool")}function y(t){"function"==typeof t.resource&&u(t,"resource"),"function"==typeof t.registerResource&&u(t,"registerResource")}function b(t){"function"==typeof t.prompt&&u(t,"prompt"),"function"==typeof t.registerPrompt&&u(t,"registerPrompt")}function h(t){p(t),y(t),b(t)}
901function P(t){const o=t,n=o._registeredTools;if(n&&"object"==typeof n)for(const[t,o]of Object.entries(n))"function"==typeof o.executor&&(o.executor=s(o.executor,"registerTool",t));const c=o._registeredResources;if(c&&"object"==typeof c)for(const[t,o]of Object.entries(c))"function"==typeof o.readCallback&&(o.readCallback=s(o.readCallback,"registerResource",t));const u=o._registeredResourceTemplates;if(u&&"object"==typeof u)for(const[t,o]of Object.entries(u))"function"==typeof o.readCallback&&(o.readCallback=s(o.readCallback,"registerResource",t));const f=o._registeredPrompts;if(f&&"object"==typeof f)for(const[t,o]of Object.entries(f))"function"==typeof o.handler&&(o.handler=s(o.handler,"registerPrompt",t))}},2428,[2244,2248,2260,2429]);
902__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureError",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),c=r(d[2]),o=r(d[3]);function u(u,s,_){try{if(!(0,t.getClient)())return;const p=(0,c.getActiveSpan)();p?.isRecording()&&p.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(u,{mechanism:{type:"auto.ai.mcp_server",handled:!1,data:{error_type:s||"handler_execution",..._}}})}catch{}}},2429,[2273,2301,2253,2275]);
903__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapTransportError",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"wrapTransportOnClose",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"wrapTransportOnMessage",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"wrapTransportSend",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]),S=r(d[9]);function h(l,h){l.onmessage&&(0,n.fill)(l,"onmessage",n=>function(b,R){if((0,S.isJsonRpcRequest)(b)){const S="initialize"===b.method;let O;if(S)try{O=(0,u.extractSessionDataFromInitializeRequest)(b),(0,p.storeSessionDataForTransport)(l,O)}catch{}const T=(0,t.getIsolationScope)().clone();return(0,t.withIsolationScope)(T,()=>{const t=(0,f.buildMcpServerSpanConfig)(b,l,R,h),p=(0,o.startInactiveSpan)(t);return S&&O&&p.setAttributes({...(0,u.buildClientAttributesFromInfo)(O.clientInfo),...O.protocolVersion&&{[s.MCP_PROTOCOL_VERSION_ATTRIBUTE]:O.protocolVersion}}),(0,c.storeSpanForRequest)(l,b.id,p,b.method),(0,o.withActiveSpan)(p,()=>n.call(this,b,R))})}return(0,S.isJsonRpcNotification)(b)?(0,f.createMcpNotificationSpan)(b,l,R,h,()=>n.call(this,b,R)):n.call(this,b,R)})}function b(t,o){t.send&&(0,n.fill)(t,"send",n=>async function(...s){const[l]=s;if((0,S.isJsonRpcNotification)(l))return(0,f.createMcpOutgoingNotificationSpan)(l,t,o,()=>n.call(this,...s));if((0,S.isJsonRpcResponse)(l)&&null!==l.id&&void 0!==l.id){if(l.error&&T(l.error),(0,S.isValidContentItem)(l.result)&&(l.result.protocolVersion||l.result.serverInfo))try{const n=(0,u.extractSessionDataFromInitializeResponse)(l.result);(0,p.updateSessionDataForTransport)(t,n)}catch{}(0,c.completeSpanWithResults)(t,l.id,l.result,o,!!l.error)}return n.call(this,...s)})}function R(t){t.onclose&&(0,n.fill)(t,"onclose",n=>function(...o){return(0,c.cleanupPendingSpansForTransport)(t),(0,p.cleanupSessionDataForTransport)(t),n.call(this,...o)})}function O(t){t.onerror&&(0,n.fill)(t,"onerror",t=>function(n){return y(n),t.call(this,n)})}function T(t){try{if(t&&"object"==typeof t&&"code"in t&&"message"in t){const n=t;if(-32603===n.code||n.code>=-32099&&n.code<=-32e3){const t=new Error(n.message);t.name=`JsonRpcError_${n.code}`,(0,l.captureError)(t,"protocol")}}}catch{}}function y(t){try{(0,l.captureError)(t,"transport")}catch{}}},2430,[2273,2260,2294,2431,2432,2429,2435,2436,2437,2434]);
904__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CLIENT_ADDRESS_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"CLIENT_PORT_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"MCP_FUNCTION_ORIGIN_VALUE",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"MCP_LOGGING_DATA_TYPE_ATTRIBUTE",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"MCP_LOGGING_LEVEL_ATTRIBUTE",{enumerable:!0,get:function(){return A}}
904),Object.defineProperty(e,"MCP_LOGGING_LOGGER_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"MCP_LOGGING_MESSAGE_ATTRIBUTE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"MCP_METHOD_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"MCP_NOTIFICATION_ORIGIN_VALUE",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"MCP_PROMPT_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"MCP_PROTOCOL_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"MCP_REQUEST_ARGUMENT",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"MCP_REQUEST_ID_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"MCP_RESOURCE_URI_ATTRIBUTE",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"MCP_ROUTE_SOURCE_VALUE",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"MCP_SERVER_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"MCP_SERVER_OP_VALUE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"MCP_SERVER_TITLE_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"MCP_SERVER_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"MCP_SESSION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"MCP_TOOL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"MCP_TRANSPORT_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"NETWORK_PROTOCOL_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"NETWORK_TRANSPORT_ATTRIBUTE",{enumerable:!0,get:function(){return N}});const t="mcp.method.name",n="mcp.request.id",T="mcp.session.id",o="mcp.transport",_="mcp.server.name",u="mcp.server.title",c="mcp.server.version",O="mcp.protocol.version",E="mcp.tool.name",P="mcp.resource.uri",R="mcp.prompt.name",p="mcp.tool.result.is_error",f="mcp.tool.result.content_count",b="mcp.prompt.result.description",I="mcp.prompt.result.message_count",l="mcp.request.argument",A="mcp.logging.level",U="mcp.logging.logger",C="mcp.logging.data_type",M="mcp.logging.message",N="network.transport",s="network.protocol.version",y="client.address",j="client.port",S="mcp.server",L="mcp.notification.client_to_server",B="mcp.notification.server_to_client",G="auto.function.mcp_server",V="auto.mcp.notification",v="route"},2431,[]);
905__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupPendingSpansForTransport",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"completeSpanWithResults",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"storeSpanForRequest",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);const c=new Map,u=new WeakMap;function l(t){const n=t.sessionId;if(n){let t=c.get(n);return t||(t=new Map,c.set(n,t)),t}let s=u.get(t);return s||(s=new Map,u.set(t,s)),s}function p(t,n,s,o){l(t).set(n,{span:s,method:o,startTime:Date.now()})}function f(c,u,p,f,S=!1){const R=l(c),b=R.get(u);if(b){const{span:c,method:l}=b;if(S)c.setStatus({code:t.SPAN_STATUS_ERROR,message:"internal_error"});else if("initialize"===l){const t=(0,o.extractSessionDataFromInitializeResponse)(p),s={...(0,o.buildServerAttributesFromInfo)(t.serverInfo)};t.protocolVersion&&(s[n.MCP_PROTOCOL_VERSION_ATTRIBUTE]=t.protocolVersion),c.setAttributes(s)}else if("tools/call"===l){const t=(0,s.extractToolResultAttributes)(p,f.recordOutputs);c.setAttributes(t)}else if("prompts/get"===l){const t=(0,s.extractPromptResultAttributes)(p,f.recordOutputs);c.setAttributes(t)}c.end(),R.delete(u)}}function S(n){const s=n.sessionId;if(s){const n=c.get(s);if(n){for(const[,s]of n)s.span.setStatus({code:t.SPAN_STATUS_ERROR,message:"cancelled"}),s.span.end();c.delete(s)}return}const o=u.get(n);if(o){for(const[,n]of o)n.span.setStatus({code:t.SPAN_STATUS_ERROR,message:"cancelled"}),n.span.end();
905o.clear()}}},2432,[2275,2431,2433,2435]);
906__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractPromptResultAttributes",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"extractToolResultAttributes",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);function o(o,s){const i={[t.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE]:o.length};for(const[t,c]of o.entries()){if(!(0,n.isValidContentItem)(c))continue;const u=1===o.length?"mcp.tool.result":`mcp.tool.result.${t}`;if("string"==typeof c.type&&(i[`${u}.content_type`]=c.type),s){const t=(t,n)=>{"string"==typeof n&&(i[`${u}.${t}`]=n)};t("mime_type",c.mimeType),t("uri",c.uri),t("name",c.name),"string"==typeof c.text&&(i[`${u}.content`]=c.text),"string"==typeof c.data&&(i[`${u}.data_size`]=c.data.length);const o=c.resource;(0,n.isValidContentItem)(o)&&(t("resource_uri",o.uri),t("resource_mime_type",o.mimeType))}}return i}function s(s,i){if(!(0,n.isValidContentItem)(s))return{};const c=Array.isArray(s.content)?o(s.content,i):{};return"boolean"==typeof s.isError&&(c[t.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE]=s.isError),c}function i(o,s){const i={};if(!(0,n.isValidContentItem)(o))return i;if(s&&"string"==typeof o.description&&(i[t.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE]=o.description),Array.isArray(o.messages)&&(i[t.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE]=o.messages.length,s)){const t=o.messages;for(const[o,s]of t.entries()){if(!(0,n.isValidContentItem)(s))continue;const c=1===t.length?"mcp.prompt.result":`mcp.prompt.result.${o}`;if(((n,o)=>{if("string"==typeof o){const s=1===t.length?`${c}.message_${n}`:`${c}.${n}`;i[s]=o}})("role",s.role),(0,n.isValidContentItem)(s.content)){const n=s.content;if("string"==typeof n.text){const o=1===t.length?`${c}.message_content`:`${c}.content`;i[o]=n.text}}}}return i}},2433,[2431,2434]);
907__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isJsonRpcNotification",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isJsonRpcRequest",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isJsonRpcResponse",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isValidContentItem",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"validateMcpServerInstance",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);function o(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"method"in n&&"id"in n}function c(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"method"in n&&!("id"in n)}function u(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"id"in n&&("result"in n||"error"in n)}function s(o){return"object"==typeof o&&null!==o&&"connect"in o&&("tool"in o&&"resource"in o&&"prompt"in o||"registerTool"in o&&"registerResource"in o&&"registerPrompt"in o)||(n.DEBUG_BUILD&&t.debug.warn("Did not patch MCP server. Interface is incompatible."),!1)}function p(n){return null!=n&&"object"==typeof n}},2434,[2244,2248]);
908__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildClientAttributesFromInfo",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"buildServerAttributesFromInfo",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"buildTransportAttributes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractClientInfo",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"extractSessionDataFromInitializeRequest",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"extractSessionDataFromInitializeResponse",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getClientAttributes",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getServerAttributes",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getTransportTypes",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(t){const n={};return(0,o.isValidContentItem)(t)&&("string"==typeof t.name&&(n.name=t.name),"string"==typeof t.title&&(n.title=t.title),"string"==typeof t.version&&(n.version=t.version)),n}function c(t){const n={};return(0,o.isValidContentItem)(t.params)&&("string"==typeof t.params.protocolVersion&&(n.protocolVersion=t.params.protocolVersion),t.params.clientInfo&&(n.clientInfo=s(t.params.clientInfo))),n}function u(t){const n={};return(0,o.isValidContentItem)(t)&&("string"==typeof t.protocolVersion&&(n.protocolVersion=t.protocolVersion),t.serverInfo&&(n.serverInfo=s(t.serverInfo))),n}function T(t){const o=(0,n.getClientInfoForTransport)(t),s={};return o?.name&&(s["mcp.client.name"]=o.name),o?.title&&(s["mcp.client.title"]=o.title),o?.version&&(s["mcp.client.version"]=o.version),s}function l(t){const n={};return t?.name&&(n["mcp.client.name"]=t.name),t?.title&&(n["mcp.client.title"]=t.title),t?.version&&(n["mcp.client.version"]=t.version),n}function p(o){const s=(0,n.getSessionDataForTransport)(o)?.serverInfo,c={};return s?.name&&(c[t.MCP_SERVER_NAME_ATTRIBUTE]=s.name),s?.title&&(c[t.MCP_SERVER_TIT
908LE_ATTRIBUTE]=s.title),s?.version&&(c[t.MCP_SERVER_VERSION_ATTRIBUTE]=s.version),c}function f(n){const o={};return n?.name&&(o[t.MCP_SERVER_NAME_ATTRIBUTE]=n.name),n?.title&&(o[t.MCP_SERVER_TITLE_ATTRIBUTE]=n.title),n?.version&&(o[t.MCP_SERVER_VERSION_ATTRIBUTE]=n.version),o}function I(t){return{address:t?.requestInfo?.remoteAddress||t?.clientAddress||t?.request?.ip||t?.request?.connection?.remoteAddress,port:t?.requestInfo?.remotePort||t?.clientPort||t?.request?.connection?.remotePort}}function R(t){if(!t?.constructor)return{mcpTransport:"unknown",networkTransport:"unknown"};const n="string"==typeof t.constructor?.name?t.constructor.name:"unknown";let o="unknown";const s=n.toLowerCase();return s.includes("stdio")?o="pipe":(s.includes("http")||s.includes("sse"))&&(o="tcp"),{mcpTransport:n,networkTransport:o}}function E(o,s){const c=o&&"sessionId"in o?o.sessionId:void 0,u=s?I(s):{},{mcpTransport:l,networkTransport:f}=R(o),E=T(o),_=p(o),P=(0,n.getProtocolVersionForTransport)(o);return{...c&&{[t.MCP_SESSION_ID_ATTRIBUTE]:c},...u.address&&{[t.CLIENT_ADDRESS_ATTRIBUTE]:u.address},...u.port&&{[t.CLIENT_PORT_ATTRIBUTE]:u.port},[t.MCP_TRANSPORT_ATTRIBUTE]:l,[t.NETWORK_TRANSPORT_ATTRIBUTE]:f,[t.NETWORK_PROTOCOL_VERSION_ATTRIBUTE]:"2.0",...P&&{[t.MCP_PROTOCOL_VERSION_ATTRIBUTE]:P},...E,..._}}},2435,[2431,2436,2434]);
909__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupSessionDataForTransport",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getClientInfoForTransport",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getProtocolVersionForTransport",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getSessionDataForTransport",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"storeSessionDataForTransport",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"updateSessionDataForTransport",{enumerable:!0,get:function(){return c}});const n=new Map,t=new WeakMap;function o(o){const u=o.sessionId;return u?n.get(u):t.get(o)}function u(o,u){const s=o.sessionId;s?n.set(s,u):t.set(o,u)}function s(n,t){u(n,t)}function c(n,t){u(n,{...o(n)||{},...t})}function f(n){return o(n)?.clientInfo}function p(n){return o(n)?.protocolVersion}function l(n){return o(n)}function b(t){const o=t.sessionId;o&&n.delete(o)}},2436,[]);
910__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildMcpServerSpanConfig",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createMcpNotificationSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createMcpOutgoingNotificationSpan",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),_=r(d[4]),u=r(d[5]),s=r(d[6]),T=r(d[7]);function p(t,n){return n?`${t} ${n}`:t}function I(t){let o,c;switch(t){case"request":o=_.MCP_SERVER_OP_VALUE,c=_.MCP_FUNCTION_ORIGIN_VALUE;break;case"notification-incoming":o=_.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE,c=_.MCP_NOTIFICATION_ORIGIN_VALUE;break;case"notification-outgoing":o=_.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE,c=_.MCP_NOTIFICATION_ORIGIN_VALUE}return{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:o,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:_.MCP_ROUTE_SOURCE_VALUE}}function E(n){const{type:E,message:f,transport:O,extra:l,callback:C,options:A}=n,{method:N}=f,b=f.params;let M;if("request"===E){M=p(N,(0,u.extractTargetInfo)(N,b||{}).target)}else M=N;const R={...(0,T.buildTransportAttributes)(O,l),[_.MCP_METHOD_NAME_ATTRIBUTE]:N,...(0,c.buildTypeSpecificAttributes)(E,f,b,A?.recordInputs),...I(E)},P=(0,t.getClient)(),S=Boolean(P?.getDataCollectionOptions().userInfo),U=(0,s.filterMcpPiiFromSpanData)(R,S);return(0,o.startSpan)({name:M,forceTransaction:!0,attributes:U},C)}function f(t,n,o,c,_){return E({type:"notification-incoming",message:t,transport:n,extra:o,callback:_,options:c})}function O(t,n,o,c){return E({type:"notification-outgoing",message:t,transport:n,options:o,callback:c})}function l(n,o,E,f){const{method:O}=n,l=n.params,C=p(O,(0,u.extractTargetInfo)(O,l||{}).target),A={...(0,T.buildTransportAttributes)(o,E),[_.MCP_METHOD_NAME_ATTRIBUTE]:O,...(0,c.buildTypeSpecificAttributes)("request",n,l,f?.recordInputs),...I("request")},N=(0,t.getClient)(),b=Boolean(N?.getDataCollectionOptions().userInfo),M=(0,s.filterMcpPiiFromSpanData)(A,b);return{name:C,op:_.MCP_SERVER_OP_VALUE,forceTransaction:!0,attributes:M}}},2437,[2273,2274,2294,2438,2431,2439,2440,2435]);
911__d(function(g,r,i,a,m,e,d){"use strict";
911Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildTypeSpecificAttributes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getNotificationAttributes",{enumerable:!0,get:function(){return n}});var t=r(d[0]),o=r(d[1]),s=r(d[2]);function n(s,n,c){const p={};switch(s){case"notifications/cancelled":n?.requestId&&(p["mcp.cancelled.request_id"]=String(n.requestId)),n?.reason&&(p["mcp.cancelled.reason"]=String(n.reason));break;case"notifications/message":n?.level&&(p[o.MCP_LOGGING_LEVEL_ATTRIBUTE]=String(n.level)),n?.logger&&(p[o.MCP_LOGGING_LOGGER_ATTRIBUTE]=String(n.logger)),void 0!==n?.data&&(p[o.MCP_LOGGING_DATA_TYPE_ATTRIBUTE]=typeof n.data,c&&(p[o.MCP_LOGGING_MESSAGE_ATTRIBUTE]="string"==typeof(u=n.data)?u:JSON.stringify(u)));break;case"notifications/progress":n?.progressToken&&(p["mcp.progress.token"]=String(n.progressToken)),"number"==typeof n?.progress&&(p["mcp.progress.current"]=n.progress),"number"==typeof n?.total&&(p["mcp.progress.total"]=n.total,"number"==typeof n?.progress&&(p["mcp.progress.percentage"]=n.progress/n.total*100)),n?.message&&(p["mcp.progress.message"]=String(n.message));break;case"notifications/resources/updated":if(n?.uri){p[o.MCP_RESOURCE_URI_ATTRIBUTE]=String(n.uri);const s=(0,t.parseStringToURLObject)(String(n.uri));s&&!(0,t.isURLObjectRelative)(s)&&(p["mcp.resource.protocol"]=s.protocol.replace(":",""))}break;case"notifications/initialized":p["mcp.lifecycle.phase"]="initialization_complete",p["mcp.protocol.ready"]=1}var u;return p}function c(t,c,p,u){if("request"===t){const t=c,n=(0,s.extractTargetInfo)(t.method,p||{});return{...void 0!==t.id&&{[o.MCP_REQUEST_ID_ATTRIBUTE]:String(t.id)},...n.attributes,...u?(0,s.getRequestArguments)(t.method,p||{}):{}}}return n(c.method,p||{},u)}},2438,[2343,2431,2439]);
912__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractTargetInfo",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getRequestArguments",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const u={"tools/call":{targetField:"name",targetAttribute:t.MCP_TOOL_NAME_ATTRIBUTE,captureArguments:!0,argumentsField:"arguments"},"resources/read":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE,captureUri:!0},"resources/subscribe":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE},"resources/unsubscribe":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE},"prompts/get":{targetField:"name",targetAttribute:t.MCP_PROMPT_NAME_ATTRIBUTE,captureName:!0,captureArguments:!0,argumentsField:"arguments"}};function n(t,n){const s=u[t];if(!s)return{attributes:{}};const c=s.targetField&&"string"==typeof n?.[s.targetField]?n[s.targetField]:void 0;return{target:c,attributes:c&&s.targetAttribute?{[s.targetAttribute]:c}:{}}}function s(n,s){const c={},o=u[n];if(!o)return c;if(o.captureArguments&&o.argumentsField&&s?.[o.argumentsField]){const u=s[o.argumentsField];if("object"==typeof u&&null!==u)for(const[n,s]of Object.entries(u))c[`${t.MCP_REQUEST_ARGUMENT}.${n.toLowerCase()}`]=JSON.stringify(s)}return o.captureUri&&s?.uri&&(c[`${t.MCP_REQUEST_ARGUMENT}.uri`]=JSON.stringify(s.uri)),o.captureName&&s?.name&&(c[`${t.MCP_REQUEST_ARGUMENT}.name`]=JSON.stringify(s.name)),c}},2439,[2431]);
913__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterMcpPiiFromSpanData",{enumerable:!0,get:function(){return T}});var t=r(d[0]);const n=new Set([t.CLIENT_ADDRESS_ATTRIBUTE,t.CLIENT_PORT_ATTRIBUTE,t.MCP_RESOURCE_URI_ATTRIBUTE]);function u(t){return n.has(t)}function T(t,n){return n?t:Object.entries(t).reduce((t,[n,T])=>(u(n)||(t[n]=T),t),{})}},2440,[2431]);
914__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filenameIsInApp",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"node",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"nodeStackLineParser",{enumerable:!0,get:function(){return c}});var n=r(d[0]);function t(n,t=!1){return!(t||n&&!n.startsWith("/")&&!n.match(/^[A-Z]:/)&&!n.startsWith(".")&&!n.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==n&&!n.includes("node_modules/")}function o(o){const c=/^\s*[-]{4,}$/,f=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/,l=/at (?:async )?(.+?) \(data:(.*?),/;return v=>{const h=v.match(l);
914if(h)return{filename:`<data:${h[2]}>`,function:h[1]};const p=v.match(f);if(p){let c,f,l,v,h;if(p[1]){l=p[1];let n=l.lastIndexOf(".");if("."===l[n-1]&&n--,n>0){c=l.slice(0,n),f=l.slice(n+1);const t=c.indexOf(".Module");t>0&&(l=l.slice(t+1),c=c.slice(0,t))}v=void 0}f&&(v=c,h=f),"<anonymous>"===f&&(h=void 0,l=void 0),void 0===l&&(h=h||n.UNKNOWN_FUNCTION,l=v?`${v}.${h}`:h);let y=(0,n.normalizeStackTracePath)(p[2]);const O="native"===p[5];y||!p[5]||O||(y=p[5]);const b=y?s(y):void 0;return{filename:b??y,module:b&&o?.(b),function:l,lineno:u(p[3]),colno:u(p[4]),in_app:t(y||"",O)}}return v.match(c)?{filename:v}:void 0}}function c(n){return[90,o(n)]}function u(n){return parseInt(n||"",10)||void 0}function s(n){try{return decodeURI(n)}catch{return}}},2441,[2251]);
915__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"vercelWaitUntil",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){if("string"!=typeof EdgeRuntime)return;const o=t.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],u=o?.get?.();u?.waitUntil&&u.waitUntil(n)}},2442,[2246]);
916__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"flushIfServerless",{enumerable:!0,get:function(){return u}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]);async function l(n){try{t.debug.log("Flushing events..."),await(0,e.flush)(n),t.debug.log("Done flushing events")}catch(e){t.debug.log("Error while flushing events:\n",e)}}async function u(e={}){const{timeout:t=2e3}=e;if("cloudflareWaitUntil"in e&&"function"==typeof e?.cloudflareWaitUntil)return void e.cloudflareWaitUntil(l(t));if("cloudflareCtx"in e&&"function"==typeof e.cloudflareCtx?.waitUntil)return void e.cloudflareCtx.waitUntil(l(t));if(o.GLOBAL_OBJ[Symbol.for("@vercel/request-context")])return void(0,n.vercelWaitUntil)(l(t));if("undefined"==typeof process)return;!!(process.env.FUNCTIONS_WORKER_RUNTIME||process.env.LAMBDA_TASK_ROOT||process.env.K_SERVICE||process.env.CF_PAGES||process.env.VERCEL||process.env.NETLIFY)&&await l(t)}},2443,[2301,2248,2442,2246]);
917__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"callFrameToStackFrame",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"watchdogTimer",{enumerable:!0,get:function(){return t}});var n=r(d[0]),o=r(d[1]);function t(n,o,t,l){const c=n();let u=!1,f=!0;return setInterval(()=>{const n=c.getTimeMs();!1===u&&n>o+t&&(u=!0,f&&l()),n<o+t&&(u=!1)},20),{poll:()=>{c.reset()},enabled:n=>{f=n}}}function l(t,l,c){const u=l?l.replace(/^file:\/\//,""):void 0,f=t.location.columnNumber?t.location.columnNumber+1:void 0,b=t.location.lineNumber?t.location.lineNumber+1:void 0;return{filename:u,module:c(u),function:t.functionName||o.UNKNOWN_FUNCTION,colno:f,lineno:b,in_app:u?(0,n.filenameIsInApp)(u):void 0}}},2444,[2441,2251]);
918__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"expressErrorHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"patchExpressModule",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"setupExpressErrorHandler",{enumerable:!0,get:function(){return y}});var e=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),n=r(d[4]),u=r(d[5]),p=r(d[6]),c=r(d[7]);let h=!1;function l(t,p){let l,f;if(!p&&t.express){const{express:s,...n}=t;f=s,l=()=>n,h||(h=!0,o.DEBUG_BUILD&&e.debug.warn("[Express] `patchExpressModule(options)` is deprecated. Use `patchExpressModule(moduleExports, getOptions)` instead."))}else{if("function"!=typeof p)throw new TypeError("`patchExpressModule(moduleExports, getOptions)` requires a `getOptions` callback");l=p,f=t}const y=(0,c.getDefaultExport)(f),E=(0,s.isExpressWithRouterPrototype)(y)?y.Router.prototype:(0,s.isExpressWithoutRouterPrototype)(y)?y.Router:void 0;if(!E)throw new TypeError("no valid Express route function to instrument");const x=E.route;try{(0,n.wrapMethod)(E,"route",function(...e){const t=x.apply(this,e),o=this.stack[this.stack.length-1];return(0,u.patchLayer)(l,o,(0,s.getLayerPath)(e)),t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express route method:",t)}const b=E.use;try{(0,n.wrapMethod)(E,"use",function(...e){const t=b.apply(this,e),o=this.stack[this.stack.length-1];return o?((0,u.patchLayer)(l,o,(0,s.getLayerPath)(e)),t):t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express use method:",t)}const{application:P}=y,D=P.use;try{(0,n.wrapMethod)(P,"use",function(...e){const t=D.apply(this,e),o=(0,s.isExpressWithRouterPrototype)(y)?this.router:this._router;if(o){const t=o.stack[o.stack.length-1];t&&(0,u.patchLayer)(l,t,(0,s.getLayerPath)(e))}return t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express application.use method:",t)}return y}function f(e){return function(o,n,u,c){(0,p.setSDKProcessingMetadata)(n);if((e?.shouldHandleError||s.defaultShouldHandleError)(o)){const e=(0,t.captureException)(o,{mechanism:{type:"auto.middleware.express",handled:!1}});u.sentry=e}c(o)}}function y(e,t){e.use(function(e,t,o){(0,p.setSDKProcessingMetadata)(e),o()}),e.use(f(t))}},2445,[2248,2301,2244,2446,2260,2449,2450,2451]);
919__d(function(g,r,i,a,m,e,d){"use strict";
919Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"asErrorAndMessage",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"defaultShouldHandleError",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getActualMatchedRoute",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getConstructedRoute",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getLayerMetadata",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getLayerPath",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getRouterPath",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isExpressWithRouterPrototype",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"isExpressWithoutRouterPrototype",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"isLayerIgnored",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isRoutePattern",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);const o=t=>t instanceof Error?[t,t.message]:[String(t),String(t)];function s(t){return t.includes(":")||t.includes("*")}const c=(t,u,o)=>{if("router"===u.name){const s=y("",u),c=s||(o||t||"/");return{attributes:{[n.ATTR_EXPRESS_NAME]:c,[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_ROUTER},name:`router - ${c}`}}return"bound dispatch"===u.name||"handle"===u.name?{attributes:{[n.ATTR_EXPRESS_NAME]:(t||o)??"request handler",[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_REQUEST_HANDLER},name:"request handler"+(u.path?` - ${t||o}`:"")}:{attributes:{[n.ATTR_EXPRESS_NAME]:u.name,[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_MIDDLEWARE},name:`middleware - ${u.name}`}},y=(t,n)=>{const u=Array.isArray(n.handle?.stack)?n.handle?.stack?.[0]:void 0;return u?.route?.path?`${t}${u.route.path}`:u&&Array.isArray(u?.handle?.stack)?y(t,u):t},f=(t,n,o)=>{if(Array.isArray(o?.ignoreLayersType)&&o?.ignoreLayersType?.includes(n))return!0;if(!Array.isArray(o?.ignoreLayers))return!1;try{return(0,u.stringMatchesSomePattern)(t,o.ignoreLayers,!0)}catch{}return!1};function l(n,u){const o=(0,t.getStoredLayers)(n);if(0===o.length)return;if(o.every(t=>"/"===t))return"/"===n.originalUrl?"/":void 0;if("*"===u)return u;if(u.includes("/")&&(u.includes(",")||u.includes("\\")||u.includes("*")||u.includes("[")))return u;const c=u.startsWith("/")?u:`/${u}`;return c.length>0&&(n.originalUrl===c||n.originalUrl.startsWith(c)||s(c))?c:void 0}function p(n){const u=(0,t.getStoredLayers)(n);let o="";for(const t of u)"/"!==t&&"/*"!==t&&(o+=!o||o.endsWith("/")?t:`/${t}`);return o.replace(/\/{2,}/g,"/")}const E=t=>{const n=t[0];return Array.isArray(n)?n.map(t=>b(t)||"").join(","):b(n)},b=t=>"string"==typeof t?t:t instanceof RegExp||"number"==typeof t?String(t):void 0,P=t=>R(t?.Router?.prototype),R=t=>("object"==typeof t||"function"==typeof t)&&!!t&&"route"in t&&"function"==typeof t.route,h=t=>R(t.Router)&&!P(t);function A(t){const n=t.status||t.statusCode||t.status_code||t.output?.statusCode;return n?parseInt(n,10):500}function T(t){return A(t)>=500}},2446,[2447,2448,2263]);
920__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getStoredLayers",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"storeLayer",{enumerable:!0,get:function(){return n}});const t=new WeakMap,n=(n,u)=>{const o=t.get(n);o?o.push(u):t.set(n,[u])},u=n=>{let u=t.get(n);return u||(u=[],t.set(n,u)),u}},2447,[]);
921__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ATTR_EXPRESS_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ATTR_EXPRESS_TYPE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"ATTR_HTTP_ROUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ExpressLayerType_MIDDLEWARE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"ExpressLayerType_REQUEST_HANDLER",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"ExpressLayerType_ROUTER",{enumerable:!0,get:function(){return o}});const t="express.name",n="http.route",u="express.type",o="router",p="middleware",c="request_handler"},2448,[]);
922__d(function(g,r,_i,a,m,e,d){"use strict";
922Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchLayer",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),i=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),l=r(d[8]),T=r(d[9]),f=r(d[10]),E=r(d[11]),R=r(d[12]);function S(S,_,h){if(!_?.handle)return;const A=_,y=A.handle;if(!(0,c.getOriginalFunction)(y)&&4!==y.length){for(const t in y)t in b||Object.defineProperty(b,t,{get:()=>y[t],set(n){y[t]=n}});(0,c.markFunctionWrapped)(b,y),Object.defineProperty(A,"handle",{enumerable:!0,configurable:!0,writable:!0,value:b})}function b(c,_,...b){const P=S();(0,R.setSDKProcessingMetadata)(c);const O=(0,o.getActiveSpan)();if(!O)return y.apply(this,[c,_,...b]);h&&(0,l.storeLayer)(c,h);const I=(0,l.getStoredLayers)(c),M=!!h,N=(0,f.getConstructedRoute)(c),U=(0,f.getActualMatchedRoute)(c,N);P.onRouteResolved?.(U);const L=(0,f.getLayerMetadata)(N,A,h),v=L.attributes[T.ATTR_EXPRESS_NAME],j=L.attributes[T.ATTR_EXPRESS_TYPE],w=Object.assign(L.attributes,{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.express",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${j}.express`});if(U&&(w[T.ATTR_HTTP_ROUTE]=U),(0,f.isLayerIgnored)(L.attributes[T.ATTR_EXPRESS_NAME],j,P))return M&&I.pop(),y.apply(this,[c,_,...b]);const B=(0,u.getIsolationScope)();if(B!==(0,E.getDefaultIsolationScope)()){if("request_handler"===j){const t=c.method?c.method.toUpperCase():"GET";B.setTransactionName(`${t} ${N}`)}}else t.DEBUG_BUILD&&s.debug.warn("Isolation scope is still default isolation scope - skipping setting transactionName");return(0,p.startSpanManual)({name:v,attributes:w},t=>{let n=!1;L.attributes[T.ATTR_EXPRESS_TYPE]===T.ExpressLayerType_ROUTER&&(t.end(),n=!0);const s=()=>{n||(n=!0,t.end())};for(let o=0;o<b.length;o++){const u=b[o];if("function"==typeof u){b[o]=function(...o){const l=o[0],T=!!l&&"route"!==l&&"router"!==l;if(!n&&T){const[n,s]=(0,f.asErrorAndMessage)(l);t.setStatus({code:i.SPAN_STATUS_ERROR,message:s})}return n||(n=!0,_.removeListener("finish",s),t.end()),c.route&&T||!M||I.pop(),(0,p.withActiveSpan)(O,()=>u.apply(this,o))};break}}try{return y.apply(this,[c,_,...b])}catch(n){const[s,o]=(0,f.asErrorAndMessage)(n);throw t.setStatus({code:i.SPAN_STATUS_ERROR,message:o}),n}finally{n||_.once("finish",s)}})}}},2449,[2244,2274,2248,2253,2275,2260,2273,2294,2447,2448,2446,2256,2450]);
923__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setSDKProcessingMetadata",{enumerable:!0,get:function(){return s}});var t=r(d[0]),o=r(d[1]);function s(s){const n=(0,t.getIsolationScope)()?.getScopeData()?.sdkProcessingMetadata;if(!n?.normalizedRequest){const n=(0,o.httpRequestToRequestData)(s);(0,t.getIsolationScope)().setSDKProcessingMetadata({normalizedRequest:n})}}},2450,[2273,2352]);
924__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return!!t&&"object"==typeof t&&"default"in t&&t.default||t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultExport",{enumerable:!0,get:function(){return t}})},2451,[]);
925__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"_reconstructQuery",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"_sanitizeSqlQuery",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"instrumentPostgresJsSql",{enumerable:!0,get:function(){return f}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),i=r(d[5]);const c=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,u=Symbol("sentryPostgresConnectionContext"),p=Symbol.for("sentry.instrumented.postgresjs"),l=Symbol.for("sentry.query.from.instrumented.sql");function f(t,o){return t&&"function"==typeof t?b(t,{requireParentSpan:!0,...o}):(e.DEBUG_BUILD&&n.debug.warn("instrumentPostgresJsSql: provided value is not a valid postgres.js sql instance"),t)}function b(e,t,n){if(e[p])return e;const o=new Proxy(e,{apply(e,n,s){const i=Reflect.apply(e,n,s);return i&&"object"==typeof i&&"handle"in i&&R(i,o,t),i},get(e,n){const s=e[n];return"string"!=typeof n||"function"!=typeof s?s:"unsafe"===n||"file"===n?y(s,e,o,t):"begin"===n||"reserve"===n?E(s,e,o,t):s}});return n?o[u]=n:D(e,o),e[p]=!0,o[p]=!0,o}function y(e,t,n,o){return function(...s){const i=Reflect.apply(e,t,s);return i&&"object"==typeof i&&"handle"in i&&R(i,n,o),i}}function E(e,t,n,o){return function(...s){const i=n[u];if(!("function"==typeof s[s.length-1])){const n=Reflect.apply(e,t,s);return n&&"function"==typeof n.then?n.then(e=>b(e,o,i)):n}const c=1===s.length?s[0]:s[1],p=function(e){const t=b(e,o,i);return c(t)},l=1===s.length?[p]:[s[0],p];return Reflect.apply(e,t,l)}}function R(o,c,p){if(o.handle?.__sentryWrapped)return;o[l]=!0;const f=o.handle,b=async function(...l){if(this.executed||!_(p))return f.apply(this,l);const b=T(A(o.strings));return(0,i.startSpanManual)({name:b||"postgresjs.query",op:"db"},o=>{o.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.postgresjs"),o.setAttributes({"db.system.name":"postgres","db.query.text":b});const i=c?c[u]:void 0;
925if(h(o,i),p.requestHook)try{p.requestHook(o,b,i)}catch(t){o.setAttribute("sentry.hook.error","requestHook failed"),e.DEBUG_BUILD&&n.debug.error("Error in requestHook for PostgresJs instrumentation:",t)}const y=this;y.resolve=new Proxy(y.resolve,{apply:(t,s,i)=>{try{P(o,b,i?.[0]?.command),o.end()}catch(t){e.DEBUG_BUILD&&n.debug.error("Error ending span in resolve callback:",t)}return Reflect.apply(t,s,i)}}),y.reject=new Proxy(y.reject,{apply:(t,i,c)=>{try{o.setStatus({code:s.SPAN_STATUS_ERROR,message:c?.[0]?.message||"unknown_error"}),o.setAttribute("db.response.status_code",c?.[0]?.code||"unknown"),o.setAttribute("error.type",c?.[0]?.name||"unknown"),P(o,b),o.end()}catch(t){e.DEBUG_BUILD&&n.debug.error("Error ending span in reject callback:",t)}return Reflect.apply(t,i,c)}});try{return f.apply(this,l)}catch(e){throw o.setStatus({code:s.SPAN_STATUS_ERROR,message:e instanceof Error?e.message:"unknown_error"}),o.end(),e}})};b.__sentryWrapped=!0,o.handle=b}function _(e){return void 0!==(0,o.getActiveSpan)()||!e.requireParentSpan}function A(e){if(e?.length)return 1===e.length?e[0]||void 0:e.reduce((e,t,n)=>0===n?t:`${e}$${n}${t}`,"")}let S;function T(e){return e?(S||(S=new RegExp("(?<!\\$)-?\\b\\d+\\b","g")),e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(S,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)")):"Unknown SQL Query"}function h(e,t){if(t&&(t.ATTR_DB_NAMESPACE&&e.setAttribute("db.namespace",t.ATTR_DB_NAMESPACE),t.ATTR_SERVER_ADDRESS&&e.setAttribute("server.address",t.ATTR_SERVER_ADDRESS),void 0!==t.ATTR_SERVER_PORT)){const n=parseInt(t.ATTR_SERVER_PORT,10);isNaN(n)||e.setAttribute("server.port",n)}}function P(e,t,n){if(n)return void e.setAttribute("db.operation.name",n);const o=t?.match(c);o?.[1]&&e.setAttribute("db.operation.name",o[1].toUpperCase())}function D(e,t){const n=e;if(!n.options||"object"!=typeof n.options)return;const o=n.options,s=o.host?.[0]||"localhost",i=o.port?.[0]||5432,c={ATTR_DB_NAMESPACE:"string"==typeof o.database&&""!==o.database?o.database:void 0,ATTR_SERVER_ADDRESS:s,ATTR_SERVER_PORT:String(i)};t[u]=c}},2452,[2244,2274,2248,2253,2275,2294]);
926__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSqlQuerySummary",{enumerable:!0,get:function(){return T}});const n=255,o=/[^\s(,;)]+/.source,s=new RegExp(`^\\s*(?<operation>(?:CREATE|DROP)\\s+(?:TABLE|INDEX)|ALTER\\s+TABLE)(?:\\s+IF\\s+(?:NOT\\s+)?EXISTS)?\\s+(?<table>${o})`,"i"),t=new RegExp(`^\\s*(?<operation>INSERT)\\s+INTO\\s+(?<table>${o})`,"i"),u=new RegExp(`^\\s*(?<operation>UPDATE)\\s+(?<table>${o})`,"i"),p=new RegExp(`^\\s*(?<operation>DELETE)\\s+FROM\\s+(?<table>${o})`,"i"),c=/^\s*\(?\s*(?<operation>SELECT)\b/i,l=/^\s*(?<operation>PRAGMA)\s+(?<command>\S+)/i,E=/\b(?:FROM|JOIN)\s+|\(\s*(SELECT)\b|\b(?:UNION|INTERSECT|EXCEPT|MINUS)\s+(?:ALL\s+)?(SELECT)\b/gi,b=/^(?:"[^"]*"|'[^']*'|[^\s(,;)]+)/,f=/^\s*,\s*((?:"[^"]*"|'[^']*'|[^\s(,;)]+))/,x=/^\(\s*(SELECT)\b/i;function T(n){if(!n)return;const o=l.exec(n);if(o?.groups?.operation&&o.groups.command){const n=o.groups.operation,s=o.groups.command,t=s.indexOf("(");return $(`${n} ${t>=0?s.substring(0,t):s}`)}const E=s.exec(n);if(E?.groups?.operation&&E.groups.table)return $(`${E.groups.operation} ${E.groups.table}`);const b=t.exec(n);if(b?.groups?.operation&&b.groups.table){const o=[b.groups.operation,b.groups.table],s=n.slice(b[0].length),t=/\b(SELECT)\b/i.exec(s);if(t?.[1]){o.push(t[1]);const n=h(s.slice(t.index));o.push(...n)}return $(o.join(" "))}const f=u.exec(n);if(f?.groups?.operation&&f.groups.table)return $(`${f.groups.operation} ${f.groups.table}`);const x=p.exec(n);if(x?.groups?.operation&&x.groups.table)return $(`${x.groups.operation} ${x.groups.table}`);const T=c.exec(n);if(T?.groups?.operation){const o=h(n.slice(T[0].length));return o.length>0?$(`${T.groups.operation} ${o.join(" ")}`):T.groups.operation}return $(n.trim().split(/\s+/)[0]??n)}function h(n){const o=[];let s;for(E.lastIndex=0;null!==(s=E.exec(n));){if(s[1]||s[2]){o.push(s[1]||s[2]);continue}const t=n.slice(s.index+s[0].length),u=x.exec(t);if(u?.[1]){o.push(u[1]),E.lastIndex=s.index+s[0].length+u[0].length;continue}const p=b.exec(t);if(!p)continue;o.push(p[0]);let c,l=t.slice(p[0].length);for(;null!==(c=f.exec(l))&&c[1];)o.push(c[1]),l=l.slice(c[0].length)}return o}function $(o){if(o.length<=n)return o;const s=o.substring(0,n),t=s.lastIndexOf(" ");return t>0?s.substring(0,t):s}},2453,[]);
927__d(function(g,r,i,a,m,e,d){"use strict";
927Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchHttpModuleClient",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);function c(t,c){if(!(0,o.getOriginalFunction)(t.request)){const{[n.HTTP_ON_CLIENT_REQUEST]:s}=(0,u.getHttpClientSubscriptions)({...c,http:t}),f=t.request;(0,o.wrapMethod)(t,"request",function(...t){const o=f.apply(this,t);return s({request:o},n.HTTP_ON_CLIENT_REQUEST),o})}}function s(t){(0,o.getOriginalFunction)(t.get)||(0,o.wrapMethod)(t,"get",function(n,o,u){const c=t.request.call(this,n,o,u);return c.end(),c})}function f(n,o={}){const u=(0,t.getDefaultExport)(n),p=n;if(u!==n){f(u,o);for(const t of["get","request"]){const n=Object.getOwnPropertyDescriptor(u,t);n&&Object.defineProperty(p,t,n)}return p}return c(p,o),s(p),n}const p=(t,n={})=>f(t,n)},2454,[2451,2455,2260,2456]);
928__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HTTP_ON_CLIENT_REQUEST",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"HTTP_ON_SERVER_REQUEST",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"LOG_PREFIX",{enumerable:!0,get:function(){return t}});const t="@sentry/instrumentation-http",n="http.client.request.created",u="http.server.request.start"},2455,[]);
929__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getHttpClientSubscriptions",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),p=r(d[5]),c=r(d[6]),S=r(d[7]),R=r(d[8]),l=r(d[9]),_=r(d[10]),T=r(d[11]),b=r(d[12]);function P(P){const f=new S.LRUMap(100);return{[T.HTTP_ON_CLIENT_REQUEST]:S=>{if(!0===(0,s.getCurrentScope)().getScopeData().sdkProcessingMetadata[c.SUPPRESS_TRACING_KEY])return;const E=(0,s.getClient)()?.getOptions(),{errorMonitor:O="error",spans:C=!E||(0,p.hasSpansEnabled)(E),propagateTrace:U=!1,breadcrumbs:q=!0,http:v,https:A,suppressOtelWarning:L=!1}=P,{request:H}=S;if(P.ignoreOutgoingRequests?.((0,l.getRequestUrlFromClientRequest)(H),H))return;let I=!1;function D(n,o){I||(I=!0,(0,t.addOutgoingRequestBreadcrumb)(n,o))}if(!C)return q&&((N=H).on(O,()=>D(N,void 0)),N.prependListener("response",t=>{N.listenerCount("response")<=1&&t.resume(),t.on("end",()=>D(N,t)),t.on(O,()=>D(N,t))})),void(U&&(0,_.injectTracePropagationHeaders)(H,f));var N;L||(v&&(0,b.doubleWrapWarning)(v),A&&(0,b.doubleWrapWarning)(A));const j=(0,c.startInactiveSpan)((0,R.getOutgoingRequestSpanData)(H));P.outgoingRequestHook?.(j,H),U&&(j.isRecording()?(0,c.withActiveSpan)(j,()=>{(0,_.injectTracePropagationHeaders)(H,f)}):(0,_.injectTracePropagationHeaders)(H,f));let B=!1;function G(t){B||(B=!0,j.setStatus(t),j.end())}const W=()=>G({code:u.SPAN_STATUS_UNSET});H.on("close",W),H.on(O,t=>{n.DEBUG_BUILD&&o.debug.log(T.LOG_PREFIX,"outgoingRequest on request error()",t),q&&D(H,void 0),G({code:u.SPAN_STATUS_ERROR})}),H.prependListener("response",t=>{H.removeListener("close",W),H.listenerCount("response")<=1&&t.resume(),(0,R.setIncomingResponseSpanData)(t,j),P.outgoingResponseHook?.(j,t);let s=!1;function p(p){if(!s){s=!0,p&&n.DEBUG_BUILD&&o.debug.log(T.LOG_PREFIX,"outgoingRequest on response error()",p),q&&D(H,t);const c=t.aborted&&!t.complete,S=p||"number"!=typeof t.statusCode||c?{code:u.SPAN_STATUS_ERROR}:(0,u.getSpanStatusFromHttpCode)(t.statusCode);P.applyCustomAttributesOnSpan?.(j,H,t),G(S)}}t.on("end",()=>p()),t.on(O,p)})}}}},2456,[2457,2244,2248,2273,2275,2282,2294,2422,2459,2458,2460,2455,2461]);
930__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addOutgoingRequestBreadcrumb",{enumerable:!0,get:function(){return o}});
930var t=r(d[0]),s=r(d[1]),u=r(d[2]),n=r(d[3]);function o(o,c){const h=(0,n.getRequestUrlFromClientRequest)(o),p=(0,u.parseUrl)(h),l=c?.statusCode,b=(0,s.getBreadcrumbLogLevelFromHttpStatusCode)(l);(0,t.addBreadcrumb)({category:"http",data:{status_code:l,url:(0,u.getSanitizedUrlString)(p),"http.method":o.method||"GET",...p.search?{"http.query":p.search}:{},...p.hash?{"http.fragment":p.hash}:{}},type:"http",level:b},{event:"response",request:o,response:c})}},2457,[2354,2417,2343,2458]);
931__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t.host||"",o=/^(.*):(\d+)$/.exec(n),u=o?o[1]:n,s=t.port??(o?Number(o[2]):void 0);return{method:t.method,port:s,protocol:t.protocol,host:t.host,hostname:u,path:t.path,headers:t.getHeaders()}}function n(t){try{return String(o(t))}catch{return""}}function o(t){const n=t.protocol||"http:",o=t.headers?.host&&String(t.headers?.host)||t.hostname||t.host||"",u=!t.port||80===t.port||443===t.port||/^(.*):(\d+)$/.test(o)?"":`:${t.port}`,s=t.path?t.path:"/",c=`${n}//${o}${u}`;return new URL(s.startsWith("//")?`${c}${s}`:s,c)}function u(o){return String(n(t(o)))}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getRequestOptions",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getRequestUrl",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getRequestUrlFromClientRequest",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getRequestUrlObject",{enumerable:!0,get:function(){return o}})},2458,[]);
932__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getOutgoingRequestSpanData",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"setIncomingResponseSpanData",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(s){const p=(0,o.getRequestUrlFromClientRequest)(s),[u,c]=(0,n.getHttpSpanDetail
932sFromUrlObject)((0,n.parseStringToURLObject)(p),"client","auto.http.client",s),h=s.getHeader("user-agent");return{name:u,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client","otel.kind":"CLIENT","http.url":p,"http.method":s.method,"http.target":s.path||"/","net.peer.name":s.host,"http.host":s.getHeader("host"),...h?{"user_agent.original":h}:{},...c},onlyIfParent:!0}}function p(t,n){const{statusCode:o,statusMessage:s,httpVersion:p,socket:h}=t,l="QUIC"!==p?.toUpperCase()?"ip_tcp":"ip_udp";n.setAttributes({"http.response.status_code":o,"network.protocol.version":p,"http.flavor":p,"network.transport":l,"net.transport":l,"http.status_text":s?.toUpperCase(),"http.status_code":o,...c(t),...u(h)})}function u(t){if(!t)return{};const{remoteAddress:n,remotePort:o}=t;return{"network.peer.address":n,"network.peer.port":o,"net.peer.ip":n,"net.peer.port":o}}function c(t){const{headers:n}=t,o=n["content-length"],s=o?parseInt(String(o),10):-1,p=n["content-encoding"];return s>=0?p&&"identity"!==p?{"http.response_content_length":s}:{"http.response_content_length_uncompressed":s}:{}}},2459,[2274,2343,2458]);
933__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"injectTracePropagationHeaders",{enumerable:!0,get:function(){return _}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),U=r(d[8]);function _(_,E){const b=(0,p.getRequestUrlFromClientRequest)(_),l=(0,e.getClient)()?.getOptions(),{tracePropagationTargets:B,propagateTraceparent:D}=l??{};if(!(0,c.shouldPropagateTraceForUrl)(b,B,E))return;if(!!_.getHeader("sentry-trace"))return;const f=(0,s.getTraceData)({propagateTraceparent:D});if(!f)return;const{"sentry-trace":G,baggage:I,traceparent:L}=f;if(G)try{_.setHeader("sentry-trace",G),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added sentry-trace header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set sentry-trace header:",(0,o.isError)(e)?e.message:"Unknown error")}if(L&&!_.getHeader("traceparent"))try{_.setHeader("traceparent",L),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added traceparent header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set traceparent header:",(0,o.isError)(e)?e.message:"Unknown error")}if(I){const e=(0,U.mergeBaggageHeaders)(_.getHeader("baggage"),I);if(e)try{_.setHeader("baggage",e),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added baggage header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set baggage header:",(0,o.isError)(e)?e.message:"Unknown error")}}}},2460,[2273,2244,2248,2261,2348,2349,2455,2458,2278]);
934__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"doubleWrapWarning",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"warning",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);const o=t=>"function"==typeof t.__unwrap,s="Double-wrapped http.client detected. Either disable spans in Sentry.httpIntegration, or disable the OpenTelemetry HTTP instrumentation. See: https://docs.sentry.io/platforms/javascript/guides/express/opentelemetry/custom-setup/#custom-http-instrumentation";let u=!1;const p=t.DEBUG_BUILD?t=>{u||(o(t.request)||o(t.get))&&(u=!0,n.debug.warn(s))}:()=>{}},2461,[2244,2248]);
935__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getHttpServerSubscriptions",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"instrumentServer",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"isStaticAssetRequest",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]),u=r(d[5]),c=r(d[6]),l=r(d[7]),S=r(d[8]),h=r(d[9]),_=r(d[10]),R=r(d[11]),f=r(d[12]),T=r(d[13]),E=r(d[14]);const A="Http.Server",y="Http.SentryServerSpans",C=new WeakMap,I=Symbol.for("sentry_http_server_instrumented");function b(t){return!t[I]&&(t[I]=!0)}function q(t,p){const f=p.emit;if(f===C.get(p))return;const T=new Proxy(f,{apply(p,f,T){const[E,...y]=T;if("request"!==E)return p.apply(f,T);const C=(0,o.getClient)(),[I,q]=y;if(!C||!b(I))return p.apply(f,T);n.DEBUG_BUILD&&s.debug.log(A,"Handling incoming request");const U=(0,o.getIsolationScope)().clone();U.setClient(C);const v=I.socket?.remoteAddress,N=I.url||"/",O=(0,u.httpRequestToRequestData)(I),{maxRequestBodySize:P="medium",ignoreRequestBody:D,sessions:w=!0,sessionFlushingDelayMS:M=6e4}=t;"none"===P||D?.(N,I)||(0,c.patchRequestToCaptureBody)(I,U,P,A),U.setSDKProcessingMetadata({normalizedRequest:O,ipAddress:v});const x=`${(I.method||"GET").toUpperCase()} ${(0,l.stripUrlQueryAndFragment)(N)}`;return U.setTransactionName(x),w&&(0,S.recordRequestSession)(C,{requestIsolationScope:U,response:q,sessionFlushingDelayMS:M??6e4}),(0,o.withIsolationScope)(U,()=>{const n=O.headers?.["sentry-trace"],s=O.headers?.baggage,u=Array.isArray(n)?n[0]:n;return(0,_.continueTrace)({sentryTrace:u,baggage:Array.isArray(s)?s[0]:s},()=>{const n=(0,o.getCurrentScope)().getPropagationContext();n.propagationSpanId=(0,h.generateSpanId)(),u||(n.traceId=(0,h.generateTraceId)(),n.sampleRand=(0,R.safeMathRandom)()),q.once("close",()=>{U.setContext("response",{status_code:q.statusCode})});const s=t.wrapServerEmitRequest;let c=!1;return s?s(I,q,O,()=>{c=p.apply(f,T)}):c=p.apply(f,T),c})})}});C.set(p,T),p.emit=T}function U(n){const s=n.wrapServerEmitRequest,u=v(n),c={...n,wrapServerEmitRequest(t,c,l,S){const h=(0,o.getClient)()?.getOptions();n.spans??(!!h&&(0,p.hasSpansEnabled)(h))?u(t,c,l,S):s?s(t,c,l,S):S()}};return{[t.HTTP_ON_SERVER_REQUEST]:t=>{const{server:n}=t;q(c,n)}}}function v(t){const{wrapServerEmitRequest:p,ignoreIncomingRequests:c,ignoreStaticAssets:S=!0,onSpanCreated:h,errorMonitor:R="error",onSpanEnd:A}=t;return(t,C,I,b)=>{return"undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__?p?p(t,C,I,q):q():b();function q(){const p=(0,o.getIsolationScope)().getClient();if(!p)return b();if(N(t,{ignoreStaticAssets:S,ignoreIncomingRequests:c}))return n.DEBUG_BUILD&&s.debug.log(y,"Skipping span creation for incoming request",t.url),b();const q=I.url||t.url||"/",U=(0,l.parseStringToURLObject)(q),v=U?U.pathname:(0,l.stripUrlQueryAndFragment)(q),O=(t.method||"GET").toUpperCase(),D=`${O} ${v}`,w=t.headers,M=w["user-agent"],x=w["x-forwarded-for"],B=t.httpVersion,H=w.host,j=H?.replace(/^(.*)(:[0-9]{1,5}
935)/,"$1")||"localhost",$=q.startsWith("https")?"https":"http",{socket:G}=t,{localAddress:F,localPort:k,remoteAddress:Q,remotePort:Y}=G??{};return(0,_.startSpanManual)({name:D,kind:E.SPAN_KIND.SERVER,attributes:{[f.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.server",[f.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.server",[f.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url","http.route":v,"otel.kind":"SERVER","net.host.ip":F,"net.host.port":k,"net.peer.ip":Q,"net.peer.port":Y,"sentry.http.prefetch":(V=t,"1"===V.headers["next-router-prefetch"]||void 0),"http.url":q,"http.method":O,"http.target":U?`${U.pathname}${U.search}`:v,"http.host":H,"net.host.name":j,"http.client_ip":"string"==typeof x?x.split(",")[0]:void 0,"http.user_agent":M,"http.scheme":$,"http.flavor":B,"net.transport":"QUIC"===B?.toUpperCase()?"ip_udp":"ip_tcp",...P(t),...(0,u.httpHeadersToSpanAttributes)(I.headers||{},p.getDataCollectionOptions())}},n=>{h?.(n,t,C);let s=!1;function o(o){s||(s=!0,n.setAttributes({"http.status_text":C.statusMessage?.toUpperCase(),"http.response.status_code":C.statusCode,"http.status_code":C.statusCode,...(0,u.httpHeadersToSpanAttributes)((0,u.headersToDict)(C.headers),p?.getDataCollectionOptions()??!1,"response")}),n.setStatus(o),A?.(n,t,C),n.end())}C.once("close",()=>{o((0,T.getSpanStatusFromHttpCode)(C.statusCode))}),C.once(R,()=>{const t=(0,T.getSpanStatusFromHttpCode)(C.statusCode);o(t.code===T.SPAN_STATUS_ERROR?t:{code:T.SPAN_STATUS_ERROR})}),b()});var V}}}function N(t,{ignoreStaticAssets:n,ignoreIncomingRequests:s}){const o=t.url,p=t.method?.toUpperCase();return"OPTIONS"===p||"HEAD"===p||!o||(!(!n||"GET"!==p||!O(o))||!!s?.(o,t))}function O(t){const n=(0,l.stripUrlQueryAndFragment)(t);return!!n.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)||!!n.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)}function P(t){const{headers:n}=t,s=n["content-length"],o=s?parseInt(String(s),10):-1,p=n["content-encoding"];return o>=0?p&&"identity"!==p?{"http.request_content_length":o}:{"http.request_content_length_uncompressed":o}:{}}},2462,[2455,2244,2248,2273,2282,2352,2463,2343,2464,2268,2294,2262,2274,2275,2353]);
936__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchRequestToCaptureBody",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);function u(u,c,f,s){let y=0;const l=[];o.DEBUG_BUILD&&t.debug.log(s,"Patching request.on");const p=new WeakMap,b=(0,n.getMaxBodyByteLength)(f);try{u.on=u.addListener=new Proxy(u.on,{apply:(n,u,c)=>{const[f,B,...h]=c;if("data"===f){o.DEBUG_BUILD&&t.debug.log(s,`Handling request.on("data") with maximum body size of ${b}b`);const c=new Proxy(B,{apply:(n,u,c)=>{try{const n=c[0],u=Buffer.from(n);y<b?(l.push(u),y+=u.byteLength):o.DEBUG_BUILD&&t.debug.log(s,`Dropping request body chunk because maximum body length of ${b}b is exceeded.`)}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Encountered error while storing body chunk.")}return Reflect.apply(n,u,c)}});return p.set(B,c),Reflect.apply(n,u,[f,c,...h])}return Reflect.apply(n,u,c)}}),u.off=u.removeListener=new Proxy(u.off,{apply:(t,o,n)=>{const[,u]=n,c=p.get(u);if(c){p.delete(u);const f=n.slice();return f[1]=c,Reflect.apply(t,o,f)}return Reflect.apply(t,o,n)}}),u.on("end",()=>{try{const t=Buffer.concat(l).toString("utf-8");if(t){const o=Buffer.byteLength(t,"utf-8")>b?`${Buffer.from(t).subarray(0,b-3).toString("utf-8")}...`:t;c.setSDKProcessingMetadata({normalizedRequest:{data:o}})}}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Error building captured request body",n)}})}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Error patching request to capture body",n)}}},2463,[2248,2244,2352]);
937__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"recordRequestSession",{enumerable:!0,get:function(){return c}});
937var s=r(d[0]),t=r(d[1]),o=r(d[2]),n=r(d[3]);const u=new WeakMap;function c(c,{requestIsolationScope:l,response:f,sessionFlushingDelayMS:D}){l.setSDKProcessingMetadata({requestSession:{status:"ok"}}),f.once("close",()=>{const f=l.getScopeData().sdkProcessingMetadata.requestSession;if(c&&f){t.DEBUG_BUILD&&s.debug.log(`Recorded request session with status: ${f.status}`);const l=new Date((0,o.safeDateNow)());l.setSeconds(0,0);const S=l.toISOString(),h=u.get(c),U=h?.[S]||{exited:0,crashed:0,errored:0};if(U[{ok:"exited",crashed:"crashed",errored:"errored"}[f.status]]++,h)h[S]=U;else{t.DEBUG_BUILD&&s.debug.log("Opened new request session aggregate.");const o={[S]:U};u.set(c,o);const l=()=>{clearTimeout(h),f(),u.delete(c);const s=Object.entries(o).map(([s,t])=>({started:s,exited:t.exited,errored:t.errored,crashed:t.crashed}));c.sendSession({aggregates:s})},f=c.on("flush",()=>{t.DEBUG_BUILD&&s.debug.log("Sending request session aggregate due to client flush"),l()}),h=setTimeout(()=>{t.DEBUG_BUILD&&s.debug.log("Sending request session aggregate due to flushing schedule"),l()},D);(0,n.safeUnref)(h)}}})}},2464,[2248,2244,2262,2307]);
938__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getComponentName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getLocationHref",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"htmlTreeAsString",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=r(d[1]).GLOBAL_OBJ,o=80;function s(t,n={}){if(!t)return"<unknown>";try{let s=t;const i=5,l=[];let f=0,c=0;const p=" > ",y=p.length;let h;const b=Array.isArray(n)?n:n.keyAttrs,A=!Array.isArray(n)&&n.maxStringLength||o;for(;s&&f++<i&&(h=u(s,b),!("html"===h||f>1&&c+l.length*y+h.length>=A));)l.push(h),c+=h.length,s=s.parentNode;return l.reverse().join(p)}catch{return"<unknown>"}}function u(o,s){const u=o,i=[];if(!u?.tagName)return"";if(n.HTMLElement&&u instanceof HTMLElement&&u.dataset){if(u.dataset.sentryComponent)return u.dataset.sentryComponent;if(u.dataset.sentryElement)return u.dataset.sentryElement}i.push(u.tagName.toLowerCase());const l=s?.length?s.filter(t=>u.getAttribute(t)).map(t=>[t,u.getAttribute(t)]):null;if(l?.length)l.forEach(t=>{i.push(`[${t[0]}="${t[1]}"]`)});else{u.id&&i.push(`#${u.id}`);const n=u.className;if(n&&(0,t.isString)(n)){const t=n.split(/\s+/);for(const n of t)i.push(`.${n}`)}}for(const t of["aria-label","type","name","title","alt"]){const n=u.getAttribute(t);n&&i.push(`[${t}="${n}"]`)}return i.join("")}function i(){try{return n.document.location.href}catch{return""}}function l(t,o=5){if(!n.HTMLElement)return null;let s=t;for(let t=0;t<o;t++){if(!s)return null;if(s instanceof HTMLElement){if(s.dataset.sentryComponent)return s.dataset.sentryComponent;if(s.dataset.sentryElement)return s.dataset.sentryElement}s=s.parentNode}return null}},2465,[2261,2246]);
939__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentEmbeddingMethod",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return I}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),E=r(d[3]),_=r(d[4]),u=r(d[5]);function T(n){const t=n.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}function c(n){const o=n??{},_={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:u.LANGCHAIN_ORIGIN,[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:E.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,[E.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"embeddings",[E.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:o.model??"unknown"};return _[E.GEN_AI_SYSTEM_ATTRIBUTE]=T(o),"dimensions"in o&&(_[E.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=o.dimensions),"encodingFormat"in o&&(_[E.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=o.encodingFormat),_}function s(t,u={}){const{recordInputs:T}=(0,_.resolveAIRecordingOptions)(u);return new Proxy(t,{apply(t,_,u){const s=c(_),I=s[E.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown";if(T){const n=u[0];null!=n&&(s[E.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]="string"==typeof n?n:JSON.stringify(n))}return(0,o.startSpan)({name:`embeddings ${I}`,op:E.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,attributes:s},()=>Reflect.apply(t,_,u).then(void 0,t=>{throw(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),t}))}})}function I(n,t){const o=n;return"function"==typeof o.embedQuery&&(o.embedQuery=s(o.embedQuery,t)),"function"==typeof o.embedDocuments&&(o.embedDocuments=s(o.embedDocuments,t)),n}},2466,[2301,2274,2294,2389,2388,2408]);
940__d(function(g,_r,_i,a,m,_e,_d){"use strict";
940Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"replayCanvasIntegration",{enumerable:!0,get:function(){return q}});var t=_r(_d[0]),e=Object.defineProperty,n=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,r=(t,e,r)=>n(t,"symbol"!=typeof e?e+"":e,r);class s{constructor(){r(this,"idNodeMap",new Map),r(this,"nodeMetaMap",new WeakMap)}getId(t){if(!t)return-1;const e=this.getMeta(t)?.id;return e??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function o(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function i(t,e,n=1/0,r=0){return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:i(t.parentNode,e,n,r+1):-1}function c(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"==typeof t){if(r.matches(`.${t}`))return!0}else if(o(r,t))return!0;return!(!e||!r.matches(e))}catch{return!1}}}const h="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let u={map:{},getId:()=>(console.error(h),-1),getNode:()=>(console.error(h),null),removeNodeFromMap(){console.error(h)},has:()=>(console.error(h),!1),reset(){console.error(h)}};function p(t,e,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,r?n:{set(t){v(()=>{n.set.call(this,t)},0),o&&o.set&&o.set.call(this,t)}}),()=>p(t,e,o||{},!0)}function d(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=s,()=>{t[e]=r}}catch{return()=>{}}}function f(t){if(!t)return null;try{return t.nodeType===t.ELEMENT_NODE?t:t.parentElement}catch(t){return null}}function l(t,e,n,r,s){if(!t)return!1;const o=f(t);if(!o)return!1;const h=c(e,n);if(!s){const t=r&&o.matches(r);return h(o)&&!t}const u=i(o,h);let p=-1;return!(u<0)&&(r&&(p=i(o,c(null,r))),u>-1&&p<0||u<p)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(u=new Proxy(u,{get:(t,e,n)=>("map"===e&&console.error(h),Reflect.get(t,e,n))})),Date.now().toString();const y={};function w(t){const e=y[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const s=e.contentWindow;s&&s[t]&&(r=s[t]),n.head.removeChild(e)}catch(t){}return y[t]=r.bind(window)}function b(...t){return w("requestAnimationFrame")(...t)}function v(...t){return w("setTimeout")(...t)}var M=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(M||{});let C;const S=t=>{if(!C)return t;return(...e)=>{try{return t(...e)}catch(t){if(C&&!0===C(t))return()=>{};throw t}}};for(var L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k="undefined"==typeof Uint8Array?[]:new Uint8Array(256),I=0;I<64;I++)k[L.charCodeAt(I)]=I;var O=function(t){var e,n=new Uint8Array(t),r=n.length,s="";for(e=0;e<r;e+=3)s+=L[n[e]>>2],s+=L[(3&n[e])<<4|n[e+1]>>4],s+=L[(15&n[e+1])<<2|n[e+2]>>6],s+=L[63&n[e+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const A=new Map;function W(t,e){let n=A.get(t);return n||(n=new Map,A.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}const x=(t,e,n)=>{if(!t||!P(t,e)&&"object"!=typeof t)return;const r=W(n,t.constructor.name);let s=r.indexOf(t);return-1===s&&(s=r.length,r.push(t)),s};function R(t,e,n){if(t instanceof Array)return t.map(t=>R(t,e,n));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){return{rr_type:t.constructor.name,args:[Object.values(t)]}}if(t instanceof ArrayBuffer){return{rr_type:t.constructor.name,base64:O(t)}}if(t instanceof DataView){return{rr_type:t.constructor.name,args:[R(t.buffer,e,n),t.byteOffset,t.byteLength]}}if(t instanceof HTMLImageElement){const e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}if(t instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:t.toDataURL()}}if(t instanceof ImageData){return{rr_type:t.constructor.name,args:[R(t.data,e,
940n),t.width,t.height]}}if(P(t,e)||"object"==typeof t){return{rr_type:t.constructor.name,index:x(t,e,n)}}return t}const _=(t,e,n)=>t.map(t=>R(t,e,n)),P=(t,e)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(t=>"function"==typeof e[t]);return Boolean(n.find(n=>t instanceof e[n]))};function E(t,e,n,r,s){const o=[],i=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const c of i)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[c])continue;const i=d(e.CanvasRenderingContext2D.prototype,c,function(o){return function(...i){return l(this.canvas,n,r,s,!0)||v(()=>{const n=_(i,e,this);t(this.canvas,{type:M["2D"],property:c,args:n})},0),o.apply(this,i)}});o.push(i)}catch{const n=p(e.CanvasRenderingContext2D.prototype,c,{set(e){t(this.canvas,{type:M["2D"],property:c,args:[e],setter:!0})}});o.push(n)}return()=>{o.forEach(t=>t())}}function N(t){return"experimental-webgl"===t?"webgl":t}function D(t,e,n,r,s){const o=[];try{const i=d(t.HTMLCanvasElement.prototype,"getContext",function(t){return function(o,...i){if(!l(this,e,n,r,!0)){const t=N(o);if("__context"in this||(this.__context=t),s&&["webgl","webgl2"].includes(t))if(i[0]&&"object"==typeof i[0]){const t=i[0];t.preserveDrawingBuffer||(t.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return t.apply(this,[o,...i])}});o.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(t=>t())}}function F(t,e,n,r,s,o,i,c){const h=[],u=Object.getOwnPropertyNames(t);for(const i of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof t[i])continue;const u=d(t,i,function(t){return function(...h){const u=t.apply(this,h);if(x(u,c,this),"tagName"in this.canvas&&!l(this.canvas,r,s,o,!0)){const t=_(h,c,this),r={type:e,property:i,args:t};n(this.canvas,r)}return u}});h.push(u)}catch{const r=p(t,i,{set(t){n(this.canvas,{type:e,property:i,args:[t],setter:!0})}});h.push(r)}return h}function B(t,e,n,r,s,o){const i=[];return i.push(...F(e.WebGLRenderingContext.prototype,M.WebGL,t,n,r,s,0,e)),void 0!==e.WebGL2RenderingContext&&i.push(...F(e.WebGL2RenderingContext.prototype,M.WebGL2,t,n,r,s,0,e)),()=>{i.forEach(t=>t())}}function T(){const t=new Blob(["for(var e=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",t=\"undefined\"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s=\"\";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+\"=\":r%3==1&&(s=s.substring(0,s.length-2)+\"==\"),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!(\"OffscreenCanvas\"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+\"-\"+t;if(\"OffscreenCanvas\"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext(\"2d\");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return\"\"}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext(\"bitmaprenderer\"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:\"low\"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};"]);return URL.createObjectURL(t)}class U{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(t,e)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)};const{enableManualSnapshot:e,sampling:n="all",win:r,recordCanvas:s,errorHandler:o}=t;t.sampling=n,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,o&&(C=o),(s&&"number"==typeof n||e)&&(this.worker=this.initFPSWorker()),this.addWindow(r),e||S(()=>{s&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),s&&"number"==typeof n&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEac
940h(t=>{try{t()}catch(t){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:e="all",blockClass:n,blockSelector:r,unblockSelector:s,recordCanvas:o,enableManualSnapshot:i}=this.options;if(!this.windowsSet.has(t)){if(i)return this.windowsSet.add(t),void this.windows.push(new WeakRef(t));S(()=>{if(o&&"all"===e&&this.initCanvasMutationObserver(t,n,r,s),o&&"number"==typeof e){const e=D(t,n,r,s,!0);this.restoreHandlers.push(()=>{e()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,e){e?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,t):b(e=>this.takeSnapshot(e,!0,t))}initFPSWorker(){const t=new Worker(T());return t.onmessage=t=>{const e=t.data,{id:n}=e;if(this.snapshotInProgressMap.set(n,!1),!("base64"in e))return;const{base64:r,type:s,width:o,height:i}=e;this.mutationCb({id:n,type:M["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:s}]},0,0,o,i]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const e=n=>{this.takeSnapshot(n,!1),t=b(e)};t=b(e),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,e,n,r){const s=D(t,e,n,r,!1),o=E(this.processMutation.bind(this),t,e,n,r),i=B(this.processMutation.bind(this),t,e,n,r,this.mirror);this.restoreHandlers.push(()=>{s(),o(),i()})}getCanvasElements(t,e,n){const r=[],s=s=>{s.querySelectorAll("canvas").forEach(s=>{l(s,t,e,n,!0)||r.push(s)})};for(const t of this.windows){const e=t.deref();let n;try{n=e&&e.document}catch{}n&&s(n)}for(const t of this.shadowDoms){const e=t.deref();e&&s(e)}return r}takeSnapshot(t,e,n){const{sampling:r,blockClass:s,blockSelector:o,unblockSelector:i,dataURLOptions:c,maxCanvasSize:h}=this.options,u=1e3/("all"===r?2:r||2);if(this.lastSnapshotTime&&t-this.lastSnapshotTime<u)return!1;this.lastSnapshotTime=t;return(n?[n]:this.getCanvasElements(s,o,i)).forEach(t=>{const n=this.mirror.getId(t);if(this.mirror.hasNode(t)&&t.width&&t.height&&!this.snapshotInProgressMap.get(n)){if(this.snapshotInProgressMap.set(n,!0),!e&&["webgl","webgl2"].includes(t.__context)){const e=t.getContext(t.__context);!1===e?.getContextAttributes()?.preserveDrawingBuffer&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then(e=>{this.worker?.postMessage({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:c,maxCanvasSize:h},[e])}).catch(t=>{S(()=>{throw this.snapshotInProgressMap.delete(n),t})()})}}),!0}startPendingCanvasMutationFlusher(){b(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,b(t)};b(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,e)=>{const n=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,n)}),b(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||-1===e)return;const r=n.map(t=>{const{type:e,...n}=t;return n}),{type:s}=n[0];this.mutationCb({id:e,type:s,commands:r}),this.pendingCanvasMutations.delete(t)}}try{if(2!==Array.from([1],t=>2*t)[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=t.contentWindow?.Array.from||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}var G,z;new s,(z=G||(G={}))[z.NotStarted=0]="NotStarted",z[z.Running=1]="Running",z[z.Stopped=2]="Stopped";const j={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},H=1280,q=(0,t.defineIntegration)((t={})=>{const[e,n]=t.maxCanvasSize||[],r={quality:t.quality||"medium",enableManualSnapshot:t.enableManualSnapshot,maxCanvasSize:[e?Math.min(e,H):H,n?Math.min(n,H):H]};let s,o;const i=new Promise(t=>o=t);return{name:"ReplayCanvas",getOptions(){const{quality:t,enableManualSnapshot:e,maxCanvasSize:n}=r;return{enableManualSnapshot:e,recordCanvas:!0,getCanvasManager:t=>
940{const r=new U({...t,enableManualSnapshot:e,maxCanvasSize:n,errorHandler:t=>{try{"object"==typeof t&&(t.__rrweb__=!0)}catch{}}});return s=r,o(r),r},...j[t]||j.medium}},async snapshot(t,e){(s||await i).snapshot(t,e)}}})},2467,[2468]);
941__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return t.registerSpanErrorInstrumentation}}),Object.defineProperty(_e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.getCapturedScopesOnSpan}}),Object.defineProperty(_e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return n.markSpanForOtelSourceInference}}),Object.defineProperty(_e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.setCapturedScopesOnSpan}}),Object.defineProperty(_e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return n.spanShouldInferOtelSource}}),Object.defineProperty(_e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return o.TRACING_DEFAULTS}}),Object.defineProperty(_e,"startIdleSpan",{enumerable:!0,get:function(){return o.startIdleSpan}}),Object.defineProperty(_e,"SentrySpan",{enumerable:!0,get:function(){return u.SentrySpan}}),Object.defineProperty(_e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return c.SentryNonRecordingSpan}}),Object.defineProperty(_e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return b.SPAN_STATUS_ERROR}}),Object.defineProperty(_e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return b.SPAN_STATUS_OK}}),Object.defineProperty(_e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return b.SPAN_STATUS_UNSET}}),Object.defineProperty(_e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return b.getSpanStatusFromHttpCode}}),Object.defineProperty(_e,"setHttpStatus",{enumerable:!0,get:function(){return b.setHttpStatus}}),Object.defineProperty(_e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return f.SUPPRESS_TRACING_KEY}}),Object.defineProperty(_e,"continueTrace",{enumerable:!0,get:function(){return f.continueTrace}}),Object.defineProperty(_e,"isTracingSuppressed",{enumerable:!0,get:function(){return f.isTracingSuppressed}}),Object.defineProperty(_e,"startInactiveSpan",{enumerable:!0,get:function(){return f.startInactiveSpan}}),Object.defineProperty(_e,"startNewTrace",{enumerable:!0,get:function(){return f.startNewTrace}}),Object.defineProperty(_e,"startSpan",{enumerable:!0,get:function(){return f.startSpan}}),Object.defineProperty(_e,"startSpanManual",{enumerable:!0,get:function(){return f.startSpanManual}}),Object.defineProperty(_e,"suppressTracing",{enumerable:!0,get:function(){return f.suppressTracing}}),Object.defineProperty(_e,"withActiveSpan",{enumerable:!0,get:function(){return f.withActiveSpan}}),Object.defineProperty(_e,"bindScopeToEmitter",{enumerable:!0,get:function(){return p.bindScopeToEmitter}}),Object.defineProperty(_e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromClient}}),Object.defineProperty(_e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromScope}}),Object.defineProperty(_e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromSpan}}),Object.defineProperty(_e,"spanToBaggageHeader",{enumerable:!0,get:function(){return l.spanToBaggageHeader}}),Object.defineProperty(_e,"setMeasurement",{enumerable:!0,get:function(){return d.setMeasurement}}),Object.defineProperty(_e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return d.timedEventsToMeasurements}}),Object.defineProperty(_e,"sampleSpan",{enumerable:!0,get:function(){return s.sampleSpan}}),Object.defineProperty(_e,"logSpanEnd",{enumerable:!0,get:function(){return T.logSpanEnd}}),Object.defineProperty(_e,"logSpanStart",{enumerable:!0,get:function(){return T.logSpanStart}}),Object.defineProperty(_e,"captureSpan",{enumerable:!0,get:function(){return E.captureSpan}}),Object.defineProperty(_e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return E.safeSetSpanJSONAttributes}}),Object.defineProperty(_e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return O.GEN_AI_CONVERSATION_ID_ATTRIBUTE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_HIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_KEY}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_PROFILE_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_OP}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_URL_FULL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_EMAIL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_USERNAME}}),Object.defineProperty(_e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return O.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE}}),Object.defineProperty(_e,"createEventEnvelope",{enumerable:!0,get:function(){return P.createEventEnvelope}}),Object.defineProperty(_e,"createSessionEnvelope",{enumerable:!0,get:function(){return P.createSessionEnvelope}}),Object.defineProperty(_e,"createSpanEnvelope",{enumerable:!0,get:function(){return P.createSpanEnvelope}}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return S.addEventProcessor}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return S.captureCheckIn}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return S.captureEvent}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return S.captureException}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return S.captureMessage}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return S.captureSession}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return S.close}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return S.endSession}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return S.flush}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return S.isEnabled}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return S.isInitialized}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return S.lastEventId}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return S.setAttribute}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return S.setAttributes}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return S.setContext}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return S.setConversationId}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return S.setExtra}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return S.setExtras}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return S.setTag}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return S.setTags}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return S.setUser}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return S.startSession}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return S.withMonitor}}),Object.defineProperty(_e,"getClient",{enumerable:!0,get:function(){return y.getClient}}),Object.defineProperty(_e,"getCurrentScope",{enumerable:!0,get:function(){return y.getCurrentScope}}),Object.defineProperty(_e,"getExternalPropagationContext",{enumerable:!0,get:function(){return y.getExternalPropagationContext}}),Object.defineProperty(_e,"getGlobalScope",{enumerable:!0,get:function(){return y.getGlobalScope}}),Object.defineProperty(_e,"getIsolationScope",{enumerable:!0,get:function(){return y.getIsolationScope}}),Object.defineProperty(_e,"getTraceContextFromScope",{enumerable:!0,get:function(){return y.getTraceContextFromScope}}),Object.defineProperty(_e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return y.hasExternalPropagationContext}}),Object.defineProperty(_e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return y.registerExternalPropagationContext}}),Object.defineProperty(_e,"withIsolationScope",{enumerable:!0,get:function(){return y.withIsolationScope}}),Object.defineProperty(_e,"withScope",{enumerable:!0,get:function(){return y.withScope}}),Object.defineProperty(_e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return _.getDefaultCurrentScope}}),Object.defineProperty(_e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return _.getDefaultIsolationScope}}),Object.defineProperty(_e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return j.getAsyncContextStrategy}}),Object.defineProperty(_e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return j.setAsyncContextStrategy}}),Object.defineProperty(_e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return I._INTERNAL_createTracingChannelBinding}}
941),Object.defineProperty(_e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return I.waitForTracingChannelBinding}}),Object.defineProperty(_e,"getGlobalSingleton",{enumerable:!0,get:function(){return N.getGlobalSingleton}}),Object.defineProperty(_e,"getMainCarrier",{enumerable:!0,get:function(){return N.getMainCarrier}}),Object.defineProperty(_e,"closeSession",{enumerable:!0,get:function(){return A.closeSession}}),Object.defineProperty(_e,"makeSession",{enumerable:!0,get:function(){return A.makeSession}}),Object.defineProperty(_e,"updateSession",{enumerable:!0,get:function(){return A.updateSession}}),Object.defineProperty(_e,"Scope",{enumerable:!0,get:function(){return R.Scope}}),Object.defineProperty(_e,"notifyEventProcessors",{enumerable:!0,get:function(){return C.notifyEventProcessors}}),Object.defineProperty(_e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return M.SENTRY_API_VERSION}}),Object.defineProperty(_e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return M.getEnvelopeEndpointWithUrlEncodedAuth}}),Object.defineProperty(_e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return M.getReportDialogEndpoint}}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return U.Client}}),Object.defineProperty(_e,"initAndBind",{enumerable:!0,get:function(){return L.initAndBind}}),Object.defineProperty(_e,"setCurrentClient",{enumerable:!0,get:function(){return L.setCurrentClient}}),Object.defineProperty(_e,"createTransport",{enumerable:!0,get:function(){return F.createTransport}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return v.makeOfflineTransport}}),Object.defineProperty(_e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return h.MULTIPLEXED_TRANSPORT_EXTRA_KEY}}),Object.defineProperty(_e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return h.makeMultiplexedTransport}}),Object.defineProperty(_e,"addIntegration",{enumerable:!0,get:function(){return B.addIntegration}}),Object.defineProperty(_e,"defineIntegration",{enumerable:!0,get:function(){return B.defineIntegration}}),Object.defineProperty(_e,"extendIntegration",{enumerable:!0,get:function(){return B.extendIntegration}}),Object.defineProperty(_e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return B.getIntegrationsToSetup}}),Object.defineProperty(_e,"installedIntegrations",{enumerable:!0,get:function(){return B.installedIntegrations}}),Object.defineProperty(_e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return H._INTERNAL_clearAiProviderSkips}}),Object.defineProperty(_e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return H._INTERNAL_shouldSkipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return H._INTERNAL_skipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_filterKeyValueData",{enumerable:!0,get:function(){return D.filterKeyValueData}}),Object.defineProperty(_e,"_INTERNAL_filterCookies",{enumerable:!0,get:function(){return G.filterCookies}}),Object.defineProperty(_e,"_INTERNAL_filterQueryParams",{enumerable:!0,get:function(){return x.filterQueryParams}}),Object.defineProperty(_e,"envToBool",{enumerable:!0,get:function(){return k.envToBool}}),Object.defineProperty(_e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return Y.applyScopeDataToEvent}}),Object.defineProperty(_e,"getCombinedScopeData",{enumerable:!0,get:function(){return Y.getCombinedScopeData}}),Object.defineProperty(_e,"mergeScopeData",{enumerable:!0,get:function(){return Y.mergeScopeData}}),Object.defineProperty(_e,"prepareEvent",{enumerable:!0,get:function(){return w.prepareEvent}}),Object.defineProperty(_e,"createCheckInEnvelope",{enumerable:!0,get:function(){return q.createCheckInEnvelope}}),Object.defineProperty(_e,"hasSpansEnabled",{enumerable:!0,get:function(){return K.hasSpansEnabled}}),Object.defineProperty(_e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return z.isStreamedBeforeSendSpanCallback}}),Object.defineProperty(_e,"withStreamedSpan",{enumerable:!0,get:function(){return z.withStreamedSpan}}),Object.defineProperty(_e,"isSentryRequestUrl",{enumerable:!0,get:function(){return V.isSentryRequestUrl}}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return W.handleCallbackErrors}}),Object.defineProperty(_e,"fmt",{enumerable:!0,get:function(){return X.fmt}}),Object.defineProperty(_e,"parameterize",{enumerable:!0,get:function(){return X.parameterize}}),Object.defineProperty(_e,"handleTunnelRequest",{enumerable:!0,get:function(){return Q.handleTunnelRequest}}),Object.defineProperty(_e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return J.addAutoIpAddressToSession}}),Object.defineProperty(_e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return J.addAutoIpAddressToUser}}),Object.defineProperty(_e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return Z.INTERNAL_getSegmentSpan}}),Object.defineProperty(_e,"addChildSpanToSpan",{enumerable:!0,get:function(){return Z.addChildSpanToSpan}}),Object.defineProperty(_e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return Z.convertSpanLinksForEnvelope}}),Object.defineProperty(_e,"getActiveSpan",{enumerable:!0,get:function(){return Z.getActiveSpan}}),Object.defineProperty(_e,"getRootSpan",{enumerable:!0,get:function(){return Z.getRootSpan}}),Object.defineProperty(_e,"getSpanDescendants",{enumerable:!0,get:function(){return Z.getSpanDescendants}}),Object.defineProperty(_e,"getStatusMessage",{enumerable:!0,get:function(){return Z.getStatusMessage}}),Object.defineProperty(_e,"spanIsSampled",{enumerable:!0,get:function(){return Z.spanIsSampled}}),Object.defineProperty(_e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return Z.spanTimeInputToSeconds}}),Object.defineProperty(_e,"spanToJSON",{enumerable:!0,get:function(){return Z.spanToJSON}}),Object.defineProperty(_e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return Z.spanToStreamedSpanJSON}}),Object.defineProperty(_e,"spanToTraceContext",{enumerable:!0,get:function(){return Z.spanToTraceContext}}),Object.defineProperty(_e,"spanToTraceHeader",{enumerable:!0,get:function(){return Z.spanToTraceHeader}}),Object.defineProperty(_e,"updateSpanName",{enumerable:!0,get:function(){return Z.updateSpanName}}),Object.defineProperty(_e,"_INTERNAL_setSpanForScope",{enumerable:!0,get:function(){return $._setSpanForScope}}),Object.defineProperty(_e,"parseSampleRate",{enumerable:!0,get:function(){return ee.parseSampleRate}}),Object.defineProperty(_e,"applySdkMetadata",{enumerable:!0,get:function(){return te.applySdkMetadata}}),Object.defineProperty(_e,"getTraceData",{enumerable:!0,get:function(){return re.getTraceData}}),Object.defineProperty(_e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return ne.shouldPropagateTraceForUrl}}),Object.defineProperty(_e,"getTraceMetaTags",{enumerable:!0,get:function(){return oe.getTraceMetaTags}}),Object.defineProperty(_e,"debounce",{enumerable:!0,get:function(){return ue.debounce}}),Object.defineProperty(_e,"derefWeakRef",{enumerable:!0,get:function(){return ie.derefWeakRef}}),Object.defineProperty(_e,"makeWeakRef",{enumerable:!0,get:function(){return ie.makeWeakRef}}),Object.defineProperty(_e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return ae.shouldIgnoreSpan}}),Object.defineProperty(_e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return ce.MAX_BODY_BYTE_LENGTH}}),Object.defineProperty(_e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return ce.captureBodyFromWinterCGRequest}}),Object.defineProperty(_e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return ce.extractQueryParamsFromUrl}}
941),Object.defineProperty(_e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return ce.getMaxBodyByteLength}}),Object.defineProperty(_e,"headersToDict",{enumerable:!0,get:function(){return ce.headersToDict}}),Object.defineProperty(_e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return ce.httpHeadersToSpanAttributes}}),Object.defineProperty(_e,"httpRequestToRequestData",{enumerable:!0,get:function(){return ce.httpRequestToRequestData}}),Object.defineProperty(_e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return ce.winterCGHeadersToDict}}),Object.defineProperty(_e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return ce.winterCGRequestToRequestData}}),Object.defineProperty(_e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEFAULT_ENVIRONMENT}}),Object.defineProperty(_e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEV_ENVIRONMENT}}),Object.defineProperty(_e,"SPAN_KIND",{enumerable:!0,get:function(){return fe.SPAN_KIND}}),Object.defineProperty(_e,"spanKindToName",{enumerable:!0,get:function(){return fe.spanKindToName}}),Object.defineProperty(_e,"addBreadcrumb",{enumerable:!0,get:function(){return pe.addBreadcrumb}}),Object.defineProperty(_e,"functionToStringIntegration",{enumerable:!0,get:function(){return le.functionToStringIntegration}}),Object.defineProperty(_e,"eventFiltersIntegration",{enumerable:!0,get:function(){return de.eventFiltersIntegration}}),Object.defineProperty(_e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return de.inboundFiltersIntegration}}),Object.defineProperty(_e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return ge.linkedErrorsIntegration}}),Object.defineProperty(_e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return me.moduleMetadataIntegration}}),Object.defineProperty(_e,"requestDataIntegration",{enumerable:!0,get:function(){return se.requestDataIntegration}}),Object.defineProperty(_e,"captureConsoleIntegration",{enumerable:!0,get:function(){return Te.captureConsoleIntegration}}),Object.defineProperty(_e,"dedupeIntegration",{enumerable:!0,get:function(){return Ee.dedupeIntegration}}),Object.defineProperty(_e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return Oe.extraErrorDataIntegration}}),Object.defineProperty(_e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return Pe.rewriteFramesIntegration}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return Se.instrumentSupabaseClient}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return Se.supabaseIntegration}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return ye.zodErrorsIntegration}}),Object.defineProperty(_e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return je.thirdPartyErrorFilterIntegration}}),Object.defineProperty(_e,"consoleIntegration",{enumerable:!0,get:function(){return Ie.consoleIntegration}}),Object.defineProperty(_e,"featureFlagsIntegration",{enumerable:!0,get:function(){return Ne.featureFlagsIntegration}}),Object.defineProperty(_e,"growthbookIntegration",{enumerable:!0,get:function(){return Ae.growthbookIntegration}}),Object.defineProperty(_e,"conversationIdIntegration",{enumerable:!0,get:function(){return Re.conversationIdIntegration}}),Object.defineProperty(_e,"profiler",{enumerable:!0,get:function(){return Ce.profiler}}),Object.defineProperty(_e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return Me._INTERNAL_getTracingHeadersForFetchRequest}}),Object.defineProperty(_e,"instrumentFetchRequest",{enumerable:!0,get:function(){return Me.instrumentFetchRequest}}),Object.defineProperty(_e,"captureFeedback",{enumerable:!0,get:function(){return Ue.captureFeedback}}),Object.defineProperty(_e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureLog}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureSerializedLog}}),Object.defineProperty(_e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return Le._INTERNAL_flushLogsBuffer}}),Object.defineProperty(_e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return ve.consoleLoggingIntegration}}),Object.defineProperty(_e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return he._INTERNAL_captureMetric}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return he._INTERNAL_captureSerializedMetric}}),Object.defineProperty(_e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return he._INTERNAL_flushMetricsBuffer}}),Object.defineProperty(_e,"createConsolaReporter",{enumerable:!0,get:function(){return He.createConsolaReporter}}),Object.defineProperty(_e,"addVercelAiProcessors",{enumerable:!0,get:function(){return De.addVercelAiProcessors}}),Object.defineProperty(_e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return De.getProviderMetadataAttributes}}),Object.defineProperty(_e,"getTruncatedJsonString",{enumerable:!0,get:function(){return Ge.getTruncatedJsonString}}),Object.defineProperty(_e,"shouldEnableTruncation",{enumerable:!0,get:function(){return Ge.shouldEnableTruncation}}),Object.defineProperty(_e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE}}),Object.defineProperty(_e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE}}),Object.defineProperty(_e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return ke._INTERNAL_cleanupToolCallSpanContext}}),Object.defineProperty(_e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return ke._INTERNAL_getSpanContextForToolCallId}}),Object.defineProperty(_e,"_INTERNAL_toolCallSpanContextMap",{enumerable:!0,get:function(){return Ye.toolCallSpanContextMap}}),Object.defineProperty(_e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return we.instrumentOpenAiClient}}),Object.defineProperty(_e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return qe.OPENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return Ke.instrumentAnthropicAiClient}}),Object.defineProperty(_e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return ze.ANTHROPIC_AI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return Ve.instrumentGoogleGenAIClient}}),Object.defineProperty(_e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return We.GOOGLE_GENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return Xe.createLangChainCallbackHandler}}),Object.defineProperty(_e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return Qe._INTERNAL_mergeLangChainCallbackHandler}}),Object.defineProperty(_e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return Je.LANGCHAIN_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return Ze.instrumentCreateReactAgent}}),Object.defineProperty(_e,"instrumentLangGraph",{enumerable:!0,get:function(){return Ze.instrumentLangGraph}}),Object.defineProperty(_e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return Ze.instrumentStateGraphCompile}}),Object.defineProperty(_e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return $e.LANGGRAPH_INTEGRATION_NAME}}),Object.defineProperty(_e,"SpanBuffer",{enumerable:!0,get:function(){return et.SpanBuffer}}),Object.defineProperty(_e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return tt.hasSpanStreamingEnabled}}),Object.defineProperty(_e,"spanStreamingIntegration",{enumerable:!0,get:function(){return rt.spanStreamingIntegration}}),Object.defineProperty(_e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return nt._INTERNAL_FLAG_BUFFER_SIZE}}),Object.defineProperty(_e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return nt._INTERNAL_MAX_FLAGS_PER_SPAN}}),Object.defineProperty(_e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return nt._INTERNAL_addFeatureFlagToActiveSpan}}),Object.defineProperty(_e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return nt._INTERNAL_copyFlagsFromScopeToEvent}}),Object.defineProperty(_e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return nt._INTERNAL_insertFlagToScope}}),Object.defineProperty(_e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return ot.applyAggregateErrorsToEvent}}),Object.defineProperty(_e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return ut.getBreadcrumbLogLevelFromHttpStatusCode}}),Object.defineProperty(_e,"dsnFromString",{enumerable:!0,get:function(){return it.dsnFromString}}),Object.defineProperty(_e,"dsnToString",{enumerable:!0,get:function(){return it.dsnToString}}),Object.defineProperty(_e,"makeDsn",{enumerable:!0,get:function(){return it.makeDsn}}),Object.defineProperty(_e,"SentryError",{enumerable:!0,get:function(){return at.SentryError}}),Object.defineProperty(_e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return ct.GLOBAL_OBJ}}),Object.defineProperty(_e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationFilter}}),Object.defineProperty(_e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationHandler}}),Object.defineProperty(_e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchEndInstrumentationHandler}}),Object.defineProperty(_e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return pt.addGlobalErrorInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return lt.addGlobalUnhandledRejectionInstrumentationHandler}}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return dt.addHandler}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return dt.maybeInstrument}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return dt.resetInstrumentationHandlers}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return dt.triggerHandlers}}),Object.defineProperty(_e,"isDOMError",{enumerable:!0,get:function(){return gt.isDOMError}}),Object.defineProperty(_e,"isDOMException",{enumerable:!0,get:function(){return gt.isDOMException}}),Object.defineProperty(_e,"isElement",{enumerable:!0,get:function(){return gt.isElement}}),Object.defineProperty(_e,"isError",{enumerable:!0,get:function(){return gt.isError}}),Object.defineProperty(_e,"isErrorEvent",{enumerable:!0,get:function(){return gt.isErrorEvent}}),Object.defineProperty(_e,"isEvent",{enumerable:!0,get:function(){return gt.isEvent}}),Object.defineProperty(_e,"isInstanceOf",{enumerable:!0,get:function(){return gt.isInstanceOf}}),Object.defineProperty(_e,"isParameterizedString",{enumerable:!0,get:function(){return gt.isParameterizedString}}),Object.defineProperty(_e,"isPlainObject",{enumerable:!0,get:function(){return gt.isPlainObject}}),Object.defineProperty(_e,"isPrimitive",{enumerable:!0,get:function(){return gt.isPrimitive}}),Object.defineProperty(_e,"isRegExp",{enumerable:!0,get:function(){return gt.isRegExp}}),Object.defineProperty(_e,"isString",{enumerable:!0,get:function(){return gt.isString}}),Object.defineProperty(_e,"isSyntheticEvent",{enumerable:!0,get:function(){return gt.isSyntheticEvent}}),Object.defineProperty(_e,"isThenable",{enumerable:!0,get:function(){return gt.isThenable}}),Object.defineProperty(_e,"isVueViewModel",{enumerable:!0,get:function(){return gt.isVueViewModel}}),Object.defineProperty(_e,"isBrowser",{enumerable:!0,get:function(){return mt.isBrowser}}
941),Object.defineProperty(_e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return st.CONSOLE_LEVELS}}),Object.defineProperty(_e,"consoleSandbox",{enumerable:!0,get:function(){return st.consoleSandbox}}),Object.defineProperty(_e,"debug",{enumerable:!0,get:function(){return st.debug}}),Object.defineProperty(_e,"originalConsoleMethods",{enumerable:!0,get:function(){return st.originalConsoleMethods}}),Object.defineProperty(_e,"addContextToFrame",{enumerable:!0,get:function(){return Tt.addContextToFrame}}),Object.defineProperty(_e,"addExceptionMechanism",{enumerable:!0,get:function(){return Tt.addExceptionMechanism}}),Object.defineProperty(_e,"addExceptionTypeValue",{enumerable:!0,get:function(){return Tt.addExceptionTypeValue}}),Object.defineProperty(_e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return Tt.checkOrSetAlreadyCaught}}),Object.defineProperty(_e,"getEventDescription",{enumerable:!0,get:function(){return Tt.getEventDescription}}),Object.defineProperty(_e,"isAlreadyCaptured",{enumerable:!0,get:function(){return Tt.isAlreadyCaptured}}),Object.defineProperty(_e,"parseSemver",{enumerable:!0,get:function(){return Tt.parseSemver}}),Object.defineProperty(_e,"uuid4",{enumerable:!0,get:function(){return Tt.uuid4}}),Object.defineProperty(_e,"normalize",{enumerable:!0,get:function(){return Et.normalize}}),Object.defineProperty(_e,"normalizeToSize",{enumerable:!0,get:function(){return Et.normalizeToSize}}),Object.defineProperty(_e,"normalizeUrlToBase",{enumerable:!0,get:function(){return Et.normalizeUrlToBase}}),Object.defineProperty(_e,"setNormalizeStringifier",{enumerable:!0,get:function(){return Et.setNormalizeStringifier}}),Object.defineProperty(_e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return Ot.setNormalizationDepthOverrideHint}}),Object.defineProperty(_e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return Ot.setSkipNormalizationHint}}),Object.defineProperty(_e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return Pt.addNonEnumerableProperty}}),Object.defineProperty(_e,"convertToPlainObject",{enumerable:!0,get:function(){return Pt.convertToPlainObject}}),Object.defineProperty(_e,"dropUndefinedKeys",{enumerable:!0,get:function(){return Pt.dropUndefinedKeys}}),Object.defineProperty(_e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return Pt.extractExceptionKeysForMessage}}),Object.defineProperty(_e,"fill",{enumerable:!0,get:function(){return Pt.fill}}),Object.defineProperty(_e,"getOriginalFunction",{enumerable:!0,get:function(){return Pt.getOriginalFunction}}),Object.defineProperty(_e,"markFunctionWrapped",{enumerable:!0,get:function(){return Pt.markFunctionWrapped}}),Object.defineProperty(_e,"objectify",{enumerable:!0,get:function(){return Pt.objectify}}),Object.defineProperty(_e,"basename",{enumerable:!0,get:function(){return St.basename}}),Object.defineProperty(_e,"dirname",{enumerable:!0,get:function(){return St.dirname}}),Object.defineProperty(_e,"isAbsolute",{enumerable:!0,get:function(){return St.isAbsolute}}),Object.defineProperty(_e,"join",{enumerable:!0,get:function(){return St.join}}),Object.defineProperty(_e,"normalizePath",{enumerable:!0,get:function(){return St.normalizePath}}),Object.defineProperty(_e,"relative",{enumerable:!0,get:function(){return St.relative}}),Object.defineProperty(_e,"resolve",{enumerable:!0,get:function(){return St.resolve}}),Object.defineProperty(_e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return yt.SENTRY_BUFFER_FULL_ERROR}}),Object.defineProperty(_e,"makePromiseBuffer",{enumerable:!0,get:function(){return yt.makePromiseBuffer}}),Object.defineProperty(_e,"severityLevelFromString",{enumerable:!0,get:function(){return _t.severityLevelFromString}}),Object.defineProperty(_e,"replaceExports",{enumerable:!0,get:function(){return jt.replaceExports}}),Object.defineProperty(_e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return It.UNKNOWN_FUNCTION}}),Object.defineProperty(_e,"createStackParser",{enumerable:!0,get:function(){return It.createStackParser}}),Object.defineProperty(_e,"getFramesFromEvent",{enumerable:!0,get:function(){return It.getFramesFromEvent}}),Object.defineProperty(_e,"getFunctionName",{enumerable:!0,get:function(){return It.getFunctionName}}),Object.defineProperty(_e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return It.stackParserFromStackParserOptions}}),Object.defineProperty(_e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return It.stripSentryFramesAndReverse}}),Object.defineProperty(_e,"isMatchingPattern",{enumerable:!0,get:function(){return Nt.isMatchingPattern}}),Object.defineProperty(_e,"safeJoin",{enumerable:!0,get:function(){return Nt.safeJoin}}),Object.defineProperty(_e,"snipLine",{enumerable:!0,get:function(){return Nt.snipLine}}),Object.defineProperty(_e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return Nt.stringMatchesSomePattern}}),Object.defineProperty(_e,"truncate",{enumerable:!0,get:function(){return Nt.truncate}}),Object.defineProperty(_e,"isNativeFunction",{enumerable:!0,get:function(){return At.isNativeFunction}}
941),Object.defineProperty(_e,"supportsDOMError",{enumerable:!0,get:function(){return At.supportsDOMError}}),Object.defineProperty(_e,"supportsDOMException",{enumerable:!0,get:function(){return At.supportsDOMException}}),Object.defineProperty(_e,"supportsErrorEvent",{enumerable:!0,get:function(){return At.supportsErrorEvent}}),Object.defineProperty(_e,"supportsFetch",{enumerable:!0,get:function(){return At.supportsFetch}}),Object.defineProperty(_e,"supportsHistory",{enumerable:!0,get:function(){return At.supportsHistory}}),Object.defineProperty(_e,"supportsNativeFetch",{enumerable:!0,get:function(){return At.supportsNativeFetch}}),Object.defineProperty(_e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return At.supportsReferrerPolicy}}),Object.defineProperty(_e,"supportsReportingObserver",{enumerable:!0,get:function(){return At.supportsReportingObserver}}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return Rt.SyncPromise}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return Rt.rejectedSyncPromise}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return Rt.resolvedSyncPromise}}),Object.defineProperty(_e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return Ct.browserPerformanceTimeOrigin}}),Object.defineProperty(_e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return Ct.dateTimestampInSeconds}}),Object.defineProperty(_e,"timestampInSeconds",{enumerable:!0,get:function(){return Ct.timestampInSeconds}}),Object.defineProperty(_e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return Mt.TRACEPARENT_REGEXP}}),Object.defineProperty(_e,"extractTraceparentData",{enumerable:!0,get:function(){return Mt.extractTraceparentData}}),Object.defineProperty(_e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return Mt.generateSentryTraceHeader}}),Object.defineProperty(_e,"generateTraceparentHeader",{enumerable:!0,get:function(){return Mt.generateTraceparentHeader}}),Object.defineProperty(_e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return Mt.propagationContextFromHeaders}}),Object.defineProperty(_e,"shouldContinueTrace",{enumerable:!0,get:function(){return Mt.shouldContinueTrace}}),Object.defineProperty(_e,"getSDKSource",{enumerable:!0,get:function(){return Ut.getSDKSource}}),Object.defineProperty(_e,"isBrowserBundle",{enumerable:!0,get:function(){return Ut.isBrowserBundle}}),Object.defineProperty(_e,"addItemToEnvelope",{enumerable:!0,get:function(){return Lt.addItemToEnvelope}}),Object.defineProperty(_e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return Lt.createAttachmentEnvelopeItem}}),Object.defineProperty(_e,"createEnvelope",{enumerable:!0,get:function(){return Lt.createEnvelope}}),Object.defineProperty(_e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return Lt.createEventEnvelopeHeaders}}),Object.defineProperty(_e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return Lt.createSpanEnvelopeItem}}),Object.defineProperty(_e,"envelopeContainsItemType",{enumerable:!0,get:function(){return Lt.envelopeContainsItemType}}),Object.defineProperty(_e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return Lt.envelopeItemTypeToDataCategory}}),Object.defineProperty(_e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return Lt.forEachEnvelopeItem}}),Object.defineProperty(_e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return Lt.getSdkMetadataForEnvelopeHeader}}),Object.defineProperty(_e,"parseEnvelope",{enumerable:!0,get:function(){return Lt.parseEnvelope}}),Object.defineProperty(_e,"serializeEnvelope",{enumerable:!0,get:function(){return Lt.serializeEnvelope}}),Object.defineProperty(_e,"createClientReportEnvelope",{enumerable:!0,get:function(){return Ft.createClientReportEnvelope}}),Object.defineProperty(_e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return vt.DEFAULT_RETRY_AFTER}}),Object.defineProperty(_e,"disabledUntil",{enumerable:!0,get:function(){return vt.disabledUntil}}),Object.defineProperty(_e,"isRateLimited",{enumerable:!0,get:function(){return vt.isRateLimited}}),Object.defineProperty(_e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return vt.parseRetryAfterHeader}}),Object.defineProperty(_e,"updateRateLimits",{enumerable:!0,get:function(){return vt.updateRateLimits}}),Object.defineProperty(_e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return ht.MAX_BAGGAGE_STRING_LENGTH}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return ht.SENTRY_BAGGAGE_KEY_PREFIX}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return ht.SENTRY_BAGGAGE_KEY_PREFIX_REGEX}}),Object.defineProperty(_e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return ht.baggageHeaderToDynamicSamplingContext}}),Object.defineProperty(_e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return ht.dynamicSamplingContextToSentryBaggageHeader}}),Object.defineProperty(_e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return ht.mergeBaggageHeaders}}),Object.defineProperty(_e,"objectToBaggageHeader",{enumerable:!0,get:function(){return ht.objectToBaggageHeader}}),Object.defineProperty(_e,"parseBaggageHeader",{enumerable:!0,get:function(){return ht.parseBaggageHeader}}
941),Object.defineProperty(_e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return Bt.getHttpSpanDetailsFromUrlObject}}),Object.defineProperty(_e,"getSanitizedUrlString",{enumerable:!0,get:function(){return Bt.getSanitizedUrlString}}),Object.defineProperty(_e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return Bt.getSanitizedUrlStringFromUrlObject}}),Object.defineProperty(_e,"isURLObjectRelative",{enumerable:!0,get:function(){return Bt.isURLObjectRelative}}),Object.defineProperty(_e,"parseStringToURLObject",{enumerable:!0,get:function(){return Bt.parseStringToURLObject}}),Object.defineProperty(_e,"parseUrl",{enumerable:!0,get:function(){return Bt.parseUrl}}),Object.defineProperty(_e,"stripDataUrlContent",{enumerable:!0,get:function(){return Bt.stripDataUrlContent}}),Object.defineProperty(_e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return Bt.stripUrlQueryAndFragment}}),Object.defineProperty(_e,"_INTERNAL_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return Ht._enhanceErrorWithSentryInfo}}),Object.defineProperty(_e,"eventFromMessage",{enumerable:!0,get:function(){return Ht.eventFromMessage}}),Object.defineProperty(_e,"eventFromUnknownInput",{enumerable:!0,get:function(){return Ht.eventFromUnknownInput}}),Object.defineProperty(_e,"exceptionFromError",{enumerable:!0,get:function(){return Ht.exceptionFromError}}),Object.defineProperty(_e,"parseStackFrames",{enumerable:!0,get:function(){return Ht.parseStackFrames}}),Object.defineProperty(_e,"LRUMap",{enumerable:!0,get:function(){return Dt.LRUMap}}),Object.defineProperty(_e,"generateSpanId",{enumerable:!0,get:function(){return Gt.generateSpanId}}),Object.defineProperty(_e,"generateTraceId",{enumerable:!0,get:function(){return Gt.generateTraceId}}),Object.defineProperty(_e,"SDK_VERSION",{enumerable:!0,get:function(){return xt.SDK_VERSION}}),Object.defineProperty(_e,"getDebugImagesForResources",{enumerable:!0,get:function(){return kt.getDebugImagesForResources}}),Object.defineProperty(_e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return kt.getFilenameToDebugIdMap}}),Object.defineProperty(_e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return Yt.getFilenameToMetadataMap}}),Object.defineProperty(_e,"escapeStringForRegex",{enumerable:!0,get:function(){return wt.escapeStringForRegex}}),Object.defineProperty(_e,"_INTERNAL_safeDateNow",{enumerable:!0,get:function(){return qt.safeDateNow}}),Object.defineProperty(_e,"_INTERNAL_safeMathRandom",{enumerable:!0,get:function(){return qt.safeMathRandom}}),Object.defineProperty(_e,"_INTERNAL_withRandomSafeContext",{enumerable:!0,get:function(){return qt.withRandomSafeContext}}),Object.defineProperty(_e,"ServerRuntimeClient",{enumerable:!0,get:function(){return Kt.ServerRuntimeClient}}),Object.defineProperty(_e,"trpcMiddleware",{enumerable:!0,get:function(){return zt.trpcMiddleware}}),Object.defineProperty(_e,"wrapMcpServerWithSentry",{enumerable:!0,get:function(){return Vt.wrapMcpServerWithSentry}}),Object.defineProperty(_e,"isNodeEnv",{enumerable:!0,get:function(){return Wt.isNodeEnv}}),Object.defineProperty(_e,"loadModule",{enumerable:!0,get:function(){return Wt.loadModule}}),Object.defineProperty(_e,"filenameIsInApp",{enumerable:!0,get:function(){return Xt.filenameIsInApp}}),Object.defineProperty(_e,"node",{enumerable:!0,get:function(){return Xt.node}}),Object.defineProperty(_e,"nodeStackLineParser",{enumerable:!0,get:function(){return Xt.nodeStackLineParser}}),Object.defineProperty(_e,"vercelWaitUntil",{enumerable:!0,get:function(){return Qt.vercelWaitUntil}}),Object.defineProperty(_e,"flushIfServerless",{enumerable:!0,get:function(){return Jt.flushIfServerless}}),Object.defineProperty(_e,"callFrameToStackFrame",{enumerable:!0,get:function(){return Zt.callFrameToStackFrame}}),Object.defineProperty(_e,"watchdogTimer",{enumerable:!0,get:function(){return Zt.watchdogTimer}}),Object.defineProperty(_e,"_INTERNAL_safeUnref",{enumerable:!0,get:function(){return $t.safeUnref}}),Object.defineProperty(_e,"expressErrorHandler",{enumerable:!0,get:function(){return er.expressErrorHandler}}),Object.defineProperty(_e,"patchExpressModule",{enumerable:!0,get:function(){return er.patchExpressModule}}),Object.defineProperty(_e,"setupExpressErrorHandler",{enumerable:!0,get:function(){return er.setupExpressErrorHandler}}),Object.defineProperty(_e,"_INTERNAL_sanitizeSqlQuery",{enumerable:!0,get:function(){return tr._sanitizeSqlQuery}}),Object.defineProperty(_e,"instrumentPostgresJsSql",{enumerable:!0,get:function(){return tr.instrumentPostgresJsSql}}),Object.defineProperty(_e,"_INTERNAL_getSqlQuerySummary",{enumerable:!0,get:function(){return rr.getSqlQuerySummary}}),Object.defineProperty(_e,"patchHttpModuleClient",{enumerable:!0,get:function(){return nr.patchHttpModuleClient}}),Object.defineProperty(_e,"getHttpClientSubscriptions",{enumerable:!0,get:function(){return or.getHttpClientSubscriptions}}),Object.defineProperty(_e,"getHttpServerSubscriptions",{enumerable:!0,get:function(){return ur.getHttpServerSubscriptions}}),Object.defineProperty(_e,"isStaticAssetRequest",{enumerable:!0,get:function(){return ur.isStaticAssetRequest}}),Object.defineProperty(_e,"recordRequestSession",{enumerable:!0,get:function(){return ir.recordRequestSession}}),Object.defineProperty(_e,"addOutgoingRequestBreadcrumb",{enumerable:!0,get:function(){return ar.addOutgoingRequestBreadcrumb}}),Object.defineProperty(_e,"getRequestOptions",{enumerable:!0,get:function(){return cr.getRequestOptions}}),Object.defineProperty(_e,"getRequestUrl",{enumerable:!0,get:function(){return cr.getRequestUrl}}),Object.defineProperty(_e,"getRequestUrlFromClientRequest",{enumerable:!0,get:function(){return cr.getRequestUrlFromClientRequest}}),Object.defineProperty(_e,"getRequestUrlObject",{enumerable:!0,get:function(){return cr.getRequestUrlObject}}),Object.defineProperty(_e,"HTTP_ON_CLIENT_REQUEST",{enumerable:!0,get:function(){return br.HTTP_ON_CLIENT_REQUEST}}),Object.defineProperty(_e,"HTTP_ON_SERVER_REQUEST",{enumerable:!0,get:function(){return br.HTTP_ON_SERVER_REQUEST}}),Object.defineProperty(_e,"getComponentName",{enumerable:!0,get:function(){return fr.getComponentName}}),Object.defineProperty(_e,"getLocationHref",{enumerable:!0,get:function(){return fr.getLocationHref}}),Object.defineProperty(_e,"htmlTreeAsString",{enumerable:!0,get:function(){return fr.htmlTreeAsString}}),Object.defineProperty(_e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return pr.instrumentLangChainEmbeddings}}),Object.defineProperty(_e,"logger",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(_e,"metrics",{enumerable:!0,get:function(){return Be}});var t=r(_d[0]),n=r(_d[1]),o=r(_d[2]),u=r(_d[3]),c=r(_d[4]),b=r(_d[5]),f=r(_d[6]),p=r(_d[7]),l=r(_d[8]),d=r(_d[9]),s=r(_d[10]),T=r(_d[11]),E=r(_d[12]),O=r(_d[13]),P=r(_d[14]),S=r(_d[15]),y=r(_d[16]),_=r(_d[17]),j=r(_d[18]),I=r
941(_d[19]),N=r(_d[20]),A=r(_d[21]),R=r(_d[22]),C=r(_d[23]),M=r(_d[24]),U=r(_d[25]),L=r(_d[26]),F=r(_d[27]),v=r(_d[28]),h=r(_d[29]),B=r(_d[30]),H=r(_d[31]),D=r(_d[32]),G=r(_d[33]),x=r(_d[34]),k=r(_d[35]),Y=r(_d[36]),w=r(_d[37]),q=r(_d[38]),K=r(_d[39]),z=r(_d[40]),V=r(_d[41]),W=r(_d[42]),X=r(_d[43]),Q=r(_d[44]),J=r(_d[45]),Z=r(_d[46]),$=r(_d[47]),ee=r(_d[48]),te=r(_d[49]),re=r(_d[50]),ne=r(_d[51]),oe=r(_d[52]),ue=r(_d[53]),ie=r(_d[54]),ae=r(_d[55]),ce=r(_d[56]),be=r(_d[57]),fe=r(_d[58]),pe=r(_d[59]),le=r(_d[60]),de=r(_d[61]),ge=r(_d[62]),me=r(_d[63]),se=r(_d[64]),Te=r(_d[65]),Ee=r(_d[66]),Oe=r(_d[67]),Pe=r(_d[68]),Se=r(_d[69]),ye=r(_d[70]),je=r(_d[71]),Ie=r(_d[72]),Ne=r(_d[73]),Ae=r(_d[74]),Re=r(_d[75]),Ce=r(_d[76]),Me=r(_d[77]),Ue=r(_d[78]),Le=r(_d[79]),Fe=e(r(_d[80])),ve=r(_d[81]),he=r(_d[82]),Be=e(r(_d[83])),He=r(_d[84]),De=r(_d[85]),Ge=r(_d[86]),xe=r(_d[87]),ke=r(_d[88]),Ye=r(_d[89]),we=r(_d[90]),qe=r(_d[91]),Ke=r(_d[92]),ze=r(_d[93]),Ve=r(_d[94]),We=r(_d[95]),Xe=r(_d[96]),Qe=r(_d[97]),Je=r(_d[98]),Ze=r(_d[99]),$e=r(_d[100]),et=r(_d[101]),tt=r(_d[102]),rt=r(_d[103]),nt=r(_d[104]),ot=r(_d[105]),ut=r(_d[106]),it=r(_d[107]),at=r(_d[108]),ct=r(_d[109]),bt=r(_d[110]),ft=r(_d[111]),pt=r(_d[112]),lt=r(_d[113]),dt=r(_d[114]),gt=r(_d[115]),mt=r(_d[116]),st=r(_d[117]),Tt=r(_d[118]),Et=r(_d[119]),Ot=r(_d[120]),Pt=r(_d[121]),St=r(_d[122]),yt=r(_d[123]),_t=r(_d[124]),jt=r(_d[125]),It=r(_d[126]),Nt=r(_d[127]),At=r(_d[128]),Rt=r(_d[129]),Ct=r(_d[130]),Mt=r(_d[131]),Ut=r(_d[132]),Lt=r(_d[133]),Ft=r(_d[134]),vt=r(_d[135]),ht=r(_d[136]),Bt=r(_d[137]),Ht=r(_d[138]),Dt=r(_d[139]),Gt=r(_d[140]),xt=r(_d[141]),kt=r(_d[142]),Yt=r(_d[143]),wt=r(_d[144]),qt=r(_d[145]),Kt=r(_d[146]),zt=r(_d[147]),Vt=r(_d[148]),Wt=r(_d[149]),Xt=r(_d[150]),Qt=r(_d[151]),Jt=r(_d[152]),Zt=r(_d[153]),$t=r(_d[154]),er=r(_d[155]),tr=r(_d[156]),rr=r(_d[157]),nr=r(_d[158]),or=r(_d[159]),ur=r(_d[160]),ir=r(_d[161]),ar=r(_d[162]),cr=r(_d[163]),br=r(_d[164]),fr=r(_d[165]),pr=r(_d[166])},2468,[2469,2502,2507,2511,2510,2501,2520,2523,2513,2518,2522,2517,2524,2500,2512,2527,2499,2482,2480,2532,2475,2484,2483,2529,2534,2535,2558,2549,2559,2560,2536,2561,2562,2563,2565,2566,2525,2528,2567,2508,2515,2568,2521,2570,2571,2572,2479,2495,2506,2573,2574,2575,2576,2577,2496,2509,2578,2514,2579,2580,2581,2582,2583,2586,2588,2590,2593,2594,2595,2597,2598,2599,2600,2601,2603,2604,2605,2606,2607,2537,2608,2609,2545,2611,2612,2613,2614,2615,2619,2618,2621,2622,2625,2626,2629,2630,2633,2635,2634,2636,2637,2639,2519,2642,2602,2584,2643,2505,2644,2472,2591,2645,2471,2478,2473,2487,2542,2474,2485,2490,2491,2486,2596,2550,2592,2647,2477,2489,2646,2530,2492,2503,2544,2516,2552,2551,2504,2569,2585,2648,2494,2476,2531,2587,2649,2488,2650,2652,2653,2543,2667,2668,2669,2670,2533,2671,2678,2679,2680,2682,2688,2690,2683,2684,2681,2691,2692]);
942__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return _}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),l=r(d[4]),u=r(d[5]);let s=!1;function _(){function _(){const t=(0,l.getActiveSpan)(),o=t&&(0,l.getRootSpan)(t);if(o){const t="internal_error";n.DEBUG_BUILD&&c.debug.log(`[Tracing] Root span: ${t} -> Global error occurred`),o.setStatus({code:u.SPAN_STATUS_ERROR,message:t})}}s||(s=!0,(0,t.addGlobalErrorInstrumentationHandler)(_),(0,o.addGlobalUnhandledRejectionInstrumentationHandler)(_))}},2469,[2470,2471,2478,2474,2479,2501]);
943__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEBUG_BUILD",{enumerable:!0,get:function(){return _}});const _='undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},2470,[]);
944__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);let o=null;function u(n){const o="error";(0,t.addHandler)(o,n),(0,t.maybeInstrument)(o,l)}function l(){o=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(n,u,l,_,c){const s={column:_,error:c,line:l,msg:n,url:u};return(0,t.triggerHandlers)("error",s),!!o&&o.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},2471,[2472,2473]);
945__d(function(g,r,i,a,m,e,d){"use strict";
945Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return t}});const t=globalThis},2472,[]);
946__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return b}});var e=r(d[0]),n=r(d[1]),t=r(d[2]);const o={},u={};function c(e,n){return o[e]=o[e]||[],o[e].push(n),()=>{const t=o[e];if(t){const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}}function f(){Object.keys(o).forEach(e=>{o[e]=void 0})}function s(t,o){if(!u[t]){u[t]=!0;try{o()}catch(o){e.DEBUG_BUILD&&n.debug.error(`Error while instrumenting ${t}`,o)}}}function b(u,c){const f=u&&o[u];if(f)for(const o of f)try{o(c)}catch(c){e.DEBUG_BUILD&&n.debug.error(`Error while triggering instrumentation handler.\nType: ${u}\nName: ${(0,t.getFunctionName)(o)}\nError:`,c)}}},2473,[2470,2474,2477]);
947__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"consoleSandbox",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"originalConsoleMethods",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const c=["debug","info","warn","error","log","assert","trace"],u={};function l(n){if(!("console"in o.GLOBAL_OBJ))return n();const t=o.GLOBAL_OBJ.console,c={},l=Object.keys(u);l.forEach(n=>{const o=u[n];c[n]=t[n],t[n]=o});try{return n()}finally{l.forEach(n=>{t[n]=c[n]})}}function f(){return s().enabled}function b(n,...c){t.DEBUG_BUILD&&f()&&l(()=>{o.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...c)})}function s(){return t.DEBUG_BUILD?(0,n.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const O={enable:function(){s().enabled=!0},disable:function(){s().enabled=!1},isEnabled:f,log:function(...n){b("log",...n)},warn:function(...n){b("warn",...n)},error:function(...n){b("error",...n)}}},2474,[2475,2470,2472]);
948__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getGlobalSingleton",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getMainCarrier",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"getSentryCarrier",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);function _(){return u(t.GLOBAL_OBJ),t.GLOBAL_OBJ}function u(t){const _=t.__SENTRY__=t.__SENTRY__||{};return _.version=_.version||n.SDK_VERSION,_[n.SDK_VERSION]=_[n.SDK_VERSION]||{}}function o(_,u,o=t.GLOBAL_OBJ){const S=o.__SENTRY__=o.__SENTRY__||{},O=S[n.SDK_VERSION]=S[n.SDK_VERSION]||{};return O[_]||(O[_]=u())}},2475,[2476,2472]);
949__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SDK_VERSION",{enumerable:!0,get:function(){return t}});const t="10.63.0"},2476,[]);
950__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"createStackParser",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getFramesFromEvent",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"normalizeStackTracePath",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return a}});const t=50,n="?",c=/\(error: (.*)\)/,o=/captureMessage|captureException/;function u(...n){const o=n.sort((t,n)=>t[0]-n[0]).map(t=>t[1]);return(n,u=0,i=0)=>{const s=[],f=n.split("\n");for(let n=u;n<f.length;n++){let u=f[n];u.length>1024&&(u=u.slice(0,1024));const a=c.test(u)?u.replace(c,"$1"):u;if(!a.includes("Error: ")){for(const t of o){const n=t(a);if(n){s.push(n);break}}if(s.length>=t+i)break}}return a(s.slice(i))}}function i(t){return Array.isArray(t)?u(...t):t}function a(c){if(!c.length)return[];const u=Array.from(c);return/sentryWrapped/.test(s(u).function||"")&&u.pop(),u.reverse(),o.test(s(u).function||"")&&(u.pop(),o.test(s(u).function||"")&&u.pop()),u.slice(0,t).map(t=>({...t,filename:t.filename||s(u).filename,function:t.function||n}))}function s(t){return t[t.length-1]||{}}const f="<anonymous>";function l(t){try{return t&&"function"==typeof t&&t.name||f}catch{return f}}function p(t){const n=t.exception;if(n){const t=[];
950try{return n.values.forEach(n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)}),t}catch{return}}}function b(t){let n=t?.startsWith("file://")?t.slice(7):t;return n?.match(/\/[A-Z]:/)&&(n=n.slice(1)),n}},2477,[]);
951__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return o}});var n=r(d[0]),e=r(d[1]);let t=null;function o(n){const t="unhandledrejection";(0,e.addHandler)(t,n),(0,e.maybeInstrument)(t,u)}function u(){t=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(n){const o=n;return(0,e.triggerHandlers)("unhandledrejection",o),!t||t.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},2478,[2472,2473]);
952__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"TRACE_FLAG_NONE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"TRACE_FLAG_SAMPLED",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"addChildSpanToSpan",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"addStatusMessageAttribute",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"getActiveSpan",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getRootSpan",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"getSimpleStatus",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"getSpanDescendants",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"getStatusMessage",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"getStreamedSpanLinks",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"removeChildSpanFromSpan",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"showSpanDropWarning",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"spanIsSampled",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"spanToJSON",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"spanToTraceContext",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"spanToTraceHeader",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"spanToTraceparentHeader",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"spanToTransactionTraceContext",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"streamedSpanJsonToSerializedSpan",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"updateSpanName",{enumerable:!0,get:function(){return V}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]),f=r(d[7]),S=r(d[8]),_=r(d[9]),b=r(d[10]),T=r(d[11]),l=r(d[12]);const y=0,A=1;let O=!1;function I(t){const{spanId:n,traceId:o}=t.spanContext(),{data:s,op:u,parent_span_id:c,status:p,origin:f,links:S}=v(t);return{parent_span_id:c,span_id:n,trace_id:o,data:s,op:u,status:p,origin:f,links:S}}function P(t){const{spanId:n,traceId:o,isRemote:s}=t.spanContext(),u=s?n:v(t).parent_span_id,c=(0,p.getCapturedScopesOnSpan)(t).scope;return{parent_span_id:u,span_id:s?c?.getPropagationContext().propagationSpanId||(0,S.generateSpanId)():n,trace_id:o}}function N(t){const{traceId:n,spanId:o}=t.spanContext(),s=J(t);return(0,b.generateSentryTraceHeader)(n,o,s)}function E(t){const{traceId:n,spanId:o}=t.spanContext(),s=J(t);return(0,b.generateTraceparentHeader)(n,o,s)}function C(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:n,traceFlags:o,...s},attributes:u})=>({span_id:t,trace_id:n,sampled:o===A,attributes:u,...s})):void 0}function j(t){return t?.length?t.map(({context:{spanId:t,traceId:n,traceFlags:o},attributes:s})=>({span_id:t,trace_id:n,sampled:o===A,attributes:s})):void 0}function R(t){return"number"==typeof t?x(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?x(t.getTime()):(0,_.timestampInSeconds)()}function x(t){return t>9999999999?t/1e3:t}function v(t){if(F(t))return t.getSpanJSON();const{spanId:n,traceId:o}=t.spanContext();if(h(t)){const{attributes:s,startTime:c,name:p,endTime:f,status:S,links:_}=t;return{span_id:n,trace_id:o,data:s,description:p,parent_span_id:k(t),start_timestamp:R(c),timestamp:R(f)||void 0,status:L(S),op:s[u.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:s[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:C(_)}}return{span_id:n,trace_id:o,start_timestamp:0,data:{}}}function U(t){if(F(t))return t.getStreamedSpanJSON();const{spanId:n,traceId:o}=t.spanContext();if(h(t)){const{attributes:s,startTime:u,name:c,endTime:p,status:f,links:S}=t;return{name:c,span_id:n,trace_id:o,parent_span_id:k(t),start_timestamp:R(u),end_timestamp:R(p),is_segment:t===W(t),status:w(f),attributes:B(s,f),links:j(S)}}return{span_id:n,trace_id:o,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===W(t)}
952}function k(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function M(t){return{...t,attributes:(0,n.serializeAttributes)(t.attributes),links:t.links?.map(t=>({...t,attributes:(0,n.serializeAttributes)(t.attributes)}))}}function h(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}function F(t){return"function"==typeof t.getSpanJSON}function J(t){const{traceFlags:n}=t.spanContext();return n===A}function L(t){if(t&&t.code!==c.SPAN_STATUS_UNSET)return t.code===c.SPAN_STATUS_OK?"ok":t.message||"internal_error"}function w(t){return t&&t.code!==c.SPAN_STATUS_OK&&t.code!==c.SPAN_STATUS_UNSET&&"cancelled"!==t.message?"error":"ok"}function B(t,n){const o="error"===w(n)?n?.message:void 0;return{...o&&{[u.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE]:o},...t}}const Y="_sentryChildSpans",D="_sentryRootSpan";function G(t,n){const o=t[D]||t;(0,f.addNonEnumerableProperty)(n,D,o),t[Y]?t[Y].add(n):(0,f.addNonEnumerableProperty)(t,Y,new Set([n]))}function H(t,n){t[Y]&&t[Y].delete(n)}function z(t){const n=new Set;return(function t(o){if(!n.has(o)&&J(o)){n.add(o);const s=o[Y]?Array.from(o[Y]):[];for(const n of s)t(n)}})(t),Array.from(n)}const K=W;function W(t){return t[D]||t}function q(){const n=(0,o.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(n);return u.getActiveSpan?u.getActiveSpan():(0,l._getSpanForScope)((0,s.getCurrentScope)())}function Q(){O||((0,T.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),O=!0)}function V(t,n){t.updateName(n),t.setAttributes({[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[u.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:n})}},2479,[2480,2498,2475,2499,2500,2501,2502,2486,2494,2492,2503,2474,2495]);
953__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function c(n){const c=(0,t.getMainCarrier)();(0,t.getSentryCarrier)(c).acs=n}function o(c){const o=(0,t.getSentryCarrier)(c);return o.acs?o.acs:(0,n.getStackAsyncContextStrategy)()}},2480,[2475,2481]);
954__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"AsyncContextStack",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"getStackAsyncContextStrategy",{enumerable:!0,get:function(){return l}});var t=r(d[0]),e=r(d[1]),o=r(d[2]),c=r(d[3]),n=r(d[4]);class p{constructor(t,o){let c,n;c=t||new e.Scope,n=o||new e.Scope,this._stack=[{scope:c}],this._isolationScope=n}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return(0,c.isThenable)(n)?(0,o.chainAndCopyPromiseLike)(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function s(){const e=(0,n.getMainCarrier)(),o=(0,n.getSentryCarrier)(e);return o.stack=o.stack||new p((0,t.getDefaultCurrentScope)(),(0,t.getDefaultIsolationScope)())}function S(t){return s().withScope(t)}function u(t,e){const o=s();return o.withScope(()=>(o.getStackTop().scope=t,e(t)))}function h(t){return s().withScope(()=>t(s().getIsolationScope()))}function l(){return{withIsolationScope:h,withScope:S,withSetScope:u,withSetIsolationScope:(t,e)=>h(e),getCurrentScope:()=>s().getScope(),getIsolationScope:()=>s().getIsolationScope()}}},2481,[2482,2483,2497,2487,2475]);
955__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function o(){return(0,t.getGlobalSingleton)("defaultCurrentScope",()=>new n.Scope)}function u(){return(0,t.getGlobalSingleton)("defaultIsolationScope",()=>new n.Scope)}},2482,[2475,2483]);
956__d(function(g,r,i,a,m,e,d){"use strict";
956Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return b}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),h=r(d[4]),_=r(d[5]),c=r(d[6]),u=r(d[7]),p=r(d[8]),l=r(d[9]),v=r(d[10]);class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}}clone(){const t=new b;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,(0,p._setSpanForScope)(t,(0,p._getSpanForScope)(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,s.updateSession)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,s){return this.setTags({[t]:s})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,s){return this.setAttributes({[t]:s})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,s){return this._extra={...this._extra,[t]:s},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,s){return null===s?delete this._contexts[t]:this._contexts[t]=s,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const s="function"==typeof t?t(this):t,n=s instanceof b?s.getScopeData():(0,o.isPlainObject)(s)?t:void 0,{tags:h,attributes:_,extra:c,user:u,contexts:p,level:l,fingerprint:v=[],propagationContext:f,conversationId:x}=n||{};return this._tags={...this._tags,...h},this._attributes={...this._attributes,..._},this._extra={...this._extra,...c},this._contexts={...this._contexts,...p},u&&Object.keys(u).length&&(this._user=u),l&&(this._level=l),v.length&&(this._fingerprint=v),f&&(this._propagationContext=f),x&&(this._conversationId=x),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,p._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(t,s){const n="number"==typeof s?s:100;if(n<=0)return this;const o={timestamp:(0,v.dateTimestampInSeconds)(),...t,message:t.message?(0,l.truncate)(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,p._getSpanForScope)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=(0,h.merge)(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}
956captureException(s,o){const h=o?.event_id||(0,_.uuid4)();if(!this._client)return t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture exception!"),h;const c=new Error("Sentry syntheticException");return this._client.captureException(s,{originalException:s,syntheticException:c,...o,event_id:h},this),h}captureMessage(s,o,h){const c=h?.event_id||(0,_.uuid4)();if(!this._client)return t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture message!"),c;const u=h?.syntheticException??new Error(s);return this._client.captureMessage(s,o,{originalException:s,syntheticException:u,...h,event_id:c},this),c}captureEvent(s,o){const h=s.event_id||o?.event_id||(0,_.uuid4)();return this._client?(this._client.captureEvent(s,{...o,event_id:h},this),h):(t.DEBUG_BUILD&&n.debug.warn("No client configured on scope - will not capture event!"),h)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}},2483,[2470,2484,2474,2487,2493,2485,2494,2488,2495,2489,2492]);
957__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"closeSession",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"makeSession",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"updateSession",{enumerable:!0,get:function(){return o}});var t=r(d[0]),s=r(d[1]);function n(n){const u=(0,s.timestampInSeconds)(),c={sid:(0,t.uuid4)(),init:!0,timestamp:u,started:u,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>p(c)};return n&&o(c,n),c}function o(n,o={}){if(o.user&&(!n.ipAddress&&o.user.ip_address&&(n.ipAddress=o.user.ip_address),n.did||o.did||(n.did=o.user.id||o.user.email||o.user.username)),n.timestamp=o.timestamp||(0,s.timestampInSeconds)(),o.abnormal_mechanism&&(n.abnormal_mechanism=o.abnormal_mechanism),o.ignoreDuration&&(n.ignoreDuration=o.ignoreDuration),o.sid&&(n.sid=32===o.sid.length?o.sid:(0,t.uuid4)()),void 0!==o.init&&(n.init=o.init),!n.did&&o.did&&(n.did=`${o.did}`),"number"==typeof o.started&&(n.started=o.started),n.ignoreDuration)n.duration=void 0;else if("number"==typeof o.duration)n.duration=o.duration;else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}o.release&&(n.release=o.release),o.environment&&(n.environment=o.environment),!n.ipAddress&&o.ipAddress&&(n.ipAddress=o.ipAddress),!n.userAgent&&o.userAgent&&(n.userAgent=o.userAgent),"number"==typeof o.errors&&(n.errors=o.errors),o.status&&(n.status=o.status)}function u(t,s){let n={};s?n={status:s}:"ok"===t.status&&(n={status:"exited"}),o(t,n)}function p(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}},2484,[2485,2492]);
958__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addContextToFrame",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"addExceptionMechanism",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"addExceptionTypeValue",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getEventDescription",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isAlreadyCaptured",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"parseSemver",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"uuid4",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function u(){const n=c.GLOBAL_OBJ;return n.crypto||n.msCrypto}let p;function s(n=u()){try{if(n?.randomUUID)return(0,t.withRandomSafeContext)(()=>n.randomUUID()).replace(/-/g,"")}catch{}return p||(p="10000000100040008000100000000000"),p.replace(/[018]/g,n=>(n^(16*(0,t.safeMathRandom)()&15)>>n/4).toString(16))}function f(n){return n.exception?.values?.[0]}function l(n){const{message:t,event_id:o}=n;if(t)return t;const c=f(n);return c?c.type&&c.value?`${c.type}: ${c.value}`:c.type||c.value||o||"<unknown>":o||"<unknown>"}function y(n,t,o){const c=n.exception=n.exception||{},u=c.values=c.values||[],p=u[0]=u[0]||{};p.value||(p.value=t||""),p.type||(p.type=o||"Error")}function h(n,t){const o=f(n);if(!o)return;const c=o.mechanism;if(o.mechanism={type:"generic",handled:!0,...c,...t},t&&"data"in t){const n={...c?.data,...t.data};o.mechanism.data=n}}const b=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?
958:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function _(n){return parseInt(n||"",10)}function v(n){const t=n.match(b)||[],o=_(t[1]),c=_(t[2]),u=_(t[3]);return{buildmetadata:t[5],major:isNaN(o)?void 0:o,minor:isNaN(c)?void 0:c,patch:isNaN(u)?void 0:u,prerelease:t[4]}}function x(n,t,c=5){if(void 0===t.lineno)return;const u=n.length,p=Math.max(Math.min(u-1,t.lineno-1),0);t.pre_context=n.slice(Math.max(0,p-c),p).map(n=>(0,o.snipLine)(n,0));const s=Math.min(u-1,p);t.context_line=(0,o.snipLine)(n[s],t.colno||0),t.post_context=n.slice(Math.min(p+1,u),p+1+c).map(n=>(0,o.snipLine)(n,0))}function O(t){if(j(t))return!0;try{(0,n.addNonEnumerableProperty)(t,"__sentry_captured__",!0)}catch{}return!1}function j(n){try{return n.__sentry_captured__}catch{}}},2485,[2486,2488,2489,2472]);
959__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"convertToPlainObject",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dropUndefinedKeys",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"fill",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getOriginalFunction",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"markFunctionWrapped",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"objectify",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"wrapMethod",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(o,c,u){if(!(c in o))return;const s=o[c];if("function"!=typeof s)return;const b=u(s);"function"==typeof b&&f(b,s);try{o[c]=b}catch{t.DEBUG_BUILD&&n.debug.log(`Failed to replace method "${c}" in object`,o)}}function u(o,c,u){try{Object.defineProperty(o,c,{value:u,writable:!0,configurable:!0})}catch{t.DEBUG_BUILD&&n.debug.log(`Failed to add non-enumerable property "${String(c)}" to object`,o)}}function f(t,n){try{const o=n.prototype||{};t.prototype=n.prototype=o,u(t,"__sentry_original__",n)}catch{}}function s(t,n,o,c=!0){const u=t[n];if("function"!=typeof u)throw new Error(`Cannot wrap method: ${n} is not a function`);if(b(u))throw new Error(`Attempting to wrap method ${n} multiple times`);f(o,u),Object.defineProperty(t,n,{writable:!0,configurable:!0,enumerable:c,value:o})}function b(t){return t.__sentry_original__}function l(t){if((0,o.isError)(t))return{message:t.message,name:t.name,stack:t.stack,...p(t)};if((0,o.isEvent)(t)){const{type:n,target:o,currentTarget:c,detail:u}=t;return{type:n,target:o,currentTarget:c,...u?{detail:u}:{},...p(t)}}return t}function p(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}function y(t){const n=Object.keys(l(t));return n.sort(),n[0]?n.join(", "):"[object has no keys]"}function j(t){return O(t,new Map)}function O(t,n){if(null===t||"object"!=typeof t)return t;const o=n.get(t);if(void 0!==o)return o;if(Array.isArray(t)){const o=[];return n.set(t,o),t.forEach(t=>{o.push(O(t,n))}),o}if(_(t)){const o={};n.set(t,o);return Object.keys(t).forEach(c=>{const u=t[c];void 0!==u&&(o[c]=O(u,n))}),o}return t}function _(t){const n=t.constructor;return n===Object||void 0===n}function P(t){let n;switch(!0){case null==t:n=new String(t);break;case"symbol"==typeof t||"bigint"==typeof t:n=Object(t);break;case(0,o.isPrimitive)(t):n=new t.constructor(t);break;default:n=t}return n}},2486,[2470,2474,2487]);
960__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isDOMError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isDOMException",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"isErrorEvent",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isEvent",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isInstanceOf",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"isParameterizedString",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"isPrimitive",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"isRequest",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isSyntheticEvent",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isThenable",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"isVueViewModel",{enumerable:!0,get:function(){return v}});const t=Object.prototype.toString;function n(n){switch(t.call(n)){case"[object Error]":case"[object E
960xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return P(n,Error)}}function u(n,u){return t.call(n)===`[object ${u}]`}function o(t){return u(t,"ErrorEvent")}function c(t){return u(t,"DOMError")}function f(t){return u(t,"DOMException")}function b(t){return u(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function s(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function p(t){return u(t,"Object")}function y(t){return"undefined"!=typeof Event&&P(t,Event)}function j(t){return"undefined"!=typeof Element&&P(t,Element)}function O(t){return u(t,"RegExp")}function E(t){return Boolean(t?.then&&"function"==typeof t.then)}function _(t){return p(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function P(t,n){try{return t instanceof n}catch{return!1}}function v(t){return!("object"!=typeof t||null===t||!(t.__isVue||t._isVue||t.__v_isVNode))}function x(t){return"undefined"!=typeof Request&&P(t,Request)}},2487,[]);
961__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"safeDateNow",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"safeMathRandom",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"withRandomSafeContext",{enumerable:!0,get:function(){return o}});var n=r(d[0]);let t;function o(o){if(void 0!==t)return t?t(o):o();const u=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),f=n.GLOBAL_OBJ;return u in f&&"function"==typeof f[u]?(t=f[u],t(o)):(t=null,o())}function u(){return o(()=>Math.random())}function f(){return o(()=>Date.now())}},2488,[2472]);
962__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isMatchingPattern",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"safeJoin",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"snipLine",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"truncate",{enumerable:!0,get:function(){return i}});var t=r(d[0]),n=r(d[1]);function i(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function u(t,n){let i=t;const u=i.length;if(u<=150)return i;n>u&&(n=u);let o=Math.max(n-60,0);o<5&&(o=0);let s=Math.min(o+140,u);return s>u-5&&(s=u),s===u&&(o=Math.max(s-140,0)),i=i.slice(o,s),o>0&&(i=`'{snip} ${i}`),s<u&&(i+=" {snip}"),i}function o(i,u){if(!Array.isArray(i))return"";const o=[];for(let u=0;u<i.length;u++){const s=i[u];(0,t.isPrimitive)(s)?o.push(String(s)):s instanceof Error?o.push(s.message?`${s.name}: ${s.message}`:s.name):o.push((0,n.stringifyValue)(void 0,s))}return o.join(u)}function s(n,i,u=!1){return!!(0,t.isString)(n)&&((0,t.isRegExp)(i)?i.test(n):(0,t.isString)(i)?u?n===i:n.includes(i):"function"==typeof i&&i(n))}function c(t,n=[],i=!1){for(const u of n)if(s(t,u,i))return!0;return!1}},2489,[2487,2490]);
963__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalize",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"normalizeToSize",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"normalizeUrlToBase",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"setNormalizeStringifier",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stringifyValue",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let c;function u(t){c=t}function f(t,n=100,o=1/0){try{return s("",t,n,o)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function l(t,n=3,o=102400){const c=f(t,n);return u=c,y(JSON.stringify(u))>o?l(t,n-1,o):c;var u}function s(o,c,u=1/0,f=1/0,l=j()){const[b,y]=l;if(null==c||["boolean","string"].includes(typeof c)||"number"==typeof c&&Number.isFinite(c))return c;const O=p(o,c);if(!O.startsWith("[object "))return O;if((0,t.hasSkipNormalizationHint)(c))return c;const h=(0,t.getNormalizationDepthOverrideHint)(c),P=void 0!==h?h:u;if(0===P)return O.replace("object ","");if(b(c))return"[Circular ~]";const $=c;if($&&"function"==typeof $.toJSON)try{return s("",$.toJSON(),P-1,f,l)}catch{}const z=Array.isArray(c)?[]:{};let N=0;const S=(0,n.convertToPlainObject)(c);for(const t in S){if(!Object.prototype.hasOwnProperty.call(S,t))continue;if(N>=f){z[t]="[MaxProperties ~]";break}const n=S[t];z[t]=s(t,n,P-1,f,l),N++}return y(c),z}function p(t,n){try{if(c){const t=c(n);if(t)return t}if(void 0!==g&&n===g)return"[Global]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${(0,o.getFunctionName)(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;return`[object ${b(n)}]`}catch(t){return`**non-serializable** (${t})`}}function b(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}function y(t){return~-encodeURI(t).split(/%..|./).length}function O(t,n){const o=n.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let c=t;try{c=decodeURI(t)}catch{}return c.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${o}/*`,"ig"),"app:///")}function j(){const t=new WeakSet;return[function(n){return!!t.has(n)||(t.add(n),!1)},function(n){t.delete(n)}]}},2490,[2491,2486,2477]);
964__d(function(g,r,i,a,m,e,d){"use strict";
964Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"hasSkipNormalizationHint",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=Symbol.for("sentry.skipNormalization"),o=Symbol.for("sentry.overrideNormalizationDepth");function u(o){(0,t.addNonEnumerableProperty)(o,n,!0)}function c(n,u){(0,t.addNonEnumerableProperty)(n,o,u)}function f(t){return Boolean(t[n])}function l(t){const n=t[o];return"number"==typeof n?n:void 0}},2491,[2486]);
965__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"timestampInSeconds",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);const o=1e3;function u(){return(0,n.safeDateNow)()/o}function f(){const{performance:f}=t.GLOBAL_OBJ;if(!f?.now||!f.timeOrigin)return u;const c=f.timeOrigin;return()=>(c+(0,n.withRandomSafeContext)(()=>f.now()))/o}let c;function s(){return(c??(c=f()))()}let b=null;function O(){const{performance:o}=t.GLOBAL_OBJ;if(!o?.now)return;const u=3e5,f=(0,n.withRandomSafeContext)(()=>o.now()),c=(0,n.safeDateNow)(),s=o.timeOrigin;if("number"==typeof s){if(Math.abs(s+f-c)<u)return s}const b=o.timing?.navigationStart;if("number"==typeof b){if(Math.abs(b+f-c)<u)return b}return c-f}function l(){return null===b&&(b=O()),b}},2492,[2488,2472]);
966__d(function(g,r,i,a,m,e,d){"use strict";function t(n,o,c=2){if(!o||"object"!=typeof o||c<=0)return o;if(n&&0===Object.keys(o).length)return n;const u={...n};for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(u[n]=t(u[n],o[n],c-1));return u}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return t}})},2493,[]);
967__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateSpanId",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"generateTraceId",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(){return(0,n.uuid4)()}function u(){return(0,n.uuid4)().substring(16)}},2494,[2485]);
968__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getSpanForScope",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_setSpanForScope",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o="_sentrySpan";function u(u,c){c?(0,n.addNonEnumerableProperty)(u,o,(0,t.makeWeakRef)(c)):delete u[o]}function c(n){return(0,t.derefWeakRef)(n[o])}},2495,[2486,2496]);
969__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"derefWeakRef",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"makeWeakRef",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){try{const f=t.GLOBAL_OBJ.WeakRef;if("function"==typeof f)return new f(n)}catch{}return n}function f(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}},2496,[2472]);
970__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"chainAndCopyPromiseLike",{enumerable:!0,get:function(){return o}});const n=n=>n instanceof Promise&&!n[t],t=Symbol("chained PromiseLike"),o=(t,o,u)=>{const s=t.then(n=>(o(n),n),n=>{throw u(n),n});return n(s)&&n(t)?s:c(t,s)},c=(n,o)=>{if(!o)return n;let c=!1;for(const t in n){if(t in o)continue;c=!0;const u=n[t];"function"==typeof u?Object.defineProperty(o,t,{value:(...t)=>u.apply(n,t),enumerable:!0,configurable:!0,writable:!0}):o[t]=u}return c&&Object.assign(o,{[t]:!0}),o}},2497,[]);
971__d(function(g,r,i,a,m,e,d){"use strict";
971Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"attributeValueToTypedAttributeValue",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"estimateTypedAttributesSizeInBytes",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isAttributeObject",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"serializeAttributes",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function n(t){return"object"==typeof t&&null!=t&&!Array.isArray(t)&&Object.keys(t).includes("value")}function u(t,u){const{value:o,unit:f}=n(t)?t:{value:t,unit:void 0},s=c(o),l=f&&"string"==typeof f?{unit:f}:{};if(s)return{...s,...l};if(!u||"skip-undefined"===u&&void 0===o)return;let y="";try{y=JSON.stringify(o)??""}catch{}return{value:y,type:"string",...l}}function o(t,n=!1){const o={};for(const[f,s]of Object.entries(t??{})){const t=u(s,n);t&&(o[f]=t)}return o}function f(n){if(!n)return 0;let u=0;for(const[o,f]of Object.entries(n)){u+=2*o.length,u+=2*f.type.length,u+=2*(f.unit?.length??0);const n=f.value;Array.isArray(n)?u+=s(n[0])*n.length:(0,t.isPrimitive)(n)?u+=s(n):u+=100}return u}function s(t){return"string"==typeof t?2*t.length:"boolean"==typeof t?4:"number"==typeof t?8:0}function c(t){if(Array.isArray(t))return{value:t,type:"array"};const n="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";return n?{value:t,type:n}:void 0}},2498,[2487]);
972__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getClient",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"getCurrentScope",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getExternalPropagationContext",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getGlobalScope",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getIsolationScope",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"getTraceContextFromScope",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"withIsolationScope",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"withScope",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]);let u;function p(t){u=t}function f(){return u?.()}function l(){return void 0!==u}function s(){const o=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(o).getCurrentScope()}function S(){const o=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(o).getIsolationScope()}function b(){return(0,n.getGlobalSingleton)("globalScope",()=>new o.Scope)}function y(...o){const c=(0,n.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(c);if(2===o.length){const[t,n]=o;return t?u.withSetScope(t,n):u.withScope(n)}return u.withScope(o[0])}function C(...o){const c=(0,n.getMainCarrier)(),u=(0,t.getAsyncContextStrategy)(c);if(2===o.length){const[t,n]=o;return t?u.withSetIsolationScope(t,n):u.withIsolationScope(n)}return u.withIsolationScope(o[0])}function P(){return s().getClient()}function x(t){const n=f();if(n)return{trace_id:n.traceId,span_id:n.spanId};const o=t.getPropagationContext(),{traceId:u,parentSpanId:p,propagationSpanId:l}=o,s={trace_id:u,span_id:l||(0,c.generateSpanId)()};return p&&(s.parent_span_id=p),s}},2499,[2480,2475,2483,2494]);
973__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return D}});const t="sentry.source",n="sentry.sample_rate",T="sentry.previous_trace_sample_rate",E="sentry.op",_="sentry.origin",u="sentry.status.message",I="sentry.idle_span_finish_reason",A="sentry.measurement_unit",S="sentry.measurement_value",o="sentry.release",c="sentry.environment",N="sentry.segment.name",R="sentry.segment.id",f="sentry.sdk.name",b="sentry.sdk.version",s="sentry.sdk.integrations",y="user.id",M="user.email",U="user.ip_address",l="user.n
973ame",O="sentry.custom_span_name",p="sentry.profile_id",P="sentry.exclusive_time",C="cache.hit",j="cache.key",B="cache.item_size",Y="http.request.method",L="url.full",D="sentry.link.type",h="gen_ai.conversation.id"},2500,[]);
974__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"setHttpStatus",{enumerable:!0,get:function(){return c}});const t=0,n=1,s=2;function u(t){if(t<400&&t>=100)return{code:n};if(t>=400&&t<500)switch(t){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"};default:return{code:s,message:"internal_error"}}return{code:s,message:"internal_error"}}function c(t,n){t.setAttribute("http.response.status_code",n);const s=u(n);"unknown_error"!==s.message&&t.setStatus(s)}},2501,[]);
975__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);const o="_sentryScope",u="_sentryIsolationScope",c=Symbol.for("sentry.otelSourceInference");function f(c,f,p){c&&((0,n.addNonEnumerableProperty)(c,u,(0,t.makeWeakRef)(p)),(0,n.addNonEnumerableProperty)(c,o,f))}function p(n){const c=n;return{scope:c[o],isolationScope:(0,t.derefWeakRef)(c[u])}}function l(t){(0,n.addNonEnumerableProperty)(t,c,!0)}function s(n){return!0===n[c]}},2502,[2486,2496]);
976__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"extractTraceparentData",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"generateTraceparentHeader",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"shouldContinueTrace",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),u=r(d[4]),p=r(d[5]);const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function f(t){if(!t)return;const n=t.match(s);if(!n)return;let o;return"1"===n[3]?o=!0:"0"===n[3]&&(o=!1),{traceId:n[1],parentSampled:o,parentSpanId:n[2]}}function l(t,o){const c=f(t),s=(0,n.baggageHeaderToDynamicSamplingContext)(o);if(!c?.traceId)return{traceId:(0,u.generateTraceId)(),sampleRand:(0,p.safeMathRandom)()};const l=I(c,s);s&&(s.sample_rand=l.toString());const{traceId:b,parentSpanId:S,parentSampled:R}=c;return{traceId:b,parentSpanId:S,sampled:R,dsc:s||{},sampleRand:l}}function b(t=(0,u.generateTraceId)(),n=(0,u.generateSpanId)(),o){let c="";return void 0!==o&&(c=o?"-1":"-0"),`${t}-${n}${c}`}function S(t=(0,u.generateTraceId)(),n=(0,u.generateSpanId)(),o){return`00-${t}-${n}-${o?"01":"00"}`}function I(t,n){const o=(0,c.parseSampleRate)(n?.sample_rand);if(void 0!==o)return o;const u=(0,c.parseSampleRate)(n?.sample_rate);return u&&void 0!==t?.parentSampled?t.parentSampled?(0,p.safeMathRandom)()*u:u+(0,p.safeMathRandom)()*(1-u):(0,p.safeMathRandom)()}function R(n,c){const u=(0,o.extractOrgIdFromClient)(n);if(c&&u&&c!==u)return t.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${c}, SDK options: ${u})`),!1;return!(n.getOptions().strictTraceContinuation||!1)||!(c&&!u||!c&&u)||(t.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${c}, Sentry client: ${u})`),!1)}},2503,[2474,2504,2505,2506,2494,2488]);
977__d(function(g,r,i,a,m,e,d){"use strict";
977Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"objectToBaggageHeader",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"parseBaggageHeader",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const o="sentry-",u=/^sentry-/,s=8192;function f(t){const n=l(t);if(!n)return;const c=Object.entries(n).reduce((t,[n,c])=>{if(n.startsWith(o)){t[n.slice(o.length)]=c}return t},{});return Object.keys(c).length>0?c:void 0}function b(t){if(!t)return;return j(Object.entries(t).reduce((t,[n,c])=>(c&&(t[`${o}${n}`]=c),t),{}))}function l(t){if(t&&((0,c.isString)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,n)=>{const c=y(n);return Object.entries(c).forEach(([n,c])=>{t[n]=c}),t},{}):y(t)}function y(t){return t.split(",").map(t=>{const n=t.indexOf("=");if(-1===n)return[];return[t.slice(0,n),t.slice(n+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[n,c])=>(n&&c&&(t[n]=c),t),{})}function j(c){if(0!==Object.keys(c).length)return Object.entries(c).reduce((c,[o,u],f)=>{const b=`${encodeURIComponent(o)}=${encodeURIComponent(u)}`,l=0===f?b:`${c},${b}`;return l.length>s?(t.DEBUG_BUILD&&n.debug.warn(`Not adding key: ${o} with val: ${u} to baggage header due to exceeding baggage size limits.`),c):l},"")}function O(t,n){if(!t)return n;const c=l(t),u=l(n);if(!u)return t;const s={};let f=!1;const b={},y={};for(const[t,n]of Object.entries(u))t.startsWith(o)?(b[t]=n,f=!0):y[t]=n;if(c)for(const[t,n]of Object.entries(c))f&&t.startsWith(o)||(s[t]=n);f&&Object.assign(s,b);for(const[t,n]of Object.entries(y))s[t]??(s[t]=n);return j(s)}},2504,[2470,2474,2487]);
978__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"dsnFromString",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"dsnToString",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"extractOrgIdFromClient",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"extractOrgIdFromDsnHost",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"makeDsn",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]);const o=/^o(\d+)\./,c=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(t){return"http"===t||"https"===t}function p(t,n=!1){const{host:o,path:c,pass:s,port:p,projectId:u,protocol:l,publicKey:f}=t;return`${l}://${f}${n&&s?`:${s}`:""}@${o}${p?`:${p}`:""}/${c?`${c}/`:c}${u}`}function u(t){const o=c.exec(t);if(!o)return void(0,n.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[s,p,u="",f="",b="",I=""]=o.slice(1);let y="",h=I;const $=h.split("/");if($.length>1&&(y=$.slice(0,-1).join("/"),h=$.pop()),h){const t=h.match(/^\d+/);t&&(h=t[0])}return l({host:f,pass:u,path:y,projectId:h,port:b,protocol:s,publicKey:p})}function l(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function f(o){if(!t.DEBUG_BUILD)return!0;const{port:c,projectId:p,protocol:u}=o;return!["protocol","publicKey","host","projectId"].find(t=>!o[t]&&(n.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(p.match(/^\d+$/)?s(u)?!c||!isNaN(parseInt(c,10))||(n.debug.error(`Invalid Sentry Dsn: Invalid port ${c}`),!1):(n.debug.error(`Invalid Sentry Dsn: Invalid protocol ${u}`),!1):(n.debug.error(`Invalid Sentry Dsn: Invalid projectId ${p}`),!1))}function b(t){const n=t.match(o);return n?.[1]}function I(t){const n=t.getOptions(),{host:o}=t.getDsn()||{};let c;
978return n.orgId?c=String(n.orgId):o&&(c=b(o)),c}function y(t){const n="string"==typeof t?u(t):l(t);if(n&&f(n))return n}},2505,[2470,2474]);
979__d(function(g,r,i,a,m,e,d){"use strict";function t(t){if("boolean"==typeof t)return Number(t);const n="string"==typeof t?parseFloat(t):t;return"number"!=typeof n||isNaN(n)||n<0||n>1?void 0:n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseSampleRate",{enumerable:!0,get:function(){return t}})},2506,[]);
980__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"startIdleSpan",{enumerable:!0,get:function(){return O}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]),c=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]),T=r(d[9]),f=r(d[10]),_=r(d[11]),I=r(d[12]),h=r(d[13]);const E={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},N="heartbeatFailed",A="idleTimeout",b="finalTimeout",R="externalFinish";function O(I,O={}){const y=new Map;let C,U=!1,F=R,P=!O.disableAutoFinish;const v=[],{idleTimeout:x=E.idleTimeout,finalTimeout:B=E.finalTimeout,childSpanTimeout:M=E.childSpanTimeout,beforeSpanEnd:J,trimIdleSpanEndTimestamp:L=!0}=O,w=(0,n.getClient)(),G=(0,n.getCurrentScope)();if(!w||!(0,p.hasSpansEnabled)()){const t=new T.SentryNonRecordingSpan({traceId:G.getPropagationContext().traceId});return(0,h.setCapturedScopesOnSpan)(t,G,(0,n.getIsolationScope)()),t}const j=(0,S.getActiveSpan)(),z=D(I);function H(){C&&(clearTimeout(C),C=void 0)}function Y(n){H(),C=setTimeout(()=>{!U&&0===y.size&&P&&(F=A,z.end(n))},x)}function k(n){C=setTimeout(()=>{!U&&P&&(F=N,z.end(n))},M)}function K(n){H(),y.set(n,!0);k((0,l.timestampInSeconds)()+M/1e3)}function $(n){if(y.has(n)&&y.delete(n),0===y.size){Y((0,l.timestampInSeconds)()+x/1e3)}}function q(n){U=!0,y.clear(),v.forEach(n=>n()),(0,u._setSpanForScope)(G,j);const p=(0,S.spanToJSON)(z),{start_timestamp:c}=p;if(!c)return;p.data[s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||z.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,F);const l=p.status;l&&"unknown"!==l||z.setStatus({code:_.SPAN_STATUS_OK}),o.debug.log(`[Tracing] Idle span "${p.op}" finished`);const T=(0,S.getSpanDescendants)(z).filter(n=>n!==z);let f=0;T.forEach(s=>{s.isRecording()&&(s.setStatus({code:_.SPAN_STATUS_ERROR,message:"cancelled"}),s.end(n),t.DEBUG_BUILD&&o.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(s,void 0,2)));const p=(0,S.spanToJSON)(s),{timestamp:c=0,start_timestamp:u=0}=p,l=u<=n,T=c-u<=(B+x)/1e3;if(t.DEBUG_BUILD){const n=JSON.stringify(s,void 0,2);l?T||o.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",n):o.debug.log("[Tracing] Discarding span since it happened after idle span was finished",n)}T&&l||((0,S.removeChildSpanFromSpan)(z,s),f++)}),f>0&&z.setAttribute("sentry.idle_span_discarded_spans",f)}return z.end=new Proxy(z.end,{apply(n,t,s){if(J&&J(z),(0,T.spanIsNonRecordingSpan)(t))return;const[o,...p]=s,u=o||(0,l.timestampInSeconds)(),f=(0,S.spanTimeInputToSeconds)(u),_=(0,S.getSpanDescendants)(z).filter(n=>n!==z),I=(0,S.spanToJSON)(z);if(!_.length||!L)return q(f),Reflect.apply(n,t,[f,...p]);const h=w.getOptions().ignoreSpans,E=_?.reduce((n,t)=>{const s=(0,S.spanToJSON)(t);return s.timestamp?h&&(0,c.shouldIgnoreSpan)({description:s.description,op:s.op,attributes:s.data},h)?n:n?Math.max(n,s.timestamp):s.timestamp:n},void 0),N=I.start_timestamp,A=Math.min(N?N+B/1e3:1/0,Math.max(N||-1/0,Math.min(f,E||1/0)));return q(A),Reflect.apply(n,t,[A,...p])}}),v.push(w.on("spanStart",n=>{if(U||n===z||(0,S.spanToJSON)(n).timestamp||n instanceof f.SentrySpan&&n.isStandaloneSpan())return;(0,S.getSpanDescendants)(z).includes(n)&&K(n.spanContext().spanId)})),v.push(w.on("spanEnd",n=>{U||$(n.spanContext().spanId)})),v.push(w.on("idleSpanEnableAutoFinish",n=>{n===z&&(P=!0,Y(),y.size&&k())})),O.disableAutoFinish||Y(),setTimeout(()=>{U||(z.setStatus({code:_.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),F=b,z.end())},B),z}function D(s){const p=(0,I.startInactiveSpan)(s);return(0,u._setSpanForScope)((0,n.getCurrentScope)(),p),t.DEBUG_BUILD&&o.debug.log("[Tracing] Started span is an i
980dle span"),p}},2507,[2499,2470,2500,2474,2508,2509,2495,2479,2492,2510,2511,2501,2520,2502]);
981__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hasSpansEnabled",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const _=n||(0,t.getClient)()?.getOptions();return!(!_||null==_.tracesSampleRate&&!_.tracesSampler)}},2508,[2499]);
982__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reparentChildSpans",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),i=r(d[2]);function o(t){n.debug.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function s(n,s){if(!s?.length)return!1;for(const p of s){if(u(p)){if(n.description&&(0,i.isMatchingPattern)(n.description,p))return t.DEBUG_BUILD&&o(n),!0;continue}const s=!!p.attributes&&Object.keys(p.attributes).length>0;if(!p.name&&!p.op&&!s)continue;const f=!p.name||n.description&&(0,i.isMatchingPattern)(n.description,p.name),b=!p.op||n.op&&(0,i.isMatchingPattern)(n.op,p.op),y=!p.attributes||Object.entries(p.attributes).every(([t,i])=>c(n.attributes?.[t],i));if(f&&b&&y)return t.DEBUG_BUILD&&o(n),!0}return!1}function c(t,n){return"string"==typeof t&&("string"==typeof n||n instanceof RegExp)?(0,i.isMatchingPattern)(t,n):Array.isArray(t)&&Array.isArray(n)?t.length===n.length&&t.every((t,i)=>t===n[i]):t===n}function p(t,n){const i=n.parent_span_id,o=n.span_id;if(i)for(const n of t)n.parent_span_id===o&&(n.parent_span_id=i)}function u(t){return"string"==typeof t||t instanceof RegExp}},2509,[2470,2474,2489]);
983__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"spanIsNonRecordingSpan",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]);const o=Symbol.for("sentry.nonRecordingSpan");class u{constructor(s={}){this._traceId=s.traceId||(0,n.generateTraceId)(),this._spanId=s.spanId||(0,n.generateSpanId)(),this.dropReason=s.dropReason,(0,t.addNonEnumerableProperty)(this,o,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:s.TRACE_FLAG_NONE}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,s){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function c(t){return!!t&&!0===t[o]}},2510,[2486,2494,2479]);
984__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentrySpan",{enumerable:!0,get:function(){return E}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),a=r(d[3]),_=r(d[4]),p=r(d[5]),o=r(d[6]),h=r(d[7]),S=r(d[8]),u=r(d[9]),c=r(d[10]),T=r(d[11]),l=r(d[12]);class E{constructor(t={}){this._traceId=t.traceId||(0,p.generateTraceId)(),this._spanId=t.spanId||(0,p.generateSpanId)(),this._startTime=t.startTimestamp||(0,h.timestampInSeconds)(),this._links=t.links,this._attributes={},this.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,s){}spanContext(){const{_spanId:t,_traceId:s,_sampled:n}=this;return{spanId:t,traceId:s,traceFlags:n?o.TRACE_FLAG_SAMPLED:o.TRACE_FLAG_NONE}}setAttribute(t,s){return void 0===s?delete this._attributes[t]:this._attributes[t]=s,this}setAttributes(t){return Object.keys(t).forEach(s=>this.setAttribute(s,t[s])),this}updateStartTime(t){this._startTime=(0,o.spanTimeInputToSeconds)(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,(0,l.spanShouldInferOtelSource)(this)||this.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(t){this._endTime||(this._endTime=(0,o.spanTimeInputToSeconds)(t),(0,u.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,o.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[a.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[a.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:(0,c.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,o.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,o.getRootSpan)(this).spanContext().spanId:void 0,links:(0,o.convertSpanLinksForEnvelope)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,o.getRootSpan)(this),status:(0,o.getSimpleStatus)(this._status),attributes:(0,o.addStatusMessageAttribute)(this._attributes,this._status),links:(0,o.getStreamedSpanLinks)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,a){s.DEBUG_BUILD&&_.debug.log("[Tracing] Adding an event to span:",t);const p=I(n)?n:a||(0,h.timestampInSeconds)(),S=I(n)?{}:n||{},u={name:t,time:(0,o.spanTimeInputToSeconds)(p),attributes:S};return this._events.push(u),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const a=(0,t.getClient)();a&&(a.emit("spanEnd",this),this._isStandaloneSpan||a.emit("afterSpanEnd",this));if(!(this._isStandaloneSpan||this===(0,o.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?N((0,n.createSpanEnvelope)([this],a)):(s.DEBUG_BUILD&&_.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),a&&a.recordDroppedEvent("sample_rate","span")));if(a&&(0,T.hasSpanStreamingEnabled)(a))return void a.emit("afterSegmentSpanEnd",this);const p=this._convertSpanToTransaction();if(p){((0,l.getCapturedScopesOnSpan)(this).scope||(0,t.getCurrentScope)()).captureEvent(p)}}_convertSpanToTransaction(){if(!A((0,o.spanToJSON)(this)))return;this._name||(s.DEBUG_BUILD&&_.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=(0,l.getCapturedScopesOnSpan)(this),p=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const h=(0,o.getSpanDescendants)(this).filter(t=>t!==this&&!b(t)).map(t=>(0,o.spanToJSON)(t)).filter(A),u=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let T=!1;h.forEach(t=>{delete t.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],t.op?.startsWith("gen_ai.")&&(T=!0)});const E={contexts:{trace:(0,o.spanToTransactionTraceContext)(this)},spans:h.length>1e3?h.sort((t,s)=>t.start_timestamp-s.start_timestamp).slice(0,1e3):h,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:(0,S.getDynamicSamplingContextFromSpan)(this),hasGenAiSpans:T},request:p,...u&&{transaction_info:{source:u}}},I=(0,c.timedEventsToMeasurements)(this._events);return I&&Object.keys(I).length&&(s.DEBUG_BUILD&&_.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(I,void 0,2)),E.measurements=I),E}}function I(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function A(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}function b(t){return t instanceof E&&t.isStandaloneSpan()}function N(s){const n=(0,t.getClient)();if(!n)return;const a=s[1];a&&0!==a.length?n.sendEnvelope(s):n.recordDroppedEvent("before_send","span")}},2511,[2499,2470,2512,2500,2474,2494,2479,2492,2513,2517,2518,2519,2502]);
985__d(function(g,r,i,a,m,e,d){"use strict";
985Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_enhanceEventWithSdkInfo",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createEventEnvelope",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createSessionEnvelope",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"createSpanEnvelope",{enumerable:!0,get:function(){return v}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),p=r(d[4]),c=r(d[5]),u=r(d[6]);function l(n,t){if(!t)return n;const o=n.sdk||{};return n.sdk={...o,name:o.name||t.name,version:o.version||t.version,integrations:[...n.sdk?.integrations||[],...t.integrations||[]],packages:[...n.sdk?.packages||[],...t.packages||[]],settings:n.sdk?.settings||t.settings?{...n.sdk?.settings,...t.settings}:void 0},n}function S(n,t,c,u){const l=(0,s.getSdkMetadataForEnvelopeHeader)(c),S={sent_at:new Date((0,p.safeDateNow)()).toISOString(),...l&&{sdk:l},...!!u&&t&&{dsn:(0,o.dsnToString)(t)}},f="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return(0,s.createEnvelope)(S,[f])}function f(n,t,o,p){const c=(0,s.getSdkMetadataForEnvelopeHeader)(o),u=n.type&&"replay_event"!==n.type?n.type:"event";l(n,o?.sdk);const S=(0,s.createEventEnvelopeHeaders)(n,c,p,t);delete n.sdkProcessingMetadata;const f=[{type:u},n];return(0,s.createEnvelope)(S,[f])}function v(l,S){const f=(0,n.getDynamicSamplingContextFromSpan)(l[0]),v=S?.getDsn(),k=S?.getOptions().tunnel,b={sent_at:new Date((0,p.safeDateNow)()).toISOString(),...(y=f,!!y.trace_id&&!!y.public_key&&{trace:f}),...!!k&&v&&{dsn:(0,o.dsnToString)(v)}};var y;const{beforeSendSpan:E,ignoreSpans:O}=S?.getOptions()||{},_=O?.length?l.filter(n=>{const t=(0,u.spanToJSON)(n);return!(0,c.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},O)}):l,h=l.length-_.length;h&&S?.recordDroppedEvent("before_send","span",h);const D=E?n=>{const o=(0,u.spanToJSON)(n),s=(0,t.isStreamedBeforeSendSpanCallback)(E)?o:E(o);return s||((0,u.showSpanDropWarning)(),o)}:u.spanToJSON,N=[];for(const n of _){const t=D(n);t&&N.push((0,s.createSpanEnvelopeItem)(t))}return(0,s.createEnvelope)(b,N)}},2512,[2513,2515,2505,2516,2488,2509,2479]);
986__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"freezeDscOnSpan",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"spanToBaggageHeader",{enumerable:!0,get:function(){return b}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),p=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]),f=r(d[9]);const _="_frozenDsc";function T(n,t){const o=n;(0,u.addNonEnumerableProperty)(o,_,t)}function E(t,o){const c=o.getOptions(),{publicKey:p}=o.getDsn()||{},u={environment:c.environment||n.DEFAULT_ENVIRONMENT,release:c.release,public_key:p,trace_id:t,org_id:(0,s.extractOrgIdFromClient)(o)};return o.emit("createDsc",u),u}function y(n,t){const o=t.getPropagationContext();return o.dsc||E(o.traceId,n)}function C(n){const s=(0,t.getClient)();if(!s)return{};const u=(0,S.getRootSpan)(n),T=(0,S.spanToJSON)(u),C=T.data,b=u.spanContext().traceState,O=b?.get("sentry.sample_rate")??C[o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??C[o.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function R(n){return"number"!=typeof O&&"string"!=typeof O||(n.sample_rate=`${O}`),n}const I=u[_];if(I)return R(I);if((0,l.spanIsNonRecordingSpan)(u)&&!(0,p.hasSpansEnabled)(s.getOptions())){const n=(0,f.getCapturedScopesOnSpan)(u).scope;if(n)return R({...y(s,n)})}const A=b?.get("sentry.dsc"),N=A&&(0,c.baggageHeaderToDynamicSamplingContext)(A);if(N)return R(N);const P=E(n.spanContext().traceId,s),x=C[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??C["sentry.span.source"],D=T.description;return"url"!==x&&D&&(P.transaction=D),(0,p.hasSpansEnabled)()&&(P.sampled=String((0,S.spanIsSampled)(u)),P.sample_rand=b?.get("sentry.sample_rand")??(0,f.getCapturedScopesOnSpan)(u).scope?.getPropagationContext().sampleRand.toString()),R(P),s.emit("createDsc",P,u),P}function b(n){const t=C(n);return(0,c.dynamicSamplingContextToSentryBaggageHeader)(t)}},2513,[2514,2499,2500,2504,2505,2508,2486,2479,2510,2502]);
987__d(function(g,r,i,a,m,e,d){"use strict";
987Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return n}});const t="production",n="development"},2514,[]);
988__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"withStreamedSpan",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return(0,t.addNonEnumerableProperty)(n,"_streamed",!0),n}function u(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}},2515,[2486]);
989__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addItemToEnvelope",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createEnvelope",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"envelopeContainsItemType",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"parseEnvelope",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"serializeEnvelope",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),i=r(d[3]),c=r(d[4]);function u(t,n=[]){return[t,n]}function f(t,n){const[o,i]=t;return[o,[...i,n]]}function l(t,n){const o=t[1];for(const t of o){if(n(t,t[0].type))return!0}return!1}function s(t,n){return l(t,(t,o)=>n.includes(o))}function p(n){const o=(0,t.getSentryCarrier)(c.GLOBAL_OBJ);return o.encodePolyfill?o.encodePolyfill(n):(new TextEncoder).encode(n)}function y(n){const o=(0,t.getSentryCarrier)(c.GLOBAL_OBJ);return o.decodePolyfill?o.decodePolyfill(n):(new TextDecoder).decode(n)}function b(t){const[n,i]=t;let c=JSON.stringify(n);function u(t){"string"==typeof c?c="string"==typeof t?c+t:[p(c),t]:c.push("string"==typeof t?p(t):t)}for(const t of i){const[n,i]=t;if(u(`\n${JSON.stringify(n)}\n`),"string"==typeof i||i instanceof Uint8Array)u(i);else{let t;try{t=JSON.stringify(i)}catch{t=JSON.stringify((0,o.normalize)(i))}u(t)}}return"string"==typeof c?c:O(c)}function O(t){const n=t.reduce((t,n)=>t+n.length,0),o=new Uint8Array(n);let i=0;for(const n of t)o.set(n,i),i+=n.length;return o}function v(t){let n="string"==typeof t?p(t):t;function o(t){const o=n.subarray(0,t);return n=n.subarray(t+1),o}function i(){let t=n.indexOf(10);return t<0&&(t=n.length),JSON.parse(y(o(t)))}const c=i(),u=[];for(;n.length;){const t=i(),n="number"==typeof t.length?t.length:void 0;u.push([t,n?o(n):i()])}return[c,u]}function _(t){return[{type:"span"},t]}function h(t){const n="string"==typeof t.data?p(t.data):t.data;return[{type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},n]}const P={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function S(t){return t in P}function j(t){return S(t)?P[t]:t}function E(t){if(!t?.sdk)return;const{name:n,version:o}=t.sdk;return{name:n,version:o}}function T(t,o,c,u){const f=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date((0,i.safeDateNow)()).toISOString(),...o&&{sdk:o},...!!c&&u&&{dsn:(0,n.dsnToString)(u)},...f&&{trace:f}}}},2516,[2475,2505,2490,2488,2472]);
990__d(function(g,r,i,a,m,e,d){"use strict";
990Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"logSpanEnd",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"logSpanStart",{enumerable:!0,get:function(){return p}});var n=r(d[0]),o=r(d[1]),t=r(d[2]);function p(p){if(!n.DEBUG_BUILD)return;const{description:s="< unknown name >",op:u="< unknown op >",parent_span_id:c}=(0,t.spanToJSON)(p),{spanId:$}=p.spanContext(),f=(0,t.spanIsSampled)(p),l=(0,t.getRootSpan)(p),I=l===p,S=`[Tracing] Starting ${f?"sampled":"unsampled"} ${I?"root ":""}span`,D=[`op: ${u}`,`name: ${s}`,`ID: ${$}`];if(c&&D.push(`parent ID: ${c}`),!I){const{op:n,description:o}=(0,t.spanToJSON)(l);D.push(`root ID: ${l.spanContext().spanId}`),n&&D.push(`root op: ${n}`),o&&D.push(`root description: ${o}`)}o.debug.log(`${S}\n  ${D.join("\n  ")}`)}function s(p){if(!n.DEBUG_BUILD)return;const{description:s="< unknown name >",op:u="< unknown op >"}=(0,t.spanToJSON)(p),{spanId:c}=p.spanContext(),$=`[Tracing] Finishing "${u}" ${(0,t.getRootSpan)(p)===p?"root ":""}span "${s}" with ID ${c}`;o.debug.log($)}},2517,[2470,2474,2479]);
991__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setMeasurement",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),E=r(d[2]),T=r(d[3]);function u(u,o,_,s=(0,T.getActiveSpan)()){const M=s&&(0,T.getRootSpan)(s);M&&(t.DEBUG_BUILD&&E.debug.log(`[Measurement] Setting measurement on root span: ${u} = ${o} ${_}`),M.addEvent(u,{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:o,[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:_}))}function o(t){if(!t||0===t.length)return;const E={};return t.forEach(t=>{const T=t.attributes||{},u=T[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],o=T[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof u&&"number"==typeof o&&(E[t.name]={value:o,unit:u})}),E}},2518,[2470,2500,2474,2479]);
992__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return"stream"===t.getOptions().traceLifecycle}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return t}})},2519,[]);
993__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"continueTrace",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"isTracingSuppressed",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"startInactiveSpan",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"startNewTrace",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"startSpan",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"startSpanManual",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"suppressTracing",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"withActiveSpan",{enumerable:!0,get:function(){return j}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),p=r(d[4]),c=r(d[5]),S=r(d[6]),u=r(d[7]),l=r(d[8]),f=r(d[9]),T=r(d[10]),C=r(d[11]),I=r(d[12]),R=r(d[13]),_=r(d[14]),b=r(d[15]),P=r(d[16]),E=r(d[17]),y=r(d[18]),A=r(d[19]),O=r(d[20]),h=r(d[21]),N=r(d[22]),w=r(d[23]);const v="__SENTRY_SUPPRESS_TRACING__";function x(n,t){const s=K();if(s.startSpan)return s.startSpan(n,t);const p=G(n),{forceTransaction:c,parentSpan:S,scope:l}=n,f=l?.clone();return(0,o.withScope)(f,()=>J(S)(()=>{const s=(0,o.getCurrentScope)(),l=H(s,S),f=(0,o.getClient)(),T=n.onlyIfParent&&!l?Y(s,f):z({parentSpan:l,spanArguments:p,forceTransaction:c,scope:s});return Q(T)&&l||(0,_._setSpanForScope)(s,T),(0,u.handleCallbackErrors)(()=>t(T),()=>{const{status:n}=(0,b.spanToJSON)(T);!T.isRecording()||n&&"ok"!==n||T.setStatus({code:N.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{T.end()})}))}function D(n,t){const s=K();if(s.startSpanManual)return s.startSpanManual(n,t);const p=G(n),{forceTransaction:c,parentSpan:S,scope:l}=n,f=l?.clone();return(0,o.withScope)(f,()=>J(S)(()=>{const s=(0,o.getCurrentScope)(),l=H(s,S),f=n.onlyIfParent&&!l?Y(s,(0,o.getClient)()):z({parentSpan:l,spanArguments:p,forceTransaction:c,scope:s});return Q(f)&&l||(0,_._setSpanForScope)(s,f),(0,u.handleCallbackErrors)(()=>t(f,()=>f.end()),()=>{const{status:n}=(0,b.spanToJSON)(f);!f.isRecording()||n&&"ok"!==n||f.setStatus({code:N.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function M(n){const t=K();if(t.startInactiveSpan)return t.startInactiveSpan(n);const s=G(n),{forceTransaction:p,parentSpan:c}=n;return(n.scope?t=>(0,o.withScope)(n.scope,t):void 0!==c?n=>j(c,n):n=>n())(()=>{const t=(0,o.getCurrentScope)(),S=H(t,c),u=(0,o.getClient)();return n.onlyIfParent&&!S?Y(t,u):z({parentSpan:S,spanArguments:s,forceTransaction:p,scope:t})})}const U=(s,p)=>{const S=(0,t.getMainCarrier)(),u=(0,n.getAsyncContextStrategy)(S);if(u.continueTrace)return u.continueTrace(s,p);const{sentryTrace:l,baggage:f}=s,T=(0,o.getClient)(),C=(0,c.baggageHeaderToDynamicSamplingContext)(f);return T&&!(0,P.shouldContinueTrace)(T,C?.org_id)?k(p):(0,o.withScope)(n=>{const t=(0,P.propagationContextFromHeaders)(l,f);return n.setPropagationContext(t),(0,_._setSpanForScope)(n,void 0),p()})};function j(n,t){const s=K();return s.withActiveSpan?s.withActiveSpan(n,t):(0,o.withScope)(o=>((0,_._setSpanForScope)(o,n||void 0),t(o)))}function B(n){const t=K();return t.suppressTracing?t.suppressTracing(n):(0,o.withScope)(t=>{t.setSDKProcessingMetadata({[v]:!0});const o=n();return t.setSDKProcessingMetadata({[v]:void 0}),o})}function F(n=(0,o.getCurrentScope)()){const t=K();return t.isTracingSuppressed?t.isTracingSuppressed(n):!0===n.getScopeData().sdkProcessingMetadata[v]}function k(n){const t=K();return t.startNewTrace?t.startNewTrace(n):(0,o.withScope)(t=>(t.setPropagationContext({traceId:(0,I.generateTraceId)(),sampleRand:(0,R.safeMathRandom)()}
993),s.DEBUG_BUILD&&S.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),j(null,n)))}function Y(n,t){t?.recordDroppedEvent("no_parent_span","span");const s=new O.SentryNonRecordingSpan({traceId:n.getPropagationContext().traceId});return(0,w.setCapturedScopesOnSpan)(s,n,(0,o.getIsolationScope)()),s}function z({parentSpan:n,spanArguments:t,forceTransaction:s,scope:p}){const c=(0,o.getIsolationScope)();if(!(0,l.hasSpansEnabled)()){const t={...c.getPropagationContext(),...p.getPropagationContext()},o=n?n.spanContext().traceId:t.traceId,S=new O.SentryNonRecordingSpan({traceId:o});return n&&!s&&(0,b.addChildSpanToSpan)(n,S),(0,w.setCapturedScopesOnSpan)(S,p,c),S}const S=(0,o.getClient)();if($(S,t)){F(p)||S?.recordDroppedEvent("ignored","span");const t=new O.SentryNonRecordingSpan({dropReason:"ignored",traceId:n?.spanContext().traceId??p.getPropagationContext().traceId});return(0,w.setCapturedScopesOnSpan)(t,p,c),t}let u;if(n&&!s)u=q(n,p,t,c),(0,b.addChildSpanToSpan)(n,u);else if(n){const o=(0,E.getDynamicSamplingContextFromSpan)(n),{traceId:s,spanId:S}=n.spanContext(),l=(0,b.spanIsSampled)(n);u=L({traceId:s,parentSpanId:S,...t},p,c,l),(0,E.freezeDscOnSpan)(u,o)}else{const{traceId:n,dsc:o,parentSpanId:s,sampled:S}={...c.getPropagationContext(),...p.getPropagationContext()};u=L({traceId:n,parentSpanId:s,...t},p,c,S),o&&(0,E.freezeDscOnSpan)(u,o)}return(0,y.logSpanStart)(u),u}function G(n){const t={isStandalone:(n.experimental||{}).standalone,...n};if(n.startTime){const o={...t};return o.startTimestamp=(0,b.spanTimeInputToSeconds)(n.startTime),delete o.startTime,o}return t}function K(){const o=(0,t.getMainCarrier)();return(0,n.getAsyncContextStrategy)(o)}function L(n,t,c,u){const l=(0,o.getClient)(),f=l?.getOptions()||{},{name:I=""}=n,R={spanAttributes:{...n.attributes},spanName:I,parentSampled:u};l?.emit("beforeSampling",R,{decision:!1});const _=R.parentSampled??u,b=R.spanAttributes,P=t.getPropagationContext(),E=F(t),[y,O,N]=E?[!1]:(0,A.sampleSpan)(f,{name:I,parentSampled:_,attributes:b,normalizedRequest:c.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,C.parseSampleRate)(P.dsc?.sample_rate)},P.sampleRand),v=new h.SentrySpan({...n,attributes:{[p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[p.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==O&&N?O:void 0,...b},sampled:y}
993);return y||!l||E||(s.DEBUG_BUILD&&S.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),l.recordDroppedEvent("sample_rate",(0,T.hasSpanStreamingEnabled)(l)?"span":"transaction")),(0,w.setCapturedScopesOnSpan)(v,t,c),l&&l.emit("spanStart",v),v}function q(n,t,s,p){const{spanId:c,traceId:S}=n.spanContext(),u=F(t),l=!u&&(0,b.spanIsSampled)(n),f=l?new h.SentrySpan({...s,parentSpanId:c,traceId:S,sampled:l}):new O.SentryNonRecordingSpan({traceId:S});(0,b.addChildSpanToSpan)(n,f),(0,w.setCapturedScopesOnSpan)(f,t,p);const C=(0,o.getClient)();return C?((0,T.hasSpanStreamingEnabled)(C)&&(0,O.spanIsNonRecordingSpan)(f)&&((0,O.spanIsNonRecordingSpan)(n)&&n.dropReason?(f.dropReason=n.dropReason,C.recordDroppedEvent(n.dropReason,"span")):u||(f.dropReason="sample_rate",C.recordDroppedEvent("sample_rate","span"))),C.emit("spanStart",f),s.endTimestamp&&(C.emit("spanEnd",f),C.emit("afterSpanEnd",f)),f):f}function H(n,t){if(t)return t;if(null===t)return;const s=(0,_._getSpanForScope)(n);if(!s)return;const p=(0,o.getClient)();return(p?p.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,b.getRootSpan)(s):s}function J(n){return void 0!==n?t=>j(n,t):n=>n()}function $(n,t){const o=n?.getOptions().ignoreSpans;return!!(n&&(0,T.hasSpanStreamingEnabled)(n)&&o?.length)&&(0,f.shouldIgnoreSpan)({description:t.name||"",op:t.attributes?.[p.SEMANTIC_ATTRIBUTE_SENTRY_OP]||t.op,attributes:t.attributes},o)}function Q(n){return(0,O.spanIsNonRecordingSpan)(n)&&"ignored"===n.dropReason}},2520,[2480,2475,2499,2470,2500,2504,2474,2521,2508,2509,2519,2506,2494,2488,2495,2479,2503,2513,2517,2522,2510,2511,2501,2502]);
994__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return t}});var e=r(d[0]),n=r(d[1]);function t(e,n,t=()=>{},o=()=>{}){let u;try{u=e()}catch(e){throw n(e),t(),e}return c(u,n,t,o)}function c(t,c,o,u){return(0,n.isThenable)(t)?(0,e.chainAndCopyPromiseLike)(t,e=>{o(),u(e)},e=>{c(e),o()}):(o(),u(t),t)}},2521,[2497,2487]);
995__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sampleSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),p=r(d[2]),o=r(d[3]);function s(s,l,c){if(!(0,p.hasSpansEnabled)(s))return[!1];let u,f;"function"==typeof s.tracesSampler?(f=s.tracesSampler({...l,inheritOrSampleWith:t=>"number"==typeof l.parentSampleRate?l.parentSampleRate:"boolean"==typeof l.parentSampled?Number(l.parentSampled):t}),u=!0):void 0!==l.parentSampled?f=l.parentSampled:void 0!==s.tracesSampleRate&&(f=s.tracesSampleRate,u=!0);const S=(0,o.parseSampleRate)(f);if(void 0===S)return t.DEBUG_BUILD&&n.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(f)} of type ${JSON.stringify(typeof f)}.`),[!1];if(!S)return t.DEBUG_BUILD&&n.debug.log("[Tracing] Discarding transaction because "+("function"==typeof s.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,S,u];const b=c<S;return b||t.DEBUG_BUILD&&n.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(f)})`),[b,S,u]}},2522,[2470,2474,2508,2506]);
996__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"bindScopeToEmitter",{enumerable:!0,get:function(){return f}});var n=r(d[0]);const t=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],o=["removeListener","off","removeEventListener"],c=Symbol("SentryScopeBoundListeners");let u;function s(n){return void 0!==u&&(n===u||n.listener===u)}function f(c,u=(0,n.getCurrentScope)()){const s=c;if(S(s))return c;h(s);for(const n of t)"function"==typeof s[n]&&(s[n]=y(s,s[n],u));for(const n of o)"function"==typeof s[n]&&(s[n]=v(s,s[n]));return"function"==typeof s.removeAllListeners&&(s.removeAllListeners=L(s,s.removeAllListeners)),c}function l(t,o){return function(...c){return(0,n.withScope)(o,()=>t.apply(this,c))}}function p(n){return"function"==typeof n}function y(n,t,o){return function(...c){const f=c[0],y=c[1],v=c.slice(2);if(!p(y)||s(y))return t.apply(this,c);const L=S(n)||h(n);let b=L.get(f);b||(b=new WeakMap,L.set(f,b));let _=b.get(y);_||(_=l(y,o),b.set(y,_));const w=u;u=_;try{return t.call(this,f,_,...v)}finally{u=w}}}function v(n,t){return function(...o){const c=o[0],u=o[1],s=o.slice(2),f=p(u)?S(n)?.get(c)?.get(u):void 0;return f?t.call(this,c,f,...s):t.apply(this,o)}}function L(n,t){return function(...o){const c=S(n);if(c)if(0===o.length)h(n);else{const n=o[0];c.delete(n)}return t.apply(this,o)}}function h(n){const t=new Map;return n[c]=t,t}function S(n){return n[c]}},2523,[2499]);
997__d(function(g,r,i,a,m,e,d){"use strict";
997Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyBeforeSendSpanCallback",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"captureSpan",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return N}});var n=r(d[0]),t=r(d[1]),S=r(d[2]),T=r(d[3]),E=r(d[4]),s=r(d[5]),o=r(d[6]);function _(s,o){const _=(0,S.spanToStreamedSpanJSON)(s),I=(0,S.INTERNAL_getSegmentSpan)(s),R=(0,S.spanToStreamedSpanJSON)(I),{isolationScope:M,scope:f}=(0,T.getCapturedScopesOnSpan)(s),U=(0,t.getCombinedScopeData)(M,f);u(_,R,o,U);const b=s.kind;o.emit("preprocessSpan",_,{spanKind:b}),_.is_segment&&(p(_,U),c(_,o),o.emit("processSegmentSpan",_)),o.emit("processSpan",_);const{beforeSendSpan:C}=o.getOptions(),l=C&&(0,E.isStreamedBeforeSendSpanCallback)(C)?A(_,C):_,O=l.attributes?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return O&&N(l,{"sentry.span.source":O}),{...(0,S.streamedSpanJsonToSerializedSpan)(l),_segmentSpan:I}}function p(n,t){N(n,(0,s.scopeContextsToSpanAttributes)(t.contexts))}function N(n,t){const S=n.attributes??(n.attributes={});Object.entries(t).forEach(([n,t])=>{null==t||n in S||(S[n]=t)})}function c(t,S){const T=S.getIntegrationNames();T.length&&N(t,{[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:T})}function u(t,S,T,E){const s=T.getSdkMetadata(),{release:_,environment:p}=T.getOptions();N(t,{[n.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:_,[n.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:p||o.DEFAULT_ENVIRONMENT,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME]:S.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID]:S.span_id,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME]:s?.sdk?.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION]:s?.sdk?.version,[n.SEMANTIC_ATTRIBUTE_USER_ID]:E.user?.id,[n.SEMANTIC_ATTRIBUTE_USER_EMAIL]:E.user?.email,[n.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:E.user?.ip_address,[n.SEMANTIC_ATTRIBUTE_USER_USERNAME]:E.user?.username,...E.attributes})}function A(n,t){const T=t(n);return T||((0,S.showSpanDropWarning)(),n)}},2524,[2500,2525,2479,2502,2515,2526,2514]);
998__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getCombinedScopeData",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"mergeAndOverwriteScopeData",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"mergeScopeData",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);function c(t,n){const{fingerprint:s,span:o,breadcrumbs:c,sdkProcessingMetadata:p}=n;l(t,n),o&&y(t,o),P(t,s),b(t,c),x(t,p)}function p(t,n){const{extra:o,tags:c,attributes:p,user:f,contexts:l,level:b,sdkProcessingMetadata:x,breadcrumbs:y,fingerprint:P,eventProcessors:h,attachments:S,propagationContext:k,transactionName:v,span:O}=n;u(t,"extra",o),u(t,"tags",c),u(t,"attributes",p),u(t,"user",f),u(t,"contexts",l),t.sdkProcessingMetadata=(0,s.merge)(t.sdkProcessingMetadata,x,2),b&&(t.level=b),v&&(t.transactionName=v),O&&(t.span=O),y.length&&(t.breadcrumbs=[...t.breadcrumbs,...y]),P.length&&(t.fingerprint=[...t.fingerprint,...P]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),S.length&&(t.attachments=[...t.attachments,...S]),t.propagationContext={...t.propagationContext,...k}}function u(t,n,o){t[n]=(0,s.merge)(t[n],o,1)}function f(n,s){const o=(0,t.getGlobalScope)().getScopeData();return n&&p(o,n.getScopeData()),s&&p(o,s.getScopeData()),o}function l(t,n){const{extra:s,tags:o,user:c,contexts:p,level:u,transactionName:f}=n;Object.keys(s).length&&(t.extra={...s,...t.extra}),Object.keys(o).length&&(t.tags={...o,...t.tags}),Object.keys(c).length&&(t.user={...c,...t.user}),Object.keys(p).length&&(t.contexts={...p,...t.contexts}),u&&(t.level=u),f&&"transaction"!==t.type&&(t.transaction=f)}function b(t,n){const s=[...t.breadcrumbs||[],...n];t.breadcrumbs=s.length?s:void 0}function x(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}function y(t,s){t.contexts={trace:(0,o.spanToTraceContext)(s),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:(0,n.getDynamicSamplingContextFromSpan)(s),...t.sdkProcessingMetadata};const c=(0,o.getRootSpan)(s),p=(0,o.spanToJSON)(c).description;p&&!t.transaction&&"transaction"===t.type&&(t.transaction=p)}function P(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n)),t.fingerprint.length||delete t.fingerprint}},2525,[2499,2513,2493,2479]);
999__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const o={},{response:s,profile:n,cloud_resource:l,culture:u,state:c}=t;if(s&&(null!=s.status_code&&(o["http.response.status_code"]=s.status_code),null!=s.body_size&&(o["http.response.body.size"]=s.body_size)),n&&(n.profile_id&&(o["sentry.profile_id"]=n.profile_id),n.profiler_id&&(o["sentry.profiler_id"]=n.profiler_id)),l)for(const[t,s]of Object.entries(l))null!=s&&(o[t]=s);
999u&&(u.locale&&(o["culture.locale"]=u.locale),u.timezone&&(o["culture.timezone"]=u.timezone)),c?.state&&"string"==typeof c.state.type&&(o["state.type"]=c.state.type);const p=t.angular;if(p){const t=p.version;"string"!=typeof t&&"number"!=typeof t||(o["angular.version"]=t)}const f=t.react;if(f){const t=f.version;"string"!=typeof t&&"number"!=typeof t||(o["react.version"]=t)}return o}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"scopeContextsToSpanAttributes",{enumerable:!0,get:function(){return t}})},2526,[]);
1000__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return h}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return D}});var e=_r(d[0]),t=_r(d[1]),n=_r(d[2]),r=_r(d[3]),o=_r(d[4]),u=_r(d[5]),c=_r(d[6]),s=_r(d[7]),f=_r(d[8]),p=_r(d[9]),l=_r(d[10]);function b(t,n){return(0,e.getCurrentScope)().captureException(t,(0,s.parseEventHintOrCaptureContext)(n))}function S(t,n){const r="string"==typeof n?n:void 0,o="string"!=typeof n?{captureContext:n}:void 0;return(0,e.getCurrentScope)().captureMessage(t,r,o)}function I(t,n){return(0,e.getCurrentScope)().captureEvent(t,n)}function y(t,n){(0,e.getIsolationScope)().setContext(t,n)}function C(t){(0,e.getIsolationScope)().setExtras(t)}function O(t,n){(0,e.getIsolationScope)().setExtra(t,n)}function P(t){(0,e.getIsolationScope)().setTags(t)}function j(t,n){(0,e.getIsolationScope)().setTag(t,n)}function h(t){(0,e.getIsolationScope)().setAttributes(t)}function v(t,n){(0,e.getIsolationScope)().setAttribute(t,n)}function E(t){(0,e.getIsolationScope)().setUser(t)}function k(t){(0,e.getIsolationScope)().setConversationId(t)}function x(){return(0,e.getIsolationScope)().lastEventId()}function B(n,r){const u=(0,e.getCurrentScope)(),s=(0,e.getClient)();if(s){if(s.captureCheckIn)return s.captureCheckIn(n,r,u);t.DEBUG_BUILD&&o.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else t.DEBUG_BUILD&&o.debug.warn("Cannot capture check-in. No client defined.");return(0,c.uuid4)()}function D(t,n,o){function c(){const e=B({monitorSlug:t,status:"in_progress"},o),r=(0,p.timestampInSeconds)();function c(n){B({monitorSlug:t,status:n,checkInId:e,duration:(0,p.timestampInSeconds)()-r})}let s;try{s=n()}catch(e){throw c("error"),e}return(0,u.isThenable)(s)?s.then(e=>(c("ok"),e),e=>{throw c("error"),e}):(c("ok"),s)}return(0,e.withIsolationScope)(()=>o?.isolateTrace?(0,r.startNewTrace)(c):c())}async function U(n){const r=(0,e.getClient)();return r?r.flush(n):(t.DEBUG_BUILD&&o.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function _(n){const r=(0,e.getClient)();return r?r.close(n):(t.DEBUG_BUILD&&o.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function w(){return!!(0,e.getClient)()}function T(){const t=(0,e.getClient)();return!1!==t?.getOptions().enabled&&!!t?.getTransport()}function A(t){(0,e.getIsolationScope)().addEventProcessor(t)}function L(t){const r=(0,e.getIsolationScope)(),{user:o}=(0,f.getCombinedScopeData)(r,(0,e.getCurrentScope)()),{userAgent:u}
1000=l.GLOBAL_OBJ.navigator||{},c=(0,n.makeSession)({user:o,...u&&{userAgent:u},...t}),s=r.getSession();return"ok"===s?.status&&(0,n.updateSession)(s,{status:"exited"}),G(),r.setSession(c),c}function G(){const t=(0,e.getIsolationScope)(),r=(0,e.getCurrentScope)().getSession()||t.getSession();r&&(0,n.closeSession)(r),M(),t.setSession()}function M(){const t=(0,e.getIsolationScope)(),n=(0,e.getClient)(),r=t.getSession();r&&n&&n.captureSession(r)}function N(e=!1){e?G():M()}},2527,[2499,2470,2484,2520,2474,2487,2485,2528,2525,2492,2472]);
1001__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyClientOptions",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"applyDebugIds",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"applyDebugMeta",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"parseEventHintOrCaptureContext",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"prepareEvent",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),i=r(d[5]),u=r(d[6]),l=r(d[7]),p=r(d[8]),f=r(d[9]);function b(t,o,s,i,l,b){const{normalizeDepth:O=3,normalizeMaxBreadth:P=1e3}=t,j={...o,event_id:o.event_id||s.event_id||(0,c.uuid4)(),timestamp:o.timestamp||(0,f.dateTimestampInSeconds)()},k=s.integrations||t.integrations.map(t=>t.name);x(j,t),h(j,k),l&&l.emit("applyFrameMetadata",o),void 0===o.type&&_(j,t.stackParser);const z=E(i,s.captureContext);s.mechanism&&(0,c.addExceptionMechanism)(j,s.mechanism);const C=l?l.getEventProcessors():[],D=(0,u.getCombinedScopeData)(b,z),M=[...s.attachments||[],...D.attachments];M.length&&(s.attachments=M),(0,u.applyScopeDataToEvent)(j,D);const S=[...C,...D.eventProcessors];return(s.data&&!0===s.data.__sentry__?(0,p.resolvedSyncPromise)(j):(0,n.notifyEventProcessors)(S,j,s)).then(t=>(t&&v(t),"number"==typeof O&&O>0?y(t,O,P):t))}function x(n,o){const{environment:s,release:c,dist:i,maxValueLength:u}=o;n.environment=n.environment||s||t.DEFAULT_ENVIRONMENT,!n.release&&c&&(n.release=c),!n.dist&&i&&(n.dist=i);const p=n.request;p?.url&&u&&(p.url=(0,l.truncate)(p.url,u)),u&&n.exception?.values?.forEach(t=>{t.value&&(t.value=(0,l.truncate)(t.value,u))})}function _(t,n){const o=(0,s.getFilenameToDebugIdMap)(n);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=o[t.filename])})})}function v(t){const n={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const o=t.debug_meta.images;Object.entries(n).forEach(([t,n])=>{o.push({type:"sourcemap",code_file:t,debug_id:n})})}function h(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}function y(t,n,o){if(!t)return null;const s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,i.normalize)(t.data,n,o)}}))},...t.user&&{user:(0,i.normalize)(t.user,n,o)},...t.contexts&&{contexts:(0,i.normalize)(t.contexts,n,o)},...t.extra&&{extra:(0,i.normalize)(t.extra,n,o)}};return t.contexts?.trace&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=(0,i.normalize)(t.contexts.trace.data,n,o))),t.spans&&(s.spans=t.spans.map(t=>({...t,...t.data&&{data:(0,i.normalize)(t.data,n,o)}}))),t.contexts?.flags&&s.contexts&&(s.contexts.flags=(0,i.normalize)(t.contexts.flags,3,o)),s}function E(t,n){if(!n)return t;const s=t?t.clone():new o.Scope;return s.update(n),s}function O(t){if(t)return P(t)||k(t)?{captureContext:t}:t}function P(t){return t instanceof o.Scope||"function"==typeof t}const j=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function k(t){return Object.keys(t).some(t=>j.includes(t))}},2528,[2514,2529,2483,2531,2485,2490,2525,2489,2530,2492]);
1002__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"notifyEventProcessors",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function s(n,t,s,l=0){try{const f=u(t,s,n,l);return(0,o.isThenable)(f)?f:(0,c.resolvedSyncPromise)(f)}catch(n){return(0,c.rejectedSyncPromise)(n)}}function u(c,s,l,f){const b=l[f];if(!c||!b)return c;const v=b({...c},s);return n.DEBUG_BUILD&&null===v&&t.debug.log(`Event processor "${b.id||"?"}" dropped event`),(0,o.isThenable)(v)?v.then(n=>u(n,s,l,f+1)):u(v,s,l,f+1)}},2529,[2470,2474,2487,2530]);
1003__d(function(g,r,i,a,m,_e,d){"use strict";
1003Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return t}});var e=r(d[0]);function t(e){return new s(t=>{t(e)})}function n(e){return new s((t,n)=>{n(e)})}class s{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new s((n,s)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){s(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){s(e)}else s(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,n)=>{let s,c;return this.then(t=>{c=!1,s=t,e&&e()},t=>{c=!0,s=t,e&&e()}).then(()=>{c?n(s):t(s)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(t){const n=(t,n)=>{0===this._state&&((0,e.isThenable)(n)?n.then(s,c):(this._state=t,this._value=n,this._executeHandlers()))},s=e=>{n(1,e)},c=e=>{n(2,e)};try{t(s,c)}catch(e){c(e)}}}},2530,[2487]);
1004__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDebugImagesForResources",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]);let o,c,s,u;function f(t){const f=n.GLOBAL_OBJ._sentryDebugIds,i=n.GLOBAL_OBJ._debugIds;if(!f&&!i)return{};const l=f?Object.keys(f):[],b=i?Object.keys(i):[];if(u&&l.length===c&&b.length===s)return u;c=l.length,s=b.length,u={},o||(o={});const _=(n,c)=>{for(const s of n){const n=c[s],f=o?.[s];if(f&&u&&n)u[f[0]]=n,o&&(o[s]=[f[0],n]);else if(n){const c=t(s);for(let t=c.length-1;t>=0;t--){const f=c[t],i=f?.filename;if(i&&u&&o){u[i]=n,o[s]=[i,n];break}}}}};return f&&_(l,f),i&&_(b,i),u}function i(n,o){const c=f(n);if(!c)return[];const s=[];for(const n of o){const o=(0,t.normalizeStackTracePath)(n);o&&c[o]&&s.push({type:"sourcemap",code_file:n,debug_id:c[o]})}return s}},2531,[2477,2472]);
1005__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]);function u(t,s=1){const l=(0,c.getAsyncContextStrategy)((0,n.getMainCarrier)()).getTracingChannelBinding?.();l?t():s&&(0,o.safeUnref)(setTimeout(()=>{u(t,s-1)},1))}function s(n,o){return{asyncLocalStorage:n,getStoreWithActiveSpan:n=>{const{scope:c,isolationScope:u}=o(),s=c.clone();return(0,t._setSpanForScope)(s,n),{scope:s,isolationScope:u}}}}},2532,[2475,2495,2533,2480]);
1006__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return"object"==typeof n&&"function"==typeof n.unref&&n.unref(),n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"safeUnref",{enumerable:!0,get:function(){return n}})},2533,[]);
1007__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return p}});var n=r(d[0]);const t="7";function o(n){const t=n.protocol?`${n.protocol}:`:"",o=n.port?`:${n.port}`:"";return`${t}//${n.host}${o}${n.path?`/${n.path}`:""}/api/`}function c(n){return`${o(n)}${n.projectId}/envelope/`}function u(n,o){const c={sentry_version:t};return n.publicKey&&(c.sentry_key=n.publicKey),o&&(c.sentry_client=`${o.name}/${o.version}`),new URLSearchParams(c).toString()}function s(n,t,o){return t||`${c(n)}?${u(n,o)}`}function p(t,c){const u=(0,n.makeDsn)(t);if(!u)return"";const s=`${o(u)}embed/error-page/`;let p=`dsn=${(0,n.dsnToString)(u)}`;for(const n in c)if("dsn"!==n&&"onClose"!==n)if("user"===n){const n=c.user;if(!n)continue;n.name&&(p+=`&name=${encodeURIComponent(n.name)}`),n.email&&(p+=`&email=${encodeURIComponent(n.email)}`)}else p+=`&${encodeURIComponent(n)}=${encodeURIComponent(c[n])}`;return`${s}?${p}`}},2534,[2505]);
1008__d(function(g,r,i,a,m,_e,d){"use strict";
1008Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return J}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),h=r(d[8]),l=r(d[9]),_=r(d[10]),f=r(d[11]),v=r(d[12]),E=r(d[13]),b=r(d[14]),S=r(d[15]),D=r(d[16]),y=r(d[17]),B=r(d[18]),I=r(d[19]),U=r(d[20]),w=r(d[21]),P=r(d[22]),L=r(d[23]),O=r(d[24]),T=r(d[25]),C=r(d[26]),k=r(d[27]),N=r(d[28]),R=r(d[29]),x=r(d[30]);const M="Not capturing exception because it's already been captured.",F="Discarded session because of missing or non-string release",G=Symbol.for("SentryInternalError"),A=Symbol.for("SentryDoNotSendEventError");function $(e){return{message:e,[G]:!0}}function j(e){return{message:e,[A]:!0}}function W(e){return!!e&&"object"==typeof e&&G in e}function q(e){return!!e&&"object"==typeof e&&A in e}function z(e,t,n,s,o){let c,u=0,p=!1;e.on(n,()=>{u=0,clearTimeout(c),p=!1}),e.on(t,t=>{if(u+=s(t),u>=8e5)o(e);else if(!p){const t=e.getOptions()._flushInterval??5e3;t>0&&(p=!0,c=(0,N.safeUnref)(setTimeout(()=>{o(e)},t)))}}),e.on("flush",()=>{o(e)})}class J{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=(0,L.makePromiseBuffer)(t.transportOptions?.bufferSize??v.DEFAULT_TRANSPORT_BUFFER_SIZE),this._dataCollection=(0,x.resolveDataCollectionOptions)(t),t.dsn?this._dsn=(0,S.makeDsn)(t.dsn):s.DEBUG_BUILD&&b.debug.warn("No DSN provided, client will not send events."),this._dsn){const n=(0,e.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&z(this,"afterCaptureLog","flushLogs",X,u._INTERNAL_flushLogsBuffer);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&z(this,"afterCaptureMetric","flushMetrics",Q,p._INTERNAL_flushMetricsBuffer)}captureException(e,t,n){const o=(0,U.uuid4)();if((0,U.checkOrSetAlreadyCaught)(e))return s.DEBUG_BUILD&&b.debug.log(M),o;const c={event_id:o,...t};return this._process(()=>this.eventFromException(e,c).then(e=>this._captureEvent(e,c,n)).then(e=>e),"error"),c.event_id}captureMessage(e,t,n,s){const o={event_id:(0,U.uuid4)(),...n},c=(0,B.isParameterizedString)(e)?e:String(e),u=(0,B.isPrimitive)(e),p=u?this.eventFromMessage(c,t,o):this.eventFromException(e,o);return this._process(()=>p.then(e=>this._captureEvent(e,o,s)),u?"unknown":"error"),o.event_id}captureEvent(e,t,n){const o=(0,U.uuid4)();if(t?.originalException&&(0,U.checkOrSetAlreadyCaught)(t.originalException))return s.DEBUG_BUILD&&b.debug.log(M),o;const c={event_id:o,...t},u=e.sdkProcessingMetadata||{},p=u.capturedSpanScope,h=u.capturedSpanIsolationScope,l=V(e.type);return this._process(()=>this._captureEvent(e,c,p||n,h),l),c.event_id}captureSession(e){this.sendSession(e),(0,h.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){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),s=await t.flush(e);return n&&s}async close(e){(0,u._INTERNAL_flushLogsBuffer)(this);const 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){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),(0,c.setupIntegration)(this,e,this._integrations),t||(0,c.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}
1008){this.emit("beforeSendEvent",e,t);const n=(0,f.extractGenAiSpansFromEvent)(e,this);let s=(0,o.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])s=(0,D.addItemToEnvelope)(s,(0,D.createAttachmentEnvelopeItem)(e));n&&(s=(0,D.addItemToEnvelope)(s,n)),this.sendEnvelope(s).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:n,environment:c=t.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const t=e.attrs||{};if(!t.release&&!n)return void(s.DEBUG_BUILD&&b.debug.warn(F));t.release=t.release||n,t.environment=t.environment||c,e.attrs=t}else{if(!e.release&&!n)return void(s.DEBUG_BUILD&&b.debug.warn(F));e.release=e.release||n,e.environment=e.environment||c}this.emit("beforeSendSession",e);const u=(0,o.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(u)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const o=`${e}:${t}`;s.DEBUG_BUILD&&b.debug.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,s=(...e)=>t(...e);return n.add(s),()=>{n.delete(s)}}emit(e,...t){const 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 s.DEBUG_BUILD&&b.debug.error("Error while sending envelope:",e),{}}return s.DEBUG_BUILD&&b.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,c.setupIntegrations)(this,e),(0,c.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,s=!1;const o=t.exception?.values;if(o){s=!0,n=!1;for(const e of o)if(!1===e.mechanism?.handled){n=!0;break}}const c="ok"===e.status;(c&&0===e.errors||c&&n)&&((0,h.updateSession)(e,{...n&&{status:"crashed"},errors:e.errors||Number(s||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,s,o){const c=this.getOptions(),u=this.getIntegrationNames();return!t.integrations&&u.length&&(t.integrations=u),this.emit("preprocessEvent",e,t),e.type||o.setLastEventId(e.event_id||t.event_id),(0,P.prepareEvent)(c,e,t,s,this,o).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,n.getTraceContextFromScope)(s)},...e.contexts};const o=(0,l.getDynamicSamplingContextFromScope)(this,s);return e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},o=(0,n.getCurrentScope)(),c=(0,n.getIsolationScope)()){return s.DEBUG_BUILD&&H(e)&&b.debug.log(`Captured error event \`${(0,y.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,o,c).then(e=>e.event_id,e=>{s.DEBUG_BUILD&&(q(e)?b.debug.log(e.message):W(e)?b.debug.warn(e.message):b.debug.warn(e))})}_processEvent(e,t,n,s){const o=this.getOptions(),{sampleRate:c}=o,u=K(e),p=H(e),h=`before send for type \`${e.type||"error"}\``,l=void 0===c?void 0:(0,w.parseSampleRate)(c);if(p&&"number"==typeof l&&(0,O.safeMathRandom)()>l)return this.recordDroppedEvent("sample_rate","error"),(0,k.rejectedSyncPromise)(j(`Discarding event because it's not included in the random sample (sampling rate = ${c})`));const _=V(e.type);return this._prepareEvent(e,t,n,s).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",_),j("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;return Y(Z(this,o,e,t),h)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",_),u){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw j(`${h} returned \`null\`, will not send event.`)}const c=n.getSession()||s.getSession();if(p&&c&&this._updateSessionFromEvent(c,o),u){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const l=o.transaction_info;if(u&&l&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...l,source:e}}return this.sendEvent(o,t),o}).then(null,e=>{if(q(e)||W(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),$(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===L.SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,s]=e.split(":");return{reason:n,category:s,quantity:t}})}_flushOutcomes(){s.DEBUG_BUILD&&b.debug.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(s.DEBUG_BUILD&&b.debug.log("No outcomes to send"));if(!this._dsn)return void(s.DEBUG_BUILD&&b.debug.log("No dsn provided, will not send outcomes"));s.DEBUG_BUILD&&b.debug.log("Sending outcomes:",e);const t=(0,E.createClientReportEnvelope)(e,this._options.tunnel&&(0,S.dsnToString)(this._dsn));this.sendEnvelope(t)}}function V(e){return"replay_event"===e?"replay":e||"error"}function Y(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,B.isThenable)(e))return e.then(e=>{if(!(0,B.isPlainObject)(e)&&null!==e)throw $(n);return e},e=>{throw $(`${t} rejected with ${e}`)});if(!(0,B.isPlainObject)(e)&&null!==e)throw $(n);return e}function Z(e,t,n,s){const{beforeSend:o,beforeSendTransaction:c,ignoreSpans:u}=t,p=!(0,_.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan;let h=n;if(H(h)&&o)return o(h,s);if(K(h)){if(p||u){const t=(0,R.convertTransactionEventToSpanJson)(h);if(u?.length&&(0,T.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},u))return null;if(p){const e=p(t);e?h=(0,I.merge)(n,(0,R.convertSpanJsonToTransactionEvent)(e)):(0,C.showSpanDropWarning)()}if(h.spans){const t=[],n=h.spans;for(const e of n)if(u?.length&&(0,T.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},u))(0,T.reparentChildSpans)(n,e);else if(p){const n=p(e);n?t.push(n):((0,C.showSpanDropWarning)(),t.push(e))}else t.push(e);const s=h.spans.length-t.length;s&&e.recordDroppedEvent("before_send","span",s),h.spans=t}}if(c){if(h.spans){const e=h.spans.length;h.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return c(h,s)}}return h}function H(e){return void 0===e.type}function K(e){return"transaction"===e.type}function Q(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+ee(e.attributes)}function X(e){let t=0;return e.message&&(t+=2*e.message.length),t+ee(e.attributes)}function ee(e){if(!e)return 0;let t=0;
1008return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*te(e[0]):(0,B.isPrimitive)(e)?t+=te(e):t+=100}),t}function te(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}},2535,[2534,2514,2499,2470,2512,2536,2537,2545,2484,2513,2515,2547,2549,2552,2474,2505,2516,2553,2487,2493,2485,2506,2528,2550,2488,2509,2479,2530,2533,2554,2555]);
1009__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addIntegration",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"afterSetupIntegrations",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"defineIntegration",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extendIntegration",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"installedIntegrations",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setupIntegration",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"setupIntegrations",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const c=[];function u(n){const t={};return n.forEach(n=>{const{name:o}=n,c=t[o];c&&!c.isDefaultInstance&&n.isDefaultInstance||(t[o]=n)}),Object.values(t)}function s(n){const t=n.defaultIntegrations||[],o=n.integrations;let c;if(t.forEach(n=>{n.isDefaultInstance=!0}),Array.isArray(o))c=[...t,...o];else if("function"==typeof o){const n=o(t);c=Array.isArray(n)?n:[n]}else c=t;return u(c)}function f(n,t){const o={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(n)}),t.forEach(t=>{t&&l(n,t,o)}),o}function p(n,t){for(const o of t)o?.afterAllSetup&&o.afterAllSetup(n)}function l(n,u,s){if(s[u.name])t.DEBUG_BUILD&&o.debug.log(`Integration skipped because it was already installed: ${u.name}`);else{if(s[u.name]=u,c.includes(u.name)||"function"!=typeof u.setupOnce||(u.setupOnce(),c.push(u.name)),u.setup&&"function"==typeof u.setup&&u.setup(n),"function"==typeof u.preprocessEvent){const t=u.preprocessEvent.bind(u);n.on("preprocessEvent",(o,c)=>t(o,c,n))}if("function"==typeof u.processEvent){const t=u.processEvent.bind(u),o=Object.assign((o,c)=>t(o,c,n),{id:u.name});n.addEventProcessor(o)}["processSpan","processSegmentSpan"].forEach(t=>{const o=u[t];"function"==typeof o&&n.on(t,t=>o.call(u,t,n))}),t.DEBUG_BUILD&&o.debug.log(`Integration installed: ${u.name}`)}}function b(c){const u=(0,n.getClient)();u?u.addIntegration(c):t.DEBUG_BUILD&&o.debug.warn(`Cannot add integration "${c.name}" because no SDK Client is available.`)}function y(n){return n}function I(n,t){const o={...n,...t};for(const c in t){const u=n[c],s=t[c];if("function"==typeof u&&"function"==typeof s){const n=new Proxy(u,{apply:(n,t,o)=>(Reflect.apply(n,t,o),Reflect.apply(s,t,o))});o[c]=n}}return o}},2536,[2499,2470,2474]);
1010__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"_INTERNAL_getLogBuffer",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"_removeLoneSurrogates",{enumerable:!0,get:function(){return D}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),l=r(d[5]),c=r(d[6]),f=r(d[7]),p=r(d[8]),_=r(d[9]),b=r(d[10]),y=r(d[11]),v=r(d[12]);const L=100;function S(t,n,o,s=!0){!o||t[n]&&!s||(t[n]=o)}function E(t,n){const o=B(),s=O(t);void 0===s?o.set(t,[n]):s.length>=L?(N(t,s),o.set(t,[n])):o.set(t,[...s,n])}function I(n,v=(0,o.getCurrentScope)(),L=E){const I=v?.getClient()??(0,o.getClient)();if(!I)return void(s.DEBUG_BUILD&&u.debug.warn("No client available to capture log."));const{release:N,environment:O,enableLogs:B=!1,beforeSendLog:R}=I.getOptions();if(!B)return void(s.DEBUG_BUILD&&u.debug.warn("logging option not enabled, log will not be captured."));const[,j]=(0,b._getTraceInfoFromScope)(I,v),C={...n.attributes},{user:{id:A,email:P,username:U},attributes:h={}}=(0,c.getCombinedScopeData)((0,o.getIsolationScope)(),v);S(C,"user.id",A,!1),S(C,"user.email",P,!1),S(C,"user.name",U,!1),S(C,"sentry.release",N),S(C,"sentry.environment",O);const{name:k,version:w}=I.getSdkMetadata()?.sdk??{};S(C,"sentry.sdk.name",k),S(C,"sentry.sdk.version",w);const M=I.getIntegrationByName("Replay"),z=M?.getReplayId(!0);S(C,"sentry.replay_id",z),z&&"buffer"===M?.getRecordingMode()&&S(C,"sentry._internal.replay_is_buffering",!0);const F=n.message;
1010if((0,l.isParameterizedString)(F)){const{__sentry_template_string__:t,__sentry_template_values__:n=[]}=F;n?.length&&(C["sentry.message.template"]=t),n.forEach((t,n)=>{C[`sentry.message.parameter.${n}`]=t})}const G=(0,f._getSpanForScope)(v);S(C,"sentry.trace.parent_span_id",G?.spanContext().spanId);const W={...n,attributes:C};I.emit("beforeCaptureLog",W);const x=R?(0,u.consoleSandbox)(()=>R(W)):W;if(!x)return I.recordDroppedEvent("before_send","log_item",1),void(s.DEBUG_BUILD&&u.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:V,message:Y,attributes:q={},severityNumber:X}=x,$=(0,p.timestampInSeconds)(),H=(0,_.getSequenceAttribute)($);L(I,{timestamp:$,level:V,body:D(String(Y)),trace_id:j?.trace_id,severity_number:X??y.SEVERITY_TEXT_TO_SEVERITY_NUMBER[V],attributes:T({...(0,t.serializeAttributes)(h),...(0,t.serializeAttributes)(q,!0),[H.key]:H.value})}),I.emit("afterCaptureLog",x)}function N(t,n){const o=n??O(t)??[];if(0===o.length)return;const s=t.getOptions(),u=(0,v.createLogEnvelope)(o,s._metadata,s.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);B().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(u)}function O(t){return B().get(t)}function B(){return(0,n.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function T(t){const n={};for(const[o,s]of Object.entries(t)){const t=D(o);"string"===s.type?n[t]={...s,value:D(s.value)}:n[t]=s}return n}function D(t){const n=Object(t),o=n.isWellFormed,s=n.toWellFormed;return"function"==typeof o&&"function"==typeof s?o.call(t)?t:s.call(t):t}},2537,[2498,2475,2499,2470,2474,2487,2525,2495,2492,2538,2539,2540,2541]);
1011__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSequenceAttribute",{enumerable:!0,get:function(){return o}});const t="sentry.timestamp.sequence";let n,u=0;function o(o){const c=Math.floor(1e3*o);void 0!==n&&c!==n&&(u=0);const s=u;return u++,n=c,{key:t,value:{value:s,type:"integer"}}}},2538,[]);
1012__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_getTraceInfoFromScope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(c,p){return p?(0,t.withScope)(p,()=>{const u=(0,o.getActiveSpan)(),S=u?(0,o.spanToTraceContext)(u):(0,t.getTraceContextFromScope)(p);return[u?(0,n.getDynamicSamplingContextFromSpan)(u):(0,n.getDynamicSamplingContextFromScope)(c,p),S]}):[void 0,void 0]}},2539,[2499,2513,2479]);
1013__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SEVERITY_TEXT_TO_SEVERITY_NUMBER",{enumerable:!0,get:function(){return t}});const t={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},2540,[]);
1014__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createLogContainerEnvelopeItem",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createLogEnvelope",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(n,t){const s=t?"auto":"never";return[{type:"log",item_count:n.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}function c(o,c,u,l,p){const f={};return c?.sdk&&(f.sdk={name:c.sdk.name,version:c.sdk.version}),u&&l&&(f.dsn=(0,n.dsnToString)(l)),(0,t.createEnvelope)(f,[s(o,p)])}},2541,[2505,2516,2542]);
1015__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isBrowser",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]);function o(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||u())}function u(){const n=t.GLOBAL_OBJ.process;return"renderer"===n?.type}},2542,[2543,2472]);
1016__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNodeEnv",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"loadModule",{enumerable:!0,get:function(){return c}});var t=r(d[0]);
1016function n(){return!(0,t.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,n){return t.require(n)}function c(t,n=m){let c;try{c=o(n,t)}catch{}if(!c)try{const{cwd:u}=o(n,"process");c=o(n,`${u()}/node_modules/${t}`)}catch{}return c}},2543,[2544]);
1017__d(function(g,r,i,a,m,e,d){"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function t(){
1018/*! __SENTRY_SDK_SOURCE__ */
1019return"npm"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSDKSource",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"isBrowserBundle",{enumerable:!0,get:function(){return n}})},2544,[]);
1020__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"_INTERNAL_getMetricBuffer",{enumerable:!0,get:function(){return E}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]),p=r(d[7]),f=r(d[8]),b=r(d[9]),_=r(d[10]);const M=1e3;function y(t,n,o,s=!0){!o||!s&&n in t||(t[n]=o)}function v(t,n){const o=N(),s=E(t);void 0===s?o.set(t,[n]):s.length>=M?(D(t,s),o.set(t,[n])):o.set(t,[...s,n])}function I(t,n,o){const{release:s,environment:c}=n.getOptions(),u={...t.attributes};y(u,"user.id",o.id,!1),y(u,"user.email",o.email,!1),y(u,"user.name",o.username,!1),y(u,"sentry.release",s),y(u,"sentry.environment",c);const{name:l,version:p}=n.getSdkMetadata()?.sdk??{};y(u,"sentry.sdk.name",l),y(u,"sentry.sdk.version",p);const f=n.getIntegrationByName("Replay"),b=f?.getReplayId(!0);return y(u,"sentry.replay_id",b),b&&"buffer"===f?.getRecordingMode()&&y(u,"sentry._internal.replay_is_buffering",!0),{...t,attributes:u}}function S(n,o,s,c){const[,u]=(0,b._getTraceInfoFromScope)(o,s),_=(0,l._getSpanForScope)(s),M=_?_.spanContext().traceId:u?.trace_id,y=_?_.spanContext().spanId:void 0,v=(0,p.timestampInSeconds)(),I=(0,f.getSequenceAttribute)(v);return{timestamp:v,trace_id:M??"",span_id:y,name:n.name,type:n.type,unit:n.unit,value:n.value,attributes:{...(0,t.serializeAttributes)(c),...(0,t.serializeAttributes)(n.attributes,"skip-undefined"),[I.key]:I.value}}}function B(t,n){const l=n?.scope??(0,o.getCurrentScope)(),p=n?.captureSerializedMetric??v,f=l?.getClient()??(0,o.getClient)();if(!f)return void(s.DEBUG_BUILD&&c.debug.warn("No client available to capture metric."));const{_experiments:b,enableMetrics:_,beforeSendMetric:M}=f.getOptions();if(!(_??b?.enableMetrics??!0))return void(s.DEBUG_BUILD&&c.debug.warn("metrics option not enabled, metric will not be captured."));const{user:y,attributes:B}=(0,u.getCombinedScopeData)((0,o.getIsolationScope)(),l),D=I(t,f,y);f.emit("processMetric",D);const E=M||b?.beforeSendMetric,N=E?E(D):D;if(!N)return void(s.DEBUG_BUILD&&c.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const O=S(N,f,l,B);s.DEBUG_BUILD&&c.debug.log("[Metric]",O),p(f,O),f.emit("afterCaptureMetric",N)}function D(t,n){const o=n??E(t)??[];if(0===o.length)return;const s=t.getOptions(),c=(0,_.createMetricEnvelope)(o,s._metadata,s.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);N().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(c)}function E(t){return N().get(t)}function N(){return(0,n.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}},2545,[2498,2475,2499,2470,2474,2525,2495,2492,2538,2539,2546]);
1021__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createMetricContainerEnvelopeItem",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createMetricEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(t,n){const s=n?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:t}]}function c(o,c,u,p,_){const f={};return c?.sdk&&(f.sdk={name:c.sdk.name,version:c.sdk.version}),u&&p&&(f.dsn=(0,t.dsnToString)(p)),(0,n.createEnvelope)(f,[s(o,_)])}},2546,[2505,2516,2542]);
1022__d(function(g,r,i,a,m,e,d){"use strict";
1022Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractGenAiSpansFromEvent",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),s=r(d[2]);function o(o,p){if("transaction"!==o.type||!o.spans?.length||!o.sdkProcessingMetadata?.hasGenAiSpans||!1===p.getOptions().streamGenAiSpans||(0,t.hasSpanStreamingEnabled)(p))return;const u=[],c=[];for(const n of o.spans)n.op?.startsWith("gen_ai.")?u.push((0,s.spanJsonToSerializedStreamedSpan)(n)):c.push(n);if(0===u.length)return;o.spans=c;const f=p.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:u.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,n.isBrowser)()&&{ingest_settings:{infer_ip:f,infer_user_agent:f}},items:u}]}},2547,[2542,2519,2548]);
1023__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanJsonToSerializedStreamedSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]);function s(s){const n={trace_id:s.trace_id,span_id:s.span_id,parent_span_id:s.parent_span_id,name:s.description||"",start_timestamp:s.start_timestamp,end_timestamp:s.timestamp||s.start_timestamp,status:s.status&&"ok"!==s.status&&"cancelled"!==s.status?"error":"ok",is_segment:!1,attributes:{...s.data},links:s.links};return(0,t.streamedSpanJsonToSerializedSpan)(n)}},2548,[2479]);
1024__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TRANSPORT_BUFFER_SIZE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"createTransport",{enumerable:!0,get:function(){return c}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),s=r(d[3]),u=r(d[4]);const p=64;function c(c,l,f=(0,s.makePromiseBuffer)(c.bufferSize||p)){let E={};return{send:function(p){const _=[];if((0,n.forEachEnvelopeItem)(p,(t,o)=>{const s=(0,n.envelopeItemTypeToDataCategory)(o);(0,u.isRateLimited)(E,s)?c.recordDroppedEvent("ratelimit_backoff",s):_.push(t)}),0===_.length)return Promise.resolve({});const v=(0,n.createEnvelope)(p[0],_),D=s=>{(0,n.envelopeContainsItemType)(v,["client_report"])?t.DEBUG_BUILD&&o.debug.warn(`Dropping client report. Will not send outcomes (reason: ${s}).`):(0,n.forEachEnvelopeItem)(v,(t,o)=>{c.recordDroppedEvent(s,(0,n.envelopeItemTypeToDataCategory)(o))})};return f.add(()=>l({body:(0,n.serializeEnvelope)(v)}).then(n=>413===n.statusCode?(t.DEBUG_BUILD&&o.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),D("send_error"),n):(t.DEBUG_BUILD&&void 0!==n.statusCode&&(n.statusCode<200||n.statusCode>=300)&&o.debug.warn(`Sentry responded with status code ${n.statusCode} to sent event.`),E=(0,u.updateRateLimits)(E,n),n),n=>{throw D("network_error"),t.DEBUG_BUILD&&o.debug.error("Encountered error running transport request:",n),n})).then(t=>t,n=>{if(n===s.SENTRY_BUFFER_FULL_ERROR)return t.DEBUG_BUILD&&o.debug.error("Skipped sending event because buffer is full."),D("queue_overflow"),Promise.resolve({});throw n})},flush:t=>f.drain(t)}}},2549,[2470,2474,2516,2550,2551]);
1025__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"makePromiseBuffer",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=Symbol.for("SentryBufferFullError");function u(u=100){const f=new Set;function c(n){f.delete(n)}return{get $(){return Array.from(f)},add:function(t){if(!(f.size<u))return(0,n.rejectedSyncPromise)(o);const s=t();return f.add(s),s.then(()=>c(s),()=>c(s)),s},drain:function(o){if(!f.size)return(0,n.resolvedSyncPromise)(!0);const u=Promise.allSettled(Array.from(f)).then(()=>!0);if(!o)return u;const c=[u,new Promise(n=>(0,t.safeUnref)(setTimeout(()=>n(!1),o)))];return Promise.race(c)}}}},2550,[2530,2533]);
1026__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"disabledUntil",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isRateLimited",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"updateRateLimits",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const n=6e4;function s(s,o=(0,t.safeDateNow)()){const u=parseInt(`${s}`,10);if(!isNaN(u))return 1e3*u;const c=Date.parse(`${s}`);return isNaN(c)?n:c-o}function o(t,n){return t[n]||t.all||0}function u(n,s,u=(0,t.safeDateNow)()){return o(n,s)>u}function c(n,{statusCode:o,headers:u}
1026,c=(0,t.safeDateNow)()){const f={...n},l=u?.["x-sentry-rate-limits"],p=u?.["retry-after"];if(l)for(const t of l.trim().split(",")){const[n,s,,,o]=t.split(":",5),u=parseInt(n,10),l=1e3*(isNaN(u)?60:u);if(s)for(const t of s.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(f[t]=c+l);else f.all=c+l}else p?f.all=c+s(p,c):429===o&&(f.all=c+6e4);return f}},2551,[2488]);
1027__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createClientReportEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function c(c,o,s){const p=[{type:"client_report"},{timestamp:s||(0,n.dateTimestampInSeconds)(),discarded_events:c}];return(0,t.createEnvelope)(o?{dsn:o}:{},[p])}},2552,[2516,2492]);
1028__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const s=[];t.message&&s.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(s.push(n.value),n.type&&s.push(`${n.type}: ${n.value}`))}catch{}return s}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getPossibleEventMessages",{enumerable:!0,get:function(){return t}})},2553,[]);
1029__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"convertSpanJsonToTransactionEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"convertTransactionEventToSpanJson",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){const{trace_id:s,parent_span_id:_,span_id:o,status:p,origin:c,data:u,op:T}=n.contexts?.trace??{};return{data:u??{},description:n.transaction,op:T,parent_span_id:_,span_id:o??"",start_timestamp:n.start_timestamp??0,status:p,timestamp:n.timestamp,trace_id:s??"",origin:c,profile_id:u?.[t.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:u?.[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:n.measurements,is_segment:!0}}function s(n){return{type:"transaction",timestamp:n.timestamp,start_timestamp:n.start_timestamp,transaction:n.description,contexts:{trace:{trace_id:n.trace_id,span_id:n.span_id,parent_span_id:n.parent_span_id,op:n.op,status:n.status,origin:n.origin,data:{...n.data,...n.profile_id&&{[t.SEMANTIC_ATTRIBUTE_PROFILE_ID]:n.profile_id},...n.exclusive_time&&{[t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.exclusive_time}}}},measurements:n.measurements}}},2554,[2500]);
1030__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolveDataCollectionOptions",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const s={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function o(o){const n=null!=o.dataCollection?s:(0,t.defaultPiiToCollectionOptions)(o.sendDefaultPii),u=o.dataCollection??{};return{userInfo:u.userInfo??n.userInfo,cookies:u.cookies??n.cookies,httpHeaders:{request:u.httpHeaders?.request??n.httpHeaders.request,response:u.httpHeaders?.response??n.httpHeaders.response},httpBodies:u.httpBodies??n.httpBodies,queryParams:u.queryParams??n.queryParams,genAI:{inputs:u.genAI?.inputs??n.genAI.inputs,outputs:u.genAI?.outputs??n.genAI.outputs},stackFrameVariables:u.stackFrameVariables??n.stackFrameVariables,frameContextLines:u.frameContextLines??n.frameContextLines}}},2555,[2556]);
1031__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"defaultPiiToCollectionOptions",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return!0===n?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:t.PII_HEADER_SNIPPETS},httpHeaders:{request:{deny:t.PII_HEADER_SNIPPETS},response:{deny:t.PII_HEADER_SNIPPETS}},httpBodies:[],queryParams:{deny:t.PII_HEADER_SNIPPETS},genAI:{inputs:!1,outputs:!1}
1031,stackFrameVariables:!0,frameContextLines:7}}},2556,[2557]);
1032__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FILTERED_VALUE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"PII_HEADER_SNIPPETS",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SENSITIVE_COOKIE_NAME_SNIPPETS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"SENSITIVE_KEY_SNIPPETS",{enumerable:!0,get:function(){return n}});const t="[Filtered]",s=["forwarded","-ip","remote-","via","-user"],n=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],o=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"]},2557,[]);
1033__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"initAndBind",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"setCurrentClient",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),u=r(d[2]);function o(o,b){!0===b.debug&&(t.DEBUG_BUILD?u.debug.enable():(0,u.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));(0,n.getCurrentScope)().update(b.initialScope);const l=new o(b);return c(l),l.init(),l}function c(t){(0,n.getCurrentScope)().setClient(t)}},2558,[2499,2470,2474]);
1034__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"MIN_DELAY",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"START_DELAY",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return h}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]);const f=100,c=5e3,l=36e5;function h(h){function p(...n){e.DEBUG_BUILD&&t.debug.log("[Offline]:",...n)}return e=>{const t=h(e);if(!e.createStore)throw new Error("No `createStore` function was provided");const y=e.createStore(e);let w,v=c;function S(e){w&&clearTimeout(w),w=(0,u.safeUnref)(setTimeout(async()=>{w=void 0;const e=await y.shift();e&&(p("Attempting to send previously queued event"),e[0].sent_at=new Date((0,o.safeDateNow)()).toISOString(),b(e,!0).catch(e=>{p("Failed to retry sending",e)}))},e))}function _(){w||(S(v),v=Math.min(2*v,l))}async function b(o,u=!1){if(!u&&(0,n.envelopeContainsItemType)(o,["replay_event","replay_recording"]))return await y.push(o),S(f),{};try{if(e.shouldSend&&!1===await e.shouldSend(o))throw new Error("Envelope not sent because `shouldSend` callback returned false");const n=await t.send(o);let u=f;if(n)if(n.headers?.["retry-after"])u=(0,s.parseRetryAfterHeader)(n.headers["retry-after"]);else if(n.headers?.["x-sentry-rate-limits"])u=6e4;else if((n.statusCode||0)>=400)return n;return S(u),v=c,n}catch(t){if(await(l=o,h=t,w=v,!(0,n.envelopeContainsItemType)(l,["client_report"])&&(!e.shouldStore||e.shouldStore(l,h,w))))return u?await y.unshift(o):await y.push(o),_(),p("Error sending. Event queued.",t),{};throw t}var l,h,w}return e.flushAtStartup&&_(),{send:b,flush:e=>(void 0===e&&(v=c,S(f)),t.flush(e))}}}},2559,[2470,2474,2516,2488,2551,2533]);
1035__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"eventFromEnvelope",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return l}});var n=_r(d[0]),t=_r(d[1]),r=_r(d[2]);const o="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function u(n,t){let o;return(0,r.forEachEnvelopeItem)(n,(n,r)=>(t.includes(r)&&(o=Array.isArray(n)?n[1]:void 0),!!o)),o}function s(n,t){return r=>{const o=n(r);return{...o,send:async n=>{const r=u(n,["event","transaction","profile","replay_event"]);return r&&(r.release=t),o.send(n)}}}}function c(n,t){return(0,r.createEnvelope)(t?{...n[0],dsn:t}:n[0],n[1])}function l(r,l){return f=>{const p=r(f),v=new Map,E=l||(n=>{const t=n.getEvent();return t?.extra?.[o]&&Array.isArray(t.extra[o])?t.extra[o]:[]});function y(o,u){const c=u?`${o}:${u}`:o;let l=v.get(c);if(!l){const p=(0,t.dsnFromString)(o);if(!p)return;const E=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(p,f.tunnel);l=u?s(r,u)({...f,url:E}):r({...f,url:E}),v.set(c,l)}return[o,l]}return{send:async function(n){const t=E({envelope:n,getEvent:function(t){return u(n,t?.length?t:["event"])}}).map(n=>"string"==typeof n?y(n,void 0):y(n.dsn,n.release)).filter(n=>!!n),r=t.length?t:[["",p]];return(await Promise.all(r.map(([t,r])=>r.send(c(n,t)))))[0]},flush:async function(n){const t=[...v.values(),p];return(await Promise.all(t.map(t=>t.flush(n)))).every(n=>n)}}}}},2560,[2534,2505,2516]);
1036__d(function(g,r,i,a,m,e,d){"use strict";
1036Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=new Set;function u(u){u.forEach(u=>{o.add(u),n.DEBUG_BUILD&&t.debug.log(`AI provider "${u}" wrapping will be skipped`)})}function p(n){return o.has(n)}function c(){o.clear(),n.DEBUG_BUILD&&t.debug.log("Cleared AI provider skip registrations")}},2561,[2470,2474]);
1037__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterKeyValueData",{enumerable:!0,get:function(){return n}});var o=r(d[0]);function t(o,t){return t.some(t=>o.includes(t))}function n(n,s,c){if(!1===s)return{};const E=null!=c?[...o.SENSITIVE_KEY_SNIPPETS,...c]:o.SENSITIVE_KEY_SNIPPETS,u={};if(!0===s){for(const s of Object.keys(n))u[s]=t(s.toLowerCase(),E)?o.FILTERED_VALUE:n[s];return u}if("deny"in s){const c=s.deny.map(o=>o.toLowerCase());for(const s of Object.keys(n)){const f=s.toLowerCase(),l=t(f,E)||c.some(o=>f.includes(o));u[s]=l?o.FILTERED_VALUE:n[s]}return u}const f=s.allow.map(o=>o.toLowerCase());for(const s of Object.keys(n)){const c=s.toLowerCase();if(t(c,E))u[s]=o.FILTERED_VALUE;else{const t=f.some(o=>c.includes(o));u[s]=t?n[s]:o.FILTERED_VALUE}}return u}},2562,[2557]);
1038__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterCookies",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);function o(o,c){if(!1===c)return{};try{const f=(0,t.parseCookie)(o);return 0===Object.keys(f).length?{}:(0,u.filterKeyValueData)(f,c,n.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return n.FILTERED_VALUE}}},2563,[2564,2557,2562]);
1039__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n={};let o=0;for(;o<t.length;){const c=t.indexOf("=",o);if(-1===c)break;let f=t.indexOf(";",o);if(-1===f)f=t.length;else if(f<c){o=t.lastIndexOf(";",c-1)+1;continue}const l=t.slice(o,c).trim();if(void 0===n[l]){let o=t.slice(c+1,f).trim();34===o.charCodeAt(0)&&(o=o.slice(1,-1));
1039try{n[l]=-1!==o.indexOf("%")?decodeURIComponent(o):o}catch{n[l]=o}}o=f+1}return n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseCookie",{enumerable:!0,get:function(){return t}})},2564,[]);
1040__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterQueryParams",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function u(u,c){if(!1===c)return{};try{const t=new URLSearchParams(u),f={};return t.forEach((t,n)=>{f[n]=t}),0===Object.keys(f).length?{}:(0,n.filterKeyValueData)(f,c)}catch{return t.FILTERED_VALUE}}},2565,[2557,2562]);
1041__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FALSY_ENV_VALUES",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TRUTHY_ENV_VALUES",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"envToBool",{enumerable:!0,get:function(){return o}});const n=new Set(["false","f","n","no","off","0"]),t=new Set(["true","t","y","yes","on","1"]);function o(o,u){const c=String(o).toLowerCase();return!n.has(c)&&(!!t.has(c)||(u?.strict?null:Boolean(o)))}},2566,[]);
1042__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createCheckInEnvelope",{enumerable:!0,get:function(){return c}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function c(c,u,f,k,v){const _={sent_at:new Date((0,o.safeDateNow)()).toISOString()};f?.sdk&&(_.sdk={name:f.sdk.name,version:f.sdk.version}),k&&v&&(_.dsn=(0,n.dsnToString)(v)),u&&(_.trace=u);const l=s(c);return(0,t.createEnvelope)(_,[l])}function s(n){return[{type:"check_in"},n]}},2567,[2505,2516,2488]);
1043__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isSentryRequestUrl",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(t,n){const c=n?.getDsn(),o=n?.getOptions().tunnel;return u(t,c)||s(t,o)}function s(t,n){return!!n&&c(t)===c(n)}function u(n,s){const u=(0,t.parseStringToURLObject)(n);return!(!u||(0,t.isURLObjectRelative)(u))&&(!!s&&(c=u.hostname,o=s.host,(c===o||o.length>0&&c.endsWith(`.${o}`))&&/(^|&|\?)sentry_key=/.test(u.search)));var c,o}function c(t){return"/"===t[t.length-1]?t.slice(0,-1):t}},2568,[2569]);
1044__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}
1044),Object.defineProperty(e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getSanitizedUrlString",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isURLObjectRelative",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"parseStringToURLObject",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"parseUrl",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"stripDataUrlContent",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return h}});var t=r(d[0]);const n="thismessage:/";function o(t){return"isRelative"in t}function u(t,o){const u=t.indexOf("://")<=0&&0!==t.indexOf("//"),c=o??(u?n:void 0);try{if("canParse"in URL&&!URL.canParse(t,c))return;const n=new URL(t,c);return u?{isRelative:u,pathname:n.pathname,search:n.search,hash:n.hash}:n}catch{}}function c(t){if(o(t))return t.pathname;const n=new URL(t);return n.search="",n.hash="",["80","443"].includes(n.port)&&(n.port=""),n.password&&(n.password="%filtered%"),n.username&&(n.username="%filtered%"),n.toString()}function s(t,n,o,u){return`${o?.method?.toUpperCase()??"GET"} ${u||(t?"client"===n?c(t):t.pathname:"/")}`}function l(n,u,c,l,p){const h={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return p&&(h["server"===u?"http.route":"url.template"]=p,h[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),l?.method&&(h[t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=l.method.toUpperCase()),n&&(n.search&&(h["url.query"]=n.search),n.hash&&(h["url.fragment"]=n.hash),n.pathname&&(h["url.path"]=n.pathname,"/"===n.pathname&&(h[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),o(n)||(h[t.SEMANTIC_ATTRIBUTE_URL_FULL]=n.href,n.port&&(h["url.port"]=n.port),n.protocol&&(h["url.scheme"]=n.protocol),n.hostname&&(h["server"===u?"server.address":"url.domain"]=n.hostname))),[s(n,u,l,p),h]}function p(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const o=n[6]||"",u=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:o,hash:u,relative:n[5]+o+u}}function h(t){return t.split(/[?#]/,1)[0]}function f(t){const{protocol:n,host:o,path:u}=t;return`${n?`${n}://`:""}${o?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${u}`}function T(t,n=!0){if(t.startsWith("data:")){const o=t.match(/^data:([^;,]+)/),u=o?o[1]:"text/plain",c=t.includes(";base64,"),s=t.indexOf(",");let l="";if(n&&-1!==s){const n=t.slice(s+1);l=n.length>10?`${n.slice(0,10)}... [truncated]`:n}return`data:${u}${c?",base64":""}${l?`,${l}`:""}`}return t}},2569,[2500]);
1045__d(function(g,r,i,a,m,e,d){"use strict";function t(t,...n){const _=new String(String.raw(t,...n));return _.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),_.__sentry_template_values__=n,_}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fmt",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"parameterize",{enumerable:!0,get:function(){return t}});const n=t},2570,[]);
1046__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handleTunnelRequest",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]);async function u(u){const{request:l,allowedDsns:p}=u;if(0===p.length)return new Response("Tunnel not configured",{status:500});const c=new Uint8Array(await l.arrayBuffer());let f;try{[f]=(0,o.parseEnvelope)(c)}catch{return new Response("Invalid envelope",{status:400})}if(!f)return new Response("Invalid envelope: missing header",{status:400});const w=f.dsn;if(!w)return new Response("Invalid envelope: missing DSN",{status:400});if(!p.some(n=>n===w))return t.debug.warn(`Sentry tunnel: rejected request with unauthorized DSN (${w})`),new Response("DSN not allowed",{status:403});const v=(0,s.makeDsn)(w);if(!v)return t.debug.warn(`Could not extract DSN Components from: ${w}`),new Response("Invalid DSN",{status:403});const y=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(v);try{return await fetch(y,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:c})}catch(n){return t.debug.error("Sentry tunnel: failed to forward envelope",n),new Response("Failed to forward envelope to Sentry",{status:500})}}},2571,[2534,2474,2505,2516]);
1047__d(function(g,r,i,a,m,e,d){"use strict";function s(s){void 0===s.user?.ip_address&&(s.user={...s.user,ip_address:"{{auto}}"})}function t(s){"aggregates"in s?void 0===s.attrs?.ip_address&&(s.attrs={...s.attrs,ip_address:"{{auto}}"}):void 0===s.ipAddress&&(s.ipAddress="{{auto}}")}
1047Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return s}})},2572,[]);
1048__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applySdkMetadata",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n,s,c=[s],o="npm"){const _=(n._metadata=n._metadata||{}).sdk=n._metadata.sdk||{};_.name||(_.name=`sentry.javascript.${s}`,_.packages=c.map(n=>({name:`${o}:@sentry/${n}`,version:t.SDK_VERSION})),_.version=t.SDK_VERSION)}},2573,[2476]);
1049__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getTraceData",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),p=r(d[4]),s=r(d[5]),u=r(d[6]),l=r(d[7]),S=r(d[8]),T=r(d[9]),C=r(d[10]);function f(f={}){const b=f.client||(0,o.getClient)();if(!(0,c.isEnabled)()||!b)return{};const E=(0,n.getMainCarrier)(),P=(0,t.getAsyncContextStrategy)(E);if(P.getTraceData)return P.getTraceData(f);const I=f.scope||(0,o.getCurrentScope)(),D=f.span||(0,s.getActiveSpan)(),H=(0,l.spanIsNonRecordingSpan)(D)&&!(0,u.hasSpansEnabled)(b.getOptions());if(!D&&(0,o.hasExternalPropagationContext)())return{};const _=D&&!H?(0,s.spanToTraceHeader)(D):y(I),v=D?(0,S.getDynamicSamplingContextFromSpan)(D):(0,S.getDynamicSamplingContextFromScope)(b,I),A=(0,T.dynamicSamplingContextToSentryBaggageHeader)(v);if(!C.TRACEPARENT_REGEXP.test(_))return p.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const R={"sentry-trace":_,baggage:A};return f.propagateTraceparent&&(R.traceparent=D&&!H?(0,s.spanToTraceparentHeader)(D):x(I)),R}function y(t){const{traceId:n,sampled:o,propagationSpanId:c}=t.getPropagationContext();return(0,C.generateSentryTraceHeader)(n,c,o)}function x(t){const{traceId:n,sampled:o,propagationSpanId:c}=t.getPropagationContext();return(0,C.generateTraceparentHeader)(n,c,o)}},2574,[2480,2475,2499,2527,2474,2479,2508,2510,2513,2504,2503]);
1050__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c="[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:";function u(u,s,f){if("string"!=typeof u||!s)return!0;const l=f?.get(u);if(void 0!==l)return t.DEBUG_BUILD&&!l&&n.debug.log(c,u),l;const b=(0,o.stringMatchesSomePattern)(u,s);return f?.set(u,b),t.DEBUG_BUILD&&!b&&n.debug.log(c,u),b}},2575,[2470,2474,2489]);
1051__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getTraceMetaTags",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return Object.entries(n||(0,t.getTraceData)()).map(([t,n])=>`<meta name="${t}" content="${n}"/>`).join("\n")}},2576,[2574]);
1052__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n,o){let u,c,f;const l=o?.maxWait?Math.max(o.maxWait,n):0,s=o?.setTimeoutImpl||setTimeout;function v(){return T(),u=t(),u}function T(){void 0!==c&&clearTimeout(c),void 0!==f&&clearTimeout(f),c=f=void 0}function b(){return c&&clearTimeout(c),c=s(v,n),l&&void 0===f&&(f=s(v,l)),u}return b.cancel=T,b.flush=function(){return void 0!==c||void 0!==f?v():u},b}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return t}})},2577,[]);
1053__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"headersToDict",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"httpRequestToRequestData",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return h}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]);const f=1048576,l=["text/","application/json","application/x-www-form-urlencoded","application/xml","application/graphql"];function p(t){return"small"===t?1e3:"medium"===t?1e4:f}function y(t){const o={};try{t.forEach((t,n)=>{"string"==typeof t&&(o[n]=t)})}catch{}return o}function b(t){const o=Object.create(null);try{Object.entries(t).forEach(([t,n])=>{"string"==typeof n?o[t]=n:"number"==typeof n&&(o[t]=String(n))})}catch{}return o}function h(t){const o=y(t.headers);return{method:t.method,url:t.url,query_string:q(t.url),headers:o}}function O(t){if(!t)return!1;const o=t.toLowerCase();return l.some(t=>o.includes(t))}async function D(n,c,s){try{const l=n.headers.get("content-type");if(!O(l))return void(t.DEBUG_BUILD&&o.debug.log("Skipping body capture for non-textual content type:",l));if(!n.body)return;const y=n.headers.get("content-length"),b=p(s);if(y){const n=parseInt(y,10);if(!isNaN(n)&&n>f)return void(t.DEBUG_BUILD&&o.debug.log("Skipping body capture: body too large",n))}const h=n.clone().text(),D=new Promise(t=>{(0,u.safeUnref)(setTimeout(()=>t(null),2e3))}),E=await Promise.race([h,D]);if(null===E)return void(t.DEBUG_BUILD&&o.debug.log("Timeout reading request body"));if(!E)return;const _=(new TextEncoder).encode(E),j=_.length;let w;if(j>b){w=`${(new TextDecoder).decode(_.slice(0,b-3))}...`}else w=E;c.setSDKProcessingMetadata({normalizedRequest:{data:w}}),t.DEBUG_BUILD&&o.debug.log("Captured request body:",j,"bytes")}catch(n){t.DEBUG_BUILD&&o.debug.error("Error capturing request body:",n)}}function E(t){const o=t.headers||{},n=("string"==typeof o["x-forwarded-host"]?o["x-forwarded-host"]:void 0)||("string"==typeof o.host?o.host:void 0),c=("string"==typeof o["x-forwarded-proto"]?o["x-forwarded-proto"]:void 0)||t.protocol||(t.socket?.encrypted?"https":"http"),s=t.url||"",u=_({url:s,host:n,protocol:c}),f=t.body||void 0,l=t.cookies;return{url:u,method:t.method,query_string:q(s),headers:b(o),cookies:l,data:f}}function _({url:t,protocol:o,host:n}){return t?.startsWith("http")?t:t&&n?`${o}://${n}${t}`:void 0}function j(t,o=!1,u="request"){const f="boolean"==typeof o?(0,n.defaultPiiToCollectionOptions)(o):o,l="request"===u?f.httpHeaders.request:f.httpHeaders.response,p=f.cookies,y=`http.${u}.header.`,b={};try{const o={};for(const[n,u]of Object.entries(t)){if(null==u)continue;const t=n.toLowerCase();if("cookie"===t||"set-cookie"===t){if(!1===p)continue;if("string"==typeof u&&""!==u){const o=P(u,"set-cookie"===t),n=(0,s.filterKeyValueData)(o,p,c.SENSITIVE_COOKIE_NAME_SNIPPETS);for(const[o,c]of Object.entries(n))b[`${y}${w(t)}.${w(o)}`]=c}else b[`${y}${w(t)}`]=c.FILTERED_VALUE}else{if(!1===l)continue;Array.isArray(u)?o[t]=u.map(t=>null!=t?String(t):t).join(";
1053"):"string"==typeof u&&(o[t]=u)}}if(!1!==l){const t=(0,s.filterKeyValueData)(o,l);for(const[o,n]of Object.entries(t))b[`${y}${w(o)}`]=n}}catch{}return b}function w(t){return t.replace(/-/g,"_")}function P(t,o){const n=t.indexOf(";"),c=o&&-1!==n?t.substring(0,n):t,s=o?[c]:c.split("; "),u={};for(const t of s){const o=t.indexOf("="),n=(-1!==o?t.substring(0,o):t).toLowerCase(),c=-1!==o?t.substring(o+1):"";u[n]=c}return u}function q(t){if(t)try{const o=new URL(t,"http://s.io").search.slice(1);return o.length?o:void 0}catch{return}}},2578,[2470,2474,2556,2557,2562,2533]);
1054__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_KIND",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"spanKindToName",{enumerable:!0,get:function(){return E}});const n={INTERNAL:0,SERVER:1,CLIENT:2,PRODUCER:3,CONSUMER:4},t={[n.INTERNAL]:"INTERNAL",[n.SERVER]:"SERVER",[n.CLIENT]:"CLIENT",[n.PRODUCER]:"PRODUCER",[n.CONSUMER]:"CONSUMER"};function E(n){return t[n]}},2579,[]);
1055__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addBreadcrumb",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c=100;function u(u,s){const b=(0,t.getClient)(),l=(0,t.getIsolationScope)();if(!b)return;const{beforeBreadcrumb:f=null,maxBreadcrumbs:p=c}=b.getOptions();if(p<=0)return;const B={timestamp:(0,o.dateTimestampInSeconds)(),...u},_=f?(0,n.consoleSandbox)(()=>f(B,s)):B;null!==_&&(b.emit&&b.emit("beforeAddBreadcrumb",_,s),l.addBreadcrumb(_,p))}},2580,[2499,2474,2492]);
1056__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"functionToStringIntegration",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let c;const u=new WeakMap,p=(0,n.defineIntegration)(()=>({name:"FunctionToString",setupOnce(){c=Function.prototype.toString;try{Function.prototype.toString=function(...n){const p=(0,o.getOriginalFunction)(this),s=u.has((0,t.getClient)())&&void 0!==p?p:this;return c.apply(s,n)}}catch{}},setup(t){u.set(t,!0)}}))},2581,[2499,2536,2486]);
1057__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"eventFiltersIntegration",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),i=r(d[3]),s=r(d[4]),c=r(d[5]);const l=[/^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$/],u=(0,t.defineIntegration)((n={})=>{let t;return{name:"EventFilters",setup(o){const i=o.getOptions();t=p(n,i)},processEvent(o,i,s){if(!t){const o=s.getOptions();t=p(n,o)}return v(o,t)?null:o}}}),f=(0,t.defineIntegration)((n={})=>({...u(n),name:"InboundFilters"}));function p(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:l],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function v(t,i){if(t.type){if("transaction"===t.type&&b(t,i.ignoreTransactions))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.getEventDescription)(t)}`),!0}else{if(E(t,i.ignoreErrors))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.getEventDescription)(t)}`),!0;if($(t))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.getEventDescription)(t)}`),!0;if(U(t,i.denyUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(t)}.\nUrl: ${D(t)}`),!0;if(!h(t,i.allowUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(t)}.\nUrl: ${D(t)}`),!0}return!1}function E(n,t){return!!t?.length&&(0,i.getPossibleEventMessages)(n).some(n=>
1057(0,c.stringMatchesSomePattern)(n,t))}function b(n,t){if(!t?.length)return!1;const o=n.transaction;return!!o&&(0,c.stringMatchesSomePattern)(o,t)}function U(n,t){if(!t?.length)return!1;const o=D(n);return!!o&&(0,c.stringMatchesSomePattern)(o,t)}function h(n,t){if(!t?.length)return!0;const o=D(n);return!o||(0,c.stringMatchesSomePattern)(o,t)}function y(n=[]){for(let t=n.length-1;t>=0;t--){const o=n[t];if(o&&"<anonymous>"!==o.filename&&"[native code]"!==o.filename)return o.filename||null}return null}function D(t){try{const n=[...t.exception?.values??[]].reverse().find(n=>void 0===n.mechanism?.parent_id&&n.stacktrace?.frames?.length),o=n?.stacktrace?.frames;return o?y(o):null}catch{return n.DEBUG_BUILD&&o.debug.error(`Cannot extract url for event ${(0,s.getEventDescription)(t)}`),null}}function $(n){return!!n.exception?.values?.length&&(!n.message&&!n.exception.values.some(n=>n.stacktrace||n.type&&"Error"!==n.type||n.value))}},2582,[2470,2536,2474,2553,2485,2489]);
1058__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s=(0,t.defineIntegration)((t={})=>{const s=t.limit||5,c=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,u,p){const l=p.getOptions();(0,n.applyAggregateErrorsToEvent)(o.exceptionFromError,l.stackParser,c,s,t,u)}}})},2583,[2536,2584,2585]);
1059__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t(t,o,c,s,u,l){if(!u.exception?.values||!l||!(0,n.isInstanceOf)(l.originalException,Error))return;const p=u.exception.values.length>0?u.exception.values[u.exception.values.length-1]:void 0;p&&(u.exception.values=i(t,o,s,l.originalException,c,u.exception.values,p,0))}function i(t,u,l,p,f,h,x,v){if(h.length>=l+1)return h;let _=[...h];if((0,n.isInstanceOf)(p[f],Error)){c(x,v,p);const n=t(u,p[f]),o=_.length;s(n,f,o,v),_=i(t,u,l,p[f],f,[n,..._],n,o)}return o(p)&&p.errors.forEach((o,h)=>{if((0,n.isInstanceOf)(o,Error)){c(x,v,p);const n=t(u,o),E=_.length;s(n,`errors[${h}]`,E,v),_=i(t,u,l,o,f,[n,..._],n,E)}}),_}function o(n){return Array.isArray(n.errors)}function c(n,t,i){n.mechanism={handled:!0,type:"auto.core.linked_errors",...o(i)&&{is_exception_group:!0},...n.mechanism,exception_id:t}}function s(n,t,i,o){n.mechanism={handled:!0,...n.mechanism,type:"chained",source:t,exception_id:i,parent_id:o}}},2584,[2487]);
1060__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"eventFromMessage",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"eventFromUnknownInput",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"exceptionFromError",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"parseStackFrames",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);function c(t,n){return t(n.stack||"",1)}function u(n){return(0,t.isError)(n)&&"__sentry_fetch_url_host__"in n&&"string"==typeof n.__sentry_fetch_url_host__}function f(t){return u(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function _(t,n){const s={type:n.name||n.constructor.name,value:f(n)},o=c(t,n);return o.length&&(s.stacktrace={frames:o}),s}function p(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];if(s instanceof Error)return s}}function y(n){if("name"in n&&"string"==typeof n.name){let t=`'${n.name}' captured as exception`;return"message"in n&&"string"==typeof n.message&&(t+=` with message '${n.message}'`),t}if("message"in n&&"string"==typeof n.message)return n.message;const s=(0,o.extractExceptionKeysForMessage)(n);if((0,t.isErrorEvent)(n))return`Event \`ErrorEvent\` captured as exception with message \`${n.message}\``;const c=l(n);return`${c&&"Object"!==c?`'${c}'`:"Object"} captured as exception with keys: ${s}`}function l(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{}}function h(n,o,c,u){if((0,t.isError)(c))return[c,void 0];if(o.synthetic=!0,(0,t.isPlainObject)(c)){const t=n?.getOptions().normalizeDepth,o={__serialized__:(0,s.normalizeToSize)(c,t)},f=p(c);if(f)return[f,o];const _=y(c),l=u?.syntheticException||new Error(_);return l.message=_,[l,o]}const f=u?.syntheticException||new Error(c);return f.message=`${c}`,[f,void 0]}function v(t,s,o,c){const u=c?.data&&c.data.mechanism||{handled:!0,type:"generic"},[f,p]=h(t,u,o,c),y={exception:{values:[_(s,f)]}};return p&&(y.extra=p),(0,n.addExceptionTypeValue)(y,void 0,void 0),(0,n.addExceptionMechanism)(y,u),{...y,event_id:c?.event_id}}function E(s,o,u="info",f,_){const p={event_id:f?.event_id,level:u};if(_&&f?.syntheticException){const t=c(s,f.syntheticException);t.length&&(p.exception={values:[{value:o,stacktrace:{frames:t}}]},(0,n.addExceptionMechanism)(p,{synthetic:!0}))}
1060if((0,t.isParameterizedString)(o)){const{__sentry_template_string__:t,__sentry_template_values__:n}=o;return p.logentry={message:t,params:n},p}return p.message=o,p}},2585,[2487,2485,2490,2486]);
1061__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s=(0,t.defineIntegration)(()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",t=>{(0,o.forEachEnvelopeItem)(t,(t,o)=>{if("event"===o){const o=Array.isArray(t)?t[1]:void 0;o&&((0,n.stripMetadataFromStackFrames)(o),t[1]=o)}})}),t.on("applyFrameMetadata",o=>{if(o.type)return;const s=t.getOptions().stackParser;(0,n.addMetadataToStackFrames)(s,o)})}}))},2586,[2536,2587,2516]);
1062__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addMetadataToStackFrames",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getMetadataForUrl",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"stripMetadataFromStackFrames",{enumerable:!0,get:function(){return l}});var t=r(d[0]);const n=new Map,o=new Set;function c(n){if(!t.GLOBAL_OBJ._sentryModuleMetadata)return{};const o={};for(const c of Object.keys(t.GLOBAL_OBJ._sentryModuleMetadata)){const f=t.GLOBAL_OBJ._sentryModuleMetadata[c],u=n(c);for(const t of u.reverse())if(t.filename){o[t.filename]=f;break}}return o}function f(c){if(t.GLOBAL_OBJ._sentryModuleMetadata)for(const f of Object.keys(t.GLOBAL_OBJ._sentryModuleMetadata)){const u=t.GLOBAL_OBJ._sentryModuleMetadata[f];if(o.has(f))continue;o.add(f);const s=c(f);for(const t of s.reverse())if(t.filename){n.set(t.filename,u);break}}}function u(t,o){return f(t),n.get(o)}function s(t,n){n.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(n=>{if(!n.filename||n.module_metadata)return;const o=u(t,n.filename);o&&(n.module_metadata=o)})})}function l(t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{delete t.module_metadata})})}},2587,[2472]);
1063__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"requestDataIntegration",{enumerable:!0,get:function(){return l}});
1063var t=r(d[0]),s=r(d[1]),o=r(d[2]),n=r(d[3]),u=r(d[4]),c=r(d[5]),p=r(d[6]);const l=(0,s.defineIntegration)((s={})=>{function o(t){const o=t.getDataCollectionOptions(),n={...o,...!0===s.include?.cookies&&!1===o.cookies&&{cookies:!0},...!0===s.include?.headers&&!1===o.httpHeaders.request&&{httpHeaders:{...o.httpHeaders,request:!0}}};return{dataCollection:n,include:{cookies:!1!==n.cookies,data:!0,headers:!1!==n.httpHeaders.request,ip:n.userInfo,query_string:!1!==n.queryParams,url:!0,...s.include}}}return{name:"RequestData",processEvent(t,s,n){const{sdkProcessingMetadata:u={}}=t,{normalizedRequest:c,ipAddress:p}=u,{include:l}=o(n);return c&&f(t,c,{ipAddress:p},l),t},processSegmentSpan(s,n){const{sdkProcessingMetadata:u={}}=(0,t.getIsolationScope)().getScopeData(),{normalizedRequest:c,ipAddress:p}=u;if(!c)return;const{include:l,dataCollection:f}=o(n);S(s,c,p,l,f)}}});function f(t,s,o,n){if(t.request={...t.request,...h(s,n)},n.ip){const n=s.headers&&(0,c.getClientIPAddress)(s.headers)||o.ipAddress;n&&(t.user={...t.user,ip_address:n})}}function S(t,s,n,l,f){const S=h(s,l),q={};if(S.url&&(q["url.full"]=S.url),S.method&&(q["http.request.method"]=S.method),S.query_string&&(q["url.query"]=k(S.query_string)),(0,p.safeSetSpanJSONAttributes)(t,q),S.cookies&&Object.keys(S.cookies).length>0){const s=Object.entries(S.cookies).map(([t,s])=>`${t}=${s}`).join("; "),o=(0,u.httpHeadersToSpanAttributes)({cookie:s},f,"request");(0,p.safeSetSpanJSONAttributes)(t,o)}if(S.headers){const s=(0,u.httpHeadersToSpanAttributes)(S.headers,f,"request");(0,p.safeSetSpanJSONAttributes)(t,s)}if(null!=S.data){const s="string"==typeof S.data?S.data:JSON.stringify(S.data);s&&(0,p.safeSetSpanJSONAttributes)(t,{"http.request.body.data":s})}if(l.ip){const u=s.headers&&(0,c.getClientIPAddress)(s.headers)||n||void 0;u&&(0,p.safeSetSpanJSONAttributes)(t,{[o.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:u})}}function h(t,s){const o={},u={...t.headers};if(s.headers&&(o.headers=u,s.cookies||delete u.cookie,!s.ip)){const t=new Set(c.ipHeaderNames.map(t=>t.toLowerCase()));for(const s of Object.keys(u))t.has(s.toLowerCase())&&delete u[s]}if(o.method=t.method,s.url&&(o.url=t.url),s.cookies){const s=t.cookies||(u?.cookie?(0,n.parseCookie)(u.cookie):void 0);o.cookies=s||{}}return s.query_string&&(o.query_string=t.query_string),s.data&&(o.data=t.data),o}function k(t){if("string"==typeof t)return t||void 0;return(Array.isArray(t)?t:Object.entries(t)).map(([t,s])=>`${t}=${s}`).join("&")||void 0}},2588,[2499,2536,2500,2564,2578,2589,2524]);
1064__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getClientIPAddress",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ipHeaderNames",{enumerable:!0,get:function(){return t}});const t=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];function n(n){const F={};for(const t of Object.keys(n))F[t.toLowerCase()]=n[t];return t.map(t=>{const n=F[t.toLowerCase()],o=Array.isArray(n)?n.join(";"):n;return"Forwarded"===t?f(o):o?.split(",").map(t=>t.trim())}).reduce((t,n)=>n?t.concat(n):t,[]).find(t=>null!==t&&o(t))||null}function f(t){if(!t)return null;for(const n of t.split(";"))if(n.startsWith("for="))return n.slice(4);return null}function o(t){return/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(t)}},2589,[]);
1065__d(function(g,r,i,a,m,e,d){"use strict";
1065Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureConsoleIntegration",{enumerable:!0,get:function(){return v}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]);const v=(0,s.defineIntegration)((n={})=>{const s=n.levels||c.CONSOLE_LEVELS,l=n.handled??!0;return{name:"CaptureConsole",setup(n){"console"in f.GLOBAL_OBJ&&(0,o.addConsoleInstrumentationHandler)(({args:o,level:c})=>{(0,t.getClient)()===n&&s.includes(c)&&E(o,c,l)})}}});function E(o,s,c){const f=(0,u.severityLevelFromString)(s),v=new Error,E={level:(0,u.severityLevelFromString)(s),extra:{arguments:o}};(0,t.withScope)(t=>{if(t.addEventProcessor(t=>(t.logger="console",(0,l.addExceptionMechanism)(t,{handled:c,type:"auto.core.capture_console"}),t)),"assert"===s){if(!o[0]){const n=`Assertion failed: ${(0,p.safeJoin)(o.slice(1)," ")||"console.assert"}`;t.setExtra("arguments",o.slice(1)),t.captureMessage(n,f,{captureContext:E,syntheticException:v})}return}const u=o.find(t=>t instanceof Error);if(u)return void(0,n.captureException)(u,E);const x=(0,p.safeJoin)(o," ");t.captureMessage(x,f,{captureContext:E,syntheticException:v})})}},2590,[2499,2527,2591,2536,2474,2485,2592,2489,2472]);
1066__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return f}});var n=r(d[0]),o=r(d[1]),t=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]);const u=new Set([]);function f(n){const o="console",t=(0,c.addHandler)(o,n);return(0,c.maybeInstrument)(o,L),t}function O(n){for(const o of n)u.add(o);return()=>{for(const o of n)u.delete(o)}}function L(){"console"in l.GLOBAL_OBJ&&o.CONSOLE_LEVELS.forEach(function(f){f in l.GLOBAL_OBJ.console&&(0,t.fill)(l.GLOBAL_OBJ.console,f,function(t){return o.originalConsoleMethods[f]=t,function(...t){const O=t[0],L=o.originalConsoleMethods[f],B=u.size&&"string"==typeof O&&(0,s.stringMatchesSomePattern)(O,u);B||(0,c.triggerHandlers)("console",{args:t,level:f}),(!B||n.DEBUG_BUILD&&o.debug.isEnabled())&&L?.apply(l.GLOBAL_OBJ.console,t)}})})}},2591,[2470,2474,2486,2489,2472,2473]);
1067__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return"warn"===n?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"severityLevelFromString",{enumerable:!0,get:function(){return n}})},2592,[]);
1068__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_shouldDropEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"dedupeIntegration",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),u=r(d[2]),i=r(d[3]);const o=(0,t.defineIntegration)(()=>{let t;return{name:"Dedupe",processEvent(i){if(i.type)return i;try{if(c(i,t))return n.DEBUG_BUILD&&u.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=i}}});function c(n,t){return!!t&&(!!f(n,t)||!!l(n,t))}function f(n,t){const u=n.message,i=t.message;return!(!u&&!i)&&(!(u&&!i||!u&&i)&&(u===i&&(!!s(n,t)&&!!p(n,t))))}function l(n,t){const u=v(t),i=v(n);return!(!u||!i)&&(u.type===i.type&&u.value===i.value&&(!!s(n,t)&&!!p(n,t)))}function p(n,t){let u=(0,i.getFramesFromEvent)(n),o=(0,i.getFramesFromEvent)(t);if(!u&&!o)return!0;if(u&&!o||!u&&o)return!1;if(o.length!==u.length)return!1;for(let n=0;n<o.length;n++){const t=o[n],i=u[n];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function s(n,t){let u=n.fingerprint,i=t.fingerprint;if(!u&&!i)return!0;if(u&&!i||!u&&i)return!1;try{return!(u.join("")!==i.join(""))}catch{return!1}}function v(n){return n.exception?.values?.[0]}},2593,[2470,2536,2474,2477]);
1069__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),u=r(d[5]),f=r(d[6]);const l=(0,n.defineIntegration)((t={})=>{const{depth:n=3,captureErrorCause:o=!0}=t;return{name:"ExtraErrorData",processEvent(t,c,s){const{maxValueLength:u}=s.getOptions();return E(t,c,n,o,u)}}});function E(t,n={},o,f,l){if(!n.originalException||!(0,c.isError)(n.originalException))return t;const E=n.originalException.name||n.originalException.constructor.name,x=p(n.originalException,f,l);if(x){const n={...t.contexts},f=(0,s.normalize)(x,o);return(0,c.isPlainObject)(f)&&((0,u.setSkipNormalizationHint)(f),n[E]=f),{...t,contexts:n}}return t}function p(n,s,u){try{const t=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const s of Object.keys(n)){if(-1!==t.indexOf(s))continue;const l=n[s];o[s]=(0,c.isError)(l)||"string"==typeof l?u?(0,f.truncate)(`${l}`,u):`${l}`:l}if(s&&void 0!==n.cause)if((0,c.isError)(n.cause)){const t=n.cause.name||n.cause.constructor.name;o.cause={[t]:p(n.cause,!1,u)}}else o.cause=n.cause;if("function"==typeof n.toJSON){const t=n.toJSON();for(const n of Object.keys(t)){const s=t[n];o[n]=(0,c.isError)(s)?s.toString():s}}return o}catch(n){t.DEBUG_BUILD&&o.debug.error("Unable to extract extra data from the Error object:",n)}return null}},2594,[2470,2536,2474,2487,2490,2491,2489]);
1070__d(function(g,r,i,a,m,e,d){"use strict";
1070Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"generateIteratee",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);const o=(0,t.defineIntegration)((t={})=>{const n=t.root,o=t.prefix||"app:///",f="window"in c.GLOBAL_OBJ&&!!c.GLOBAL_OBJ.window,l=t.iteratee||s({isBrowser:f,root:n,prefix:o});function u(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map(t=>{return{...t,...t.stacktrace&&{stacktrace:(n=t.stacktrace,{...n,frames:n?.frames?.map(t=>l(t))})}};var n})}}}catch{return t}}return{name:"RewriteFrames",processEvent(t){let n=t;return t.exception&&Array.isArray(t.exception.values)&&(n=u(n)),n}}});function s({isBrowser:t,root:c,prefix:o}){return s=>{if(!s.filename)return s;const f=/^[a-zA-Z]:\\/.test(s.filename)||s.filename.includes("\\")&&!s.filename.includes("/"),l=/^\//.test(s.filename);if(t){if(c){const t=s.filename;0===t.indexOf(c)&&(s.filename=t.replace(c,o))}}else if(f||l){const t=f?s.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):s.filename,l=c?(0,n.relative)(c,t):(0,n.basename)(t);s.filename=`${o}${l}`}return s}}},2595,[2536,2596,2472]);
1071__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,n){let i=0;for(let n=t.length-1;n>=0;n--){const l=t[n];"."===l?t.splice(n,1):".."===l?(t.splice(n,1),i++):i&&(t.splice(n,1),i--)}if(n)for(;i--;i)t.unshift("..");return t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"basename",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"dirname",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"isAbsolute",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"join",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"normalizePath",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"relative",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"resolve",{enumerable:!0,get:function(){return l}});const n=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function i(t){const i=t.length>1024?`<truncated>${t.slice(-1024)}`:t,l=n.exec(i);return l?l.slice(1):[]}function l(...n){let i="",l=!1;for(let t=n.length-1;t>=-1&&!l;t--){const c=t>=0?n[t]:"/";c&&(i=`${c}/${i}`,l="/"===c.charAt(0))}return i=t(i.split("/").filter(t=>!!t),!l).join("/"),(l?"/":"")+i||"."}function c(t){let n=0;for(;n<t.length&&""===t[n];n++);let i=t.length-1;for(;i>=0&&""===t[i];i--);return n>i?[]:t.slice(n,i-n+1)}function o(t,n){t=l(t).slice(1),n=l(n).slice(1);const i=c(t.split("/")),o=c(n.split("/")),u=Math.min(i.length,o.length);let f=u;for(let t=0;t<u;t++)if(i[t]!==o[t]){f=t;break}let s=[];for(let t=f;t<i.length;t++)s.push("..");return s=s.concat(o.slice(f)),s.join("/")}function u(n){const i=f(n),l="/"===n.slice(-1);let c=t(n.split("/").filter(t=>!!t),!i).join("/");return c||i||(c="."),c&&l&&(c+="/"),(i?"/":"")+c}function f(t){return"/"===t.charAt(0)}function s(...t){return u(t.join("/"))}function b(t){const n=i(t),l=n[0]||"";let c=n[1];return l||c?(c&&(c=c.slice(0,c.length-1)),l+c):"."}function h(t,n){let l=i(t)[2]||"";return n&&l.slice(-1*n.length)===n&&(l=l.slice(0,l.length-n.length)),l}},2596,[]);
1072__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DB_OPERATIONS_TO_INSTRUMENT",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"FILTER_MAPPINGS",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"extractOperation",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"translateFiltersIntoMethods",{enumerable:!0,get:function(){return R}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]),c=r(d[6]),p=r(d[7]),l=r(d[8]),f=r(d[9]),h=r(d[10]);const y=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],b=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],S={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},T=["select","insert","upsert","update","delete"];function E(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function O(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function _(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function I(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function R(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...o]=t.split(".");let s;return s=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&S[n]||"filter",`${s}(${e}, ${o.join(".")})`}function P(e,t=!1){return new Proxy(e,{apply:(n,s,c)=>(0,h.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,s,c).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:f.SPAN_STATUS_ERROR}),(0,o.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:f.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:f.SPAN_STATUS_ERROR}),e.end(),(0,o.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...c))})}function A(e){const t=e.auth;if(t&&!O(e.auth)){for(const n of y){const o=t[n];o&&("function"==typeof e.auth[n]&&(e.auth[n]=P(o)))}for(const n of b){const o=t.admin[n];o&&("function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=P(o,!0)))}E(e.auth)}}function N(n,s){O(n.prototype.then)||(n.prototype.then=new Proxy(n.prototype.then,{apply(n,c,y){const b=T,S=c,E=I(S.method,S.headers);if(!b.includes(E))return Reflect.apply(n,c,y);if(!S?.url?.pathname||"string"!=typeof S.url.pathname)return Reflect.apply(n,c,y);const O=S.url.pathname.split("/"),P=O.length>0?O[O.length-1]:"",A=[];
1072for(const[e,t]of S.url.searchParams.entries())A.push(R(e,t));const N=Object.create(null);if((0,l.isPlainObject)(S.body))for(const[e,t]of Object.entries(S.body))N[e]=t;const U=(0,t.getClient)(),j=s.sendOperationData??!0===U?.getDataCollectionOptions().userInfo,k=_(S.body,N),w="select"===E?"":`${E}${$=S.body,v=N,void 0!==_($,v)?"(...) ":""}`;var $,v;const x=j?A.join(" "):A.length>0?"[redacted]":"",B=[w.trimEnd(),x].filter(Boolean).join(" "),D=B?`${B} from(${P})`:`from(${P})`,C={"db.table":P,"db.schema":S.schema,"db.url":S.url.origin,"db.sdk":S.headers["X-Client-Info"],"db.system":"postgresql","db.operation":E,[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return A.length&&j&&(C["db.query"]=A),void 0!==k&&j&&(C["db.body"]=k),(0,h.startSpan)({name:D,attributes:C},t=>Reflect.apply(n,c,[]).then(n=>{if(t&&(n&&"object"==typeof n&&"status"in n&&(0,f.setHttpStatus)(t,n.status||500),t.end()),n?.error){const e=new Error(n.error.message);n.error.code&&(e.code=n.error.code),n.error.details&&(e.details=n.error.details);const t={};A.length&&j&&(t.query=A),void 0!==k&&j&&(t.body=k),(0,o.captureException)(e,e=>(e.addEventProcessor(e=>((0,p.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",t),e))}const s={type:"supabase",category:`db.${E}`,message:D},u={};return A.length&&j&&(u.query=A),void 0!==k&&j&&(u.body=k),Object.keys(u).length&&(s.data=u),(0,e.addBreadcrumb)(s),n},e=>{throw t&&((0,f.setHttpStatus)(t,500),t.end()),e}).then(...y))}}),E(n.prototype.then))}function U(e,t){for(const o of T)O(e.prototype[o])||(e.prototype[o]=new Proxy(e.prototype[o],{apply(e,s,u){const p=Reflect.apply(e,s,u),l=p.constructor;return n.DEBUG_BUILD&&c.debug.log(`Instrumenting ${o} operation's PostgRESTFilterBuilder`),N(l,t),p}}),E(e.prototype[o]))}const j=(e,t={})=>{if(!e)return void(n.DEBUG_BUILD&&c.debug.warn("Supabase integration was not installed because no Supabase client was provided."));const o=e.constructor===Function?e:e.constructor;var s,u;u=t,O((s=o).prototype.from)||(s.prototype.from=new Proxy(s.prototype.from,{apply(e,t,n){const o=Reflect.apply(e,t,n);return U(o.constructor,u),o}}),E(s.prototype.from)),A(e)},k=(e,t)=>({setupOnce(){j(e,t)},name:"Supabase"}),w=(0,s.defineIntegration)(e=>k(e.supabaseClient,{sendOperationData:e.sendOperationData}))},2597,[2580,2499,2470,2527,2536,2500,2474,2485,2487,2501,2520]);
1073__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"applyZodErrorsToEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"flattenIssue",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"flattenIssuePath",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"formatIssueMessage",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return l}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);function s(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function o(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function u(e){const t=new Set;for(const n of e.issues){const e=o(n.path);e.length>0&&t.add(e)}const s=Array.from(t);if(0===s.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,n.truncate)(s.join(", "),100)}`}function c(e,n=!1,o,c){if(!(o.exception?.values&&c.originalException&&(l=c.originalException,(0,t.isError)(l)&&"ZodError"===l.name&&Array.isArray(l.issues))&&0!==c.originalException.issues.length))return o;var l;try{const t=(n?c.originalException.issues:c.originalException.issues.slice(0,e)).map(s);return n&&(Array.isArray(c.attachments)||(c.attachments=[]),c.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:t})})),{...o,exception:{...o.exception,values:[{...o.exception.values[0],value:u(c.originalException)},...o.exception.values.slice(1)]},extra:{...o.extra,"zoderror.issues":t.slice(0,e)}}}catch(e){return{...o,extra:{...o.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const l=(0,e.defineIntegration)((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(n,s)=>c(t,e.saveZodIssuesAsAttachment,n,s)}})},2598,[2536,2487,2489]);
1074__d(function(g,r,_i,a,m,e,d){"use strict";
1074Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),i=r(d[2]),o=r(d[3]),s=r(d[4]);const l=(0,t.defineIntegration)(t=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",t=>{(0,i.forEachEnvelopeItem)(t,(t,i)=>{if("event"===i){const i=Array.isArray(t)?t[1]:void 0;i&&((0,n.stripMetadataFromStackFrames)(i),t[1]=i)}})}),t.on("applyFrameMetadata",i=>{if(i.type)return;const o=t.getOptions().stackParser;(0,n.addMetadataToStackFrames)(o,i)})},preprocessEvent(n){t.ignoreSentryInternalFrames&&(s.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(n.sdkProcessingMetadata={...n.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(n){const i=!!t.ignoreSentryInternalFrames&&(!0===n.sdkProcessingMetadata?.insideSentryWrapped&&1===n.exception?.values?.length),o=u(n,t.ignoreSentryInternalFrames,i);if(o){if(o["drop-error-if-contains-third-party-frames"===t.behaviour||"apply-tag-if-contains-third-party-frames"===t.behaviour?"some":"every"](n=>!n.some(n=>t.filterKeys.includes(n)))){if("drop-error-if-contains-third-party-frames"===t.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===t.behaviour)return null;n.tags={...n.tags,third_party_code:!0}}}return n}}));function c(t,n,i){if(0!==n)return!1;if(i&&p(t))return!0;if("sentryWrapped"===t.function)return!0;if(!t.context_line||!t.filename)return!1;if(!t.filename.includes("sentry")||!t.filename.includes("helpers")||!t.context_line.includes(h))return!1;if(t.pre_context){const n=t.pre_context.length;for(let i=0;i<n;i++)if(t.pre_context[i]?.includes(y))return!0}return!1}function u(t,n,i){const s=(0,o.getFramesFromEvent)(t);if(s)return s.filter((t,o)=>!!t.filename&&((null!=t.lineno||null!=t.colno||null!=t.instruction_addr)&&(!n||!c(t,o,!!i)))).map(t=>t.module_metadata?Object.keys(t.module_metadata).filter(t=>t.startsWith(f)).map(t=>t.slice(f.length)):[])}function p(t){return!t.context_line&&!t.pre_context&&!!t.function&&t.function.length<=2}const f="_sentryBundlerPluginAppKey:",y="Attempt to invoke user-land function",h="fn.apply(this, wrappedArguments)"},2599,[2536,2587,2516,2477,2472]);
1075__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addConsoleBreadcrumb",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"consoleIntegration",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),u=r(d[5]),c=r(d[6]),f=r(d[7]);const O=(0,s.defineIntegration)((t={})=>{const s=new Set(t.levels||l.CONSOLE_LEVELS);return{name:"Console",setup(l){const u=(0,o.addConsoleInstrumentationHandler)(({args:t,level:o})=>{(0,n.getClient)()===l&&s.has(o)&&L(o,t)});if(l.registerCleanup(u),t.filter){const n=(0,o.addConsoleInstrumentationFilter)(t.filter);l.registerCleanup(n)}}}});function L(n,o){const s={category:"console",data:{arguments:o,logger:"console"},level:(0,u.severityLevelFromString)(n),message:p(o)};if("assert"===n){if(!1!==o[0])return;{const t=o.slice(1);s.message=t.length>0?`Assertion failed: ${p(t)}`:"Assertion failed",s.data.arguments=t}}(0,t.addBreadcrumb)(s,{input:o,level:n})}function p(t){return"util"in f.GLOBAL_OBJ&&"function"==typeof f.GLOBAL_OBJ.util.format?f.GLOBAL_OBJ.util.format(...t):(0,c.safeJoin)(t," ")}},2600,[2580,2499,2591,2536,2474,2592,2489,2472]);
1076__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"featureFlagsIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o=(0,t.defineIntegration)(()=>({name:"FeatureFlags",processEvent:(t,o,c)=>(0,n._INTERNAL_copyFlagsFromScopeToEvent)(t),addFeatureFlag(t,o){(0,n._INTERNAL_insertFlagToScope)(t,o),(0,n._INTERNAL_addFeatureFlagToActiveSpan)(t,o)}}))},2601,[2536,2602]);
1077__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return p}}
1077),Object.defineProperty(e,"_INTERNAL_insertToFlagBuffer",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);const f=100,c=10,l="flag.evaluation.";function s(n){if(n.type)return n;const o=(0,t.getCurrentScope)().getScopeData().contexts.flags,u=o?o.values:[];return u.length?(void 0===n.contexts&&(n.contexts={}),n.contexts.flags={values:[...u]},n):n}function p(n,o,u=f){const c=(0,t.getCurrentScope)().getScopeData().contexts;c.flags||(c.flags={values:[]});_(c.flags.values,n,o,u)}function _(t,u,f,c){if("boolean"!=typeof f)return;if(t.length>c)return void(n.DEBUG_BUILD&&o.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${c}`));const l=t.findIndex(t=>t.flag===u);-1!==l&&t.splice(l,1),t.length===c&&t.shift(),t.push({flag:u,result:f})}function b(t,n,o=c){if("boolean"!=typeof n)return;const f=(0,u.getActiveSpan)();if(!f)return;const s=(0,u.spanToJSON)(f).data;if(`${l}${t}`in s)return void f.setAttribute(`${l}${t}`,n);Object.keys(s).filter(t=>t.startsWith(l)).length<o&&f.setAttribute(`${l}${t}`,n)}},2602,[2499,2470,2474,2479]);
1078__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"growthbookIntegration",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);const u=(0,t.defineIntegration)(({growthbookClass:t})=>({name:"GrowthBook",setupOnce(){const o=t.prototype;"function"==typeof o.isOn&&(0,n.fill)(o,"isOn",c),"function"==typeof o.getFeatureValue&&(0,n.fill)(o,"getFeatureValue",c)},processEvent:(t,n,u)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(t)}));function c(t){return function(...n){const u=n[0],c=t.apply(this,n);return"string"==typeof u&&"boolean"==typeof c&&((0,o._INTERNAL_insertFlagToScope)(u,c),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(u,c)),c}}},2603,[2536,2602,2486]);
1079__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"conversationIdIntegration",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);const c=(0,n.defineIntegration)(()=>({name:"ConversationId",setup(n){n.on("spanStart",n=>{const c=(0,t.getCurrentScope)().getScopeData(),p=(0,t.getIsolationScope)().getScopeData(),I=c.conversationId||p.conversationId;if(I){const{op:t,data:c,description:p}=(0,s.spanToJSON)(n);if(!t?.startsWith("gen_ai.")&&!c["ai.operationId"]&&!p?.startsWith("ai."))return;n.setAttribute(o.GEN_AI_CONVERSATION_ID_ATTRIBUTE,I)}})}}))},2604,[2499,2536,2500,2479]);
1080__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"profiler",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);function l(n){return!!n&&void 0!==n._profiler&&"function"==typeof n._profiler.start&&"function"==typeof n._profiler.stop}const f={startProfiler:function(){const f=(0,n.getClient)();if(!f)return void(t.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));const s=f.getIntegrationByName("ProfilingIntegration");s?l(s)?s._profiler.start():t.DEBUG_BUILD&&o.debug.warn("Profiler is not available on profiling integration."):t.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")},stopProfiler:function(){const f=(0,n.getClient)();if(!f)return void(t.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));const s=f.getIntegrationByName("ProfilingIntegration");s?l(s)?s._profiler.stop():t.DEBUG_BUILD&&o.debug.warn("Profiler is not available on profiling integration."):t.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")}}},2605,[2499,2470,2474]);
1081__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"_callOnRequestSpanEnd",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"instrumentFetchRequest",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]),p=r(d[5]),u=r(d[6]),f=r(d[7
1081]),h=r(d[8]),l=r(d[9]),b=r(d[10]),y=r(d[11]);function _(n,o,c,f,b){if(!n.fetchData)return;const{method:y,url:_}=n.fetchData,A=(0,p.hasSpansEnabled)()&&o(_);if(n.endTimestamp){const t=n.fetchData.__span;if(!t)return;const s=f[t];return void(s&&(A&&(R(s,n),S(s,n,b)),delete f[t]))}const{spanOrigin:v="auto.http.browser",propagateTraceparent:O=!1}="object"==typeof b?b:{spanOrigin:b},I=(0,t.getClient)(),j=!!(0,s.getActiveSpan)()||!!I&&(0,h.hasSpanStreamingEnabled)(I),D=A&&j?(0,l.startInactiveSpan)(E(_,y,v)):new u.SentryNonRecordingSpan;if(A&&!j&&I?.recordDroppedEvent("no_parent_span","span"),n.fetchData.__span=D.spanContext().spanId,f[D.spanContext().spanId]=D,c(n.fetchData.url)){const t=n.args[0],s={...n.args[1]||{}},o=T(t,s,(0,p.hasSpansEnabled)()&&j?D:void 0,O);o&&(n.args[1]=s,s.headers=o)}if(I){const t={input:n.args,response:n.response,startTimestamp:n.startTimestamp,endTimestamp:n.endTimestamp};I.emit("beforeOutgoingRequestSpan",D,t)}return D}function S(t,n,s){const o="object"==typeof s&&null!==s?s.onRequestSpanEnd:void 0;o?.(t,{headers:n.response?.headers,error:n.error})}function T(t,n,s,o){const p=(0,b.getTraceData)({span:s,propagateTraceparent:o}),u=p["sentry-trace"],f=p.baggage,h=p.traceparent;if(!u)return;const l=n.headers||((0,c.isRequest)(t)?t.headers:void 0);if(l){if(y=l,"undefined"!=typeof Headers&&(0,c.isInstanceOf)(y,Headers)){const t=new Headers(l);if(t.get("sentry-trace")||t.set("sentry-trace",u),o&&h&&!t.get("traceparent")&&t.set("traceparent",h),f){const n=t.get("baggage");n?A(n)||t.set("baggage",`${n},${f}`):t.set("baggage",f)}return t}if(v(l)){const t=[...l];t.find(t=>"sentry-trace"===t[0])||t.push(["sentry-trace",u]),o&&h&&!t.find(t=>"traceparent"===t[0])&&t.push(["traceparent",h]);const n=l.find(t=>"baggage"===t[0]&&"string"==typeof t[1]&&A(t[1]));return f&&!n&&t.push(["baggage",f]),t}{const t="sentry-trace"in l?l["sentry-trace"]:void 0,n="traceparent"in l?l.traceparent:void 0,s="baggage"in l?l.baggage:void 0,c=s?Array.isArray(s)?[...s]:[s]:[],p=s&&(Array.isArray(s)?s.find(t=>A(t)):A(s));f&&!p&&c.push(f);const b=Object.assign({},l,{"sentry-trace":t??u,baggage:c.length>0?c.join(","):void 0});return o&&h&&!n&&(b.traceparent=h),b}}return{...p};var y}function R(t,n){if(n.response){(0,o.setHttpStatus)(t,n.response.status);const s=n.response?.headers?.get("content-length");if(s){const n=parseInt(s);n>0&&t.setAttribute("http.response_content_length",n)}}else n.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"});t.end()}function A(t){return"string"==typeof t&&t.split(",").some(t=>t.trim().startsWith(f.SENTRY_BAGGAGE_KEY_PREFIX))}function v(t){return!!Array.isArray(t)&&t.every(t=>Array.isArray(t)&&2===t.length&&"string"==typeof t[0])}function E(t,n,s){if(t.startsWith("data:")){return{name:`${n} ${(0,y.stripDataUrlContent)(t)}`,attributes:O(t,void 0,n,s)}}const o=(0,y.parseStringToURLObject)(t);return{name:`${n} ${o?(0,y.getSanitizedUrlStringFromUrlObject)(o):t}`,attributes:O(t,o,n,s)}}function O(t,s,o,c){const p={url:(0,y.stripDataUrlContent)(t),type:"fetch","http.method":o,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return s&&((0,y.isURLObjectRelative)(s)||(p["http.url"]=(0,y.stripDataUrlContent)(s.href),p["server.address"]=s.host),s.search&&(p["http.query"]=s.search),s.hash&&(p["http.fragment"]=s.hash)),p}},2606,[2499,2500,2479,2501,2487,2508,2510,2504,2519,2520,2574,2569]);
1082__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureFeedback",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n,c={},s=(0,t.getCurrentScope)()){const{message:o,name:u,email:l,url:f,source:b,associatedEventId:_,tags:p}=n,v={contexts:{feedback:{contact_email:l,name:u,message:o,url:f,source:b,associated_event_id:_}},type:"feedback",level:"info",tags:p},k=s?.getClient()||(0,t.getClient)();k&&k.emit("beforeSendFeedback",v,c);return s.captureEvent(v,c)}},2607,[2499]);
1083__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fmt",{enumerable:!0,get:function(){return n.fmt}}),Object.defineProperty(e,"debug",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"error",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"fatal",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"info",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"trace",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"warn",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]);function u(n,u,o,c,f){(0,t._INTERNAL_captureLog)({level:n,message:u,attributes:o,severityNumber:f},c)}function o(t,n,{scope:o}={}){u("trace",t,n,o)}function c(t,n,{scope:o}={}){u("debug",t,n,o)}function f(t,n,{scope:o}={}){u("info",t,n,o)}function b(t,n,{scope:o}={}){u("warn",t,n,o)}function p(t,n,{scope:o}={}){u("error",t,n,o)}function l(t,n,{scope:o}={}){u("fatal",t,n,o)}},2608,[2537,2570]);
1084__d(function(g,r,i,a,m,e,d){"use strict";
1084Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),f=r(d[7]),b=r(d[8]),p=r(d[9]);const L={[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},_=(0,o.defineIntegration)((o={})=>{const l=o.levels||c.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(o){const{enableLogs:_,normalizeDepth:C=3,normalizeMaxBreadth:E=1e3}=o.getOptions();if(!_)return void(n.DEBUG_BUILD&&c.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled"));const I=(0,s.addConsoleInstrumentationHandler)(({args:n,level:s})=>{if((0,t.getClient)()!==o||!l.includes(s))return;const c=n[0],_=n.slice(1);if("assert"===s){if(!c){const t=_.length>0?`Assertion failed: ${(0,p.formatConsoleArgs)(_,C,E)}`:"Assertion failed";(0,b._INTERNAL_captureLog)({level:"error",message:t,attributes:L})}return}const I="log"===s,v={...L};if((0,u.isPlainObject)(c)){Object.assign(v,(0,f.normalize)(c,C,E));const t="string"==typeof n[1]?2:1;n.slice(t).forEach((t,n)=>{v[`sentry.message.parameter.${n}`]=(0,f.normalize)(t,C,E)})}else{if(_.length>0&&"string"==typeof c&&!(0,p.hasConsoleSubstitutions)(c)){const t=(0,p.createConsoleTemplateAttributes)(c,_);for(const[n,s]of Object.entries(t))v[n]=n.startsWith("sentry.message.parameter.")?(0,f.normalize)(s,C,E):s}}(0,b._INTERNAL_captureLog)({level:I?"info":s,message:(0,p.formatConsoleArgs)(n,C,E),severityNumber:I?10:void 0,attributes:v})});o.registerCleanup(I)}}})},2609,[2499,2470,2591,2536,2500,2474,2487,2490,2537,2610]);
1085__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createConsoleTemplateAttributes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"formatConsoleArgs",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"hasConsoleSubstitutions",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"safeJoinConsoleArgs",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function u(t,n,u){return"util"in o.GLOBAL_OBJ&&"function"==typeof o.GLOBAL_OBJ.util.format?o.GLOBAL_OBJ.util.format(...t):s(t,n,u)}function s(o,u,s){return o.map(o=>(0,t.isPrimitive)(o)?String(o):JSON.stringify((0,n.normalize)(o,u,s))).join(" ")}function f(t){return/%[sdifocO]/.test(t)}function c(t,n){const o={},u=new Array(n.length).fill("{}").join(" ");return o["sentry.message.template"]=`${t} ${u}`,n.forEach((t,n)=>{o[`sentry.message.parameter.${n}`]=t}),o}},2610,[2487,2490,2472]);
1086__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"count",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"distribution",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"gauge",{enumerable:!0,get:function(){return c}});var t=r(d[0]);function n(n,u,c,o){(0,t._INTERNAL_captureMetric)({type:n,name:u,value:c,unit:o?.unit,attributes:o?.attributes},{scope:o?.scope})}function u(t,u=1,c){n("counter",t,u,c)}function c(t,u,c){n("gauge",t,u,c)}function o(t,u,c){n("distribution",t,u,c)}},2611,[2545]);
1087__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createConsolaReporter",{enumerable:!0,get:function(){return f}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),l=r(d[4]);const c=["trace","debug","info","warn","error","fatal"];function f(o={}){const f=new Set(o.levels??c),u=o.client;return{log(o){const{type:c,level:b,message:h,args:O,tag:j,date:z,...C}=o,P=u||(0,t.getClient)();if(!P)return;const _=p(c,b);if(!f.has(_))return;const{normalizeDepth:w=3,normalizeMaxBreadth:A=1e3}=P.getOptions(),T={};for(const[t,s]of Object.entries(C))T[t]=(0,l.normalize)(s,w,A);T["sentry.origin"]="auto.log.consola",j&&(T["consola.tag"]=j),c&&(T["consola.type"]=c),null!=b&&"number"==typeof b&&(T["consola.level"]=b);const x=v(y(O,w,A),w,A);x?.attributes&&Object.assign(T,x.attributes),(0,s._INTERNAL_captureLog)({level:_,message:x?.message||h||O&&(0,n.formatConsoleArgs)(O,w,A)||"",attributes:T})}}}const u={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},b={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function p(t,s){if("verbose"===t)return"debug";if("silent"===t)return"trace";if(t){const s=u[t];if(s)return s}if("number"==typeof s){const t=b[s];if(t)return t}return"info"}function y(t,s,l){if(!t?.length)return{message:""};const c=(0,n.formatConsoleArgs)(t,s,l),f=t[0];if((0,o.isPlainObject)(f)){const s="string"==typeof t[1]?2:1;return{message:c,attributes:f,messageParameters:t.slice(s)}}{const s=t.slice(1),o=s.length>0&&"string"==typeof f&&!(0,n.hasConsoleSubstitutions)(f);return{message:c,messageTemplate:o?f:void 0,messageParameters:o?s:void 0}}}function v(t,s,o){const{message:c,attributes:f,messageTemplate:u,messageParameters:b}=t,p={};if(u&&b){const t=(0,n.createConsoleTemplateAttributes)(u,b);for(const[n,c]of Object.entries(t))p[n]=n.startsWith("sentry.message.parameter.")?(0,l.normalize)(c,s,o):c}else b&&b.length>0&&b.forEach((t,n)=>{p[`sentry.message.parameter.${n}`]=(0,l.normalize)(t,s,o)});return{message:c,attributes:{...(0,l.normalize)(f,s,o),...p}}}},2612,[2499,2537,2610,2487,2490]);
1088__d(function(g,r,i,a,m,e,d){"use strict";
1088Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addVercelAiProcessors",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"processVercelAiSpanAttributes",{enumerable:!0,get:function(){return R}});var T=r(d[0]),_=r(d[1]),t=r(d[2]),E=r(d[3]),A=r(d[4]),n=r(d[5]),I=r(d[6]),o=r(d[7]),s=r(d[8]);function O(_){const{data:A,description:n}=(0,E.spanToJSON)(_);if(!n)return;if(A[s.AI_TOOL_CALL_NAME_ATTRIBUTE]&&A[s.AI_TOOL_CALL_ID_ATTRIBUTE]&&"ai.toolCall"===n)return void P(_,A);if(!A[s.AI_OPERATION_ID_ATTRIBUTE]&&!n.startsWith("ai."))return;const I=(0,T.getClient)(),o=I?.getIntegrationByName("VercelAI");B(_,n,A,(0,t.shouldEnableTruncation)(o?.options?.enableTruncation))}function N(T){if("transaction"===T.type&&T.spans){const _=new Map;for(const t of T.spans)S(t),(0,o.accumulateTokensForParent)(t,_);(0,o.applyToolDescriptionsAndTokens)(T.spans,_);const t=T.contexts?.trace;"gen_ai.invoke_agent"===t?.op&&(0,o.applyAccumulatedTokens)(t,_)}return T}function c(T){return"string"!=typeof T?"stop":"tool-calls"===T?"tool_call":T}function U(T){const _=T[s.AI_RESPONSE_TEXT_ATTRIBUTE],t=T[s.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE],E=T[s.AI_RESPONSE_FINISH_REASON_ATTRIBUTE];if(null==_&&null==t)return;const n=[];if("string"==typeof _&&_.length>0&&n.push({type:"text",content:_}),null!=t)try{const _="string"==typeof t?JSON.parse(t):t;if(Array.isArray(_)){for(const T of _){const _=T.input??T.args;n.push({type:"tool_call",id:T.toolCallId,name:T.toolName,arguments:"string"==typeof _?_:JSON.stringify(_??{})})}delete T[s.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]}}catch{}if(n.length>0){const _={role:"assistant",parts:n,finish_reason:c(E)};T[A.GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE]=JSON.stringify([_]),delete T[s.AI_RESPONSE_TEXT_ATTRIBUTE]}}function R(T){p(T,s.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE),p(T,"ai.usage.inputTokens",A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,"ai.usage.outputTokens",A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(T,s.AI_USAGE_TOKENS_ATTRIBUTE,A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(T,"ai.response.avgOutputTokensPerSecond","ai.response.avgCompletionTokensPerSecond");if(Object.keys(T).some(T=>T.startsWith(s.AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX))||"number"!=typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]||"number"!=typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]||(T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]+T[A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]),"number"==typeof T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]){const _="number"==typeof T[A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]?T[A.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:0;T[A.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=_+T[A.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]}if(T[s.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(T[s.AI_PROMPT_TOOLS_ATTRIBUTE])&&(T[s.AI_PROMPT_TOOLS_ATTRIBUTE]=(0,o.convertAvailableToolsToJsonString)(T[s.AI_PROMPT_TOOLS_ATTRIBUTE])),T[s.OPERATION_NAME_ATTRIBUTE]){const _=T[s.AI_OPERATION_ID_ATTRIBUTE]?T[s.AI_OPERATION_ID_ATTRIBUTE]:T[s.OPERATION_NAME_ATTRIBUTE],t=n.SPAN_TO_OPERATION_NAME.get(_)??_;T[A.GEN_AI_OPERATION_NAME_ATTRIBUTE]=t,delete T[s.OPERATION_NAME_ATTRIBUTE]}if(p(T,s.AI_PROMPT_MESSAGES_ATTRIBUTE,A.GEN_AI_INPUT_MESSAGES_ATTRIBUTE),U(T),p(T,s.AI_RESPONSE_OBJECT_ATTRIBUTE,"gen_ai.response.object"),p(T,s.AI_PROMPT_TOOLS_ATTRIBUTE,"gen_ai.request.available_tools"),p(T,s.AI_TOOL_CALL_ARGS_ATTRIBUTE,A.GEN_AI_TOOL_INPUT_ATTRIBUTE),p(T,s.AI_TOOL_CALL_RESULT_ATTRIBUTE,A.GEN_AI_TOOL_OUTPUT_ATTRIBUTE),p(T,s.AI_SCHEMA_ATTRIBUTE,"gen_ai.request.schema"),p(T,s.AI_MODEL_ID_ATTRIBUTE,A.GEN_AI_REQUEST_MODEL_ATTRIBUTE),Array.isArray(T[s.AI_VALUES_ATTRIBUTE])){const _=T[s.AI_VALUES_ATTRIBUTE].map(T=>{try{return JSON.parse(T)}catch{return T}});T[A.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]=1===_.length?_[0]:JSON.stringify(_)}f(T);for(const _ of Object.keys(T))Array.isArray(T[_])&&(T[_]=JSON.stringify(T[_])),_.startsWith("ai.")&&p(T,_,`vercel.${_}`)}function S(T){const{data:_,origin:t}=T;"auto.vercelai.otel"===t&&(T.status&&"ok"!==T.status&&(T.status="internal_error"),R(_))}function u(T){const t=T.attributes;if("auto.vercelai.otel"===t?.[_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]){if(R(t),"gen_ai.execute_tool"===t[_.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&T.parent_span_id){const _=n.toolDescriptionMap.get(T.parent_span_id);if(_){const T=t[A.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof T){const E=_.get(T);E&&(t[A.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=E)}}}n.toolDescriptionMap.delete(T.span_id)}}function p(T,_,t){null!=T[_]&&(T[t]=T[_],delete T[_])}function P(T,t){T.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel"),T.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.execute_tool"),T.setAttribute(A.GEN_AI_OPERATION_NAME_ATTRIBUTE,"execute_tool"),p(t,s.AI_TOOL_CALL_NAME_ATTRIBUTE,A.GEN_AI_TOOL_NAME_ATTRIBUTE),p(t,s.AI_TOOL_CALL_ID_ATTRIBUTE,A.GEN_AI_TOOL_CALL_ID_ATTRIBUTE);
1088const E=t[A.GEN_AI_TOOL_CALL_ID_ATTRIBUTE];"string"==typeof E&&n.toolCallSpanContextMap.set(E,T.spanContext()),t[A.GEN_AI_TOOL_TYPE_ATTRIBUTE]||T.setAttribute(A.GEN_AI_TOOL_TYPE_ATTRIBUTE,"function");const I=t[A.GEN_AI_TOOL_NAME_ATTRIBUTE];I&&T.updateName(`execute_tool ${I}`)}function B(t,O,N,c){t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel");const U=O.replace("ai.","");t.setAttribute("ai.pipeline.name",U),t.updateName(U);const R=N[s.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE];R&&"string"==typeof R&&t.setAttribute("gen_ai.function_id",R),(0,o.requestMessagesFromPrompt)(t,N,c),N[s.AI_MODEL_ID_ATTRIBUTE]&&!N[A.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]&&t.setAttribute(A.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,N[s.AI_MODEL_ID_ATTRIBUTE]),t.setAttribute("ai.streaming",O.includes("stream"));const S=n.SPAN_TO_OPERATION_NAME.get(O);if(S?t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,`gen_ai.${S}`):O.startsWith("ai.stream")&&t.setAttribute(_.SEMANTIC_ATTRIBUTE_SENTRY_OP,"ai.run"),"invoke_agent"===S)return void(R&&"string"==typeof R?t.updateName(`invoke_agent ${R}`):t.updateName("invoke_agent"));const u=N[s.AI_MODEL_ID_ATTRIBUTE];u&&S&&t.updateName(`${S} ${u}`);const p=(0,T.getClient)();if(p&&(0,I.hasSpanStreamingEnabled)(p)&&N[s.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(N[s.AI_PROMPT_TOOLS_ATTRIBUTE])){const T=new Map;for(const _ of N[s.AI_PROMPT_TOOLS_ATTRIBUTE])try{const t="string"==typeof _?JSON.parse(_):_;t?.name&&t?.description&&T.set(t.name,t.description)}catch{}if(T.size>0){const _=(0,E.spanToJSON)(t).parent_span_id;_&&n.toolDescriptionMap.set(_,T)}}}function l(T){T.on("spanStart",O),T.addEventProcessor(Object.assign(N,{id:"VercelAiEventProcessor"})),T.on("processSpan",T=>{u(T)})}function G(T){const _={};if(!T||"object"!=typeof T)return _;const t=T,E=t.openai??t.azure;if(E&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,E.cachedPromptTokens),L(_,"gen_ai.usage.output_tokens.reasoning",E.reasoningTokens),L(_,"gen_ai.usage.output_tokens.prediction_accepted",E.acceptedPredictionTokens),L(_,"gen_ai.usage.output_tokens.prediction_rejected",E.rejectedPredictionTokens),L(_,A.GEN_AI_CONVERSATION_ID_ATTRIBUTE,E.responseId)),t.anthropic){const T=t.anthropic.usage?.cache_read_input_tokens??t.anthropic.cacheReadInputTokens;L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,T);const E=t.anthropic.usage?.cache_creation_input_tokens??t.anthropic.cacheCreationInputTokens;L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,E)}return t.bedrock?.usage&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t.bedrock.usage.cacheReadInputTokens),L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,t.bedrock.usage.cacheWriteInputTokens)),t.deepseek&&(L(_,A.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t.deepseek.promptCacheHitTokens),L(_,"gen_ai.usage.input_tokens.cache_miss",t.deepseek.promptCacheMissTokens)),_}function f(T){const _=T[s.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE];if(_)try{const t=G(JSON.parse(_));for(const[_,E]of Object.entries(t))_===A.GEN_AI_CONVERSATION_ID_ATTRIBUTE&&T[_]||(T[_]=E)}catch{}}function L(T,_,t){null!=t&&(T[_]=t)}},2613,[2499,2500,2614,2479,2615,2618,2519,2619,2620]);
1089__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildMethodPath",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"endStreamSpan",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractSystemInstructions",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getJsonString",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"getTruncatedJsonString",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"resolveAIRecordingOptions",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"setTokenUsageAttributes",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shouldEnableTruncation",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"wrapPromiseWithMethods",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]);function T(t){const o=(0,n.getClient)()?.getDataCollectionOptions().genAI;return{...t,recordInputs:t?.recordInputs??o?.inputs??!1,recordOutputs:t?.recordOutputs??o?.outputs??!1}}function _(t){if(void 0!==t)return t;const s=(0,n.getClient)();return!s||!(0,o.hasSpanStreamingEnabled)(s)&&!1===s.getOptions().streamGenAiSpans}function f(t,n){return t?`${t}.${n}`:n}function p(t,n,o,s,c){if(void 0!==n&&t.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:n}),void 0!==o&&t.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:o}),void 0!==n||void 0!==o||void 0!==s||void 0!==c){const T=(n??0)+(o??0)+(s??0)+(c??0);t.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:T})}}function E(t,n,o){if(!t.isRecording())return;const s={[u.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};n.responseId&&(s[u.GEN_AI_RESPONSE_ID_ATTRIBUTE]=n.responseId),n.responseModel&&(s[u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=n.responseModel),void 0!==n.promptTokens&&(s[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=n.promptTokens),void 0!==n.completionTokens&&(s[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=n.completionTokens),void 0!==n.totalTokens?s[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.totalTokens:void 0===n.promptTokens&&void 0===n.completionTokens&&void 0===n.cacheCreationInputTokens&&void 0===n.cacheReadInputTokens||(s[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=(n.promptTokens??0)+(n.completionTokens??0)+(n.cacheCreationInputTokens??0)+(n.cacheReadInputTokens??0)),n.finishReasons.length&&(s[u.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(n.finishReasons)),o&&n.responseTexts.length&&(s[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=n.responseTexts.join("")),o&&n.toolCalls.length&&(s[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n.toolCalls)),t.setAttributes(s),t.end()}function A(t){return"string"==typeof t?t:JSON.stringify(t)}function l(t){if("string"==typeof t)return(0,c.truncateGenAiStringInput)(t);if(Array.isArray(t)){const n=(0,c.truncateGenAiMessages)(t);return JSON.stringify(n)}return JSON.stringify(t)}function I(t){if(!Array.isArray(t))return{systemInstructions:void 0,filteredMessages:t};const n=t.findIndex(t=>t&&"object"==typeof t&&"role"in t&&"system"===t.role);if(-1===n)return{systemInstructions:void 0,filteredMessages:t};const o=t[n],s="string"==typeof o.content?o.content:void 0!==o.content?JSON.stringify(o.content):void 0;if(!s)return{systemInstructions:void 0,filteredMessages:t};return{systemInstructions:JSON.stringify([{type:"text",content:s}]),filteredMessages:[...t.slice(0,n),...t.slice(n+1)]}}
1089async function S(n,o,s){const u=n.catch(n=>{throw(0,t.captureException)(n,{mechanism:{handled:!1,type:s}}),n}),c=await o,T=await u;return T&&"object"==typeof T&&"data"in T?{...T,data:c}:c}function O(t,n,o){return(0,s.isThenable)(t)?new Proxy(t,{get(t,s){const u=s in Promise.prototype||s===Symbol.toStringTag?n:t,c=Reflect.get(u,s);return"withResponse"===s&&"function"==typeof c?function(){return S(c.call(t),n,o)}:"function"==typeof c?c.bind(u):c}}):n}},2614,[2527,2499,2519,2487,2615,2616]);
1090__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GEN_AI_AGENT_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(e,"GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"GEN_AI_INPUT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(e,"GEN_AI_OPERATION_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"GEN_AI_PIPELINE_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"GEN_AI_PROMPT_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE",{enumerable:!0,get:function(){return O}}
1090),Object.defineProperty(e,"GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"GEN_AI_REQUEST_MODEL_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"GEN_AI_REQUEST_STREAM_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"GEN_AI_REQUEST_TOP_K_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"GEN_AI_REQUEST_TOP_P_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"GEN_AI_RESPONSE_ID_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"GEN_AI_RESPONSE_MODEL_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"GEN_AI_RESPONSE_STREAMING_ATTRIBUTE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"GEN_AI_RESPONSE_TEXT_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"GEN_AI_SYSTEM_ATTRIBUTE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"GEN_AI_TOOL_CALL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return X}}),Object.defineProperty(e,"GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE",{enumerable:!0,get:function(){return J}}),Object.defineProperty(e,"GEN_AI_TOOL_INPUT_ATTRIBUTE",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"GEN_AI_TOOL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"GEN_AI_TOOL_OUTPUT_ATTRIBUTE",{enumerable:!0,get:function(){return z}}),Object.defineProperty(e,"GEN_AI_TOOL_TYPE_ATTRIBUTE",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return K}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE",{enumerable:!0,get:function(){return H}}),Object.defineProperty(e,"GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return s}});const n="gen_ai.prompt",t="gen_ai.system",_="gen_ai.request.model",T="gen_ai.request.stream",E="gen_ai.request.temperature",u="gen_ai.request.max_tokens",o="gen_ai.request.frequency_penalty",A="gen_ai.request.presence_penalty",I="gen_ai.request.top_p",c="gen_ai.request.top_k",O="gen_ai.request.encoding_format",N="gen_ai.request.dimensions",f="gen_ai.response.finish_reasons",b="gen_ai.response.model",R="gen_ai.response.id",P="gen_ai.response.stop_reason",U="gen_ai.usage.input_tokens",p="gen_ai.usage.output_tokens",s="gen_ai.usage.total_tokens",S="gen_ai.operation.name",l="sentry.sdk_meta.gen_ai.input.messages.original_length",G="gen_ai.input.messages",y="gen_ai.output.messages",B="gen_ai.system_instructions",j="gen_ai.response.text",L="gen_ai.request.available_tools",M="gen_ai.response.streaming",C="gen_ai.response.tool_calls",D="gen_ai.agent.name",q="gen_ai.pipeline.name",Q="gen_ai.conversation.id",k="gen_ai.usage.cache_creation_input_tokens",K="gen_ai.usage.cache_read_input_tokens",h="gen_ai.usage.input_tokens.cache_write",H="gen_ai.usage.input_tokens.cached",Y="gen_ai.invoke_agent",v="gen_ai.embeddings.input",x="gen_ai.embeddings",F="gen_ai.execute_tool",V="gen_ai.tool.name",X="gen_ai.tool.call.id",w="gen_ai.tool.type",W="gen_ai.tool.input",z="gen_ai.tool.output",J="gen_ai.tool.description"},2615,[]);
1091__d(function(g,r,i,a,m,e,d){"use strict";
1091Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"truncateGenAiMessages",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"truncateGenAiStringInput",{enumerable:!0,get:function(){return I}});var t=r(d[0]);const n=2e4,o=t=>(new TextEncoder).encode(t).length,c=t=>o(JSON.stringify(t));function u(t,n){if(o(t)<=n)return t;let c=0,u=t.length,s="";for(;c<=u;){const f=Math.floor((c+u)/2),l=t.slice(0,f);o(l)<=n?(s=l,c=f+1):u=f-1}return s}function s(t){return"string"==typeof t?t:"text"in t&&"string"==typeof t.text?t.text:""}function f(t,n){return"string"==typeof t?n:{...t,text:n}}function l(t){return null!==t&&"object"==typeof t&&"content"in t&&"string"==typeof t.content}function p(t){return null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)}function y(t){return null!==t&&"object"==typeof t&&"parts"in t&&Array.isArray(t.parts)&&t.parts.length>0}function A(t,n){const o={...t,content:""},s=n-c(o);if(s<=0)return[];const f=u(t.content,s);return[{...t,content:f}]}function b(t){return"parts"in t&&Array.isArray(t.parts)?{key:"parts",items:t.parts}:"content"in t&&Array.isArray(t.content)?{key:"content",items:t.content}:{key:null,items:[]}}function M(t,n){const{key:l,items:p}=b(t);if(null===l||0===p.length)return[];const y=p.map(t=>f(t,""));let A=n-c({...t,[l]:y});if(A<=0)return[];const M=[];for(const t of p){const n=s(t),c=o(n);if(!(c<=A)){if(0===M.length){const o=u(n,A);o&&M.push(f(t,o));break}break}M.push(t),A-=c}return M.length<=0?[]:[{...t,[l]:M}]}function h(t,n){if(!t)return[];if("string"==typeof t){const o=u(t,n);return o?[o]:[]}return"object"!=typeof t?[]:l(t)?A(t,n):p(t)||y(t)?M(t,n):[]}function j(n){return n.map(n=>{let o;return n&&"object"==typeof n&&(p(n)?o={...n,content:j(n.content)}:"content"in n&&(0,t.isContentMedia)(n.content)&&(o={...n,content:(0,t.stripInlineMediaFromSingleMessage)(n.content)}),y(n)&&(o={...o??n,parts:j(n.parts)}),(0,t.isContentMedia)(o)?o=(0,t.stripInlineMediaFromSingleMessage)(o):(0,t.isContentMedia)(n)&&(o=(0,t.stripInlineMediaFromSingleMessage)(n))),o??n})}function _(t,n){if(!Array.isArray(t)||0===t.length)return t;const o=n-2,u=j([t[t.length-1]]),s=u[0];return c(s)<=o?u:h(s,o)}function S(t){return _(t,n)}function I(t){return u(t,n)}},2616,[2617]);
1092__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return!(!t||"object"!=typeof t)&&(o(t)||f(t)||n(t)||p(t)||s(t)||l(t)||y(t)||c(t)||_(t)||b(t)||h(t)||j(t))}function n(t){return"image_url"in t&&("string"==typeof t.image_url?t.image_url.startsWith("data:"):u(t))}function u(t){return"image_url"in t&&!!t.image_url&&"object"==typeof t.image_url&&"url"in t.image_url&&"string"==typeof t.image_url.url&&t.image_url.url.startsWith("data:")}function o(n){return"type"in n&&"string"==typeof n.type&&"source"in n&&t(n.source)}function f(t){return"inlineData"in t&&!!t.inlineData&&"object"==typeof t.inlineData&&"data"in t.inlineData&&"string"==typeof t.inlineData.data}function p(t){return"type"in t&&"input_audio"===t.type&&"input_audio"in t&&!!t.input_audio&&"object"==typeof t.input_audio&&"data"in t.input_audio&&"string"==typeof t.input_audio.data}function s(t){return"type"in t&&"file"===t.type&&"file"in t&&!!t.file&&"object"==typeof t.file&&"file_data"in t.file&&"string"==typeof t.file.file_data}function l(t){return"media_type"in t&&"string"==typeof t.media_type&&"data"in t}function y(t){return"type"in t&&"file"===t.type&&"mediaType"in t&&"string"==typeof t.mediaType&&"data"in t&&"string"==typeof t.data&&!t.data.startsWith("http://")&&!t.data.startsWith("https://")}function c(t){return"type"in t&&"image"===t.type&&"image"in t&&"string"==typeof t.image&&!t.image.startsWith("http://")&&!t.image.startsWith("https://")}function _(t){return"type"in t&&("blob"===t.type||"base64"===t.type)}function b(t){return"b64_json"in t}function h(t){return"type"in t&&"result"in t&&"image_generation"===t.type}function j(t){return"uri"in t&&"string"==typeof t.uri&&t.uri.startsWith("data:")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isContentMedia",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"stripInlineMediaFromSingleMessage",{enumerable:!0,get:function(){return M}});const D="[Blob substitute]",W=["image_url","data","content","b64_json","result","uri","image"];function M(n){const o={...n};t(o.source)&&(o.source=M(o.source)),f(n)&&(o.inlineData={...n.inlineData,data:D}),u(n)&&(o.image_url={...n.image_url,url:D}),p(n)&&(o.input_audio={...n.input_audio,data:D}),s(n)&&(o.file={...n.file,file_data:D});for(const t of W)"string"==typeof o[t]&&(o[t]=D);return o}},2617,[]);
1093__d(function(g,r,i,a,m,e,d){"use strict";
1093Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SPAN_TO_OPERATION_NAME",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"toolCallSpanContextMap",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"toolDescriptionMap",{enumerable:!0,get:function(){return n}});const t=new Map,n=new Map,o=new Map([["ai.generateText","invoke_agent"],["ai.streamText","invoke_agent"],["ai.generateObject","invoke_agent"],["ai.streamObject","invoke_agent"],["ai.generateText.doGenerate","generate_content"],["ai.streamText.doStream","generate_content"],["ai.generateObject.doGenerate","generate_content"],["ai.streamObject.doStream","generate_content"],["ai.embed.doEmbed","embeddings"],["ai.embedMany.doEmbed","embeddings"],["ai.rerank.doRerank","rerank"],["ai.toolCall","execute_tool"]])},2618,[]);
1094__d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"accumulateTokensForParent",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"applyAccumulatedTokens",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"applyToolDescriptionsAndTokens",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"convertAvailableToolsToJsonString",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"convertUserInputToMessagesFormat",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"requestMessagesFromPrompt",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function T(n,o){const s=n.parent_span_id;if(!s)return;const T=n.data[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE],_=n.data[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE];if("number"==typeof T||"number"==typeof _){const t=o.get(s)||{inputTokens:0,outputTokens:0};"number"==typeof T&&(t.inputTokens+=T),"number"==typeof _&&(t.outputTokens+=_),o.set(s,t)}}function _(n,o){const s=o.get(n.span_id);s&&n.data&&(s.inputTokens>0&&(n.data[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=s.inputTokens),s.outputTokens>0&&(n.data[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=s.outputTokens),(s.inputTokens>0||s.outputTokens>0)&&(n.data["gen_ai.usage.total_tokens"]=s.inputTokens+s.outputTokens))}function u(n){const o=new Map;for(const s of n){const n=s.data[t.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE];if("string"==typeof n)try{const t=JSON.parse(n);for(const n of t)n.name&&n.description&&!o.has(n.name)&&o.set(n.name,n.description)}catch{}}return o}function c(n,o){const s=u(n);for(const T of n){if("gen_ai.execute_tool"===T.op){const n=T.data[t.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof n){const o=s.get(n);o&&(T.data[t.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=o)}}"gen_ai.invoke_agent"===T.op&&_(T,o)}}function A(t){return o.toolCallSpanContextMap.get(t)}function E(t){o.toolCallSpanContextMap.delete(t)}function p(t){const n=t.map(t=>{if("string"==typeof t)try{return JSON.parse(t)}catch{return t}return t});return JSON.stringify(n)}function I(t){return t.filter(t=>!!t&&"object"==typeof t&&"role"in t&&"content"in t)}function f(t){try{const n=JSON.parse(t);if(n&&"object"==typeof n){let{messages:t}=n;const{prompt:o,system:s}=n,T=[];if("string"==typeof s&&T.push({role:"system",content:s}),"string"==typeof t)try{t=JSON.parse(t)}catch{}if(Array.isArray(t))return T.push(...I(t)),T;if(Array.isArray(o))return T.push(...I(o)),T;if("string"==typeof o&&T.push({role:"user",content:o}),T.length>0)return T}}catch{}return[]}function S(o,T,_){if("string"!=typeof T[s.AI_PROMPT_ATTRIBUTE]||T[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]||T[s.AI_PROMPT_MESSAGES_ATTRIBUTE]){if
1094("string"==typeof T[s.AI_PROMPT_MESSAGES_ATTRIBUTE]){const u=T[s.AI_PROMPT_MESSAGES_ATTRIBUTE];try{const T=JSON.parse(u);if(Array.isArray(T)){const{systemInstructions:c,filteredMessages:A}=(0,n.extractSystemInstructions)(T);c&&o.setAttribute(t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,c);const E=Array.isArray(A)?A.length:0,p=_||A!==T?_?(0,n.getTruncatedJsonString)(A):(0,n.getJsonString)(A):u;o.setAttributes({[s.AI_PROMPT_MESSAGES_ATTRIBUTE]:p,[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:p,[t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:E})}}catch{}}}else{const u=f(T[s.AI_PROMPT_ATTRIBUTE]);if(u.length){const{systemInstructions:T,filteredMessages:c}=(0,n.extractSystemInstructions)(u);T&&o.setAttribute(t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,T);const A=Array.isArray(c)?c.length:0,E=_?(0,n.getTruncatedJsonString)(c):(0,n.getJsonString)(c);o.setAttributes({[s.AI_PROMPT_ATTRIBUTE]:E,[t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:E,[t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:A})}}}},2619,[2615,2614,2618,2620]);
1095__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AI_MODEL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"AI_OPERATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"AI_PROMPT_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"AI_PROMPT_MESSAGES_ATTRIBUTE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"AI_PROMPT_TOOLS_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"AI_RESPONSE_FINISH_REASON_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"AI_RESPONSE_OBJECT_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"AI_RESPONSE_TEXT_ATTRIBUTE",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"AI_RESPONSE_TOOL_CALLS_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"AI_SCHEMA_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"AI_TOOL_CALL_ARGS_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"AI_TOOL_CALL_ID_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"AI_TOOL_CALL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"AI_TOOL_CALL_RESULT_ATTRIBUTE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"AI_USAGE_PROMPT_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"AI_USAGE_TOKENS_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"AI_VALUES_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"OPERATION_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return t}});const t="operation.name",n="ai.operationId",T="ai.prompt",o="ai.schema",_="ai.response.object",u="ai.values",A="ai.response.text",E="ai.response.toolCalls",I="ai.response.finishReason",O="ai.prompt.messages",c="ai.prompt.tools",f="ai.model.id",b="ai.response.providerMetadata",l="ai.usage.cachedInputTokens",P="ai.usage.inputTokenDetails.",p="ai.telemetry.functionId",R="ai.usage.completionTokens",s="ai.usage.promptTokens",U="ai.usage.tokens",S="ai.toolCall.name",j="ai.toolCall.id",y="ai.toolCall.args",B="ai.toolCall.result"},2620,[]);
1096__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return N}});
1096var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),_=r(d[5]),c=r(d[6]),T=r(d[7]),E=r(d[8]),A=r(d[9]),p=r(d[10]);function I(n){const o=[...Array.isArray(n.tools)?n.tools:[],...n.web_search_options&&"object"==typeof n.web_search_options?[{type:"web_search_options",...n.web_search_options}]:[]];if(0!==o.length)try{return JSON.stringify(o)}catch(n){return void(t.DEBUG_BUILD&&s.debug.error("Failed to serialize OpenAI tools:",n))}}function l(t,n){const s={[c.GEN_AI_SYSTEM_ATTRIBUTE]:"openai",[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:n,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(t.length>0&&"object"==typeof t[0]&&null!==t[0]){const n=t[0],o=I(n);o&&(s[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=o),Object.assign(s,(0,p.extractRequestParameters)(n))}else s[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return s}function S(t,n,o,s){if("embeddings"===o&&"input"in n){const o=n.input;if(null==o)return;if("string"==typeof o&&0===o.length)return;if(Array.isArray(o)&&0===o.length)return;return void t.setAttribute(c.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o))}const u="input"in n?n.input:"messages"in n?n.messages:void 0;if(!u)return;if(Array.isArray(u)&&0===u.length)return;const{systemInstructions:_,filteredMessages:E}=(0,T.extractSystemInstructions)(u);_&&t.setAttribute(c.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,_),t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,s?(0,T.getTruncatedJsonString)(E):(0,T.getJsonString)(E)),Array.isArray(E)?t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,E.length):t.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,1)}function f(t,o,s,E,I){return function(...f){const y=s.operation||"unknown",N=l(f,y),R=N[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",b=f[0],h=b&&"object"==typeof b&&!0===b.stream,O={name:`${y} ${R}`,op:`gen_ai.${y}`,attributes:N};if(h){let s;const c=(0,_.startSpanManual)(O,_=>(s=t.apply(E,f),I.recordInputs&&b&&S(_,b,y,(0,T.shouldEnableTruncation)(I.enableTruncation)),(async()=>{try{const t=await s;return(0,A.instrumentStream)(t,_,I.recordOutputs??!1)}catch(t){throw _.setStatus({code:u.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:o}}}),_.end(),t}})()));return(0,T.wrapPromiseWithMethods)(s,c,"auto.ai.openai")}let U;const G=(0,_.startSpan)(O,s=>(U=t.apply(E,f),I.recordInputs&&b&&S(s,b,y,(0,T.shouldEnableTruncation)(I.enableTruncation)),U.then(t=>((0,p.addResponseAttributes)(s,t,I.recordOutputs),t),t=>{throw(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:o}}}),t})));return(0,T.wrapPromiseWithMethods)(U,G,"auto.ai.openai")}}function y(t,n="",o){return new Proxy(t,{get(t,s){const u=t[s],_=(0,T.buildMethodPath)(n,String(s)),c=E.OPENAI_METHOD_REGISTRY[_];return"function"==typeof u&&c?f(u,_,c,t,o):"function"==typeof u?u.bind(t):u&&"object"==typeof u?y(u,_,o):u}})}function N(t,n){return y(t,"",(0,T.resolveAIRecordingOptions)(n))}},2621,[2470,2527,2500,2474,2501,2520,2615,2614,2622,2623,2624]);
1097__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"OPENAI_METHOD_REGISTRY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"RESPONSES_TOOL_CALL_EVENT_TYPES",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"RESPONSE_EVENT_TYPES",{enumerable:!0,get:function(){return s}});const t="OpenAI",n={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},o=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],s=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...o]},2622,[]);
1098__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentStream",{enumerable:!0,get:function(){return f}});
1098var o=r(d[0]),s=r(d[1]),t=r(d[2]),n=r(d[3]),l=r(d[4]);function p(o,s){for(const t of o){const o=t.index;if(void 0!==o&&t.function)if(o in s.chatCompletionToolCalls){const n=s.chatCompletionToolCalls[o];t.function.arguments&&n?.function&&(n.function.arguments+=t.function.arguments)}else s.chatCompletionToolCalls[o]={...t,function:{name:t.function.name,arguments:t.function.arguments||""}}}}function u(o,s,t){s.responseId=o.id??s.responseId,s.responseModel=o.model??s.responseModel,o.usage&&(s.promptTokens=o.usage.prompt_tokens,s.completionTokens=o.usage.completion_tokens,s.totalTokens=o.usage.total_tokens);for(const n of o.choices??[])t&&(n.delta?.content&&s.responseTexts.push(n.delta.content),n.delta?.tool_calls&&p(n.delta.tool_calls,s)),n.finish_reason&&s.finishReasons.push(n.finish_reason)}function c(t,l,p,u){if(!t||"object"!=typeof t)return void l.eventTypes.push("unknown:non-object");if(t instanceof Error)return u.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),void(0,o.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in t))return;const c=t;if(n.RESPONSE_EVENT_TYPES.includes(c.type)){if(p&&("response.output_item.done"===c.type&&"item"in c&&l.responsesApiToolCalls.push(c.item),"response.output_text.delta"===c.type&&"delta"in c&&c.delta))l.responseTexts.push(c.delta);else if("response"in c){const{response:o}=c;l.responseId=o.id??l.responseId,l.responseModel=o.model??l.responseModel,o.usage&&(l.promptTokens=o.usage.input_tokens,l.completionTokens=o.usage.output_tokens,l.totalTokens=o.usage.total_tokens),o.status&&l.finishReasons.push(o.status),p&&o.output_text&&l.responseTexts.push(o.output_text)}}else l.eventTypes.push(c.type)}async function*f(o,s,n){const p={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const t of o)(0,l.isChatCompletionChunk)(t)?u(t,p,n):(0,l.isResponsesApiStreamEvent)(t)&&c(t,p,n,s),yield t}finally{const o=[...Object.values(p.chatCompletionToolCalls),...p.responsesApiToolCalls];(0,t.endStreamSpan)(s,{...p,toolCalls:o},n)}}},2623,[2527,2501,2614,2622,2624]);
1099__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addResponseAttributes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractRequestParameters",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"isChatCompletionChunk",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isResponsesApiStreamEvent",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(t){return null!==t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.startsWith("response.")}function _(t){return null!==t&&"object"==typeof t&&"object"in t&&"chat.completion.chunk"===t.object}function E(n,_,E){if(!_||"object"!=typeof _)return;const o=_,T={};if("string"==typeof o.id&&(T[t.GEN_AI_RESPONSE_ID_ATTRIBUTE]=o.id),"string"==typeof o.model&&(T[t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=o.model),"conversation"===o.object&&"string"==typeof o.id&&(T[t.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=o.id),o.usage&&"object"==typeof o.usage){const n=o.usage,_=n.prompt_tokens??n.input_tokens;"number"==typeof _&&(T[t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=_);const E=n.completion_tokens??n.output_tokens;"number"==typeof E&&(T[t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=E),"number"==typeof n.total_tokens&&(T[t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=n.total_tokens)}if(Array.isArray(o.choices)){const n=o.choices,_=n.map(t=>t.finish_reason).filter(t=>"string"==typeof t);if(_.length>0&&(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(_)),E){const _=n.map(t=>{const n=t.message;return n?.content||""});T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=JSON.stringify(_);const E=n.map(t=>{const n=t.message;return n?.tool_calls}).filter(t=>Array.isArray(t)&&t.length>0).flat();E.length>0&&(T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(E))}}if("string"==typeof o.status&&(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]||(T[t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify([o.status]))),E&&("string"!=typeof o.output_text||T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]||(T[t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=o.output_text),Array.isArray(o.output)&&o.output.length>0&&!T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE])){const n=o.output.f
1099ilter(t=>"function_call"===t?.type);n.length>0&&(T[t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n))}n.setAttributes(T)}function o(t){return"conversation"in t&&"string"==typeof t.conversation?t.conversation:"previous_response_id"in t&&"string"==typeof t.previous_response_id?t.previous_response_id:void 0}function T(n){const _={[t.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:n.model??"unknown"};"temperature"in n&&(_[t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=n.temperature),"top_p"in n&&(_[t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=n.top_p),"frequency_penalty"in n&&(_[t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=n.frequency_penalty),"presence_penalty"in n&&(_[t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=n.presence_penalty),"stream"in n&&(_[t.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=n.stream),"encoding_format"in n&&(_[t.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=n.encoding_format),"dimensions"in n&&(_[t.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=n.dimensions);const E=o(n);return E&&(_[t.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=E),_}},2624,[2615]);
1100__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return U}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),_=r(d[3]),s=r(d[4]),E=r(d[5]),T=r(d[6]),u=r(d[7]),c=r(d[8]);function p(t,o,_){const E={[s.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:_,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(t.length>0&&"object"==typeof t[0]&&null!==t[0]){const n=t[0];n.tools&&Array.isArray(n.tools)&&(E[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n.tools)),E[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=n.model??"unknown","temperature"in n&&(E[s.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=n.temperature),"top_p"in n&&(E[s.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=n.top_p),"stream"in n&&(E[s.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=n.stream),"top_k"in n&&(E[s.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=n.top_k),"frequency_penalty"in n&&(E[s.GEN_AI_REQUEST_FREQUENCY_PENA
1100LTY_ATTRIBUTE]=n.frequency_penalty),"max_tokens"in n&&(E[s.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=n.max_tokens)}else E[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===o||"models.get"===o?t[0]:"unknown";return E}function A(t,n,o){const _=(0,c.messagesFromParams)(n);(0,c.setMessagesAttribute)(t,_,o),"prompt"in n&&t.setAttributes({[s.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(n.prompt)})}function R(t,n){if("content"in n&&Array.isArray(n.content)){t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.content.map(t=>t.text).filter(t=>!!t).join("")});const o=[];for(const t of n.content)"tool_use"!==t.type&&"server_tool_use"!==t.type||o.push(t);o.length>0&&t.setAttributes({[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(o)})}"completion"in n&&t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.completion}),"input_tokens"in n&&t.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(n.input_tokens)})}function I(t,n){"id"in n&&"model"in n&&(t.setAttributes({[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]:n.id,[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:n.model}),"usage"in n&&n.usage&&(0,E.setTokenUsageAttributes)(t,n.usage.input_tokens,n.usage.output_tokens,n.usage.cache_creation_input_tokens,n.usage.cache_read_input_tokens))}function l(t,n,o){n&&"object"==typeof n&&("type"in n&&"error"===n.type?(0,c.handleResponseError)(t,n):(o&&R(t,n),I(t,n)))}function S(n,_,s){throw(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:s}}}),_.isRecording()&&(_.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),_.end()),n}function N(t,n,o,T,c,p,R,I,l,N,f){const y={name:`${p} ${c[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"}`,op:`gen_ai.${p}`,attributes:c};if(N&&!f){let n;const s=(0,_.startSpanManual)(y,_=>(n=t.apply(o,T),l.recordInputs&&I&&A(_,I,(0,E.shouldEnableTruncation)(l.enableTruncation)),(async()=>{try{const t=await n;return(0,u.instrumentAsyncIterableStream)(t,_,l.recordOutputs??!1)}catch(t){return S(t,_,R)}})()));return(0,E.wrapPromiseWithMethods)(n,s,"auto.ai.anthropic")}return(0,_.startSpanManual)(y,t=>{try{l.recordInputs&&I&&A(t,I,(0,E.shouldEnableTruncation)(l.enableTruncation));const _=n.apply(o,T);return(0,u.instrumentMessageStream)(_,t,l.recordOutputs??!1)}catch(n){return S(n,t,R)}})}function f(n,o,T,u,c){return new Proxy(n,{apply(R,I,S){const f=T.operation||"unknown",y=p(S,o,f),U=y[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",O="object"==typeof S[0]?S[0]:void 0,h=Boolean(O?.stream),b=!0===T.streaming;if(h||b)return N(n,R,u,S,y,f,o,O,c,h,b);let P;const B=(0,_.startSpan)({name:`${f} ${U}`,op:`gen_ai.${f}`,attributes:y},n=>(P=R.apply(u,S),c.recordInputs&&O&&A(n,O,(0,E.shouldEnableTruncation)(c.enableTruncation)),P.then(t=>(l(n,t,c.recordOutputs),t),n=>{throw(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:o}}}),n})));return(0,E.wrapPromiseWithMethods)(P,B,"auto.ai.anthropic")}})}function y(t,n="",o){return new Proxy(t,{get(t,_){const s=t[_],u=(0,E.buildMethodPath)(n,String(_)),c=T.ANTHROPIC_METHOD_REGISTRY[u];return"function"==typeof s&&c?f(s,u,c,t,o):"function"==typeof s?s.bind(t):s&&"object"==typeof s?y(s,u,o):s}})}function U(t,n){return y(t,"",(0,E.resolveAIRecordingOptions)(n))}},2625,[2527,2500,2501,2520,2615,2614,2626,2627,2628]);
1101__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ANTHROPIC_METHOD_REGISTRY",{enumerable:!0,get:function(){return o}});const t="Anthropic_AI",o={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}}},2626,[]);
1102__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentAsyncIterableStream",{enumerable:!0,get:function(){return k}}),Object.defineProperty(e,"instrumentMessageStream",{enumerable:!0,get:function(){return y}});
1102var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function c(o,c){return"type"in o&&"string"==typeof o.type&&"error"===o.type&&(c.setStatus({code:n.SPAN_STATUS_ERROR,message:(0,s.mapAnthropicErrorToStatusMessage)(o.error?.type)}),(0,t.captureException)(o.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}function p(t,n){if("message_delta"===t.type&&t.usage&&"output_tokens"in t.usage&&"number"==typeof t.usage.output_tokens&&(n.completionTokens=t.usage.output_tokens),t.message){const o=t.message;o.id&&(n.responseId=o.id),o.model&&(n.responseModel=o.model),o.stop_reason&&n.finishReasons.push(o.stop_reason),o.usage&&("number"==typeof o.usage.input_tokens&&(n.promptTokens=o.usage.input_tokens),"number"==typeof o.usage.cache_creation_input_tokens&&(n.cacheCreationInputTokens=o.usage.cache_creation_input_tokens),"number"==typeof o.usage.cache_read_input_tokens&&(n.cacheReadInputTokens=o.usage.cache_read_input_tokens))}}function u(t,n){"content_block_start"===t.type&&"number"==typeof t.index&&t.content_block&&("tool_use"!==t.content_block.type&&"server_tool_use"!==t.content_block.type||(n.activeToolBlocks[t.index]={id:t.content_block.id,name:t.content_block.name,inputJsonParts:[]}))}function l(t,n,o){if("content_block_delta"===t.type&&t.delta){if("number"==typeof t.index&&"partial_json"in t.delta&&"string"==typeof t.delta.partial_json){const o=n.activeToolBlocks[t.index];o&&o.inputJsonParts.push(t.delta.partial_json)}o&&"string"==typeof t.delta.text&&n.responseTexts.push(t.delta.text)}}function _(t,n){if("content_block_stop"!==t.type||"number"!=typeof t.index)return;const o=n.activeToolBlocks[t.index];if(!o)return;const s=o.inputJsonParts.join("");let c;try{c=s?JSON.parse(s):{}}catch{c={__unparsed:s}}n.toolCalls.push({type:"tool_use",id:o.id,name:o.name,input:c}),delete n.activeToolBlocks[t.index]}function f(t,n,o,s){if(!t||"object"!=typeof t)return;c(t,s)||(p(t,n),u(t,n),l(t,n,o),_(t,n))}async function*k(t,n,s){const c={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of t)f(o,c,s,n),yield o}finally{(0,o.endStreamSpan)(n,c,s)}}function y(s,c,p){const u={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return s.on("streamEvent",t=>{f(t,u,p,c)}),s.on("message",()=>{(0,o.endStreamSpan)(c,u,p)}),s.on("error",o=>{(0,t.captureException)(o,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),c.isRecording()&&(c.setStatus({code:n.SPAN_STATUS_ERROR,message:"internal_error"}),c.end())}),s}},2627,[2527,2501,2614,2628]);
1103__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handleResponseError",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"mapAnthropicErrorToStatusMessage",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"messagesFromParams",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"setMessagesAttribute",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function u(t,n,u){if(Array.isArray(n)&&0===n.length)return;const{systemInstructions:_,filteredMessages:c}=(0,s.extractSystemInstructions)(n);_&&t.setAttributes({[o.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]:_});const l=Array.isArray(c)?c.length:1;t.setAttributes({[o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:u?(0,s.getTruncatedJsonString)(c):(0,s.getJsonString)(c),[o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const _={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function c(t){return t&&_[t]||"internal_error"}function l(o,s){s.error&&(o.setStatus({code:n.SPAN_STATUS_ERROR,message:c(s.error.type)}),(0,t.captureException)(s.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function A(t){const{system:n,messages:o,input:s}=t,u="string"==typeof n?[{role:"system",content:t.system}]:[],_=Array.isArray(s)?s:null!=s?[s]:void 0,c=Array.isArray(o)?o:null!=o?[o]:[];return[...u,..._??c]}},2628,[2527,2501,2615,2614]);
1104__d(function(g,r,i,a,m,e,d){"use strict";
1104Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractModel",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),T=r(d[4]),u=r(d[5]),E=r(d[6]),_=r(d[7]),c=r(d[8]),A=r(d[9]);function p(t,n){if("model"in t&&"string"==typeof t.model)return t.model;if(n&&"object"==typeof n){const t=n;if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function f(t){const n={};return"temperature"in t&&"number"==typeof t.temperature&&(n[u.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"topP"in t&&"number"==typeof t.topP&&(n[u.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.topP),"topK"in t&&"number"==typeof t.topK&&(n[u.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.topK),"maxOutputTokens"in t&&"number"==typeof t.maxOutputTokens&&(n[u.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.maxOutputTokens),"frequencyPenalty"in t&&"number"==typeof t.frequencyPenalty&&(n[u.GEN_AI_REQUEST_FREQUENCY_PENA
1104LTY_ATTRIBUTE]=t.frequencyPenalty),"presencePenalty"in t&&"number"==typeof t.presencePenalty&&(n[u.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=t.presencePenalty),n}function l(t,o,s){const T={[u.GEN_AI_SYSTEM_ATTRIBUTE]:_.GOOGLE_GENAI_SYSTEM_NAME,[u.GEN_AI_OPERATION_NAME_ATTRIBUTE]:t,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(o){if(T[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p(o,s),"config"in o&&"object"==typeof o.config&&o.config){const t=o.config;if(Object.assign(T,f(t)),"tools"in t&&Array.isArray(t.tools)){const n=t.tools.flatMap(t=>t.functionDeclarations);T[u.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(n)}}}else T[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p({},s);return T}function I(t,n,o,s){if(o){const o=n.contents;return void(null!=o&&t.setAttribute(u.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o)))}const T=[];if("config"in n&&n.config&&"object"==typeof n.config&&"systemInstruction"in n.config&&n.config.systemInstruction&&T.push(...(0,A.contentUnionToMessages)(n.config.systemInstruction,"system")),"history"in n&&T.push(...(0,A.contentUnionToMessages)(n.history,"user")),"contents"in n&&T.push(...(0,A.contentUnionToMessages)(n.contents,"user")),"message"in n&&T.push(...(0,A.contentUnionToMessages)(n.message,"user")),Array.isArray(T)&&T.length){const{systemInstructions:n,filteredMessages:o}=(0,E.extractSystemInstructions)(T);n&&t.setAttribute(u.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,n);const _=Array.isArray(o)?o.length:0;t.setAttributes({[u.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:_,[u.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:s?(0,E.getTruncatedJsonString)(o):(0,E.getJsonString)(o)})}}function y(t,n,o){if(n&&"object"==typeof n){if(n.modelVersion&&t.setAttribute(u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n.modelVersion),n.usageMetadata&&"object"==typeof n.usageMetadata){const o=n.usageMetadata;"number"==typeof o.promptTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:o.promptTokenCount}),"number"==typeof o.candidatesTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:o.candidatesTokenCount}),"number"==typeof o.totalTokenCount&&t.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:o.totalTokenCount})}if(o&&Array.isArray(n.candidates)&&n.candidates.length>0){const o=n.candidates.map(t=>t.content?.parts&&Array.isArray(t.content.parts)?t.content.parts.map(t=>"string"==typeof t.text?t.text:"").filter(t=>t.length>0).join(""):"").filter(t=>t.length>0);o.length>0&&t.setAttributes({[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:o.join("")})}if(o&&n.functionCalls){const o=n.functionCalls;Array.isArray(o)&&o.length>0&&t.setAttributes({[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(o)})}}}function S(n,_,A,p,f){const S="embeddings"===A.operation;return new Proxy(n,{apply(n,N,R){const U=A.operation||"unknown",O=R[0],b=l(U,O,p),G=b[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown";return A.streaming?(0,s.startSpanManual)({name:`${U} ${G}`,op:`gen_ai.${U}`,attributes:b},async s=>{try{f.recordInputs&&O&&I(s,O,S,(0,E.shouldEnableTruncation)(f.enableTruncation));const t=await n.apply(p,R);return(0,c.instrumentStream)(t,s,Boolean(f.recordOutputs))}catch(n){throw s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:_}}}),s.end(),n}}):(0,s.startSpan)({name:`${U} ${G}`,op:`gen_ai.${U}`,attributes:b},o=>(f.recordInputs&&O&&I(o,O,S,(0,E.shouldEnableTruncation)(f.enableTruncation)),(0,T.handleCallbackErrors)(()=>n.apply(p,R),n=>{(0,t.captureException)(n,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:_}}})},()=>{},t=>{S||y(o,t,f.recordOutputs)})))}})}function N(t,n="",o){return new Proxy(t,{get:(t,s,T)=>{const u=Reflect.get(t,s,T),c=(0,E.buildMethodPath)(n,String(s)),A=_.GOOGLE_GENAI_METHOD_REGISTRY[c];if("function"==typeof u&&A){const n=A.operation?S(u,c,A,t,o):u.bind(t);return A.proxyResultPath?function(...t){const s=n(...t);return s&&"object"==typeof s?N(s,A.proxyResultPath,o):s}:n}return"function"==typeof u?u.bind(t):u&&"object"==typeof u?N(u,c,o):u}})}function R(t,n){return N(t,"",(0,E.resolveAIRecordingOptions)(n))}},2629,[2527,2500,2501,2520,2521,2615,2614,2630,2631,2632]);
1105__d(function(g,r,i,a,m,e,d){"use strict";
1105Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GOOGLE_GENAI_METHOD_REGISTRY",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GOOGLE_GENAI_SYSTEM_NAME",{enumerable:!0,get:function(){return o}});const t="Google_GenAI",n={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},o="google_genai"},2630,[]);
1106__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentStream",{enumerable:!0,get:function(){return f}});var n=r(d[0]),o=r(d[1]),t=r(d[2]);function s(t,s){const l=t?.promptFeedback;if(l?.blockReason){const t=l.blockReasonMessage??l.blockReason;return s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(`Content blocked: ${t}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function l(n,o){"string"==typeof n.responseId&&(o.responseId=n.responseId),"string"==typeof n.modelVersion&&(o.responseModel=n.modelVersion);const t=n.usageMetadata;t&&("number"==typeof t.promptTokenCount&&(o.promptTokens=t.promptTokenCount),"number"==typeof t.candidatesTokenCount&&(o.completionTokens=t.candidatesTokenCount),"number"==typeof t.totalTokenCount&&(o.totalTokens=t.totalTokenCount))}function u(n,o,t){Array.isArray(n.functionCalls)&&o.toolCalls.push(...n.functionCalls);for(const s of n.candidates??[]){s?.finishReason&&!o.finishReasons.includes(s.finishReason)&&o.finishReasons.push(s.finishReason);for(const n of s?.content?.parts??[])t&&n.text&&o.responseTexts.push(n.text),n.functionCall&&o.toolCalls.push({type:"function",id:n.functionCall.id,name:n.functionCall.name,arguments:n.functionCall.args})}}function c(n,o,t,c){n&&!s(n,c)&&(l(n,o),u(n,o,t))}async function*f(n,o,s){const l={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const t of n)c(t,l,s,o),yield t}finally{(0,t.endStreamSpan)(o,l,s)}}},2631,[2527,2501,2614]);
1107__d(function(g,r,i,a,m,e,d){"use strict";function t(n,o="user"){return"string"==typeof n?[{role:o,content:n}]:Array.isArray(n)?n.flatMap(n=>t(n,o)):"object"==typeof n&&n?"role"in n&&"string"==typeof n.role?[n]:"parts"in n?[{...n,role:o}]:[{role:o,content:n}]:[]}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"contentUnionToMessages",{enumerable:!0,get:function(){return t}})},2632,[]);
1108__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return E}});var t=r(d[0]),n=r(d[1]),_=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]),l=r(d[6]),T=r(d[7]);function E(E={}){const{recordInputs:A,recordOutputs:I}=(0,s.resolveAIRecordingOptions)(E),N=(0,s.shouldEnableTruncation)(E.enableTruncation),R=new Map,u=t=>{const n=R.get(t);n?.isRecording()&&(n.end(),R.delete(t))},h={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(t,_,s,l,E,I,u,h){const S=(0,T.getInvocationParams)(I),O=(0,T.extractLLMRequestAttributes)(t,_,A,N,S,u),p=O[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE],M=O[c.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${M} ${p}`,op:"gen_ai.chat",attributes:{...(0,T.getAgentNameFromMetadata)(u),...O,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},t=>(R.set(s,t),t))},handleChatModelStart(t,_,s,l,E,I,u,h){const S=(0,T.getInvocationParams)(I),O=(0,T.extractChatModelRequestAttributes)(t,_,A,N,S,u),p=(0,T.extractToolDefinitions)(E);p&&(O[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=p);const M=O[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE],L=O[c.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${L} ${M}
1108`,op:"gen_ai.chat",attributes:{...(0,T.getAgentNameFromMetadata)(u),...O,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},t=>(R.set(s,t),t))},handleLLMEnd(t,n,_,o,c){const s=R.get(n);if(s?.isRecording()){const _=(0,T.extractLlmResponseAttributes)(t,I);_&&s.setAttributes(_),u(n)}},handleLLMError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.llm_error_handler`}})},handleChainStart(t,_,c,s,l,T,E,I){if(T?.__sentry_langgraph__)return;const N=I||t.name||"unknown_chain",u={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":N};A&&(u["langchain.chain.inputs"]=JSON.stringify(_)),(0,o.startSpanManual)({name:`chain ${N}`,op:"gen_ai.invoke_agent",attributes:{...u,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},t=>(R.set(c,t),t))},handleChainEnd(t,n){const _=R.get(n);_?.isRecording()&&(I&&_.setAttributes({"langchain.chain.outputs":JSON.stringify(t)}),u(n))},handleChainError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.chain_error_handler`}})},handleToolStart(t,_,s,E,I,N,u){if(N?.__sentry_langgraph__)return;const h=u||t.name||"unknown_tool",S={...(0,T.getAgentNameFromMetadata)(N),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[c.GEN_AI_TOOL_NAME_ATTRIBUTE]:h};A&&(S[c.GEN_AI_TOOL_INPUT_ATTRIBUTE]=_),(0,o.startSpanManual)({name:`execute_tool ${h}`,op:"gen_ai.execute_tool",attributes:{...S,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},t=>(R.set(s,t),t))},handleToolEnd(t,n){const _=R.get(n);if(_?.isRecording()){if(I){const n=t&&"object"==typeof t&&"content"in t?t.content:t;_.setAttributes({[c.GEN_AI_TOOL_OUTPUT_ATTRIBUTE]:"string"==typeof n?n:JSON.stringify(n)})}u(n)}},handleToolError(n,o){const c=R.get(o);c?.isRecording()&&(c.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"}),u(o)),(0,t.captureException)(n,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.tool_error_handler`}})},copy:()=>h,toJSON:()=>({lc:1,type:"not_implemented",id:h.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:h.lc_id})};return h}},2633,[2527,2500,2501,2520,2615,2614,2634,2635]);
1109__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"LANGCHAIN_ORIGIN",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ROLE_MAP",{enumerable:!0,get:function(){return s}});const t="LangChain",n="auto.ai.langchain",s={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},2634,[]);
1110__d(function(_g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"extractChatModelRequestAttributes",{enumerable:!0,get:function(){return g}}),Object.defineProperty(e,"extractLLMRequestAttributes",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"extractLlmResponseAttributes",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"extractToolDefinitions",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"getAgentNameFromMetadata",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"getInvocationParams",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"normalizeLangChainMessages",{enumerable:!0,get:function(){return l}});var n=_r(d[0]),t=_r(d[1]),r=_r(d[2]),o=_r(d[3]),_=_r(d[4]);const s=(n,t,r)=>{null!=r&&(n[t]=r)},c=(n,t,r)=>{const o=Number(r);Number.isNaN(o)||(n[t]=o)};function T(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return String(n)}}function u(n){if(Array.isArray(n))try{const t=n.map(n=>n&&"object"==typeof n&&(0,r.isContentMedia)(n)?(0,r.stripInlineMediaFromSingleMessage)(n):n);return JSON.stringify(t)}catch{return String(n)}return T(n)}function E(n){const t=n.toLowerCase();return _.ROLE_MAP[t]??t}function A(n){return n.includes("System")?"system":n.includes("Human")?"user":n.includes("AI")||n.includes("Assistant")?"assistant":n.includes("Function")?"function":n.includes("Tool")?"tool":"user"}function f(n){if(n&&!Array.isArray(n))return n.invocation_params}function l(n){return n.map(n=>{const t=n._getType;if("function"==typeof t){return{role:E(t.call(n)),content:u(n.content)}}if(1===n.lc&&n.kwargs){const t=n.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:E("string"==typeof r?A(r):"user"),content:u(n.kwargs?.content)}}if(n.type){return{role:E(String(n.type).toLowerCase()),content:u(n.content)}}if(n.role)return{role:E(String(n.role)),content:u(n.content)};const r=n.constructor?.name;return r&&"Object"!==r?{role:E(A(r)),content:u(n.content)}:{role:"user",content:u(n.content)}})}function N(n,r,o){const _={},T="kwargs"in n?n.kwargs:void 0,u=r?.temperature??o?.ls_temperature??T?.temperature;c(_,t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,u);const E=r?.max_tokens??o?.ls_max_tokens??T?.max_tokens;c(_,t.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,E);const A=r?.top_p??T?.top_p;c(_,t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,A);const f=r?.frequency_penalty;
1110c(_,t.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE,f);const l=r?.presence_penalty;return c(_,t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,l),r&&"stream"in r&&s(_,t.GEN_AI_REQUEST_STREAM_ATTRIBUTE,Boolean(r.stream)),_}function I(r,o,s,c,u){return{[t.GEN_AI_SYSTEM_ATTRIBUTE]:T(r??"langchain"),[t.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"chat",[t.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:T(o),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:_.LANGCHAIN_ORIGIN,...N(s,c,u)}}function S(n,r,_,c,T,u){const E=u?.ls_provider,A=I(E,T?.model??u?.ls_model_name??"unknown",n,T,u);if(_&&Array.isArray(r)&&r.length>0){s(A,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,r.length);const n=r.map(n=>({role:"user",content:n}));s(A,t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,c?(0,o.getTruncatedJsonString)(n):(0,o.getJsonString)(n))}return A}function g(n,r,_,c,T,u){const E=I(u?.ls_provider??n.id?.[2],T?.model??u?.ls_model_name??"unknown",n,T,u);if(_&&Array.isArray(r)&&r.length>0){const n=l(r.flat()),{systemInstructions:_,filteredMessages:T}=(0,o.extractSystemInstructions)(n);_&&s(E,t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,_);const u=Array.isArray(T)?T.length:0;s(E,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,u),s(E,t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,c?(0,o.getTruncatedJsonString)(T):(0,o.getJsonString)(T))}return E}function p(n,r){const o=[],_=n.flat();for(const n of _){const t=n.message,r=t?.tool_calls;if(Array.isArray(r)&&r.length>0)o.push(...r);else{const t=n.message?.content;if(Array.isArray(t))for(const n of t){const t=n;"tool_use"===t.type&&o.push(t)}}}o.length>0&&s(r,t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,T(o))}function R(n,r){if(!n)return;const o=n.tokenUsage,_=n.usage;if(o)c(r,t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,o.promptTokens),c(r,t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,o.completionTokens),c(r,t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,o.totalTokens);else if(_){c(r,t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,_.input_tokens),c(r,t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,_.output_tokens);const n=Number(_.input_tokens),o=Number(_.output_tokens),s=(Number.isNaN(n)?0:n)+(Number.isNaN(o)?0:o);s>0&&c(r,t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,s),void 0!==_.cache_creation_input_tokens&&c(r,t.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,_.cache_creation_input_tokens),void 0!==_.cache_read_input_tokens&&c(r,t.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,_.cache_read_input_tokens)}}function y(n,r){if(!n)return;const o={};if(Array.isArray(n.generations)){const _=n.generations.flat().map(n=>n.generationInfo?.finish_reason?n.generationInfo.finish_reason:n.generation_info?.finish_reason?n.generation_info.finish_reason:null).filter(n=>"string"==typeof n);if(_.length>0&&s(o,t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,T(_)),p(n.generations,o),r){const r=n.generations.flat().map(n=>n.text??n.message?.content).filter(n=>"string"==typeof n);r.length>0&&s(o,t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,T(r))}}R(n.llmOutput,o);const _=n.llmOutput,c=n.generations?.[0]?.[0],u=c?.message,E=_?.model_name??_?.model??u?.response_metadata?.model_name;E&&s(o,t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,E);const A=_?.id??u?.id;A&&s(o,t.GEN_AI_RESPONSE_ID_ATTRIBUTE,A);const f=_?.stop_reason??u?.response_metadata?.finish_reason;return f&&s(o,t.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,T(f)),o}function U(n){const r={},o=n?.lc_agent_name;return"string"==typeof o&&(r[t.GEN_AI_AGENT_NAME_ATTRIBUTE]=o),r}function O(n){const t=n?.invocation_params?.tools??n?.options?.tools;if(!Array.isArray(t)||0===t.length)return;const r=t.map(n=>{const t=n.function;return{type:"function",name:n.name??t?.name??"",description:n.description??t?.description}});return JSON.stringify(r)}function G(n){if(!n||"object"!=typeof n)return!1;const t=n;return"function"==typeof t.addHandler&&"function"==typeof t.copy}function P(n){return"object"==typeof n&&"SentryCallbackHandler"===n?.name}function b(n){return n.some(P)}function B(n,t){if(!n)return[t];
1110if(G(n)){if(b(n.handlers??[]))return n;const r=n.copy();return r.addHandler(t,!0),r}const r=Array.isArray(n)?n:[n];return b(r)?n:[...r,t]}},2635,[2500,2615,2617,2614,2634]);
1111__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"instrumentLangGraph",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return I}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),_=r(d[3]),s=r(d[4]),c=r(d[5]),T=r(d[6]),A=r(d[7]),l=r(d[8]),E=r(d[9]);let u=!1;const p="__sentry_patched__";function I(c,A){if(Object.prototype.hasOwnProperty.call(c,p))return c;const E=(0,T.createLangChainCallbackHandler)(A),I=new Proxy(c,{apply:(c,T,p)=>u?Reflect.apply(c,T,p):(0,_.startSpan)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"create_agent"}},n=>{try{const t=Reflect.apply(c,T,p),o=p.length>0?p[0]:{};o?.name&&"string"==typeof o.name&&(n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,o.name),n.updateName(`create_agent ${o.name}`));const _=t.invoke;return _&&"function"==typeof _&&(t.invoke=N(_.bind(t),t,o,A,void 0,E)),t}catch(_){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(_,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),_}}
1111)});return Object.defineProperty(I,p,{value:!0,enumerable:!1}),I}function N(T,u,p,I,N,R){return new Proxy(T,{apply(T,y,S){const O=N?.modelName??N?.model;return(0,_.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"invoke_agent"}},async n=>{try{const t=p?.name;t&&"string"==typeof t&&(n.setAttribute(s.GEN_AI_PIPELINE_NAME_ATTRIBUTE,t),n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,t),n.updateName(`invoke_agent ${t}`)),O&&n.setAttribute(s.GEN_AI_REQUEST_MODEL_ATTRIBUTE,O);const o=S.length>1?S[1]:void 0,_=o?.configurable,l=_?.thread_id;if(l&&"string"==typeof l&&n.setAttribute(s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,l),R){const n=S[1]??{};S[1]=n;const o=n.metadata??{};n.metadata={...o,__sentry_langgraph__:!0,..."string"==typeof t?{lc_agent_name:t}:{}},n.callbacks=(0,A._INTERNAL_mergeLangChainCallbackHandler)(n.callbacks,R)}const N=(0,E.extractToolsFromCompiledGraph)(u);N&&n.setAttribute(s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE,JSON.stringify(N));const f=I.recordInputs,b=I.recordOutputs,G=S.length>0?S[0]?.messages??[]:[];if(G&&f){const t=(0,A.normalizeLangChainMessages)(G),{systemInstructions:o,filteredMessages:_}=(0,c.extractSystemInstructions)(t);o&&n.setAttribute(s.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,o);const T=(0,c.shouldEnableTruncation)(I.enableTruncation),l=Array.isArray(_)?_.length:0;n.setAttributes({[s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:T?(0,c.getTruncatedJsonString)(_):(0,c.getJsonString)(_),[s.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const h=await Reflect.apply(T,y,S);return b&&(0,E.setResponseAttributes)(n,G??null,h),h}catch(_){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(_,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),_}}
1111)}})}function R(t,n){if(Object.prototype.hasOwnProperty.call(t,p))return t;const o=(0,c.resolveAIRecordingOptions)(n),_=(0,T.createLangChainCallbackHandler)(o),s=new Proxy(t,{apply(t,n,s){const c=(0,E.extractLLMFromParams)(s),T=(0,E.extractAgentNameFromParams)(s),A=s[0];let l;A&&Array.isArray(A.tools)&&A.tools.length>0&&(0,E.wrapToolsWithSpans)(A.tools,o,T??void 0),u=!0;try{l=Reflect.apply(t,n,s)}finally{u=!1}const p=l.invoke;if(p&&"function"==typeof p){const t={};T&&(t.name=T),l.invoke=N(p.bind(l),l,t,o,c,_)}return l}});return Object.defineProperty(s,p,{value:!0,enumerable:!1}),s}function y(t,n){return t.compile=I(t.compile,(0,c.resolveAIRecordingOptions)(n)),t}},2636,[2527,2500,2501,2520,2615,2614,2633,2635,2637,2638]);
1112__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"LANGGRAPH_ORIGIN",{enumerable:!0,get:function(){return n}});const t="LangGraph",n="auto.ai.langgraph"},2637,[]);
1113__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractAgentNameFromParams",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"extractLLMFromParams",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"extractModelMetadata",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"extractTokenUsageFromMessage",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractToolCalls",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"extractToolsFromCompiledGraph",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"setResponseAttributes",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"wrapToolsWithSpans",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),_=r(d[4]),c=r(d[5]),T=r(d[6]);function u(t){const n=t[0];if("object"!=typeof n||!n||!("llm"in n)||!n.llm||"object"!=typeof n.llm)return null;const o=n.llm;return"string"!=typeof o.modelName&&"string"!=typeof o.model?null:o}function l(t){const n=t[0];return"object"==typeof n&&n&&"name"in n&&"string"==typeof n.name?n.name:null}function p(c,u,l){const p="__sentry_tool_wrapped__";for(const f of c){if(!f||"object"!=typeof f)continue;const c=f,E=c.invoke;if("function"!=typeof E||Object.prototype.hasOwnProperty.call(c,p))continue;const A="string"==typeof c.name?c.name:"unknown_tool",y="string"==typeof c.description?c.description:void 0,O=new Proxy(E,{apply(c,p,f){const E={[
1113n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:T.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:_.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,[_.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[_.GEN_AI_TOOL_NAME_ATTRIBUTE]:A,[_.GEN_AI_TOOL_TYPE_ATTRIBUTE]:"function"},O=f[1],I=O?.metadata?.lc_agent_name??l;"string"==typeof I&&(E[_.GEN_AI_AGENT_NAME_ATTRIBUTE]=I),y&&(E[_.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=y);const b=f[0];if("object"==typeof b&&b&&("id"in b&&"string"==typeof b.id&&(E[_.GEN_AI_TOOL_CALL_ID_ATTRIBUTE]=b.id),u.recordInputs)){const t="args"in b&&"object"==typeof b.args?b.args:b;try{E[_.GEN_AI_TOOL_INPUT_ATTRIBUTE]=JSON.stringify(t)}catch{}}return(0,s.startSpan)({op:_.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,name:`execute_tool ${A}`,attributes:E},async n=>{try{const t=await Reflect.apply(c,p,f);if(u.recordOutputs)try{const o=t&&"object"==typeof t&&"content"in t?t.content:t;n.setAttribute(_.GEN_AI_TOOL_OUTPUT_ATTRIBUTE,"string"==typeof o?o:JSON.stringify(o))}catch{}return t}catch(s){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,t.captureException)(s,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),s}})}});c.invoke=O,Object.defineProperty(c,p,{value:!0,enumerable:!1})}return c}function f(t){if(!t||0===t.length)return null;const n=[];for(const o of t)if(o&&"object"==typeof o){const t=o.tool_calls;t&&Array.isArray(t)&&n.push(...t)}return n.length>0?n:null}function E(t){const n=t;let o=0,s=0,_=0;if(n.usage_metadata&&"object"==typeof n.usage_metadata){const t=n.usage_metadata;return"number"==typeof t.input_tokens&&(o=t.input_tokens),"number"==typeof t.output_tokens&&(s=t.output_tokens),"number"==typeof t.total_tokens&&(_=t.total_tokens),{inputTokens:o,outputTokens:s,totalTokens:_}}if(n.response_metadata&&"object"==typeof n.response_metadata){const t=n.response_metadata;if(t.tokenUsage&&"object"==typeof t.tokenUsage){const n=t.tokenUsage;"number"==typeof n.promptTokens&&(o=n.promptTokens),"number"==typeof n.completionTokens&&(s=n.completionTokens),"number"==typeof n.totalTokens&&(_=n.totalTokens)}}return{inputTokens:o,outputTokens:s,totalTokens:_}}function A(t,n){const o=n;if(o.response_metadata&&"object"==typeof o.response_metadata){const n=o.response_metadata;n.model_name&&"string"==typeof n.model_name&&t.setAttribute(_.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&t.setAttribute(_.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,[n.finish_reason])}}function y(t){if(!t.builder?.nodes?.tools?.runnable?.tools)return null;const n=t.builder?.nodes?.tools?.runnable?.tools;return n&&Array.isArray(n)&&0!==n.length?n.map(t=>({name:t.lc_kwargs?.name,description:t.lc_kwargs?.description,schema:t.lc_kwargs?.schema})):null}function O(t,n,o){const s=o,T=s?.messages;if(!T||!Array.isArray(T))return;const u=n?.length??0,l=T.length>u?T.slice(u):[];if(0===l.length)return;const p=f(l);p&&t.setAttribute(_.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,JSON.stringify(p));const y=(0,c.normalizeLangChainMessages)(l);t.setAttribute(_.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,JSON.stringify(y));let O=0,I=0,b=0;for(const n of l){const o=E(n);O+=o.inputTokens,I+=o.outputTokens,b+=o.totalTokens,A(t,n)}O>0&&t.setAttribute(_.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,O),I>0&&t.setAttribute(_.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,I),b>0&&t.setAttribute(_.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,b)}},2638,[2527,2500,2501,2520,2615,2635,2637]);
1114__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SpanBuffer",{enumerable:!0,get:function(){return u}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),c=r(d[3]),h=r(d[4]),o=r(d[5]);class u{constructor(t,s){this._traceBuckets=new Map,this._client=t;const{maxSpanLimit:n,flushInterval:c,maxTraceWeightInBytes:h}=s??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=c&&c>0?c:5e3,this._maxTraceWeight=h&&h>0?h:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(t=>{clearTimeout(t.timeout)}),this._traceBuckets.clear()})}add(t){const s=t.trace_id;let c=this._traceBuckets.get(s);c||(c={spans:new Set,size:0,timeout:(0,n.safeUnref)(setTimeout(()=>{this.flush(s)},this._flushInterval))},this._traceBuckets.set(s,c)),c.spans.add(t),c.size+=(0,o.estimateSerializedSpanSizeInBytes)(t),(c.spans.size>=this._maxSpanLimit||c.size>=this._maxTraceWeight)&&this.flush(s)}drain(){this._traceBuckets.size&&(t.DEBUG_BUILD&&s.debug.log(`Flushing span tree map with ${this._traceBuckets.size}
1114 traces`),this._traceBuckets.forEach((t,s)=>{this.flush(s)}))}flush(n){const o=this._traceBuckets.get(n);if(!o)return;if(!o.spans.size)return void this._removeTrace(n);const u=Array.from(o.spans),l=u[0]?._segmentSpan;if(!l)return t.DEBUG_BUILD&&s.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(n);const _=(0,c.getDynamicSamplingContextFromSpan)(l),p=u.map(t=>{const{_segmentSpan:s,...n}=t;return n}),f=(0,h.createStreamedSpanEnvelope)(p,_,this._client);t.DEBUG_BUILD&&s.debug.log(`Sending span envelope for trace ${n} with ${p.length} spans`),this._client.sendEnvelope(f).then(null,n=>{t.DEBUG_BUILD&&s.debug.error("Error while sending streamed span envelope:",n)}),this._removeTrace(n)}_removeTrace(t){const s=this._traceBuckets.get(t);s&&clearTimeout(s.timeout),this._traceBuckets.delete(t)}}},2639,[2470,2474,2533,2513,2640,2641]);
1115__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createStreamedSpanEnvelope",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);function c(c,p,_){const l=_.getOptions(),f=_.getDsn(),v=l.tunnel,y=(0,n.getSdkMetadataForEnvelopeHeader)(l._metadata),S={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...u(p)&&{trace:p},...y&&{sdk:y},...!!v&&f&&{dsn:(0,t.dsnToString)(f)}},O=_.getDataCollectionOptions().userInfo?"auto":"never",b=[{type:"span",item_count:c.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:O,infer_user_agent:O}},items:c}];return(0,n.createEnvelope)(S,[b])}function u(t){return!!t.trace_id&&!!t.public_key}},2640,[2505,2516,2542,2488]);
1116__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"estimateSerializedSpanSizeInBytes",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){let s=156;if(s+=2*n.name.length,s+=(0,t.estimateTypedAttributesSizeInBytes)(n.attributes),n.links&&n.links.length>0){const u=n.links[0],l=u?.attributes;s+=(100+(l?(0,t.estimateTypedAttributesSizeInBytes)(l):0))*n.links.length}return s}},2641,[2498]);
1117__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanStreamingIntegration",{enumerable:!0,get:function(){return l}});var n=r(d[0]),t=r(d[1]),c=r(d[2]),o=r(d[3]),s=r(d[4]),S=r(d[5]),p=r(d[6]),f=r(d[7]);const l=(0,t.defineIntegration)(()=>({name:"SpanStreaming",setup(t){const l="SpanStreaming integration requires",u="Falling back to static trace lifecycle.",b=t.getOptions();if(!(0,s.hasSpanStreamingEnabled)(t))return b.traceLifecycle="static",void(n.DEBUG_BUILD&&p.debug.warn(`${l} \`traceLifecycle\` to be set to "stream"! ${u}`));const y=b.beforeSendSpan;if(y&&!(0,c.isStreamedBeforeSendSpanCallback)(y))return b.traceLifecycle="static",void(n.DEBUG_BUILD&&p.debug.warn(`${l} a beforeSendSpan callback using \`withStreamedSpan\`! ${u}`));const B=new S.SpanBuffer(t);t.on("afterSpanEnd",n=>{(0,f.spanIsSampled)(n)&&B.add((0,o.captureSpan)(n,t))})}}))},2642,[2470,2536,2515,2524,2519,2639,2474,2479]);
1118__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return t}})},2643,[]);
1119__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SentryError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}},2644,[]);
1120__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"parseFetchArgs",{enumerable:!0,get:function(){return E}});
1120var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),l=r(d[6]);function h(t,n){const o="fetch",s=(0,l.addHandler)(o,t);return(0,l.maybeInstrument)(o,()=>p(void 0,n)),s}function f(t){const n="fetch-body-resolved",o=(0,l.addHandler)(n,t);return(0,l.maybeInstrument)(n,()=>p(b)),o}function p(h,f=!1){f&&!(0,s.supportsNativeFetch)()||(0,o.fill)(u.GLOBAL_OBJ,"fetch",function(s){return function(...f){const p=new Error,{method:y,url:b}=E(f),T={args:f,fetchData:{method:y,url:b},startTimestamp:1e3*(0,c.timestampInSeconds)(),virtualError:p,headers:w(f)};return h||(0,l.triggerHandlers)("fetch",{...T}),s.apply(u.GLOBAL_OBJ,f).then(async t=>(h?h(t):(0,l.triggerHandlers)("fetch",{...T,endTimestamp:1e3*(0,c.timestampInSeconds)(),response:t}),t),s=>{(0,l.triggerHandlers)("fetch",{...T,endTimestamp:1e3*(0,c.timestampInSeconds)(),error:s}),(0,n.isError)(s)&&void 0===s.stack&&(s.stack=p.stack,(0,o.addNonEnumerableProperty)(s,"framesToPop",1));const u=(0,t.getClient)(),h=u?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==h&&s instanceof TypeError&&("Failed to fetch"===s.message||"Load failed"===s.message||"NetworkError when attempting to fetch resource."===s.message))try{const t=new URL(T.fetchData.url).host;"always"===h?s.message=`${s.message} (${t})`:(0,o.addNonEnumerableProperty)(s,"__sentry_fetch_url_host__",t)}catch{}throw s})}})}async function y(t,n){if(t?.body){const o=t.body,s=o.getReader(),c=setTimeout(()=>{o.cancel().then(null,()=>{})},9e4);let u=!0;for(;u;){let t;try{t=setTimeout(()=>{o.cancel().then(null,()=>{})},5e3);const{done:c}=await s.read();clearTimeout(t),c&&(n(),u=!1)}catch{u=!1}finally{clearTimeout(t)}}clearTimeout(c),s.releaseLock(),o.cancel().then(null,()=>{})}}function b(t){let n;try{n=t.clone()}catch{return}y(n,()=>{(0,l.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,c.timestampInSeconds)(),response:t})})}function T(t,n){return!!t&&"object"==typeof t&&!!t[n]}function _(t){return"string"==typeof t?t:t?T(t,"url")?t.url:t.toString?t.toString():"":""}function E(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[o,s]=t;return{url:_(o),method:T(s,"method")?String(s.method).toUpperCase():(0,n.isRequest)(o)&&T(o,"method")?String(o.method).toUpperCase():"GET"}}const o=t[0];return{url:_(o),method:T(o,"method")?String(o.method).toUpperCase():"GET"}}function w(t){const[o,s]=t;try{if("object"==typeof s&&null!==s&&"headers"in s&&s.headers)return new Headers(s.headers);if((0,n.isRequest)(o))return new Headers(o.headers)}catch{}}},2645,[2499,2487,2486,2646,2492,2472,2473]);
1121__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isNativeFunction",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"supportsDOMError",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"supportsDOMException",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"supportsErrorEvent",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"supportsFetch",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"supportsHistory",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"supportsNativeFetch",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"supportsReportingObserver",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]);const u=r(d[2]).GLOBAL_OBJ;function o(){try{return new ErrorEvent(""),!0}catch{return!1}}function c(){try{return new DOMError(""),!0}catch{return!1}}function f(){try{return new DOMException(""),!0}catch{return!1}}function s(){return"history"in u&&!!u.history}const p=b;function b(){if(!("fetch"in u))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function y(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function h(){if("string"==typeof EdgeRuntime)return!0;if(!b())return!1;if(y(u.fetch))return!0;let o=!1;const c=u.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t),t.contentWindow?.fetch&&(o=y(t.contentWindow.fetch)),c.head.removeChild(t)}catch(u){t.DEBUG_BUILD&&n.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",u)}return o}function l(){return"ReportingObserver"in u}function O(){if(!b())return!1;
1121try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}},2646,[2470,2474,2472]);
1122__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n,u){const c=t[n];if("function"==typeof c){try{t[n]=u}catch{Object.defineProperty(t,n,{value:u,writable:!0,configurable:!0,enumerable:!0})}if(t.default===c)try{t.default=u}catch{Object.defineProperty(t,"default",{value:u,writable:!0,configurable:!0,enumerable:!0})}}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"replaceExports",{enumerable:!0,get:function(){return t}})},2647,[]);
1123__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LRUMap",{enumerable:!0,get:function(){return t}});class t{constructor(t){this._maxSize=t,this._cache=new Map}get size(){return this._cache.size}get(t){const c=this._cache.get(t);if(void 0!==c)return this._cache.delete(t),this._cache.set(t,c),c}set(t,c){if(this._cache.size>=this._maxSize){const t=this._cache.keys().next().value;this._cache.delete(t)}this._cache.set(t,c)}remove(t){const c=this._cache.get(t);return c&&this._cache.delete(t),c}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const t=[];return this._cache.forEach(c=>t.push(c)),t}}},2648,[]);
1124__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"escapeStringForRegex",{enumerable:!0,get:function(){return t}})},2649,[]);
1125__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ServerRuntimeClient",{enumerable:!0,get:function(){return k}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),i=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]),l=r(d[9]),_=r(d[10]),v=r(d[11]),f=r(d[12]);class k extends s.Client{constructor(t){(0,u.addUserAgentToTransportHeaders)(t),"stream"!==t.traceLifecycle||t.integrations.some(t=>"SpanStreaming"===t.name)||t.integrations.push((0,i.spanStreamingIntegration)()),super(t),this._disposeCallbacks=[],this._setUpMetricsProcessing()}eventFromException(t,s){const n=(0,p.eventFromUnknownInput)(this,this._options.stackParser,t,s);return n.level="error",(0,v.resolvedSyncPromise)(n)}eventFromMessage(t,s="info",n){return(0,v.resolvedSyncPromise)((0,p.eventFromMessage)(this._options.stackParser,t,s,n,this._options.attachStacktrace))}captureException(t,s,n){return S(s),super.captureException(t,s,n)}captureEvent(t,s,n){return!t.type&&t.exception?.values&&t.exception.values.length>0&&S(s),super.captureEvent(t,s,n)}captureCheckIn(s,n,i){const c="checkInId"in s&&s.checkInId?s.checkInId:(0,l.uuid4)();if(!this._isEnabled())return o.DEBUG_BUILD&&h.debug.warn("SDK not enabled, will not capture check-in."),c;const u=this.getOptions(),{release:p,environment:_,tunnel:v}=u,k={check_in_id:c,monitor_slug:s.monitorSlug,status:s.status,release:p,environment:_};"duration"in s&&(k.duration=s.duration),n&&(k.monitor_config={schedule:n.schedule,checkin_margin:n.checkinMargin,max_runtime:n.maxRuntime,timezone:n.timezone,failure_issue_threshold:n.failureIssueThreshold,recovery_threshold:n.recoveryThreshold});const[S,I]=(0,f._getTraceInfoFromScope)(this,i);I&&(k.contexts={trace:I});const E=(0,t.createCheckInEnvelope)(k,S,this.getSdkMetadata(),v,this.getDsn());return o.DEBUG_BUILD&&h.debug.log("Sending checkin:",s.monitorSlug,s.status),this.sendEnvelope(E),c}registerCleanup(t){this._disposeCallbacks.push(t)}dispose(){o.DEBUG_BUILD&&h.debug.log("Disposing client...");for(const t of this._disposeCallbacks)try{t()}catch{}this._disposeCallbacks.length=0;for(const t of Object.keys(this._hooks))this._hooks[t]?.clear();this._hooks={},this._eventProcessors.length=0,this._integrations={},this._outcomes={},this._transport=void 0,this._promiseBuffer=(0,_.makePromiseBuffer)(c.DEFAULT_TRANSPORT_BUFFER_SIZE)}_prepareEvent(t,s,n,o){return this._options.platform&&(t.platform=t.platform||this._options.platform),this._options.runtime&&(t.contexts={...t.contexts,runtime:t.contexts?.runtime||this._options.runtime}),this._options.serverName&&(t.server_name=t.server_name||this._options.serverName),super._prepareEvent(t,s,n,o)}_setUpMetricsProcessing(){this.on("processMetric",t=>{this._options.serverName&&(t.attributes={"server.address":this._options.serverName,...t.attributes})})}}function S(t){const s=(0,n.getIsolationScope)().getScopeData().sdkProcessingMetadata.requestSession;if(s){const n=t?.mechanism?.handled??!0;n&&"crashed"!==s.status?s.status="errored":n||(s.status="crashed")}}},2650,[2567,2535,2499,2470,2642,2549,2651,2474,2585,2485,2550,2530,2539]);
1126__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t._metadata?.sdk,s=n?.name&&n?.version?`${n?.name}/${n?.version}`:void 0;t.transportOptions={...t.transportOptions,headers:{...s&&{"user-agent":s},...t.transportOptions?.headers}}}
1126Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addUserAgentToTransportHeaders",{enumerable:!0,get:function(){return t}})},2651,[]);
1127__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"trpcMiddleware",{enumerable:!0,get:function(){return l}});var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),c=r(d[4]),p=r(d[5]);const u={mechanism:{handled:!1,type:"auto.rpc.trpc.middleware"}};function s(t){"object"==typeof t&&null!==t&&"ok"in t&&!t.ok&&"error"in t&&(0,e.captureException)(t.error,u)}function l(l={}){return async function(f){const{path:h,type:T,next:_,rawInput:y,getRawInput:I}=f,R=(0,t.getClient)(),E=R?.getOptions(),w=R?.getDataCollectionOptions(),v={procedure_path:h,procedure_type:T};if((0,p.setNormalizationDepthOverrideHint)(v,1+(E?.normalizeDepth??5)),(void 0!==l.attachRpcInput?l.attachRpcInput:w?.httpBodies.includes("incomingRequest"))&&(void 0!==y&&(v.input=(0,o.normalize)(y)),void 0!==I&&"function"==typeof I))try{const t=await I();v.input=(0,o.normalize)(t)}catch{}return(0,t.withIsolationScope)(t=>(t.setContext("trpc",v),(0,c.startSpanManual)({name:`trpc/${h}`,op:"rpc.server",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"},forceTransaction:!!l.forceTransaction},async t=>{try{const e=await _();return s(e),t.end(),e}catch(n){throw(0,e.captureException)(n,u),t.end(),n}})))}}},2652,[2499,2527,2500,2490,2520,2491]);
1128__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapMcpServerWithSentry",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]);const p=new WeakSet;function u(u,l){if(p.has(u))return u;if(!(0,c.validateMcpServerInstance)(u))return u;const f=u,w=(0,t.getClient)(),O=w?.getDataCollectionOptions().genAI,v={recordInputs:l?.recordInputs??O?.inputs??!1,recordOutputs:l?.recordOutputs??O?.outputs??!1};return(0,n.fill)(f,"connect",t=>async function(n,...s){const c=await t.call(this,n,...s);return(0,o.wrapTransportOnMessage)(n,v),(0,o.wrapTransportSend)(n,v),(0,o.wrapTransportOnClose)(n),(0,o.wrapTransportError)(n),c}),(0,s.wrapAllMCPHandlers)(f),(0,s.wrapExistingHandlers)(f),p.add(u),u}},2653,[2499,2486,2654,2656,2660]);
1129__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapAllMCPHandlers",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"wrapExistingHandlers",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"wrapPromptHandlers",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"wrapResourceHandlers",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"wrapToolHandlers",{enumerable:!0,get:function(){return p}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),c=r(d[3]);function u(t,o){(0,n.fill)(t,o,t=>function(n,...c){const u=c[c.length-1];if("function"!=typeof u)return t.call(this,n,...c);const f=s(u,o,n);return t.call(this,n,...c.slice(0,-1),f)})}function s(n,c,u){return function(...s){try{return f.call(this,n,c,u,s)}catch(c){return t.DEBUG_BUILD&&o.debug.warn("MCP handler wrapping failed:",c),n.apply(this,s)}}}function f(t,o,n,c){try{const u=t.apply(this,c);return u&&"object"==typeof u&&"function"==typeof u.then?Promise.resolve(u).catch(t=>{throw l(t,o,n),t}):u}catch(t){throw l(t,o,n),t}}function l(t,o,n){try{const u={};"tool"===o||"registerTool"===o?(u.tool_name=n,"ProtocolValidationError"===t.name||t.message.includes("validation")||t.message.includes("protocol")?(0,c.captureError)(t,"validation",u):"ServerTimeoutError"===t.name||t.message.includes("timed out")||t.message.includes("timeout")?(0,c.captureError)(t,"timeout",u):(0,c.captureError)(t,"tool_execution",u)):"resource"===o||"registerResource"===o?(u.resource_uri=n,(0,c.captureError)(t,"resource_execution",u)):"prompt"!==o&&"registerPrompt"!==o||(u.prompt_name=n,(0,c.captureError)(t,"prompt_execution",u))}catch(t){}}function p(t){"function"==typeof t.tool&&u(t,"tool"),"function"==typeof t.registerTool&&u(t,"registerTool")}function y(t){"function"==typeof t.resource&&u(t,"resource"),"function"==typeof t.registerResource&&u(t,"registerResource")}function b(t){"function"==typeof t.prompt&&u(t,"prompt"),"function"==typeof t.registerPrompt&&u(t,"registerPrompt")}function h(t){p(t),y(t),b(t)}
1129function P(t){const o=t,n=o._registeredTools;if(n&&"object"==typeof n)for(const[t,o]of Object.entries(n))"function"==typeof o.executor&&(o.executor=s(o.executor,"registerTool",t));const c=o._registeredResources;if(c&&"object"==typeof c)for(const[t,o]of Object.entries(c))"function"==typeof o.readCallback&&(o.readCallback=s(o.readCallback,"registerResource",t));const u=o._registeredResourceTemplates;if(u&&"object"==typeof u)for(const[t,o]of Object.entries(u))"function"==typeof o.readCallback&&(o.readCallback=s(o.readCallback,"registerResource",t));const f=o._registeredPrompts;if(f&&"object"==typeof f)for(const[t,o]of Object.entries(f))"function"==typeof o.handler&&(o.handler=s(o.handler,"registerPrompt",t))}},2654,[2470,2474,2486,2655]);
1130__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureError",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),c=r(d[2]),o=r(d[3]);function u(u,s,_){try{if(!(0,t.getClient)())return;const p=(0,c.getActiveSpan)();p?.isRecording()&&p.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(u,{mechanism:{type:"auto.ai.mcp_server",handled:!1,data:{error_type:s||"handler_execution",..._}}})}catch{}}},2655,[2499,2527,2479,2501]);
1131__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapTransportError",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"wrapTransportOnClose",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"wrapTransportOnMessage",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"wrapTransportSend",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]),S=r(d[9]);function h(l,h){l.onmessage&&(0,n.fill)(l,"onmessage",n=>function(b,R){if((0,S.isJsonRpcRequest)(b)){const S="initialize"===b.method;let O;if(S)try{O=(0,u.extractSessionDataFromInitializeRequest)(b),(0,p.storeSessionDataForTransport)(l,O)}catch{}const T=(0,t.getIsolationScope)().clone();return(0,t.withIsolationScope)(T,()=>{const t=(0,f.buildMcpServerSpanConfig)(b,l,R,h),p=(0,o.startInactiveSpan)(t);return S&&O&&p.setAttributes({...(0,u.buildClientAttributesFromInfo)(O.clientInfo),...O.protocolVersion&&{[s.MCP_PROTOCOL_VERSION_ATTRIBUTE]:O.protocolVersion}}),(0,c.storeSpanForRequest)(l,b.id,p,b.method),(0,o.withActiveSpan)(p,()=>n.call(this,b,R))})}return(0,S.isJsonRpcNotification)(b)?(0,f.createMcpNotificationSpan)(b,l,R,h,()=>n.call(this,b,R)):n.call(this,b,R)})}function b(t,o){t.send&&(0,n.fill)(t,"send",n=>async function(...s){const[l]=s;if((0,S.isJsonRpcNotification)(l))return(0,f.createMcpOutgoingNotificationSpan)(l,t,o,()=>n.call(this,...s));if((0,S.isJsonRpcResponse)(l)&&null!==l.id&&void 0!==l.id){if(l.error&&T(l.error),(0,S.isValidContentItem)(l.result)&&(l.result.protocolVersion||l.result.serverInfo))try{const n=(0,u.extractSessionDataFromInitializeResponse)(l.result);(0,p.updateSessionDataForTransport)(t,n)}catch{}(0,c.completeSpanWithResults)(t,l.id,l.result,o,!!l.error)}return n.call(this,...s)})}function R(t){t.onclose&&(0,n.fill)(t,"onclose",n=>function(...o){return(0,c.cleanupPendingSpansForTransport)(t),(0,p.cleanupSessionDataForTransport)(t),n.call(this,...o)})}function O(t){t.onerror&&(0,n.fill)(t,"onerror",t=>function(n){return y(n),t.call(this,n)})}function T(t){try{if(t&&"object"==typeof t&&"code"in t&&"message"in t){const n=t;if(-32603===n.code||n.code>=-32099&&n.code<=-32e3){const t=new Error(n.message);t.name=`JsonRpcError_${n.code}`,(0,l.captureError)(t,"protocol")}}}catch{}}function y(t){try{(0,l.captureError)(t,"transport")}catch{}}},2656,[2499,2486,2520,2657,2658,2655,2661,2662,2663,2660]);
1132__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CLIENT_ADDRESS_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"CLIENT_PORT_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"MCP_FUNCTION_ORIGIN_VALUE",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"MCP_LOGGING_DATA_TYPE_ATTRIBUTE",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"MCP_LOGGING_LEVEL_ATTRIBUTE",{enumerable:!0,get:function(){return A}}
1132),Object.defineProperty(e,"MCP_LOGGING_LOGGER_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"MCP_LOGGING_MESSAGE_ATTRIBUTE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"MCP_METHOD_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"MCP_NOTIFICATION_ORIGIN_VALUE",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"MCP_PROMPT_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"MCP_PROTOCOL_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"MCP_REQUEST_ARGUMENT",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"MCP_REQUEST_ID_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"MCP_RESOURCE_URI_ATTRIBUTE",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"MCP_ROUTE_SOURCE_VALUE",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"MCP_SERVER_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"MCP_SERVER_OP_VALUE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"MCP_SERVER_TITLE_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"MCP_SERVER_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"MCP_SESSION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"MCP_TOOL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"MCP_TRANSPORT_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"NETWORK_PROTOCOL_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"NETWORK_TRANSPORT_ATTRIBUTE",{enumerable:!0,get:function(){return N}});const t="mcp.method.name",n="mcp.request.id",T="mcp.session.id",o="mcp.transport",_="mcp.server.name",u="mcp.server.title",c="mcp.server.version",O="mcp.protocol.version",E="mcp.tool.name",P="mcp.resource.uri",R="mcp.prompt.name",p="mcp.tool.result.is_error",f="mcp.tool.result.content_count",b="mcp.prompt.result.description",I="mcp.prompt.result.message_count",l="mcp.request.argument",A="mcp.logging.level",U="mcp.logging.logger",C="mcp.logging.data_type",M="mcp.logging.message",N="network.transport",s="network.protocol.version",y="client.address",j="client.port",S="mcp.server",L="mcp.notification.client_to_server",B="mcp.notification.server_to_client",G="auto.function.mcp_server",V="auto.mcp.notification",v="route"},2657,[]);
1133__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupPendingSpansForTransport",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"completeSpanWithResults",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"storeSpanForRequest",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);const c=new Map,u=new WeakMap;function l(t){const n=t.sessionId;if(n){let t=c.get(n);return t||(t=new Map,c.set(n,t)),t}let s=u.get(t);return s||(s=new Map,u.set(t,s)),s}function p(t,n,s,o){l(t).set(n,{span:s,method:o,startTime:Date.now()})}function f(c,u,p,f,S=!1){const R=l(c),b=R.get(u);if(b){const{span:c,method:l}=b;if(S)c.setStatus({code:t.SPAN_STATUS_ERROR,message:"internal_error"});else if("initialize"===l){const t=(0,o.extractSessionDataFromInitializeResponse)(p),s={...(0,o.buildServerAttributesFromInfo)(t.serverInfo)};t.protocolVersion&&(s[n.MCP_PROTOCOL_VERSION_ATTRIBUTE]=t.protocolVersion),c.setAttributes(s)}else if("tools/call"===l){const t=(0,s.extractToolResultAttributes)(p,f.recordOutputs);c.setAttributes(t)}else if("prompts/get"===l){const t=(0,s.extractPromptResultAttributes)(p,f.recordOutputs);c.setAttributes(t)}c.end(),R.delete(u)}}function S(n){const s=n.sessionId;if(s){const n=c.get(s);if(n){for(const[,s]of n)s.span.setStatus({code:t.SPAN_STATUS_ERROR,message:"cancelled"}),s.span.end();c.delete(s)}return}const o=u.get(n);if(o){for(const[,n]of o)n.span.setStatus({code:t.SPAN_STATUS_ERROR,message:"cancelled"}),n.span.end();
1133o.clear()}}},2658,[2501,2657,2659,2661]);
1134__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractPromptResultAttributes",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"extractToolResultAttributes",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);function o(o,s){const i={[t.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE]:o.length};for(const[t,c]of o.entries()){if(!(0,n.isValidContentItem)(c))continue;const u=1===o.length?"mcp.tool.result":`mcp.tool.result.${t}`;if("string"==typeof c.type&&(i[`${u}.content_type`]=c.type),s){const t=(t,n)=>{"string"==typeof n&&(i[`${u}.${t}`]=n)};t("mime_type",c.mimeType),t("uri",c.uri),t("name",c.name),"string"==typeof c.text&&(i[`${u}.content`]=c.text),"string"==typeof c.data&&(i[`${u}.data_size`]=c.data.length);const o=c.resource;(0,n.isValidContentItem)(o)&&(t("resource_uri",o.uri),t("resource_mime_type",o.mimeType))}}return i}function s(s,i){if(!(0,n.isValidContentItem)(s))return{};const c=Array.isArray(s.content)?o(s.content,i):{};return"boolean"==typeof s.isError&&(c[t.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE]=s.isError),c}function i(o,s){const i={};if(!(0,n.isValidContentItem)(o))return i;if(s&&"string"==typeof o.description&&(i[t.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE]=o.description),Array.isArray(o.messages)&&(i[t.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE]=o.messages.length,s)){const t=o.messages;for(const[o,s]of t.entries()){if(!(0,n.isValidContentItem)(s))continue;const c=1===t.length?"mcp.prompt.result":`mcp.prompt.result.${o}`;if(((n,o)=>{if("string"==typeof o){const s=1===t.length?`${c}.message_${n}`:`${c}.${n}`;i[s]=o}})("role",s.role),(0,n.isValidContentItem)(s.content)){const n=s.content;if("string"==typeof n.text){const o=1===t.length?`${c}.message_content`:`${c}.content`;i[o]=n.text}}}}return i}},2659,[2657,2660]);
1135__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isJsonRpcNotification",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isJsonRpcRequest",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isJsonRpcResponse",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isValidContentItem",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"validateMcpServerInstance",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);function o(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"method"in n&&"id"in n}function c(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"method"in n&&!("id"in n)}function u(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"id"in n&&("result"in n||"error"in n)}function s(o){return"object"==typeof o&&null!==o&&"connect"in o&&("tool"in o&&"resource"in o&&"prompt"in o||"registerTool"in o&&"registerResource"in o&&"registerPrompt"in o)||(n.DEBUG_BUILD&&t.debug.warn("Did not patch MCP server. Interface is incompatible."),!1)}function p(n){return null!=n&&"object"==typeof n}},2660,[2470,2474]);
1136__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildClientAttributesFromInfo",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"buildServerAttributesFromInfo",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"buildTransportAttributes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractClientInfo",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"extractSessionDataFromInitializeRequest",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"extractSessionDataFromInitializeResponse",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getClientAttributes",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getServerAttributes",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getTransportTypes",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(t){const n={};return(0,o.isValidContentItem)(t)&&("string"==typeof t.name&&(n.name=t.name),"string"==typeof t.title&&(n.title=t.title),"string"==typeof t.version&&(n.version=t.version)),n}function c(t){const n={};return(0,o.isValidContentItem)(t.params)&&("string"==typeof t.params.protocolVersion&&(n.protocolVersion=t.params.protocolVersion),t.params.clientInfo&&(n.clientInfo=s(t.params.clientInfo))),n}function u(t){const n={};return(0,o.isValidContentItem)(t)&&("string"==typeof t.protocolVersion&&(n.protocolVersion=t.protocolVersion),t.serverInfo&&(n.serverInfo=s(t.serverInfo))),n}function T(t){const o=(0,n.getClientInfoForTransport)(t),s={};return o?.name&&(s["mcp.client.name"]=o.name),o?.title&&(s["mcp.client.title"]=o.title),o?.version&&(s["mcp.client.version"]=o.version),s}function l(t){const n={};return t?.name&&(n["mcp.client.name"]=t.name),t?.title&&(n["mcp.client.title"]=t.title),t?.version&&(n["mcp.client.version"]=t.version),n}function p(o){const s=(0,n.getSessionDataForTransport)(o)?.serverInfo,c={};return s?.name&&(c[t.MCP_SERVER_NAME_ATTRIBUTE]=s.name),s?.title&&(c[t.MCP_SERVER_TIT
1136LE_ATTRIBUTE]=s.title),s?.version&&(c[t.MCP_SERVER_VERSION_ATTRIBUTE]=s.version),c}function f(n){const o={};return n?.name&&(o[t.MCP_SERVER_NAME_ATTRIBUTE]=n.name),n?.title&&(o[t.MCP_SERVER_TITLE_ATTRIBUTE]=n.title),n?.version&&(o[t.MCP_SERVER_VERSION_ATTRIBUTE]=n.version),o}function I(t){return{address:t?.requestInfo?.remoteAddress||t?.clientAddress||t?.request?.ip||t?.request?.connection?.remoteAddress,port:t?.requestInfo?.remotePort||t?.clientPort||t?.request?.connection?.remotePort}}function R(t){if(!t?.constructor)return{mcpTransport:"unknown",networkTransport:"unknown"};const n="string"==typeof t.constructor?.name?t.constructor.name:"unknown";let o="unknown";const s=n.toLowerCase();return s.includes("stdio")?o="pipe":(s.includes("http")||s.includes("sse"))&&(o="tcp"),{mcpTransport:n,networkTransport:o}}function E(o,s){const c=o&&"sessionId"in o?o.sessionId:void 0,u=s?I(s):{},{mcpTransport:l,networkTransport:f}=R(o),E=T(o),_=p(o),P=(0,n.getProtocolVersionForTransport)(o);return{...c&&{[t.MCP_SESSION_ID_ATTRIBUTE]:c},...u.address&&{[t.CLIENT_ADDRESS_ATTRIBUTE]:u.address},...u.port&&{[t.CLIENT_PORT_ATTRIBUTE]:u.port},[t.MCP_TRANSPORT_ATTRIBUTE]:l,[t.NETWORK_TRANSPORT_ATTRIBUTE]:f,[t.NETWORK_PROTOCOL_VERSION_ATTRIBUTE]:"2.0",...P&&{[t.MCP_PROTOCOL_VERSION_ATTRIBUTE]:P},...E,..._}}},2661,[2657,2662,2660]);
1137__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupSessionDataForTransport",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getClientInfoForTransport",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getProtocolVersionForTransport",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getSessionDataForTransport",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"storeSessionDataForTransport",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"updateSessionDataForTransport",{enumerable:!0,get:function(){return c}});const n=new Map,t=new WeakMap;function o(o){const u=o.sessionId;return u?n.get(u):t.get(o)}function u(o,u){const s=o.sessionId;s?n.set(s,u):t.set(o,u)}function s(n,t){u(n,t)}function c(n,t){u(n,{...o(n)||{},...t})}function f(n){return o(n)?.clientInfo}function p(n){return o(n)?.protocolVersion}function l(n){return o(n)}function b(t){const o=t.sessionId;o&&n.delete(o)}},2662,[]);
1138__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildMcpServerSpanConfig",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createMcpNotificationSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createMcpOutgoingNotificationSpan",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),_=r(d[4]),u=r(d[5]),s=r(d[6]),T=r(d[7]);function p(t,n){return n?`${t} ${n}`:t}function I(t){let o,c;switch(t){case"request":o=_.MCP_SERVER_OP_VALUE,c=_.MCP_FUNCTION_ORIGIN_VALUE;break;case"notification-incoming":o=_.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE,c=_.MCP_NOTIFICATION_ORIGIN_VALUE;break;case"notification-outgoing":o=_.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE,c=_.MCP_NOTIFICATION_ORIGIN_VALUE}return{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:o,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:_.MCP_ROUTE_SOURCE_VALUE}}function E(n){const{type:E,message:f,transport:O,extra:l,callback:C,options:A}=n,{method:N}=f,b=f.params;let M;if("request"===E){M=p(N,(0,u.extractTargetInfo)(N,b||{}).target)}else M=N;const R={...(0,T.buildTransportAttributes)(O,l),[_.MCP_METHOD_NAME_ATTRIBUTE]:N,...(0,c.buildTypeSpecificAttributes)(E,f,b,A?.recordInputs),...I(E)},P=(0,t.getClient)(),S=Boolean(P?.getDataCollectionOptions().userInfo),U=(0,s.filterMcpPiiFromSpanData)(R,S);return(0,o.startSpan)({name:M,forceTransaction:!0,attributes:U},C)}function f(t,n,o,c,_){return E({type:"notification-incoming",message:t,transport:n,extra:o,callback:_,options:c})}function O(t,n,o,c){return E({type:"notification-outgoing",message:t,transport:n,options:o,callback:c})}function l(n,o,E,f){const{method:O}=n,l=n.params,C=p(O,(0,u.extractTargetInfo)(O,l||{}).target),A={...(0,T.buildTransportAttributes)(o,E),[_.MCP_METHOD_NAME_ATTRIBUTE]:O,...(0,c.buildTypeSpecificAttributes)("request",n,l,f?.recordInputs),...I("request")},N=(0,t.getClient)(),b=Boolean(N?.getDataCollectionOptions().userInfo),M=(0,s.filterMcpPiiFromSpanData)(A,b);return{name:C,op:_.MCP_SERVER_OP_VALUE,forceTransaction:!0,attributes:M}}},2663,[2499,2500,2520,2664,2657,2665,2666,2661]);
1139__d(function(g,r,i,a,m,e,d){"use strict";
1139Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildTypeSpecificAttributes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getNotificationAttributes",{enumerable:!0,get:function(){return n}});var t=r(d[0]),o=r(d[1]),s=r(d[2]);function n(s,n,c){const p={};switch(s){case"notifications/cancelled":n?.requestId&&(p["mcp.cancelled.request_id"]=String(n.requestId)),n?.reason&&(p["mcp.cancelled.reason"]=String(n.reason));break;case"notifications/message":n?.level&&(p[o.MCP_LOGGING_LEVEL_ATTRIBUTE]=String(n.level)),n?.logger&&(p[o.MCP_LOGGING_LOGGER_ATTRIBUTE]=String(n.logger)),void 0!==n?.data&&(p[o.MCP_LOGGING_DATA_TYPE_ATTRIBUTE]=typeof n.data,c&&(p[o.MCP_LOGGING_MESSAGE_ATTRIBUTE]="string"==typeof(u=n.data)?u:JSON.stringify(u)));break;case"notifications/progress":n?.progressToken&&(p["mcp.progress.token"]=String(n.progressToken)),"number"==typeof n?.progress&&(p["mcp.progress.current"]=n.progress),"number"==typeof n?.total&&(p["mcp.progress.total"]=n.total,"number"==typeof n?.progress&&(p["mcp.progress.percentage"]=n.progress/n.total*100)),n?.message&&(p["mcp.progress.message"]=String(n.message));break;case"notifications/resources/updated":if(n?.uri){p[o.MCP_RESOURCE_URI_ATTRIBUTE]=String(n.uri);const s=(0,t.parseStringToURLObject)(String(n.uri));s&&!(0,t.isURLObjectRelative)(s)&&(p["mcp.resource.protocol"]=s.protocol.replace(":",""))}break;case"notifications/initialized":p["mcp.lifecycle.phase"]="initialization_complete",p["mcp.protocol.ready"]=1}var u;return p}function c(t,c,p,u){if("request"===t){const t=c,n=(0,s.extractTargetInfo)(t.method,p||{});return{...void 0!==t.id&&{[o.MCP_REQUEST_ID_ATTRIBUTE]:String(t.id)},...n.attributes,...u?(0,s.getRequestArguments)(t.method,p||{}):{}}}return n(c.method,p||{},u)}},2664,[2569,2657,2665]);
1140__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractTargetInfo",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getRequestArguments",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const u={"tools/call":{targetField:"name",targetAttribute:t.MCP_TOOL_NAME_ATTRIBUTE,captureArguments:!0,argumentsField:"arguments"},"resources/read":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE,captureUri:!0},"resources/subscribe":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE},"resources/unsubscribe":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE},"prompts/get":{targetField:"name",targetAttribute:t.MCP_PROMPT_NAME_ATTRIBUTE,captureName:!0,captureArguments:!0,argumentsField:"arguments"}};function n(t,n){const s=u[t];if(!s)return{attributes:{}};const c=s.targetField&&"string"==typeof n?.[s.targetField]?n[s.targetField]:void 0;return{target:c,attributes:c&&s.targetAttribute?{[s.targetAttribute]:c}:{}}}function s(n,s){const c={},o=u[n];if(!o)return c;if(o.captureArguments&&o.argumentsField&&s?.[o.argumentsField]){const u=s[o.argumentsField];if("object"==typeof u&&null!==u)for(const[n,s]of Object.entries(u))c[`${t.MCP_REQUEST_ARGUMENT}.${n.toLowerCase()}`]=JSON.stringify(s)}return o.captureUri&&s?.uri&&(c[`${t.MCP_REQUEST_ARGUMENT}.uri`]=JSON.stringify(s.uri)),o.captureName&&s?.name&&(c[`${t.MCP_REQUEST_ARGUMENT}.name`]=JSON.stringify(s.name)),c}},2665,[2657]);
1141__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterMcpPiiFromSpanData",{enumerable:!0,get:function(){return T}});var t=r(d[0]);const n=new Set([t.CLIENT_ADDRESS_ATTRIBUTE,t.CLIENT_PORT_ATTRIBUTE,t.MCP_RESOURCE_URI_ATTRIBUTE]);function u(t){return n.has(t)}function T(t,n){return n?t:Object.entries(t).reduce((t,[n,T])=>(u(n)||(t[n]=T),t),{})}},2666,[2657]);
1142__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filenameIsInApp",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"node",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"nodeStackLineParser",{enumerable:!0,get:function(){return c}});var n=r(d[0]);function t(n,t=!1){return!(t||n&&!n.startsWith("/")&&!n.match(/^[A-Z]:/)&&!n.startsWith(".")&&!n.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==n&&!n.includes("node_modules/")}function o(o){const c=/^\s*[-]{4,}$/,f=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/,l=/at (?:async )?(.+?) \(data:(.*?),/;return v=>{const h=v.match(l);
1142if(h)return{filename:`<data:${h[2]}>`,function:h[1]};const p=v.match(f);if(p){let c,f,l,v,h;if(p[1]){l=p[1];let n=l.lastIndexOf(".");if("."===l[n-1]&&n--,n>0){c=l.slice(0,n),f=l.slice(n+1);const t=c.indexOf(".Module");t>0&&(l=l.slice(t+1),c=c.slice(0,t))}v=void 0}f&&(v=c,h=f),"<anonymous>"===f&&(h=void 0,l=void 0),void 0===l&&(h=h||n.UNKNOWN_FUNCTION,l=v?`${v}.${h}`:h);let y=(0,n.normalizeStackTracePath)(p[2]);const O="native"===p[5];y||!p[5]||O||(y=p[5]);const b=y?s(y):void 0;return{filename:b??y,module:b&&o?.(b),function:l,lineno:u(p[3]),colno:u(p[4]),in_app:t(y||"",O)}}return v.match(c)?{filename:v}:void 0}}function c(n){return[90,o(n)]}function u(n){return parseInt(n||"",10)||void 0}function s(n){try{return decodeURI(n)}catch{return}}},2667,[2477]);
1143__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"vercelWaitUntil",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){if("string"!=typeof EdgeRuntime)return;const o=t.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],u=o?.get?.();u?.waitUntil&&u.waitUntil(n)}},2668,[2472]);
1144__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"flushIfServerless",{enumerable:!0,get:function(){return u}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]);async function l(n){try{t.debug.log("Flushing events..."),await(0,e.flush)(n),t.debug.log("Done flushing events")}catch(e){t.debug.log("Error while flushing events:\n",e)}}async function u(e={}){const{timeout:t=2e3}=e;if("cloudflareWaitUntil"in e&&"function"==typeof e?.cloudflareWaitUntil)return void e.cloudflareWaitUntil(l(t));if("cloudflareCtx"in e&&"function"==typeof e.cloudflareCtx?.waitUntil)return void e.cloudflareCtx.waitUntil(l(t));if(o.GLOBAL_OBJ[Symbol.for("@vercel/request-context")])return void(0,n.vercelWaitUntil)(l(t));if("undefined"==typeof process)return;!!(process.env.FUNCTIONS_WORKER_RUNTIME||process.env.LAMBDA_TASK_ROOT||process.env.K_SERVICE||process.env.CF_PAGES||process.env.VERCEL||process.env.NETLIFY)&&await l(t)}},2669,[2527,2474,2668,2472]);
1145__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"callFrameToStackFrame",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"watchdogTimer",{enumerable:!0,get:function(){return t}});var n=r(d[0]),o=r(d[1]);function t(n,o,t,l){const c=n();let u=!1,f=!0;return setInterval(()=>{const n=c.getTimeMs();!1===u&&n>o+t&&(u=!0,f&&l()),n<o+t&&(u=!1)},20),{poll:()=>{c.reset()},enabled:n=>{f=n}}}function l(t,l,c){const u=l?l.replace(/^file:\/\//,""):void 0,f=t.location.columnNumber?t.location.columnNumber+1:void 0,b=t.location.lineNumber?t.location.lineNumber+1:void 0;return{filename:u,module:c(u),function:t.functionName||o.UNKNOWN_FUNCTION,colno:f,lineno:b,in_app:u?(0,n.filenameIsInApp)(u):void 0}}},2670,[2667,2477]);
1146__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"expressErrorHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"patchExpressModule",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"setupExpressErrorHandler",{enumerable:!0,get:function(){return y}});var e=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),n=r(d[4]),u=r(d[5]),p=r(d[6]),c=r(d[7]);let h=!1;function l(t,p){let l,f;if(!p&&t.express){const{express:s,...n}=t;f=s,l=()=>n,h||(h=!0,o.DEBUG_BUILD&&e.debug.warn("[Express] `patchExpressModule(options)` is deprecated. Use `patchExpressModule(moduleExports, getOptions)` instead."))}else{if("function"!=typeof p)throw new TypeError("`patchExpressModule(moduleExports, getOptions)` requires a `getOptions` callback");l=p,f=t}const y=(0,c.getDefaultExport)(f),E=(0,s.isExpressWithRouterPrototype)(y)?y.Router.prototype:(0,s.isExpressWithoutRouterPrototype)(y)?y.Router:void 0;if(!E)throw new TypeError("no valid Express route function to instrument");const x=E.route;try{(0,n.wrapMethod)(E,"route",function(...e){const t=x.apply(this,e),o=this.stack[this.stack.length-1];return(0,u.patchLayer)(l,o,(0,s.getLayerPath)(e)),t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express route method:",t)}const b=E.use;try{(0,n.wrapMethod)(E,"use",function(...e){const t=b.apply(this,e),o=this.stack[this.stack.length-1];return o?((0,u.patchLayer)(l,o,(0,s.getLayerPath)(e)),t):t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express use method:",t)}const{application:P}=y,D=P.use;try{(0,n.wrapMethod)(P,"use",function(...e){const t=D.apply(this,e),o=(0,s.isExpressWithRouterPrototype)(y)?this.router:this._router;if(o){const t=o.stack[o.stack.length-1];t&&(0,u.patchLayer)(l,t,(0,s.getLayerPath)(e))}return t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express application.use method:",t)}return y}function f(e){return function(o,n,u,c){(0,p.setSDKProcessingMetadata)(n);if((e?.shouldHandleError||s.defaultShouldHandleError)(o)){const e=(0,t.captureException)(o,{mechanism:{type:"auto.middleware.express",handled:!1}});u.sentry=e}c(o)}}function y(e,t){e.use(function(e,t,o){(0,p.setSDKProcessingMetadata)(e),o()}),e.use(f(t))}},2671,[2474,2527,2470,2672,2486,2675,2676,2677]);
1147__d(function(g,r,i,a,m,e,d){"use strict";
1147Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"asErrorAndMessage",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"defaultShouldHandleError",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getActualMatchedRoute",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getConstructedRoute",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getLayerMetadata",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getLayerPath",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getRouterPath",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isExpressWithRouterPrototype",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"isExpressWithoutRouterPrototype",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"isLayerIgnored",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isRoutePattern",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);const o=t=>t instanceof Error?[t,t.message]:[String(t),String(t)];function s(t){return t.includes(":")||t.includes("*")}const c=(t,u,o)=>{if("router"===u.name){const s=y("",u),c=s||(o||t||"/");return{attributes:{[n.ATTR_EXPRESS_NAME]:c,[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_ROUTER},name:`router - ${c}`}}return"bound dispatch"===u.name||"handle"===u.name?{attributes:{[n.ATTR_EXPRESS_NAME]:(t||o)??"request handler",[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_REQUEST_HANDLER},name:"request handler"+(u.path?` - ${t||o}`:"")}:{attributes:{[n.ATTR_EXPRESS_NAME]:u.name,[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_MIDDLEWARE},name:`middleware - ${u.name}`}},y=(t,n)=>{const u=Array.isArray(n.handle?.stack)?n.handle?.stack?.[0]:void 0;return u?.route?.path?`${t}${u.route.path}`:u&&Array.isArray(u?.handle?.stack)?y(t,u):t},f=(t,n,o)=>{if(Array.isArray(o?.ignoreLayersType)&&o?.ignoreLayersType?.includes(n))return!0;if(!Array.isArray(o?.ignoreLayers))return!1;try{return(0,u.stringMatchesSomePattern)(t,o.ignoreLayers,!0)}catch{}return!1};function l(n,u){const o=(0,t.getStoredLayers)(n);if(0===o.length)return;if(o.every(t=>"/"===t))return"/"===n.originalUrl?"/":void 0;if("*"===u)return u;if(u.includes("/")&&(u.includes(",")||u.includes("\\")||u.includes("*")||u.includes("[")))return u;const c=u.startsWith("/")?u:`/${u}`;return c.length>0&&(n.originalUrl===c||n.originalUrl.startsWith(c)||s(c))?c:void 0}function p(n){const u=(0,t.getStoredLayers)(n);let o="";for(const t of u)"/"!==t&&"/*"!==t&&(o+=!o||o.endsWith("/")?t:`/${t}`);return o.replace(/\/{2,}/g,"/")}const E=t=>{const n=t[0];return Array.isArray(n)?n.map(t=>b(t)||"").join(","):b(n)},b=t=>"string"==typeof t?t:t instanceof RegExp||"number"==typeof t?String(t):void 0,P=t=>R(t?.Router?.prototype),R=t=>("object"==typeof t||"function"==typeof t)&&!!t&&"route"in t&&"function"==typeof t.route,h=t=>R(t.Router)&&!P(t);function A(t){const n=t.status||t.statusCode||t.status_code||t.output?.statusCode;return n?parseInt(n,10):500}function T(t){return A(t)>=500}},2672,[2673,2674,2489]);
1148__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getStoredLayers",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"storeLayer",{enumerable:!0,get:function(){return n}});const t=new WeakMap,n=(n,u)=>{const o=t.get(n);o?o.push(u):t.set(n,[u])},u=n=>{let u=t.get(n);return u||(u=[],t.set(n,u)),u}},2673,[]);
1149__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ATTR_EXPRESS_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ATTR_EXPRESS_TYPE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"ATTR_HTTP_ROUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ExpressLayerType_MIDDLEWARE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"ExpressLayerType_REQUEST_HANDLER",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"ExpressLayerType_ROUTER",{enumerable:!0,get:function(){return o}});const t="express.name",n="http.route",u="express.type",o="router",p="middleware",c="request_handler"},2674,[]);
1150__d(function(g,r,_i,a,m,e,d){"use strict";
1150Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchLayer",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),i=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),l=r(d[8]),T=r(d[9]),f=r(d[10]),E=r(d[11]),R=r(d[12]);function S(S,_,h){if(!_?.handle)return;const A=_,y=A.handle;if(!(0,c.getOriginalFunction)(y)&&4!==y.length){for(const t in y)t in b||Object.defineProperty(b,t,{get:()=>y[t],set(n){y[t]=n}});(0,c.markFunctionWrapped)(b,y),Object.defineProperty(A,"handle",{enumerable:!0,configurable:!0,writable:!0,value:b})}function b(c,_,...b){const P=S();(0,R.setSDKProcessingMetadata)(c);const O=(0,o.getActiveSpan)();if(!O)return y.apply(this,[c,_,...b]);h&&(0,l.storeLayer)(c,h);const I=(0,l.getStoredLayers)(c),M=!!h,N=(0,f.getConstructedRoute)(c),U=(0,f.getActualMatchedRoute)(c,N);P.onRouteResolved?.(U);const L=(0,f.getLayerMetadata)(N,A,h),v=L.attributes[T.ATTR_EXPRESS_NAME],j=L.attributes[T.ATTR_EXPRESS_TYPE],w=Object.assign(L.attributes,{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.express",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${j}.express`});if(U&&(w[T.ATTR_HTTP_ROUTE]=U),(0,f.isLayerIgnored)(L.attributes[T.ATTR_EXPRESS_NAME],j,P))return M&&I.pop(),y.apply(this,[c,_,...b]);const B=(0,u.getIsolationScope)();if(B!==(0,E.getDefaultIsolationScope)()){if("request_handler"===j){const t=c.method?c.method.toUpperCase():"GET";B.setTransactionName(`${t} ${N}`)}}else t.DEBUG_BUILD&&s.debug.warn("Isolation scope is still default isolation scope - skipping setting transactionName");return(0,p.startSpanManual)({name:v,attributes:w},t=>{let n=!1;L.attributes[T.ATTR_EXPRESS_TYPE]===T.ExpressLayerType_ROUTER&&(t.end(),n=!0);const s=()=>{n||(n=!0,t.end())};for(let o=0;o<b.length;o++){const u=b[o];if("function"==typeof u){b[o]=function(...o){const l=o[0],T=!!l&&"route"!==l&&"router"!==l;if(!n&&T){const[n,s]=(0,f.asErrorAndMessage)(l);t.setStatus({code:i.SPAN_STATUS_ERROR,message:s})}return n||(n=!0,_.removeListener("finish",s),t.end()),c.route&&T||!M||I.pop(),(0,p.withActiveSpan)(O,()=>u.apply(this,o))};break}}try{return y.apply(this,[c,_,...b])}catch(n){const[s,o]=(0,f.asErrorAndMessage)(n);throw t.setStatus({code:i.SPAN_STATUS_ERROR,message:o}),n}finally{n||_.once("finish",s)}})}}},2675,[2470,2500,2474,2479,2501,2486,2499,2520,2673,2674,2672,2482,2676]);
1151__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setSDKProcessingMetadata",{enumerable:!0,get:function(){return s}});var t=r(d[0]),o=r(d[1]);function s(s){const n=(0,t.getIsolationScope)()?.getScopeData()?.sdkProcessingMetadata;if(!n?.normalizedRequest){const n=(0,o.httpRequestToRequestData)(s);(0,t.getIsolationScope)().setSDKProcessingMetadata({normalizedRequest:n})}}},2676,[2499,2578]);
1152__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return!!t&&"object"==typeof t&&"default"in t&&t.default||t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultExport",{enumerable:!0,get:function(){return t}})},2677,[]);
1153__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"_reconstructQuery",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"_sanitizeSqlQuery",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"instrumentPostgresJsSql",{enumerable:!0,get:function(){return f}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),i=r(d[5]);const c=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,u=Symbol("sentryPostgresConnectionContext"),p=Symbol.for("sentry.instrumented.postgresjs"),l=Symbol.for("sentry.query.from.instrumented.sql");function f(t,o){return t&&"function"==typeof t?b(t,{requireParentSpan:!0,...o}):(e.DEBUG_BUILD&&n.debug.warn("instrumentPostgresJsSql: provided value is not a valid postgres.js sql instance"),t)}function b(e,t,n){if(e[p])return e;const o=new Proxy(e,{apply(e,n,s){const i=Reflect.apply(e,n,s);return i&&"object"==typeof i&&"handle"in i&&R(i,o,t),i},get(e,n){const s=e[n];return"string"!=typeof n||"function"!=typeof s?s:"unsafe"===n||"file"===n?y(s,e,o,t):"begin"===n||"reserve"===n?E(s,e,o,t):s}});return n?o[u]=n:D(e,o),e[p]=!0,o[p]=!0,o}function y(e,t,n,o){return function(...s){const i=Reflect.apply(e,t,s);return i&&"object"==typeof i&&"handle"in i&&R(i,n,o),i}}function E(e,t,n,o){return function(...s){const i=n[u];if(!("function"==typeof s[s.length-1])){const n=Reflect.apply(e,t,s);return n&&"function"==typeof n.then?n.then(e=>b(e,o,i)):n}const c=1===s.length?s[0]:s[1],p=function(e){const t=b(e,o,i);return c(t)},l=1===s.length?[p]:[s[0],p];return Reflect.apply(e,t,l)}}function R(o,c,p){if(o.handle?.__sentryWrapped)return;o[l]=!0;const f=o.handle,b=async function(...l){if(this.executed||!_(p))return f.apply(this,l);const b=T(A(o.strings));return(0,i.startSpanManual)({name:b||"postgresjs.query",op:"db"},o=>{o.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.postgresjs"),o.setAttributes({"db.system.name":"postgres","db.query.text":b});const i=c?c[u]:void 0;
1153if(h(o,i),p.requestHook)try{p.requestHook(o,b,i)}catch(t){o.setAttribute("sentry.hook.error","requestHook failed"),e.DEBUG_BUILD&&n.debug.error("Error in requestHook for PostgresJs instrumentation:",t)}const y=this;y.resolve=new Proxy(y.resolve,{apply:(t,s,i)=>{try{P(o,b,i?.[0]?.command),o.end()}catch(t){e.DEBUG_BUILD&&n.debug.error("Error ending span in resolve callback:",t)}return Reflect.apply(t,s,i)}}),y.reject=new Proxy(y.reject,{apply:(t,i,c)=>{try{o.setStatus({code:s.SPAN_STATUS_ERROR,message:c?.[0]?.message||"unknown_error"}),o.setAttribute("db.response.status_code",c?.[0]?.code||"unknown"),o.setAttribute("error.type",c?.[0]?.name||"unknown"),P(o,b),o.end()}catch(t){e.DEBUG_BUILD&&n.debug.error("Error ending span in reject callback:",t)}return Reflect.apply(t,i,c)}});try{return f.apply(this,l)}catch(e){throw o.setStatus({code:s.SPAN_STATUS_ERROR,message:e instanceof Error?e.message:"unknown_error"}),o.end(),e}})};b.__sentryWrapped=!0,o.handle=b}function _(e){return void 0!==(0,o.getActiveSpan)()||!e.requireParentSpan}function A(e){if(e?.length)return 1===e.length?e[0]||void 0:e.reduce((e,t,n)=>0===n?t:`${e}$${n}${t}`,"")}let S;function T(e){return e?(S||(S=new RegExp("(?<!\\$)-?\\b\\d+\\b","g")),e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(S,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)")):"Unknown SQL Query"}function h(e,t){if(t&&(t.ATTR_DB_NAMESPACE&&e.setAttribute("db.namespace",t.ATTR_DB_NAMESPACE),t.ATTR_SERVER_ADDRESS&&e.setAttribute("server.address",t.ATTR_SERVER_ADDRESS),void 0!==t.ATTR_SERVER_PORT)){const n=parseInt(t.ATTR_SERVER_PORT,10);isNaN(n)||e.setAttribute("server.port",n)}}function P(e,t,n){if(n)return void e.setAttribute("db.operation.name",n);const o=t?.match(c);o?.[1]&&e.setAttribute("db.operation.name",o[1].toUpperCase())}function D(e,t){const n=e;if(!n.options||"object"!=typeof n.options)return;const o=n.options,s=o.host?.[0]||"localhost",i=o.port?.[0]||5432,c={ATTR_DB_NAMESPACE:"string"==typeof o.database&&""!==o.database?o.database:void 0,ATTR_SERVER_ADDRESS:s,ATTR_SERVER_PORT:String(i)};t[u]=c}},2678,[2470,2500,2474,2479,2501,2520]);
1154__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSqlQuerySummary",{enumerable:!0,get:function(){return T}});const n=255,o=/[^\s(,;)]+/.source,s=new RegExp(`^\\s*(?<operation>(?:CREATE|DROP)\\s+(?:TABLE|INDEX)|ALTER\\s+TABLE)(?:\\s+IF\\s+(?:NOT\\s+)?EXISTS)?\\s+(?<table>${o})`,"i"),t=new RegExp(`^\\s*(?<operation>INSERT)\\s+INTO\\s+(?<table>${o})`,"i"),u=new RegExp(`^\\s*(?<operation>UPDATE)\\s+(?<table>${o})`,"i"),p=new RegExp(`^\\s*(?<operation>DELETE)\\s+FROM\\s+(?<table>${o})`,"i"),c=/^\s*\(?\s*(?<operation>SELECT)\b/i,l=/^\s*(?<operation>PRAGMA)\s+(?<command>\S+)/i,E=/\b(?:FROM|JOIN)\s+|\(\s*(SELECT)\b|\b(?:UNION|INTERSECT|EXCEPT|MINUS)\s+(?:ALL\s+)?(SELECT)\b/gi,b=/^(?:"[^"]*"|'[^']*'|[^\s(,;)]+)/,f=/^\s*,\s*((?:"[^"]*"|'[^']*'|[^\s(,;)]+))/,x=/^\(\s*(SELECT)\b/i;function T(n){if(!n)return;const o=l.exec(n);if(o?.groups?.operation&&o.groups.command){const n=o.groups.operation,s=o.groups.command,t=s.indexOf("(");return $(`${n} ${t>=0?s.substring(0,t):s}`)}const E=s.exec(n);if(E?.groups?.operation&&E.groups.table)return $(`${E.groups.operation} ${E.groups.table}`);const b=t.exec(n);if(b?.groups?.operation&&b.groups.table){const o=[b.groups.operation,b.groups.table],s=n.slice(b[0].length),t=/\b(SELECT)\b/i.exec(s);if(t?.[1]){o.push(t[1]);const n=h(s.slice(t.index));o.push(...n)}return $(o.join(" "))}const f=u.exec(n);if(f?.groups?.operation&&f.groups.table)return $(`${f.groups.operation} ${f.groups.table}`);const x=p.exec(n);if(x?.groups?.operation&&x.groups.table)return $(`${x.groups.operation} ${x.groups.table}`);const T=c.exec(n);if(T?.groups?.operation){const o=h(n.slice(T[0].length));return o.length>0?$(`${T.groups.operation} ${o.join(" ")}`):T.groups.operation}return $(n.trim().split(/\s+/)[0]??n)}function h(n){const o=[];let s;for(E.lastIndex=0;null!==(s=E.exec(n));){if(s[1]||s[2]){o.push(s[1]||s[2]);continue}const t=n.slice(s.index+s[0].length),u=x.exec(t);if(u?.[1]){o.push(u[1]),E.lastIndex=s.index+s[0].length+u[0].length;continue}const p=b.exec(t);if(!p)continue;o.push(p[0]);let c,l=t.slice(p[0].length);for(;null!==(c=f.exec(l))&&c[1];)o.push(c[1]),l=l.slice(c[0].length)}return o}function $(o){if(o.length<=n)return o;const s=o.substring(0,n),t=s.lastIndexOf(" ");return t>0?s.substring(0,t):s}},2679,[]);
1155__d(function(g,r,i,a,m,e,d){"use strict";
1155Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchHttpModuleClient",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);function c(t,c){if(!(0,o.getOriginalFunction)(t.request)){const{[n.HTTP_ON_CLIENT_REQUEST]:s}=(0,u.getHttpClientSubscriptions)({...c,http:t}),f=t.request;(0,o.wrapMethod)(t,"request",function(...t){const o=f.apply(this,t);return s({request:o},n.HTTP_ON_CLIENT_REQUEST),o})}}function s(t){(0,o.getOriginalFunction)(t.get)||(0,o.wrapMethod)(t,"get",function(n,o,u){const c=t.request.call(this,n,o,u);return c.end(),c})}function f(n,o={}){const u=(0,t.getDefaultExport)(n),p=n;if(u!==n){f(u,o);for(const t of["get","request"]){const n=Object.getOwnPropertyDescriptor(u,t);n&&Object.defineProperty(p,t,n)}return p}return c(p,o),s(p),n}const p=(t,n={})=>f(t,n)},2680,[2677,2681,2486,2682]);
1156__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HTTP_ON_CLIENT_REQUEST",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"HTTP_ON_SERVER_REQUEST",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"LOG_PREFIX",{enumerable:!0,get:function(){return t}});const t="@sentry/instrumentation-http",n="http.client.request.created",u="http.server.request.start"},2681,[]);
1157__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getHttpClientSubscriptions",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),p=r(d[5]),c=r(d[6]),S=r(d[7]),R=r(d[8]),l=r(d[9]),_=r(d[10]),T=r(d[11]),b=r(d[12]);function P(P){const f=new S.LRUMap(100);return{[T.HTTP_ON_CLIENT_REQUEST]:S=>{if(!0===(0,s.getCurrentScope)().getScopeData().sdkProcessingMetadata[c.SUPPRESS_TRACING_KEY])return;const E=(0,s.getClient)()?.getOptions(),{errorMonitor:O="error",spans:C=!E||(0,p.hasSpansEnabled)(E),propagateTrace:U=!1,breadcrumbs:q=!0,http:v,https:A,suppressOtelWarning:L=!1}=P,{request:H}=S;if(P.ignoreOutgoingRequests?.((0,l.getRequestUrlFromClientRequest)(H),H))return;let I=!1;function D(n,o){I||(I=!0,(0,t.addOutgoingRequestBreadcrumb)(n,o))}if(!C)return q&&((N=H).on(O,()=>D(N,void 0)),N.prependListener("response",t=>{N.listenerCount("response")<=1&&t.resume(),t.on("end",()=>D(N,t)),t.on(O,()=>D(N,t))})),void(U&&(0,_.injectTracePropagationHeaders)(H,f));var N;L||(v&&(0,b.doubleWrapWarning)(v),A&&(0,b.doubleWrapWarning)(A));const j=(0,c.startInactiveSpan)((0,R.getOutgoingRequestSpanData)(H));P.outgoingRequestHook?.(j,H),U&&(j.isRecording()?(0,c.withActiveSpan)(j,()=>{(0,_.injectTracePropagationHeaders)(H,f)}):(0,_.injectTracePropagationHeaders)(H,f));let B=!1;function G(t){B||(B=!0,j.setStatus(t),j.end())}const W=()=>G({code:u.SPAN_STATUS_UNSET});H.on("close",W),H.on(O,t=>{n.DEBUG_BUILD&&o.debug.log(T.LOG_PREFIX,"outgoingRequest on request error()",t),q&&D(H,void 0),G({code:u.SPAN_STATUS_ERROR})}),H.prependListener("response",t=>{H.removeListener("close",W),H.listenerCount("response")<=1&&t.resume(),(0,R.setIncomingResponseSpanData)(t,j),P.outgoingResponseHook?.(j,t);let s=!1;function p(p){if(!s){s=!0,p&&n.DEBUG_BUILD&&o.debug.log(T.LOG_PREFIX,"outgoingRequest on response error()",p),q&&D(H,t);const c=t.aborted&&!t.complete,S=p||"number"!=typeof t.statusCode||c?{code:u.SPAN_STATUS_ERROR}:(0,u.getSpanStatusFromHttpCode)(t.statusCode);P.applyCustomAttributesOnSpan?.(j,H,t),G(S)}}t.on("end",()=>p()),t.on(O,p)})}}}},2682,[2683,2470,2474,2499,2501,2508,2520,2648,2685,2684,2686,2681,2687]);
1158__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addOutgoingRequestBreadcrumb",{enumerable:!0,get:function(){return o}});
1158var t=r(d[0]),s=r(d[1]),u=r(d[2]),n=r(d[3]);function o(o,c){const h=(0,n.getRequestUrlFromClientRequest)(o),p=(0,u.parseUrl)(h),l=c?.statusCode,b=(0,s.getBreadcrumbLogLevelFromHttpStatusCode)(l);(0,t.addBreadcrumb)({category:"http",data:{status_code:l,url:(0,u.getSanitizedUrlString)(p),"http.method":o.method||"GET",...p.search?{"http.query":p.search}:{},...p.hash?{"http.fragment":p.hash}:{}},type:"http",level:b},{event:"response",request:o,response:c})}},2683,[2580,2643,2569,2684]);
1159__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t.host||"",o=/^(.*):(\d+)$/.exec(n),u=o?o[1]:n,s=t.port??(o?Number(o[2]):void 0);return{method:t.method,port:s,protocol:t.protocol,host:t.host,hostname:u,path:t.path,headers:t.getHeaders()}}function n(t){try{return String(o(t))}catch{return""}}function o(t){const n=t.protocol||"http:",o=t.headers?.host&&String(t.headers?.host)||t.hostname||t.host||"",u=!t.port||80===t.port||443===t.port||/^(.*):(\d+)$/.test(o)?"":`:${t.port}`,s=t.path?t.path:"/",c=`${n}//${o}${u}`;return new URL(s.startsWith("//")?`${c}${s}`:s,c)}function u(o){return String(n(t(o)))}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getRequestOptions",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getRequestUrl",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getRequestUrlFromClientRequest",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getRequestUrlObject",{enumerable:!0,get:function(){return o}})},2684,[]);
1160__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getOutgoingRequestSpanData",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"setIncomingResponseSpanData",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(s){const p=(0,o.getRequestUrlFromClientRequest)(s),[u,c]=(0,n.getHttpSpanDetail
1160sFromUrlObject)((0,n.parseStringToURLObject)(p),"client","auto.http.client",s),h=s.getHeader("user-agent");return{name:u,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client","otel.kind":"CLIENT","http.url":p,"http.method":s.method,"http.target":s.path||"/","net.peer.name":s.host,"http.host":s.getHeader("host"),...h?{"user_agent.original":h}:{},...c},onlyIfParent:!0}}function p(t,n){const{statusCode:o,statusMessage:s,httpVersion:p,socket:h}=t,l="QUIC"!==p?.toUpperCase()?"ip_tcp":"ip_udp";n.setAttributes({"http.response.status_code":o,"network.protocol.version":p,"http.flavor":p,"network.transport":l,"net.transport":l,"http.status_text":s?.toUpperCase(),"http.status_code":o,...c(t),...u(h)})}function u(t){if(!t)return{};const{remoteAddress:n,remotePort:o}=t;return{"network.peer.address":n,"network.peer.port":o,"net.peer.ip":n,"net.peer.port":o}}function c(t){const{headers:n}=t,o=n["content-length"],s=o?parseInt(String(o),10):-1,p=n["content-encoding"];return s>=0?p&&"identity"!==p?{"http.response_content_length":s}:{"http.response_content_length_uncompressed":s}:{}}},2685,[2500,2569,2684]);
1161__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"injectTracePropagationHeaders",{enumerable:!0,get:function(){return _}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),U=r(d[8]);function _(_,E){const b=(0,p.getRequestUrlFromClientRequest)(_),l=(0,e.getClient)()?.getOptions(),{tracePropagationTargets:B,propagateTraceparent:D}=l??{};if(!(0,c.shouldPropagateTraceForUrl)(b,B,E))return;if(!!_.getHeader("sentry-trace"))return;const f=(0,s.getTraceData)({propagateTraceparent:D});if(!f)return;const{"sentry-trace":G,baggage:I,traceparent:L}=f;if(G)try{_.setHeader("sentry-trace",G),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added sentry-trace header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set sentry-trace header:",(0,o.isError)(e)?e.message:"Unknown error")}if(L&&!_.getHeader("traceparent"))try{_.setHeader("traceparent",L),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added traceparent header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set traceparent header:",(0,o.isError)(e)?e.message:"Unknown error")}if(I){const e=(0,U.mergeBaggageHeaders)(_.getHeader("baggage"),I);if(e)try{_.setHeader("baggage",e),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added baggage header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set baggage header:",(0,o.isError)(e)?e.message:"Unknown error")}}}},2686,[2499,2470,2474,2487,2574,2575,2681,2684,2504]);
1162__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"doubleWrapWarning",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"warning",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);const o=t=>"function"==typeof t.__unwrap,s="Double-wrapped http.client detected. Either disable spans in Sentry.httpIntegration, or disable the OpenTelemetry HTTP instrumentation. See: https://docs.sentry.io/platforms/javascript/guides/express/opentelemetry/custom-setup/#custom-http-instrumentation";let u=!1;const p=t.DEBUG_BUILD?t=>{u||(o(t.request)||o(t.get))&&(u=!0,n.debug.warn(s))}:()=>{}},2687,[2470,2474]);
1163__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getHttpServerSubscriptions",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"instrumentServer",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"isStaticAssetRequest",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]),u=r(d[5]),c=r(d[6]),l=r(d[7]),S=r(d[8]),h=r(d[9]),_=r(d[10]),R=r(d[11]),f=r(d[12]),T=r(d[13]),E=r(d[14]);const A="Http.Server",y="Http.SentryServerSpans",C=new WeakMap,I=Symbol.for("sentry_http_server_instrumented");function b(t){return!t[I]&&(t[I]=!0)}function q(t,p){const f=p.emit;if(f===C.get(p))return;const T=new Proxy(f,{apply(p,f,T){const[E,...y]=T;if("request"!==E)return p.apply(f,T);const C=(0,o.getClient)(),[I,q]=y;if(!C||!b(I))return p.apply(f,T);n.DEBUG_BUILD&&s.debug.log(A,"Handling incoming request");const U=(0,o.getIsolationScope)().clone();U.setClient(C);const v=I.socket?.remoteAddress,N=I.url||"/",O=(0,u.httpRequestToRequestData)(I),{maxRequestBodySize:P="medium",ignoreRequestBody:D,sessions:w=!0,sessionFlushingDelayMS:M=6e4}=t;"none"===P||D?.(N,I)||(0,c.patchRequestToCaptureBody)(I,U,P,A),U.setSDKProcessingMetadata({normalizedRequest:O,ipAddress:v});const x=`${(I.method||"GET").toUpperCase()} ${(0,l.stripUrlQueryAndFragment)(N)}`;return U.setTransactionName(x),w&&(0,S.recordRequestSession)(C,{requestIsolationScope:U,response:q,sessionFlushingDelayMS:M??6e4}),(0,o.withIsolationScope)(U,()=>{const n=O.headers?.["sentry-trace"],s=O.headers?.baggage,u=Array.isArray(n)?n[0]:n;return(0,_.continueTrace)({sentryTrace:u,baggage:Array.isArray(s)?s[0]:s},()=>{const n=(0,o.getCurrentScope)().getPropagationContext();n.propagationSpanId=(0,h.generateSpanId)(),u||(n.traceId=(0,h.generateTraceId)(),n.sampleRand=(0,R.safeMathRandom)()),q.once("close",()=>{U.setContext("response",{status_code:q.statusCode})});const s=t.wrapServerEmitRequest;let c=!1;return s?s(I,q,O,()=>{c=p.apply(f,T)}):c=p.apply(f,T),c})})}});C.set(p,T),p.emit=T}function U(n){const s=n.wrapServerEmitRequest,u=v(n),c={...n,wrapServerEmitRequest(t,c,l,S){const h=(0,o.getClient)()?.getOptions();n.spans??(!!h&&(0,p.hasSpansEnabled)(h))?u(t,c,l,S):s?s(t,c,l,S):S()}};return{[t.HTTP_ON_SERVER_REQUEST]:t=>{const{server:n}=t;q(c,n)}}}function v(t){const{wrapServerEmitRequest:p,ignoreIncomingRequests:c,ignoreStaticAssets:S=!0,onSpanCreated:h,errorMonitor:R="error",onSpanEnd:A}=t;return(t,C,I,b)=>{return"undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__?p?p(t,C,I,q):q():b();function q(){const p=(0,o.getIsolationScope)().getClient();if(!p)return b();if(N(t,{ignoreStaticAssets:S,ignoreIncomingRequests:c}))return n.DEBUG_BUILD&&s.debug.log(y,"Skipping span creation for incoming request",t.url),b();const q=I.url||t.url||"/",U=(0,l.parseStringToURLObject)(q),v=U?U.pathname:(0,l.stripUrlQueryAndFragment)(q),O=(t.method||"GET").toUpperCase(),D=`${O} ${v}`,w=t.headers,M=w["user-agent"],x=w["x-forwarded-for"],B=t.httpVersion,H=w.host,j=H?.replace(/^(.*)(:[0-9]{1,5}
1163)/,"$1")||"localhost",$=q.startsWith("https")?"https":"http",{socket:G}=t,{localAddress:F,localPort:k,remoteAddress:Q,remotePort:Y}=G??{};return(0,_.startSpanManual)({name:D,kind:E.SPAN_KIND.SERVER,attributes:{[f.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.server",[f.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.server",[f.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url","http.route":v,"otel.kind":"SERVER","net.host.ip":F,"net.host.port":k,"net.peer.ip":Q,"net.peer.port":Y,"sentry.http.prefetch":(V=t,"1"===V.headers["next-router-prefetch"]||void 0),"http.url":q,"http.method":O,"http.target":U?`${U.pathname}${U.search}`:v,"http.host":H,"net.host.name":j,"http.client_ip":"string"==typeof x?x.split(",")[0]:void 0,"http.user_agent":M,"http.scheme":$,"http.flavor":B,"net.transport":"QUIC"===B?.toUpperCase()?"ip_udp":"ip_tcp",...P(t),...(0,u.httpHeadersToSpanAttributes)(I.headers||{},p.getDataCollectionOptions())}},n=>{h?.(n,t,C);let s=!1;function o(o){s||(s=!0,n.setAttributes({"http.status_text":C.statusMessage?.toUpperCase(),"http.response.status_code":C.statusCode,"http.status_code":C.statusCode,...(0,u.httpHeadersToSpanAttributes)((0,u.headersToDict)(C.headers),p?.getDataCollectionOptions()??!1,"response")}),n.setStatus(o),A?.(n,t,C),n.end())}C.once("close",()=>{o((0,T.getSpanStatusFromHttpCode)(C.statusCode))}),C.once(R,()=>{const t=(0,T.getSpanStatusFromHttpCode)(C.statusCode);o(t.code===T.SPAN_STATUS_ERROR?t:{code:T.SPAN_STATUS_ERROR})}),b()});var V}}}function N(t,{ignoreStaticAssets:n,ignoreIncomingRequests:s}){const o=t.url,p=t.method?.toUpperCase();return"OPTIONS"===p||"HEAD"===p||!o||(!(!n||"GET"!==p||!O(o))||!!s?.(o,t))}function O(t){const n=(0,l.stripUrlQueryAndFragment)(t);return!!n.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)||!!n.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)}function P(t){const{headers:n}=t,s=n["content-length"],o=s?parseInt(String(s),10):-1,p=n["content-encoding"];return o>=0?p&&"identity"!==p?{"http.request_content_length":o}:{"http.request_content_length_uncompressed":o}:{}}},2688,[2681,2470,2474,2499,2508,2578,2689,2569,2690,2494,2520,2488,2500,2501,2579]);
1164__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchRequestToCaptureBody",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);function u(u,c,f,s){let y=0;const l=[];o.DEBUG_BUILD&&t.debug.log(s,"Patching request.on");const p=new WeakMap,b=(0,n.getMaxBodyByteLength)(f);try{u.on=u.addListener=new Proxy(u.on,{apply:(n,u,c)=>{const[f,B,...h]=c;if("data"===f){o.DEBUG_BUILD&&t.debug.log(s,`Handling request.on("data") with maximum body size of ${b}b`);const c=new Proxy(B,{apply:(n,u,c)=>{try{const n=c[0],u=Buffer.from(n);y<b?(l.push(u),y+=u.byteLength):o.DEBUG_BUILD&&t.debug.log(s,`Dropping request body chunk because maximum body length of ${b}b is exceeded.`)}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Encountered error while storing body chunk.")}return Reflect.apply(n,u,c)}});return p.set(B,c),Reflect.apply(n,u,[f,c,...h])}return Reflect.apply(n,u,c)}}),u.off=u.removeListener=new Proxy(u.off,{apply:(t,o,n)=>{const[,u]=n,c=p.get(u);if(c){p.delete(u);const f=n.slice();return f[1]=c,Reflect.apply(t,o,f)}return Reflect.apply(t,o,n)}}),u.on("end",()=>{try{const t=Buffer.concat(l).toString("utf-8");if(t){const o=Buffer.byteLength(t,"utf-8")>b?`${Buffer.from(t).subarray(0,b-3).toString("utf-8")}...`:t;c.setSDKProcessingMetadata({normalizedRequest:{data:o}})}}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Error building captured request body",n)}})}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Error patching request to capture body",n)}}},2689,[2474,2470,2578]);
1165__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"recordRequestSession",{enumerable:!0,get:function(){return c}});
1165var s=r(d[0]),t=r(d[1]),o=r(d[2]),n=r(d[3]);const u=new WeakMap;function c(c,{requestIsolationScope:l,response:f,sessionFlushingDelayMS:D}){l.setSDKProcessingMetadata({requestSession:{status:"ok"}}),f.once("close",()=>{const f=l.getScopeData().sdkProcessingMetadata.requestSession;if(c&&f){t.DEBUG_BUILD&&s.debug.log(`Recorded request session with status: ${f.status}`);const l=new Date((0,o.safeDateNow)());l.setSeconds(0,0);const S=l.toISOString(),h=u.get(c),U=h?.[S]||{exited:0,crashed:0,errored:0};if(U[{ok:"exited",crashed:"crashed",errored:"errored"}[f.status]]++,h)h[S]=U;else{t.DEBUG_BUILD&&s.debug.log("Opened new request session aggregate.");const o={[S]:U};u.set(c,o);const l=()=>{clearTimeout(h),f(),u.delete(c);const s=Object.entries(o).map(([s,t])=>({started:s,exited:t.exited,errored:t.errored,crashed:t.crashed}));c.sendSession({aggregates:s})},f=c.on("flush",()=>{t.DEBUG_BUILD&&s.debug.log("Sending request session aggregate due to client flush"),l()}),h=setTimeout(()=>{t.DEBUG_BUILD&&s.debug.log("Sending request session aggregate due to flushing schedule"),l()},D);(0,n.safeUnref)(h)}}})}},2690,[2474,2470,2488,2533]);
1166__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getComponentName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getLocationHref",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"htmlTreeAsString",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=r(d[1]).GLOBAL_OBJ,o=80;function s(t,n={}){if(!t)return"<unknown>";try{let s=t;const i=5,l=[];let f=0,c=0;const p=" > ",y=p.length;let h;const b=Array.isArray(n)?n:n.keyAttrs,A=!Array.isArray(n)&&n.maxStringLength||o;for(;s&&f++<i&&(h=u(s,b),!("html"===h||f>1&&c+l.length*y+h.length>=A));)l.push(h),c+=h.length,s=s.parentNode;return l.reverse().join(p)}catch{return"<unknown>"}}function u(o,s){const u=o,i=[];if(!u?.tagName)return"";if(n.HTMLElement&&u instanceof HTMLElement&&u.dataset){if(u.dataset.sentryComponent)return u.dataset.sentryComponent;if(u.dataset.sentryElement)return u.dataset.sentryElement}i.push(u.tagName.toLowerCase());const l=s?.length?s.filter(t=>u.getAttribute(t)).map(t=>[t,u.getAttribute(t)]):null;if(l?.length)l.forEach(t=>{i.push(`[${t[0]}="${t[1]}"]`)});else{u.id&&i.push(`#${u.id}`);const n=u.className;if(n&&(0,t.isString)(n)){const t=n.split(/\s+/);for(const n of t)i.push(`.${n}`)}}for(const t of["aria-label","type","name","title","alt"]){const n=u.getAttribute(t);n&&i.push(`[${t}="${n}"]`)}return i.join("")}function i(){try{return n.document.location.href}catch{return""}}function l(t,o=5){if(!n.HTMLElement)return null;let s=t;for(let t=0;t<o;t++){if(!s)return null;if(s instanceof HTMLElement){if(s.dataset.sentryComponent)return s.dataset.sentryComponent;if(s.dataset.sentryElement)return s.dataset.sentryElement}s=s.parentNode}return null}},2691,[2487,2472]);
1167__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"instrumentEmbeddingMethod",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return I}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),E=r(d[3]),_=r(d[4]),u=r(d[5]);function T(n){const t=n.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}function c(n){const o=n??{},_={[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:u.LANGCHAIN_ORIGIN,[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:E.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,[E.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"embeddings",[E.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:o.model??"unknown"};return _[E.GEN_AI_SYSTEM_ATTRIBUTE]=T(o),"dimensions"in o&&(_[E.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=o.dimensions),"encodingFormat"in o&&(_[E.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=o.encodingFormat),_}function s(t,u={}){const{recordInputs:T}=(0,_.resolveAIRecordingOptions)(u);return new Proxy(t,{apply(t,_,u){const s=c(_),I=s[E.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown";if(T){const n=u[0];null!=n&&(s[E.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]="string"==typeof n?n:JSON.stringify(n))}return(0,o.startSpan)({name:`embeddings ${I}`,op:E.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,attributes:s},()=>Reflect.apply(t,_,u).then(void 0,t=>{throw(0,n.captureException)(t,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),t}))}})}function I(n,t){const o=n;return"function"==typeof o.embedQuery&&(o.embedQuery=s(o.embedQuery,t)),"function"==typeof o.embedDocuments&&(o.embedDocuments=s(o.embedDocuments,t)),n}},2692,[2527,2500,2520,2615,2614,2634]);
1168__d(function(g,r,i,a,m,e,d){"use strict";
1168Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"defaultRequestInstrumentationOptions",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"instrumentOutgoingRequests",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"shouldAttachHeaders",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]);const o={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function c(c,u){const{traceFetch:l,traceXHR:f,shouldCreateSpanForRequest:S,enableHTTPTimings:T,tracePropagationTargets:R,onRequestSpanStart:b,onRequestSpanEnd:y}={...o,...u},H="function"==typeof S?S:t=>!0,q=t=>_(t,R),E={},v=c.getOptions().propagateTraceparent;l&&(0,t.addFetchInstrumentationHandler)(n=>{const o=(0,t.instrumentFetchRequest)(n,H,q,E,{propagateTraceparent:v,onRequestSpanEnd:y});if(o){const u=(0,s.getFullURL)(n.fetchData.url),_=u?(0,t.parseUrl)(u).host:void 0,h=u?(0,t.stripDataUrlContent)(u):void 0;o.setAttributes({"http.url":h,"url.full":h,"server.address":_}),T&&p(o,c),b?.(o,{headers:n.headers})}}),f&&(0,n.addXhrInstrumentationHandler)(t=>{const n=h(t,H,q,E,v,y);n&&(T&&p(n,c),b?.(n,{headers:(0,s.createHeadersSafely)(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}const u=300;function p(o,c){const{url:p}=(0,t.spanToJSON)(o).data;if(!p||"string"!=typeof p)return;let _=()=>{setTimeout(h)};if((0,t.hasSpanStreamingEnabled)(c)){const n=o.end.bind(o);o.end=s=>{const o=s??(0,t.timestampInSeconds)();let c=!1;const p=()=>{c||(c=!0,setTimeout(h),n(o),clearTimeout(l))};_=p;const l=setTimeout(p,u)}}const h=(0,n.addPerformanceInstrumentationHandler)("resource",({entries:t})=>{t.forEach(t=>{(0,s.isPerformanceResourceTiming)(t)&&t.name.endsWith(p)&&(o.setAttributes((0,n.resourceTimingToSpanAttributes)(t)),_())})})}function _(n,s){const o=(0,t.getLocationHref)();if(o){let c,u;try{c=new URL(n,o),u=new URL(o).origin}catch{return!1}const p=c.origin===u;return s?(0,t.stringMatchesSomePattern)(c.toString(),s)||p&&(0,t.stringMatchesSomePattern)(c.pathname,s):p}{const o=!!n.match(/^\/(?!\/)/);return s?(0,t.stringMatchesSomePattern)(n,s):o}}function h(o,c,u,p,_,h){const f=o.xhr,S=f?.[n.SENTRY_XHR_DATA_KEY];if(!f||f.__sentry_own_request__||!S)return;const{url:T,method:R}=S,b=(0,t.hasSpansEnabled)()&&c(T);if(o.endTimestamp){const c=f.__sentry_xhr_span_id__;if(!c)return;const u=p[c];return void(u&&(b&&void 0!==S.status_code&&((0,t.setHttpStatus)(u,S.status_code),u.end(),h?.(u,{headers:(0,s.createHeadersSafely)((0,n.parseXhrResponseHeaders)(f)),error:o.error})),delete p[c]))}const y=(0,s.getFullURL)(T),H=y?(0,t.parseUrl)(y):(0,t.parseUrl)(T),q=y?(0,t.stripDataUrlContent)(y):void 0,E=(0,t.stripDataUrlContent)((0,t.stripUrlQueryAndFragment)(T)),v=(0,t.getClient)(),P=!!(0,t.getActiveSpan)()||!!v&&(0,t.hasSpanStreamingEnabled)(v),U=b&&P?(0,t.startInactiveSpan)({name:`${R} ${E}`,attributes:{url:(0,t.stripDataUrlContent)(T),type:"xhr","http.method":R,"http.url":q,"url.full":q,"server.address":H?.host,[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...H?.search&&{"http.query":H?.search},...H?.hash&&{"http.fragment":H?.hash}}}):new t.SentryNonRecordingSpan;return b&&!P&&v?.recordDroppedEvent("no_parent_span","span"),f.__sentry_xhr_span_id__=U.spanContext().spanId,p[f.__sentry_xhr_span_id__]=U,u(T)&&l(f,(0,t.hasSpansEnabled)()&&P?U:void 0,_),v&&v.emit("beforeOutgoingRequestSpan",U,o),U}function l(n,s,o){const{"sentry-trace":c,baggage:u,traceparent:p}=(0,t.getTraceData)({span:s,propagateTraceparent:o});c&&f(n,c,u,p)}function f(t,n,o,c){const u=t.__sentry_xhr_v3__?.request_headers;if(!u?.["sentry-trace"]&&t.setRequestHeader)try{if(t.setRequestHeader("sentry-trace",n),c&&!u?.traceparent&&t.setRequestHeader("traceparent",c),o){const n=u?.baggage;n&&(0,s.baggageHeaderHasSentryValues)(n)||t.setRequestHeader("baggage",o)}}catch{}}},2693,[1766,1955,2694]);
1169__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"baggageHeaderHasSentryValues",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"createHeadersSafely",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getFullURL",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isPerformanceResourceTiming",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function n(t){return t.split(",").some(t=>t.trim().startsWith("sentry-"))}function u(n){try{return new URL(n,t.WINDOW.location.origin).href}catch{return}}function o(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}function c(t){try{return new Headers(t)}catch{return}}},2694,[1950]);
1170__d(function(g,r,i,a,m,e,d){"use strict";
1170Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BROWSER_TRACING_INTEGRATION_ID",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"browserTracingIntegration",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getMetaContent",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"getServerTiming",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"isBotUserAgent",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"startBrowserTracingNavigationSpan",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"startBrowserTracingPageLoadSpan",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),p=r(d[5]),u=r(d[6]),S=r(d[7]),l=r(d[8]);const T="BrowserTracing",I=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function b(){const t=s.WINDOW.navigator;return!!t?.userAgent&&I.test(t.userAgent)}const E={...t.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...l.defaultRequestInstrumentationOptions},f=(I={})=>{"enableElementTiming"in I&&(0,t.consoleSandbox)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const f={name:void 0,source:void 0},P=s.WINDOW.document,{enableInp:C,enableLongTask:D,enableLongAnimationFrame:h,_experiments:{enableInteractions:U,enableStandaloneClsSpans:y,enableStandaloneLcpSpans:k},beforeStartSpan:F,idleTimeout:M,finalTimeout:W,childSpanTimeout:w,markBackgroundSpan:x,traceFetch:G,traceXHR:q,trackFetchStreamPerformance:H,shouldCreateSpanForRequest:Y,enableHTTPTimings:j,ignoreResourceSpans:J,ignorePerformanceApiSpans:$,instrumentPageLoad:z,instrumentNavigation:K,detectRedirects:V,linkPreviousTrace:X,consistentTraceSampling:Q,enableReportPageLoaded:Z,onRequestSpanStart:ee,onRequestSpanEnd:te}={...E,...I},ne=b();let ae,re;function oe(o,s,c=!0){const p="pageload"===s.op,u=s.name,S=F?F(s):s,l=S.attributes||{};if(u!==S.name&&(l[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",S.attributes=l),!c){const n=(0,t.dateTimestampInSeconds)();return void(0,t.startInactiveSpan)({...S,startTime:n}).end(n)}f.name=S.name,f.source=l[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const T=(0,t.startIdleSpan)(S,{idleTimeout:M,finalTimeout:W,childSpanTimeout:w,disableAutoFinish:p,beforeSpanEnd:s=>{(0,n.addPerformanceEntries)(s,{ignoreResourceSpans:J,ignorePerformanceApiSpans:$,spanStreamingEnabled:(0,t.hasSpanStreamingEnabled)(o)}),B(o,void 0);const c=(0,t.getCurrentScope)(),u=c.getPropagationContext();c.setPropagationContext({...u,traceId:T.spanContext().traceId,sampled:(0,t.spanIsSampled)(T),dsc:(0,t.getDynamicSamplingContextFromSpan)(s)}),p&&(re=void 0)},trimIdleSpanEndTimestamp:!Z});function I(){P&&["interactive","complete"].includes(P.readyState)&&(o.emit("idleSpanEnableAutoFinish",T),P.removeEventListener("readystatechange",I))}p&&Z&&(re=T),B(o,T),p&&!Z&&P&&(P.addEventListener("readystatechange",I),I())}return{name:T,setup(c){if(ne)o.DEBUG_BUILD&&t.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");else{if((0,t.registerSpanErrorInstrumentation)(),h&&t.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?(0,n.startTrackingLongAnimationFrames)():D&&(0,n.startTrackingLongTasks)(),U&&(0,n.startTrackingInteractions)(),V&&P){const n=()=>{ae=(0,t.timestampInSeconds)()};addEventListener("click",n,{capture:!0}),addEventListener("keydown",n,{capture:!0,passive:!0})}c.on("startNavigationSpan",(n,s)=>{if((0,t.getClient)()!==c)return;if(s?.isRedirect)return o.DEBUG_BUILD&&t.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void oe(c,{op:"navigation.redirect",...n},!1);ae=void 0,p(),(0,t.getIsolationScope)().setPropagationContext({traceId:(0,t.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,t.hasSpansEnabled)()?void 0:(0,t.generateSpanId)()});const u=(0,t.getCurrentScope)();u.setPropagationContext({traceId:(0,t.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,t.hasSpansEnabled)()?void 0:(0,t.generateSpanId)()}),u.setSDKProcessingMetadata({normalizedRequest:void 0}),oe(c,{op:"navigation",...n,parentSpan:null,forceTransaction:!0})}),c.on("startPageLoadSpan",(n,o={})=>
1170{if((0,t.getClient)()!==c)return;p();const u=o.sentryTrace||N("sentry-trace")||v("sentry-trace"),S=o.baggage||N("baggage")||v("baggage"),l=(0,t.propagationContextFromHeaders)(u,S),T=(0,t.getCurrentScope)();T.setPropagationContext(l),(0,t.hasSpansEnabled)()||(T.getPropagationContext().propagationSpanId=(0,t.generateSpanId)()),T.setSDKProcessingMetadata({normalizedRequest:(0,s.getHttpRequestData)()}),oe(c,{op:"pageload",...n})}),c.on("endPageloadSpan",()=>{Z&&re&&(re.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),re.end())})}function p(){const n=O(c);n&&!(0,t.spanToJSON)(n).timestamp&&(o.DEBUG_BUILD&&t.debug.log(`[Tracing] Finishing current active span with op: ${(0,t.spanToJSON)(n).op}`),n.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),n.end())}},afterAllSetup(o){if(ne)return;o.addIntegration&&!o.getIntegrationByName?.(p.WEB_VITALS_INTEGRATION_NAME)&&o.addIntegration((0,p.webVitalsIntegration)({ignore:C?[]:["inp"],_experiments:{enableStandaloneClsSpans:y,enableStandaloneLcpSpans:k}}));let T=(0,t.getLocationHref)();if("off"!==X&&(0,S.linkTraces)(o,{linkPreviousTrace:X,consistentTraceSampling:Q}),s.WINDOW.location){if(z){const n=(0,t.browserPerformanceTimeOrigin)();R(o,{name:s.WINDOW.location.pathname,startTime:n?n/1e3:void 0,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}K&&(0,n.addHistoryInstrumentationHandler)(({to:n,from:c})=>{if(void 0===c&&-1!==T?.indexOf(n))return void(T=void 0);T=void 0;const p=(0,t.parseStringToURLObject)(n),u=O(o),S=u&&V&&L(u,ae);_(o,{name:p?.pathname||s.WINDOW.location.pathname,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:n,isRedirect:S})})}x&&(0,u.registerBackgroundTabDetection)(),U&&A(o,M,W,w,f),(0,l.instrumentOutgoingRequests)(o,{traceFetch:G,traceXHR:q,tracePropagationTargets:o.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:Y,enableHTTPTimings:j,onRequestSpanStart:ee,onRequestSpanEnd:te}),H&&o.addIntegration((0,c.fetchStreamPerformanceIntegration)())}}};function R(n,o,s){n.emit("startPageLoadSpan",o,s),(0,t.getCurrentScope)().setTransactionName(o.name);const c=O(n);return c&&n.emit("afterStartPageLoadSpan",c),c}function _(n,o,c){const{url:p,isRedirect:u}=c||{};n.emit("beforeStartNavigationSpan",o,{isRedirect:u}),n.emit("startNavigationSpan",o,{isRedirect:u});const S=(0,t.getCurrentScope)();return S.setTransactionName(o.name),p&&!u&&S.setSDKProcessingMetadata({normalizedRequest:{...(0,s.getHttpRequestData)(),url:p}}),O(n)}function N(t){const n=s.WINDOW.document,o=n?.querySelector(`meta[name=${t}]`);return o?.getAttribute("content")||void 0}function v(t){const n=s.WINDOW.performance?.getEntriesByType?.("navigation")[0],o=n?.serverTiming?.find(n=>n.name===t);return o?.description}function A(n,c,p,u,S){let l;s.WINDOW.document&&addEventListener("click",()=>{const s="ui.action.click",T=O(n);if(T){const n=(0,t.spanToJSON)(T).op;if(["navigation","pageload"].includes(n))return void(o.DEBUG_BUILD&&t.debug.warn(`[Tracing] Did not create ${s} span because a pageload or navigation span is in progress.`))}l&&(l.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),l.end(),l=void 0),S.name?l=(0,t.startIdleSpan)({name:S.name,op:s,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:S.source||"url"}},{idleTimeout:c,finalTimeout:p,childSpanTimeout:u}):o.DEBUG_BUILD&&t.debug.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`)},{capture:!0})}const P="_sentry_idleSpan";function O(t){return t[P]}function B(n,o){(0,t.addNonEnumerableProperty)(n,P,o)}const C=1.5;function L(n,o){const s=(0,t.spanToJSON)(n),c=(0,t.dateTimestampInSeconds)();return!(c-s.start_timestamp>C)&&!(o&&c-o<=C)}},2695,[1766,1955,2222,1950,2696,2739,2740,2741,2693]);
1171__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fetchStreamPerformanceIntegration",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const n=new WeakMap,s=new WeakMap,o=["text/event-stream","application/x-ndjson","application/stream+json"],c=(0,t.defineIntegration)(()=>({name:"FetchStreamPerformance",setup(){(0,t.addFetchEndInstrumentationHandler)(t=>{if(t.response){const o=n.get(t.response);if(o&&t.endTimestamp){o.end(t.endTimestamp);const n=s.get(t.response);n&&clearTimeout(n)}}}),(0,t.addFetchInstrumentationHandler)(c=>{if(c.endTimestamp&&c.response){const p=c.response.headers?.get("content-type")||"";if(c.response.headers?.get("content-length")||!o.some(t=>p.startsWith(t)))return;const T=c.fetchData?.url||"",h=c.fetchData?.method||"GET",u=(0,t.parseStringToURLObject)(T),l=T.startsWith("data:")?(0,t.stripDataUrlContent)(T):u?(0,t.getSanitizedUrlStringFromUrlObject)(u):T,f=(0,t.startInactiveSpan)({name:`${h} ${l}`,startTime:c.endTimestamp,attributes:{url:(0,t.stripDataUrlContent)(T),"http.method":h,type:"fetch",[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client.stream",[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.stream"}});n.set(c.response,f);const I=setTimeout(()=>{f.isRecording()&&f.end()},9e4);s.set(c.response,I)}})}}))},2696,[2697]);
1172__d(function(g,r,i,a,m,_e,_d){"use strict";
1172function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"registerSpanErrorInstrumentation",{enumerable:!0,get:function(){return t.registerSpanErrorInstrumentation}}),Object.defineProperty(_e,"getCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.getCapturedScopesOnSpan}}),Object.defineProperty(_e,"markSpanForOtelSourceInference",{enumerable:!0,get:function(){return n.markSpanForOtelSourceInference}}),Object.defineProperty(_e,"setCapturedScopesOnSpan",{enumerable:!0,get:function(){return n.setCapturedScopesOnSpan}}),Object.defineProperty(_e,"spanShouldInferOtelSource",{enumerable:!0,get:function(){return n.spanShouldInferOtelSource}}),Object.defineProperty(_e,"TRACING_DEFAULTS",{enumerable:!0,get:function(){return o.TRACING_DEFAULTS}}),Object.defineProperty(_e,"startIdleSpan",{enumerable:!0,get:function(){return o.startIdleSpan}}),Object.defineProperty(_e,"SentrySpan",{enumerable:!0,get:function(){return u.SentrySpan}}),Object.defineProperty(_e,"SentryNonRecordingSpan",{enumerable:!0,get:function(){return c.SentryNonRecordingSpan}}),Object.defineProperty(_e,"SPAN_STATUS_ERROR",{enumerable:!0,get:function(){return b.SPAN_STATUS_ERROR}}),Object.defineProperty(_e,"SPAN_STATUS_OK",{enumerable:!0,get:function(){return b.SPAN_STATUS_OK}}),Object.defineProperty(_e,"SPAN_STATUS_UNSET",{enumerable:!0,get:function(){return b.SPAN_STATUS_UNSET}}),Object.defineProperty(_e,"getSpanStatusFromHttpCode",{enumerable:!0,get:function(){return b.getSpanStatusFromHttpCode}}),Object.defineProperty(_e,"setHttpStatus",{enumerable:!0,get:function(){return b.setHttpStatus}}),Object.defineProperty(_e,"SUPPRESS_TRACING_KEY",{enumerable:!0,get:function(){return f.SUPPRESS_TRACING_KEY}}),Object.defineProperty(_e,"continueTrace",{enumerable:!0,get:function(){return f.continueTrace}}),Object.defineProperty(_e,"isTracingSuppressed",{enumerable:!0,get:function(){return f.isTracingSuppressed}}),Object.defineProperty(_e,"startInactiveSpan",{enumerable:!0,get:function(){return f.startInactiveSpan}}),Object.defineProperty(_e,"startNewTrace",{enumerable:!0,get:function(){return f.startNewTrace}}),Object.defineProperty(_e,"startSpan",{enumerable:!0,get:function(){return f.startSpan}}),Object.defineProperty(_e,"startSpanManual",{enumerable:!0,get:function(){return f.startSpanManual}}),Object.defineProperty(_e,"suppressTracing",{enumerable:!0,get:function(){return f.suppressTracing}}),Object.defineProperty(_e,"withActiveSpan",{enumerable:!0,get:function(){return f.withActiveSpan}}),Object.defineProperty(_e,"bindScopeToEmitter",{enumerable:!0,get:function(){return p.bindScopeToEmitter}}),Object.defineProperty(_e,"getDynamicSamplingContextFromClient",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromClient}}),Object.defineProperty(_e,"getDynamicSamplingContextFromScope",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromScope}}),Object.defineProperty(_e,"getDynamicSamplingContextFromSpan",{enumerable:!0,get:function(){return l.getDynamicSamplingContextFromSpan}}),Object.defineProperty(_e,"spanToBaggageHeader",{enumerable:!0,get:function(){return l.spanToBaggageHeader}}),Object.defineProperty(_e,"setMeasurement",{enumerable:!0,get:function(){return d.setMeasurement}}),Object.defineProperty(_e,"timedEventsToMeasurements",{enumerable:!0,get:function(){return d.timedEventsToMeasurements}}),Object.defineProperty(_e,"sampleSpan",{enumerable:!0,get:function(){return s.sampleSpan}}),Object.defineProperty(_e,"logSpanEnd",{enumerable:!0,get:function(){return T.logSpanEnd}}),Object.defineProperty(_e,"logSpanStart",{enumerable:!0,get:function(){return T.logSpanStart}}),Object.defineProperty(_e,"captureSpan",{enumerable:!0,get:function(){return E.captureSpan}}),Object.defineProperty(_e,"safeSetSpanJSONAttributes",{enumerable:!0,get:function(){return E.safeSetSpanJSONAttributes}}),Object.defineProperty(_e,"GEN_AI_CONVERSATION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return O.GEN_AI_CONVERSATION_ID_ATTRIBUTE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_HIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_HIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_CACHE_KEY",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_CACHE_KEY}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_PROFILE_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_PROFILE_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_OP",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_OP}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_URL_FULL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_URL_FULL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_EMAIL",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_EMAIL}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_ID",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_ID}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS}}),Object.defineProperty(_e,"SEMANTIC_ATTRIBUTE_USER_USERNAME",{enumerable:!0,get:function(){return O.SEMANTIC_ATTRIBUTE_USER_USERNAME}}),Object.defineProperty(_e,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",{enumerable:!0,get:function(){return O.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE}}),Object.defineProperty(_e,"createEventEnvelope",{enumerable:!0,get:function(){return P.createEventEnvelope}}),Object.defineProperty(_e,"createSessionEnvelope",{enumerable:!0,get:function(){return P.createSessionEnvelope}}),Object.defineProperty(_e,"createSpanEnvelope",{enumerable:!0,get:function(){return P.createSpanEnvelope}}),Object.defineProperty(_e,"addEventProcessor",{enumerable:!0,get:function(){return S.addEventProcessor}}),Object.defineProperty(_e,"captureCheckIn",{enumerable:!0,get:function(){return S.captureCheckIn}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return S.captureEvent}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return S.captureException}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return S.captureMessage}}),Object.defineProperty(_e,"captureSession",{enumerable:!0,get:function(){return S.captureSession}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return S.close}}),Object.defineProperty(_e,"endSession",{enumerable:!0,get:function(){return S.endSession}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return S.flush}}),Object.defineProperty(_e,"isEnabled",{enumerable:!0,get:function(){return S.isEnabled}}),Object.defineProperty(_e,"isInitialized",{enumerable:!0,get:function(){return S.isInitialized}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return S.lastEventId}}),Object.defineProperty(_e,"setAttribute",{enumerable:!0,get:function(){return S.setAttribute}}),Object.defineProperty(_e,"setAttributes",{enumerable:!0,get:function(){return S.setAttributes}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return S.setContext}}),Object.defineProperty(_e,"setConversationId",{enumerable:!0,get:function(){return S.setConversationId}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return S.setExtra}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return S.setExtras}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return S.setTag}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return S.setTags}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return S.setUser}}),Object.defineProperty(_e,"startSession",{enumerable:!0,get:function(){return S.startSession}}),Object.defineProperty(_e,"withMonitor",{enumerable:!0,get:function(){return S.withMonitor}}),Object.defineProperty(_e,"getClient",{enumerable:!0,get:function(){return y.getClient}}),Object.defineProperty(_e,"getCurrentScope",{enumerable:!0,get:function(){return y.getCurrentScope}}),Object.defineProperty(_e,"getExternalPropagationContext",{enumerable:!0,get:function(){return y.getExternalPropagationContext}}),Object.defineProperty(_e,"getGlobalScope",{enumerable:!0,get:function(){return y.getGlobalScope}}),Object.defineProperty(_e,"getIsolationScope",{enumerable:!0,get:function(){return y.getIsolationScope}}),Object.defineProperty(_e,"getTraceContextFromScope",{enumerable:!0,get:function(){return y.getTraceContextFromScope}}),Object.defineProperty(_e,"hasExternalPropagationContext",{enumerable:!0,get:function(){return y.hasExternalPropagationContext}}),Object.defineProperty(_e,"registerExternalPropagationContext",{enumerable:!0,get:function(){return y.registerExternalPropagationContext}}),Object.defineProperty(_e,"withIsolationScope",{enumerable:!0,get:function(){return y.withIsolationScope}}),Object.defineProperty(_e,"withScope",{enumerable:!0,get:function(){return y.withScope}}),Object.defineProperty(_e,"getDefaultCurrentScope",{enumerable:!0,get:function(){return _.getDefaultCurrentScope}}),Object.defineProperty(_e,"getDefaultIsolationScope",{enumerable:!0,get:function(){return _.getDefaultIsolationScope}}),Object.defineProperty(_e,"getAsyncContextStrategy",{enumerable:!0,get:function(){return j.getAsyncContextStrategy}}),Object.defineProperty(_e,"setAsyncContextStrategy",{enumerable:!0,get:function(){return j.setAsyncContextStrategy}}),Object.defineProperty(_e,"_INTERNAL_createTracingChannelBinding",{enumerable:!0,get:function(){return I._INTERNAL_createTracingChannelBinding}}
1172),Object.defineProperty(_e,"waitForTracingChannelBinding",{enumerable:!0,get:function(){return I.waitForTracingChannelBinding}}),Object.defineProperty(_e,"getGlobalSingleton",{enumerable:!0,get:function(){return N.getGlobalSingleton}}),Object.defineProperty(_e,"getMainCarrier",{enumerable:!0,get:function(){return N.getMainCarrier}}),Object.defineProperty(_e,"closeSession",{enumerable:!0,get:function(){return A.closeSession}}),Object.defineProperty(_e,"makeSession",{enumerable:!0,get:function(){return A.makeSession}}),Object.defineProperty(_e,"updateSession",{enumerable:!0,get:function(){return A.updateSession}}),Object.defineProperty(_e,"Scope",{enumerable:!0,get:function(){return R.Scope}}),Object.defineProperty(_e,"notifyEventProcessors",{enumerable:!0,get:function(){return C.notifyEventProcessors}}),Object.defineProperty(_e,"SENTRY_API_VERSION",{enumerable:!0,get:function(){return M.SENTRY_API_VERSION}}),Object.defineProperty(_e,"getEnvelopeEndpointWithUrlEncodedAuth",{enumerable:!0,get:function(){return M.getEnvelopeEndpointWithUrlEncodedAuth}}),Object.defineProperty(_e,"getReportDialogEndpoint",{enumerable:!0,get:function(){return M.getReportDialogEndpoint}}),Object.defineProperty(_e,"Client",{enumerable:!0,get:function(){return U.Client}}),Object.defineProperty(_e,"initAndBind",{enumerable:!0,get:function(){return L.initAndBind}}),Object.defineProperty(_e,"setCurrentClient",{enumerable:!0,get:function(){return L.setCurrentClient}}),Object.defineProperty(_e,"createTransport",{enumerable:!0,get:function(){return F.createTransport}}),Object.defineProperty(_e,"makeOfflineTransport",{enumerable:!0,get:function(){return v.makeOfflineTransport}}),Object.defineProperty(_e,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",{enumerable:!0,get:function(){return h.MULTIPLEXED_TRANSPORT_EXTRA_KEY}}),Object.defineProperty(_e,"makeMultiplexedTransport",{enumerable:!0,get:function(){return h.makeMultiplexedTransport}}),Object.defineProperty(_e,"addIntegration",{enumerable:!0,get:function(){return B.addIntegration}}),Object.defineProperty(_e,"defineIntegration",{enumerable:!0,get:function(){return B.defineIntegration}}),Object.defineProperty(_e,"extendIntegration",{enumerable:!0,get:function(){return B.extendIntegration}}),Object.defineProperty(_e,"getIntegrationsToSetup",{enumerable:!0,get:function(){return B.getIntegrationsToSetup}}),Object.defineProperty(_e,"installedIntegrations",{enumerable:!0,get:function(){return B.installedIntegrations}}),Object.defineProperty(_e,"_INTERNAL_clearAiProviderSkips",{enumerable:!0,get:function(){return H._INTERNAL_clearAiProviderSkips}}),Object.defineProperty(_e,"_INTERNAL_shouldSkipAiProviderWrapping",{enumerable:!0,get:function(){return H._INTERNAL_shouldSkipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_skipAiProviderWrapping",{enumerable:!0,get:function(){return H._INTERNAL_skipAiProviderWrapping}}),Object.defineProperty(_e,"_INTERNAL_filterKeyValueData",{enumerable:!0,get:function(){return D.filterKeyValueData}}),Object.defineProperty(_e,"_INTERNAL_filterCookies",{enumerable:!0,get:function(){return G.filterCookies}}),Object.defineProperty(_e,"_INTERNAL_filterQueryParams",{enumerable:!0,get:function(){return x.filterQueryParams}}),Object.defineProperty(_e,"envToBool",{enumerable:!0,get:function(){return k.envToBool}}),Object.defineProperty(_e,"applyScopeDataToEvent",{enumerable:!0,get:function(){return Y.applyScopeDataToEvent}}),Object.defineProperty(_e,"getCombinedScopeData",{enumerable:!0,get:function(){return Y.getCombinedScopeData}}),Object.defineProperty(_e,"mergeScopeData",{enumerable:!0,get:function(){return Y.mergeScopeData}}),Object.defineProperty(_e,"prepareEvent",{enumerable:!0,get:function(){return w.prepareEvent}}),Object.defineProperty(_e,"createCheckInEnvelope",{enumerable:!0,get:function(){return q.createCheckInEnvelope}}),Object.defineProperty(_e,"hasSpansEnabled",{enumerable:!0,get:function(){return K.hasSpansEnabled}}),Object.defineProperty(_e,"isStreamedBeforeSendSpanCallback",{enumerable:!0,get:function(){return z.isStreamedBeforeSendSpanCallback}}),Object.defineProperty(_e,"withStreamedSpan",{enumerable:!0,get:function(){return z.withStreamedSpan}}),Object.defineProperty(_e,"isSentryRequestUrl",{enumerable:!0,get:function(){return V.isSentryRequestUrl}}),Object.defineProperty(_e,"handleCallbackErrors",{enumerable:!0,get:function(){return W.handleCallbackErrors}}),Object.defineProperty(_e,"fmt",{enumerable:!0,get:function(){return X.fmt}}),Object.defineProperty(_e,"parameterize",{enumerable:!0,get:function(){return X.parameterize}}),Object.defineProperty(_e,"handleTunnelRequest",{enumerable:!0,get:function(){return Q.handleTunnelRequest}}),Object.defineProperty(_e,"addAutoIpAddressToSession",{enumerable:!0,get:function(){return J.addAutoIpAddressToSession}}),Object.defineProperty(_e,"addAutoIpAddressToUser",{enumerable:!0,get:function(){return J.addAutoIpAddressToUser}}),Object.defineProperty(_e,"INTERNAL_getSegmentSpan",{enumerable:!0,get:function(){return Z.INTERNAL_getSegmentSpan}}),Object.defineProperty(_e,"addChildSpanToSpan",{enumerable:!0,get:function(){return Z.addChildSpanToSpan}}),Object.defineProperty(_e,"convertSpanLinksForEnvelope",{enumerable:!0,get:function(){return Z.convertSpanLinksForEnvelope}}),Object.defineProperty(_e,"getActiveSpan",{enumerable:!0,get:function(){return Z.getActiveSpan}}),Object.defineProperty(_e,"getRootSpan",{enumerable:!0,get:function(){return Z.getRootSpan}}),Object.defineProperty(_e,"getSpanDescendants",{enumerable:!0,get:function(){return Z.getSpanDescendants}}),Object.defineProperty(_e,"getStatusMessage",{enumerable:!0,get:function(){return Z.getStatusMessage}}),Object.defineProperty(_e,"spanIsSampled",{enumerable:!0,get:function(){return Z.spanIsSampled}}),Object.defineProperty(_e,"spanTimeInputToSeconds",{enumerable:!0,get:function(){return Z.spanTimeInputToSeconds}}),Object.defineProperty(_e,"spanToJSON",{enumerable:!0,get:function(){return Z.spanToJSON}}),Object.defineProperty(_e,"spanToStreamedSpanJSON",{enumerable:!0,get:function(){return Z.spanToStreamedSpanJSON}}),Object.defineProperty(_e,"spanToTraceContext",{enumerable:!0,get:function(){return Z.spanToTraceContext}}),Object.defineProperty(_e,"spanToTraceHeader",{enumerable:!0,get:function(){return Z.spanToTraceHeader}}),Object.defineProperty(_e,"updateSpanName",{enumerable:!0,get:function(){return Z.updateSpanName}}),Object.defineProperty(_e,"_INTERNAL_setSpanForScope",{enumerable:!0,get:function(){return $._setSpanForScope}}),Object.defineProperty(_e,"parseSampleRate",{enumerable:!0,get:function(){return ee.parseSampleRate}}),Object.defineProperty(_e,"applySdkMetadata",{enumerable:!0,get:function(){return te.applySdkMetadata}}),Object.defineProperty(_e,"getTraceData",{enumerable:!0,get:function(){return re.getTraceData}}),Object.defineProperty(_e,"shouldPropagateTraceForUrl",{enumerable:!0,get:function(){return ne.shouldPropagateTraceForUrl}}),Object.defineProperty(_e,"getTraceMetaTags",{enumerable:!0,get:function(){return oe.getTraceMetaTags}}),Object.defineProperty(_e,"debounce",{enumerable:!0,get:function(){return ue.debounce}}),Object.defineProperty(_e,"derefWeakRef",{enumerable:!0,get:function(){return ie.derefWeakRef}}),Object.defineProperty(_e,"makeWeakRef",{enumerable:!0,get:function(){return ie.makeWeakRef}}),Object.defineProperty(_e,"shouldIgnoreSpan",{enumerable:!0,get:function(){return ae.shouldIgnoreSpan}}),Object.defineProperty(_e,"MAX_BODY_BYTE_LENGTH",{enumerable:!0,get:function(){return ce.MAX_BODY_BYTE_LENGTH}}),Object.defineProperty(_e,"captureBodyFromWinterCGRequest",{enumerable:!0,get:function(){return ce.captureBodyFromWinterCGRequest}}),Object.defineProperty(_e,"extractQueryParamsFromUrl",{enumerable:!0,get:function(){return ce.extractQueryParamsFromUrl}}
1172),Object.defineProperty(_e,"getMaxBodyByteLength",{enumerable:!0,get:function(){return ce.getMaxBodyByteLength}}),Object.defineProperty(_e,"headersToDict",{enumerable:!0,get:function(){return ce.headersToDict}}),Object.defineProperty(_e,"httpHeadersToSpanAttributes",{enumerable:!0,get:function(){return ce.httpHeadersToSpanAttributes}}),Object.defineProperty(_e,"httpRequestToRequestData",{enumerable:!0,get:function(){return ce.httpRequestToRequestData}}),Object.defineProperty(_e,"winterCGHeadersToDict",{enumerable:!0,get:function(){return ce.winterCGHeadersToDict}}),Object.defineProperty(_e,"winterCGRequestToRequestData",{enumerable:!0,get:function(){return ce.winterCGRequestToRequestData}}),Object.defineProperty(_e,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEFAULT_ENVIRONMENT}}),Object.defineProperty(_e,"DEV_ENVIRONMENT",{enumerable:!0,get:function(){return be.DEV_ENVIRONMENT}}),Object.defineProperty(_e,"SPAN_KIND",{enumerable:!0,get:function(){return fe.SPAN_KIND}}),Object.defineProperty(_e,"spanKindToName",{enumerable:!0,get:function(){return fe.spanKindToName}}),Object.defineProperty(_e,"addBreadcrumb",{enumerable:!0,get:function(){return pe.addBreadcrumb}}),Object.defineProperty(_e,"functionToStringIntegration",{enumerable:!0,get:function(){return le.functionToStringIntegration}}),Object.defineProperty(_e,"eventFiltersIntegration",{enumerable:!0,get:function(){return de.eventFiltersIntegration}}),Object.defineProperty(_e,"inboundFiltersIntegration",{enumerable:!0,get:function(){return de.inboundFiltersIntegration}}),Object.defineProperty(_e,"linkedErrorsIntegration",{enumerable:!0,get:function(){return ge.linkedErrorsIntegration}}),Object.defineProperty(_e,"moduleMetadataIntegration",{enumerable:!0,get:function(){return me.moduleMetadataIntegration}}),Object.defineProperty(_e,"requestDataIntegration",{enumerable:!0,get:function(){return se.requestDataIntegration}}),Object.defineProperty(_e,"captureConsoleIntegration",{enumerable:!0,get:function(){return Te.captureConsoleIntegration}}),Object.defineProperty(_e,"dedupeIntegration",{enumerable:!0,get:function(){return Ee.dedupeIntegration}}),Object.defineProperty(_e,"extraErrorDataIntegration",{enumerable:!0,get:function(){return Oe.extraErrorDataIntegration}}),Object.defineProperty(_e,"rewriteFramesIntegration",{enumerable:!0,get:function(){return Pe.rewriteFramesIntegration}}),Object.defineProperty(_e,"instrumentSupabaseClient",{enumerable:!0,get:function(){return Se.instrumentSupabaseClient}}),Object.defineProperty(_e,"supabaseIntegration",{enumerable:!0,get:function(){return Se.supabaseIntegration}}),Object.defineProperty(_e,"zodErrorsIntegration",{enumerable:!0,get:function(){return ye.zodErrorsIntegration}}),Object.defineProperty(_e,"thirdPartyErrorFilterIntegration",{enumerable:!0,get:function(){return je.thirdPartyErrorFilterIntegration}}),Object.defineProperty(_e,"consoleIntegration",{enumerable:!0,get:function(){return Ie.consoleIntegration}}),Object.defineProperty(_e,"featureFlagsIntegration",{enumerable:!0,get:function(){return Ne.featureFlagsIntegration}}),Object.defineProperty(_e,"growthbookIntegration",{enumerable:!0,get:function(){return Ae.growthbookIntegration}}),Object.defineProperty(_e,"conversationIdIntegration",{enumerable:!0,get:function(){return Re.conversationIdIntegration}}),Object.defineProperty(_e,"profiler",{enumerable:!0,get:function(){return Ce.profiler}}),Object.defineProperty(_e,"_INTERNAL_getTracingHeadersForFetchRequest",{enumerable:!0,get:function(){return Me._INTERNAL_getTracingHeadersForFetchRequest}}),Object.defineProperty(_e,"instrumentFetchRequest",{enumerable:!0,get:function(){return Me.instrumentFetchRequest}}),Object.defineProperty(_e,"captureFeedback",{enumerable:!0,get:function(){return Ue.captureFeedback}}),Object.defineProperty(_e,"_INTERNAL_captureLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureLog}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedLog",{enumerable:!0,get:function(){return Le._INTERNAL_captureSerializedLog}}),Object.defineProperty(_e,"_INTERNAL_flushLogsBuffer",{enumerable:!0,get:function(){return Le._INTERNAL_flushLogsBuffer}}),Object.defineProperty(_e,"consoleLoggingIntegration",{enumerable:!0,get:function(){return ve.consoleLoggingIntegration}}),Object.defineProperty(_e,"_INTERNAL_captureMetric",{enumerable:!0,get:function(){return he._INTERNAL_captureMetric}}),Object.defineProperty(_e,"_INTERNAL_captureSerializedMetric",{enumerable:!0,get:function(){return he._INTERNAL_captureSerializedMetric}}),Object.defineProperty(_e,"_INTERNAL_flushMetricsBuffer",{enumerable:!0,get:function(){return he._INTERNAL_flushMetricsBuffer}}),Object.defineProperty(_e,"createConsolaReporter",{enumerable:!0,get:function(){return He.createConsolaReporter}}),Object.defineProperty(_e,"addVercelAiProcessors",{enumerable:!0,get:function(){return De.addVercelAiProcessors}}),Object.defineProperty(_e,"getProviderMetadataAttributes",{enumerable:!0,get:function(){return De.getProviderMetadataAttributes}}),Object.defineProperty(_e,"getTruncatedJsonString",{enumerable:!0,get:function(){return Ge.getTruncatedJsonString}}),Object.defineProperty(_e,"shouldEnableTruncation",{enumerable:!0,get:function(){return Ge.shouldEnableTruncation}}),Object.defineProperty(_e,"GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE}}),Object.defineProperty(_e,"GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE",{enumerable:!0,get:function(){return xe.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE}}),Object.defineProperty(_e,"_INTERNAL_cleanupToolCallSpanContext",{enumerable:!0,get:function(){return ke._INTERNAL_cleanupToolCallSpanContext}}),Object.defineProperty(_e,"_INTERNAL_getSpanContextForToolCallId",{enumerable:!0,get:function(){return ke._INTERNAL_getSpanContextForToolCallId}}),Object.defineProperty(_e,"_INTERNAL_toolCallSpanContextMap",{enumerable:!0,get:function(){return Ye.toolCallSpanContextMap}}),Object.defineProperty(_e,"instrumentOpenAiClient",{enumerable:!0,get:function(){return we.instrumentOpenAiClient}}),Object.defineProperty(_e,"OPENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return qe.OPENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentAnthropicAiClient",{enumerable:!0,get:function(){return Ke.instrumentAnthropicAiClient}}),Object.defineProperty(_e,"ANTHROPIC_AI_INTEGRATION_NAME",{enumerable:!0,get:function(){return ze.ANTHROPIC_AI_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentGoogleGenAIClient",{enumerable:!0,get:function(){return Ve.instrumentGoogleGenAIClient}}),Object.defineProperty(_e,"GOOGLE_GENAI_INTEGRATION_NAME",{enumerable:!0,get:function(){return We.GOOGLE_GENAI_INTEGRATION_NAME}}),Object.defineProperty(_e,"createLangChainCallbackHandler",{enumerable:!0,get:function(){return Xe.createLangChainCallbackHandler}}),Object.defineProperty(_e,"_INTERNAL_mergeLangChainCallbackHandler",{enumerable:!0,get:function(){return Qe._INTERNAL_mergeLangChainCallbackHandler}}),Object.defineProperty(_e,"LANGCHAIN_INTEGRATION_NAME",{enumerable:!0,get:function(){return Je.LANGCHAIN_INTEGRATION_NAME}}),Object.defineProperty(_e,"instrumentCreateReactAgent",{enumerable:!0,get:function(){return Ze.instrumentCreateReactAgent}}),Object.defineProperty(_e,"instrumentLangGraph",{enumerable:!0,get:function(){return Ze.instrumentLangGraph}}),Object.defineProperty(_e,"instrumentStateGraphCompile",{enumerable:!0,get:function(){return Ze.instrumentStateGraphCompile}}),Object.defineProperty(_e,"LANGGRAPH_INTEGRATION_NAME",{enumerable:!0,get:function(){return $e.LANGGRAPH_INTEGRATION_NAME}}),Object.defineProperty(_e,"SpanBuffer",{enumerable:!0,get:function(){return et.SpanBuffer}}),Object.defineProperty(_e,"hasSpanStreamingEnabled",{enumerable:!0,get:function(){return tt.hasSpanStreamingEnabled}}),Object.defineProperty(_e,"spanStreamingIntegration",{enumerable:!0,get:function(){return rt.spanStreamingIntegration}}),Object.defineProperty(_e,"_INTERNAL_FLAG_BUFFER_SIZE",{enumerable:!0,get:function(){return nt._INTERNAL_FLAG_BUFFER_SIZE}}),Object.defineProperty(_e,"_INTERNAL_MAX_FLAGS_PER_SPAN",{enumerable:!0,get:function(){return nt._INTERNAL_MAX_FLAGS_PER_SPAN}}),Object.defineProperty(_e,"_INTERNAL_addFeatureFlagToActiveSpan",{enumerable:!0,get:function(){return nt._INTERNAL_addFeatureFlagToActiveSpan}}),Object.defineProperty(_e,"_INTERNAL_copyFlagsFromScopeToEvent",{enumerable:!0,get:function(){return nt._INTERNAL_copyFlagsFromScopeToEvent}}),Object.defineProperty(_e,"_INTERNAL_insertFlagToScope",{enumerable:!0,get:function(){return nt._INTERNAL_insertFlagToScope}}),Object.defineProperty(_e,"applyAggregateErrorsToEvent",{enumerable:!0,get:function(){return ot.applyAggregateErrorsToEvent}}),Object.defineProperty(_e,"getBreadcrumbLogLevelFromHttpStatusCode",{enumerable:!0,get:function(){return ut.getBreadcrumbLogLevelFromHttpStatusCode}}),Object.defineProperty(_e,"dsnFromString",{enumerable:!0,get:function(){return it.dsnFromString}}),Object.defineProperty(_e,"dsnToString",{enumerable:!0,get:function(){return it.dsnToString}}),Object.defineProperty(_e,"makeDsn",{enumerable:!0,get:function(){return it.makeDsn}}),Object.defineProperty(_e,"SentryError",{enumerable:!0,get:function(){return at.SentryError}}),Object.defineProperty(_e,"GLOBAL_OBJ",{enumerable:!0,get:function(){return ct.GLOBAL_OBJ}}),Object.defineProperty(_e,"addConsoleInstrumentationFilter",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationFilter}}),Object.defineProperty(_e,"addConsoleInstrumentationHandler",{enumerable:!0,get:function(){return bt.addConsoleInstrumentationHandler}}),Object.defineProperty(_e,"addFetchEndInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchEndInstrumentationHandler}}),Object.defineProperty(_e,"addFetchInstrumentationHandler",{enumerable:!0,get:function(){return ft.addFetchInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalErrorInstrumentationHandler",{enumerable:!0,get:function(){return pt.addGlobalErrorInstrumentationHandler}}),Object.defineProperty(_e,"addGlobalUnhandledRejectionInstrumentationHandler",{enumerable:!0,get:function(){return lt.addGlobalUnhandledRejectionInstrumentationHandler}}),Object.defineProperty(_e,"addHandler",{enumerable:!0,get:function(){return dt.addHandler}}),Object.defineProperty(_e,"maybeInstrument",{enumerable:!0,get:function(){return dt.maybeInstrument}}),Object.defineProperty(_e,"resetInstrumentationHandlers",{enumerable:!0,get:function(){return dt.resetInstrumentationHandlers}}),Object.defineProperty(_e,"triggerHandlers",{enumerable:!0,get:function(){return dt.triggerHandlers}}),Object.defineProperty(_e,"isDOMError",{enumerable:!0,get:function(){return gt.isDOMError}}),Object.defineProperty(_e,"isDOMException",{enumerable:!0,get:function(){return gt.isDOMException}}),Object.defineProperty(_e,"isElement",{enumerable:!0,get:function(){return gt.isElement}}),Object.defineProperty(_e,"isError",{enumerable:!0,get:function(){return gt.isError}}),Object.defineProperty(_e,"isErrorEvent",{enumerable:!0,get:function(){return gt.isErrorEvent}}),Object.defineProperty(_e,"isEvent",{enumerable:!0,get:function(){return gt.isEvent}}),Object.defineProperty(_e,"isInstanceOf",{enumerable:!0,get:function(){return gt.isInstanceOf}}),Object.defineProperty(_e,"isParameterizedString",{enumerable:!0,get:function(){return gt.isParameterizedString}}),Object.defineProperty(_e,"isPlainObject",{enumerable:!0,get:function(){return gt.isPlainObject}}),Object.defineProperty(_e,"isPrimitive",{enumerable:!0,get:function(){return gt.isPrimitive}}),Object.defineProperty(_e,"isRegExp",{enumerable:!0,get:function(){return gt.isRegExp}}),Object.defineProperty(_e,"isString",{enumerable:!0,get:function(){return gt.isString}}),Object.defineProperty(_e,"isSyntheticEvent",{enumerable:!0,get:function(){return gt.isSyntheticEvent}}),Object.defineProperty(_e,"isThenable",{enumerable:!0,get:function(){return gt.isThenable}}),Object.defineProperty(_e,"isVueViewModel",{enumerable:!0,get:function(){return gt.isVueViewModel}}),Object.defineProperty(_e,"isBrowser",{enumerable:!0,get:function(){return mt.isBrowser}}
1172),Object.defineProperty(_e,"CONSOLE_LEVELS",{enumerable:!0,get:function(){return st.CONSOLE_LEVELS}}),Object.defineProperty(_e,"consoleSandbox",{enumerable:!0,get:function(){return st.consoleSandbox}}),Object.defineProperty(_e,"debug",{enumerable:!0,get:function(){return st.debug}}),Object.defineProperty(_e,"originalConsoleMethods",{enumerable:!0,get:function(){return st.originalConsoleMethods}}),Object.defineProperty(_e,"addContextToFrame",{enumerable:!0,get:function(){return Tt.addContextToFrame}}),Object.defineProperty(_e,"addExceptionMechanism",{enumerable:!0,get:function(){return Tt.addExceptionMechanism}}),Object.defineProperty(_e,"addExceptionTypeValue",{enumerable:!0,get:function(){return Tt.addExceptionTypeValue}}),Object.defineProperty(_e,"checkOrSetAlreadyCaught",{enumerable:!0,get:function(){return Tt.checkOrSetAlreadyCaught}}),Object.defineProperty(_e,"getEventDescription",{enumerable:!0,get:function(){return Tt.getEventDescription}}),Object.defineProperty(_e,"isAlreadyCaptured",{enumerable:!0,get:function(){return Tt.isAlreadyCaptured}}),Object.defineProperty(_e,"parseSemver",{enumerable:!0,get:function(){return Tt.parseSemver}}),Object.defineProperty(_e,"uuid4",{enumerable:!0,get:function(){return Tt.uuid4}}),Object.defineProperty(_e,"normalize",{enumerable:!0,get:function(){return Et.normalize}}),Object.defineProperty(_e,"normalizeToSize",{enumerable:!0,get:function(){return Et.normalizeToSize}}),Object.defineProperty(_e,"normalizeUrlToBase",{enumerable:!0,get:function(){return Et.normalizeUrlToBase}}),Object.defineProperty(_e,"setNormalizeStringifier",{enumerable:!0,get:function(){return Et.setNormalizeStringifier}}),Object.defineProperty(_e,"setNormalizationDepthOverrideHint",{enumerable:!0,get:function(){return Ot.setNormalizationDepthOverrideHint}}),Object.defineProperty(_e,"setSkipNormalizationHint",{enumerable:!0,get:function(){return Ot.setSkipNormalizationHint}}),Object.defineProperty(_e,"addNonEnumerableProperty",{enumerable:!0,get:function(){return Pt.addNonEnumerableProperty}}),Object.defineProperty(_e,"convertToPlainObject",{enumerable:!0,get:function(){return Pt.convertToPlainObject}}),Object.defineProperty(_e,"dropUndefinedKeys",{enumerable:!0,get:function(){return Pt.dropUndefinedKeys}}),Object.defineProperty(_e,"extractExceptionKeysForMessage",{enumerable:!0,get:function(){return Pt.extractExceptionKeysForMessage}}),Object.defineProperty(_e,"fill",{enumerable:!0,get:function(){return Pt.fill}}),Object.defineProperty(_e,"getOriginalFunction",{enumerable:!0,get:function(){return Pt.getOriginalFunction}}),Object.defineProperty(_e,"markFunctionWrapped",{enumerable:!0,get:function(){return Pt.markFunctionWrapped}}),Object.defineProperty(_e,"objectify",{enumerable:!0,get:function(){return Pt.objectify}}),Object.defineProperty(_e,"basename",{enumerable:!0,get:function(){return St.basename}}),Object.defineProperty(_e,"dirname",{enumerable:!0,get:function(){return St.dirname}}),Object.defineProperty(_e,"isAbsolute",{enumerable:!0,get:function(){return St.isAbsolute}}),Object.defineProperty(_e,"join",{enumerable:!0,get:function(){return St.join}}),Object.defineProperty(_e,"normalizePath",{enumerable:!0,get:function(){return St.normalizePath}}),Object.defineProperty(_e,"relative",{enumerable:!0,get:function(){return St.relative}}),Object.defineProperty(_e,"resolve",{enumerable:!0,get:function(){return St.resolve}}),Object.defineProperty(_e,"SENTRY_BUFFER_FULL_ERROR",{enumerable:!0,get:function(){return yt.SENTRY_BUFFER_FULL_ERROR}}),Object.defineProperty(_e,"makePromiseBuffer",{enumerable:!0,get:function(){return yt.makePromiseBuffer}}),Object.defineProperty(_e,"severityLevelFromString",{enumerable:!0,get:function(){return _t.severityLevelFromString}}),Object.defineProperty(_e,"replaceExports",{enumerable:!0,get:function(){return jt.replaceExports}}),Object.defineProperty(_e,"UNKNOWN_FUNCTION",{enumerable:!0,get:function(){return It.UNKNOWN_FUNCTION}}),Object.defineProperty(_e,"createStackParser",{enumerable:!0,get:function(){return It.createStackParser}}),Object.defineProperty(_e,"getFramesFromEvent",{enumerable:!0,get:function(){return It.getFramesFromEvent}}),Object.defineProperty(_e,"getFunctionName",{enumerable:!0,get:function(){return It.getFunctionName}}),Object.defineProperty(_e,"stackParserFromStackParserOptions",{enumerable:!0,get:function(){return It.stackParserFromStackParserOptions}}),Object.defineProperty(_e,"stripSentryFramesAndReverse",{enumerable:!0,get:function(){return It.stripSentryFramesAndReverse}}),Object.defineProperty(_e,"isMatchingPattern",{enumerable:!0,get:function(){return Nt.isMatchingPattern}}),Object.defineProperty(_e,"safeJoin",{enumerable:!0,get:function(){return Nt.safeJoin}}),Object.defineProperty(_e,"snipLine",{enumerable:!0,get:function(){return Nt.snipLine}}),Object.defineProperty(_e,"stringMatchesSomePattern",{enumerable:!0,get:function(){return Nt.stringMatchesSomePattern}}),Object.defineProperty(_e,"truncate",{enumerable:!0,get:function(){return Nt.truncate}}),Object.defineProperty(_e,"isNativeFunction",{enumerable:!0,get:function(){return At.isNativeFunction}}
1172),Object.defineProperty(_e,"supportsDOMError",{enumerable:!0,get:function(){return At.supportsDOMError}}),Object.defineProperty(_e,"supportsDOMException",{enumerable:!0,get:function(){return At.supportsDOMException}}),Object.defineProperty(_e,"supportsErrorEvent",{enumerable:!0,get:function(){return At.supportsErrorEvent}}),Object.defineProperty(_e,"supportsFetch",{enumerable:!0,get:function(){return At.supportsFetch}}),Object.defineProperty(_e,"supportsHistory",{enumerable:!0,get:function(){return At.supportsHistory}}),Object.defineProperty(_e,"supportsNativeFetch",{enumerable:!0,get:function(){return At.supportsNativeFetch}}),Object.defineProperty(_e,"supportsReferrerPolicy",{enumerable:!0,get:function(){return At.supportsReferrerPolicy}}),Object.defineProperty(_e,"supportsReportingObserver",{enumerable:!0,get:function(){return At.supportsReportingObserver}}),Object.defineProperty(_e,"SyncPromise",{enumerable:!0,get:function(){return Rt.SyncPromise}}),Object.defineProperty(_e,"rejectedSyncPromise",{enumerable:!0,get:function(){return Rt.rejectedSyncPromise}}),Object.defineProperty(_e,"resolvedSyncPromise",{enumerable:!0,get:function(){return Rt.resolvedSyncPromise}}),Object.defineProperty(_e,"browserPerformanceTimeOrigin",{enumerable:!0,get:function(){return Ct.browserPerformanceTimeOrigin}}),Object.defineProperty(_e,"dateTimestampInSeconds",{enumerable:!0,get:function(){return Ct.dateTimestampInSeconds}}),Object.defineProperty(_e,"timestampInSeconds",{enumerable:!0,get:function(){return Ct.timestampInSeconds}}),Object.defineProperty(_e,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return Mt.TRACEPARENT_REGEXP}}),Object.defineProperty(_e,"extractTraceparentData",{enumerable:!0,get:function(){return Mt.extractTraceparentData}}),Object.defineProperty(_e,"generateSentryTraceHeader",{enumerable:!0,get:function(){return Mt.generateSentryTraceHeader}}),Object.defineProperty(_e,"generateTraceparentHeader",{enumerable:!0,get:function(){return Mt.generateTraceparentHeader}}),Object.defineProperty(_e,"propagationContextFromHeaders",{enumerable:!0,get:function(){return Mt.propagationContextFromHeaders}}),Object.defineProperty(_e,"shouldContinueTrace",{enumerable:!0,get:function(){return Mt.shouldContinueTrace}}),Object.defineProperty(_e,"getSDKSource",{enumerable:!0,get:function(){return Ut.getSDKSource}}),Object.defineProperty(_e,"isBrowserBundle",{enumerable:!0,get:function(){return Ut.isBrowserBundle}}),Object.defineProperty(_e,"addItemToEnvelope",{enumerable:!0,get:function(){return Lt.addItemToEnvelope}}),Object.defineProperty(_e,"createAttachmentEnvelopeItem",{enumerable:!0,get:function(){return Lt.createAttachmentEnvelopeItem}}),Object.defineProperty(_e,"createEnvelope",{enumerable:!0,get:function(){return Lt.createEnvelope}}),Object.defineProperty(_e,"createEventEnvelopeHeaders",{enumerable:!0,get:function(){return Lt.createEventEnvelopeHeaders}}),Object.defineProperty(_e,"createSpanEnvelopeItem",{enumerable:!0,get:function(){return Lt.createSpanEnvelopeItem}}),Object.defineProperty(_e,"envelopeContainsItemType",{enumerable:!0,get:function(){return Lt.envelopeContainsItemType}}),Object.defineProperty(_e,"envelopeItemTypeToDataCategory",{enumerable:!0,get:function(){return Lt.envelopeItemTypeToDataCategory}}),Object.defineProperty(_e,"forEachEnvelopeItem",{enumerable:!0,get:function(){return Lt.forEachEnvelopeItem}}),Object.defineProperty(_e,"getSdkMetadataForEnvelopeHeader",{enumerable:!0,get:function(){return Lt.getSdkMetadataForEnvelopeHeader}}),Object.defineProperty(_e,"parseEnvelope",{enumerable:!0,get:function(){return Lt.parseEnvelope}}),Object.defineProperty(_e,"serializeEnvelope",{enumerable:!0,get:function(){return Lt.serializeEnvelope}}),Object.defineProperty(_e,"createClientReportEnvelope",{enumerable:!0,get:function(){return Ft.createClientReportEnvelope}}),Object.defineProperty(_e,"DEFAULT_RETRY_AFTER",{enumerable:!0,get:function(){return vt.DEFAULT_RETRY_AFTER}}),Object.defineProperty(_e,"disabledUntil",{enumerable:!0,get:function(){return vt.disabledUntil}}),Object.defineProperty(_e,"isRateLimited",{enumerable:!0,get:function(){return vt.isRateLimited}}),Object.defineProperty(_e,"parseRetryAfterHeader",{enumerable:!0,get:function(){return vt.parseRetryAfterHeader}}),Object.defineProperty(_e,"updateRateLimits",{enumerable:!0,get:function(){return vt.updateRateLimits}}),Object.defineProperty(_e,"MAX_BAGGAGE_STRING_LENGTH",{enumerable:!0,get:function(){return ht.MAX_BAGGAGE_STRING_LENGTH}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX",{enumerable:!0,get:function(){return ht.SENTRY_BAGGAGE_KEY_PREFIX}}),Object.defineProperty(_e,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",{enumerable:!0,get:function(){return ht.SENTRY_BAGGAGE_KEY_PREFIX_REGEX}}),Object.defineProperty(_e,"baggageHeaderToDynamicSamplingContext",{enumerable:!0,get:function(){return ht.baggageHeaderToDynamicSamplingContext}}),Object.defineProperty(_e,"dynamicSamplingContextToSentryBaggageHeader",{enumerable:!0,get:function(){return ht.dynamicSamplingContextToSentryBaggageHeader}}),Object.defineProperty(_e,"mergeBaggageHeaders",{enumerable:!0,get:function(){return ht.mergeBaggageHeaders}}),Object.defineProperty(_e,"objectToBaggageHeader",{enumerable:!0,get:function(){return ht.objectToBaggageHeader}}),Object.defineProperty(_e,"parseBaggageHeader",{enumerable:!0,get:function(){return ht.parseBaggageHeader}}
1172),Object.defineProperty(_e,"getHttpSpanDetailsFromUrlObject",{enumerable:!0,get:function(){return Bt.getHttpSpanDetailsFromUrlObject}}),Object.defineProperty(_e,"getSanitizedUrlString",{enumerable:!0,get:function(){return Bt.getSanitizedUrlString}}),Object.defineProperty(_e,"getSanitizedUrlStringFromUrlObject",{enumerable:!0,get:function(){return Bt.getSanitizedUrlStringFromUrlObject}}),Object.defineProperty(_e,"isURLObjectRelative",{enumerable:!0,get:function(){return Bt.isURLObjectRelative}}),Object.defineProperty(_e,"parseStringToURLObject",{enumerable:!0,get:function(){return Bt.parseStringToURLObject}}),Object.defineProperty(_e,"parseUrl",{enumerable:!0,get:function(){return Bt.parseUrl}}),Object.defineProperty(_e,"stripDataUrlContent",{enumerable:!0,get:function(){return Bt.stripDataUrlContent}}),Object.defineProperty(_e,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return Bt.stripUrlQueryAndFragment}}),Object.defineProperty(_e,"_INTERNAL_enhanceErrorWithSentryInfo",{enumerable:!0,get:function(){return Ht._enhanceErrorWithSentryInfo}}),Object.defineProperty(_e,"eventFromMessage",{enumerable:!0,get:function(){return Ht.eventFromMessage}}),Object.defineProperty(_e,"eventFromUnknownInput",{enumerable:!0,get:function(){return Ht.eventFromUnknownInput}}),Object.defineProperty(_e,"exceptionFromError",{enumerable:!0,get:function(){return Ht.exceptionFromError}}),Object.defineProperty(_e,"parseStackFrames",{enumerable:!0,get:function(){return Ht.parseStackFrames}}),Object.defineProperty(_e,"LRUMap",{enumerable:!0,get:function(){return Dt.LRUMap}}),Object.defineProperty(_e,"generateSpanId",{enumerable:!0,get:function(){return Gt.generateSpanId}}),Object.defineProperty(_e,"generateTraceId",{enumerable:!0,get:function(){return Gt.generateTraceId}}),Object.defineProperty(_e,"SDK_VERSION",{enumerable:!0,get:function(){return xt.SDK_VERSION}}),Object.defineProperty(_e,"getDebugImagesForResources",{enumerable:!0,get:function(){return kt.getDebugImagesForResources}}),Object.defineProperty(_e,"getFilenameToDebugIdMap",{enumerable:!0,get:function(){return kt.getFilenameToDebugIdMap}}),Object.defineProperty(_e,"getFilenameToMetadataMap",{enumerable:!0,get:function(){return Yt.getFilenameToMetadataMap}}),Object.defineProperty(_e,"escapeStringForRegex",{enumerable:!0,get:function(){return wt.escapeStringForRegex}}),Object.defineProperty(_e,"_INTERNAL_safeDateNow",{enumerable:!0,get:function(){return qt.safeDateNow}}),Object.defineProperty(_e,"_INTERNAL_safeMathRandom",{enumerable:!0,get:function(){return qt.safeMathRandom}}),Object.defineProperty(_e,"_INTERNAL_withRandomSafeContext",{enumerable:!0,get:function(){return qt.withRandomSafeContext}}),Object.defineProperty(_e,"ServerRuntimeClient",{enumerable:!0,get:function(){return Kt.ServerRuntimeClient}}),Object.defineProperty(_e,"trpcMiddleware",{enumerable:!0,get:function(){return zt.trpcMiddleware}}),Object.defineProperty(_e,"wrapMcpServerWithSentry",{enumerable:!0,get:function(){return Vt.wrapMcpServerWithSentry}}),Object.defineProperty(_e,"isNodeEnv",{enumerable:!0,get:function(){return Wt.isNodeEnv}}),Object.defineProperty(_e,"loadModule",{enumerable:!0,get:function(){return Wt.loadModule}}),Object.defineProperty(_e,"filenameIsInApp",{enumerable:!0,get:function(){return Xt.filenameIsInApp}}),Object.defineProperty(_e,"node",{enumerable:!0,get:function(){return Xt.node}}),Object.defineProperty(_e,"nodeStackLineParser",{enumerable:!0,get:function(){return Xt.nodeStackLineParser}}),Object.defineProperty(_e,"vercelWaitUntil",{enumerable:!0,get:function(){return Qt.vercelWaitUntil}}),Object.defineProperty(_e,"flushIfServerless",{enumerable:!0,get:function(){return Jt.flushIfServerless}}),Object.defineProperty(_e,"callFrameToStackFrame",{enumerable:!0,get:function(){return Zt.callFrameToStackFrame}}),Object.defineProperty(_e,"watchdogTimer",{enumerable:!0,get:function(){return Zt.watchdogTimer}}),Object.defineProperty(_e,"_INTERNAL_safeUnref",{enumerable:!0,get:function(){return $t.safeUnref}}),Object.defineProperty(_e,"expressErrorHandler",{enumerable:!0,get:function(){return er.expressErrorHandler}}),Object.defineProperty(_e,"patchExpressModule",{enumerable:!0,get:function(){return er.patchExpressModule}}),Object.defineProperty(_e,"setupExpressErrorHandler",{enumerable:!0,get:function(){return er.setupExpressErrorHandler}}),Object.defineProperty(_e,"_INTERNAL_sanitizeSqlQuery",{enumerable:!0,get:function(){return tr._sanitizeSqlQuery}}),Object.defineProperty(_e,"instrumentPostgresJsSql",{enumerable:!0,get:function(){return tr.instrumentPostgresJsSql}}),Object.defineProperty(_e,"_INTERNAL_getSqlQuerySummary",{enumerable:!0,get:function(){return rr.getSqlQuerySummary}}),Object.defineProperty(_e,"patchHttpModuleClient",{enumerable:!0,get:function(){return nr.patchHttpModuleClient}}),Object.defineProperty(_e,"getHttpClientSubscriptions",{enumerable:!0,get:function(){return or.getHttpClientSubscriptions}}),Object.defineProperty(_e,"getHttpServerSubscriptions",{enumerable:!0,get:function(){return ur.getHttpServerSubscriptions}}),Object.defineProperty(_e,"isStaticAssetRequest",{enumerable:!0,get:function(){return ur.isStaticAssetRequest}}),Object.defineProperty(_e,"recordRequestSession",{enumerable:!0,get:function(){return ir.recordRequestSession}}),Object.defineProperty(_e,"addOutgoingRequestBreadcrumb",{enumerable:!0,get:function(){return ar.addOutgoingRequestBreadcrumb}}),Object.defineProperty(_e,"getRequestOptions",{enumerable:!0,get:function(){return cr.getRequestOptions}}),Object.defineProperty(_e,"getRequestUrl",{enumerable:!0,get:function(){return cr.getRequestUrl}}),Object.defineProperty(_e,"getRequestUrlFromClientRequest",{enumerable:!0,get:function(){return cr.getRequestUrlFromClientRequest}}),Object.defineProperty(_e,"getRequestUrlObject",{enumerable:!0,get:function(){return cr.getRequestUrlObject}}),Object.defineProperty(_e,"HTTP_ON_CLIENT_REQUEST",{enumerable:!0,get:function(){return br.HTTP_ON_CLIENT_REQUEST}}),Object.defineProperty(_e,"HTTP_ON_SERVER_REQUEST",{enumerable:!0,get:function(){return br.HTTP_ON_SERVER_REQUEST}}),Object.defineProperty(_e,"getComponentName",{enumerable:!0,get:function(){return fr.getComponentName}}),Object.defineProperty(_e,"getLocationHref",{enumerable:!0,get:function(){return fr.getLocationHref}}),Object.defineProperty(_e,"htmlTreeAsString",{enumerable:!0,get:function(){return fr.htmlTreeAsString}}),Object.defineProperty(_e,"instrumentLangChainEmbeddings",{enumerable:!0,get:function(){return pr.instrumentLangChainEmbeddings}}),Object.defineProperty(_e,"logger",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(_e,"metrics",{enumerable:!0,get:function(){return Be}});var t=r(_d[0]),n=r(_d[1]),o=r(_d[2]),u=r(_d[3]),c=r(_d[4]),b=r(_d[5]),f=r(_d[6]),p=r(_d[7]),l=r(_d[8]),d=r(_d[9]),s=r(_d[10]),T=r(_d[11]),E=r(_d[12]),O=r(_d[13]),P=r(_d[14]),S=r(_d[15]),y=r(_d[16]),_=r(_d[17]),j=r(_d[18]),I=r
1172(_d[19]),N=r(_d[20]),A=r(_d[21]),R=r(_d[22]),C=r(_d[23]),M=r(_d[24]),U=r(_d[25]),L=r(_d[26]),F=r(_d[27]),v=r(_d[28]),h=r(_d[29]),B=r(_d[30]),H=r(_d[31]),D=r(_d[32]),G=r(_d[33]),x=r(_d[34]),k=r(_d[35]),Y=r(_d[36]),w=r(_d[37]),q=r(_d[38]),K=r(_d[39]),z=r(_d[40]),V=r(_d[41]),W=r(_d[42]),X=r(_d[43]),Q=r(_d[44]),J=r(_d[45]),Z=r(_d[46]),$=r(_d[47]),ee=r(_d[48]),te=r(_d[49]),re=r(_d[50]),ne=r(_d[51]),oe=r(_d[52]),ue=r(_d[53]),ie=r(_d[54]),ae=r(_d[55]),ce=r(_d[56]),be=r(_d[57]),fe=r(_d[58]),pe=r(_d[59]),le=r(_d[60]),de=r(_d[61]),ge=r(_d[62]),me=r(_d[63]),se=r(_d[64]),Te=r(_d[65]),Ee=r(_d[66]),Oe=r(_d[67]),Pe=r(_d[68]),Se=r(_d[69]),ye=r(_d[70]),je=r(_d[71]),Ie=r(_d[72]),Ne=r(_d[73]),Ae=r(_d[74]),Re=r(_d[75]),Ce=r(_d[76]),Me=r(_d[77]),Ue=r(_d[78]),Le=r(_d[79]),Fe=e(r(_d[80])),ve=r(_d[81]),he=r(_d[82]),Be=e(r(_d[83])),He=r(_d[84]),De=r(_d[85]),Ge=r(_d[86]),xe=r(_d[87]),ke=r(_d[88]),Ye=r(_d[89]),we=r(_d[90]),qe=r(_d[91]),Ke=r(_d[92]),ze=r(_d[93]),Ve=r(_d[94]),We=r(_d[95]),Xe=r(_d[96]),Qe=r(_d[97]),Je=r(_d[98]),Ze=r(_d[99]),$e=r(_d[100]),et=r(_d[101]),tt=r(_d[102]),rt=r(_d[103]),nt=r(_d[104]),ot=r(_d[105]),ut=r(_d[106]),it=r(_d[107]),at=r(_d[108]),ct=r(_d[109]),bt=r(_d[110]),ft=r(_d[111]),pt=r(_d[112]),lt=r(_d[113]),dt=r(_d[114]),gt=r(_d[115]),mt=r(_d[116]),st=r(_d[117]),Tt=r(_d[118]),Et=r(_d[119]),Ot=r(_d[120]),Pt=r(_d[121]),St=r(_d[122]),yt=r(_d[123]),_t=r(_d[124]),jt=r(_d[125]),It=r(_d[126]),Nt=r(_d[127]),At=r(_d[128]),Rt=r(_d[129]),Ct=r(_d[130]),Mt=r(_d[131]),Ut=r(_d[132]),Lt=r(_d[133]),Ft=r(_d[134]),vt=r(_d[135]),ht=r(_d[136]),Bt=r(_d[137]),Ht=r(_d[138]),Dt=r(_d[139]),Gt=r(_d[140]),xt=r(_d[141]),kt=r(_d[142]),Yt=r(_d[143]),wt=r(_d[144]),qt=r(_d[145]),Kt=r(_d[146]),zt=r(_d[147]),Vt=r(_d[148]),Wt=r(_d[149]),Xt=r(_d[150]),Qt=r(_d[151]),Jt=r(_d[152]),Zt=r(_d[153]),$t=r(_d[154]),er=r(_d[155]),tr=r(_d[156]),rr=r(_d[157]),nr=r(_d[158]),or=r(_d[159]),ur=r(_d[160]),ir=r(_d[161]),ar=r(_d[162]),cr=r(_d[163]),br=r(_d[164]),fr=r(_d[165]),pr=r(_d[166])},2697,[1767,1800,1805,1809,1808,1799,1818,1821,1811,1816,1820,1815,1822,1798,1810,1825,1797,1780,1778,1830,1773,1782,1781,1827,1832,1833,1856,1847,1857,1858,1834,1859,1860,1861,1863,1864,1823,1826,1865,1806,1813,1866,1819,1868,1869,1870,1777,1793,1804,1871,1872,1873,1874,1875,1794,1807,1876,1812,1877,1878,1879,1880,1881,1884,1886,1888,1891,1892,1893,1895,1896,1897,1898,1899,1901,1902,1903,1904,1905,1835,1906,1907,1843,1909,1910,1911,1912,1913,1917,1916,1919,1920,1923,1924,1927,1928,1931,1933,1932,1934,1935,1937,1817,1940,1900,1882,1941,1803,1942,1770,1889,1943,1769,1776,1771,1785,1840,1772,1783,1788,1789,1784,1894,1848,1890,1945,1775,1787,1944,1828,1790,1801,1842,1814,1850,1849,1802,1867,1883,1946,1792,1774,1829,1885,1947,1786,2698,2700,2701,1841,2715,2716,2717,2718,1831,2719,2726,2727,2728,2730,2736,2738,2731,2732,2729,1948,1949]);
1173__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ServerRuntimeClient",{enumerable:!0,get:function(){return k}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),i=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]),l=r(d[9]),_=r(d[10]),v=r(d[11]),f=r(d[12]);class k extends s.Client{constructor(t){(0,u.addUserAgentToTransportHeaders)(t),"stream"!==t.traceLifecycle||t.integrations.some(t=>"SpanStreaming"===t.name)||t.integrations.push((0,i.spanStreamingIntegration)()),super(t),this._disposeCallbacks=[],this._setUpMetricsProcessing()}eventFromException(t,s){const n=(0,p.eventFromUnknownInput)(this,this._options.stackParser,t,s);return n.level="error",(0,v.resolvedSyncPromise)(n)}eventFromMessage(t,s="info",n){return(0,v.resolvedSyncPromise)((0,p.eventFromMessage)(this._options.stackParser,t,s,n,this._options.attachStacktrace))}captureException(t,s,n){return S(s),super.captureException(t,s,n)}captureEvent(t,s,n){return!t.type&&t.exception?.values&&t.exception.values.length>0&&S(s),super.captureEvent(t,s,n)}captureCheckIn(s,n,i){const c="checkInId"in s&&s.checkInId?s.checkInId:(0,l.uuid4)();if(!this._isEnabled())return o.DEBUG_BUILD&&h.debug.warn("SDK not enabled, will not capture check-in."),c;const u=this.getOptions(),{release:p,environment:_,tunnel:v}=u,k={check_in_id:c,monitor_slug:s.monitorSlug,status:s.status,release:p,environment:_};
1173"duration"in s&&(k.duration=s.duration),n&&(k.monitor_config={schedule:n.schedule,checkin_margin:n.checkinMargin,max_runtime:n.maxRuntime,timezone:n.timezone,failure_issue_threshold:n.failureIssueThreshold,recovery_threshold:n.recoveryThreshold});const[S,I]=(0,f._getTraceInfoFromScope)(this,i);I&&(k.contexts={trace:I});const E=(0,t.createCheckInEnvelope)(k,S,this.getSdkMetadata(),v,this.getDsn());return o.DEBUG_BUILD&&h.debug.log("Sending checkin:",s.monitorSlug,s.status),this.sendEnvelope(E),c}registerCleanup(t){this._disposeCallbacks.push(t)}dispose(){o.DEBUG_BUILD&&h.debug.log("Disposing client...");for(const t of this._disposeCallbacks)try{t()}catch{}this._disposeCallbacks.length=0;for(const t of Object.keys(this._hooks))this._hooks[t]?.clear();this._hooks={},this._eventProcessors.length=0,this._integrations={},this._outcomes={},this._transport=void 0,this._promiseBuffer=(0,_.makePromiseBuffer)(c.DEFAULT_TRANSPORT_BUFFER_SIZE)}_prepareEvent(t,s,n,o){return this._options.platform&&(t.platform=t.platform||this._options.platform),this._options.runtime&&(t.contexts={...t.contexts,runtime:t.contexts?.runtime||this._options.runtime}),this._options.serverName&&(t.server_name=t.server_name||this._options.serverName),super._prepareEvent(t,s,n,o)}_setUpMetricsProcessing(){this.on("processMetric",t=>{this._options.serverName&&(t.attributes={"server.address":this._options.serverName,...t.attributes})})}}function S(t){const s=(0,n.getIsolationScope)().getScopeData().sdkProcessingMetadata.requestSession;if(s){const n=t?.mechanism?.handled??!0;n&&"crashed"!==s.status?s.status="errored":n||(s.status="crashed")}}},2698,[1865,1833,1797,1768,1940,1847,2699,1772,1883,1783,1848,1828,1837]);
1174__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t._metadata?.sdk,s=n?.name&&n?.version?`${n?.name}/${n?.version}`:void 0;t.transportOptions={...t.transportOptions,headers:{...s&&{"user-agent":s},...t.transportOptions?.headers}}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addUserAgentToTransportHeaders",{enumerable:!0,get:function(){return t}})},2699,[]);
1175__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"trpcMiddleware",{enumerable:!0,get:function(){return l}});var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),c=r(d[4]),p=r(d[5]);const u={mechanism:{handled:!1,type:"auto.rpc.trpc.middleware"}};function s(t){"object"==typeof t&&null!==t&&"ok"in t&&!t.ok&&"error"in t&&(0,e.captureException)(t.error,u)}function l(l={}){return async function(f){const{path:h,type:T,next:_,rawInput:y,getRawInput:I}=f,R=(0,t.getClient)(),E=R?.getOptions(),w=R?.getDataCollectionOptions(),v={procedure_path:h,procedure_type:T};if((0,p.setNormalizationDepthOverrideHint)(v,1+(E?.normalizeDepth??5)),(void 0!==l.attachRpcInput?l.attachRpcInput:w?.httpBodies.includes("incomingRequest"))&&(void 0!==y&&(v.input=(0,o.normalize)(y)),void 0!==I&&"function"==typeof I))try{const t=await I();v.input=(0,o.normalize)(t)}catch{}return(0,t.withIsolationScope)(t=>(t.setContext("trpc",v),(0,c.startSpanManual)({name:`trpc/${h}`,op:"rpc.server",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"},forceTransaction:!!l.forceTransaction},async t=>{try{const e=await _();return s(e),t.end(),e}catch(n){throw(0,e.captureException)(n,u),t.end(),n}})))}}},2700,[1797,1825,1798,1788,1818,1789]);
1176__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapMcpServerWithSentry",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]);const p=new WeakSet;function u(u,l){if(p.has(u))return u;if(!(0,c.validateMcpServerInstance)(u))return u;const f=u,w=(0,t.getClient)(),O=w?.getDataCollectionOptions().genAI,v={recordInputs:l?.recordInputs??O?.inputs??!1,recordOutputs:l?.recordOutputs??O?.outputs??!1};return(0,n.fill)(f,"connect",t=>async function(n,...s){const c=await t.call(this,n,...s);return(0,o.wrapTransportOnMessage)(n,v),(0,o.wrapTransportSend)(n,v),(0,o.wrapTransportOnClose)(n),(0,o.wrapTransportError)(n),c}),(0,s.wrapAllMCPHandlers)(f),(0,s.wrapExistingHandlers)(f),p.add(u),u}},2701,[1797,1784,2702,2704,2708]);
1177__d(function(g,r,i,a,m,e,d){"use strict";
1177Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapAllMCPHandlers",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"wrapExistingHandlers",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"wrapPromptHandlers",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"wrapResourceHandlers",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"wrapToolHandlers",{enumerable:!0,get:function(){return p}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),c=r(d[3]);function u(t,o){(0,n.fill)(t,o,t=>function(n,...c){const u=c[c.length-1];if("function"!=typeof u)return t.call(this,n,...c);const f=s(u,o,n);return t.call(this,n,...c.slice(0,-1),f)})}function s(n,c,u){return function(...s){try{return f.call(this,n,c,u,s)}catch(c){return t.DEBUG_BUILD&&o.debug.warn("MCP handler wrapping failed:",c),n.apply(this,s)}}}function f(t,o,n,c){try{const u=t.apply(this,c);return u&&"object"==typeof u&&"function"==typeof u.then?Promise.resolve(u).catch(t=>{throw l(t,o,n),t}):u}catch(t){throw l(t,o,n),t}}function l(t,o,n){try{const u={};"tool"===o||"registerTool"===o?(u.tool_name=n,"ProtocolValidationError"===t.name||t.message.includes("validation")||t.message.includes("protocol")?(0,c.captureError)(t,"validation",u):"ServerTimeoutError"===t.name||t.message.includes("timed out")||t.message.includes("timeout")?(0,c.captureError)(t,"timeout",u):(0,c.captureError)(t,"tool_execution",u)):"resource"===o||"registerResource"===o?(u.resource_uri=n,(0,c.captureError)(t,"resource_execution",u)):"prompt"!==o&&"registerPrompt"!==o||(u.prompt_name=n,(0,c.captureError)(t,"prompt_execution",u))}catch(t){}}function p(t){"function"==typeof t.tool&&u(t,"tool"),"function"==typeof t.registerTool&&u(t,"registerTool")}function y(t){"function"==typeof t.resource&&u(t,"resource"),"function"==typeof t.registerResource&&u(t,"registerResource")}function b(t){"function"==typeof t.prompt&&u(t,"prompt"),"function"==typeof t.registerPrompt&&u(t,"registerPrompt")}function h(t){p(t),y(t),b(t)}function P(t){const o=t,n=o._registeredTools;if(n&&"object"==typeof n)for(const[t,o]of Object.entries(n))"function"==typeof o.executor&&(o.executor=s(o.executor,"registerTool",t));const c=o._registeredResources;if(c&&"object"==typeof c)for(const[t,o]of Object.entries(c))"function"==typeof o.readCallback&&(o.readCallback=s(o.readCallback,"registerResource",t));const u=o._registeredResourceTemplates;if(u&&"object"==typeof u)for(const[t,o]of Object.entries(u))"function"==typeof o.readCallback&&(o.readCallback=s(o.readCallback,"registerResource",t));const f=o._registeredPrompts;if(f&&"object"==typeof f)for(const[t,o]of Object.entries(f))"function"==typeof o.handler&&(o.handler=s(o.handler,"registerPrompt",t))}},2702,[1768,1772,1784,2703]);
1178__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureError",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),c=r(d[2]),o=r(d[3]);function u(u,s,_){try{if(!(0,t.getClient)())return;const p=(0,c.getActiveSpan)();p?.isRecording()&&p.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(u,{mechanism:{type:"auto.ai.mcp_server",handled:!1,data:{error_type:s||"handler_execution",..._}}})}catch{}}},2703,[1797,1825,1777,1799]);
1179__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"wrapTransportError",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"wrapTransportOnClose",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"wrapTransportOnMessage",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"wrapTransportSend",{enumerable:!0,get:function(){return b}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]),S=r(d[9]);function h(l,h){l.onmessage&&(0,n.fill)(l,"onmessage",n=>function(b,R){if((0,S.isJsonRpcRequest)(b)){const S="initialize"===b.method;let O;if(S)try{O=(0,u.extractSessionDataFromInitializeRequest)(b),(0,p.storeSessionDataForTransport)(l,O)}catch{}const T=(0,t.getIsolationScope)().clone();return(0,t.withIsolationScope)(T,()=>{const t=(0,f.buildMcpServerSpanConfig)(b,l,R,h),p=(0,o.startInactiveSpan)(t);return S&&O&&p.setAttributes({...(0,u.buildClientAttributesFromInfo)(O.clientInfo),...O.protocolVersion&&{[s.MCP_PROTOCOL_VERSION_ATTRIBUTE]:O.protocolVersion}}),(0,c.storeSpanForRequest)(l,b.id,p,b.method),(0,o.withActiveSpan)(p,()=>n.call(this,b,R))})}return(0,S.isJsonRpcNotification)(b)?(0,f.createMcpNotificationSpan)(b,l,R,h,()=>n.call(this,b,R)):n.call(this,b,R)})}
1179function b(t,o){t.send&&(0,n.fill)(t,"send",n=>async function(...s){const[l]=s;if((0,S.isJsonRpcNotification)(l))return(0,f.createMcpOutgoingNotificationSpan)(l,t,o,()=>n.call(this,...s));if((0,S.isJsonRpcResponse)(l)&&null!==l.id&&void 0!==l.id){if(l.error&&T(l.error),(0,S.isValidContentItem)(l.result)&&(l.result.protocolVersion||l.result.serverInfo))try{const n=(0,u.extractSessionDataFromInitializeResponse)(l.result);(0,p.updateSessionDataForTransport)(t,n)}catch{}(0,c.completeSpanWithResults)(t,l.id,l.result,o,!!l.error)}return n.call(this,...s)})}function R(t){t.onclose&&(0,n.fill)(t,"onclose",n=>function(...o){return(0,c.cleanupPendingSpansForTransport)(t),(0,p.cleanupSessionDataForTransport)(t),n.call(this,...o)})}function O(t){t.onerror&&(0,n.fill)(t,"onerror",t=>function(n){return y(n),t.call(this,n)})}function T(t){try{if(t&&"object"==typeof t&&"code"in t&&"message"in t){const n=t;if(-32603===n.code||n.code>=-32099&&n.code<=-32e3){const t=new Error(n.message);t.name=`JsonRpcError_${n.code}`,(0,l.captureError)(t,"protocol")}}}catch{}}function y(t){try{(0,l.captureError)(t,"transport")}catch{}}},2704,[1797,1784,1818,2705,2706,2703,2709,2710,2711,2708]);
1180__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CLIENT_ADDRESS_ATTRIBUTE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"CLIENT_PORT_ATTRIBUTE",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"MCP_FUNCTION_ORIGIN_VALUE",{enumerable:!0,get:function(){return G}}),Object.defineProperty(e,"MCP_LOGGING_DATA_TYPE_ATTRIBUTE",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"MCP_LOGGING_LEVEL_ATTRIBUTE",{enumerable:!0,get:function(){return A}}
1180),Object.defineProperty(e,"MCP_LOGGING_LOGGER_ATTRIBUTE",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"MCP_LOGGING_MESSAGE_ATTRIBUTE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(e,"MCP_METHOD_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE",{enumerable:!0,get:function(){return L}}),Object.defineProperty(e,"MCP_NOTIFICATION_ORIGIN_VALUE",{enumerable:!0,get:function(){return V}}),Object.defineProperty(e,"MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"MCP_PROMPT_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"MCP_PROTOCOL_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"MCP_REQUEST_ARGUMENT",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"MCP_REQUEST_ID_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"MCP_RESOURCE_URI_ATTRIBUTE",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"MCP_ROUTE_SOURCE_VALUE",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"MCP_SERVER_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"MCP_SERVER_OP_VALUE",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"MCP_SERVER_TITLE_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"MCP_SERVER_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"MCP_SESSION_ID_ATTRIBUTE",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"MCP_TOOL_NAME_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"MCP_TRANSPORT_ATTRIBUTE",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"NETWORK_PROTOCOL_VERSION_ATTRIBUTE",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"NETWORK_TRANSPORT_ATTRIBUTE",{enumerable:!0,get:function(){return N}});const t="mcp.method.name",n="mcp.request.id",T="mcp.session.id",o="mcp.transport",_="mcp.server.name",u="mcp.server.title",c="mcp.server.version",O="mcp.protocol.version",E="mcp.tool.name",P="mcp.resource.uri",R="mcp.prompt.name",p="mcp.tool.result.is_error",f="mcp.tool.result.content_count",b="mcp.prompt.result.description",I="mcp.prompt.result.message_count",l="mcp.request.argument",A="mcp.logging.level",U="mcp.logging.logger",C="mcp.logging.data_type",M="mcp.logging.message",N="network.transport",s="network.protocol.version",y="client.address",j="client.port",S="mcp.server",L="mcp.notification.client_to_server",B="mcp.notification.server_to_client",G="auto.function.mcp_server",V="auto.mcp.notification",v="route"},2705,[]);
1181__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupPendingSpansForTransport",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"completeSpanWithResults",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"storeSpanForRequest",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]);const c=new Map,u=new WeakMap;function l(t){const n=t.sessionId;if(n){let t=c.get(n);return t||(t=new Map,c.set(n,t)),t}let s=u.get(t);return s||(s=new Map,u.set(t,s)),s}function p(t,n,s,o){l(t).set(n,{span:s,method:o,startTime:Date.now()})}function f(c,u,p,f,S=!1){const R=l(c),b=R.get(u);if(b){const{span:c,method:l}=b;if(S)c.setStatus({code:t.SPAN_STATUS_ERROR,message:"internal_error"});else if("initialize"===l){const t=(0,o.extractSessionDataFromInitializeResponse)(p),s={...(0,o.buildServerAttributesFromInfo)(t.serverInfo)};t.protocolVersion&&(s[n.MCP_PROTOCOL_VERSION_ATTRIBUTE]=t.protocolVersion),c.setAttributes(s)}else if("tools/call"===l){const t=(0,s.extractToolResultAttributes)(p,f.recordOutputs);c.setAttributes(t)}else if("prompts/get"===l){const t=(0,s.extractPromptResultAttributes)(p,f.recordOutputs);c.setAttributes(t)}c.end(),R.delete(u)}}function S(n){const s=n.sessionId;if(s){const n=c.get(s);if(n){for(const[,s]of n)s.span.setStatus({code:t.SPAN_STATUS_ERROR,message:"cancelled"}),s.span.end();c.delete(s)}return}const o=u.get(n);if(o){for(const[,n]of o)n.span.setStatus({code:t.SPAN_STATUS_ERROR,message:"cancelled"}),n.span.end();
1181o.clear()}}},2706,[1799,2705,2707,2709]);
1182__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractPromptResultAttributes",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"extractToolResultAttributes",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);function o(o,s){const i={[t.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE]:o.length};for(const[t,c]of o.entries()){if(!(0,n.isValidContentItem)(c))continue;const u=1===o.length?"mcp.tool.result":`mcp.tool.result.${t}`;if("string"==typeof c.type&&(i[`${u}.content_type`]=c.type),s){const t=(t,n)=>{"string"==typeof n&&(i[`${u}.${t}`]=n)};t("mime_type",c.mimeType),t("uri",c.uri),t("name",c.name),"string"==typeof c.text&&(i[`${u}.content`]=c.text),"string"==typeof c.data&&(i[`${u}.data_size`]=c.data.length);const o=c.resource;(0,n.isValidContentItem)(o)&&(t("resource_uri",o.uri),t("resource_mime_type",o.mimeType))}}return i}function s(s,i){if(!(0,n.isValidContentItem)(s))return{};const c=Array.isArray(s.content)?o(s.content,i):{};return"boolean"==typeof s.isError&&(c[t.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE]=s.isError),c}function i(o,s){const i={};if(!(0,n.isValidContentItem)(o))return i;if(s&&"string"==typeof o.description&&(i[t.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE]=o.description),Array.isArray(o.messages)&&(i[t.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE]=o.messages.length,s)){const t=o.messages;for(const[o,s]of t.entries()){if(!(0,n.isValidContentItem)(s))continue;const c=1===t.length?"mcp.prompt.result":`mcp.prompt.result.${o}`;if(((n,o)=>{if("string"==typeof o){const s=1===t.length?`${c}.message_${n}`:`${c}.${n}`;i[s]=o}})("role",s.role),(0,n.isValidContentItem)(s.content)){const n=s.content;if("string"==typeof n.text){const o=1===t.length?`${c}.message_content`:`${c}.content`;i[o]=n.text}}}}return i}},2707,[2705,2708]);
1183__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isJsonRpcNotification",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isJsonRpcRequest",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isJsonRpcResponse",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isValidContentItem",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"validateMcpServerInstance",{enumerable:!0,get:function(){return s}});var n=r(d[0]),t=r(d[1]);function o(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"method"in n&&"id"in n}function c(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"method"in n&&!("id"in n)}function u(n){return"object"==typeof n&&null!==n&&"jsonrpc"in n&&"2.0"===n.jsonrpc&&"id"in n&&("result"in n||"error"in n)}function s(o){return"object"==typeof o&&null!==o&&"connect"in o&&("tool"in o&&"resource"in o&&"prompt"in o||"registerTool"in o&&"registerResource"in o&&"registerPrompt"in o)||(n.DEBUG_BUILD&&t.debug.warn("Did not patch MCP server. Interface is incompatible."),!1)}function p(n){return null!=n&&"object"==typeof n}},2708,[1768,1772]);
1184__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildClientAttributesFromInfo",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"buildServerAttributesFromInfo",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"buildTransportAttributes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"extractClientInfo",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"extractSessionDataFromInitializeRequest",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"extractSessionDataFromInitializeResponse",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getClientAttributes",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getServerAttributes",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getTransportTypes",{enumerable:!0,get:function(){return R}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(t){const n={};return(0,o.isValidContentItem)(t)&&("string"==typeof t.name&&(n.name=t.name),"string"==typeof t.title&&(n.title=t.title),"string"==typeof t.version&&(n.version=t.version)),n}function c(t){const n={};return(0,o.isValidContentItem)(t.params)&&("string"==typeof t.params.protocolVersion&&(n.protocolVersion=t.params.protocolVersion),t.params.clientInfo&&(n.clientInfo=s(t.params.clientInfo))),n}function u(t){const n={};return(0,o.isValidContentItem)(t)&&("string"==typeof t.protocolVersion&&(n.protocolVersion=t.protocolVersion),t.serverInfo&&(n.serverInfo=s(t.serverInfo))),n}function T(t){const o=(0,n.getClientInfoForTransport)(t),s={};return o?.name&&(s["mcp.client.name"]=o.name),o?.title&&(s["mcp.client.title"]=o.title),o?.version&&(s["mcp.client.version"]=o.version),s}function l(t){const n={};return t?.name&&(n["mcp.client.name"]=t.name),t?.title&&(n["mcp.client.title"]=t.title),t?.version&&(n["mcp.client.version"]=t.version),n}function p(o){const s=(0,n.getSessionDataForTransport)(o)?.serverInfo,c={};return s?.name&&(c[t.MCP_SERVER_NAME_ATTRIBUTE]=s.name),s?.title&&(c[t.MCP_SERVER_TIT
1184LE_ATTRIBUTE]=s.title),s?.version&&(c[t.MCP_SERVER_VERSION_ATTRIBUTE]=s.version),c}function f(n){const o={};return n?.name&&(o[t.MCP_SERVER_NAME_ATTRIBUTE]=n.name),n?.title&&(o[t.MCP_SERVER_TITLE_ATTRIBUTE]=n.title),n?.version&&(o[t.MCP_SERVER_VERSION_ATTRIBUTE]=n.version),o}function I(t){return{address:t?.requestInfo?.remoteAddress||t?.clientAddress||t?.request?.ip||t?.request?.connection?.remoteAddress,port:t?.requestInfo?.remotePort||t?.clientPort||t?.request?.connection?.remotePort}}function R(t){if(!t?.constructor)return{mcpTransport:"unknown",networkTransport:"unknown"};const n="string"==typeof t.constructor?.name?t.constructor.name:"unknown";let o="unknown";const s=n.toLowerCase();return s.includes("stdio")?o="pipe":(s.includes("http")||s.includes("sse"))&&(o="tcp"),{mcpTransport:n,networkTransport:o}}function E(o,s){const c=o&&"sessionId"in o?o.sessionId:void 0,u=s?I(s):{},{mcpTransport:l,networkTransport:f}=R(o),E=T(o),_=p(o),P=(0,n.getProtocolVersionForTransport)(o);return{...c&&{[t.MCP_SESSION_ID_ATTRIBUTE]:c},...u.address&&{[t.CLIENT_ADDRESS_ATTRIBUTE]:u.address},...u.port&&{[t.CLIENT_PORT_ATTRIBUTE]:u.port},[t.MCP_TRANSPORT_ATTRIBUTE]:l,[t.NETWORK_TRANSPORT_ATTRIBUTE]:f,[t.NETWORK_PROTOCOL_VERSION_ATTRIBUTE]:"2.0",...P&&{[t.MCP_PROTOCOL_VERSION_ATTRIBUTE]:P},...E,..._}}},2709,[2705,2710,2708]);
1185__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupSessionDataForTransport",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getClientInfoForTransport",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getProtocolVersionForTransport",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getSessionDataForTransport",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"storeSessionDataForTransport",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"updateSessionDataForTransport",{enumerable:!0,get:function(){return c}});const n=new Map,t=new WeakMap;function o(o){const u=o.sessionId;return u?n.get(u):t.get(o)}function u(o,u){const s=o.sessionId;s?n.set(s,u):t.set(o,u)}function s(n,t){u(n,t)}function c(n,t){u(n,{...o(n)||{},...t})}function f(n){return o(n)?.clientInfo}function p(n){return o(n)?.protocolVersion}function l(n){return o(n)}function b(t){const o=t.sessionId;o&&n.delete(o)}},2710,[]);
1186__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildMcpServerSpanConfig",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createMcpNotificationSpan",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createMcpOutgoingNotificationSpan",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),_=r(d[4]),u=r(d[5]),s=r(d[6]),T=r(d[7]);function p(t,n){return n?`${t} ${n}`:t}function I(t){let o,c;switch(t){case"request":o=_.MCP_SERVER_OP_VALUE,c=_.MCP_FUNCTION_ORIGIN_VALUE;break;case"notification-incoming":o=_.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE,c=_.MCP_NOTIFICATION_ORIGIN_VALUE;break;case"notification-outgoing":o=_.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE,c=_.MCP_NOTIFICATION_ORIGIN_VALUE}return{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:o,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c,[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:_.MCP_ROUTE_SOURCE_VALUE}}function E(n){const{type:E,message:f,transport:O,extra:l,callback:C,options:A}=n,{method:N}=f,b=f.params;let M;if("request"===E){M=p(N,(0,u.extractTargetInfo)(N,b||{}).target)}else M=N;const R={...(0,T.buildTransportAttributes)(O,l),[_.MCP_METHOD_NAME_ATTRIBUTE]:N,...(0,c.buildTypeSpecificAttributes)(E,f,b,A?.recordInputs),...I(E)},P=(0,t.getClient)(),S=Boolean(P?.getDataCollectionOptions().userInfo),U=(0,s.filterMcpPiiFromSpanData)(R,S);return(0,o.startSpan)({name:M,forceTransaction:!0,attributes:U},C)}function f(t,n,o,c,_){return E({type:"notification-incoming",message:t,transport:n,extra:o,callback:_,options:c})}function O(t,n,o,c){return E({type:"notification-outgoing",message:t,transport:n,options:o,callback:c})}function l(n,o,E,f){const{method:O}=n,l=n.params,C=p(O,(0,u.extractTargetInfo)(O,l||{}).target),A={...(0,T.buildTransportAttributes)(o,E),[_.MCP_METHOD_NAME_ATTRIBUTE]:O,...(0,c.buildTypeSpecificAttributes)("request",n,l,f?.recordInputs),...I("request")},N=(0,t.getClient)(),b=Boolean(N?.getDataCollectionOptions().userInfo),M=(0,s.filterMcpPiiFromSpanData)(A,b);return{name:C,op:_.MCP_SERVER_OP_VALUE,forceTransaction:!0,attributes:M}}},2711,[1797,1798,1818,2712,2705,2713,2714,2709]);
1187__d(function(g,r,i,a,m,e,d){"use strict";
1187Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildTypeSpecificAttributes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getNotificationAttributes",{enumerable:!0,get:function(){return n}});var t=r(d[0]),o=r(d[1]),s=r(d[2]);function n(s,n,c){const p={};switch(s){case"notifications/cancelled":n?.requestId&&(p["mcp.cancelled.request_id"]=String(n.requestId)),n?.reason&&(p["mcp.cancelled.reason"]=String(n.reason));break;case"notifications/message":n?.level&&(p[o.MCP_LOGGING_LEVEL_ATTRIBUTE]=String(n.level)),n?.logger&&(p[o.MCP_LOGGING_LOGGER_ATTRIBUTE]=String(n.logger)),void 0!==n?.data&&(p[o.MCP_LOGGING_DATA_TYPE_ATTRIBUTE]=typeof n.data,c&&(p[o.MCP_LOGGING_MESSAGE_ATTRIBUTE]="string"==typeof(u=n.data)?u:JSON.stringify(u)));break;case"notifications/progress":n?.progressToken&&(p["mcp.progress.token"]=String(n.progressToken)),"number"==typeof n?.progress&&(p["mcp.progress.current"]=n.progress),"number"==typeof n?.total&&(p["mcp.progress.total"]=n.total,"number"==typeof n?.progress&&(p["mcp.progress.percentage"]=n.progress/n.total*100)),n?.message&&(p["mcp.progress.message"]=String(n.message));break;case"notifications/resources/updated":if(n?.uri){p[o.MCP_RESOURCE_URI_ATTRIBUTE]=String(n.uri);const s=(0,t.parseStringToURLObject)(String(n.uri));s&&!(0,t.isURLObjectRelative)(s)&&(p["mcp.resource.protocol"]=s.protocol.replace(":",""))}break;case"notifications/initialized":p["mcp.lifecycle.phase"]="initialization_complete",p["mcp.protocol.ready"]=1}var u;return p}function c(t,c,p,u){if("request"===t){const t=c,n=(0,s.extractTargetInfo)(t.method,p||{});return{...void 0!==t.id&&{[o.MCP_REQUEST_ID_ATTRIBUTE]:String(t.id)},...n.attributes,...u?(0,s.getRequestArguments)(t.method,p||{}):{}}}return n(c.method,p||{},u)}},2712,[1867,2705,2713]);
1188__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"extractTargetInfo",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getRequestArguments",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const u={"tools/call":{targetField:"name",targetAttribute:t.MCP_TOOL_NAME_ATTRIBUTE,captureArguments:!0,argumentsField:"arguments"},"resources/read":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE,captureUri:!0},"resources/subscribe":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE},"resources/unsubscribe":{targetField:"uri",targetAttribute:t.MCP_RESOURCE_URI_ATTRIBUTE},"prompts/get":{targetField:"name",targetAttribute:t.MCP_PROMPT_NAME_ATTRIBUTE,captureName:!0,captureArguments:!0,argumentsField:"arguments"}};function n(t,n){const s=u[t];if(!s)return{attributes:{}};const c=s.targetField&&"string"==typeof n?.[s.targetField]?n[s.targetField]:void 0;return{target:c,attributes:c&&s.targetAttribute?{[s.targetAttribute]:c}:{}}}function s(n,s){const c={},o=u[n];if(!o)return c;if(o.captureArguments&&o.argumentsField&&s?.[o.argumentsField]){const u=s[o.argumentsField];if("object"==typeof u&&null!==u)for(const[n,s]of Object.entries(u))c[`${t.MCP_REQUEST_ARGUMENT}.${n.toLowerCase()}`]=JSON.stringify(s)}return o.captureUri&&s?.uri&&(c[`${t.MCP_REQUEST_ARGUMENT}.uri`]=JSON.stringify(s.uri)),o.captureName&&s?.name&&(c[`${t.MCP_REQUEST_ARGUMENT}.name`]=JSON.stringify(s.name)),c}},2713,[2705]);
1189__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filterMcpPiiFromSpanData",{enumerable:!0,get:function(){return T}});var t=r(d[0]);const n=new Set([t.CLIENT_ADDRESS_ATTRIBUTE,t.CLIENT_PORT_ATTRIBUTE,t.MCP_RESOURCE_URI_ATTRIBUTE]);function u(t){return n.has(t)}function T(t,n){return n?t:Object.entries(t).reduce((t,[n,T])=>(u(n)||(t[n]=T),t),{})}},2714,[2705]);
1190__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"filenameIsInApp",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"node",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"nodeStackLineParser",{enumerable:!0,get:function(){return c}});var n=r(d[0]);function t(n,t=!1){return!(t||n&&!n.startsWith("/")&&!n.match(/^[A-Z]:/)&&!n.startsWith(".")&&!n.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==n&&!n.includes("node_modules/")}function o(o){const c=/^\s*[-]{4,}$/,f=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/,l=/at (?:async )?(.+?) \(data:(.*?),/;return v=>{const h=v.match(l);
1190if(h)return{filename:`<data:${h[2]}>`,function:h[1]};const p=v.match(f);if(p){let c,f,l,v,h;if(p[1]){l=p[1];let n=l.lastIndexOf(".");if("."===l[n-1]&&n--,n>0){c=l.slice(0,n),f=l.slice(n+1);const t=c.indexOf(".Module");t>0&&(l=l.slice(t+1),c=c.slice(0,t))}v=void 0}f&&(v=c,h=f),"<anonymous>"===f&&(h=void 0,l=void 0),void 0===l&&(h=h||n.UNKNOWN_FUNCTION,l=v?`${v}.${h}`:h);let y=(0,n.normalizeStackTracePath)(p[2]);const O="native"===p[5];y||!p[5]||O||(y=p[5]);const b=y?s(y):void 0;return{filename:b??y,module:b&&o?.(b),function:l,lineno:u(p[3]),colno:u(p[4]),in_app:t(y||"",O)}}return v.match(c)?{filename:v}:void 0}}function c(n){return[90,o(n)]}function u(n){return parseInt(n||"",10)||void 0}function s(n){try{return decodeURI(n)}catch{return}}},2715,[1775]);
1191__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"vercelWaitUntil",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){if("string"!=typeof EdgeRuntime)return;const o=t.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],u=o?.get?.();u?.waitUntil&&u.waitUntil(n)}},2716,[1770]);
1192__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"flushIfServerless",{enumerable:!0,get:function(){return u}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]);async function l(n){try{t.debug.log("Flushing events..."),await(0,e.flush)(n),t.debug.log("Done flushing events")}catch(e){t.debug.log("Error while flushing events:\n",e)}}async function u(e={}){const{timeout:t=2e3}=e;if("cloudflareWaitUntil"in e&&"function"==typeof e?.cloudflareWaitUntil)return void e.cloudflareWaitUntil(l(t));if("cloudflareCtx"in e&&"function"==typeof e.cloudflareCtx?.waitUntil)return void e.cloudflareCtx.waitUntil(l(t));if(o.GLOBAL_OBJ[Symbol.for("@vercel/request-context")])return void(0,n.vercelWaitUntil)(l(t));if("undefined"==typeof process)return;!!(process.env.FUNCTIONS_WORKER_RUNTIME||process.env.LAMBDA_TASK_ROOT||process.env.K_SERVICE||process.env.CF_PAGES||process.env.VERCEL||process.env.NETLIFY)&&await l(t)}},2717,[1825,1772,2716,1770]);
1193__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"callFrameToStackFrame",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"watchdogTimer",{enumerable:!0,get:function(){return t}});var n=r(d[0]),o=r(d[1]);function t(n,o,t,l){const c=n();let u=!1,f=!0;return setInterval(()=>{const n=c.getTimeMs();!1===u&&n>o+t&&(u=!0,f&&l()),n<o+t&&(u=!1)},20),{poll:()=>{c.reset()},enabled:n=>{f=n}}}function l(t,l,c){const u=l?l.replace(/^file:\/\//,""):void 0,f=t.location.columnNumber?t.location.columnNumber+1:void 0,b=t.location.lineNumber?t.location.lineNumber+1:void 0;return{filename:u,module:c(u),function:t.functionName||o.UNKNOWN_FUNCTION,colno:f,lineno:b,in_app:u?(0,n.filenameIsInApp)(u):void 0}}},2718,[2715,1775]);
1194__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"expressErrorHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"patchExpressModule",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"setupExpressErrorHandler",{enumerable:!0,get:function(){return y}});var e=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),n=r(d[4]),u=r(d[5]),p=r(d[6]),c=r(d[7]);let h=!1;function l(t,p){let l,f;if(!p&&t.express){const{express:s,...n}=t;f=s,l=()=>n,h||(h=!0,o.DEBUG_BUILD&&e.debug.warn("[Express] `patchExpressModule(options)` is deprecated. Use `patchExpressModule(moduleExports, getOptions)` instead."))}else{if("function"!=typeof p)throw new TypeError("`patchExpressModule(moduleExports, getOptions)` requires a `getOptions` callback");l=p,f=t}const y=(0,c.getDefaultExport)(f),E=(0,s.isExpressWithRouterPrototype)(y)?y.Router.prototype:(0,s.isExpressWithoutRouterPrototype)(y)?y.Router:void 0;if(!E)throw new TypeError("no valid Express route function to instrument");const x=E.route;try{(0,n.wrapMethod)(E,"route",function(...e){const t=x.apply(this,e),o=this.stack[this.stack.length-1];return(0,u.patchLayer)(l,o,(0,s.getLayerPath)(e)),t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express route method:",t)}const b=E.use;try{(0,n.wrapMethod)(E,"use",function(...e){const t=b.apply(this,e),o=this.stack[this.stack.length-1];return o?((0,u.patchLayer)(l,o,(0,s.getLayerPath)(e)),t):t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express use method:",t)}const{application:P}=y,D=P.use;try{(0,n.wrapMethod)(P,"use",function(...e){const t=D.apply(this,e),o=(0,s.isExpressWithRouterPrototype)(y)?this.router:this._router;if(o){const t=o.stack[o.stack.length-1];t&&(0,u.patchLayer)(l,t,(0,s.getLayerPath)(e))}return t})}catch(t){o.DEBUG_BUILD&&e.debug.error("Failed to patch express application.use method:",t)}return y}function f(e){return function(o,n,u,c){(0,p.setSDKProcessingMetadata)(n);if((e?.shouldHandleError||s.defaultShouldHandleError)(o)){const e=(0,t.captureException)(o,{mechanism:{type:"auto.middleware.express",handled:!1}});u.sentry=e}c(o)}}function y(e,t){e.use(function(e,t,o){(0,p.setSDKProcessingMetadata)(e),o()}),e.use(f(t))}},2719,[1772,1825,1768,2720,1784,2723,2724,2725]);
1195__d(function(g,r,i,a,m,e,d){"use strict";
1195Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"asErrorAndMessage",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"defaultShouldHandleError",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"getActualMatchedRoute",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"getConstructedRoute",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getLayerMetadata",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getLayerPath",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getRouterPath",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"isExpressWithRouterPrototype",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"isExpressWithoutRouterPrototype",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"isLayerIgnored",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isRoutePattern",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);const o=t=>t instanceof Error?[t,t.message]:[String(t),String(t)];function s(t){return t.includes(":")||t.includes("*")}const c=(t,u,o)=>{if("router"===u.name){const s=y("",u),c=s||(o||t||"/");return{attributes:{[n.ATTR_EXPRESS_NAME]:c,[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_ROUTER},name:`router - ${c}`}}return"bound dispatch"===u.name||"handle"===u.name?{attributes:{[n.ATTR_EXPRESS_NAME]:(t||o)??"request handler",[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_REQUEST_HANDLER},name:"request handler"+(u.path?` - ${t||o}`:"")}:{attributes:{[n.ATTR_EXPRESS_NAME]:u.name,[n.ATTR_EXPRESS_TYPE]:n.ExpressLayerType_MIDDLEWARE},name:`middleware - ${u.name}`}},y=(t,n)=>{const u=Array.isArray(n.handle?.stack)?n.handle?.stack?.[0]:void 0;return u?.route?.path?`${t}${u.route.path}`:u&&Array.isArray(u?.handle?.stack)?y(t,u):t},f=(t,n,o)=>{if(Array.isArray(o?.ignoreLayersType)&&o?.ignoreLayersType?.includes(n))return!0;if(!Array.isArray(o?.ignoreLayers))return!1;try{return(0,u.stringMatchesSomePattern)(t,o.ignoreLayers,!0)}catch{}return!1};function l(n,u){const o=(0,t.getStoredLayers)(n);if(0===o.length)return;if(o.every(t=>"/"===t))return"/"===n.originalUrl?"/":void 0;if("*"===u)return u;if(u.includes("/")&&(u.includes(",")||u.includes("\\")||u.includes("*")||u.includes("[")))return u;const c=u.startsWith("/")?u:`/${u}`;return c.length>0&&(n.originalUrl===c||n.originalUrl.startsWith(c)||s(c))?c:void 0}function p(n){const u=(0,t.getStoredLayers)(n);let o="";for(const t of u)"/"!==t&&"/*"!==t&&(o+=!o||o.endsWith("/")?t:`/${t}`);return o.replace(/\/{2,}/g,"/")}const E=t=>{const n=t[0];return Array.isArray(n)?n.map(t=>b(t)||"").join(","):b(n)},b=t=>"string"==typeof t?t:t instanceof RegExp||"number"==typeof t?String(t):void 0,P=t=>R(t?.Router?.prototype),R=t=>("object"==typeof t||"function"==typeof t)&&!!t&&"route"in t&&"function"==typeof t.route,h=t=>R(t.Router)&&!P(t);function A(t){const n=t.status||t.statusCode||t.status_code||t.output?.statusCode;return n?parseInt(n,10):500}function T(t){return A(t)>=500}},2720,[2721,2722,1787]);
1196__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getStoredLayers",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"storeLayer",{enumerable:!0,get:function(){return n}});const t=new WeakMap,n=(n,u)=>{const o=t.get(n);o?o.push(u):t.set(n,[u])},u=n=>{let u=t.get(n);return u||(u=[],t.set(n,u)),u}},2721,[]);
1197__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ATTR_EXPRESS_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ATTR_EXPRESS_TYPE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"ATTR_HTTP_ROUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"ExpressLayerType_MIDDLEWARE",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"ExpressLayerType_REQUEST_HANDLER",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"ExpressLayerType_ROUTER",{enumerable:!0,get:function(){return o}});const t="express.name",n="http.route",u="express.type",o="router",p="middleware",c="request_handler"},2722,[]);
1198__d(function(g,r,_i,a,m,e,d){"use strict";
1198Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchLayer",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),i=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),l=r(d[8]),T=r(d[9]),f=r(d[10]),E=r(d[11]),R=r(d[12]);function S(S,_,h){if(!_?.handle)return;const A=_,y=A.handle;if(!(0,c.getOriginalFunction)(y)&&4!==y.length){for(const t in y)t in b||Object.defineProperty(b,t,{get:()=>y[t],set(n){y[t]=n}});(0,c.markFunctionWrapped)(b,y),Object.defineProperty(A,"handle",{enumerable:!0,configurable:!0,writable:!0,value:b})}function b(c,_,...b){const P=S();(0,R.setSDKProcessingMetadata)(c);const O=(0,o.getActiveSpan)();if(!O)return y.apply(this,[c,_,...b]);h&&(0,l.storeLayer)(c,h);const I=(0,l.getStoredLayers)(c),M=!!h,N=(0,f.getConstructedRoute)(c),U=(0,f.getActualMatchedRoute)(c,N);P.onRouteResolved?.(U);const L=(0,f.getLayerMetadata)(N,A,h),v=L.attributes[T.ATTR_EXPRESS_NAME],j=L.attributes[T.ATTR_EXPRESS_TYPE],w=Object.assign(L.attributes,{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.express",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${j}.express`});if(U&&(w[T.ATTR_HTTP_ROUTE]=U),(0,f.isLayerIgnored)(L.attributes[T.ATTR_EXPRESS_NAME],j,P))return M&&I.pop(),y.apply(this,[c,_,...b]);const B=(0,u.getIsolationScope)();if(B!==(0,E.getDefaultIsolationScope)()){if("request_handler"===j){const t=c.method?c.method.toUpperCase():"GET";B.setTransactionName(`${t} ${N}`)}}else t.DEBUG_BUILD&&s.debug.warn("Isolation scope is still default isolation scope - skipping setting transactionName");return(0,p.startSpanManual)({name:v,attributes:w},t=>{let n=!1;L.attributes[T.ATTR_EXPRESS_TYPE]===T.ExpressLayerType_ROUTER&&(t.end(),n=!0);const s=()=>{n||(n=!0,t.end())};for(let o=0;o<b.length;o++){const u=b[o];if("function"==typeof u){b[o]=function(...o){const l=o[0],T=!!l&&"route"!==l&&"router"!==l;if(!n&&T){const[n,s]=(0,f.asErrorAndMessage)(l);t.setStatus({code:i.SPAN_STATUS_ERROR,message:s})}return n||(n=!0,_.removeListener("finish",s),t.end()),c.route&&T||!M||I.pop(),(0,p.withActiveSpan)(O,()=>u.apply(this,o))};break}}try{return y.apply(this,[c,_,...b])}catch(n){const[s,o]=(0,f.asErrorAndMessage)(n);throw t.setStatus({code:i.SPAN_STATUS_ERROR,message:o}),n}finally{n||_.once("finish",s)}})}}},2723,[1768,1798,1772,1777,1799,1784,1797,1818,2721,2722,2720,1780,2724]);
1199__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setSDKProcessingMetadata",{enumerable:!0,get:function(){return s}});var t=r(d[0]),o=r(d[1]);function s(s){const n=(0,t.getIsolationScope)()?.getScopeData()?.sdkProcessingMetadata;if(!n?.normalizedRequest){const n=(0,o.httpRequestToRequestData)(s);(0,t.getIsolationScope)().setSDKProcessingMetadata({normalizedRequest:n})}}},2724,[1797,1876]);
1200__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return!!t&&"object"==typeof t&&"default"in t&&t.default||t}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getDefaultExport",{enumerable:!0,get:function(){return t}})},2725,[]);
1201__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"_reconstructQuery",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"_sanitizeSqlQuery",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"instrumentPostgresJsSql",{enumerable:!0,get:function(){return f}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),i=r(d[5]);const c=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,u=Symbol("sentryPostgresConnectionContext"),p=Symbol.for("sentry.instrumented.postgresjs"),l=Symbol.for("sentry.query.from.instrumented.sql");function f(t,o){return t&&"function"==typeof t?b(t,{requireParentSpan:!0,...o}):(e.DEBUG_BUILD&&n.debug.warn("instrumentPostgresJsSql: provided value is not a valid postgres.js sql instance"),t)}function b(e,t,n){if(e[p])return e;const o=new Proxy(e,{apply(e,n,s){const i=Reflect.apply(e,n,s);return i&&"object"==typeof i&&"handle"in i&&R(i,o,t),i},get(e,n){const s=e[n];return"string"!=typeof n||"function"!=typeof s?s:"unsafe"===n||"file"===n?y(s,e,o,t):"begin"===n||"reserve"===n?E(s,e,o,t):s}});return n?o[u]=n:D(e,o),e[p]=!0,o[p]=!0,o}function y(e,t,n,o){return function(...s){const i=Reflect.apply(e,t,s);return i&&"object"==typeof i&&"handle"in i&&R(i,n,o),i}}function E(e,t,n,o){return function(...s){const i=n[u];if(!("function"==typeof s[s.length-1])){const n=Reflect.apply(e,t,s);return n&&"function"==typeof n.then?n.then(e=>b(e,o,i)):n}const c=1===s.length?s[0]:s[1],p=function(e){const t=b(e,o,i);return c(t)},l=1===s.length?[p]:[s[0],p];return Reflect.apply(e,t,l)}}function R(o,c,p){if(o.handle?.__sentryWrapped)return;o[l]=!0;const f=o.handle,b=async function(...l){if(this.executed||!_(p))return f.apply(this,l);const b=T(A(o.strings));return(0,i.startSpanManual)({name:b||"postgresjs.query",op:"db"},o=>{o.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.postgresjs"),o.setAttributes({"db.system.name":"postgres","db.query.text":b});const i=c?c[u]:void 0;
1201if(h(o,i),p.requestHook)try{p.requestHook(o,b,i)}catch(t){o.setAttribute("sentry.hook.error","requestHook failed"),e.DEBUG_BUILD&&n.debug.error("Error in requestHook for PostgresJs instrumentation:",t)}const y=this;y.resolve=new Proxy(y.resolve,{apply:(t,s,i)=>{try{P(o,b,i?.[0]?.command),o.end()}catch(t){e.DEBUG_BUILD&&n.debug.error("Error ending span in resolve callback:",t)}return Reflect.apply(t,s,i)}}),y.reject=new Proxy(y.reject,{apply:(t,i,c)=>{try{o.setStatus({code:s.SPAN_STATUS_ERROR,message:c?.[0]?.message||"unknown_error"}),o.setAttribute("db.response.status_code",c?.[0]?.code||"unknown"),o.setAttribute("error.type",c?.[0]?.name||"unknown"),P(o,b),o.end()}catch(t){e.DEBUG_BUILD&&n.debug.error("Error ending span in reject callback:",t)}return Reflect.apply(t,i,c)}});try{return f.apply(this,l)}catch(e){throw o.setStatus({code:s.SPAN_STATUS_ERROR,message:e instanceof Error?e.message:"unknown_error"}),o.end(),e}})};b.__sentryWrapped=!0,o.handle=b}function _(e){return void 0!==(0,o.getActiveSpan)()||!e.requireParentSpan}function A(e){if(e?.length)return 1===e.length?e[0]||void 0:e.reduce((e,t,n)=>0===n?t:`${e}$${n}${t}`,"")}let S;function T(e){return e?(S||(S=new RegExp("(?<!\\$)-?\\b\\d+\\b","g")),e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(S,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)")):"Unknown SQL Query"}function h(e,t){if(t&&(t.ATTR_DB_NAMESPACE&&e.setAttribute("db.namespace",t.ATTR_DB_NAMESPACE),t.ATTR_SERVER_ADDRESS&&e.setAttribute("server.address",t.ATTR_SERVER_ADDRESS),void 0!==t.ATTR_SERVER_PORT)){const n=parseInt(t.ATTR_SERVER_PORT,10);isNaN(n)||e.setAttribute("server.port",n)}}function P(e,t,n){if(n)return void e.setAttribute("db.operation.name",n);const o=t?.match(c);o?.[1]&&e.setAttribute("db.operation.name",o[1].toUpperCase())}function D(e,t){const n=e;if(!n.options||"object"!=typeof n.options)return;const o=n.options,s=o.host?.[0]||"localhost",i=o.port?.[0]||5432,c={ATTR_DB_NAMESPACE:"string"==typeof o.database&&""!==o.database?o.database:void 0,ATTR_SERVER_ADDRESS:s,ATTR_SERVER_PORT:String(i)};t[u]=c}},2726,[1768,1798,1772,1777,1799,1818]);
1202__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSqlQuerySummary",{enumerable:!0,get:function(){return T}});const n=255,o=/[^\s(,;)]+/.source,s=new RegExp(`^\\s*(?<operation>(?:CREATE|DROP)\\s+(?:TABLE|INDEX)|ALTER\\s+TABLE)(?:\\s+IF\\s+(?:NOT\\s+)?EXISTS)?\\s+(?<table>${o})`,"i"),t=new RegExp(`^\\s*(?<operation>INSERT)\\s+INTO\\s+(?<table>${o})`,"i"),u=new RegExp(`^\\s*(?<operation>UPDATE)\\s+(?<table>${o})`,"i"),p=new RegExp(`^\\s*(?<operation>DELETE)\\s+FROM\\s+(?<table>${o})`,"i"),c=/^\s*\(?\s*(?<operation>SELECT)\b/i,l=/^\s*(?<operation>PRAGMA)\s+(?<command>\S+)/i,E=/\b(?:FROM|JOIN)\s+|\(\s*(SELECT)\b|\b(?:UNION|INTERSECT|EXCEPT|MINUS)\s+(?:ALL\s+)?(SELECT)\b/gi,b=/^(?:"[^"]*"|'[^']*'|[^\s(,;)]+)/,f=/^\s*,\s*((?:"[^"]*"|'[^']*'|[^\s(,;)]+))/,x=/^\(\s*(SELECT)\b/i;function T(n){if(!n)return;const o=l.exec(n);if(o?.groups?.operation&&o.groups.command){const n=o.groups.operation,s=o.groups.command,t=s.indexOf("(");return $(`${n} ${t>=0?s.substring(0,t):s}`)}const E=s.exec(n);if(E?.groups?.operation&&E.groups.table)return $(`${E.groups.operation} ${E.groups.table}`);const b=t.exec(n);if(b?.groups?.operation&&b.groups.table){const o=[b.groups.operation,b.groups.table],s=n.slice(b[0].length),t=/\b(SELECT)\b/i.exec(s);if(t?.[1]){o.push(t[1]);const n=h(s.slice(t.index));o.push(...n)}return $(o.join(" "))}const f=u.exec(n);if(f?.groups?.operation&&f.groups.table)return $(`${f.groups.operation} ${f.groups.table}`);const x=p.exec(n);if(x?.groups?.operation&&x.groups.table)return $(`${x.groups.operation} ${x.groups.table}`);const T=c.exec(n);if(T?.groups?.operation){const o=h(n.slice(T[0].length));return o.length>0?$(`${T.groups.operation} ${o.join(" ")}`):T.groups.operation}return $(n.trim().split(/\s+/)[0]??n)}function h(n){const o=[];let s;for(E.lastIndex=0;null!==(s=E.exec(n));){if(s[1]||s[2]){o.push(s[1]||s[2]);continue}const t=n.slice(s.index+s[0].length),u=x.exec(t);if(u?.[1]){o.push(u[1]),E.lastIndex=s.index+s[0].length+u[0].length;continue}const p=b.exec(t);if(!p)continue;o.push(p[0]);let c,l=t.slice(p[0].length);for(;null!==(c=f.exec(l))&&c[1];)o.push(c[1]),l=l.slice(c[0].length)}return o}function $(o){if(o.length<=n)return o;const s=o.substring(0,n),t=s.lastIndexOf(" ");return t>0?s.substring(0,t):s}},2727,[]);
1203__d(function(g,r,i,a,m,e,d){"use strict";
1203Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchHttpModuleClient",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);function c(t,c){if(!(0,o.getOriginalFunction)(t.request)){const{[n.HTTP_ON_CLIENT_REQUEST]:s}=(0,u.getHttpClientSubscriptions)({...c,http:t}),f=t.request;(0,o.wrapMethod)(t,"request",function(...t){const o=f.apply(this,t);return s({request:o},n.HTTP_ON_CLIENT_REQUEST),o})}}function s(t){(0,o.getOriginalFunction)(t.get)||(0,o.wrapMethod)(t,"get",function(n,o,u){const c=t.request.call(this,n,o,u);return c.end(),c})}function f(n,o={}){const u=(0,t.getDefaultExport)(n),p=n;if(u!==n){f(u,o);for(const t of["get","request"]){const n=Object.getOwnPropertyDescriptor(u,t);n&&Object.defineProperty(p,t,n)}return p}return c(p,o),s(p),n}const p=(t,n={})=>f(t,n)},2728,[2725,2729,1784,2730]);
1204__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HTTP_ON_CLIENT_REQUEST",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"HTTP_ON_SERVER_REQUEST",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"LOG_PREFIX",{enumerable:!0,get:function(){return t}});const t="@sentry/instrumentation-http",n="http.client.request.created",u="http.server.request.start"},2729,[]);
1205__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getHttpClientSubscriptions",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),u=r(d[4]),p=r(d[5]),c=r(d[6]),S=r(d[7]),R=r(d[8]),l=r(d[9]),_=r(d[10]),T=r(d[11]),b=r(d[12]);function P(P){const f=new S.LRUMap(100);return{[T.HTTP_ON_CLIENT_REQUEST]:S=>{if(!0===(0,s.getCurrentScope)().getScopeData().sdkProcessingMetadata[c.SUPPRESS_TRACING_KEY])return;const E=(0,s.getClient)()?.getOptions(),{errorMonitor:O="error",spans:C=!E||(0,p.hasSpansEnabled)(E),propagateTrace:U=!1,breadcrumbs:q=!0,http:v,https:A,suppressOtelWarning:L=!1}=P,{request:H}=S;if(P.ignoreOutgoingRequests?.((0,l.getRequestUrlFromClientRequest)(H),H))return;let I=!1;function D(n,o){I||(I=!0,(0,t.addOutgoingRequestBreadcrumb)(n,o))}if(!C)return q&&((N=H).on(O,()=>D(N,void 0)),N.prependListener("response",t=>{N.listenerCount("response")<=1&&t.resume(),t.on("end",()=>D(N,t)),t.on(O,()=>D(N,t))})),void(U&&(0,_.injectTracePropagationHeaders)(H,f));var N;L||(v&&(0,b.doubleWrapWarning)(v),A&&(0,b.doubleWrapWarning)(A));const j=(0,c.startInactiveSpan)((0,R.getOutgoingRequestSpanData)(H));P.outgoingRequestHook?.(j,H),U&&(j.isRecording()?(0,c.withActiveSpan)(j,()=>{(0,_.injectTracePropagationHeaders)(H,f)}):(0,_.injectTracePropagationHeaders)(H,f));let B=!1;function G(t){B||(B=!0,j.setStatus(t),j.end())}const W=()=>G({code:u.SPAN_STATUS_UNSET});H.on("close",W),H.on(O,t=>{n.DEBUG_BUILD&&o.debug.log(T.LOG_PREFIX,"outgoingRequest on request error()",t),q&&D(H,void 0),G({code:u.SPAN_STATUS_ERROR})}),H.prependListener("response",t=>{H.removeListener("close",W),H.listenerCount("response")<=1&&t.resume(),(0,R.setIncomingResponseSpanData)(t,j),P.outgoingResponseHook?.(j,t);let s=!1;function p(p){if(!s){s=!0,p&&n.DEBUG_BUILD&&o.debug.log(T.LOG_PREFIX,"outgoingRequest on response error()",p),q&&D(H,t);const c=t.aborted&&!t.complete,S=p||"number"!=typeof t.statusCode||c?{code:u.SPAN_STATUS_ERROR}:(0,u.getSpanStatusFromHttpCode)(t.statusCode);P.applyCustomAttributesOnSpan?.(j,H,t),G(S)}}t.on("end",()=>p()),t.on(O,p)})}}}},2730,[2731,1768,1772,1797,1799,1806,1818,1946,2733,2732,2734,2729,2735]);
1206__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addOutgoingRequestBreadcrumb",{enumerable:!0,get:function(){return o}});
1206var t=r(d[0]),s=r(d[1]),u=r(d[2]),n=r(d[3]);function o(o,c){const h=(0,n.getRequestUrlFromClientRequest)(o),p=(0,u.parseUrl)(h),l=c?.statusCode,b=(0,s.getBreadcrumbLogLevelFromHttpStatusCode)(l);(0,t.addBreadcrumb)({category:"http",data:{status_code:l,url:(0,u.getSanitizedUrlString)(p),"http.method":o.method||"GET",...p.search?{"http.query":p.search}:{},...p.hash?{"http.fragment":p.hash}:{}},type:"http",level:b},{event:"response",request:o,response:c})}},2731,[1878,1941,1867,2732]);
1207__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t.host||"",o=/^(.*):(\d+)$/.exec(n),u=o?o[1]:n,s=t.port??(o?Number(o[2]):void 0);return{method:t.method,port:s,protocol:t.protocol,host:t.host,hostname:u,path:t.path,headers:t.getHeaders()}}function n(t){try{return String(o(t))}catch{return""}}function o(t){const n=t.protocol||"http:",o=t.headers?.host&&String(t.headers?.host)||t.hostname||t.host||"",u=!t.port||80===t.port||443===t.port||/^(.*):(\d+)$/.test(o)?"":`:${t.port}`,s=t.path?t.path:"/",c=`${n}//${o}${u}`;return new URL(s.startsWith("//")?`${c}${s}`:s,c)}function u(o){return String(n(t(o)))}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getRequestOptions",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getRequestUrl",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getRequestUrlFromClientRequest",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getRequestUrlObject",{enumerable:!0,get:function(){return o}})},2732,[]);
1208__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getOutgoingRequestSpanData",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"setIncomingResponseSpanData",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function s(s){const p=(0,o.getRequestUrlFromClientRequest)(s),[u,c]=(0,n.getHttpSpanDetail
1208sFromUrlObject)((0,n.parseStringToURLObject)(p),"client","auto.http.client",s),h=s.getHeader("user-agent");return{name:u,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client","otel.kind":"CLIENT","http.url":p,"http.method":s.method,"http.target":s.path||"/","net.peer.name":s.host,"http.host":s.getHeader("host"),...h?{"user_agent.original":h}:{},...c},onlyIfParent:!0}}function p(t,n){const{statusCode:o,statusMessage:s,httpVersion:p,socket:h}=t,l="QUIC"!==p?.toUpperCase()?"ip_tcp":"ip_udp";n.setAttributes({"http.response.status_code":o,"network.protocol.version":p,"http.flavor":p,"network.transport":l,"net.transport":l,"http.status_text":s?.toUpperCase(),"http.status_code":o,...c(t),...u(h)})}function u(t){if(!t)return{};const{remoteAddress:n,remotePort:o}=t;return{"network.peer.address":n,"network.peer.port":o,"net.peer.ip":n,"net.peer.port":o}}function c(t){const{headers:n}=t,o=n["content-length"],s=o?parseInt(String(o),10):-1,p=n["content-encoding"];return s>=0?p&&"identity"!==p?{"http.response_content_length":s}:{"http.response_content_length_uncompressed":s}:{}}},2733,[1798,1867,2732]);
1209__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"injectTracePropagationHeaders",{enumerable:!0,get:function(){return _}});var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),c=r(d[5]),u=r(d[6]),p=r(d[7]),U=r(d[8]);function _(_,E){const b=(0,p.getRequestUrlFromClientRequest)(_),l=(0,e.getClient)()?.getOptions(),{tracePropagationTargets:B,propagateTraceparent:D}=l??{};if(!(0,c.shouldPropagateTraceForUrl)(b,B,E))return;if(!!_.getHeader("sentry-trace"))return;const f=(0,s.getTraceData)({propagateTraceparent:D});if(!f)return;const{"sentry-trace":G,baggage:I,traceparent:L}=f;if(G)try{_.setHeader("sentry-trace",G),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added sentry-trace header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set sentry-trace header:",(0,o.isError)(e)?e.message:"Unknown error")}if(L&&!_.getHeader("traceparent"))try{_.setHeader("traceparent",L),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added traceparent header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set traceparent header:",(0,o.isError)(e)?e.message:"Unknown error")}if(I){const e=(0,U.mergeBaggageHeaders)(_.getHeader("baggage"),I);if(e)try{_.setHeader("baggage",e),t.DEBUG_BUILD&&n.debug.log(u.LOG_PREFIX,"Added baggage header")}catch(e){t.DEBUG_BUILD&&n.debug.error(u.LOG_PREFIX,"Failed to set baggage header:",(0,o.isError)(e)?e.message:"Unknown error")}}}},2734,[1797,1768,1772,1785,1872,1873,2729,2732,1802]);
1210__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"doubleWrapWarning",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"warning",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]);const o=t=>"function"==typeof t.__unwrap,s="Double-wrapped http.client detected. Either disable spans in Sentry.httpIntegration, or disable the OpenTelemetry HTTP instrumentation. See: https://docs.sentry.io/platforms/javascript/guides/express/opentelemetry/custom-setup/#custom-http-instrumentation";let u=!1;const p=t.DEBUG_BUILD?t=>{u||(o(t.request)||o(t.get))&&(u=!0,n.debug.warn(s))}:()=>{}},2735,[1768,1772]);
1211__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getHttpServerSubscriptions",{enumerable:!0,get:function(){return U}}),Object.defineProperty(e,"instrumentServer",{enumerable:!0,get:function(){return q}}),Object.defineProperty(e,"isStaticAssetRequest",{enumerable:!0,get:function(){return O}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]),u=r(d[5]),c=r(d[6]),l=r(d[7]),S=r(d[8]),h=r(d[9]),_=r(d[10]),R=r(d[11]),f=r(d[12]),T=r(d[13]),E=r(d[14]);const A="Http.Server",y="Http.SentryServerSpans",C=new WeakMap,I=Symbol.for("sentry_http_server_instrumented");function b(t){return!t[I]&&(t[I]=!0)}function q(t,p){const f=p.emit;if(f===C.get(p))return;const T=new Proxy(f,{apply(p,f,T){const[E,...y]=T;if("request"!==E)return p.apply(f,T);const C=(0,o.getClient)(),[I,q]=y;if(!C||!b(I))return p.apply(f,T);n.DEBUG_BUILD&&s.debug.log(A,"Handling incoming request");const U=(0,o.getIsolationScope)().clone();U.setClient(C);const v=I.socket?.remoteAddress,N=I.url||"/",O=(0,u.httpRequestToRequestData)(I),{maxRequestBodySize:P="medium",ignoreRequestBody:D,sessions:w=!0,sessionFlushingDelayMS:M=6e4}=t;"none"===P||D?.(N,I)||(0,c.patchRequestToCaptureBody)(I,U,P,A),U.setSDKProcessingMetadata({normalizedRequest:O,ipAddress:v});const x=`${(I.method||"GET").toUpperCase()} ${(0,l.stripUrlQueryAndFragment)(N)}`;return U.setTransactionName(x),w&&(0,S.recordRequestSession)(C,{requestIsolationScope:U,response:q,sessionFlushingDelayMS:M??6e4}),(0,o.withIsolationScope)(U,()=>{const n=O.headers?.["sentry-trace"],s=O.headers?.baggage,u=Array.isArray(n)?n[0]:n;return(0,_.continueTrace)({sentryTrace:u,baggage:Array.isArray(s)?s[0]:s},()=>{const n=(0,o.getCurrentScope)().getPropagationContext();n.propagationSpanId=(0,h.generateSpanId)(),u||(n.traceId=(0,h.generateTraceId)(),n.sampleRand=(0,R.safeMathRandom)()),q.once("close",()=>{U.setContext("response",{status_code:q.statusCode})});const s=t.wrapServerEmitRequest;let c=!1;return s?s(I,q,O,()=>{c=p.apply(f,T)}):c=p.apply(f,T),c})})}});C.set(p,T),p.emit=T}function U(n){const s=n.wrapServerEmitRequest,u=v(n),c={...n,wrapServerEmitRequest(t,c,l,S){const h=(0,o.getClient)()?.getOptions();n.spans??(!!h&&(0,p.hasSpansEnabled)(h))?u(t,c,l,S):s?s(t,c,l,S):S()}};return{[t.HTTP_ON_SERVER_REQUEST]:t=>{const{server:n}=t;q(c,n)}}}function v(t){const{wrapServerEmitRequest:p,ignoreIncomingRequests:c,ignoreStaticAssets:S=!0,onSpanCreated:h,errorMonitor:R="error",onSpanEnd:A}=t;return(t,C,I,b)=>{return"undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__?p?p(t,C,I,q):q():b();function q(){const p=(0,o.getIsolationScope)().getClient();if(!p)return b();if(N(t,{ignoreStaticAssets:S,ignoreIncomingRequests:c}))return n.DEBUG_BUILD&&s.debug.log(y,"Skipping span creation for incoming request",t.url),b();const q=I.url||t.url||"/",U=(0,l.parseStringToURLObject)(q),v=U?U.pathname:(0,l.stripUrlQueryAndFragment)(q),O=(t.method||"GET").toUpperCase(),D=`${O} ${v}`,w=t.headers,M=w["user-agent"],x=w["x-forwarded-for"],B=t.httpVersion,H=w.host,j=H?.replace(/^(.*)(:[0-9]{1,5}
1211)/,"$1")||"localhost",$=q.startsWith("https")?"https":"http",{socket:G}=t,{localAddress:F,localPort:k,remoteAddress:Q,remotePort:Y}=G??{};return(0,_.startSpanManual)({name:D,kind:E.SPAN_KIND.SERVER,attributes:{[f.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.server",[f.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.server",[f.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url","http.route":v,"otel.kind":"SERVER","net.host.ip":F,"net.host.port":k,"net.peer.ip":Q,"net.peer.port":Y,"sentry.http.prefetch":(V=t,"1"===V.headers["next-router-prefetch"]||void 0),"http.url":q,"http.method":O,"http.target":U?`${U.pathname}${U.search}`:v,"http.host":H,"net.host.name":j,"http.client_ip":"string"==typeof x?x.split(",")[0]:void 0,"http.user_agent":M,"http.scheme":$,"http.flavor":B,"net.transport":"QUIC"===B?.toUpperCase()?"ip_udp":"ip_tcp",...P(t),...(0,u.httpHeadersToSpanAttributes)(I.headers||{},p.getDataCollectionOptions())}},n=>{h?.(n,t,C);let s=!1;function o(o){s||(s=!0,n.setAttributes({"http.status_text":C.statusMessage?.toUpperCase(),"http.response.status_code":C.statusCode,"http.status_code":C.statusCode,...(0,u.httpHeadersToSpanAttributes)((0,u.headersToDict)(C.headers),p?.getDataCollectionOptions()??!1,"response")}),n.setStatus(o),A?.(n,t,C),n.end())}C.once("close",()=>{o((0,T.getSpanStatusFromHttpCode)(C.statusCode))}),C.once(R,()=>{const t=(0,T.getSpanStatusFromHttpCode)(C.statusCode);o(t.code===T.SPAN_STATUS_ERROR?t:{code:T.SPAN_STATUS_ERROR})}),b()});var V}}}function N(t,{ignoreStaticAssets:n,ignoreIncomingRequests:s}){const o=t.url,p=t.method?.toUpperCase();return"OPTIONS"===p||"HEAD"===p||!o||(!(!n||"GET"!==p||!O(o))||!!s?.(o,t))}function O(t){const n=(0,l.stripUrlQueryAndFragment)(t);return!!n.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)||!!n.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)}function P(t){const{headers:n}=t,s=n["content-length"],o=s?parseInt(String(s),10):-1,p=n["content-encoding"];return o>=0?p&&"identity"!==p?{"http.request_content_length":o}:{"http.request_content_length_uncompressed":o}:{}}},2736,[2729,1768,1772,1797,1806,1876,2737,1867,2738,1792,1818,1786,1798,1799,1877]);
1212__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"patchRequestToCaptureBody",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=r(d[2]);function u(u,c,f,s){let y=0;const l=[];o.DEBUG_BUILD&&t.debug.log(s,"Patching request.on");const p=new WeakMap,b=(0,n.getMaxBodyByteLength)(f);try{u.on=u.addListener=new Proxy(u.on,{apply:(n,u,c)=>{const[f,B,...h]=c;if("data"===f){o.DEBUG_BUILD&&t.debug.log(s,`Handling request.on("data") with maximum body size of ${b}b`);const c=new Proxy(B,{apply:(n,u,c)=>{try{const n=c[0],u=Buffer.from(n);y<b?(l.push(u),y+=u.byteLength):o.DEBUG_BUILD&&t.debug.log(s,`Dropping request body chunk because maximum body length of ${b}b is exceeded.`)}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Encountered error while storing body chunk.")}return Reflect.apply(n,u,c)}});return p.set(B,c),Reflect.apply(n,u,[f,c,...h])}return Reflect.apply(n,u,c)}}),u.off=u.removeListener=new Proxy(u.off,{apply:(t,o,n)=>{const[,u]=n,c=p.get(u);if(c){p.delete(u);const f=n.slice();return f[1]=c,Reflect.apply(t,o,f)}return Reflect.apply(t,o,n)}}),u.on("end",()=>{try{const t=Buffer.concat(l).toString("utf-8");if(t){const o=Buffer.byteLength(t,"utf-8")>b?`${Buffer.from(t).subarray(0,b-3).toString("utf-8")}...`:t;c.setSDKProcessingMetadata({normalizedRequest:{data:o}})}}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Error building captured request body",n)}})}catch(n){o.DEBUG_BUILD&&t.debug.error(s,"Error patching request to capture body",n)}}},2737,[1772,1768,1876]);
1213__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"recordRequestSession",{enumerable:!0,get:function(){return c}});
1213var s=r(d[0]),t=r(d[1]),o=r(d[2]),n=r(d[3]);const u=new WeakMap;function c(c,{requestIsolationScope:l,response:f,sessionFlushingDelayMS:D}){l.setSDKProcessingMetadata({requestSession:{status:"ok"}}),f.once("close",()=>{const f=l.getScopeData().sdkProcessingMetadata.requestSession;if(c&&f){t.DEBUG_BUILD&&s.debug.log(`Recorded request session with status: ${f.status}`);const l=new Date((0,o.safeDateNow)());l.setSeconds(0,0);const S=l.toISOString(),h=u.get(c),U=h?.[S]||{exited:0,crashed:0,errored:0};if(U[{ok:"exited",crashed:"crashed",errored:"errored"}[f.status]]++,h)h[S]=U;else{t.DEBUG_BUILD&&s.debug.log("Opened new request session aggregate.");const o={[S]:U};u.set(c,o);const l=()=>{clearTimeout(h),f(),u.delete(c);const s=Object.entries(o).map(([s,t])=>({started:s,exited:t.exited,errored:t.errored,crashed:t.crashed}));c.sendSession({aggregates:s})},f=c.on("flush",()=>{t.DEBUG_BUILD&&s.debug.log("Sending request session aggregate due to client flush"),l()}),h=setTimeout(()=>{t.DEBUG_BUILD&&s.debug.log("Sending request session aggregate due to flushing schedule"),l()},D);(0,n.safeUnref)(h)}}})}},2738,[1772,1768,1786,1831]);
1214__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WEB_VITALS_INTEGRATION_NAME",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"webVitalsIntegration",{enumerable:!0,get:function(){return p}});var n=r(d[0]),t=r(d[1]);const s="WebVitals",p=(0,n.defineIntegration)((p={})=>{const l=new Set(p.ignore??[]);return{name:s,setup(s){const o=(0,n.hasSpanStreamingEnabled)(s),{enableStandaloneClsSpans:c,enableStandaloneLcpSpans:S}=p._experiments??{},b=o||l.has("cls")?void 0:c||!1,u=o||l.has("lcp")?void 0:S||!1,f=(0,t.startTrackingWebVitals)({recordClsStandaloneSpans:b,recordLcpStandaloneSpans:u,client:s}),I=new WeakSet;s.on("afterStartPageLoadSpan",n=>{I.add(n)}),s.on("spanEnd",n=>{I.delete(n)&&(f(),(0,t.addWebVitalsToSpan)(n,{recordClsOnPageloadSpan:!1===b,recordLcpOnPageloadSpan:!1===u,spanStreamingEnabled:o}))}),o?(l.has("lcp")||(0,t.trackLcpAsSpan)(s),l.has("cls")||(0,t.trackClsAsSpan)(s),l.has("inp")||(0,t.trackInpAsSpan)()):l.has("inp")||(0,t.startTrackingINP)()},afterAllSetup(){l.has("inp")||(0,t.registerInpInteractionListener)()}}})},2739,[1766,1955]);
1215__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"registerBackgroundTabDetection",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);function c(){o.WINDOW.document?o.WINDOW.document.addEventListener("visibilitychange",()=>{const c=(0,t.getActiveSpan)();if(!c)return;const u=(0,t.getRootSpan)(c);if(o.WINDOW.document.hidden&&u){const o="cancelled",{op:c,status:s}=(0,t.spanToJSON)(u);n.DEBUG_BUILD&&t.debug.log(`[Tracing] Transaction: ${o} -> since tab moved to the background, op: ${c}`),s||u.setStatus({code:t.SPAN_STATUS_ERROR,message:o}),u.setAttribute("sentry.cancellation_reason","document.hidden"),u.end()}}):n.DEBUG_BUILD&&t.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},2740,[1766,2222,1950]);
1216__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PREVIOUS_TRACE_KEY",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"PREVIOUS_TRACE_MAX_DURATION",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"addPreviousTraceSpanLink",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"getPreviousTraceFromSessionStorage",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"linkTraces",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"spanContextSampled",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"storePreviousTraceInSessionStorage",{enumerable:!0,get:function(){return _}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);r(d[3]),r(d[4]),r(d[5]),r(d[6]),r(d[7]),r(d[8]),r(d[9]),r(d[10]),r(d[11]);const o=3600,s="sentry_previous_trace",u="sentry.previous_trace";function c(t,{linkPreviousTrace:n,consistentTraceSampling:o}){const s="session-storage"===n;let u=s?S():void 0;t.on("spanStart",t=>{if((0,e.getRootSpan)(t)!==t)return;const n=(0,e.getCurrentScope)().getPropagationContext();u=p(u,t,n),s&&_(u)});let c=!0;o&&t.on("beforeSampling",t=>{if(!u)return;const n=(0,e.getCurrentScope)(),o=n.getPropagationContext();c&&o.parentSpanId?c=!1:(n.setPropagationContext({...o,dsc:{...o.dsc,sample_rate:String(u.s
1216ampleRate),sampled:String(T(u.spanContext))},sampleRand:u.sampleRand}),t.parentSampled=T(u.spanContext),t.parentSampleRate=u.sampleRate,t.spanAttributes={...t.spanAttributes,[e.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:u.sampleRate})})}function p(n,s,c){const p=(0,e.spanToJSON)(s);const _={spanContext:s.spanContext(),startTimestamp:p.start_timestamp,sampleRate:(function(){try{const t=Number(p.data?.[e.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??c.dsc?.sample_rate);return Number.isNaN(t)?0:t}catch{return 0}})(),sampleRand:c.sampleRand};if(!n)return _;const S=n.spanContext;return S.traceId===p.trace_id?n:(Date.now()/1e3-n.startTimestamp<=o&&(t.DEBUG_BUILD&&e.debug.log(`Adding previous_trace \`${JSON.stringify(S)}\` link to span \`${JSON.stringify({op:p.op,...s.spanContext()})}\``),s.addLink({context:S,attributes:{[e.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),s.setAttribute(u,`${S.traceId}-${S.spanId}-${T(S)?1:0}`)),_)}function _(o){try{n.WINDOW.sessionStorage.setItem(s,JSON.stringify(o))}catch(n){t.DEBUG_BUILD&&e.debug.warn("Could not store previous trace in sessionStorage",n)}}function S(){try{const e=n.WINDOW.sessionStorage?.getItem(s);return JSON.parse(e)}catch{return}}function T(e){return 1===e.traceFlags}},2741,[1766,2222,1950,1955,2223,2226,2227,2228,2229,2230,2231,2232]);
1217__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reportPageLoaded",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n=(0,t.getClient)()){n?.emit("endPageloadSpan")}},2742,[1766]);
1218__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"setActiveSpanInBrowser",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){const o=(0,t.getActiveSpan)();if(o===n)return;const c=(0,t.getCurrentScope)();n.end=new Proxy(n.end,{apply:(n,p,u)=>((0,t._INTERNAL_setSpanForScope)(c,o),Reflect.apply(n,p,u))}),(0,t._INTERNAL_setSpanForScope)(c,n)}},2743,[1766]);
1219__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"spanStreamingIntegration",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);const c=(0,t.defineIntegration)(()=>({name:"SpanStreaming",beforeSetup(c){const o=c.getOptions();o.traceLifecycle||(n.DEBUG_BUILD&&t.debug.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),o.traceLifecycle="stream")},setup(c){const o="SpanStreaming integration requires",s="Falling back to static trace lifecycle.",S=c.getOptions();if(!(0,t.hasSpanStreamingEnabled)(c))return S.traceLifecycle="static",void(n.DEBUG_BUILD&&t.debug.warn(`${o} \`traceLifecycle\` to be set to "stream"! ${s}`));const f=S.beforeSendSpan;if(f&&!(0,t.isStreamedBeforeSendSpanCallback)(f))return S.traceLifecycle="static",void(n.DEBUG_BUILD&&t.debug.warn(`${o} a beforeSendSpan callback using \`withStreamedSpan\`! ${s}`));const p=new t.SpanBuffer(c);c.on("afterSpanEnd",n=>{(0,t.spanIsSampled)(n)&&p.add((0,t.captureSpan)(n,c))}),c.on("afterSegmentSpanEnd",t=>{const n=t.spanContext().traceId;setTimeout(()=>{p.flush(n)},500)})}}))},2744,[1766,2222]);
1220__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createStore",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"makeBrowserOfflineTransport",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"push",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"shift",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"unshift",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);function o(t){return new Promise((n,u)=>{t.oncomplete=t.onsuccess=()=>n(t.result),t.onabort=t.onerror=()=>u(t.error)})}function c(t,n){const u=indexedDB.open(t);u.onupgradeneeded=()=>u.result.createObjectStore(n);const c=o(u);return t=>c.then(u=>t(u.transaction(n,"readwrite").objectStore(n)))}function s(t){return o(t.getAllKeys())}function f(t,n,u){return t(t=>s(t).then(c=>{if(!(c.length>=u))return t.put(n,Math.max(...c,0)+1),o(t.transaction)}))}function l(t,n,u){return t(t=>s(t).then(c=>{if(!(c.length>=u))return t.put(n,Math.min(...c,0)-1),o(t.transaction)}))}function h(t){return t(t=>s(t).then(n=>{const u=n[0];if(null!=u)return o(t.get(u)).then(n=>(t.delete(u),o(t.transaction).then(()=>n)))}))}function p(n){let u;function o(){return null==u&&(u=c(n.dbName||"sentry-offline",n.storeName||"queue")),u}return{push:async u=>{try{const c=(0,t.serializeEnvelope)(u);await f(o(),c,n.maxQueueSize||30)}catch{}},unshift:async u=>{try{const c=(0,t.serializeEnvelope)(u);
1220await l(o(),c,n.maxQueueSize||30)}catch{}},shift:async()=>{try{const n=await h(o());if(n)return(0,t.parseEnvelope)(n)}catch{}}}}function b(t){return u=>{const o=t({...u,createStore:p});return n.WINDOW.addEventListener("online",async t=>{await o.flush()}),o}}function y(n=u.makeFetchTransport){return b((0,t.makeOfflineTransport)(n))}},2745,[1766,1950,1954]);
1221__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"browserProfilingIntegration",{enumerable:!0,get:function(){return p}});var o=r(d[0]),t=r(d[1]),n=r(d[2]),l=r(d[3]),f=r(d[4]),s=r(d[5]);const p=(0,o.defineIntegration)(()=>({name:"BrowserProfiling",setup(p){const c=p.getOptions(),u=new f.UIProfiler;if((0,s.hasLegacyProfiling)(c)||c.profileLifecycle||(c.profileLifecycle="manual"),(0,s.hasLegacyProfiling)(c)&&!c.profilesSampleRate)return void(t.DEBUG_BUILD&&o.debug.log("[Profiling] Profiling disabled, no profiling options found."));const P=(0,o.getActiveSpan)(),S=P&&(0,o.getRootSpan)(P);if((0,s.hasLegacyProfiling)(c)&&void 0!==c.profileSessionSampleRate&&t.DEBUG_BUILD&&o.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),(0,s.hasLegacyProfiling)(c))S&&(0,s.isAutomatedPageLoadSpan)(S)&&(0,s.shouldProfileSpanLegacy)(S)&&(0,l.startProfileForSpan)(S),p.on("spanStart",t=>{const n=(0,o.getRootSpan)(t);t===n?(0,s.shouldProfileSpanLegacy)(t)&&(0,l.startProfileForSpan)(t):s.PROFILED_ROOT_SPANS.has(n)&&(0,s.setThreadAttributes)(t)}),p.on("beforeEnvelope",n=>{if(!(0,s.getActiveProfilesCount)())return;const l=(0,s.findProfiledTransactionsFromEnvelope)(n);if(!l.length)return;const f=[];for(const n of l){const l=n?.contexts,p=l?.profile?.profile_id,c=l?.profile?.start_timestamp;if("string"!=typeof p){t.DEBUG_BUILD&&o.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!p){t.DEBUG_BUILD&&o.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}l?.profile&&delete l.profile;const u=(0,s.takeProfileFromGlobalCache)(p);if(!u){t.DEBUG_BUILD&&o.debug.log(`[Profiling] Could not retrieve profile for span: ${p}`);continue}const P=(0,s.createProfilingEvent)(p,c,u,n);P&&f.push(P)}(0,s.addProfilesToEnvelope)(n,f)});else{const l=c.profileLifecycle;if(p.on("startUIProfiler",()=>u.start()),p.on("stopUIProfiler",()=>u.stop()),"manual"===l)u.initialize(p);else if("trace"===l){if(!(0,o.hasSpansEnabled)(c))return void(t.DEBUG_BUILD&&o.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing."));u.initialize(p),S&&u.notifyRootSpanActive(S),n.WINDOW.setTimeout(()=>{const t=(0,o.getActiveSpan)(),n=t&&(0,o.getRootSpan)(t);n&&u.notifyRootSpanActive(n)},0)}}}}))},2746,[1766,2222,1950,2747,2749,2748]);
1222__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"startProfileForSpan",{enumerable:!0,get:function(){return s}});var t=r(d[0]),o=r(d[1]),n=r(d[2]),l=r(d[3]);function s(s){let p;(0,l.isAutomatedPageLoadSpan)(s)&&(p=1e3*(0,t.timestampInSeconds)());const f=(0,l.startJSSelfProfile)();if(!f)return;o.DEBUG_BUILD&&t.debug.log(`[Profiling] started profiling span: ${(0,t.spanToJSON)(s).description}`);const u=(0,t.uuid4)();let c=null;async function _(){if(s&&f){if(!c)return f.stop().then(p=>{D&&(n.WINDOW.clearTimeout(D),D=void 0),o.DEBUG_BUILD&&t.debug.log(`[Profiling] stopped profiling of span: ${(0,t.spanToJSON)(s).description}`),p?(c=p,(0,l.addProfileToGlobalCache)(u,p)):o.DEBUG_BUILD&&t.debug.log(`[Profiling] profiler returned null profile for: ${(0,t.spanToJSON)(s).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}).catch(n=>{o.DEBUG_BUILD&&t.debug.log("[Profiling] error while stopping profiler:",n)});o.DEBUG_BUILD&&t.debug.log("[Profiling] profile for:",(0,t.spanToJSON)(s).description,"already exists, returning early")}}(0,t.getCurrentScope)().setContext("profile",{profile_id:u,start_timestamp:p}),l.PROFILED_ROOT_SPANS.add(s),(0,l.setThreadAttributes)(s);let D=n.WINDOW.setTimeout(()=>{o.DEBUG_BUILD&&t.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,t.spanToJSON)(s).description),_()},l.MAX_PROFILE_DURATION_MS);const P=s.end.bind(s);s.end=function(){return s?(_().then(()=>{P()},()=>{P()}),s):P()}}},2747,[1766,2222,1950,2748]);
1223__d(function(g,r,_i,a,m,_e2,d){"use strict";
1223Object.defineProperty(_e2,'__esModule',{value:!0}),Object.defineProperty(_e2,"MAX_PROFILE_DURATION_MS",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e2,"PROFILED_ROOT_SPANS",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e2,"PROFILER_THREAD_ID_STRING",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e2,"PROFILER_THREAD_NAME",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e2,"addProfileToGlobalCache",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e2,"addProfilesToEnvelope",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e2,"applyDebugMetadata",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e2,"convertJSSelfProfileToSampledFormat",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e2,"createProfileChunkPayload",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e2,"createProfilePayload",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e2,"createProfilingEvent",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e2,"enrichWithThreadInformation",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e2,"findProfiledTransactionsFromEnvelope",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e2,"getActiveProfilesCount",{enumerable:!0,get:function(){return J}}),Object.defineProperty(_e2,"hasLegacyProfiling",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e2,"isAutomatedPageLoadSpan",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e2,"isValidSampleRate",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e2,"setThreadAttributes",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e2,"shouldProfileSession",{enumerable:!0,get:function(){return M}}),Object.defineProperty(_e2,"shouldProfileSpanLegacy",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e2,"startJSSelfProfile",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e2,"takeProfileFromGlobalCache",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e2,"validateProfileChunk",{enumerable:!0,get:function(){return E}});var e=r(d[0]),t=r(d[1]),n=r(d[2]);const i=1e6,o="window"in e.GLOBAL_OBJ&&e.GLOBAL_OBJ.window===e.GLOBAL_OBJ&&"undefined"==typeof importScripts,s=String(0),l=o?"main":"worker",u=n.WINDOW.navigator;let f="",c="",p="",b=u?.userAgent||"",h="";const _=u?.language||u?.languages?.[0]||"";const P=u?.userAgentData;var y;function v(e){return!("thread_metadata"in e)}function D(e){return v(e)?k(e):e}function I(n){const i=n.contexts?.trace?.trace_id;return"string"==typeof i&&32!==i.length&&t.DEBUG_BUILD&&e.debug.log(`[Profiling] Invalid traceId: ${i} on profiled event`),"string"!=typeof i?"":i}function O(t,i,o,l){if("transaction"!==l.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==o)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${o} instead.`);const u=I(l),P=D(o),y=i||("number"==typeof l.start_timestamp?1e3*l.start_timestamp:1e3*(0,e.timestampInSeconds)()),v="number"==typeof l.timestamp?1e3*l.timestamp:1e3*(0,e.timestampInSeconds)();return{event_id:t,timestamp:new Date(y).toISOString(),platform:"javascript",version:"1",release:l.release||"",environment:l.environment||e.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:n.WINDOW.navigator.userAgent},os:{name:f,version:c,build_number:b},device:{locale:_,model:h,manufacturer:b,architecture:p,is_emulator:!1},debug_meta:{images:w(o.resources)},profile:P,transactions:[{name:l.transaction||"",id:l.event_id||(0,e.uuid4)(),trace_id:u,active_thread_id:s,relative_start_ns:"0",relative_end_ns:(1e6*(v-y)).toFixed(0)}]}}function B(t,n,i){if(null==t)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${t} instead.`);const o=L(t),s=n.getOptions(),l=n.getSdkMetadata?.()?.sdk;return{chunk_id:(0,e.uuid4)(),client_sdk:{name:l?.name??"sentry.javascript.browser",version:l?.version??"0.0.0"},profiler_id:i||(0,e.uuid4)(),platform:"javascript",version:"2",release:s.release??"",environment:s.environment??"production",debug_meta:{images:w(t.resources)},profile:o}}function E(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};const t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);
1223if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?Array.isArray(n.frames)&&n.frames.length?Array.isArray(n.stacks)&&n.stacks.length?Array.isArray(n.samples)&&n.samples.length?{valid:!0}:{reason:"profile has no samples"}:{reason:"profile has no stacks"}:{reason:"profile has no frames"}:{reason:"missing profile data"}}catch(e){return{reason:`unknown validation error: ${e}`}}}function L(t){const n=[];for(let e=0;e<t.frames.length;e++){const i=t.frames[e];i&&(n[e]={function:i.name,abs_path:"number"==typeof i.resourceId?t.resources[i.resourceId]:void 0,lineno:i.line,colno:i.column})}const i=[];for(let e=0;e<t.stacks.length;e++){const n=t.stacks[e];if(!n)continue;const o=[];let s=n;for(;s;)o.push(s.frameId),s=void 0===s.parentId?void 0:t.stacks[s.parentId];i[e]=o}const o=(0,e.browserPerformanceTimeOrigin)(),u="number"==typeof performance.timeOrigin?performance.timeOrigin:o||0,f=u-(o||u),c=[];for(let e=0;e<t.samples.length;e++){const n=t.samples[e];if(!n)continue;const i=(u+(n.timestamp-f))/1e3;c[e]={stack_id:n.stackId??0,thread_id:s,timestamp:i}}return{frames:n,stacks:i,samples:c,thread_metadata:{[s]:{name:l}}}}function S(t){return"pageload"===(0,e.spanToJSON)(t).op}function k(t){let n,o=0;const u={samples:[],stacks:[],frames:[],thread_metadata:{[s]:{name:l}}},f=t.samples[0];if(!f)return u;const c=f.timestamp,p=(0,e.browserPerformanceTimeOrigin)(),b="number"==typeof performance.timeOrigin?performance.timeOrigin:p||0,h=b-(p||b);return t.samples.forEach((e,l)=>{if(void 0===e.stackId)return void 0===n&&(n=o,u.stacks[n]=[],o++),void(u.samples[l]={elapsed_since_start_ns:((e.timestamp+h-c)*i).toFixed(0),stack_id:n,thread_id:s});let f=t.stacks[e.stackId];const p=[];for(;f;){p.push(f.frameId);const e=t.frames[f.frameId];e&&void 0===u.frames[f.frameId]&&(u.frames[f.frameId]={function:e.name,abs_path:"number"==typeof e.resourceId?t.resources[e.resourceId]:void 0,lineno:e.line,colno:e.column}),f=void 0===f.parentId?void 0:t.stacks[f.parentId]}const b={elapsed_since_start_ns:((e.timestamp+h-c)*i).toFixed(0),stack_id:o,thread_id:s};u.stacks[o]=p,u.samples[l]=b,o++}),u}function U(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function j(t){const n=[];return(0,e.forEachEnvelopeItem)(t,(e,t)=>{if("transaction"===t)for(let t=1;t<e.length;t++){const i=e[t];i?.contexts?.profile?.profile_id&&n.push(e[t])}}),n}function w(t){const n=(0,e.getClient)(),i=n?.getOptions(),o=i?.stackParser;return o?(0,e.getDebugImagesForResources)(o,t):[]}function G(n){return"number"!=typeof n&&"boolean"!=typeof n||"number"==typeof n&&isNaN(n)?(t.DEBUG_BUILD&&e.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),!1):!0===n||!1===n||(!(n<0||n>1)||(t.DEBUG_BUILD&&e.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${n}.`),!1))}function A(n){return n.samples.length<2?(t.DEBUG_BUILD&&e.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!n.frames.length||(t.DEBUG_BUILD&&e.debug.log("[Profiling] Discarding profile because it contains no frames"),!1)}"object"==typeof(y=P)&&null!==y&&"getHighEntropyValues"in y&&P.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(f=e.platform||"",p=e.architecture||"",h=e.model||"",c=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];b=`${t.brand} ${t.version}`}}).catch(e=>{});let R=!1;const T=3e4;function N(){const i=n.WINDOW.Profiler;if("function"!=typeof i)return void(t.DEBUG_BUILD&&e.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const o=Math.floor(3e3);try{return new i({sampleInterval:10,maxBufferSize:o})}catch(n){t.DEBUG_BUILD&&(e.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),e.debug.log("[Profiling] Disabling profiling for current user session.")),R=!0}}function F(n){if(R)return t.DEBUG_BUILD&&e.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!n.isRecording())return t.DEBUG_BUILD&&e.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;const i=(0,e.getClient)(),o=i?.getOptions();if(!o)return t.DEBUG_BUILD&&e.debug.log("[Profiling] Profiling disabled, no options foun
1223d."),!1;const s=o.profilesSampleRate;if(!G(s))return t.DEBUG_BUILD&&e.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;if(!s)return t.DEBUG_BUILD&&e.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===s||Math.random()<s)||(t.DEBUG_BUILD&&e.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(s)})`),!1)}function M(n){if(R)return t.DEBUG_BUILD&&e.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==n.profileLifecycle&&"manual"!==n.profileLifecycle)return t.DEBUG_BUILD&&e.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const i=n.profileSessionSampleRate;return G(i)?i?Math.random()<=i:(t.DEBUG_BUILD&&e.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(t.DEBUG_BUILD&&e.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function $(e){return void 0!==e.profilesSampleRate}function V(e,t,n,i){return A(n)?O(e,t,n,i):null}const C=new Map;function J(){return C.size}function W(e){const t=C.get(e);return t&&C.delete(e),t}function x(e,t){if(C.set(e,t),C.size>30){const e=C.keys().next().value;void 0!==e&&C.delete(e)}}const z=new WeakSet;function H(e){e.setAttribute("thread.id",s),e.setAttribute("thread.name",l)}},2748,[1766,2222,1950]);
1224__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"UIProfiler",{enumerable:!0,get:function(){return n}});var e=r(d[0]),t=r(d[1]),o=r(d[2]);class n{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(n){const s=n.getOptions().profileLifecycle,l=(0,o.shouldProfileSession)(n.getOptions());t.DEBUG_BUILD&&e.debug.log(`[Profiling] Initializing profiler (lifecycle='${s}').`),l||t.DEBUG_BUILD&&e.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,e.uuid4)(),this._client=n,this._sessionSampled=l,this._lifecycleMode=s,"trace"===s&&this._setupTraceLifecycleListeners(n),n.on("spanStart",e=>{this._isRunning&&(0,o.setThreadAttributes)(e)})}start(){"trace"!==this._lifecycleMode?this._isRunning?t.DEBUG_BUILD&&e.debug.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op."):this._sessionSampled?this._beginProfiling():t.DEBUG_BUILD&&e.debug.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op."):t.DEBUG_BUILD&&e.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.')}stop(){"trace"!==this._lifecycleMode?this._isRunning?this._endProfiling():t.DEBUG_BUILD&&e.debug.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op."):t.DEBUG_BUILD&&e.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.')}notifyRootSpanActive(n){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;const s=n.spanContext().spanId;if(!s||this._activeRootSpanIds.has(s))return;this._registerTraceRootSpan(s);const l=this._activeRootSpanIds.size;1===l&&(t.DEBUG_BUILD&&e.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",l),this._beginProfiling()),this._isRunning&&(0,o.setThreadAttributes)(n)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,t.DEBUG_BUILD&&e.debug.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,e.getGlobalScope)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler)return t.DEBUG_BUILD&&e.debug.log("[Profiling] Failed to start JS Profiler; stopping."),void this._resetProfilerInfo();this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(o=>{t.DEBUG_BUILD&&e.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",o)}),"manual"===this._lifecycleMode&&(0,e.getGlobalScope)().setContext("profile",{}))}_setupTraceLifecycleListeners(o){o.on("spanStart",o=>{if(!this._sessionSampled)return void(t.DEBUG_BUILD&&e.debug.log("[Profiling] Span not profiled because of negative sampling decision for user session."));
1224if(o!==(0,e.getRootSpan)(o))return;if(!o.isRecording())return void(t.DEBUG_BUILD&&e.debug.log("[Profiling] Discarding profile because root span was not sampled."));const n=o.spanContext().spanId;if(!n||this._activeRootSpanIds.has(n))return;this._registerTraceRootSpan(n);const s=this._activeRootSpanIds.size;1===s&&(t.DEBUG_BUILD&&e.debug.log(`[Profiling] Root span ${n} started. Profiling active while there are active root spans (count=${s}).`),this._beginProfiling())}),o.on("spanEnd",o=>{if(!this._sessionSampled)return;const n=o.spanContext().spanId;if(!n||!this._activeRootSpanIds.has(n))return;this._activeRootSpanIds.delete(n);const s=this._activeRootSpanIds.size;t.DEBUG_BUILD&&e.debug.log(`[Profiling] Root span with ID ${n} ended. Will continue profiling for as long as there are active root spans (currently: ${s}).`),0===s&&(this._collectCurrentChunk().catch(o=>{t.DEBUG_BUILD&&e.debug.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",o)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,e.getGlobalScope)().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);const t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(!1===this._profiler?.stopped)return;const n=(0,o.startJSSelfProfile)();n?this._profiler=n:t.DEBUG_BUILD&&e.debug.log("[Profiling] Failed to start JS Profiler.")}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(o=>{t.DEBUG_BUILD&&e.debug.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",o)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(o){this._rootSpanTimeouts.has(o)&&(this._rootSpanTimeouts.delete(o),this._activeRootSpanIds.has(o)&&(t.DEBUG_BUILD&&e.debug.log(`[Profiling] Reached 5-minute timeout for root span ${o}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(o),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){const n=this._profiler;if(this._profiler=void 0,n)try{const s=await n.stop(),l=(0,o.createProfileChunkPayload)(s,this._client,this._profilerId),c=(0,o.validateProfileChunk)(l);if("reason"in c)return void(t.DEBUG_BUILD&&e.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",c.reason));this._sendProfileChunk(l),t.DEBUG_BUILD&&e.debug.log("[Profiling] Collected browser profile chunk.")}catch(o){t.DEBUG_BUILD&&e.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",o)}}_sendProfileChunk(o){const n=this._client,s=(0,e.getSdkMetadataForEnvelopeHeader)(n.getSdkMetadata?.()),l=n.getDsn(),c=n.getOptions().tunnel,h=(0,e.createEnvelope)({event_id:(0,e.uuid4)(),sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!c&&l&&{dsn:(0,e.dsnToString)(l)}},[[{type:"profile_chunk",platform:"javascript"},o]]);n.sendEnvelope(h).then(null,o=>{t.DEBUG_BUILD&&e.debug.error("Error while sending profile chunk envelope:",o)})}}},2749,[1766,2222,2748]);
1225__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"INTEGRATION_NAME",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SPOTLIGHT_IGNORE_SPANS",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"spotlightBrowserIntegration",{enumerable:!0,get:function(){return p}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);const s="SpotlightBrowser",c=[{op:"ui.interaction.click",name:"#sentry-spotlight"}];function l(o,s){const c=(0,n.getNativeImplementation)("fetch");let l=0;o.on("beforeEnvelope",n=>{l>3?t.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",l):c(s,{method:"POST",body:(0,t.serializeEnvelope)(n),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(t=>{t.status>=200&&t.status<400&&(l=0)},n=>
1225{l++,t.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",n)})})}const p=(0,t.defineIntegration)((n={})=>{const p=n.sidecarUrl||"http://localhost:8969/stream";return{name:s,setup:()=>{o.DEBUG_BUILD&&t.debug.log("Using Sidecar URL",p)},beforeSetup(t){const n=t.getOptions();n.ignoreSpans=[...n.ignoreSpans||[],...c]},afterAllSetup:t=>{l(t,p)}}})},2750,[1766,1955,2222]);
1226__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildLaunchDarklyFlagUsedHandler",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"launchDarklyIntegration",{enumerable:!0,get:function(){return t}});var n=r(d[0]);const t=(0,n.defineIntegration)(()=>({name:"LaunchDarkly",processEvent:(t,o,u)=>(0,n._INTERNAL_copyFlagsFromScopeToEvent)(t)}));function o(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(t,o,u)=>{(0,n._INTERNAL_insertFlagToScope)(t,o.value),(0,n._INTERNAL_addFeatureFlagToActiveSpan)(t,o.value)}}}},2751,[1766]);
1227__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"OpenFeatureIntegrationHook",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"openFeatureIntegration",{enumerable:!0,get:function(){return n}});var t=r(d[0]);const n=(0,t.defineIntegration)(()=>({name:"OpenFeature",processEvent:(n,o,u)=>(0,t._INTERNAL_copyFlagsFromScopeToEvent)(n)}));class o{after(n,o){(0,t._INTERNAL_insertFlagToScope)(o.flagKey,o.value),(0,t._INTERNAL_addFeatureFlagToActiveSpan)(o.flagKey,o.value)}error(n,o,u){(0,t._INTERNAL_insertFlagToScope)(n.flagKey,n.defaultValue),(0,t._INTERNAL_addFeatureFlagToActiveSpan)(n.flagKey,n.defaultValue)}}},2752,[1766]);
1228__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"unleashIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o=(0,t.defineIntegration)(({featureFlagClientClass:n})=>({name:"Unleash",setupOnce(){const o=n.prototype;(0,t.fill)(o,"isEnabled",s)},processEvent:(n,o,s)=>(0,t._INTERNAL_copyFlagsFromScopeToEvent)(n)}));function s(o){return function(...s){const l=s[0],u=o.apply(this,s);return"string"==typeof l&&"boolean"==typeof u?((0,t._INTERNAL_insertFlagToScope)(l,u),(0,t._INTERNAL_addFeatureFlagToActiveSpan)(l,u)):n.DEBUG_BUILD&&t.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${l} (${typeof l}), result: ${u} (${typeof u})`),u}}},2753,[1766,2222]);
1229__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"growthbookIntegration",{enumerable:!0,get:function(){return t}});var o=r(d[0]);const t=({growthbookClass:t})=>(0,o.growthbookIntegration)({growthbookClass:t})},2754,[1766]);
1230__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"statsigIntegration",{enumerable:!0,get:function(){return n}});var t=r(d[0]);const n=(0,t.defineIntegration)(({featureFlagClient:n})=>({name:"Statsig",setup(o){n.on("gate_evaluation",n=>{(0,t._INTERNAL_insertFlagToScope)(n.gate.name,n.gate.value),(0,t._INTERNAL_addFeatureFlagToActiveSpan)(n.gate.name,n.gate.value)})},processEvent:(n,o,u)=>(0,t._INTERNAL_copyFlagsFromScopeToEvent)(n)}))},2755,[1766]);
1231__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"diagnoseSdkConnectivity",{enumerable:!0,get:function(){return n}});var t=r(d[0]);async function n(){const n=(0,t.getClient)();if(!n)return"no-client-active";if(!n.getDsn())return"no-dsn-configured";const s=n.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await(0,t.suppressTracing)(()=>fetch(s,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}},2756,[1766]);
1232__d(function(g,r,i,a,m,e,d){"use strict";
1232Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"INTEGRATION_NAME",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"registerWebWorker",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"webWorkerIntegration",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),u=r(d[4]);const c="WebWorker",_=(0,t.defineIntegration)(({worker:t})=>({name:c,setupOnce:()=>{(Array.isArray(t)?t:[t]).forEach(t=>y(t))},addWorker:t=>y(t)}));function y(s){s.addEventListener("message",s=>{if(I(s.data)){if(s.stopImmediatePropagation(),s.data._sentryDebugIds&&(n.DEBUG_BUILD&&t.debug.log("Sentry debugId web worker message received",s.data),o.WINDOW._sentryDebugIds={...s.data._sentryDebugIds,...o.WINDOW._sentryDebugIds}),s.data._sentryModuleMetadata&&(n.DEBUG_BUILD&&t.debug.log("Sentry module metadata web worker message received",s.data),o.WINDOW._sentryModuleMetadata={...s.data._sentryModuleMetadata,...o.WINDOW._sentryModuleMetadata}),s.data._sentryWasmImages){n.DEBUG_BUILD&&t.debug.log("Sentry WASM images web worker message received",s.data);const u=o.WINDOW._sentryWasmImages||[],c=s.data._sentryWasmImages.filter(n=>(0,t.isPlainObject)(n)&&"string"==typeof n.code_file&&!u.some(t=>t.code_file===n.code_file));o.WINDOW._sentryWasmImages=[...u,...c]}s.data._sentryWorkerError&&(n.DEBUG_BUILD&&t.debug.log("Sentry worker rejection message received",s.data._sentryWorkerError),l(s.data._sentryWorkerError))}})}function l(o){const c=(0,t.getClient)();if(!c)return;const _=c.getOptions().stackParser,y=c.getOptions().attachStacktrace,l=o.reason,b=(0,t.isPrimitive)(l)?(0,u._eventFromRejectionWithPrimitive)(l):(0,s.eventFromUnknownInput)(_,l,void 0,y,!0);b.level="error",o.filename&&(b.contexts={...b.contexts,worker:{filename:o.filename}}),(0,t.captureEvent)(b,{originalException:l,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),n.DEBUG_BUILD&&t.debug.log("Captured worker unhandled rejection",l)}function b({self:s}){s.postMessage({_sentryMessage:!0,_sentryDebugIds:s._sentryDebugIds??void 0,_sentryModuleMetadata:s._sentryModuleMetadata??void 0}),s.addEventListener("unhandledrejection",o=>{const c={reason:(0,u._getUnhandledRejectionError)(o),filename:s.location?.href};s.postMessage({_sentryMessage:!0,_sentryWorkerError:c}),n.DEBUG_BUILD&&t.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",c)}),n.DEBUG_BUILD&&t.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function I(n){if(!(0,t.isPlainObject)(n)||!0!==n._sentryMessage)return!1;const s="_sentryDebugIds"in n,o="_sentryModuleMetadata"in n,u="_sentryWorkerError"in n,c="_sentryWasmImages"in n;return!!(s||o||u||c)&&(!(s&&!(0,t.isPlainObject)(n._sentryDebugIds)&&void 0!==n._sentryDebugIds)&&(!(o&&!(0,t.isPlainObject)(n._sentryModuleMetadata)&&void 0!==n._sentryModuleMetadata)&&(!(u&&!(0,t.isPlainObject)(n._sentryWorkerError))&&!!(!c||Array.isArray(n._sentryWasmImages)&&n._sentryWasmImages.every(n=>(0,t.isPlainObject)(n)&&"string"==typeof n.code_file)))))}},2757,[1766,2222,1953,1950,2230]);
1233__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"init",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]);function u(c){const u={...c};(0,n.applySdkMetadata)(u,"react"),(0,t.setContext)("react",{version:o.version});const f=(0,t.init)(u);return(0,n.setNormalizeStringifier)(s),f}function s(n){return(0,c.isSyntheticEvent)(n)?"[SyntheticEvent]":(0,t.normalizeStringifyValue)(n)}},2758,[1537,1766,29,2759]);
1234__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isSyntheticEvent",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return(0,t.isPlainObject)(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}},2759,[2697]);
1235__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"captureReactException",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isAtLeastReact17",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"reactErrorHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"setCause",{enumerable:!0,get:function(){return o}});var n=r(d[0]),t=r(d[1]),c=r(d[2]);function u(n){const t=n.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}function o(n,t){const c=new WeakSet;!(function n(t,u){if(!c.has(t))return t.cause?(c.add(t),n(t.cause,u)):void(t.cause=u)})(n,t)}function s(s,{componentStack:f},p){if(u(c.version)&&(0,t.isError)(s)&&f){const n=new Error(s.message);n.name=`React ErrorBoundary ${s.name}`,n.stack=f,o(s,n)}return(0,n.captureException)(s,p)}function f(n){return(t,c)=>{const u=!!n,o=s(t,c,{mechanism:{handled:u,type:"auto.function.react.error_handler"}});u&&n(t,c,o)}}},2760,[1537,1766,29]);
1236__d(function(g,r,i,a,m,_e,_d){"use strict";
1236Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Profiler",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"UNKNOWN_COMPONENT",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"useProfiler",{enumerable:!0,get:function(){return d}}),Object.defineProperty(_e,"withProfiler",{enumerable:!0,get:function(){return c}});var e=r(_d[0]),t=r(_d[1]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),o=r(_d[3]),s=r(_d[4]);const p="unknown";class u extends n.Component{constructor(n){super(n);const{name:s,disabled:p=!1}=this.props;p||(this._mountSpan=(0,e.startInactiveSpan)({name:`<${s}>`,onlyIfParent:!0,op:o.REACT_MOUNT_OP,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":s}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:n,includeUpdates:s=!0}){if(s&&this._mountSpan&&n!==this.props.updateProps){const s=Object.keys(n).filter(e=>n[e]!==this.props.updateProps[e]);if(s.length>0){const n=(0,t.timestampInSeconds)();this._updateSpan=(0,t.withActiveSpan)(this._mountSpan,()=>(0,e.startInactiveSpan)({name:`<${this.props.name}>`,onlyIfParent:!0,op:o.REACT_UPDATE_OP,startTime:n,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":s}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const n=(0,t.timestampInSeconds)(),{name:s,includeRender:p=!0}=this.props;if(this._mountSpan&&p){const p=(0,t.spanToJSON)(this._mountSpan).timestamp;(0,t.withActiveSpan)(this._mountSpan,()=>{const u=(0,e.startInactiveSpan)({onlyIfParent:!0,name:`<${s}>`,op:o.REACT_RENDER_OP,startTime:p,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":s}});u&&u.end(n)})}}render(){return this.props.children}}function c(e,t){const o=t?.name||e.displayName||e.name||p,c=s=>n.createElement(u,{...t,name:o,updateProps:s},n.createElement(e,{...s}));return c.displayName=`profiler(${o})`,(0,s.hoistNonReactStatics)(c,e),c}function d(s,p={disabled:!1,hasRenderSpan:!0}){const[u]=n.useState(()=>{if(!p?.disabled)return(0,e.startInactiveSpan)({name:`<${s}>`,onlyIfParent:!0,op:o.REACT_MOUNT_OP,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":s}})});n.useEffect(()=>(u&&u.end(),()=>{if(u&&p.hasRenderSpan){const n=(0,t.spanToJSON)(u).timestamp,p=(0,t.timestampInSeconds)(),c=(0,e.startInactiveSpan)({name:`<${s}>`,onlyIfParent:!0,op:o.REACT_RENDER_OP,startTime:n,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":s}});c&&c.end(p)}}),[])}Object.assign(u,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}})},2761,[1537,2697,29,2762,2763]);
1237__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"REACT_MOUNT_OP",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"REACT_RENDER_OP",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"REACT_UPDATE_OP",{enumerable:!0,get:function(){return n}});const t="ui.react.render",n="ui.react.update",u="ui.react.mount"},2762,[]);
1238__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"hoistNonReactStatics",{enumerable:!0,get:function(){return $}});const t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c=Symbol.for("react.forward_ref"),p=Symbol.for("react.memo");function s(t){return"object"==typeof t&&null!==t&&t.$$typeof===p}const y={};function f(o){if(s(o))return n;const c=o.$$typeof;return c&&y[c]||t}y[c]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},y[p]=n;const b=Object.defineProperty.bind(Object),l=Object.getOwnPropertyNames.bind(Object),u=Object.getOwnPropertySymbols?.bind(Object),O=Object.getOwnPropertyDescriptor.bind(Object),j=Object.getPrototypeOf.bind(Object),P=Object.prototype;function $(t,n,c){if("string"!=typeof n){if(P){const o=j(n);o&&o!==P&&$(t,o)}let c=l(n);u&&(c=c.concat(u(n)));const p=f(t),s=f(n);for(const y of c)if(!(o[y]||s?.[y]||p?.[y]||O(t,y))){const o=O(n,y);if(o)try{b(t,y,o)}catch(t){}}}return t}},2763,[]);
1239__d(function(g,r,i,a,m,_e,_d){"use strict";
1239Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ErrorBoundary",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"UNKNOWN_COMPONENT",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"withErrorBoundary",{enumerable:!0,get:function(){return d}});var t=r(_d[0]),e=r(_d[1]),n=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e.default=t,e})(r(_d[2])),o=r(_d[3]),s=r(_d[4]),c=r(_d[5]);const l="unknown",p={componentStack:null,error:null,eventId:null};class u extends n.Component{constructor(e){super(e),this.state=p,this._openFallbackReportDialog=!0;const n=(0,t.getClient)();n&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",n=>{!n.type&&this._lastEventId&&n.event_id===this._lastEventId&&(0,t.showReportDialog)({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,n){const{componentStack:o}=n,{beforeCapture:c,onError:l,showDialog:p,dialogOptions:u}=this.props;(0,t.withScope)(d=>{c&&c(d,e,o);const h=null!=this.props.handled?this.props.handled:!!this.props.fallback,f=(0,s.captureReactException)(e,n,{mechanism:{handled:h,type:"auto.function.react.error_boundary"}});l&&l(e,o,f),p&&(this._lastEventId=f,this._openFallbackReportDialog&&(0,t.showReportDialog)({...u,eventId:f})),this.setState({error:e,componentStack:o,eventId:f})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:e,eventId:n}=this.state,{onUnmount:o}=this.props;o&&(this.state===p?o(null,null,null):o(t,e,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:e,componentStack:n,eventId:o}=this.state;t&&t(e,n,o),this.setState(p)}render(){const{fallback:t,children:s}=this.props,c=this.state;if(null===c.componentStack)return"function"==typeof s?s():s;const l="function"==typeof t?n.createElement(t,{error:c.error,componentStack:c.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:c.eventId}):t;return n.isValidElement(l)?l:(t&&o.DEBUG_BUILD&&e.debug.warn("fallback did not produce a valid ReactElement"),null)}}function d(t,e){const o=t.displayName||t.name||l,s=n.memo(o=>n.createElement(u,{...e},n.createElement(t,{...o})));return s.displayName=`errorBoundary(${o})`,(0,c.hoistNonReactStatics)(s,t),s}},2764,[1537,2697,29,2765,2760,2763]);
1240__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEBUG_BUILD",{enumerable:!0,get:function(){return _}});const _='undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},2765,[]);
1241__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createReduxEnhancer",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n="redux.action",o="info",c={attachReduxState:!0,actionTransformer:t=>t,stateTransformer:t=>t||null};function s(s){const u={...c,...s};return c=>(s,l)=>{function p(c){return(s,l)=>{const p=c(s,l),f=(0,t.getCurrentScope)(),y=u.actionTransformer(l);null!=y&&(0,t.addBreadcrumb)({category:n,data:y,type:o});const x=u.stateTransformer(p);if(null!=x){const n=(0,t.getClient)(),o=n?.getOptions(),c=o?.normalizeDepth||3,s={state:{type:"redux",value:x}};(0,t.setNormalizationDepthOverrideHint)(s,3+c),f.setContext("state",s)}else f.setContext("state",null);const{configureScopeWithState:h}=u;return"function"==typeof h&&h(f,p),p}}u.attachReduxState&&(0,t.getGlobalScope)().addEventProcessor((t,n)=>{try{void 0===t.type&&"redux"===t.contexts.state.state.type&&(n.attachments=[...n.attachments||[],{filename:"redux_state.json",data:JSON.stringify(t.contexts.state.state.value)}])}catch{}return t});const f=c(p(s),l);return f.replaceReducer=new Proxy(f.replaceReducer,{apply:function(t,n,o){t.apply(n,[p(o[0])])}}),f}}},2766,[1766]);
1242__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reactRouterV3BrowserTracingIntegration",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);function o(o){const T=(0,t.browserTracingIntegration)({...o,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:c,routes:s,match:l,instrumentPageLoad:_=!0,instrumentNavigation:E=!0}=o;return{...T,afterAllSetup(o){T.afterAllSetup(o),_&&t.WINDOW.location&&u(s,t.WINDOW.location,l,(u,T="url")=>{(0,t.startBrowserTracingPageLoadSpan)(o,{name:u,attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v3",[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:T}})}),E&&c.listen&&c.listen(T=>{"PUSH"!==T.action&&"POP"!==T.action||u(s,T,l,(u,T="url")=>{(0,t.startBrowserTracingNavigationSpan)(o,{name:u,attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v3",[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:T}})})})}}}function u(t,n,o,u){let c=n.pathname;o({location:n,routes:t},(t,n,o)=>
1242{if(t||!o)return u(c);const s=T(o.routes||[]);return 0===s.length||"/*"===s?u(c):(c=s,u(c,"route"))})}function T(t){if(!Array.isArray(t)||0===t.length)return"";const n=t.filter(t=>!!t.path);let o=-1;for(let t=n.length-1;t>=0;t--){const u=n[t];if(u.path?.startsWith("/")){o=t;break}}return n.slice(o).reduce((t,{path:n})=>`${t}${"/"===t||""===t?n:`/${n}`}`,"")}},2767,[1537,1766]);
1243__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"tanstackRouterBrowserTracingIntegration",{enumerable:!0,get:function(){return n}});var t=r(d[0]),o=r(d[1]);function n(n,s={}){const c=n,T=(0,t.browserTracingIntegration)({...s,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:_=!0,instrumentNavigation:E=!0}=s;return{...T,afterAllSetup(n){T.afterAllSetup(n);const s=t.WINDOW.location;if(_&&s){const T=c.matchRoutes(s.pathname,c.options.parseSearch(s.search),{preload:!1,throwOnError:!1}),_=T[T.length-1],E="__root__"!==_?.routeId?_:void 0;(0,t.startBrowserTracingPageLoadSpan)(n,{name:E?E.routeId:s.pathname,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.tanstack_router",[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:E?"route":"url",...u(E)}})}E&&c.subscribe("onBeforeNavigate",s=>{if(!s.fromLocation||s.toLocation.state===s.fromLocation.state)return;const T=c.matchRoutes(s.toLocation.pathname,s.toLocation.search,{preload:!1,throwOnError:!1}),_=T[T.length-1],E="__root__"!==_?.routeId?_:void 0,I=t.WINDOW.location,p=(0,t.startBrowserTracingNavigationSpan)(n,{name:E?E.routeId:I.pathname,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.tanstack_router",[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:E?"route":"url"}}),R=c.subscribe("onResolved",t=>{if(R(),p){const n=c.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),s=n[n.length-1],T="__root__"!==s?.routeId?s:void 0;T&&(p.updateName(T.routeId),p.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"),p.setAttributes(u(T)))}})})}}}function u(t){if(!t)return{};const o={};return Object.entries(t.params).forEach(([t,n])=>{o[`url.path.params.${t}`]=n,o[`url.path.parameter.${t}`]=n,o[`params.${t}`]=n}),o}},2768,[1537,1766]);
1244__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"reactRouterV4BrowserTracingIntegration",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"reactRouterV5BrowserTracingIntegration",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"withSentryRouting",{enumerable:!0,get:function(){return p}});var t=r(_d[0]),e=r(_d[1]),n=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e.default=t,e})(r(_d[2])),o=r(_d[3]);function u(e){const n=(0,t.browserTracingIntegration)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:o,routes:u,matchPath:c,instrumentPageLoad:T=!0,instrumentNavigation:f=!0}=e;return{...n,afterAllSetup(t){n.afterAllSetup(t),s(t,T,f,o,"reactrouter_v4",u,c)}}}function c(e){const n=(0,t.browserTracingIntegration)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:o,routes:u,matchPath:c,instrumentPageLoad:T=!0,instrumentNavigation:f=!0}=e;return{...n,afterAllSetup(t){n.afterAllSetup(t),s(t,T,f,o,"reactrouter_v5",u,c)}}}function s(n,o,u,c,s,f=[],p){function l(t){if(0===f.length||!p)return[t,"url"];const e=T(f,t,p);for(const t of e)if(t.match.isExact)return[t.match.path,"route"];return[t,"url"]}if(o){const o=c.location?c.location.pathname:t.WINDOW.location?t.WINDOW.location.pathname:void 0;if(o){const[u,c]=l(o);(0,t.startBrowserTracingPageLoadSpan)(n,{name:u,attributes:{[e.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[e.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.${s}`,[e.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:c}})}}u&&c.listen&&c.listen((o,u)=>{if(u&&("PUSH"===u||"POP"===u)){const[u,c]=l(o.pathname);(0,t.startBrowserTracingNavigationSpan)(n,{name:u,attributes:{[e.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[e.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.${s}`,[e.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:c}})}})}function T(t,e,n,o=[]){return t.some(t=>{const u=t.path?n(e,t):o.length?o[o.length-1].match:f(e);return u&&(o.push({route:t,match:u}),t.routes&&T(t.routes,e,n,o)),!!u}),o}function f(t){return{path:"/",url:"/",params:{},isExact:"/"===t}}function p(t){const u=t.displayName||t.name,c=o=>
1244{if(o?.computedMatch?.isExact){const t=o.computedMatch.path,n=l();(0,e.getCurrentScope)().setTransactionName(t),n&&(n.updateName(t),n.setAttribute(e.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"))}return n.createElement(t,{...o})};return c.displayName=`sentryRoute(${u})`,(0,o.hoistNonReactStatics)(c,t),c}function l(){const t=(0,e.getActiveSpan)(),n=t&&(0,e.getRootSpan)(t);if(!n)return;const o=(0,e.spanToJSON)(n).op;return"navigation"===o||"pageload"===o?n:void 0}},2769,[1537,2697,29,2763]);
1245__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reactRouterV6BrowserTracingIntegration",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"withSentryReactRouterV6Routing",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"wrapCreateBrowserRouterV6",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"wrapCreateMemoryRouterV6",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"wrapUseRoutesV6",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function n(n){return(0,t.createReactRouterV6CompatibleTracingIntegration)(n,"6")}function o(n){return(0,t.createV6CompatibleWrapUseRoutes)(n,"6")}function u(n){return(0,t.createV6CompatibleWrapCreateBrowserRouter)(n,"6")}function c(n){return(0,t.createV6CompatibleWrapCreateMemoryRouter)(n,"6")}function f(n){return(0,t.createV6CompatibleWithSentryReactRouterRouting)(n,"6")}r(d[1]),r(d[2]),r(d[3])},2770,[2771,1766,1537,2697]);
1246__d(function(g,_r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"addResolvedRoutesToParent",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"addRoutesToAllRoutes",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e,"allRoutes",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"computeLocationKey",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"createReactRouterV6CompatibleTracingIntegration",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"createV6CompatibleWithSentryReactRouterRouting",{enumerable:!0,get:function(){return K}}),Object.defineProperty(_e,"createV6CompatibleWrapCreateBrowserRouter",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"createV6CompatibleWrapCreateMemoryRouter",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"createV6CompatibleWrapUseRoutes",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"handleNavigation",{enumerable:!0,get:function(){return G}}),Object.defineProperty(_e,"processResolvedRoutes",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"shouldSkipNavigation",{enumerable:!0,get:function(){return U}}),Object.defineProperty(_e,"updateNavigationSpan",{enumerable:!0,get:function(){return W}});var e=_r(_d[0]),t=_r(_d[1]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(_r(_d[2])),o=_r(_d[3]),r=_r(_d[4]),u=_r(_d[5]),s=_r(_d[6]);let c,l,p,d,f,_,R=!1,h=3e3,y="";const N=new WeakSet,T=e.WINDOW?.document?n.useLayoutEffect:n.useEffect,v=new WeakMap,b=new Set,S=new WeakMap,A=new WeakMap;function E(t){e.WINDOW?.cancelAnimationFrame?e.WINDOW.cancelAnimationFrame(t):clearTimeout(t)}function O(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function I(e){return e.includes(":")||e.includes("*")}function U(e,t,n,o){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!o)){const t=!!e.routeName&&(0,s.transactionNameHasWildcard)(e.routeName),o=(0,s.transactionNameHasWildcard)(n),r=!!e.routeName&&I(e.routeName),u=I(n),c=t&&!o,l=!r&&u,p=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!o;return{skip:!0,shouldUpdate:!(!e.routeName||!(c||l||p))}}return{skip:!1,shouldUpdate:!1}}function P(e,t){const n=t.children||[],o=e.filter(e=>!n.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));o.length>0&&(t.children=[...n,...o])}function B(e,t){let n=S.get(e);n||(n=new Set,S.set(e,n)),n.add(t),t.finally(()=>{const n=S.get(e);n&&n.delete(t)})}function C(e){const t=new Promise(t=>{A.set(e,t)});B(e,t)}function w(e){const t=A.get(e);t&&(t(),A.delete(e),e.__sentry_may_have_lazy_routes__&&(e.__sentry_may_have_lazy_routes__=!1))}
1246function D(n,r,c=null,l){n.forEach(e=>{b.add(e),R&&(0,u.checkRouteForAsyncHandler)(e,D)}),r&&P(n,r);const p=l??(0,s.getActiveRootSpan)();if(p){const n=(0,t.spanToJSON)(p);if(n.timestamp)return void(o.DEBUG_BUILD&&t.debug.warn("[React Router] Lazy handler resolved after span ended - skipping update"));const r=n.op;let u=c;if(!u&&!l&&void 0!==e.WINDOW){const t=e.WINDOW.location;t?.pathname&&(u={pathname:t.pathname})}u&&("pageload"===r?J({activeRootSpan:p,location:{pathname:u.pathname},routes:Array.from(b),allRoutes:Array.from(b)}):"navigation"===r&&W(p,u,Array.from(b),!1,f))}}function W(e,n,o,r=!1,u){const c=(0,t.spanToJSON)(e),l=c.description,p=e?.__sentry_navigation_name_set__,d=l&&(0,s.transactionNameHasWildcard)(l);if((!p||r||d)&&!c.timestamp){const r=u(o,n),[f,h]=(0,s.resolveRouteNameAndSource)(n,o,o,r||[],y,_,R),N=c.data?.[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];f&&(!l||!p&&("route"!==N||"route"===h)||"route"!==N&&"route"===h||"route"===N&&"route"===h&&d)&&(e.updateName(f),e.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,h),(0,s.transactionNameHasWildcard)(f)||"route"!==h||(0,t.addNonEnumerableProperty)(e,"__sentry_navigation_name_set__",!0))}}function M(n,o,r,u,c){let l=!1,p=!!c&&"pageload"===(0,t.spanToJSON)(c).op,d=!1,f=null,_=null;n.subscribe(n=>{if(!l){const e=(0,s.getActiveRootSpan)();e&&"pageload"===(0,t.spanToJSON)(e).op?p=!0:p&&("POP"!==n.historyAction||d?l=!0:d=!0)}if("PUSH"===n.historyAction||"POP"===n.historyAction&&l){const t=O(n.location),s=()=>{_!==t&&(_=t,f=null,G({location:n.location,routes:o,navigationType:n.historyAction,version:r,basename:u,allRoutes:Array.from(b)}))};"idle"!==n.navigation.state?(_!==t&&(_=null),null!==f&&E(f),c=s,f=e.WINDOW?.requestAnimationFrame?e.WINDOW.requestAnimationFrame(c):setTimeout(c,0)):(null!==f&&(E(f),f=null),s())}var c})}function $(e,n){return c&&l&&p&&f?function(o,r){if(H(o),R)for(const e of o)(0,u.checkRouteForAsyncHandler)(e,D);const c=(0,s.getActiveRootSpan)();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&c&&((0,t.addNonEnumerableProperty)(c,"__sentry_may_have_lazy_routes__",!0),C(c));const l=z(r,!1,c),p=e(o,l),d=r?.basename;return"POP"===p.state.historyAction&&c&&J({activeRootSpan:c,location:p.state.location,routes:o,basename:d,allRoutes:Array.from(b)}),y=d||"",M(p,o,n,d,c),p}:(o.DEBUG_BUILD&&t.debug.warn(`reactRouter${n?`V${n}`:""}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)}function L(e,n){return c&&l&&p&&f?function(o,r){if(H(o),R)for(const e of o)(0,u.checkRouteForAsyncHandler)(e,D);const c=(0,s.getActiveRootSpan)();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&c&&((0,t.addNonEnumerableProperty)(c,"__sentry_may_have_lazy_routes__",!0),C(c));const l=z(r,!0,c),p=e(o,l),d=r?.basename;let f;const _=r?.initialEntries,h=r?.initialIndex,N=1===_?.length,T=void 0!==h&&_?.[h];f=N?_[0]:T?_[h]:void 0;const v=f?"string"==typeof f?{pathname:f}:f:p.state.location,S=(0,s.getActiveRootSpan)();return"POP"===p.state.historyAction&&S&&J({activeRootSpan:S,location:v,routes:o,basename:d,allRoutes:Array.from(b)}),y=d||"",M(p,o,n,d,S),p}:(o.DEBUG_BUILD&&t.debug.warn(`reactRouter${n?`V${n}`:""}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)}function k(n,r){const u=(0,e.browserTracingIntegration)({...n,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:y,useLocation:T,useNavigationType:v,createRoutesFromChildren:b,matchRoutes:S,stripBasename:A,enableAsyncRouteHandlers:E=!1,instrumentPageLoad:O=!0,instrumentNavigation:I=!0,lazyRouteTimeout:U,lazyRouteManifest:P}=n;return{...u,setup(e){u.setup(e);const r=n.finalTimeout??3e4,N=3*(n.idleTimeout??1e3),O=U??N;O===1/0?(h=r,o.DEBUG_BUILD&&t.debug.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",r,"ms to prevent indefinite hangs")):Number.isNaN(O)?(o.DEBUG_BUILD&&t.debug.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",N),h=N):O<0?(o.DEBUG_BUILD&&t.debug.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",O,"falling back to:",N),h=N):h=O,c=y,l=T,p=v,f=S,d=b,R=E,_=P,(0,s.initializeRouterUtils)(S,A||!1)},afterAllSetup(n){u.afterAllSetup(n);const o=e.WINDOW.location?.pathname;O&&o&&(0,e.startBrowserTracingPageLoadSpan)(n,{name:o,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter"+(r?`_v${r}`:"")}}),I&&N.add(n)}}}function j(e,r){if(!(c&&l&&p&&f))return o.DEBUG_BUILD&&t.debug.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` be
1246cause of one or more missing parameters."),e;const u=t=>{const o=n.useRef(!0),{routes:u,locationArg:c}=t,d=e(u,c),f=l(),_=p(),R="string"==typeof c||c?.pathname?c:f;return T(()=>{const e="string"==typeof R?{pathname:R}:R;o.current?(H(u),J({activeRootSpan:(0,s.getActiveRootSpan)(),location:e,routes:u,allRoutes:Array.from(b)}),o.current=!1):G({location:e,routes:u,navigationType:_,version:r,allRoutes:Array.from(b)})},[_,R]),d};return(e,t)=>n.createElement(u,{routes:e,locationArg:t})}function z(e,n=!1,o){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};const r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{const u=e?.path,c=(0,s.getActiveRootSpan)()??o;if(!n){const n=e?.patch,o=e?.matches;n&&(e.patch=(e,r)=>{if(H(r),o&&o.length>0){const t=o[o.length-1],n=t?.route;if(n){const t=Array.from(b).find(t=>{const o=void 0!==t.id&&t.id===e,r=t===n,u=void 0!==t.path&&void 0!==n.path&&t.path===n.path;return o||r||u});t&&P(r,t)}}const s=c?(0,t.spanToJSON)(c):void 0;return u&&c&&s&&!s.timestamp&&"navigation"===s.op&&W(c,{pathname:u,search:"",hash:"",state:null,key:"default"},Array.from(b),!0,f),n(e,r)})}const l=(async()=>{const n=(0,s.setNavigationContext)(u,c);let o;try{o=await r(e)}finally{(0,s.clearNavigationContext)(n),c&&w(c)}const l=c?(0,t.spanToJSON)(c):void 0;if(c&&l&&!l.timestamp&&"navigation"===l.op){u&&W(c,{pathname:u,search:"",hash:"",state:null,key:"default"},Array.from(b),!1,f)}return o})();return c&&B(c,l),l}}}function G(n){const{location:r,routes:u,navigationType:c,version:l,matches:p,basename:d,allRoutes:h}=n,y=Array.isArray(p)?p:f(h||u,r,d),T=(0,t.getClient)();if(!T||!N.has(T))return;const b=(0,s.getActiveRootSpan)();if((!b||"pageload"!==(0,t.spanToJSON)(b).op||"POP"!==c)&&("PUSH"===c||"POP"===c)&&y){const[n,c]=(0,s.resolveRouteNameAndSource)(r,h||u,h||u,y,d,_,R),p=O(r),f=v.get(T),N=!(!f||f.isPlaceholder)&&!!(0,t.spanToJSON)(f.span).timestamp,{skip:b,shouldUpdate:S}=U(f,p,n,N);if(b){if(S&&f){const e=f.routeName;f.isPlaceholder?(f.routeName=n,o.DEBUG_BUILD&&t.debug.log(`[Tracing] Updated placeholder navigation name from "${e}" to "${n}" (will apply to real span)`)):(f.span.updateName(n),f.span.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,c),(0,t.addNonEnumerableProperty)(f.span,"__sentry_navigation_name_set__",!0),f.routeName=n,o.DEBUG_BUILD&&t.debug.log(`[Tracing] Updated navigation span name from "${e}" to "${n}"`))}else o.DEBUG_BUILD&&t.debug.log(`[Tracing] Skipping duplicate navigation for location: ${p}`);return}const A={span:{end:()=>{}},routeName:n,pathname:r.pathname,locationKey:p,isPlaceholder:!0};let E;v.set(T,A);try{E=(0,e.startBrowserTracingNavigationSpan)(T,{name:A.routeName,attributes:{[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:c,[t.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter"+(l?`_v${l}`:"")}})}catch(e){throw v.delete(T),e}E?(v.set(T,{span:E,routeName:A.routeName,pathname:r.pathname,locationKey:p}),x(E,r,u,d,"navigation")):v.delete(T)}}function H(e){e.forEach(e=>{Y(e).forEach(e=>{b.add(e)})})}function Y(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(e=>{Y(e,t).forEach(e=>{t.add(e)})})),t}function J({activeRootSpan:e,location:n,routes:o,matches:r,basename:u,allRoutes:c}){const l=Array.isArray(r)?r:f(c||o,n,u);if(l){const[r,p]=(0,s.resolveRouteNameAndSource)(n,c||o,c||o,l,u,_,R);(0,t.getCurrentScope)().setTransactionName(r||"/"),e&&(e.updateName(r),e.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,p),x(e,n,o,u,"pageload"))}else e&&x(e,n,o,u,"pageload")}function F(e,t,n,o,r=!1){if(!n)return!1;if(!e&&r)return!0;return!(!e||!(0,s.transactionNameHasWildcard)(e)||"route"!==o||(0,s.transactionNameHasWildcard)(n))||"route"!==t&&"route"===o}function V(e,n,r,u,c,l,p,d){try{const o=n.data?.[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if("route"===o&&r&&!(0,s.transactionNameHasWildcard)(r))return;const h=Array.from(d),y=h.length>0?h:c,N=f(y,u,l);if(!N)return;const[T,v]=(0,s.resolveRouteNameAndSource)(u,y,y,N,l,_,R),b=F(r,o,T,v,!0),S="pageload"===p||!n.timestamp;b&&S&&(e.updateName(T),e.setAttribute(t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,v))}catch(e){o.DEBUG_BUILD&&t.debug.warn(`Error updating span details before ending: ${e}`)}}function x(e,n,o,r,u){const c=`__sentry_${u}_end_patched__`,l=e?.[c];if(l||!e.end)return;const p=e.end.bind(e);let d=!1;e.end=function(...c){if(d)return;d=!0;const l=c.length>0?c[0]:Date.now()/1e3,f=(0,t.spanToJSON)(e),_=f.description,R=f.data?.[t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],y=()=>{const n=(0,t.getClient)();if(n&&"navigation"===u){const t=v.get(n);t&&t.span===e&&v.delete(n)}},N=S.get(e),T=e.__sentry_may_have_lazy_routes__;if((N&&N.size>0||T)&&_&&((0,s.transactionNameHasWildcard)(_)||"route"!==R)){if(0===h)return V(e,f,_,n,o,r,u,b),y(),void p(l);const s=new Promise(e=>setTimeout(e,h));let c;if(N&&N.size>0){const e=Promise.allSettled(N).then(()=>{});c=h===1/0?e:Promise.race([e,s])}else c=s;return void c.then(()=>{const s=(0,t.spanToJSON)(e);V(e,s,s.description,n,o,r,u,b),y(),p(l)}).catch(()=>{y(),p(l)})}V(e,f,_,n,o,r,u,b),y(),p(l)},(0,t.addNonEnumerableProperty)(e,c,!0)}function K(e,u){if(!(c&&l&&p&&d&&f))return o.DEBUG_BUILD&&t.debug.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n      useEffect: ${c}
1246. useLocation: ${l}. useNavigationType: ${p}.\n      createRoutesFromChildren: ${d}. matchRoutes: ${f}.`),e;const _=t=>{const o=n.useRef(!0),r=l(),c=p();return T(()=>{const e=d(t.children);o.current?(H(e),J({activeRootSpan:(0,s.getActiveRootSpan)(),location:r,routes:e,allRoutes:Array.from(b)}),o.current=!1):G({location:r,routes:e,navigationType:c,version:u,allRoutes:Array.from(b)})},[r,c]),n.createElement(e,{...t})};return(0,r.hoistNonReactStatics)(_,e),_}},2771,[1537,2697,29,2765,2763,2772,2773]);
1247__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"checkRouteForAsyncHandler",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"createAsyncHandlerProxy",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"handleAsyncHandlerResult",{enumerable:!0,get:function(){return s}});var e=r(d[0]),n=r(d[1]),t=r(d[2]),o=r(d[3]);function c(){const c=(0,o.getNavigationContext)();if(c)return c.targetPath?{pathname:c.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==e.WINDOW)try{const n=e.WINDOW.location;if(n)return{pathname:n.pathname,search:n.search||"",hash:n.hash||"",state:null,key:"default"}}catch{t.DEBUG_BUILD&&n.debug.warn("[React Router] Could not access window.location")}return null}function u(){const e=(0,o.getNavigationContext)();return e?e.span:(0,o.getActiveRootSpan)()}function l(e,t,o,l){const f=new Proxy(e,{apply(e,n,f){const h=c(),y=u(),p=e.apply(n,f);return s(p,t,o,l,h,y),p}});return(0,n.addNonEnumerableProperty)(f,"__sentry_proxied__",!0),f}function s(e,o,c,u,l,s){(0,n.isThenable)(e)?e.then(e=>{Array.isArray(e)&&u(e,o,l??void 0,s)}).catch(e=>{t.DEBUG_BUILD&&n.debug.warn(`Error resolving async handler '${c}' for route`,o,e)}):Array.isArray(e)&&u(e,o,l??void 0,s)}function f(e,n){if(e.handle&&"object"==typeof e.handle)for(const t of Object.keys(e.handle)){const o=e.handle[t];"function"!=typeof o||o.__sentry_proxied__||(e.handle[t]=l(o,e,t,n))}if(Array.isArray(e.children))for(const t of e.children)f(t,n)}},2772,[1537,2697,2765,2773]);
1248__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"clearNavigationContext",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"getActiveRootSpan",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"getNavigationContext",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getNormalizedName",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"getNumberOfUrlSegments",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"initializeRouterUtils",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"locationIsInsideDescendantRoute",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"pathEndsWithWildcard",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"pathIsWildcardAndHasChildren",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"prefixWithSlash",{enumerable:!0,get:function(){return B}}),Object.defineProperty(e,"rebuildRoutePathFromAllRoutes",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"resolveRouteNameAndSource",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"routeIsDescendant",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"setNavigationContext",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"transactionNameHasWildcard",{enumerable:!0,get:function(){return v}});var t=r(d[0]),n=r(d[1]),o=r(d[2]);let u,c=!1;const f=[],l=10;function s(o,u){const c={};return f.length>=l&&(n.DEBUG_BUILD&&t.debug.warn("[React Router] Navigation context stack overflow - removing oldest context"),f.shift()),f.push({token:c,targetPath:o,span:u}),c}function h(t){const n=f[f.length-1];n?.token===t&&f.pop()}function p(){const t=f.length;return t>0?f[t-1]??null:null}function b(t,n=!1){u=t,c=n}function P(t){return"*"===(n=t.route.path||"")[n.length-1]?n.slice(0,-1):n;var n}function O(t){return t.params["*"]||""}function j(t){return"/"===t[t.length-1]?t.slice(0,-1):t}function y(t){return t.endsWith("*")}function v(t){return t.includes("/*")||t.endsWith("*")}function N(t,n){return y(t)&&!!n.route.children?.length||!1}function R(t){return!(t.children||!t.element||!t.path?.endsWith("/*"))}function W(t,n,u){const f=t&&t.length>0?t:c?(0,o.stripBasenameFromPathname)(n,u):n;let l="/*"===f.slice(-2)?f.slice(0,-2):f;return l.length>1&&"/"===l[l.length-1]&&(l=l.slice(0,-1)),[l,"route"]}function x(t){return t.split(/\\?\//).filter(t=>t.length>0&&","!==t).length}function B(t){return"/"===t[0]?t:`/${t}`}function S(t,n){const c=u(t,n);if(!c||0===c.length)return"";for(const u of c)if(u.route.path&&"*"!==u.route.path){const c=P(u),f=(0,o.stripBasenameFromPathname)(n.pathname,B(u.pathnameBase));return n.pathname===f?j(f):j(j(c||"")+B(S(t.filter(t=>t!==u.route),{pathname:f})))}return""}function A(t,n){const o=u(n,t);if(o)for(const t of o)if(R(t.route)&&O(t))return!0;return!1}function F(t,n){return c?(0,o.stripBasenameFromPathname)(t.pathname,n):t.pathname||""}function I(t,n,u,f=""){if(!t||0===t.length)return[c?(0,o.stripBasenameFromPathname)(n.pathname,f):n.pathname,"url"];if(!u)return[F(n,f),"url"];let l="";for(const t of u){const o=t.route;if(!o)continue;if(o.index)return W(l,t.pathname,f);const u=o.path;if(!u||N(u,t))continue;const s="/"===u[0]||"/"===l[l.length-1]?u:`/${u}`;if(l=j(l)+B(s),j(n.pathname)===j(f+t.pathname))return x(l)===x(t.pathname)||y(l)?(N(l,t)&&(l=l.slice(0,-1)),[(c?"":f)+l,"route"]):[(c?"":f)+s,"route"]}return[F(n,f),"url"]}function _(t,n,u,f,l="",s,h){if(h&&s&&s.length>0){const n=(0,o.matchRouteManifest)(t.pathname,s,l);
1248if(n)return[(c?"":l)+n,"route"]}let p,b="url";const P=A(t,u);return P&&(p=B(S(u,t)),b="route"),P&&p||([p,b]=I(n,t,f,l)),[p||t.pathname,b]}function C(){const n=(0,t.getActiveSpan)(),o=n?(0,t.getRootSpan)(n):void 0;if(!o)return;const u=(0,t.spanToJSON)(o).op;return"navigation"===u||"pageload"===u?o:void 0}},2773,[1766,2765,2774]);
1249__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"matchRouteManifest",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"stripBasenameFromPathname",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);function o(t,n){if(!n||"/"===n)return t;if(!t.toLowerCase().startsWith(n.toLowerCase()))return t;const o=n.endsWith("/")?n.length-1:n.length,u=t.charAt(o);return u&&"/"!==u?t:t.slice(o)||"/"}const u=new WeakMap;function i(i,f,s){if(!i||!f?.length)return null;const l=s?o(i,s):i;let a=u.get(f);a||(a=R(f),u.set(f,a),n.DEBUG_BUILD&&t.debug.log("[React Router] Sorted route manifest by specificity:",a.length,"patterns"));for(const o of a)if(c(l,o))return n.DEBUG_BUILD&&t.debug.log("[React Router] Matched pathname",l,"to pattern",o),o;return n.DEBUG_BUILD&&t.debug.log("[React Router] No manifest match found for pathname:",l),null}function c(t,n){if("/"===n)return"/"===t||""===t;const o=s(t),u=s(n);if(u.length>0&&"*"===u[u.length-1]){const t=u.slice(0,-1);if(o.length<t.length)return!1;for(const[n,u]of t.entries())if(!f(o[n],u))return!1;return!0}if(o.length!==u.length)return!1;for(const[t,n]of u.entries())if(!f(o[t],n))return!1;return!0}function f(t,n){return void 0!==t&&void 0!==n&&(!!l.test(n)||t===n)}function s(t){return t.split("/").filter(Boolean)}const l=/^:[\w-]+$/,a=10,h=3,p=1,b=-2;function B(t){const n=t.split("/");let o=n.length;n.includes("*")&&(o+=b);for(const t of n)"*"!==t&&(l.test(t)?o+=h:o+=""===t?p:a);return o}function R(t){return[...t].sort((t,n)=>{const o=B(t);return B(n)-o})}},2774,[1766,2765]);
1250__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reactRouterV7BrowserTracingIntegration",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"withSentryReactRouterV7Routing",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"wrapCreateBrowserRouterV7",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"wrapCreateMemoryRouterV7",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"wrapUseRoutesV7",{enumerable:!0,get:function(){return f}});var t=r(d[0]);function n(n){return(0,t.createReactRouterV6CompatibleTracingIntegration)(n,"7")}function o(n){return(0,t.createV6CompatibleWithSentryReactRouterRouting)(n,"7")}function u(n){return(0,t.createV6CompatibleWrapCreateBrowserRouter)(n,"7")}function c(n){return(0,t.createV6CompatibleWrapCreateMemoryRouter)(n,"7")}function f(n){return(0,t.createV6CompatibleWrapUseRoutes)(n,"7")}r(d[1]),r(d[2]),r(d[3])},2775,[2771,1766,1537,2697]);
1251__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"reactRouterBrowserTracingIntegration",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"wrapCreateBrowserRouter",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"wrapCreateMemoryRouter",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"wrapReactRouterRouting",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"wrapUseRoutes",{enumerable:!0,get:function(){return p}});var t=r(d[0]);function n(n){return(0,t.createReactRouterV6CompatibleTracingIntegration)(n,"")}function o(n){return(0,t.createV6CompatibleWithSentryReactRouterRouting)(n,"")}function u(n){return(0,t.createV6CompatibleWrapCreateBrowserRouter)(n,"")}function c(n){return(0,t.createV6CompatibleWrapCreateMemoryRouter)(n,"")}function p(n){return(0,t.createV6CompatibleWrapUseRoutes)(n,"")}r(d[1]),r(d[2]),r(d[3])},2776,[2771,1766,1537,2697]);

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.