/*! @sentry/browser 7.64.0 (e01d8f8) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){class n{static __initStatic(){this.id="Replay"}constructor(t){this.name=n.id,console.error("You are using new Replay() even though this bundle does not include replay.")}setupOnce(){}start(){}stop(){}flush(){}}n.__initStatic();class e{static __initStatic(){this.id="BrowserTracing"}constructor(t){this.name=e.id,console.error("You are using new BrowserTracing() even though this bundle does not include tracing.")}setupOnce(){}}e.__initStatic();const r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return d(t,Error)}}function s(t,n){return r.call(t)===`[object ${n}]`}function o(t){return s(t,"ErrorEvent")}function c(t){return s(t,"DOMError")}function u(t){return s(t,"String")}function a(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function f(t){return s(t,"Object")}function h(t){return"undefined"!=typeof Event&&d(t,Event)}function l(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function d(t,n){try{return t instanceof n}catch(t){return!1}}function p(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function y(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;nm(t,n,e)))}function g(t,n,e=250,r,i,s,o){if(!(s.exception&&s.exception.values&&o&&d(o.originalException,Error)))return;const c=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var u,a;c&&(s.exception.values=(u=b(t,n,i,o.originalException,r,s.exception.values,c,0),a=e,u.map((t=>(t.value&&(t.value=p(t.value,a)),t)))))}function b(t,n,e,r,i,s,o,c){if(s.length>=e+1)return s;let u=[...s];if(d(r[i],Error)){_(o,c);const s=t(n,r[i]),a=u.length;w(s,i,a,c),u=b(t,n,e,r[i],i,[s,...u],s,a)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(d(r,Error)){_(o,c);const a=t(n,r),f=u.length;w(a,`errors[${s}]`,f,c),u=b(t,n,e,r,i,[a,...u],a,f)}})),u}function _(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:n}}function w(t,n,e,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function E(t){return t&&t.Math==Math?t:void 0}const $="object"==typeof globalThis&&E(globalThis)||"object"==typeof window&&E(window)||"object"==typeof self&&E(self)||"object"==typeof global&&E(global)||function(){return this}()||{};function S(){return $}function x(t,n,e){const r=e||$,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=n())}const T=S();function k(t,n={}){try{let e=t;const r=5,i=[];let s=0,o=0;const c=" > ",u=c.length;let a;const f=Array.isArray(n)?n:n.keyAttrs,h=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&s++1&&o+i.length*u+a.length>=h));)i.push(a),o+=a.length,e=e.parentNode;return i.reverse().join(c)}catch(t){return""}}function j(t,n){const e=t,r=[];let i,s,o,c,a;if(!e||!e.tagName)return"";r.push(e.tagName.toLowerCase());const f=n&&n.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(f&&f.length)f.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(e.id&&r.push(`#${e.id}`),i=e.className,i&&u(i))for(s=i.split(/\s+/),a=0;a{},disable:()=>{}};O.forEach((n=>{t[n]=()=>{}}))}();const D=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function R(t,n=!1){const{host:e,path:r,pass:i,port:s,projectId:o,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&i?`:${i}`:""}@${e}${s?`:${s}`:""}/${r?`${r}/`:r}${o}`}function I(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function M(t){const n="string"==typeof t?function(t){const n=D.exec(t);if(!n)return void console.error(`Invalid Sentry Dsn: ${t}`);const[e,r,i="",s,o="",c]=n.slice(1);let u="",a=c;const f=a.split("/");if(f.length>1&&(u=f.slice(0,-1).join("/"),a=f.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return I({host:s,pass:i,path:u,projectId:a,port:o,protocol:e,publicKey:r})}(t):I(t);if(n)return n}class A 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 C(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);if("function"==typeof i)try{N(i,r)}catch(t){}t[n]=i}function L(t,n,e){Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}function N(t,n){const e=n.prototype||{};t.prototype=n.prototype=e,L(t,"__sentry_original__",n)}function U(t){return t.__sentry_original__}function P(t){if(i(t))return{message:t.message,name:t.name,stack:t.stack,...B(t)};if(h(t)){const n={type:t.type,target:q(t.target),currentTarget:q(t.currentTarget),...B(t)};return"undefined"!=typeof CustomEvent&&d(t,CustomEvent)&&(n.detail=t.detail),n}return t}function q(t){try{return n=t,"undefined"!=typeof Element&&d(n,Element)?k(t):Object.prototype.toString.call(t)}catch(t){return""}var n}function B(t){if("object"==typeof t&&null!==t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}return{}}function H(t){return F(t,new Map)}function F(t,n){if(f(t)){const e=n.get(t);if(void 0!==e)return e;const r={};n.set(t,r);for(const e of Object.keys(t))void 0!==t[e]&&(r[e]=F(t[e],n));return r}if(Array.isArray(t)){const e=n.get(t);if(void 0!==e)return e;const r=[];return n.set(t,r),t.forEach((t=>{r.push(F(t,n))})),r}return t}const X=/\(error: (.*)\)/,z=/captureMessage|captureException/;function W(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0)=>{const r=[],i=t.split("\n");for(let t=e;t1024)continue;const s=X.test(e)?e.replace(X,"$1"):e;if(!s.match(/\S*Error: /)){for(const t of n){const n=t(s);if(n){r.push(n);break}}if(r.length>=50)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(n[n.length-1].function||"")&&n.pop();n.reverse(),z.test(n[n.length-1].function||"")&&(n.pop(),z.test(n[n.length-1].function||"")&&n.pop());return n.slice(0,50).map((t=>({...t,filename:t.filename||n[n.length-1].filename,function:t.function||"?"})))}(r)}}const G="";function J(t){try{return t&&"function"==typeof t&&t.name||G}catch(t){return G}}const K=S();function Y(){if(!("fetch"in K))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function V(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const Q=S();const Z=S(),tt={},nt={};function et(t){if(!nt[t])switch(nt[t]=!0,t){case"console":!function(){if(!("console"in Z))return;O.forEach((function(t){t in Z.console&&C(Z.console,t,(function(n){return function(...e){it("console",{args:e,level:t}),n&&n.apply(Z.console,e)}}))}))}();break;case"dom":!function(){if(!("document"in Z))return;const t=it.bind(null,"dom"),n=ft(t,!0);Z.document.addEventListener("click",n,!1),Z.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const e=Z[n]&&Z[n].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(C(e,"addEventListener",(function(n){return function(e,r,i){if("click"===e||"keypress"==e)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[e]=s[e]||{refCount:0};if(!o.handler){const r=ft(t);o.handler=r,n.call(this,e,r,i)}o.refCount++}catch(t){}return n.call(this,e,r,i)}})),C(e,"removeEventListener",(function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this,i=e.__sentry_instrumentation_handlers__||{},s=i[n];s&&(s.refCount--,s.refCount<=0&&(t.call(this,n,s.handler,r),s.handler=void 0,delete i[n]),0===Object.keys(i).length&&delete e.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,e,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Z))return;const t=XMLHttpRequest.prototype;C(t,"open",(function(t){return function(...n){const e=n[1],r=this.__sentry_xhr_v2__={method:u(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};u(e)&&"POST"===r.method&&e.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const t=this.__sentry_xhr_v2__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}it("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?C(this,"onreadystatechange",(function(t){return function(...n){return i(),t.apply(this,n)}})):this.addEventListener("readystatechange",i),C(this,"setRequestHeader",(function(t){return function(...n){const[e,r]=n,i=this.__sentry_xhr_v2__;return i&&(i.request_headers[e.toLowerCase()]=r),t.apply(this,n)}})),t.apply(this,n)}})),C(t,"send",(function(t){return function(...n){const e=this.__sentry_xhr_v2__;return e&&void 0!==n[0]&&(e.body=n[0]),it("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}}))}();break;case"fetch":!function(){if(!function(){if(!Y())return!1;if(V(K.fetch))return!0;let t=!1;const n=K.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow&&e.contentWindow.fetch&&(t=V(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}())return;C(Z,"fetch",(function(t){return function(...n){const{method:e,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[n,e]=t;return{url:ot(n),method:st(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:ot(n),method:st(n,"method")?String(n.method).toUpperCase():"GET"}}(n),i={args:n,fetchData:{method:e,url:r},startTimestamp:Date.now()};return it("fetch",{...i}),t.apply(Z,n).then((t=>(it("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw it("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}();break;case"history":!function(){if(!function(){const t=Q.chrome,n=t&&t.app&&t.app.runtime,e="history"in Q&&!!Q.history.pushState&&!!Q.history.replaceState;return!n&&e}())return;const t=Z.onpopstate;function n(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const t=ct,n=String(e);ct=n,it("history",{from:t,to:n})}return t.apply(this,n)}}Z.onpopstate=function(...n){const e=Z.location.href,r=ct;if(ct=e,it("history",{from:r,to:e}),t)try{return t.apply(this,n)}catch(t){}},C(Z.history,"pushState",n),C(Z.history,"replaceState",n)}();break;case"error":ht=Z.onerror,Z.onerror=function(t,n,e,r,i){return it("error",{column:r,error:i,line:e,msg:t,url:n}),!(!ht||ht.__SENTRY_LOADER__)&&ht.apply(this,arguments)},Z.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":lt=Z.onunhandledrejection,Z.onunhandledrejection=function(t){return it("unhandledrejection",t),!(lt&&!lt.__SENTRY_LOADER__)||lt.apply(this,arguments)},Z.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return}}function rt(t,n){tt[t]=tt[t]||[],tt[t].push(n),et(t)}function it(t,n){if(t&&tt[t])for(const e of tt[t]||[])try{e(n)}catch(t){}}function st(t,n){return!!t&&"object"==typeof t&&!!t[n]}function ot(t){return"string"==typeof t?t:t?st(t,"url")?t.url:t.toString?t.toString():"":""}let ct;let ut,at;function ft(t,n=!1){return e=>{if(!e||at===e)return;if(function(t){if("keypress"!==t.type)return!1;try{const n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(e))return;const r="keypress"===e.type?"input":e.type;(void 0===ut||function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(at,e))&&(t({event:e,name:r,global:n}),at=e),clearTimeout(ut),ut=Z.setTimeout((()=>{ut=void 0}),1e3)}}let ht=null;let lt=null;function dt(){const t=$,n=t.crypto||t.msCrypto;if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");const e=n&&n.getRandomValues?()=>n.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function pt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function yt(t){const{message:n,event_id:e}=t;if(n)return n;const r=pt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"":e||""}function mt(t,n,e){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=n||""),s.type||(s.type=e||"Error")}function vt(t,n){const e=pt(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r&&r.data,...n.data};e.mechanism.data=t}}function gt(t){if(t&&t.__sentry_captured__)return!0;try{L(t,"__sentry_captured__",!0)}catch(t){}return!1}function bt(t){return Array.isArray(t)?t:[t]}function _t(t,n=100,e=1/0){try{return Et("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function wt(t,n=3,e=102400){const r=_t(t,n);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>e?wt(t,n-1,e):r;var i}function Et(t,n,e=1/0,r=1/0,i=function(){const t="function"==typeof WeakSet,n=t?new WeakSet:[];return[function(e){if(t)return!!n.has(e)||(n.add(e),!1);for(let t=0;t=r){l[t]="[MaxProperties ~]";break}const n=p[t];l[t]=Et(t,n,a-1,r,i),d++}return o(n),l}var $t;function St(t){return new Tt((n=>{n(t)}))}function xt(t){return new Tt(((n,e)=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}($t||($t={}));class Tt{constructor(t){Tt.prototype.__init.call(this),Tt.prototype.__init2.call(this),Tt.prototype.__init3.call(this),Tt.prototype.__init4.call(this),this.i=$t.PENDING,this.o=[];try{t(this.u,this.h)}catch(t){this.h(t)}}then(t,n){return new Tt(((e,r)=>{this.o.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.l()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Tt(((n,e)=>{let r,i;return this.then((n=>{i=!1,r=n,t&&t()}),(n=>{i=!0,r=n,t&&t()})).then((()=>{i?e(r):n(r)}))}))}__init(){this.u=t=>{this.p($t.RESOLVED,t)}}__init2(){this.h=t=>{this.p($t.REJECTED,t)}}__init3(){this.p=(t,n)=>{this.i===$t.PENDING&&(l(n)?n.then(this.u,this.h):(this.i=t,this.m=n,this.l()))}}__init4(){this.l=()=>{if(this.i===$t.PENDING)return;const t=this.o.slice();this.o=[],t.forEach((t=>{t[0]||(this.i===$t.RESOLVED&&t[1](this.m),this.i===$t.REJECTED&&t[2](this.m),t[0]=!0)}))}}}function kt(t){const n=[];function e(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(r){if(!(void 0===t||n.lengthe(i))).then(null,(()=>e(i).then(null,(()=>{})))),i},drain:function(t){return new Tt(((e,r)=>{let i=n.length;if(!i)return e(!0);const s=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{St(t).then((()=>{--i||(clearTimeout(s),e(!0))}),r)}))}))}}}function jt(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:e,hash:r,relative:n[5]+e+r}}const Ot=["fatal","error","warning","log","info","debug"];const Dt=S(),Rt={nowSeconds:()=>Date.now()/1e3};const It=function(){const{performance:t}=Dt;if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),Mt=void 0===It?Rt:{nowSeconds:()=>(It.timeOrigin+It.now())/1e3},At=Rt.nowSeconds.bind(Rt),Ct=Mt.nowSeconds.bind(Mt);function Lt(t,n=[]){return[t,n]}function Nt(t,n){const[e,r]=t;return[e,[...r,n]]}function Ut(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function Pt(t,n){return(n||new TextEncoder).encode(t)}function qt(t,n){const[e,r]=t;let i=JSON.stringify(e);function s(t){"string"==typeof i?i="string"==typeof t?i+t:[Pt(i,n),t]:i.push("string"==typeof t?Pt(t,n):t)}for(const t of r){const[n,e]=t;if(s(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)s(e);else{let t;try{t=JSON.stringify(e)}catch(n){t=JSON.stringify(_t(e))}s(t)}}return"string"==typeof i?i:function(t){const n=t.reduce(((t,n)=>t+n.length),0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(i)}function Bt(t,n){const e="string"==typeof t.data?Pt(t.data,n):t.data;return[H({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}(()=>{const{performance:t}=Dt;if(!t||!t.now)return;const n=36e5,e=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-r):n,s=ifunction(t){return H({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(e)};return t&&Jt(e,t),e}function Jt(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||Ct(),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:dt()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}class Kt{constructor(){this.v=!1,this.g=[],this._=[],this.S=[],this.T=[],this.k={},this.j={},this.O={},this.D={},this.R={},this.I=Qt()}static clone(t){const n=new Kt;return t&&(n.S=[...t.S],n.j={...t.j},n.O={...t.O},n.D={...t.D},n.k=t.k,n.M=t.M,n.A=t.A,n.C=t.C,n.L=t.L,n.N=t.N,n._=[...t._],n.U=t.U,n.T=[...t.T],n.R={...t.R},n.I={...t.I}),n}addScopeListener(t){this.g.push(t)}addEventProcessor(t){return this._.push(t),this}setUser(t){return this.k=t||{},this.C&&Jt(this.C,{user:t}),this.P(),this}getUser(){return this.k}getRequestSession(){return this.U}setRequestSession(t){return this.U=t,this}setTags(t){return this.j={...this.j,...t},this.P(),this}setTag(t,n){return this.j={...this.j,[t]:n},this.P(),this}setExtras(t){return this.O={...this.O,...t},this.P(),this}setExtra(t,n){return this.O={...this.O,[t]:n},this.P(),this}setFingerprint(t){return this.N=t,this.P(),this}setLevel(t){return this.M=t,this.P(),this}setTransactionName(t){return this.L=t,this.P(),this}setContext(t,n){return null===n?delete this.D[t]:this.D[t]=n,this.P(),this}setSpan(t){return this.A=t,this.P(),this}getSpan(){return this.A}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this.C=t:delete this.C,this.P(),this}getSession(){return this.C}update(t){if(!t)return this;if("function"==typeof t){const n=t(this);return n instanceof Kt?n:this}return t instanceof Kt?(this.j={...this.j,...t.j},this.O={...this.O,...t.O},this.D={...this.D,...t.D},t.k&&Object.keys(t.k).length&&(this.k=t.k),t.M&&(this.M=t.M),t.N&&(this.N=t.N),t.U&&(this.U=t.U),t.I&&(this.I=t.I)):f(t)&&(t=t,this.j={...this.j,...t.tags},this.O={...this.O,...t.extra},this.D={...this.D,...t.contexts},t.user&&(this.k=t.user),t.level&&(this.M=t.level),t.fingerprint&&(this.N=t.fingerprint),t.requestSession&&(this.U=t.requestSession),t.propagationContext&&(this.I=t.propagationContext)),this}clear(){return this.S=[],this.j={},this.O={},this.k={},this.D={},this.M=void 0,this.L=void 0,this.N=void 0,this.U=void 0,this.A=void 0,this.C=void 0,this.P(),this.T=[],this.I=Qt(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:At(),...t};return this.S=[...this.S,r].slice(-e),this.P(),this}getLastBreadcrumb(){return this.S[this.S.length-1]}clearBreadcrumbs(){return this.S=[],this.P(),this}addAttachment(t){return this.T.push(t),this}getAttachments(){return this.T}clearAttachments(){return this.T=[],this}applyToEvent(t,n={}){if(this.O&&Object.keys(this.O).length&&(t.extra={...this.O,...t.extra}),this.j&&Object.keys(this.j).length&&(t.tags={...this.j,...t.tags}),this.k&&Object.keys(this.k).length&&(t.user={...this.k,...t.user}),this.D&&Object.keys(this.D).length&&(t.contexts={...this.D,...t.contexts}),this.M&&(t.level=this.M),this.L&&(t.transaction=this.L),this.A){t.contexts={trace:this.A.getTraceContext(),...t.contexts};const n=this.A.transaction;if(n){t.sdkProcessingMetadata={dynamicSamplingContext:n.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const e=n.name;e&&(t.tags={transaction:e,...t.tags})}}return this.q(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.S],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this.R,propagationContext:this.I},this.B([...Yt(),...this._],t,n)}setSDKProcessingMetadata(t){return this.R={...this.R,...t},this}setPropagationContext(t){return this.I=t,this}getPropagationContext(){return this.I}B(t,n,e,r=0){return new Tt(((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o({...n},e);l(c)?c.then((n=>this.B(t,n,e,r+1).then(i))).then(null,s):this.B(t,c,e,r+1).then(i).then(null,s)}}))}P(){this.v||(this.v=!0,this.g.forEach((t=>{t(this)})),this.v=!1)}q(t){t.fingerprint=t.fingerprint?bt(t.fingerprint):[],this.N&&(t.fingerprint=t.fingerprint.concat(this.N)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Yt(){return x("globalEventProcessors",(()=>[]))}function Vt(t){Yt().push(t)}function Qt(){return{traceId:dt(),spanId:dt().substring(16),sampled:!1}}const Zt=100;class tn{constructor(t,n=new Kt,e=4){this.H=e,this.F=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this.H{i.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},s)})),e}captureMessage(t,n,e){const r=this.X=e&&e.event_id?e.event_id:dt(),i=new Error(t);return this.W(((s,o)=>{s.captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r},o)})),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:dt();return t.type||(this.X=e),this.W(((r,i)=>{r.captureEvent(t,{...n,event_id:e},i)})),e}lastEventId(){return this.X}addBreadcrumb(t,n){const{scope:e,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Zt}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o={timestamp:At(),...t},c=i?function(t){if(!("console"in $))return t();const n=$.console,e={};O.forEach((t=>{const r=n[t]&&n[t].__sentry_original__;t in n&&r&&(e[t]=n[t],n[t]=r)}));try{return t()}finally{Object.keys(e).forEach((t=>{n[t]=e[t]}))}}((()=>i(o,n))):o;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,n),e.addBreadcrumb(c,s))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:e}=this.getStackTop();e&&t(n)}run(t){const n=en(this);try{t(this)}finally{en(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(t){return null}}startTransaction(t,n){return this.G("startTransaction",t,n)}traceHeaders(){return this.G("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.J()}endSession(){const t=this.getStackTop().scope,n=t.getSession();n&&function(t,n){let e={};n?e={status:n}:"ok"===t.status&&(e={status:"exited"}),Jt(t,e)}(n),this.J(),t.setSession()}startSession(t){const{scope:n,client:e}=this.getStackTop(),{release:r,environment:i=Wt}=e&&e.getOptions()||{},{userAgent:s}=$.navigator||{},o=Gt({release:r,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession&&n.getSession();return c&&"ok"===c.status&&Jt(c,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}J(){const{scope:t,client:n}=this.getStackTop(),e=t.getSession();e&&n&&n.captureSession&&n.captureSession(e)}W(t){const{scope:n,client:e}=this.getStackTop();e&&t(e,n)}G(t,...n){const e=nn().__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n)}}function nn(){return $.__SENTRY__=$.__SENTRY__||{extensions:{},hub:void 0},$}function en(t){const n=nn(),e=sn(n);return on(n,t),e}function rn(){const t=nn();if(t.__SENTRY__&&t.__SENTRY__.acs){const n=t.__SENTRY__.acs.getCurrentHub();if(n)return n}return function(t=nn()){n=t,n&&n.__SENTRY__&&n.__SENTRY__.hub&&!sn(t).isOlderThan(4)||on(t,new tn);var n;return sn(t)}(t)}function sn(t){return x("hub",(()=>new tn),t)}function on(t,n){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0}function captureException(t,n){return rn().captureException(t,{captureContext:n})}function cn(t){rn().withScope(t)}function un(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function an(t,n){return e={sentry_key:t.publicKey,sentry_version:"7",...n&&{sentry_client:`${n.name}/${n.version}`}},Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&");var e}function fn(t,n={}){const e="string"==typeof n?n:n.tunnel,r="string"!=typeof n&&n.K?n.K.sdk:void 0;return e||`${function(t){return`${un(t)}${t.projectId}/envelope/`}(t)}?${an(t,r)}`}function hn(t,n,e,r){const i=Xt(e),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e&&e.sdk);const o=function(t,n,e,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&{dsn:R(r)},...i&&{trace:H({...i})}}}(t,i,r,n);delete t.sdkProcessingMetadata;return Lt(o,[[{type:s},t]])}const ln=[];function dn(t){const n=t.defaultIntegrations||[],e=t.integrations;let r;n.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(e)?[...n,...e]:"function"==typeof e?bt(e(n)):n;const i=function(t){const n={};return t.forEach((t=>{const{name:e}=t,r=n[e];r&&!r.isDefaultInstance&&t.isDefaultInstance||(n[e]=t)})),Object.keys(n).map((t=>n[t]))}(r),s=function(t,n){for(let e=0;e"Debug"===t.name));if(-1!==s){const[t]=i.splice(s,1);i.push(t)}return i}function pn(t,n){n[t.name]=t,-1===ln.indexOf(t.name)&&(t.setupOnce(Vt,rn),ln.push(t.name))}function yn(t,n,e,r){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=t,o={...n,event_id:n.event_id||e.event_id||dt(),timestamp:n.timestamp||At()},c=e.integrations||t.integrations.map((t=>t.name));!function(t,n){const{environment:e,release:r,dist:i,maxValueLength:s=250}=n;"environment"in t||(t.environment="environment"in n?e:Wt);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=p(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=p(o.value,s));const c=t.request;c&&c.url&&(c.url=p(c.url,s))}(o,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(o,c),void 0===n.type&&function(t,n){const e=$._sentryDebugIds;if(!e)return;let r;const i=mn.get(n);i?r=i:(r=new Map,mn.set(n,r));const s=Object.keys(e).reduce(((t,i)=>{let s;const o=r.get(i);o?s=o:(s=n(i),r.set(i,s));for(let n=s.length-1;n>=0;n--){const r=s[n];if(r.filename){t[r.filename]=e[i];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=s[t.filename])}))}))}catch(t){}}(o,t.stackParser);let u=r;e.captureContext&&(u=Kt.clone(u).update(e.captureContext));let a=St(o);if(u){if(u.getAttachments){const t=[...e.attachments||[],...u.getAttachments()];t.length&&(e.attachments=t)}a=u.applyToEvent(o,e)}return a.then((t=>(t&&function(t){const n={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.keys(n).forEach((t=>{e.push({type:"sourcemap",code_file:t,debug_id:n[t]})}))}(t),"number"==typeof i&&i>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:_t(t.data,n,e)}})))},...t.user&&{user:_t(t.user,n,e)},...t.contexts&&{contexts:_t(t.contexts,n,e)},...t.extra&&{extra:_t(t.extra,n,e)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=_t(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=_t(t.data,n,e)),t))));return r}(t,i,s):t)))}const mn=new WeakMap;function vn(t){return void 0===t.type}function gn(t){return"transaction"===t.type}function bn(t,n,e=kt(t.bufferSize||30)){let r={};function i(i){const s=[];if(Ut(i,((n,e)=>{const i=Ft(e);if(function(t,n,e=Date.now()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,i)){const r=_n(n,e);t.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(n)})),0===s.length)return St();const o=Lt(i[0],s),c=n=>{Ut(o,((e,r)=>{const i=_n(e,r);t.recordDroppedEvent(n,Ft(r),i)}))};return e.add((()=>n({body:qt(o,t.textEncoder)}).then((t=>(r=zt(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof A)return c("queue_overflow"),St();throw t}))}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>e.drain(t)}}function _n(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0}const wn="7.64.0";let En;class $n{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=$n.id}setupOnce(){En=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=U(this)||this;return En.apply(n,t)}}catch(t){}}}$n.__initStatic();const Sn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],xn=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class Tn{static __initStatic(){this.id="InboundFilters"}constructor(t={}){this.name=Tn.id,this.Y=t}setupOnce(t,n){const e=t=>{const e=n();if(e){const n=e.getIntegration(Tn);if(n){const r=e.getClient(),i=r?r.getOptions():{},s=function(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:Sn],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[],...t.disableTransactionDefaults?[]:xn],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(n.Y,i);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return!0;if(function(t,n){if(t.type||!n||!n.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception){const{values:n}=t.exception;try{const{type:t="",value:e=""}=n&&n[n.length-1]||{};return[`${e}`,`${t}: ${e}`]}catch(t){return[]}}return[]}(t).some((t=>v(t,n)))}(t,n.ignoreErrors))return!0;if(function(t,n){if("transaction"!==t.type||!n||!n.length)return!1;const e=t.transaction;return!!e&&v(e,n)}(t,n.ignoreTransactions))return!0;if(function(t,n){if(!n||!n.length)return!1;const e=kn(t);return!!e&&v(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n||!n.length)return!0;const e=kn(t);return!e||v(e,n)}(t,n.allowUrls))return!0;return!1}(t,s)?null:t}}return t};e.id=this.name,t(e)}}function kn(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?function(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&""!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(n):null}catch(t){return null}}Tn.__initStatic();var jn=Object.freeze({__proto__:null,FunctionToString:$n,InboundFilters:Tn});const On=$;let Dn=0;function Rn(){return Dn>0}function In(){Dn++,setTimeout((()=>{Dn--}))}function Mn(t,n={},e){if("function"!=typeof t)return t;try{const n=t.__sentry_wrapped__;if(n)return n;if(U(t))return t}catch(n){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);const i=r.map((t=>Mn(t,n)));return t.apply(this,i)}catch(t){throw In(),cn((e=>{e.addEventProcessor((t=>(n.mechanism&&(mt(t,void 0,void 0),vt(t,n.mechanism)),t.extra={...t.extra,arguments:r},t))),captureException(t)})),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}N(sentryWrapped,t),L(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function An(t,n){const e=Ln(t,n),r={type:n&&n.name,value:Un(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Cn(t,n){return{exception:{values:[An(t,n)]}}}function Ln(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Nn.test(t.message))return 1}return 0}(n);try{return t(e,r)}catch(t){}return[]}const Nn=/Minified React error #\d+;/i;function Un(t){const n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function Pn(t,n,e,r){const i=Bn(t,n,e&&e.syntheticException||void 0,r);return vt(i),i.level="error",e&&e.event_id&&(i.event_id=e.event_id),St(i)}function qn(t,n,e="info",r,i){const s=Hn(t,n,r&&r.syntheticException||void 0,i);return s.level=e,r&&r.event_id&&(s.event_id=r.event_id),St(s)}function Bn(t,n,e,r,u){let a;if(o(n)&&n.error){return Cn(t,n.error)}if(c(n)||s(n,"DOMException")){const i=n;if("stack"in n)a=Cn(t,n);else{const n=i.name||(c(i)?"DOMError":"DOMException"),s=i.message?`${n}: ${i.message}`:n;a=Hn(t,s,e,r),mt(a,s)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}if(i(n))return Cn(t,n);if(f(n)||h(n)){return a=function(t,n,e,r){const i=rn().getClient(),s=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:h(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:Fn(n,{isUnhandledRejection:r})}]},extra:{__serialized__:wt(n,s)}};if(e){const n=Ln(t,e);n.length&&(o.exception.values[0].stacktrace={frames:n})}return o}(t,n,e,u),vt(a,{synthetic:!0}),a}return a=Hn(t,n,e,r),mt(a,`${n}`,void 0),vt(a,{synthetic:!0}),a}function Hn(t,n,e,r){const i={message:n};if(r&&e){const r=Ln(t,e);r.length&&(i.exception={values:[{value:n,stacktrace:{frames:r}}]})}return i}function Fn(t,{isUnhandledRejection:n}){const e=function(t,n=40){const e=Object.keys(P(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=n)return p(e[0],n);for(let t=e.length;t>0;t--){const r=e.slice(0,t).join(", ");if(!(r.length>n))return t===e.length?r:p(r,n)}return""}(t),r=n?"promise rejection":"exception";if(o(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(h(t)){return`Event \`${function(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}const Xn=1024,zn="Breadcrumbs";class Wn{static __initStatic(){this.id=zn}constructor(t){this.name=Wn.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&rt("console",Gn),this.options.dom&&rt("dom",function(t){function n(n){let e,r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>Xn&&(i=Xn),"string"==typeof r&&(r=[r]);try{const t=n.event;e=function(t){return!!t&&!!t.target}(t)?k(t.target,{keyAttrs:r,maxStringLength:i}):k(t,{keyAttrs:r,maxStringLength:i})}catch(t){e=""}0!==e.length&&rn().addBreadcrumb({category:`ui.${n.name}`,message:e},{event:n.event,name:n.name,global:n.global})}return n}(this.options.dom)),this.options.xhr&&rt("xhr",Jn),this.options.fetch&&rt("fetch",Kn),this.options.history&&rt("history",Yn)}addSentryBreadcrumb(t){this.options.sentry&&rn().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:yt(t)},{event:t})}}function Gn(t){for(let n=0;nthis.st(t,n,e))).then((t=>{r=t}))),r}captureMessage(t,n,e,r){let i=e&&e.event_id;const s=a(t)?this.eventFromMessage(String(t),n,e):this.eventFromException(t,e);return this.it(s.then((t=>this.st(t,e,r))).then((t=>{i=t}))),i}captureEvent(t,n,e){if(n&&n.originalException&>(n.originalException))return;let r=n&&n.event_id;return this.it(this.st(t,n,e).then((t=>{r=t}))),r}captureSession(t){this.ot()&&("string"!=typeof t.release||(this.sendSession(t),Jt(t,{init:!1})))}getDsn(){return this.et}getOptions(){return this.Y}getSdkMetadata(){return this.Y.K}getTransport(){return this.rt}flush(t){const n=this.rt;return n?this.ct(t).then((e=>n.flush(t).then((t=>e&&t)))):St(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this.ot()&&!this.V&&(this._integrations=function(t){const n={};return t.forEach((t=>{t&&pn(t,n)})),n}(this.Y.integrations),this.V=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(t){return null}}addIntegration(t){pn(t,this._integrations)}sendEvent(t,n={}){if(this.et){let e=hn(t,this.et,this.Y.K,this.Y.tunnel);for(const t of n.attachments||[])e=Nt(e,Bt(t,this.Y.transportOptions&&this.Y.transportOptions.textEncoder));const r=this.ut(e);r&&r.then((n=>this.emit("afterSendEvent",t,n)),null)}}sendSession(t){if(this.et){const n=function(t,n,e,r){const i=Xt(e);return Lt({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:R(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.et,this.Y.K,this.Y.tunnel);this.ut(n)}}recordDroppedEvent(t,n,e){if(this.Y.sendClientReports){const e=`${t}:${n}`;this.tt[e]=this.tt[e]+1||1}}on(t,n){this.nt[t]||(this.nt[t]=[]),this.nt[t].push(n)}emit(t,...n){this.nt[t]&&this.nt[t].forEach((t=>t(...n)))}ft(t,n){let e=!1,r=!1;const i=n.exception&&n.exception.values;if(i){r=!0;for(const t of i){const n=t.mechanism;if(n&&!1===n.handled){e=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&e)&&(Jt(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}ct(t){return new Tt((n=>{let e=0;const r=setInterval((()=>{0==this.Z?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))}),1)}))}ot(){return!1!==this.getOptions().enabled&&void 0!==this.et}ht(t,n,e){const r=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),yn(r,t,n,e).then((t=>{if(null===t)return t;const{propagationContext:n}=t.sdkProcessingMetadata||{};if(!(t.contexts&&t.contexts.trace)&&n){const{traceId:r,spanId:i,parentSpanId:s,dsc:o}=n;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:s},...t.contexts};const c=o||function(t,n,e){const r=n.getOptions(),{publicKey:i}=n.getDsn()||{},{segment:s}=e&&e.getUser()||{},o=H({environment:r.environment||Wt,release:r.release,user_segment:s,public_key:i,trace_id:t});return n.emit&&n.emit("createDsc",o),o}(r,this,e);t.sdkProcessingMetadata={dynamicSamplingContext:c,...t.sdkProcessingMetadata}}return t}))}st(t,n={},e){return this.lt(t,n,e).then((t=>t.event_id),(t=>{}))}lt(t,n,e){const r=this.getOptions(),{sampleRate:i}=r;if(!this.ot())return xt(new A("SDK not enabled, will not capture event.","log"));const s=gn(t),o=vn(t),c=t.type||"error",u=`before send for type \`${c}\``;if(o&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),xt(new A(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const a="replay_event"===c?"replay":c;return this.ht(t,n,e).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",a,t),new A("An event processor returned `null`, will not send event.","log");if(n.data&&!0===n.data.__sentry__)return e;const i=function(t,n,e){const{beforeSend:r,beforeSendTransaction:i}=t;if(vn(n)&&r)return r(n,e);if(gn(n)&&i)return i(n,e);return n}(r,e,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;if(l(t))return t.then((t=>{if(!f(t)&&null!==t)throw new A(e);return t}),(t=>{throw new A(`${n} rejected with ${t}`)}));if(!f(t)&&null!==t)throw new A(e);return t}(i,u)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",a,t),new A(`${u} returned \`null\`, will not send event.`,"log");const i=e&&e.getSession();!s&&i&&this.ft(i,r);const o=r.transaction_info;if(s&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t}}return this.sendEvent(r,n),r})).then(null,(t=>{if(t instanceof A)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new A(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}it(t){this.Z++,t.then((t=>(this.Z--,t)),(t=>(this.Z--,t)))}ut(t){if(this.rt&&this.et)return this.emit("beforeEnvelope",t),this.rt.send(t).then(null,(t=>{}))}dt(){const t=this.tt;return this.tt={},Object.keys(t).map((n=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t[n]}}))}}{constructor(t){const n=On.SENTRY_SDK_SOURCE||"npm";t.K=t.K||{},t.K.sdk=t.K.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:wn}],version:wn},super(t),t.sendClientReports&&On.document&&On.document.addEventListener("visibilitychange",(()=>{"hidden"===On.document.visibilityState&&this.yt()}))}eventFromException(t,n){return Pn(this.Y.stackParser,t,n,this.Y.attachStacktrace)}eventFromMessage(t,n="info",e){return qn(this.Y.stackParser,t,n,e,this.Y.attachStacktrace)}sendEvent(t,n){const e=this.getIntegrationById(zn);e&&e.addSentryBreadcrumb&&e.addSentryBreadcrumb(t),super.sendEvent(t,n)}captureUserFeedback(t){if(!this.ot())return;const n=Vn(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.ut(n)}ht(t,n,e){return t.platform=t.platform||"javascript",super.ht(t,n,e)}yt(){const t=this.dt();if(0===t.length)return;if(!this.et)return;const n=(e=t,Lt((r=this.Y.tunnel&&R(this.et))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||At(),discarded_events:e}]]));var e,r,i;this.ut(n)}}let Zn;function te(t,n=function(){if(Zn)return Zn;if(V(On.fetch))return Zn=On.fetch.bind(On);const t=On.document;let n=On.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const r=e.contentWindow;r&&r.fetch&&(n=r.fetch),t.head.removeChild(e)}catch(t){}return Zn=n.bind(On)}()){let e=0,r=0;return bn(t,(function(i){const s=i.body.length;e+=s,r++;const o={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:e<=6e4&&r<15,...t.fetchOptions};try{return n(t.url,o).then((t=>(e-=s,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return Zn=void 0,e-=s,r--,xt(t)}}))}function ne(t){return bn(t,(function(n){return new Tt(((e,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&e({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const n in t.headers)Object.prototype.hasOwnProperty.call(t.headers,n)&&i.setRequestHeader(n,t.headers[n]);i.send(n.body)}))}))}const ee="?";function re(t,n,e,r){const i={filename:t,function:n,in_app:!0};return void 0!==e&&(i.lineno=e),void 0!==r&&(i.colno=r),i}const ie=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,se=/\((\S*)(?::(\d+))(?::(\d+))\)/,oe=[30,t=>{const n=ie.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=se.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=ge(n[1]||ee,n[2]);return re(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],ce=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ue=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ae=[50,t=>{const n=ce.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=ue.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}let t=n[3],e=n[1]||ee;return[e,t]=ge(e,t),re(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],fe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,he=[40,t=>{const n=fe.exec(t);return n?re(n[2],n[1]||ee,+n[3],n[4]?+n[4]:void 0):void 0}],le=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,de=[10,t=>{const n=le.exec(t);return n?re(n[2],n[3]||ee,+n[1]):void 0}],pe=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ye=[20,t=>{const n=pe.exec(t);return n?re(n[5],n[3]||n[4]||ee,+n[1],+n[2]):void 0}],me=[oe,ae,he],ve=W(...me),ge=(t,n)=>{const e=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return e||r?[-1!==t.indexOf("@")?t.split("@")[0]:ee,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};class be{static __initStatic(){this.id="GlobalHandlers"}constructor(t){this.name=be.id,this.Y={onerror:!0,onunhandledrejection:!0,...t},this.vt={onerror:_e,onunhandledrejection:we}}setupOnce(){Error.stackTraceLimit=50;const t=this.Y;for(const n in t){const e=this.vt[n];e&&t[n]&&(e(),this.vt[n]=void 0)}}}function _e(){rt("error",(t=>{const[n,e,r]=Se();if(!n.getIntegration(be))return;const{msg:i,url:s,line:c,column:a,error:f}=t;if(Rn()||f&&f.__sentry_own_request__)return;const h=void 0===f&&u(i)?function(t,n,e,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=o(t)?t.message:t,c="Error";const u=s.match(i);u&&(c=u[1],s=u[2]);return Ee({exception:{values:[{type:c,value:s}]}},n,e,r)}(i,s,c,a):Ee(Bn(e,f||i,void 0,r,!1),s,c,a);h.level="error",$e(n,f,h,"onerror")}))}function we(){rt("unhandledrejection",(t=>{const[n,e,r]=Se();if(!n.getIntegration(be))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(Rn()||i&&i.__sentry_own_request__)return!0;const s=a(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Bn(e,i,void 0,r,!0);s.level="error",$e(n,i,s,"onunhandledrejection")}))}function Ee(t,n,e,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},c=o.stacktrace=o.stacktrace||{},a=c.frames=c.frames||[],f=isNaN(parseInt(r,10))?void 0:r,h=isNaN(parseInt(e,10))?void 0:e,l=u(n)&&n.length>0?n:function(){try{return T.document.location.href}catch(t){return""}}();return 0===a.length&&a.push({colno:f,filename:l,function:"?",in_app:!0,lineno:h}),t}function $e(t,n,e,r){vt(e,{handled:!1,type:r}),t.captureEvent(e,{originalException:n})}function Se(){const t=rn(),n=t.getClient(),e=n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,e.stackParser,e.attachStacktrace]}be.__initStatic();const xe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Te{static __initStatic(){this.id="TryCatch"}constructor(t){this.name=Te.id,this.Y={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this.Y.setTimeout&&C(On,"setTimeout",ke),this.Y.setInterval&&C(On,"setInterval",ke),this.Y.requestAnimationFrame&&C(On,"requestAnimationFrame",je),this.Y.XMLHttpRequest&&"XMLHttpRequest"in On&&C(XMLHttpRequest.prototype,"send",Oe);const t=this.Y.eventTarget;if(t){(Array.isArray(t)?t:xe).forEach(De)}}}function ke(t){return function(...n){const e=n[0];return n[0]=Mn(e,{mechanism:{data:{function:J(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}function je(t){return function(n){return t.apply(this,[Mn(n,{mechanism:{data:{function:"requestAnimationFrame",handler:J(t)},handled:!0,type:"instrument"}})])}}function Oe(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"==typeof e[t]&&C(e,t,(function(n){const e={mechanism:{data:{function:t,handler:J(n)},handled:!0,type:"instrument"}},r=U(n);return r&&(e.mechanism.data.handler=J(r)),Mn(n,e)}))})),t.apply(this,n)}}function De(t){const n=On,e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(C(e,"addEventListener",(function(n){return function(e,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Mn(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:J(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.apply(this,[e,Mn(r,{mechanism:{data:{function:"addEventListener",handler:J(r),target:t},handled:!0,type:"instrument"}}),i])}})),C(e,"removeEventListener",(function(t){return function(n,e,r){const i=e;try{const e=i&&i.__sentry_wrapped__;e&&t.call(this,n,e,r)}catch(t){}return t.call(this,n,i,r)}})))}Te.__initStatic();class Re{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.name=Re.id,this.gt=t.key||"cause",this.bt=t.limit||5}setupOnce(t,n){t(((t,e)=>{const r=n(),i=r.getClient(),s=r.getIntegration(Re);if(!i||!s)return t;const o=i.getOptions();return g(An,o.stackParser,o.maxValueLength,s.gt,s.bt,t,e),t}))}}Re.__initStatic();class Ie{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Ie.id}setupOnce(){Vt((t=>{if(rn().getIntegration(Ie)){if(!On.navigator&&!On.location&&!On.document)return t;const n=t.request&&t.request.url||On.location&&On.location.href,{referrer:e}=On.document||{},{userAgent:r}=On.navigator||{},i={...t.request&&t.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}},s={...t.request,...n&&{url:n},headers:i};return{...t,request:s}}return t}))}}Ie.__initStatic();class Me{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Me.id}setupOnce(t,n){const e=t=>{if(t.type)return t;const e=n().getIntegration(Me);if(e){try{if(function(t,n){if(!n)return!1;if(function(t,n){const e=t.message,r=n.message;if(!e&&!r)return!1;if(e&&!r||!e&&r)return!1;if(e!==r)return!1;if(!Ce(t,n))return!1;if(!Ae(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=Le(n),r=Le(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!Ce(t,n))return!1;if(!Ae(t,n))return!1;return!0}(t,n))return!0;return!1}(t,e._t))return null}catch(n){return e._t=t}return e._t=t}return t};e.id=this.name,t(e)}}function Ae(t,n){let e=Ne(t),r=Ne(n);if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;if(e=e,r=r,r.length!==e.length)return!1;for(let t=0;t{void 0!==t&&t!==n&&qe(rn())}))}()},t.lastEventId=function(){return rn().lastEventId()},t.makeFetchTransport=te,t.makeMain=en,t.makeXHRTransport=ne,t.onLoad=function(t){t()},t.opera10StackLineParser=de,t.opera11StackLineParser=ye,t.setContext=function(t,n){rn().setContext(t,n)},t.setExtra=function(t,n){rn().setExtra(t,n)},t.setExtras=function(t){rn().setExtras(t)},t.setTag=function(t,n){rn().setTag(t,n)},t.setTags=function(t){rn().setTags(t)},t.setUser=function(t){rn().setUser(t)},t.showReportDialog=function(t={},n=rn()){if(!On.document)return;const{client:e,scope:r}=n.getStackTop(),i=t.dsn||e&&e.getDsn();if(!i)return;r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=n.lastEventId());const s=On.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(t,n){const e=M(t);if(!e)return"";const r=`${un(e)}embed/error-page/`;let i=`dsn=${R(e)}`;for(const t in n)if("dsn"!==t)if("user"===t){const t=n.user;if(!t)continue;t.name&&(i+=`&name=${encodeURIComponent(t.name)}`),t.email&&(i+=`&email=${encodeURIComponent(t.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${i}`}(i,t),t.onLoad&&(s.onload=t.onLoad);const o=On.document.head||On.document.body;o&&o.appendChild(s)},t.startTransaction=function(t,n){return rn().startTransaction({...t},n)},t.winjsStackLineParser=he,t.withScope=cn,t.wrap=function(t){return Mn(t)()},t}({}); //# sourceMappingURL=bundle.min.js.map