PageSourceSearch

https://www.lovers.nl/dist/assets/sentry-CcHgq4r_.js

js lovers.nl collected 2026-09-24 23:36:50 UTC 72,756 bytes, 20 lines download raw bytes

1const Ce=Object.prototype.toString;function Ae(e){switch(Ce.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return P(e,Error)}}function W(e,t){return Ce.call(e)===`[object ${t}]`}function Gt(e){return W(e,"ErrorEvent")}function ee(e){return W(e,"DOMError")}function En(e){return W(e,"DOMException")}function R(e){return W(e,"String")}function qt(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Wt(e){return e===null||qt(e)||typeof e!="object"&&typeof e!="function"}function B(e){return W(e,"Object")}function gt(e){return typeof Event<"u"&&P(e,Event)}function Sn(e){return typeof Element<"u"&&P(e,Element)}function bn(e){return W(e,"RegExp")}function _t(e){return!!(e&&e.then&&typeof e.then=="function")}function Tn(e){return B(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function vn(e){return typeof e=="number"&&e!==e}function P(e,t){try{return e instanceof t}catch{return!1}}function $e(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function U(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ne(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{$e(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function In(e,t,n=!1){return R(e)?bn(t)?t.test(e):R(t)?n?e===t:e.includes(t):!1:!1}function mt(e,t=[],n=!1){return t.some(r=>In(e,r,n))}function kn(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!P(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=xn(wt(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function wt(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(P(r[s],Error)){re(i,a);const u=e(t,r[s]),f=c.length;se(u,s,f,a),c=wt(e,t,n,r[s],s,[u,...c],u,f)}return Array.isArray(r.errors)&&r.errors.forEach((u,f)=>{if(P(u,Error)){re(i,a);const l=e(t,u),g=c.length;se(l,`errors[${f}]`,g,a),c=wt(e,t,n,u,s,[l,...c],l,g)}}),c}function re(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 se(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 xn(e,t){return e.map(n=>(n.value&&(n.value=U(n.value,t)),n))}function ot(e){return e&&e.Math==Math?e:void 0}const h=typeof globalThis=="object"&&ot(globalThis)||typeof window=="object"&&ot(window)||typeof self=="object"&&ot(self)||typeof global=="object"&&ot(global)||(function(){return this})()||{};function Yt(){return h}function Pe(e,t,n){const r=n||h,s=r.__SENTRY__=r.__SENTRY__||{};return s[e]||(s[e]=t())}const zt=Yt(),On=80;function Me(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const f=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||On;for(;n&&o++<r&&(u=wn(n,f),!(u==="html"||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function wn(e,t){const n=e,r=[];let s,o,i,a,c;if(!n||!n.tagName)return"";if(zt.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&&R(s))for(o=s.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const f=["aria-label","type","name","title","alt"];for(c=0;c<f.length;c++)i=f[c],a=n.getAttribute(i),a&&r.push(`[${i}="${a}"]`);return r.join("")}function Rn(){try{return zt.document.location.href}catch{return""}}function Nn(e){if(!zt.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 et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Dn="Sentry Logger ",Rt=["debug","info","warn","error","log","assert","trace"],dt={};function yt(e){if(!("console"in h))return e();
1const t=h.console,n={},r=Object.keys(dt);r.forEach(s=>{const o=dt[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Cn(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return et?Rt.forEach(n=>{t[n]=(...r)=>{e&&yt(()=>{h.console[n](`${Dn}[${n}]:`,...r)})}}):Rt.forEach(n=>{t[n]=()=>{}}),t}const p=Cn(),An=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function $n(e){return e==="http"||e==="https"}function nt(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Pn(e){const t=An.exec(e);if(!t){yt(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o,i="",a]=t.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return Le({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function Le(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Mn(e){if(!et)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(p.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?$n(r)?t&&isNaN(parseInt(t,10))?(p.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Ln(e){const t=typeof e=="string"?Pn(e):Le(e);if(!(!t||!Mn(t)))return t}class k 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 y(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&Fe(s,r),e[t]=s}function Z(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{et&&p.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Fe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Z(e,"__sentry_original__",t)}catch{}}function Xt(e){return e.__sentry_original__}function Fn(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function He(e){if(Ae(e))return{message:e.message,name:e.name,stack:e.stack,...ie(e)};if(gt(e)){const t={type:e.type,target:oe(e.target),currentTarget:oe(e.currentTarget),...ie(e)};return typeof CustomEvent<"u"&&P(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function oe(e){try{return Sn(e)?Me(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function ie(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 Hn(e,t=40){const n=Object.keys(He(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return U(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:U(s,t)}return""}function O(e){return Nt(e,new Map)}function Nt(e,t){if(jn(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]=Nt(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(Nt(s,t))}),r}return e}function jn(e){if(!B(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const je=50,ae=/\(error: (.*)\)/,ce=/captureMessage|captureException/;function Ue(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const s=[],o=n.split(`
2`);for(let i=r;i<o.length;i++){const a=o[i];if(a.length>1024)continue;const c=ae.test(a)?a.replace(ae,"$1"):a;if(!c.match(/\S*Error: /)){for(const u of t){const f=u(c);if(f){s.push(f);break}}if(s.length>=je)break}}return Bn(s)}}function Un(e){return Array.isArray(e)?Ue(...e):e}function Bn(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),ce.test(t[t.length-1].function||"")&&(t.pop(),ce.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,je).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const It="<anonymous>";function $(e){try{return!e||typeof e!="function"?It:e.name||It}catch{return It}}const lt={},ue={};function F(e,t){lt[e]=lt[e]||[],lt[e].push(t)}function H(e,t){ue[e]||(t(),ue[e]=!0)}function I(e,t){const n=e&&lt[e];if(n)for(const r of n)try{r(t)}catch(s){et&&p.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${$(r)}
5Error:`,s)}}function Gn(e){const t="console";F(t,e),H(t,qn)}function qn(){"console"in h&&Rt.forEach(function(e){e in h.console&&y(h.console,e,function(t){return dt[e]=t,function(...n){I("console",{args:n,level:e});const s=dt[e];s&&s.apply(h.console,n)}})})}function v(){const e=h,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>
5{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 Be(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function C(e){const{message:t,event_id:n}=e;if(t)return t;const r=Be(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Dt(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function Q(e,t){const n=Be(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}function fe(e){if(e&&e.__sentry_captured__)return!0;try{Z(e,"__sentry_captured__",!0)}catch{}return!1}function Ge(e){return Array.isArray(e)?e:[e]}const j=h,Wn=1e3;let le,Ct,At;function Yn(e){F("dom",e),H("dom",zn)}function zn(){if(!j.document)return;const e=I.bind(null,"dom"),t=de(e,!0);j.document.addEventListener("click",t,!1),j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=j[n]&&j[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(y(r,"addEventListener",function(s){return function(o,i,a){if(o==="click"||o=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},f=u[o]=u[o]||{refCount:0};if(!f.handler){const l=de(e);f.handler=l,s.call(this,o,l,a)}f.refCount++}catch{}return s.call(this,o,i,a)}}),y(r,"removeEventListener",function(s){return function(o,i,a){if(o==="click"||o=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},f=u[o];f&&(f.refCount--,f.refCount<=0&&(s.call(this,o,f.handler,a),f.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return s.call(this,o,i,a)}}))})}function Xn(e){if(e.type!==Ct)return!1;try{if(!e.target||e.target._sentryId!==At)return!1}catch{}return!0}function Kn(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function de(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Jn(n);if(Kn(n.type,r))return;Z(n,"_sentryCaptured",!0),r&&!r._sentryId&&Z(r,"_sentryId",v());
5const s=n.type==="keypress"?"input":n.type;Xn(n)||(e({event:n,name:s,global:t}),Ct=n.type,At=r?r._sentryId:void 0),clearTimeout(le),le=j.setTimeout(()=>{At=void 0,Ct=void 0},Wn)}}function Jn(e){try{return e.target}catch{return null}}const $t=Yt();function qe(){if(!("fetch"in $t))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Pt(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Vn(){if(typeof EdgeRuntime=="string")return!0;if(!qe())return!1;if(Pt($t.fetch))return!0;let e=!1;const t=$t.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=Pt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){et&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Zn(e){const t="fetch";F(t,e),H(t,Qn)}function Qn(){Vn()&&y(h,"fetch",function(e){return function(...t){const{method:n,url:r}=tr(t),s={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return I("fetch",{...s}),e.apply(h,t).then(o=>{const i={...s,endTimestamp:Date.now(),response:o};return I("fetch",i),o},o=>{const i={...s,endTimestamp:Date.now(),error:o};throw I("fetch",i),o})}})}function Mt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function pe(e){return typeof e=="string"?e:e?Mt(e,"url")?e.url:e.toString?e.toString():"":""}function tr(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:pe(n),method:Mt(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:pe(t),method:Mt(t,"method")?String(t.method).toUpperCase():"GET"}}let it=null;function er(e){const t="error";F(t,e),H(t,nr)}function nr(){it=h.onerror,h.onerror=function(e,t,n,r,s){return I("error",{column:r,error:s,line:n,msg:e,url:t}),it&&!it.__SENTRY_LOADER__?it.apply(this,arguments):!1},h.onerror.__SENTRY_INSTRUMENTED__=!0}let at=null;function rr(e){const t="unhandledrejection";F(t,e),H(t,sr)}function sr(){at=h.onunhandledrejection,h.onunhandledrejection=function(e){return I("unhandledrejection",e),at&&!at.__SENTRY_LOADER__?at.apply(this,arguments):!0},h.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const ct=Yt();function or(){const e=ct.chrome,t=e&&e.app&&e.app.runtime,n="history"in ct&&!!ct.history.pushState&&!!ct.history.replaceState;return!t&&n}const X=h;let ut;function We(e){const t="history";F(t,e),H(t,ir)}function ir(){if(!or())return;const e=X.onpopstate;X.onpopstate=function(...n){const r=X.location.href,s=ut;if(ut=r,I("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 o=ut,i=String(s);ut=i,I("history",{from:o,to:i})}return n.apply(this,r)}}y(X.history,"pushState",t),y(X.history,"replaceState",t)}const ar=h,J="__sentry_xhr_v3__";function cr(e){F("xhr",e),H("xhr",ur)}function ur(){if(!ar.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;y(e,"open",function(t){return function(...n){const r=Date.now(),s=R(n[0])?n[0].toUpperCase():void 0,o=fr(n[1]);if(!s||!o)return t.apply(this,n);this[J]={method:s,url:o,request_headers:{}},s==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const a=this[J];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}const c={args:[s,o],endTimestamp:Date.now(),startTimestamp:r,xhr:this};I("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?y(this,"onreadystatechange",function(a){return function(...c){return i(),a.apply(this,c)}}):this.addEventListener("readystatechange",i),y(this,"setRequestHeader",function(a){return function(...c){const[u,f]=c,l=this[J];return l&&R(u)&&R(f)&&(l.request_headers[u.toLowerCase()]=f),a.apply(this,c)}}),t.apply(this,n)}}),y(e,"send",function(t){return function(...n){const r=this[J];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 I("xhr",s),t.apply(this,n)}})}function fr(e){if(R(e))return e;try{return e.toString()}catch{}}function lr(){return"npm"}function dr(){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 o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}function D(e,t=100,n=1/0){try{return Lt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Ye(e,t=3,n=100*1024){const r=D(e,t);return _r(r)>n?Ye(e,t-1,n):r}function Lt(e,t,n=1/0,r=1/0,s=dr()){const[o,i]=s;
5if(t==null||["number","boolean","string"].includes(typeof t)&&!vn(t))return t;const a=pr(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(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const d=u.toJSON();return Lt("",d,c-1,r,s)}catch{}const f=Array.isArray(t)?[]:{};let l=0;const g=He(t);for(const d in g){if(!Object.prototype.hasOwnProperty.call(g,d))continue;if(l>=r){f[d]="[MaxProperties ~]";break}const E=g[d];f[d]=Lt(d,E,c-1,r,s),l++}return i(t),f}function pr(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($e(t))return"[VueViewModel]";if(Tn(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${$(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=hr(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function hr(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function gr(e){return~-encodeURI(e).split(/%..|./).length}function _r(e){return gr(JSON.stringify(e))}var x;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(x||(x={}));function G(e){return new T(t=>{t(e)})}function Kt(e){return new T((t,n)=>{n(e)})}class T{constructor(t){T.prototype.__init.call(this),T.prototype.__init2.call(this),T.prototype.__init3.call(this),T.prototype.__init4.call(this),this._state=x.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new T((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new T((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(x.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(x.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===x.PENDING){if(_t(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===x.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===x.RESOLVED&&n[1](this._value),this._state===x.REJECTED&&n[2](this._value),n[0]=!0)})}}}function mr(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]}function s(i){if(!n())return Kt(new k("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new T((a,c)=>{let u=t.length;if(!u)return a(!0);const f=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(l=>{G(l).then(()=>{--u||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:s,drain:o}}function kt(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 yr=["fatal","error","warning","log","info","debug"];function Er(e){return e==="warn"?"warning":yr.includes(e)?e:"log"}const ze=1e3;function rt(){return Date.now()/ze}function Sr(){const{performance:e}=h;if(!e||!e.now)return rt;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/ze}const Xe=Sr();(()=>{const{performance:e}=h;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,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,u=c<t;return o||u?s<=c?e.timeOrigin:i:r})();function Y(e,t=[]){return[e,t]}function br(e,t){const[n,r]=e;return[n,[...r,t]]}function he(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 Ft(e,t){return(t||new TextEncoder).encode(e)}function Tr(e,t){const[n,r]=e;let s=JSON.stringify(n);function o(i){typeof s=="string"?s=typeof i=="string"?s+i:[Ft(s,t),i]:s.push(typeof i=="string"?Ft(i,t):i)}for(const i of r){const[a,c]=i;if(o(`
6${JSON.stringify(a)}
7`),typeof c=="string"||c instanceof Uint8Array)o(c);else{let u;
7try{u=JSON.stringify(c)}catch{u=JSON.stringify(D(c))}o(u)}}return typeof s=="string"?s:vr(s)}function vr(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Ir(e,t){const n=typeof e.data=="string"?Ft(e.data,t):e.data;return[O({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const kr={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 ge(e){return kr[e]}function Ke(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function xr(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:nt(r)},...s&&{trace:O({...s})}}}function Or(e,t,n){const r=[{type:"client_report"},{timestamp:rt(),discarded_events:e}];return Y(t?{dsn:t}:{},[r])}const wr=60*1e3;function Rr(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?wr:r-t}function Nr(e,t){return e[t]||e.all||0}function Dr(e,t,n=Date.now()){return Nr(e,t)>n}function Cr(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,f]=a.split(":",5),l=parseInt(c,10),g=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+g;else for(const d of u.split(";"))d==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[d]=r+g):s[d]=r+g}else i?s.all=r+Rr(i,r):t===429&&(s.all=r+60*1e3);return s}const m=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Et="production";function Jt(){return Pe("globalEventProcessors",()=>[])}function Ar(e){Jt().push(e)}function pt(e,t,n,r=0){return new T((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);m&&i.id&&a===null&&p.log(`Event processor "${i.id}" dropped event`),_t(a)?a.then(c=>pt(e,c,n,r+1).then(s)).then(null,o):pt(e,a,n,r+1).then(s).then(null,o)}})}function Je(e){const t=Xe(),n={sid:v(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>$r(n)};return e&&M(n,e),n}function M(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||Xe(),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:v()),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 Ve(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),M(e,n)}function $r(e){return O({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 Pr=1;function Mr(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,tags:a,origin:c}=tt(e);return O({data:r,op:s,parent_span_id:o,span_id:t,status:i,tags:a,trace_id:n,origin:c})}function tt(e){return Lr(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Lr(e){return typeof e.getSpanJSON=="function"}function Fr(e){const{traceFlags:t}=e.spanContext();return!!(t&Pr)}function Hr(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||v(),timestamp:t.timestamp||rt()},u=n.integrations||e.integrations.map(S=>S.name);jr(c,e),Gr(c,u),t.type===void 0&&Ur(c,e.stackParser);const f=Wr(r,n.captureContext);n.mechanism&&Q(c,n.mechanism);const l=s&&s.getEventProcessors?s.getEventProcessors():[],g=es().getScopeData();if(o){const S=o.getScopeData();Ee(g,S)}if(f){const S=f.getScopeData();Ee(g,S)}const d=[...n.attachments||[],...g.attachments];d.length&&(n.attachments=d),rn(c,g);const E=[...l,...Jt(),...g.eventProcessors];return pt(E,c,n).then(S=>(S&&Br(S),typeof i=="number"&&i>0?qr(S,i,a):S))}function jr(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:Et),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=U(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=U(i.value,o));const a=e.request;a&&a.url&&(a.url=U(a.url,o))}const _e=new WeakMap;function Ur(e,t){const n=h._sentryDebugIds;if(!n)return;let r;const s=_e.get(t);s?r=s:(r=new Map,_e.set(t,r));const o=Object.keys(n).reduce((i,a)=>{let c;const u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let f=c.length-1;f>=0;f--){const l=c[f];if(l.filename){i[l.filename]=n[a];break}}return i},{});
7try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function Br(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 Gr(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function qr(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:D(s.data,t,n)}}))},...e.user&&{user:D(e.user,t,n)},...e.contexts&&{contexts:D(e.contexts,t,n)},...e.extra&&{extra:D(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=D(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>{const o=tt(s).data;return o&&(s.data=D(o,t,n)),s})),r}function Wr(e,t){if(!t)return e;const n=e?e.clone():new A;return n.update(t),n}function Yr(e,t){return N().captureException(e,void 0)}function Ze(e,t){return N().captureEvent(e,t)}function L(e,t){N().addBreadcrumb(e,t)}function zr(...e){const t=N();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 b(){return N().getClient()}function st(){return N().getScope()}function me(e){const t=b(),n=bt(),r=st(),{release:s,environment:o=Et}=t&&t.getOptions()||{},{userAgent:i}=h.navigator||{},a=Je({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&M(c,{status:"exited"}),Qe(),n.setSession(a),r.setSession(a),a}function Qe(){const e=bt(),t=st(),n=t.getSession()||e.getSession();n&&Ve(n),tn(),e.setSession(),t.setSession()}function tn(){const e=bt(),t=st(),n=b(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function ye(e=!1){if(e){Qe();return}tn()}function en(e){return e.transaction}function nn(e,t,n){const r=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},i=O({environment:r.environment||Et,release:r.release,user_segment:o,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",i),i}function Xr(e){const t=b();if(!t)return{};const n=nn(tt(e).trace_id||"",t,st()),r=en(e);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:o,source:i}=r.metadata;o!=null&&(n.sample_rate=`${o}`);const a=tt(r);return i&&i!=="url"&&(n.transaction=a.description),n.sampled=String(Fr(r)),t.emit&&t.emit("createDsc",n),n}function rn(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;Kr(e,t),r&&Zr(e,r),Qr(e,n),Jr(e,s),Vr(e,o)}function Ee(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:f,attachments:l,propagationContext:g,transactionName:d,span:E}=t;K(e,"extra",n),K(e,"tags",r),K(e,"user",s),K(e,"contexts",o),K(e,"sdkProcessingMetadata",a),i&&(e.level=i),d&&(e.transactionName=d),E&&(e.span=E),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...g}}function K(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 Kr(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=O(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=O(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const f=O(s);f&&Object.keys(f).length&&(e.user={...f,...e.user});const l=O(o);l&&Object.keys(l).length&&(e.contexts={...l,...e.contexts}),i&&(e.level=i),a&&(e.transaction=a)}function Jr(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Vr(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Zr(e,t){e.contexts={trace:Mr(t),...e.contexts};const n=en(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Xr(t),...e.sdkProcessingMetadata};const r=tt(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Qr(e,t){e.fingerprint=e.fingerprint?Ge(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const ts=100;let xt;class A{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Se()}static clone(t){return t?t.clone():new A}clone(){const t=new A;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&&M(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 A){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(B(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=Se(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:ts;if(r<=0)return this;const s={timestamp:rt(),...t},o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>r?o.slice(-r):o,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}
7getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:s,_extra:o,_user:i,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:f,_sdkProcessingMetadata:l,_transactionName:g,_span:d}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:s,extra:o,user:i,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:f,sdkProcessingMetadata:l,transactionName:g,span:d}}applyToEvent(t,n={},r=[]){rn(t,this.getScopeData());const s=[...r,...Jt(),...this._eventProcessors];return pt(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:v();if(!this._client)return p.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:v();if(!this._client)return p.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:v();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(p.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 es(){return xt||(xt=new A),xt}function Se(){return{traceId:v(),spanId:v().substring(16)}}const Ht="7.120.4",sn=parseFloat(Ht),ns=100;class on{constructor(t,n,r,s=sn){this._version=s;let o;n?o=n:(o=new A,o.setClient(t));let i;r?i=r:(i=new A,i.setClient(t)),this._stack=[{scope:o}],t&&this.bindClient(t),this._isolationScope=i}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 _t(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:v(),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:v(),o=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s}),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:v();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:o=null,maxBreadcrumbs:i=ns}=s.getOptions&&s.getOptions()||{};if(i<=0)return;const c={timestamp:rt(),...t},u=o?yt(()=>o(c,n)):c;u!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,i))}setUser(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)}
7setContext(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=be(this);try{t(this)}finally{be(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return m&&p.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()?p.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
8Sentry.addTracingExtensions();
9Sentry.init({...});
10`):p.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&&Ve(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:o=Et}=r&&r.getOptions()||{},{userAgent:i}=h.navigator||{},a=Je({release:s,environment:o,user:n.getUser(),...i&&{userAgent:i},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&M(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=St().__SENTRY__;if(s&&s.extensions&&typeof s.extensions[t]=="function")return s.extensions[t].apply(this,n);m&&p.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function St(){return h.__SENTRY__=h.__SENTRY__||{extensions:{},hub:void 0},h}function be(e){const t=St(),n=jt(t);return an(t,e),n}function N(){const e=St();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return rs(e)}function bt(){return N().getIsolationScope()}function rs(e=St()){return(!ss(e)||jt(e).isOlderThan(sn))&&an(e,new on),jt(e)}function ss(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function jt(e){return Pe("hub",()=>new on,e)}function an(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function os(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 is(e,t,n,r){const s=Ke(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:nt(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Y(o,[i])}function as(e,t,n,r){const s=Ke(n),o=e.type&&e.type!=="replay_event"?e.type:"event";os(e,n&&n.sdk);const i=xr(e,s,r,t);return delete e.sdkProcessingMetadata,Y(i,[[{type:o},e]])}const cs="7";function us(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function fs(e){return`${us(e)}${e.projectId}/envelope/`}function ls(e,t){return Fn({sentry_key:e.publicKey,sentry_version:cs,...t&&{sentry_client:`${t.name}/${t.version}`}})}function ds(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${fs(e)}?${ls(e,r)}`}const Te=[];function ps(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 hs(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Ge(n(t)):r=t;const s=ps(r),o=_s(s,i=>i.name==="Debug");if(o!==-1){const[i]=s.splice(o,1);s.push(i)}return s}function gs(e,t){const n={};return t.forEach(r=>{r&&cn(e,r,n)}),n}function ve(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function cn(e,t,n){if(n[t.name]){m&&p.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Te.indexOf(t.name)===-1&&(t.setupOnce(Ar,N),Te.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,o)=>r(s,o,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=(o,i)=>r(o,i,e);s.id=t.name,e.addEventProcessor(s)}m&&p.log(`Integration installed: ${t.name}`)}function _s(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function ms(e){let t="";for(const n of e){const r=Object.entries(n.tags),s=r.length>0?`|#${r.map(([o,i])=>`${o}:${i}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${s}|T${n.timestamp}
11`}return t}function ys(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=nt(t));const o=Es(e);return Y(s,[o])}function Es(e){const t=ms(e);return[{type:"statsd",length:t.length},t]}const Ie="Not capturing exception because it's already been captured.";class Ss{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Ln(t.dsn):m&&p.warn("No DSN provided, client will not send events."),this._dsn){const n=ds(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(fe(t)){m&&p.log(Ie);return}let s=n&&n.event_id;return this._process(this.eventFromException(t,n).then(o=>this._captureEvent(o,n,r)).then(o=>{s=o})),s}captureMessage(t,n,r,s){let o=r&&r.event_id;const i=qt(t)?t:String(t),a=Wt(t)?this.eventFromMessage(i,n,r):this.eventFromException(t,r);return this._process(a.then(c=>this._captureEvent(c,r,s)).then(c=>{o=c})),o}captureEvent(t,n,r){if(n&&n.originalException&&fe(n.originalException)){m&&p.log(Ie);return}let s=n&&n.event_id;const i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,i||r).then(a=>{s=a})),s}captureSession(t){typeof t.release!="string"?m&&p.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),M(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._isCl
11ientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):G(!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&&p.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];cn(this,t,this._integrations),n||ve(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=as(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=br(r,Ir(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(r);s&&s.then(o=>
11this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=is(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,o=`${t}:${n}`;m&&p.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}captureAggregateMetrics(t){m&&p.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=ys(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=gs(this,t),ve(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const c of o){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(M(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new T(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s=bt()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),Hr(o,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:f,spanId:l,parentSpanId:g,dsc:d}=c;a.contexts={trace:{trace_id:f,span_id:l,parent_span_id:g},...a.contexts};const E=d||nn(f,this,r);a.sdkProcessingMetadata={dynamicSamplingContext:E,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{if(m){const o=s;o.logLevel==="log"?p.log(o.message):p.warn(o)}})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=fn(t),a=un(t),c=t.type||"error",u=`before send for type \`${c}\``;if(a&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",t),Kt(new k(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const f=c==="replay_event"?"replay":c,g=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,g).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",f,t),new k("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const z=Ts(s,d,n);return bs(z,u)}).then(d=>{if(d===null){if(this.recordDroppedEvent("before_send",f,t),i){const vt=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",vt)}throw new k(`${u} returned \`null\`, will not send event.`,"log")}const E=r&&r.getSession();if(!i&&E&&this._updateSessionFromEvent(E,d),i){const S=d.sdkProcessingMetadata&&d.sdkProcessingMetadata.spanCountBeforeProcessing||0,vt=d.spans?d.spans.length:0,te=S-vt;te>0&&this.recordDroppedEvent("before_send","span",te)}const z=d.transaction_info;if(i&&z&&d.transaction!==t.transaction){const S="custom";d.transaction_info={...z,source:S}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof k?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new k(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
12Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{m&&p.error("Error while sending event:",n)});m&&p.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 bs(e,t){const n=`${t} must return \`null\` or a valid event.`;if(_t(e))return e.then(r=>{if(!B(r)&&r!==null)throw new k(n);return r},r=>{throw new k(`${t} rejected with ${r}`)});if(!B(e)&&e!==null)throw new k(n);return e}
12function Ts(e,t,n){const{beforeSend:r,beforeSendTransaction:s}=e;if(un(t)&&r)return r(t,n);if(fn(t)&&s){if(t.spans){const o=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:o}}return s(t,n)}return t}function un(e){return e.type===void 0}function fn(e){return e.type==="transaction"}function vs(e,t){t.debug===!0&&(m?p.enable():yt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),st().update(t.initialScope);const r=new e(t);Is(r),ks(r)}function Is(e){const n=N().getStackTop();n.client=e,n.scope.setClient(e)}function ks(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const xs=30;function ln(e,t,n=mr(e.bufferSize||xs)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(he(i,(l,g)=>{const d=ge(g);if(Dr(r,d)){const E=ke(l,g);e.recordDroppedEvent("ratelimit_backoff",d,E)}else a.push(l)}),a.length===0)return G();const c=Y(i[0],a),u=l=>{he(c,(g,d)=>{const E=ke(g,d);e.recordDroppedEvent(l,ge(d),E)})},f=()=>t({body:Tr(c,e.textEncoder)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&m&&p.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Cr(r,l),l),l=>{throw u("network_error"),l});return n.add(f).then(l=>l,l=>{if(l instanceof k)return m&&p.error("Skipped sending event because buffer is full."),u("queue_overflow"),G();throw l})}return o.__sentry__baseTransport__=!0,{send:o,flush:s}}function ke(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Os(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Ht})),version:Ht}),e._metadata=s}const ws=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Rs=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Ns="InboundFilters",Ds=((e={})=>({name:Ns,setupOnce(){},processEvent(t,n,r){const s=r.getOptions(),o=As(e,s);return $s(t,o)?null:t}})),Cs=Ds;function As(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ws],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Rs],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function $s(e,t){return t.ignoreInternal&&js(e)?(m&&p.warn(`Event dropped due to being internal Sentry Error.
13Event: ${C(e)}`),!0):Ps(e,t.ignoreErrors)?(m&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
14Event: ${C(e)}`),!0):Ms(e,t.ignoreTransactions)?(m&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
15Event: ${C(e)}`),!0):Ls(e,t.denyUrls)?(m&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.
16Event: ${C(e)}.
17Url: ${ht(e)}`),!0):Fs(e,t.allowUrls)?!1:(m&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.
18Event: ${C(e)}.
19Url: ${ht(e)}`),!0)}function Ps(e,t){return e.type||!t||!t.length?!1:Hs(e).some(n=>mt(n,t))}function Ms(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?mt(n,t):!1}function Ls(e,t){if(!t||!t.length)return!1;const n=ht(e);return n?mt(n,t):!1}function Fs(e,t){if(!t||!t.length)return!0;const n=ht(e);return n?mt(n,t):!0}function Hs(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&&p.error(`Could not extract message for event ${C(e)}`),t}function js(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Us(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 ht(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Us(t):null}catch{return m&&p.error(`Cannot extract url for event ${C(e)}`),null}}let xe;const Bs="FunctionToString",Oe=new WeakMap,Gs=(()=>({name:Bs,setupOnce(){xe=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Xt(this),n=Oe.has(b())&&t!==void 0?t:this;return xe.apply(n,e)}}catch{}},setup(e){Oe.set(e,!0)}})),qs=Gs,_=h;let Ut=0;function dn(){return Ut>0}function Ws(){Ut++,setTimeout(()=>{Ut--})}function q(e,t={}
19,n){if(typeof e!="function")return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Xt(e))return e}catch{return e}const r=function(){const s=Array.prototype.slice.call(arguments);try{const o=s.map(i=>q(i,t));return e.apply(this,o)}catch(o){throw Ws(),zr(i=>{i.addEventProcessor(a=>(t.mechanism&&(Dt(a,void 0),Q(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Yr(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Fe(r,e),Z(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const w=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function pn(e,t){const n=Vt(e,t),r={type:t&&t.name,value:Ks(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Ys(e,t,n,r){const s=b(),o=s&&s.getOptions().normalizeDepth,i={exception:{values:[{type:gt(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Zs(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Ye(t,o)}};if(n){const a=Vt(e,n);a.length&&(i.exception.values[0].stacktrace={frames:a})}return i}function Ot(e,t){return{exception:{values:[pn(e,t)]}}}function Vt(e,t){const n=t.stacktrace||t.stack||"",r=Xs(t);try{return e(n,r)}catch{}return[]}const zs=/Minified React error #\d+;/i;function Xs(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(zs.test(e.message))return 1}return 0}function Ks(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Js(e,t,n,r){const s=n&&n.syntheticException||void 0,o=Zt(e,t,s,r);return Q(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),G(o)}function Vs(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,i=Bt(e,t,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),G(i)}function Zt(e,t,n,r,s){let o;if(Gt(t)&&t.error)return Ot(e,t.error);if(ee(t)||En(t)){const i=t;if("stack"in t)o=Ot(e,t);else{const a=i.name||(ee(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=Bt(e,c,n,r),Dt(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Ae(t)?Ot(e,t):B(t)||gt(t)?(o=Ys(e,t,n,s),Q(o,{synthetic:!0}),o):(o=Bt(e,t,n,r),Dt(o,`${t}`),Q(o,{synthetic:!0}),o)}function Bt(e,t,n,r){const s={};if(r&&n){const o=Vt(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(qt(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function Zs(e,{isUnhandledRejection:t}){const n=Hn(e),r=t?"promise rejection":"exception";return Gt(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:gt(e)?`Event \`${Qs(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Qs(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function to(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:nt(r)}},o=eo(e);return Y(s,[o])}function eo(e){return[{type:"user_report"},e]}class no extends Ss{constructor(t){const n=_.SENTRY_SDK_SOURCE||lr();Os(t,"browser",["browser"],n),super(t),t.sendClientReports&&_.document&&_.document.addEventListener("visibilitychange",()=>{_.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Js(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Vs(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){w&&p.warn("SDK not enabled, will not capture user feedback.");return}const n=to(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){w&&p.log("No outcomes to send");return}if(!this._dsn){w&&p.log("No dsn provided, will not send outcomes");return}w&&p.log("Sending outcomes:",t);const n=Or(t,this._options.tunnel&&nt(this._dsn));this._sendEnvelope(n)}}let V;function ro(){if(V)return V;if(Pt(_.fetch))return V=_.fetch.bind(_);const e=_.document;let t=_.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){w&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n
19)}return V=t.bind(_)}function so(){V=void 0}function oo(e,t=ro()){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(c=>(n-=i,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 so(),n-=i,r--,Kt(c)}}return ln(e,s)}const io=4;function ao(e){function t(n){return new T((r,s)=>{const o=new XMLHttpRequest;o.onerror=s,o.onreadystatechange=()=>{o.readyState===io&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const i in e.headers)Object.prototype.hasOwnProperty.call(e.headers,i)&&o.setRequestHeader(i,e.headers[i]);o.send(n.body)})}return ln(e,t)}const Tt="?",co=30,uo=40,fo=50;function Qt(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 lo=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,po=/\((\S*)(?::(\d+))(?::(\d+))\)/,ho=e=>{const t=lo.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const o=po.exec(t[2]);o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3])}const[r,s]=hn(t[1]||Tt,t[2]);return Qt(s,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},go=[co,ho],_o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,mo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,yo=e=>{const t=_o.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=mo.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||Tt;return[s,r]=hn(s,r),Qt(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Eo=[fo,yo],So=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,bo=e=>{const t=So.exec(e);return t?Qt(t[2],t[1]||Tt,+t[3],t[4]?+t[4]:void 0):void 0},To=[uo,bo],vo=[go,Eo,To],Io=Ue(...vo),hn=(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]:Tt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ft=1024,ko="Breadcrumbs",xo=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ko,setupOnce(){},setup(n){t.console&&Gn(No(n)),t.dom&&Yn(Ro(n,t.dom)),t.xhr&&cr(Do(n)),t.fetch&&Zn(Co(n)),t.history&&We(Ao(n)),t.sentry&&n.on&&n.on("beforeSendEvent",wo(n))}}}),Oo=xo;function wo(e){return function(n){b()===e&&L({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:C(n)},{event:n})}}function Ro(e,t){return function(r){if(b()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>ft&&(w&&p.warn(`\`dom.maxStringLength\` cannot exceed ${ft}, but a value of ${a} was configured. Sentry will use ${ft} instead.`),a=ft),typeof i=="string"&&(i=[i]);try{const u=r.event,f=$o(u)?u.target:u;s=Me(f,{keyAttrs:i,maxStringLength:a}),o=Nn(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),L(c,{event:r.event,name:r.name,global:r.global})}}function No(e){return function(n){if(b()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Er(n.level),message:ne(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${ne(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;L(r,{input:n.args,level:n.level})}}function Do(e){return function(n){if(b()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[J];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,f={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s};L({category:"xhr",data:f,type:"http"},l)}}function Co(e){return function(n){if(b()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;
19if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};L({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s};L({category:"fetch",data:i,type:"http"},a)}}}function Ao(e){return function(n){if(b()!==e)return;let r=n.from,s=n.to;const o=kt(_.location.href);let i=r?kt(r):void 0;const a=kt(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),L({category:"navigation",data:{from:r,to:s}})}}function $o(e){return!!e&&!!e.target}const Po="Dedupe",Mo=(()=>{let e;return{name:Po,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Fo(t,e))return w&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),Lo=Mo;function Fo(e,t){return t?!!(Ho(e,t)||jo(e,t)):!1}function Ho(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!_n(e,t)||!gn(e,t))}function jo(e,t){const n=we(t),r=we(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!_n(e,t)||!gn(e,t))}function gn(e,t){let n=Re(e),r=Re(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 o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function _n(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 we(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Re(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const Uo="GlobalHandlers",Bo=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Uo,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(qo(n),Ne("onerror")),t.onunhandledrejection&&(Wo(n),Ne("onunhandledrejection"))}}}),Go=Bo;function qo(e){er(t=>{const{stackParser:n,attachStacktrace:r}=yn();if(b()!==e||dn())return;const{msg:s,url:o,line:i,column:a,error:c}=t,u=c===void 0&&R(s)?Xo(s,o,i,a):mn(Zt(n,c||s,void 0,r,!1),o,i,a);u.level="error",Ze(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Wo(e){rr(t=>{const{stackParser:n,attachStacktrace:r}=yn();if(b()!==e||dn())return;const s=Yo(t),o=Wt(s)?zo(s):Zt(n,s,void 0,r,!0);o.level="error",Ze(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Yo(e){if(Wt(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 zo(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Xo(e,t,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Gt(e)?e.message:e,i="Error";const a=o.match(s);return a&&(i=a[1],o=a[2]),mn({exception:{values:[{type:i,value:o}]}},t,n,r)}function mn(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,l=R(t)&&t.length>0?t:Rn();return c.length===0&&c.push({colno:u,filename:l,function:"?",in_app:!0,lineno:f}),e}function Ne(e){w&&p.log(`Global Handler attached: ${e}`)}function yn(){const e=b();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ko="HttpContext",Jo=(()=>({name:Ko,setupOnce(){},preprocessEvent(e){if(!_.navigator&&!_.location&&!_.document)return;const t=e.request&&e.request.url||_.location&&_.location.href,{referrer:n}=_.document||{},{userAgent:r}=_.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}})),Vo=Jo,Zo="cause",Qo=5,ti="LinkedErrors",ei=((e={})=>{const t=e.limit||Qo,n=e.key||Zo;return{name:ti,setupOnce(){},preprocessEvent(r,s,o){const i=o.getOptions();kn(pn,i.stackParser,i.maxValueLength,n,t,r,s)}}}),ni=ei,ri=["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"],si="TryCatch",oi=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:si,setupOnce(){t.setTimeout&&y(_,"setTimeout",De),t.setInterval&&y(_,"setInterval",De),t.requestAnimationFrame&&y(_,"requestAnimationFrame",ai),t.XMLHttpRequest&&"XMLHttpRequest"in _&&y(XMLHttpRequest.prototype,"send",ci);const n=t.eventTarget;
19n&&(Array.isArray(n)?n:ri).forEach(ui)}}}),ii=oi;function De(e){return function(...t){const n=t[0];return t[0]=q(n,{mechanism:{data:{function:$(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ai(e){return function(t){return e.apply(this,[q(t,{mechanism:{data:{function:"requestAnimationFrame",handler:$(e)},handled:!1,type:"instrument"}})])}}function ci(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&y(n,s,function(o){const i={mechanism:{data:{function:s,handler:$(o)},handled:!1,type:"instrument"}},a=Xt(o);return a&&(i.mechanism.data.handler=$(a)),q(o,i)})}),e.apply(this,t)}}function ui(e){const t=_,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(y(n,"addEventListener",function(r){return function(s,o,i){try{typeof o.handleEvent=="function"&&(o.handleEvent=q(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:$(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[s,q(o,{mechanism:{data:{function:"addEventListener",handler:$(o),target:e},handled:!1,type:"instrument"}}),i])}}),y(n,"removeEventListener",function(r){return function(s,o,i){const a=o;try{const c=a&&a.__sentry_wrapped__;c&&r.call(this,s,c,i)}catch{}return r.call(this,s,a,i)}}))}const fi=[Cs(),qs(),ii(),Oo(),Go(),ni(),Lo(),Vo()];function li(e){return[...fi]}function di(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=li()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),_.SENTRY_RELEASE&&_.SENTRY_RELEASE.id&&(e.release=_.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:Un(e.stackParser||Io),integrations:hs(e),transport:e.transport||(qe()?oo:ao)};vs(no,t),e.autoSessionTracking&&pi()}function pi(){if(typeof _.document>"u"){w&&p.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}me({ignoreDuration:!0}),ye(),We(({from:e,to:t})=>{e!==void 0&&e!==t&&(me({ignoreDuration:!0}),ye())})}var hi=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};hi.SENTRY_RELEASE={id:"lovers_953"};di({dsn:"https://[email protected]/241"});
20//# sourceMappingURL=sentry-CcHgq4r_.js.map

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.