!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d69066a2-bfb7-5834-97e2-8954e0ccb931")}catch(e){}}(); const S=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_=globalThis,P="10.45.0";function F(){return ut(_),_}function ut(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||P,e[P]=e[P]||{}}function G(t,e,n=_){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[P]=r[P]||{};return s[t]||(s[t]=e())}const Yn=["debug","info","warn","error","log","assert","trace"],ie="Sentry Logger ",ht={};function ft(t){if(!("console"in _))return t();const e=_.console,n={},r=Object.keys(ht);r.forEach(s=>{const i=ht[s];n[s]=e[s],e[s]=i});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function oe(){dt().enabled=!0}function ae(){dt().enabled=!1}function wt(){return dt().enabled}function ce(...t){pt("log",...t)}function ue(...t){pt("warn",...t)}function fe(...t){pt("error",...t)}function pt(t,...e){S&&wt()&&ft(()=>{_.console[t](`${ie}[${t}]:`,...e)})}function dt(){return S?G("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const m={enable:oe,disable:ae,isEnabled:wt,log:ce,warn:ue,error:fe},Lt=50,pe="?",mt=/\(error: (.*)\)/,St=/captureMessage|captureException/;function de(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(` `);for(let a=r;a1024&&(c=c.slice(0,1024));const u=mt.test(c)?c.replace(mt,"$1"):c;if(!u.match(/\S*Error: /)){for(const p of e){const f=p(u);if(f){i.push(f);break}}if(i.length>=Lt+s)break}}return le(i.slice(s))}}function Kn(t){return Array.isArray(t)?de(...t):t}function le(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(U(e).function||"")&&e.pop(),e.reverse(),St.test(U(e).function||"")&&(e.pop(),St.test(U(e).function||"")&&e.pop()),e.slice(0,Lt).map(n=>({...n,filename:n.filename||U(e).filename,function:n.function||pe}))}function U(t){return t[t.length-1]||{}}const Z="";function _e(t){try{return!t||typeof t!="function"?Z:t.name||Z}catch{return Z}}function qn(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function Ft(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const $t=Object.prototype.toString;function ge(t){switch($t.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return $(t,Error)}}function O(t,e){return $t.call(t)===`[object ${e}]`}function Jn(t){return O(t,"ErrorEvent")}function Xn(t){return O(t,"DOMError")}function Zn(t){return O(t,"DOMException")}function B(t){return O(t,"String")}function he(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Qn(t){return t===null||he(t)||typeof t!="object"&&typeof t!="function"}function jt(t){return O(t,"Object")}function me(t){return typeof Event<"u"&&$(t,Event)}function Se(t){return typeof Element<"u"&&$(t,Element)}function ye(t){return O(t,"RegExp")}function V(t){return!!(t?.then&&typeof t.then=="function")}function Ee(t){return jt(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function $(t,e){try{return t instanceof e}catch{return!1}}function vt(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function tr(t){return typeof Request<"u"&&$(t,Request)}const lt=_,be=80;function Te(t,e={}){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,f=!Array.isArray(e)&&e.maxStringLength||be;for(;n&&i++1&&o+s.length*c+u.length>=f));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return""}}function Ie(t,e){const n=t,r=[];if(!n?.tagName)return"";if(lt.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?.length?e.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s?.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&B(i)){const o=i.split(/\s+/);for(const a of o)r.push(`.${a}`)}}for(const i of["aria-label","type","name","title","alt"]){const o=n.getAttribute(i);o&&r.push(`[${i}="${o}"]`)}return r.join("")}function er(){try{return lt.document.location.href}catch{return""}}function nr(t){if(!lt.HTMLElement)return null;let e=t;const n=5;for(let r=0;r"}}function Et(t){return typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t)):{}}function ir(t){const e=Object.keys(Ut(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let R;function j(t){if(R!==void 0)return R?R(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=_;return e in n&&typeof n[e]=="function"?(R=n[e],R(t)):(R=null,t())}function C(){return j(()=>Math.random())}function Bt(){return j(()=>Date.now())}function nt(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function or(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;rCe(t,r,n))}function Ne(){const t=_;return t.crypto||t.msCrypto}let Q;function xe(){return C()*16}function T(t=Ne()){try{if(t?.randomUUID)return j(()=>t.randomUUID()).replace(/-/g,"")}catch{}return Q||(Q="10000000100040008000"+1e11),Q.replace(/[018]/g,e=>(e^(xe()&15)>>e/4).toString(16))}function Gt(t){return t.exception?.values?.[0]}function cr(t){const{message:e,event_id:n}=t;if(e)return e;const r=Gt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function ur(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="Error")}function Re(t,e){const n=Gt(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){const i={...s?.data,...e.data};n.mechanism.data=i}}function fr(t){if(De(t))return!0;try{I(t,"__sentry_captured__",!0)}catch{}return!1}function De(t){try{return t.__sentry_captured__}catch{}}const Vt=1e3;function _t(){return Bt()/Vt}function Oe(){const{performance:t}=_;if(!t?.now||!t.timeOrigin)return _t;const e=t.timeOrigin;return()=>(e+j(()=>t.now()))/Vt}let bt;function gt(){return(bt??(bt=Oe()))()}let tt=null;function ke(){const{performance:t}=_;if(!t?.now)return;const e=3e5,n=j(()=>t.now()),r=Bt(),s=t.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)we(n)};return t&&H(n,t),n}function H(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||gt(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:T()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const 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),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Pe(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),H(t,n)}function we(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${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}}}function z(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=z(r[s],e[s],n-1));return r}function w(){return T()}function W(){return T().substring(16)}const rt="_sentrySpan";function Tt(t,e){e?I(t,rt,e):delete t[rt]}function st(t){return t[rt]}const Le=100;class y{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:w(),sampleRand:C()}}clone(){const e=new y;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...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=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,Tt(e,st(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&H(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,r=n instanceof y?n.getScopeData():jt(n)?e:void 0,{tags:s,attributes:i,extra:o,user:a,contexts:c,level:u,fingerprint:p=[],propagationContext:f,conversationId:d}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),p.length&&(this._fingerprint=p),f&&(this._propagationContext=f),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Tt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:w(),sampleRand:C()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Le;if(r<=0)return this;const s={timestamp:_t(),...e,message:e.message?nt(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:st(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=z(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n?.event_id||T();if(!this._client)return S&&m.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=r?.event_id||T();if(!this._client)return S&&m.warn("No client configured on scope - will not capture message!"),s;const i=r?.syntheticException??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:s},this),s}captureEvent(e,n){const r=e.event_id||n?.event_id||T();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(S&&m.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function Fe(){return G("defaultCurrentScope",()=>new y)}function $e(){return G("defaultIsolationScope",()=>new y)}class je{constructor(e,n){let r;e?r=e:r=new y;let s;n?s=n:s=new y,this._stack=[{scope:r}],this._isolationScope=s}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(s){throw this._popScope(),s}return V(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function D(){const t=F(),e=ut(t);return e.stack=e.stack||new je(Fe(),$e())}function ve(t){return D().withScope(t)}function Ue(t,e){const n=D();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function It(t){return D().withScope(()=>t(D().getIsolationScope()))}function Be(){return{withIsolationScope:It,withScope:ve,withSetScope:Ue,withSetIsolationScope:(t,e)=>It(e),getCurrentScope:()=>D().getScope(),getIsolationScope:()=>D().getIsolationScope()}}function Y(t){const e=ut(t);return e.acs?e.acs:Be()}function k(){const t=F();return Y(t).getCurrentScope()}function v(){const t=F();return Y(t).getIsolationScope()}function Ge(){return G("globalScope",()=>new y)}function dr(...t){const e=F(),n=Y(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function K(){return k().getClient()}function lr(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,i={trace_id:n,span_id:s||W()};return r&&(i.parent_span_id=r),i}const Ve="sentry.source",He="sentry.sample_rate",ze="sentry.previous_trace_sample_rate",We="sentry.op",Ye="sentry.origin",_r="sentry.idle_span_finish_reason",gr="sentry.measurement_unit",hr="sentry.measurement_value",mr="sentry.custom_span_name",Sr="sentry.profile_id",yr="sentry.exclusive_time",Er="sentry.link.type",br="gen_ai.conversation.id",Ke=0,Ht=1,h=2;function qe(t){if(t<400&&t>=100)return{code:Ht};if(t>=400&&t<500)switch(t){case 401:return{code:h,message:"unauthenticated"};case 403:return{code:h,message:"permission_denied"};case 404:return{code:h,message:"not_found"};case 409:return{code:h,message:"already_exists"};case 413:return{code:h,message:"failed_precondition"};case 429:return{code:h,message:"resource_exhausted"};case 499:return{code:h,message:"cancelled"};default:return{code:h,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:h,message:"unimplemented"};case 503:return{code:h,message:"unavailable"};case 504:return{code:h,message:"deadline_exceeded"};default:return{code:h,message:"internal_error"}}return{code:h,message:"internal_error"}}function Tr(t,e){t.setAttribute("http.response.status_code",e);const n=qe(e);n.message!=="unknown_error"&&t.setStatus(n)}const zt="_sentryScope",Wt="_sentryIsolationScope";function Je(t){try{const e=_.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function Xe(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function Ir(t,e,n){t&&(I(t,Wt,Je(n)),I(t,zt,e))}function Yt(t){const e=t;return{scope:e[zt],isolationScope:Xe(e[Wt])}}const it="sentry-",Ze=8192;function Kt(t){const e=Qe(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,i])=>{if(s.startsWith(it)){const o=s.slice(it.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Ar(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,s])=>(s&&(n[`${it}${r}`]=s),n),{});return tn(e)}function Qe(t){if(!(!t||!B(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=At(n);return Object.entries(r).forEach(([s,i])=>{e[s]=i}),e},{}):At(t)}function At(t){return t.split(",").map(e=>{const n=e.indexOf("=");if(n===-1)return[];const r=e.slice(0,n),s=e.slice(n+1);return[r,s].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function tn(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${e},${i}`;return o.length>Ze?(S&&m.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}const en=/^o(\d+)\./,nn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function rn(t){return t==="http"||t==="https"}function Cr(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function sn(t){const e=nn.exec(t);if(!e){ft(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",i="",o="",a=""]=e.slice(1);let c="",u=a;const p=u.split("/");if(p.length>1&&(c=p.slice(0,-1).join("/"),u=p.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return qt({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function qt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function on(t){if(!S)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(o=>t[o]?!1:(m.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?rn(r)?e&&isNaN(parseInt(e,10))?(m.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(m.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(m.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function an(t){return t.match(en)?.[1]}function cn(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=an(n)),r}function Nr(t){const e=typeof t=="string"?sn(t):qt(t);if(!(!e||!on(e)))return e}function Ct(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const un=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function fn(t){if(!t)return;const e=t.match(un);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function xr(t,e){const n=fn(t),r=Kt(e);if(!n?.traceId)return{traceId:w(),sampleRand:C()};const s=ln(n,r);r&&(r.sample_rand=s.toString());const{traceId:i,parentSpanId:o,parentSampled:a}=n;return{traceId:i,parentSpanId:o,sampled:a,dsc:r||{},sampleRand:s}}function pn(t=w(),e=W(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function dn(t=w(),e=W(),n){return`00-${t}-${e}-${n?"01":"00"}`}function ln(t,e){const n=Ct(e?.sample_rand);if(n!==void 0)return n;const r=Ct(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?C()*r:r+C()*(1-r):C()}const Rr=0,Jt=1;let Nt=!1;function Dr(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:a,links:c}=q(t);return{parent_span_id:i,span_id:e,trace_id:n,data:r,op:s,status:o,origin:a,links:c}}function _n(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:q(t).parent_span_id,i=Yt(t).scope,o=r?i?.getPropagationContext().propagationSpanId||W():e;return{parent_span_id:s,span_id:o,trace_id:n}}function Or(t){const{traceId:e,spanId:n}=t.spanContext(),r=J(t);return pn(e,n,r)}function kr(t){const{traceId:e,spanId:n}=t.spanContext(),r=J(t);return dn(e,n,r)}function gn(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:e,trace_id:n,sampled:r===Jt,attributes:i,...s}))}function xt(t){return typeof t=="number"?Rt(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Rt(t.getTime()):gt()}function Rt(t){return t>9999999999?t/1e3:t}function q(t){if(mn(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(hn(t)){const{attributes:r,startTime:s,name:i,endTime:o,status:a,links:c}=t,u="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:u,start_timestamp:xt(s),timestamp:xt(o)||void 0,status:Sn(a),op:r[We],origin:r[Ye],links:gn(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function hn(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function mn(t){return typeof t.getSpanJSON=="function"}function J(t){const{traceFlags:e}=t.spanContext();return e===Jt}function Sn(t){if(!(!t||t.code===Ke))return t.code===Ht?"ok":t.message||"internal_error"}const N="_sentryChildSpans",ot="_sentryRootSpan";function Mr(t,e){const n=t[ot]||t;I(e,ot,n),t[N]?t[N].add(e):I(t,N,new Set([e]))}function Pr(t,e){t[N]&&t[N].delete(e)}function wr(t){const e=new Set;function n(r){if(!e.has(r)&&J(r)){e.add(r);const s=r[N]?Array.from(r[N]):[];for(const i of s)n(i)}}return n(t),Array.from(e)}function Xt(t){return t[ot]||t}function Lr(){const t=F(),e=Y(t);return e.getActiveSpan?e.getActiveSpan():st(k())}function Fr(){Nt||(ft(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Nt=!0)}function yn(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||K()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}const Zt="production",Qt="_frozenDsc";function $r(t,e){I(t,Qt,e)}function te(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||Zt,release:n.release,public_key:r,trace_id:t,org_id:cn(e)};return e.emit("createDsc",s),s}function jr(t,e){const n=e.getPropagationContext();return n.dsc||te(n.traceId,t)}function En(t){const e=K();if(!e)return{};const n=Xt(t),r=q(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s[He]??s[ze];function a(g){return(typeof o=="number"||typeof o=="string")&&(g.sample_rate=`${o}`),g}const c=n[Qt];if(c)return a(c);const u=i?.get("sentry.dsc"),p=u&&Kt(u);if(p)return a(p);const f=te(t.spanContext().traceId,e),d=s[Ve],l=r.description;return d!=="url"&&l&&(f.transaction=l),yn()&&(f.sampled=String(J(n)),f.sample_rand=i?.get("sentry.sample_rand")??Yt(n).scope?.getPropagationContext().sampleRand.toString()),a(f),e.emit("createDsc",f,n),f}function b(t,e=100,n=1/0){try{return at("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function bn(t,e=3,n=100*1024){const r=b(t,e);return Cn(r)>n?bn(t,e-1,n):r}function at(t,e,n=1/0,r=1/0,s=Nn()){const[i,o]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const a=Tn(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const l=u.toJSON();return at("",l,c-1,r,s)}catch{}const p=Array.isArray(e)?[]:{};let f=0;const d=Ut(e);for(const l in d){if(!Object.prototype.hasOwnProperty.call(d,l))continue;if(f>=r){p[l]="[MaxProperties ~]";break}const g=d[l];p[l]=at(l,g,c-1,r,s),f++}return o(e),p}function Tn(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(vt(e))return Ft(e);if(Ee(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${_e(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=In(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function In(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function An(t){return~-encodeURI(t).split(/%..|./).length}function Cn(t){return An(JSON.stringify(t))}function Nn(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}const et=0,Dt=1,Ot=2;function ee(t){return new L(e=>{e(t)})}function xn(t){return new L((e,n)=>{n(t)})}class L{constructor(e){this._state=et,this._handlers=[],this._runExecutor(e)}then(e,n){return new L((r,s)=>{this._handlers.push([!1,i=>{if(!e)r(i);else try{r(e(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new L((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,e&&e()},o=>{i=!0,s=o,e&&e()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===et)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Dt&&n[1](this._value),this._state===Ot&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(i,o)=>{if(this._state===et){if(V(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Dt,i)},s=i=>{n(Ot,i)};try{e(r,s)}catch(i){s(i)}}}function Rn(t,e,n,r=0){try{const s=ct(e,n,t,r);return V(s)?s:ee(s)}catch(s){return xn(s)}}function ct(t,e,n,r){const s=n[r];if(!t||!s)return t;const i=s({...t},e);return S&&i===null&&m.log(`Event processor "${s.id||"?"}" dropped event`),V(i)?i.then(o=>ct(o,e,n,r+1)):ct(i,e,n,r+1)}let A,kt,Mt,E;function Dn(t){const e=_._sentryDebugIds,n=_._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(E&&r.length===kt&&s.length===Mt)return E;kt=r.length,Mt=s.length,E={},A||(A={});const i=(o,a)=>{for(const c of o){const u=a[c],p=A?.[c];if(p&&E&&u)E[p[0]]=u,A&&(A[c]=[p[0],u]);else if(u){const f=t(c);for(let d=f.length-1;d>=0;d--){const g=f[d]?.filename;if(g&&E&&A){E[g]=u,A[c]=[g,u];break}}}}};return e&&i(r,e),n&&i(s,n),E}function On(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;kn(t,e),r&&wn(t,r),Ln(t,n),Mn(t,s),Pn(t,i)}function Pt(t,e){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:p,eventProcessors:f,attachments:d,propagationContext:l,transactionName:g,span:X}=e;M(t,"extra",n),M(t,"tags",r),M(t,"attributes",s),M(t,"user",i),M(t,"contexts",o),t.sdkProcessingMetadata=z(t.sdkProcessingMetadata,c,2),a&&(t.level=a),g&&(t.transactionName=g),X&&(t.span=X),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),p.length&&(t.fingerprint=[...t.fingerprint,...p]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...l}}function M(t,e,n){t[e]=z(t[e],n,1)}function ne(t,e){const n=Ge().getScopeData();return t&&Pt(n,t.getScopeData()),e&&Pt(n,e.getScopeData()),n}function kn(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(i).length&&(t.contexts={...i,...t.contexts}),o&&(t.level=o),a&&t.type!=="transaction"&&(t.transaction=a)}function Mn(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Pn(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function wn(t,e){t.contexts={trace:_n(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:En(e),...t.sdkProcessingMetadata};const n=Xt(e),r=q(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Ln(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}function vr(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||T(),timestamp:e.timestamp||_t()},u=n.integrations||t.integrations.map(x=>x.name);Fn(c,t),vn(c,u),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&$n(c,t.stackParser);const p=Bn(r,n.captureContext);n.mechanism&&Re(c,n.mechanism);const f=s?s.getEventProcessors():[],d=ne(i,p),l=[...n.attachments||[],...d.attachments];l.length&&(n.attachments=l),On(c,d);const g=[...f,...d.eventProcessors];return(n.data&&n.data.__sentry__===!0?ee(c):Rn(g,c,n)).then(x=>(x&&jn(x),typeof o=="number"&&o>0?Un(x,o,a):x))}function Fn(t,e){const{environment:n,release:r,dist:s,maxValueLength:i}=e;t.environment=t.environment||n||Zt,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const o=t.request;o?.url&&i&&(o.url=nt(o.url,i)),i&&t.exception?.values?.forEach(a=>{a.value&&(a.value=nt(a.value,i))})}function $n(t,e){const n=Dn(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function jn(t){const e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(e).length===0)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(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function vn(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Un(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:b(s.data,e,n)}}))},...t.user&&{user:b(t.user,e,n)},...t.contexts&&{contexts:b(t.contexts,e,n)},...t.extra&&{extra:b(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=b(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(s=>({...s,...s.data&&{data:b(s.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=b(t.contexts.flags,3,n)),r}function Bn(t,e){if(!e)return t;const n=t?t.clone():new y;return n.update(e),n}function Gn(t){if(t)return Vn(t)?{captureContext:t}:zn(t)?{captureContext:t}:t}function Vn(t){return t instanceof y||typeof t=="function"}const Hn=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function zn(t){return Object.keys(t).some(e=>Hn.includes(e))}function Ur(t,e){return k().captureException(t,Gn(e))}function Br(t,e){return k().captureEvent(t,e)}function Gr(t,e){v().setContext(t,e)}function Vr(t,e){v().setTag(t,e)}function Hr(){const t=K();return t?.getOptions().enabled!==!1&&!!t?.getTransport()}function zr(t){const e=v(),{user:n}=ne(e,k()),{userAgent:r}=_.navigator||{},s=Me({user:n,...r&&{userAgent:r},...t}),i=e.getSession();return i?.status==="ok"&&H(i,{status:"exited"}),re(),e.setSession(s),s}function re(){const t=v(),n=k().getSession()||t.getSession();n&&Pe(n),se(),t.setSession()}function se(){const t=v(),e=K(),n=t.getSession();n&&e&&e.captureSession(n)}function Wr(t=!1){if(t){re();return}se()}function Yr(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{Pr as $,Sr as A,Sn as B,K as C,S as D,Yt as E,k as F,_ as G,wr as H,mr as I,Dr as J,V as K,yn as L,Ct as M,dr as N,F as O,Y as P,st as Q,$r as R,h as S,Rr as T,v as U,Mr as V,Ir as W,He as X,_r as Y,Ht as Z,Tt as _,Ur as a,Br as a$,Hr as a0,Or as a1,jr as a2,Ar as a3,un as a4,kr as a5,pn as a6,dn as a7,Tr as a8,tr as a9,fr as aA,H as aB,Zt as aC,vr as aD,lr as aE,C as aF,he as aG,z as aH,jt as aI,ft as aJ,P as aK,cr as aL,Yn as aM,ht as aN,qn as aO,br as aP,Jn as aQ,Xn as aR,Zn as aS,me as aT,bn as aU,ir as aV,de as aW,pe as aX,or as aY,zr as aZ,Wr as a_,$ as aa,it as ab,rr as ac,ge as ad,I as ae,er as af,sr as ag,Ae as ah,ur as ai,Re as aj,pr as ak,Te as al,ar as am,Qn as an,nr as ao,B as ap,ze as aq,Er as ar,xr as as,_t as at,G as au,ee as av,xn as aw,Bt as ax,Nr as ay,T as az,Lr as b,Kn as b0,Gr as b1,Vr as b2,Yr as c,m as d,Xt as e,w as f,_e as g,W as h,Ce as i,ut as j,Cr as k,En as l,Fr as m,b as n,J as o,gr as p,hr as q,We as r,q as s,gt as t,Ye as u,Jt as v,xt as w,Ve as x,gn as y,yr as z}; //# sourceMappingURL=_commonjs-dynamic-modules-BHkRu4p0.js.map //# debugId=d69066a2-bfb7-5834-97e2-8954e0ccb931