;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f3289e66-9a5d-ae23-9c95-d96dc6b708c2")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,662537,30686,728469,454300,869766,804478,14177,541193,580611,147310,213186,e=>{"use strict";let t,n,a,s;var r=e.i(250804),i=e.i(901020),o=e.i(341041),p=e.i(301263),c=e.i(923288),u=e.i(519988),l=e.i(602309),d=e.i(272598),S=e.i(453288);function g(e,t,n=()=>{},a=()=>{}){var s,r,i,o;let p;try{p=e()}catch(e){throw t(e),n(),e}return s=p,r=t,i=n,o=a,(0,S.isThenable)(s)?s.then(e=>(i(),o(e),e),e=>{throw r(e),i(),e}):(i(),o(s),s)}e.s(["handleCallbackErrors",()=>g],30686);var _=e.i(10008),m=e.i(170637),h=e.i(373382),f=e.i(111139),T=e.i(821061),E=e.i(304661),I=e.i(132584),v=e.i(473753);class b{constructor(e={}){this._traceId=e.traceId||(0,h.generateTraceId)(),this._spanId=e.spanId||(0,h.generateSpanId)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:E.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}e.s(["SentryNonRecordingSpan",()=>b],728469);var C=e.i(339435),R=e.i(67486),A=e.i(821593);function D(e){d.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function N(e,t){if(!t?.length||!e.description)return!1;for(let a of t){var n;if("string"==typeof(n=a)||n instanceof RegExp){if((0,A.isMatchingPattern)(e.description,a))return i.DEBUG_BUILD&&D(e),!0;continue}if(!a.name&&!a.op)continue;let t=!a.name||(0,A.isMatchingPattern)(e.description,a.name),s=!a.op||e.op&&(0,A.isMatchingPattern)(e.op,a.op);if(t&&s)return i.DEBUG_BUILD&&D(e),!0}return!1}function U(e,t){let n=t.parent_span_id,a=t.span_id;if(n)for(let t of e)t.parent_span_id===a&&(t.parent_span_id=n)}function x(e,t,n,a){let s=(0,R.getSdkMetadataForEnvelopeHeader)(n),r={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!a&&t&&{dsn:(0,C.dsnToString)(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,R.createEnvelope)(r,[i])}function y(e,t,n,a){let s=(0,R.getSdkMetadataForEnvelopeHeader)(n),r=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk);let i=(0,R.createEventEnvelopeHeaders)(e,s,a,t);delete e.sdkProcessingMetadata;let o=[{type:r},e];return(0,R.createEnvelope)(i,[o])}function k(e,t){let n=(0,v.getDynamicSamplingContextFromSpan)(e[0]),a=t?.getDsn(),s=t?.getOptions().tunnel,r={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!s&&a&&{dsn:(0,C.dsnToString)(a)}},{beforeSendSpan:i,ignoreSpans:o}=t?.getOptions()||{},p=o?.length?e.filter(e=>!N((0,E.spanToJSON)(e),o)):e,c=e.length-p.length;c&&t?.recordDroppedEvent("before_send","span",c);let u=i?e=>{let t=(0,E.spanToJSON)(e),n=i(t);return n||((0,E.showSpanDropWarning)(),t)}:E.spanToJSON,l=[];for(let e of p){let t=u(e);t&&l.push((0,R.createSpanEnvelopeItem)(t))}return(0,R.createEnvelope)(r,l)}e.s(["reparentChildSpans",()=>U,"shouldIgnoreSpan",()=>N],454300),e.s(["createEventEnvelope",()=>y,"createSessionEnvelope",()=>x,"createSpanEnvelope",()=>k],869766);var B=e.i(605394);function M(e,t,n,a=(0,E.getActiveSpan)()){let s=a&&(0,E.getRootSpan)(a);s&&(i.DEBUG_BUILD&&d.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[u.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[u.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n}))}function O(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},a=n[u.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],s=n[u.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof a&&"number"==typeof s&&(t[e.name]={value:s,unit:a})}),t}e.s(["setMeasurement",()=>M,"timedEventsToMeasurements",()=>O],804478);var w=e.i(242222);class P{constructor(e={}){this._traceId=e.traceId||(0,h.generateTraceId)(),this._spanId=e.spanId||(0,h.generateSpanId)(),this._startTime=e.startTimestamp||(0,B.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?E.TRACE_FLAG_SAMPLED:E.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,E.spanTimeInputToSeconds)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=(0,E.spanTimeInputToSeconds)(e),function(e){if(!i.DEBUG_BUILD)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,E.spanToJSON)(e),{spanId:a}=e.spanContext(),s=(0,E.getRootSpan)(e)===e,r=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${t}" with ID ${a}`;d.debug.log(r)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[u.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,E.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[u.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[u.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:O(this._events),is_segment:this._isStandaloneSpan&&(0,E.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,E.getRootSpan)(this).spanContext().spanId:void 0,links:(0,E.convertSpanLinksForEnvelope)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){i.DEBUG_BUILD&&d.debug.log("[Tracing] Adding an event to span:",e);let a=L(t)?t:n||(0,B.timestampInSeconds)(),s=L(t)?{}:t||{},r={name:e,time:(0,E.spanTimeInputToSeconds)(a),attributes:s};return this._events.push(r),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,r.getClient)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,E.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=(0,r.getClient)();if(!t)return;let n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(k([this],e)):(i.DEBUG_BUILD&&d.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();t&&((0,w.getCapturedScopesOnSpan)(this).scope||(0,r.getCurrentScope)()).captureEvent(t)}_convertSpanToTransaction(){if(!G((0,E.spanToJSON)(this)))return;this._name||(i.DEBUG_BUILD&&d.debug.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:e,isolationScope:t}=(0,w.getCapturedScopesOnSpan)(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let a=(0,E.getSpanDescendants)(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof P&&t.isStandaloneSpan())}).map(e=>(0,E.spanToJSON)(e)).filter(G),s=this._attributes[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[u.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],a.forEach(e=>{delete e.data[u.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]});let r={contexts:{trace:(0,E.spanToTransactionTraceContext)(this)},spans:a.length>1e3?a.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,v.getDynamicSamplingContextFromSpan)(this)},request:n,...s&&{transaction_info:{source:s}}},o=O(this._events);return o&&Object.keys(o).length&&(i.DEBUG_BUILD&&d.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),r.measurements=o),r}}function L(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function G(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}e.s(["SentrySpan",()=>P],14177);var $=e.i(776710);let F="__SENTRY_SUPPRESS_TRACING__";function J(e,t){let n=X();if(n.startSpan)return n.startSpan(e,t);let a=W(e),{forceTransaction:s,parentSpan:i,scope:o}=e,p=o?.clone();return(0,r.withScope)(p,()=>ee(i)(()=>{let n=(0,r.getCurrentScope)(),o=Z(n,i),p=e.onlyIfParent&&!o?new b:q({parentSpan:o,spanArguments:a,forceTransaction:s,scope:n});return(0,T._setSpanForScope)(n,p),g(()=>t(p),()=>{let{status:e}=(0,E.spanToJSON)(p);p.isRecording()&&(!e||"ok"===e)&&p.setStatus({code:$.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{p.end()})}))}function Y(e,t){let n=X();if(n.startSpanManual)return n.startSpanManual(e,t);let a=W(e),{forceTransaction:s,parentSpan:i,scope:o}=e,p=o?.clone();return(0,r.withScope)(p,()=>ee(i)(()=>{let n=(0,r.getCurrentScope)(),o=Z(n,i),p=e.onlyIfParent&&!o?new b:q({parentSpan:o,spanArguments:a,forceTransaction:s,scope:n});return(0,T._setSpanForScope)(n,p),g(()=>t(p,()=>p.end()),()=>{let{status:e}=(0,E.spanToJSON)(p);p.isRecording()&&(!e||"ok"===e)&&p.setStatus({code:$.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function z(e){let t=X();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=W(e),{forceTransaction:a,parentSpan:s}=e;return(e.scope?t=>(0,r.withScope)(e.scope,t):void 0!==s?e=>H(s,e):e=>e())(()=>{let t=(0,r.getCurrentScope)(),i=Z(t,s);return e.onlyIfParent&&!i?new b:q({parentSpan:i,spanArguments:n,forceTransaction:a,scope:t})})}let j=(e,t)=>{let n=(0,c.getMainCarrier)(),a=(0,p.getAsyncContextStrategy)(n);if(a.continueTrace)return a.continueTrace(e,t);let{sentryTrace:s,baggage:i}=e,o=(0,r.getClient)(),u=(0,l.baggageHeaderToDynamicSamplingContext)(i);return o&&!(0,I.shouldContinueTrace)(o,u?.org_id)?V(t):(0,r.withScope)(e=>{let n=(0,I.propagationContextFromHeaders)(s,i);return e.setPropagationContext(n),(0,T._setSpanForScope)(e,void 0),t()})};function H(e,t){let n=X();return n.withActiveSpan?n.withActiveSpan(e,t):(0,r.withScope)(n=>((0,T._setSpanForScope)(n,e||void 0),t(n)))}function K(e){let t=X();return t.suppressTracing?t.suppressTracing(e):(0,r.withScope)(t=>{t.setSDKProcessingMetadata({[F]:!0});let n=e();return t.setSDKProcessingMetadata({[F]:void 0}),n})}function V(e){return(0,r.withScope)(t=>(t.setPropagationContext({traceId:(0,h.generateTraceId)(),sampleRand:(0,f.safeMathRandom)()}),i.DEBUG_BUILD&&d.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),H(null,e)))}function q({parentSpan:e,spanArguments:t,forceTransaction:n,scope:a}){let s;if(!(0,_.hasSpansEnabled)()){let a=new b;if(n||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,v.getDynamicSamplingContextFromSpan)(a)};(0,v.freezeDscOnSpan)(a,e)}return a}let o=(0,r.getIsolationScope)();if(e&&!n)s=function(e,t,n){let{spanId:a,traceId:s}=e.spanContext(),i=!t.getScopeData().sdkProcessingMetadata[F]&&(0,E.spanIsSampled)(e),o=i?new P({...n,parentSpanId:a,traceId:s,sampled:i}):new b({traceId:s});(0,E.addChildSpanToSpan)(e,o);let p=(0,r.getClient)();return p&&(p.emit("spanStart",o),n.endTimestamp&&p.emit("spanEnd",o)),o}(e,a,t),(0,E.addChildSpanToSpan)(e,s);else if(e){let n=(0,v.getDynamicSamplingContextFromSpan)(e),{traceId:r,spanId:i}=e.spanContext(),o=(0,E.spanIsSampled)(e);s=Q({traceId:r,parentSpanId:i,...t},a,o),(0,v.freezeDscOnSpan)(s,n)}else{let{traceId:e,dsc:n,parentSpanId:r,sampled:i}={...o.getPropagationContext(),...a.getPropagationContext()};s=Q({traceId:e,parentSpanId:r,...t},a,i),n&&(0,v.freezeDscOnSpan)(s,n)}return!function(e){if(!i.DEBUG_BUILD)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:a}=(0,E.spanToJSON)(e),{spanId:s}=e.spanContext(),r=(0,E.spanIsSampled)(e),o=(0,E.getRootSpan)(e),p=o===e,c=`[Tracing] Starting ${r?"sampled":"unsampled"} ${p?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(a&&u.push(`parent ID: ${a}`),!p){let{op:e,description:t}=(0,E.spanToJSON)(o);u.push(`root ID: ${o.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}d.debug.log(`${c} ${u.join("\n ")}`)}(s),(0,w.setCapturedScopesOnSpan)(s,a,o),s}function W(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=(0,E.spanTimeInputToSeconds)(e.startTime),delete n.startTime,n}return t}function X(){let e=(0,c.getMainCarrier)();return(0,p.getAsyncContextStrategy)(e)}function Q(e,t,n){let a=(0,r.getClient)(),s=a?.getOptions()||{},{name:o=""}=e,p={spanAttributes:{...e.attributes},spanName:o,parentSampled:n};a?.emit("beforeSampling",p,{decision:!1});let c=p.parentSampled??n,l=p.spanAttributes,S=t.getPropagationContext(),[g,h,f]=t.getScopeData().sdkProcessingMetadata[F]?[!1]:function(e,t,n){let a,s;if(!(0,_.hasSpansEnabled)(e))return[!1];"function"==typeof e.tracesSampler?(a=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),s=!0):void 0!==t.parentSampled?a=t.parentSampled:void 0!==e.tracesSampleRate&&(a=e.tracesSampleRate,s=!0);let r=(0,m.parseSampleRate)(a);if(void 0===r)return i.DEBUG_BUILD&&d.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(a)} of type ${JSON.stringify(typeof a)}.`),[!1];if(!r)return i.DEBUG_BUILD&&d.debug.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,r,s];let o=nH(e,t):e=>e()}e.s(["continueTrace",()=>j,"startInactiveSpan",()=>z,"startNewTrace",()=>V,"startSpan",()=>J,"startSpanManual",()=>Y,"suppressTracing",()=>K,"withActiveSpan",()=>H],541193);var et=e.i(682564),en=e.i(373250);function ea(e){return new er(t=>{t(e)})}function es(e){return new er((t,n)=>{n(e)})}class er{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new er((n,a)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){a(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){a(e)}else a(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new er((t,n)=>{let a,s;return this.then(t=>{s=!1,a=t,e&&e()},t=>{s=!0,a=t,e&&e()}).then(()=>{s?n(a):t(a)})})}_executeHandlers(){if(0===this._state)return;let 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(e){let t=(e,t)=>{if(0===this._state){if((0,S.isThenable)(t))return void t.then(n,a);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},a=e=>{t(2,e)};try{e(n,a)}catch(e){a(e)}}}e.s(["rejectedSyncPromise",()=>es,"resolvedSyncPromise",()=>ea],580611);var ei=e.i(994218),eo=e.i(936032),ep=e.i(225304);function ec(e){let r=ep.GLOBAL_OBJ._sentryDebugIds,i=ep.GLOBAL_OBJ._debugIds;if(!r&&!i)return{};let o=r?Object.keys(r):[],p=i?Object.keys(i):[];if(s&&o.length===n&&p.length===a)return s;n=o.length,a=p.length,s={},t||(t={});let c=(n,a)=>{for(let r of n){let n=a[r],i=t?.[r];if(i&&s&&n)s[i[0]]=n,t&&(t[r]=[i[0],n]);else if(n){let a=e(r);for(let e=a.length-1;e>=0;e--){let i=a[e],o=i?.filename;if(o&&s&&t){s[o]=n,t[r]=[o,n];break}}}}};return r&&c(o,r),i&&c(p,i),s}function eu(e,t){let n=ec(e);if(!n)return[];let a=[];for(let e of t){let t=(0,eo.normalizeStackTracePath)(e);t&&n[t]&&a.push({type:"sourcemap",code_file:e,debug_id:n[t]})}return a}e.s(["getDebugImagesForResources",()=>eu,"getFilenameToDebugIdMap",()=>ec],147310);var el=e.i(45968),ed=e.i(571993);function eS(e,t,n,a,s,r){var o,p,c;let u,{normalizeDepth:l=3,normalizeMaxBreadth:g=1e3}=e,_={...t,event_id:t.event_id||n.event_id||(0,et.uuid4)(),timestamp:t.timestamp||(0,B.dateTimestampInSeconds)()},m=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:a,dist:s,maxValueLength:r}=t;e.environment=e.environment||n||en.DEFAULT_ENVIRONMENT,!e.release&&a&&(e.release=a),!e.dist&&s&&(e.dist=s);let i=e.request;i?.url&&r&&(i.url=(0,A.truncate)(i.url,r)),r&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,A.truncate)(e.value,r))})})(_,e),o=_,(p=m).length>0&&(o.sdk=o.sdk||{},o.sdk.integrations=[...o.sdk.integrations||[],...p]),s&&s.emit("applyFrameMetadata",t),void 0===t.type&&(c=_,u=ec(e.stackParser),c.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=u[e.filename])})}));let h=function(e,t){if(!t)return e;let n=e?e.clone():new ei.Scope;return n.update(t),n}(a,n.captureContext);n.mechanism&&(0,et.addExceptionMechanism)(_,n.mechanism);let f=s?s.getEventProcessors():[],T=(0,ed.getCombinedScopeData)(r,h),E=[...n.attachments||[],...T.attachments];return E.length&&(n.attachments=E),(0,ed.applyScopeDataToEvent)(_,T),(function(e,t,n,a=0){try{let s=function e(t,n,a,s){let r=a[s];if(!t||!r)return t;let o=r({...t},n);return(i.DEBUG_BUILD&&null===o&&d.debug.log(`Event processor "${r.id||"?"}" dropped event`),(0,S.isThenable)(o))?o.then(t=>e(t,n,a,s+1)):e(o,n,a,s+1)}(t,n,e,a);return(0,S.isThenable)(s)?s:ea(s)}catch(e){return es(e)}})([...f,...T.eventProcessors],_,n).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof l&&l>0)?function(e,t,n){if(!e)return null;let a={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,el.normalize)(e.data,t,n)}}))},...e.user&&{user:(0,el.normalize)(e.user,t,n)},...e.contexts&&{contexts:(0,el.normalize)(e.contexts,t,n)},...e.extra&&{extra:(0,el.normalize)(e.extra,t,n)}};return e.contexts?.trace&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=(0,el.normalize)(e.contexts.trace.data,t,n))),e.spans&&(a.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,el.normalize)(e.data,t,n)}}))),e.contexts?.flags&&a.contexts&&(a.contexts.flags=(0,el.normalize)(e.contexts.flags,3,n)),a}(e,l,g):e)}function eg(e){if(e){var t;return(t=e)instanceof ei.Scope||"function"==typeof t||Object.keys(e).some(e=>e_.includes(e))?{captureContext:e}:e}}let e_=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function em(e,t){return(0,r.getCurrentScope)().captureException(e,eg(t))}function eh(e,t){let n="string"==typeof t?t:void 0,a="string"!=typeof t?{captureContext:t}:void 0;return(0,r.getCurrentScope)().captureMessage(e,n,a)}function ef(e,t){return(0,r.getCurrentScope)().captureEvent(e,t)}function eT(e,t){(0,r.getIsolationScope)().setContext(e,t)}function eE(e){(0,r.getIsolationScope)().setExtras(e)}function eI(e,t){(0,r.getIsolationScope)().setExtra(e,t)}function ev(e){(0,r.getIsolationScope)().setTags(e)}function eb(e,t){(0,r.getIsolationScope)().setTag(e,t)}function eC(e){(0,r.getIsolationScope)().setUser(e)}function eR(){return(0,r.getIsolationScope)().lastEventId()}function eA(e,t){let n=(0,r.getCurrentScope)(),a=(0,r.getClient)();if(a)if(a.captureCheckIn)return a.captureCheckIn(e,t,n);else i.DEBUG_BUILD&&d.debug.warn("Cannot capture check-in. Client does not support sending check-ins.");else i.DEBUG_BUILD&&d.debug.warn("Cannot capture check-in. No client defined.");return(0,et.uuid4)()}async function eD(e){let t=(0,r.getClient)();return t?t.flush(e):(i.DEBUG_BUILD&&d.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function eN(e){let t=(0,r.getClient)();return t?t.close(e):(i.DEBUG_BUILD&&d.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function eU(){return!!(0,r.getClient)()}function ex(){let e=(0,r.getClient)();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function ey(e){(0,r.getIsolationScope)().addEventProcessor(e)}function ek(e){let t=(0,r.getIsolationScope)(),n=(0,r.getCurrentScope)(),{userAgent:a}=ep.GLOBAL_OBJ.navigator||{},s=(0,o.makeSession)({user:n.getUser()||t.getUser(),...a&&{userAgent:a},...e}),i=t.getSession();return i?.status==="ok"&&(0,o.updateSession)(i,{status:"exited"}),eB(),t.setSession(s),s}function eB(){let e=(0,r.getIsolationScope)(),t=(0,r.getCurrentScope)().getSession()||e.getSession();t&&(0,o.closeSession)(t),eM(),e.setSession()}function eM(){let e=(0,r.getIsolationScope)(),t=(0,r.getClient)(),n=e.getSession();n&&t&&t.captureSession(n)}function eO(e=!1){e?eB():eM()}e.s(["parseEventHintOrCaptureContext",()=>eg,"prepareEvent",()=>eS],213186),e.s(["addEventProcessor",()=>ey,"captureCheckIn",()=>eA,"captureEvent",()=>ef,"captureException",()=>em,"captureMessage",()=>eh,"captureSession",()=>eO,"close",()=>eN,"endSession",()=>eB,"flush",()=>eD,"isEnabled",()=>ex,"isInitialized",()=>eU,"lastEventId",()=>eR,"setContext",()=>eT,"setExtra",()=>eI,"setExtras",()=>eE,"setTag",()=>eb,"setTags",()=>ev,"setUser",()=>eC,"startSession",()=>ek],662537)}]); //# debugId=f3289e66-9a5d-ae23-9c95-d96dc6b708c2 //# sourceMappingURL=e198c7b3a2d5d7c5.js.map