!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8cdbb3fd-a80f-5379-981e-18c0e33012eb")}catch(e){}}();
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,652474,t=>{"use strict";t.s(["GLOBAL_OBJ",()=>e]);let e=globalThis},917897,t=>{"use strict";t.s(["SDK_VERSION",()=>e]);let e="10.29.0"},813158,807785,679231,114303,470502,640797,992520,61154,975972,225830,530626,118602,153776,286782,934411,327400,919426,708911,237266,185971,885753,741237,401988,465499,181357,125582,393746,710033,152644,660602,506822,270013,389261,849058,168700,311617,490495,228636,t=>{"use strict";let e,n,r,i,s,a,o;t.s(["addEventProcessor",()=>nw,"captureEvent",()=>nO,"captureException",()=>nA,"captureSession",()=>nD,"isEnabled",()=>nC,"setContext",()=>nk,"setUser",()=>nN,"startSession",()=>nR],813158),t.s(["getClient",()=>tJ,"getCurrentScope",()=>tj,"getGlobalScope",()=>tU,"getIsolationScope",()=>tB,"getTraceContextFromScope",()=>tH,"withIsolationScope",()=>tG,"withScope",()=>tF],919426),t.s(["getAsyncContextStrategy",()=>tM],327400),t.s(["getGlobalSingleton",()=>d,"getMainCarrier",()=>l,"getSentryCarrier",()=>p],807785);var c=t.i(917897),u=t.i(652474);function l(){return p(u.GLOBAL_OBJ),u.GLOBAL_OBJ}function p(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||c.SDK_VERSION,e[c.SDK_VERSION]=e[c.SDK_VERSION]||{}}function d(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.GLOBAL_OBJ,r=n.__SENTRY__=n.__SENTRY__||{},i=r[c.SDK_VERSION]=r[c.SDK_VERSION]||{};return i[t]||(i[t]=e())}t.s(["DEBUG_BUILD",()=>f],679231);let f="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.s(["closeSession",()=>tT,"makeSession",()=>tb,"updateSession",()=>tE],118602),t.s(["addExceptionMechanism",()=>tg,"addExceptionTypeValue",()=>t_,"checkOrSetAlreadyCaught",()=>tm,"getEventDescription",()=>th,"uuid4",()=>td],225830),t.s(["addNonEnumerableProperty",()=>V,"convertToPlainObject",()=>z,"extractExceptionKeysForMessage",()=>$,"fill",()=>H,"getOriginalFunction",()=>K,"markFunctionWrapped",()=>Y],992520),t.s(["getComponentName",()=>D,"getLocationHref",()=>P,"htmlTreeAsString",()=>L],470502),t.s(["isDOMError",()=>S,"isDOMException",()=>v,"isElement",()=>x,"isError",()=>_,"isErrorEvent",()=>m,"isEvent",()=>I,"isInstanceOf",()=>N,"isParameterizedString",()=>b,"isPlainObject",()=>T,"isPrimitive",()=>E,"isRegExp",()=>A,"isRequest",()=>w,"isString",()=>y,"isSyntheticEvent",()=>k,"isThenable",()=>O,"isVueViewModel",()=>C],114303);let h=Object.prototype.toString;function _(t){switch(h.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return N(t,Error)}}function g(t,e){return h.call(t)==="[object ".concat(e,"]")}function m(t){return g(t,"ErrorEvent")}function S(t){return g(t,"DOMError")}function v(t){return g(t,"DOMException")}function y(t){return g(t,"String")}function b(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function E(t){return null===t||b(t)||"object"!=typeof t&&"function"!=typeof t}function T(t){return g(t,"Object")}function I(t){return"undefined"!=typeof Event&&N(t,Event)}function x(t){return"undefined"!=typeof Element&&N(t,Element)}function A(t){return g(t,"RegExp")}function O(t){return!!((null==t?void 0:t.then)&&"function"==typeof t.then)}function k(t){return T(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function N(t,e){try{return t instanceof e}catch(t){return!1}}function C(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue||t.__v_isVNode))}function w(t){return"undefined"!=typeof Request&&N(t,Request)}let R=u.GLOBAL_OBJ;function L(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"<unknown>";try{let n,r=t,i=[],s=0,a=0,o=Array.isArray(e)?e:e.keyAttrs,c=!Array.isArray(e)&&e.maxStringLength||80;for(;r&&s++<5&&(n=function(t,e){let n=[];if(!(null==t?void 0:t.tagName))return"";if(R.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=(null==e?void 0:e.length)?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(null==r?void 0:r.length)r.forEach(t=>{n.push("[".concat(t[0],'="').concat(t[1],'"]'))});else{t.id&&n.push("#".concat(t.id));let e=t.className;if(e&&y(e))for(let t of e.split(/\s+/))n.push(".".concat(t))}for(let e of["aria-label","type","name","title","alt"]){let r=t.getAttribute(e);r&&n.push("[".concat(e,'="').concat(r,'"]'))}return n.join("")}(r,o),"html"!==n&&(!(s>1)||!(a+3*i.length+n.length>=c)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(t){return"<unknown>"}}function P(){try{return R.document.location.href}catch(t){return""}}function D(t){if(!R.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}t.s(["CONSOLE_LEVELS",()=>M,"consoleSandbox",()=>B,"debug",()=>J,"originalConsoleMethods",()=>j],640797);let M=["debug","info","warn","error","log","assert","trace"],j={};function B(t){if(!("console"in u.GLOBAL_OBJ))return t();let e=u.GLOBAL_OBJ.console,n={},r=Object.keys(j);r.forEach(t=>{let r=j[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function U(){return G().enabled}function F(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];f&&U()&&B(()=>{u.GLOBAL_OBJ.console[t]("".concat("Sentry Logger ","[").concat(t,"]:"),...n)})}function G(){return f?d("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let J={enable:function(){G().enabled=!0},disable:function(){G().enabled=!1},isEnabled:U,log:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];F("log",...e)},warn:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];F("warn",...e)},error:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];F("error",...e)}};function H(t,e,n){if(!(e in t))return;let r=t[e];if("function"!=typeof r)return;let i=n(r);"function"==typeof i&&Y(i,r);try{t[e]=i}catch(n){f&&J.log('Failed to replace method "'.concat(e,'" in object'),t)}}function V(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){f&&J.log('Failed to add non-enumerable property "'.concat(e,'" to object'),t)}}function Y(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,V(t,"__sentry_original__",e)}catch(t){}}function K(t){return t.__sentry_original__}function z(t){if(_(t))return{message:t.message,name:t.name,stack:t.stack,...q(t)};if(!I(t))return t;{let e={type:t.type,target:W(t.target),currentTarget:W(t.currentTarget),...q(t)};return"undefined"!=typeof CustomEvent&&N(t,CustomEvent)&&(e.detail=t.detail),e}}function W(t){try{return x(t)?L(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function q(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}}function $(t){let e=Object.keys(z(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}t.s(["isMatchingPattern",()=>tl,"safeJoin",()=>tu,"snipLine",()=>tc,"stringMatchesSomePattern",()=>tp,"truncate",()=>to],975972),t.s(["UNKNOWN_FUNCTION",()=>X,"createStackParser",()=>tt,"getFramesFromEvent",()=>ts,"getFunctionName",()=>ti,"getVueInternalName",()=>ta,"stackParserFromStackParserOptions",()=>te],61154);let X="?",Q=/\(error: (.*)\)/,Z=/captureMessage|captureException/;function tt(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],s=t.split("\n");for(let t=e;t<s.length;t++){let e=s[t];e.length>1024&&(e=e.slice(0,1024));let a=Q.test(e)?e.replace(Q,"$1"):e;if(!a.match(/\S*Error: /)){for(let t of r){let e=t(a);if(e){i.push(e);break}}if(i.length>=50+n)break}}var a=i.slice(n);if(!a.length)return[];let o=Array.from(a);return/sentryWrapped/.test(tn(o).function||"")&&o.pop(),o.reverse(),Z.test(tn(o).function||"")&&(o.pop(),Z.test(tn(o).function||"")&&o.pop()),o.slice(0,50).map(t=>({...t,filename:t.filename||tn(o).filename,function:t.function||X}))}}function te(t){return Array.isArray(t)?tt(...t):t}function tn(t){return t[t.length-1]||{}}let tr="<anonymous>";function ti(t){try{if(!t||"function"!=typeof t)return tr;return t.name||tr}catch(t){return tr}}function ts(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(t){}}}function ta(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function to(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof t||0===e||t.length<=e?t:"".concat(t.slice(0,e),"...")}function tc(t,e){let n=t,r=n.length;if(r<=150)return n;e>r&&(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} ".concat(n)),s<r&&(n+=" {snip}"),n}function tu(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;e<t.length;e++){let r=t[e];try{C(r)?n.push(ta(r)):n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function tl(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!y(t)&&(A(e)?e.test(t):!!y(e)&&(n?t===e:t.includes(e)))}function tp(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.some(e=>tl(t,e,n))}function td(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){let t=u.GLOBAL_OBJ;return t.crypto||t.msCrypto}();try{if(null==t?void 0:t.randomUUID)return t.randomUUID().replace(/-/g,"")}catch(t){}return e||(e="10000000100040008000100000000000"),e.replace(/[018]/g,t=>(t^(15&16*Math.random())>>t/4).toString(16))}function tf(t){var e,n;return null==(n=t.exception)||null==(e=n.values)?void 0:e[0]}function th(t){let{message:e,event_id:n}=t;if(e)return e;let r=tf(t);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function t_(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")}function tg(t,e){let n=tf(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){let t={...null==r?void 0:r.data,...e.data};n.mechanism.data=t}}function tm(t){if(function(t){try{return t.__sentry_captured__}catch(t){}}(t))return!0;try{V(t,"__sentry_captured__",!0)}catch(t){}return!1}function tS(){return Date.now()/1e3}function tv(){return(null!=n?n:n=function(){let{performance:t}=u.GLOBAL_OBJ;if(!(null==t?void 0:t.now)||!t.timeOrigin)return tS;let e=t.timeOrigin;return()=>(e+t.now())/1e3}())()}function ty(){return r||(r=function(){var t;let{performance:e}=u.GLOBAL_OBJ;if(!(null==e?void 0:e.now))return[void 0,"none"];let n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):36e5,s=null==(t=e.timing)?void 0:t.navigationStart,a="number"==typeof s?Math.abs(s+n-r):36e5;if(i<36e5||a<36e5)if(i<=a)return[e.timeOrigin,"timeOrigin"];else return[s,"navigationStart"];return[r,"dateNow"]}()),r[0]}function tb(t){let e=tv(),n={sid:td(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var t;return t=n,{sid:"".concat(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?"".concat(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&&tE(n,t),n}function tE(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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||tv(),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:td()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did="".concat(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 tT(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),tE(t,n)}function tI(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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]=tI(r[t],e[t],n-1));return r}function tx(){return td()}function tA(){return td().substring(16)}t.s(["browserPerformanceTimeOrigin",()=>ty,"dateTimestampInSeconds",()=>tS,"timestampInSeconds",()=>tv],530626),t.s(["merge",()=>tI],153776),t.s(["generateSpanId",()=>tA,"generateTraceId",()=>tx],286782),t.s(["_getSpanForScope",()=>tN,"_setSpanForScope",()=>tk],934411);let tO="_sentrySpan";function tk(t,e){e?V(t,tO,e):delete t[tO]}function tN(t){return t[tO]}class tC{clone(){let t=new tC;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,tk(t,this[tO]),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&&tE(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}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:o,fingerprint:c=[],propagationContext:u}=(e instanceof tC?e.getScopeData():T(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),o&&(this._level=o),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),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,tk(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tx(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:tS(),...t,message:t.message?to(t.message,2048):t.message};if(this._breadcrumbs.push(r),this._breadcrumbs.length>n){var i;this._breadcrumbs=this._breadcrumbs.slice(-n),null==(i=this._client)||i.recordDroppedEvent("buffer_overflow","log_item")}return 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:this[tO]}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=tI(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=(null==e?void 0:e.event_id)||td();if(!this._client)return f&&J.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){var r;let i=(null==n?void 0:n.event_id)||td();if(!this._client)return f&&J.warn("No client configured on scope - will not capture message!"),i;let s=null!=(r=null==n?void 0:n.syntheticException)?r:Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:i},this),i}captureEvent(t,e){let n=(null==e?void 0:e.event_id)||td();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):f&&J.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)}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:tx(),sampleRand:Math.random()}}}class tw{withScope(t){let e,n=this._pushScope();try{e=t(n)}catch(t){throw this._popScope(),t}return O(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()}constructor(t,e){let n,r;n=t||new tC,r=e||new tC,this._stack=[{scope:n}],this._isolationScope=r}}function tR(){let t=p(l());return t.stack=t.stack||new tw(d("defaultCurrentScope",()=>new tC),d("defaultIsolationScope",()=>new tC))}function tL(t){return tR().withScope(t)}function tP(t,e){let n=tR();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function tD(t){return tR().withScope(()=>t(tR().getIsolationScope()))}function tM(t){let e=p(t);return e.acs?e.acs:{withIsolationScope:tD,withScope:tL,withSetScope:tP,withSetIsolationScope:(t,e)=>tD(e),getCurrentScope:()=>tR().getScope(),getIsolationScope:()=>tR().getIsolationScope()}}function tj(){return tM(l()).getCurrentScope()}function tB(){return tM(l()).getIsolationScope()}function tU(){return d("globalScope",()=>new tC)}function tF(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=tM(l());if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function tG(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=tM(l());if(2===e.length){let[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])}function tJ(){return tj().getClient()}function tH(t){let{traceId:e,parentSpanId:n,propagationSpanId:r}=t.getPropagationContext(),i={trace_id:e,span_id:r||tA()};return n&&(i.parent_span_id=n),i}t.s(["startInactiveSpan",()=>nl,"startNewTrace",()=>nd,"startSpan",()=>nu,"withActiveSpan",()=>np],168700),t.s(["SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",()=>t0,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",()=>t1,"SEMANTIC_ATTRIBUTE_PROFILE_ID",()=>tZ,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",()=>tQ,"SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",()=>tq,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",()=>t$,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",()=>tX,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>tz,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>tW,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",()=>tK,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>tY,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>tV,"SEMANTIC_ATTRIBUTE_URL_FULL",()=>t2,"SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",()=>t3],708911);let tV="sentry.source",tY="sentry.sample_rate",tK="sentry.previous_trace_sample_rate",tz="sentry.op",tW="sentry.origin",tq="sentry.idle_span_finish_reason",t$="sentry.measurement_unit",tX="sentry.measurement_value",tQ="sentry.custom_span_name",tZ="sentry.profile_id",t0="sentry.exclusive_time",t1="http.request.method",t2="url.full",t3="sentry.link.type";t.s(["SENTRY_BAGGAGE_KEY_PREFIX",()=>t4,"baggageHeaderToDynamicSamplingContext",()=>t6,"dynamicSamplingContextToSentryBaggageHeader",()=>t7,"parseBaggageHeader",()=>t8],237266);let t4="sentry-",t5=/^sentry-/;function t6(t){let e=t8(t);if(!e)return;let n=Object.entries(e).reduce((t,e)=>{let[n,r]=e;return n.match(t5)&&(t[n.slice(t4.length)]=r),t},{});return Object.keys(n).length>0?n:void 0}function t7(t){if(t){var e=Object.entries(t).reduce((t,e)=>{let[n,r]=e;return r&&(t["".concat(t4).concat(n)]=r),t},{});return 0!==Object.keys(e).length?Object.entries(e).reduce((t,e,n)=>{let[r,i]=e,s="".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(i)),a=0===n?s:"".concat(t,",").concat(s);return a.length>8192?(f&&J.warn("Not adding key: ".concat(r," with val: ").concat(i," to baggage header due to exceeding baggage size limits.")),t):a},""):void 0}}function t8(t){if(t&&(y(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>(Object.entries(t9(e)).forEach(e=>{let[n,r]=e;t[n]=r}),t),{}):t9(t)}function t9(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(t){return}})}).reduce((t,e)=>{let[n,r]=e;return n&&r&&(t[n]=r),t},{})}function et(t){var e;if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let n=t||(null==(e=tJ())?void 0:e.getOptions());return!!n&&(null!=n.tracesSampleRate||!!n.tracesSampler)}function ee(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(["hasSpansEnabled",()=>et],185971),t.s(["parseSampleRate",()=>ee],885753),t.s(["TRACE_FLAG_NONE",()=>eb,"TRACE_FLAG_SAMPLED",()=>eE,"addChildSpanToSpan",()=>eM,"convertSpanLinksForEnvelope",()=>ek,"getActiveSpan",()=>eF,"getRootSpan",()=>eU,"getSpanDescendants",()=>eB,"getStatusMessage",()=>eL,"removeChildSpanFromSpan",()=>ej,"showSpanDropWarning",()=>eG,"spanIsSampled",()=>eR,"spanTimeInputToSeconds",()=>eN,"spanToJSON",()=>ew,"spanToTraceContext",()=>ex,"spanToTraceHeader",()=>eA,"spanToTraceparentHeader",()=>eO,"spanToTransactionTraceContext",()=>eI],181357),t.s(["SPAN_STATUS_ERROR",()=>ei,"SPAN_STATUS_OK",()=>er,"SPAN_STATUS_UNSET",()=>en,"setHttpStatus",()=>es],741237);let en=0,er=1,ei=2;function es(t,e){t.setAttribute("http.response.status_code",e);let n=function(t){if(t<400&&t>=100)return{code:er};if(t>=400&&t<500)switch(t){case 401:return{code:ei,message:"unauthenticated"};case 403:return{code:ei,message:"permission_denied"};case 404:return{code:ei,message:"not_found"};case 409:return{code:ei,message:"already_exists"};case 413:return{code:ei,message:"failed_precondition"};case 429:return{code:ei,message:"resource_exhausted"};case 499:return{code:ei,message:"cancelled"};default:return{code:ei,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:ei,message:"unimplemented"};case 503:return{code:ei,message:"unavailable"};case 504:return{code:ei,message:"deadline_exceeded"}}return{code:ei,message:"internal_error"}}(e);"unknown_error"!==n.message&&t.setStatus(n)}let ea="_sentryScope",eo="_sentryIsolationScope";function ec(t){return{scope:t[ea],isolationScope:function(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch(t){return}return t}}(t[eo])}}t.s(["TRACEPARENT_REGEXP",()=>eg,"generateSentryTraceHeader",()=>eS,"generateTraceparentHeader",()=>ev,"propagationContextFromHeaders",()=>em,"shouldContinueTrace",()=>ey],465499),t.s(["dsnFromString",()=>ed,"dsnToString",()=>ep,"extractOrgIdFromClient",()=>eh,"makeDsn",()=>e_],401988);let eu=/^o(\d+)\./,el=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ep(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=t;return"".concat(o,"://").concat(c).concat(e&&i?":".concat(i):"")+"@".concat(n).concat(s?":".concat(s):"","/").concat(r?"".concat(r,"/"):r).concat(a)}function ed(t){let e=el.exec(t);if(!e)return void B(()=>{console.error("Invalid Sentry Dsn: ".concat(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 ef({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function ef(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function eh(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};return n.orgId?e=String(n.orgId):r&&(e=function(t){let e=t.match(eu);return null==e?void 0:e[1]}(r)),e}function e_(t){let e="string"==typeof t?ed(t):ef(t);if(e&&function(t){if(!f)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(J.error("Invalid Sentry Dsn: ".concat(e," missing")),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(J.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):!(e&&isNaN(parseInt(e,10)))||(J.error("Invalid Sentry Dsn: Invalid port ".concat(e)),!1):(J.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1))}(e))return e}let eg=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function em(t,e){let n=function(t){let e;if(!t)return;let n=t.match(eg);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=t6(e);if(!(null==n?void 0:n.traceId))return{traceId:tx(),sampleRand:Math.random()};let i=function(t,e){let n=ee(null==e?void 0:e.sample_rand);if(void 0!==n)return n;let r=ee(null==e?void 0:e.sample_rate);return r&&(null==t?void 0:t.parentSampled)!==void 0?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(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}}function eS(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tx(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tA(),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(t,"-").concat(e).concat(r)}function ev(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tx(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tA(),n=arguments.length>2?arguments[2]:void 0;return"00-".concat(t,"-").concat(e,"-").concat(n?"01":"00")}function ey(t,e){let n=eh(t);return e&&n&&e!==n?(J.log("Won't continue trace because org IDs don't match (incoming baggage: ".concat(e,", SDK options: ").concat(n,")")),!1):!t.getOptions().strictTraceContinuation||(!e||!!n)&&(!!e||!n)||(J.log("Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ".concat(e,", Sentry client: ").concat(n,")")),!1)}let eb=0,eE=1,eT=!1;function eI(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:c}=ew(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:a,origin:o,links:c}}function ex(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:ew(t).parent_span_id,s=ec(t).scope;return{parent_span_id:i,span_id:r?(null==s?void 0:s.getPropagationContext().propagationSpanId)||tA():e,trace_id:n}}function eA(t){let{traceId:e,spanId:n}=t.spanContext();return eS(e,n,eR(t))}function eO(t){let{traceId:e,spanId:n}=t.spanContext();return ev(e,n,eR(t))}function ek(t){return t&&t.length>0?t.map(t=>{let{context:{spanId:e,traceId:n,traceFlags:r,...i},attributes:s}=t;return{span_id:e,trace_id:n,sampled:r===eE,attributes:s,...i}}):void 0}function eN(t){return"number"==typeof t?eC(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?eC(t.getTime()):tv()}function eC(t){return t>0x2540be3ff?t/1e3:t}function ew(t){var e,n;if("function"==typeof t.getSpanJSON)return t.getSpanJSON();let{spanId:r,traceId:i}=t.spanContext();if((e=t).attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:e,startTime:s,name:a,endTime:o,status:c,links:u}=t;return{span_id:r,trace_id:i,data:e,description:a,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?null==(n=t.parentSpanContext)?void 0:n.spanId:void 0,start_timestamp:eN(s),timestamp:eN(o)||void 0,status:eL(c),op:e[tz],origin:e[tW],links:ek(u)}}return{span_id:r,trace_id:i,start_timestamp:0,data:{}}}function eR(t){let{traceFlags:e}=t.spanContext();return e===eE}function eL(t){if(t&&t.code!==en)return t.code===er?"ok":t.message||"internal_error"}let eP="_sentryChildSpans",eD="_sentryRootSpan";function eM(t,e){let n=t[eD]||t;V(e,eD,n),t[eP]?t[eP].add(e):V(t,eP,new Set([e]))}function ej(t,e){t[eP]&&t[eP].delete(e)}function eB(t){let e=new Set;return!function t(n){if(!e.has(n)&&eR(n))for(let r of(e.add(n),n[eP]?Array.from(n[eP]):[]))t(r)}(t),Array.from(e)}function eU(t){return t[eD]||t}function eF(){let t=tM(l());return t.getActiveSpan?t.getActiveSpan():tj()[tO]}function eG(){eT||(B(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),eT=!0)}t.s(["freezeDscOnSpan",()=>eV,"getDynamicSamplingContextFromScope",()=>eK,"getDynamicSamplingContextFromSpan",()=>ez],393746),t.s(["DEFAULT_ENVIRONMENT",()=>eJ],125582);let eJ="production",eH="_frozenDsc";function eV(t,e){V(t,eH,e)}function eY(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||eJ,release:n.release,public_key:r,trace_id:t,org_id:eh(e)};return e.emit("createDsc",i),i}function eK(t,e){let n=e.getPropagationContext();return n.dsc||eY(n.traceId,t)}function ez(t){var e,n,r,i;let s=tJ();if(!s)return{};let a=eU(t),o=ew(a),c=o.data,u=a.spanContext().traceState,l=null!=(n=null!=(e=null==u?void 0:u.get("sentry.sample_rate"))?e:c[tY])?n:c[tK];function p(t){return("number"==typeof l||"string"==typeof l)&&(t.sample_rate="".concat(l)),t}let d=a[eH];if(d)return p(d);let f=null==u?void 0:u.get("sentry.dsc"),h=f&&t6(f);if(h)return p(h);let _=eY(t.spanContext().traceId,s),g=c[tV],m=o.description;return"url"!==g&&m&&(_.transaction=m),et()&&(_.sampled=String(eR(a)),_.sample_rand=null!=(i=null==u?void 0:u.get("sentry.sample_rand"))?i:null==(r=ec(a).scope)?void 0:r.getPropagationContext().sampleRand.toString()),p(_),s.emit("createDsc",_,a),_}t.s(["SentryNonRecordingSpan",()=>eW],710033);class eW{spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:eb}}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){}constructor(t={}){this._traceId=t.traceId||tx(),this._spanId=t.spanId||tA()}}function eq(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity;try{return function e(n,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Infinity,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){let t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}(),[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{if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(n===t.g)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(C(n))return ta(n);if(k(n))return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return"[".concat(n,"]");if("function"==typeof n)return"[Function: ".concat(ti(n),"]");if("symbol"==typeof n)return"[".concat(String(n),"]");if("bigint"==typeof n)return"[BigInt: ".concat(String(n),"]");let r=function(t){let e=Object.getPrototypeOf(t);return(null==e?void 0:e.constructor)?e.constructor.name:"null prototype"}(n);if(/^HTML(\w*)Element$/.test(r))return"[HTMLElement: ".concat(r,"]");return"[object ".concat(r,"]")}catch(t){return"**non-serializable** (".concat(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(t){}let p=Array.isArray(r)?[]:{},d=0,f=z(r);for(let t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(d>=s){p[t]="[MaxProperties ~]";break}let n=f[t];p[t]=e(t,n,l-1,s,a),d++}return c(r),p}("",e,n,r)}catch(t){return{ERROR:"**non-serializable** (".concat(t,")")}}}function e$(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[t,e]}function eX(t,e){let[n,r]=t;return[n,[...r,e]]}function eQ(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function eZ(t){let e=p(u.GLOBAL_OBJ);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function e0(t){let[e,n]=t,r=JSON.stringify(e);function i(t){"string"==typeof r?r="string"==typeof t?r+t:[eZ(r),t]:r.push("string"==typeof t?eZ(t):t)}for(let t of n){let[e,n]=t;if(i("\n".concat(JSON.stringify(e),"\n")),"string"==typeof n||n instanceof Uint8Array)i(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(eq(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)}function e1(t){return[{type:"span"},t]}function e2(t){let e="string"==typeof t.data?eZ(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}t.s(["SentrySpan",()=>ns],849058),t.s(["createEventEnvelope",()=>ne,"createSessionEnvelope",()=>nt,"createSpanEnvelope",()=>nn],270013),t.s(["addItemToEnvelope",()=>eX,"createAttachmentEnvelopeItem",()=>e2,"createEnvelope",()=>e$,"createEventEnvelopeHeaders",()=>e6,"createSpanEnvelopeItem",()=>e1,"envelopeItemTypeToDataCategory",()=>e4,"forEachEnvelopeItem",()=>eQ,"getSdkMetadataForEnvelopeHeader",()=>e5,"serializeEnvelope",()=>e0],660602),t.s(["normalize",()=>eq,"normalizeToSize",()=>function t(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=eq(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}],152644);let e3={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 e4(t){return e3[t]}function e5(t){if(!(null==t?void 0:t.sdk))return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function e6(t,e,n,r){var i;let s=null==(i=t.sdkProcessingMetadata)?void 0:i.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:ep(r)},...s&&{trace:s}}}function e7(t){J.log("Ignoring span ".concat(t.op," - ").concat(t.description," because it matches `ignoreSpans`."))}function e8(t,e){if(!(null==e?void 0:e.length)||!t.description)return!1;for(let r of e){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(tl(t.description,r))return f&&e7(t),!0;continue}if(!r.name&&!r.op)continue;let e=!r.name||tl(t.description,r.name),i=!r.op||t.op&&tl(t.op,r.op);if(e&&i)return f&&e7(t),!0}return!1}function e9(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)}function nt(t,e,n,r){let i=e5(n);return e$({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:ep(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}function ne(t,e,n,r){let i=e5(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){var n,r,i,s;if(!e)return;let a=t.sdk||{};t.sdk={...a,name:a.name||e.name,version:a.version||e.version,integrations:[...(null==(n=t.sdk)?void 0:n.integrations)||[],...e.integrations||[]],packages:[...(null==(r=t.sdk)?void 0:r.packages)||[],...e.packages||[]],settings:(null==(i=t.sdk)?void 0:i.settings)||e.settings?{...null==(s=t.sdk)?void 0:s.settings,...e.settings}:void 0}}(t,null==n?void 0:n.sdk);let a=e6(t,i,r,e);return delete t.sdkProcessingMetadata,e$(a,[[{type:s},t]])}function nn(t,e){let n=ez(t[0]),r=null==e?void 0:e.getDsn(),i=null==e?void 0:e.getOptions().tunnel,s={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:ep(r)}},{beforeSendSpan:a,ignoreSpans:o}=(null==e?void 0:e.getOptions())||{},c=(null==o?void 0:o.length)?t.filter(t=>!e8(ew(t),o)):t,u=t.length-c.length;u&&(null==e||e.recordDroppedEvent("before_send","span",u));let l=a?t=>{let e=ew(t),n=a(e);return n||(eG(),e)}:ew,p=[];for(let t of c){let e=l(t);e&&p.push(e1(e))}return e$(s,p)}function nr(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:eF(),i=r&&eU(r);i&&(f&&J.log("[Measurement] Setting measurement on root span: ".concat(t," = ").concat(e," ").concat(n)),i.addEvent(t,{[tX]:e,[t$]:n}))}function ni(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[t$],i=n[tX];"string"==typeof r&&"number"==typeof i&&(e[t.name]={value:i,unit:r})}),e}t.s(["reparentChildSpans",()=>e9,"shouldIgnoreSpan",()=>e8],506822),t.s(["setMeasurement",()=>nr,"timedEventsToMeasurements",()=>ni],389261);class ns{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?eE:eb}}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=eN(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(tV,"custom"),this}end(t){this._endTime||(this._endTime=eN(t),function(t){if(!f)return;let{description:e="< unknown name >",op:n="< unknown op >"}=ew(t),{spanId:r}=t.spanContext(),i=eU(t)===t,s='[Tracing] Finishing "'.concat(n,'" ').concat(i?"root ":"",'span "').concat(e,'" with ID ').concat(r);J.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[tz],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:eL(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tW],profile_id:this._attributes[tZ],exclusive_time:this._attributes[t0],measurements:ni(this._events),is_segment:this._isStandaloneSpan&&eU(this)===this||void 0,segment_id:this._isStandaloneSpan?eU(this).spanContext().spanId:void 0,links:ek(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){f&&J.log("[Tracing] Adding an event to span:",t);let r=na(e)?e:n||tv(),i=na(e)?{}:e||{},s={name:t,time:eN(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=tJ();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===eU(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=tJ();if(!e)return;let n=t[1];if(!n||0===n.length)return e.recordDroppedEvent("before_send","span");e.sendEnvelope(t)}(nn([this],t)):(f&&J.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&&(ec(this).scope||tj()).captureEvent(e)}_convertSpanToTransaction(){var t;if(!no(ew(this)))return;this._name||(f&&J.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:n}=ec(this),r=null==e||null==(t=e.getScopeData().sdkProcessingMetadata)?void 0:t.normalizedRequest;if(!0!==this._sampled)return;let i=eB(this).filter(t=>{var e;return t!==this&&!((e=t)instanceof ns&&e.isStandaloneSpan())}).map(t=>ew(t)).filter(no),s=this._attributes[tV];delete this._attributes[tQ],i.forEach(t=>{delete t.data[tQ]});let a={contexts:{trace:eI(this)},spans:i.length>1e3?i.sort((t,e)=>t.start_timestamp-e.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,dynamicSamplingContext:ez(this)},request:r,...s&&{transaction_info:{source:s}}},o=ni(this._events);return o&&Object.keys(o).length&&(f&&J.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),a.measurements=o),a}constructor(t={}){this._traceId=t.traceId||tx(),this._spanId=t.spanId||tA(),this._startTime=t.startTimestamp||tv(),this._links=t.links,this._attributes={},this.setAttributes({[tW]:"manual",[tz]: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()}}function na(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function no(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}let nc="__SENTRY_SUPPRESS_TRACING__";function nu(t,e){let n=tM(l());if(n.startSpan)return n.startSpan(t,e);let r=nh(t),{forceTransaction:i,parentSpan:s,scope:a}=t;return tF(null==a?void 0:a.clone(),()=>{var n;return(void 0!==(n=s)?t=>np(n,t):t=>t())(()=>{let n=tj(),a=ng(n,s),o=t.onlyIfParent&&!a?new eW:nf({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return tk(n,o),function(t,e){var n,r,i,s;let a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};try{a=t()}catch(t){throw e(t),o(),t}return n=a,r=e,i=o,s=c,O(n)?n.then(t=>(i(),s(t),t),t=>{throw r(t),i(),t}):(i(),s(n),n)}(()=>e(o),()=>{let{status:t}=ew(o);o.isRecording()&&(!t||"ok"===t)&&o.setStatus({code:ei,message:"internal_error"})},()=>{o.end()})})})}function nl(t){let e=tM(l());if(e.startInactiveSpan)return e.startInactiveSpan(t);let n=nh(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?e=>tF(t.scope,e):void 0!==i?t=>np(i,t):t=>t())(()=>{let e=tj(),s=ng(e,i);return t.onlyIfParent&&!s?new eW:nf({parentSpan:s,spanArguments:n,forceTransaction:r,scope:e})})}function np(t,e){let n=tM(l());return n.withActiveSpan?n.withActiveSpan(t,e):tF(n=>(tk(n,t||void 0),e(n)))}function nd(t){return tF(e=>(e.setPropagationContext({traceId:tx(),sampleRand:Math.random()}),f&&J.log("Starting a new trace with id ".concat(e.getPropagationContext().traceId)),np(null,t)))}function nf(t){var e;let n,{parentSpan:r,spanArguments:i,forceTransaction:s,scope:a}=t;if(!et()){let t=new eW;if(s||!r){let e={sampled:"false",sample_rate:"0",transaction:i.name,...ez(t)};eV(t,e)}return t}let o=tB();if(r&&!s)n=function(t,e,n){let{spanId:r,traceId:i}=t.spanContext(),s=!e.getScopeData().sdkProcessingMetadata[nc]&&eR(t),a=s?new ns({...n,parentSpanId:r,traceId:i,sampled:s}):new eW({traceId:i});eM(t,a);let o=tJ();return o&&(o.emit("spanStart",a),n.endTimestamp&&o.emit("spanEnd",a)),a}(r,a,i),eM(r,n);else if(r){let t=ez(r),{traceId:e,spanId:s}=r.spanContext(),o=eR(r);eV(n=n_({traceId:e,parentSpanId:s,...i},a,o),t)}else{let{traceId:t,dsc:e,parentSpanId:r,sampled:s}={...o.getPropagationContext(),...a.getPropagationContext()};n=n_({traceId:t,parentSpanId:r,...i},a,s),e&&eV(n,e)}return!function(t){if(!f)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=ew(t),{spanId:i}=t.spanContext(),s=eR(t),a=eU(t),o=a===t,c="[Tracing] Starting ".concat(s?"sampled":"unsampled"," ").concat(o?"root ":"","span"),u=["op: ".concat(n),"name: ".concat(e),"ID: ".concat(i)];if(r&&u.push("parent ID: ".concat(r)),!o){let{op:t,description:e}=ew(a);u.push("root ID: ".concat(a.spanContext().spanId)),t&&u.push("root op: ".concat(t)),e&&u.push("root description: ".concat(e))}J.log("".concat(c,"\n ").concat(u.join("\n ")))}(n),(e=n)&&(V(e,eo,function(t){try{let e=u.GLOBAL_OBJ.WeakRef;if("function"==typeof e)return new e(t)}catch(t){}return t}(o)),V(e,ea,a)),n}function nh(t){let e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...e};return n.startTimestamp=eN(t.startTime),delete n.startTime,n}return e}function n_(t,e,n){var r,i;let s=tJ(),a=(null==s?void 0:s.getOptions())||{},{name:o=""}=t,c={spanAttributes:{...t.attributes},spanName:o,parentSampled:n};null==s||s.emit("beforeSampling",c,{decision:!1});let u=null!=(i=c.parentSampled)?i:n,l=c.spanAttributes,p=e.getPropagationContext(),[d,h,_]=e.getScopeData().sdkProcessingMetadata[nc]?[!1]:function(t,e,n){let r,i;if(!et(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=ee(r);if(void 0===s)return f&&J.warn("[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(r)," of type ").concat(JSON.stringify(typeof r),".")),[!1];if(!s)return f&&J.log("[Tracing] Discarding transaction because ".concat("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 a=n<s;return!a&&f&&J.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),[a,s,i]}(a,{name:o,parentSampled:u,attributes:l,parentSampleRate:ee(null==(r=p.dsc)?void 0:r.sample_rate)},p.sampleRand),g=new ns({...t,attributes:{[tV]:"custom",[tY]:void 0!==h&&_?h:void 0,...l},sampled:d});return!d&&s&&(f&&J.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),s.recordDroppedEvent("sample_rate","transaction")),s&&s.emit("spanStart",g),g}function ng(t,e){if(e)return e;if(null===e)return;let n=t[tO];if(!n)return;let r=tJ();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?eU(n):n}function nm(t){return new nv(e=>{e(t)})}function nS(t){return new nv((e,n)=>{n(t)})}t.s(["parseEventHintOrCaptureContext",()=>nI,"prepareEvent",()=>nT],228636),t.s(["rejectedSyncPromise",()=>nS,"resolvedSyncPromise",()=>nm],311617);class nv{then(t,e){return new nv((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 nv((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i)return void 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)}}constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}}function ny(t,e){var n,r,i,s;let{fingerprint:a,span:o,breadcrumbs:c,sdkProcessingMetadata:u}=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),o&&function(t,e){t.contexts={trace:ex(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:ez(e),...t.sdkProcessingMetadata};let n=ew(eU(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}(t,o),n=t,r=a,n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],r&&(n.fingerprint=n.fingerprint.concat(r)),n.fingerprint.length||delete n.fingerprint,function(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,c),i=t,s=u,i.sdkProcessingMetadata={...i.sdkProcessingMetadata,...s}}function nb(t,e){let{extra:n,tags:r,user:i,contexts:s,level:a,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:p,propagationContext:d,transactionName:f,span:h}=e;nE(t,"extra",n),nE(t,"tags",r),nE(t,"user",i),nE(t,"contexts",s),t.sdkProcessingMetadata=tI(t.sdkProcessingMetadata,o,2),a&&(t.level=a),f&&(t.transactionName=f),h&&(t.span=h),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...d}}function nE(t,e,n){t[e]=tI(t[e],n,1)}function nT(t,e,n,r,c,l){var p,d;let{normalizeDepth:h=3,normalizeMaxBreadth:_=1e3}=t,g={...e,event_id:e.event_id||n.event_id||td(),timestamp:e.timestamp||tS()},m=n.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||eJ,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let a=t.request;if((null==a?void 0:a.url)&&s&&(a.url=to(a.url,s)),s){var o,c;null==(c=t.exception)||null==(o=c.values)||o.forEach(t=>{t.value&&(t.value=to(t.value,s))})}})(g,t),p=g,(d=m).length>0&&(p.sdk=p.sdk||{},p.sdk.integrations=[...p.sdk.integrations||[],...d]),c&&c.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){var n,r;let c=function(t){let e=u.GLOBAL_OBJ._sentryDebugIds,n=u.GLOBAL_OBJ._debugIds;if(!e&&!n)return{};let r=e?Object.keys(e):[],c=n?Object.keys(n):[];if(o&&r.length===s&&c.length===a)return o;s=r.length,a=c.length,o={},i||(i={});let l=(e,n)=>{for(let r of e){let e=n[r],s=null==i?void 0:i[r];if(s&&o&&e)o[s[0]]=e,i&&(i[r]=[s[0],e]);else if(e){let n=t(r);for(let t=n.length-1;t>=0;t--){let s=n[t],a=null==s?void 0:s.filename;if(a&&o&&i){o[a]=e,i[r]=[a,e];break}}}}};return e&&l(r,e),n&&l(c,n),o}(e);null==(r=t.exception)||null==(n=r.values)||n.forEach(t=>{var e,n;null==(n=t.stacktrace)||null==(e=n.frames)||e.forEach(t=>{t.filename&&(t.debug_id=c[t.filename])})})}(g,t.stackParser);let S=function(t,e){if(!e)return t;let n=t?t.clone():new tC;return n.update(e),n}(r,n.captureContext);n.mechanism&&tg(g,n.mechanism);let v=c?c.getEventProcessors():[],y=tU().getScopeData();l&&nb(y,l.getScopeData()),S&&nb(y,S.getScopeData());let b=[...n.attachments||[],...y.attachments];return b.length&&(n.attachments=b),ny(g,y),(function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;try{let i=function t(e,n,r,i){let s=r[i];if(!e||!s)return e;let a=s({...e},n);return(f&&null===a&&J.log('Event processor "'.concat(s.id||"?",'" dropped event')),O(a))?a.then(e=>t(e,n,r,i+1)):t(a,n,r,i+1)}(e,n,t,r);return O(i)?i:nm(i)}catch(t){return nS(t)}})([...v,...y.eventProcessors],g,n).then(t=>(t&&function(t){var e,n;let r={};if(null==(n=t.exception)||null==(e=n.values)||e.forEach(t=>{var e,n;null==(n=t.stacktrace)||null==(e=n.frames)||e.forEach(t=>{t.debug_id&&(t.abs_path?r[t.abs_path]=t.debug_id:t.filename&&(r[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(r).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let i=t.debug_meta.images;Object.entries(r).forEach(t=>{let[e,n]=t;i.push({type:"sourcemap",code_file:e,debug_id:n})})}(t),"number"==typeof h&&h>0)?function(t,e,n){var r,i;if(!t)return null;let s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:eq(t.data,e,n)}}))},...t.user&&{user:eq(t.user,e,n)},...t.contexts&&{contexts:eq(t.contexts,e,n)},...t.extra&&{extra:eq(t.extra,e,n)}};return(null==(r=t.contexts)?void 0:r.trace)&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=eq(t.contexts.trace.data,e,n))),t.spans&&(s.spans=t.spans.map(t=>({...t,...t.data&&{data:eq(t.data,e,n)}}))),(null==(i=t.contexts)?void 0:i.flags)&&s.contexts&&(s.contexts.flags=eq(t.contexts.flags,3,n)),s}(t,h,_):t)}function nI(t){if(t){var e;return(e=t)instanceof tC||"function"==typeof e||Object.keys(t).some(t=>nx.includes(t))?{captureContext:t}:t}}t.s(["applyScopeDataToEvent",()=>ny,"mergeScopeData",()=>nb],490495);let nx=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function nA(t,e){return tj().captureException(t,nI(e))}function nO(t,e){return tj().captureEvent(t,e)}function nk(t,e){tB().setContext(t,e)}function nN(t){tB().setUser(t)}function nC(){let t=tJ();return(null==t?void 0:t.getOptions().enabled)!==!1&&!!(null==t?void 0:t.getTransport())}function nw(t){tB().addEventProcessor(t)}function nR(t){let e=tB(),n=tj(),{userAgent:r}=u.GLOBAL_OBJ.navigator||{},i=tb({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),s=e.getSession();return(null==s?void 0:s.status)==="ok"&&tE(s,{status:"exited"}),nL(),e.setSession(i),i}function nL(){let t=tB(),e=tj().getSession()||t.getSession();e&&tT(e),nP(),t.setSession()}function nP(){let t=tB(),e=tJ(),n=t.getSession();n&&e&&e.captureSession(n)}function nD(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)return void nL();nP()}}]);
//# sourceMappingURL=31b07745f7217153.js.map
//# debugId=8cdbb3fd-a80f-5379-981e-18c0e33012eb