1function ed(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const or=Object.prototype.toString;function ar(e){switch(or.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return z(e,Error)}}function bt(e,t){return or.call(e)===`[object ${t}]`}function ze(e){return bt(e,"ErrorEvent")}function hn(e){return bt(e,"DOMError")}function _s(e){return bt(e,"DOMException")}function B(e){return bt(e,"String")}function Ve(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Xe(e){return e===null||Ve(e)||typeof e!="object"&&typeof e!="function"}function mt(e){return bt(e,"Object")}function de(e){return typeof Event<"u"&&z(e,Event)}function ys(e){return typeof Element<"u"&&z(e,Element)}function Es(e){return bt(e,"RegExp")}function le(e){return!!(e&&e.then&&typeof e.then=="function")}function Ss(e){return mt(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function cr(e){return typeof e=="number"&&e!==e}function z(e,t){try{return e instanceof t}catch{return!1}}function ur(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function ht(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function gn(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{ur(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Ts(e,t,n=!1){return B(e)?Es(t)?t.test(e):B(t)?n?e===t:e.includes(t):!1:!1}function Ht(e,t=[],n=!1){return t.some(r=>Ts(e,r,n))}function bs(e,t,n=250,r,s,i,o){if(!i.exception||!i.exception.values||!o||!z(o.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=Is(Oe(e,t,s,o.originalException,r,i.exception.values,a,0),n))}function Oe(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(z(r[s],Error)){mn(o,a);const u=e(t,r[s]),d=c.length;_n(u,s,d,a),c=Oe(e,t,n,r[s],s,[u,...c],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(z(u,Error)){mn(o,a);const l=e(t,u),h=c.length;_n(l,`errors[${d}]`,h,a),c=Oe(e,t,n,u,s,[l,...c],l,h)}}),c}function mn(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function _n(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Is(e,t){return e.map(n=>(n.value&&(n.value=ht(n.value,t)),n))}function Wt(e){return e&&e.Math==Math?e:void 0}const E=typeof globalThis=="object"&&Wt(globalThis)||typeof window=="object"&&Wt(window)||typeof self=="object"&&Wt(self)||typeof global=="object"&&Wt(global)||(function(){return this})()||{};function Ke(){return E}function dr(e,t,n){const r=n||E,s=r.__SENTRY__=r.__SENTRY__||{};return s[e]||(s[e]=t())}const gt=Ke(),vs=80;function _t(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||vs;for(;n&&i++<r&&(u=ks(n,d),!(u==="html"||i>1&&o+s.length*c+u.length>=l));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function ks(e,t){const n=e,r=[];let s,i,o,a,c;if(!n||!n.tagName)return"";if(gt.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(l=>n.getAttribute(l)).map(l=>[l,n.getAttribute(l)]):null;if(u&&u.length)u.forEach(l=>{r.push(`[${l[0]}="${l[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&B(s))for(i=s.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)o=d[c],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function Rs(){try{return gt.document.location.href}catch{return""}}function Os(e){return gt.document&>.document.querySelector?gt.document.querySelector(e):null}function lr(e){if(!gt.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const It=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ns="Sentry Logger ",Ne=["debug","info","warn","error","log","assert","trace"],re={};function rt(e){if(!("console"in E))return e();const t=E.console,n={},r=Object.keys(re);r.forEach(s=>{const i=re[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function ws(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return It?Ne.forEach(n=>{t[n]=(...r)=>{e&&rt(()=>{E.console[n](`${Ns}[${n}]:`,...r)})}}):Ne.forEach(n=>{t[n]=()=>{}}),t}const f=ws(),As=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function xs(e){return e==="http"||e==="https"}function vt(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function Cs(e){const t=As.exec(e);if(!t){rt(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",i,o="",a]=t.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return fr({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function fr(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function $s(e){if(!It)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(f.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?xs(r)?t&&isNaN(parseInt(t,10))?(f.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(f.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(f.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Ds(e){const t=typeof e=="string"?Cs(e):fr(e);if(!(!t||!$s(t)))return t}
1class j extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function A(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&pr(s,r),e[t]=s}function tt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{It&&f.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function pr(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,tt(e,"__sentry_original__",t)}catch{}}function Je(e){return e.__sentry_original__}function Ps(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function hr(e){if(ar(e))return{message:e.message,name:e.name,stack:e.stack,...En(e)};if(de(e)){const t={type:e.type,target:yn(e.target),currentTarget:yn(e.currentTarget),...En(e)};return typeof CustomEvent<"u"&&z(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function yn(e){try{return ys(e)?_t(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function En(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Ms(e,t=40){const n=Object.keys(hr(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return ht(n[0],t);for(let r=n.length;r>0;r--){const s=n.slice(0,r).join(", ");if(!(s.length>t))return r===n.length?s:ht(s,t)}return""}function D(e){return we(e,new Map)}function we(e,t){if(Ls(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.keys(e))typeof e[s]<"u"&&(r[s]=we(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(we(s,t))}),r}return e}function Ls(e){if(!mt(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const gr=50,Sn=/\(error: (.*)\)/,Tn=/captureMessage|captureException/;function mr(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const s=[],i=n.split(` 2`);for(let o=r;o<i.length;o++){const a=i[o];if(a.length>1024)continue;const c=Sn.test(a)?a.replace(Sn,"$1"):a;if(!c.match(/\S*Error: /)){for(const u of t){const d=u(c);if(d){s.push(d);break}}if(s.length>=gr)break}}return Hs(s)}}function Fs(e){return Array.isArray(e)?mr(...e):e}function Hs(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Tn.test(t[t.length-1].function||"")&&(t.pop(),Tn.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,gr).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const Ee="<anonymous>";function V(e){try{return!e||typeof e!="function"?Ee:e.name||Ee}catch{return Ee}}const ee={},bn={};function st(e,t){ee[e]=ee[e]||[],ee[e].push(t)}function it(e,t){bn[e]||(t(),bn[e]=!0)}function M(e,t){const n=e&&ee[e];if(n)for(const r of n)try{r(t)}catch(s){It&&f.error(`Error while triggering instrumentation handler. 3Type: ${e} 4Name: ${V(r)} 5Error:`,s)}}function Us(e){const t="console";st(t,e),it(t,js)}function js(){"console"in E&&Ne.forEach(function(e){e in E.console&&A(E.console,e,function(t){return re[e]=t,function(...n){M("console",{args:n,level:e});const s=re[e];s&&s.apply(E.console,n)}})})}function R(){const e=E,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function _r(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function K(e){const{message:t,event_id:n}=e;if(t)return t;const r=_r(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ae(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function Pt(e,t){const n=_r(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s&&s.data,...t.data};n.mechanism.data=i}}function In(e){if(e&&e.__sentry_captured__)return!0;try{tt(e,"__sentry_captured__",!0)}catch{}return!1}function Ze(e){return Array.isArray(e)?e:[e]}const lt=E,Bs=1e3;let vn,xe,Ce;function Gs(e){st("dom",e),it("dom",qs)}function qs(){if(!lt.document)return;const e=M.bind(null,"dom"),t=kn(e,!0);lt.document.addEventListener("click",t,!1),lt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>
5{const r=lt[n]&<[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(A(r,"addEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},d=u[i]=u[i]||{refCount:0};if(!d.handler){const l=kn(e);d.handler=l,s.call(this,i,l,a)}d.refCount++}catch{}return s.call(this,i,o,a)}}),A(r,"removeEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},d=u[i];d&&(d.refCount--,d.refCount<=0&&(s.call(this,i,d.handler,a),d.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return s.call(this,i,o,a)}}))})}function Ys(e){if(e.type!==xe)return!1;try{if(!e.target||e.target._sentryId!==Ce)return!1}catch{}return!0}function Ws(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function kn(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=zs(n);if(Ws(n.type,r))return;tt(n,"_sentryCaptured",!0),r&&!r._sentryId&&tt(r,"_sentryId",R());
5const s=n.type==="keypress"?"input":n.type;Ys(n)||(e({event:n,name:s,global:t}),xe=n.type,Ce=r?r._sentryId:void 0),clearTimeout(vn),vn=lt.setTimeout(()=>{Ce=void 0,xe=void 0},Bs)}}function zs(e){try{return e.target}catch{return null}}const $e=Ke();function yr(){if(!("fetch"in $e))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function De(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Vs(){if(typeof EdgeRuntime=="string")return!0;if(!yr())return!1;if(De($e.fetch))return!0;let e=!1;const t=$e.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=De(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){It&&f.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Er(e){const t="fetch";st(t,e),it(t,Xs)}function Xs(){Vs()&&A(E,"fetch",function(e){return function(...t){const{method:n,url:r}=Ks(t),s={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return M("fetch",{...s}),e.apply(E,t).then(i=>{const o={...s,endTimestamp:Date.now(),response:i};return M("fetch",o),i},i=>{const o={...s,endTimestamp:Date.now(),error:i};throw M("fetch",o),i})}})}function Pe(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Rn(e){return typeof e=="string"?e:e?Pe(e,"url")?e.url:e.toString?e.toString():"":""}function Ks(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Rn(n),method:Pe(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Rn(t),method:Pe(t,"method")?String(t.method).toUpperCase():"GET"}}let zt=null;function Sr(e){const t="error";st(t,e),it(t,Js)}function Js(){zt=E.onerror,E.onerror=function(e,t,n,r,s){return M("error",{column:r,error:s,line:n,msg:e,url:t}),zt&&!zt.__SENTRY_LOADER__?zt.apply(this,arguments):!1},E.onerror.__SENTRY_INSTRUMENTED__=!0}let Vt=null;function Tr(e){const t="unhandledrejection";st(t,e),it(t,Zs)}function Zs(){Vt=E.onunhandledrejection,E.onunhandledrejection=function(e){return M("unhandledrejection",e),Vt&&!Vt.__SENTRY_LOADER__?Vt.apply(this,arguments):!0},E.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Xt=Ke();function Qs(){const e=Xt.chrome,t=e&&e.app&&e.app.runtime,n="history"in Xt&&!!Xt.history.pushState&&!!Xt.history.replaceState;return!t&&n}const wt=E;let Kt;function Qe(e){const t="history";st(t,e),it(t,ti)}function ti(){if(!Qs())return;const e=wt.onpopstate;wt.onpopstate=function(...n){const r=wt.location.href,s=Kt;if(Kt=r,M("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const i=Kt,o=String(s);Kt=o,M("history",{from:i,to:o})}return n.apply(this,r)}}A(wt.history,"pushState",t),A(wt.history,"replaceState",t)}const ei=E,ft="__sentry_xhr_v3__";function br(e){st("xhr",e),it("xhr",ni)}function ni(){if(!ei.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;A(e,"open",function(t){return function(...n){const r=Date.now(),s=B(n[0])?n[0].toUpperCase():void 0,i=ri(n[1]);if(!s||!i)return t.apply(this,n);this[ft]={method:s,url:i,request_headers:{}},s==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const a=this[ft];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}const c={args:[s,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};M("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?A(this,"onreadystatechange",function(a){return function(...c){return o(),a.apply(this,c)}}):this.addEventListener("readystatechange",o),A(this,"setRequestHeader",function(a){return function(...c){const[u,d]=c,l=this[ft];return l&&B(u)&&B(d)&&(l.request_headers[u.toLowerCase()]=d),a.apply(this,c)}}),t.apply(this,n)}}),A(e,"send",function(t){return function(...n){const r=this[ft];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const s={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return M("xhr",s),t.apply(this,n)}})}function ri(e){if(B(e))return e;try{return e.toString()}catch{}}function si(){return"npm"}function ii(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let i=0;i<t.length;i++)if(t[i]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let i=0;i<t.length;i++)if(t[i]===s){t.splice(i,1);break}}return[n,r]}function X(e,t=100,n=1/0){try{return Me("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}
5function Ir(e,t=3,n=100*1024){const r=X(e,t);return ui(r)>n?Ir(e,t-1,n):r}function Me(e,t,n=1/0,r=1/0,s=ii()){const[i,o]=s;if(t==null||["number","boolean","string"].includes(typeof t)&&!cr(t))return t;const a=oi(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return Me("",p,c-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let l=0;const h=hr(t);for(const p in h){if(!Object.prototype.hasOwnProperty.call(h,p))continue;if(l>=r){d[p]="[MaxProperties ~]";break}const g=h[p];d[p]=Me(p,g,c-1,r,s),l++}return o(t),d}function oi(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(ur(t))return"[VueViewModel]";if(Ss(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${V(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=ai(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ai(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function ci(e){return~-encodeURI(e).split(/%..|./).length}function ui(e){return ci(JSON.stringify(e))}var G;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(G||(G={}));function yt(e){return new $(t=>{t(e)})}function tn(e){return new $((t,n)=>{n(e)})}class ${constructor(t){$.prototype.__init.call(this),$.prototype.__init2.call(this),$.prototype.__init3.call(this),$.prototype.__init4.call(this),this._state=G.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new $((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new $((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(G.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(G.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===G.PENDING){if(le(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===G.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===G.RESOLVED&&n[1](this._value),this._state===G.REJECTED&&n[2](this._value),n[0]=!0)})}}}function di(e){const t=[];function n(){return e===void 0||t.length<e}function r(o){return t.splice(t.indexOf(o),1)[0]}function s(o){if(!n())return tn(new j("Not adding Promise because buffer limit was reached."));const a=o();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(o){return new $((a,c)=>{let u=t.length;if(!u)return a(!0);const d=setTimeout(()=>{o&&o>0&&a(!1)},o);t.forEach(l=>{yt(l).then(()=>{--u||(clearTimeout(d),a(!0))},c)})})}return{$:t,add:s,drain:i}}function Q(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const li=["fatal","error","warning","log","info","debug"];function fi(e){return e==="warn"?"warning":li.includes(e)?e:"log"}const vr=1e3;function Ut(){return Date.now()/vr}function pi(){const{performance:e}=E;if(!e||!e.now)return Ut;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/vr}const kt=pi(),P=(()=>{const{performance:e}=E;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=s<t,o=e.timing&&e.timing.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):t,u=c<t;return i||u?s<=c?e.timeOrigin:o:r})(),Le="baggage",kr="sentry-",hi=/^sentry-/,gi=8192;function mi(e){if(!B(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,s)=>{const i=On(s);for(const o of Object.keys(i))r[o]=i[o];return r},{});else{if(!e)return;t=On(e)}const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(hi)){const o=s.slice(kr.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Rr(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${kr}${r}`]=s),n),{});return _i(t)}function On(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function _i(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>gi?(It&&f.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const yi=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Ei(e){if(!e)return;const t=e.match(yi);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Si(e,t){const n=Ei(e),r=mi(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||R(),parentSpanId:i||R().substring(16),spanId:R().substring(16),sampled:o,dsc:r||{}}:{traceId:s||R(),spanId:R().substring(16)}}function en(e=R(),t=R().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function ot(e,t=[]){return[e,t]}function Ti(e,t){const[n,r]=e;return[n,[...r,t]]}function Nn(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Fe(e,t){return(t||new TextEncoder).encode(e)}function bi(e,t){const[n,r]=e;let s=JSON.stringify(n);
5function i(o){typeof s=="string"?s=typeof o=="string"?s+o:[Fe(s,t),o]:s.push(typeof o=="string"?Fe(o,t):o)}for(const o of r){const[a,c]=o;if(i(` 6${JSON.stringify(a)} 7`),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(X(c))}i(u)}}return typeof s=="string"?s:Ii(s)}function Ii(e){const t=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function vi(e,t){const n=typeof e.data=="string"?Fe(e.data,t):e.data;return[D({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const ki={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function wn(e){return ki[e]}function Or(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ri(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:vt(r)},...s&&{trace:D({...s})}}}function Oi(e,t,n){const r=[{type:"client_report"},{timestamp:Ut(),discarded_events:e}];return ot(t?{dsn:t}:{},[r])}const Ni=60*1e3;function wi(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Ni:r-t}function Ai(e,t){return e[t]||e.all||0}function xi(e,t,n=Date.now()){return Ai(e,t)>n}function Ci(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,u,,,d]=a.split(":",5),l=parseInt(c,10),h=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+h;else for(const p of u.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[p]=r+h):s[p]=r+h}else o?s.all=r+wi(o,r):t===429&&(s.all=r+60*1e3);return s}const m=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fe="production";function nn(){return dr("globalEventProcessors",()=>[])}function $i(e){nn().push(e)}function se(e,t,n,r=0){return new $((s,i)=>{const o=e[r];if(t===null||typeof o!="function")s(t);else{const a=o({...t},n);m&&o.id&&a===null&&f.log(`Event processor "${o.id}" dropped event`),le(a)?a.then(c=>se(e,c,n,r+1).then(s)).then(null,i):se(e,a,n,r+1).then(s).then(null,i)}})}function Nr(e){const t=kt(),n={sid:R(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Di(n)};return e&&et(n,e),n}function et(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||kt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:R()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function wr(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),et(e,n)}function Di(e){return D({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Pi=0,Ar=1;function rn(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,tags:a,origin:c}=O(e);return D({data:r,op:s,parent_span_id:i,span_id:t,status:o,tags:a,trace_id:n,origin:c})}function pe(e){const{traceId:t,spanId:n}=e.spanContext(),r=sn(e);return en(t,n,r)}function he(e){return typeof e=="number"?An(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?An(e.getTime()):kt()}function An(e){return e>9999999999?e/1e3:e}function O(e){return Mi(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Mi(e){return typeof e.getSpanJSON=="function"}function sn(e){const{traceFlags:t}=e.spanContext();return!!(t&Ar)}function Li(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||R(),timestamp:t.timestamp||Ut()},u=n.integrations||e.integrations.map(S=>S.name);Fi(c,e),ji(c,u),t.type===void 0&&Hi(c,e.stackParser);const d=Gi(r,n.captureContext);n.mechanism&&Pt(c,n.mechanism);const l=s&&s.getEventProcessors?s.getEventProcessors():[],h=eo().getScopeData();if(i){const S=i.getScopeData();Dn(h,S)}if(d){const S=d.getScopeData();Dn(h,S)}const p=[...n.attachments||[],...h.attachments];p.length&&(n.attachments=p),Dr(c,h);const g=[...l,...nn(),...h.eventProcessors];return se(g,c,n).then(S=>(S&&Ui(S),typeof o=="number"&&o>0?Bi(S,o,a):S))}function Fi(e,t){const{environment:n,release:r,dist:s,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:fe),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=ht
7(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=ht(o.value,i));const a=e.request;a&&a.url&&(a.url=ht(a.url,i))}const xn=new WeakMap;function Hi(e,t){const n=E._sentryDebugIds;if(!n)return;let r;const s=xn.get(t);s?r=s:(r=new Map,xn.set(t,r));const i=Object.keys(n).reduce((o,a)=>{let c;const u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let d=c.length-1;d>=0;d--){const l=c[d];if(l.filename){o[l.filename]=n[a];break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function Ui(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function ji(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Bi(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:X(s.data,t,n)}}))},...e.user&&{user:X(e.user,t,n)},...e.contexts&&{contexts:X(e.contexts,t,n)},...e.extra&&{extra:X(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=X(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>{const i=O(s).data;return i&&(s.data=X(i,t,n)),s})),r}function Gi(e,t){if(!t)return e;const n=e?e.clone():new W;return n.update(t),n}function qi(e){if(e)return Yi(e)?{captureContext:e}:zi(e)?{captureContext:e}:e}function Yi(e){return e instanceof W||typeof e=="function"}const Wi=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function zi(e){return Object.keys(e).some(t=>Wi.includes(t))}function on(e,t){return C().captureException(e,qi(t))}function xr(e,t){return C().captureEvent(e,t)}function nt(e,t){C().addBreadcrumb(e,t)}function nd(e){C().setUser(e)}function Vi(...e){const t=C();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function w(){return C().getClient()}function F(){return C().getScope()}function Cn(e){const t=w(),n=at(),r=F(),{release:s,environment:i=fe}=t&&t.getOptions()||{},{userAgent:o}=E.navigator||{},a=Nr({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status==="ok"&&et(c,{status:"exited"}),Cr(),n.setSession(a),r.setSession(a),a}function Cr(){const e=at(),t=F(),n=t.getSession()||e.getSession();n&&wr(n),$r(),e.setSession(),t.setSession()}function $r(){const e=at(),t=F(),n=w(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function $n(e=!1){if(e){Cr();return}$r()}function ie(e){return e.transaction}function ge(e,t,n){const r=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=D({environment:r.environment||fe,release:r.release,user_segment:i,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function Et(e){const t=w();if(!t)return{};const n=ge(O(e).trace_id||"",t,F()),r=ie(e);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:i,source:o}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const a=O(r);return o&&o!=="url"&&(n.transaction=a.description),n.sampled=String(sn(r)),t.emit&&t.emit("createDsc",n),n}function Dr(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;Xi(e,t),r&&Zi(e,r),Qi(e,n),Ki(e,s),Ji(e,i)}function Dn(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:l,propagationContext:h,transactionName:p,span:g}=t;At(e,"extra",n),At(e,"tags",r),At(e,"user",s),At(e,"contexts",i),At(e,"sdkProcessingMetadata",a),o&&(e.level=o),p&&(e.transactionName=p),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...h}}function At(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Xi(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t,c=D(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=D(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=D(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const l=D(i);l&&Object.keys(l).length&&(e.contexts={...l,...e.contexts}),o&&(e.level=o),a&&(e.transaction=a)}function Ki(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ji(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Zi(e,t){e.contexts={trace:rn(t),...e.contexts};const n=ie(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Et(t),...e.sdkProcessingMetadata};const r=O(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Qi(e,t){e.fingerprint=e.fingerprint?Ze(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const to=100;let Se;class W{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Pn()}static clone(t){return t?t.clone():new W}clone(){const t=new W;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,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={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}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,segment:void 0,username:void 0},this._session&&et(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={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...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,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}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=typeof t=="function"?t(this):t;if(n instanceof W){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(mt(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return 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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Pn(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:to;
7if(r<=0)return this;const s={timestamp:Ut(),...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}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:s,_extra:i,_user:o,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:d,_sdkProcessingMetadata:l,_transactionName:h,_span:p}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:s,extra:i,user:o,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:d,sdkProcessingMetadata:l,transactionName:h,span:p}}applyToEvent(t,n={},r=[]){Dr(t,this.getScopeData());const s=[...r,...nn(),...this._eventProcessors];return se(s,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...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:R();if(!this._client)return f.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:R();if(!this._client)return f.warn("No client configured on scope - will not capture message!"),s;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:R();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(f.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)}}function eo(){return Se||(Se=new W),Se}function Pn(){return{traceId:R(),spanId:R().substring(16)}}const Mt="7.120.4",Pr=parseFloat(Mt),no=100;class Mr{constructor(t,n,r,s=Pr){this._version=s;let i;n?i=n:(i=new W,i.setClient(t));let o;r?o=r:(o=new W,o.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(s){throw this.popScope(),s}return le(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}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:R(),s=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureMessage(t,n,r){const s=this._lastEventId=r&&r.event_id?r.event_id:R(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s}),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:R();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=no}=s.getOptions&&s.getOptions()||{};if(o<=0)return;const c={timestamp:Ut(),...t},u=i?rt(()=>i(c,n)):c;u!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,o))}
7setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Mn(this);try{t(this)}finally{Mn(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return m&&f.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return m&&!r&&(this.getClient()?f.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': 8Sentry.addTracingExtensions(); 9Sentry.init({...}); 10`):f.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&wr(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:i=fe}=r&&r.getOptions()||{},{userAgent:o}=E.navigator||{},a=Nr({release:s,environment:i,user:n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&et(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const s=jt().__SENTRY__;if(s&&s.extensions&&typeof s.extensions[t]=="function")return s.extensions[t].apply(this,n);m&&f.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function jt(){return E.__SENTRY__=E.__SENTRY__||{extensions:{},hub:void 0},E}function Mn(e){const t=jt(),n=He(t);return Lr(t,e),n}function C(){const e=jt();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return ro(e)}function at(){return C().getIsolationScope()}function ro(e=jt()){return(!so(e)||He(e).isOlderThan(Pr))&&Lr(e,new Mr),He(e)}function so(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function He(e){return dr("hub",()=>new Mr,e)}function Lr(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function ct(e){return C().getScope().getTransaction()}let Ln=!1;function io(){Ln||(Ln=!0,Sr(Ue),Tr(Ue))}function Ue(){const e=ct();if(e){const t="internal_error";m&&f.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Ue.tag="sentry_tracingErrorCallback";var Fn;(function(e){e.Ok="ok";const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const s="permission_denied";e.PermissionDenied=s;const i="not_found";e.NotFound=i;const o="resource_exhausted";e.ResourceExhausted=o;const a="invalid_argument";e.InvalidArgument=a;const c="unimplemented";e.Unimplemented=c;const u="unavailable";e.Unavailable=u;const d="internal_error";e.InternalError=d;const l="unknown_error";e.UnknownError=l;const h="cancelled";e.Cancelled=h;const p="already_exists";e.AlreadyExists=p;const g="failed_precondition";e.FailedPrecondition=g;const y="aborted";e.Aborted=y;const S="out_of_range";e.OutOfRange=S;const T="data_loss";e.DataLoss=T})(Fn||(Fn={}));function oo(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function an(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=oo(t);n!=="unknown_error"&&e.setStatus(n)}function ut(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=w(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function oe(e){if(!ut())return;const t=co(e),n=C(),r=e.scope?e.scope.getSpan():Lt();if(e.onlyIfParent&&!r)return;const o=(e.scope||F()).clone();return ao(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:o})}function Lt(){return F().getSpan()}function ao(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:s}){if(!ut())return;const i=at();let o;if(t&&!r)o=t.startChild(n);else if(t){const a=Et(t),{traceId:c,spanId:u}=t.spanContext(),d=sn(t);o=e.startTransaction({traceId:c,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:a,...n.metadata}})}else{const{traceId:a,dsc:c,parentSpanId:u,sampled:d}={...i.getPropagationContext(),...s.getPropagationContext()};o=e.startTransaction({traceId:a,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:c,...n.metadata}})}return s.setSpan(o),uo(o,s,i),o}function co(e){if(e.startTime){const t={...e};return t.startTimestamp=he(e.startTime),delete t.startTime,t}return e}const Fr="_sentryScope",Hr="_sentryIsolationScope";function uo(e,t,n){e&&(tt(e,Hr,n),tt(e,Fr,t))}function lo(e){return{scope:e[Fr],isolationScope:e[Hr]}}const L="sentry.source",pt="sentry.sample_rate",Jt="sentry.op",J="sentry.origin",fo="profile_id";
10class Ur{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class me{constructor(t={}){this._traceId=t.traceId||R(),this._spanId=t.spanId||R().substring(16),this._startTime=t.startTimestamp||kt(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[J]:t.origin||"manual",[Jt]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[Jt]}set op(t){this.setAttribute(Jt,t)}get origin(){return this._attributes[J]}set origin(t){this.setAttribute(J,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Ar:Pi}}startChild(t){const n=new me({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=ie(this);if(n.transaction=r,m&&r){const s=t&&t.op||"< unknown op >",i=O(n).description||"< unknown name >",o=r.spanContext().spanId,a=`[Tracing] Starting '${s}' span on transaction '${i}' (${o}).`;f.log(a),this._logMessage=a}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return an(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=ie(this);if(m&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&f.log(r.replace("Starting","Finishing"))}this._endTime=he(t)}toTraceparent(){return pe(this)}toContext(){return D({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return rn(this)}getSpanJSON(){return D({data:this._getData(),description:this._name,op:this._attributes[Jt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[J],_metrics_summary:void 0,profile_id:this._attributes[fo],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
10toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,s=Object.keys(n).length>0;if(!(!r&&!s))return r&&s?{...t,...n}:r?t:n}}class jr extends me{constructor(t,n){super(t),this._contexts={},this._hub=n||C(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[L]&&{source:this._attributes[L]},...this._attributes[pt]&&{sampleRate:this._attributes[pt]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(L,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Ur(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=he(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return D({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Et(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(m&&f.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){m&&f.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(d=>d!==this&&O(d).timestamp):[];if(this._trimEnd&&r.length>0){const d=r.map(l=>O(l).timestamp).filter(Boolean);this._endTime=d.reduce((l,h)=>l>h?l:h)}const{scope:s,isolationScope:i}=lo(this),{metadata:o}=this,{source:a}=o,c={contexts:{...this._contexts,trace:rn(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:s,capturedSpanIsolationScope:i,...D({dynamicSamplingContext:Et(this)})},_metrics_summary:void 0,...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(m&&f.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),m&&f.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const ne={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},po="finishReason",dt=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class ho extends Ur{constructor(t,n,r,s){super(s),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),O(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class go extends jr{constructor(t,n,r=ne.idleTimeout,s=ne.finalTimeout,i=ne.heartbeatInterval,o=!1,a=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=s,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=dt[4],this._autoFinishAllowed=!a,o&&(m&&f.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=dt[3],this.end())},this._finalTimeout)}end(t){const n=he(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(po,this._finishReason),this.spanRecorder){m&&f.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;O(r).timestamp||(r.setStatus("cancelled"),r.end(n),m&&f.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:s,timestamp:i}=O(r),o=s&&s<n,a=(this._finalTimeout+this._idleTimeout)/1e3,c=i&&s&&i-s<a;if(m){const u=JSON.stringify(r,void 0,2);o?c||f.log("[Tracing] discarding Span since it finished after Transaction final timeout",u):f.log("[Tracing] discarding Span since it happened after Transaction was finished",u)}return o&&c}),m&&f.log("[Tracing] flushing IdleTransaction")}else m&&f.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=s=>{this._finished||this._pushActivity(s)},r=s=>{this._finished||this._popActivity(s)};this.spanRecorder=new ho(n,r,this.spanContext().spanId,t),m&&f.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=dt[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(m&&f.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=dt[1],this.end(t))},this._idleTimeout)}
10_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),m&&f.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,m&&f.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(m&&f.log(`[Tracing] popActivity ${t}`),delete this.activities[t],m&&f.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=kt();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=dt[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(m&&f.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=dt[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){m&&f.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Br(e,t,n){if(!ut(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(pt,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(pt,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(pt,Number(r))):(r=1,e.setAttribute(pt,r)),Gr(r)?r?(e.sampled=Math.random()<r,e.sampled?(m&&f.log(`[Tracing] starting ${e.op} transaction - ${O(e).description}`),e):(m&&f.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(m&&f.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(m&&f.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Gr(e){return cr(e)||!(typeof e=="number"||typeof e=="boolean")?(m&&f.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(m&&f.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function mo(){const t=this.getScope().getSpan();return t?{"sentry-trace":pe(t)}:{}}function _o(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},s=r.instrumenter||"sentry",i=e.instrumenter||"sentry";s!==i&&(m&&f.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${s}\` instrumenter. 11The transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),e.sampled=!1);let o=new jr(e,this);return o=Br(o,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),o.isRecording()&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function qr(e,t,n,r,s,i,o,a=!1){const c=e.getClient(),u=c&&c.getOptions()||{};let d=new go(t,e,n,r,o,s,a);return d=Br(d,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...i}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",d),d}function yo(){const e=jt();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=_o),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=mo),io())}function Eo(e,t,n){const r=ct();r&&r.setMeasurement(e,t,n)}function So(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function To(e,t,n,r){const s=Or(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:vt(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ot(i,[o])}function bo(e,t,n,r){const s=Or(n),i=e.type&&e.type!=="replay_event"?e.type:"event";So(e,n&&n.sdk);const o=Ri(e,s,r,t);return delete e.sdkProcessingMetadata,ot(o,[[{type:i},e]])}const Io="7";function vo(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ko(e){return`${vo(e)}${e.projectId}/envelope/`}function Ro(e,t){return Ps({sentry_key:e.publicKey,sentry_version:Io,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Oo(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${ko(e)}?${Ro(e,r)}`}const Hn=[];function No(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function wo(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Ze(n(t)):r=t;const s=No(r),i=xo(s,o=>o.name==="Debug");if(i!==-1){const[o]=s.splice(i,1);s.push(o)}return s}function Ao(e,t){const n={};return t.forEach(r=>{r&&Yr(e,r,n)}),n}function Un(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Yr(e,t,n){if(n[t.name]){m&&f.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Hn.indexOf(t.name)===-1&&(t.setupOnce($i,C),Hn.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=(i,o)=>r(i,o,e);s.id=t.name,e.addEventProcessor(s)}m&&f.log(`Integration installed: ${t.name}`)}function xo(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function Co(e){let t="";for(const n of e){const r=Object.entries(n.tags),s=r.length>0?`|#${r.map(([i,o])=>`${i}:${o}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${s}|T${n.timestamp} 12`}return t}function $o(e,t,n,r){const s={sent_at:new Date().toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(s.dsn=vt(t));const i=Do(e);return ot(s,[i])}function Do(e){const t=Co(e);return[{type:"statsd",length:t.length},t]}const jn="Not capturing exception because it's already been captured.";class Po{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Ds(t.dsn):m&&f.warn("No DSN provided, client will not send events."),this._dsn){const n=Oo(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(In(t)){m&&f.log(jn);return}let s=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{s=i}
12)),s}captureMessage(t,n,r,s){let i=r&&r.event_id;const o=Ve(t)?t:String(t),a=Xe(t)?this.eventFromMessage(o,n,r):this.eventFromException(t,r);return this._process(a.then(c=>this._captureEvent(c,r,s)).then(c=>{i=c})),i}captureEvent(t,n,r){if(n&&n.originalException&&In(n.originalException)){m&&f.log(jn);return}let s=n&&n.event_id;const o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,o||r).then(a=>{s=a})),s}captureSession(t){typeof t.release!="string"?m&&f.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),et(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):yt(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return m&&f.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];Yr(this,t,this._integrations),n||Un(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=bo(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=Ti(r,vi(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(r);s&&s.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=To(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,i=`${t}:${n}`;m&&f.log(`Recording outcome: "${i}"${s>1?` (${s} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+s}}captureAggregateMetrics(t){m&&f.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=$o(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Ao(this,t),Un(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,s=!1;const i=n.exception&&n.exception.values;if(i){s=!0;for(const c of i){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(et(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new $(n=>{let r=0;const s=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=s,t&&r>=t&&(clearInterval(i),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s=at()){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",t,n),Li(i,t,n,r,this,s).then(a=>{if(a===null)return a;const c={...s.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&c){const{traceId:d,spanId:l,parentSpanId:h,dsc:p}=c;a.contexts={trace:{trace_id:d,span_id:l,parent_span_id:h},...a.contexts};const g=p||ge(d,this,r);a.sdkProcessingMetadata={dynamicSamplingContext:g,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{if(m){const i=s;i.logLevel==="log"?f.log(i.message):f.warn(i)}})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:i}=s,o=zr(t),a=Wr(t),c=t.type||"error",u=`before send for type \`${c}\``;if(a&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),tn(new j(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const d=c==="replay_event"?"replay":c,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,h).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",d,t),new j("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return p;const y=Lo(s,p,n);return Mo(y,u)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",d,t),o){const T=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",T)}throw new j(`${u} returned \`null\`, will not send event.`,"log")}const g=r&&r.getSession();if(!o&&g&&this._updateSessionFromEvent(g,p),o){const S=p.sdkProcessingMetadata&&p.sdkProcessingMetadata.spanCountBeforeProcessing||0,T=p.spans?p.spans.length:0,b=S-T;b>0&&this.recordDroppedEvent("before_send","span",b)}const y=p.transaction_info;if(o&&y&&p.transaction!==t.transaction){const S="custom";p.transaction_info={...y,source:S}}return this.sendEvent(p,n),p}).then(null,p=>{throw p instanceof j?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new j(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 13Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}
13_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{m&&f.error("Error while sending event:",n)});m&&f.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,s]=n.split(":");return{reason:r,category:s,quantity:t[n]}})}}function Mo(e,t){const n=`${t} must return \`null\` or a valid event.`;if(le(e))return e.then(r=>{if(!mt(r)&&r!==null)throw new j(n);return r},r=>{throw new j(`${t} rejected with ${r}`)});if(!mt(e)&&e!==null)throw new j(n);return e}function Lo(e,t,n){const{beforeSend:r,beforeSendTransaction:s}=e;if(Wr(t)&&r)return r(t,n);if(zr(t)&&s){if(t.spans){const i=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:i}}return s(t,n)}return t}function Wr(e){return e.type===void 0}function zr(e){return e.type==="transaction"}function Fo(e,t){t.debug===!0&&(m?f.enable():rt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),F().update(t.initialScope);const r=new e(t);Ho(r),Uo(r)}function Ho(e){const n=C().getStackTop();n.client=e,n.scope.setClient(e)}function Uo(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const jo=30;function Vr(e,t,n=di(e.bufferSize||jo)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(Nn(o,(l,h)=>{const p=wn(h);if(xi(r,p)){const g=Bn(l,h);e.recordDroppedEvent("ratelimit_backoff",p,g)}else a.push(l)}),a.length===0)return yt();const c=ot(o[0],a),u=l=>{Nn(c,(h,p)=>{const g=Bn(h,p);e.recordDroppedEvent(l,wn(p),g)})},d=()=>t({body:bi(c,e.textEncoder)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&m&&f.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Ci(r,l),l),l=>{throw u("network_error"),l});return n.add(d).then(l=>l,l=>{if(l instanceof j)return m&&f.error("Skipped sending event because buffer is full."),u("queue_overflow"),yt();throw l})}return i.__sentry__baseTransport__=!0,{send:i,flush:s}}function Bn(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Bo(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=vt(t));const r=e.map(Go);return ot(n,r)}function Go(e){return[{type:"span"},e]}function qo(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Mt})),version:Mt}),e._metadata=s}const Yo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Wo=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],zo="InboundFilters",Vo=((e={})=>({name:zo,setupOnce(){},processEvent(t,n,r){const s=r.getOptions(),i=Ko(e,s);return Jo(t,i)?null:t}})),Xo=Vo;function Ko(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Yo],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Wo],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Jo(e,t){return t.ignoreInternal&&ra(e)?(m&&f.warn(`Event dropped due to being internal Sentry Error. 14Event: ${K(e)}`),!0):Zo(e,t.ignoreErrors)?(m&&f.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 15Event: ${K(e)}`),!0):Qo(e,t.ignoreTransactions)?(m&&f.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 16Event: ${K(e)}`),!0):ta(e,t.denyUrls)?(m&&f.warn(`Event dropped due to being matched by \`denyUrls\` option. 17Event: ${K(e)}. 18Url: ${ae(e)}`),!0):ea(e,t.allowUrls)?!1:(m&&f.warn(`Event dropped due to not being matched by \`allowUrls\` option. 19Event: ${K(e)}. 20Url: ${ae(e)}`),!0)}function Zo(e,t){return e.type||!t||!t.length?!1:na(e).some(n=>Ht(n,t))}function Qo(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ht(n,t):!1}function ta(e,t){if(!t||!t.length)return!1;const n=ae(e);return n?Ht(n,t):!1}function ea(e,t){if(!t||!t.length)return!0;const n=ae(e);return n?Ht(n,t):!0}function na(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),m&&t.length===0&&f.error(`Could not extract message for event ${K(e)}`),t}function ra(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function sa(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ae(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?sa(t):null}catch{return m&&f.error(`Cannot extract url for event ${K(e)}`),null}}let Gn;const ia="FunctionToString",qn=new WeakMap,oa=(()=>({name:ia,setupOnce(){Gn=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Je(this),n=qn.has(w())&&t!==void 0?t:this;return Gn.apply(n,e)}}catch{}},setup(e){qn.set(e,!0)}})),aa=oa,v=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_=E;function ca(){_.document?_.document.addEventListener("visibilitychange",()=>{const e=ct();if(_.document.hidden&&e){const t="cancelled",{op:n,status:r}=O(e);v&&f.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):v&&f.warn("[Tracing] Could not set up background tab detection due to lack of global document")}
20const Bt=(e,t,n)=>{let r,s;return i=>{t.value>=0&&(i||n)&&(s=t.value-(r||0),(s||r===void 0)&&(r=t.value,t.delta=s,e(t)))}},ua=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,da=()=>{const e=_.performance.timing,t=_.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},_e=()=>_.__WEB_VITALS_POLYFILL__?_.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||da()):_.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],cn=()=>{const e=_e();return e&&e.activationStart||0},Gt=(e,t)=>{const n=_e();let r="navigate";return n&&(_.document&&_.document.prerendering||cn()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:ua(),navigationType:r}},Rt=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{t(s.getEntries())});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},qt=(e,t)=>{const n=r=>{(r.type==="pagehide"||_.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};_.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},la=(e,t={})=>{const n=Gt("CLS",0);let r,s=0,i=[];const o=c=>{c.forEach(u=>{if(!u.hadRecentInput){const d=i[0],l=i[i.length-1];s&&i.length!==0&&u.startTime-l.startTime<1e3&&u.startTime-d.startTime<5e3?(s+=u.value,i.push(u)):(s=u.value,i=[u]),s>n.value&&(n.value=s,n.entries=i,r&&r())}})},a=Rt("layout-shift",o);if(a){r=Bt(e,n,t.reportAllChanges);const c=()=>{o(a.takeRecords()),r(!0)};return qt(c),c}};let ce=-1;const fa=()=>{_.document&&_.document.visibilityState&&(ce=_.document.visibilityState==="hidden"&&!_.document.prerendering?0:1/0)},pa=()=>{qt(({timeStamp:e})=>{ce=e},!0)},un=()=>(ce<0&&(fa(),pa()),{get firstHiddenTime(){return ce}}),ha=e=>{const t=un(),n=Gt("FID");let r;const s=a=>{a.startTime<t.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),r(!0))},i=a=>{a.forEach(s)},o=Rt("first-input",i);r=Bt(e,n),o&&qt(()=>{i(o.takeRecords()),o.disconnect()},!0)};let Xr=0,Te=1/0,Zt=0;const ga=e=>{e.forEach(t=>{t.interactionId&&(Te=Math.min(Te,t.interactionId),Zt=Math.max(Zt,t.interactionId),Xr=Zt?(Zt-Te)/7+1:0)})};let je;const ma=()=>je?Xr:performance.interactionCount||0,_a=()=>{"interactionCount"in performance||je||(je=Rt("event",ga,{type:"event",buffered:!0,durationThreshold:0}))},Kr=()=>ma(),Yn=10,q=[],be={},Wn=e=>{const t=q[q.length-1],n=be[e.interactionId];if(n||q.length<Yn||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};be[r.id]=r,q.push(r)}q.sort((r,s)=>s.latency-r.latency),q.splice(Yn).forEach(r=>{delete be[r.id]})}},ya=()=>{const e=Math.min(q.length-1,Math.floor(Kr()/50));return q[e]},Ea=(e,t)=>{t=t||{},_a();const n=Gt("INP");let r;const s=o=>{o.forEach(c=>{c.interactionId&&Wn(c),c.entryType==="first-input"&&!q.some(d=>d.entries.some(l=>c.duration===l.duration&&c.startTime===l.startTime))&&Wn(c)});const a=ya();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},i=Rt("event",s,{durationThreshold:t.durationThreshold||40});r=Bt(e,n,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),qt(()=>{s(i.takeRecords()),n.value<0&&Kr()>0&&(n.value=0,n.entries=[]),r(!0)}))},zn={},Sa=e=>{const t=un(),n=Gt("LCP");let r;const s=o=>{const a=o[o.length-1];if(a){const c=Math.max(a.startTime-cn(),0);c<t.firstHiddenTime&&(n.value=c,n.entries=[a],r())}},i=Rt("largest-contentful-paint",s);if(i){r=Bt(e,n);const o=()=>{zn[n.id]||(s(i.takeRecords()),i.disconnect(),zn[n.id]=!0,r(!0))};return["keydown","click"].forEach(a=>{_.document&&addEventListener(a,o,{once:!0,capture:!0})}),qt(o,!0),o}},Be=e=>{_.document&&(_.document.prerendering?addEventListener("prerenderingchange",()=>Be(e),!0):_.document.readyState!=="complete"?addEventListener("load",()=>Be(e),!0):setTimeout(e,0))},Ta=(e,t)=>{t=t||{};const n=Gt("TTFB"),r=Bt(e,n,t.reportAllChanges);Be(()=>{const s=_e();if(s){if(n.value=Math.max(s.responseStart-cn(),0),n.value<0||n.value>performance.now())return;n.entries=[s],r(!0)}})},Ct={},ue={};let Jr,Zr,Qr,ts,es;function ba(e,t=!1){return Yt("cls",e,Oa,Jr,t)}function Ia(e,t=!1){return Yt("lcp",e,wa,Qr,t)}function va(e){return Yt("ttfb",e,Aa,ts)}function ka(e){return Yt("fid",e,Na,Zr)}function Ra(e){return Yt("inp",e,xa,es)}function Ft(e,t){return ns(e,t),ue[e]||(Ca(e),ue[e]=!0),rs(e,t)}function Ot(e,t){const n=Ct[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(s){v&&f.error(`Error while triggering instrumentation handler. 21Type: ${e} 22Name: ${V(r)} 23Error:`,s)}}function Oa(){return la(e=>{Ot("cls",{metric:e}),Jr=e},{reportAllChanges:!0})}function Na(){return ha(e=>{Ot("fid",{metric:e}),Zr=e})}function wa(){return Sa(e=>{Ot("lcp",{metric:e}),Qr=e})}function Aa(){return Ta(e=>{Ot("ttfb",{metric:e}),ts=e})}function xa(){return Ea(e=>{Ot("inp",{metric:e}),es=e})}function Yt(e,t,n,r,s=!1){ns(e,t);let i;return ue[e]||(i=n(),ue[e]=!0),r&&t({metric:r}),rs(e,t,s?i:void 0)}function Ca(e){const t={};e==="event"&&(t.durationThreshold=0),Rt(e,n=>{Ot(e,{entries:n})},t)}function ns(e,t){Ct[e]=Ct[e]||[],Ct[e].push(t)}function rs(e,t,n){return()=>{n&&n();const r=Ct[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function Ie(e){return typeof e=="number"&&isFinite(e)}function St(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const $a=2147483647;function N(e){return e/1e3}function dn(){return _&&_.addEventListener&&_.performance}let Vn=0,k={},U,$t;function Da(){const e=dn();if(e&&P){e.mark&&_.performance.mark("sentry-tracing-init");const t=Ua(),n=Fa(),r=Ha(),s=ja();return()=>{t(),n(),r(),s()}}return()=>{}}function Pa(){Ft("longtask",({entries:e})=>{for(const t of e){const n=ct();if(!n)return;const r=N(P+t.startTime),s=N(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s})}})}function Ma(){Ft("event",({entries:e})=>{for(const t of e){const n=ct();if(!n)return;if(t.name==="click"){const r=N(P+t.startTime),s=N(t.duration),i={description:_t(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s},o=lr(t.target);o&&(i.attributes={"ui.component_name":o}),n.startChild(i)}}})}function La(e,t){if(dn()&&P){const r=Ba(e,t);return()=>{r()}}return()=>{}}function Fa(){return ba(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(v&&f.log("[Measurements] Adding CLS"),k.cls={value:e.value,unit:""},$t=t)},!0)}function Ha(){return Ia(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(v&&f.log("[Measurements] Adding LCP"),k.lcp={value:e.value,unit:"millisecond"},U=t)},!0)}function Ua(){return ka(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=N(P),r=N(t.startTime);v&&f.log("[Measurements] Adding FID"),k.fid={value:e.value,unit:"millisecond"},k["mark.fid"]={value:n+r,unit:"second"}})}function ja(){return va(({metric:e})=>{e.entries[e.entries.length-1]&&(v&&f.log("[Measurements] Adding TTFB"),k.ttfb={value:e.value,unit:"millisecond"})})}const Xn={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Ba(e,t){return Ra(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(x=>x.duration===n.value&&Xn[x.name]!==void 0),s=w();if(!r||!s)return;const i=Xn[r.name],o=s.getOptions(),a=N(P+r.startTime),c=N(n.value),u=r.interactionId!==void 0?e[r.interactionId]:void 0;if(u===void 0)return;const{routeName:d,parentContext:l,activeTransaction:h,user:p,replayId:g}=u,y=p!==void 0?p.email||p.id||p.ip_address:void 0,S=h!==void 0?h.getProfileId():void 0,T=new me({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${i}`,name:_t(r.target),attributes:{release:o.release,environment:o.environment,transaction:d,...y!==void 0&&y!==""?{user:y}:{},...S!==void 0?{profile_id:S}:{},...g!==void 0?{replay_id:g}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),b=Ja(l,o,t);if(b&&Math.random()<b){const x=T?Bo([T],s.getDsn()):void 0,Z=s&&s.getTransport();Z&&x&&Z.send(x).then(null,Nt=>{v&&f.error("Error while sending interaction:",Nt)});return}})}function Ga(e){const t=dn();if(!t||!_.performance.getEntries||!P)return;v&&f.log("[Tracing] Adding & adjusting spans using Performance API");const n=N(P),r=t.getEntries(),{op:s,start_timestamp:i}=O(e);
23if(r.slice(Vn).forEach(o=>{const a=N(o.startTime),c=N(o.duration);if(!(e.op==="navigation"&&i&&n+a<i))switch(o.entryType){case"navigation":{Ya(e,o,n);break}case"mark":case"paint":case"measure":{qa(e,o,a,c,n);const u=un(),d=o.startTime<u.firstHiddenTime;o.name==="first-paint"&&d&&(v&&f.log("[Measurements] Adding FP"),k.fp={value:o.startTime,unit:"millisecond"}),o.name==="first-contentful-paint"&&d&&(v&&f.log("[Measurements] Adding FCP"),k.fcp={value:o.startTime,unit:"millisecond"});break}case"resource":{za(e,o,o.name,a,c,n);break}}}),Vn=Math.max(r.length-1,0),Va(e),s==="pageload"){Ka(k),["fcp","fp","lcp"].forEach(a=>{if(!k[a]||!i||n>=i)return;const c=k[a].value,u=n+N(c),d=Math.abs((u-i)*1e3),l=d-c;v&&f.log(`[Measurements] Normalized ${a} from ${c} to ${d} (${l})`),k[a].value=d});const o=k["mark.fid"];o&&k.fid&&(St(e,{description:"first input delay",endTimestamp:o.value+N(k.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:o.value}),delete k["mark.fid"]),"fcp"in k||delete k.cls,Object.keys(k).forEach(a=>{Eo(a,k[a].value,k[a].unit)}),Xa(e)}U=void 0,$t=void 0,k={}}function qa(e,t,n,r,s){const i=s+n,o=i+r;return St(e,{description:t.name,endTimestamp:o,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function Ya(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Qt(e,t,r,n)}),Qt(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Qt(e,t,"fetch",n,"cache","domainLookupStart"),Qt(e,t,"domainLookup",n,"DNS"),Wa(e,t,n)}function Qt(e,t,n,r,s,i){const o=i?t[i]:t[`${n}End`],a=t[`${n}Start`];!a||!o||St(e,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:r+N(a),endTimestamp:r+N(o)})}function Wa(e,t,n){t.responseEnd&&(St(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+N(t.requestStart),endTimestamp:n+N(t.responseEnd)}),St(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+N(t.responseStart),endTimestamp:n+N(t.responseEnd)}))}function za(e,t,n,r,s,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=Q(n),a={};ve(a,t,"transferSize","http.response_transfer_size"),ve(a,t,"encodedBodySize","http.response_content_length"),ve(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop()),o.host&&(a["server.address"]=o.host),a["url.same_origin"]=n.includes(_.location.origin);const c=i+r,u=c+s;St(e,{description:n.replace(_.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:a})}function Va(e){const t=_.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Ie(n.rtt)&&(k["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Ie(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Ie(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function Xa(e){U&&(v&&f.log("[Measurements] Adding LCP Data"),U.element&&e.setTag("lcp.element",_t(U.element)),U.id&&e.setTag("lcp.id",U.id),U.url&&e.setTag("lcp.url",U.url.trim().slice(0,200)),e.setTag("lcp.size",U.size)),$t&&$t.sources&&(v&&f.log("[Measurements] Adding CLS Data"),$t.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,_t(t.node))))}function ve(e,t,n,r){const s=t[n];s!=null&&s<$a&&(e[r]=s)}function Ka(e){const t=_e();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(v&&f.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Ja(e,t,n){if(!ut(t))return!1;let r;return e!==void 0&&typeof t.tracesSampler=="function"?r=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:_.location}):e!==void 0&&e.sampled!==void 0?r=e.sampled:typeof t.tracesSampleRate<"u"?r=t.tracesSampleRate:r=1,Gr(r)?r===!0?n:r===!1?0:r*n:(v&&f.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function Za(e,t,n,r,s="auto.http.browser"){if(!ut()||!e.fetchData)return;const i=t(e.fetchData.url);if(e.endTimestamp&&i){const p=e.fetchData.__span;if(!p)return;const g=r[p];g&&(ec(g,e),delete r[p]);return}const o=F(),a=w(),{method:c,url:u}=e.fetchData,d=tc(u),l=d?Q(d).host:void 0,h=i?oe({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":d,"server.address":l,[J]:s},op:"http.client"}):void 0;if(h&&(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h),n(e.fetchData.url)&&a){const p=e.args[0];e.args[1]=e.args[1]||{};const g=e.args[1];g.headers=Qa(p,a,o,g,h)}return h}
23function Qa(e,t,n,r,s){const i=s||n.getSpan(),o=at(),{traceId:a,spanId:c,sampled:u,dsc:d}={...o.getPropagationContext(),...n.getPropagationContext()},l=i?pe(i):en(a,c,u),h=Rr(d||(i?Et(i):ge(a,t,n))),p=r.headers||(typeof Request<"u"&&z(e,Request)?e.headers:void 0);if(p)if(typeof Headers<"u"&&z(p,Headers)){const g=new Headers(p);return g.append("sentry-trace",l),h&&g.append(Le,h),g}else if(Array.isArray(p)){const g=[...p,["sentry-trace",l]];return h&&g.push([Le,h]),g}else{const g="baggage"in p?p.baggage:void 0,y=[];return Array.isArray(g)?y.push(...g):g&&y.push(g),h&&y.push(h),{...p,"sentry-trace":l,baggage:y.length>0?y.join(","):void 0}}else return{"sentry-trace":l,baggage:h}}function tc(e){try{return new URL(e).href}catch{return}}function ec(e,t){if(t.response){an(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}const Ge=["localhost",/^\/(?!\/)/],qe={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Ge,tracePropagationTargets:Ge};function nc(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o}={traceFetch:qe.traceFetch,traceXHR:qe.traceXHR,...e},a=typeof i=="function"?i:d=>!0,c=d=>oc(d,r||s),u={};t&&Er(d=>{const l=Za(d,a,c,u);if(l){const h=ss(d.fetchData.url),p=h?Q(h).host:void 0;l.setAttributes({"http.url":h,"server.address":p})}o&&l&&Kn(l)}),n&&br(d=>{const l=ac(d,a,c,u);o&&l&&Kn(l)})}function rc(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Kn(e){const{url:t}=O(e).data||{};if(!t||typeof t!="string")return;const n=Ft("resource",({entries:r})=>{r.forEach(s=>{rc(s)&&s.name.endsWith(t)&&(ic(s).forEach(o=>e.setAttribute(...o)),setTimeout(n))})})}function sc(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function H(e=0){return((P||performance.timeOrigin)+e)/1e3}function ic(e){const{name:t,version:n}=sc(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),P?[...r,["http.request.redirect_start",H(e.redirectStart)],["http.request.fetch_start",H(e.fetchStart)],["http.request.domain_lookup_start",H(e.domainLookupStart)],["http.request.domain_lookup_end",H(e.domainLookupEnd)],["http.request.connect_start",H(e.connectStart)],["http.request.secure_connection_start",H(e.secureConnectionStart)],["http.request.connection_end",H(e.connectEnd)],["http.request.request_start",H(e.requestStart)],["http.request.response_start",H(e.responseStart)],["http.request.response_end",H(e.responseEnd)]]:r}function oc(e,t){return Ht(e,t||Ge)}function ac(e,t,n,r){const s=e.xhr,i=s&&s[ft];if(!ut()||!s||s.__sentry_own_request__||!i)return;const o=t(i.url);if(e.endTimestamp&&o){const p=s.__sentry_xhr_span_id__;if(!p)return;const g=r[p];g&&i.status_code!==void 0&&(an(g,i.status_code),g.end(),delete r[p]);return}const a=F(),c=at(),u=ss(i.url),d=u?Q(u).host:void 0,l=o?oe({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,"http.url":u,url:i.url,"server.address":d,[J]:"auto.http.browser"},op:"http.client"}):void 0;l&&(s.__sentry_xhr_span_id__=l.spanContext().spanId,r[s.__sentry_xhr_span_id__]=l);const h=w();if(s.setRequestHeader&&n(i.url)&&h){const{traceId:p,spanId:g,sampled:y,dsc:S}={...c.getPropagationContext(),...a.getPropagationContext()},T=l?pe(l):en(p,g,y),b=Rr(S||(l?Et(l):ge(p,h,a)));cc(s,T,b)}return l}function cc(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Le,n)}catch{}}function ss(e){try{return new URL(e,_.location.origin).href}catch{return}}const uc="BrowserTracing",dc={...ne,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...qe},Jn=((e={})=>{const t=v?!!(e.tracePropagationTargets||e.tracingOrigins):!1;yo(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...dc,...e},r=Da(),s={};n.enableInp&&La(s,n.interactionsSampleRate),n.enableLongTask&&Pa(),n._experiments.enableInteractions&&Ma();const i={name:void 0,context:void 0};function o(a){const c=C(),{beforeStartSpan:u,idleTimeout:d,finalTimeout:l,heartbeatInterval:h}=n,p=a.op==="pageload";let g;if(p){const b=p?Zn("sentry-trace"):"",x=p?Zn("baggage"):void 0,{traceId:Z,dsc:Nt,parentSpanId:gs,sampled:ms}=Si(b,x);g={traceId:Z,parentSpanId:gs,parentSampled:ms,...a,metadata:{...a.metadata,dynamicSamplingContext:Nt},trimEnd:!0}}else g={trimEnd:!0,...a};const y=u?u(g):g;y.metadata=y.name!==g.name?{...y.metadata,source:"custom"}:y.metadata,i.name=y.name,i.context=y,y.sampled===!1&&v&&f.log(`[Tracing] Will not send ${y.op} transaction because of beforeNavigate.`),v&&f.log(`[Tracing] Starting ${y.op} transaction on scope`);const{location:S}=_,T=qr(c,y,d,l,!0,{location:S},h,p);return p&&_.document&&(_.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(_.document.readyState)&&T.sendAutoFinishSignal()}),["interactive","complete"].includes(_.document.readyState)&&T.sendAutoFinishSignal()),T.registerBeforeFinishCallback(b=>{r(),Ga(b)}),T}return{name:uc,setupOnce:()=>{}
23,afterAllSetup(a){const c=a.getOptions(),{markBackgroundSpan:u,traceFetch:d,traceXHR:l,shouldCreateSpanForRequest:h,enableHTTPTimings:p,_experiments:g}=n,y=c&&c.tracePropagationTargets,S=y||n.tracePropagationTargets;v&&t&&y&&f.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let T,b=_.location&&_.location.href;if(a.on&&(a.on("startNavigationSpan",x=>{T&&(v&&f.log(`[Tracing] Finishing current transaction with op: ${O(T).op}`),T.end()),T=o({op:"navigation",...x})}),a.on("startPageLoadSpan",x=>{T&&(v&&f.log(`[Tracing] Finishing current transaction with op: ${O(T).op}`),T.end()),T=o({op:"pageload",...x})})),n.instrumentPageLoad&&a.emit&&_.location){const x={name:_.location.pathname,startTimestamp:P?P/1e3:void 0,origin:"auto.pageload.browser",attributes:{[L]:"url"}};lc(a,x)}n.instrumentNavigation&&a.emit&&_.location&&Qe(({to:x,from:Z})=>{if(Z===void 0&&b&&b.indexOf(x)!==-1){b=void 0;return}if(Z!==x){b=void 0;const Nt={name:_.location.pathname,origin:"auto.navigation.browser",attributes:{[L]:"url"}};is(a,Nt)}}),u&&ca(),g.enableInteractions&&fc(n,i),n.enableInp&&hc(s,i),nc({traceFetch:d,traceXHR:l,tracePropagationTargets:S,shouldCreateSpanForRequest:h,enableHTTPTimings:p})},options:n}});function lc(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=Lt();return(n&&O(n).op)==="pageload"?n:void 0}function is(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=Lt();return(n&&O(n).op)==="navigation"?n:void 0}function Zn(e){const t=Os(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function fc(e,t){let n;const r=()=>{const{idleTimeout:s,finalTimeout:i,heartbeatInterval:o}=e,a="ui.action.click",c=ct();if(c&&c.op&&["navigation","pageload"].includes(c.op)){v&&f.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name){v&&f.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}const{location:u}=_,d={name:t.name,op:a,trimEnd:!0,data:{[L]:t.context?gc(t.context):"url"}};n=qr(C(),d,s,i,!0,{location:u},o)};["click"].forEach(s=>{_.document&&addEventListener(s,r,{once:!1,capture:!0})})}function pc(e){return"duration"in e}const Qn=10;function hc(e,t){const n=({entries:r})=>{const s=w(),i=s!==void 0&&s.getIntegrationByName!==void 0?s.getIntegrationByName("Replay"):void 0,o=i!==void 0?i.getReplayId():void 0,a=ct(),c=F(),u=c!==void 0?c.getUser():void 0;r.forEach(d=>{if(pc(d)){const l=d.interactionId;if(l===void 0)return;const h=e[l],p=d.duration,g=d.startTime,y=Object.keys(e),S=y.length>0?y.reduce((T,b)=>e[T].duration<e[b].duration?T:b):void 0;if(d.entryType==="first-input"&&y.map(b=>e[b]).some(b=>b.duration===p&&b.startTime===g)||!l)return;if(h)h.duration=Math.max(h.duration,p);else if(y.length<Qn||S===void 0||p>e[S].duration){const T=t.name,b=t.context;T&&b&&(S&&Object.keys(e).length>=Qn&&delete e[S],e[l]={routeName:T,duration:p,parentContext:b,user:u,activeTransaction:a,replayId:o,startTime:g})}}})};Ft("event",n),Ft("first-input",n)}function gc(e){const t=e.attributes&&e.attributes[L],n=e.data&&e.data[L],r=e.metadata&&e.metadata.source;return t||n||r}const I=E;let Ye=0;function os(){return Ye>0}function mc(){Ye++,setTimeout(()=>{Ye--})}function Tt(e,t={},n){if(typeof e!="function")return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Je(e))return e}catch{return e}const r=function(){const s=Array.prototype.slice.call(arguments);try{const i=s.map(o=>Tt(o,t));return e.apply(this,i)}catch(i){throw mc(),Vi(o=>{o.addEventProcessor(a=>(t.mechanism&&(Ae(a,void 0),Pt(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),on(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}pr(r,e),tt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Y=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function as(e,t){const n=ln(e,t),r={type:t&&t.name,value:Sc(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function _c(e,t,n,r){const s=w(),i=s&&s.getOptions().normalizeDepth,o={exception:{values:[{type:de(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ic(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Ir(t,i)}};if(n){const a=ln(e,n);a.length&&(o.exception.values[0].stacktrace={frames:a})}return o}function ke(e,t){return{exception:{values:[as(e,t)]}}}function ln(e,t){const n=t.stacktrace||t.stack||"",r=Ec(t);try{return e(n,r)}catch{}return[]}const yc=/Minified React error #\d+;/i;function Ec(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(yc.test(e.message))return 1}return 0}function Sc(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Tc(e,t,n,r){const s=n&&n.syntheticException||void 0,i=fn(e,t,s,r);return Pt(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),yt(i)}function bc(e,t,n="info",r,s){const i=r&&r.syntheticException||void 0,o=We(e,t,i,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),yt(o)}
23function fn(e,t,n,r,s){let i;if(ze(t)&&t.error)return ke(e,t.error);if(hn(t)||_s(t)){const o=t;if("stack"in t)i=ke(e,t);else{const a=o.name||(hn(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=We(e,c,n,r),Ae(i,c)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return ar(t)?ke(e,t):mt(t)||de(t)?(i=_c(e,t,n,s),Pt(i,{synthetic:!0}),i):(i=We(e,t,n,r),Ae(i,`${t}`),Pt(i,{synthetic:!0}),i)}function We(e,t,n,r){const s={};if(r&&n){const i=ln(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(Ve(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function Ic(e,{isUnhandledRejection:t}){const n=Ms(e),r=t?"promise rejection":"exception";return ze(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:de(e)?`Event \`${vc(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function vc(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function kc(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:vt(r)}},i=Rc(e);return ot(s,[i])}function Rc(e){return[{type:"user_report"},e]}class Oc extends Po{constructor(t){const n=I.SENTRY_SDK_SOURCE||si();qo(t,"browser",["browser"],n),super(t),t.sendClientReports&&I.document&&I.document.addEventListener("visibilitychange",()=>{I.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Tc(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return bc(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Y&&f.warn("SDK not enabled, will not capture user feedback.");return}const n=kc(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Y&&f.log("No outcomes to send");return}if(!this._dsn){Y&&f.log("No dsn provided, will not send outcomes");return}Y&&f.log("Sending outcomes:",t);const n=Oi(t,this._options.tunnel&&vt(this._dsn));this._sendEnvelope(n)}}let xt;function Nc(){if(xt)return xt;if(De(I.fetch))return xt=I.fetch.bind(I);const e=I.document;let t=I.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Y&&f.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return xt=t.bind(I)}function wc(){xt=void 0}function Ac(e,t=Nc()){let n=0,r=0;function s(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(c=>(n-=o,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return wc(),n-=o,r--,tn(c)}}return Vr(e,s)}const xc=4;function Cc(e){function t(n){return new $((r,s)=>{const i=new XMLHttpRequest;i.onerror=s,i.onreadystatechange=()=>{i.readyState===xc&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const o in e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(n.body)})}return Vr(e,t)}const ye="?",$c=30,Dc=40,Pc=50;function pn(e,t,n,r){const s={filename:e,function:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Mc=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Lc=/\((\S*)(?::(\d+))(?::(\d+))\)/,Fc=e=>{const t=Mc.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const i=Lc.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}const[r,s]=cs(t[1]||ye,t[2]);return pn(s,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Hc=[$c,Fc],Uc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Bc=e=>{const t=Uc.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=jc.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],s=t[1]||ye;return[s,r]=cs(s,r),pn(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Gc=[Pc,Bc],qc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Yc=e=>{const t=qc.exec(e);return t?pn(t[2],t[1]||ye,+t[3],t[4]?+t[4]:void 0):void 0},Wc=[Dc,Yc],zc=[Hc,Gc,Wc],Vc=mr(...zc),cs=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ye,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},te=1024,Xc="Breadcrumbs",Kc=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Xc,setupOnce(){},setup(n){t.console&&Us(tu(n)),t.dom&&Gs(Qc(n,t.dom)),t.xhr&&br(eu(n)),t.fetch&&Er(nu(n)),t.history&&Qe(ru(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Zc(n))}}}),Jc=Kc;function Zc(e){return function(n){w()===e&&nt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:K(n)},{event:n})}}function Qc(e,t){return function(r){if(w()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>te&&(Y&&f.warn(`\`dom.maxStringLength\` cannot exceed ${te}, but a value of ${a} was configured. Sentry will use ${te}
23 instead.`),a=te),typeof o=="string"&&(o=[o]);try{const u=r.event,d=su(u)?u.target:u;s=_t(d,{keyAttrs:o,maxStringLength:a}),i=lr(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),nt(c,{event:r.event,name:r.name,global:r.global})}}function tu(e){return function(n){if(w()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:fi(n.level),message:gn(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${gn(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;nt(r,{input:n.args,level:n.level})}}function eu(e){return function(n){if(w()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[ft];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:u}=i,d={method:o,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s};nt({category:"xhr",data:d,type:"http"},l)}}function nu(e){return function(n){if(w()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};nt({category:"fetch",data:i,level:"error",type:"http"},o)}else{const i=n.response,o={...n.fetchData,status_code:i&&i.status},a={input:n.args,response:i,startTimestamp:r,endTimestamp:s};nt({category:"fetch",data:o,type:"http"},a)}}}function ru(e){return function(n){if(w()!==e)return;let r=n.from,s=n.to;const i=Q(I.location.href);let o=r?Q(r):void 0;const a=Q(s);(!o||!o.path)&&(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),nt({category:"navigation",data:{from:r,to:s}})}}function su(e){return!!e&&!!e.target}const iu="Dedupe",ou=(()=>{let e;return{name:iu,setupOnce(){},processEvent(t){if(t.type)return t;try{if(cu(t,e))return Y&&f.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),au=ou;function cu(e,t){return t?!!(uu(e,t)||du(e,t)):!1}function uu(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ds(e,t)||!us(e,t))}function du(e,t){const n=tr(t),r=tr(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ds(e,t)||!us(e,t))}function us(e,t){let n=er(e),r=er(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function ds(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function tr(e){return e.exception&&e.exception.values&&e.exception.values[0]}function er(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const lu="GlobalHandlers",fu=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:lu,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(hu(n),nr("onerror")),t.onunhandledrejection&&(gu(n),nr("onunhandledrejection"))}}}),pu=fu;function hu(e){Sr(t=>{const{stackParser:n,attachStacktrace:r}=fs();if(w()!==e||os())return;const{msg:s,url:i,line:o,column:a,error:c}=t,u=c===void 0&&B(s)?yu(s,i,o,a):ls(fn(n,c||s,void 0,r,!1),i,o,a);u.level="error",xr(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function gu(e){Tr(t=>{const{stackParser:n,attachStacktrace:r}=fs();if(w()!==e||os())return;const s=mu(t),i=Xe(s)?_u(s):fn(n,s,void 0,r,!0);i.level="error",xr(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function mu(e){if(Xe(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function _u(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function yu(e,t,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=ze(e)?e.message:e,o="Error";const a=i.match(s);return a&&(o=a[1],i=a[2]),ls({exception:{values:[{type:o,value:i}]}},t,n,r)}function ls(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,l=B(t)&&t.length>0?t:Rs();
23return c.length===0&&c.push({colno:u,filename:l,function:"?",in_app:!0,lineno:d}),e}function nr(e){Y&&f.log(`Global Handler attached: ${e}`)}function fs(){const e=w();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Eu="HttpContext",Su=(()=>({name:Eu,setupOnce(){},preprocessEvent(e){if(!I.navigator&&!I.location&&!I.document)return;const t=e.request&&e.request.url||I.location&&I.location.href,{referrer:n}=I.document||{},{userAgent:r}=I.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:s};e.request=i}})),Tu=Su,bu="cause",Iu=5,vu="LinkedErrors",ku=((e={})=>{const t=e.limit||Iu,n=e.key||bu;return{name:vu,setupOnce(){},preprocessEvent(r,s,i){const o=i.getOptions();bs(as,o.stackParser,o.maxValueLength,n,t,r,s)}}}),Ru=ku,Ou=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Nu="TryCatch",wu=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Nu,setupOnce(){t.setTimeout&&A(I,"setTimeout",rr),t.setInterval&&A(I,"setInterval",rr),t.requestAnimationFrame&&A(I,"requestAnimationFrame",xu),t.XMLHttpRequest&&"XMLHttpRequest"in I&&A(XMLHttpRequest.prototype,"send",Cu);const n=t.eventTarget;n&&(Array.isArray(n)?n:Ou).forEach($u)}}}),Au=wu;function rr(e){return function(...t){const n=t[0];return t[0]=Tt(n,{mechanism:{data:{function:V(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function xu(e){return function(t){return e.apply(this,[Tt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:V(e)},handled:!1,type:"instrument"}})])}}function Cu(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&A(n,s,function(i){const o={mechanism:{data:{function:s,handler:V(i)},handled:!1,type:"instrument"}},a=Je(i);return a&&(o.mechanism.data.handler=V(a)),Tt(i,o)})}),e.apply(this,t)}}function $u(e){const t=I,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(A(n,"addEventListener",function(r){return function(s,i,o){try{typeof i.handleEvent=="function"&&(i.handleEvent=Tt(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:V(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[s,Tt(i,{mechanism:{data:{function:"addEventListener",handler:V(i),target:e},handled:!1,type:"instrument"}}),o])}}),A(n,"removeEventListener",function(r){return function(s,i,o){const a=i;try{const c=a&&a.__sentry_wrapped__;c&&r.call(this,s,c,o)}catch{}return r.call(this,s,a,o)}}))}const Du=[Xo(),aa(),Au(),Jc(),pu(),Ru(),au(),Tu()];function ps(e){return[...Du]}function Pu(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=ps()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),I.SENTRY_RELEASE&&I.SENTRY_RELEASE.id&&(e.release=I.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:Fs(e.stackParser||Vc),integrations:wo(e),transport:e.transport||(yr()?Ac:Cc)};Fo(Oc,t),e.autoSessionTracking&&Mu()}function Mu(){if(typeof I.document>"u"){Y&&f.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Cn({ignoreDuration:!0}),$n(),Qe(({from:e,to:t})=>{e!==void 0&&e!==t&&(Cn({ignoreDuration:!0}),$n())})}const hs=["activate","mount","update"],Lu=/(?:^|[-_])(\w)/g,Fu=e=>e.replace(Lu,t=>t.toUpperCase()).replace(/[-_]/g,""),Hu="<Root>",Re="<Anonymous>",Uu=(e,t)=>e.repeat?e.repeat(t):e,Dt=(e,t)=>{if(!e)return Re;if(e.$root===e)return Hu;if(!e.$options)return Re;const n=e.$options;let r=n.name||n._componentTag;const s=n.__file;if(!r&&s){const i=s.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${Fu(r)}>`:Re)+(s&&t!==!1?` at ${s}`:"")},ju=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const s=t[t.length-1];if(s.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[s,n],n=0)}t.push(e),e=e.$parent}return` 24 25found in 26 27${t.map((s,i)=>`${(i===0?"---> ":Uu(" ",5+i*2))+(Array.isArray(s)?`${Dt(s[0])}... (${s[1]} recursive calls)`:Dt(s))}`).join(` 28`)}`}return` 29 30(found in ${Dt(e)}
30)`},Bu=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:s}=e.config;e.config.errorHandler=(i,o,a)=>{const c=Dt(o,!1),u=o?ju(o):"",d={componentName:c,lifecycleHook:a,trace:u};if(t.attachProps&&o&&(o.$options&&o.$options.propsData?d.propsData=o.$options.propsData:o.$props&&(d.propsData=o.$props)),setTimeout(()=>{on(i,{captureContext:{contexts:{vue:d}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,i,o,a),t.logErrors){const l=typeof console<"u",h=`Error in ${a}: "${i&&i.toString()}"`;r?r.call(null,h,o,u):l&&!s&&rt(()=>{console.error(`[Vue warn]: ${h}${u}`)})}}},Gu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,sr="ui.vue",qu={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Yu(){return F().getTransaction()}function Wu(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}const zu=e=>{const t=(e.hooks||[]).concat(hs).filter((r,s,i)=>i.indexOf(r)===s),n={};for(const r of t){const s=qu[r];if(!s){Gu&&f.warn(`Unknown hook: ${r}`);continue}for(const i of s)n[i]=function(){const o=this.$root===this;o&&Lt()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||oe({name:"Application Render",op:`${sr}.render`,origin:"auto.ui.vue"}));const a=Dt(this,!1),c=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(a)>-1:e.trackComponents;if(!(!o&&!c))if(this.$_sentrySpans=this.$_sentrySpans||{},i==s[0]){if(this.$root&&this.$root.$_sentryRootSpan||Lt()){const d=this.$_sentrySpans[r];d&&d.end(),this.$_sentrySpans[r]=oe({name:`Vue <${a}>`,op:`${sr}.${r}`,origin:"auto.ui.vue"})}}else{const u=this.$_sentrySpans[r];if(!u)return;u.end(),Wu(this,kt(),e.timeout)}}}return n},Vu=E,Xu={Vue:Vu.Vue,attachProps:!0,logErrors:!0,hooks:hs,timeout:2e3,trackComponents:!1},Ku="Vue",Ju=((e={})=>({name:Ku,setupOnce(){},setup(t){Qu(t,e)}})),Zu=Ju;function Qu(e,t){const n={...Xu,...e.getOptions(),...t};if(!n.Vue&&!n.app){rt(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?Ze(n.app).forEach(s=>ir(s,n)):n.Vue&&ir(n.Vue,n)}const ir=(e,t)=>
30{const n=e;(n._instance&&n._instance.isMounted)===!0&&rt(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),Bu(e,t),ut(t)&&e.mixin(zu({...t,...t.tracingOptions}))};function rd(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:Mt}],version:Mt}},defaultIntegrations:[...ps(),Zu()],...e};Pu(t)}function td(e,t,n){e.onError(r=>on(r,{mechanism:{handled:!1}})),e.beforeEach((r,s,i)=>{const o=s.name==null&&s.matched.length===0,a={[J]:"auto.navigation.vue"};for(const d of Object.keys(r.params))a[`params.${d}`]=r.params[d];for(const d of Object.keys(r.query)){const l=r.query[d];l&&(a[`query.${d}`]=l)}let c=r.path,u="url";if(r.name&&t.routeLabel!=="path"?(c=r.name.toString(),u="custom"):r.matched[0]&&r.matched[0].path&&(c=r.matched[0].path,u="route"),t.instrumentPageLoad&&o){const d=Yu();d&&((O(d).data||{})[L]!=="custom"&&(d.updateName(c),d.setAttribute(L,u)),d.setAttributes({...a,[J]:"auto.pageload.vue"}))}t.instrumentNavigation&&!o&&(a[L]=u,n({name:c,op:"navigation",attributes:a})),i&&i()})}function sd(e={}){if(!e.router)return Jn(e);const t=Jn({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(o){t.afterAllSetup(o),td(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:s},c=>{is(o,c)})}}}export{sd as b,ed as g,rd as i,nd as s};
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.