!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4a8bd387-bfb5-33dc-b38f-a5e4edb69bb3")}catch(e){}}(); define(["exports","./c_react-use_misc_util"],(function(t,e){"use strict";const n=Object.prototype.toString;function r(t){switch(n.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return p(t,Error)}}function s(t,e){return n.call(t)===`[object ${e}]`}function i(t){return s(t,"String")}function o(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function a(t){return s(t,"Object")}function c(t){return"undefined"!=typeof Event&&p(t,Event)}function u(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function p(t,e){try{return t instanceof e}catch(t){return!1}}function d(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}function l(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function _(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!i(t)&&(s(e,"RegExp")?e.test(t):!!i(e)&&(n?t===e:t.includes(e)))}const h="8.27.0",f=globalThis;function g(t,e,n){const r=n||f,s=r.__SENTRY__=r.__SENTRY__||{},i=s[h]=s[h]||{};return i[t]||(i[t]=e())}const m=f,S=80;function b(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"";try{let n=t;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const p=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||S;for(;n&&i++1&&o+s.length*c+u.length>=d));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch(t){return""}}function y(t,e){const n=t,r=[];if(!n||!n.tagName)return"";if(m.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(s&&s.length)s.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&i(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const o=["aria-label","type","name","title","alt"];for(const t of o){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}const v="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,E=["debug","info","warn","error","log","assert","trace"],x={};function j(t){if(!("console"in f))return t();const e=f.console,n={},r=Object.keys(x);r.forEach((t=>{const r=x[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const k=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return v?E.forEach((n=>{e[n]=function(){for(var e=arguments.length,r=new Array(e),s=0;s{f.console[n](`Sentry Logger [${n}]:`,...r)}))}})):E.forEach((t=>{e[t]=()=>{}})),e}();function w(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){v&&k.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function O(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,w(t,"__sentry_original__",e)}catch(t){}}function C(t){if(r(t))return e._objectSpread2({message:t.message,name:t.name,stack:t.stack},N(t));if(c(t)){const n=e._objectSpread2({type:t.type,target:D(t.target),currentTarget:D(t.currentTarget)},N(t));return"undefined"!=typeof CustomEvent&&p(t,CustomEvent)&&(n.detail=t.detail),n}return t}function D(t){try{return e=t,"undefined"!=typeof Element&&p(e,Element)?b(t):Object.prototype.toString.call(t)}catch(t){return""}var e}function N(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function P(t){return A(t,new Map)}function A(t,e){if(function(t){if(!a(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=A(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(A(t,e))})),r}return t}const L=50,M="?",I=/\(error: (.*)\)/,T=/captureMessage|captureException/;function R(){for(var t=arguments.length,n=new Array(t),r=0;rt[0]-e[0])).map((t=>t[1]));return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=[],o=t.split("\n");for(let t=n;t1024)continue;const n=I.test(e)?e.replace(I,"$1"):e;if(!n.match(/\S*Error: /)){for(const t of s){const e=t(n);if(e){i.push(e);break}}if(i.length>=L+r)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test($(n).function||"")&&n.pop();n.reverse(),T.test($(n).function||"")&&(n.pop(),T.test($(n).function||"")&&n.pop());return n.slice(0,L).map((t=>e._objectSpread2(e._objectSpread2({},t),{},{filename:t.filename||$(n).filename,function:t.function||M})))}(i.slice(r))}}function $(t){return t[t.length-1]||{}}const U="";function B(t){try{return t&&"function"==typeof t&&t.name||U}catch(t){return U}}const V=1e3;function F(){return Date.now()/V}const G=function(){const{performance:t}=f;if(!t||!t.now)return F;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/V}();function z(){const t=f,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function q(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function J(t,n){const r=q(t);if(!r)return;const s=r.mechanism;if(r.mechanism=e._objectSpread2(e._objectSpread2(e._objectSpread2({},{type:"generic",handled:!0}),s),n),n&&"data"in n){const t=e._objectSpread2(e._objectSpread2({},s&&s.data),n.data);r.mechanism.data=t}}function H(t){return Array.isArray(t)?t:[t]}function W(t){let 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 Y("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Y(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t=r){l[t]="[MaxProperties ~]";break}const e=h[t];l[t]=Y(t,e,u-1,r,s),_++}return o(e),l}var K;(()=>{const{performance:t}=f;if(!t||!t.now)return;const e=36e5,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=s{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 Q(((e,n)=>{let r,s;return this.then((e=>{s=!1,r=e,t&&t()}),(e=>{s=!0,r=e,t&&t()})).then((()=>{s?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(K.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(K.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===K.PENDING&&(u(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===K.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===K.RESOLVED&&t[1](this._value),this._state===K.REJECTED&&t[2](this._value),t[0]=!0)}))}}}const X="sentry-",Z=/^sentry-/;function tt(t){const e=function(t){if(!t||!i(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce(((t,e)=>{const n=et(e);return Object.entries(n).forEach((e=>{let[n,r]=e;t[n]=r})),t}),{});return et(t)}(t);if(!e)return;const n=Object.entries(e).reduce(((t,e)=>{let[n,r]=e;if(n.match(Z)){t[n.slice(X.length)]=r}return t}),{});return Object.keys(n).length>0?n:void 0}function et(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,e)=>{let[n,r]=e;return n&&r&&(t[n]=r),t}),{})}function nt(){return{traceId:z(),spanId:z().substring(16)}}const rt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function st(){return it(f),f}function it(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||h,e[h]=e[h]||{}}function ot(t){const e=G(),n={sid:z(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return P({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&at(n,t),n}function at(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||G(),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:z()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const 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)}const ct="_sentrySpan";function ut(t,e){e?w(t,ct,e):delete t[ct]}function pt(t){return t[ct]}class dt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=nt()}clone(){const t=new dt;return t._breadcrumbs=[...this._breadcrumbs],t._tags=e._objectSpread2({},this._tags),t._extra=e._objectSpread2({},this._extra),t._contexts=e._objectSpread2({},this._contexts),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._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata=e._objectSpread2({},this._sdkProcessingMetadata),t._propagationContext=e._objectSpread2({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,ut(t,pt(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&at(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags=e._objectSpread2(e._objectSpread2({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,n){return this._tags=e._objectSpread2(e._objectSpread2({},this._tags),{},{[t]:n}),this._notifyScopeListeners(),this}setExtras(t){return this._extra=e._objectSpread2(e._objectSpread2({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,n){return this._extra=e._objectSpread2(e._objectSpread2({},this._extra),{},{[t]:n}),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;const n="function"==typeof t?t(this):t,[r,s]=n instanceof lt?[n.getScopeData(),n.getRequestSession()]:a(n)?[t,t.requestSession]:[],{tags:i,extra:o,user:c,contexts:u,level:p,fingerprint:d=[],propagationContext:l}=r||{};return this._tags=e._objectSpread2(e._objectSpread2({},this._tags),i),this._extra=e._objectSpread2(e._objectSpread2({},this._extra),o),this._contexts=e._objectSpread2(e._objectSpread2({},this._contexts),u),c&&Object.keys(c).length&&(this._user=c),p&&(this._level=p),d.length&&(this._fingerprint=d),l&&(this._propagationContext=l),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,ut(this,void 0),this._attachments=[],this._propagationContext=nt(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r="number"==typeof n?n:100;if(r<=0)return this;const s=e._objectSpread2({timestamp:F()},t),i=this._breadcrumbs;return i.push(s),this._breadcrumbs=i.length>r?i.slice(-r):i,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,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:pt(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=e._objectSpread2(e._objectSpread2({},this._sdkProcessingMetadata),t),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:z();if(!this._client)return k.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,e._objectSpread2(e._objectSpread2({originalException:t,syntheticException:s},n),{},{event_id:r}),this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:z();if(!this._client)return k.warn("No client configured on scope - will not capture message!"),s;const i=new Error(t);return this._client.captureMessage(t,n,e._objectSpread2(e._objectSpread2({originalException:t,syntheticException:i},r),{},{event_id:s}),this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:z();return this._client?(this._client.captureEvent(t,e._objectSpread2(e._objectSpread2({},n),{},{event_id:r}),this),r):(k.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const lt=dt;class _t{constructor(t,e){let n,r;n=t||new lt,r=e||new lt,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return u(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function ht(){const t=it(st());return t.stack=t.stack||new _t(g("defaultCurrentScope",(()=>new lt)),g("defaultIsolationScope",(()=>new lt)))}function ft(t){return ht().withScope(t)}function gt(t,e){const n=ht();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function mt(t){return ht().withScope((()=>t(ht().getIsolationScope())))}function St(t){const e=it(t);return e.acs?e.acs:{withIsolationScope:mt,withScope:ft,withSetScope:gt,withSetIsolationScope:(t,e)=>mt(e),getCurrentScope:()=>ht().getScope(),getIsolationScope:()=>ht().getIsolationScope()}}function bt(){return St(st()).getCurrentScope()}function yt(){return St(st()).getIsolationScope()}function vt(){return g("globalScope",(()=>new lt))}function Et(){return bt().getClient()}const xt="_sentryMetrics";function jt(t){const e=t[xt];if(!e)return;const n={};for(const[,[t,r]]of e){(n[t]||(n[t]=[])).push(P(r))}return n}const kt="sentry.source",wt="sentry.sample_rate",Ot="sentry.op",Ct="sentry.origin",Dt=0,Nt=1,Pt=1;function At(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=It(t);return P({parent_span_id:r,span_id:e,trace_id:n})}function Lt(t){return"number"==typeof t?Mt(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Mt(t.getTime()):G()}function Mt(t){return t>9999999999?t/1e3:t}function It(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:i,endTime:o,parentSpanId:a,status:c}=t;return P({span_id:e,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:Lt(s),timestamp:Lt(o)||void 0,status:Tt(c),op:r[Ot],origin:r[Ct],_metrics_summary:jt(t)})}return{span_id:e,trace_id:n}}catch(t){return{}}}function Tt(t){if(t&&t.code!==Dt)return t.code===Nt?"ok":t.message||"unknown_error"}const Rt="_sentryRootSpan";function $t(t){return t[Rt]||t}const Ut="production",Bt="_frozenDsc";function Vt(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s=P({environment:n.environment||Ut,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",s),s}function Ft(t){const e=Et();if(!e)return{};const n=Vt(It(t).trace_id||"",e),r=$t(t),s=r[Bt];if(s)return s;const i=r.spanContext().traceState,o=i&&i.get("sentry.dsc"),a=o&&tt(o);if(a)return a;const c=It(r),u=c.data||{},p=u[wt];null!=p&&(n.sample_rate=`${p}`);const d=u[kt],l=c.description;return"url"!==d&&l&&(n.transaction=l),n.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return e===Pt}(r)),e.emit("createDsc",n,r),n}function Gt(t,n,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Q(((i,o)=>{const a=t[s];if(null===n||"function"!=typeof a)i(n);else{const c=a(e._objectSpread2({},n),r);rt&&a.id&&null===c&&k.log(`Event processor "${a.id}" dropped event`),u(c)?c.then((e=>Gt(t,e,r,s+1).then(i))).then(null,o):Gt(t,c,r,s+1).then(i).then(null,o)}}))}function zt(t,n){const{fingerprint:r,span:s,breadcrumbs:i,sdkProcessingMetadata:o}=n;!function(t,n){const{extra:r,tags:s,user:i,contexts:o,level:a,transactionName:c}=n,u=P(r);u&&Object.keys(u).length&&(t.extra=e._objectSpread2(e._objectSpread2({},u),t.extra));const p=P(s);p&&Object.keys(p).length&&(t.tags=e._objectSpread2(e._objectSpread2({},p),t.tags));const d=P(i);d&&Object.keys(d).length&&(t.user=e._objectSpread2(e._objectSpread2({},d),t.user));const l=P(o);l&&Object.keys(l).length&&(t.contexts=e._objectSpread2(e._objectSpread2({},l),t.contexts));a&&(t.level=a);c&&"transaction"!==t.type&&(t.transaction=c)}(t,n),s&&function(t,n){t.contexts=e._objectSpread2({trace:At(n)},t.contexts),t.sdkProcessingMetadata=e._objectSpread2({dynamicSamplingContext:Ft(n)},t.sdkProcessingMetadata);const r=$t(n),s=It(r).description;s&&!t.transaction&&"transaction"===t.type&&(t.transaction=s)}(t,s),function(t,e){t.fingerprint=t.fingerprint?H(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,r),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,i),function(t,n){t.sdkProcessingMetadata=e._objectSpread2(e._objectSpread2({},t.sdkProcessingMetadata),n)}(t,o)}function qt(t,n){const{extra:r,tags:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:p,eventProcessors:d,attachments:l,propagationContext:_,transactionName:h,span:f}=n;Jt(t,"extra",r),Jt(t,"tags",s),Jt(t,"user",i),Jt(t,"contexts",o),Jt(t,"sdkProcessingMetadata",c),a&&(t.level=a),h&&(t.transactionName=h),f&&(t.span=f),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),p.length&&(t.fingerprint=[...t.fingerprint,...p]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext=e._objectSpread2(e._objectSpread2({},t.propagationContext),_)}function Jt(t,n,r){if(r&&Object.keys(r).length){t[n]=e._objectSpread2({},t[n]);for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[n][e]=r[e])}}const Ht=new WeakMap;function Wt(t){if(t)return function(t){return t instanceof lt||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>Yt.includes(t)))}(t)?{captureContext:t}:t}const Yt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Kt(){const t=yt(),e=bt(),n=e.getSession()||t.getSession();n&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),at(t,n)}(n),Qt(),t.setSession(),e.setSession()}function Qt(){const t=yt(),e=bt(),n=Et(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}t.CONSOLE_LEVELS=E,t.DEBUG_BUILD=v,t.DEBUG_BUILD$1=rt,t.GLOBAL_OBJ=f,t.SDK_VERSION=h,t.SyncPromise=Q,t.UNKNOWN_FUNCTION=M,t.addExceptionMechanism=J,t.addExceptionTypeValue=function(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")},t.addNonEnumerableProperty=w,t.arrayify=H,t.captureEvent=function(t,e){return bt().captureEvent(t,e)},t.captureException=function(t,e){return bt().captureException(t,Wt(e))},t.captureMessage=function(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return bt().captureMessage(t,n,r)},t.captureSession=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Kt():Qt()},t.checkOrSetAlreadyCaught=function(t){if(t&&t.__sentry_captured__)return!0;try{w(t,"__sentry_captured__",!0)}catch(t){}return!1},t.consoleSandbox=j,t.createStackParser=R,t.dateTimestampInSeconds=F,t.dropUndefinedKeys=P,t.extractExceptionKeysForMessage=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40;const n=Object.keys(C(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return l(r,e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:l(r,e)}return""},t.fill=function(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"==typeof s&&O(s,r),t[e]=s},t.getClient=Et,t.getComponentName=function(t){if(!m.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;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.getCurrentScope=bt,t.getDynamicSamplingContextFromClient=Vt,t.getEventDescription=function(t){const{message:e,event_id:n}=t;if(e)return e;const r=q(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""},t.getFramesFromEvent=function(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch(t){return}}},t.getFunctionName=B,t.getGlobalScope=vt,t.getIsolationScope=yt,t.getLocationHref=function(){try{return m.document.location.href}catch(t){return""}},t.getOriginalFunction=function(t){return t.__sentry_original__},t.htmlTreeAsString=b,t.isDOMError=function(t){return s(t,"DOMError")},t.isDOMException=function(t){return s(t,"DOMException")},t.isError=r,t.isErrorEvent=function(t){return s(t,"ErrorEvent")},t.isEvent=c,t.isInstanceOf=p,t.isParameterizedString=o,t.isPlainObject=a,t.isPrimitive=function(t){return null===t||o(t)||"object"!=typeof t&&"function"!=typeof t},t.isString=i,t.isThenable=u,t.logger=k,t.markFunctionWrapped=O,t.normalize=W,t.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;const s=W(e,n);return i=s,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>r?t(e,n-1,r):s;var i},t.originalConsoleMethods=x,t.prepareEvent=function(t,n,r,s,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:c=1e3}=t,u=e._objectSpread2(e._objectSpread2({},n),{},{event_id:n.event_id||r.event_id||z(),timestamp:n.timestamp||F()}),p=r.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?n:Ut);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==s&&(t.dist=s);t.message&&(t.message=l(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=l(o.value,i));const a=t.request;a&&a.url&&(a.url=l(a.url,i))}(u,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(u,p),i&&i.emit("applyFrameMetadata",n),void 0===n.type&&function(t,e){const n=f._sentryDebugIds;if(!n)return;let r;const s=Ht.get(e);s?r=s:(r=new Map,Ht.set(e,r));const i=Object.entries(n).reduce(((t,n)=>{let s,[i,o]=n;const a=r.get(i);a?s=a:(s=e(i),r.set(i,s));for(let e=s.length-1;e>=0;e--){const n=s[e];if(n.filename){t[n.filename]=o;break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=i[t.filename])}))}))}catch(t){}}(u,t.stackParser);const d=function(t,e){if(!e)return t;const n=t?t.clone():new lt;return n.update(e),n}(s,r.captureContext);r.mechanism&&J(u,r.mechanism);const _=i?i.getEventProcessors():[],h=vt().getScopeData();if(o){qt(h,o.getScopeData())}if(d){qt(h,d.getScopeData())}const g=[...r.attachments||[],...h.attachments];return g.length&&(r.attachments=g),zt(u,h),Gt([..._,...h.eventProcessors],u,r).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((t=>{let[e,r]=t;n.push({type:"sourcemap",code_file:e,debug_id:r})}))}(t),"number"==typeof a&&a>0?function(t,n,r){if(!t)return null;const s=e._objectSpread2(e._objectSpread2(e._objectSpread2(e._objectSpread2(e._objectSpread2({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>e._objectSpread2(e._objectSpread2({},t),t.data&&{data:W(t.data,n,r)})))}),t.user&&{user:W(t.user,n,r)}),t.contexts&&{contexts:W(t.contexts,n,r)}),t.extra&&{extra:W(t.extra,n,r)});t.contexts&&t.contexts.trace&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=W(t.contexts.trace.data,n,r)));t.spans&&(s.spans=t.spans.map((t=>e._objectSpread2(e._objectSpread2({},t),t.data&&{data:W(t.data,n,r)}))));return s}(t,a,c):t)))},t.rejectedSyncPromise=function(t){return new Q(((e,n)=>{n(t)}))},t.resolvedSyncPromise=function(t){return new Q((e=>{e(t)}))},t.safeJoin=function(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((n=>_(t,n,e)))},t.timestampInSeconds=G,t.truncate=l,t.updateSession=at,t.urlEncode=function(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")},t.uuid4=z,t.withScope=function(){const t=St(st());for(var e=arguments.length,n=new Array(e),r=0;r