;!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]="3de32b0c-3e8a-f2d5-6e65-e750c380bc34")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27292,930702,231916,637494,37077,24039,173532,973881,550247,694970,551068,819065,260889,478792,950187,166219,731187,443143,821315,116402,278077,228879,827255,83134,255055,981704,3435,48718,864735,525035,540363,989018,303573,824610,641856,744754,749481,288155,358176,290276,745511,582494,972644,147949,t=>{"use strict";let e,n,r,s,i,a,o,c,u,p="10.57.0";t.s(["SDK_VERSION",0,p],930702);let l=globalThis;function d(){return f(l),l}function f(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||p,e[p]=e[p]||{}}function _(t,e,n=l){let r=n.__SENTRY__=n.__SENTRY__||{},s=r[p]=r[p]||{};return s[t]||(s[t]=e())}t.s(["GLOBAL_OBJ",0,l],231916),t.s(["getGlobalSingleton",0,_,"getMainCarrier",0,d,"getSentryCarrier",0,f],637494);let h="u"{let r=g[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function S(){return b().enabled}function y(t,...e){h&&S()&&m(()=>{l.console[t](`Sentry Logger [${t}]:`,...e)})}function b(){return h?_("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let E={enable:function(){b().enabled=!0},disable:function(){b().enabled=!1},isEnabled:S,log:function(...t){y("log",...t)},warn:function(...t){y("warn",...t)},error:function(...t){y("error",...t)}};t.s(["CONSOLE_LEVELS",0,["debug","info","warn","error","log","assert","trace"],"consoleSandbox",0,m,"debug",0,E,"originalConsoleMethods",0,g],24039);let T=Object.prototype.toString;function v(t){switch(T.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return w(t,Error)}}function I(t,e){return T.call(t)===`[object ${e}]`}function x(t){return I(t,"String")}function A(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function N(t){return null===t||A(t)||"object"!=typeof t&&"function"!=typeof t}function R(t){return I(t,"Object")}function k(t){return"u">typeof Event&&w(t,Event)}function C(t){return I(t,"RegExp")}function O(t){return!!(t?.then&&"function"==typeof t.then)}function w(t,e){try{return t instanceof e}catch{return!1}}function M(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{h&&E.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function P(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,M(t,"__sentry_original__",e)}catch{}}function D(t){if(v(t))return{message:t.message,name:t.name,stack:t.stack,...$(t)};if(k(t)){let{type:e,target:n,currentTarget:r,detail:s}=t;return{type:e,target:n,currentTarget:r,...s?{detail:s}:{},...$(t)}}return t}function $(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}function U(t){if(void 0!==e)return e?e(t):t();let n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return n in l&&"function"==typeof l[n]?(e=l[n])(t):(e=null,t())}function j(){return U(()=>Math.random())}function L(){return U(()=>Date.now())}t.s(["isDOMError",0,function(t){return I(t,"DOMError")},"isDOMException",0,function(t){return I(t,"DOMException")},"isError",0,v,"isErrorEvent",0,function(t){return I(t,"ErrorEvent")},"isEvent",0,k,"isInstanceOf",0,w,"isParameterizedString",0,A,"isPlainObject",0,R,"isPrimitive",0,N,"isRegExp",0,C,"isRequest",0,function(t){return"u">typeof Request&&w(t,Request)},"isString",0,x,"isThenable",0,O],173532),t.s(["addNonEnumerableProperty",0,M,"convertToPlainObject",0,D,"extractExceptionKeysForMessage",0,function(t){let e=Object.keys(D(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"},"fill",0,function(t,e,n){if(!(e in t))return;let r=t[e];if("function"!=typeof r)return;let s=n(r);"function"==typeof s&&P(s,r);try{t[e]=s}catch{h&&E.log(`Failed to replace method "${e}" in object`,t)}},"getOriginalFunction",0,function(t){return t.__sentry_original__},"markFunctionWrapped",0,P],973881),t.s(["safeDateNow",0,L,"safeMathRandom",0,j,"withRandomSafeContext",0,U],550247);let B=Symbol.for("sentry.skipNormalization"),F=Symbol.for("sentry.overrideNormalizationDepth"),Y=/\(error: (.*)\)/,J=/captureMessage|captureException/;function G(...t){let e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{let s=[],i=t.split("\n");for(let t=n;t1024&&(n=n.slice(0,1024));let a=Y.test(n)?n.replace(Y,"$1"):n;if(!a.includes("Error: ")){for(let t of e){let e=t(a);if(e){s.push(e);break}}if(s.length>=50+r)break}}var a=s.slice(r);if(!a.length)return[];let o=Array.from(a);return/sentryWrapped/.test(H(o).function||"")&&o.pop(),o.reverse(),J.test(H(o).function||"")&&(o.pop(),J.test(H(o).function||"")&&o.pop()),o.slice(0,50).map(t=>({...t,filename:t.filename||H(o).filename,function:t.function||"?"}))}}function H(t){return t[t.length-1]||{}}let K="";function z(t){try{if(!t||"function"!=typeof t)return K;return t.name||K}catch{return K}}function W(t,e=100,n=1/0){try{return function t(e,n,r=1/0,s=1/0,i=function(){let t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){let a,[o,c]=i;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let u=V(e,n);if(!u.startsWith("[object "))return u;if(n[B])return n;let p=(a=n[F],"number"==typeof a?a:void 0),l=void 0!==p?p:r;if(0===l)return u.replace("object ","");if(o(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let e=n.toJSON();return t("",e,l-1,s,i)}catch{}let d=Array.isArray(n)?[]:{},f=0,_=D(n);for(let e in _){if(!Object.prototype.hasOwnProperty.call(_,e))continue;if(f>=s){d[e]="[MaxProperties ~]";break}let n=_[e];d[e]=t(e,n,l-1,s,i),f++}return c(n),d}("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function V(e,r){try{var s;let e;if(n){let t=n(r);if(t)return t}if(r===t.g)return"[Global]";if("number"==typeof r&&!Number.isFinite(r))return`[${r}]`;if("function"==typeof r)return`[Function: ${z(r)}]`;if("symbol"==typeof r)return`[${String(r)}]`;if("bigint"==typeof r)return`[BigInt: ${String(r)}]`;let i=(s=r,e=Object.getPrototypeOf(s),e?.constructor?e.constructor.name:"null prototype");return`[object ${i}]`}catch(t){return`**non-serializable** (${t})`}}function q(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function X(t,e,n=!1){return!!x(t)&&(C(e)?e.test(t):x(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}function Q(t=l.crypto||l.msCrypto){try{if(t?.randomUUID)return U(()=>t.randomUUID()).replace(/-/g,"")}catch{}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,t=>(t^(15&16*j())>>t/4).toString(16))}function Z(t){return t.exception?.values?.[0]}function tt(t,e){let n=Z(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){let t={...r?.data,...e.data};n.mechanism.data=t}}function te(){return L()/1e3}function tn(){return(s??(s=function(){let{performance:t}=l;if(!t?.now||!t.timeOrigin)return te;let e=t.timeOrigin;return()=>(e+U(()=>t.now()))/1e3}()))()}t.s(["UNKNOWN_FUNCTION",0,"?","createStackParser",0,G,"getFramesFromEvent",0,function(t){let e=t.exception;if(e){let t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{}}},"getFunctionName",0,z,"normalizeStackTracePath",0,function(t){let e=t?.startsWith("file://")?t.slice(7):t;return e?.match(/\/[A-Z]:/)&&(e=e.slice(1)),e},"stackParserFromStackParserOptions",0,function(t){return Array.isArray(t)?G(...t):t}],694970),t.s(["normalize",0,W,"normalizeToSize",0,function t(e,n=3,r=102400){let s=W(e,n);return~-encodeURI(JSON.stringify(s)).split(/%..|./).length>r?t(e,n-1,r):s},"setNormalizeStringifier",0,function(t){n=t},"stringifyValue",0,V],551068),t.s(["isMatchingPattern",0,X,"safeJoin",0,function(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;er&&(e=r);let s=Math.max(e-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n=`'{snip} ${n}`),i":n||""},"uuid4",0,Q],260889);let tr=null;function ts(t){let e=tn(),n={sid:Q(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var t;return t=n,{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}}}};return t&&ti(n,t),n}function ti(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||tn(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Q()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{let e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function ta(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),ti(t,n)}function to(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;let r={...t};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=to(r[t],e[t],n-1));return r}function tc(){return Q()}function tu(){return Q().substring(16)}function tp(t){try{let e=l.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}function tl(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}t.s(["browserPerformanceTimeOrigin",0,function(){return null===tr&&(tr=function(){let{performance:t}=l;if(!t?.now)return;let e=U(()=>t.now()),n=L(),r=t.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+e-n))return r;let s=t.timing?.navigationStart;return"number"==typeof s&&3e5>Math.abs(s+e-n)?s:n-e}()),tr},"dateTimestampInSeconds",0,te,"timestampInSeconds",0,tn],478792),t.s(["closeSession",0,ta,"makeSession",0,ts,"updateSession",0,ti],950187),t.s(["merge",0,to],166219),t.s(["generateSpanId",0,tu,"generateTraceId",0,tc],731187);let td="_sentrySpan";function tf(t,e){e?M(t,td,tp(e)):delete t[td]}function t_(t){return tl(t[td])}t.s(["_getSpanForScope",0,t_,"_setSpanForScope",0,tf],443143);class th{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:tc(),sampleRand:j()}}clone(){let t=new th;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,tf(t,t_(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&&ti(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,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}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,e){return this._extra={...this._extra,[t]:e},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,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,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;let e="function"==typeof t?t(this):t,{tags:n,attributes:r,extra:s,user:i,contexts:a,level:o,fingerprint:c=[],propagationContext:u,conversationId:p}=(e instanceof th?e.getScopeData():R(e)?t:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),o&&(this._level=o),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),p&&(this._conversationId=p),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,tf(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tc(),sampleRand:j()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:te(),...t,message:t.message?q(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(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:t_(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=to(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=e?.event_id||Q();if(!this._client)return h&&E.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){let r=n?.event_id||Q();if(!this._client)return h&&E.warn("No client configured on scope - will not capture message!"),r;let s=n?.syntheticException??Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){let n=t.event_id||e?.event_id||Q();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):h&&E.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}let tg=t=>t instanceof Promise&&!t[tm],tm=Symbol("chained PromiseLike"),tS=(t,e,n)=>{let r=t.then(t=>(e(t),t),t=>{throw n(t),t});return tg(r)&&tg(t)?r:ty(t,r)},ty=(t,e)=>{if(!e)return t;let n=!1;for(let r in t){if(r in e)continue;n=!0;let s=t[r];"function"==typeof s?Object.defineProperty(e,r,{value:(...e)=>s.apply(t,e),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[tm]:!0}),e};class tb{constructor(t,e){let n,r;n=t||new th,r=e||new th,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){let e,n=this._pushScope();try{e=t(n)}catch(t){throw this._popScope(),t}return O(e)?tS(e,()=>this._popScope(),()=>this._popScope()):(this._popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function tE(){let t=f(d());return t.stack=t.stack||new tb(_("defaultCurrentScope",()=>new th),_("defaultIsolationScope",()=>new th))}function tT(t){return tE().withScope(t)}function tv(t,e){let n=tE();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function tI(t){return tE().withScope(()=>t(tE().getIsolationScope()))}function tx(t){let e=f(t);return e.acs?e.acs:{withIsolationScope:tI,withScope:tT,withSetScope:tv,withSetIsolationScope:(t,e)=>tI(e),getCurrentScope:()=>tE().getScope(),getIsolationScope:()=>tE().getIsolationScope()}}function tA(){return tx(d()).getCurrentScope()}function tN(){return tx(d()).getIsolationScope()}function tR(){return _("globalScope",()=>new th)}function tk(...t){let e=tx(d());if(2===t.length){let[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function tC(){return tA().getClient()}t.s(["getAsyncContextStrategy",0,tx],821315),t.s(["getClient",0,tC,"getCurrentScope",0,tA,"getGlobalScope",0,tR,"getIsolationScope",0,tN,"getTraceContextFromScope",0,function(t){let e=i?.();if(e)return{trace_id:e.traceId,span_id:e.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:s}=t.getPropagationContext(),a={trace_id:n,span_id:s||tu()};return r&&(a.parent_span_id=r),a},"hasExternalPropagationContext",0,function(){return void 0!==i},"withIsolationScope",0,function(...t){let e=tx(d());if(2===t.length){let[n,r]=t;return n?e.withSetIsolationScope(n,r):e.withIsolationScope(r)}return e.withIsolationScope(t[0])},"withScope",0,tk],116402);let tO="sentry.source",tw="sentry.sample_rate",tM="sentry.previous_trace_sample_rate",tP="sentry.op",tD="sentry.origin",t$="sentry.measurement_unit",tU="sentry.measurement_value",tj="sentry.custom_span_name",tL="sentry.profile_id",tB="sentry.exclusive_time";t.s(["GEN_AI_CONVERSATION_ID_ATTRIBUTE",0,"gen_ai.conversation.id","SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",0,tB,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",0,"http.request.method","SEMANTIC_ATTRIBUTE_PROFILE_ID",0,tL,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",0,tj,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",0,"sentry.environment","SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",0,"sentry.idle_span_finish_reason","SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",0,t$,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",0,tU,"SEMANTIC_ATTRIBUTE_SENTRY_OP",0,tP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",0,tD,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",0,tM,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",0,"sentry.release","SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",0,tw,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",0,"sentry.sdk.integrations","SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",0,"sentry.sdk.name","SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",0,"sentry.sdk.version","SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",0,"sentry.segment.id","SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",0,"sentry.segment.name","SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",0,tO,"SEMANTIC_ATTRIBUTE_URL_FULL",0,"url.full","SEMANTIC_ATTRIBUTE_USER_EMAIL",0,"user.email","SEMANTIC_ATTRIBUTE_USER_ID",0,"user.id","SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",0,"user.ip_address","SEMANTIC_ATTRIBUTE_USER_USERNAME",0,"user.name","SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",0,"sentry.link.type"],278077);let tF="sentry-";function tY(t){let e=tJ(t);if(!e)return;let n=Object.entries(e).reduce((t,[e,n])=>(e.startsWith(tF)&&(t[e.slice(tF.length)]=n),t),{});return Object.keys(n).length>0?n:void 0}function tJ(t){if(t&&(x(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>(Object.entries(tG(e)).forEach(([e,n])=>{t[e]=n}),t),{}):tG(t)}function tG(t){return t.split(",").map(t=>{let e=t.indexOf("=");return -1===e?[]:[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[e,n])=>(e&&n&&(t[e]=n),t),{})}function tH(t,e,n=()=>{},r=()=>{}){var s,i,a,o;let c;try{c=t()}catch(t){throw e(t),n(),t}return s=c,i=e,a=n,o=r,O(s)?tS(s,t=>{a(),o(t)},t=>{i(t),a()}):(a(),o(s),s)}function tK(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=t||tC()?.getOptions();return!!e&&(null!=e.tracesSampleRate||!!e.tracesSampler)}function tz(t){E.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function tW(t,e){if(!e?.length)return!1;for(let r of e){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(t.description&&X(t.description,r))return h&&tz(t),!0;continue}let e=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!e)continue;let s=!r.name||t.description&&X(t.description,r.name),i=!r.op||t.op&&X(t.op,r.op),a=!r.attributes||Object.entries(r.attributes).every(([e,n])=>(function(t,e){return"string"==typeof t&&("string"==typeof e||e instanceof RegExp)?X(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):t===e})(t.attributes?.[e],n));if(s&&i&&a)return h&&tz(t),!0}return!1}function tV(t){return"stream"===t.getOptions().traceLifecycle}function tq(t){if("boolean"==typeof t)return Number(t);let e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e))&&!(e<0)&&!(e>1))return e}function tX(t,e=!1){let n={};for(let[r,s]of Object.entries(t??{})){let t=function(t,e){let{value:n,unit:r}="object"==typeof t&&null!=t&&!Array.isArray(t)&&Object.keys(t).includes("value")?t:{value:t,unit:void 0},s=function(t){if(Array.isArray(t))return{value:t,type:"array"};let e="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";if(e)return{value:t,type:e}}(n),i=r&&"string"==typeof r?{unit:r}:{};if(s)return{...s,...i};if(!e||"skip-undefined"===e&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...i}}(s,e);t&&(n[r]=t)}return n}t.s(["SENTRY_BAGGAGE_KEY_PREFIX",0,tF,"baggageHeaderToDynamicSamplingContext",0,tY,"dynamicSamplingContextToSentryBaggageHeader",0,function(t){if(t){var e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${tF}${e}`]=n),t),{});return 0!==Object.keys(e).length?Object.entries(e).reduce((t,[e,n],r)=>{let s=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,i=0===r?s:`${t},${s}`;return i.length>8192?(h&&E.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):i},""):void 0}},"parseBaggageHeader",0,tJ],228879),t.s(["hasSpansEnabled",0,tK],827255),t.s(["reparentChildSpans",0,function(t,e){let n=e.parent_span_id,r=e.span_id;if(n)for(let e of t)e.parent_span_id===r&&(e.parent_span_id=n)},"shouldIgnoreSpan",0,tW],83134),t.s(["hasSpanStreamingEnabled",0,tV],255055),t.s(["parseSampleRate",0,tq],981704),t.s(["serializeAttributes",0,tX],3435),t.s(["SPAN_STATUS_ERROR",0,2,"SPAN_STATUS_OK",0,1,"SPAN_STATUS_UNSET",0,0,"setHttpStatus",0,function(t,e){t.setAttribute("http.response.status_code",e);let n=function(t){if(t<400&&t>=100)return{code:1};if(t>=400&&t<500)switch(t){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}(e);"unknown_error"!==n.message&&t.setStatus(n)}],48718);let tQ="_sentryScope",tZ="_sentryIsolationScope";function t0(t,e,n){t&&(M(t,tZ,tp(n)),M(t,tQ,e))}function t1(t){return{scope:t[tQ],isolationScope:tl(t[tZ])}}t.s(["getCapturedScopesOnSpan",0,t1,"setCapturedScopesOnSpan",0,t0],864735);let t2=/^o(\d+)\./,t4=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function t5(t,e=!1){let{host:n,path:r,pass:s,port:i,projectId:a,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function t3(t){let e=t4.exec(t);if(!e)return void m(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});let[n,r,s="",i="",a="",o=""]=e.slice(1),c="",u=o,p=u.split("/");if(p.length>1&&(c=p.slice(0,-1).join("/"),u=p.pop()),u){let t=u.match(/^\d+/);t&&(u=t[0])}return t7({host:i,pass:s,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function t7(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function t8(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};if(n.orgId)e=String(n.orgId);else{let t;r&&(t=r.match(t2),e=t?.[1])}return e}t.s(["dsnFromString",0,t3,"dsnToString",0,t5,"extractOrgIdFromClient",0,t8,"makeDsn",0,function(t){let e="string"==typeof t?t3(t):t7(t);if(e&&function(t){if(!h)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(E.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(E.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(e&&isNaN(parseInt(e,10)))||(E.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(E.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}],525035);let t9=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function t6(t=tc(),e=tu(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function et(t=tc(),e=tu(),n){return`00-${t}-${e}-${n?"01":"00"}`}t.s(["TRACEPARENT_REGEXP",0,t9,"generateSentryTraceHeader",0,t6,"generateTraceparentHeader",0,et,"propagationContextFromHeaders",0,function(t,e){let n=function(t){let e;if(!t)return;let n=t.match(t9);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=tY(e);if(!n?.traceId)return{traceId:tc(),sampleRand:j()};let s=function(t,e){let n=tq(e?.sample_rand);if(void 0!==n)return n;let r=tq(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?j()*r:r+j()*(1-r):j()}(n,r);r&&(r.sample_rand=s.toString());let{traceId:i,parentSpanId:a,parentSampled:o}=n;return{traceId:i,parentSpanId:a,sampled:o,dsc:r||{},sampleRand:s}},"shouldContinueTrace",0,function(t,e){let n=t8(t);return e&&n&&e!==n?(E.log(`Won't continue trace because org IDs don't match (incoming baggage: ${e}, SDK options: ${n})`),!1):!t.getOptions().strictTraceContinuation||(!e||!!n)&&(!!e||!n)||(E.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${e}, Sentry client: ${n})`),!1)}],540363);let ee=!1;function en(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:a,origin:o,links:c}=ec(t);return{parent_span_id:i,span_id:e,trace_id:n,data:r,op:s,status:a,origin:o,links:c}}function er(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:ec(t).parent_span_id,i=t1(t).scope;return{parent_span_id:s,span_id:r?i?.getPropagationContext().propagationSpanId||tu():e,trace_id:n}}function es(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:1===n,attributes:s,...r})):void 0}function ei(t){return t?.length?t.map(({context:{spanId:t,traceId:e,traceFlags:n},attributes:r})=>({span_id:t,trace_id:e,sampled:1===n,attributes:r})):void 0}function ea(t){return"number"==typeof t?eo(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?eo(t.getTime()):tn()}function eo(t){return t>0x2540be3ff?t/1e3:t}function ec(t){if(el(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(ep(t)){let{attributes:r,startTime:s,name:i,endTime:a,status:o,links:c}=t;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:eu(t),start_timestamp:ea(s),timestamp:ea(a)||void 0,status:ef(o),op:r[tP],origin:r[tD],links:es(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function eu(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function ep(t){return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function el(t){return"function"==typeof t.getSpanJSON}function ed(t){let{traceFlags:e}=t.spanContext();return 1===e}function ef(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}function e_(t){return t&&1!==t.code&&0!==t.code&&"cancelled"!==t.message?"error":"ok"}let eh="_sentryChildSpans",eg="_sentryRootSpan";function em(t,e){let n=t[eg]||t;M(e,eg,n),t[eh]?t[eh].add(e):M(t,eh,new Set([e]))}function eS(t){let e=new Set;return!function t(n){if(!e.has(n)&&ed(n))for(let r of(e.add(n),n[eh]?Array.from(n[eh]):[]))t(r)}(t),Array.from(e)}let ey=eb;function eb(t){return t[eg]||t}function eE(){let t=tx(d());return t.getActiveSpan?t.getActiveSpan():t_(tA())}function eT(){ee||(m(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),ee=!0)}t.s(["INTERNAL_getSegmentSpan",0,eb,"TRACE_FLAG_NONE",0,0,"TRACE_FLAG_SAMPLED",0,1,"addChildSpanToSpan",0,em,"convertSpanLinksForEnvelope",0,es,"getActiveSpan",0,eE,"getRootSpan",0,ey,"getSimpleStatusMessage",0,e_,"getSpanDescendants",0,eS,"getStatusMessage",0,ef,"getStreamedSpanLinks",0,ei,"removeChildSpanFromSpan",0,function(t,e){t[eh]&&t[eh].delete(e)},"showSpanDropWarning",0,eT,"spanIsSampled",0,ed,"spanTimeInputToSeconds",0,ea,"spanToJSON",0,ec,"spanToStreamedSpanJSON",0,function(t){if(el(t))return t.getStreamedSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(ep(t)){let{attributes:r,startTime:s,name:i,endTime:a,status:o,links:c}=t;return{name:i,span_id:e,trace_id:n,parent_span_id:eu(t),start_timestamp:ea(s),end_timestamp:ea(a),is_segment:t===eb(t),status:e_(o),attributes:r,links:ei(c)}}return{span_id:e,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===eb(t)}},"spanToTraceContext",0,er,"spanToTraceHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return t6(e,n,ed(t))},"spanToTraceparentHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return et(e,n,ed(t))},"spanToTransactionTraceContext",0,en,"streamedSpanJsonToSerializedSpan",0,function(t){return{...t,attributes:tX(t.attributes),links:t.links?.map(t=>({...t,attributes:tX(t.attributes)}))}}],989018);let ev="production";t.s(["DEFAULT_ENVIRONMENT",0,ev],303573);let eI="_frozenDsc";function ex(t,e){M(t,eI,e)}function eA(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||ev,release:n.release,public_key:r,trace_id:t,org_id:t8(e)};return e.emit("createDsc",s),s}function eN(t){let e=tC();if(!e)return{};let n=ey(t),r=ec(n),s=r.data,i=n.spanContext().traceState,a=i?.get("sentry.sample_rate")??s[tw]??s[tM];function o(t){return("number"==typeof a||"string"==typeof a)&&(t.sample_rate=`${a}`),t}let c=n[eI];if(c)return o(c);let u=i?.get("sentry.dsc"),p=u&&tY(u);if(p)return o(p);let l=eA(t.spanContext().traceId,e),d=s[tO]??s["sentry.span.source"],f=r.description;return"url"!==d&&f&&(l.transaction=f),tK()&&(l.sampled=String(ed(n)),l.sample_rand=i?.get("sentry.sample_rand")??t1(n).scope?.getPropagationContext().sampleRand.toString()),o(l),e.emit("createDsc",l,n),l}t.s(["freezeDscOnSpan",0,ex,"getDynamicSamplingContextFromScope",0,function(t,e){let n=e.getPropagationContext();return n.dsc||eA(n.traceId,t)},"getDynamicSamplingContextFromSpan",0,eN],824610);class eR{constructor(t={}){this._traceId=t.traceId||tc(),this._spanId=t.spanId||tu(),this.dropReason=t.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,e){}}function ek(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}function eC(t,e=[]){return[t,e]}function eO(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function ew(t){let e=f(l);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function eM(t){return[{type:"span"},t]}t.s(["SentryNonRecordingSpan",0,eR],641856),t.s(["isStreamedBeforeSendSpanCallback",0,ek],744754);let eP={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 eD(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function e$(t,e,n,r){let s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(L()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:t5(r)},...s&&{trace:s}}}function eU(t,e){let n=eN(t[0]),r=e?.getDsn(),s=e?.getOptions().tunnel,i={sent_at:new Date(L()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!s&&r&&{dsn:t5(r)}},{beforeSendSpan:a,ignoreSpans:o}=e?.getOptions()||{},c=o?.length?t.filter(t=>{let e=ec(t);return!tW({description:e.description,op:e.op,attributes:e.data},o)}):t,u=t.length-c.length;u&&e?.recordDroppedEvent("before_send","span",u);let p=a?t=>{let e=ec(t),n=ek(a)?e:a(e);return n||(eT(),e)}:ec,l=[];for(let t of c){let e=p(t);e&&l.push(eM(e))}return eC(i,l)}function ej(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[t$],s=n[tU];"string"==typeof r&&"number"==typeof s&&(e[t.name]={value:s,unit:r})}),e}t.s(["addItemToEnvelope",0,function(t,e){let[n,r]=t;return[n,[...r,e]]},"createAttachmentEnvelopeItem",0,function(t){let e="string"==typeof t.data?ew(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]},"createEnvelope",0,eC,"createEventEnvelopeHeaders",0,e$,"createSpanEnvelopeItem",0,eM,"envelopeContainsItemType",0,function(t,e){return eO(t,(t,n)=>e.includes(n))},"envelopeItemTypeToDataCategory",0,function(t){return t in eP?eP[t]:t},"forEachEnvelopeItem",0,eO,"getSdkMetadataForEnvelopeHeader",0,eD,"serializeEnvelope",0,function(t){let[e,n]=t,r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[ew(r),t]:r.push("string"==typeof t?ew(t):t)}for(let t of n){let[e,n]=t;if(s(` ${JSON.stringify(e)} `),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(W(n))}s(t)}}return"string"==typeof r?r:function(t){let e=new Uint8Array(t.reduce((t,e)=>t+e.length,0)),n=0;for(let r of t)e.set(r,n),n+=r.length;return e}(r)}],749481),t.s(["createEventEnvelope",0,function(t,e,n,r){let s=eD(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return;let n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0}}(t,n?.sdk);let a=e$(t,s,r,e);return delete t.sdkProcessingMetadata,eC(a,[[{type:i},t]])},"createSessionEnvelope",0,function(t,e,n,r){let s=eD(n);return eC({sent_at:new Date(L()).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:t5(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])},"createSpanEnvelope",0,eU],288155),t.s(["setMeasurement",0,function(t,e,n,r=eE()){let s=r&&ey(r);s&&(h&&E.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),s.addEvent(t,{[tU]:e,[t$]:n}))},"timedEventsToMeasurements",0,ej],358176);class eL{constructor(t={}){this._traceId=t.traceId||tc(),this._spanId=t.spanId||tu(),this._startTime=t.startTimestamp||tn(),this._links=t.links,this._attributes={},this.setAttributes({[tD]:"manual",[tP]: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,e){}spanContext(){let{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:+!!n}}setAttribute(t,e){return void 0===e?delete this._attributes[t]:this._attributes[t]=e,this}setAttributes(t){return Object.keys(t).forEach(e=>this.setAttribute(e,t[e])),this}updateStartTime(t){this._startTime=ea(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(tO,"custom"),this}end(t){this._endTime||(this._endTime=ea(t),function(t){if(!h)return;let{description:e="< unknown name >",op:n="< unknown op >"}=ec(t),{spanId:r}=t.spanContext(),s=ey(t)===t,i=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${e}" with ID ${r}`;E.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[tP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ef(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tD],profile_id:this._attributes[tL],exclusive_time:this._attributes[tB],measurements:ej(this._events),is_segment:this._isStandaloneSpan&&ey(this)===this||void 0,segment_id:this._isStandaloneSpan?ey(this).spanContext().spanId:void 0,links:es(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===ey(this),status:e_(this._status),attributes:this._attributes,links:ei(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){h&&E.log("[Tracing] Adding an event to span:",t);let r=eB(e)?e:n||tn(),s=eB(e)?{}:e||{},i={name:t,time:ea(r),attributes:s};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=tC();if(t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===ey(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=tC();if(!e)return;let n=t[1];n&&0!==n.length?e.sendEnvelope(t):e.recordDroppedEvent("before_send","span")}(eU([this],t)):(h&&E.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));if(t&&tV(t))return void t.emit("afterSegmentSpanEnd",this);let e=this._convertSpanToTransaction();e&&(t1(this).scope||tA()).captureEvent(e)}_convertSpanToTransaction(){if(!eF(ec(this)))return;this._name||(h&&E.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:t,isolationScope:e}=t1(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let r=eS(this).filter(t=>{var e;return t!==this&&!((e=t)instanceof eL&&e.isStandaloneSpan())}).map(t=>ec(t)).filter(eF),s=this._attributes[tO];delete this._attributes[tj];let i=!1;r.forEach(t=>{delete t.data[tj],t.op?.startsWith("gen_ai.")&&(i=!0)});let a={contexts:{trace:en(this)},spans:r.length>1e3?r.sort((t,e)=>t.start_timestamp-e.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:e,dynamicSamplingContext:eN(this),hasGenAiSpans:i},request:n,...s&&{transaction_info:{source:s}}},o=ej(this._events);return o&&Object.keys(o).length&&(h&&E.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),a.measurements=o),a}}function eB(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function eF(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function eY(t,e){let n=eH();return n.withActiveSpan?n.withActiveSpan(t,e):tk(n=>(tf(n,t||void 0),e(n)))}function eJ({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){var s,i;let a,o;if(!tK()){let r=new eR;if(n||!t){let t={sampled:"false",sample_rate:"0",transaction:e.name,...eN(r)};ex(r,t)}return r}let c=tC();if(s=c,i=e,o=s?.getOptions().ignoreSpans,s&&tV(s)&&o?.length&&tW({description:i.name||"",op:i.attributes?.[tP]||i.op,attributes:i.attributes},o))return eq(r)||c?.recordDroppedEvent("ignored","span"),new eR({dropReason:"ignored",traceId:t?.spanContext().traceId??r.getPropagationContext().traceId});let u=tN();if(t&&!n)a=function(t,e,n){let{spanId:r,traceId:s}=t.spanContext(),i=eq(e),a=!i&&ed(t),o=a?new eL({...n,parentSpanId:r,traceId:s,sampled:a}):new eR({traceId:s});em(t,o);let c=tC();return c&&(tV(c)&&o instanceof eR&&(t instanceof eR&&t.dropReason?(o.dropReason=t.dropReason,c.recordDroppedEvent(t.dropReason,"span")):i||(o.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span"))),c.emit("spanStart",o),n.endTimestamp&&(c.emit("spanEnd",o),c.emit("afterSpanEnd",o))),o}(t,r,e),em(t,a);else if(t){let n=eN(t),{traceId:s,spanId:i}=t.spanContext(),o=ed(t);ex(a=eK({traceId:s,parentSpanId:i,...e},r,o),n)}else{let{traceId:t,dsc:n,parentSpanId:s,sampled:i}={...u.getPropagationContext(),...r.getPropagationContext()};a=eK({traceId:t,parentSpanId:s,...e},r,i),n&&ex(a,n)}return!function(t){if(!h)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=ec(t),{spanId:s}=t.spanContext(),i=ed(t),a=ey(t),o=a===t,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!o){let{op:t,description:e}=ec(a);u.push(`root ID: ${a.spanContext().spanId}`),t&&u.push(`root op: ${t}`),e&&u.push(`root description: ${e}`)}E.log(`${c} ${u.join("\n ")}`)}(a),t0(a,r,u),a}function eG(t){let e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...e};return n.startTimestamp=ea(t.startTime),delete n.startTime,n}return e}function eH(){return tx(d())}function eK(t,e,n){let r=tC(),s=r?.getOptions()||{},{name:i=""}=t,a={spanAttributes:{...t.attributes},spanName:i,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});let o=a.parentSampled??n,c=a.spanAttributes,u=e.getPropagationContext(),p=eq(e),[l,d,f]=p?[!1]:function(t,e,n){let r,s;if(!tK(t))return[!1];"function"==typeof t.tracesSampler?(r=t.tracesSampler({...e,inheritOrSampleWith:t=>"number"==typeof e.parentSampleRate?e.parentSampleRate:"boolean"==typeof e.parentSampled?Number(e.parentSampled):t}),s=!0):void 0!==e.parentSampled?r=e.parentSampled:void 0!==t.tracesSampleRate&&(r=t.tracesSampleRate,s=!0);let i=tq(r);if(void 0===i)return h&&E.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(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!i)return h&&E.log(`[Tracing] Discarding transaction because ${"function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,s];let a=neY(t,e):t=>t()}function eV(t){return t instanceof eR&&"ignored"===t.dropReason}function eq(t){return!0===t.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function eX(t){return new eZ(e=>{e(t)})}function eQ(t){return new eZ((e,n)=>{n(t)})}t.s(["SentrySpan",0,eL],290276),t.s(["startInactiveSpan",0,function(t){let e=eH();if(e.startInactiveSpan)return e.startInactiveSpan(t);let n=eG(t),{forceTransaction:r,parentSpan:s}=t;return(t.scope?e=>tk(t.scope,e):void 0!==s?t=>eY(s,t):t=>t())(()=>{let e=tA(),i=ez(e,s),a=tC();return t.onlyIfParent&&!i?(a?.recordDroppedEvent("no_parent_span","span"),new eR):eJ({parentSpan:i,spanArguments:n,forceTransaction:r,scope:e})})},"startNewTrace",0,function(t){let e=eH();return e.startNewTrace?e.startNewTrace(t):tk(e=>(e.setPropagationContext({traceId:tc(),sampleRand:j()}),h&&E.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`),eY(null,t)))},"startSpan",0,function(t,e){let n=eH();if(n.startSpan)return n.startSpan(t,e);let r=eG(t),{forceTransaction:s,parentSpan:i,scope:a}=t;return tk(a?.clone(),()=>eW(i)(()=>{let n=tA(),a=ez(n,i),o=tC(),c=t.onlyIfParent&&!a,u=c?new eR:eJ({parentSpan:a,spanArguments:r,forceTransaction:s,scope:n});return c&&o?.recordDroppedEvent("no_parent_span","span"),eV(u)&&a||tf(n,u),tH(()=>e(u),()=>{let{status:t}=ec(u);u.isRecording()&&(!t||"ok"===t)&&u.setStatus({code:2,message:"internal_error"})},()=>{u.end()})}))},"startSpanManual",0,function(t,e){let n=eH();if(n.startSpanManual)return n.startSpanManual(t,e);let r=eG(t),{forceTransaction:s,parentSpan:i,scope:a}=t;return tk(a?.clone(),()=>eW(i)(()=>{let n=tA(),a=ez(n,i),o=t.onlyIfParent&&!a,c=o?new eR:eJ({parentSpan:a,spanArguments:r,forceTransaction:s,scope:n});return o&&tC()?.recordDroppedEvent("no_parent_span","span"),eV(c)&&a||tf(n,c),tH(()=>e(c,()=>c.end()),()=>{let{status:t}=ec(c);c.isRecording()&&(!t||"ok"===t)&&c.setStatus({code:2,message:"internal_error"})})}))},"withActiveSpan",0,eY],745511);class eZ{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new eZ((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new eZ((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;let t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){let e=(t,e)=>{if(0===this._state){if(O(e))return void e.then(n,r);this._state=t,this._value=e,this._executeHandlers()}},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(t){r(t)}}}function e0(t,e){var n,r,s,i,a,o,c,u;let p,l,{fingerprint:d,span:f,breadcrumbs:_,sdkProcessingMetadata:h}=e;(function(t,e){let{extra:n,tags:r,user:s,contexts:i,level:a,transactionName:o}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(i).length&&(t.contexts={...i,...t.contexts}),a&&(t.level=a),o&&"transaction"!==t.type&&(t.transaction=o)})(t,e),f&&((n=t).contexts={trace:er(r=f),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:eN(r),...n.sdkProcessingMetadata},(p=ec(ey(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=p)),s=t,i=d,s.fingerprint=s.fingerprint?Array.isArray(s.fingerprint)?s.fingerprint:[s.fingerprint]:[],i&&(s.fingerprint=s.fingerprint.concat(i)),s.fingerprint.length||delete s.fingerprint,a=t,o=_,l=[...a.breadcrumbs||[],...o],a.breadcrumbs=l.length?l:void 0,c=t,u=h,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...u}}function e1(t,e){let{extra:n,tags:r,attributes:s,user:i,contexts:a,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:p,eventProcessors:l,attachments:d,propagationContext:f,transactionName:_,span:h}=e;e2(t,"extra",n),e2(t,"tags",r),e2(t,"attributes",s),e2(t,"user",i),e2(t,"contexts",a),t.sdkProcessingMetadata=to(t.sdkProcessingMetadata,c,2),o&&(t.level=o),_&&(t.transactionName=_),h&&(t.span=h),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),p.length&&(t.fingerprint=[...t.fingerprint,...p]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...f}}function e2(t,e,n){t[e]=to(t[e],n,1)}function e4(t,e){let n=tR().getScopeData();return t&&e1(n,t.getScopeData()),e&&e1(n,e.getScopeData()),n}function e5(t){if(t){var e;return(e=t)instanceof th||"function"==typeof e||Object.keys(t).some(t=>e3.includes(t))?{captureContext:t}:t}}t.s(["rejectedSyncPromise",0,eQ,"resolvedSyncPromise",0,eX],582494),t.s(["applyScopeDataToEvent",0,e0,"getCombinedScopeData",0,e4],972644);let e3=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function e7(){let t=tN(),e=tA().getSession()||t.getSession();e&&ta(e),e8(),t.setSession()}function e8(){let t=tN(),e=tC(),n=t.getSession();n&&e&&e.captureSession(n)}t.s(["parseEventHintOrCaptureContext",0,e5,"prepareEvent",0,function(t,e,n,r,s,i){var p,d,f;let _,{normalizeDepth:g=3,normalizeMaxBreadth:m=1e3}=t,S={...e,event_id:e.event_id||n.event_id||Q(),timestamp:e.timestamp||te()},y=n.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:s,maxValueLength:i}=e;t.environment=t.environment||n||ev,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);let a=t.request;a?.url&&i&&(a.url=q(a.url,i)),i&&t.exception?.values?.forEach(t=>{t.value&&(t.value=q(t.value,i))})})(S,t),p=S,(d=y).length>0&&(p.sdk=p.sdk||{},p.sdk.integrations=[...p.sdk.integrations||[],...d]),s&&s.emit("applyFrameMetadata",e),void 0===e.type&&(f=S,_=function(t){let e=l._sentryDebugIds,n=l._debugIds;if(!e&&!n)return{};let r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(u&&r.length===o&&s.length===c)return u;o=r.length,c=s.length,u={},a||(a={});let i=(e,n)=>{for(let r of e){let e=n[r],s=a?.[r];if(s&&u&&e)u[s[0]]=e,a&&(a[r]=[s[0],e]);else if(e){let n=t(r);for(let t=n.length-1;t>=0;t--){let s=n[t],i=s?.filename;if(i&&u&&a){u[i]=e,a[r]=[i,e];break}}}}};return e&&i(r,e),n&&i(s,n),u}(t.stackParser),f.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=_[t.filename])})}));let b=function(t,e){if(!e)return t;let n=t?t.clone():new th;return n.update(e),n}(r,n.captureContext);n.mechanism&&tt(S,n.mechanism);let T=s?s.getEventProcessors():[],v=e4(i,b),I=[...n.attachments||[],...v.attachments];I.length&&(n.attachments=I),e0(S,v);let x=[...T,...v.eventProcessors];return(n.data&&!0===n.data.__sentry__?eX(S):function(t,e,n,r=0){try{let s=function t(e,n,r,s){let i=r[s];if(!e||!i)return e;let a=i({...e},n);return(h&&null===a&&E.log(`Event processor "${i.id||"?"}" dropped event`),O(a))?a.then(e=>t(e,n,r,s+1)):t(a,n,r,s+1)}(e,n,t,r);return O(s)?s:eX(s)}catch(t){return eQ(t)}}(x,S,n)).then(t=>(t&&function(t){let e={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof g&&g>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:W(t.data,e,n)}}))},...t.user&&{user:W(t.user,e,n)},...t.contexts&&{contexts:W(t.contexts,e,n)},...t.extra&&{extra:W(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=W(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:W(t.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=W(t.contexts.flags,3,n)),r}(t,g,m):t)}],147949),t.s(["addEventProcessor",0,function(t){tN().addEventProcessor(t)},"captureEvent",0,function(t,e){return tA().captureEvent(t,e)},"captureException",0,function(t,e){return tA().captureException(t,e5(e))},"captureMessage",0,function(t,e){let n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return tA().captureMessage(t,n,r)},"captureSession",0,function(t=!1){t?e7():e8()},"isEnabled",0,function(){let t=tC();return t?.getOptions().enabled!==!1&&!!t?.getTransport()},"setContext",0,function(t,e){tN().setContext(t,e)},"setTag",0,function(t,e){tN().setTag(t,e)},"setUser",0,function(t){tN().setUser(t)},"startSession",0,function(t){let e=tN(),{user:n}=e4(e,tA()),{userAgent:r}=l.navigator||{},s=ts({user:n,...r&&{userAgent:r},...t}),i=e.getSession();return i?.status==="ok"&&ti(i,{status:"exited"}),e7(),e.setSession(s),s}],27292)}]); //# debugId=3de32b0c-3e8a-f2d5-6e65-e750c380bc34