/*! @sentry/browser & @sentry/tracing & @sentry/integrations 7.51.2 (2abd289) | */ 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 d(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 null===t||"object"!=typeof t&&"function"!=typeof t}function u(t){return r(t,"Object")}function a(t){return"undefined"!=typeof Event&&d(t,Event)}function h(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function f(t){return"number"==typeof t&&t!=t}function d(t,n){try{return t instanceof n}catch(t){return!1}}function l(t){return t&&t.Math==Math?t:void 0}const p="object"==typeof globalThis&&l(globalThis)||"object"==typeof window&&l(window)||"object"==typeof self&&l(self)||"object"==typeof global&&l(global)||function(){return this}()||{};function m(){return p}function y(t,n,e){const r=e||p,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=n())}const v=m();function g(t,n={}){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 _(t,n){const e=t,r=[];let i,s,c,u,a;if(!e||!e.tagName)return"";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;a1&&(u=h.slice(0,-1).join("/"),a=h.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return T({host:s,pass:i,path:u,projectId:a,port:o,protocol:e,publicKey:r})}(t):T(t)}const x=["debug","info","warn","error","log","assert","trace"];let $;function k(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function O(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;nR(t,n,e)))}function C(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);if("function"==typeof i)try{D(i,r)}catch(t){}t[n]=i}function I(t,n,e){Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}function D(t,n){const e=n.prototype||{};t.prototype=n.prototype=e,I(t,"__sentry_original__",n)}function L(t){return t.__sentry_original__}function M(t){if(e(t))return{message:t.message,name:t.name,stack:t.stack,...A(t)};if(a(t)){const n={type:t.type,target:H(t.target),currentTarget:H(t.currentTarget),...A(t)};return"undefined"!=typeof CustomEvent&&d(t,CustomEvent)&&(n.detail=t.detail),n}return t}function H(t){try{return n=t,"undefined"!=typeof Element&&d(n,Element)?g(t):Object.prototype.toString.call(t)}catch(t){return""}var n}function A(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 N(t,n=40){const e=Object.keys(M(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=n)return k(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:k(r,n)}return""}function q(t){return F(t,new Map)}function F(t,n){if(u(t)){const e=n.get(t);if(void 0!==e)return e;const r={};n.set(t,r);for(const e of Object.keys(t))void 0!==t[e]&&(r[e]=F(t[e],n));return r}if(Array.isArray(t)){const e=n.get(t);if(void 0!==e)return e;const r=[];return n.set(t,r),t.forEach((t=>{r.push(F(t,n))})),r}return t}$=function(){const t={enable:()=>{},disable:()=>{}};return x.forEach((n=>{t[n]=()=>{}})),t}();const P=/\(error: (.*)\)/;function U(...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=P.test(e)?e.replace(P,"$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=t.slice(0,50),e=n[n.length-1].function;e&&/sentryWrapped/.test(e)&&n.pop();n.reverse();const r=n[n.length-1].function;r&&/captureMessage|captureException/.test(r)&&n.pop();return n.map((t=>({...t,filename:t.filename||n[n.length-1].filename,function:t.function||"?"})))}(r)}}const B="";function X(t){try{return t&&"function"==typeof t&&t.name||B}catch(t){return B}}const z=m();function G(){if(!("fetch"in z))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function W(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function J(){if(!G())return!1;if(W(z.fetch))return!0;let t=!1;const n=z.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=W(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}const K=m();const Y=m(),V={},Q={};function Z(t){if(!Q[t])switch(Q[t]=!0,t){case"console":!function(){if(!("console"in Y))return;x.forEach((function(t){t in Y.console&&C(Y.console,t,(function(n){return function(...e){nt("console",{args:e,level:t}),n&&n.apply(Y.console,e)}}))}))}();break;case"dom":!function(){if(!("document"in Y))return;const t=nt.bind(null,"dom"),n=ct(t,!0);Y.document.addEventListener("click",n,!1),Y.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const e=Y[n]&&Y[n].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(C(e,"addEventListener",(function(n){return function(e,r,i){if("click"===e||"keypress"==e)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[e]=s[e]||{refCount:0};if(!o.handler){const r=ct(t);o.handler=r,n.call(this,e,r,i)}o.refCount++}catch(t){}return n.call(this,e,r,i)}})),C(e,"removeEventListener",(function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this,i=e.__sentry_instrumentation_handlers__||{},s=i[n];s&&(s.refCount--,s.refCount<=0&&(t.call(this,n,s.handler,r),s.handler=void 0,delete i[n]),0===Object.keys(i).length&&delete e.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,e,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Y))return;const t=XMLHttpRequest.prototype;C(t,"open",(function(t){return function(...n){const e=n[1],r=this.__sentry_xhr_v2__={method:o(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};o(e)&&"POST"===r.method&&e.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const t=this.__sentry_xhr_v2__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}nt("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?C(this,"onreadystatechange",(function(t){return function(...n){return i(),t.apply(this,n)}})):this.addEventListener("readystatechange",i),C(this,"setRequestHeader",(function(t){return function(...n){const[e,r]=n,i=this.__sentry_xhr_v2__;return i&&(i.request_headers[e.toLowerCase()]=r),t.apply(this,n)}})),t.apply(this,n)}})),C(t,"send",(function(t){return function(...n){const e=this.__sentry_xhr_v2__;return e&&void 0!==n[0]&&(e.body=n[0]),nt("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}}))}();break;case"fetch":!function(){if(!J())return;C(Y,"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:rt(n),method:et(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:rt(n),method:et(n,"method")?String(n.method).toUpperCase():"GET"}}(n),i={args:n,fetchData:{method:e,url:r},startTimestamp:Date.now()};return nt("fetch",{...i}),t.apply(Y,n).then((t=>(nt("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw nt("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}();break;case"history":!function(){if(!function(){const t=K.chrome,n=t&&t.app&&t.app.runtime,e="history"in K&&!!K.history.pushState&&!!K.history.replaceState;return!n&&e}())return;const t=Y.onpopstate;function n(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const t=it,n=String(e);it=n,nt("history",{from:t,to:n})}return t.apply(this,n)}}Y.onpopstate=function(...n){const e=Y.location.href,r=it;if(it=e,nt("history",{from:r,to:e}),t)try{return t.apply(this,n)}catch(t){}},C(Y.history,"pushState",n),C(Y.history,"replaceState",n)}();break;case"error":ut=Y.onerror,Y.onerror=function(t,n,e,r,i){return nt("error",{column:r,error:i,line:e,msg:t,url:n}),!(!ut||ut.__SENTRY_LOADER__)&&ut.apply(this,arguments)},Y.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":at=Y.onunhandledrejection,Y.onunhandledrejection=function(t){return nt("unhandledrejection",t),!(at&&!at.__SENTRY_LOADER__)||at.apply(this,arguments)},Y.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return}}function tt(t,n){V[t]=V[t]||[],V[t].push(n),Z(t)}function nt(t,n){if(t&&V[t])for(const e of V[t]||[])try{e(n)}catch(t){}}function et(t,n){return!!t&&"object"==typeof t&&!!t[n]}function rt(t){return"string"==typeof t?t:t?et(t,"url")?t.url:t.toString?t.toString():"":""}let it;let st,ot;function ct(t,n=!1){return e=>{if(!e||ot===e)return;if(function(t){if("keypress"!==t.type)return!1;try{const n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(e))return;const r="keypress"===e.type?"input":e.type;(void 0===st||function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(ot,e))&&(t({event:e,name:r,global:n}),ot=e),clearTimeout(st),st=Y.setTimeout((()=>{st=void 0}),1e3)}}let ut=null;let at=null;function ht(){const t=p,n=t.crypto||t.msCrypto;if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");const e=n&&n.getRandomValues?()=>n.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function ft(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function dt(t){const{message:n,event_id:e}=t;if(n)return n;const r=ft(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"":e||""}function lt(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 pt(t,n){const e=ft(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 mt(t){if(t&&t.__sentry_captured__)return!0;try{I(t,"__sentry_captured__",!0)}catch(t){}return!1}function yt(t){return Array.isArray(t)?t:[t]}function vt(t,n=100,e=1/0){try{return _t("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function gt(t,n=3,e=102400){const r=vt(t,n);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>e?gt(t,n-1,e):r;var i}function _t(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){d[t]="[MaxProperties ~]";break}const n=p[t];d[t]=_t(t,n,a-1,r,i),l++}return o(n),d}var bt;function wt(t){return new Tt((n=>{n(t)}))}function St(t){return new Tt(((n,e)=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(bt||(bt={}));class Tt{__init(){this.i=bt.PENDING}__init2(){this.o=[]}constructor(t){Tt.prototype.__init.call(this),Tt.prototype.__init2.call(this),Tt.prototype.__init3.call(this),Tt.prototype.__init4.call(this),Tt.prototype.__init5.call(this),Tt.prototype.__init6.call(this);try{t(this.u,this.h)}catch(t){this.h(t)}}then(t,n){return new Tt(((e,r)=>{this.o.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.l()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Tt(((n,e)=>{let r,i;return this.then((n=>{i=!1,r=n,t&&t()}),(n=>{i=!0,r=n,t&&t()})).then((()=>{i?e(r):n(r)}))}))}__init3(){this.u=t=>{this.p(bt.RESOLVED,t)}}__init4(){this.h=t=>{this.p(bt.REJECTED,t)}}__init5(){this.p=(t,n)=>{this.i===bt.PENDING&&(h(n)?n.then(this.u,this.h):(this.i=t,this.m=n,this.l()))}}__init6(){this.l=()=>{if(this.i===bt.PENDING)return;const t=this.o.slice();this.o=[],t.forEach((t=>{t[0]||(this.i===bt.RESOLVED&&t[1](this.m),this.i===bt.REJECTED&&t[2](this.m),t[0]=!0)}))}}}function Et(t){const n=[];function e(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(r){if(!(void 0===t||n.lengthe(i))).then(null,(()=>e(i).then(null,(()=>{})))),i},drain:function(t){return new Tt(((e,r)=>{let i=n.length;if(!i)return e(!0);const s=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{wt(t).then((()=>{--i||(clearTimeout(s),e(!0))}),r)}))}))}}}function xt(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 $t=["fatal","error","warning","log","info","debug"];const kt=m(),Ot={nowSeconds:()=>Date.now()/1e3};const Rt=function(){const{performance:t}=kt;if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),jt=void 0===Rt?Ot:{nowSeconds:()=>(Rt.timeOrigin+Rt.now())/1e3},Ct=Ot.nowSeconds.bind(Ot),It=jt.nowSeconds.bind(jt),Dt=(()=>{const{performance:t}=kt;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=it+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 Ft(t,n){const e="string"==typeof t.data?Nt(t.data,n):t.data;return[q({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const Pt={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"};function Ut(t){return Pt[t]}function Bt(t){if(!t||!t.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function Xt(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]=t.split(":",2),s=parseInt(n,10),o=1e3*(isNaN(s)?60:s);if(e)for(const t of e.split(";"))i[t]=r+o;else i.all=r+o}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}const zt="baggage",Gt="sentry-",Wt=/^sentry-/;function Jt(t){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 Kt(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[n,e])=>(t[n]=e,t)),{})}const Yt="production";function Vt(t){const n=It(),e={sid:ht(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return q({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(e)};return t&&Qt(e,t),e}function Qt(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||It(),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:ht()),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)}const Zt=p;class tn{constructor(){this.v=!1,this.g=[],this._=[],this.S=[],this.T=[],this.k={},this.O={},this.R={},this.j={},this.C={}}static clone(t){const n=new tn;return t&&(n.S=[...t.S],n.O={...t.O},n.R={...t.R},n.j={...t.j},n.k=t.k,n.I=t.I,n.D=t.D,n.L=t.L,n.M=t.M,n.H=t.H,n._=[...t._],n.A=t.A,n.T=[...t.T],n.C={...t.C}),n}addScopeListener(t){this.g.push(t)}addEventProcessor(t){return this._.push(t),this}setUser(t){if(t&&t.isUserReport){const n=Zt.document&&Zt.document.cookie||"";this.k=Object.assign({id:n.replace(/(?:(?:^|.*;\s*)vid\s*\=\s*([^;]*).*$)|^.*$/,"$1")||"",username:n.replace(/(?:(?:^|.*;\s*)b2b_buyerid\s*\=\s*([^;]*).*$)|^.*$/,"$1")||"null"},t),t=this.k}else this.k=t||{};return this.L&&Qt(this.L,{user:t}),this.N(),this}getUser(){return this.k}getRequestSession(){return this.A}setRequestSession(t){return this.A=t,this}setTags(t){return this.O={...this.O,...t},this.N(),this}setTag(t,n){return this.O={...this.O,[t]:n},this.N(),this}setExtras(t){return this.R={...this.R,...t},this.N(),this}setExtra(t,n){return this.R={...this.R,[t]:n},this.N(),this}setFingerprint(t){return this.H=t,this.N(),this}setLevel(t){return this.I=t,this.N(),this}setTransactionName(t){return this.M=t,this.N(),this}setContext(t,n){return null===n?delete this.j[t]:this.j[t]=n,this.N(),this}setSpan(t){return this.D=t,this.N(),this}getSpan(){return this.D}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this.L=t:delete this.L,this.N(),this}getSession(){return this.L}update(t){if(!t)return this;if("function"==typeof t){const n=t(this);return n instanceof tn?n:this}return t instanceof tn?(this.O={...this.O,...t.O},this.R={...this.R,...t.R},this.j={...this.j,...t.j},t.k&&Object.keys(t.k).length&&(this.k=t.k),t.I&&(this.I=t.I),t.H&&(this.H=t.H),t.A&&(this.A=t.A)):u(t)&&(t=t,this.O={...this.O,...t.tags},this.R={...this.R,...t.extra},this.j={...this.j,...t.contexts},t.user&&(this.k=t.user),t.level&&(this.I=t.level),t.fingerprint&&(this.H=t.fingerprint),t.requestSession&&(this.A=t.requestSession)),this}clear(){return this.S=[],this.O={},this.R={},this.k={},this.j={},this.I=void 0,this.M=void 0,this.H=void 0,this.A=void 0,this.D=void 0,this.L=void 0,this.N(),this.T=[],this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:Ct(),...t};return this.S=[...this.S,r].slice(-e),this.N(),this}getLastBreadcrumb(){return this.S[this.S.length-1]}clearBreadcrumbs(){return this.S=[],this.N(),this}addAttachment(t){return this.T.push(t),this}getAttachments(){return this.T}clearAttachments(){return this.T=[],this}applyToEvent(t,n={}){if(this.R&&Object.keys(this.R).length&&(t.extra={...this.R,...t.extra}),this.O&&Object.keys(this.O).length&&(t.tags={...this.O,...t.tags}),this.k&&Object.keys(this.k).length&&(t.user={...this.k,...t.user}),this.j&&Object.keys(this.j).length&&(t.contexts={...this.j,...t.contexts}),this.I&&(t.level=this.I),this.M&&(t.transaction=this.M),this.D){t.contexts={trace:this.D.getTraceContext(),...t.contexts};const n=this.D.transaction;if(n){t.sdkProcessingMetadata={dynamicSamplingContext:n.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const e=n.name;e&&(t.tags={transaction:e,...t.tags})}}return this.q(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.S],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this.C},this.F([...nn(),...this._],t,n)}setSDKProcessingMetadata(t){return this.C={...this.C,...t},this}F(t,n,e,r=0){return new Tt(((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o({...n},e);h(c)?c.then((n=>this.F(t,n,e,r+1).then(i))).then(null,s):this.F(t,c,e,r+1).then(i).then(null,s)}}))}N(){this.v||(this.v=!0,this.g.forEach((t=>{t(this)})),this.v=!1)}q(t){t.fingerprint=t.fingerprint?yt(t.fingerprint):[],this.H&&(t.fingerprint=t.fingerprint.concat(this.H)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function nn(){return y("globalEventProcessors",(()=>[]))}function en(t){nn().push(t)}const rn=100;class sn{constructor(t,n=new tn,e=4){this.P=e,this.U=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this.P{i.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},s)})),e}captureMessage(t,n,e){const r=this.B=e&&e.event_id?e.event_id:ht(),i=new Error(t);return this.X(((s,o)=>{s.captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r},o)})),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:ht();return t.type||(this.B=e),this.X(((r,i)=>{r.captureEvent(t,{...n,event_id:e},i)})),e}lastEventId(){return this.B}addBreadcrumb(t,n){const{scope:e,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=rn}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o={timestamp:Ct(),...t},c=i?function(t){if(!("console"in p))return t();const n=p.console,e={};x.forEach((t=>{const r=n[t]&&n[t].__sentry_original__;t in n&&r&&(e[t]=n[t],n[t]=r)}));try{return t()}finally{Object.keys(e).forEach((t=>{n[t]=e[t]}))}}((()=>i(o,n))):o;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,n),e.addBreadcrumb(c,s))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:e}=this.getStackTop();e&&t(n)}run(t){const n=cn(this);try{t(this)}finally{cn(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(t){return null}}startTransaction(t,n){return this.G("startTransaction",t,n)}traceHeaders(){return this.G("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.W()}endSession(){const t=this.getStackTop().scope,n=t.getSession();n&&function(t,n){let e={};n?e={status:n}:"ok"===t.status&&(e={status:"exited"}),Qt(t,e)}(n),this.W(),t.setSession()}startSession(t){const{scope:n,client:e}=this.getStackTop(),{release:r,environment:i=Yt}=e&&e.getOptions()||{},{userAgent:s}=p.navigator||{},o=Vt({release:r,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession&&n.getSession();return c&&"ok"===c.status&&Qt(c,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}W(){const{scope:t,client:n}=this.getStackTop(),e=t.getSession();e&&n&&n.captureSession&&n.captureSession(e)}X(t){const{scope:n,client:e}=this.getStackTop();e&&t(e,n)}G(t,...n){const e=on().__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n)}}function on(){return p.__SENTRY__=p.__SENTRY__||{extensions:{},hub:void 0},p}function cn(t){const n=on(),e=an(n);return hn(n,t),e}function un(){const t=on();if(t.__SENTRY__&&t.__SENTRY__.acs){const n=t.__SENTRY__.acs.getCurrentHub();if(n)return n}return function(t=on()){n=t,n&&n.__SENTRY__&&n.__SENTRY__.hub&&!an(t).isOlderThan(4)||hn(t,new sn);var n;return an(t)}(t)}function an(t){return y("hub",(()=>new sn),t)}function hn(t,n){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0}function fn(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=un().getClient(),e=t||n&&n.getOptions();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}function dn(t){return(t||un()).getScope().getTransaction()}let ln=!1;function pn(){const t=dn();if(t){const n="internal_error";t.setStatus(n)}}pn.tag="sentry_tracingErrorCallback";class mn{__init(){this.spans=[]}constructor(t=1e3){mn.prototype.__init.call(this),this.J=t}add(t){this.spans.length>this.J?t.spanRecorder=void 0:this.spans.push(t)}}class yn{__init2(){this.traceId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})).replace(/-/g,"")}__init3(){this.spanId=ht().substring(16)}__init4(){this.startTimestamp=It()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(t){if(yn.prototype.__init2.call(this),yn.prototype.__init3.call(this),yn.prototype.__init4.call(this),yn.prototype.__init5.call(this),yn.prototype.__init6.call(this),yn.prototype.__init7.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp),t.instrumenter&&(this.instrumenter=t.instrumenter)}startChild(t){const n=new yn({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t));const n=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"}(t);return"unknown_error"!==n&&this.setStatus(n),this}isSuccess(){return"ok"===this.status}finish(t){this.endTimestamp="number"==typeof t?t:It()}toTraceparent(){let t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return q({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return q({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return q({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}class vn extends yn{__init(){this.K={}}__init2(){this.j={}}__init3(){this.Y=void 0}constructor(t,n){super(t),vn.prototype.__init.call(this),vn.prototype.__init2.call(this),vn.prototype.__init3.call(this),this.V=n||un(),this.Z=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this.tt=t.trimEnd,this.transaction=this;const e=this.metadata.dynamicSamplingContext;e&&(this.Y={...e})}get name(){return this.Z}set name(t){this.setName(t)}setName(t,n="custom"){this.Z=t,this.metadata.source=n}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new mn(t)),this.spanRecorder.add(this)}setContext(t,n){null===n?delete this.j[t]:this.j[t]=n}setMeasurement(t,n,e=""){this.K[t]={value:n,unit:e}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0!==this.endTimestamp)return;this.name||(this.name=""),super.finish(t);const n=this.V.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),!0!==this.sampled)return void(n&&n.recordDroppedEvent("sample_rate","transaction"));const e=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&t.endTimestamp)):[];this.tt&&e.length>0&&(this.endTimestamp=e.reduce(((t,n)=>t.endTimestamp&&n.endTimestamp?t.endTimestamp>n.endTimestamp?t:n:t)).endTimestamp);const r=this.metadata,i={contexts:{...this.j,trace:this.getTraceContext()},spans:e,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}};return Object.keys(this.K).length>0&&(i.measurements=this.K),this.V.captureEvent(i)}toContext(){return q({...super.toContext(),name:this.name,trimEnd:this.tt})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this.tt=t.trimEnd,this}getDynamicSamplingContext(){if(this.Y)return this.Y;const t=this.V||un(),n=t&&t.getClient();if(!n)return{};const{environment:e,release:r}=n.getOptions()||{},{publicKey:i}=n.getDsn()||{},s=this.metadata.sampleRate,o=void 0!==s?s.toString():void 0,{segment:c}=t.getScope().getUser()||{},u=this.metadata.source,a=u&&"url"!==u?this.name:void 0,h=q({environment:e||Yt,release:r,transaction:a,user_segment:c,public_key:i,trace_id:this.traceId,sample_rate:o});return n.emit&&n.emit("createDsc",h),h}setHub(t){this.V=t}}const gn={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},_n=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class bn extends mn{constructor(t,n,e,r){super(r),this.nt=t,this.et=n,this.transactionSpanId=e}add(t){t.spanId!==this.transactionSpanId&&(t.finish=n=>{t.endTimestamp="number"==typeof n?n:It(),this.et(t.spanId)},void 0===t.endTimestamp&&this.nt(t.spanId)),super.add(t)}}class wn extends vn{__init(){this.activities={}}__init2(){this.rt=0}__init3(){this.it=!1}__init4(){this.st=!1}__init5(){this.ot=[]}__init6(){this.ct=_n[4]}constructor(t,n,e=gn.idleTimeout,r=gn.finalTimeout,i=gn.heartbeatInterval,s=!1){super(t,n),this.ut=n,this.ht=e,this.ft=r,this.dt=i,this.lt=s,wn.prototype.__init.call(this),wn.prototype.__init2.call(this),wn.prototype.__init3.call(this),wn.prototype.__init4.call(this),wn.prototype.__init5.call(this),wn.prototype.__init6.call(this),s&&n.configureScope((t=>t.setSpan(this))),this.yt(),setTimeout((()=>{this.it||(this.setStatus("deadline_exceeded"),this.ct=_n[3],this.finish())}),this.ft)}finish(t=It()){if(this.it=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this.ct),this.spanRecorder){for(const n of this.ot)n(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((n=>{if(n.spanId===this.spanId)return!0;n.endTimestamp||(n.endTimestamp=t,n.setStatus("cancelled"));return n.startTimestamp{this.it||this.nt(t)},e=t=>{this.it||this.et(t)};this.spanRecorder=new bn(n,e,this.spanId,t),this.vt()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this.st=!1===n,this.gt&&(clearTimeout(this.gt),this.gt=void 0,0===Object.keys(this.activities).length&&this.st&&(this.ct=_n[5],this.finish(t)))}setFinishReason(t){this.ct=t}yt(t){this.cancelIdleTimeout(),this.gt=setTimeout((()=>{this.it||0!==Object.keys(this.activities).length||(this.ct=_n[1],this.finish(t))}),this.ht)}nt(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this.st}),this.activities[t]=!0}et(t){if(this.activities[t]&&delete this.activities[t],0===Object.keys(this.activities).length){const t=It();this.st?(this.ct=_n[5],this.finish(t)):this.yt(t+this.ht/1e3)}}_t(){if(this.it)return;const t=Object.keys(this.activities).join("");t===this.bt?this.rt++:this.rt=1,this.bt=t,this.rt>=3?(this.setStatus("deadline_exceeded"),this.ct=_n[0],this.finish()):this.vt()}vt(){setTimeout((()=>{this._t()}),this.dt)}}function Sn(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function Tn(t,n,e){if(!fn(n))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return"function"==typeof n.tracesSampler?(r=n.tracesSampler(e),t.setMetadata({sampleRate:Number(r)})):void 0!==e.parentSampled?r=e.parentSampled:void 0!==n.tracesSampleRate?(r=n.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})):(r=1,t.setMetadata({sampleRate:r})),function(t){if(f(t)||"number"!=typeof t&&"boolean"!=typeof t)return!1;if(t<0||t>1)return!1;return!0}(r)&&r?(t.sampled=Math.random()`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&");var e}function Cn(t,n={}){const e="string"==typeof n?n:n.tunnel,r="string"!=typeof n&&n.wt?n.wt.sdk:void 0;return e||`${function(t){return`${Rn(t)}${t.projectId}/envelope/`}(t)}?${jn(t,r)}`}function In(t,n,e,r){const i=Bt(e),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e&&e.sdk);const o=function(t,n,e,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&{dsn:S(r)},...i&&{trace:q({...i})}}}(t,i,r,n);delete t.sdkProcessingMetadata;return Mt(o,[[{type:s},t]])}const Dn=[];function Ln(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?yt(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 Mn(t,n){n[t.name]=t,-1===Dn.indexOf(t.name)&&(t.setupOnce(en,un),Dn.push(t.name))}function Hn(t,n,e,r){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=t,o={...n,event_id:n.event_id||e.event_id||ht(),timestamp:n.timestamp||Ct()},c=e.integrations||t.integrations.map((t=>t.name));!function(t,n){const{environment:e,release:r,dist:i,maxValueLength:s=250}=n;"environment"in t||(t.environment="environment"in n?e:Yt);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=k(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=k(o.value,s));const c=t.request;c&&c.url&&(c.url=k(c.url,s))}(o,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(o,c),void 0===n.type&&function(t,n){const e=p._sentryDebugIds;if(!e)return;let r;const i=An.get(n);i?r=i:(r=new Map,An.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}),{}),o=new Set;try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&o.add(t.filename)}))}))}catch(t){}t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const c=t.debug_meta.images;o.forEach((t=>{s[t]&&c.push({type:"sourcemap",code_file:t,debug_id:s[t]})}))}(o,t.stackParser);let u=r;e.captureContext&&(u=tn.clone(u).update(e.captureContext));let a=wt(o);if(u){if(u.getAttachments){const t=[...e.attachments||[],...u.getAttachments()];t.length&&(e.attachments=t)}a=u.applyToEvent(o,e)}return a.then((t=>"number"==typeof i&&i>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:vt(t.data,n,e)}})))},...t.user&&{user:vt(t.user,n,e)},...t.contexts&&{contexts:vt(t.contexts,n,e)},...t.extra&&{extra:vt(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=vt(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=vt(t.data,n,e)),t))));return r}(t,i,s):t))}const An=new WeakMap;class Nn{__init(){this._integrations={}}__init2(){this.St=!1}__init3(){this.Tt=0}__init4(){this.Et={}}__init5(){this.xt={}}constructor(t){if(Nn.prototype.__init.call(this),Nn.prototype.__init2.call(this),Nn.prototype.__init3.call(this),Nn.prototype.__init4.call(this),Nn.prototype.__init5.call(this),this.$t=t,t.dsn){this.kt=E(t.dsn);const n=Cn(this.kt,t);this.Ot=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,e){if(mt(t))return;let r=n&&n.event_id;return this.Rt(this.eventFromException(t,n).then((t=>this.jt(t,n,e))).then((t=>{r=t}))),r}captureMessage(t,n,e,r){let i=e&&e.event_id;const s=c(t)?this.eventFromMessage(String(t),n,e):this.eventFromException(t,e);return this.Rt(s.then((t=>this.jt(t,e,r))).then((t=>{i=t}))),i}captureEvent(t,n,e){if(n&&n.originalException&&mt(n.originalException))return;let r=n&&n.event_id;return this.Rt(this.jt(t,n,e).then((t=>{r=t}))),r}captureSession(t){this.Ct()&&("string"!=typeof t.release||(this.sendSession(t),Qt(t,{init:!1})))}getDsn(){return this.kt}getOptions(){return this.$t}getSdkMetadata(){return this.$t.wt}getTransport(){return this.Ot}flush(t){const n=this.Ot;return n?this.It(t).then((e=>n.flush(t).then((t=>e&&t)))):wt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this.Ct()&&!this.St&&(this._integrations=function(t){const n={};return t.forEach((t=>{t&&Mn(t,n)})),n}(this.$t.integrations),this.St=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(t){return null}}addIntegration(t){Mn(t,this._integrations)}sendEvent(t,n={}){if(this.kt){let e=In(t,this.kt,this.$t.wt,this.$t.tunnel);for(const t of n.attachments||[])e=Ht(e,Ft(t,this.$t.transportOptions&&this.$t.transportOptions.textEncoder));const r=this.Dt(e);r&&r.then((n=>this.emit("afterSendEvent",t,n)),null)}}sendSession(t){if(this.kt){const n=function(t,n,e,r){const i=Bt(e);return Mt({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:S(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t]])}(t,this.kt,this.$t.wt,this.$t.tunnel);this.Dt(n)}}recordDroppedEvent(t,n,e){if(this.$t.sendClientReports){const e=`${t}:${n}`;this.Et[e]=this.Et[e]+1||1}}on(t,n){this.xt[t]||(this.xt[t]=[]),this.xt[t].push(n)}emit(t,...n){this.xt[t]&&this.xt[t].forEach((t=>t(...n)))}Lt(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)&&(Qt(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}It(t){return new Tt((n=>{let e=0;const r=setInterval((()=>{0==this.Tt?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))}),1)}))}Ct(){return!1!==this.getOptions().enabled&&void 0!==this.kt}Mt(t,n,e){const r=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),Hn(r,t,n,e)}jt(t,n={},e){return this.Ht(t,n,e).then((t=>t.event_id),(t=>{}))}Ht(t,n,e){const r=this.getOptions(),{sampleRate:i}=r;if(!this.Ct())return St(new b("SDK not enabled, will not capture event.","log"));const s=Fn(t),o=qn(t),c=t.type||"error",a=`before send for type \`${c}\``;if(o&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),St(new b(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const f="replay_event"===c?"replay":c;return this.Mt(t,n,e).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",f,t),new b("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(qn(n)&&r)return r(n,e);if(Fn(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(h(t))return t.then((t=>{if(!u(t)&&null!==t)throw new b(e);return t}),(t=>{throw new b(`${n} rejected with ${t}`)}));if(!u(t)&&null!==t)throw new b(e);return t}(i,a)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",f,t),new b(`${a} returned \`null\`, will not send event.`,"log");const i=e&&e.getSession();!s&&i&&this.Lt(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 b)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}Rt(t){this.Tt++,t.then((t=>(this.Tt--,t)),(t=>(this.Tt--,t)))}Dt(t){if(this.Ot&&this.kt)return this.emit("beforeEnvelope",t),this.Ot.send(t).then(null,(t=>{}))}At(){const t=this.Et;return this.Et={},Object.keys(t).map((n=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t[n]}}))}}function qn(t){return void 0===t.type}function Fn(t){return"transaction"===t.type}function Pn(t,n,e=Et(t.bufferSize||30)){let r={};function i(i){const s=[];if(At(i,((n,e)=>{const i=Ut(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=Un(n,e);t.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(n)})),0===s.length)return wt();const o=Mt(i[0],s),c=n=>{At(o,((e,r)=>{const i=Un(e,r);t.recordDroppedEvent(n,Ut(r),i)}))};return e.add((()=>n({body:qt(o,t.textEncoder)}).then((t=>(r=Xt(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof b)return c("queue_overflow"),wt();throw t}))}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>e.drain(t)}}function Un(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0}const Bn="7.51.2";let Xn;class zn{constructor(){zn.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=zn.id}setupOnce(){Xn=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=L(this)||this;return Xn.apply(n,t)}}catch(t){}}}zn.__initStatic();const Gn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class Wn{static __initStatic(){this.id="InboundFilters"}__init(){this.name=Wn.id}constructor(t={}){this.$t=t,Wn.prototype.__init.call(this)}setupOnce(t,n){const e=t=>{const e=n();if(e){const n=e.getIntegration(Wn);if(n){const r=e.getClient(),i=r?r.getOptions():{},s=function(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...Gn],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(n.$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){if(t.message)return[t.message];if(t.exception){const{values:n}=t.exception;try{const{type:t="",value:e=""}=n&&n[n.length-1]||{};return[`${e}`,`${t}: ${e}`]}catch(t){return[]}}return[]}(t).some((t=>j(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&&j(e,n)}(t,n.ignoreTransactions))return!0;if(function(t,n){if(!n||!n.length)return!1;const e=Jn(t);return!!e&&j(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n||!n.length)return!0;const e=Jn(t);return!e||j(e,n)}(t,n.allowUrls))return!0;return!1}(t,s)?null:t}}return t};e.id=this.name,t(e)}}function Jn(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}}Wn.__initStatic();var Kn=Object.freeze({__proto__:null,FunctionToString:zn,InboundFilters:Wn});const Yn=p;const Vn=(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)))}},Qn=()=>Yn.__WEB_VITALS_POLYFILL__?Yn.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=Yn.performance.timing,n=Yn.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})()):Yn.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Zn=()=>{const t=Qn();return t&&t.activationStart||0},te=(t,n)=>{const e=Qn();let r="navigate";return e&&(r=Yn.document.prerendering||Zn()>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}},ne=(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){}},ee=(t,n)=>{const e=r=>{"pagehide"!==r.type&&"hidden"!==Yn.document.visibilityState||(t(r),n&&(removeEventListener("visibilitychange",e,!0),removeEventListener("pagehide",e,!0)))};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)};let re=-1;const ie=()=>(re<0&&(re="hidden"!==Yn.document.visibilityState||Yn.document.prerendering?1/0:0,ee((({timeStamp:t})=>{re=t}),!0)),{get firstHiddenTime(){return re}}),se={};function oe(t){return"number"==typeof t&&isFinite(t)}function ce(t,{startTimestamp:n,...e}){return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild({startTimestamp:n,...e})}function ue(t){return t/1e3}function ae(){return Yn&&Yn.addEventListener&&Yn.performance}let he,fe,de=0,le={};function pe(){const t=ae();if(t&&Dt){t.mark&&Yn.performance.mark("sentry-tracing-init"),(t=>{const n=ie(),e=te("FID");let r;const i=t=>{t.startTime{t.forEach(i)},o=ne("first-input",s);r=Vn(t,e),o&&ee((()=>{s(o.takeRecords()),o.disconnect()}),!0)})((t=>{const n=t.entries.pop();if(!n)return;const e=ue(Dt),r=ue(n.startTime);le.fid={value:t.value,unit:"millisecond"},le["mark.fid"]={value:e+r,unit:"second"}}));const n=(t=>{const n=te("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=ne("layout-shift",s);if(o){e=Vn(t,n);const r=()=>{s(o.takeRecords()),e(!0)};return ee(r),r}})((t=>{const n=t.entries.pop();n&&(le.cls={value:t.value,unit:""},fe=n)})),e=(t=>{const n=ie(),e=te("LCP");let r;const i=t=>{const i=t[t.length-1];if(i){const t=Math.max(i.startTime-Zn(),0);t{se[e.id]||(i(s.takeRecords()),s.disconnect(),se[e.id]=!0,r(!0))};return["keydown","click"].forEach((t=>{addEventListener(t,n,{once:!0,capture:!0})})),ee(n,!0),n}})((t=>{const n=t.entries.pop();n&&(le.lcp={value:t.value,unit:"millisecond"},he=n)}));return()=>{n&&n(),e&&e()}}return()=>{}}function me(t){const n=ae();if(!n||!Yn.performance.getEntries||!Dt)return;const e=ue(Dt),r=n.getEntries();let i,s;if(r.slice(de).forEach((n=>{const r=ue(n.startTime),o=ue(n.duration);if(!("navigation"===t.op&&e+r{ye(t,n,r,e)})),ye(t,n,"secureConnection",e,"TLS/SSL","connectEnd"),ye(t,n,"fetch",e,"cache","domainLookupStart"),ye(t,n,"domainLookup",e,"DNS"),function(t,n,e){ce(t,{op:"browser",description:"request",startTimestamp:e+ue(n.requestStart),endTimestamp:e+ue(n.responseEnd)}),ce(t,{op:"browser",description:"response",startTimestamp:e+ue(n.responseStart),endTimestamp:e+ue(n.responseEnd)})}(t,n,e)}(t,n,e),i=e+ue(n.responseStart),s=e+ue(n.requestStart);break;case"mark":case"paint":case"measure":{!function(t,n,e,r,i){const s=i+e,o=s+r;ce(t,{description:n.name,endTimestamp:o,op:n.entryType,startTimestamp:s})}(t,n,r,o,e);const i=ie(),s=n.startTime{if(!le[n]||e>=t.startTimestamp)return;const r=le[n].value,i=e+ue(r),s=Math.abs(1e3*(i-t.startTimestamp));le[n].value=s}));const n=le["mark.fid"];n&&le.fid&&(ce(t,{description:"first input delay",endTimestamp:n.value+ue(le.fid.value),op:"ui.action",startTimestamp:n.value}),delete le["mark.fid"]),"fcp"in le||delete le.cls,Object.keys(le).forEach((n=>{t.setMeasurement(n,le[n].value,le[n].unit)})),function(t){he&&(he.element&&t.setTag("lcp.element",g(he.element)),he.id&&t.setTag("lcp.id",he.id),he.url&&t.setTag("lcp.url",he.url.trim().slice(0,200)),t.setTag("lcp.size",he.size));fe&&fe.sources&&fe.sources.forEach(((n,e)=>t.setTag(`cls.source.${e+1}`,g(n.node))))}(t)}he=void 0,fe=void 0,le={}}function ye(t,n,e,r,i,s){const o=s?n[s]:n[`${e}End`],c=n[`${e}Start`];c&&o&&ce(t,{op:"browser",description:i||e,startTimestamp:r+ue(c),endTimestamp:r+ue(o)})}const ve=["localhost",/^\//],ge={traceFetch:!0,traceXHR:!0,tracingOrigins:ve,tracePropagationTargets:ve};function _e(t){const{traceFetch:n,traceXHR:e,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s}={traceFetch:ge.traceFetch,traceXHR:ge.traceXHR,...t},o="function"==typeof s?s:t=>!0,c=t=>function(t,n){return j(t,n||ve)}(t,r||i),u={};n&&tt("fetch",(t=>{!function(t,n,e,r){if(!fn()||!t.fetchData||!n(t.fetchData.url))return;if(t.endTimestamp){const n=t.fetchData.__span;if(!n)return;const e=r[n];return void(e&&(t.response?e.setHttpStatus(t.response.status):t.error&&e.setStatus("internal_error"),e.finish(),delete r[n]))}const i=t.response&&t.response.headers&&t.response.headers.get("content-length"),s=un().getScope(),o=s&&s.getSpan(),c=o&&o.transaction;if(o&&c){const{method:n,url:s}=t.fetchData,u=o.startChild({data:{url:s,type:"fetch",...i?{"http.response_content_length":i}:{},"http.method":n},description:`${n} ${s}`,op:"http.client"});t.fetchData.__span=u.spanId,r[u.spanId]=u;const a=t.args[0];t.args[1]=t.args[1]||{};const h=t.args[1];e(t.fetchData.url)&&(h.headers=function(t,n,e,r){const i=Jt(n),s=e.toTraceparent(),o="undefined"!=typeof Request&&d(t,Request)?t.headers:r.headers;if(o){if("undefined"!=typeof Headers&&d(o,Headers)){const t=new Headers(o);return t.append("sentry-trace",s),i&&t.append(zt,i),t}if(Array.isArray(o)){const t=[...o,["sentry-trace",s]];return i&&t.push([zt,i]),t}{const t="baggage"in o?o.baggage:void 0,n=[];return Array.isArray(t)?n.push(...t):t&&n.push(t),i&&n.push(i),{...o,"sentry-trace":s,baggage:n.length>0?n.join(","):void 0}}}return{"sentry-trace":s,baggage:i}}(a,c.getDynamicSamplingContext(),u,h))}}(t,o,c,u)})),e&&tt("xhr",(t=>{!function(t,n,e,r){const i=t.xhr,s=i&&i.__sentry_xhr_v2__;if(!fn()||i&&i.__sentry_own_request__||!(i&&s&&n(s.url)))return;if(t.endTimestamp){const t=i.__sentry_xhr_span_id__;if(!t)return;const n=r[t];return void(n&&(n.setHttpStatus(s.status_code),n.finish(),delete r[t]))}const o=un().getScope(),c=o&&o.getSpan(),u=c&&c.transaction;if(c&&u){const t=c.startChild({data:{...s.data,type:"xhr","http.method":s.method,url:s.url},description:`${s.method} ${s.url}`,op:"http.client"});if(i.__sentry_xhr_span_id__=t.spanId,r[i.__sentry_xhr_span_id__]=t,i.setRequestHeader&&e(s.url))try{i.setRequestHeader("sentry-trace",t.toTraceparent());const n=Jt(u.getDynamicSamplingContext());n&&i.setRequestHeader(zt,n)}catch(t){}}}(t,o,c,u)}))}const be={...gn,markBackgroundTransactions:!0,routingInstrumentation:function(t,n=!0,e=!0){if(!Yn||!Yn.location)return;let r,i=Yn.location.href;n&&(r=t({name:Yn.location.pathname,startTimestamp:Dt?Dt/1e3:void 0,op:"pageload",metadata:{source:"url"}})),e&&tt("history",(({to:n,from:e})=>{void 0===e&&i&&-1!==i.indexOf(n)?i=void 0:e!==n&&(i=void 0,r&&r.finish(),r=t({name:Yn.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...ge};class we{__init(){this.name="BrowserTracing"}constructor(t){we.prototype.__init.call(this),$n(),this.options={...be,...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.Nt=pe(),this.options.enableLongTask&&ne("longtask",(t=>{for(const n of t){const t=dn();if(!t)return;const e=ue(Dt+n.startTime),r=ue(n.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:e,endTimestamp:e+r})}})),this.options._experiments.enableInteractions&&ne("event",(t=>{for(const n of t){const t=dn();if(!t)return;if("click"===n.name){const e=ue(Dt+n.startTime),r=ue(n.duration);t.startChild({description:g(n.target),op:`ui.interaction.${n.name}`,startTimestamp:e,endTimestamp:e+r})}}}),{durationThreshold:0})}setupOnce(t,n){this.qt=n;const{routingInstrumentation:e,startTransactionOnLocationChange:r,startTransactionOnPageLoad:i,markBackgroundTransactions:s,traceFetch:o,traceXHR:c,tracePropagationTargets:u,shouldCreateSpanForRequest:a,_experiments:h}=this.options;e((t=>{const e=this.Ft(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(e,t,n),e}),i,r),s&&Yn&&Yn.document&&Yn.document.addEventListener("visibilitychange",(()=>{const t=dn();if(Yn.document.hidden&&t){const n="cancelled";t.status||t.setStatus(n),t.setTag("visibilitychange","document.hidden"),t.finish()}})),h.enableInteractions&&this.Pt(),_e({traceFetch:o,traceXHR:c,tracePropagationTargets:u,shouldCreateSpanForRequest:a})}Ft(t){if(!this.qt)return;const{beforeNavigate:n,idleTimeout:e,finalTimeout:r,heartbeatInterval:i}=this.options,s="pageload"===t.op,c=s?Se("sentry-trace"):null,u=s?Se("baggage"):null,a=c?function(t){const n=t.match(Lt);if(!t||!n)return;let e;return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(c):void 0,h=u?function(t){if(!o(t)&&!Array.isArray(t))return;let n={};if(Array.isArray(t))n=t.reduce(((t,n)=>({...t,...Kt(n)})),{});else{if(!t)return;n=Kt(t)}const e=Object.entries(n).reduce(((t,[n,e])=>(n.match(Wt)&&(t[n.slice(Gt.length)]=e),t)),{});return Object.keys(e).length>0?e:void 0}(u):void 0,f={...t,...a,metadata:{...t.metadata,dynamicSamplingContext:a&&!h?{}:h},trimEnd:!0},d="function"==typeof n?n(f):f,l=void 0===d?{...f,sampled:!1}:d;l.metadata=l.name!==f.name?{...l.metadata,source:"custom"}:l.metadata,this.Ut=l.name,this.Bt=l.metadata&&l.metadata.source;const p=this.qt(),{location:m}=Yn,y=xn(p,l,e,r,!0,{location:m},i);return y.registerBeforeFinishCallback((t=>{this.Nt(),me(t)})),y}Pt(){let t;const n=()=>{const{idleTimeout:n,finalTimeout:e,heartbeatInterval:r}=this.options,i=dn();if(i&&i.op&&["navigation","pageload"].includes(i.op))return;if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this.qt)return;if(!this.Ut)return;const s=this.qt(),{location:o}=Yn,c={name:this.Ut,op:"ui.action.click",trimEnd:!0,metadata:{source:this.Bt||"url"}};t=xn(s,c,n,e,!0,{location:o},r)};["click"].forEach((t=>{addEventListener(t,n,{once:!1,capture:!0})}))}}function Se(t){const n=(e=`meta[name=${t}]`,v.document&&v.document.querySelector?v.document.querySelector(e):null);var e;return n?n.getAttribute("content"):null}function Te(){$n()}class Ee{static __initStatic(){this.id="HttpClient"}__init(){this.name=Ee.id}constructor(t){Ee.prototype.__init.call(this),this.$t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...t}}setupOnce(t,n){this.qt=n,this.Xt(),this.zt()}Gt(t,n,e){if(this.qt&&this.Wt(n.status,n.url)){const r=function(t,n){if(!n&&t instanceof Request)return t;if(t instanceof Request&&t.bodyUsed)return t;return new Request(t,n)}(t,e),i=this.qt();let s,o,c,u;i.shouldSendDefaultPii()&&([{headers:s,cookies:c},{headers:o,cookies:u}]=[{cookieHeader:"Cookie",obj:r},{cookieHeader:"Set-Cookie",obj:n}].map((({cookieHeader:t,obj:n})=>{const e=this.Jt(n.headers);let r;try{const n=e[t]||e[t.toLowerCase()]||void 0;n&&(r=this.Kt(n))}catch(t){}return{headers:e,cookies:r}})));const a=this.Yt({url:r.url,method:r.method,status:n.status,requestHeaders:s,responseHeaders:o,requestCookies:c,responseCookies:u});i.captureEvent(a)}}Vt(t,n,e){if(this.qt&&this.Wt(t.status,t.responseURL)){let r,i,s;const o=this.qt();if(o.shouldSendDefaultPii()){try{const n=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;n&&(i=this.Kt(n))}catch(t){}try{s=this.Qt(t)}catch(t){}r=e}const c=this.Yt({url:t.responseURL,method:n,status:t.status,requestHeaders:r,responseHeaders:s,responseCookies:i});o.captureEvent(c)}else if(this.qt&&this.Zt(t.status,t.readyState))try{const r=this.qt();if(t){const{url:i}=t.__sentry_xhr_v2__,s=new Error;if(s.name=`ApiError:${i}`,e&&n){const t=e.accept;s.message=`XHR Request Timeout or crossorigin:headers ${t};method=${n}`}r.captureException(s)}}catch(t){$.log("Could not extract headers from response")}}tn(t){if(t){const n=t["Content-Length"]||t["content-length"];if(n)return parseInt(n,10)}}Kt(t){return t.split("; ").reduce(((t,n)=>{const[e,r]=n.split("=");return t[e]=r,t}),{})}Jt(t){const n={};return t.forEach(((t,e)=>{n[e]=t})),n}Qt(t){const n=t.getAllResponseHeaders();return n?n.split("\r\n").reduce(((t,n)=>{const[e,r]=n.split(": ");return t[e]=r,t}),{}):{}}nn(t){return!!this.$t.failedRequestTargets&&this.$t.failedRequestTargets.some((n=>"string"==typeof n?t.includes(n):n.test(t)))}en(t){return!!this.$t.failedRequestStatusCodes&&this.$t.failedRequestStatusCodes.some((n=>"number"==typeof n?n===t:t>=n[0]&&t<=n[1]))}Xt(){J()&&tt("fetch",(t=>{const{response:n,args:e}=t,[r,i]=e;n&&this.Gt(r,n,i)}))}zt(){"XMLHttpRequest"in p&&tt("xhr",(t=>{const{xhr:n}=t,e=n.__sentry_xhr_v2__;if(!e)return;const{method:r,request_headers:i}=e;if(r)try{this.Vt(n,r,i)}catch(t){}}))}rn(t){const n=this.qt&&this.qt().getClient();if(!n)return!1;const e=n.getDsn();return!!e&&t.includes(e.host)}Wt(t,n){return 0!==t&&this.en(t)&&this.nn(n)&&!this.rn(n)}Zt(t,n){return 4===n&&0===t&&this.en(t)}Yt(t){const n=`HTTP Client Error with status code: ${t.status}`,e={message:n,exception:{values:[{type:"Error",value:n}]},request:{url:t.url,method:t.method,headers:t.requestHeaders,cookies:t.requestCookies},contexts:{response:{status_code:t.status,headers:t.responseHeaders,cookies:t.responseCookies,body_size:this.tn(t.responseHeaders)}}};return pt(e,{type:"http.client"}),e}}Ee.__initStatic();const xe=p;let $e=0;function ke(){return $e>0}function Oe(){$e++,setTimeout((()=>{$e--}))}function Re(t,n={},e){if("function"!=typeof t)return t;try{const n=t.__sentry_wrapped__;if(n)return n;if(L(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=>Re(t,n)));return t.apply(this,i)}catch(t){throw Oe(),On((e=>{e.addEventProcessor((t=>(n.mechanism&&(lt(t,void 0,void 0),pt(t,n.mechanism)),t.extra={...t.extra,arguments:r},t))),kn(t)})),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}D(sentryWrapped,t),I(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function je(t,n){const e=Ie(t,n),r={type:n&&n.name,value:Le(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ce(t,n){return{exception:{values:[je(t,n)]}}}function Ie(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(De.test(t.message))return 1}return 0}(n);try{return t(e,r)}catch(t){}return[]}const De=/Minified React error #\d+;/i;function Le(t){const n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function Me(t,n,e,r){const i=Ae(t,n,e&&e.syntheticException||void 0,r);return pt(i),i.level="error",e&&e.event_id&&(i.event_id=e.event_id),wt(i)}function He(t,n,e="info",r,i){const s=Ne(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 Ae(t,n,o,c,h){let f;if(i(n)&&n.error){return Ce(t,n.error)}if(s(n)||r(n,"DOMException")){const e=n;if("stack"in n)f=Ce(t,n);else{const n=e.name||(s(e)?"DOMError":"DOMException"),r=e.message?`${n}: ${e.message}`:n;f=Ne(t,r,o,c),lt(f,r)}return"code"in e&&(f.tags={...f.tags,"DOMException.code":`${e.code}`}),f}if(e(n))return Ce(t,n);if(u(n)||a(n)){return f=function(t,n,e,r){const i=un().getClient(),s=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:a(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${N(n)}`}]},extra:{__serialized__:gt(n,s)}};if(e){const n=Ie(t,e);n.length&&(o.exception.values[0].stacktrace={frames:n})}return o}(t,n,o,h),pt(f,{synthetic:!0}),f}return f=Ne(t,n,o,c),lt(f,`${n}`,void 0),pt(f,{synthetic:!0}),f}function Ne(t,n,e,r){const i={message:n};if(r&&e){const r=Ie(t,e);r.length&&(i.exception={values:[{value:n,stacktrace:{frames:r}}]})}return i}const qe=1024,Fe="Breadcrumbs";class Pe{static __initStatic(){this.id=Fe}__init(){this.name=Pe.id}constructor(t){Pe.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&tt("console",Ue),this.options.dom&&tt("dom",function(t){function n(n){let e,r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>qe&&(i=qe),"string"==typeof r&&(r=[r]);try{const t=n.event;e=function(t){return t&&!!t.target}(t)?g(t.target,{keyAttrs:r,maxStringLength:i}):g(t,{keyAttrs:r,maxStringLength:i})}catch(t){e=""}0!==e.length&&un().addBreadcrumb({category:`ui.${n.name}`,message:e},{event:n.event,name:n.name,global:n.global})}return n}(this.options.dom)),this.options.xhr&&tt("xhr",Be),this.options.fetch&&tt("fetch",Xe),this.options.history&&tt("history",ze)}addSentryBreadcrumb(t){this.options.sentry&&un().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:dt(t)},{event:t})}}function Ue(t){for(let n=0;n{"hidden"===xe.document.visibilityState&&this.sn()}))}eventFromException(t,n){return Me(this.$t.stackParser,t,n,this.$t.attachStacktrace)}eventFromMessage(t,n="info",e){return He(this.$t.stackParser,t,n,e,this.$t.attachStacktrace)}sendEvent(t,n){const e=this.getIntegrationById(Fe);e&&e.addSentryBreadcrumb&&e.addSentryBreadcrumb(t),super.sendEvent(t,n)}captureUserFeedback(t){if(!this.Ct())return;const n=Ge(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.Dt(n)}Mt(t,n,e){return t.platform=t.platform||"javascript",super.Mt(t,n,e)}sn(){const t=this.At();if(0===t.length)return;if(!this.kt)return;const n=(e=t,Mt((r=this.$t.tunnel&&S(this.kt))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||Ct(),discarded_events:e}]]));var e,r,i;this.Dt(n)}}let Je;function Ke(t,n=function(){if(Je)return Je;if(W(xe.fetch))return Je=xe.fetch.bind(xe);const t=xe.document;let n=xe.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 Je=n.bind(xe)}()){let e=0,r=0;return Pn(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 Je=void 0,e-=s,r--,St(t)}}))}function Ye(t){return Pn(t,(function(n){return new Tt(((e,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&e({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const n in t.headers)Object.prototype.hasOwnProperty.call(t.headers,n)&&i.setRequestHeader(n,t.headers[n]);i.send(n.body)}))}))}const Ve="?";function Qe(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 Ze=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tr=/\((\S*)(?::(\d+))(?::(\d+))\)/,nr=[30,t=>{const n=Ze.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=tr.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=lr(n[1]||Ve,n[2]);return Qe(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],er=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ir=[50,t=>{const n=er.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=rr.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]||Ve;return[e,t]=lr(e,t),Qe(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],sr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,or=[40,t=>{const n=sr.exec(t);return n?Qe(n[2],n[1]||Ve,+n[3],n[4]?+n[4]:void 0):void 0}],cr=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,ur=[10,t=>{const n=cr.exec(t);return n?Qe(n[2],n[3]||Ve,+n[1]):void 0}],ar=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,hr=[20,t=>{const n=ar.exec(t);return n?Qe(n[5],n[3]||n[4]||Ve,+n[1],+n[2]):void 0}],fr=[nr,ir,or],dr=U(...fr),lr=(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]:Ve,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};class pr{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=pr.id}__init2(){this.cn={onerror:mr,onunhandledrejection:yr}}constructor(t){pr.prototype.__init.call(this),pr.prototype.__init2.call(this),this.$t={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this.$t;for(const n in t){const e=this.cn[n];e&&t[n]&&(e(),this.cn[n]=void 0)}}}function mr(){tt("error",(t=>{const[n,e,r]=_r();if(!n.getIntegration(pr))return;const{msg:s,url:c,line:u,column:a,error:h}=t;if(ke()||h&&h.__sentry_own_request__)return;const 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 vr({exception:{values:[{type:c,value:o}]}},n,e,r)}(s,c,u,a):vr(Ae(e,h||s,void 0,r,!1),c,u,a);f.level="error",gr(n,h,f,"onerror")}))}function yr(){tt("unhandledrejection",(t=>{const[n,e,r]=_r();if(!n.getIntegration(pr))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(ke()||i&&i.__sentry_own_request__)return!0;const s=c(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Ae(e,i,void 0,r,!0);s.level="error",gr(n,i,s,"onunhandledrejection")}))}function vr(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 v.document.location.href}catch(t){return""}}();return 0===a.length&&a.push({colno:h,filename:d,function:"?",in_app:!0,lineno:f}),t}function gr(t,n,e,r){pt(e,{handled:!1,type:r}),t.captureEvent(e,{originalException:n})}function _r(){const t=un(),n=t.getClient(),e=n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,e.stackParser,e.attachStacktrace]}pr.__initStatic();const br=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class wr{static __initStatic(){this.id="TryCatch"}__init(){this.name=wr.id}constructor(t){wr.prototype.__init.call(this),this.$t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this.$t.setTimeout&&C(xe,"setTimeout",Sr),this.$t.setInterval&&C(xe,"setInterval",Sr),this.$t.requestAnimationFrame&&C(xe,"requestAnimationFrame",Tr),this.$t.XMLHttpRequest&&"XMLHttpRequest"in xe&&C(XMLHttpRequest.prototype,"send",Er);const t=this.$t.eventTarget;if(t){(Array.isArray(t)?t:br).forEach(xr)}}}function Sr(t){return function(...n){const e=n[0];return n[0]=Re(e,{mechanism:{data:{function:X(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}function Tr(t){return function(n){return t.apply(this,[Re(n,{mechanism:{data:{function:"requestAnimationFrame",handler:X(t)},handled:!0,type:"instrument"}})])}}function Er(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"==typeof e[t]&&C(e,t,(function(n){const e={mechanism:{data:{function:t,handler:X(n)},handled:!0,type:"instrument"}},r=L(n);return r&&(e.mechanism.data.handler=X(r)),Re(n,e)}))})),t.apply(this,n)}}function xr(t){const n=xe,e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(C(e,"addEventListener",(function(n){return function(e,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Re(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:X(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.apply(this,[e,Re(r,{mechanism:{data:{function:"addEventListener",handler:X(r),target:t},handled:!0,type:"instrument"}}),i])}})),C(e,"removeEventListener",(function(t){return function(n,e,r){const i=e;try{const e=i&&i.__sentry_wrapped__;e&&t.call(this,n,e,r)}catch(t){}return t.call(this,n,i,r)}})))}wr.__initStatic();class $r{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=$r.id}constructor(t={}){$r.prototype.__init.call(this),this.un=t.key||"cause",this.an=t.limit||5}setupOnce(){const t=un().getClient();t&&en(((n,e)=>{const r=un().getIntegration($r);return r?function(t,n,e,r,i){if(!(r.exception&&r.exception.values&&i&&d(i.originalException,Error)))return r;const s=kr(t,e,i.originalException,n);return r.exception.values=[...s,...r.exception.values],r}(t.getOptions().stackParser,r.un,r.an,n,e):n}))}}function kr(t,n,e,r,i=[]){if(!d(e[r],Error)||i.length+1>=n)return i;const s=je(t,e[r]);return kr(t,n,e[r],r,[s,...i])}$r.__initStatic();class Or{constructor(){Or.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Or.id}setupOnce(){en((t=>{if(un().getIntegration(Or)){if(!xe.navigator&&!xe.location&&!xe.document)return t;const n=t.request&&t.request.url||xe.location&&xe.location.href,{referrer:e}=xe.document||{},{userAgent:r}=xe.navigator||{},i={...t.request&&t.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}},s={...t.request,...n&&{url:n},headers:i};return{...t,request:s}}return t}))}}Or.__initStatic();class Rr{constructor(){Rr.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Rr.id}setupOnce(t,n){const e=t=>{if(t.type)return t;const e=n().getIntegration(Rr);if(e){try{if(function(t,n){if(!n)return!1;if(!function(t,n){if(!t.request||!n.request)return!0;const e=t.request.url,r=n.request.url;return e===r}(t,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(!Cr(t,n))return!1;if(!jr(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=Ir(n),r=Ir(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!Cr(t,n))return!1;if(!jr(t,n))return!1;return!0}(t,n))return!0;return!1}(t,e.hn))return null}catch(n){return e.hn=t}return e.hn=t}return t};e.id=this.name,t(e)}}function jr(t,n){let e=Dr(t),r=Dr(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{for(;xe.Sentry&&xe.__SENTRY_ERROE_DATAS__&&xe.__SENTRY_ERROE_DATAS__.length>0;)xe.Sentry.captureException(xe.__SENTRY_ERROE_DATAS__.shift())}),1e3);const Nr={...Ar,...Kn,...Lr};return Nr.HttpClient=Ee,Nr.BrowserTracing=we,Te(),t.Breadcrumbs=Pe,t.BrowserClient=We,t.BrowserTracing=we,t.Dedupe=Rr,t.FunctionToString=zn,t.GlobalHandlers=pr,t.HttpClient=Ee,t.HttpContext=Or,t.Hub=sn,t.InboundFilters=Wn,t.Integrations=Nr,t.LinkedErrors=$r,t.SDK_VERSION=Bn,t.Scope=tn,t.Span=yn,t.TryCatch=wr,t.WINDOW=xe,t.addBreadcrumb=function(t){un().addBreadcrumb(t)},t.addExtensionMethods=Te,t.addGlobalEventProcessor=en,t.captureEvent=function(t,n){return un().captureEvent(t,n)},t.captureException=kn,t.captureMessage=function(t,n){const e="string"==typeof n?n:void 0,r="string"!=typeof n?{captureContext:n}:void 0;return un().captureMessage(t,e,r)},t.captureUserFeedback=function(t){const n=un().getClient();n&&n.captureUserFeedback(t)},t.chromeStackLineParser=nr,t.close=function(t){const n=un().getClient();return n?n.close(t):wt(!1)},t.configureScope=function(t){un().configureScope(t)},t.createTransport=Pn,t.createUserFeedbackEnvelope=Ge,t.defaultIntegrations=Mr,t.defaultStackLineParsers=fr,t.defaultStackParser=dr,t.eventFromException=Me,t.eventFromMessage=He,t.flush=function(t){const n=un().getClient();return n?n.flush(t):wt(!1)},t.forceLoad=function(){},t.geckoStackLineParser=ir,t.getCurrentHub=un,t.getHubFromCarrier=an,t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=Mr),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),xe.SENTRY_RELEASE&&xe.SENTRY_RELEASE.id&&(t.release=xe.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const n={...t,stackParser:(e=t.stackParser||dr,Array.isArray(e)?U(...e):e),integrations:Ln(t),transport:t.transport||(G()?Ke:Ye)};var e;!function(t,n){!0===n.debug&&console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");const e=un();e.getScope().update(n.initialScope);const r=new t(n);e.bindClient(r);const i=p,s=(i.document&&i.document.cookie||"").replace(/(?:(?:^|.*;\s*)b2b_ip_country\s*\=\s*([^;]*).*$)|^.*$/,"$1")||"null";s&&e.setTag("language",s)}(We,n),t.autoSessionTracking&&function(){if(void 0===xe.document)return;const t=un();if(!t.captureSession)return;Hr(t),tt("history",(({from:t,to:n})=>{void 0!==t&&t!==n&&Hr(un())}))}()},t.lastEventId=function(){return un().lastEventId()},t.makeFetchTransport=Ke,t.makeMain=cn,t.makeXHRTransport=Ye,t.onLoad=function(t){t()},t.opera10StackLineParser=ur,t.opera11StackLineParser=hr,t.setContext=function(t,n){un().setContext(t,n)},t.setExtra=function(t,n){un().setExtra(t,n)},t.setExtras=function(t){un().setExtras(t)},t.setTag=function(t,n){un().setTag(t,n)},t.setTags=function(t){un().setTags(t)},t.setUser=function(t){un().setUser(t)},t.showReportDialog=function(t={},n=un()){if(!xe.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=xe.document.createElement("script");s.async=!0,s.src=function(t,n){const e=E(t),r=`${Rn(e)}embed/error-page/`;let i=`dsn=${S(e)}`;for(const t in n)if("dsn"!==t)if("user"===t){const t=n.user;if(!t)continue;t.name&&(i+=`&name=${encodeURIComponent(t.name)}`),t.email&&(i+=`&email=${encodeURIComponent(t.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${i}`}(i,t),t.onLoad&&(s.onload=t.onLoad);const o=xe.document.head||xe.document.body;o&&o.appendChild(s)},t.startTransaction=function(t,n){return un().startTransaction({...t},n)},t.winjsStackLineParser=or,t.withScope=On,t.wrap=function(t){return Re(t)()},t}({}); //# sourceMappingURL=bundle.tracing.httpclient.min.js.map