;!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]="bd27d640-0b6f-e49d-72ca-4bdc64f67747")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,560844,t=>{"use strict";t.s(["GEN_AI_CONVERSATION_ID_ATTRIBUTE",0,"gen_ai.conversation.id","SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",0,"sentry.exclusive_time","SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",0,"http.request.method","SEMANTIC_ATTRIBUTE_PROFILE_ID",0,"sentry.profile_id","SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",0,"sentry.custom_span_name","SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",0,"sentry.idle_span_finish_reason","SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",0,"sentry.measurement_unit","SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",0,"sentry.measurement_value","SEMANTIC_ATTRIBUTE_SENTRY_OP",0,"sentry.op","SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",0,"sentry.origin","SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",0,"sentry.previous_trace_sample_rate","SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",0,"sentry.sample_rate","SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",0,"sentry.source","SEMANTIC_ATTRIBUTE_URL_FULL",0,"url.full","SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",0,"sentry.link.type"])},455306,t=>{"use strict";let e=globalThis;t.s(["GLOBAL_OBJ",0,e])},122333,t=>{"use strict";let e;var n=t.i(455306);function r(t){if(void 0!==e)return e?e(t):t();let r=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),i=n.GLOBAL_OBJ;return r in i&&"function"==typeof i[r]?(e=i[r])(t):(e=null,t())}t.s(["safeDateNow",0,function(){return r(()=>Date.now())},"safeMathRandom",0,function(){return r(()=>Math.random())},"withRandomSafeContext",0,r])},752925,t=>{"use strict";let e;var n=t.i(122333),r=t.i(455306);function i(){return(0,n.safeDateNow)()/1e3}let s=null;t.s(["browserPerformanceTimeOrigin",0,function(){return null===s&&(s=function(){let{performance:t}=r.GLOBAL_OBJ;if(!t?.now)return;let e=(0,n.withRandomSafeContext)(()=>t.now()),i=(0,n.safeDateNow)(),s=t.timeOrigin;if("number"==typeof s&&3e5>Math.abs(s+e-i))return s;let a=t.timing?.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+e-i)?a:i-e}()),s},"dateTimestampInSeconds",0,i,"timestampInSeconds",0,function(){return(e??(e=function(){let{performance:t}=r.GLOBAL_OBJ;if(!t?.now||!t.timeOrigin)return i;let e=t.timeOrigin;return()=>(e+(0,n.withRandomSafeContext)(()=>t.now()))/1e3}()))()}])},475392,130660,769247,t=>{"use strict";let e="u"typeof Element&&o(t,Element)},"isError",0,function(t){switch(n.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return o(t,Error)}},"isErrorEvent",0,function(t){return r(t,"ErrorEvent")},"isEvent",0,function(t){return"u">typeof Event&&o(t,Event)},"isInstanceOf",0,o,"isParameterizedString",0,s,"isPlainObject",0,a,"isPrimitive",0,function(t){return null===t||s(t)||"object"!=typeof t&&"function"!=typeof t},"isRegExp",0,function(t){return r(t,"RegExp")},"isRequest",0,function(t){return"u">typeof Request&&o(t,Request)},"isString",0,i,"isSyntheticEvent",0,function(t){return a(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t},"isThenable",0,function(t){return!!(t?.then&&"function"==typeof t.then)},"isVueViewModel",0,function(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue||t.__v_isVNode))}],130660);let c=t.i(455306).GLOBAL_OBJ;t.s(["getComponentName",0,function(t){if(!c.HTMLElement)return null;let e=t;for(let t=0;t<5&&e;t++){if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null},"getLocationHref",0,function(){try{return c.document.location.href}catch{return""}},"htmlTreeAsString",0,function(t,e={}){if(!t)return"";try{let n,r=t,s=[],a=0,o=0,u=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;r&&a++<5&&(n=function(t,e){let n=[];if(!t?.tagName)return"";if(c.HTMLElement&&t instanceof HTMLElement&&t.dataset){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}n.push(t.tagName.toLowerCase());let r=e?.length?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(r?.length)r.forEach(t=>{n.push(`[${t[0]}="${t[1]}"]`)});else{t.id&&n.push(`#${t.id}`);let e=t.className;if(e&&i(e))for(let t of e.split(/\s+/))n.push(`.${t}`)}for(let e of["aria-label","type","name","title","alt"]){let r=t.getAttribute(e);r&&n.push(`[${e}="${r}"]`)}return n.join("")}(r,u),"html"!==n&&(!(a>1)||!(o+3*s.length+n.length>=l)));)s.push(n),o+=n.length,r=r.parentNode;return s.reverse().join(" > ")}catch{return""}}],769247)},98673,t=>{"use strict";t.s(["SDK_VERSION",0,"10.40.0"])},957941,t=>{"use strict";var e=t.i(98673),n=t.i(455306);function r(t){let n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||e.SDK_VERSION,n[e.SDK_VERSION]=n[e.SDK_VERSION]||{}}t.s(["getGlobalSingleton",0,function(t,r,i=n.GLOBAL_OBJ){let s=i.__SENTRY__=i.__SENTRY__||{},a=s[e.SDK_VERSION]=s[e.SDK_VERSION]||{};return a[t]||(a[t]=r())},"getMainCarrier",0,function(){return r(n.GLOBAL_OBJ),n.GLOBAL_OBJ},"getSentryCarrier",0,r])},759923,501046,t=>{"use strict";var e=t.i(475392),n=t.i(769247),r=t.i(957941),i=t.i(455306);let s={};function a(t){if(!("console"in i.GLOBAL_OBJ))return t();let e=i.GLOBAL_OBJ.console,n={},r=Object.keys(s);r.forEach(t=>{let r=s[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function o(){return u().enabled}function c(t,...n){e.DEBUG_BUILD&&o()&&a(()=>{i.GLOBAL_OBJ.console[t](`Sentry Logger [${t}]:`,...n)})}function u(){return e.DEBUG_BUILD?(0,r.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let l={enable:function(){u().enabled=!0},disable:function(){u().enabled=!1},isEnabled:o,log:function(...t){c("log",...t)},warn:function(...t){c("warn",...t)},error:function(...t){c("error",...t)}};t.s(["CONSOLE_LEVELS",0,["debug","info","warn","error","log","assert","trace"],"consoleSandbox",0,a,"debug",0,l,"originalConsoleMethods",0,s],501046);var p=t.i(130660);function d(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch{e.DEBUG_BUILD&&l.log(`Failed to add non-enumerable property "${n}" to object`,t)}}function _(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,d(t,"__sentry_original__",e)}catch{}}function f(t){if((0,p.isError)(t))return{message:t.message,name:t.name,stack:t.stack,...h(t)};if(!(0,p.isEvent)(t))return t;{let e={type:t.type,target:g(t.target),currentTarget:g(t.currentTarget),...h(t)};return"u">typeof CustomEvent&&(0,p.isInstanceOf)(t,CustomEvent)&&(e.detail=t.detail),e}}function g(t){try{return(0,p.isElement)(t)?(0,n.htmlTreeAsString)(t):Object.prototype.toString.call(t)}catch{return""}}function h(t){if("object"!=typeof t||null===t)return{};{let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}t.s(["addNonEnumerableProperty",0,d,"convertToPlainObject",0,f,"extractExceptionKeysForMessage",0,function(t){let e=Object.keys(f(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"},"fill",0,function(t,n,r){if(!(n in t))return;let i=t[n];if("function"!=typeof i)return;let s=r(i);"function"==typeof s&&_(s,i);try{t[n]=s}catch{e.DEBUG_BUILD&&l.log(`Failed to replace method "${n}" in object`,t)}},"getOriginalFunction",0,function(t){return t.__sentry_original__},"markFunctionWrapped",0,_],759923)},222271,183900,714604,t=>{"use strict";let e;var n=t.i(759923),r=t.i(122333),i=t.i(130660);let s=/\(error: (.*)\)/,a=/captureMessage|captureException/;function o(...t){let e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{let i=[],o=t.split("\n");for(let t=n;t1024&&(n=n.slice(0,1024));let a=s.test(n)?n.replace(s,"$1"):n;if(!a.match(/\S*Error: /)){for(let t of e){let e=t(a);if(e){i.push(e);break}}if(i.length>=50+r)break}}var u=i.slice(r);if(!u.length)return[];let l=Array.from(u);return/sentryWrapped/.test(c(l).function||"")&&l.pop(),l.reverse(),a.test(c(l).function||"")&&(l.pop(),a.test(c(l).function||"")&&l.pop()),l.slice(0,50).map(t=>({...t,filename:t.filename||c(l).filename,function:t.function||"?"}))}}function c(t){return t[t.length-1]||{}}let u="";function l(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function p(t,e,n=!1){return!!(0,i.isString)(t)&&((0,i.isRegExp)(e)?e.test(t):!!(0,i.isString)(e)&&(n?t===e:t.includes(e)))}t.s(["UNKNOWN_FUNCTION",0,"?","createStackParser",0,o,"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,function(t){try{if(!t||"function"!=typeof t)return u;return t.name||u}catch{return u}},"getVueInternalName",0,l,"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)?o(...t):t}],183900),t.s(["isMatchingPattern",0,p,"safeJoin",0,function(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;er&&(e=r);let i=Math.max(e-60,0);i<5&&(i=0);let s=Math.min(i+140,r);return s>r-5&&(s=r),s===r&&(i=Math.max(s-140,0)),n=n.slice(i,s),i>0&&(n=`'{snip} ${n}`),sp(t,e,n))},"truncate",0,function(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}],714604);var d=t.i(455306);function _(t){return t.exception?.values?.[0]}function f(t){try{return t.__sentry_captured__}catch{}}t.s(["addExceptionMechanism",0,function(t,e){let n=_(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}},"addExceptionTypeValue",0,function(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")},"checkOrSetAlreadyCaught",0,function(t){if(f(t))return!0;try{(0,n.addNonEnumerableProperty)(t,"__sentry_captured__",!0)}catch{}return!1},"getEventDescription",0,function(t){let{message:e,event_id:n}=t;if(e)return e;let r=_(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""},"isAlreadyCaptured",0,f,"uuid4",0,function(t=function(){let t=d.GLOBAL_OBJ;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return(0,r.withRandomSafeContext)(()=>t.randomUUID()).replace(/-/g,"")}catch{}return e||(e="10000000100040008000100000000000"),e.replace(/[018]/g,t=>(t^(15&16*(0,r.safeMathRandom)())>>t/4).toString(16))}],222271)},444035,492124,952422,820986,333204,860698,778011,t=>{"use strict";var e=t.i(957941),n=t.i(475392),r=t.i(222271),i=t.i(752925);function s(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||(0,i.timestampInSeconds)(),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:(0,r.uuid4)()),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)}t.s(["closeSession",0,function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),s(t,n)},"makeSession",0,function(t){let e=(0,i.timestampInSeconds)(),n={sid:(0,r.uuid4)(),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&&s(n,t),n},"updateSession",0,s],492124);var a=t.i(501046),o=t.i(130660);function c(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]=c(r[t],e[t],n-1));return r}function u(){return(0,r.uuid4)()}function l(){return(0,r.uuid4)().substring(16)}t.s(["merge",0,c],952422),t.s(["generateSpanId",0,l,"generateTraceId",0,u],820986);var p=t.i(122333),d=t.i(759923);let _="_sentrySpan";function f(t,e){e?(0,d.addNonEnumerableProperty)(t,_,e):delete t[_]}function g(t){return t[_]}t.s(["_getSpanForScope",0,g,"_setSpanForScope",0,f],333204);var h=t.i(714604);class m{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:u(),sampleRand:(0,p.safeMathRandom)()}}clone(){let t=new m;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,f(t,g(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&&s(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:i,user:s,contexts:a,level:c,fingerprint:u=[],propagationContext:l,conversationId:p}=(e instanceof m?e.getScopeData():(0,o.isPlainObject)(e)?t:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),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,f(this,void 0),this._attachments=[],this.setPropagationContext({traceId:u(),sampleRand:(0,p.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:(0,i.dateTimestampInSeconds)(),...t,message:t.message?(0,h.truncate)(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:g(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=c(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let i=e?.event_id||(0,r.uuid4)();if(!this._client)return n.DEBUG_BUILD&&a.debug.warn("No client configured on scope - will not capture exception!"),i;let s=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...e,event_id:i},this),i}captureMessage(t,e,i){let s=i?.event_id||(0,r.uuid4)();if(!this._client)return n.DEBUG_BUILD&&a.debug.warn("No client configured on scope - will not capture message!"),s;let o=i?.syntheticException??Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:o,...i,event_id:s},this),s}captureEvent(t,e){let i=t.event_id||e?.event_id||(0,r.uuid4)();return this._client?this._client.captureEvent(t,{...e,event_id:i},this):n.DEBUG_BUILD&&a.debug.warn("No client configured on scope - will not capture event!"),i}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}t.s(["Scope",0,m],860698);class S{constructor(t,e){let n,r;n=t||new m,r=e||new m,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(0,o.isThenable)(e)?e.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(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 E(){let t=(0,e.getMainCarrier)(),n=(0,e.getSentryCarrier)(t);return n.stack=n.stack||new S((0,e.getGlobalSingleton)("defaultCurrentScope",()=>new m),(0,e.getGlobalSingleton)("defaultIsolationScope",()=>new m))}function y(t){return E().withScope(t)}function T(t,e){let n=E();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function b(t){return E().withScope(()=>t(E().getIsolationScope()))}function I(t){let n=(0,e.getSentryCarrier)(t);return n.acs?n.acs:{withIsolationScope:b,withScope:y,withSetScope:T,withSetIsolationScope:(t,e)=>b(e),getCurrentScope:()=>E().getScope(),getIsolationScope:()=>E().getIsolationScope()}}function v(){return I((0,e.getMainCarrier)()).getCurrentScope()}t.s(["getAsyncContextStrategy",0,I],778011),t.s(["getClient",0,function(){return v().getClient()},"getCurrentScope",0,v,"getGlobalScope",0,function(){return(0,e.getGlobalSingleton)("globalScope",()=>new m)},"getIsolationScope",0,function(){return I((0,e.getMainCarrier)()).getIsolationScope()},"getTraceContextFromScope",0,function(t){let{traceId:e,parentSpanId:n,propagationSpanId:r}=t.getPropagationContext(),i={trace_id:e,span_id:r||l()};return n&&(i.parent_span_id=n),i},"withIsolationScope",0,function(...t){let n=I((0,e.getMainCarrier)());if(2===t.length){let[e,r]=t;return e?n.withSetIsolationScope(e,r):n.withIsolationScope(r)}return n.withIsolationScope(t[0])},"withScope",0,function(...t){let n=I((0,e.getMainCarrier)());if(2===t.length){let[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}],444035)},682876,503011,464635,11533,306159,643107,517437,943913,762406,938598,120372,94145,497569,90597,422414,953980,300160,521502,609201,874292,293217,t=>{"use strict";let e,n,r,i;var s=t.i(444035),a=t.i(475392),o=t.i(492124),c=t.i(778011),u=t.i(957941),l=t.i(560844),p=t.i(501046),d=t.i(130660);let _="sentry-",f=/^sentry-/;function g(t){let e=h(t);if(!e)return;let n=Object.entries(e).reduce((t,[e,n])=>(e.match(f)&&(t[e.slice(_.length)]=n),t),{});return Object.keys(n).length>0?n:void 0}function h(t){if(t&&((0,d.isString)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>(Object.entries(m(e)).forEach(([e,n])=>{t[e]=n}),t),{}):m(t)}function m(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 S(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=t||(0,s.getClient)()?.getOptions();return!!e&&(null!=e.tracesSampleRate||!!e.tracesSampler)}function E(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}t.s(["SENTRY_BAGGAGE_KEY_PREFIX",0,_,"baggageHeaderToDynamicSamplingContext",0,g,"dynamicSamplingContextToSentryBaggageHeader",0,function(t){if(t){var e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${_}${e}`]=n),t),{});return 0!==Object.keys(e).length?Object.entries(e).reduce((t,[e,n],r)=>{let i=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,s=0===r?i:`${t},${i}`;return s.length>8192?(a.DEBUG_BUILD&&p.debug.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},""):void 0}},"parseBaggageHeader",0,h],503011),t.s(["hasSpansEnabled",0,S],464635),t.s(["parseSampleRate",0,E],11533);var y=t.i(820986),T=t.i(122333),b=t.i(333204);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)}],306159);var I=t.i(759923),v=t.i(455306);let A="_sentryScope",N="_sentryIsolationScope";function C(t){return{scope:t[A],isolationScope:function(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}(t[N])}}var x=t.i(752925);let R=/^o(\d+)\./,O=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function D(t,e=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function M(t){let e=O.exec(t);if(!e)return void(0,p.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});let[n,r,i="",s="",a="",o=""]=e.slice(1),c="",u=o,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let t=u.match(/^\d+/);t&&(u=t[0])}return U({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function U(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function B(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};if(n.orgId)e=String(n.orgId);else{let t;r&&(t=r.match(R),e=t?.[1])}return e}t.s(["dsnFromString",0,M,"dsnToString",0,D,"extractOrgIdFromClient",0,B,"makeDsn",0,function(t){let e="string"==typeof t?M(t):U(t);if(e&&function(t){if(!a.DEBUG_BUILD)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(p.debug.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(p.debug.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(e&&isNaN(parseInt(e,10)))||(p.debug.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(p.debug.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}],643107);let k=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function L(t=(0,y.generateTraceId)(),e=(0,y.generateSpanId)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function w(t=(0,y.generateTraceId)(),e=(0,y.generateSpanId)(),n){return`00-${t}-${e}-${n?"01":"00"}`}t.s(["TRACEPARENT_REGEXP",0,k,"generateSentryTraceHeader",0,L,"generateTraceparentHeader",0,w,"propagationContextFromHeaders",0,function(t,e){let n=function(t){let e;if(!t)return;let n=t.match(k);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=g(e);if(!n?.traceId)return{traceId:(0,y.generateTraceId)(),sampleRand:(0,T.safeMathRandom)()};let i=function(t,e){let n=E(e?.sample_rand);if(void 0!==n)return n;let r=E(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?(0,T.safeMathRandom)()*r:r+(0,T.safeMathRandom)()*(1-r):(0,T.safeMathRandom)()}(n,r);r&&(r.sample_rand=i.toString());let{traceId:s,parentSpanId:a,parentSampled:o}=n;return{traceId:s,parentSpanId:a,sampled:o,dsc:r||{},sampleRand:i}},"shouldContinueTrace",0,function(t,e){let n=B(t);return e&&n&&e!==n?(p.debug.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)||(p.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${e}, Sentry client: ${n})`),!1)}],517437);let P=!1;function $(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:c}=J(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:a,origin:o,links:c}}function G(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:J(t).parent_span_id,s=C(t).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||(0,y.generateSpanId)():e,trace_id:n}}function j(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:i})=>({span_id:t,trace_id:e,sampled:1===n,attributes:i,...r})):void 0}function F(t){return"number"==typeof t?Y(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Y(t.getTime()):(0,x.timestampInSeconds)()}function Y(t){return t>0x2540be3ff?t/1e3:t}function J(t){var e;if("function"==typeof t.getSpanJSON)return t.getSpanJSON();let{spanId:n,traceId:r}=t.spanContext();if((e=t).attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:e,startTime:i,name:s,endTime:a,status:o,links:c}=t;return{span_id:n,trace_id:r,data:e,description:s,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0,start_timestamp:F(i),timestamp:F(a)||void 0,status:H(o),op:e[l.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:e[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:j(c)}}return{span_id:n,trace_id:r,start_timestamp:0,data:{}}}function V(t){let{traceFlags:e}=t.spanContext();return 1===e}function H(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}let K="_sentryChildSpans",z="_sentryRootSpan";function W(t,e){let n=t[z]||t;(0,I.addNonEnumerableProperty)(e,z,n),t[K]?t[K].add(e):(0,I.addNonEnumerableProperty)(t,K,new Set([e]))}function q(t){let e=new Set;return!function t(n){if(!e.has(n)&&V(n))for(let r of(e.add(n),n[K]?Array.from(n[K]):[]))t(r)}(t),Array.from(e)}function X(t){return t[z]||t}function Q(){let t=(0,u.getMainCarrier)(),e=(0,c.getAsyncContextStrategy)(t);return e.getActiveSpan?e.getActiveSpan():(0,b._getSpanForScope)((0,s.getCurrentScope)())}function Z(){P||((0,p.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),P=!0)}t.s(["TRACE_FLAG_NONE",0,0,"TRACE_FLAG_SAMPLED",0,1,"addChildSpanToSpan",0,W,"convertSpanLinksForEnvelope",0,j,"getActiveSpan",0,Q,"getRootSpan",0,X,"getSpanDescendants",0,q,"getStatusMessage",0,H,"removeChildSpanFromSpan",0,function(t,e){t[K]&&t[K].delete(e)},"showSpanDropWarning",0,Z,"spanIsSampled",0,V,"spanTimeInputToSeconds",0,F,"spanToJSON",0,J,"spanToTraceContext",0,G,"spanToTraceHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return L(e,n,V(t))},"spanToTraceparentHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return w(e,n,V(t))},"spanToTransactionTraceContext",0,$],943913);let tt="production";t.s(["DEFAULT_ENVIRONMENT",0,tt],762406);let te="_frozenDsc";function tn(t,e){(0,I.addNonEnumerableProperty)(t,te,e)}function tr(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||tt,release:n.release,public_key:r,trace_id:t,org_id:B(e)};return e.emit("createDsc",i),i}function ti(t){let e=(0,s.getClient)();if(!e)return{};let n=X(t),r=J(n),i=r.data,a=n.spanContext().traceState,o=a?.get("sentry.sample_rate")??i[l.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??i[l.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function c(t){return("number"==typeof o||"string"==typeof o)&&(t.sample_rate=`${o}`),t}let u=n[te];if(u)return c(u);let p=a?.get("sentry.dsc"),d=p&&g(p);if(d)return c(d);let _=tr(t.spanContext().traceId,e),f=i[l.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],h=r.description;return"url"!==f&&h&&(_.transaction=h),S()&&(_.sampled=String(V(n)),_.sample_rand=a?.get("sentry.sample_rand")??C(n).scope?.getPropagationContext().sampleRand.toString()),c(_),e.emit("createDsc",_,n),_}t.s(["freezeDscOnSpan",0,tn,"getDynamicSamplingContextFromScope",0,function(t,e){let n=e.getPropagationContext();return n.dsc||tr(n.traceId,t)},"getDynamicSamplingContextFromSpan",0,ti],938598);class ts{constructor(t={}){this._traceId=t.traceId||(0,y.generateTraceId)(),this._spanId=t.spanId||(0,y.generateSpanId)()}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){}}t.s(["SentryNonRecordingSpan",0,ts],120372);var ta=t.i(183900);function to(e,n=100,r=Infinity){try{return function e(n,r,i=Infinity,s=Infinity,a=function(){let t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){let[o,c]=a;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let u=function(e,n){try{var r;let i;if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(n===t.g)return"[Global]";if("u">typeof window&&n===window)return"[Window]";if("u">typeof document&&n===document)return"[Document]";if((0,d.isVueViewModel)(n))return(0,ta.getVueInternalName)(n);if((0,d.isSyntheticEvent)(n))return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${(0,ta.getFunctionName)(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;let s=(r=n,i=Object.getPrototypeOf(r),i?.constructor?i.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(s))return`[HTMLElement: ${s}]`;return`[object ${s}]`}catch(t){return`**non-serializable** (${t})`}}(n,r);if(!u.startsWith("[object "))return u;if(r.__sentry_skip_normalization__)return r;let l="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===l)return u.replace("object ","");if(o(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,l-1,s,a)}catch{}let p=Array.isArray(r)?[]:{},_=0,f=(0,I.convertToPlainObject)(r);for(let t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(_>=s){p[t]="[MaxProperties ~]";break}let n=f[t];p[t]=e(t,n,l-1,s,a),_++}return c(r),p}("",e,n,r)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function tc(t,e=[]){return[t,e]}function tu(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function tl(t){let e=(0,u.getSentryCarrier)(v.GLOBAL_OBJ);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function tp(t){return[{type:"span"},t]}t.s(["normalize",0,to,"normalizeToSize",0,function t(e,n=3,r=102400){let i=to(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}],94145);let td={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function t_(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function tf(t,e,n,r){let i=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:D(r)},...i&&{trace:i}}}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?tl(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]},"createEnvelope",0,tc,"createEventEnvelopeHeaders",0,tf,"createSpanEnvelopeItem",0,tp,"envelopeContainsItemType",0,function(t,e){return tu(t,(t,n)=>e.includes(n))},"envelopeItemTypeToDataCategory",0,function(t){return td[t]},"forEachEnvelopeItem",0,tu,"getSdkMetadataForEnvelopeHeader",0,t_,"parseEnvelope",0,function(t){let e="string"==typeof t?tl(t):t;function n(t){let n=e.subarray(0,t);return e=e.subarray(t+1),n}function r(){var t;let r,i=e.indexOf(10);return i<0&&(i=e.length),JSON.parse((t=n(i),(r=(0,u.getSentryCarrier)(v.GLOBAL_OBJ)).decodePolyfill?r.decodePolyfill(t):new TextDecoder().decode(t)))}let i=r(),s=[];for(;e.length;){let t=r(),e="number"==typeof t.length?t.length:void 0;s.push([t,e?n(e):r()])}return[i,s]},"serializeEnvelope",0,function(t){let[e,n]=t,r=JSON.stringify(e);function i(t){"string"==typeof r?r="string"==typeof t?r+t:[tl(r),t]:r.push("string"==typeof t?tl(t):t)}for(let t of n){let[e,n]=t;if(i(` ${JSON.stringify(e)} `),"string"==typeof n||n instanceof Uint8Array)i(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(to(n))}i(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)}],497569);var tg=t.i(714604);function th(t){p.debug.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function tm(t,e){if(!e?.length||!t.description)return!1;for(let r of e){var n;if("string"==typeof(n=r)||n instanceof RegExp){if((0,tg.isMatchingPattern)(t.description,r))return a.DEBUG_BUILD&&th(t),!0;continue}if(!r.name&&!r.op)continue;let e=!r.name||(0,tg.isMatchingPattern)(t.description,r.name),i=!r.op||t.op&&(0,tg.isMatchingPattern)(t.op,r.op);if(e&&i)return a.DEBUG_BUILD&&th(t),!0}return!1}function tS(t,e){let n=ti(t[0]),r=e?.getDsn(),i=e?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:D(r)}},{beforeSendSpan:a,ignoreSpans:o}=e?.getOptions()||{},c=o?.length?t.filter(t=>!tm(J(t),o)):t,u=t.length-c.length;u&&e?.recordDroppedEvent("before_send","span",u);let l=a?t=>{let e=J(t),n=a(e);return n||(Z(),e)}:J,p=[];for(let t of c){let e=l(t);e&&p.push(tp(e))}return tc(s,p)}function tE(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[l.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[l.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof r&&"number"==typeof i&&(e[t.name]={value:i,unit:r})}),e}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,tm],90597),t.s(["createEventEnvelope",0,function(t,e,n,r){let i=t_(n),s=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=tf(t,i,r,e);return delete t.sdkProcessingMetadata,tc(a,[[{type:s},t]])},"createSessionEnvelope",0,function(t,e,n,r){let i=t_(n);return tc({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:D(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])},"createSpanEnvelope",0,tS],422414),t.s(["setMeasurement",0,function(t,e,n,r=Q()){let i=r&&X(r);i&&(a.DEBUG_BUILD&&p.debug.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),i.addEvent(t,{[l.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e,[l.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n}))},"timedEventsToMeasurements",0,tE],953980);class ty{constructor(t={}){this._traceId=t.traceId||(0,y.generateTraceId)(),this._spanId=t.spanId||(0,y.generateSpanId)(),this._startTime=t.startTimestamp||(0,x.timestampInSeconds)(),this._links=t.links,this._attributes={},this.setAttributes({[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[l.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,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=F(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(l.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(t){this._endTime||(this._endTime=F(t),function(t){if(!a.DEBUG_BUILD)return;let{description:e="< unknown name >",op:n="< unknown op >"}=J(t),{spanId:r}=t.spanContext(),i=X(t)===t,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${e}" with ID ${r}`;p.debug.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:H(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[l.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[l.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:tE(this._events),is_segment:this._isStandaloneSpan&&X(this)===this||void 0,segment_id:this._isStandaloneSpan?X(this).spanContext().spanId:void 0,links:j(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){a.DEBUG_BUILD&&p.debug.log("[Tracing] Adding an event to span:",t);let r=tT(e)?e:n||(0,x.timestampInSeconds)(),i=tT(e)?{}:e||{},s={name:t,time:F(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=(0,s.getClient)();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===X(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=(0,s.getClient)();if(!e)return;let n=t[1];n&&0!==n.length?e.sendEnvelope(t):e.recordDroppedEvent("before_send","span")}(tS([this],t)):(a.DEBUG_BUILD&&p.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));let e=this._convertSpanToTransaction();e&&(C(this).scope||(0,s.getCurrentScope)()).captureEvent(e)}_convertSpanToTransaction(){if(!tb(J(this)))return;this._name||(a.DEBUG_BUILD&&p.debug.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:t,isolationScope:e}=C(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let r=q(this).filter(t=>{var e;return t!==this&&!((e=t)instanceof ty&&e.isStandaloneSpan())}).map(t=>J(t)).filter(tb),i=this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],r.forEach(t=>{delete t.data[l.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]});let s={contexts:{trace:$(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:ti(this)},request:n,...i&&{transaction_info:{source:i}}},o=tE(this._events);return o&&Object.keys(o).length&&(a.DEBUG_BUILD&&p.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),s.measurements=o),s}}function tT(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function tb(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}t.s(["SentrySpan",0,ty],300160);let tI="__SENTRY_SUPPRESS_TRACING__";function tv(t,e){let n=tC();return n.withActiveSpan?n.withActiveSpan(t,e):(0,s.withScope)(n=>((0,b._setSpanForScope)(n,t||void 0),e(n)))}function tA({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){var i;let o;if(!S()){let r=new ts;if(n||!t){let t={sampled:"false",sample_rate:"0",transaction:e.name,...ti(r)};tn(r,t)}return r}let c=(0,s.getIsolationScope)();if(t&&!n)o=function(t,e,n){let{spanId:r,traceId:i}=t.spanContext(),a=!e.getScopeData().sdkProcessingMetadata[tI]&&V(t),o=a?new ty({...n,parentSpanId:r,traceId:i,sampled:a}):new ts({traceId:i});W(t,o);let c=(0,s.getClient)();return c&&(c.emit("spanStart",o),n.endTimestamp&&c.emit("spanEnd",o)),o}(t,r,e),W(t,o);else if(t){let n=ti(t),{traceId:i,spanId:s}=t.spanContext(),a=V(t);tn(o=tx({traceId:i,parentSpanId:s,...e},r,a),n)}else{let{traceId:t,dsc:n,parentSpanId:i,sampled:s}={...c.getPropagationContext(),...r.getPropagationContext()};o=tx({traceId:t,parentSpanId:i,...e},r,s),n&&tn(o,n)}return!function(t){if(!a.DEBUG_BUILD)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=J(t),{spanId:i}=t.spanContext(),s=V(t),o=X(t),c=o===t,u=`[Tracing] Starting ${s?"sampled":"unsampled"} ${c?"root ":""}span`,l=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!c){let{op:t,description:e}=J(o);l.push(`root ID: ${o.spanContext().spanId}`),t&&l.push(`root op: ${t}`),e&&l.push(`root description: ${e}`)}p.debug.log(`${u} ${l.join("\n ")}`)}(o),(i=o)&&((0,I.addNonEnumerableProperty)(i,N,function(t){try{let e=v.GLOBAL_OBJ.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}(c)),(0,I.addNonEnumerableProperty)(i,A,r)),o}function tN(t){let e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...e};return n.startTimestamp=F(t.startTime),delete n.startTime,n}return e}function tC(){let t=(0,u.getMainCarrier)();return(0,c.getAsyncContextStrategy)(t)}function tx(t,e,n){let r=(0,s.getClient)(),i=r?.getOptions()||{},{name:o=""}=t,c={spanAttributes:{...t.attributes},spanName:o,parentSampled:n};r?.emit("beforeSampling",c,{decision:!1});let u=c.parentSampled??n,d=c.spanAttributes,_=e.getPropagationContext(),[f,g,h]=e.getScopeData().sdkProcessingMetadata[tI]?[!1]:function(t,e,n){let r,i;if(!S(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}),i=!0):void 0!==e.parentSampled?r=e.parentSampled:void 0!==t.tracesSampleRate&&(r=t.tracesSampleRate,i=!0);let s=E(r);if(void 0===s)return a.DEBUG_BUILD&&p.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(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!s)return a.DEBUG_BUILD&&p.debug.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,s,i];let o=n(0,s.withScope)(t.scope,e):void 0!==i?t=>tv(i,t):t=>t())(()=>{let e=(0,s.getCurrentScope)(),a=tR(e,i);return t.onlyIfParent&&!a?new ts:tA({parentSpan:a,spanArguments:n,forceTransaction:r,scope:e})})},"startNewTrace",0,function(t){return(0,s.withScope)(e=>(e.setPropagationContext({traceId:(0,y.generateTraceId)(),sampleRand:(0,T.safeMathRandom)()}),a.DEBUG_BUILD&&p.debug.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`),tv(null,t)))},"startSpan",0,function(t,e){let n=tC();if(n.startSpan)return n.startSpan(t,e);let r=tN(t),{forceTransaction:i,parentSpan:a,scope:o}=t,c=o?.clone();return(0,s.withScope)(c,()=>{var n;return(void 0!==(n=a)?t=>tv(n,t):t=>t())(()=>{let n=(0,s.getCurrentScope)(),o=tR(n,a),c=t.onlyIfParent&&!o?new ts:tA({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return(0,b._setSpanForScope)(n,c),function(t,e,n=()=>{},r=()=>{}){var i,s,a,o;let c;try{c=t()}catch(t){throw e(t),n(),t}return i=c,s=e,a=n,o=r,(0,d.isThenable)(i)?i.then(t=>(a(),o(t),t),t=>{throw s(t),a(),t}):(a(),o(i),i)}(()=>e(c),()=>{let{status:t}=J(c);c.isRecording()&&(!t||"ok"===t)&&c.setStatus({code:2,message:"internal_error"})},()=>{c.end()})})})},"withActiveSpan",0,tv],521502);var tO=t.i(222271);function tD(t){return new tU(e=>{e(t)})}function tM(t){return new tU((e,n)=>{n(t)})}class tU{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new tU((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 tU((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?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((0,d.isThenable)(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)}}}t.s(["rejectedSyncPromise",0,tM,"resolvedSyncPromise",0,tD],609201);var tB=t.i(860698),tk=t.i(952422);function tL(t,e){var n,r,i,s,a,o,c,u;let l,p,{fingerprint:d,span:_,breadcrumbs:f,sdkProcessingMetadata:g}=e;(function(t,e){let{extra:n,tags:r,user:i,contexts:s,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(i).length&&(t.user={...i,...t.user}),Object.keys(s).length&&(t.contexts={...s,...t.contexts}),a&&(t.level=a),o&&"transaction"!==t.type&&(t.transaction=o)})(t,e),_&&((n=t).contexts={trace:G(r=_),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:ti(r),...n.sdkProcessingMetadata},(l=J(X(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=l)),i=t,s=d,i.fingerprint=i.fingerprint?Array.isArray(i.fingerprint)?i.fingerprint:[i.fingerprint]:[],s&&(i.fingerprint=i.fingerprint.concat(s)),i.fingerprint.length||delete i.fingerprint,a=t,o=f,p=[...a.breadcrumbs||[],...o],a.breadcrumbs=p.length?p:void 0,c=t,u=g,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...u}}function tw(t,e){let{extra:n,tags:r,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:p,attachments:d,propagationContext:_,transactionName:f,span:g}=e;tP(t,"extra",n),tP(t,"tags",r),tP(t,"attributes",i),tP(t,"user",s),tP(t,"contexts",a),t.sdkProcessingMetadata=(0,tk.merge)(t.sdkProcessingMetadata,c,2),o&&(t.level=o),f&&(t.transactionName=f),g&&(t.span=g),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,..._}}function tP(t,e,n){t[e]=(0,tk.merge)(t[e],n,1)}function t$(t,e){let n=(0,s.getGlobalScope)().getScopeData();return t&&tw(n,t.getScopeData()),e&&tw(n,e.getScopeData()),n}function tG(t){if(t){var e;return(e=t)instanceof tB.Scope||"function"==typeof e||Object.keys(t).some(t=>tj.includes(t))?{captureContext:t}:t}}t.s(["applyScopeDataToEvent",0,tL,"getCombinedScopeData",0,t$],874292);let tj=["user","level","extra","contexts","tags","fingerprint","propagationContext"];async function tF(t){let e=(0,s.getClient)();return e?e.flush(t):(a.DEBUG_BUILD&&p.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function tY(){let t=(0,s.getIsolationScope)(),e=(0,s.getCurrentScope)().getSession()||t.getSession();e&&(0,o.closeSession)(e),tJ(),t.setSession()}function tJ(){let t=(0,s.getIsolationScope)(),e=(0,s.getClient)(),n=t.getSession();n&&e&&e.captureSession(n)}t.s(["parseEventHintOrCaptureContext",0,tG,"prepareEvent",0,function(t,s,o,c,u,l){var _,f,g;let h,{normalizeDepth:m=3,normalizeMaxBreadth:S=1e3}=t,E={...s,event_id:s.event_id||o.event_id||(0,tO.uuid4)(),timestamp:s.timestamp||(0,x.dateTimestampInSeconds)()},y=o.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:i,maxValueLength:s}=e;t.environment=t.environment||n||tt,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let a=t.request;a?.url&&s&&(a.url=(0,tg.truncate)(a.url,s)),s&&t.exception?.values?.forEach(t=>{t.value&&(t.value=(0,tg.truncate)(t.value,s))})})(E,t),_=E,(f=y).length>0&&(_.sdk=_.sdk||{},_.sdk.integrations=[..._.sdk.integrations||[],...f]),u&&u.emit("applyFrameMetadata",s),void 0===s.type&&(g=E,h=function(t){let s=v.GLOBAL_OBJ._sentryDebugIds,a=v.GLOBAL_OBJ._debugIds;if(!s&&!a)return{};let o=s?Object.keys(s):[],c=a?Object.keys(a):[];if(i&&o.length===n&&c.length===r)return i;n=o.length,r=c.length,i={},e||(e={});let u=(n,r)=>{for(let s of n){let n=r[s],a=e?.[s];if(a&&i&&n)i[a[0]]=n,e&&(e[s]=[a[0],n]);else if(n){let r=t(s);for(let t=r.length-1;t>=0;t--){let a=r[t],o=a?.filename;if(o&&i&&e){i[o]=n,e[s]=[o,n];break}}}}};return s&&u(o,s),a&&u(c,a),i}(t.stackParser),g.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=h[t.filename])})}));let T=function(t,e){if(!e)return t;let n=t?t.clone():new tB.Scope;return n.update(e),n}(c,o.captureContext);o.mechanism&&(0,tO.addExceptionMechanism)(E,o.mechanism);let b=u?u.getEventProcessors():[],I=t$(l,T),A=[...o.attachments||[],...I.attachments];A.length&&(o.attachments=A),tL(E,I);let N=[...b,...I.eventProcessors];return(o.data&&!0===o.data.__sentry__?tD(E):function(t,e,n,r=0){try{let i=function t(e,n,r,i){let s=r[i];if(!e||!s)return e;let o=s({...e},n);return(a.DEBUG_BUILD&&null===o&&p.debug.log(`Event processor "${s.id||"?"}" dropped event`),(0,d.isThenable)(o))?o.then(e=>t(e,n,r,i+1)):t(o,n,r,i+1)}(e,n,t,r);return(0,d.isThenable)(i)?i:tD(i)}catch(t){return tM(t)}}(N,E,o)).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 m&&m>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:to(t.data,e,n)}}))},...t.user&&{user:to(t.user,e,n)},...t.contexts&&{contexts:to(t.contexts,e,n)},...t.extra&&{extra:to(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=to(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:to(t.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=to(t.contexts.flags,3,n)),r}(t,m,S):t)}],293217),t.s(["addEventProcessor",0,function(t){(0,s.getIsolationScope)().addEventProcessor(t)},"captureEvent",0,function(t,e){return(0,s.getCurrentScope)().captureEvent(t,e)},"captureException",0,function(t,e){return(0,s.getCurrentScope)().captureException(t,tG(e))},"captureSession",0,function(t=!1){t?tY():tJ()},"flush",0,tF,"isEnabled",0,function(){let t=(0,s.getClient)();return t?.getOptions().enabled!==!1&&!!t?.getTransport()},"setContext",0,function(t,e){(0,s.getIsolationScope)().setContext(t,e)},"startSession",0,function(t){let e=(0,s.getIsolationScope)(),{user:n}=t$(e,(0,s.getCurrentScope)()),{userAgent:r}=v.GLOBAL_OBJ.navigator||{},i=(0,o.makeSession)({user:n,...r&&{userAgent:r},...t}),a=e.getSession();return a?.status==="ok"&&(0,o.updateSession)(a,{status:"exited"}),tY(),e.setSession(i),i}],682876)}]); //# debugId=bd27d640-0b6f-e49d-72ca-4bdc64f67747 //# sourceMappingURL=0-7nid1as-o7-.js.map