/* @license MIT https://github.com/getsentry/sentry-javascript/blob/master/LICENSE */ /*! @sentry/browser & @sentry/tracing 7.110.1 (2ce36d5) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){const n=Object.prototype.toString;function e(t){switch(n.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return l(t,Error)}}function r(t,e){return n.call(t)===`[object ${e}]`}function i(t){return r(t,"ErrorEvent")}function s(t){return r(t,"DOMError")}function o(t){return r(t,"String")}function c(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function u(t){return null===t||c(t)||"object"!=typeof t&&"function"!=typeof t}function a(t){return r(t,"Object")}function h(t){return"undefined"!=typeof Event&&l(t,Event)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function d(t){return"number"==typeof t&&t!=t}function l(t,n){try{return t instanceof n}catch(t){return!1}}function p(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}function m(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function g(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;nv(t,n,e)))}function b(t,n,e=250,r,i,s,o){if(!(s.exception&&s.exception.values&&o&&l(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=_(t,n,i,o.originalException,r,s.exception.values,c,0),a=e,u.map((t=>(t.value&&(t.value=m(t.value,a)),t)))))}function _(t,n,e,r,i,s,o,c){if(s.length>=e+1)return s;let u=[...s];if(l(r[i],Error)){w(o,c);const s=t(n,r[i]),a=u.length;S(s,i,a,c),u=_(t,n,e,r[i],i,[s,...u],s,a)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(l(r,Error)){w(o,c);const a=t(n,r),h=u.length;S(a,`errors[${s}]`,h,c),u=_(t,n,e,r,i,[a,...u],a,h)}})),u}function w(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:n}}function S(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 T(t){return t&&t.Math==Math?t:void 0}const E="object"==typeof globalThis&&T(globalThis)||"object"==typeof window&&T(window)||"object"==typeof self&&T(self)||"object"==typeof global&&T(global)||function(){return this}()||{};function $(){return E}function x(t,n,e){const r=e||E,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=n())}const k=$();function I(t,n={}){if(!t)return"";try{let e=t;const r=5,i=[];let s=0,o=0;const c=" > ",u=c.length;let a;const h=Array.isArray(n)?n:n.keyAttrs,f=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&s++1&&o+i.length*u+a.length>=f));)i.push(a),o+=a.length,e=e.parentNode;return i.reverse().join(c)}catch(t){return""}}function O(t,n){const e=t,r=[];let i,s,c,u,a;if(!e||!e.tagName)return"";if(k.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;r.push(e.tagName.toLowerCase());const h=n&&n.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(h&&h.length)h.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(e.id&&r.push(`#${e.id}`),i=e.className,i&&o(i))for(s=i.split(/\s+/),a=0;a{const r=R[t];e[t]=n[t],n[t]=r}));try{return t()}finally{r.forEach((t=>{n[t]=e[t]}))}}const D=function(){let t=!1;const n={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return C.forEach((t=>{n[t]=()=>{}})),n}(),N=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function A(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 L(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function P(t){const n="string"==typeof t?function(t){const n=N.exec(t);if(!n)return void M((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[e,r,i="",s,o="",c]=n.slice(1);let u="",a=c;const h=a.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),a=h.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return L({host:s,pass:i,path:u,projectId:a,port:o,protocol:e,publicKey:r})}(t):L(t);if(n)return n}class q 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 F(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);"function"==typeof i&&U(i,r),t[n]=i}function H(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch(t){}}function U(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e,H(t,"__sentry_original__",n)}catch(t){}}function B(t){return t.__sentry_original__}function W(t){if(e(t))return{message:t.message,name:t.name,stack:t.stack,...X(t)};if(h(t)){const n={type:t.type,target:z(t.target),currentTarget:z(t.currentTarget),...X(t)};return"undefined"!=typeof CustomEvent&&l(t,CustomEvent)&&(n.detail=t.detail),n}return t}function z(t){try{return n=t,"undefined"!=typeof Element&&l(n,Element)?I(t):Object.prototype.toString.call(t)}catch(t){return""}var n}function X(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 G(t){return J(t,new Map)}function J(t,n){if(function(t){if(!a(t))return!1;try{const n=Object.getPrototypeOf(t).constructor.name;return!n||"Object"===n}catch(t){return!0}}(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]=J(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(J(t,n))})),r}return t}const K=/\(error: (.*)\)/,V=/captureMessage|captureException/;function Y(...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=K.test(e)?e.replace(K,"$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(),V.test(n[n.length-1].function||"")&&(n.pop(),V.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 Q="";function Z(t){try{return t&&"function"==typeof t&&t.name||Q}catch(t){return Q}}const tt={},nt={};function et(t,n){tt[t]=tt[t]||[],tt[t].push(n)}function rt(t,n){nt[t]||(n(),nt[t]=!0)}function it(t,n){const e=t&&tt[t];if(e)for(const t of e)try{t(n)}catch(t){}}function st(){"console"in E&&C.forEach((function(t){t in E.console&&F(E.console,t,(function(n){return R[t]=n,function(...n){it("console",{args:n,level:t});const e=R[t];e&&e.apply(E.console,n)}}))}))}function ot(){const t=E,n=t.crypto||t.msCrypto;let e=()=>16*Math.random();try{if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");n&&n.getRandomValues&&(e=()=>{const t=new Uint8Array(1);return n.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function ct(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function ut(t){const{message:n,event_id:e}=t;if(n)return n;const r=ct(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"":e||""}function at(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 ht(t,n){const e=ct(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 ft(t){if(t&&t.__sentry_captured__)return!0;try{H(t,"__sentry_captured__",!0)}catch(t){}return!1}function dt(t){return Array.isArray(t)?t:[t]}const lt=E;let pt,mt,gt;function vt(){if(!lt.document)return;const t=it.bind(null,"dom"),n=yt(t,!0);lt.document.addEventListener("click",n,!1),lt.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const e=lt[n]&<[n].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(F(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=yt(t);o.handler=r,n.call(this,e,r,i)}o.refCount++}catch(t){}return n.call(this,e,r,i)}})),F(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)}})))}))}function yt(t,n=!1){return e=>{if(!e||e._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(e);if(function(t,n){return"keypress"===t&&(!n||!n.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}(e.type,r))return;H(e,"_sentryCaptured",!0),r&&!r._sentryId&&H(r,"_sentryId",ot());const i="keypress"===e.type?"input":e.type;if(!function(t){if(t.type!==mt)return!1;try{if(!t.target||t.target._sentryId!==gt)return!1}catch(t){}return!0}(e)){t({event:e,name:i,global:n}),mt=e.type,gt=r?r._sentryId:void 0}clearTimeout(pt),pt=lt.setTimeout((()=>{gt=void 0,mt=void 0}),1e3)}}const bt=$();function _t(){if(!("fetch"in bt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function wt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function St(t){const n="fetch";et(n,t),rt(n,Tt)}function Tt(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!_t())return!1;if(wt(bt.fetch))return!0;let t=!1;const n=bt.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=wt(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t})()&&F(E,"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:$t(n),method:Et(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:$t(n),method:Et(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(E,n).then((t=>(it("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw it("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}function Et(t,n){return!!t&&"object"==typeof t&&!!t[n]}function $t(t){return"string"==typeof t?t:t?Et(t,"url")?t.url:t.toString?t.toString():"":""}let xt=null;function kt(t){const n="error";et(n,t),rt(n,It)}function It(){xt=E.onerror,E.onerror=function(t,n,e,r,i){const s={column:r,error:i,line:e,msg:t,url:n};return it("error",s),!(!xt||xt.__SENTRY_LOADER__)&&xt.apply(this,arguments)},E.onerror.__SENTRY_INSTRUMENTED__=!0}let Ot=null;function jt(t){const n="unhandledrejection";et(n,t),rt(n,Ct)}function Ct(){Ot=E.onunhandledrejection,E.onunhandledrejection=function(t){const n=t;return it("unhandledrejection",n),!(Ot&&!Ot.__SENTRY_LOADER__)||Ot.apply(this,arguments)},E.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Rt=$();const Mt=E;let Dt;function Nt(t){const n="history";et(n,t),rt(n,At)}function At(){if(!function(){const t=Rt.chrome,n=t&&t.app&&t.app.runtime,e="history"in Rt&&!!Rt.history.pushState&&!!Rt.history.replaceState;return!n&&e}())return;const t=Mt.onpopstate;function n(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const t=Dt,n=String(e);Dt=n;it("history",{from:t,to:n})}return t.apply(this,n)}}Mt.onpopstate=function(...n){const e=Mt.location.href,r=Dt;Dt=e;if(it("history",{from:r,to:e}),t)try{return t.apply(this,n)}catch(t){}},F(Mt.history,"pushState",n),F(Mt.history,"replaceState",n)}const Lt=E;function Pt(t){et("xhr",t),rt("xhr",qt)}function qt(){if(!Lt.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;F(t,"open",(function(t){return function(...n){const e=Date.now(),r=o(n[0])?n[0].toUpperCase():void 0,i=function(t){if(o(t))return t;try{return t.toString()}catch(t){}return}(n[1]);if(!r||!i)return t.apply(this,n);this.__sentry_xhr_v3__={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const t=this.__sentry_xhr_v3__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}it("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:e,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?F(this,"onreadystatechange",(function(t){return function(...n){return s(),t.apply(this,n)}})):this.addEventListener("readystatechange",s),F(this,"setRequestHeader",(function(t){return function(...n){const[e,r]=n,i=this.__sentry_xhr_v3__;return i&&o(e)&&o(r)&&(i.request_headers[e.toLowerCase()]=r),t.apply(this,n)}})),t.apply(this,n)}})),F(t,"send",(function(t){return function(...n){const e=this.__sentry_xhr_v3__;if(!e)return t.apply(this,n);void 0!==n[0]&&(e.body=n[0]);return it("xhr",{args:[e.method,e.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}}))}function Ft(t,n=100,e=1/0){try{return Ut("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Ht(t,n=3,e=102400){const r=Ft(t,n);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>e?Ht(t,n-1,e):r;var i}function Ut(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){f[t]="[MaxProperties ~]";break}const n=m[t];f[t]=Ut(t,n,u-1,r,i),l++}return o(n),f}var Bt;function Wt(t){return new Xt((n=>{n(t)}))}function zt(t){return new Xt(((n,e)=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(Bt||(Bt={}));class Xt{constructor(t){Xt.prototype.__init.call(this),Xt.prototype.__init2.call(this),Xt.prototype.__init3.call(this),Xt.prototype.__init4.call(this),this.o=Bt.PENDING,this.u=[];try{t(this.h,this.l)}catch(t){this.l(t)}}then(t,n){return new Xt(((e,r)=>{this.u.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.p()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Xt(((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.h=t=>{this.m(Bt.RESOLVED,t)}}__init2(){this.l=t=>{this.m(Bt.REJECTED,t)}}__init3(){this.m=(t,n)=>{this.o===Bt.PENDING&&(f(n)?n.then(this.h,this.l):(this.o=t,this.v=n,this.p()))}}__init4(){this.p=()=>{if(this.o===Bt.PENDING)return;const t=this.u.slice();this.u=[],t.forEach((t=>{t[0]||(this.o===Bt.RESOLVED&&t[1](this.v),this.o===Bt.REJECTED&&t[2](this.v),t[0]=!0)}))}}}function Gt(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 Xt(((e,r)=>{let i=n.length;if(!i)return e(!0);const s=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{Wt(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 Kt=["fatal","error","warning","log","info","debug"];function Vt(t){return"warn"===t?"warning":Kt.includes(t)?t:"log"}function Yt(){return Date.now()/1e3}const Qt=function(){const{performance:t}=E;if(!t||!t.now)return Yt;const n=Date.now()-t.now(),e=null==t.timeOrigin?n:t.timeOrigin;return()=>(e+t.now())/1e3}(),Zt=(()=>{const{performance:t}=E;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=i{const e=on(n);for(const n of Object.keys(e))t[n]=e[n];return t}),{});else{if(!t)return;n=on(t)}const e=Object.entries(n).reduce(((t,[n,e])=>{if(n.match(en)){t[n.slice(nn.length)]=e}return t}),{});return Object.keys(e).length>0?e:void 0}function sn(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[n,e],r)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(e)}`,s=0===r?i:`${t},${i}`;return s.length>8192?t:s}),"")}(Object.entries(t).reduce(((t,[n,e])=>(e&&(t[`sentry-${n}`]=e),t)),{}))}function on(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[n,e])=>(t[n]=e,t)),{})}const cn=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function un(t){if(!t)return;const n=t.match(cn);if(!n)return;let e;return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}function an(t=ot(),n=ot().substring(16),e){let r="";return void 0!==e&&(r=e?"-1":"-0"),`${t}-${n}${r}`}function hn(t,n=[]){return[t,n]}function fn(t,n){const[e,r]=t;return[e,[...r,n]]}function dn(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function ln(t,n){return(n||new TextEncoder).encode(t)}function pn(t,n){const[e,r]=t;let i=JSON.stringify(e);function s(t){"string"==typeof i?i="string"==typeof t?i+t:[ln(i,n),t]:i.push("string"==typeof t?ln(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(Ft(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 mn(t,n){const e="string"==typeof t.data?ln(t.data,n):t.data;return[G({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const gn={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 vn(t){return gn[t]}function yn(t){if(!t||!t.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function bn(t,{statusCode:n,headers:e},r=Date.now()){const i={...t},s=e&&e["x-sentry-rate-limits"],o=e&&e["retry-after"];if(s)for(const t of s.trim().split(",")){const[n,e,,,s]=t.split(":",5),o=parseInt(n,10),c=1e3*(isNaN(o)?60:o);if(e)for(const t of e.split(";"))"metric_bucket"===t&&s&&!s.split(";").includes("custom")||(i[t]=r+c);else i.all=r+c}else o?i.all=r+function(t,n=Date.now()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-n}(o,r):429===n&&(i.all=r+6e4);return i}function _n(t,n){const e={type:n.name||n.constructor.name,value:n.message},r=function(t,n){return t(n.stack||"",1)}(t,n);return r.length&&(e.stacktrace={frames:r}),e}class wn{static __initStatic(){this.id="Feedback"}constructor(t){this.name=wn.id,M((()=>{console.warn("You are using new Feedback() even though this bundle does not include Feedback.")}))}setupOnce(){}openDialog(){}closeDialog(){}attachTo(){}createWidget(){}removeWidget(){}getWidget(){}remove(){}}wn.__initStatic();class Sn{static __initStatic(){this.id="Replay"}constructor(t){this.name=Sn.id,M((()=>{console.warn("You are using new Replay() even though this bundle does not include replay.")}))}setupOnce(){}start(){}stop(){}flush(){}}Sn.__initStatic();const Tn="production";function En(){return x("globalEventProcessors",(()=>[]))}function $n(t){En().push(t)}function xn(t,n,e,r=0){return new Xt(((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o({...n},e);f(c)?c.then((n=>xn(t,n,e,r+1).then(i))).then(null,s):xn(t,c,e,r+1).then(i).then(null,s)}}))}function kn(t){const n=Qt(),e={sid:ot(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return G({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(e)};return t&&In(e,t),e}function In(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||Qt(),n.abnormal_mechanism&&(t.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:ot()),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)}function On(t,n){let e={};n?e={status:n}:"ok"===t.status&&(e={status:"exited"}),In(t,e)}function jn(t){const{spanId:n,traceId:e}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:o,tags:c,origin:u}=Dn(t);return G({data:r,op:i,parent_span_id:s,span_id:n,status:o,tags:c,trace_id:e,origin:u})}function Cn(t){const{traceId:n,spanId:e}=t.spanContext();return an(n,e,Nn(t))}function Rn(t){return"number"==typeof t?Mn(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Mn(t.getTime()):Qt()}function Mn(t){return t>9999999999?t/1e3:t}function Dn(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function Nn(t){const{traceFlags:n}=t.spanContext();return Boolean(1&n)}function An(t,n,e,r,i,s){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=t,u={...n,event_id:n.event_id||e.event_id||ot(),timestamp:n.timestamp||Yt()},a=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:Tn);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=m(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=m(o.value,s));const c=t.request;c&&c.url&&(c.url=m(c.url,s))}(u,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(u,a),void 0===n.type&&function(t,n){const e=E._sentryDebugIds;if(!e)return;let r;const i=Ln.get(n);i?r=i:(r=new Map,Ln.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){}}(u,t.stackParser);const h=function(t,n){if(!n)return t;const e=t?t.clone():new ee;return e.update(n),e}(r,e.captureContext);e.mechanism&&ht(u,e.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],d=function(){ne||(ne=new ee);return ne}().getScopeData();if(s){Zn(d,s.getScopeData())}if(h){Zn(d,h.getScopeData())}const l=[...e.attachments||[],...d.attachments];l.length&&(e.attachments=l),Qn(u,d);return xn([...f,...En(),...d.eventProcessors],u,e).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 o&&o>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Ft(t.data,n,e)}})))},...t.user&&{user:Ft(t.user,n,e)},...t.contexts&&{contexts:Ft(t.contexts,n,e)},...t.extra&&{extra:Ft(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=Ft(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map((t=>{const r=Dn(t).data;return r&&(t.data=Ft(r,n,e)),t})));return r}(t,o,c):t)))}const Ln=new WeakMap;function Pn(t){if(t)return function(t){return t instanceof ee||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>qn.includes(t)))}(t)?{captureContext:t}:t}const qn=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function captureException(t,n){return he().captureException(t,Pn(n))}function Fn(t,n){return he().captureEvent(t,n)}function Hn(t,n){he().addBreadcrumb(t,n)}function Un(...t){const n=he();if(2===t.length){const[e,r]=t;return e?n.withScope((()=>(n.getStackTop().scope=e,r(e)))):n.withScope(r)}return n.withScope(t[0])}function Bn(){return he().getClient()}function Wn(){return he().getScope()}function zn(t){const n=Bn(),e=fe(),r=Wn(),{release:i,environment:s=Tn}=n&&n.getOptions()||{},{userAgent:o}=E.navigator||{},c=kn({release:i,environment:s,user:r.getUser()||e.getUser(),...o&&{userAgent:o},...t}),u=e.getSession();return u&&"ok"===u.status&&In(u,{status:"exited"}),Xn(),e.setSession(c),r.setSession(c),c}function Xn(){const t=fe(),n=Wn(),e=n.getSession()||t.getSession();e&&On(e),Gn(),t.setSession(),n.setSession()}function Gn(){const t=fe(),n=Wn(),e=Bn(),r=n.getSession()||t.getSession();r&&e&&e.captureSession&&e.captureSession(r)}function Jn(t=!1){t?Xn():Gn()}function Kn(t){return t.transaction}function Vn(t,n,e){const r=n.getOptions(),{publicKey:i}=n.getDsn()||{},{segment:s}=e&&e.getUser()||{},o=G({environment:r.environment||Tn,release:r.release,user_segment:s,public_key:i,trace_id:t});return n.emit&&n.emit("createDsc",o),o}function Yn(t){const n=Bn();if(!n)return{};const e=Vn(Dn(t).trace_id||"",n,Wn()),r=Kn(t);if(!r)return e;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:s,source:o}=r.metadata;null!=s&&(e.sample_rate=`${s}`);const c=Dn(r);return o&&"url"!==o&&(e.transaction=c.description),e.sampled=String(Nn(r)),n.emit&&n.emit("createDsc",e),e}function Qn(t,n){const{fingerprint:e,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=n;!function(t,n){const{extra:e,tags:r,user:i,contexts:s,level:o,transactionName:c}=n,u=G(e);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const a=G(r);a&&Object.keys(a).length&&(t.tags={...a,...t.tags});const h=G(i);h&&Object.keys(h).length&&(t.user={...h,...t.user});const f=G(s);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts});o&&(t.level=o);c&&(t.transaction=c)}(t,n),r&&function(t,n){t.contexts={trace:jn(n),...t.contexts};const e=Kn(n);if(e){t.sdkProcessingMetadata={dynamicSamplingContext:Yn(n),...t.sdkProcessingMetadata};const r=Dn(e).description;r&&(t.tags={transaction:r,...t.tags})}}(t,r),function(t,n){t.fingerprint=t.fingerprint?dt(t.fingerprint):[],n&&(t.fingerprint=t.fingerprint.concat(n));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,e),function(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:void 0}(t,i),function(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}(t,s)}function Zn(t,n){const{extra:e,tags:r,user:i,contexts:s,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:h,attachments:f,propagationContext:d,transactionName:l,span:p}=n;te(t,"extra",e),te(t,"tags",r),te(t,"user",i),te(t,"contexts",s),te(t,"sdkProcessingMetadata",c),o&&(t.level=o),l&&(t.transactionName=l),p&&(t.span=p),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),a.length&&(t.fingerprint=[...t.fingerprint,...a]),h.length&&(t.eventProcessors=[...t.eventProcessors,...h]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...d}}function te(t,n,e){if(e&&Object.keys(e).length){t[n]={...t[n]};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[n][r]=e[r])}}let ne;class ee{constructor(){this._=!1,this.S=[],this.T=[],this.k=[],this.I=[],this.O={},this.j={},this.C={},this.R={},this.M={},this.D=re()}static clone(t){return t?t.clone():new ee}clone(){const t=new ee;return t.k=[...this.k],t.j={...this.j},t.C={...this.C},t.R={...this.R},t.O=this.O,t.N=this.N,t.A=this.A,t.L=this.L,t.P=this.P,t.q=this.q,t.T=[...this.T],t.F=this.F,t.I=[...this.I],t.M={...this.M},t.D={...this.D},t.H=this.H,t}setClient(t){this.H=t}getClient(){return this.H}addScopeListener(t){this.S.push(t)}addEventProcessor(t){return this.T.push(t),this}setUser(t){return this.O=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this.L&&In(this.L,{user:t}),this.U(),this}getUser(){return this.O}getRequestSession(){return this.F}setRequestSession(t){return this.F=t,this}setTags(t){return this.j={...this.j,...t},this.U(),this}setTag(t,n){return this.j={...this.j,[t]:n},this.U(),this}setExtras(t){return this.C={...this.C,...t},this.U(),this}setExtra(t,n){return this.C={...this.C,[t]:n},this.U(),this}setFingerprint(t){return this.q=t,this.U(),this}setLevel(t){return this.N=t,this.U(),this}setTransactionName(t){return this.P=t,this.U(),this}setContext(t,n){return null===n?delete this.R[t]:this.R[t]=n,this.U(),this}setSpan(t){return this.A=t,this.U(),this}getSpan(){return this.A}getTransaction(){const t=this.A;return t&&t.transaction}setSession(t){return t?this.L=t:delete this.L,this.U(),this}getSession(){return this.L}update(t){if(!t)return this;const n="function"==typeof t?t(this):t;if(n instanceof ee){const t=n.getScopeData();this.j={...this.j,...t.tags},this.C={...this.C,...t.extra},this.R={...this.R,...t.contexts},t.user&&Object.keys(t.user).length&&(this.O=t.user),t.level&&(this.N=t.level),t.fingerprint.length&&(this.q=t.fingerprint),n.getRequestSession()&&(this.F=n.getRequestSession()),t.propagationContext&&(this.D=t.propagationContext)}else if(a(n)){const n=t;this.j={...this.j,...n.tags},this.C={...this.C,...n.extra},this.R={...this.R,...n.contexts},n.user&&(this.O=n.user),n.level&&(this.N=n.level),n.fingerprint&&(this.q=n.fingerprint),n.requestSession&&(this.F=n.requestSession),n.propagationContext&&(this.D=n.propagationContext)}return this}clear(){return this.k=[],this.j={},this.C={},this.O={},this.R={},this.N=void 0,this.P=void 0,this.q=void 0,this.F=void 0,this.A=void 0,this.L=void 0,this.U(),this.I=[],this.D=re(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:Yt(),...t},i=this.k;return i.push(r),this.k=i.length>e?i.slice(-e):i,this.U(),this}getLastBreadcrumb(){return this.k[this.k.length-1]}clearBreadcrumbs(){return this.k=[],this.U(),this}addAttachment(t){return this.I.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this.I=[],this}getScopeData(){const{k:t,I:n,R:e,j:r,C:i,O:s,N:o,q:c,T:u,D:a,M:h,P:f,A:d}=this;return{breadcrumbs:t,attachments:n,contexts:e,tags:r,extra:i,user:s,level:o,fingerprint:c||[],eventProcessors:u,propagationContext:a,sdkProcessingMetadata:h,transactionName:f,span:d}}applyToEvent(t,n={},e=[]){Qn(t,this.getScopeData());return xn([...e,...En(),...this.T],t,n)}setSDKProcessingMetadata(t){return this.M={...this.M,...t},this}setPropagationContext(t){return this.D=t,this}getPropagationContext(){return this.D}captureException(t,n){const e=n&&n.event_id?n.event_id:ot();if(!this.H)return D.warn("No client configured on scope - will not capture exception!"),e;const r=new Error("Sentry syntheticException");return this.H.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this),e}captureMessage(t,n,e){const r=e&&e.event_id?e.event_id:ot();if(!this.H)return D.warn("No client configured on scope - will not capture message!"),r;const i=new Error(t);return this.H.captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r},this),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:ot();return this.H?(this.H.captureEvent(t,{...n,event_id:e},this),e):(D.warn("No client configured on scope - will not capture event!"),e)}U(){this._||(this._=!0,this.S.forEach((t=>{t(this)})),this._=!1)}}function re(){return{traceId:ot(),spanId:ot().substring(16)}}const ie="7.110.1",se=parseFloat(ie),oe=100;class ce{constructor(t,n,e,r=se){let i,s;this.B=r,n?i=n:(i=new ee,i.setClient(t)),e?s=e:(s=new ee,s.setClient(t)),this.W=[{scope:i}],t&&this.bindClient(t),this.X=s}isOlderThan(t){return this.B(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.X}getStack(){return this.W}getStackTop(){return this.W[this.W.length-1]}captureException(t,n){const e=this.G=n&&n.event_id?n.event_id:ot(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...n,event_id:e}),e}captureMessage(t,n,e){const r=this.G=e&&e.event_id?e.event_id:ot(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r}),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:ot();return t.type||(this.G=e),this.getScope().captureEvent(t,{...n,event_id:e}),e}lastEventId(){return this.G}addBreadcrumb(t,n){const{scope:e,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=oe}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o={timestamp:Yt(),...t},c=i?M((()=>i(o,n))):o;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,n),e.addBreadcrumb(c,s))}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)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:e}=this.getStackTop();e&&t(n)}run(t){const n=ae(this);try{t(this)}finally{ae(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(t){return null}}startTransaction(t,n){const e=this.J("startTransaction",t,n);return e}traceHeaders(){return this.J("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.K()}endSession(){const t=this.getStackTop().scope,n=t.getSession();n&&On(n),this.K(),t.setSession()}startSession(t){const{scope:n,client:e}=this.getStackTop(),{release:r,environment:i=Tn}=e&&e.getOptions()||{},{userAgent:s}=E.navigator||{},o=kn({release:r,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession&&n.getSession();return c&&"ok"===c.status&&In(c,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}K(){const{scope:t,client:n}=this.getStackTop(),e=t.getSession();e&&n&&n.captureSession&&n.captureSession(e)}J(t,...n){const e=ue().__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n)}}function ue(){return E.__SENTRY__=E.__SENTRY__||{extensions:{},hub:void 0},E}function ae(t){const n=ue(),e=le(n);return pe(n,t),e}function he(){const t=ue();if(t.__SENTRY__&&t.__SENTRY__.acs){const n=t.__SENTRY__.acs.getCurrentHub();if(n)return n}return function(t=ue()){n=t,n&&n.__SENTRY__&&n.__SENTRY__.hub&&!le(t).isOlderThan(se)||pe(t,new ce);var n;return le(t)}(t)}function fe(){return he().getIsolationScope()}function de(t,n={}){const e=ue();return e.__SENTRY__&&e.__SENTRY__.acs?e.__SENTRY__.acs.runWithAsyncContext(t,n):t()}function le(t){return x("hub",(()=>new ce),t)}function pe(t,n){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0}function me(t){return(t||he()).getScope().getTransaction()}let ge=!1;function ve(){const t=me();if(t){const n="internal_error";t.setStatus(n)}}var ye;function be(t,n){t.setTag("http.status_code",String(n)),t.setData("http.response.status_code",n);const e=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(n);"unknown_error"!==e&&t.setStatus(e)}function _e(t,n,e=(()=>{})){let r;try{r=t()}catch(t){throw n(t),e(),t}return function(t,n,e){if(f(t))return t.then((t=>(e(),t)),(t=>{throw n(t),e(),t}));return e(),t}(r,n,e)}function we(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=Bn(),e=t||n&&n.getOptions();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}function Se(t){if(!we())return;const n=$e(t),e=he(),r=t.scope?t.scope.getSpan():Te();if(t.onlyIfParent&&!r)return;const i=(t.scope||Wn()).clone();return Ee(e,{parentSpan:r,spanContext:n,forceTransaction:t.forceTransaction,scope:i})}function Te(){return Wn().getSpan()}ve.tag="sentry_tracingErrorCallback",function(t){t.Ok="ok";t.DeadlineExceeded="deadline_exceeded";t.Unauthenticated="unauthenticated";t.PermissionDenied="permission_denied";t.NotFound="not_found";t.ResourceExhausted="resource_exhausted";t.InvalidArgument="invalid_argument";t.Unimplemented="unimplemented";t.Unavailable="unavailable";t.InternalError="internal_error";t.UnknownError="unknown_error";t.Cancelled="cancelled";t.AlreadyExists="already_exists";t.FailedPrecondition="failed_precondition";t.Aborted="aborted";t.OutOfRange="out_of_range";t.DataLoss="data_loss"}(ye||(ye={}));function Ee(t,{parentSpan:n,spanContext:e,forceTransaction:r,scope:i}){if(!we())return;const s=fe();let o;if(n&&!r)o=n.startChild(e);else if(n){const r=Yn(n),{traceId:i,spanId:s}=n.spanContext(),c=Nn(n);o=t.startTransaction({traceId:i,parentSpanId:s,parentSampled:c,...e,metadata:{dynamicSamplingContext:r,...e.metadata}})}else{const{traceId:n,dsc:r,parentSpanId:c,sampled:u}={...s.getPropagationContext(),...i.getPropagationContext()};o=t.startTransaction({traceId:n,parentSpanId:c,parentSampled:u,...e,metadata:{dynamicSamplingContext:r,...e.metadata}})}return i.setSpan(o),function(t,n,e){t&&(H(t,ke,e),H(t,xe,n))}(o,i,s),o}function $e(t){if(t.startTime){const n={...t};return n.startTimestamp=Rn(t.startTime),delete n.startTime,n}return t}const xe="_sentryScope",ke="_sentryIsolationScope";let Ie;function Oe(t){return Ie?Ie.get(t):void 0}function je(t){const n=Oe(t);if(!n)return;const e={};for(const[,[t,r]]of n)e[t]||(e[t]=[]),e[t].push(G(r));return e}const Ce="sentry.source",Re="sentry.sample_rate",Me="sentry.op",De="sentry.origin";class Ne{constructor(t=1e3){this.V=t,this.spans=[]}add(t){this.spans.length>this.V?t.spanRecorder=void 0:this.spans.push(t)}}class Ae{constructor(t={}){this.Y=t.traceId||ot(),this.Z=t.spanId||ot().substring(16),this.tt=t.startTimestamp||Qt(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this.nt={},this.setAttributes({[De]:t.origin||"manual",[Me]:t.op,...t.attributes}),this.et=t.name||t.description,t.parentSpanId&&(this.rt=t.parentSpanId),"sampled"in t&&(this.it=t.sampled),t.status&&(this.st=t.status),t.endTimestamp&&(this.ot=t.endTimestamp),void 0!==t.exclusiveTime&&(this.ct=t.exclusiveTime),this.ut=t.measurements?{...t.measurements}:{}}get name(){return this.et||""}set name(t){this.updateName(t)}get description(){return this.et}set description(t){this.et=t}get traceId(){return this.Y}set traceId(t){this.Y=t}get spanId(){return this.Z}set spanId(t){this.Z=t}set parentSpanId(t){this.rt=t}get parentSpanId(){return this.rt}get sampled(){return this.it}set sampled(t){this.it=t}get attributes(){return this.nt}set attributes(t){this.nt=t}get startTimestamp(){return this.tt}set startTimestamp(t){this.tt=t}get endTimestamp(){return this.ot}set endTimestamp(t){this.ot=t}get status(){return this.st}set status(t){this.st=t}get op(){return this.nt["sentry.op"]}set op(t){this.setAttribute(Me,t)}get origin(){return this.nt["sentry.origin"]}set origin(t){this.setAttribute(De,t)}spanContext(){const{Z:t,Y:n,it:e}=this;return{spanId:t,traceId:n,traceFlags:e?1:0}}startChild(t){const n=new Ae({...t,parentSpanId:this.Z,sampled:this.it,traceId:this.Y});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const e=Kn(this);return n.transaction=e,n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){void 0===n?delete this.nt[t]:this.nt[t]=n}setAttributes(t){Object.keys(t).forEach((n=>this.setAttribute(n,t[n])))}setStatus(t){return this.st=t,this}setHttpStatus(t){return be(this,t),this}setName(t){this.updateName(t)}updateName(t){return this.et=t,this}isSuccess(){return"ok"===this.st}finish(t){return this.end(t)}end(t){if(this.ot)return;Kn(this);this.ot=Rn(t)}toTraceparent(){return Cn(this)}toContext(){return G({data:this.ht(),description:this.et,endTimestamp:this.ot,op:this.op,parentSpanId:this.rt,sampled:this.it,spanId:this.Z,startTimestamp:this.tt,status:this.st,tags:this.tags,traceId:this.Y})}updateWithContext(t){return this.data=t.data||{},this.et=t.name||t.description,this.ot=t.endTimestamp,this.op=t.op,this.rt=t.parentSpanId,this.it=t.sampled,this.Z=t.spanId||this.Z,this.tt=t.startTimestamp||this.tt,this.st=t.status,this.tags=t.tags||{},this.Y=t.traceId||this.Y,this}getTraceContext(){return jn(this)}getSpanJSON(){return G({data:this.ht(),description:this.et,op:this.nt["sentry.op"],parent_span_id:this.rt,span_id:this.Z,start_timestamp:this.tt,status:this.st,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.ot,trace_id:this.Y,origin:this.nt["sentry.origin"],ft:je(this),profile_id:this.nt.profile_id,exclusive_time:this.ct,measurements:Object.keys(this.ut).length>0?this.ut:void 0})}isRecording(){return!this.ot&&!!this.it}toJSON(){return this.getSpanJSON()}ht(){const{data:t,nt:n}=this,e=Object.keys(t).length>0,r=Object.keys(n).length>0;if(e||r)return e&&r?{...t,...n}:e?t:n}}class Le extends Ae{constructor(t,n){super(t),this.R={},this.dt=n||he(),this.et=t.name||"",this.lt={...t.metadata},this.gt=t.trimEnd,this.transaction=this;const e=this.lt.dynamicSamplingContext;e&&(this._frozenDynamicSamplingContext={...e})}get name(){return this.et}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this.lt,...this.nt["sentry.source"]&&{source:this.nt["sentry.source"]},...this.nt["sentry.sample_rate"]&&{sampleRate:this.nt["sentry.sample_rate"]}}}set metadata(t){this.lt=t}setName(t,n="custom"){this.et=t,this.setAttribute(Ce,n)}updateName(t){return this.et=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Ne(t)),this.spanRecorder.add(this)}setContext(t,n){null===n?delete this.R[t]:this.R[t]=n}setMeasurement(t,n,e=""){this.ut[t]={value:n,unit:e}}setMetadata(t){this.lt={...this.lt,...t}}end(t){const n=Rn(t),e=this.vt(n);if(e)return this.dt.captureEvent(e)}toContext(){return G({...super.toContext(),name:this.et,trimEnd:this.gt})}updateWithContext(t){return super.updateWithContext(t),this.et=t.name||"",this.gt=t.trimEnd,this}getDynamicSamplingContext(){return Yn(this)}setHub(t){this.dt=t}getProfileId(){if(void 0!==this.R&&void 0!==this.R.profile)return this.R.profile.profile_id}vt(t){if(void 0!==this.ot)return;this.et||(this.et=""),super.end(t);const n=this.dt.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),!0!==this.it)return void(n&&n.recordDroppedEvent("sample_rate","transaction"));const e=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&Dn(t).timestamp)):[];if(this.gt&&e.length>0){const t=e.map((t=>Dn(t).timestamp)).filter(Boolean);this.ot=t.reduce(((t,n)=>t>n?t:n))}const{scope:r,isolationScope:i}={scope:(s=this).yt,isolationScope:s.bt};var s;const{metadata:o}=this,{source:c}=o,u={contexts:{...this.R,trace:jn(this)},spans:e,start_timestamp:this.tt,tags:this.tags,timestamp:this.ot,transaction:this.et,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:r,capturedSpanIsolationScope:i,...G({dynamicSamplingContext:Yn(this)})},ft:je(this),...c&&{transaction_info:{source:c}}};return Object.keys(this.ut).length>0&&(u.measurements=this.ut),u}}const Pe={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},qe=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Fe extends Ne{constructor(t,n,e,r){super(r),this._t=t,this.wt=n,this.transactionSpanId=e}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...e)=>(this.wt(t.spanContext().spanId),n.apply(t,e)),void 0===Dn(t).timestamp&&this._t(t.spanContext().spanId)}super.add(t)}}class He extends Le{constructor(t,n,e=Pe.idleTimeout,r=Pe.finalTimeout,i=Pe.heartbeatInterval,s=!1,o=!1){super(t,n),this.St=n,this.Tt=e,this.Et=r,this.$t=i,this.xt=s,this.activities={},this.kt=0,this.It=!1,this.Ot=!1,this.jt=[],this.Ct=qe[4],this.Rt=!o,s&&n.getScope().setSpan(this),o||this.Mt(),setTimeout((()=>{this.It||(this.setStatus("deadline_exceeded"),this.Ct=qe[3],this.end())}),this.Et)}end(t){const n=Rn(t);if(this.It=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this.Ct),this.spanRecorder){for(const t of this.jt)t(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;Dn(t).timestamp||(t.setStatus("cancelled"),t.end(n));const{start_timestamp:e,timestamp:r}=Dn(t),i=e&&e{this.It||this._t(t)},e=t=>{this.It||this.wt(t)};this.spanRecorder=new Fe(n,e,this.spanContext().spanId,t),this.Dt()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this.Ot=!1===n,this.Nt&&(clearTimeout(this.Nt),this.Nt=void 0,0===Object.keys(this.activities).length&&this.Ot&&(this.Ct=qe[5],this.end(t)))}setFinishReason(t){this.Ct=t}sendAutoFinishSignal(){this.Rt||(this.Mt(),this.Rt=!0)}Mt(t){this.cancelIdleTimeout(),this.Nt=setTimeout((()=>{this.It||0!==Object.keys(this.activities).length||(this.Ct=qe[1],this.end(t))}),this.Tt)}_t(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this.Ot}),this.activities[t]=!0}wt(t){if(this.activities[t]&&delete this.activities[t],0===Object.keys(this.activities).length){const t=Qt();this.Ot?this.Rt&&(this.Ct=qe[5],this.end(t)):this.Mt(t+this.Tt/1e3)}}At(){if(this.It)return;const t=Object.keys(this.activities).join("");t===this.Lt?this.kt++:this.kt=1,this.Lt=t,this.kt>=3?this.Rt&&(this.setStatus("deadline_exceeded"),this.Ct=qe[0],this.end()):this.Dt()}Dt(){setTimeout((()=>{this.At()}),this.$t)}}function Ue(t,n,e){if(!we(n))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setAttribute(Re,Number(t.sampled)),t;let r;return"function"==typeof n.tracesSampler?(r=n.tracesSampler(e),t.setAttribute(Re,Number(r))):void 0!==e.parentSampled?r=e.parentSampled:void 0!==n.tracesSampleRate?(r=n.tracesSampleRate,t.setAttribute(Re,Number(r))):(r=1,t.setAttribute(Re,r)),Be(r)&&r?(t.sampled=Math.random()1)}function We(){const t=this.getScope().getSpan();return t?{"sentry-trace":Cn(t)}:{}}function ze(t,n){const e=this.getClient(),r=e&&e.getOptions()||{};(r.instrumenter||"sentry")!==(t.instrumenter||"sentry")&&(t.sampled=!1);let i=new Le(t,this);return i=Ue(i,r,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...n}),i.isRecording()&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),e&&e.emit&&e.emit("startTransaction",i),i}function Xe(t,n,e,r,i,s,o,c=!1){const u=t.getClient(),a=u&&u.getOptions()||{};let h=new He(n,t,e,r,o,i,c);return h=Ue(h,a,{name:n.name,parentSampled:n.parentSampled,transactionContext:n,attributes:{...n.data,...n.attributes},...s}),h.isRecording()&&h.initSpanRecorder(a._experiments&&a._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",h),h}function Ge(){const t=ue();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=ze),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=We),ge||(ge=!0,kt(ve),jt(ve)))}function Je(t,n,e,r){const i=yn(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&&r&&{dsn:A(r)},...i&&{trace:G({...i})}}}(t,i,r,n);delete t.sdkProcessingMetadata;return hn(o,[[{type:s},t]])}function Ke(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function Ve(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 Ye(t,n={}){const e="string"==typeof n?n:n.tunnel,r="string"!=typeof n&&n.lt?n.lt.sdk:void 0;return e||`${function(t){return`${Ke(t)}${t.projectId}/envelope/`}(t)}?${Ve(t,r)}`}const Qe=[];function Ze(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?dt(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 tr(t,n){for(const e of n)e&&e.afterAllSetup&&e.afterAllSetup(t)}function nr(t,n,e){if(!e[n.name]){if(e[n.name]=n,-1===Qe.indexOf(n.name)&&(n.setupOnce($n,he),Qe.push(n.name)),n.setup&&"function"==typeof n.setup&&n.setup(t),t.on&&"function"==typeof n.preprocessEvent){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",((n,r)=>e(n,r,t)))}if(t.addEventProcessor&&"function"==typeof n.processEvent){const e=n.processEvent.bind(n),r=Object.assign(((n,r)=>e(n,r,t)),{id:n.name});t.addEventProcessor(r)}}}function er(t,n){return Object.assign((function(...t){return n(...t)}),{id:t})}function rr(t){return t.replace(/[^\w\-./]+/gi,"")}const ir=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function sr(t){return[...t].reduce(((t,n)=>t+function(t){for(const[n,e]of ir)if(t===n)return e;return t}(n)),"")}function or(t,n,e,r){const i={sent_at:(new Date).toISOString()};e&&e.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),r&&n&&(i.dsn=A(n));const s=function(t){const n=function(t){let n="";for(const e of t){const t=Object.entries(e.tags),r=t.length>0?`|#${t.map((([t,n])=>`${t}:${n}`)).join(",")}`:"";n+=`${e.name}@${e.unit}:${e.metric}|${e.metricType}${r}|T${e.timestamp}\n`}return n}(t);return[{type:"statsd",length:n.length},n]}(t);return hn(i,[s])}function cr(t){return void 0===t.type}function ur(t){return"transaction"===t.type}const ar={c:class{constructor(t){this.v=t}get weight(){return 1}add(t){this.v+=t}toString(){return`${this.v}`}},g:class{constructor(t){this.Pt=t,this.qt=t,this.Ft=t,this.Ht=t,this.Ut=1}get weight(){return 5}add(t){this.Pt=t,tthis.Ft&&(this.Ft=t),this.Ht+=t,this.Ut++}toString(){return`${this.Pt}:${this.qt}:${this.Ft}:${this.Ht}:${this.Ut}`}},d:class{constructor(t){this.v=[t]}get weight(){return this.v.length}add(t){this.v.push(t)}toString(){return this.v.join(":")}},s:class{constructor(t){this.first=t,this.v=new Set([t])}get weight(){return this.v.size}add(t){this.v.add(t)}toString(){return Array.from(this.v).map((t=>"string"==typeof t?function(t){let n=0;for(let e=0;e>>0}(t):t)).join(":")}}};function hr(t){const n=he().getStackTop();n.client=t,n.scope.setClient(t)}function fr(t,n,e=Gt(t.bufferSize||30)){let r={};function i(i){const s=[];if(dn(i,((n,e)=>{const i=vn(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=dr(n,e);t.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(n)})),0===s.length)return Wt();const o=hn(i[0],s),c=n=>{dn(o,((e,r)=>{const i=dr(e,r);t.recordDroppedEvent(n,vn(r),i)}))};return e.add((()=>n({body:pn(o,t.textEncoder)}).then((t=>(r=bn(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof q)return c("queue_overflow"),Wt();throw t}))}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>e.drain(t)}}function dr(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0}function lr(t){return[{type:"span"},t]}const pr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],mr=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],gr="InboundFilters",vr=(t={})=>({name:gr,setupOnce(){},processEvent(n,e,r){const i=r.getOptions(),s=function(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:pr],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[],...t.disableTransactionDefaults?[]:mr],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,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){const n=[];t.message&&n.push(t.message);let e;try{e=t.exception.values[t.exception.values.length-1]}catch(t){}e&&e.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`));return n}(t).some((t=>y(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&&y(e,n)}(t,n.ignoreTransactions))return!0;if(function(t,n){if(!n||!n.length)return!1;const e=br(t);return!!e&&y(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n||!n.length)return!0;const e=br(t);return!e||y(e,n)}(t,n.allowUrls))return!0;return!1}(n,s)?null:n}}),yr=er(gr,vr);function br(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}}let _r;const wr="FunctionToString",Sr=new WeakMap,Tr=()=>({name:wr,setupOnce(){_r=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=B(this),e=Sr.has(Bn())&&void 0!==n?n:this;return _r.apply(e,t)}}catch(t){}},setup(t){Sr.set(t,!0)}}),Er=er(wr,Tr),$r="LinkedErrors",xr=er($r,((t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:$r,setupOnce(){},preprocessEvent(t,r,i){const s=i.getOptions();b(_n,s.stackParser,s.maxValueLength,e,n,t,r)}}}));var kr=Object.freeze({__proto__:null,FunctionToString:Er,InboundFilters:yr,LinkedErrors:xr});class Ir{constructor(t){this.H=t,this.Bt=new Map,this.Wt=setInterval((()=>this.flush()),5e3)}add(t,n,e,r="none",i={},s=Qt()){const o=Math.floor(s),c=n.replace(/[^\w\-.]+/gi,"_");const u=function(t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[rr(e)]=sr(String(t[e])));return n}(i),a=function(t){return t.replace(/[^\w]+/gi,"_")}(r),h=function(t,n,e,r){return`${t}${n}${e}${Object.entries(G(r)).sort(((t,n)=>t[0].localeCompare(n[0])))}`}(t,c,a,u);let f=this.Bt.get(h);const d=f&&"s"===t?f.metric.weight:0;f?(f.metric.add(e),f.timestampt));this.H.captureAggregateMetrics(t)}this.Bt.clear()}}close(){clearInterval(this.Wt),this.flush()}}const Or="MetricsAggregator",jr=()=>({name:Or,setupOnce(){},setup(t){t.metricsAggregator=new Ir(t)}});function Cr(t,n,e,r={}){const i=Bn(),s=Wn();if(i){if(!i.metricsAggregator)return;const{unit:o,tags:c,timestamp:u}=r,{release:a,environment:h}=i.getOptions(),f=s.getTransaction(),d={};a&&(d.release=a),h&&(d.environment=h),f&&(d.transaction=Dn(f).description||""),i.metricsAggregator.add(t,n,e,o,{...d,...c},u)}}const Rr={increment:function(t,n=1,e){Cr("c",t,n,e)},distribution:function(t,n,e){Cr("d",t,n,e)},set:function(t,n,e){Cr("s",t,n,e)},gauge:function(t,n,e){Cr("g",t,n,e)},MetricsAggregator:er(Or,jr),metricsAggregatorIntegration:jr},Mr=kr,Dr=E;const Nr=(t,n,e)=>{let r,i;return s=>{n.value>=0&&(s||e)&&(i=n.value-(r||0),(i||void 0===r)&&(r=n.value,n.delta=i,t(n)))}},Ar=()=>Dr.__WEB_VITALS_POLYFILL__?Dr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=Dr.performance.timing,n=Dr.performance.navigation.type,e={entryType:"navigation",startTime:0,type:2==n?"back_forward":1===n?"reload":"navigate"};for(const n in t)"navigationStart"!==n&&"toJSON"!==n&&(e[n]=Math.max(t[n]-t.navigationStart,0));return e})()):Dr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Lr=()=>{const t=Ar();return t&&t.activationStart||0},Pr=(t,n)=>{const e=Ar();let r="navigate";return e&&(r=Dr.document.prerendering||Lr()>0?"prerender":e.type.replace(/_/g,"-")),{name:t,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},qr=(t,n,e)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{n(t.getEntries())}));return r.observe(Object.assign({type:t,buffered:!0},e||{})),r}}catch(t){}},Fr=(t,n)=>{const e=r=>{"pagehide"!==r.type&&"hidden"!==Dr.document.visibilityState||(t(r),n&&(removeEventListener("visibilitychange",e,!0),removeEventListener("pagehide",e,!0)))};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)};let Hr=-1;const Ur=()=>(Hr<0&&(Hr="hidden"!==Dr.document.visibilityState||Dr.document.prerendering?1/0:0,Fr((({timeStamp:t})=>{Hr=t}),!0)),{get firstHiddenTime(){return Hr}});let Br=0,Wr=1/0,zr=0;const Xr=t=>{t.forEach((t=>{t.interactionId&&(Wr=Math.min(Wr,t.interactionId),zr=Math.max(zr,t.interactionId),Br=zr?(zr-Wr)/7+1:0)}))};let Gr;const Jr=()=>{"interactionCount"in performance||Gr||(Gr=qr("event",Xr,{type:"event",buffered:!0,durationThreshold:0}))},Kr=()=>Gr?Br:performance.interactionCount||0,Vr=[],Yr={},Qr=t=>{const n=Vr[Vr.length-1],e=Yr[t.interactionId];if(e||Vr.length<10||t.duration>n.latency){if(e)e.entries.push(t),e.latency=Math.max(e.latency,t.duration);else{const n={id:t.interactionId,latency:t.duration,entries:[t]};Yr[n.id]=n,Vr.push(n)}Vr.sort(((t,n)=>n.latency-t.latency)),Vr.splice(10).forEach((t=>{delete Yr[t.id]}))}},Zr=(t,n)=>{n=n||{},Jr();const e=Pr("INP");let r;const i=t=>{t.forEach((t=>{if(t.interactionId&&Qr(t),"first-input"===t.entryType){!Vr.some((n=>n.entries.some((n=>t.duration===n.duration&&t.startTime===n.startTime))))&&Qr(t)}}));const n=(()=>{const t=Math.min(Vr.length-1,Math.floor(Kr()/50));return Vr[t]})();n&&n.latency!==e.value&&(e.value=n.latency,e.entries=n.entries,r())},s=qr("event",i,{durationThreshold:n.durationThreshold||40});r=Nr(t,e,n.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),Fr((()=>{i(s.takeRecords()),e.value<0&&Kr()>0&&(e.value=0,e.entries=[]),r(!0)})))},ti={},ni=t=>{Dr.document&&(Dr.document.prerendering?addEventListener("prerenderingchange",(()=>ni(t)),!0):"complete"!==Dr.document.readyState?addEventListener("load",(()=>ni(t)),!0):setTimeout(t,0))},ei={},ri={};let ii,si,oi,ci,ui;function ai(t,n){return vi(t,n),ri[t]||(!function(t){const n={};"event"===t&&(n.durationThreshold=0);qr(t,(n=>{hi(t,{entries:n})}),n)}(t),ri[t]=!0),yi(t,n)}function hi(t,n){const e=ei[t];if(e&&e.length)for(const t of e)try{t(n)}catch(t){}}function fi(){return(t=>{const n=Pr("CLS",0);let e,r=0,i=[];const s=t=>{t.forEach((t=>{if(!t.hadRecentInput){const s=i[0],o=i[i.length-1];r&&0!==i.length&&t.startTime-o.startTime<1e3&&t.startTime-s.startTime<5e3?(r+=t.value,i.push(t)):(r=t.value,i=[t]),r>n.value&&(n.value=r,n.entries=i,e&&e())}}))},o=qr("layout-shift",s);if(o){e=Nr(t,n);const r=()=>{s(o.takeRecords()),e(!0)};return Fr(r),r}})((t=>{hi("cls",{metric:t}),ii=t}))}function di(){return(t=>{const n=Ur(),e=Pr("FID");let r;const i=t=>{t.startTime{t.forEach(i)},o=qr("first-input",s);r=Nr(t,e),o&&Fr((()=>{s(o.takeRecords()),o.disconnect()}),!0)})((t=>{hi("fid",{metric:t}),si=t}))}function li(){return(t=>{const n=Ur(),e=Pr("LCP");let r;const i=t=>{const i=t[t.length-1];if(i){const t=Math.max(i.startTime-Lr(),0);t{ti[e.id]||(i(s.takeRecords()),s.disconnect(),ti[e.id]=!0,r(!0))};return["keydown","click"].forEach((t=>{addEventListener(t,n,{once:!0,capture:!0})})),Fr(n,!0),n}})((t=>{hi("lcp",{metric:t}),oi=t}))}function pi(){return((t,n)=>{n=n||{};const e=Pr("TTFB"),r=Nr(t,e,n.reportAllChanges);ni((()=>{const t=Ar();if(t){if(e.value=Math.max(t.responseStart-Lr(),0),e.value<0||e.value>performance.now())return;e.entries=[t],r(!0)}}))})((t=>{hi("ttfb",{metric:t}),ci=t}))}function mi(){return Zr((t=>{hi("inp",{metric:t}),ui=t}))}function gi(t,n,e,r,i=!1){let s;return vi(t,n),ri[t]||(s=e(),ri[t]=!0),r&&n({metric:r}),yi(t,n,i?s:void 0)}function vi(t,n){ei[t]=ei[t]||[],ei[t].push(n)}function yi(t,n,e){return()=>{e&&e();const r=ei[t];if(!r)return;const i=r.indexOf(n);-1!==i&&r.splice(i,1)}}function bi(t){return"number"==typeof t&&isFinite(t)}function _i(t,{startTimestamp:n,...e}){return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild({startTimestamp:n,...e})}function wi(t){return t/1e3}function Si(){return Dr&&Dr.addEventListener&&Dr.performance}let Ti,Ei,$i=0,xi={};function ki(){const t=Si();if(t&&Zt){t.mark&&Dr.performance.mark("sentry-tracing-init");const n=gi("fid",(({metric:t})=>{const n=t.entries[t.entries.length-1];if(!n)return;const e=wi(Zt),r=wi(n.startTime);xi.fid={value:t.value,unit:"millisecond"},xi["mark.fid"]={value:e+r,unit:"second"}}),di,si),e=function(t,n=!1){return gi("cls",t,fi,ii,n)}((({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(xi.cls={value:t.value,unit:""},Ei=n)}),!0),r=function(t,n=!1){return gi("lcp",t,li,oi,n)}((({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(xi.lcp={value:t.value,unit:"millisecond"},Ti=n)}),!0),i=function(t){return gi("ttfb",t,pi,ci)}((({metric:t})=>{t.entries[t.entries.length-1]&&(xi.ttfb={value:t.value,unit:"millisecond"})}));return()=>{n(),e(),r(),i()}}return()=>{}}function Ii(t,n){if(Si()&&Zt){const e=function(t,n){return e=({metric:e})=>{if(void 0===e.value)return;const r=e.entries.find((t=>t.duration===e.value&&void 0!==Oi[t.name])),i=Bn();if(!r||!i)return;const s=Oi[r.name],o=i.getOptions(),c=wi(Zt+r.startTime),u=wi(e.value),a=void 0!==r.interactionId?t[r.interactionId]:void 0;if(void 0===a)return;const{routeName:h,parentContext:f,activeTransaction:d,user:l,replayId:p}=a,m=void 0!==l?l.email||l.id||l.ip_address:void 0,g=void 0!==d?d.getProfileId():void 0,v=new Ae({startTimestamp:c,endTimestamp:c+u,op:`ui.interaction.${s}`,name:I(r.target),attributes:{release:o.release,environment:o.environment,transaction:h,...void 0!==m&&""!==m?{user:m}:{},...void 0!==g?{profile_id:g}:{},...void 0!==p?{replay_id:p}:{}},exclusiveTime:e.value,measurements:{inp:{value:e.value,unit:"millisecond"}}}),y=function(t,n,e){if(!we(n))return!1;let r;return r=void 0!==t&&"function"==typeof n.tracesSampler?n.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{...t.data,...t.attributes},location:Dr.location}):void 0!==t&&void 0!==t.sampled?t.sampled:void 0!==n.tracesSampleRate?n.tracesSampleRate:1,!!Be(r)&&(!0===r?e:!1===r?0:r*e)}(f,o,n);if(y&&Math.random(){}))}},gi("inp",e,mi,ui);var e}(t,n);return()=>{e()}}return()=>{}}const Oi={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ji(t){const n=Si();if(!n||!Dr.performance.getEntries||!Zt)return;const e=wi(Zt),r=n.getEntries(),{op:i,start_timestamp:s}=Dn(t);if(r.slice($i).forEach((n=>{const r=wi(n.startTime),i=wi(n.duration);if(!("navigation"===t.op&&s&&e+r{Ci(t,n,r,e)})),Ci(t,n,"secureConnection",e,"TLS/SSL","connectEnd"),Ci(t,n,"fetch",e,"cache","domainLookupStart"),Ci(t,n,"domainLookup",e,"DNS"),function(t,n,e){n.responseEnd&&(_i(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:e+wi(n.requestStart),endTimestamp:e+wi(n.responseEnd)}),_i(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:e+wi(n.responseStart),endTimestamp:e+wi(n.responseEnd)}))}(t,n,e)}(t,n,e);break;case"mark":case"paint":case"measure":{!function(t,n,e,r,i){const s=i+e,o=s+r;_i(t,{description:n.name,endTimestamp:o,op:n.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(t,n,r,i,e);const s=Ur(),o=n.startTime{if(!xi[t]||!s||e>=s)return;const n=xi[t].value,r=e+wi(n),i=Math.abs(1e3*(r-s));xi[t].value=i}));const n=xi["mark.fid"];n&&xi.fid&&(_i(t,{description:"first input delay",endTimestamp:n.value+wi(xi.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:n.value}),delete xi["mark.fid"]),"fcp"in xi||delete xi.cls,Object.keys(xi).forEach((t=>{!function(t,n,e){const r=me();r&&r.setMeasurement(t,n,e)}(t,xi[t].value,xi[t].unit)})),function(t){Ti&&(Ti.element&&t.setTag("lcp.element",I(Ti.element)),Ti.id&&t.setTag("lcp.id",Ti.id),Ti.url&&t.setTag("lcp.url",Ti.url.trim().slice(0,200)),t.setTag("lcp.size",Ti.size));Ei&&Ei.sources&&Ei.sources.forEach(((n,e)=>t.setTag(`cls.source.${e+1}`,I(n.node))))}(t)}Ti=void 0,Ei=void 0,xi={}}function Ci(t,n,e,r,i,s){const o=s?n[s]:n[`${e}End`],c=n[`${e}Start`];c&&o&&_i(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||e,startTimestamp:r+wi(c),endTimestamp:r+wi(o)})}function Ri(t,n,e,r){const i=n[e];null!=i&&i<2147483647&&(t[r]=i)}function Mi(t,n,e,r,i="auto.http.browser"){if(!we()||!t.fetchData)return;const s=n(t.fetchData.url);if(t.endTimestamp&&s){const n=t.fetchData.__span;if(!n)return;const e=r[n];if(e){if(t.response){be(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end(),delete r[n]}return}const o=Wn(),c=Bn(),{method:u,url:a}=t.fetchData,h=s?Se({name:`${u} ${a}`,onlyIfParent:!0,attributes:{url:a,type:"fetch","http.method":u,[De]:i},op:"http.client"}):void 0;if(h&&(t.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h),e(t.fetchData.url)&&c){const n=t.args[0];t.args[1]=t.args[1]||{};const e=t.args[1];e.headers=function(t,n,e,r,i){const s=i||e.getSpan(),o=fe(),{traceId:c,spanId:u,sampled:a,dsc:h}={...o.getPropagationContext(),...e.getPropagationContext()},f=s?Cn(s):an(c,u,a),d=sn(h||(s?Yn(s):Vn(c,n,e))),p=r.headers||("undefined"!=typeof Request&&l(t,Request)?t.headers:void 0);if(p){if("undefined"!=typeof Headers&&l(p,Headers)){const t=new Headers(p);return t.append("sentry-trace",f),d&&t.append(tn,d),t}if(Array.isArray(p)){const t=[...p,["sentry-trace",f]];return d&&t.push([tn,d]),t}{const t="baggage"in p?p.baggage:void 0,n=[];return Array.isArray(t)?n.push(...t):t&&n.push(t),d&&n.push(d),{...p,"sentry-trace":f,baggage:n.length>0?n.join(","):void 0}}}return{"sentry-trace":f,baggage:d}}(n,c,o,e,h)}return h}const Di=["localhost",/^\/(?!\/)/],Ni={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Di,tracePropagationTargets:Di};function Ai(t){const{traceFetch:n,traceXHR:e,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o}={traceFetch:Ni.traceFetch,traceXHR:Ni.traceXHR,...t},c="function"==typeof s?s:t=>!0,u=t=>function(t,n){return y(t,n||Di)}(t,r||i),a={};n&&St((t=>{const n=Mi(t,c,u,a);o&&n&&Li(n)})),e&&Pt((t=>{const n=function(t,n,e,r){const i=t.xhr,s=i&&i.__sentry_xhr_v3__;if(!we()||!i||i.__sentry_own_request__||!s)return;const o=n(s.url);if(t.endTimestamp&&o){const t=i.__sentry_xhr_span_id__;if(!t)return;const n=r[t];return void(n&&void 0!==s.status_code&&(be(n,s.status_code),n.end(),delete r[t]))}const c=Wn(),u=fe(),a=o?Se({name:`${s.method} ${s.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":s.method,url:s.url,[De]:"auto.http.browser"},op:"http.client"}):void 0;a&&(i.__sentry_xhr_span_id__=a.spanContext().spanId,r[i.__sentry_xhr_span_id__]=a);const h=Bn();if(i.setRequestHeader&&e(s.url)&&h){const{traceId:t,spanId:n,sampled:e,dsc:r}={...u.getPropagationContext(),...c.getPropagationContext()};!function(t,n,e){try{t.setRequestHeader("sentry-trace",n),e&&t.setRequestHeader(tn,e)}catch(t){}}(i,a?Cn(a):an(t,n,e),sn(r||(a?Yn(a):Vn(t,h,c))))}return a}(t,c,u,a);o&&n&&Li(n)}))}function Li(t){const{url:n}=Dn(t).data||{};if(!n||"string"!=typeof n)return;const e=ai("resource",(({entries:r})=>{r.forEach((r=>{if(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}(r)&&r.name.endsWith(n)){(function(t){const{name:n,version:e}=function(t){let n="unknown",e="unknown",r="";for(const i of t){if("/"===i){[n,e]=t.split("/");break}if(!isNaN(Number(i))){n="h"===r?"http":r,e=t.split(r)[1];break}r+=i}r===t&&(n=r);return{name:n,version:e}}(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",e],["network.protocol.name",n]),!Zt)return r;return[...r,["http.request.redirect_start",Pi(t.redirectStart)],["http.request.fetch_start",Pi(t.fetchStart)],["http.request.domain_lookup_start",Pi(t.domainLookupStart)],["http.request.domain_lookup_end",Pi(t.domainLookupEnd)],["http.request.connect_start",Pi(t.connectStart)],["http.request.secure_connection_start",Pi(t.secureConnectionStart)],["http.request.connection_end",Pi(t.connectEnd)],["http.request.request_start",Pi(t.requestStart)],["http.request.response_start",Pi(t.responseStart)],["http.request.response_end",Pi(t.responseEnd)]]})(r).forEach((n=>t.setAttribute(...n))),setTimeout(e)}}))}))}function Pi(t=0){return((Zt||performance.timeOrigin)+t)/1e3}const qi={...Pe,markBackgroundTransactions:!0,routingInstrumentation:function(t,n=!0,e=!0){if(!Dr||!Dr.location)return;let r,i=Dr.location.href;n&&(r=t({name:Dr.location.pathname,startTimestamp:Zt?Zt/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),e&&Nt((({to:n,from:e})=>{void 0===e&&i&&-1!==i.indexOf(n)?i=void 0:e!==n&&(i=void 0,r&&r.end(),r=t({name:Dr.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Ni};class Fi{constructor(t){this.name="BrowserTracing",this.zt=!1,Ge(),this.options={...qi,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this.Xt=ki(),this.Gt={},this.options.enableInp&&Ii(this.Gt,this.options.interactionsSampleRate),this.options.enableLongTask&&ai("longtask",(({entries:t})=>{for(const n of t){const t=me();if(!t)return;const e=wi(Zt+n.startTime),r=wi(n.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:e,endTimestamp:e+r})}})),this.options._experiments.enableInteractions&&ai("event",(({entries:t})=>{for(const n of t){const t=me();if(!t)return;if("click"===n.name){const e=wi(Zt+n.startTime),r=wi(n.duration),i={description:I(n.target),op:`ui.interaction.${n.name}`,origin:"auto.ui.browser.metrics",startTimestamp:e,endTimestamp:e+r},s=j(n.target);s&&(i.attributes={"ui.component_name":s}),t.startChild(i)}}})),this.Jt={name:void 0,context:void 0}}setupOnce(t,n){this.Kt=n;const e=n().getClient(),r=e&&e.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:o,markBackgroundTransactions:c,traceFetch:u,traceXHR:a,shouldCreateSpanForRequest:h,enableHTTPTimings:f,_experiments:d}=this.options,l=r&&r.tracePropagationTargets,p=l||this.options.tracePropagationTargets;i((t=>{const e=this.Vt(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(e,t,n),e}),o,s),c&&Dr&&Dr.document&&Dr.document.addEventListener("visibilitychange",(()=>{const t=me();if(Dr.document.hidden&&t){const n="cancelled",{op:e,status:r}=Dn(t);r||t.setStatus(n),t.setTag("visibilitychange","document.hidden"),t.end()}})),d.enableInteractions&&this.Yt(),this.options.enableInp&&this.Qt(),Ai({traceFetch:u,traceXHR:a,tracePropagationTargets:p,shouldCreateSpanForRequest:h,enableHTTPTimings:f})}Vt(t){if(!this.Kt)return;const n=this.Kt(),{beforeNavigate:e,idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,o="pageload"===t.op;let c;if(o){const n=o?Hi("sentry-trace"):"",e=o?Hi("baggage"):void 0,{traceId:r,dsc:i,parentSpanId:s,sampled:u}=function(t,n){const e=un(t),r=rn(n),{traceId:i,parentSpanId:s,parentSampled:o}=e||{};return e?{traceId:i||ot(),parentSpanId:s||ot().substring(16),spanId:ot().substring(16),sampled:o,dsc:r||{}}:{traceId:i||ot(),spanId:ot().substring(16)}}(n,e);c={traceId:r,parentSpanId:s,parentSampled:u,...t,metadata:{...t.metadata,dynamicSamplingContext:i},trimEnd:!0}}else c={trimEnd:!0,...t};const u="function"==typeof e?e(c):c,a=void 0===u?{...c,sampled:!1}:u;a.metadata=a.name!==c.name?{...a.metadata,source:"custom"}:a.metadata,this.Jt.name=a.name,this.Jt.context=a,a.sampled;const{location:h}=Dr,f=Xe(n,a,r,i,!0,{location:h},s,o);return o&&(Dr.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(Dr.document.readyState)&&f.sendAutoFinishSignal()})),["interactive","complete"].includes(Dr.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback((t=>{this.Xt(),ji(t)})),f}Yt(){let t;const n=()=>{const{idleTimeout:n,finalTimeout:e,heartbeatInterval:r}=this.options,i=me();if(i&&i.op&&["navigation","pageload"].includes(i.op))return;if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this.Kt)return;if(!this.Jt.name)return;const s=this.Kt(),{location:o}=Dr,c={name:this.Jt.name,op:"ui.action.click",trimEnd:!0,data:{[Ce]:this.Jt.context?Ui(this.Jt.context):"url"}};t=Xe(s,c,n,e,!0,{location:o},r)};["click"].forEach((t=>{addEventListener(t,n,{once:!1,capture:!0})}))}Qt(){const t=({entries:t})=>{const n=Bn(),e=void 0!==n&&void 0!==n.getIntegrationByName?n.getIntegrationByName("Replay"):void 0,r=void 0!==e?e.getReplayId():void 0,i=me(),s=Wn(),o=void 0!==s?s.getUser():void 0;t.forEach((t=>{if(function(t){return"duration"in t}(t)){const n=t.interactionId;if(void 0===n)return;const e=this.Gt[n],s=t.duration,c=t.startTime,u=Object.keys(this.Gt),a=u.length>0?u.reduce(((t,n)=>this.Gt[t].durationthis.Gt[t])).some((t=>t.duration===s&&t.startTime===c)))return}if(!n)return;if(e)e.duration=Math.max(e.duration,s);else if(u.length<10||void 0===a||s>this.Gt[a].duration){const t=this.Jt.name,e=this.Jt.context;t&&e&&(a&&Object.keys(this.Gt).length>=10&&delete this.Gt[a],this.Gt[n]={routeName:t,duration:s,parentContext:e,user:o,activeTransaction:i,replayId:r,startTime:c})}}}))};ai("event",t),ai("first-input",t)}}function Hi(t){const n=(e=`meta[name=${t}]`,k.document&&k.document.querySelector?k.document.querySelector(e):null);var e;return n?n.getAttribute("content"):void 0}function Ui(t){const n=t.attributes&&t.attributes["sentry.source"],e=t.data&&t.data["sentry.source"],r=t.metadata&&t.metadata.source;return n||e||r}function Bi(){Ge()}const Wi=E;let zi=0;function Xi(){return zi>0}function Gi(){zi++,setTimeout((()=>{zi--}))}function Ji(t,n={},e){if("function"!=typeof t)return t;try{const n=t.__sentry_wrapped__;if(n)return n;if(B(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=>Ji(t,n)));return t.apply(this,i)}catch(t){throw Gi(),Un((e=>{e.addEventProcessor((t=>(n.mechanism&&(at(t,void 0,void 0),ht(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){}U(sentryWrapped,t),H(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function Ki(t,n){const e=Yi(t,n),r={type:n&&n.name,value:Zi(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Vi(t,n){return{exception:{values:[Ki(t,n)]}}}function Yi(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Qi.test(t.message))return 1}return 0}(n);try{return t(e,r)}catch(t){}return[]}const Qi=/Minified React error #\d+;/i;function Zi(t){const n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function ts(t,n,e,r){const i=es(t,n,e&&e.syntheticException||void 0,r);return ht(i),i.level="error",e&&e.event_id&&(i.event_id=e.event_id),Wt(i)}function ns(t,n,e="info",r,i){const s=rs(t,n,r&&r.syntheticException||void 0,i);return s.level=e,r&&r.event_id&&(s.event_id=r.event_id),Wt(s)}function es(t,n,o,c,u){let f;if(i(n)&&n.error){return Vi(t,n.error)}if(s(n)||r(n,"DOMException")){const e=n;if("stack"in n)f=Vi(t,n);else{const n=e.name||(s(e)?"DOMError":"DOMException"),r=e.message?`${n}: ${e.message}`:n;f=rs(t,r,o,c),at(f,r)}return"code"in e&&(f.tags={...f.tags,"DOMException.code":`${e.code}`}),f}if(e(n))return Vi(t,n);if(a(n)||h(n)){return f=function(t,n,e,r){const i=Bn(),s=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:h(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:is(n,{isUnhandledRejection:r})}]},extra:{__serialized__:Ht(n,s)}};if(e){const n=Yi(t,e);n.length&&(o.exception.values[0].stacktrace={frames:n})}return o}(t,n,o,u),ht(f,{synthetic:!0}),f}return f=rs(t,n,o,c),at(f,`${n}`,void 0),ht(f,{synthetic:!0}),f}function rs(t,n,e,r){const i={};if(r&&e){const r=Yi(t,e);r.length&&(i.exception={values:[{value:n,stacktrace:{frames:r}}]})}if(c(n)){const{__sentry_template_string__:t,__sentry_template_values__:e}=n;return i.logentry={message:t,params:e},i}return i.message=n,i}function is(t,{isUnhandledRejection:n}){const e=function(t,n=40){const e=Object.keys(W(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=n)return m(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:m(r,n)}return""}(t),r=n?"promise rejection":"exception";if(i(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}`}function ss(t,{metadata:n,tunnel:e,dsn:r}){const i={event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!e&&!!r&&{dsn:A(r)}},s=function(t){return[{type:"user_report"},t]}(t);return hn(i,[s])}class os extends class{constructor(t){if(this.Zt=t,this._integrations={},this.tn=!1,this.nn=0,this.en={},this.rn={},this.T=[],t.dsn&&(this.sn=P(t.dsn)),this.sn){const n=Ye(this.sn,t);this.cn=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,e){if(ft(t))return;let r=n&&n.event_id;return this.un(this.eventFromException(t,n).then((t=>this.an(t,n,e))).then((t=>{r=t}))),r}captureMessage(t,n,e,r){let i=e&&e.event_id;const s=c(t)?t:String(t),o=u(t)?this.eventFromMessage(s,n,e):this.eventFromException(t,e);return this.un(o.then((t=>this.an(t,e,r))).then((t=>{i=t}))),i}captureEvent(t,n,e){if(n&&n.originalException&&ft(n.originalException))return;let r=n&&n.event_id;const i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this.un(this.an(t,n,i||e).then((t=>{r=t}))),r}captureSession(t){"string"!=typeof t.release||(this.sendSession(t),In(t,{init:!1}))}getDsn(){return this.sn}getOptions(){return this.Zt}getSdkMetadata(){return this.Zt.lt}getTransport(){return this.cn}flush(t){const n=this.cn;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this.hn(t).then((e=>n.flush(t).then((t=>e&&t))))):Wt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t)))}getEventProcessors(){return this.T}addEventProcessor(t){this.T.push(t)}setupIntegrations(t){(t&&!this.tn||this.fn()&&!this.tn)&&this.dn()}init(){this.fn()&&this.dn()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(t){return null}}addIntegration(t){const n=this._integrations[t.name];nr(this,t,this._integrations),n||tr(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let e=Je(t,this.sn,this.Zt.lt,this.Zt.tunnel);for(const t of n.attachments||[])e=fn(e,mn(t,this.Zt.transportOptions&&this.Zt.transportOptions.textEncoder));const r=this.ln(e);r&&r.then((n=>this.emit("afterSendEvent",t,n)),null)}sendSession(t){const n=function(t,n,e,r){const i=yn(e);return hn({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&n&&{dsn:A(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.sn,this.Zt.lt,this.Zt.tunnel);this.ln(n)}recordDroppedEvent(t,n,e){if(this.Zt.sendClientReports){const e=`${t}:${n}`;this.en[e]=this.en[e]+1||1}}captureAggregateMetrics(t){const n=or(t,this.sn,this.Zt.lt,this.Zt.tunnel);this.ln(n)}on(t,n){this.rn[t]||(this.rn[t]=[]),this.rn[t].push(n)}emit(t,...n){this.rn[t]&&this.rn[t].forEach((t=>t(...n)))}dn(){const{integrations:t}=this.Zt;this._integrations=function(t,n){const e={};return n.forEach((n=>{n&&nr(t,n,e)})),e}(this,t),tr(this,t),this.tn=!0}pn(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)&&(In(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}hn(t){return new Xt((n=>{let e=0;const r=setInterval((()=>{0==this.nn?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))}),1)}))}fn(){return!1!==this.getOptions().enabled&&void 0!==this.cn}mn(t,n,e,r=fe()){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),An(i,t,n,e,this,r).then((t=>{if(null===t)return t;const n={...r.getPropagationContext(),...e?e.getPropagationContext():void 0};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||Vn(r,this,e);t.sdkProcessingMetadata={dynamicSamplingContext:c,...t.sdkProcessingMetadata}}return t}))}an(t,n={},e){return this.gn(t,n,e).then((t=>t.event_id),(t=>{}))}gn(t,n,e){const r=this.getOptions(),{sampleRate:i}=r,s=ur(t),o=cr(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),zt(new q(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const h="replay_event"===c?"replay":c,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this.mn(t,n,e,d).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",h,t),new q("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(cr(n)&&r)return r(n,e);if(ur(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(f(t))return t.then((t=>{if(!a(t)&&null!==t)throw new q(e);return t}),(t=>{throw new q(`${n} rejected with ${t}`)}));if(!a(t)&&null!==t)throw new q(e);return t}(i,u)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",h,t),new q(`${u} returned \`null\`, will not send event.`,"log");const i=e&&e.getSession();!s&&i&&this.pn(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 q)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new q(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}un(t){this.nn++,t.then((t=>(this.nn--,t)),(t=>(this.nn--,t)))}ln(t){if(this.emit("beforeEnvelope",t),this.fn()&&this.cn)return this.cn.send(t).then(null,(t=>{}))}vn(){const t=this.en;return this.en={},Object.keys(t).map((n=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t[n]}}))}}{constructor(t){!function(t,n,e=[n],r="npm"){const i=t.lt||{};i.sdk||(i.sdk={name:`sentry.javascript.${n}`,packages:e.map((t=>({name:`${r}:@sentry/${t}`,version:ie}))),version:ie}),t.lt=i}(t,"browser",["browser"],Wi.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Wi.document&&Wi.document.addEventListener("visibilitychange",(()=>{"hidden"===Wi.document.visibilityState&&this.yn()}))}eventFromException(t,n){return ts(this.Zt.stackParser,t,n,this.Zt.attachStacktrace)}eventFromMessage(t,n="info",e){return ns(this.Zt.stackParser,t,n,e,this.Zt.attachStacktrace)}captureUserFeedback(t){if(!this.fn())return;const n=ss(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.ln(n)}mn(t,n,e){return t.platform=t.platform||"javascript",super.mn(t,n,e)}yn(){const t=this.vn();if(0===t.length)return;if(!this.sn)return;const n=(e=t,hn((r=this.Zt.tunnel&&A(this.sn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||Yt(),discarded_events:e}]]));var e,r,i;this.ln(n)}}let cs;function us(t,n=function(){if(cs)return cs;if(wt(Wi.fetch))return cs=Wi.fetch.bind(Wi);const t=Wi.document;let n=Wi.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 cs=n.bind(Wi)}()){let e=0,r=0;return fr(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 cs=void 0,e-=s,r--,zt(t)}}))}function as(t){return fr(t,(function(n){return new Xt(((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 hs="?";function fs(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 ds=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ls=/\((\S*)(?::(\d+))(?::(\d+))\)/,ps=[30,t=>{const n=ds.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=ls.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=xs(n[1]||hs,n[2]);return fs(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],ms=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,gs=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,vs=[50,t=>{const n=ms.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=gs.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]||hs;return[e,t]=xs(e,t),fs(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],ys=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,bs=[40,t=>{const n=ys.exec(t);return n?fs(n[2],n[1]||hs,+n[3],n[4]?+n[4]:void 0):void 0}],_s=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,ws=[10,t=>{const n=_s.exec(t);return n?fs(n[2],n[3]||hs,+n[1]):void 0}],Ss=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Ts=[20,t=>{const n=Ss.exec(t);return n?fs(n[5],n[3]||n[4]||hs,+n[1],+n[2]):void 0}],Es=[ps,vs,bs],$s=Y(...Es),xs=(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]:hs,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]},ks=1024,Is="Breadcrumbs",Os=(t={})=>{const n={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Is,setupOnce(){},setup(t){var e;n.console&&function(t){const n="console";et(n,t),rt(n,st)}(function(t){return function(n){if(Bn()!==t)return;const e={category:"console",data:{arguments:n.args,logger:"console"},level:Vt(n.level),message:g(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;e.message=`Assertion failed: ${g(n.args.slice(1)," ")||"console.assert"}`,e.data.arguments=n.args.slice(1)}Hn(e,{input:n.args,level:n.level})}}(t)),n.dom&&(e=function(t,n){return function(e){if(Bn()!==t)return;let r,i,s="object"==typeof n?n.serializeAttribute:void 0,o="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;o&&o>ks&&(o=ks),"string"==typeof s&&(s=[s]);try{const t=e.event,n=function(t){return!!t&&!!t.target}(t)?t.target:t;r=I(n,{keyAttrs:s,maxStringLength:o}),i=j(n)}catch(t){r=""}if(0===r.length)return;const c={category:`ui.${e.name}`,message:r};i&&(c.data={"ui.component_name":i}),Hn(c,{event:e.event,name:e.name,global:e.global})}}(t,n.dom),et("dom",e),rt("dom",vt)),n.xhr&&Pt(function(t){return function(n){if(Bn()!==t)return;const{startTimestamp:e,endTimestamp:r}=n,i=n.xhr.__sentry_xhr_v3__;if(!e||!r||!i)return;const{method:s,url:o,status_code:c,body:u}=i;Hn({category:"xhr",data:{method:s,url:o,status_code:c},type:"http"},{xhr:n.xhr,input:u,startTimestamp:e,endTimestamp:r})}}(t)),n.fetch&&St(function(t){return function(n){if(Bn()!==t)return;const{startTimestamp:e,endTimestamp:r}=n;if(r&&(!n.fetchData.url.match(/sentry_key/)||"POST"!==n.fetchData.method))if(n.error){Hn({category:"fetch",data:n.fetchData,level:"error",type:"http"},{data:n.error,input:n.args,startTimestamp:e,endTimestamp:r})}else{const t=n.response;Hn({category:"fetch",data:{...n.fetchData,status_code:t&&t.status},type:"http"},{input:n.args,response:t,startTimestamp:e,endTimestamp:r})}}}(t)),n.history&&Nt(function(t){return function(n){if(Bn()!==t)return;let e=n.from,r=n.to;const i=Jt(Wi.location.href);let s=e?Jt(e):void 0;const o=Jt(r);s&&s.path||(s=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===s.protocol&&i.host===s.host&&(e=s.relative),Hn({category:"navigation",data:{from:e,to:r}})}}(t)),n.sentry&&t.on&&t.on("beforeSendEvent",function(t){return function(n){Bn()===t&&Hn({category:"sentry."+("transaction"===n.type?"transaction":"event"),event_id:n.event_id,level:n.level,message:ut(n)},{event:n})}}(t))}}},js=er(Is,Os);const Cs="Dedupe",Rs=()=>{let t;return{name:Cs,setupOnce(){},processEvent(n){if(n.type)return n;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(!Ns(t,n))return!1;if(!Ds(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=As(n),r=As(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!Ns(t,n))return!1;if(!Ds(t,n))return!1;return!0}(t,n))return!0;return!1}(n,t))return null}catch(t){}return t=n}}},Ms=er(Cs,Rs);function Ds(t,n){let e=Ls(t),r=Ls(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{const n={onerror:!0,onunhandledrejection:!0,...t};return{name:Ps,setupOnce(){Error.stackTraceLimit=50},setup(t){n.onerror&&function(t){kt((n=>{const{stackParser:e,attachStacktrace:r}=Us();if(Bn()!==t||Xi())return;const{msg:s,url:c,line:u,column:a,error:h}=n,f=void 0===h&&o(s)?function(t,n,e,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=i(t)?t.message:t,c="Error";const u=o.match(s);u&&(c=u[1],o=u[2]);return Hs({exception:{values:[{type:c,value:o}]}},n,e,r)}(s,c,u,a):Hs(es(e,h||s,void 0,r,!1),c,u,a);f.level="error",Fn(f,{originalException:h,mechanism:{handled:!1,type:"onerror"}})}))}(t),n.onunhandledrejection&&function(t){jt((n=>{const{stackParser:e,attachStacktrace:r}=Us();if(Bn()!==t||Xi())return;const i=function(t){if(u(t))return t;const n=t;try{if("reason"in n)return n.reason;if("detail"in n&&"reason"in n.detail)return n.detail.reason}catch(t){}return t}(n),s=u(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:es(e,i,void 0,r,!0);s.level="error",Fn(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t)}}},Fs=er(Ps,qs);function Hs(t,n,e,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],c=s[0]=s[0]||{},u=c.stacktrace=c.stacktrace||{},a=u.frames=u.frames||[],h=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(e,10))?void 0:e,d=o(n)&&n.length>0?n:function(){try{return k.document.location.href}catch(t){return""}}();return 0===a.length&&a.push({colno:h,filename:d,function:"?",in_app:!0,lineno:f}),t}function Us(){const t=Bn();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Bs="HttpContext",Ws=()=>({name:Bs,setupOnce(){},preprocessEvent(t){if(!Wi.navigator&&!Wi.location&&!Wi.document)return;const n=t.request&&t.request.url||Wi.location&&Wi.location.href,{referrer:e}=Wi.document||{},{userAgent:r}=Wi.navigator||{},i={...t.request&&t.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}},s={...t.request,...n&&{url:n},headers:i};t.request=s}}),zs=er(Bs,Ws),Xs="LinkedErrors",Gs=(t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:Xs,setupOnce(){},preprocessEvent(t,r,i){const s=i.getOptions();b(Ki,s.stackParser,s.maxValueLength,e,n,t,r)}}},Js=er(Xs,Gs),Ks=["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"],Vs="TryCatch",Ys=(t={})=>{const n={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:Vs,setupOnce(){n.setTimeout&&F(Wi,"setTimeout",Zs),n.setInterval&&F(Wi,"setInterval",Zs),n.requestAnimationFrame&&F(Wi,"requestAnimationFrame",to),n.XMLHttpRequest&&"XMLHttpRequest"in Wi&&F(XMLHttpRequest.prototype,"send",no);const t=n.eventTarget;if(t){(Array.isArray(t)?t:Ks).forEach(eo)}}}},Qs=er(Vs,Ys);function Zs(t){return function(...n){const e=n[0];return n[0]=Ji(e,{mechanism:{data:{function:Z(t)},handled:!1,type:"instrument"}}),t.apply(this,n)}}function to(t){return function(n){return t.apply(this,[Ji(n,{mechanism:{data:{function:"requestAnimationFrame",handler:Z(t)},handled:!1,type:"instrument"}})])}}function no(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"==typeof e[t]&&F(e,t,(function(n){const e={mechanism:{data:{function:t,handler:Z(n)},handled:!1,type:"instrument"}},r=B(n);return r&&(e.mechanism.data.handler=Z(r)),Ji(n,e)}))})),t.apply(this,n)}}function eo(t){const n=Wi,e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(F(e,"addEventListener",(function(n){return function(e,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ji(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Z(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return n.apply(this,[e,Ji(r,{mechanism:{data:{function:"addEventListener",handler:Z(r),target:t},handled:!1,type:"instrument"}}),i])}})),F(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)}})))}const ro=[vr(),Tr(),Ys(),Os(),qs(),Gs(),Rs(),Ws()];function io(t){return[...ro]}var so=Object.freeze({__proto__:null,GlobalHandlers:Fs,TryCatch:Qs,Breadcrumbs:js,LinkedErrors:Js,HttpContext:zs,Dedupe:Ms});let oo={};Wi.Sentry&&Wi.Sentry.Integrations&&(oo=Wi.Sentry.Integrations);const co={...oo,...Mr,...so};return co.Replay=Sn,co.BrowserTracing=Fi,Bi(),t.Breadcrumbs=js,t.BrowserClient=os,t.BrowserTracing=Fi,t.Dedupe=Ms,t.Feedback=wn,t.FunctionToString=Er,t.GlobalHandlers=Fs,t.HttpContext=zs,t.Hub=ce,t.InboundFilters=yr,t.Integrations=co,t.LinkedErrors=Js,t.Replay=Sn,t.SDK_VERSION=ie,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=Me,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=De,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Re,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Ce,t.Scope=ee,t.Span=Ae,t.TryCatch=Qs,t.WINDOW=Wi,t.addBreadcrumb=Hn,t.addEventProcessor=function(t){const n=Bn();n&&n.addEventProcessor&&n.addEventProcessor(t)},t.addExtensionMethods=Bi,t.addGlobalEventProcessor=$n,t.addIntegration=function(t){const n=Bn();n&&n.addIntegration&&n.addIntegration(t)},t.breadcrumbsIntegration=Os,t.browserApiErrorsIntegration=Ys,t.browserTracingIntegration=function(t={}){const n=t;return"boolean"==typeof t.markBackgroundSpan&&(n.markBackgroundTransactions=t.markBackgroundSpan),"boolean"==typeof t.instrumentPageLoad&&(n.startTransactionOnPageLoad=t.instrumentPageLoad),"boolean"==typeof t.instrumentNavigation&&(n.startTransactionOnLocationChange=t.instrumentNavigation),new Fi(n)},t.captureEvent=Fn,t.captureException=captureException,t.captureMessage=function(t,n){const e="string"==typeof n?n:void 0,r="string"!=typeof n?{captureContext:n}:void 0;return he().captureMessage(t,e,r)},t.captureSession=Jn,t.captureUserFeedback=function(t){const n=Bn();n&&n.captureUserFeedback(t)},t.chromeStackLineParser=ps,t.close=async function(t){const n=Bn();return n?n.close(t):Promise.resolve(!1)},t.configureScope=function(t){he().configureScope(t)},t.continueTrace=({sentryTrace:t,baggage:n},e)=>{const r=Wn(),{traceparentData:i,dynamicSamplingContext:s,propagationContext:o}=function(t,n){const e=un(t),r=rn(n),{traceId:i,parentSpanId:s,parentSampled:o}=e||{};return e?{traceparentData:e,dynamicSamplingContext:r||{},propagationContext:{traceId:i||ot(),parentSpanId:s||ot().substring(16),spanId:ot().substring(16),sampled:o,dsc:r||{}}}:{traceparentData:e,dynamicSamplingContext:void 0,propagationContext:{traceId:i||ot(),spanId:ot().substring(16)}}}(t,n);r.setPropagationContext(o);const c={...i,metadata:G({dynamicSamplingContext:s})};return e?de((()=>e(c))):c},t.createTransport=fr,t.createUserFeedbackEnvelope=ss,t.dedupeIntegration=Rs,t.defaultIntegrations=ro,t.defaultStackLineParsers=Es,t.defaultStackParser=$s,t.endSession=Xn,t.eventFromException=ts,t.eventFromMessage=ns,t.exceptionFromError=Ki,t.feedbackIntegration=function(t){return new wn({})},t.flush=async function(t){const n=Bn();return n?n.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.functionToStringIntegration=Tr,t.geckoStackLineParser=vs,t.getActiveSpan=Te,t.getClient=Bn,t.getCurrentHub=he,t.getCurrentScope=Wn,t.getDefaultIntegrations=io,t.getHubFromCarrier=le,t.globalHandlersIntegration=qs,t.httpContextIntegration=Ws,t.inboundFiltersIntegration=vr,t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=io()),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),Wi.SENTRY_RELEASE&&Wi.SENTRY_RELEASE.id&&(t.release=Wi.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const n={...t,stackParser:(e=t.stackParser||$s,Array.isArray(e)?Y(...e):e),integrations:Ze(t),transport:t.transport||(_t()?us:as)};var e;!function(t,n){!0===n.debug&&M((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Wn().update(n.initialScope);const e=new t(n);hr(e),function(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}(e)}(os,n),t.autoSessionTracking&&function(){if(void 0===Wi.document)return;zn({ignoreDuration:!0}),Jn(),Nt((({from:t,to:n})=>{void 0!==t&&t!==n&&(zn({ignoreDuration:!0}),Jn())}))}()},t.isInitialized=function(){return!!Bn()},t.lastEventId=function(){return he().lastEventId()},t.linkedErrorsIntegration=Gs,t.makeFetchTransport=us,t.makeMain=ae,t.makeXHRTransport=as,t.metrics=Rr,t.onLoad=function(t){t()},t.opera10StackLineParser=ws,t.opera11StackLineParser=Ts,t.parameterize=function(t,...n){const e=new String(String.raw(t,...n));return e.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),e.__sentry_template_values__=n,e},t.replayIntegration=function(t){return new Sn({})},t.setContext=function(t,n){he().setContext(t,n)},t.setCurrentClient=hr,t.setExtra=function(t,n){he().setExtra(t,n)},t.setExtras=function(t){he().setExtras(t)},t.setTag=function(t,n){he().setTag(t,n)},t.setTags=function(t){he().setTags(t)},t.setUser=function(t){he().setUser(t)},t.showReportDialog=(t={},n=he())=>{if(!Wi.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=Wi.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(t,n){const e=P(t);if(!e)return"";const r=`${Ke(e)}embed/error-page/`;let i=`dsn=${A(e)}`;for(const t in n)if("dsn"!==t&&"onClose"!==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{onClose:o}=t;if(o){const t=n=>{if("__sentry_reportdialog_closed__"===n.data)try{o()}finally{Wi.removeEventListener("message",t)}};Wi.addEventListener("message",t)}const c=Wi.document.head||Wi.document.body;c&&c.appendChild(s)},t.startInactiveSpan=Se,t.startSession=zn,t.startSpan=function(t,n){const e=$e(t);return de((()=>Un(t.scope,(r=>{const i=he(),s=r.getSpan(),o=t.onlyIfParent&&!s?void 0:Ee(i,{parentSpan:s,spanContext:e,forceTransaction:t.forceTransaction,scope:r});return _e((()=>n(o)),(()=>{if(o){const{status:t}=Dn(o);t&&"ok"!==t||o.setStatus("internal_error")}}),(()=>o&&o.end()))}))))},t.startSpanManual=function(t,n){const e=$e(t);return de((()=>Un(t.scope,(r=>{const i=he(),s=r.getSpan(),o=t.onlyIfParent&&!s?void 0:Ee(i,{parentSpan:s,spanContext:e,forceTransaction:t.forceTransaction,scope:r});function c(){o&&o.end()}return _e((()=>n(o,c)),(()=>{if(o&&o.isRecording()){const{status:t}=Dn(o);t&&"ok"!==t||o.setStatus("internal_error")}}))}))))},t.startTransaction=function(t,n){return he().startTransaction({...t},n)},t.winjsStackLineParser=bs,t.withActiveSpan=function(t,n){return Un((e=>(e.setSpan(t),n(e))))},t.withIsolationScope=function(t){return de((()=>t(fe())))},t.withScope=Un,t.wrap=function(t){return Ji(t)()},t}({}); ; /* @license GNU-GPL-2.0-or-later https://www.drupal.org/licensing/faq */ ((drupalSettings,Sentry)=>{drupalSettings.raven.options.integrations.push(Sentry.browserTracingIntegration(drupalSettings.raven.browserTracingOptions));if(drupalSettings.raven.showReportDialog)drupalSettings.raven.options.beforeSend=(event)=>{if(event.exception)Sentry.showReportDialog({eventId:event.event_id});return event;};if(drupalSettings.raven.tracePropagationTargets){drupalSettings.raven.options.tracePropagationTargets=drupalSettings.raven.options.tracePropagationTargets||[];drupalSettings.raven.options.tracePropagationTargets.push(/^\/(?!\/)/);drupalSettings.raven.tracePropagationTargets.forEach((value)=>drupalSettings.raven.options.tracePropagationTargets.push(new RegExp(value,'i')));}Sentry.init(drupalSettings.raven.options);Sentry.setUser({id:drupalSettings.user.uid});})(window.drupalSettings,window.Sentry);;