PageSourceSearch

https://theflowery.co/_nuxt/vendor-sentry.DZolLndL.js

js theflowery.co collected 2026-10-04 20:19:54 UTC 75,937 bytes, 5 lines download raw bytes

vendor: 6,370 bytes, lines 1-2
1(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"f0ddf8f5dadebac87165d72b64605da2e84ccd90"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="53014a2f-5173-428d-9678-31267a3a5ada",t._sentryDebugIdIdentifier="sentry-dbid-53014a2f-5173-428d-9678-31267a3a5ada")}catch{}})();const Jn=!1,h=globalThis,D="10.48.0";function ht(){return _t(h),h}function _t(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||D,e[D]=e[D]||{}}function Q(t,e,n=h){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[D]=r[D]||{};return s[t]||(s[t]=e())}const Zn=["debug","info","warn","error","log","assert","trace"],dt={};function mt(t){if(!("console"in h))return t();const e=h.console,n={},r=Object.keys(dt);r.forEach(s=>{const o=dt[s];n[s]=e[s],e[s]=o});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function Qn(){Yt().enabled=!0}function tr(){Yt().enabled=!1}function er(){return Yt().enabled}function nr(...t){Vt("log",...t)}function rr(...t){Vt("warn",...t)}function sr(...t){Vt("error",...t)}function Vt(t,...e){}function Yt(){return{enabled:!1}}const or={enable:Qn,disable:tr,isEnabled:er,log:nr,warn:rr,error:sr},en=50,M="?",ue=/\(error: (.*)\)/,fe=/captureMessage|captureException/;function nn(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
2`);for(let a=r;a<i.length;a++){let c=i[a];c.length>1024&&(c=c.slice(0,1024));const u=ue.test(c)?c.replace(ue,"$1"):c;if(!u.includes("Error: ")){for(const f of e){const l=f(u);if(l){o.push(l);break}}if(o.length>=en+s)break}}return ar(o.slice(s))}}function ir(t){return Array.isArray(t)?nn(...t):t}function ar(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(ot(e).function||"")&&e.pop(),e.reverse(),fe.test(ot(e).function||"")&&(e.pop(),fe.test(ot(e).function||"")&&e.pop()),e.slice(0,en).map(n=>({...n,filename:n.filename||ot(e).filename,function:n.function||M}))}function ot(t){return t[t.length-1]||{}}const Tt="<anonymous>";function L(t){try{return!t||typeof t!="function"?Tt:t.name||Tt}catch{return Tt}}function le(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function rn(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const at={},de={};function F(t,e){at[t]=at[t]||[],at[t].push(e)}function $(t,e){if(!de[t]){de[t]=!0;try{e()}catch{}}}function b(t,e){const n=t&&at[t];if(n)for(const r of n)try{r(e)}catch{}}let vt=null;function cr(t){const e="error";F(e,t),$(e,ur)}function ur(){vt=h.onerror,h.onerror=function(t,e,n,r,s){return b("error",{column:r,error:s,line:n,msg:t,url:e}),vt?vt.apply(this,arguments):!1},h.onerror.__SENTRY_INSTRUMENTED__=!0}let kt=null;function fr(t){const e="unhandledrejection";F(e,t),$(e,lr)}function lr(){kt=h.onunhandledrejection,h.onunhandledrejection=function(t){return b("unhandledrejection",t),kt?kt.apply(this,arguments):!0},h.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const sn=Object.prototype.toString;function gt(t){switch(sn.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return A(t,Error)}}function z(t,e){return sn.call(t)===`[object ${e}]`}function on(t){return z(t,"ErrorEvent")}function pe(t){return z(t,"DOMError")}function dr(t){return z(t,"DOMException")}function O(t){return z(t,"String")}function Kt(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function yt(t){return t===null||Kt(t)||typeof t!="object"&&typeof t!="function"}function X(t){return z(t,"Object")}function Et(t){return typeof Event<"u"&&A(t,Event)}function pr(t){return typeof Element<"u"&&A(t,Element)}function hr(t){return z(t,"RegExp")}function tt(t){return!!(t?.then&&typeof t.then=="function")}function _r(t){return X(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function A(t,e){try{return t instanceof e}catch{return!1}}function an(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function cn(t){return typeof Request<"u"&&A(t,Request)}const Xt=h,mr=80;function un(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 f=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||mr;for(;n&&o++<r&&(u=gr(n,f),!(u==="html"||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function gr(t,e){const n=t,r=[];if(!n?.tagName)return"";if(Xt.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(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s?.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&O(o)){const i=o.split(/\s+/);for(const a of i)r.push(`.${a}`)}}for(const o of["aria-label","type","name","title","alt"]){const i=n.getAttribute(o);i&&r.push(`[${o}="${i}"]`)}return r.join("")}function Jt(){try{return Xt.document.location.href}catch{return""}}function yr(t){if(!Xt.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){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}function E(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&fn(s,r);try{t[e]=s}catch{}}function C(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{}}function fn(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,C(t,"__sentry_original__",e)}catch{}}function Zt(t){return t.__sentry_original__}function ln(t){if(gt(t))return{message:t.message,name:t.name,stack:t.stack,..._e(t)};if(Et(t)){const e={type:t.type,target:he(t.target),currentTarget:he(t.currentTarget),..._e(t)};return typeof CustomEvent<"u"&&A(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function he(t){try{return pr(t)?un(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}
2function _e(t){return typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t)):{}}function Er(t){const e=Object.keys(ln(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let U;function St(t){if(U!==void 0)return U?U(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=h;return e in n&&typeof n[e]=="function"?(U=n[e],U(t)):(U=null,t())}function pt(){return St(()=>Math.random())}function bt(){return St(()=>Date.now())}function wt(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function me(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];try{an(s)?n.push(rn(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function ct(t,e,n=!1){return O(t)?hr(e)?e.test(t):O(e)?n?t===e:t.includes(e):typeof e=="function"?e(t):!1:!1}function It(t,e=[],n=!1){return e.some(r=>ct(t,r,n))}function Sr(){const t=h;return t.crypto||t.msCrypto}let Ot;function br(){return pt()*16}function S(t=Sr()){try{if(t?.randomUUID)return St(()=>t.randomUUID()).replace(/-/g,"")}catch{}return Ot||(Ot="10000000100040008000"+1e11),Ot.replace(/[018]/g,e=>(e^(br()&15)>>e/4).toString(16))}function dn(t){return t.exception?.values?.[0]}function Ir(t){const{message:e,event_id:n}=t;if(e)return e;const r=dn(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Dt(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="Error")}function B(t,e){const n=dn(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){const o={...s?.data,...e.data};n.mechanism.data=o}}function ge(t){if(Tr(t))return!0;try{C(t,"__sentry_captured__",!0)}catch{}return!1}function Tr(t){try{return t.__sentry_captured__}catch{}}const pn=1e3;function et(){return bt()/pn}function vr(){const{performance:t}=h;if(!t?.now||!t.timeOrigin)return et;const e=t.timeOrigin;return()=>(e+St(()=>t.now()))/pn}let ye;function x(){return(ye??(ye=vr()))()}function kr(t){const e=x(),n={sid:S(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>xr(n)};return t&&H(n,t),n}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||x(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:S()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n: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),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Or(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),H(t,n)}function xr(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${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}}}function nt(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=nt(r[s],e[s],n-1));return r}function Ee(){return S()}function hn(){return S().substring(16)}const Mt="_sentrySpan";function Se(t,e){e?C(t,Mt,e):delete t[Mt]}function be(t){return t[Mt]}const Rr=100;class T{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:Ee(),sampleRand:pt()}}clone(){const e=new T;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,Se(e,be(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&H(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,r=n instanceof T?n.getScopeData():X(n)?e:void 0,{tags:s,attributes:o,extra:i,user:a,contexts:c,level:u,fingerprint:f=[],propagationContext:l,conversationId:p}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),f.length&&(this._fingerprint=f),l&&(this._propagationContext=l),p&&(this._conversationId=p),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,Se(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ee(),sampleRand:pt()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Rr;if(r<=0)return this;const s={timestamp:et(),...e,message:e.message?wt(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),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(e){return this._attachments.push(e),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:be(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=nt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n?.event_id||S();if(!this._client)return r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=r?.event_id||S();if(!this._client)return s;const o=r?.syntheticException??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:s},this),s}captureEvent(e,n){const r=e.event_id||n?.event_id||S();return this._client&&this._client.captureEvent(e,{...n,event_id:r},this),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
vendor: 15,490 bytes, lines 2-4
2h(e=>{e(this)}),this._notifyingListeners=!1)}}function Nr(){return Q("defaultCurrentScope",()=>new T)}function Ar(){return Q("defaultIsolationScope",()=>new T)}const Ie=t=>t instanceof Promise&&!t[_n],_n=Symbol("chained PromiseLike"),Cr=(t,e,n)=>{const r=t.then(s=>(e(s),s),s=>{throw n(s),s});return Ie(r)&&Ie(t)?r:wr(t,r)},wr=(t,e)=>{let n=!1;for(const r in t){if(r in e)continue;n=!0;const s=t[r];typeof s=="function"?Object.defineProperty(e,r,{value:(...o)=>s.apply(t,o),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[_n]:!0}),e};class Dr{constructor(e,n){let r;e?r=e:r=new T;let s;n?s=n:s=new T,this._stack=[{scope:r}],this._isolationScope=s}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(s){throw this._popScope(),s}return tt(r)?Cr(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function W(){const t=ht(),e=_t(t);return e.stack=e.stack||new Dr(Nr(),Ar())}function Mr(t){return W().withScope(t)}function Lr(t,e){const n=W();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Te(t){return W().withScope(()=>t(W().getIsolationScope()))}function Pr(){return{withIsolationScope:Te,withScope:Mr,withSetScope:Lr,withSetIsolationScope:(t,e)=>Te(e),getCurrentScope:()=>W().getScope(),getIsolationScope:()=>W().getIsolationScope()}}function Qt(t){const e=_t(t);return e.acs?e.acs:Pr()}function v(){const t=ht();return Qt(t).getCurrentScope()}function j(){const t=ht();return Qt(t).getIsolationScope()}function Fr(){return Q("globalScope",()=>new T)}function $r(...t){const e=ht(),n=Qt(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function g(){return v().getClient()}function jr(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,o={trace_id:n,span_id:s||hn()};return r&&(o.parent_span_id=r),o}const Ur="sentry.source",Br="sentry.sample_rate",Hr="sentry.previous_trace_sample_rate",Wr="sentry.op",Gr="sentry.origin",mn="sentry.profile_id",gn="sentry.exclusive_time",zr="gen_ai.conversation.id",qr=0,Vr=1,Yr="_sentryScope",Kr="_sentryIsolationScope";function Xr(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function yn(t){const e=t;return{scope:e[Yr],isolationScope:Xr(e[Kr])}}const ve="sentry-";function Jr(t){const e=Zr(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,o])=>{if(s.startsWith(ve)){const i=s.slice(ve.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function Zr(t){if(!(!t||!O(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=ke(n);return Object.entries(r).forEach(([s,o])=>{e[s]=o}),e},{}):ke(t)}function ke(t){return t.split(",").map(e=>{const n=e.indexOf("=");if(n===-1)return[];const r=e.slice(0,n),s=e.slice(n+1);return[r,s].map(o=>{try{return decodeURIComponent(o.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}const Qr=/^o(\d+)\./,ts=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function rt(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}/`}${i}`}function es(t){const e=ts.exec(t);if(!e){mt(()=>{});return}const[n,r,s="",o="",i="",a=""]=e.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return En({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function En(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ns(t){return!0}function rs(t){return t.match(Qr)?.[1]}function ss(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=rs(n)),r}function os(t){const e=typeof t=="string"?es(t):En(t);if(!(!e||!ns()))return e}function is(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const Sn=1;let Oe=!1;function as(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:te(t).parent_span_id,o=yn(t).scope,i=r?o?.getPropagationContext().propagationSpanId||hn():e;return{parent_span_id:s,span_id:i,trace_id:n}}function cs(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...s},attributes:o})=>({span_id:e,trace_id:n,sampled:r===Sn,attributes:o,...s}))}function xe(t){return typeof t=="number"?Re(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Re(t.getTime()):x()}function Re(t){return t>9999999999?t/1e3:t}function te(t){if(ls(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(fs(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:us(t),start_timestamp:xe(s),timestamp:xe(i)||void 0,status:ps(a),op:r[Wr],origin:r[Gr],links:cs(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function us(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function fs(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function ls(t){return typeof t.getSpanJSON=="function"}function ds(t){const{traceFlags:e}=t.spanContext();return e===Sn}function ps(t){if(!(!t||t.code===qr))return t.code===Vr?"ok":t.message||"internal_error"}const hs="_sentryRootSpan",bn=_s;function _s(t){return t[hs]||t}function Ne(){Oe||(mt(()=>{}),Oe=!0)}function ms(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=g()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function Ae(t,e){if(!e?.length||!t.description)return!1;for(const n of e){if(ys(n)){if(ct(t.description,n))return!0;continue}if(!n.name&&!n.op)continue;const r=n.name?ct(t.description,n.name):!0,s=n.op?t.op&&ct(t.op,n.op):!0;if(r&&s)return!0}return!1}function gs(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const s of t)s.parent_span_id===r&&(s.parent_span_id=n)}function ys(t){return typeof t=="string"||t instanceof RegExp}const ee="production",Es="_frozenDsc";function In(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||ee,release:n.release,public_key:r,trace_id:t,org_id:ss(e)};return e.emit("createDsc",s),s}function Ss(t,e){const n=e.getPropagationContext();return n.dsc||In(n.traceId,t)}function bs(t){const e=g();if(!e)return{};const n=bn(t),r=te(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s[Br]??s[Hr];function a(_){return(typeof i=="number"||typeof i=="string")&&(_.sample_rate=`${i}`),_}const c=n[Es];if(c)return a(c);const u=o?.get("sentry.dsc"),f=u&&Jr(u);if(f)return a(f);const l=In(t.spanContext().traceId,e),p=s[Ur]??s["sentry.span.source"],d=r.description;return p!=="url"&&d&&(l.transaction=d),ms()&&(l.sampled=String(ds(n)),l.sample_rand=o?.get("sentry.sample_rand")??yn(n).scope?.getPropagationContext().sampleRand.toString()),a(l),e.emit("createDsc",l,n),l}function Is(t){return!!t&&typeof t=="function"&&"_streamed"in t&&!!t._streamed}function k(t,e=100,n=1/0){try{return Lt("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Tn(t,e=3,n=100*1024){const r=k(t,e);return Os(r)>n?Tn(t,e-1,n):r}function Lt(t,e,n=1/0,r=1/0,s=xs()){const[o,i]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const a=Ts(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const d=u.toJSON();return Lt("",d,c-1,r,s)}catch{}const f=Array.isArray(e)?[]:{};let l=0;const p=ln(e);for(const d in p){if(!Object.prototype.hasOwnProperty.call(p,d))continue;if(l>=r){f[d]="[MaxProperties ~]";break}const _=p[d];f[d]=Lt(d,_,c-1,r,s),l++}return i(e),f}function Ts(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(an(e))return rn(e);if(_r(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${L(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=vs(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function vs(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function ks(t){return~-encodeURI(t).split(/%..|./).length}function Os(t){return ks(JSON.stringify(t))}function xs(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function q(t,e=[]){return[t,e]}function Rs(t,e){const[n,r]=t;return[n,[...r,e]]}function Pt(t,e){const n=t[1];for(const r of n){const s=r[0].type;if(e(r,s))return!0}return!1}function Ns(t,e){return Pt(t,(n,r)=>e.includes(r))}function Ft(t){const e=_t(h);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function As(t){const[e,n]=t;let r=JSON.stringify(e);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Ft(r),o]:r.push(typeof o=="string"?Ft(o):o)}for(const o of n){const[i,a]=o;if(s(`
3${JSON.stringify(i)}
4`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(k(a))}s(c)}}return typeof r=="string"?r:Cs(r)}function Cs(t){const e=t.reduce((s,o)=>s+o.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function ws(t){const e=typeof t.data=="string"?Ft(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const vn={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function Ds(t){return t in vn}function Ce(t){return Ds(t)?vn[t]:t}function kn(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Ms(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:rt(r)},...s&&{trace:s}}}function Ls(t,e){if(!e)return t;const n=t.sdk||{};return 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}function Ps(t,e,n,r){const s=kn(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:rt(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return q(o,[i])}function Fs(t,e,n,r){const s=kn(n),o=t.type&&t.type!=="replay_event"?t.type:"event";Ls(t,n?.sdk);const i=Ms(t,s,r,e);return delete t.sdkProcessingMetadata,q(i,[[{type:o},t]])}function $s(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;js(t,e),r&&Hs(t,r),Ws(t,n),Us(t,s),Bs(t,o)}function we(t,e){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:f,eventProcessors:l,attachments:p,propagationContext:d,transactionName:_,span:R}=e;Y(t,"extra",n),Y(t,"tags",r),Y(t,"attributes",s),Y(t,"user",o),Y(t,"contexts",i),t.sdkProcessingMetadata=nt(t.sdkProcessingMetadata,c,2),a&&(t.level=a),_&&(t.transactionName=_),R&&(t.span=R),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...d}}function Y(t,e,n){t[e]=nt(t[e],n,1)}function On(t,e){const n=Fr().getScopeData();return t&&we(n,t.getScopeData()),e&&we(n,e.getScopeData()),n}function js(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&&t.type!=="transaction"&&(t.transaction=a)}function Us(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Bs(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Hs(t,e){t.contexts={trace:as(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:bs(e),...t.sdkProcessingMetadata};const n=bn(e),r=te(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Ws(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}const xt=0,De=1,Me=2;function st(t){return new J(e=>{e(t)})}function ne(t){return new J((e,n)=>{n(t)})}class J{constructor(e){this._state=xt,this._handlers=[],this._runExecutor(e)}then(e,n){return new J((r,s)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new J((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,e&&e()},i=>{o=!0,s=i,e&&e()}).then(()=>{if(o){r(s);return}n(s)})})}_executeHandlers(){if(this._state===xt)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===De&&n[1](this._value),this._state===Me&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(o,i)=>{if(this._state===xt){if(tt(i)){i.then(r,s);return}this._state=o,this._value=i,this._executeHandlers()}},r=o=>{n(De,o)},s=o=>{n(Me,o)};try{e(r,s)}catch(o){s(o)}}}function Gs(t,e,n,r=0){try{const s=$t(e,n,t,r);return tt(s)?s:st(s)}catch(s){return ne(s)}}function $t(t,e,n,r){const s=n[r];if(!t||!s)return t;const o=s({...t},e);return tt(o)?o.then(i=>$t(i,e,n,r+1)):$t(o,e,n,r+1)}let w,Le,Pe,N;function zs(t){const e=h._sentryDebugIds,n=h._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(N&&r.length===Le&&s.length===Pe)return N;Le=r.length,Pe=s.length,N={},w||(w={});const o=(i,a)=>{for(const c of i){const u=a[c],f=w?.[c];if(f&&N&&u)N[f[0]]=u,w&&(w[c]=[f[0],u]);else if(u){const l=t(c);for(let p=l.length-1;p>=0;p--){const _=l[p]?.filename;if(_&&N&&w){N[_]=u,w[c]=[_,u];break}}}}};return e&&o(r,e),n&&o(s,n),N}function qs(t,e,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||S(),timestamp:e.timestamp||et()},u=n.integrations||t.integrations.map(I=>I.name);Vs(c,t),Xs(c,u),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&Ys(c,t.stackParser);
4const f=Zs(r,n.captureContext);n.mechanism&&B(c,n.mechanism);const l=s?s.getEventProcessors():[],p=On(o,f),d=[...n.attachments||[],...p.attachments];d.length&&(n.attachments=d),$s(c,p);const _=[...l,...p.eventProcessors];return(n.data&&n.data.__sentry__===!0?st(c):Gs(_,c,n)).then(I=>(I&&Ks(I),typeof i=="number"&&i>0?Js(I,i,a):I))}function Vs(t,e){const{environment:n,release:r,dist:s,maxValueLength:o}=e;t.environment=t.environment||n||ee,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const i=t.request;i?.url&&o&&(i.url=wt(i.url,o)),o&&t.exception?.values?.forEach(a=>{a.value&&(a.value=wt(a.value,o))})}function Ys(t,e){const n=zs(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function Ks(t){const e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(e).length===0)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(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Xs(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Js(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:k(s.data,e,n)}}))},...t.user&&{user:k(t.user,e,n)},...t.contexts&&{contexts:k(t.contexts,e,n)},...t.extra&&{extra:k(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=k(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(s=>({...s,...s.data&&{data:k(s.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=k(t.contexts.flags,3,n)),r}function Zs(t,e){if(!e)return t;const n=t?t.clone():new T;return n.update(e),n}function Qs(t){if(t)return to(t)?{captureContext:t}:no(t)?{captureContext:t}:t}function to(t){return t instanceof T||typeof t=="function"}const eo=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function no(t){return Object.keys(t).some(e=>eo.includes(e))}function ro(t,e){return v().captureException(t,Qs(e))}function rc(t,e){const n=typeof e=="string"?e:void 0,r=typeof e!="string"?{captureContext:e}:void 0;return v().captureMessage(t,n,r)}function xn(t,e){return v().captureEvent(t,e)}function Fe(t){const e=j(),{user:n}=On(e,v()),{userAgent:r}=h.navigator||{},s=kr({user:n,...r&&{userAgent:r},...t}),o=e.getSession();return o?.status==="ok"&&H(o,{status:"exited"}),Rn(),e.setSession(s),s}function Rn(){const t=j(),n=v().getSession()||t.getSession();n&&Or(n),Nn(),t.setSession()}function Nn(){const t=j(),e=g(),n=t.getSession();n&&e&&e.captureSession(n)}function Rt(t=!1){if(t){Rn();return}Nn()}const so="7";function oo(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function io(t){return`${oo(t)}${t.projectId}/envelope/`}function ao(t,e){const n={sentry_version:so};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function co(t,e,n){return e||`${io(t)}?${ao(t,n)}`}const $e=[];function uo(t){const e={};return t.forEach(n=>{const{name:r}=n,s=e[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function fo(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const s=n(e);r=Array.isArray(s)?s:[s]}else r=e;return uo(r)}function lo(t,e){const n={};return e.forEach(r=>{r?.beforeSetup&&r.beforeSetup(t)}),e.forEach(r=>{r&&An(t,r,n)}),n}function je(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function An(t,e,n){if(!n[e.name]){if(n[e.name]=e,!$e.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),$e.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,o)=>r(s,o,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),s=Object.assign((o,i)=>r(o,i,t),{id:e.name});t.addEventProcessor(s)}}}function po(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function ho(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=rt(r)),q(s,[po(t)])}function jt(t,e){const n=e??_o(t)??[];
vendor: 11,073 bytes, lines 4-5
4if(n.length===0)return;const r=t.getOptions(),s=ho(n,r._metadata,r.tunnel,t.getDsn());Cn().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function _o(t){return Cn().get(t)}function Cn(){return Q("clientToLogBufferMap",()=>new WeakMap)}function mo(t){return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:t}]}function go(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=rt(r)),q(s,[mo(t)])}function wn(t,e){const n=e??yo(t)??[];if(n.length===0)return;const r=t.getOptions(),s=go(n,r._metadata,r.tunnel,t.getDsn());Dn().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function yo(t){return Dn().get(t)}function Dn(){return Q("clientToMetricBufferMap",()=>new WeakMap)}function Mn(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}const re=Symbol.for("SentryBufferFullError");function se(t=100){const e=new Set;function n(){return e.size<t}function r(i){e.delete(i)}function s(i){if(!n())return ne(re);const a=i();return e.add(a),a.then(()=>r(a),()=>r(a)),a}function o(i){if(!e.size)return st(!0);const a=Promise.allSettled(Array.from(e)).then(()=>!0);if(!i)return a;const c=[a,new Promise(u=>Mn(setTimeout(()=>u(!1),i)))];return Promise.race(c)}return{get $(){return Array.from(e)},add:s,drain:o}}const Eo=60*1e3;function So(t,e=bt()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Eo:r-e}function bo(t,e){return t[e]||t.all||0}function Io(t,e,n=bt()){return bo(t,e)>n}function To(t,{statusCode:e,headers:n},r=bt()){const s={...t},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,f]=a.split(":",5),l=parseInt(c,10),p=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+p;else for(const d of u.split(";"))d==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[d]=r+p):s[d]=r+p}else i?s.all=r+So(i,r):e===429&&(s.all=r+60*1e3);return s}const Ln=64;function vo(t,e,n=se(t.bufferSize||Ln)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(Pt(i,(l,p)=>{const d=Ce(p);Io(r,d)?t.recordDroppedEvent("ratelimit_backoff",d):a.push(l)}),a.length===0)return Promise.resolve({});const c=q(i[0],a),u=l=>{Ns(c,["client_report"])||Pt(c,(p,d)=>{t.recordDroppedEvent(l,Ce(d))})},f=()=>e({body:As(c)}).then(l=>l.statusCode===413?(u("send_error"),l):(r=To(r,l),l),l=>{throw u("network_error"),l});return n.add(f).then(l=>l,l=>{if(l===re)return u("queue_overflow"),Promise.resolve({});throw l})}return{send:o,flush:s}}function ko(t,e,n){const r=[{type:"client_report"},{timestamp:et(),discarded_events:t}];return q(e?{dsn:e}:{},[r])}function Oo(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 xo(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?.[mn],exclusive_time:i?.[gn],measurements:t.measurements,is_segment:!0}}function Ro(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[mn]:t.profile_id},...t.exclusive_time&&{[gn]:t.exclusive_time}}}},measurements:t.measurements}}const Pn=Symbol.for("SentryInternalError"),Fn=Symbol.for("SentryDoNotSendEventError"),No=5e3;function ut(t){return{message:t,[Pn]:!0}}function Nt(t){return{message:t,[Fn]:!0}}function Ao(t){return!!t&&typeof t=="object"&&Pn in t}function Co(t){return!!t&&typeof t=="object"&&Fn in t}function Ue(t,e,n,r,s){let o=0,i,a=!1;t.on(n,()=>{o=0,clearTimeout(i),a=!1}),t.on(e,c=>{o+=r(c),o>=8e5?s(t):a||(a=!0,i=Mn(setTimeout(()=>{s(t)},No)))}),t.on("flush",()=>{s(t)})}class wo{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=se(e.transportOptions?.bufferSize??Ln),e.dsn&&(this._dsn=os(e.dsn)),this._dsn){const r=co(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Ue(this,"afterCaptureLog","flushLogs",Po,jt),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Ue(this,"afterCaptureMetric","flushMetrics",Lo,wn)}captureException(e,n,r){const s=S();if(ge(e))return s;const o={event_id:s,...n};return this._process(()=>this.eventFromException(e,o).then(i=>this._captureEvent(i,o,r)).then(i=>i),"error"),o.event_id}captureMessage(e,n,r,s){const o={event_id:S(),...r},i=Kt(e)?e:String(e),a=yt(e),c=a?this.eventFromMessage(i,n,o):this.eventFromException(e,o);return this._process(()=>c.then(u=>this._captureEvent(u,o,s)),a?"unknown":"error"),o.event_id}captureEvent(e,n,r){const s=S();if(n?.originalException&&ge(n.originalException))return s;const o={event_id:s,...n},i=e.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=Be(e.type);return this._process(()=>this._captureEvent(e,o,a||r,c),u),o.event_id}captureSession(e){this.sendSession(e),H(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(e),s=await n.flush(e);return r&&s}async close(e){jt(this);const n=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];!n&&e.beforeSetup&&e.beforeSetup(this),An(this,e,this._integrations),n||je(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=Fs(e,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=Rs(r,ws(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",e,s))}sendSession(e){const{release:n,environment:r=ee}=this._options;if("aggregates"in e){const o=e.attrs||{};if(!o.release&&!n)return;o.release=o.release||n,o.environment=o.environment||r,e.attrs=o}else{if(!e.release&&!n)return;e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);const s=Ps(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){const s=`${e}:${n}`;this._outcomes[s]=(this._outcomes[s]||0)+r}}on(e,n){const r=this._hooks[e]=this._hooks[e]||new Set,s=(...o)=>n(...o);return r.add(s),()=>{r.delete(s)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(s=>s(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch{return{}}return{}}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=lo(this,e),je(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",s=!1;const o=n.exception?.values;if(o){s=!0,r=!1;for(const c of o)if(c.mechanism?.handled===!1){r=!0;break}}const i=e.status==="ok";(i&&e.errors===0||i&&r)&&(H(e,{...r&&{status:"crashed"},errors:e.errors||Number(s||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let n=0;for(;!e||n<e;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,s){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i?.length&&(n.integrations=i),this.emit("preprocessEvent",e,n),e.type||s.setLastEventId(e.event_id||n.event_id),qs(o,e,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:{...a.contexts?.trace,...jr(r)},...a.contexts};const c=Ss(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(e,n={},r=v(),s=j()){return this._processEvent(e,n,r,s).then(o=>o.event_id,o=>{})}_processEvent(e,n,r,s){const o=this.getOptions(),{sampleRate:i}=o,a=jn(e),c=$n(e),f=`before send for type \`${e.type||"error"}\``,l=typeof i>"u"?void 0:is(i);if(c&&typeof l=="number"&&pt()>l)return this.recordDroppedEvent("sample_rate","error"),ne(Nt(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const p=Be(e.type);return this._prepareEvent(e,n,r,s).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",p),Nt("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return d;const R=Mo(this,o,d,n);return Do(R,f)}).then(d=>{if(d===null){if(this.recordDroppedEvent("before_send",p),a){const I=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",I)}throw Nt(`${f} returned \`null\`, will not send event.`)}const _=r.getSession()||s.getSession();if(c&&_&&this._updateSessionFromEvent(_,d),a){const V=d.sdkProcessingMetadata?.spanCountBeforeProcessing||0,I=d.spans?d.spans.length:0,ce=V-I;ce>0&&this.recordDroppedEvent("before_send","span",ce)}const R=d.transaction_info;if(a&&R&&d.transaction!==e.transaction){const V="custom";d.transaction_info={...R,source:V}}return this.sendEvent(d,n),d}).then(null,d=>{throw Co(d)||Ao(d)?d:(this.captureException(d,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:d}),ut(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
5Reason: ${d}`))})}_process(e,n){this._numProcessing++,this._promiseBuffer.add(e).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===re&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0||!this._dsn)return;const n=ko(e,this._options.tunnel&&rt(this._dsn));this.sendEnvelope(n)}}function Be(t){return t==="replay_event"?"replay":t||"error"}function Do(t,e){const n=`${e} must return \`null\` or a valid event.`;if(tt(t))return t.then(r=>{if(!X(r)&&r!==null)throw ut(n);return r},r=>{throw ut(`${e} rejected with ${r}`)});if(!X(t)&&t!==null)throw ut(n);return t}function Mo(t,e,n,r){const{beforeSend:s,beforeSendTransaction:o,ignoreSpans:i}=e,a=!Is(e.beforeSendSpan)&&e.beforeSendSpan;let c=n;if($n(c)&&s)return s(c,r);
5if(jn(c)){if(a||i){const u=xo(c);if(i?.length&&Ae(u,i))return null;if(a){const f=a(u);f?c=nt(n,Ro(f)):Ne()}if(c.spans){const f=[],l=c.spans;for(const d of l){if(i?.length&&Ae(d,i)){gs(l,d);continue}if(a){const _=a(d);_?f.push(_):(Ne(),f.push(d))}else f.push(d)}const p=c.spans.length-f.length;p&&t.recordDroppedEvent("before_send","span",p),c.spans=f}}if(o){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return o(c,r)}}return c}function $n(t){return t.type===void 0}function jn(t){return t.type==="transaction"}function Lo(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+Un(t.attributes)}function Po(t){let e=0;return t.message&&(e+=t.message.length*2),e+Un(t.attributes)}function Un(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*He(n[0]):yt(n)?e+=He(n):e+=100}),e}function He(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function Fo(t){return gt(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function We(t){return Fo(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function $o(t,e){e.debug===!0&&mt(()=>{}),v().update(e.initialScope);const r=new t(e);return jo(r),r.init(),r}function jo(t){v().setClient(t)}function At(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 Uo(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&&o!==-1){const a=t.slice(o+1);i=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return t}function Bo(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function Ho(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(o=>({name:`${r}:@sentry/${o}`,version:D})),s.version=D)}const Wo=100;function P(t,e){const n=g(),r=j();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Wo}=n.getOptions();if(o<=0)return;const a={timestamp:et(),...t}
5,c=s?mt(()=>s(a,e)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,o))}let Ge;const Go="FunctionToString",ze=new WeakMap,zo=(()=>({name:Go,setupOnce(){Ge=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Zt(this),n=ze.has(g())&&e!==void 0?e:this;return Ge.apply(n,t)}}catch{}},setup(t){ze.set(t,!0)}})),qo=zo,Vo=[/^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/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Yo="EventFilters",Ko=(t={})=>{let e;return{name:Yo,setup(n){const r=n.getOptions();e=qe(t,r)},processEvent(n,r,s){if(!e){const o=s.getOptions();e=qe(t,o)}return Jo(n,e)?null:n}}},Xo=((t={})=>({...Ko(t),name:"InboundFilters"}));function qe(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Vo],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Jo(t,e){if(t.type){if(t.type==="transaction"&&Qo(t,e.ignoreTransactions))return!0}else if(Zo(t,e.ignoreErrors)||ri(t)||ti(t,e.denyUrls)||!ei(t,e.allowUrls))return!0;return!1}function Zo(t,e){return e?.length?Oo(t).some(n=>It(n,e)):!1}function Qo(t,e){if(!e?.length)return!1;const n=t.transaction;return n?It(n,e):!1}function ti(t,e){if(!e?.length)return!1;const n=Bn(t);return n?It(n,e):!1}function ei(t,e){if(!e?.length)return!0;const n=Bn(t);return n?It(n,e):!0}function ni(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Bn(t){try{const n=[...t.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?ni(n):null}catch{return null}}function ri(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function si(t,e,n,r,s,o){if(!s.exception?.values||!o||!A(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=Ut(t,e,r,o.originalException,n,s.exception.values,i,0))}function Ut(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(A(r[s],Error)){Ve(i,a,r);const u=t(e,r[s]),f=c.length;Ye(u,s,f,a),c=Ut(t,e,n,r[s],s,[u,...c],u,f)}return Hn(r)&&r.errors.forEach((u,f)=>{if(A(u,Error)){Ve(i,a,r);const l=t(e,u),p=c.length;Ye(l,`errors[${f}]`,p,a),c=Ut(t,e,n,u,s,[l,...c],l,p)}}),c}function Hn(t){return Array.isArray(t.errors)}function Ve(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...Hn(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function Ye(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function oi(t){const e="console";F(e,t),$(e,ii)}function ii(){"console"in h&&Zn.forEach(function(t){t in h.console&&E(h.console,t,function(e){return dt[t]=e,function(...n){b("console",{args:n,level:t}),dt[t]?.apply(h.console,n)}})})}function ai(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const ci="Dedupe",ui=(()=>{let t;return{name:ci,processEvent(e){if(e.type)return e;try{if(li(e,t))return Jn&&or.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}}),fi=ui;function li(t,e){return e?!!(di(t,e)||pi(t,e)):!1}function di(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Gn(t,e)||!Wn(t,e))}function pi(t,e){const n=Ke(e),r=Ke(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Gn(t,e)||!Wn(t,e))}function Wn(t,e){let n=le(t),r=le(e);
vendor: 5,889 bytes, line 5
5if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Gn(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Ke(t){return t.exception?.values?.[0]}const hi="ConversationId",_i=(()=>({name:hi,setup(t){t.on("spanStart",e=>{const n=v().getScopeData(),r=j().getScopeData(),s=n.conversationId||r.conversationId;s&&e.setAttribute(zr,s)})}})),mi=_i;function zn(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const Z=h;function gi(){return"history"in Z&&!!Z.history}function yi(){if(!("fetch"in Z))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Bt(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Ei(){if(typeof EdgeRuntime=="string")return!0;if(!yi())return!1;if(Bt(Z.fetch))return!0;let t=!1;const e=Z.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=Bt(n.contentWindow.fetch)),e.head.removeChild(n)}catch{}return t}function Si(t,e){const n="fetch";F(n,t),$(n,()=>bi(void 0,e))}function bi(t,e=!1){e&&!Ei()||E(h,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=Ii(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:x()*1e3,virtualError:s,headers:Ti(r)};return b("fetch",{...a}),n.apply(h,r).then(async c=>(b("fetch",{...a,endTimestamp:x()*1e3,response:c}),c),c=>{b("fetch",{...a,endTimestamp:x()*1e3,error:c}),gt(c)&&c.stack===void 0&&(c.stack=s.stack,C(c,"framesToPop",1));const f=g()?.getOptions().enhanceFetchErrorMessages??"always";if(f!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const d=new URL(a.fetchData.url).host;f==="always"?c.message=`${c.message} (${d})`:C(c,"__sentry_fetch_url_host__",d)}catch{}throw c})}})}function ft(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Xe(t){return typeof t=="string"?t:t?ft(t,"url")?t.url:t.toString?t.toString():"":""}function Ii(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:Xe(n),method:ft(r,"method")?String(r.method).toUpperCase():cn(n)&&ft(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Xe(e),method:ft(e,"method")?String(e.method).toUpperCase():"GET"}}function Ti(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(cn(e))return new Headers(e.headers)}catch{}}function vi(){return"npm"}const m=h;let Ht=0;function qn(){return Ht>0}function ki(){Ht++,setTimeout(()=>{Ht--})}function G(t,e={}){function n(s){return typeof s=="function"}if(!n(t))return t;try{const s=t.__sentry_wrapped__;if(s)return typeof s=="function"?s:t;if(Zt(t))return t}catch{return t}const r=function(...s){try{const o=s.map(i=>G(i,e));return t.apply(this,o)}catch(o){throw ki(),$r(i=>{i.addEventProcessor(a=>(e.mechanism&&(Dt(a,void 0),B(a,e.mechanism)),a.extra={...a.extra,arguments:s},a)),ro(o)}),o}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch{}fn(r,t),C(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Oi(){const t=Jt(),{referrer:e}=m.document||{},{userAgent:n}=m.navigator||{},r={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:r}}function oe(t,e){const n=ie(t,e),r={type:Ci(e),value:wi(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function xi(t,e,n,r){const o=g()?.getOptions().normalizeDepth,i=Fi(e),a={__serialized__:Tn(e,o)};if(i)return{exception:{values:[oe(t,i)]},extra:a};const c={exception:{values:[{type:Et(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Li(e,{isUnhandledRejection:r})}]},extra:a};if(n){const u=ie(t,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Ct(t,e){return{exception:{values:[oe(t,e)]}}}function ie(t,e){const n=e.stacktrace||e.stack||"",r=Ni(e),s=Ai(e);try{return t(n,r,s)}catch{}return[]}const Ri=/Minified React error #\d+;/i;function Ni(t){return t&&Ri.test(t.message)?1:0}function Ai(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function Vn(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function Ci(t){const e=t?.name;return!e&&Vn(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function wi(t){const e=t?.message;return Vn(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?We(e.error):We(t):"No error message"}function Di(t,e,n,r){const s=n?.syntheticException||void 0,o=ae(t,e,s,r);return B(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),st(o)}function Mi(t,e,n="info",r,s){const o=r?.syntheticException||void 0,i=Wt(t,e,o,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),st(i)}function ae(t,e,n,r,s){let o;if(on(e)&&e.error)return Ct(t,e.error);if(pe(e)||dr(e)){const i=e;if("stack"in e)o=Ct(t,e);else{const a=i.name||(pe(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=Wt(t,c,n,r),Dt(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return gt(e)?Ct(t,e):X(e)||Et(e)?(o=xi(t,e,n,s),B(o,{synthetic:!0}),o):(o=Wt(t,e,n,r),Dt(o,`${e}`),B(o,{synthetic:!0}),o)}function Wt(t,e,n,r){const s={};if(r&&n){const o=ie(t,n);o.length&&(s.exception={values:[{value:e,stacktrace:{frames:o}}]}),B(s,{synthetic:!0})}
5if(Kt(e)){const{__sentry_template_string__:o,__sentry_template_values__:i}=e;return s.logentry={message:o,params:i},s}return s.message=e,s}function Li(t,{isUnhandledRejection:e}){const n=Er(t),r=e?"promise rejection":"exception";return on(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Et(t)?`Event \`${Pi(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Pi(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Fi(t){return Object.values(t).find(e=>e instanceof Error)}class $i extends wo{constructor(e){const n=ji(e),r=m.SENTRY_SDK_SOURCE||vi();Ho(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:o,enableLogs:i,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;m.document&&(o||i||u)&&m.document.addEventListener("visibilitychange",()=>{m.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),i&&jt(this),u&&wn(this))}),s&&this.on("beforeSendSession",Bo)}eventFromException(e,n){return Di(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Mi(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,s){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,s)}}function ji(t){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:m.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const y=h,Ui=1e3;let Je,Gt,zt;function Bi(t){F("dom",t),$("dom",Hi)}function Hi(){if(!y.document)return;const t=b.bind(null,"dom"),e=Ze(t,!0);y.document.addEventListener("click",e,!1),y.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const s=y[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(E(s,"addEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[i]=u[i]||{refCount:0};if(!f.handler){const l=Ze(t);f.handler=l,o.call(this,i,l,c)}f.refCount++}catch{}return o.call(this,i,a,c)}}),E(s,"removeEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[i];f&&(f.refCount--,f.refCount<=0&&(o.call(this,i,f.handler,c),f.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,a,c)}}))})}function Wi(t){if(t.type!==Gt)return!1;try{if(!t.target||t.target._sentryId!==zt)return!1}catch{}return!0}function Gi(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function Ze(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=zi(n);if(Gi(n.type,r))return;C(n,"_sentryCaptured",!0),r&&!r._sentryId&&C(r,"_sentryId",S());
vendor: 6,482 bytes, line 5
5const s=n.type==="keypress"?"input":n.type;Wi(n)||(t({event:n,name:s,global:e}),Gt=n.type,zt=r?r._sentryId:void 0),clearTimeout(Je),Je=y.setTimeout(()=>{zt=void 0,Gt=void 0},Ui)}}function zi(t){try{return t.target}catch{return null}}let it;function Yn(t){const e="history";F(e,t),$(e,qi)}function qi(){if(y.addEventListener("popstate",()=>{const e=y.location.href,n=it;if(it=e,n===e)return;b("history",{from:n,to:e})}),!gi())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=it,o=Vi(String(r));if(it=o,s===o)return e.apply(this,n);b("history",{from:s,to:o})}return e.apply(this,n)}}E(y.history,"pushState",t),E(y.history,"replaceState",t)}function Vi(t){try{return new URL(t,y.location.origin).toString()}catch{return t}}const lt={};function Yi(t){const e=lt[t];if(e)return e;let n=y[t];if(Bt(n))return lt[t]=n.bind(y);const r=y.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o?.[t]&&(n=o[t]),r.head.removeChild(s)}catch{}return n&&(lt[t]=n.bind(y))}function Ki(t){lt[t]=void 0}const K="__sentry_xhr_v3__";function Xi(t){F("xhr",t),$("xhr",Ji)}function Ji(){if(!y.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const s=new Error,o=x()*1e3,i=O(r[0])?r[0].toUpperCase():void 0,a=Zi(r[1]);if(!i||!a)return e.apply(n,r);n[K]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[K];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:x()*1e3,startTimestamp:o,xhr:n,virtualError:s};b("xhr",f)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,f,l){return c(),u.apply(f,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,f,l){const[p,d]=l,_=f[K];return _&&O(p)&&O(d)&&(_.request_headers[p.toLowerCase()]=d),u.apply(f,l)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const s=n[K];if(!s)return e.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:x()*1e3,xhr:n};return b("xhr",o),e.apply(n,r)}})}function Zi(t){if(O(t))return t;try{return t.toString()}catch{}}const Qi=40;function ta(t,e=Yi("fetch")){let n=0,r=0;async function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const c=await e(t.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw Ki("fetch"),c}finally{n-=i,r--}}return vo(t,s,se(t.bufferSize||Qi))}const ea=30,na=50;function qt(t,e,n,r){const s={filename:t,function:e==="<anonymous>"?M:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const ra=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,sa=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,oa=/\((\S*)(?::(\d+))(?::(\d+))\)/,ia=/at (.+?) ?\(data:(.+?),/,aa=t=>{const e=t.match(ia);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=ra.exec(t);if(n){const[,s,o,i]=n;return qt(s,M,+o,+i)}const r=sa.exec(t);if(r){if(r[2]?.indexOf("eval")===0){const a=oa.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[o,i]=Kn(r[1]||M,r[2]);return qt(i,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},ca=[ea,aa],ua=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,la=t=>{const e=ua.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const o=fa.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],s=e[1]||M;return[s,r]=Kn(s,r),qt(r,s,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},da=[na,la],pa=[ca,da],ha=nn(...pa),Kn=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:M,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Qe=1024,_a="Breadcrumbs",ma=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:_a,setup(n){e.console&&oi(Sa(n)),e.dom&&Bi(Ea(n,e.dom)),e.xhr&&Xi(ba(n)),e.fetch&&Si(Ia(n)),e.history&&Yn(Ta(n)),e.sentry&&n.on("beforeSendEvent",ya(n))}}}),ga=ma;function ya(t){return function(n){g()===t&&P({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ir(n)},{event:n})}}function Ea(t,e){return function(r){if(g()!==t)return;let s,o,i=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>Qe&&(a=Qe),typeof i=="string"&&(i=[i]);try{const u=r.event,f=va(u)?u.target:u;s=un(f,{keyAttrs:i,maxStringLength:a}),o=yr(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),P(c,{event:r.event,name:r.name,global:r.global})}}function Sa(t){return function(n){if(g()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:ai(n.level),message:me(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${me(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;P(r,{input:n.args,level:n.level})}}function ba(t){return function(n){if(g()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[K];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,f={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},p={category:"xhr",data:f,type:"http",level:zn(c)};t.emit("beforeOutgoingRequestBreadcrumb",p,l),P(p,l)}}function Ia(t){return function(n){if(g()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:n.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,o),P(i,o)}else{const o=n.response,i={...n.fetchData,status_code:o?.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:zn(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,a),P(c,a)}}}
5function Ta(t){return function(n){if(g()!==t)return;let r=n.from,s=n.to;const o=At(m.location.href);let i=r?At(r):void 0;const a=At(s);i?.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),P({category:"navigation",data:{from:r,to:s}})}}function va(t){return!!t&&!!t.target}const ka="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".split(","),Oa="BrowserApiErrors",xa=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:Oa,setupOnce(){e.setTimeout&&E(m,"setTimeout",tn),e.setInterval&&E(m,"setInterval",tn),e.requestAnimationFrame&&E(m,"requestAnimationFrame",Na),e.XMLHttpRequest&&"XMLHttpRequest"in m&&E(XMLHttpRequest.prototype,"send",Aa);const n=e.eventTarget;n&&(Array.isArray(n)?n:ka).forEach(s=>Ca(s,e))}}}),Ra=xa;function tn(t){return function(...e){const n=e[0];return e[0]=G(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${L(t)}`}}),t.apply(this,e)}}function Na(t){return function(e){return t.apply(this,[G(e,{mechanism:{data:{handler:L(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Aa(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&E(n,s,function(o){const i={mechanism:{data:{handler:L(o)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},a=Zt(o);return a&&(i.mechanism.data.handler=L(a)),G(o,i)})}),t.apply(this,e)}}function Ca(t,e){const r=m[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(E(r,"addEventListener",function(s){return function(o,i,a){try{wa(i)&&(i.handleEvent=G(i.handleEvent,{mechanism:{data:{handler:L(i),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&Da(this,o,i),s.apply(this,[o,G(i,{mechanism:{data:{handler:L(i),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),E(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function wa(t){return typeof t.handleEvent=="function"}function Da(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const Ma=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof m.document>"u")return;Fe({ignoreDuration:!0}),Rt();const n=j();let r=n.getUser();n.addScopeListener(s=>{const o=s.getUser();(r?.id!==o?.id||r?.ip_address!==o?.ip_address)&&(Rt(),r=o)}),e==="route"&&Yn(({from:s,to:o})=>{s!==o&&(Fe({ignoreDuration:!0}),Rt())})}}},La="CultureContext",Pa=(()=>({name:La,preprocessEvent(t){const e=$a();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})}})),Fa=Pa;function $a(){try{const t=m.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const ja="GlobalHandlers",Ua=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:ja,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&Ha(n),e.onunhandledrejection&&Wa(n)}}}),Ba=Ua;function Ha(t){cr(e=>{const{stackParser:n,attachStacktrace:r}=Xn();if(g()!==t||qn())return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=qa(ae(n,c||s,void 0,r,!1),o,i,a);u.level="error",xn(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Wa(t){fr(e=>{const{stackParser:n,attachStacktrace:r}=Xn();if(g()!==t||qn())return;const s=Ga(e),o=yt(s)?za(s):ae(n,s,void 0,r,!0);o.level="error",xn(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Ga(t){if(yt(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}function za(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function qa(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||[];
5return c.length===0&&c.push({colno:r,lineno:n,filename:Va(e)??Jt(),function:M,in_app:!0}),t}function Xn(){return g()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Va(t){if(!(!O(t)||t.length===0))return t.startsWith("data:")?`<${Uo(t,!1)}>`:t}const Ya=()=>({name:"HttpContext",preprocessEvent(t){if(!m.navigator&&!m.location&&!m.document)return;const e=Oi(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}}),Ka="cause",Xa=5,Ja="LinkedErrors",Za=((t={})=>{const e=t.limit||Xa,n=t.key||Ka;return{name:Ja,preprocessEvent(r,s,o){const i=o.getOptions();si(oe,i.stackParser,n,e,r,s)}}}),Qa=Za;function tc(){return!!ec()}function ec(){if(typeof m.window>"u")return!1;const t=m;if(t.nw||!(t.chrome||t.browser)?.runtime?.id)return!1;const n=Jt();return!(m===m.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function nc(t){return[Xo(),qo(),mi(),Ra(),ga(),Ba(),Qa(),fi(),Ya(),Fa(),Ma()]}function sc(t={}){const e=!t.skipBrowserExtensionCheck&&tc();let n=t.defaultIntegrations==null?nc():t.defaultIntegrations;const r={...t,enabled:e?!1:t.enabled,stackParser:ir(t.stackParser||ha),integrations:fo({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||ta};return $o($i,r)}export{$i as BrowserClient,D as SDK_VERSION,Wr as SEMANTIC_ATTRIBUTE_SENTRY_OP,Gr as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,Br as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Ur as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,T as Scope,m as WINDOW,P as addBreadcrumb,ga as breadcrumbsIntegration,Ra as browserApiErrorsIntegration,Ma as browserSessionIntegration,xn as captureEvent,ro as captureException,rc as captureMessage,Rt as captureSession,ca as chromeStackLineParser,vo as createTransport,Fa as cultureContextIntegration,fi as dedupeIntegration,pa as defaultStackLineParsers,ha as defaultStackParser,Rn as endSession,Ko as eventFiltersIntegration,Di as eventFromException,Mi as eventFromMessage,oe as exceptionFromError,qo as functionToStringIntegration,da as geckoStackLineParser,g as getClient,v as getCurrentScope,nc as getDefaultIntegrations,Fr as getGlobalScope,j as getIsolationScope,bn as getRootSpan,Ba as globalHandlersIntegration,Ya as httpContextIntegration,Xo as inboundFiltersIntegration,sc as init,Qa as linkedErrorsIntegration,ta as makeFetchTransport,jo as setCurrentClient,te as spanToJSON,Fe as startSession,$r as withScope};

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.