1;!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]="0ddb1f0a-ce08-2bec-f8f9-b0cf854d155f")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,662537,591401,225304,923288,901020,272598,453288,951497,111139,685658,936032,45968,821593,682564,605394,341041,318746,373382,821061,994218,301263,250804,519988,602309,30686,10008,454300,812024,170637,759075,776710,242222,339435,132584,304661,373250,473753,728469,286564,67486,869766,804478,14177,541193,580611,147310,571993,213186,t=>{"use strict";var e,n,r,a,i,o,s,u,c,l=t.i(991865),p=t.i(120786),d=t.i(513935),f=t.i(651682),_="10.57.0";t.s(["SDK_VERSION",0,_],591401);var v=globalThis;function h(){return g(v),v}function g(t){var e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||_,e[_]=e[_]||{}}function m(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v,r=n.__SENTRY__=n.__SENTRY__||{},a=r[_]=r[_]||{};return a[t]||(a[t]=e())}t.s(["GLOBAL_OBJ",0,v],225304),t.s(["getGlobalSingleton",0,m,"getMainCarrier",0,h,"getSentryCarrier",0,g],923288);var y=t.i(292955),S=t.i(780646),b=t.i(299749),T=t.i(108487),E=t.i(92808),I=t.i(540316),k="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.s(["DEBUG_BUILD",0,k],901020);var x=t.i(500075),A={};function N(t){if(!("console"in v))return t();var e=v.console,n={},r=Object.keys(A);r.forEach(function(t){var r=A[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(function(t){e[t]=n[t]})}}function C(){return w().enabled}function R(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];k&&C()&&N(function(){var e;(e=v.console)[t].apply(e,["".concat("Sentry Logger ","[").concat(t,"]:")].concat((0,I._)(n)))})}function w(){return k?m("loggerSettings",function(){return{enabled:!1}}):{enabled:!1}}var O={enable:function(){w().enabled=!0},disable:function(){w().enabled=!1},isEnabled:C,log:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];R.apply(void 0,["log"].concat((0,I._)(e)))},warn:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];R.apply(void 0,["warn"].concat((0,I._)(e)))},error:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];R.apply(void 0,["error"].concat((0,I._)(e)))}};t.s(["CONSOLE_LEVELS",0,["debug","info","warn","error","log","assert","trace"],"consoleSandbox",0,N,"debug",0,O,"originalConsoleMethods",0,A],272598);var M=Object.prototype.toString;function P(t){switch(M.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return H(t,Error)}}function D(t,e){return M.call(t)==="[object ".concat(e,"]")}function U(t){return D(t,"String")}function j(t){return(void 0===t?"undefined":(0,x._)(t))==="object"&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function L(t){return null===t||j(t)||(void 0===t?"undefined":(0,x._)(t))!=="object"&&"function"!=typeof t}function F(t){return D(t,"Object")}function B(t){return"u">typeof Event&&H(t,Event)}function Y(t){return D(t,"RegExp")}function z(t){return!!((null==t?void 0:t.then)&&"function"==typeof t.then)}function H(t,e){try{return(0,T._)(t,e)}catch(t){return!1}}function J(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){k&&O.log('Failed to add non-enumerable property "'.concat(String(e),'" to object'),t)}}function G(t,e){try{var n=e.prototype||{};t.prototype=e.prototype=n,J(t,"__sentry_original__",e)}catch(t){}}function K(t){if(P(t))return(0,p._)({message:t.message,name:t.name,stack:t.stack},W(t));if(B(t)){var e=t.type,n=t.target,r=t.currentTarget,a=t.detail;return(0,p._)({type:e,target:n,currentTarget:r},a?{detail:a}:{},W(t))}return t}function W(t){return(void 0===t?"undefined":(0,x._)(t))==="object"&&null!==t?Object.fromEntries(Object.entries(t)):{}}function V(t){if(void 0!==e)return e?e(t):t();var n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return n in v&&"function"==typeof v[n]?(e=v[n])(t):(e=null,t())}function q(){return V(function(){return Math.random()})}function X(){return V(function(){return Date.now()})}t.s(["isDOMError",0,function(t){return D(t,"DOMError")},"isDOMException",0,function(t){return D(t,"DOMException")},"isError",0,P,"isErrorEvent",0,function(t){return D(t,"ErrorEvent")},"isEvent",0,B,"isInstanceOf",0,H,"isParameterizedString",0,j,"isPlainObject",0,F,"isPrimitive",0,L,"isRegExp",0,Y,"isRequest",0,function(t){return"u">typeof Request&&H(t,Request)},"isString",0,U,"isThenable",0,z],453288),t.s(["addNonEnumerableProperty",0,J,"convertToPlainObject",0,K,"extractExceptionKeysForMessage",0,function(t){var e=Object.keys(K(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"},"fill",0,function(t,e,n){if(e in t){var r=t[e];if("function"==typeof r){var a=n(r);"function"==typeof a&&G(a,r);try{t[e]=a}catch(n){k&&O.log('Failed to replace method "'.concat(e,'" in object'),t)}}}},"getOriginalFunction",0,function(t){return t.__sentry_original__},"markFunctionWrapped",0,G],951497),t.s(["safeDateNow",0,X,"safeMathRandom",0,q,"withRandomSafeContext",0,V],111139);var $=Symbol.for("sentry.skipNormalization"),Q=Symbol.for("sentry.overrideNormalizationDepth");function Z(t){return!!t[$]}function tt(t){var e=t[Q];return"number"==typeof e?e:void 0}t.s(["getNormalizationDepthOverrideHint",0,tt,"hasSkipNormalizationHint",0,Z,"setNormalizationDepthOverrideHint",0,function(t,e){J(t,Q,e)},"setSkipNormalizationHint",0,function(t){J(t,$,!0)}],685658);var te=/\(error: (.*)\)/,tn=/captureMessage|captureException/;function tr(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.sort(function(t,e){return t[0]-e[0]}).map(function(t){return t[1]});return function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=[],i=t.split("\n"),o=e;o<i.length;o++){var s=i[o];s.length>1024&&(s=s.slice(0,1024));var u=te.test(s)?s.replace(te,"$1"):s;if(!u.includes("Error: ")){var c=!0,l=!1,d=void 0;try{for(var f,_=r[Symbol.iterator]();!(c=(f=_.next()).done);c=!0){var v=(0,f.value)(u);if(v){a.push(v);break}}}catch(t){l=!0,d=t}finally{try{c||null==_.return||_.return()}finally{if(l)throw d}}if(a.length>=50+n)break}}var h=a.slice(n);if(!h.length)return[];var g=Array.from(h);return/sentryWrapped/.test(ta(g).function||"")&&g.pop(),g.reverse(),tn.test(ta(g).function||"")&&(g.pop(),tn.test(ta(g).function||"")&&g.pop()),g.slice(0,50).map(function(t){return(0,E._)((0,p._)({},t),{filename:t.filename||ta(g).filename,function:t.function||"?"})})}}function ta(t){return t[t.length-1]||{}}var ti="<anonymous>";function to(t){try{if(!t||"function"!=typeof t)return ti;return t.name||ti}catch(t){return ti}}function ts(t){var e=(null==t?void 0:t.startsWith("file://"))?t.slice(7):t;return(null==e?void 0:e.match(/\/[A-Z]:/))&&(e=e.slice(1)),e}function tu(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return function t(e,n){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(r=new WeakSet,[function(t){return!!r.has(t)||(r.add(t),!1)},function(t){r.delete(t)}]),s=(0,f._)(o,2),u=s[0],c=s[1];if(null==n||["boolean","string"].includes(void 0===n?"undefined":(0,x._)(n))||"number"==typeof n&&Number.isFinite(n))return n;var l=tc(e,n);if(!l.startsWith("[object "))return l;if(Z(n))return n;var p=tt(n),d=void 0!==p?p:a;if(0===d)return l.replace("object ","");if(u(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{var _=n.toJSON();return t("",_,d-1,i,o)}catch(t){}var v=Array.isArray(n)?[]:{},h=0,g=K(n);for(var m in g)if(Object.prototype.hasOwnProperty.call(g,m)){if(h>=i){v[m]="[MaxProperties ~]";break}var y=g[m];v[m]=t(m,y,d-1,i,o),h++}return c(n),v}("",t,e,n)}catch(t){return{ERROR:"**non-serializable** (".concat(t,")")}}}function tc(e,r){try{if(n){var a,i,o=n(r);if(o)return o}if(r===t.g)return"[Global]";if("number"==typeof r&&!Number.isFinite(r))return"[".concat(r,"]");if("function"==typeof r)return"[Function: ".concat(to(r),"]");if((void 0===r?"undefined":(0,x._)(r))==="symbol")return"[".concat(String(r),"]");if((void 0===r?"undefined":(0,x._)(r))==="bigint")return"[BigInt: ".concat(String(r),"]");var s=(a=r,i=Object.getPrototypeOf(a),(null==i?void 0:i.constructor)?i.constructor.name:"null prototype");return"[object ".concat(s,"]")}catch(t){return"**non-serializable** (".concat(t,")")}}function tl(t){var 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 tp(t,e){var n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);var a=Math.max(e-60,0);a<5&&(a=0);var i=Math.min(a+140,r);return i>r-5&&(i=r),i===r&&(a=Math.max(i-140,0)),n=n.slice(a,i),a>0&&(n="'{snip} ".concat(n)),i<r&&(n+=" {snip}"),n}function td(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!U(t)&&(Y(e)?e.test(t):U(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}function tf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.crypto||v.msCrypto;try{if(null==t?void 0:t.randomUUID)return V(function(){return t.randomUUID()}).replace(/-/g,"")}catch(t){}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,function(t){return(t^(15&16*q())>>t/4).toString(16)})}function t_(t){var e,n;return null==(n=t.exception)||null==(e=n.values)?void 0:e[0]}function tv(t,e){var n=t_(t);if(n){var r=n.mechanism;if(n.mechanism=(0,p._)({},{type:"generic",handled:!0},r,e),e&&"data"in e){var a=(0,p._)({},null==r?void 0:r.data,e.data);n.mechanism.data=a}}}function th(t){try{return t.__sentry_captured__}catch(t){}}function tg(){return X()/1e3}function tm(){return(null!=a?a:a=function(){var t=v.performance;if(!(null==t?void 0:t.now)||!t.timeOrigin)return tg;var e=t.timeOrigin;return function(){return(e+V(function(){return t.now()}))/1e3}}())()}
2t.s(["UNKNOWN_FUNCTION",0,"?","createStackParser",0,tr,"getFramesFromEvent",0,function(t){var e=t.exception;if(e){var n=[];try{return e.values.forEach(function(t){t.stacktrace.frames&&n.push.apply(n,(0,I._)(t.stacktrace.frames))}),n}catch(t){}}},"getFunctionName",0,to,"normalizeStackTracePath",0,ts,"stackParserFromStackParserOptions",0,function(t){return Array.isArray(t)?tr.apply(void 0,(0,I._)(t)):t}],936032),t.s(["normalize",0,tu,"normalizeToSize",0,function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,a=tu(e,n);return~-encodeURI(JSON.stringify(a)).split(/%..|./).length>r?t(e,n-1,r):a},"setNormalizeStringifier",0,function(t){n=t},"stringifyValue",0,tc],45968),t.s(["isMatchingPattern",0,td,"safeJoin",0,function(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var a=t[r];L(a)?n.push(String(a)):(0,T._)(a,Error)?n.push(a.message?"".concat(a.name,": ").concat(a.message):a.name):n.push(tc(void 0,a))}return n.join(e)},"snipLine",0,tp,"stringMatchesSomePattern",0,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var u=o.value;if(td(t,u,n))return!0}}catch(t){a=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return!1},"truncate",0,tl],821593),t.s(["addContextToFrame",0,function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(void 0!==e.lineno){var r=t.length,a=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,a-n),a).map(function(t){return tp(t,0)}),e.context_line=tp(t[Math.min(r-1,a)],e.colno||0),e.post_context=t.slice(Math.min(a+1,r),a+1+n).map(function(t){return tp(t,0)})}},"addExceptionMechanism",0,tv,"addExceptionTypeValue",0,function(t,e,n){var r=t.exception=t.exception||{},a=r.values=r.values||[],i=a[0]=a[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")},"checkOrSetAlreadyCaught",0,function(t){if(th(t))return!0;try{J(t,"__sentry_captured__",!0)}catch(t){}return!1},"getEventDescription",0,function(t){var e=t.message,n=t.event_id;if(e)return e;var r=t_(t);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"},"isAlreadyCaptured",0,th,"uuid4",0,tf],682564);var ty=null;function tS(t){var e=tm(),n={sid:tf(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){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&&tb(n,t),n}function tb(t){var 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||tm(),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:tf()),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{var n=t.timestamp-t.started;t.duration=n>=0?n: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){var n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),tb(t,n)}function tE(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!e||(void 0===e?"undefined":(0,x._)(e))!=="object"||n<=0)return e;if(t&&0===Object.keys(e).length)return t;var r=(0,p._)({},t);for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=tE(r[a],e[a],n-1));return r}function tI(){return tf()}function tk(){return tf().substring(16)}function tx(t){try{var e=v.WeakRef;if("function"==typeof e)return new e(t)}catch(t){}return t}function tA(t){if(t){if((void 0===t?"undefined":(0,x._)(t))==="object"&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch(t){return}return t}}t.s(["browserPerformanceTimeOrigin",0,function(){return null===ty&&(ty=function(){var t,e=v.performance;if(null==e?void 0:e.now){var n=V(function(){return e.now()}),r=X(),a=e.timeOrigin;if("number"==typeof a&&3e5>Math.abs(a+n-r))return a;var i=null==(t=e.timing)?void 0:t.navigationStart;return"number"==typeof i&&3e5>Math.abs(i+n-r)?i:r-n}}()),ty},"dateTimestampInSeconds",0,tg,"timestampInSeconds",0,tm],605394),t.s(["closeSession",0,tT,"makeSession",0,tS,"updateSession",0,tb],341041),t.s(["merge",0,tE],318746),t.s(["generateSpanId",0,tk,"generateTraceId",0,tI],373382);var tN="_sentrySpan";function tC(t,e){e?J(t,tN,tx(e)):delete t[tN]}function tR(t){return tA(t[tN])}t.s(["_getSpanForScope",0,tR,"_setSpanForScope",0,tC],821061);var tw=function(){function t(){(0,y._)(this,t),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:tI(),sampleRand:q()}}return(0,S._)(t,[{key:"clone",value:function(){var e=new t;return e._breadcrumbs=(0,I._)(this._breadcrumbs),e._tags=(0,p._)({},this._tags),e._attributes=(0,p._)({},this._attributes),e._extra=(0,p._)({},this._extra),e._contexts=(0,p._)({},this._contexts),this._contexts.flags&&(e._contexts.flags={values:(0,I._)(this._contexts.flags.values)}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=(0,I._)(this._eventProcessors),e._attachments=(0,I._)(this._attachments),e._sdkProcessingMetadata=(0,p._)({},this._sdkProcessingMetadata),e._propagationContext=(0,p._)({},this._propagationContext),e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,tC(e,tR(this)),e}},{key:"setClient",value:function(t){this._client=t}},{key:"setLastEventId",value:function(t){this._lastEventId=t}},{key:"getClient",value:function(){return this._client}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addScopeListener",value:function(t){this._scopeListeners.push(t)}},{key:"addEventProcessor",value:function(t){return this._eventProcessors.push(t),this}},{key:"setUser",value:function(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&tb(this._session,{user:t}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"setConversationId",value:function(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}},{key:"setTags",value:function(t){return this._tags=(0,p._)({},this._tags,t),this._notifyScopeListeners(),this}},{key:"setTag",value:function(t,e){return this.setTags((0,b._)({},t,e))}},{key:"setAttributes",value:function(t){return this._attributes=(0,p._)({},this._attributes,t),this._notifyScopeListeners(),this}},{key:"setAttribute",value:function(t,e){return this.setAttributes((0,b._)({},t,e))}},{key:"removeAttribute",value:function(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}},{key:"setExtras",value:function(t){return this._extra=(0,p._)({},this._extra,t),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(t,e){return this._extra=(0,E._)((0,p._)({},this._extra),(0,b._)({},t,e)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(t){return this._fingerprint=t,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(t){return this._level=t,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(t){return this._transactionName=t,this._notifyScopeListeners(),this}},{key:"setContext",value:function(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}},{key:"setSession",value:function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(e){if(!e)return this;var n="function"==typeof e?e(this):e,r=((0,T._)(n,t)?n.getScopeData():F(n)?e:void 0)||{},a=r.tags,i=r.attributes,o=r.extra,s=r.user,u=r.contexts,c=r.level,l=r.fingerprint,d=void 0===l?[]:l,f=r.propagationContext,_=r.conversationId;return this._tags=(0,p._)({},this._tags,a),this._attributes=(0,p._)({},this._attributes,i),this._extra=(0,p._)({},this._extra,o),this._contexts=(0,p._)({},this._contexts,u),s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),d.length&&(this._fingerprint=d),f&&(this._propagationContext=f),_&&(this._conversationId=_),this}},{key:"clear",value:function(){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,tC(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tI(),sampleRand:q()}),this._notifyScopeListeners(),this}},{key:"addBreadcrumb",value:function(t,e){var n,r="number"==typeof e?e:100;if(r<=0)return this;var a=(0,E._)((0,p._)({timestamp:tg()},t),{message:t.message?tl(t.message,2048):t.message});return this._breadcrumbs.push(a),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),null==(n=this._client)||n.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}},{key:"getLastBreadcrumb",value:function(){return this._breadcrumbs[this._breadcrumbs.length-1]}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(t){return this._attachments.push(t),this}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"getScopeData",value:function(){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:tR(this),conversationId:this._conversationId}}},{key:"setSDKProcessingMetadata",value:function(t){return this._sdkProcessingMetadata=tE(this._sdkProcessingMetadata,t,2),this}},{key:"setPropagationContext",value:function(t){return this._propagationContext=t,this}},{key:"getPropagationContext",value:function(){return this._propagationContext}},{key:"captureException",value:function(t,e){var n=(null==e?void 0:e.event_id)||tf();if(!this._client)return k&&O.warn("No client configured on scope - will not capture exception!"),n;var r=Error("Sentry syntheticException");return this._client.captureException(t,(0,E._)((0,p._)({originalException:t,syntheticException:r},e),{event_id:n}),this),n}},{key:"captureMessage",value:function(t,e,n){var r,a=(null==n?void 0:n.event_id)||tf();if(!this._client)return k&&O.warn("No client configured on scope - will not capture message!"),a;var i=null!=(r=null==n?void 0:n.syntheticException)?r:Error(t);return this._client.captureMessage(t,e,(0,E._)((0,p._)({originalException:t,syntheticException:i},n),{event_id:a}),this),a}}
2,{key:"captureEvent",value:function(t,e){var n=t.event_id||(null==e?void 0:e.event_id)||tf();return this._client?this._client.captureEvent(t,(0,E._)((0,p._)({},e),{event_id:n}),this):k&&O.warn("No client configured on scope - will not capture event!"),n}},{key:"_notifyScopeListeners",value:function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(t)}),this._notifyingListeners=!1)}}]),t}();t.s(["Scope",0,tw],994218);var tO=function(t){return(0,T._)(t,Promise)&&!t[tM]},tM=Symbol("chained PromiseLike"),tP=function(t,e,n){var r=t.then(function(t){return e(t),t},function(t){throw n(t),t});return tO(r)&&tO(t)?r:tD(t,r)},tD=function(t,e){if(!e)return t;var n=!1;for(var r in t)!function(r){if(!(r in e)){n=!0;var a=t[r];"function"==typeof a?Object.defineProperty(e,r,{value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a.apply(t,n)},enumerable:!0,configurable:!0,writable:!0}):e[r]=a}}(r);return n&&Object.assign(e,(0,b._)({},tM,!0)),e},tU=function(){function t(e,n){var r,a;(0,y._)(this,t),r=e||new tw,a=n||new tw,this._stack=[{scope:r}],this._isolationScope=a}return(0,S._)(t,[{key:"withScope",value:function(t){var e,n=this,r=this._pushScope();try{e=t(r)}catch(t){throw this._popScope(),t}return z(e)?tP(e,function(){return n._popScope()},function(){return n._popScope()}):(this._popScope(),e)}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getIsolationScope",value:function(){return this._isolationScope}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"_pushScope",value:function(){var t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}},{key:"_popScope",value:function(){return!(this._stack.length<=1)&&!!this._stack.pop()}}]),t}();function tj(){var t=g(h());return t.stack=t.stack||new tU(m("defaultCurrentScope",function(){return new tw}),m("defaultIsolationScope",function(){return new tw}))}function tL(t){return tj().withScope(t)}function tF(t,e){var n=tj();return n.withScope(function(){return n.getStackTop().scope=t,e(t)})}function tB(t){return tj().withScope(function(){return t(tj().getIsolationScope())})}function tY(t){var e=g(t);return e.acs?e.acs:{withIsolationScope:tB,withScope:tL,withSetScope:tF,withSetIsolationScope:function(t,e){return tB(e)},getCurrentScope:function(){return tj().getScope()},getIsolationScope:function(){return tj().getIsolationScope()}}}function tz(){return tY(h()).getCurrentScope()}function tH(){return tY(h()).getIsolationScope()}function tJ(){return m("globalScope",function(){return new tw})}function tG(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=tY(h());if(2===e.length){var a=(0,f._)(e,2),i=a[0],o=a[1];return i?r.withSetScope(i,o):r.withScope(o)}return r.withScope(e[0])}function tK(){return tz().getClient()}t.s(["getAsyncContextStrategy",0,tY],301263),t.s(["getClient",0,tK,"getCurrentScope",0,tz,"getGlobalScope",0,tJ,"getIsolationScope",0,tH,"getTraceContextFromScope",0,function(t){var e=null==i?void 0:i();if(e)return{trace_id:e.traceId,span_id:e.spanId};var n=t.getPropagationContext(),r=n.traceId,a=n.parentSpanId,o={trace_id:r,span_id:n.propagationSpanId||tk()};return a&&(o.parent_span_id=a),o},"hasExternalPropagationContext",0,function(){return void 0!==i},"withIsolationScope",0,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=tY(h());if(2===e.length){var a=(0,f._)(e,2),i=a[0],o=a[1];return i?r.withSetIsolationScope(i,o):r.withIsolationScope(o)}return r.withIsolationScope(e[0])},"withScope",0,tG],250804);var tW="sentry.source",tV="sentry.sample_rate",tq="sentry.previous_trace_sample_rate",tX="sentry.op",t$="sentry.origin",tQ="sentry.measurement_unit",tZ="sentry.measurement_value",t0="sentry.custom_span_name",t1="sentry.profile_id",t2="sentry.exclusive_time";t.s(["GEN_AI_CONVERSATION_ID_ATTRIBUTE",0,"gen_ai.conversation.id","SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",0,t2,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",0,"http.request.method","SEMANTIC_ATTRIBUTE_PROFILE_ID",0,t1,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",0,t0,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",0,"sentry.environment","SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",0,"sentry.idle_span_finish_reason","SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",0,tQ,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",0,tZ,"SEMANTIC_ATTRIBUTE_SENTRY_OP",0,tX,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",0,t$,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",0,tq,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",0,"sentry.release","SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",0,tV,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",0,"sentry.sdk.integrations","SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",0,"sentry.sdk.name","SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",0,"sentry.sdk.version","SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",0,"sentry.segment.id","SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",0,"sentry.segment.name","SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",0,tW,"SEMANTIC_ATTRIBUTE_URL_FULL",0,"url.full","SEMANTIC_ATTRIBUTE_USER_EMAIL",0,"user.email","SEMANTIC_ATTRIBUTE_USER_ID",0,"user.id","SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",0,"user.ip_address","SEMANTIC_ATTRIBUTE_USER_USERNAME",0,"user.name","SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",0,"sentry.link.type"],519988);var t3="sentry-";function t4(t){var e=t8(t);if(e){var n=Object.entries(e).reduce(function(t,e){var n=(0,f._)(e,2),r=n[0],a=n[1];return r.startsWith(t3)&&(t[r.slice(t3.length)]=a),t},{});return Object.keys(n).length>0?n:void 0}}function t5(t){if(t){var e=Object.entries(t).reduce(function(t,e){var n=(0,f._)(e,2),r=n[0],a=n[1];return a&&(t["".concat(t3).concat(r)]=a),t},{});return 0!==Object.keys(e).length?Object.entries(e).reduce(function(t,e,n){var r=(0,f._)(e,2),a=r[0],i=r[1],o="".concat(encodeURIComponent(a),"=").concat(encodeURIComponent(i)),s=0===n?o:"".concat(t,",").concat(o);return s.length>8192?(k&&O.warn("Not adding key: ".concat(a," with val: ").concat(i," to baggage header due to exceeding baggage size limits.")),t):s},""):void 0}}function t8(t){if(t&&(U(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce(function(t,e){return Object.entries(t6(e)).forEac
2h(function(e){var n=(0,f._)(e,2),r=n[0],a=n[1];t[r]=a}),t},{}):t6(t)}function t6(t){return t.split(",").map(function(t){var e=t.indexOf("=");return -1===e?[]:[t.slice(0,e),t.slice(e+1)].map(function(t){try{return decodeURIComponent(t.trim())}catch(t){return}})}).reduce(function(t,e){var n=(0,f._)(e,2),r=n[0],a=n[1];return r&&a&&(t[r]=a),t},{})}function t9(t,e){var n,r,a,i,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};try{o=t()}catch(t){throw e(t),s(),t}return n=o,r=e,a=s,i=u,z(n)?tP(n,function(t){a(),i(t)},function(t){r(t),a()}):(a(),i(n),n)}function t7(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;var e,n=t||(null==(e=tK())?void 0:e.getOptions());return!!n&&(null!=n.tracesSampleRate||!!n.tracesSampler)}function et(t){O.log("Ignoring span ".concat(t.op," - ").concat(t.description," because it matches `ignoreSpans`."))}function ee(t,e){if(!(null==e?void 0:e.length))return!1;var n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,u=i.value;if(s=u,"string"==typeof s||(0,T._)(s,RegExp)){if(t.description&&td(t.description,u))return k&&et(t),!0;continue}var c=!!u.attributes&&Object.keys(u.attributes).length>0;
2if(u.name||u.op||c){var l=!u.name||t.description&&td(t.description,u.name),p=!u.op||t.op&&td(t.op,u.op),d=!u.attributes||Object.entries(u.attributes).every(function(e){var n,r=(0,f._)(e,2),a=r[0],i=r[1];return function(t,e){return"string"==typeof t&&("string"==typeof e||(0,T._)(e,RegExp))?td(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every(function(t,n){return t===e[n]}):t===e}(null==(n=t.attributes)?void 0:n[a],i)});if(l&&p&&d)return k&&et(t),!0}}}catch(t){r=!0,a=t}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return!1}function en(t){return"stream"===t.getOptions().traceLifecycle}function er(t){if("boolean"==typeof t)return Number(t);var 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,t3,"baggageHeaderToDynamicSamplingContext",0,t4,"dynamicSamplingContextToSentryBaggageHeader",0,t5,"parseBaggageHeader",0,t8],602309),t.s(["handleCallbackErrors",0,t9],30686),t.s(["hasSpansEnabled",0,t7],10008),t.s(["reparentChildSpans",0,function(t,e){var n=e.parent_span_id,r=e.span_id;if(n){var a=!0,i=!1,o=void 0;try{for(var s,u=t[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;c.parent_span_id===r&&(c.parent_span_id=n)}}catch(t){i=!0,o=t}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}}},"shouldIgnoreSpan",0,ee],454300),t.s(["hasSpanStreamingEnabled",0,en],812024),t.s(["parseSampleRate",0,er],170637);var ea=t.i(233027);function ei(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={},r=!0,a=!1,i=void 0;try{for(var o,s=Object.entries(null!=t?t:{})[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var u=(0,f._)(o.value,2),c=u[0],l=u[1],d=function(t,e){var n,r=(void 0===t?"undefined":(0,x._)(t))==="object"&&null!=t&&!Array.isArray(t)&&Object.keys(t).includes("value")?t:{value:t,unit:void 0},a=r.value,i=r.unit,o=function(t){if(Array.isArray(t))return{value:t,type:"array"};var e="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";if(e)return{value:t,type:e}}(a),s=i&&"string"==typeof i?{unit:i}:{};if(o)return(0,p._)({},o,s);if(e&&("skip-undefined"!==e||void 0!==a)){var u="";try{u=null!=(n=JSON.stringify(a))?n:""}catch(t){}return(0,p._)({value:u,type:"string"},s)}}(l,e);d&&(n[c]=d)}}catch(t){a=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}function eo(t){return"string"==typeof t?2*t.length:"boolean"==typeof t?4:8*("number"==typeof t)}function es(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"}}t.s(["estimateTypedAttributesSizeInBytes",0,function(t){if(!t)return 0;var e=0,n=!0,r=!1,a=void 0;try{for(var i,o=Object.entries(t)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,u,c=(0,f._)(i.value,2),l=c[0],p=c[1];e+=2*l.length,e+=2*p.type.length,e+=(null!=(s=null==(u=p.unit)?void 0:u.length)?s:0)*2;var d=p.value;Array.isArray(d)?e+=eo(d[0])*d.length:L(d)?e+=eo(d):e+=100}}catch(t){r=!0,a=t}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return e},"serializeAttributes",0,ei],759075),t.s(["SPAN_STATUS_ERROR",0,2,"SPAN_STATUS_OK",0,1,"SPAN_STATUS_UNSET",0,0,"getSpanStatusFromHttpCode",0,es,"setHttpStatus",0,function(t,e){t.setAttribute("http.response.status_code",e);var n=es(e);"unknown_error"!==n.message&&t.setStatus(n)}],776710);var eu="_sentryScope",ec="_sentryIsolationScope";function el(t,e,n){t&&(J(t,ec,tx(n)),J(t,eu,e))}function ep(t){return{scope:t[eu],isolationScope:tA(t[ec])}}t.s(["getCapturedScopesOnSpan",0,ep,"setCapturedScopesOnSpan",0,el],242222);var ed=/^o(\d+)\./,ef=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function e_(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.host,r=t.path,a=t.pass,i=t.port,o=t.projectId,s=t.protocol,u=t.publicKey;
2return"".concat(s,"://").concat(u).concat(e&&a?":".concat(a):"","@").concat(n).concat(i?":".concat(i):"","/").concat(r?"".concat(r,"/"):r).concat(o)}function ev(t){var e=ef.exec(t);if(!e)return void N(function(){console.error("Invalid Sentry Dsn: ".concat(t))});var n=(0,f._)(e.slice(1),6),r=n[0],a=n[1],i=n[2],o=n[3],s=n[4],u=n[5],c="",l=void 0===u?"":u,p=l.split("/");if(p.length>1&&(c=p.slice(0,-1).join("/"),l=p.pop()),l){var d=l.match(/^\d+/);d&&(l=d[0])}return eh({host:void 0===o?"":o,pass:void 0===i?"":i,path:c,projectId:l,port:void 0===s?"":s,protocol:r,publicKey:a})}function eh(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function eg(t){var e,n,r=t.getOptions(),a=(t.getDsn()||{}).host;return r.orgId?n=String(r.orgId):a&&(n=null==(e=a.match(ed))?void 0:e[1]),n}t.s(["dsnFromString",0,ev,"dsnToString",0,e_,"extractOrgIdFromClient",0,eg,"makeDsn",0,function(t){var e="string"==typeof t?ev(t):eh(t);if(e&&function(t){if(!k)return!0;var e=t.port,n=t.projectId,r=t.protocol;return!["protocol","publicKey","host","projectId"].find(function(e){return!t[e]&&(O.error("Invalid Sentry Dsn: ".concat(e," missing")),!0)})&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(O.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):!(e&&isNaN(parseInt(e,10)))||(O.error("Invalid Sentry Dsn: Invalid port ".concat(e)),!1):(O.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1))}(e))return e}],339435);var em=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ey(t){if(t){var e,n=t.match(em);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}}function eS(t,e){var n=ey(t),r=t4(e);if(!(null==n?void 0:n.traceId))return{traceId:tI(),sampleRand:q()};var a=function(t,e){var n=er(null==e?void 0:e.sample_rand);if(void 0!==n)return n;var r=er(null==e?void 0:e.sample_rate);return r&&(null==t?void 0:t.parentSampled)!==void 0?t.parentSampled?q()*r:r+q()*(1-r):q()}(n,r);return r&&(r.sample_rand=a.toString()),{traceId:n.traceId,parentSpanId:n.parentSpanId,sampled:n.parentSampled,dsc:r||{},sampleRand:a}}function eb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tI(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tk(),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(t,"-").concat(e).concat(r)}function eT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tI(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tk(),n=arguments.length>2?arguments[2]:void 0;return"00-".concat(t,"-").concat(e,"-").concat(n?"01":"00")}function eE(t,e){var n=eg(t);return e&&n&&e!==n?(O.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)||(O.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)}t.s(["TRACEPARENT_REGEXP",0,em,"extractTraceparentData",0,ey,"generateSentryTraceHeader",0,eb,"generateTraceparentHeader",0,eT,"propagationContextFromHeaders",0,eS,"shouldContinueTrace",0,eE],132584);var eI=!1;function ek(t){var e=t.spanContext(),n=e.spanId,r=e.traceId,a=ew(t),i=a.data,o=a.op;return{parent_span_id:a.parent_span_id,span_id:n,trace_id:r,data:i,op:o,status:a.status,origin:a.origin,links:a.links}}function ex(t){var e=t.spanContext(),n=e.spanId,r=e.traceId,a=e.isRemote,i=a?n:ew(t).parent_span_id,o=ep(t).scope;return{parent_span_id:i,span_id:a?(null==o?void 0:o.getPropagationContext().propagationSpanId)||tk():n,trace_id:r}}function eA(t){return t&&t.length>0?t.map(function(t){var e=t.context,n=e.spanId,r=e.traceId,a=e.traceFlags,i=(0,ea._)(e,["spanId","traceId","traceFlags"]),o=t.attributes;return(0,p._)({span_id:n,trace_id:r,sampled:1===a,attributes:o},i)}):void 0}function eN(t){return(null==t?void 0:t.length)?t.map(function(t){var e=t.context;return{span_id:e.spanId,trace_id:e.traceId,sampled:1===e.traceFlags,attributes:t.attributes}}):void 0}function eC(t){return"number"==typeof t?eR(t):Array.isArray(t)?t[0]+t[1]/1e9:(0,T._)(t,Date)?eR(t.getTime()):tm(
2)}function eR(t){return t>0x2540be3ff?t/1e3:t}function ew(t){if(eP(t))return t.getSpanJSON();var e=t.spanContext(),n=e.spanId,r=e.traceId;if(eM(t)){var a=t.attributes,i=t.startTime,o=t.name,s=t.endTime,u=t.status,c=t.links;return{span_id:n,trace_id:r,data:a,description:o,parent_span_id:eO(t),start_timestamp:eC(i),timestamp:eC(s)||void 0,status:eU(u),op:a[tX],origin:a[t$],links:eA(c)}}return{span_id:n,trace_id:r,start_timestamp:0,data:{}}}function eO(t){var e;return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?null==(e=t.parentSpanContext)?void 0:e.spanId:void 0}function eM(t){return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function eP(t){return"function"==typeof t.getSpanJSON}function eD(t){return 1===t.spanContext().traceFlags}function eU(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}function ej(t){return t&&1!==t.code&&0!==t.code&&"cancelled"!==t.message?"error":"ok"}var eL="_sentryChildSpans",eF="_sentryRootSpan";function eB(t,e){var n=t[eF]||t;J(e,eF,n),t[eL]?t[eL].add(e):J(t,eL,new Set([e]))}function eY(t){var e=new Set;return!function t(n){if(!e.has(n)&&eD(n)){e.add(n);var r=n[eL]?Array.from(n[eL]):[],a=!0,i=!1,o=void 0;try{for(var s,u=r[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;t(c)}}catch(t){i=!0,o=t}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}}}(t),Array.from(e)}var ez=eH;function eH(t){return t[eF]||t}function eJ(){var t=tY(h());return t.getActiveSpan?t.getActiveSpan():tR(tz())}function eG(){eI||(N(function(){console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),eI=!0)}t.s(["INTERNAL_getSegmentSpan",0,eH,"TRACE_FLAG_NONE",0,0,"TRACE_FLAG_SAMPLED",0,1,"addChildSpanToSpan",0,eB,"convertSpanLinksForEnvelope",0,eA,"getActiveSpan",0,eJ,"getRootSpan",0,ez,"getSimpleStatusMessage",0,ej,"getSpanDescendants",0,eY,"getStatusMessage",0,eU,"getStreamedSpanLinks",0,eN,"removeChildSpanFromSpan",0,function(t,e){t[eL]&&t[eL].delete(e)},"showSpanDropWarning",0,eG,"spanIsSampled",0,eD,"spanTimeInputToSeconds",0,eC,"spanToJSON",0,ew,"spanToStreamedSpanJSON",0,function(t){if(eP(t))return t.getStreamedSpanJSON();var e=t.spanContext(),n=e.spanId,r=e.traceId;if(eM(t)){var a=t.attributes,i=t.startTime,o=t.name,s=t.endTime,u=t.status,c=t.links;return{name:o,span_id:n,trace_id:r,parent_span_id:eO(t),start_timestamp:eC(i),end_timestamp:eC(s),is_segment:t===eH(t),status:ej(u),attributes:a,links:eN(c)}}return{span_id:n,trace_id:r,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===eH(t)}},"spanToTraceContext",0,ex,"spanToTraceHeader",0,function(t){var e=t.spanContext();return eb(e.traceId,e.spanId,eD(t))},"spanToTraceparentHeader",0,function(t){var e=t.spanContext();return eT(e.traceId,e.spanId,eD(t))},"spanToTransactionTraceContext",0,ek,"streamedSpanJsonToSerializedSpan",0,function(t){var e;return(0,E._)((0,p._)({},t),{attributes:ei(t.attributes),links:null==(e=t.links)?void 0:e.map(function(t){return(0,E._)((0,p._)({},t),{attributes:ei(t.attributes)})})})},"updateSpanName",0,function(t,e){var n;t.updateName(e),t.setAttributes((n={},(0,b._)(n,tW,"custom"),(0,b._)(n,t0,e),n))}],304661);var eK="production";t.s(["DEFAULT_ENVIRONMENT",0,eK],373250);var eW="_frozenDsc";function eV(t,e){J(t,eW,e)}function eq(t,e){var n=e.getOptions(),r=(e.getDsn()||{}).publicKey,a={environment:n.environment||eK,release:n.release,public_key:r,trace_id:t,org_id:eg(e)};return e.emit("createDsc",a),a}function eX(t){var e,n,r,a,i,o=tK();if(!o)return{};var s=ez(t),u=ew(s),c=u.data,l=s.spanContext().traceState,p=null!=(e=null!=(n=null==l?void 0:l.get("sentry.sample_rate"))?n:c[tV])?e:c[tq];function d(t){return("number"==typeof p||"string"==typeof p)&&(t.sample_rate="".concat(p)),t}var f=s[eW];if(f)return d(f);var _=null==l?void 0:l.get("sentry.dsc"),v=_&&t4(_);if(v)return d(v);var h=eq(t.spanContext().traceId,o),g=null!=(r=c[tW])?r:c["sentry.span.source"],m=u.description;return"url"!==g&&m&&(h.transaction=m),t7()&&(h.sampled=String(eD(s)),h.sample_rand=null!=(a=null==l?void 0:l.get("sentry.sample_rand"))?a:null==(i=ep(s).scope)?void 0:i.getPropagationContext().sampleRand.toString()),d(h),o.emit("createDsc",h,s),h}t.s(["freezeDscOnSpan",0,eV,"getDynamicSamplingContextFromScope",0,function(t,e){var n=e.getPropagationContext();return n.dsc||eq(n.traceId,t)},"getDynamicSamplingContextFromSpan",0,eX,"spanToBaggageHeader",0,function(t){return t5(eX(t))}],473753);var e$=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,y._)(this,t),this._traceId=e.traceId||tI(),this._spanId=e.spanId||tk(),this.dropReason=e.dropReason}return(0,S._)(t,[{key:"spanContext",value:function(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}},{key:"end",value:function(t){}}
2,{key:"setAttribute",value:function(t,e){return this}},{key:"setAttributes",value:function(t){return this}},{key:"setStatus",value:function(t){return this}},{key:"updateName",value:function(t){return this}},{key:"isRecording",value:function(){return!1}},{key:"addEvent",value:function(t,e,n){return this}},{key:"addLink",value:function(t){return this}},{key:"addLinks",value:function(t){return this}},{key:"recordException",value:function(t,e){}}]),t}();function eQ(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}function eZ(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[t,e]}function e0(t,e){var n=t[1],r=!0,a=!1,i=void 0;try{for(var o,s=n[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var u=o.value,c=u[0].type;if(e(u,c))return!0}}catch(t){a=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return!1}function e1(t){var e=g(v);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function e2(t){return[{type:"span"},t]}t.s(["SentryNonRecordingSpan",0,e$],728469),t.s(["isStreamedBeforeSendSpanCallback",0,eQ,"withStreamedSpan",0,function(t){return J(t,"_streamed",!0),t}],286564);var e3={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function e4(t){if(null==t?void 0:t.sdk){var e=t.sdk;return{name:e.name,version:e.version}}}function e5(t,e,n,r){var a,i=null==(a=t.sdkProcessingMetadata)?void 0:a.dynamicSamplingContext;return(0,p._)({event_id:t.event_id,sent_at:new Date(X()).toISOString()},e&&{sdk:e},!!n&&r&&{dsn:e_(r)},i&&{trace:i})}function e8(t,e){var n=eX(t[0]),r=null==e?void 0:e.getDsn(),a=null==e?void 0:e.getOptions().tunnel,i=(0,p._)({sent_at:new Date(X()).toISOString()},!!n.trace_id&&!!n.public_key&&{trace:n},!!a&&r&&{dsn:e_(r)}),o=(null==e?void 0:e.getOptions())||{},s=o.beforeSendSpan,u=o.ignoreSpans,c=(null==u?void 0:u.length)?t.filter(function(t){var e=ew(t);return!ee({description:e.description,op:e.op,attributes:e.data},u)}):t,l=t.length-c.length;l&&(null==e||e.recordDroppedEvent("before_send","span",l));var d=s?function(t){var e=ew(t),n=eQ(s)?e:s(e);return n||(eG(),e)}:ew,f=[],_=!0,v=!1,h=void 0;try{for(var g,m=c[Symbol.iterator]();!(_=(g=m.next()).done);_=!0){var y=g.value,S=d(y);S&&f.push(e2(S))}}catch(t){v=!0,h=t}finally{try{_||null==m.return||m.return()}finally{if(v)throw h}}return eZ(i,f)}function e6(t){if(t&&0!==t.length){var e={};return t.forEach(function(t){var n=t.attributes||{},r=n[tQ],a=n[tZ];"string"==typeof r&&"number"==typeof a&&(e[t.name]={value:a,unit:r})}),e}}t.s(["addItemToEnvelope",0,function(t,e){var n=(0,f._)(t,2),r=n[0],a=n[1];return[r,(0,I._)(a).concat([e])]},"createAttachmentEnvelopeItem",0,function(t){var e="string"==typeof t.data?e1(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]},"createEnvelope",0,eZ,"createEventEnvelopeHeaders",0,e5,"createSpanEnvelopeItem",0,e2,"envelopeContainsItemType",0,function(t,e){return e0(t,function(t,n){return e.includes(n)})},"envelopeItemTypeToDataCategory",0,function(t){return t in e3?e3[t]:t},"forEachEnvelopeItem",0,e0,"getSdkMetadataForEnvelopeHeader",0,e4,"parseEnvelope",0,function(t){var e="string"==typeof t?e1(t):t;function n(t){var n=e.subarray(0,t);return e=e.subarray(t+1),n}function r(){var t,r,a=e.indexOf(10);return a<0&&(a=e.length),JSON.parse((t=n(a),(r=g(v)).decodePolyfill?r.decodePolyfill(t):new TextDecoder().decode(t)))}for(var a=r(),i=[];e.length;){var o=r(),s="number"==typeof o.length?o.length:void 0;i.push([o,s?n(s):r()])}return[a,i]},"serializeEnvelope",0,function(t){var e=(0,f._)(t,2),n=e[0],r=e[1],a=JSON.stringify(n);function i(t){"string"==typeof a?a="string"==typeof t?a+t:[e1(a),t]:a.push("string"==typeof t?e1(t):t)}var o=!0,s=!1,u=void 0;try{for(var c,l=r[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var p=c.value,d=(0,f._)(p,2),_=d[0],v=d[1];if(i("\n".concat(JSON.stringify(_),"\n")),"string"==typeof v||(0,T._)(v,Uint8Array))i(v);else{var h=void 0;try{h=JSON.stringify(v)}catch(t){h=JSON.stringify(tu(v))}i(h)}}}catch(t){s=!0,u=t}finally{try{o||null==l.return||l.return()}finally{if(s)throw u}}return"string"==typeof a?a:function(t){var e=new Uint8Array(t.reduce(function(t,e){return t+e.length},0)),n=0,r=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var u=o.value;e.set(u,n),n+=u.length}}catch(t){a=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return e}(a)}],67486),t.s(["createEventEnvelope",0,function(t,e,n,r){var a=e4(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(e){var n,r,a,i,o=t.sdk||{};t.sdk=(0,E._)((0,p._)({},o),{name:o.name||e.name,version:o.version||e.version,integrations:(0,I._)((null==(n=t.sdk)?void 0:n.integrations)||[]).concat((0,I._)(e.integrations||[])),packages:(0,I._)((null==(r=t.sdk)?void 0:r.packages)||[]).concat((0,I._)(e.packages||[])),settings:(null==(a=t.sdk)?void 0:a.settings)||e.settings?(0,p._)({}
2,null==(i=t.sdk)?void 0:i.settings,e.settings):void 0})}}(t,null==n?void 0:n.sdk);var o=e5(t,a,r,e);return delete t.sdkProcessingMetadata,eZ(o,[[{type:i},t]])},"createSessionEnvelope",0,function(t,e,n,r){var a=e4(n);return eZ((0,p._)({sent_at:new Date(X()).toISOString()},a&&{sdk:a},!!r&&e&&{dsn:e_(e)}),["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])},"createSpanEnvelope",0,e8],869766),t.s(["setMeasurement",0,function(t,e,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:eJ(),i=a&&ez(a);i&&(k&&O.log("[Measurement] Setting measurement on root span: ".concat(t," = ").concat(e," ").concat(n)),i.addEvent(t,(r={},(0,b._)(r,tZ,e),(0,b._)(r,tQ,n),r)))},"timedEventsToMeasurements",0,e6],804478);var e9=function(){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,y._)(this,t),this._traceId=n.traceId||tI(),this._spanId=n.spanId||tk(),this._startTime=n.startTimestamp||tm(),this._links=n.links,this._attributes={},this.setAttributes((0,p._)((e={},(0,b._)(e,t$,"manual"),(0,b._)(e,tX,n.op),e),n.attributes)),this._name=n.name,n.parentSpanId&&(this._parentSpanId=n.parentSpanId),"sampled"in n&&(this._sampled=n.sampled),n.endTimestamp&&(this._endTime=n.endTimestamp),this._events=[],this._isStandaloneSpan=n.isStandalone,this._endTime&&this._onSpanEnded()}return(0,S._)(t,[{key:"addLink",value:function(t){return this._links?this._links.push(t):this._links=[t],this}},{key:"addLinks",value:function(t){if(this._links){var e;(e=this._links).push.apply(e,(0,I._)(t))}else this._links=t;return this}},{key:"recordException",value:function(t,e){}},{key:"spanContext",value:function(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:+!!this._sampled}}},{key:"setAttribute",value:function(t,e){return void 0===e?delete this._attributes[t]:this._attributes[t]=e,this}},{key:"setAttributes",value:function(t){var e=this;return Object.keys(t).forEach(function(n){return e.setAttribute(n,t[n])}),this}},{key:"updateStartTime",value:function(t){this._startTime=eC(t)}},{key:"setStatus",value:function(t){return this._status=t,this}},{key:"updateName",value:function(t){return this._name=t,this.setAttribute(tW,"custom"),this}},{key:"end",value:function(t){this._endTime||(this._endTime=eC(t),function(t){if(k){var e=ew(t),n=e.description,r=e.op,a=t.spanContext().spanId,i=ez(t)===t,o='[Tracing] Finishing "'.concat(void 0===r?"< unknown op >":r,'" ').concat(i?"root ":"",'span "').concat(void 0===n?"< unknown name >":n,'" with ID ').concat(a);O.log(o)}}(this),this._onSpanEnded())}},{key:"getSpanJSON",value:function(){return{data:this._attributes,description:this._name,op:this._attributes[tX],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:eU(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[t$],profile_id:this._attributes[t1],exclusive_time:this._attributes[t2],measurements:e6(this._events),is_segment:this._isStandaloneSpan&&ez(this)===this||void 0,segment_id:this._isStandaloneSpan?ez(this).spanContext().spanId:void 0,links:eA(this._links)}}},{key:"getStreamedSpanJSON",value:function(){var t,e;return{name:null!=(t=this._name)?t:"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:null!=(e=this._endTime)?e:this._startTime,is_segment:this._isStandaloneSpan||this===ez(this),status:ej(this._status),attributes:this._attributes,links:eN(this._links)}}},{key:"isRecording",value:function(){return!this._endTime&&!!this._sampled}},{key:"addEvent",value:function(t,e,n){k&&O.log("[Tracing] Adding an event to span:",t);var r=e7(e)?e:n||tm(),a=e7(e)?{}:e||{},i={name:t,time:eC(r),attributes:a};return this._events.push(i),this}},{key:"isStandaloneSpan",value:function(){return!!this._isStandaloneSpan}},{key:"_onSpanEnded",value:function(){var t=tK();if(t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this)),this._isStandaloneSpan||this===ez(this)){if(this._isStandaloneSpan)return void(this._sampled?function(t){var e=tK();if(e){var n=t[1];
2if(!n||0===n.length)return e.recordDroppedEvent("before_send","span");e.sendEnvelope(t)}}(e8([this],t)):(k&&O.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));if(t&&en(t))return void t.emit("afterSegmentSpanEnd",this);var e=this._convertSpanToTransaction();e&&(ep(this).scope||tz()).captureEvent(e)}}},{key:"_convertSpanToTransaction",value:function(){var t,e=this;if(nt(ew(this))){this._name||(k&&O.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");var n=ep(this),r=n.scope,a=n.isolationScope,i=null==r||null==(t=r.getScopeData().sdkProcessingMetadata)?void 0:t.normalizedRequest;if(!0===this._sampled){var o=eY(this).filter(function(t){var n;return t!==e&&(n=t,!((0,T._)(n,e9)&&n.isStandaloneSpan()))}).map(function(t){return ew(t)}).filter(nt),s=this._attributes[tW];delete this._attributes[t0];var u=!1;o.forEach(function(t){var e;delete t.data[t0],(null==(e=t.op)?void 0:e.startsWith("gen_ai."))&&(u=!0)});var c=(0,p._)({contexts:{trace:ek(this)},spans:o.length>1e3?o.sort(function(t,e){return t.start_timestamp-e.start_timestamp}).slice(0,1e3):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:r,capturedSpanIsolationScope:a,dynamicSamplingContext:eX(this),hasGenAiSpans:u},request:i},s&&{transaction_info:{source:s}}),l=e6(this._events);return l&&Object.keys(l).length&&(k&&O.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}}}]),t}();function e7(t){return t&&"number"==typeof t||(0,T._)(t,Date)||Array.isArray(t)}function nt(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}t.s(["SentrySpan",0,e9],14177);var ne="__SENTRY_SUPPRESS_TRACING__";function nn(t,e){var n=no();return n.withActiveSpan?n.withActiveSpan(t,e):tG(function(n){return tC(n,t||void 0),e(n)})}function nr(t){var e=no();return e.startNewTrace?e.startNewTrace(t):tG(function(e){return e.setPropagationContext({traceId:tI(),sampleRand:q()}),k&&O.log("Starting a new trace with id ".concat(e.getPropagationContext().traceId)),nn(null,t)})}function na(t){var e,n,r,a,i,o,s,u,c,l,d,f,_,v,h,g,m=t.parentSpan,y=t.spanArguments,S=t.forceTransaction,b=t.scope;if(!t7()){var I=new e$;if(S||!m){var x=(0,p._)({sampled:"false",sample_rate:"0",transaction:y.name},eX(I));eV(I,x)}return I}var A=tK();if(e=A,n=y,a=null==e?void 0:e.getOptions().ignoreSpans,e&&en(e)&&(null==a?void 0:a.length)&&ee({description:n.name||"",op:(null==(r=n.attributes)?void 0:r[tX])||n.op,attributes:n.attributes},a))return np(b)||null==A||A.recordDroppedEvent("ignored","span"),new e$({dropReason:"ignored",traceId:null!=(h=null==m?void 0:m.spanContext().traceId)?h:b.getPropagationContext().traceId});var N=tH();if(m&&!S){i=m,o=b,s=y,c=(u=i.spanContext()).spanId,l=u.traceId,_=(f=!(d=np(o))&&eD(i))?new e9((0,E._)((0,p._)({},s),{parentSpanId:c,traceId:l,sampled:f})):new e$({traceId:l}),eB(i,_),(v=tK())&&(en(v)&&(0,T._)(_,e$)&&((0,T._)(i,e$)&&i.dropReason?(_.dropReason=i.dropReason,v.recordDroppedEvent(i.dropReason,"span")):d||(_.dropReason="sample_rate",v.recordDroppedEvent("sample_rate","span"))),v.emit("spanStart",_),s.endTimestamp&&(v.emit("spanEnd",_),v.emit("afterSpanEnd",_))),eB(m,g=_)}else if(m){var C=eX(m),R=m.spanContext(),w=R.traceId,M=R.spanId,P=eD(m);eV(g=ns((0,p._)({traceId:w,parentSpanId:M},y),b,P),C)}else{var D=(0,p._)({},N.getPropagationContext(),b.getPropagationContext()),U=D.traceId,j=D.dsc,L=D.parentSpanId,F=D.sampled;g=ns((0,p._)({traceId:U,parentSpanId:L},y),b,F),j&&eV(g,j)}return!function(t){if(k){var e=ew(t),n=e.description,r=e.op,a=e.parent_span_id,i=t.spanContext().spanId,o=eD(t),s=ez(t),u=s===t,c="[Tracing] Starting ".concat(o?"sampled":"unsampled"," ").concat(u?"root ":"","span"),l=["op: ".concat(void 0===r?"< unknown op >":r),"name: ".concat(void 0===n?"< unknown name >":n),"ID: ".concat(i)];if(a&&l.push("parent ID: ".concat(a)),!u){var p=ew(s),d=p.op,f=p.description;l.push("root ID: ".concat(s.spanContext().spanId)),d&&l.push("root op: ".concat(d)),f&&l.push("root description: ".concat(f))}O.log("".concat(c,"\n ").concat(l.join("\n ")))}}(g),el(g,b,N),g}function ni(t){var e=t.experimental||{},n=(0,p._)({isStandalone:e.standalone},t);if(t.startTime){var r=(0,p._)({},n);return r.startTimestamp=eC(t.startTime),delete r.startTime,r}return n}function no(){return tY(h())}function ns(t,e,n){var r,a,i,o=tK(),s=(null==o?void 0:o.getOptions())||{},u=t.name,c=void 0===u?"":u,l={spanAttributes:(0,p._)({},t.attributes),spanName:c,parentSampled:n};null==o||o.emit("beforeSampling",l,{decision:!1});var d=null!=(r=l.parentSampled)?r:n,_=l.spanAttributes,v=e.getPropagationContext(),h=np(e),g=(0,f._)(h?[!1]:function(t,e,n){if(!t7(t))return[!1];var r,a=void 0;"function"==typeof t.tracesSampler?(r=t.tracesSampler((0,E._)((0,p._)({},e),{inheritOrSampleWith:function(t){return"number"==typeof e.parentSampleRate?e.parentSampleRate:"boolean"==typeof e.parentSampled?Number(e.parentSampled):t}})),a=!0):void 0!==e.parentSampled?r=e.parentSampled:void 0!==t.tracesSampleRate&&(r=t.tracesSampleRate,a=!0);var i=er(r);if(void 0===i)return k&&O.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(void 0===r?"undefined":(0,x._)(r)),".")),[!1];if(!i)return k&&O.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,i,a];var o=n<i;return!o&&k&&O.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),[o,i,a]}(s,{name:c,parentSampled:d,attributes:_,parentSampleRate:er(null==(a=v.dsc)?void 0:a.sample_rate)},v.sampleRand),3),m=g[0],y=g[1],S=g[2],T=new e9((0,E._)((0,p._)({},t),{attributes:(0,p._)((i={}
2,(0,b._)(i,tW,"custom"),(0,b._)(i,tV,void 0!==y&&S?y:void 0),i),_),sampled:m}));return m||!o||h||(k&&O.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),o.recordDroppedEvent("sample_rate",en(o)?"span":"transaction")),o&&o.emit("spanStart",T),T}function nu(t,e){if(e)return e;if(null!==e){var n=tR(t);if(n){var r=tK();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?ez(n):n}}}function nc(t){return void 0!==t?function(e){return nn(t,e)}:function(t){return t()}}function nl(t){return(0,T._)(t,e$)&&"ignored"===t.dropReason}function np(t){return!0===t.getScopeData().sdkProcessingMetadata[ne]}function nd(t){return new n_(function(e){e(t)})}function nf(t){return new n_(function(e,n){n(t)})}t.s(["continueTrace",0,function(t,e){var n=tY(h());if(n.continueTrace)return n.continueTrace(t,e);var r=t.sentryTrace,a=t.baggage,i=tK(),o=t4(a);return i&&!eE(i,null==o?void 0:o.org_id)?nr(e):tG(function(t){var n=eS(r,a);return t.setPropagationContext(n),tC(t,void 0),e()})},"startInactiveSpan",0,function(t){var e=no();if(e.startInactiveSpan)return e.startInactiveSpan(t);var n=ni(t),r=t.forceTransaction,a=t.parentSpan;return(t.scope?function(e){return tG(t.scope,e)}:void 0!==a?function(t){return nn(a,t)}:function(t){return t()})(function(){var e=tz(),i=nu(e,a),o=tK();return t.onlyIfParent&&!i?(null==o||o.recordDroppedEvent("no_parent_span","span"),new e$):na({parentSpan:i,spanArguments:n,forceTransaction:r,scope:e})})},"startNewTrace",0,nr,"startSpan",0,function(t,e){var n=no();if(n.startSpan)return n.startSpan(t,e);var r=ni(t),a=t.forceTransaction,i=t.parentSpan,o=t.scope;return tG(null==o?void 0:o.clone(),function(){return nc(i)(function(){var n=tz(),o=nu(n,i),s=tK(),u=t.onlyIfParent&&!o,c=u?new e$:na({parentSpan:o,spanArguments:r,forceTransaction:a,scope:n});return u&&(null==s||s.recordDroppedEvent("no_parent_span","span")),nl(c)&&o||tC(n,c),t9(function(){return e(c)},function(){var t=ew(c).status;c.isRecording()&&(!t||"ok"===t)&&c.setStatus({code:2,message:"internal_error"})},function(){c.end()})})})},"startSpanManual",0,function(t,e){var n=no();if(n.startSpanManual)return n.startSpanManual(t,e);var r=ni(t),a=t.forceTransaction,i=t.parentSpan,o=t.scope;return tG(null==o?void 0:o.clone(),function(){return nc(i)(function(){var n,o=tz(),s=nu(o,i),u=t.onlyIfParent&&!s,c=u?new e$:na({parentSpan:s,spanArguments:r,forceTransaction:a,scope:o});return u&&(null==(n=tK())||n.recordDroppedEvent("no_parent_span","span")),nl(c)&&s||tC(o,c),t9(function(){return e(c,function(){return c.end()})},function(){var t=ew(c).status;c.isRecording()&&(!t||"ok"===t)&&c.setStatus({code:2,message:"internal_error"})})})})},"suppressTracing",0,function(t){var e=no();return e.suppressTracing?e.suppressTracing(t):tG(function(e){e.setSDKProcessingMetadata((0,b._)({},ne,!0));var n=t();return e.setSDKProcessingMetadata((0,b._)({},ne,void 0)),n})},"withActiveSpan",0,nn],541193);var n_=function(){function t(e){(0,y._)(this,t),this._state=0,this._handlers=[],this._runExecutor(e)}return(0,S._)(t,[{key:"then",value:function(e,n){var r=this;return new t(function(t,a){r._handlers.push([!1,function(n){if(e)try{t(e(n))}catch(t){a(t)}else t(n)},function(e){if(n)try{t(n(e))}catch(t){a(t)}else a(e)}]),r._executeHandlers()})}},{key:"catch",value:function(t){return this.then(function(t){return t},t)}},{key:"finally",value:function(e){var n=this;return new t(function(t,r){var a,i;return n.then(function(t){i=!1,a=t,e&&e()},function(t){i=!0,a=t,e&&e()}).then(function(){i?r(a):t(a)})})}},{key:"_executeHandlers",value:function(){var t=this;if(0!==this._state){var e=this._handlers.slice();this._handlers=[],e.forEach(function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)})}}},{key:"_runExecutor",value:function(t){var e=this,n=function(t,n){if(0===e._state){if(z(n))return void n.then(r,a);e._state=t,e._value=n,e._executeHandlers()}},r=function(t){n(1,t)},a=function(t){n(2,t)};try{t(r,a)}catch(t){a(t)}}}]),t}();function nv(t){var e=v._sentryDebugIds,n=v._debugIds;if(!e&&!n)return{};var r=e?Object.keys(e):[],a=n?Object.keys(n):[];if(c&&r.length===s&&a.length===u)return c;s=r.length,u=a.length,c={},o||(o={});var i=function(e,n){var r=!0,a=!1,i=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var l=s.value,p=n[l],d=null==o?void 0:o[l];if(d&&c&&p)c[d[0]]=p,o&&(o[l]=[d[0],p]);else if(p)for(var f=t(l),_=f.length-1;_>=0;_--){var v=f[_],h=null==v?void 0:v.filename;if(h&&c&&o){c[h]=p,o[l]=[h,p];break}}}}catch(t){a=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(a)throw i}}};return e&&i(r,e),n&&i(a,n),c}function nh(t,e){var n,r,a,i,o,s,u,c,l,d,f,_,v,h,g,m,y,S,b=e.fingerprint,T=e.span,E=e.breadcrumbs,k=e.sdkProcessingMetadata;n=t,a=(r=e).extra,i=r.tags,o=r.user,s=r.contexts,u=r.level,c=r.transactionName,Object.keys(a).length&&(n.extra=(0,p._)({},a,n.extra)),Object.keys(i).length&&(n.tags=(0,p._)({}
2,i,n.tags)),Object.keys(o).length&&(n.user=(0,p._)({},o,n.user)),Object.keys(s).length&&(n.contexts=(0,p._)({},s,n.contexts)),u&&(n.level=u),c&&"transaction"!==n.type&&(n.transaction=c),T&&(l=t,d=T,l.contexts=(0,p._)({trace:ex(d)},l.contexts),l.sdkProcessingMetadata=(0,p._)({dynamicSamplingContext:eX(d)},l.sdkProcessingMetadata),(f=ew(ez(d)).description)&&!l.transaction&&"transaction"===l.type&&(l.transaction=f)),_=t,v=b,_.fingerprint=_.fingerprint?Array.isArray(_.fingerprint)?_.fingerprint:[_.fingerprint]:[],v&&(_.fingerprint=_.fingerprint.concat(v)),_.fingerprint.length||delete _.fingerprint,h=t,g=E,m=(0,I._)(h.breadcrumbs||[]).concat((0,I._)(g)),h.breadcrumbs=m.length?m:void 0,y=t,S=k,y.sdkProcessingMetadata=(0,p._)({},y.sdkProcessingMetadata,S)}function ng(t,e){var n=e.extra,r=e.tags,a=e.attributes,i=e.user,o=e.contexts,s=e.level,u=e.sdkProcessingMetadata,c=e.breadcrumbs,l=e.fingerprint,d=e.eventProcessors,f=e.attachments,_=e.propagationContext,v=e.transactionName,h=e.span;nm(t,"extra",n),nm(t,"tags",r),nm(t,"attributes",a),nm(t,"user",i),nm(t,"contexts",o),t.sdkProcessingMetadata=tE(t.sdkProcessingMetadata,u,2),s&&(t.level=s),v&&(t.transactionName=v),h&&(t.span=h),c.length&&(t.breadcrumbs=(0,I._)(t.breadcrumbs).concat((0,I._)(c))),l.length&&(t.fingerprint=(0,I._)(t.fingerprint).concat((0,I._)(l))),d.length&&(t.eventProcessors=(0,I._)(t.eventProcessors).concat((0,I._)(d))),f.length&&(t.attachments=(0,I._)(t.attachments).concat((0,I._)(f))),t.propagationContext=(0,p._)({},t.propagationContext,_)}function nm(t,e,n){t[e]=tE(t[e],n,1)}function ny(t,e){var n=tJ().getScopeData();return t&&ng(n,t.getScopeData()),e&&ng(n,e.getScopeData()),n}function nS(t){if(t){var e;return(e=t,(0,T._)(e,tw)||"function"==typeof e||Object.keys(t).some(function(t){return nb.includes(t)}))?{captureContext:t}:t}}t.s(["rejectedSyncPromise",0,nf,"resolvedSyncPromise",0,nd],580611),t.s(["getDebugImagesForResources",0,function(t,e){var n=nv(t);if(!n)return[];var r=[],a=!0,i=!1,o=void 0;try{for(var s,u=e[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value,l=ts(c);l&&n[l]&&r.push({type:"sourcemap",code_file:c,debug_id:n[l]})}}catch(t){i=!0,o=t}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}return r},"getFilenameToDebugIdMap",0,nv],147310),t.s(["applyScopeDataToEvent",0,nh,"getCombinedScopeData",0,ny],571993);var nb=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function nT(){var t=tH(),e=tz().getSession()||t.getSession();e&&tT(e),nE(),t.setSession()}function nE(){var t=tH(),e=tK(),n=t.getSession();n&&e&&e.captureSession(n)}t.s(["parseEventHintOrCaptureContext",0,nS,"prepareEvent",0,function(t,e,n,r,a,i){var o,s,u,c,l,d,_,v,h,g,m,y,S,b,T,x=t.normalizeDepth,A=void 0===x?3:x,N=t.normalizeMaxBreadth,C=void 0===N?1e3:N,R=(0,E._)((0,p._)({},e),{event_id:e.event_id||n.event_id||tf(),timestamp:e.timestamp||tg()}),w=n.integrations||t.integrations.map(function(t){return t.name});o=R,l=(s=t).environment,d=s.release,_=s.dist,v=s.maxValueLength,o.environment=o.environment||l||eK,!o.release&&d&&(o.release=d),!o.dist&&_&&(o.dist=_),(null==(h=o.request)?void 0:h.url)&&v&&(h.url=tl(h.url,v)),v&&(null==(c=o.exception)||null==(u=c.values)||u.forEach(function(t){t.value&&(t.value=tl(t.value,v))})),g=R,(m=w).length>0&&(g.sdk=g.sdk||{},g.sdk.integrations=(0,I._)(g.sdk.integrations||[]).concat((0,I._)(m))),a&&a.emit("applyFrameMetadata",e),void 0===e.type&&(y=R,T=nv(t.stackParser),null==(b=y.exception)||null==(S=b.values)||S.forEach(function(t){var e,n;null==(n=t.stacktrace)||null==(e=n.frames)||e.forEach(function(t){t.filename&&(t.debug_id=T[t.filename])})}));var M=function(t,e){if(!e)return t;var n=t?t.clone():new tw;return n.update(e),n}(r,n.captureContext);n.mechanism&&tv(R,n.mechanism);var P=a?a.getEventProcessors():[],D=ny(i,M),U=(0,I._)(n.attachments||[]).concat((0,I._)(D.attachments));U.length&&(n.attachments=U),nh(R,D);var j=(0,I._)(P).concat((0,I._)(D.eventProcessors));return(n.data&&!0===n.data.__sentry__?nd(R):function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;try{var a=function t(e,n,r,a){var i=r[a];if(!e||!i)return e;var o=i((0,p._)({},e),n);return(k&&null===o&&O.log('Event processor "'.concat(i.id||"?",'" dropped event')),z(o))?o.then(function(e){return t(e,n,r,a+1)}):t(o,n,r,a+1)}(e,n,t,r);return z(a)?a:nd(a)}catch(t){return nf(t)}}(j,R,n)).then(function(t){return(t&&function(t){var e,n,r={};if(null==(n=t.exception)||null==(e=n.values)||e.forEach(function(t){var e,n;null==(n=t.stacktrace)||null==(e=n.frames)||e.forEach(function(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){t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];var a=t.debug_meta.images;Object.entries(r).forEach(function(t){var e=(0,f._)(t,2),n=e[0],r=e[1];a.push({type:"sourcemap",code_file:n,debug_id:r})})}}(t),"number"==typeof A&&A>0)?function(t,e,n){if(!t)return null;var r,a,i=(0,p._)({},t,t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return(0,p._)({}
2,t,t.data&&{data:tu(t.data,e,n)})})},t.user&&{user:tu(t.user,e,n)},t.contexts&&{contexts:tu(t.contexts,e,n)},t.extra&&{extra:tu(t.extra,e,n)});return(null==(r=t.contexts)?void 0:r.trace)&&i.contexts&&(i.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(i.contexts.trace.data=tu(t.contexts.trace.data,e,n))),t.spans&&(i.spans=t.spans.map(function(t){return(0,p._)({},t,t.data&&{data:tu(t.data,e,n)})})),(null==(a=t.contexts)?void 0:a.flags)&&i.contexts&&(i.contexts.flags=tu(t.contexts.flags,3,n)),i}(t,A,C):t})}],213186),t.s(["addEventProcessor",0,function(t){tH().addEventProcessor(t)},"captureCheckIn",0,function(t,e){var n=tz(),r=tK();if(r)if(r.captureCheckIn)return r.captureCheckIn(t,e,n);else k&&O.warn("Cannot capture check-in. Client does not support sending check-ins.");else k&&O.warn("Cannot capture check-in. No client defined.");return tf()},"captureEvent",0,function(t,e){return tz().captureEvent(t,e)},"captureException",0,function(t,e){return tz().captureException(t,nS(e))},"captureMessage",0,function(t,e){var n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return tz().captureMessage(t,n,r)},"captureSession",0,function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?nT():nE()},"close",0,function(t){return(0,l._)(function(){var e;return(0,d._)(this,function(n){return(e=tK())?[2,e.close(t)]:(k&&O.warn("Cannot flush events and disable SDK. No client defined."),[2,Promise.resolve(!1)])})})()},"endSession",0,nT,"flush",0,function(t){return(0,l._)(function(){var e;return(0,d._)(this,function(n){return(e=tK())?[2,e.flush(t)]:(k&&O.warn("Cannot flush events. No client defined."),[2,Promise.resolve(!1)])})})()},"isEnabled",0,function(){var t=tK();return(null==t?void 0:t.getOptions().enabled)!==!1&&!!(null==t?void 0:t.getTransport())},"isInitialized",0,function(){return!!tK()},"lastEventId",0,function(){return tH().lastEventId()},"setContext",0,function(t,e){tH().setContext(t,e)},"setConversationId",0,function(t){tH().setConversationId(t)},"setExtra",0,function(t,e){tH().setExtra(t,e)},"setExtras",0,function(t){tH().setExtras(t)},"setTag",0,function(t,e){tH().setTag(t,e)},"setTags",0,function(t){tH().setTags(t)},"setUser",0,function(t){tH().setUser(t)},"startSession",0,function(t){var e=tH(),n=ny(e,tz()).user,r=(v.navigator||{}).userAgent,a=tS((0,p._)({user:n},r&&{userAgent:r},t)),i=e.getSession();return(null==i?void 0:i.status)==="ok"&&tb(i,{status:"exited"}),nT(),e.setSession(a),a}],662537)}]); 3 4//# debugId=0ddb1f0a-ce08-2bec-f8f9-b0cf854d155f
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.