PageSourceSearch

https://discours.netlify.app/scripts/sentry-abee5b08.js

js discours.netlify.app collected 2026-10-03 10:40:30 UTC 87,037 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkdiscours_io_frontend=globalThis.webpackChunkdiscours_io_frontend||[]).push([[326],{4727(t,e,n){function r(){return s(Yn),Yn}function s(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Vn,e[Vn]=e[Vn]||{}}function o(t,e,n=Yn){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Vn]=r[Vn]||{};return s[t]||(s[t]=e())}function i(t){switch(Gn.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return g(t,Error)}}function a(t,e){return Gn.call(t)===`[object ${e}]`}function c(t){return a(t,"ErrorEvent")}function u(t){return a(t,"DOMError")}function d(t){return a(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function p(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function f(t){return a(t,"Object")}function h(t){return"undefined"!=typeof Event&&g(t,Event)}function m(t){return Boolean(t?.then&&"function"==typeof t.then)}function g(t,e){try{return t instanceof e}catch{return!1}}function _(t){return!("object"!=typeof t||null===t||!(t.__isVue||t._isVue||t.__v_isVNode))}function v(t){return"undefined"!=typeof Request&&g(t,Request)}function y(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const d=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&o++<r&&(u=b(n,d),!("html"===u||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function b(t,e){const n=t,r=[];if(!n?.tagName)return"";if(Kn.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=e?.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;if(s?.length)s.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&d(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const o=["aria-label","type","name","title","alt"];for(const t of o){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function E(){try{return Kn.document.location.href}catch{return""}}function S(t){if(!("console"in Yn))return t();const e=Yn.console,n={},r=Object.keys(Zn);r.forEach(t=>{const r=Zn[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function x(){return k().enabled}function w(t,...e){Jn&&x()&&S(()=>{Yn.console[t](`Sentry Logger [${t}]:`,...e)})}function k(){return Jn?o("loggerSettings",()=>({enabled:!1})):{enabled:!1}}function T(t,e,n){if(!(e in t))return;const r=t[e];if("function"!=typeof r)return;const s=n(r);"function"==typeof s&&C(s,r);try{t[e]=s}catch{Jn&&Qn.log(`Failed to replace method "${e}" in object`,t)}}function O(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Jn&&Qn.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function C(t,e){try{t.prototype=e.prototype=e.prototype||{},O(t,"__sentry_original__",e)}catch{}}function I(t){return t.__sentry_original__}function P(t){if(i(t))return{message:t.message,name:t.name,stack:t.stack,...A(t)};if(h(t)){const e={type:t.type,target:j(t.target),currentTarget:j(t.currentTarget),...A(t)};return"undefined"!=typeof CustomEvent&&g(t,CustomEvent)&&(e.detail=t.detail),e}return t}function j(t){try{return"undefined"!=typeof Element&&g(t,Element)?y(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function A(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function L(t){if(void 0!==tr)return tr?tr(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return e in Yn&&"function"==typeof Yn[e]?(tr=Yn[e],tr(t)):(tr=null,t())}function D(){return L(()=>Math.random())}function N(){return L(()=>Date.now())}function R(t=function(){return Yn.crypto||Yn.msCrypto}()){try{if(t?.randomUUID)return L(()=>t.randomUUID()).replace(/-/g,"")}catch{}return er||(er=[1e7]+1e3+4e3+8e3+1e11),er.replace(/[018]/g,t=>(t^(16*D()&15)>>t/4).toString(16))}function M(t){return t.exception?.values?.[0]}function U(t){const{message:e,event_id:n}=t;if(e)return e;const r=M(t);return r?r.type&&r.value?`${r.type}: ${r.value}
1`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function q(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function F(t,e){const n=M(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function B(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{O(t,"__sentry_captured__",!0)}catch{}return!1}function z(){return N()/1e3}function W(){return(nr??(nr=function(){const{performance:t}=Yn;if(!t?.now||!t.timeOrigin)return z;const e=t.timeOrigin;return()=>(e+L(()=>t.now()))/1e3}()))()}function H(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||W(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:R()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function V(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=V(r[t],e[t],n-1));return r}function Y(){return R()}function J(){return R().substring(16)}function G(t,e){e?O(t,rr,e):delete t[rr]}function K(t){return t[rr]}function X(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{const s=[],o=t.split("\n");for(let t=n;t<o.length;t++){let n=o[t];n.length>1024&&(n=n.slice(0,1024));const i=or.test(n)?n.replace(or,"$1"):n;if(!i.match(/\S*Error: /)){for(const t of e){const e=t(i);if(e){s.push(e);break}}if(s.length>=50+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(Z(e).function||"")&&e.pop(),e.reverse(),ir.test(Z(e).function||"")&&(e.pop(),ir.test(Z(e).function||"")&&e.pop()),e.slice(0,50).map(t=>({...t,filename:t.filename||Z(e).filename,function:t.function||sr}))}(s.slice(r))}}function Z(t){return t[t.length-1]||{}}function Q(t){try{return t&&"function"==typeof t&&t.name||ar}catch{return ar}}function tt(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{return}}}function et(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function nt(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function rt(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{_(r)?n.push(et(r)):n.push(String(r))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function st(t,e,n=!1){return!!d(t)&&(a(e,"RegExp")?e.test(t):!!d(e)&&(n?t===e:t.includes(e)))}function ot(t,e=[],n=!1){return e.some(e=>st(t,e,n))}function it(){const t=s(r());return t.stack=t.stack||new ur(o("defaultCurrentScope",()=>new cr),o("defaultIsolationScope",()=>new cr))}function at(t){return it().withScope(t)}function ct(t,e){const n=it();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function ut(t){return it().withScope(()=>t(it().getIsolationScope()))}function dt(t){const e=s(t);return e.acs?e.acs:{withIsolationScope:ut,withScope:at,withSetScope:ct,withSetIsolationScope:(t,e)=>ut(e),getCurrentScope:()=>it().getScope(),getIsolationScope:()=>it().getIsolationScope()}}function lt(){return dt(r()).getCurrentScope()}function pt(){return dt(r()).getIsolationScope()}function ft(...t){const e=dt(r());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function ht(){return lt().getClient()}function mt(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,o={trace_id:n,span_id:s||J()};return r&&(o.parent_span_id=r),o}function gt(t){return new lr(e=>{e(t)})}
1function _t(t){return new lr((e,n)=>{n(t)})}function vt(t,e,n,r=0){try{const s=yt(e,n,t,r);return m(s)?s:gt(s)}catch(t){return _t(t)}}function yt(t,e,n,r){const s=n[r];if(!t||!s)return t;const o=s({...t},e);return Jn&&null===o&&Qn.log(`Event processor "${s.id||"?"}" dropped event`),m(o)?o.then(t=>yt(t,e,n,r+1)):yt(o,e,n,r+1)}function bt(t,e=100,n=1/0){try{return St("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Et(t,e=3,n=102400){const r=bt(t,e);return s=JSON.stringify(r),~-encodeURI(s).split(/%..|./).length>n?Et(t,e-1,n):r;var s}function St(t,e,n=1/0,r=1/0,s=function(){const t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){const[o,i]=s;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof globalThis&&e===globalThis)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(_(e))return et(e);if(f(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${Q(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var n}(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(o(e))return"[Circular ~]";const u=e;if(u&&"function"==typeof u.toJSON)try{return St("",u.toJSON(),c-1,r,s)}catch{}const d=Array.isArray(e)?[]:{};let l=0;const p=P(e);for(const t in p)if(Object.prototype.hasOwnProperty.call(p,t)){if(l>=r){d[t]="[MaxProperties ~]";break}d[t]=St(t,p[t],c-1,r,s),l++}return i(e),d}function xt(t){return t.split(",").map(t=>{const e=t.indexOf("=");return-1===e?[]:[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[e,n])=>(e&&n&&(t[e]=n),t),{})}function wt(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}function kt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function $t(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=function(t){const e=t.match(yr);return e?.[1]}(n)),r}function Tt(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}function Ot(t){return{scope:t[Er],isolationScope:Tt(t[Sr])}}function Ct(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:At(t).parent_span_id,o=Ot(t).scope;return{parent_span_id:s,span_id:r?o?.getPropagationContext().propagationSpanId||J():e,trace_id:n}}function It(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:1===n,attributes:s,...r})):void 0}function Pt(t){return"number"==typeof t?jt(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?jt(t.getTime()):W()}function jt(t){return t>9999999999?t/1e3:t}function At(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(t)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0,start_timestamp:Pt(s),timestamp:Pt(i)||void 0,status:Lt(a),op:r["sentry.op"],origin:r["sentry.origin"],links:It(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Lt(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}function Dt(t){return t[wr]||t}function Nt(){xr||(S(()=>{}),xr=!0)}function Rt(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||dr,release:n.release,public_key:r,trace_id:t,org_id:$t(e)};return e.emit("createDsc",s),s}function Mt(t){function e(t){return"number"!=typeof a&&"string"!=typeof a||(t.sample_rate=`${a}`),t}const n=ht();if(!n)return{};const r=Dt(t),s=At(r),o=s.data,i=r.spanContext().traceState,a=i?.get("sentry.sample_rate")??o["sentry.sample_rate"]??o["sentry.previous_trace_sample_rate"],c=r[kr];if(c)return e(c);const u=i?.get("sentry.dsc"),l=u&&function(t){const e=function(t){if(t&&(d(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>{const n=xt(e);
1return Object.entries(n).forEach(([e,n])=>{t[e]=n}),t},{}):xt(t)}(t);if(!e)return;const n=Object.entries(e).reduce((t,[e,n])=>(e.match(vr)&&(t[e.slice(7)]=n),t),{});return Object.keys(n).length>0?n:void 0}(u);if(l)return e(l);const p=Rt(t.spanContext().traceId,n),f=s.description;return"url"!==o["sentry.source"]&&f&&(p.transaction=f),function(){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=ht()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}()&&(p.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return 1===e}(r)),p.sample_rand=i?.get("sentry.sample_rand")??Ot(r).scope?.getPropagationContext().sampleRand.toString()),e(p),n.emit("createDsc",p,r),p}function Ut(t,e){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:l,attachments:p,propagationContext:f,transactionName:h,span:m}=e;qt(t,"extra",n),qt(t,"tags",r),qt(t,"attributes",s),qt(t,"user",o),qt(t,"contexts",i),t.sdkProcessingMetadata=V(t.sdkProcessingMetadata,c,2),a&&(t.level=a),h&&(t.transactionName=h),m&&(t.span=m),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...f}}function qt(t,e,n){t[e]=V(t[e],n,1)}function Ft(t,e){const n=o("globalScope",()=>new cr).getScopeData();return t&&Ut(n,t.getScopeData()),e&&Ut(n,e.getScopeData()),n}function Bt(t,e,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||R(),timestamp:e.timestamp||z()},u=n.integrations||t.integrations.map(t=>t.name);(function(t,e){const{environment:n,release:r,dist:s,maxValueLength:o}=e;t.environment=t.environment||n||dr,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const i=t.request;i?.url&&o&&(i.url=nt(i.url,o)),o&&t.exception?.values?.forEach(t=>{t.value&&(t.value=nt(t.value,o))})})(c,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(c,u),s&&s.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=function(t){const e=Yn._sentryDebugIds,n=Yn._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(mr&&r.length===fr&&s.length===hr)return mr;fr=r.length,hr=s.length,mr={},pr||(pr={});const o=(e,n)=>{for(const r of e){const e=n[r],s=pr?.[r];if(s&&mr&&e)mr[s[0]]=e,pr&&(pr[r]=[s[0],e]);else if(e){const n=t(r);for(let t=n.length-1;t>=0;t--){const s=n[t],o=s?.filename;if(o&&mr&&pr){mr[o]=e,pr[r]=[o,e];break}}}}};return e&&o(r,e),n&&o(s,n),mr}(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=n[t.filename])})})}(c,t.stackParser);const d=function(t,e){if(!e)return t;const n=t?t.clone():new cr;return n.update(e),n}(r,n.captureContext);n.mechanism&&F(c,n.mechanism);const l=s?s.getEventProcessors():[],p=Ft(o,d),f=[...n.attachments||[],...p.attachments];f.length&&(n.attachments=f),function(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;(function(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(o).length&&(t.contexts={...o,...t.contexts}),i&&(t.level=i),a&&"transaction"!==t.type&&(t.transaction=a)})(t,e),r&&function(t,e){t.contexts={trace:Ct(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Mt(e),...t.sdkProcessingMetadata};const n=At(Dt(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,o)}(c,p);const h=[...l,...p.eventProcessors];return(n.data&&!0===n.data.__sentry__?gt(c):vt(h,c,n)).then(t=>(t&&function(t){const e={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>
1({...t,...t.data&&{data:bt(t.data,e,n)}}))},...t.user&&{user:bt(t.user,e,n)},...t.contexts&&{contexts:bt(t.contexts,e,n)},...t.extra&&{extra:bt(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=bt(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:bt(t.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=bt(t.contexts.flags,3,n)),r}(t,i,a):t))}function zt(t,e){return lt().captureException(t,function(t){if(t)return function(t){return t instanceof cr||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>$r.includes(t))}(t)?{captureContext:t}:t}(e))}function Wt(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return lt().captureMessage(t,n,r)}function Ht(t,e){return lt().captureEvent(t,e)}function Vt(t){const e=pt(),{user:n}=Ft(e,lt()),{userAgent:r}=Yn.navigator||{},s=function(t){const e=W(),n={sid:R(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{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}}}(n)};return t&&H(n,t),n}({user:n,...r&&{userAgent:r},...t}),o=e.getSession();return"ok"===o?.status&&H(o,{status:"exited"}),Yt(),e.setSession(s),s}function Yt(){const t=pt(),e=lt().getSession()||t.getSession();e&&function(t){let e={};"ok"===t.status&&(e={status:"exited"}),H(t,e)}(e),Jt(),t.setSession()}function Jt(){const t=pt(),e=ht(),n=t.getSession();n&&e&&e.captureSession(n)}function Gt(t=!1){t?Yt():Jt()}function Kt(t,e){const n=ht(),r=pt();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Tr}=n.getOptions();if(o<=0)return;const i={timestamp:z(),...t},a=s?S(()=>s(i,e)):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}function Xt(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach(t=>{t.isDefaultInstance=!0}),Array.isArray(n))r=[...e,...n];else if("function"==typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;return function(t){const e={};return t.forEach(t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.values(e)}(r)}function Zt(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function Qt(t,e,n){if(n[e.name])Jn&&Qn.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,Or.includes(e.name)||"function"!=typeof e.setupOnce||(e.setupOnce(),Or.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign((e,r)=>n(e,r,t),{id:e.name});t.addEventProcessor(r)}Jn&&Qn.log(`Integration installed: ${e.name}`)}}function te(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function ee(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Cr],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function ne(t){try{const e=[...t.exception?.values??[]].reverse().find(t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length),n=e?.stacktrace?.frames;return n?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return Jn&&Qn.error(`Cannot extract url for event ${U(t)}`),null}}function re(t,e){let n=tt(t),r=tt(e);if(!n&&!r)return!0;
1if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],s=n[t];if(e.filename!==s.filename||e.lineno!==s.lineno||e.colno!==s.colno||e.function!==s.function)return!1}return!0}function se(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function oe(t){return t.exception?.values?.[0]}function ie(t,e=[]){return[t,e]}function ae(t,e){const[n,r]=t;return[n,[...r,e]]}function ce(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function ue(t){const e=s(Yn);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function de(t){function e(t){"string"==typeof s?s="string"==typeof t?s+t:[ue(s),t]:s.push("string"==typeof t?ue(t):t)}const[n,r]=t;let s=JSON.stringify(n);for(const t of r){const[n,r]=t;if(e(`\n${JSON.stringify(n)}\n`),"string"==typeof r||r instanceof Uint8Array)e(r);else{let t;try{t=JSON.stringify(r)}catch{t=JSON.stringify(bt(r))}e(t)}}return"string"==typeof s?s:function(t){const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(s)}function le(t){const e="string"==typeof t.data?ue(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}function pe(t){return Nr[t]}function fe(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function he(t,e){const n=e??function(t){return me().get(t)}(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=wt(r)),ie(s,[(o=t,[{type:"log",item_count:o.length,content_type:"application/vnd.sentry.items.log+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,t.getDsn());me().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function me(){return o("clientToLogBufferMap",()=>new WeakMap)}function ge(t,e){const n=e??function(t){return _e().get(t)}(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=wt(r)),ie(s,[(o=t,[{type:"trace_metric",item_count:o.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,t.getDsn());_e().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function _e(){return o("clientToMetricBufferMap",()=>new WeakMap)}function ve(t){return"object"==typeof t&&"function"==typeof t.unref&&t.unref(),t}function ye(t=100){function e(t){n.delete(t)}const n=new Set;return{get $(){return Array.from(n)},add:function(r){if(!(n.size<t))return _t(Rr);const s=r();return n.add(s),s.then(()=>e(s),()=>e(s)),s},drain:function(t){if(!n.size)return gt(!0);const e=Promise.allSettled(Array.from(n)).then(()=>!0);if(!t)return e;const r=[e,new Promise(e=>ve(setTimeout(()=>e(!1),t)))];return Promise.race(r)}}}function be(t,e,n=ye(t.bufferSize||64)){let r={};return{send:function(s){const o=[];if(ce(s,(e,n)=>{const s=pe(n);!function(t,e,n=N()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,s)?o.push(e):t.recordDroppedEvent("ratelimit_backoff",s)}),0===o.length)return Promise.resolve({});const i=ie(s[0],o),a=e=>{!function(t,e){return ce(t,(t,n)=>e.includes(n))}(i,["client_report"])?ce(i,(n,r)=>{t.recordDroppedEvent(e,pe(r))}):Jn&&Qn.warn(`Dropping client report. Will not send outcomes (reason: ${e}).`)};return n.add(()=>e({body:de(i)}).then(t=>413===t.statusCode?(Jn&&Qn.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),a("send_error"),t):(Jn&&void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&Qn.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=function(t,{statusCode:e,headers:n},r=N()){const s={...t},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n,,,o]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(s[t]=r+a);else s.all=r+a}else i?s.all=r+function(t,e=N()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(i,r):429===e&&(s.all=r+6e4);return s}(r,t),t),t=>{throw a("network_error"),Jn&&Qn.error("Encountered error running transport request:",t),t})).then(t=>t,t=>{if(t===Rr)return Jn&&Qn.error("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw t})},flush:t=>n.drain(t)}}function Ee(t){Qn.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Se(t,e){if(!e?.length||!t.description)return!1;for(const n of e){if(we(n)){if(st(t.description,n))return Jn&&Ee(t),!0;continue}if(!n.name&&!n.op)continue;const e=!n.name||st(t.description,n.name),r=!n.op||t.op&&st(t.op,n.op);if(e&&r)return Jn&&Ee(t),!0}return!1}function xe(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const e of t)e.parent_span_id===r&&(e.parent_span_id=n)}function we(t){return"string"==typeof t||t instanceof RegExp}function ke(t){return{message:t,[qr]:!0}
1}function $e(t){return{message:t,[Fr]:!0}}function Te(t){return!!t&&"object"==typeof t&&qr in t}function Oe(t){return!!t&&"object"==typeof t&&Fr in t}function Ce(t,e,n,r,s){let o,i=0,a=!1;t.on(n,()=>{i=0,clearTimeout(o),a=!1}),t.on(e,e=>{i+=r(e),i>=8e5?s(t):a||(a=!0,o=ve(setTimeout(()=>{s(t)},5e3)))}),t.on("flush",()=>{s(t)})}function Ie(t){return"replay_event"===t?"replay":t||"error"}function Pe(t){return void 0===t.type}function je(t){return"transaction"===t.type}function Ae(t){let e=0;return t.name&&(e+=2*t.name.length),e+=8,e+De(t.attributes)}function Le(t){let e=0;return t.message&&(e+=2*t.message.length),e+De(t.attributes)}function De(t){if(!t)return 0;let e=0;return Object.values(t).forEach(t=>{Array.isArray(t)?e+=t.length*Ne(t[0]):p(t)?e+=Ne(t):e+=100}),e}function Ne(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function Re(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}function Me(t,e){const n=qe(t,e),r={type:Be(e),value:ze(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ue(t,e){return{exception:{values:[Me(t,e)]}}}function qe(t,e){const n=e.stacktrace||e.stack||"",r=function(t){return t&&zr.test(t.message)?1:0}(e),s=function(t){return"number"==typeof t.framesToPop?t.framesToPop:0}(e);try{return t(n,r,s)}catch{}return[]}function Fe(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function Be(t){const e=t?.name;return!e&&Fe(t)?t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception":e}function ze(t){const e=t?.message;return Fe(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?function(t){return i(t)&&"__sentry_fetch_url_host__"in t&&"string"==typeof t.__sentry_fetch_url_host__}(n=e.error&&"string"==typeof e.error.message?e.error:t)?`${n.message} (${n.__sentry_fetch_url_host__})`:n.message:"No error message";var n}function We(t,e,n,r,s){let o;if(c(e)&&e.error)return Ue(t,e.error);if(u(e)||a(e,"DOMException")){const s=e;if("stack"in e)o=Ue(t,e);else{const e=s.name||(u(s)?"DOMError":"DOMException"),i=s.message?`${e}: ${s.message}`:e;o=He(t,i,n,r),q(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return i(e)?Ue(t,e):f(e)||h(e)?(o=function(t,e,n,r){const s=ht(),o=s?.getOptions().normalizeDepth,i=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}(e),a={__serialized__:Et(e,o)};if(i)return{exception:{values:[Me(t,i)]},extra:a};const c={exception:{values:[{type:h(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ve(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=qe(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}(t,e,n,s),F(o,{synthetic:!0}),o):(o=He(t,e,n,r),q(o,`${e}`,void 0),F(o,{synthetic:!0}),o)}function He(t,e,n,r){const s={};if(r&&n){const r=qe(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]}),F(s,{synthetic:!0})}if(l(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function Ve(t,{isUnhandledRejection:e}){const n=function(t){const e=Object.keys(P(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}(t),r=e?"promise rejection":"exception";return c(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:h(t)?`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ye(){return Hr>0}function Je(t,e={}){if(!function(t){return"function"==typeof t}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(I(t))return t}catch{return t}const n=function(...n){try{const r=n.map(t=>Je(t,e));return t.apply(this,r)}catch(t){throw Hr++,setTimeout(()=>{Hr--}),ft(r=>{r.addEventProcessor(t=>(e.mechanism&&(q(t,void 0,void 0),F(t,e.mechanism)),t.extra={...t.extra,arguments:n},t)),zt(t)}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}C(n,t),O(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}function Ge(t,e){Yr[t]=Yr[t]||[],Yr[t].push(e)}function Ke(t,e){if(!Jr[t]){Jr[t]=!0;try{e()}catch(e){Jn&&Qn.error(`Error while instrumenting ${t}`,e)}}}function Xe(t,e){const n=t&&Yr[t];if(n)for(const r of n)try{r(e)}catch(e){Jn&&Qn.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Q(r)}\nError:`,e)}}function Ze(){"console"in Yn&&Xn.forEach(function(t){t in Yn.console&&T(Yn.console,t,function(e){return Zn[t]=e,function(...e){Xe("console",{args:e,level:t});const n=Zn[t];n?.apply(Yn.console,e)}})})}function Qe(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function tn(t,e=!1){e&&!function(){if("string"==typeof EdgeRuntime)return!0;
1if(!function(){if(!("fetch"in Gr))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(Qe(Gr.fetch))return!0;let t=!1;const e=Gr.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=Qe(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){Jn&&Qn.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}()||T(Yn,"fetch",function(e){return function(...n){const r=new Error,{method:s,url:o}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:nn(e),method:en(n,"method")?String(n.method).toUpperCase():v(e)&&en(e,"method")?String(e.method).toUpperCase():"GET"}}const e=t[0];return{url:nn(e),method:en(e,"method")?String(e.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:s,url:o},startTimestamp:1e3*W(),virtualError:r,headers:rn(n)};return t||Xe("fetch",{...a}),e.apply(Yn,n).then(async e=>(t?t(e):Xe("fetch",{...a,endTimestamp:1e3*W(),response:e}),e),t=>{Xe("fetch",{...a,endTimestamp:1e3*W(),error:t}),i(t)&&void 0===t.stack&&(t.stack=r.stack,O(t,"framesToPop",1));const e=ht(),n=e?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&t instanceof TypeError&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{const e=new URL(a.fetchData.url).host;"always"===n?t.message=`${t.message} (${e})`:O(t,"__sentry_fetch_url_host__",e)}catch{}throw t})}})}function en(t,e){return!!t&&"object"==typeof t&&!!t[e]}function nn(t){return"string"==typeof t?t:t?en(t,"url")?t.url:t.toString?t.toString():"":""}function rn(t){const[e,n]=t;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(v(e))return new Headers(e.headers)}catch{}}function sn(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}function on(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function an(){if(!Kr.document)return;const t=Xe.bind(null,"dom"),e=cn(t,!0);Kr.document.addEventListener("click",e,!1),Kr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=Kr,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(T(r,"addEventListener",function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=cn(t);o.handler=r,e.call(this,n,r,s)}o.refCount++}catch{}return e.call(this,n,r,s)}}),T(r,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[e];s&&(s.refCount--,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,e,n,r)}}))})}function cn(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch{return null}}(n);if(function(t,e){return"keypress"===t&&(!e?.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;O(n,"_sentryCaptured",!0),r&&!r._sentryId&&O(r,"_sentryId",R());const s="keypress"===n.type?"input":n.type;(function(t){if(t.type!==Zr)return!1;try{if(!t.target||t.target._sentryId!==Qr)return!1}catch{}return!0})(n)||(t({event:n,name:s,global:e}),Zr=n.type,Qr=r?r._sentryId:void 0),clearTimeout(Xr),Xr=Kr.setTimeout(()=>{Qr=void 0,Zr=void 0},1e3)}}function un(){if(!Kr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=new Error,s=1e3*W(),o=d(n[0])?n[0].toUpperCase():void 0,i=function(t){if(d(t))return t;try{return t.toString()}catch{}}(n[1]);if(!o||!i)return t.apply(e,n);e[ts]={method:o,url:i,request_headers:{}}
1,"POST"===o&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const a=()=>{const t=e[ts];if(t&&4===e.readyState){try{t.status_code=e.status}catch{}Xe("xhr",{endTimestamp:1e3*W(),startTimestamp:s,xhr:e,virtualError:r})}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(a(),t.apply(e,n))}):e.addEventListener("readystatechange",a),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,s]=n,o=e[ts];return o&&d(r)&&d(s)&&(o.request_headers[r.toLowerCase()]=s),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[ts];return r?(void 0!==n[0]&&(r.body=n[0]),Xe("xhr",{startTimestamp:1e3*W(),xhr:e}),t.apply(e,n)):t.apply(e,n)}})}function dn(t){const e="history";Ge(e,t),Ke(e,ln)}function ln(){function t(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const r=es,s=function(t){try{return new URL(t,Kr.location.origin).toString()}catch{return t}}(String(n));if(es=s,r===s)return t.apply(this,e);Xe("history",{from:r,to:s})}return t.apply(this,e)}}Kr.addEventListener("popstate",()=>{const t=Kr.location.href,e=es;es=t,e!==t&&Xe("history",{from:e,to:t})}),"history"in Gr&&Gr.history&&(T(Kr.history,"pushState",t),T(Kr.history,"replaceState",t))}function pn(t){return function(...e){return e[0]=Je(e[0],{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Q(t)}`}}),t.apply(this,e)}}function fn(t){return function(e){return t.apply(this,[Je(e,{mechanism:{data:{handler:Q(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function hn(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&T(n,t,function(e){const n={mechanism:{data:{handler:Q(e)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=I(e);return r&&(n.mechanism.data.handler=Q(r)),Je(e,n)})}),t.apply(this,e)}}function mn(){cs=Yn.onerror,Yn.onerror=function(t,e,n,r,s){return Xe("error",{column:r,error:s,line:n,msg:t,url:e}),!!cs&&cs.apply(this,arguments)},Yn.onerror.__SENTRY_INSTRUMENTED__=!0}function gn(){us=Yn.onunhandledrejection,Yn.onunhandledrejection=function(t){return Xe("unhandledrejection",t),!us||us.apply(this,arguments)},Yn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function _n(t){(function(){const e="error";Ge(e,e=>{const{stackParser:n,attachStacktrace:r}=bn();if(ht()!==t||Ye())return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=function(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,p=function(t){if(d(t)&&0!==t.length)return t.startsWith("data:")?`<${function(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=t.includes(";base64,"),o=t.indexOf(",");let i="";if(e&&-1!==o){const e=t.slice(o+1);i=e.length>10?`${e.slice(0,10)}... [truncated]`:e}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return t}(t,!1)}>`:t}(e)??E();return 0===c.length&&c.push({colno:u,filename:p,function:sr,in_app:!0,lineno:l}),t}(We(n,c||s,void 0,r,!1),o,i,a);u.level="error",Ht(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),Ke(e,mn)})()}function vn(t){(function(){const e="unhandledrejection";Ge(e,e=>{const{stackParser:n,attachStacktrace:r}=bn();if(ht()!==t||Ye())return;const s=function(t){if(p(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),o=p(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:We(n,s,void 0,r,!0);o.level="error",Ht(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),Ke(e,gn)})()}function yn(t){ns&&Qn.log(`Global Handler attached: ${t}`)}function bn(){const t=ht();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function En(t,e,n,r,s,o){if(!s.exception?.values||!o||!g(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=Sn(t,e,r,o.originalException,n,s.exception.values,i,0
1))}function Sn(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(g(r[s],Error)){wn(i,a,r);const o=t(e,r[s]),u=c.length;kn(o,s,u,a),c=Sn(t,e,n,r[s],s,[o,...c],o,u)}return xn(r)&&r.errors.forEach((o,u)=>{if(g(o,Error)){wn(i,a,r);const d=t(e,o),l=c.length;kn(d,`errors[${u}]`,l,a),c=Sn(t,e,n,o,s,[d,...c],d,l)}}),c}function xn(t){return Array.isArray(t.errors)}function wn(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...xn(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function kn(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function $n(t,e,n,r){const s={filename:t,function:"<anonymous>"===e?sr:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}function Tn(t,e=function(t){const e=Es[t];if(e)return e;let n=Kr[t];if(Qe(n))return Es[t]=n.bind(Kr);const r=Kr.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const s=e.contentWindow;s?.[t]&&(n=s[t]),r.head.removeChild(e)}catch(e){bs&&Qn.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n?Es[t]=n.bind(Kr):n}("fetch")){let n=0,r=0;return be(t,async function(s){const o=s.body.length;n+=o,r++;const i={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const n=await e(t.url,i);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(t){throw Es.fetch=void 0,t}finally{n-=o,r--}},ye(t.bufferSize||40))}function On(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Cn(t){var e=On(t);return e&&e.stacktrace&&e.stacktrace.frames}function In(t){var e=Cn(t);if(!e||0===e.length)return!1;var n=[/chrome-extension:\/\//,/moz-extension:\/\//,/googletagmanager\.com/,/google-analytics\.com/,/(^|\/)beacon\.min\.js/,/cloudflareinsights\.com/];return e.every(function(t){var e=t.filename||"";return n.some(function(t){return t.test(e)})})}function Pn(t){var e=On(t);if(!e)return!1;var n=String(e.value||"");return!!/window\.webkit\.messageHandlers/.test(n)||!(!/runtime\.sendMessage/.test(n)||!/Tab not found/i.test(n))||!!/Java exception was raised/i.test(n)}function jn(t){return!!(t&&t.tags&&t.tags.web_vital)&&"poor"!==t.tags.vital_rating&&"1"!==t.tags.vital_sampled}function An(t){if(!t)return"unknown";const e=String(t.tagName||t.nodeName||"").toLowerCase();if(!e)return"unknown";let n=e;const r=t.className;return"string"==typeof r&&r.trim()&&(n+="."+r.trim().split(/\s+/).slice(0,2).join(".")),t.id&&(n+="#"+t.id),n.length>80?n.slice(0,80):n}function Ln(t){return"number"==typeof t&&isFinite(t)&&t>=0}function Dn(t,e){const n={LCP:[2500,4e3],INP:[200,500],CLS:[.1,.25],FCP:[1800,3e3],TTFB:[800,1800]}[t];return n&&Ln(e)?e<=n[0]?"good":e<=n[1]?"needs-improvement":"poor":"unknown"}function Nn(t,e){if(!Ln(e))return"unknown";const n="CLS"===t?[.1,.25,.5,1]:[500,1e3,2500,4e3,6e3,1e4];let r=0;for(let t=0;t<n.length;t++){if(e<=n[t])return r+"-"+n[t];r=n[t]}return r+"+"}function Rn(t,e){const n={value:e.value,worst:e.worst,attribution:e.attribution};for(let e=0;e<t.length;e++){const r=t[e];r&&!r.hadRecentInput&&(n.value+=r.value,r.value>n.worst)&&(n.worst=r.value,n.attribution={source:An(r.sources&&r.sources.length?r.sources[0].node:null)})}return n}function Mn(t,e){const n={value:e.value,attribution:e.attribution};for(let e=0;e<t.length;e++){const r=t[e];r&&r.interactionId&&r.duration>n.value&&(n.value=r.duration,n.attribution={source:An(r.target)})}return n}function Un(t,e,n,r){const s=Dn(t,e),o=r||{},i={web_vital:t,vital_rating:s,vital_bucket:Nn(t,e),vital_page:n};if(o.source&&(i.vital_source=o.source),o.resource){const t=String(o.resource).split("?")[0];i.vital_resource=Bn(t).slice(-60)}const a={level:"info",tags:i,fingerprint:"poor"===s?["web-vitals",t]:["web-vitals","baseline"]};return Ln(e)&&(a.extra={value:Math.round("CLS"===t?1e3*e:e)}),a}function qn(t){var e=On(t),n=e&&e.value||t.message||"";if("string"!=typeof n)return!1;
1if(!/unhandled rejection/i.test(n)||!/s3\.amazonaws\.com/.test(n))return!1;var r=(n.match(/<Code>([^<]+)<\/Code>/)||[])[1]||"";return"RequestTimeout"===r||!("AccessDenied"!==r||!/Policy/i.test(n))||!(!/"xhrStatus"\s*:\s*"error"/.test(n)&&!/"status"\s*:\s*-1\b/.test(n))}function Fn(t){var e=t.extra&&t.extra.cause||"",n=On(t),r=n&&n.value||"";return/"isValidation"\s*:\s*true/.test(("string"==typeof e?e:"")+" "+("string"==typeof r?r:""))}function Bn(t){if(!t||"string"!=typeof t)return t;for(var e=t,n=0;n<xs.length;n++)e=e.replace(xs[n].re,xs[n].sub);return e}function zn(t){t&&(t.message&&(t.message=Bn(t.message)),t.data&&"object"==typeof t.data&&("string"==typeof t.data.url&&(t.data.url=Bn(t.data.url)),"string"==typeof t.data.body&&(t.data.body=Bn(t.data.body))))}function Wn(t){try{t.message&&(t.message=Bn(t.message)),function(t){if(t.exception&&t.exception.values)for(var e=0;e<t.exception.values.length;e++){var n=t.exception.values[e];n&&n.value&&(n.value=Bn(n.value))}}(t),function(t){if(t.request){var e=t.request;"string"==typeof e.url&&(e.url=Bn(e.url)),e.query_string&&(e.query_string=Bn(String(e.query_string))),function(t){if(t&&"object"==typeof t)for(var e=Object.keys(t),n=0;n<e.length;n++)ws.has(e[n].toLowerCase())&&(t[e[n]]="<redacted>")}(e.headers),e.cookies&&(e.cookies="<redacted>")}}(t),function(t){var e=function(t){return Array.isArray(t.breadcrumbs)?t.breadcrumbs:t.breadcrumbs&&Array.isArray(t.breadcrumbs.values)?t.breadcrumbs.values:null}(t);if(e)for(var n=0;n<e.length;n++)zn(e[n])}(t)}catch(t){}return t}function Hn(t){for(var e=0;e<ks.length;e++)try{if(ks[e](t))return null}catch(t){}t.tags=t.tags||{},t.tags.page=window.location.pathname;try{var n=window.discours&&window.discours.currentUser;n&&n._id&&(t.user={id:n._id})}catch(t){}return Wn(t)}n.r(e),n.d(e,{_NOISE_PREDICATES:()=>ks,_buildVitalEvent:()=>Un,_describeElement:()=>An,_filterSentryEvent:()=>Hn,_isAllThirdPartyFrames:()=>In,_isEmbeddedBrowserNoise:()=>Pn,_isS3UploadRejection:()=>qn,_isValidationRejection:()=>Fn,_isWebVitalNoise:()=>jn,_rateVital:()=>Dn,_reduceInteractions:()=>Mn,_reduceLayoutShifts:()=>Rn,_vitalBucket:()=>Nn,default:()=>Ts});const Vn="10.43.0",Yn=globalThis,Jn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Gn=Object.prototype.toString,Kn=Yn,Xn=["debug","info","warn","error","log","assert","trace"],Zn={},Qn={enable:function(){k().enabled=!0},disable:function(){k().enabled=!1},isEnabled:x,log:function(...t){w("log",...t)},warn:function(...t){w("warn",...t)},error:function(...t){w("error",...t)}};let tr,er,nr;const rr="_sentrySpan",sr="?",or=/\(error: (.*)\)/,ir=/captureMessage|captureException/,ar="<anonymous>";class cr{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Y(),sampleRand:D()}}clone(){const t=new cr;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,G(t,K(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&H(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,n=e instanceof cr?e.getScopeData():f(e)?t:void 0,{tags:r,attributes:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:d,conversationId:l}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),l&&(this._conversationId=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,G(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Y(),sampleRand:D()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:z(),...t,message:t.message?nt(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:K(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=V(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e?.event_id||R();if(!this._client)return Jn&&Qn.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n?.event_id||R();if(!this._client)return Jn&&Qn.warn("No client configured on scope - will not capture message!"),r;const s=n?.syntheticException??new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=t.event_id||e?.event_id||R();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(Jn&&Qn.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(t=>{t(this)}),this._notifyingListeners=!1)}}class ur{constructor(t,e){let n,r;n=t||new cr,r=e||new cr,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return m(n)?n.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}const dr="production";class lr{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new lr((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new lr((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){const e=(t,e)=>{0===this._state&&(m(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(t){r(t)}}}let pr,fr,hr,mr;const gr="sentry.profile_id",_r="sentry.exclusive_time",vr=/^sentry-/,yr=/^o(\d+)\./,br=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/,Er="_sentryScope",Sr="_sentryIsolationScope";let xr=!1;const wr="_sentryRootSpan",kr="_frozenDsc",$r=["user","level","extra","contexts","tags","fingerprint","propagationContext"],Tr=100,Or=[],Cr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Ir=(t={})=>{let e;return{name:"EventFilters",setup(n){const r=n.getOptions();e=ee(t,r)},processEvent(n,r,s){if(!e){const n=s.getOptions();e=ee(t,n)}return function(t,e){if(t.type){if("transaction"===t.type&&function(t,e){if(!e?.length)return!1;const n=t.transaction;return!!n&&ot(n,e)}(t,e.ignoreTransactions))return Jn&&Qn.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${U(t)}`),!0}else{if(function(t,e){return!!e?.length&&te(t).some(t=>ot(t,e))}(t,e.ignoreErrors))return Jn&&Qn.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${U(t)}`),!0;if(function(t){return!!t.exception?.values?.length&&!t.message&&!t.exception.values.some(t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)}(t))return Jn&&Qn.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${U(t)}`),!0;if(function(t,e){if(!e?.length)return!1;const n=ne(t);return!!n&&ot(n,e)}(t,e.denyUrls))return Jn&&Qn.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${U(t)}.\nUrl: ${ne(t)}`),!0;if(!function(t,e){if(!e?.length)return!0;const n=ne(t);return!n||ot(n,e)}(t,e.allowUrls))return Jn&&Qn.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${U(t)}.\nUrl: ${ne(t)}`),!0}return!1}(n,e)?null:n}}},Pr=(t={})=>({...Ir(t),name:"InboundFilters"});let jr;const Ar=new WeakMap,Lr=()=>({name:"FunctionToString",setupOnce(){jr=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=I(this),n=Ar.has(ht())&&void 0!==e?e:this;return jr.apply(n,t)}}catch{}},setup(t){Ar.set(t,!0)}}),Dr=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){return!(!e||!function(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!se(t,e)||!re(t,e))}(t,e)&&!function(t,e){const n=oe(e),r=oe(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&se(t,e)&&re(t,e))}(t,e))}(e,t))return Jn&&Qn.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},Nr={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"},Rr=Symbol.for("SentryBufferFullError"),Mr="Not capturing exception because it's already been captured.",Ur="Discarded session because of missing or non-string release",qr=Symbol.for("SentryInternalError"),Fr=Symbol.for("SentryDoNotSendEventError");class Br{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ye(t.transportOptions?.bufferSize??64),t.dsn?this._dsn=function(t){const e="string"==typeof t?function(t){const e=br.exec(t);if(!e)return void S(()=>{});const[n,r,s="",o="",i="",a=""]=e.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return kt({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}(t):kt(t);if(e&&function(t){if(!Jn)return!0;const{port:e,projectId:n,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(Qn.error(`Invalid Sentry Dsn: ${e} missing`),!0))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(Qn.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(Qn.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Qn.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}(t.dsn):Jn&&Qn.warn("No DSN provided, client will not send events."),this._dsn){const r=(e=this._dsn,n=t._metadata?t._metadata.sdk:void 0,t.tunnel||`${function(t){return`${function(t){return`${t.protocol?`${t.protocol}:`:""}//${t.host}${t.port?`:${t.port}`:""}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(e)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(e,n)}`);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}var e,n;this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Ce(this,"afterCaptureLog","flushLogs",Le,he),(this._options.enableMetrics??this._options._experiments?.enableMetrics??1)&&Ce(this,"afterCaptureMetric","flushMetrics",Ae,ge)}captureException(t,e,n){const r=R();if(B(t))return Jn&&Qn.log(Mr),r;const s={event_id:r,...e};return this._process(()=>this.eventFromException(t,s).then(t=>this._captureEvent(t,s,n)).then(t=>t),"error"),s.event_id}captureMessage(t,e,n,r){const s={event_id:R(),...n},o=l(t)?t:String(t),i=p(t),a=i?this.eventFromMessage(o,e,s):this.eventFromException(t,s);return this._process(()=>a.then(t=>this._captureEvent(t,s,r)),i?"unknown":"error"),s.event_id}captureEvent(t,e,n){const r=R();if(e?.originalException&&B(e.originalException))return Jn&&Qn.log(Mr),r;const s={event_id:r,...e},o=t.sdkProcessingMetadata||{},i=o.capturedSpanScope,a=o.capturedSpanIsolationScope,c=Ie(t.type);return this._process(()=>this._captureEvent(t,s,i||n,a),c),s.event_id}captureSession(t){this.sendSession(t),H(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const e=this._transport;if(!e)return!0;
1this.emit("flush");const n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){he(this);const e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];Qt(this,t,this._integrations),e||Zt(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){const s=fe(n),o=t.type&&"replay_event"!==t.type?t.type:"event";(function(t,e){if(!e)return t;const n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0}})(t,n?.sdk);const i=function(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:wt(r)},...s&&{trace:s}}}(t,s,r,e);return delete t.sdkProcessingMetadata,ie(i,[[{type:o},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=ae(n,le(t));this.sendEnvelope(n).then(e=>this.emit("afterSendEvent",t,e))}sendSession(t){const{release:e,environment:n=dr}=this._options;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!e)return void(Jn&&Qn.warn(Ur));r.release=r.release||e,r.environment=r.environment||n,t.attrs=r}else{if(!t.release&&!e)return void(Jn&&Qn.warn(Ur));t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);const r=function(t,e,n,r){const s=fe(n);return ie({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:wt(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){const r=`${t}:${e}`;Jn&&Qn.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const n=this._hooks[t]=this._hooks[t]||new Set,r=(...t)=>e(...t);return n.add(r),()=>{n.delete(r)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach(t=>t(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(t){return Jn&&Qn.error("Error while sending envelope:",t),{}}return Jn&&Qn.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach(e=>{e&&Qt(t,e,n)}),n}(this,t),Zt(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const s=e.exception?.values;if(s){r=!0,n=!1;for(const t of s)if(!1===t.mechanism?.handled){n=!0;break}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(H(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||e<t;){if(await new Promise(t=>setTimeout(t,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r){const s=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o?.length&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Bt(s,t,e,n,this,r).then(t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:{...t.contexts?.trace,...mt(n)},...t.contexts};const r=function(t,e){const n=e.getPropagationContext();return n.dsc||Rt(n.traceId,t)}(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t})}_captureEvent(t,e={},n=lt(),r=pt()){return Jn&&Pe(t)&&Qn.log(`Captured error event \`${te(t)[0]||"<unknown>"}\``),this._processEvent(t,e,n,r).then(t=>t.event_id,t=>{Jn&&(Oe(t)?Qn.log(t.message):Te(t)?Qn.warn(t.message):Qn.warn(t))})}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=je(t),a=Pe(t),c=`before send for type \`${t.type||"error"}\``,u=void 0===o?void 0:function(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}(o);if(a&&"number"==typeof u&&D()>u)return this.recordDroppedEvent("sample_rate","error"),_t($e(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const d=Ie(t.type);return this._prepareEvent(t,e,n,r).then(t=>{if(null===t)throw this.recordDroppedEvent("event_processor",d),$e("An event processor returned `null`, will not send event.");return e.data&&!0===e.data.__sentry__?t:function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(m(t))return t.then(t=>{if(!f(t)&&null!==t)throw ke(n);return t},t=>{throw ke(`${e} rejected with ${t}`)});if(!f(t)&&null!==t)throw ke(n);return t}(function(t,e,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i,ignoreSpans:a}=e;let c=n;if(Pe(c)&&s)return s(c,r);if(je(c)){if(i||a){const e=function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=t.contexts?.trace??{};return{data:i??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:o,profile_id:i?.[gr],exclusive_time:i?.[_r],measurements:t.measurements,is_segment:!0}}(c);if(a?.length&&Se(e,a))return null;if(i){const t=i(e);t?c=V(n,{type:"transaction",timestamp:(u=t).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[gr]:u.profile_id},...u.exclusive_time&&{[_r]:u.exclusive_time}}}},measurements:u.measurements}):Nt()}if(c.spans){const e=[],n=c.spans;for(const t of n)if(a?.length&&Se(t,a))xe(n,t);else if(i){const n=i(t);n?e.push(n):(Nt(),e.push(t))}else e.push(t);const r=c.spans.length-e.length;r&&t.recordDroppedEvent("before_send","span",r),c.spans=e}}if(o)return c.spans&&(c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c.spans.length}),o(c,r)}var u;return c}(this,s,t,e),c)}).then(s=>{if(null===s)throw this.recordDroppedEvent("before_send",d),i&&this.recordDroppedEvent("before_send","span",1+(t.spans||[]).length),$e(`${c} returned \`null\`, will not send event.`);
1const o=n.getSession()||r.getSession();if(a&&o&&this._updateSessionFromEvent(o,s),i){const t=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const u=s.transaction_info;if(i&&u&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...u,source:t}}return this.sendEvent(s,e),s}).then(null,t=>{if(Oe(t)||Te(t))throw t;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),ke(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t===Rr&&this.recordDroppedEvent("queue_overflow",e),t))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}})}_flushOutcomes(){Jn&&Qn.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(Jn&&Qn.log("No outcomes to send"));if(!this._dsn)return void(Jn&&Qn.log("No dsn provided, will not send outcomes"));Jn&&Qn.log("Sending outcomes:",t);const e=(n=t,ie((r=this._options.tunnel&&wt(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:z(),discarded_events:n}]]));var n,r;this.sendEnvelope(e)}}const zr=/Minified React error #\d+;/i,Wr=Yn;let Hr=0;class Vr extends Br{constructor(t){const e=(n=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Wr.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;(function(t,e,n=[e],r="npm"){const s=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${e}`,s.packages=n.map(t=>({name:`${r}:@sentry/${t}`,version:Vn})),s.version=Vn)})(e,"browser",["browser"],Wr.SENTRY_SDK_SOURCE||"npm"),e._metadata?.sdk&&(e._metadata.sdk.settings={infer_ip:e.sendDefaultPii?"auto":"never",...e._metadata.sdk.settings}),super(e);const{sendDefaultPii:r,sendClientReports:s,enableLogs:o,_experiments:i,enableMetrics:a}=this._options,c=a??i?.enableMetrics??!0;Wr.document&&(s||o||c)&&Wr.document.addEventListener("visibilitychange",()=>{"hidden"===Wr.document.visibilityState&&(s&&this._flushOutcomes(),o&&he(this),c&&ge(this))}),r&&this.on("beforeSendSession",Re)}eventFromException(t,e){return function(t,e,n,r){const s=We(t,e,n?.syntheticException||void 0,r);return F(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),gt(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const o=He(t,e,r?.syntheticException||void 0,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),gt(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}const Yr={},Jr={},Gr=Yn,Kr=Yn;let Xr,Zr,Qr;const ts="__sentry_xhr_v3__";let es;const ns="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rs=1024,ss=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(t){const e="console";Ge(e,t),Ke(e,Ze)}(function(t){return function(e){if(ht()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:(r=e.level,"warn"===r?"warning":["fatal","error","warning","log","info","debug"].includes(r)?r:"log"),message:rt(e.args," ")};var r;if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${rt(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Kt(n,{input:e.args,level:e.level})}}(t)),e.dom&&(Ge("dom",function(t,e){return function(n){if(ht()!==t)return;let r,s,o="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>rs&&(ns&&Qn.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=rs),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=y(e,{keyAttrs:o,maxStringLength:i}),s=function(t){if(!Kn.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}(e)}catch{r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),Kt(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom)),Ke("dom",an)),e.xhr&&(n=function(t){return function(e){if(ht()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[ts];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s,u={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:{method:o,url:i,status_code:a},type:"http",level:sn(a)};t.emit("beforeOutgoingRequestBreadcrumb",d,u),Kt(d,u)}}(t),Ge("xhr",n),Ke("xhr",un)),e.fetch&&function(t){const e="fetch";Ge(e,t),Ke(e,()=>tn(void 0,undefined))}(function(t){return function(e){if(ht()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;
1if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const s={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r},o={category:"fetch",data:e.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",o,s),Kt(o,s)}else{const s=e.response,o={...e.fetchData,status_code:s?.status},i={input:e.args,response:s,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,type:"http",level:sn(o.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",a,i),Kt(a,i)}}}(t)),e.history&&dn(function(t){return function(e){if(ht()!==t)return;let n=e.from,r=e.to;const s=on(Wr.location.href);let o=n?on(n):void 0;const i=on(r);o?.path||(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),Kt({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){ht()===t&&Kt({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:U(e)},{event:e})}}(t))}}},os=["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"],is=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&T(Wr,"setTimeout",pn),e.setInterval&&T(Wr,"setInterval",pn),e.requestAnimationFrame&&T(Wr,"requestAnimationFrame",fn),e.XMLHttpRequest&&"XMLHttpRequest"in Wr&&T(XMLHttpRequest.prototype,"send",hn);const t=e.eventTarget;t&&(Array.isArray(t)?t:os).forEach(t=>function(t,e){const n=Wr,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(T(r,"addEventListener",function(n){return function(r,s,o){try{"function"==typeof s.handleEvent&&(s.handleEvent=Je(s.handleEvent,{mechanism:{data:{handler:Q(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&function(t,e,n){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(e,n)}(this,r,s),n.apply(this,[r,Je(s,{mechanism:{data:{handler:Q(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),T(r,"removeEventListener",function(t){return function(e,n,r){try{const s=n.__sentry_wrapped__;s&&t.call(this,e,s,r)}catch{}return t.call(this,e,n,r)}}))}(t,e))}}},as=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===Wr.document)return void(ns&&Qn.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));Vt({ignoreDuration:!0}),Gt();const t=pt();let n=t.getUser();t.addScopeListener(t=>{const e=t.getUser();n?.id===e?.id&&n?.ip_address===e?.ip_address||(Gt(),n=e)}),"route"===e&&dn(({from:t,to:e})=>{t!==e&&(Vt({ignoreDuration:!0}),Gt())})}}};let cs=null,us=null;const ds=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(_n(t),yn("onerror")),e.onunhandledrejection&&(vn(t),yn("onunhandledrejection"))}}},ls=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,s){En(Me,s.getOptions().stackParser,n,e,t,r)}}},ps=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,fs=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hs=/\((\S*)(?::(\d+))(?::(\d+))\)/,ms=/at (.+?) ?\(data:(.+?),/,gs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,_s=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,vs=X([30,t=>{const e=t.match(ms);
1if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=ps.exec(t);if(n){const[,t,e,r]=n;return $n(t,sr,+e,+r)}const r=fs.exec(t);if(r){if(r[2]&&0===r[2].indexOf("eval")){const t=hs.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,e]=ys(r[1]||sr,r[2]);return $n(e,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,t=>{const e=gs.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=_s.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||sr;return[n,t]=ys(n,t),$n(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]),ys=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:sr,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},bs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Es={},Ss={captureException:zt,captureMessage:Wt,addBreadcrumb:Kt,setUser:function(t){pt().setUser(t)},setTag:function(t,e){pt().setTag(t,e)},withScope:ft};var xs=[{re:/(Invalid content for node [\w-]+: )[\s\S]*/g,sub:"$1<content>"},{re:/(Index \S+ out of range for )[\s\S]*/g,sub:"$1<fragment>"},{re:/(Position \S+ outside of fragment \()[\s\S]*/g,sub:"$1<fragment>)"},{re:/(Can not convert )[\s\S]*( to a Fragment)/g,sub:"$1<content>$2"},{re:/(Invalid element found: )[\s\S]*/g,sub:"$1<element>"},{re:/([a-zA-Z0-9._%+-]+)@([a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g,sub:function(t,e,n){return e.charAt(0)+"***@"+n}},{re:/\beyJ[A-Za-z0-9-_]{20,}\.[A-Za-z0-9-_]{10,}\.[A-Za-z0-9-_]{10,}\b/g,sub:"<jwt>"},{re:/\bsk-[A-Za-z0-9-_]{20,}\b/g,sub:"<api-key>"},{re:/\b(authorization|x-auth-token|cookie)\s*[:=]\s*[^\s,;]+/gi,sub:"$1: <redacted>"}],ws=new Set(["authorization","x-auth-token","cookie"]),ks=[function(t){var e=On(t);if(!e)return!1;var n=e.value||"";return!("InvalidStateError"!==(e.type||"")||!/view transition|viewport size/i.test(n))||/querySelector\('video'\)\.pause/.test(n)},In,function(t){var e=On(t);if(!e)return!1;var n=e.type||"",r=e.value||"";if("CustomEvent"===n&&/unhandledrejection/.test(r))return!0;if("Error"===n&&"undefined"===r){var s=Cn(t);if(!s||0===s.length)return!0}return!1},function(t){var e=On(t);return e&&/object not found matching id:\s*\d+,\s*methodname:/i.test(e.value||"")},function(t){var e=Cn(t);return e&&e.some(function(t){return-1!==(t.function||"").indexOf("UtilityScript")})},Pn,function(t){if(!t.exception||!t.exception.values)return!1;for(var e=0;e<t.exception.values.length;e++){var n=t.exception.values[e];if(n&&n.value&&0===String(n.value).indexOf("Object captured as exception with keys:"))return!0}return!1},function(t){if(!t.exception||!t.exception.values)return!1;if(!t.exception.values.some(function(t){return t&&t.value&&/^Load failed\b/.test(String(t.value))}))return!1;for(var e=Array.isArray(t.breadcrumbs)?t.breadcrumbs:t.breadcrumbs&&t.breadcrumbs.values||[],n=t.timestamp||Date.now()/1e3,r=e.length-1;r>=0;r--){var s=e[r];if(s&&"navigation"===s.category&&n-(s.timestamp||0)<2)return!0}return!1},jn,qn,Fn];try{const t=window.location.hostname,e="discours.io"===t||"www.discours.io"===t?"production":"localhost"===t||"127.0.0.1"===t?"development":"staging";if("production"===e||"staging"===e){(function(t={}){const e=!t.skipBrowserExtensionCheck&&!!function(){if(void 0===Wr.window)return!1;if(Wr.nw)return!1;const t=Wr.chrome||Wr.browser;if(!t?.runtime?.id)return!1;const e=E();return!(Wr===Wr.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(t=>e.startsWith(`${t}://`)))}()&&(ns&&S(()=>{}),!0);let n=null==t.defaultIntegrations?[Pr(),Lr(),{name:"ConversationId",setup(t){t.on("spanStart",t=>{const e=lt().getScopeData(),n=pt().getScopeData(),r=e.conversationId||n.conversationId;r&&t.setAttribute("gen_ai.conversation.id",r)})}},is(),ss(),ds(),ls(),Dr(),{name:"HttpContext",preprocessEvent(t){if(!Wr.navigator&&!Wr.location&&!Wr.document)return;const e=function(){const t=E(),{referrer:e}=Wr.document||{},{userAgent:n}=Wr.navigator||{};return{url:t,headers:{...e&&{Referer:e},...n&&{"User-Agent":n}}}}(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}},{name:"CultureContext",preprocessEvent(t){const e=function(){try{const t=Wr.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})}},as()]:t.defaultIntegrations;const r={...t,enabled:!e&&t.enabled,stackParser:(s=t.stackParser||vs,Array.isArray(s)?X(...s):s),integrations:Xt({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||Tn};var s;(function(t,e){!0===e.debug&&(Jn?Qn.enable():S(()=>{})),lt().update(e.initialScope);const n=new t(e);(function(t){lt().setClient(t)})(n),n.init()})(Vr,r)})({dsn:"https://[email protected]/4511023128969216",environment:e,release:"[email protected]",sampleRate:1,integrations:[ss({console:!0,dom:!0,fetch:!0,xhr:!0}),ds({onerror:!0,onunhandledrejection:!0}
1),ls(),Dr()],ignoreErrors:[/\[\$rootScope:(infdig|inprog)\]/,/\[\$compile:(tpload|ctreq|multidir)\]/,/\[\$templateRequest:tpload\]/,/\[\$parse:lexerr\]/,/\[\$q:qcycle\]/,/\[\$injector:(unpr|modulerr|cdep)\]/,/\[\$animate:/,/\[ngRepeat:dupes\]/,/\[\$sanitize:/,/ChunkLoadError/,/Loading chunk/,/loading CSS chunk/,/extensions\//,/moz-extension:/,/chrome-extension:/,/ResizeObserver loop/,/AbortError/,/The operation was aborted/,/Possibly unhandled rejection: canceled/,/Skipping view transition/,/Skipped ViewTransition/,/Transition was aborted/,/viewport size changed/,/Network Error/,/Failed to fetch/,/null is not an object \(evaluating 'document\.querySelector\('video'\)/,/^Od$/,/WKWebView API client did not respond to this postMessage/,/Java object is gone/,/Circuit breaker activated/,/Failed to read the '(local|session)Storage' property/,/this\.ready\.isPending is not a function/],denyUrls:[/mc\.yandex\.ru/,/google-analytics\.com/,/googletagmanager\.com/,/connect\.facebook\.net/,/cdn\.jsdelivr\.net/],maxBreadcrumbs:30,beforeSend:Hn});const t=function(){try{if("undefined"==typeof PerformanceObserver)return;if(!(Math.random()<.1))return;const _=window.location.pathname;var t=Math.random()<.05,e=function(e,n,r){try{var s=Un(e,n,_,r),o="poor"===s.tags.vital_rating;if(!o&&!t)return;o||(s.tags.vital_sampled="1"),Wt("WebVital: "+e,s)}catch(t){}},n=0,r=!1,s=null,o=null;try{(s=new PerformanceObserver(function(t){var e=t.getEntries(),r=e[e.length-1];r&&(n=r.startTime,o={source:An(r.element),resource:r.url||""})})).observe({type:"largest-contentful-paint",buffered:!0});var i=function(){!r&&n>0&&(r=!0,e("LCP",n,o),s&&s.disconnect())};document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&i()}),window.addEventListener("pagehide",i)}catch(t){}var a=null;try{(a=new PerformanceObserver(function(t){t.getEntries().forEach(function(t){"first-contentful-paint"===t.name&&e("FCP",t.startTime)})})).observe({type:"paint",buffered:!0})}catch(t){}try{var c=!1,u={value:0,worst:0,attribution:null};new PerformanceObserver(function(t){u=Rn(t.getEntries(),u)}).observe({type:"layout-shift",buffered:!0});var d=function(){c||(c=!0,e("CLS",u.value,u.attribution))};document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&d()}),window.addEventListener("pagehide",d),window.addEventListener("beforeunload",d)}catch(t){}try{var l={value:0,attribution:null},p=new PerformanceObserver(function(t){l=Mn(t.getEntries(),l)});p.observe({type:"event",durationThreshold:16,buffered:!0});var f=!1,h=function(){if(!f&&l.value>0){f=!0,e("INP",l.value,l.attribution);try{p&&p.disconnect()}catch(t){}}};document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&h()}),window.addEventListener("pagehide",h)}catch(t){}var m=null;try{(m=new PerformanceObserver(function(t){var n=t.getEntries();if(n.length>0){var r=n[0].responseStart;r>0&&e("TTFB",r)}})).observe({type:"navigation",buffered:!0})}catch(t){}var g=function(){try{s&&s.disconnect()}catch(t){}try{a&&a.disconnect()}catch(t){}try{m&&m.disconnect()}catch(t){}};"complete"===document.readyState?setTimeout(g,1e4):window.addEventListener("load",function(){setTimeout(g,1e4)})}catch(t){}};"function"==typeof requestIdleCallback?requestIdleCallback(t,{timeout:5e3}):"complete"===document.readyState?setTimeout(t,0):window.addEventListener("load",function(){setTimeout(t,0)}),window.__sentry=Ss}}catch(t){}let $s=Ss;try{const t=ht();if(!t||"function"!=typeof t.getDsn||!t.getDsn()){const t=function(){},e=function(){return""},n={setExtra:t,setTag:t,setLevel:t,setUser:t,setFingerprint:t};$s={captureException:e,captureMessage:e,addBreadcrumb:t,setUser:t,setTag:t,withScope:function(t){try{t(n)}catch(t){}}}}}catch(t){}const Ts=$s}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.