PageSourceSearch

https://textiaa.com/chunk-XS6GCNMA.js

js textiaa.com collected 2026-10-02 00:08:15 UTC 247,339 bytes, 24 lines download raw bytes

1import{a as Qc,b as Zc,c as ep,d as tp,e as rp,h as np,n as ip}from"./chunk-MJC7NEL7.js";import{D as Jc,M as Of}from"./chunk-H3JKYH2Z.js";import{Da as Rf,P as qi,Q as Af,R as Wa,V as Ya,Z as za,a as Kc,ud as Xc,z as Bi}from"./chunk-6ZKZEUGL.js";import{a as p,b as y,d as $c,e as f,k as B}from"./chunk-J6LPXIX4.js";var pt,Va=f(()=>{"use strict";pt="10.66.0"});var I,de=f(()=>{"use strict";I=globalThis});function Ne(){return St(I),I}function St(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||pt,t[pt]=t[pt]||{}}function Ke(e,t,r=I){let n=r.__SENTRY__=r.__SENTRY__||{},i=n[pt]=n[pt]||{};return i[e]||(i[e]=t())}var He=f(()=>{"use strict";Va();de()});var v,oe=f(()=>{"use strict";v=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__});function fe(e){if(!("console"in I))return e();let t=I.console,r={},n=Object.keys(ar);n.forEach(i=>{let s=ar[i];r[i]=t[i],t[i]=s});try{return e()}finally{n.forEach(i=>{t[i]=r[i]})}}function kf(){$a().enabled=!0}function Nf(){$a().enabled=!1}function sp(){return $a().enabled}function wf(...e){ja("log",...e)}function Cf(...e){ja("warn",...e)}function Mf(...e){ja("error",...e)}function ja(e,...t){v&&sp()&&fe(()=>{I.console[e](`${xf}[${e}]:`,...t)})}function $a(){return v?Ke("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var Hi,xf,ar,b,ee=f(()=>{"use strict";He();oe();de();Hi=["debug","info","warn","error","log","assert","trace"],xf="Sentry Logger ",ar={};b={enable:kf,disable:Nf,isEnabled:sp,log:wf,warn:Cf,error:Mf}});function ut(e){switch(ap.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Et(e,Error)}}function Fr(e,t){return ap.call(e)===`[object ${t}]`}function Br(e){return Fr(e,"ErrorEvent")}function An(e){return Fr(e,"DOMError")}function Gi(e){return Fr(e,"DOMException")}function le(e){return Fr(e,"String")}function Lt(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Xe(e){return e===null||Lt(e)||typeof e!="object"&&typeof e!="function"}function dt(e){return Fr(e,"Object")}function we(e){return typeof e=="object"&&e!==null}function Dt(e){return typeof Event<"u"&&Et(e,Event)}function Wi(e){return Fr(e,"RegExp")}function Je(e){return!!(e?.then&&typeof e.then=="function")}function Et(e,t){try{return e instanceof t}catch(r){return!1}}function Ka(e){return typeof Request<"u"&&Et(e,Request)}var ap,xe=f(()=>{"use strict";ap=Object.prototype.toString});function te(e,t,r){if(!(t in e))return;let n=e[t];if(typeof n!="function")return;let i=r(n);typeof i=="function"&&Rn(i,n);try{e[t]=i}catch(s){v&&b.log(`Failed to replace method "${t}" in object`,e)}}function $(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(n){v&&b.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function Rn(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,$(e,"__sentry_original__",t)}catch(r){}}function Pt(e){return e.__sentry_original__}function On(e){if(ut(e))return p({message:e.message,name:e.name,stack:e.stack},op(e));if(Dt(e)){let{type:t,target:r,currentTarget:n,detail:i}=e;return p(p({type:t,target:r,currentTarget:n},i?{detail:i}:{}),op(e))}return e}function op(e){return we(e)?Object.fromEntries(Object.entries(e)):{}}function Yi(e){let t=Object.keys(On(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}var Ce=f(()=>{"use strict";oe();ee();xe()});function or(e){if(qr!==void 0)return qr?qr(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=I;return t in r&&typeof r[t]=="function"?(qr=r[t],qr(e)):(qr=null,e())}function lr(){return or(()=>Math.random())}function Ge(){return or(()=>Date.now())}var qr,Ut=f(()=>{"use strict";de()});function lp(e){return!!e[Lf]}function cp(e){let t=e[Df];return typeof t=="number"?t:void 0}var Lf,Df,pp=f(()=>{"use strict";Lf=Symbol.for("sentry.skipNormalization"),Df=Symbol.for("sentry.overrideNormalizationDepth")});function xn(...e){let t=e.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,i=0)=>{let s=[],a=r.split(`
2`);for(let o=n;o<a.length;o++){let l=a[o];l.length>1024&&(l=l.slice(0,1024));let c=up.test(l)?l.replace(up,"$1"):l;if(!c.includes("Error: ")){for(let d of t){let u=d(c);if(u){s.push(u);break}}if(s.length>=50+i)break}}return Ja(s.slice(i))}}function Vi(e){return Array.isArray(e)?xn(...e):e}function Ja(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(zi(t).function||"")&&t.pop(),t.reverse(),dp.test(zi(t).function||"")&&(t.pop(),dp.test(zi(t).function||"")&&t.pop()),t.slice(0,50).map(r=>y(p({},r),{filename:r.filename||zi(t).filename,function:r.function||"?"}))}function zi(e){return e[e.length-1]||{}}function Ee(e){try{return!e||typeof e!="function"?Xa:e.name||Xa}catch(t){return Xa}}function kn(e){let t=e.exception;if(t){let r=[];
2try{return t.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch(n){return}}}var up,dp,Xa,Hr=f(()=>{"use strict";up=/\(error: (.*)\)/,dp=/captureMessage|captureException/;Xa="<anonymous>"});function ji(e){Qa=e}function ve(e,t=100,r=1/0){try{return Za("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function Nn(e,t=3,r=100*1024){let n=ve(e,t);return Ff(n)>r?Nn(e,t-1,r):n}function Za(e,t,r=1/0,n=1/0,i=Bf()){let[s,a]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;let o=eo(e,t);if(!o.startsWith("[object "))return o;if(lp(t))return t;let l=cp(t),c=l!==void 0?l:r;if(c===0)return o.replace("object ","");if(s(t))return"[Circular ~]";let d=t;if(d&&typeof d.toJSON=="function")try{let h=d.toJSON();return Za("",h,c-1,n,i)}catch(h){}let u=Array.isArray(t)?[]:{},m=0,g=On(t);for(let h in g){if(!Object.prototype.hasOwnProperty.call(g,h))continue;if(m>=n){u[h]="[MaxProperties ~]";break}let _=g[h];u[h]=Za(h,_,c-1,n,i),m++}return a(t),u}function eo(e,t){try{if(Qa){let n=Qa(t);if(n)return n}return typeof global<"u"&&t===global?"[Global]":typeof t=="number"&&!Number.isFinite(t)?`[${t}]`:typeof t=="function"?`[Function: ${Ee(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${Pf(t)}]`}catch(r){return`**non-serializable** (${r})`}}function Pf(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function Uf(e){return~-encodeURI(e).split(/%..|./).length}function Ff(e){return Uf(JSON.stringify(e))}function Bf(){let e=new WeakSet;function t(n){return e.has(n)?!0:(e.add(n),!1)}function r(n){e.delete(n)}return[t,r]}var Qa,Gr=f(()=>{"use strict";pp();Ce();Hr()});function cr(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function wn(e,t){if(!Array.isArray(e))return"";let r=[];for(let n=0;n<e.length;n++){let i=e[n];Xe(i)?r.push(String(i)):i instanceof Error?r.push(i.message?`${i.name}: ${i.message}`:i.name):r.push(eo(void 0,i))}return r.join(t)}function Ft(e,t,r=!1){return le(e)?Wi(t)?t.test(e):le(t)?r?e===t:e.includes(t):typeof t=="function"?t(e):!1:!1}function Qe(e,t=[],r=!1){for(let n of t)if(Ft(e,n,r))return!0;return!1}var Bt=f(()=>{"use strict";xe();Gr()});function qf(){let e=I;return e.crypto||e.msCrypto}function Hf(){return lr()*16}function re(e=qf()){try{if(e?.randomUUID)return or(()=>e.randomUUID()).replace(/-/g,"")}catch(t){}return to||(to="10000000100040008000"+1e11),to.replace(/[018]/g,t=>(t^(Hf()&15)>>t/4).toString(16))}function mp(e){return e.exception?.values?.[0]}function Ze(e){let{message:t,event_id:r}=e;if(t)return t;let n=mp(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function pr(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=r||"Error")}function We(e,t){let r=mp(e);if(!r)return;let n={type:"generic",handled:!0},i=r.mechanism;if(r.mechanism=p(p(p({},n),i),t),t&&"data"in t){let s=p(p({},i?.data),t.data);r.mechanism.data=s}}function Cn(e){if(ro(e))return!0;try{$(e,"__sentry_captured__",!0)}catch(t){}return!1}function ro(e){try{return e.__sentry_captured__}catch(t){}}var to,Tt=f(()=>{"use strict";Ce();Ut();de()});function et(){return Ge()/fp}function Gf(){let{performance:e}=I;if(!e?.now||!e.timeOrigin)return et;let t=e.timeOrigin;return()=>(t+or(()=>e.now()))/fp}function me(){return(gp??(gp=Gf()))()}function Wf(){let{performance:e}=I;if(!e?.now)return;let t=3e5,r=or(()=>e.now()),n=Ge(),i=e.timeOrigin;if(typeof i=="number"&&Math.abs(i+r-n)<t)return i;let s=e.timing?.navigationStart;return typeof s=="number"&&Math.abs(s+r-n)<t?s:n-r}function $i(){return no===null&&(no=Wf()),no}var fp,gp,no,mt=f(()=>{"use strict";Ut();de();fp=1e3;no=null});function hp(e){let t=me(),r={sid:re(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Yf(r)};return e&&It(r,e),r}function It(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||me(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:re()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
2ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function bp(e,t){let r={};t?r={status:t}:e.status==="ok"&&(r={status:"exited"}),It(e,r)}function Yf(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}var Ki=f(()=>{"use strict";Tt();mt()});function qt(e,t,r=2){if(!t||typeof t!="object"||r<=0)return t;if(e&&Object.keys(t).length===0)return e;let n=p({},e);for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=qt(n[i],t[i],r-1));return n}var Xi=f(()=>{"use strict"});function Ht(){return re()}function At(){return re().substring(16)}var Wr=f(()=>{"use strict";Tt()});function Ji(e){try{let t=I.WeakRef;if(typeof t=="function")return new t(e)}catch(t){}return e}function Qi(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch(t){return}return e}}var io=f(()=>{"use strict";de()});function Mn(e,t){t?$(e,so,Ji(t)):delete e[so]}function ur(e){return Qi(e[so])}var so,Zi=f(()=>{"use strict";Ce();io();so="_sentrySpan"});var zf,ke,Ln=f(()=>{"use strict";oe();Ki();ee();xe();Xi();Tt();Wr();Ut();Zi();Bt();mt();zf=100,ke=class e{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:Ht(),sampleRand:lr()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags=p({},this._tags),t._attributes=p({},this._attributes),t._extra=p({},this._extra),t._contexts=p({},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=p({},this._sdkProcessingMetadata),t._propagationContext=p({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Mn(t,ur(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&&It(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=p(p({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,r){return this.setTags({[t]:r})}setAttributes(t){return this._attributes=p(p({},this._attributes),t),this._notifyScopeListeners(),this}setAttribute(t,r){return this.setAttributes({[t]:r})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra=p(p({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,r){return this._extra=y(p({},this._extra),{[t]:r}),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,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,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;let r=typeof t=="function"?t(this):t,n=r instanceof e?r.getScopeData():dt(r)?t:void 0,{tags:i,attributes:s,extra:a,user:o,contexts:l,level:c,fingerprint:d=[],propagationContext:u,conversationId:m}=n||{};return this._tags=p(p({},this._tags),i),this._attributes=p(p({},this._attributes),s),this._extra=p(p({},this._extra),a),this._contexts=p(p({},this._contexts),l),o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),d.length&&(this._fingerprint=d),u&&(this._propagationContext=u),m&&(this._conversationId=m),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,Mn(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ht(),sampleRand:lr()}),this._notifyScopeListeners(),this}addBreadcrumb(t,r){let n=typeof r=="number"?r:zf;if(n<=0)return this;let i=y(p({timestamp:et()},t),{message:t.message?cr(t.message,2048):t.message});return this._breadcrumbs.push(i),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:ur(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=qt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,r){let n=r?.event_id||re();if(!this._client)return v&&b.warn("No client configured on scope - will not capture exception!"),n;let i=new Error("Sentry syntheticException");return this._client.captureException(t,y(p({originalException:t,syntheticException:i},r),{event_id:n}),this),n}captureMessage(t,r,n){let i=n?.event_id||re();if(!this._client)return v&&b.warn("No client configured on scope - will not capture message!"),i;let s=n?.syntheticException??new Error(t);return this._client.captureMessage(t,r,y(p({originalException:t,syntheticException:s},n),{event_id:i}),this),i}captureEvent(t,r){let n=t.event_id||r?.event_id||re();return this._client?(this._client.captureEvent(t,y(p({},r),{event_id:n}),this),n):(v&&b.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(t=>{t(this)}),this._notifyingListeners=!1)}}});function _p(){return Ke("defaultCurrentScope",()=>new ke)}function yp(){return Ke("defaultIsolationScope",()=>new ke)}var vp=f(()=>{"use strict";He();Ln()});var Sp,Ep,Tp,Vf,Ip=f(()=>{"use strict";Sp=e=>e instanceof Promise&&!e[Ep],Ep=Symbol("chained PromiseLike"),Tp=(e,t,r)=>{let n=e.then(i=>(t(i),i),i=>{throw r(i),i});return Sp(n)&&Sp(e)?n:Vf(e,n)},Vf=(e,t)=>{if(!t)return e;let r=!1;for(let n in e){if(n in t)continue;r=!0;let i=e[n];typeof i=="function"?Object.defineProperty(t,n,{value:(...s)=>i.apply(e,s),enumerable:!0,configurable:!0,writable:!0}):t[n]=i}return r&&Object.assign(t,{[Ep]:!0}),t}});function Yr(){let e=Ne(),t=St(e);return t.stack=t.stack||new ao(_p(),yp())}function jf(e){return Yr().withScope(e)}function $f(e,t){let r=Yr();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function Ap(e){return Yr().withScope(()=>e(Yr().getIsolationScope()))}function Rp(){return{withIsolationScope:Ap,withScope:jf,withSetScope:$f,withSetIsolationScope:(e,t)=>Ap(t),getCurrentScope:()=>Yr().getScope(),getIsolationScope:()=>Yr().getIsolationScope()}}var ao,Op=f(()=>{"use strict";vp();Ln();Ip();xe();He();ao=class{constructor(t,r){let n;t?n=t:n=new ke;let i;r?i=r:i=new ke,this._stack=[{scope:n}],this._isolationScope=i}withScope(t){let r=this._pushScope(),n;try{n=t(r)}catch(i){throw this._popScope(),i}return Je(n)?Tp(n,()=>this._popScope(),()=>this._popScope()):(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(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}});function Gt(e){let t=St(e);return t.acs?t.acs:Rp()}var es=f(()=>{"use strict";He();Op()});function oo(){return Kf?.()}function G(){let e=Ne();return Gt(e).getCurrentScope()}function Q(){let e=Ne();return Gt(e).getIsolationScope()}function Dn(){return Ke("globalScope",()=>new ke)}function Wt(...e){let t=Ne(),r=Gt(t);if(e.length===2){let[n,i]=e;return n?r.withSetScope(n,i):r.withScope(i)}return r.withScope(e[0])}function R(){return G().getClient()}function ts(e){let t=oo();if(t)return{trace_id:t.traceId,span_id:t.spanId};let r=e.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:s}=r,a={trace_id:n,span_id:s||At()};return i&&(a.parent_span_id=i),a}var Kf,Se=f(()=>{"use strict";es();He();Ln();Wr()});var ce,dr,rs,Ye,Me,ns,is,ss,zr,mr,gr,as,gt=f(()=>{"use strict";ce="sentry.source",dr="sentry.sample_rate",rs="sentry.previous_trace_sample_rate",Ye="sentry.op",Me="sentry.origin",ns="sentry.status.message",is="sentry.measurement_unit",ss="sentry.measurement_value",zr="sentry.custom_span_name",mr="sentry.profile_id",gr="sentry.exclusive_time",as="gen_ai.conversation.id"});function Np(e){let t=Xf(e);if(!t)return;let r=Object.entries(t).reduce((n,[i,s])=>{if(i.startsWith(xp)){let a=i.slice(xp.length);n[a]=s}return n},{});if(Object.keys(r).length>0)return r}function Xf(e){if(!(!e||!le(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,r)=>{let n=kp(r);return Object.entries(n).forEach(([i,s])=>{t[i]=s}),t},{}):kp(e)}function kp(e){return e.split(",").map(t=>{let r=t.indexOf("=");if(r===-1)return[];let n=t.slice(0,r),i=t.slice(r+1);return[n,i].map(s=>{try{return decodeURIComponent(s.trim())}catch(a){return}})}).reduce((t,[r,n])=>(r&&n&&(t[r]=n),t),{})}var xp,wp=f(()=>{"use strict";xe();xp="sentry-"});function Yt(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let t=e||R()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}var os=f(()=>{"use strict";Se()});function Cp(e){b.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function fr(e,t){if(!t?.length)return!1;for(let r of t){if(Qf(r)){if(e.description&&Ft(e.description,r))return v&&Cp(e),!0;continue}let n=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!n)continue;let i=r.name?e.description&&Ft(e.description,r.name):!0,s=r.op?e.op&&Ft(e.op,r.op):!0,a=r.attributes?Object.entries(r.attributes).every(([o,l])=>Jf(e.attributes?.[o],l)):!0;if(i&&s&&a)return v&&Cp(e),!0}return!1}function Jf(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?Ft(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e===t}function Mp(e,t){let r=t.parent_span_id,n=t.span_id;if(r)for(let i of e)i.parent_span_id===n&&(i.parent_span_id=r)}
2function Qf(e){return typeof e=="string"||e instanceof RegExp}var ls=f(()=>{"use strict";oe();ee();Bt()});function Rt(e){return e.getOptions().traceLifecycle==="stream"}var cs=f(()=>{"use strict"});function ft(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}var Pn=f(()=>{"use strict"});function Zf(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function eh(e,t){let{value:r,unit:n}=Zf(e)?e:{value:e,unit:void 0},i=th(r),s=n&&typeof n=="string"?{unit:n}:{};if(i)return p(p({},i),s);if(!t||t==="skip-undefined"&&r===void 0)return;let a="";try{a=JSON.stringify(r)??""}catch(o){}return p({value:a,type:"string"},s)}function lo(e,t=!1){let r={};for(let[n,i]of Object.entries(e??{})){let s=eh(i,t);s&&(r[n]=s)}return r}function th(e){if(Array.isArray(e))return{value:e,type:"array"};let t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}var Lp=f(()=>{"use strict"});function Vr(e,t,r){e&&($(e,Pp,Ji(r)),$(e,Dp,t))}function Ot(e){let t=e;return{scope:t[Dp],isolationScope:Qi(t[Pp])}}function co(e){return e[rh]===!0}function Up(e){$(e,nh,!0)}function po(e){return e[ih]===!0}var Dp,Pp,rh,nh,ih,Un=f(()=>{"use strict";Ce();io();Dp="_sentryScope",Pp="_sentryIsolationScope",rh=Symbol.for("sentry.otelSourceInference"),nh=Symbol.for("sentry.otelSourceExplicitlySet"),ih=Symbol.for("sentry.tracerProviderSpan")});function oh(e){return e==="http"||e==="https"}function Le(e,t=!1){let{host:r,path:n,pass:i,port:s,projectId:a,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${r}${s?`:${s}`:""}/${n&&`${n}/`}${a}
2`}function lh(e){let t=ah.exec(e);if(!t){fe(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[r,n,i="",s="",a="",o=""]=t.slice(1),l="",c=o,d=c.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),c=d.pop()),c){let u=c.match(/^\d+/);u&&(c=u[0])}return Fp({host:s,pass:i,path:l,projectId:c,port:a,protocol:r,publicKey:n})}function Fp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ch(e){if(!v)return!0;let{port:t,projectId:r,protocol:n}=e;return["protocol","publicKey","host","projectId"].find(a=>e[a]?!1:(b.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:r.match(/^\d+$/)?oh(n)?t&&isNaN(parseInt(t,10))?(b.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(b.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(b.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function ph(e){return e.match(sh)?.[1]}function Bp(e){let t=e.getOptions(),{host:r}=e.getDsn()||{},n;return t.orgId?n=String(t.orgId):r&&(n=ph(r)),n}function ps(e){let t=typeof e=="string"?lh(e):Fp(e);if(!(!t||!ch(t)))return t}var sh,ah,zt=f(()=>{"use strict";oe();ee();sh=/^o(\d+)\./,ah=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/});function Gp(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:s,status:a,origin:o,links:l}=z(e);return{parent_span_id:s,span_id:t,trace_id:r,data:n,op:i,status:a,origin:o,links:l}}function ds(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:z(e).parent_span_id,s=Ot(e).scope,a=n?s?.getPropagationContext().propagationSpanId||At():t;return{parent_span_id:i,span_id:a,trace_id:r}}function qn(e){if(e&&e.length>0)return e.map(a=>{var o=a,{context:l}=o,c=l,{spanId:t,traceId:r,traceFlags:n}=c,i=$c(c,["spanId","traceId","traceFlags"]),{attributes:s}=o;return p({span_id:t,trace_id:r,sampled:n===Bn,attributes:s},i)})}function Wp(e){if(e?.length)return e.map(({context:{spanId:t,traceId:r,traceFlags:n},attributes:i})=>({span_id:t,trace_id:r,sampled:n===Bn,attributes:i}))}function ht(e){return typeof e=="number"?Hp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Hp(e.getTime()):me()}function Hp(e){return e>9999999999?e/1e3:e}function z(e){if(mo(e))return e.getSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(gh(e)){let{attributes:n,startTime:i,name:s,endTime:a,status:o,links:l}=e;return{span_id:t,trace_id:r,data:n,description:s,parent_span_id:mh(e),start_timestamp:ht(i),timestamp:ht(a)||void 0,status:Hn(o),op:n[Ye],origin:n[Me],links:qn(l)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function mh(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function Yp(e){return y(p({},e),{attributes:lo(e.attributes),links:e.links?.map(t=>y(p({},t),{attributes:lo(t.attributes)}))})}function gh(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function mo(e){return typeof e.getSpanJSON=="function"}function tt(e){let{traceFlags:t}=e.spanContext();return t===Bn}function Hn(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"internal_error"}function go(e){return!e||e.code===1||e.code===0||e.message==="cancelled"?"ok":"error"}function zp(e,t){let r=go(t)==="error"?t?.message:void 0;return p(p({},r&&{[ns]:r}),e)}function hr(e,t){let r=e[uo]||e;$(t,uo,r),e[Fn]?e[Fn].add(t):$(e,Fn,new Set([t]))}function Gn(e){let t=new Set;function r(n){if(!t.has(n)&&tt(n)){t.add(n);let i=n[Fn]?Array.from(n[Fn]):[];for(let s of i)r(s)}}return r(e),Array.from(t)}function fo(e){return e[uo]||e}function bt(){let e=Ne(),t=Gt(e);return t.getActiveSpan?t.getActiveSpan():ur(G())}function Wn(){qp||(fe(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),qp=!0)}var us,Bn,qp,Fn,uo,ne,De=f(()=>{"use strict";es();Lp();He();Se();gt();Un();Ce();Wr();mt();ee();Zi();us=0,Bn=1,qp=!1;Fn="_sentryChildSpans",uo="_sentryRootSpan";ne=fo});var Vp,jp,$p,Kp,ho=f(()=>{"use strict";Vp="sentry.span.source",jp="url.full",$p="url.path",Kp="url.template"});var jr,ms=f(()=>{"use strict";jr="production"});function Yn(e){return!!e&&e[Xp]===!0}var Xp,br,bo=f(()=>{"use strict";Ce();Wr();De();Xp=Symbol.for("sentry.nonRecordingSpan"),br=class{constructor(t={}){this._traceId=t.traceId||Ht(),this._spanId=t.spanId||At(),this.dropReason=t.dropReason,$(this,Xp,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:us}}end(t){}setAttribute(t,r){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
2addEvent(t,r,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,r){}}});function _o(e,t){$(e,Jp,t)}function yo(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i={environment:r.environment||jr,release:r.release,public_key:n,trace_id:e,org_id:Bp(t)};return t.emit("createDsc",i),i}function gs(e,t){let r=t.getPropagationContext();return r.dsc||yo(r.traceId,e)}function Pe(e){let t=R();if(!t)return{};let r=ne(e),n=z(r),i=n.data,s=r.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[dr]??i[rs];function o(A){return(typeof a=="number"||typeof a=="string")&&(A.sample_rate=`${a}`),A}let l=r[Jp];if(l)return o(l);let c=Yn(r),d=c&&r.dropReason==="ignored";if(c&&(!Yt(t.getOptions())||d)){let A=Ot(r).scope;if(A){let E=p({},gs(t,A));return d&&(E.sampled="false"),o(E)}}let u=s?.get("sentry.dsc"),m=u&&Np(u);if(m)return o(m);let g=yo(e.spanContext().traceId,t),h=i[ce]??i[Vp],_=n.description;return h!=="url"&&_&&(g.transaction=_),Yt()&&(g.sampled=String(tt(r)),g.sample_rand=s?.get("sentry.sample_rand")??Ot(r).scope?.getPropagationContext().sampleRand.toString()),o(g),t.emit("createDsc",g,r),g}var Jp,_r=f(()=>{"use strict";ho();ms();Se();gt();wp();zt();os();Ce();De();bo();Un();Jp="_frozenDsc"});function Qp(e){if(!v)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=z(e),{spanId:i}=e.spanContext(),s=tt(e),a=ne(e),o=a===e,l=`[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`,c=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&c.push(`parent ID: ${n}`),!o){let{op:d,description:u}=z(a);c.push(`root ID: ${a.spanContext().spanId}`),d&&c.push(`root op: ${d}`),u&&c.push(`root description: ${u}`)}b.log(`${l}
3  ${c.join(`
4  `)}`)}function Zp(e){if(!v)return;let{description:t="< unknown name >",op:r="< unknown op >"}=z(e),{spanId:n}=e.spanContext(),s=ne(e)===e,a=`[Tracing] Finishing "${r}" ${s?"root ":""}span "${t}" with ID ${n}`;b.log(a)}var vo=f(()=>{"use strict";oe();ee();De()});function eu(e,t,r){if(!Yt(e))return[!1];let n,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler(y(p({},t),{inheritOrSampleWith:o=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):o})),n=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,n=!0);let s=ft(i);if(s===void 0)return v&&b.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!s)return v&&b.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,n];let a=r<s;return a||v&&b.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[a,s,n]}var tu=f(()=>{"use strict";oe();ee();os();Pn()});function fs(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}var So=f(()=>{"use strict"});function Te(e,t=[]){return[e,t]}function hs(e,t){let[r,n]=e;return[r,[...n,t]]}function zn(e,t){let r=e[1];for(let n of r){let i=n[0].type;if(t(n,i))return!0}return!1}function To(e,t){return zn(e,(r,n)=>t.includes(n))}function Eo(e){let t=St(I);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Io(e){let[t,r]=e,n=JSON.stringify(t);function i(s){typeof n=="string"?n=typeof s=="string"?n+s:[Eo(n),s]:n.push(typeof s=="string"?Eo(s):s)}for(let s of r){let[a,o]=s;if(i(`
5${JSON.stringify(a)}
6`),typeof o=="string"||o instanceof Uint8Array)i(o);else{let l;try{l=JSON.stringify(o)}catch(c){l=JSON.stringify(ve(o))}i(l)}}return typeof n=="string"?n:fh(n)}function fh(e){let t=e.reduce((i,s)=>i+s.length,0),r=new Uint8Array(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return r}function Ao(e){return[{type:"span"},e]}function Ro(e){let t=typeof e.data=="string"?Eo(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}function hh(e){return e in ru}function bs(e){return hh(e)?ru[e]:e}function $r(e){if(!e?.sdk)return;
6let{name:t,version:r}=e.sdk;return{name:t,version:r}}function Vn(e,t,r,n){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return p(p(p({event_id:e.event_id,sent_at:new Date(Ge()).toISOString()},t&&{sdk:t}),!!r&&n&&{dsn:Le(n)}),i&&{trace:i})}var ru,Vt=f(()=>{"use strict";He();zt();Gr();Ut();de();ru={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 bh(e,t){if(!t)return e;let r=e.sdk||{};return e.sdk=y(p({},r),{name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?p(p({},e.sdk?.settings),t.settings):void 0}),e}function nu(e,t,r,n){let i=$r(r),s=p(p({sent_at:new Date(Ge()).toISOString()},i&&{sdk:i}),!!n&&t&&{dsn:Le(t)}),a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Te(s,[a])}function iu(e,t,r,n){let i=$r(r),s=e.type&&e.type!=="replay_event"?e.type:"event";bh(e,r?.sdk);let a=Vn(e,i,n,t);return delete e.sdkProcessingMetadata,Te(a,[[{type:s},e]])}function su(e,t){function r(g){return!!g.trace_id&&!!g.public_key}let n=Pe(e[0]),i=t?.getDsn(),s=t?.getOptions().tunnel,a=p(p({sent_at:new Date(Ge()).toISOString()},r(n)&&{trace:n}),!!s&&i&&{dsn:Le(i)}),{beforeSendSpan:o,ignoreSpans:l}=t?.getOptions()||{},c=l?.length?e.filter(g=>{let h=z(g);return!fr({description:h.description,op:h.op,attributes:h.data},l)}):e,d=e.length-c.length;d&&t?.recordDroppedEvent("before_send","span",d);let u=o?g=>{let h=z(g),_=fs(o)?h:o(h);return _||(Wn(),h)}:z,m=[];for(let g of c){let h=u(g);h&&m.push(Ao(h))}return Te(a,m)}var Oo=f(()=>{"use strict";_r();So();zt();Vt();Ut();ls();De()});function xo(e){if(!e||e.length===0)return;let t={};return e.forEach(r=>{let n=r.attributes||{},i=n[is],s=n[ss];typeof i=="string"&&typeof s=="number"&&(t[r.name]={value:s,unit:i})}),t}var au=f(()=>{"use strict";gt()});function ko(){return St(Ne()).segmentSpanCaptureStrategy}var ou=f(()=>{"use strict";He()});function cu(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function pu(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function _h(e){return e instanceof Kr&&e.isStandaloneSpan()}function yh(e){let t=R();if(!t)return;let r=e[1];if(!r||r.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}var lu,Kr,uu=f(()=>{"use strict";Se();oe();Oo();gt();ee();Wr();De();mt();_r();vo();au();ou();cs();Un();lu=1e3,Kr=class{constructor(t={}){this._traceId=t.traceId||Ht(),this._spanId=t.spanId||At(),this._startTime=t.startTimestamp||me(),this._links=t.links,this._attributes={},this.setAttributes(p({[Me]:"manual",[Ye]:t.op},t.attributes)),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._frozen?this:(this._links?this._links.push(t):this._links=[t],this)}addLinks(t){return this._frozen?this:(this._links?this._links.push(...t):this._links=t,this)}recordException(t,r){}spanContext(){let{_spanId:t,_traceId:r,_sampled:n}=this;return{spanId:t,traceId:r,traceFlags:n?Bn:us}}setAttribute(t,r){return this._frozen?this:(r===void 0?delete this._attributes[t]:this._attributes[t]=r,t===ce&&r!==void 0&&co(this)&&Up(this),this)}setAttributes(t){return Object.keys(t).forEach(r=>this.setAttribute(r,t[r])),this}updateStartTime(t){this._frozen||(this._startTime=ht(t))}setStatus(t){return this._frozen?this:(this._status=t,this)}updateName(t){return this._frozen?this:(this._name=t,co(this)||this.setAttribute(ce,"custom"),this)}end(t){if(this._endTime){this._frozen=po(this);return}this._endTime=ht(t),Zp(this),this._onSpanEnded(),this._frozen=po(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Ye],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Hn(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Me],profile_id:this._attributes[mr],exclusive_time:this._attributes[gr],measurements:xo(this._events),is_segment:this._isStandaloneSpan&&ne(this)===this||void 0,segment_id:this._isStandaloneSpan?ne(this).spanContext().spanId:void 0,links:qn(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===ne(this),status:go(this._status),attributes:zp(this._attributes,this._status),links:Wp(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,r,n){if(this._frozen)return this;v&&b.log("[Tracing] Adding an event to span:",t);let i=cu(r)?r:n||me(),s=cu(r)?{}:r||{},a={name:t,time:ht(i),attributes:s};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=R();t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this));let r=ne(this),n=this._isStandaloneSpan||this===r;if(this._isStandaloneSpan){this._sampled?yh(su([this],t)):(v&&b.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}if(!n){let a=ko();if(a){let o=Ot(this).scope||G();a.onChildSpanEnded(this,r,l=>this._convertSpanToTransaction(l),o)}return}if(t&&Rt(t)){t.emit("afterSegmentSpanEnd",this);return}let i=Ot(this).scope||G(),s=ko();if(s)s.onSegmentSpanEnded(a=>this._convertSpanToTransaction(a),i);else{let a=this._convertSpanToTransaction();a&&i.captureEvent(a)}}_convertSpanToTransaction(t={}){if(!pu(z(this)))return;this._name||(v&&b.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:r,isolationScope:n}=Ot(this),i=r?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;t.onSpanCaptured?.(this);let s=[];for(let u of Gn(this)){if(u===this||_h(u)||t.isSpanAlreadyCaptured?.(u))continue;let m=z(u);pu(m)&&(t.onSpanCaptured?.(u),s.push(m))}let a=this._attributes[ce];delete this._attributes[zr];let o=!1;
6s.forEach(u=>{delete u.data[zr],u.op?.startsWith("gen_ai.")&&(o=!0)});let l=p({contexts:{trace:Gp(this)},spans:s.length>lu?s.sort((u,m)=>u.start_timestamp-m.start_timestamp).slice(0,lu):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:r,capturedSpanIsolationScope:n,dynamicSamplingContext:Pe(this),hasGenAiSpans:o},request:i},a&&{transaction_info:{source:a}}),c=xo(this._events);return c&&Object.keys(c).length&&(v&&b.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),l.measurements=c),l}}});function jn(e){let t=wo();return t.startInactiveSpan?t.startInactiveSpan(e):vh(e)}function vh(e){let t=Th(e),{forceTransaction:r,parentSpan:n}=e;return(e.scope?s=>Wt(e.scope,s):n!==void 0?s=>No(n,s):s=>s())(()=>{let s=G(),a=Ah(s,n),o=R();return e.onlyIfParent&&!a?Sh(s,o):Eh({parentSpan:a,spanArguments:t,forceTransaction:r,scope:s})})}function No(e,t){let r=wo();return r.withActiveSpan?r.withActiveSpan(e,t):Wt(n=>(Mn(n,e||void 0),t(n)))}function _s(e=G()){let t=wo();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[mu]===!0}function Sh(e,t){t?.recordDroppedEvent("no_parent_span","span");let r=new br({traceId:e.getPropagationContext().traceId});return Vr(r,e,Q()),r}function Eh({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let i=Q();if(!Yt()){let o=p(p({},i.getPropagationContext()),n.getPropagationContext()),l=e?e.spanContext().traceId:o.traceId,c=new br({traceId:l});return e&&!r&&hr(e,c),Vr(c,n,i),c}let s=R();if(Rh(s,t)){_s(n)||s?.recordDroppedEvent("ignored","span");let o=new br({dropReason:"ignored",traceId:e?.spanContext().traceId??n.getPropagationContext().traceId});return e&&!r&&hr(e,o),Vr(o,n,i),o}let a;if(e&&!r)a=Ih(e,n,t,i),hr(e,a);else if(e){let o=Pe(e),{traceId:l,spanId:c}=e.spanContext(),d=tt(e);a=du(p({traceId:l,parentSpanId:c},t),n,i,d),_o(a,o)}else{let{traceId:o,dsc:l,parentSpanId:c,sampled:d}=p(p({},i.getPropagationContext()),n.getPropagationContext());a=du(p({traceId:o,parentSpanId:c},t),n,i,d),l&&_o(a,l)}return Qp(a),a}function Th(e){let t=e.experimental||{},r=p({isStandalone:t.standalone},e);if(e.startTime){let n=p({},r);return n.startTimestamp=ht(e.startTime),delete n.startTime,n}return r}function wo(){let e=Ne();return Gt(e)}function du(e,t,r,n){let i=R(),s=i?.getOptions()||{},{name:a=""}=e,o={spanAttributes:p({},e.attributes),spanName:a,parentSampled:n};i?.emit("beforeSampling",o,{decision:!1});let l=o.parentSampled??n,c=o.spanAttributes,d=t.getPropagationContext(),u=_s(t),[m,g,h]=u?[!1]:eu(s,{name:a,parentSampled:l,attributes:c,normalizedRequest:r.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:ft(d.dsc?.sample_rate)},d.sampleRand),_=new Kr(y(p({},e),{attributes:p({[ce]:"custom",[dr]:g!==void 0&&h?g:void 0},c),sampled:m}));return!m&&i&&!u&&(v&&b.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",Rt(i)?"span":"transaction")),Vr(_,t,r),i&&i.emit("spanStart",_),_}function Ih(e,t,r,n){let{spanId:i,traceId:s}=e.spanContext(),a=_s(t),o=a?!1:tt(e),l=o?new Kr(y(p({},r),{parentSpanId:i,traceId:s,sampled:o})):new br({traceId:s});hr(e,l),Vr(l,t,n);let c=R();return c&&(Rt(c)&&Yn(l)&&(Yn(e)&&e.dropReason?(l.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,"span")):a||(l.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span"))),c.emit("spanStart",l),r.endTimestamp&&(c.emit("spanEnd",l),c.emit("afterSpanEnd",l))),l}function Ah(e,t){if(t)return t;if(t===null)return;let r=ur(e);if(!r)return;let n=R();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?ne(r):r}function Rh(e,t){let r=e?.getOptions().ignoreSpans;return!e||!Rt(e)||!r?.length?!1:fr({description:t.name||"",op:t.attributes?.[Ye]||t.op,attributes:t.attributes},r)}var mu,gu=f(()=>{"use strict";es();He();Se();oe();gt();ee();os();ls();cs();Pn();Zi();De();_r();vo();tu();bo();uu();Un();mu="__SENTRY_SUPPRESS_TRACING__"});function _t(e){return new $n(t=>{t(e)})}function yr(e){return new $n((t,r)=>{r(e)})}var Co,fu,hu,$n,Xr=f(()=>{"use strict";xe();Co=0,fu=1,hu=2;$n=class e{constructor(t){this._state=Co,this._handlers=[],this._runExecutor(t)}then(t,r){return new e((n,i)=>{this._handlers.push([!1,s=>
6{if(!t)n(s);else try{n(t(s))}catch(a){i(a)}},s=>{if(!r)i(s);else try{n(r(s))}catch(a){i(a)}}]),this._executeHandlers()})}catch(t){return this.then(r=>r,t)}finally(t){return new e((r,n)=>{let i,s;return this.then(a=>{s=!1,i=a,t&&t()},a=>{s=!0,i=a,t&&t()}).then(()=>{if(s){n(i);return}r(i)})})}_executeHandlers(){if(this._state===Co)return;let t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===fu&&r[1](this._value),this._state===hu&&r[2](this._value),r[0]=!0)})}_runExecutor(t){let r=(s,a)=>{if(this._state===Co){if(Je(a)){a.then(n,i);return}this._state=s,this._value=a,this._executeHandlers()}},n=s=>{r(fu,s)},i=s=>{r(hu,s)};try{t(n,i)}catch(s){i(s)}}}});function bu(e,t,r,n=0){try{let i=Mo(t,r,e,n);return Je(i)?i:_t(i)}catch(i){return yr(i)}}function Mo(e,t,r,n){let i=r[n];if(!e||!i)return e;let s=i(p({},e),t);return v&&s===null&&b.log(`Event processor "${i.id||"?"}" dropped event`),Je(s)?s.then(a=>Mo(a,t,r,n+1)):Mo(s,t,r,n+1)}var _u=f(()=>{"use strict";oe();ee();xe();Xr()});function Su(e){let t=I._sentryDebugIds,r=I._debugIds;if(!t&&!r)return{};let n=t?Object.keys(t):[],i=r?Object.keys(r):[];if(jt&&n.length===yu&&i.length===vu)return jt;yu=n.length,vu=i.length,jt={},vr||(vr={});let s=(a,o)=>{for(let l of a){let c=o[l],d=vr?.[l];if(d&&jt&&c)jt[d[0]]=c,vr&&(vr[l]=[d[0],c]);else if(c){let u=e(l);for(let m=u.length-1;m>=0;m--){let h=u[m]?.filename;if(h&&jt&&vr){jt[h]=c,vr[l]=[h,c];break}}}}};return t&&s(n,t),r&&s(i,r),jt}var vr,yu,vu,jt,Eu=f(()=>{"use strict";de()});function Iu(e,t){let{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:s}=t;Oh(e,t),n&&Nh(e,n),wh(e,r),xh(e,i),kh(e,s)}function Tu(e,t){let{extra:r,tags:n,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:d,eventProcessors:u,attachments:m,propagationContext:g,transactionName:h,span:_}=t;Kn(e,"extra",r),Kn(e,"tags",n),Kn(e,"attributes",i),Kn(e,"user",s),Kn(e,"contexts",a),e.sdkProcessingMetadata=qt(e.sdkProcessingMetadata,l,2),o&&(e.level=o),h&&(e.transactionName=h),_&&(e.span=_),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),m.length&&(e.attachments=[...e.attachments,...m]),e.propagationContext=p(p({},e.propagationContext),g)}function Kn(e,t,r){e[t]=qt(e[t],r,1)}function ys(e,t){let r=Dn().getScopeData();return e&&Tu(r,e.getScopeData()),t&&Tu(r,t.getScopeData()),r}function Oh(e,t){let{extra:r,tags:n,user:i,contexts:s,level:a,transactionName:o}=t;Object.keys(r).length&&(e.extra=p(p({},r),e.extra)),Object.keys(n).length&&(e.tags=p(p({},n),e.tags)),Object.keys(i).length&&(e.user=p(p({},i),e.user)),Object.keys(s).length&&(e.contexts=p(p({},s),e.contexts)),a&&(e.level=a),o&&e.type!=="transaction"&&(e.transaction=o)}function xh(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function kh(e,t){e.sdkProcessingMetadata=p(p({},e.sdkProcessingMetadata),t)}function Nh(e,t){e.contexts=p({trace:ds(t)},e.contexts),e.sdkProcessingMetadata=p({dynamicSamplingContext:Pe(t)},e.sdkProcessingMetadata);let r=ne(t),n=z(r).description;n&&!e.transaction&&e.type==="transaction"&&(e.transaction=n)}function wh(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var Lo=f(()=>{"use strict";Se();_r();Xi();De()});function Xn(e,t,r,n,i,s){let{normalizeDepth:a=3,normalizeMaxBreadth:o=1e3}=e,l=y(p({},t),{event_id:t.event_id||r.event_id||re(),timestamp:t.timestamp||et()}),c=r.integrations||e.integrations.map(E=>E.name);Ch(l,e),Dh(l,c),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&Mh(l,e.stackParser);let d=Uh(n,r.captureContext);r.mechanism&&We(l,r.mechanism);let u=i?i.getEventProcessors():[],m=ys(s,d),g=[...r.attachments||[],...m.attachments];g.length&&(r.attachments=g),Iu(l,m);let h=[...u,...m.eventProcessors];return(r.data&&r.data.__sentry__===!0?_t(l):bu(h,l,r)).then(E=>(E&&Lh(E),typeof a=="number"&&a>0?Ph(E,a,o):E))}function Ch(e,t){let{environment:r,release:n,dist:i,maxValueLength:s}=t;e.environment=e.environment||r||jr,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i);let a=e.request;a?.url&&s&&(a.url=cr(a.url,s)),s&&e.exception?.values?.forEach(o=>{o.value&&(o.value=cr(o.value,s))})}function Mh(e,t){let r=Su(t);e.exception?.values?.forEach(n=>
6{n.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=r[i.filename])})})}function Lh(e){let t={};if(e.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([n,i])=>{r.push({type:"sourcemap",code_file:n,debug_id:i})})}function Dh(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Ph(e,t,r){if(!e)return null;let n=p(p(p(p(p({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>p(p({},i),i.data&&{data:ve(i.data,t,r)}))}),e.user&&{user:ve(e.user,t,r)}),e.contexts&&{contexts:ve(e.contexts,t,r)}),e.extra&&{extra:ve(e.extra,t,r)});return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=ve(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(i=>p(p({},i),i.data&&{data:ve(i.data,t,r)}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=ve(e.contexts.flags,3,r)),n}function Uh(e,t){if(!t)return e;let r=e?e.clone():new ke;return r.update(t),r}function Au(e){if(e)return Fh(e)?{captureContext:e}:qh(e)?{captureContext:e}:e}function Fh(e){return e instanceof ke||typeof e=="function"}function qh(e){return Object.keys(e).some(t=>Bh.includes(t))}var Bh,vs=f(()=>{"use strict";ms();_u();Ln();Eu();Tt();Gr();Lo();Bt();Xr();mt();Bh=["user","level","extra","contexts","tags","fingerprint","propagationContext"]});function xt(e,t){return G().captureException(e,Au(t))}function Jr(e,t){return G().captureEvent(e,t)}function Sr(e,t){Q().setContext(e,t)}function Jn(){return Q().lastEventId()}function Qn(e){Q().addEventProcessor(e)}function Qr(e){let t=Q(),{user:r}=ys(t,G()),{userAgent:n}=I.navigator||{},i=hp(p(p({user:r},n&&{userAgent:n}),e)),s=t.getSession();return s?.status==="ok"&&It(s,{status:"exited"}),Zn(),t.setSession(i),i}function Zn(){let e=Q(),r=G().getSession()||e.getSession();r&&bp(r),Ru(),e.setSession()}function Ru(){let e=Q(),t=R(),r=e.getSession();r&&t&&t.captureSession(r)}function Er(e=!1){if(e){Zn();return}Ru()}var Po=f(()=>{"use strict";Se();Ki();vs();Lo();de()});function Ie(e,t){return ei[e]=ei[e]||[],ei[e].push(t),()=>{let r=ei[e];if(r){let n=r.indexOf(t);n!==-1&&r.splice(n,1)}}}function Ae(e,t){if(!Ou[e]){Ou[e]=!0;try{t()}catch(r){v&&b.error(`Error while instrumenting ${e}`,r)}}}function ge(e,t){let r=e&&ei[e];if(r)for(let n of r)try{n(t)}catch(i){v&&b.error(`Error while triggering instrumentation handler.
7Type: ${e}
8Name: ${Ee(n)}
9Error:`,i)}}var ei,Ou,Zr=f(()=>{"use strict";oe();ee();Hr();ei={},Ou={}});function Fo(e){let t="error";Ie(t,e),Ae(t,Hh)}function Hh(){Uo=I.onerror,I.onerror=function(e,t,r,n,i){return ge("error",{column:n,error:i,line:r,msg:e,url:t}),Uo?Uo.apply(this,arguments):!1},I.onerror.__SENTRY_INSTRUMENTED__=!0}var Uo,xu=f(()=>{"use strict";de();Zr();Uo=null});function qo(e){let t="unhandledrejection";Ie(t,e),Ae(t,Gh)}function Gh(){Bo=I.onunhandledrejection,I.onunhandledrejection=function(e){return ge("unhandledrejection",e),Bo?Bo.apply(this,arguments):!0},I.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Bo,ku=f(()=>{"use strict";de();Zr();Bo=null});var Ho,Nu=f(()=>{"use strict";Ho={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3}});function Go(e,t,r){let n,i,s,a=r?.maxWait?Math.max(r.maxWait,t):0,o=r?.setTimeoutImpl||setTimeout;function l(){return c(),n=e(),n}function c(){i!==void 0&&clearTimeout(i),s!==void 0&&clearTimeout(s),i=s=void 0}function d(){return i!==void 0||s!==void 0?l():n}function u(){return i&&clearTimeout(i),i=o(l,t),a&&s===void 0&&(s=o(l,a)),n}return u.cancel=c,u.flush=d,u}var wu=f(()=>{"use strict"});function kt(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([n,i])=>{i!=null&&!(n in r)&&(r[n]=i)})}var Wo=f(()=>{"use strict"});function Ss(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}var Yo=f(()=>{"use strict"});function Mu(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function Wh(e){return`${Mu(e)}${e.projectId}/envelope/`}function Yh(e,t){let r={sentry_version:Cu};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}function zo(e,t,r){return t||`${Wh(e)}?${Yh(e,r)}`}function Vo(e,t){let r=ps(e);if(!r)return"";let n=`${Mu(r)}embed/error-page/`,i=`dsn=${Le(r)}`;for(let s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){let a=t.user;if(!a)continue;a.name&&(i+=`&name=${encodeURIComponent(a.name)}`),a.email&&(i+=`&email=${encodeURIComponent(a.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${n}?${i}`}var Cu,jo=f(()=>{"use strict";zt();Cu="7"});function zh(e){let t={};return e.forEach(r=>{let{name:n}=r,i=t[n];i&&!i.isDefaultInstance&&r.isDefaultInstance||(t[n]=r)}),Object.values(t)}function Ko(e){let t=e.defaultIntegrations||[],r=e.integrations;t.forEach(i=>
9{i.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...t,...r];else if(typeof r=="function"){let i=r(t);n=Array.isArray(i)?i:[i]}else n=t;return zh(n)}function Lu(e,t){let r={};return t.forEach(n=>{n?.beforeSetup&&n.beforeSetup(e)}),t.forEach(n=>{n&&Jo(e,n,r)}),r}function Xo(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function Jo(e,t,r){if(r[t.name]){v&&b.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,!$o.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),$o.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>n(i,s,e))}if(typeof t.processEvent=="function"){let n=t.processEvent.bind(t),i=Object.assign((s,a)=>n(s,a,e),{id:t.name});e.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(n=>{let i=t[n];typeof i=="function"&&e.on(n,s=>i.call(t,s,e))}),v&&b.log(`Integration installed: ${t.name}`)}var $o,Qo=f(()=>{"use strict";oe();ee();$o=[]});function Zo(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function el(){return"npm"}var tl=f(()=>{"use strict"});function Du(){return!Zo()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}var Pu=f(()=>{"use strict";tl()});function yt(){return typeof window<"u"&&(!Du()||Vh())}function Vh(){return I.process?.type==="renderer"}var ti=f(()=>{"use strict";Pu();de()});function jh(e,t){let r=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},y(p({version:2},yt()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}}),{items:e})]}function Uu(e,t,r,n,i){let s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(s.dsn=Le(n)),Te(s,[jh(e,i)])}var Fu=f(()=>{"use strict";zt();Vt();ti()});function Bu(e,t){let r=t??$h(e)??[];if(r.length===0)return;let n=e.getOptions(),i=Uu(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);qu().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function $h(e){return qu().get(e)}function qu(){return Ke("clientToLogBufferMap",()=>new WeakMap)}var Hu=f(()=>{"use strict";He();Fu()});function Kh(e,t){let r=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},y(p({version:2},yt()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}}),{items:e})]}function Gu(e,t,r,n,i){let s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(s.dsn=Le(n)),Te(s,[Kh(e,i)])}var Wu=f(()=>{"use strict";zt();Vt();ti()});function Yu(e,t){let r=t??Xh(e)??[];if(r.length===0)return;let n=e.getOptions(),i=Gu(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);zu().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function Xh(e){return zu().get(e)}function zu(){return Ke("clientToMetricBufferMap",()=>new WeakMap)}var Vu=f(()=>{"use strict";He();Wu()});function ju(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status==="ok"||e.status==="cancelled"?"ok":"error",is_segment:!1,attributes:p({},e.data),links:e.links};return Yp(t)}var $u=f(()=>{"use strict";De()});function Ku(e,t){if(e.type!=="transaction"||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===!1||Rt(t))return;let r=[],n=[];for(let s of e.spans)s.op?.startsWith("gen_ai.")?r.push(ju(s)):n.push(s);if(r.length===0)return;e.spans=n;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},y(p({version:2},yt()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}}),{items:r})]}var Xu=f(()=>{"use strict";ti();cs();$u()});function Tr(e=100){let t=new Set;function r(){return t.size<e}function n(a){t.delete(a)}function i(a){if(!r())return yr(en);let o=a();return t.add(o),o.then(()=>n(o),()=>n(o)),o}function s(a){if(!t.size)return _t(!0);
9let o=Promise.allSettled(Array.from(t)).then(()=>!0);if(!a)return o;let l=[o,new Promise(c=>Ss(setTimeout(()=>c(!1),a)))];return Promise.race(l)}return{get $(){return Array.from(t)},add:i,drain:s}}var en,Es=f(()=>{"use strict";Xr();Yo();en=Symbol.for("SentryBufferFullError")});function Qu(e,t=Ge()){let r=parseInt(`${e}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${e}`);return isNaN(n)?Ju:n-t}function Zu(e,t){return e[t]||e.all||0}function ri(e,t,r=Ge()){return Zu(e,t)>r}function ni(e,{statusCode:t,headers:r},n=Ge()){let i=p({},e),s=r?.["x-sentry-rate-limits"],a=r?.["retry-after"];if(s)for(let o of s.trim().split(",")){let[l,c,,,d]=o.split(":",5),u=parseInt(l,10),m=(isNaN(u)?60:u)*1e3;if(!c)i.all=n+m;else for(let g of c.split(";"))g==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[g]=n+m):i[g]=n+m}else a?i.all=n+Qu(a,n):t===429&&(i.all=n+60*1e3);return i}var Ju,rl=f(()=>{"use strict";Ut();Ju=60*1e3});function Ts(e,t,r=Tr(e.bufferSize||nl)){let n={},i=a=>r.drain(a);function s(a){let o=[];if(zn(a,(u,m)=>{let g=bs(m);ri(n,g)?e.recordDroppedEvent("ratelimit_backoff",g):o.push(u)}),o.length===0)return Promise.resolve({});let l=Te(a[0],o),c=u=>{if(To(l,["client_report"])){v&&b.warn(`Dropping client report. Will not send outcomes (reason: ${u}).`);return}zn(l,(m,g)=>{e.recordDroppedEvent(u,bs(g))})},d=()=>t({body:Io(l)}).then(u=>u.statusCode===413?(v&&b.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),c("send_error"),u):(v&&u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&b.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),n=ni(n,u),u),u=>{throw c("network_error"),v&&b.error("Encountered error running transport request:",u),u});return r.add(d).then(u=>u,u=>{if(u===en)return v&&b.error("Skipped sending event because buffer is full."),c("queue_overflow"),Promise.resolve({});throw u})}return{send:s,flush:i}}var nl,il=f(()=>{"use strict";oe();ee();Vt();Es();rl();nl=64});function ed(e,t,r){let n=[{type:"client_report"},{timestamp:r||et(),discarded_events:e}];return Te(t?{dsn:t}:{},[n])}var td=f(()=>{"use strict";Vt();mt()});function Is(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch(r){}return t}var sl=f(()=>{"use strict"});function rd(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:s,data:a,op:o}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:o,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[mr],exclusive_time:a?.[gr],measurements:e.measurements,is_segment:!0}}function nd(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:p(p(p({},e.data),e.profile_id&&{[mr]:e.profile_id}),e.exclusive_time&&{[gr]:e.exclusive_time})}},measurements:e.measurements}}var id=f(()=>{"use strict";gt()});var ii,sd=f(()=>{"use strict";ii=["forwarded","-ip","remote-","via","-user"]});function ad(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:ii},httpHeaders:{request:{deny:ii},response:{deny:ii}},httpBodies:[],queryParams:{deny:ii},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}var od=f(()=>{"use strict";sd()});function ld(e){let t=e.dataCollection!=null?Jh:ad(e.sendDefaultPii),r=e.dataCollection??{};return{userInfo:r.userInfo??t.userInfo,cookies:r.cookies??t.cookies,httpHeaders:{request:r.httpHeaders?.request??t.httpHeaders.request,response:r.httpHeaders?.response??t.httpHeaders.response},httpBodies:r.httpBodies??t.httpBodies,queryParams:r.queryParams??t.queryParams,graphQL:{document:r.graphQL?.document??t.graphQL.document,variables:r.graphQL?.variables??t.graphQL.variables},genAI:{inputs:r.genAI?.inputs??t.genAI.inputs,outputs:r.genAI?.outputs??t.genAI.outputs},databaseQueryData:r.databaseQueryData??t.databaseQueryData,stackFrame
9Variables:r.stackFrameVariables??t.stackFrameVariables,frameContextLines:r.frameContextLines??t.frameContextLines}}var Jh,cd=f(()=>{"use strict";od();Jh={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5}});function As(e){return{message:e,[bd]:!0}}function al(e){return{message:e,[_d]:!0}}function dd(e){return we(e)&&bd in e}function md(e){return we(e)&&_d in e}function gd(e,t,r,n,i){let s=0,a,o=!1;e.on(r,()=>{s=0,clearTimeout(a),o=!1}),e.on(t,l=>{if(s+=n(l),s>=8e5)i(e);else if(!o){let c=e.getOptions()._flushInterval??Qh;c>0&&(o=!0,a=Ss(setTimeout(()=>{i(e)},c)))}}),e.on("flush",()=>{i(e)})}function fd(e){return e==="replay_event"?"replay":e||"error"}function Zh(e,t){let r=`${t} must return \`null\` or a valid event.`;if(Je(e))return e.then(n=>{if(!dt(n)&&n!==null)throw As(r);return n},n=>{throw As(`${t} rejected with ${n}`)});if(!dt(e)&&e!==null)throw As(r);return e}function eb(e,t,r,n){let{beforeSend:i,beforeSendTransaction:s,ignoreSpans:a}=t,o=!fs(t.beforeSendSpan)&&t.beforeSendSpan,l=r;if(ol(l)&&i)return i(l,n);if(yd(l)){if(o||a){let c=rd(l);if(a?.length&&fr({description:c.description,op:c.op,attributes:c.data},a))return null;if(o){let d=o(c);d?l=qt(r,nd(d)):Wn()}if(l.spans){let d=[],u=l.spans;for(let g of u){if(a?.length&&fr({description:g.description,op:g.op,attributes:g.data},a)){Mp(u,g);continue}if(o){let h=o(g);h?d.push(h):(Wn(),d.push(g))}else d.push(g)}let m=l.spans.length-d.length;m&&e.recordDroppedEvent("before_send","span",m),l.spans=d}}if(s){if(l.spans){let c=l.spans.length;l.sdkProcessingMetadata=y(p({},r.sdkProcessingMetadata),{spanCountBeforeProcessing:c})}return s(l,n)}}return l}function ol(e){return e.type===void 0}function yd(e){return e.type==="transaction"}function tb(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+vd(e.attributes)}function rb(e){let t=0;return e.message&&(t+=e.message.length*2),t+vd(e.attributes)}function vd(e){if(!e)return 0;let t=0;return Object.values(e).forEach(r=>{Array.isArray(r)?t+=r.length*hd(r[0]):Xe(r)?t+=hd(r):t+=100}),t}function hd(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}var pd,ud,bd,_d,Qh,si,Sd=f(()=>{"use strict";jo();ms();Se();oe();Oo();Qo();Hu();Vu();Ki();_r();So();Xu();il();td();ee();zt();Vt();sl();xe();Xi();Tt();Pn();vs();Es();Ut();ls();De();Xr();Yo();id();cd();pd="Not capturing exception because it's already been captured.",ud="Discarded session because of missing or non-string release",bd=Symbol.for("SentryInternalError"),_d=Symbol.for("SentryDoNotSendEventError"),Qh=5e3;si=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Tr(t.transportOptions?.bufferSize??nl),this._dataCollection=ld(t),t.dsn?this._dsn=ps(t.dsn):v&&b.warn("No DSN provided, client will not send events."),this._dsn){let n=zo(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport(y(p({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{url:n}))}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&gd(this,"afterCaptureLog","flushLogs",rb,Bu),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&gd(this,"afterCaptureMetric","flushMetrics",tb,Yu)}captureException(t,r,n){let i=re();if(Cn(t))return v&&b.log(pd),i;let s=p({event_id:i},r);return this._process(()=>this.eventFromException(t,s).then(a=>this._captureEvent(a,s,n)).then(a=>a),"error"),s.event_id}captureMessage(t,r,n,i){let s=p({event_id:re()},n),a=Lt(t)?t:String(t),o=Xe(t),l=o?this.eventFromMessage(a,r,s):this.eventFromException(t,s);return this._process(()=>l.then(c=>this._captureEvent(c,s,i)),o?"unknown":"error"),s.event_id}captureEvent(t,r,n){let i=re();if(r?.originalException&&Cn(r.originalException))return v&&b.log(pd),i;let s=p({event_id:i},r),a=t.sdkProcessingMetadata||{},o=a.capturedSpanScope,l=a.capturedSpanIsolationScope,c=fd(t.type);return this._process(()=>this._captureEvent(t,s,o||n,l),c),s.event_id}captureSession(t){this.sendSession(t),It(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){return B(this,null,function*(){let r=this._transport;
9if(this.emit("flush"),!r)return!0;let n=yield this._isClientDoneProcessing(t),i=yield r.flush(t);return n&&i})}close(t){return B(this,null,function*(){let r=yield this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),r})}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]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){let r=this._integrations[t.name];!r&&t.beforeSetup&&t.beforeSetup(this),Jo(this,t,this._integrations),r||Xo(this,[t])}sendEvent(t,r={}){this.emit("beforeSendEvent",t,r);let n=Ku(t,this),i=iu(t,this._dsn,this._options._metadata,this._options.tunnel);for(let s of r.attachments||[])i=hs(i,Ro(s));n&&(i=hs(i,n)),this.sendEnvelope(i).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){let{release:r,environment:n=jr}=this._options;if("aggregates"in t){let s=t.attrs||{};if(!s.release&&!r){v&&b.warn(ud);return}s.release=s.release||r,s.environment=s.environment||n,t.attrs=s}else{if(!t.release&&!r){v&&b.warn(ud);return}t.release=t.release||r,t.environment=t.environment||n}this.emit("beforeSendSession",t);let i=nu(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,r,n=1){if(this._options.sendClientReports){let i=`${t}:${r}`;v&&b.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}on(t,r){let n=this._hooks[t]=this._hooks[t]||new Set,i=(...s)=>r(...s);return n.add(i),()=>{n.delete(i)}}emit(t,...r){let n=this._hooks[t];n&&n.forEach(i=>i(...r))}sendEnvelope(t){return B(this,null,function*(){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return yield this._transport.send(t)}catch(r){return v&&b.error("Error while sending envelope:",r),{}}return v&&b.error("Transport disabled"),{}})}registerCleanup(t){}dispose(){}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=Lu(this,t),Xo(this,t)}_updateSessionFromEvent(t,r){let n=r.level==="fatal",i=!1,s=r.exception?.values;if(s){i=!0,n=!1;for(let l of s)if(l.mechanism?.handled===!1){n=!0;break}}let a=t.status==="ok";(a&&t.errors===0||a&&n)&&(It(t,y(p({},n&&{status:"crashed"}),{errors:t.errors||Number(i||n)})),this.captureSession(t))}_isClientDoneProcessing(t){return B(this,null,function*(){let r=0;for(;!t||r<t;){if(yield new Promise(n=>setTimeout(n,1)),!this._numProcessing)return!0;r++}return!1})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,r,n,i){let s=this.getOptions(),a=this.getIntegrationNames();return!r.integrations&&a.length&&(r.integrations=a),this.emit("preprocessEvent",t,r),t.type||i.setLastEventId(t.event_id||r.event_id),Xn(s,t,r,n,this,i).then(o=>{if(o===null)return o;this.emit("postprocessEvent",o,r),o.contexts=p({trace:p(p({},o.contexts?.trace),ts(n))},o.contexts);let l=gs(this,n);return o.sdkProcessingMetadata=p({dynamicSamplingContext:l},o.sdkProcessingMetadata),o})}_captureEvent(t,r={},n=G(),i=Q()){return v&&ol(t)&&b.log(`Captured error event \`${Is(t)[0]||"<unknown>"}\``),this._processEvent(t,r,n,i).then(s=>s.event_id,s=>{v&&(md(s)?b.log(s.message):dd(s)?b.warn(s.message):b.warn(s))})}_processEvent(t,r,n,i){let s=this.getOptions(),{sampleRate:a}=s,o=yd(t),l=ol(t),d=`before send for type \`${t.type||"error"}\``,u=typeof a>"u"?void 0:ft(a);if(l&&typeof u=="number"&&lr()>u)return this.recordDroppedEvent("sample_rate","error"),yr(al(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let m=fd(t.type);return this._prepareEvent(t,r,n,i).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",m),al("An event processor returned `null`, will not send event.");if(r.data?.__sentry__===!0)return g;let _=eb(this,s,g,r);return Zh(_,d)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",m),o){let E=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",E)}throw al(`${d} returned \`null\`, will not send event.`)}let h=n.getSession()||i.getSession();if(l&&h&&this._updateSessionFromEvent(h,g),o){let A=g.sdkProcessingMetadata?.spanCountBeforeProcessing||0,E=g.spans?g.spans.length:0,D=A-E;D>0&&this.recordDroppedEvent("before_send","span",D)}let _=g.transaction_info;if(o&&_&&g.transaction!==t.transaction){let A="custom";g.transaction_info=y(p({},_),{source:A})}return this.sendEvent(g,r),g}).then(null,g=>{throw md(g)||dd(g)?g:(this.captureException(g,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:g}),As(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10Reason: ${g}`))})}_process(t,r){this._numProcessing++,this._promiseBuffer.add(t).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===en&&this.recordDroppedEvent("queue_overflow",r),n))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([r,n])=>{let[i,s]=r.split(":");return{reason:i,category:s,quantity:n}})}_flushOutcomes(){v&&b.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){v&&b.log("No outcomes to send");return}if(!this._dsn){v&&b.log("No dsn provided, will not send outcomes");return}v&&b.log("Sending outcomes:",t);let r=ed(t,this._options.tunnel&&Le(this._dsn));this.sendEnvelope(r)}}});function ll(e,t){t.debug===!0&&(v?b.enable():fe(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),G().update(t.initialScope);let n=new e(t);return cl(n),n.init(),n}function cl(e){G().setClient(e)}var Ed=f(()=>{"use strict";Se();oe();ee()});function ai(e){return"isRelative"in e}function Ir(e,t){let r=e.indexOf("://")<=0&&e.indexOf("//")!==0,n=t??(r?nb:void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let i=new URL(e,n);return r?{isRelative:r,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch(i){}}function tn(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function Rs(e){return e.split(/[?#]/,1)[0]}function Os(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(","),a="";if(t&&s!==-1){let o=e.slice(s+1);a=o.length>10?`${o.slice(0,10)}... [truncated]`:o}return`data:${n}${i?",base64":""}${a?`,${a}`:""}`}return e}var nb,xs=f(()=>{"use strict";nb="thismessage:/"});function pl(e,t){let r=t?.getDsn(),n=t?.getOptions().tunnel;return sb(e,r)||ib(e,n)}function ib(e,t){return t?Td(e)===Td(t):!1}
10function sb(e,t){let r=Ir(e);return!r||ai(r)||!t?!1:ab(r.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(r.search)}function ab(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function Td(e){return e[e.length-1]==="/"?e.slice(0,-1):e}var Id=f(()=>{"use strict";xs()});function ul(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs=y(p({},e.attrs),{ip_address:"{{auto}}"})):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}var Ad=f(()=>{"use strict"});function rn(e,t,r=[t],n="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=r.map(s=>({name:`${n}:@sentry/${s}`,version:pt})),i.version=pt)}var dl=f(()=>{"use strict";Va()});function Ue(e,t){let r=R(),n=Q();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=ob}=r.getOptions();if(s<=0)return;let a=et(),o=p({timestamp:a},e),l=i?fe(()=>i(o,t)):o;l!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,s))}var ob,ml=f(()=>{"use strict";Se();ee();mt();ob=100});var Rd,lb,Od,cb,Ar,gl=f(()=>{"use strict";Se();Ce();lb="FunctionToString",Od=new WeakMap,cb=()=>({name:lb,setupOnce(){Rd=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Pt(this),r=Od.has(R())&&t!==void 0?t:this;return Rd.apply(r,e)}}catch(e){}},setup(e){Od.set(e,!0)}}),Ar=cb});function xd(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:pb],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function db(e,t){if(e.type){if(e.type==="transaction"&&gb(e,t.ignoreTransactions))return v&&b.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
11Event: ${Ze(e)}`),!0}else{if(mb(e,t.ignoreErrors))return v&&b.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
12Event: ${Ze(e)}`),!0;if(_b(e))return v&&b.warn(`Event dropped due to not having an error message, error type or stacktrace.
13Event: ${Ze(e)}`),!0;if(fb(e,t.denyUrls))return v&&b.warn(`Event dropped due to being matched by \`denyUrls\` option.
14Event: ${Ze(e)}.
15Url: ${ks(e)}`),!0;if(!hb(e,t.allowUrls))return v&&b.warn(`Event dropped due to not being matched by \`allowUrls\` option.
16Event: ${Ze(e)}.
17Url: ${ks(e)}`),!0}return!1}function mb(e,t){return t?.length?Is(e).some(r=>Qe(r,t)):!1}function gb(e,t){if(!t?.length)return!1;let r=e.transaction;return r?Qe(r,t):!1}function fb(e,t){if(!t?.length)return!1;let r=ks(e);return r?Qe(r,t):!1}function hb(e,t){if(!t?.length)return!0;let r=ks(e);return r?Qe(r,t):!0}function bb(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function ks(e){try{let r=[...e.exception?.values??[]].reverse().find(n=>n.mechanism?.parent_id===void 0&&n.stacktrace?.frames?.length)?.stacktrace?.frames;return r?bb(r):null}catch(t){return v&&b.error(`Cannot extract url for event ${Ze(e)}`),null}}function _b(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}var pb,ub,Ns,Rr,fl=f(()=>{"use strict";oe();ee();sl();Tt();Bt();pb=[/^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$/],ub="EventFilters",Ns=(e={})=>{let t;return{name:ub,setup(r){let n=r.getOptions();t=xd(e,n)},processEvent(r,n,i){if(!t){let s=i.getOptions();t=xd(e,s)}return db(r,t)?null:r}}},Rr=(e={})=>y(p({},Ns(e)),{name:"InboundFilters"})});function bl(e,t,r,n,i,s){if(!i.exception?.values||!s||!Et(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=hl(e,t,n,s.originalException,r,i.exception.values,a,0))}function hl(e,t,r,n,i,s,a,o){if(s.length>=r+1)return s;let l=[...s];if(Et(n[i],Error)){kd(a,o,n);let c=e(t,n[i]),d=l.length;Nd(c,i,d,o),l=hl(e,t,r,n[i],i,[c,...l],c,d)}
17return wd(n)&&n.errors.forEach((c,d)=>{if(Et(c,Error)){kd(a,o,n);let u=e(t,c),m=l.length;Nd(u,`errors[${d}]`,m,o),l=hl(e,t,r,c,i,[u,...l],u,m)}}),l}function wd(e){return Array.isArray(e.errors)}function kd(e,t,r){e.mechanism=y(p(p({handled:!0,type:"auto.core.linked_errors"},wd(r)&&{is_exception_group:!0}),e.mechanism),{exception_id:t})}function Nd(e,t,r,n){e.mechanism=y(p({handled:!0},e.mechanism),{type:"chained",source:t,exception_id:r,parent_id:n})}var Cd=f(()=>{"use strict";xe()});function yb(e){return ut(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function ws(e){return yb(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var Md=f(()=>{"use strict";xe()});function _l(e){let t="console",r=Ie(t,e);return Ae(t,vb),r}function vb(){"console"in I&&Hi.forEach(function(e){e in I.console&&te(I.console,e,function(t){return ar[e]=t,function(...r){let n=r[0],i=ar[e],s=Ld.size&&typeof n=="string"&&Qe(n,Ld);s||ge("console",{args:r,level:e}),(!s||v&&b.isEnabled())&&i?.apply(I.console,r)}})})}var Ld,Dd=f(()=>{"use strict";oe();ee();Ce();Bt();de();Zr();Ld=new Set([])});function nn(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var yl=f(()=>{"use strict"});function Tb(e,t){return t?!!(Ib(e,t)||Ab(e,t)):!1}function Ib(e,t){let r=e.message,n=t.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!Fd(e,t)||!Ud(e,t))}function Ab(e,t){let r=Pd(t),n=Pd(e);return!(!r||!n||r.type!==n.type||r.value!==n.value||!Fd(e,t)||!Ud(e,t))}function Ud(e,t){let r=kn(e),n=kn(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let i=0;i<n.length;i++){let s=n[i],a=r[i];if(s.filename!==a.filename||s.lineno!==a.lineno||s.colno!==a.colno||s.function!==a.function)return!1}return!0}function Fd(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return r.join("")===n.join("")}catch(i){return!1}}function Pd(e){return e.exception?.values?.[0]}var Sb,Eb,Or,vl=f(()=>{"use strict";oe();ee();Hr();Sb="Dedupe",Eb=()=>{let e;return{name:Sb,processEvent(t){if(t.type)return t;try{if(Tb(t,e))return v&&b.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){}return e=t}}},Or=Eb});var Rb,Ob,sn,Sl=f(()=>{"use strict";Se();gt();De();Rb="ConversationId",Ob=()=>({name:Rb,setup(e){e.on("spanStart",t=>{let r=G().getScopeData(),n=Q().getScopeData(),i=r.conversationId||n.conversationId;if(i){let{op:s,data:a,description:o}=z(t);if(!s?.startsWith("gen_ai.")&&!a["ai.operationId"]&&!o?.startsWith("ai."))return;t.setAttribute(as,i)}})}}),sn=Ob});function Cs(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}var Bd=f(()=>{"use strict"});function El(){return"history"in oi&&!!oi.history}function xb(){if(!("fetch"in oi))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch(e){return!1}}function li(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Tl(){if(typeof EdgeRuntime=="string")return!0;if(!xb())return!1;if(li(oi.fetch))return!0;let e=!1,t=oi.document;if(t&&typeof t.createElement=="function")try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=li(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){v&&b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}var oi,Il=f(()=>{"use strict";oe();ee();de();oi=I});function Al(e,t){let r="fetch",n=Ie(r,e);return Ae(r,()=>kb(void 0,t)),n}function kb(e,t=!1){t&&!Tl()||te(I,"fetch",function(r){return function(...n){let i=new Error,{method:s,url:a}=Nb(n),o={args:n,fetchData:{method:s,url:a},startTimestamp:me()*1e3,virtualError:i,headers:wb(n)};return e||ge("fetch",p({},o)),r.apply(I,n).then(l=>B(null,null,function*(){return e?e(l):ge("fetch",y(p({},o),{endTimestamp:me()*1e3,response:l})),l}),l=>{ge("fetch",y(p({},o),{endTimestamp:me()*1e3,error:l})),ut(l)&&l.stack===void 0&&(l.stack=i.stack,$(l,"framesToPop",1));let d=R()?.getOptions().enhanceFetchErrorMessages??"always";if(d!==!1&&l instanceof TypeError&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{let g=new URL(o.fetchData.url).host;d==="always"?l.message=`${l.message} (${g})`:$(l,"__sentry_fetch_url_host__",g)}catch(m){}throw l})}})}function Ms(e,t){return we(e)&&!!e[t]}function qd(e){return typeof e=="string"?e:e?Ms(e,"url")?e.url:e.toString?e.toString():"":""}function Nb(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[r,n]=e;return{url:qd(r),method:Ms(n,"method")?String(n.method).toUpperCase():Ka(r)&&Ms(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:qd(t),method:Ms(t,"method")?String(t.method).toUpperCase():"GET"}}function wb(e){let[t,r]=e;try{if(typeof r=="object"&&r!==null&&"headers"in r&&r.headers)return new Headers(r.headers);if(Ka(t))return new Headers(t.headers)}catch(n){}}var Hd=f(()=>{"use strict";Se();xe();Ce();Il();mt();de();Zr()});function rt(){try{return Gd.document.location.href}catch(e){return""}}function Ls(e,t=5){if(!Gd.HTMLElement)return null;let r=e;for(let n=0;n<t;n++){if(!r)return null;if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}var Gd,Rl=f(()=>{"use strict";de();Gd=I});var he=f(()=>{"use strict";Nu();gu();Wo();gt();Po();Se();jo();Sd();Ed();il();Qo();Ad();De();dl();ml();gl();fl();vl();Sl();Cd();Bd();de();Dd();Hd();xu();ku();xe();ee();Tt();Gr();Ce();Es();yl();Hr();Bt();Xr();tl();xs();Md();Rl()});var nt=f(()=>{"use strict";_r();Wo();gt();Po();Se();vs();Id();De();Pn();dl();wu();ml();gl();fl();vl();Sl();de();Zr();xe();ti();ee();Tt();Gr();Ce();yl();Hr();Bt();Il();mt();Vt();rl();xs();Rl()});var $t,Ds=f(()=>{"use strict";$t=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__});var N,Fe=f(()=>{"use strict";nt();N=I});var T_,Kt,ci=f(()=>{"use strict";T_=(e,t)=>
17e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Kt=(e,t,r,n)=>{let i,s;return a=>{t.value>=0&&(a||n)&&(s=t.value-(i??0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=T_(t.value,r),e(t)))}}});var Ps,Ol=f(()=>{"use strict";Fe();Ps=(e=!0)=>{let t=N.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}});var Xt,pi=f(()=>{"use strict";Ol();Xt=()=>Ps()?.activationStart??0});function wt(e,t,r){N.document&&N.addEventListener(e,t,r)}function kr(e,t,r){N.document&&N.removeEventListener(e,t,r)}var Us=f(()=>{"use strict";Fe()});function A_(e){return e.type==="pagehide"||N.document?.visibilityState==="hidden"}var an,sm,I_,Fs,Jt,ui=f(()=>{"use strict";Fe();pi();Us();an=-1,sm=new Set,I_=()=>N.document?.visibilityState==="hidden"&&!N.document?.prerendering?0:1/0,Fs=e=>{if(A_(e)&&an>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(let t of sm)t();isFinite(an)||(an=e.type==="visibilitychange"?e.timeStamp:0,kr("prerenderingchange",Fs,!0))}},Jt=()=>{if(N.document&&an<0){let e=Xt();an=(N.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>e)[0]?.startTime)??I_(),wt("visibilitychange",Fs,!0),wt("pagehide",Fs,!0),wt("prerenderingchange",Fs,!0)}return{get firstHiddenTime(){return an},onHidden(e){sm.add(e)}}}});var am,om=f(()=>{"use strict";am=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`});var Qt,di=f(()=>{"use strict";Fe();om();pi();Ol();Qt=(e,t=-1)=>{let r=Ps(),n="navigate";return r&&(N.document?.prerendering||Xt()>0?n="prerender":N.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:am(),navigationType:n}}});function on(e,t){try{return xl.get(e)||xl.set(e,new t),xl.get(e)}catch(r){return new t}}var xl,Bs=f(()=>{"use strict";xl=new WeakMap});var qs,lm=f(()=>{"use strict";qs=class{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;let r=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&r&&n&&t.startTime-n.startTime<1e3&&t.startTime-r.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}});var ze,Nr=f(()=>{"use strict";ze=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return n.observe(p({type:e,buffered:!0},r)),n}}catch(n){}}});var ln,Hs=f(()=>{"use strict";ln=e=>{let t=!1;return()=>{t||(e(),t=!0)}}});var cn,Gs=f(()=>{"use strict";Fe();cn=e=>{N.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()}});var R_,cm,pm=f(()=>{"use strict";ci();pi();ui();di();Nr();Gs();R_=[1800,3e3],cm=(e,t={})=>{cn(()=>{let r=Jt(),n=Qt("FCP"),i,a=ze("paint",o=>{for(let l of o)l.name==="first-contentful-paint"&&(a.disconnect(),l.startTime<r.firstHiddenTime&&(n.value=Math.max(l.startTime-Xt(),0),n.entries.push(l),i(!0)))});a&&(i=Kt(e,n,R_,t.reportAllChanges))})}});var O_,um,dm=f(()=>{"use strict";Fe();ci();ui();di();Bs();lm();Nr();Hs();pm();O_=[.1,.25],um=(e,t={})=>{cm(ln(()=>{let r=Qt("CLS",0),n,i=Jt(),s=on(t,qs),a=l=>{for(let c of l)s._processEntry(c);s._sessionValue>r.value&&(r.value=s._sessionValue,r.entries=s._sessionEntries,n())},o=ze("layout-shift",a);o&&(n=Kt(e,r,O_,t.reportAllChanges),i.onHidden(()=>{a(o.takeRecords()),n(!0)}),N?.setTimeout?.(n))}))}});var mm,kl,Ws,x_,Nl,wl,gm,Cl=f(()=>{"use strict";Nr();mm=0,kl=1/0,Ws=0,x_=e=>{e.forEach(t=>{t.interactionId&&(kl=Math.min(kl,t.interactionId),Ws=Math.max(Ws,t.interactionId),mm=Ws?(Ws-kl)/7+1:0)})},wl=()=>Nl?mm:performance.interactionCount||0,gm=()=>{"interactionCount"in performance||Nl||(Nl=ze("event",x_,{type:"event",buffered:!0,durationThreshold:0}))}});var Ml,fm,k_,Ys,hm=f(()=>{"use strict";Cl();Ml=10,fm=0,k_=()=>wl()-fm,Ys=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){fm=wl(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let t=Math.min(this._longestInteractionList.length-1,Math.floor(k_()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;let r=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(t.interactionId);if(n||this._longestInteractionList.length<Ml||t.duration>r._latency){if(n?t.duration>n._latency?(n.entries=[t],n._latency=t.duration):t.duration===n._latency&&t.startTime===n.entries[0].startTime&&n.entries.push(t):(n={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((i,s)=>s._latency-i._latency),this._longestInteractionList.length>Ml){let i=this._longestInteractionList.splice(Ml);for(let s of i)this._longestInteractionMap.delete(s.id)}this._onAfterProcessingINPCandidate?.(n)}}}});var wr,zs=f(()=>{"use strict";Fe();Us();Hs();wr=e=>{let t=N.requestIdleCallback||N.setTimeout;N.document?.visibilityState==="hidden"?e():(e=ln(e),wt("visibilitychange",e,{once:!0,capture:!0}),wt("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),kr("visibilitychange",e,{capture:!0}),kr("pagehide",e,{capture:!0})}
17))}});var N_,w_,bm,_m=f(()=>{"use strict";ci();ui();di();Bs();hm();Nr();Cl();Gs();zs();N_=[200,500],w_=40,bm=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=Jt();cn(()=>{gm();let n=Qt("INP"),i,s=on(t,Ys),a=l=>{wr(()=>{for(let d of l)s._processEntry(d);let c=s._estimateP98LongestInteraction();c&&c._latency!==n.value&&(n.value=c._latency,n.entries=c.entries,i())})},o=ze("event",a,{durationThreshold:t.durationThreshold??w_});i=Kt(e,n,N_,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{a(o.takeRecords()),i(!0)}))})}});var Vs,ym=f(()=>{"use strict";Vs=class{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}});var C_,vm,Sm=f(()=>{"use strict";ci();pi();ui();Us();di();Bs();ym();Nr();Hs();Gs();zs();C_=[2500,4e3],vm=(e,t={})=>{cn(()=>{let r=Jt(),n=Qt("LCP"),i,s=on(t,Vs),a=l=>{t.reportAllChanges||(l=l.slice(-1));for(let c of l)s._processEntry(c),c.startTime<r.firstHiddenTime&&(n.value=Math.max(c.startTime-Xt(),0),n.entries=[c],i())},o=ze("largest-contentful-paint",a);if(o){i=Kt(e,n,C_,t.reportAllChanges);let l=ln(()=>{a(o.takeRecords()),o.disconnect(),i(!0)}),c=d=>{d.isTrusted&&(wr(l),kr(d.type,c,{capture:!0}))};for(let d of["keydown","click","visibilitychange"])wt(d,c,{capture:!0})}})}});function Ll(e,t=!1){return Fl("cls",e,M_,Em,t)}function Dl(e,t=!1){return Fl("lcp",e,L_,Tm,t)}function Pl(e){return Fl("inp",e,D_,Im)}function Ul(e,t){return Am(e,t),js[e]||(P_(e),js[e]=!0),Rm(e,t)}function $s(e,t){let r=mi[e];if(r?.length)for(let n of r)try{n(t)}catch(i){$t&&b.error(`Error while triggering instrumentation handler.
18Type: ${e}
19Name: ${Ee(n)}
20Error:`,i)}}function M_(){return um(e=>{$s("cls",{metric:e}),Em=e},{reportAllChanges:!0})}function L_(){return vm(e=>{$s("lcp",{metric:e}),Tm=e},{reportAllChanges:!0})}function D_(){return bm(e=>{$s("inp",{metric:e}),Im=e})}function Fl(e,t,r,n,i=!1){Am(e,t);let s;return js[e]||(s=r(),js[e]=!0),n&&t({metric:n}),Rm(e,t,i?s:void 0)}function P_(e){let t={};e==="event"&&(t.durationThreshold=0),ze(e,r=>{$s(e,{entries:r})},t)}function Am(e,t){mi[e]=mi[e]||[],mi[e].push(t)}function Rm(e,t,r){return()=>{r&&r();let n=mi[e];if(!n)return;let i=n.indexOf(t);i!==-1&&n.splice(i,1)}}var mi,js,Em,Tm,Im,Om=f(()=>{"use strict";nt();Ds();dm();_m();Sm();Nr();mi={},js={}});function Zt(e,t,r){let n=Cr[t];if(n)try{return n.call(e,r)}catch(s){}let i=e[t];return typeof i=="function"?i.call(e,r):i}function er(e,t={}){if(!e)return"<unknown>";try{let r=e,n=5,i=[],s=0,a=0,o=" > ",l=o.length,c,d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||U_;for(;r&&s++<n&&(c=F_(r,d),!(c==="html"||s>1&&a+i.length*l+c.length>=u));)i.push(c),a+=c.length,r=Zt(r,"parentNode");return i.reverse().join(o)}catch(r){return"<unknown>"}}function F_(e,t){let r=[],n=Zt(e,"tagName");if(!n)return"";if(typeof HTMLElement<"u"&&e instanceof HTMLElement){let s=Zt(e,"dataset");if(s){if(s.sentryComponent)return s.sentryComponent;if(s.sentryElement)return s.sentryElement}}r.push(n.toLowerCase());let i=t?.length?t.filter(s=>Zt(e,"getAttribute",s)).map(s=>[s,Zt(e,"getAttribute",s)]):null;if(i?.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{let s=Zt(e,"id");s&&r.push(`#${s}`);let a=Zt(e,"className");if(a&&le(a)){let o=a.split(/\s+/);for(let l of o)r.push(`.${l}`)}}for(let s of["aria-label","type","name","title","alt"]){let a=Zt(e,"getAttribute",s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}var U_,Cr,xm=f(()=>{"use strict";nt();U_=80,Cr={};try{typeof Node<"u"&&(Cr.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(Cr.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,Cr.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,Cr.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,Cr.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(Cr.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch(e){}});function gi(e){Ie("dom",e),Ae("dom",q_)}function q_(){if(!N.document)return;let e=ge.bind(null,"dom"),t=Nm(e,!0);N.document.addEventListener("click",t,!1),N.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(r=>{let i=N[r]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(te(i,"addEventListener",function(s){return function(a,o,l){if(a==="click"||a=="keypress")try{let c=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=c[a]=c[a]||{refCount:0};if(!d.handler){let u=Nm(e);d.handler=u,s.call(this,a,u,l)}d.refCount++}catch(c){}return s.call(this,a,o,l)}}),te(i,"removeEventListener",function(s){return function(a,o,l){if(a==="click"||a=="keypress")try{let c=this.__sentry_instrumentation_handlers__||{},d=c[a];d&&(d.refCount--,d.refCount<=0&&(s.call(this,a,d.handler,l),d.handler=void 0,delete c[a]),Object.keys(c).length===0&&delete this.__sentry_instrumentation_handlers__)}catch(c){}return s.call(this,a,o,l)}}))})}function H_(e){if(e.type!==Bl)return!1;try{if(!e.target||e.target._sentryId!==ql)return!1}catch(t){}return!0}function G_(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Nm(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let n=W_(r);if(G_(r.type,n))return;$(r,"_sentryCaptured",!0),n&&!n._sentryId&&$(n,"_sentryId",re());
20let i=r.type==="keypress"?"input":r.type;H_(r)||(e({event:r,name:i,global:t}),Bl=r.type,ql=n?n._sentryId:void 0),clearTimeout(km),km=N.setTimeout(()=>{ql=void 0,Bl=void 0},B_)}}function W_(e){try{return e.target}catch(t){return null}}var B_,km,Bl,ql,wm=f(()=>{"use strict";nt();Fe();B_=1e3});function Mr(e){let t="history";Ie(t,e),Ae(t,Y_)}function Y_(){if(N.addEventListener("popstate",()=>{let t=N.location.href,r=Ks;if(Ks=t,r===t)return;ge("history",{from:r,to:t})}),!El())return;function e(t){return function(...r){let n=r.length>2?r[2]:void 0;if(n){let i=Ks,s=z_(String(n));if(Ks=s,i===s)return t.apply(this,r);ge("history",{from:i,to:s})}return t.apply(this,r)}}te(N.history,"pushState",e),te(N.history,"replaceState",e)}function z_(e){try{return new URL(e,N.location.origin).toString()}catch(t){return e}}var Ks,Cm=f(()=>{"use strict";nt();Fe()});function Js(e){let t=Xs[e];if(t)return t;let r=N[e];if(li(r))return Xs[e]=r.bind(N);let n=N.document;if(n&&typeof n.createElement=="function")try{let i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);let s=i.contentWindow;s?.[e]&&(r=s[e]),n.head.removeChild(i)}catch(i){$t&&b.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return r&&(Xs[e]=r.bind(N))}function Hl(e){Xs[e]=void 0}function Lr(...e){return Js("setTimeout")(...e)}var Xs,Mm=f(()=>{"use strict";nt();Ds();Fe();Xs={}});function Gl(e){Ie("xhr",e),Ae("xhr",V_)}function V_(){if(!N.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,r,n){let i=new Error,s=me()*1e3,a=le(n[0])?n[0].toUpperCase():void 0,o=j_(n[1]);if(!a||!o)return t.apply(r,n);r[Ct]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(r.__sentry_own_request__=!0);let l=()=>{let c=r[Ct];if(c&&r.readyState===4){try{c.status_code=r.status}catch(u){}let d={endTimestamp:me()*1e3,startTimestamp:s,xhr:r,virtualError:i};ge("xhr",d),r.removeEventListener("readystatechange",l)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(c,d,u){return l(),c.apply(d,u)}}):r.addEventListener("readystatechange",l),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(c,d,u){let[m,g]=u,h=d[Ct];return h&&le(m)&&le(g)&&(h.request_headers[m.toLowerCase()]=g),c.apply(d,u)}}),t.apply(r,n)}}),e.send=new Proxy(e.send,{apply(t,r,n){let i=r[Ct];if(!i)return t.apply(r,n);n[0]!==void 0&&(i.body=n[0]);let s={startTimestamp:me()*1e3,xhr:r};return ge("xhr",s),t.apply(r,n)}})}function j_(e){if(le(e))return e;try{return e.toString()}catch(t){}}var Ct,Lm=f(()=>{"use strict";nt();Fe();Ct="__sentry_xhr_v3__"});function Qs(e){return new URLSearchParams(e).toString()}function Zs(e,t=b){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Qs(e)];if(!e)return[void 0]}catch(r){return $t&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return $t&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ea(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let r=e[0][$_];return r!==void 0?r:void 0}}function Wl(e){let t;try{t=e.getAllResponseHeaders()}catch(r){return $t&&b.error(r,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
21`).reduce((r,n)=>{let[i,s]=n.split(": ");return s&&(r[i.toLowerCase()]=s),r},{}):{}}var $_,Dm=f(()=>{"use strict";nt();Ds();$_=Symbol.for("sentry__originalRequestBody")});function Yl(e){if(typeof Element>"u")return!1;try{return e instanceof Element}catch(t){return!1}}var Pm=f(()=>{"use strict"});function fi(e){try{return new URL(e,N.location.origin).toString()}catch(t){return e}}var Um=f(()=>{"use strict";Fe()});var Dr=f(()=>{"use strict";Om();zs();wm();Cm();Mm();Lm();Dm();xm();Pm();Um()});function cy(e){return e.nodeType===e.ELEMENT_NODE}function _i(e){return e?.host?.shadowRoot===e}function yi(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function py(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function uy(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function aa(e){try{let t=e.rules||e.cssRules;return t?py(Array.from(t,ug).join("")):null}catch(t){return null}}function dy(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,i=n[r],s=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}function ug(e){let t;if(gy(e))try{t=aa(e.styleSheet)||uy(e)}catch(r){}else if(fy(e)){let r=e.cssText,n=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(r=dy(e)),n&&(r=my(r)),n||i)return r}return t||e.cssText}function my(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function gy(e){return"styleSheet"in e}function fy(e){return"selectorText"in e}function hy(){return new oa}function Sa({maskInputOptions:e,tagName:t,type:r}
21){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||r==="password"||t==="INPUT"&&!r&&e.text)}function Si({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function bn(e){return e.toLowerCase()}function Xl(e){return e.toUpperCase()}function by(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let n=0;n<e.width;n+=r)for(let i=0;i<e.height;i+=r){let s=t.getImageData,a=Hm in s?s[Hm]:s;if(new Uint32Array(a.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function Tc(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?bn(t):null}function la(e,t,r){return t==="INPUT"&&(r==="radio"||r==="checkbox")?e.getAttribute("value")||"":e.value}function dg(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(s){return null}let n=/\.([0-9a-z]+)(?:$)/i;return r.pathname.match(n)?.[1]??null}function mg(e){let t=Gm[e];if(t)return t;let r=window.document,n=window[e];if(r&&typeof r.createElement=="function")try{let i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);let s=i.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(i)}catch(i){}return Gm[e]=n.bind(window)}function Jl(...e){return mg("setTimeout")(...e)}function gg(...e){return mg("clearTimeout")(...e)}function fg(e){try{return e.contentDocument}catch(t){}}function _y(e){try{return e.contentWindow}catch(t){}}function Ic(){return yy++}function Sy(e){if(e instanceof HTMLFormElement)return"form";let t=bn(e.tagName);return vy.test(t)?"div":t}function Ey(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}function Oy(e,t){if(!e||t.size===0)return e;try{let r=e.split(";"),n=[];for(let i of r){if(i=i.trim(),!i)continue;let s=i.indexOf(":");if(s===-1){n.push(i);continue}let a=i.slice(0,s).trim();t.has(a)||n.push(i)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(r){return console.warn("Error filtering CSS properties:",r),e}}function ca(e,t){return(e||"").replace(Ty,(r,n,i,s,a,o)=>{let l=i||a||o,c=n||s||"";if(!l)return r;if(Iy.test(l)||Ay.test(l))return`url(${c}${l}${c})`;if(Ry.test(l))return`url(${c}${l}${c})`;if(l[0]==="/")return`url(${c}${Ey(t)+l}${c})`;let d=t.split("/"),u=l.split("/");d.pop();for(let m of u)m!=="."&&(m===".."?d.pop():d.push(m));return`url(${c}${d.join("/")}${c})`})}function Ny(e,t){if(t.trim()==="")return t;let r=0;function n(s){let a,o=s.exec(t.substring(r));return o?(a=o[0],r+=a.length,a):""}let i=[];for(;n(ky),!(r>=t.length);){let s=n(xy);if(s.slice(-1)===",")s=mn(e,s.substring(0,s.length-1)),i.push(s);else{let a="";s=mn(e,s);let o=!1;for(;;){let l=t.charAt(r);if(l===""){i.push((s+a).trim());break}else if(o)l===")"&&(o=!1);else if(l===","){r+=1,i.push((s+a).trim());break}else l==="("&&(o=!0);a+=l,r+=1}}}return i.join(", ")}function mn(e,t){return!t||t.trim()===""?t:Ea(e,t)}function wy(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ea(e,t){let r=Ym.get(e);if(r||(r=e.createElement("a"),Ym.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function hg(e,t,r,n,i,s,a){if(!n)return n;if(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#"))return mn(e,n);if(r==="xlink:href"&&n[0]!=="#")return mn(e,n);if(r==="background"&&(t==="table"||t==="td"||t==="th"))return mn(e,n);if(r==="srcset")return Ny(e,n);if(r==="style"){let o=ca(n,Ea(e));return a&&a.size>0&&(o=Oy(o,a)),o}else if(t==="object"&&r==="data")return mn(e,n);return typeof s=="function"?s(r,n,i):n}function bg(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function Cy(e,t,r,n){try{if(n&&e.matches(n))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let s=e.classList[i];if(t.test(s))return!0}if(r)return e.matches(r)}catch(i){}return!1}function My(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}function Pr(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:Pr(e.parentNode,t,r,n+1)}function gn(e,t){return r=>{let n=r;if(n===null)return!1;try{if(e){if(typeof e=="string"){if(n.matches(`.${e}`))return!0}else if(My(n,e))return!0}return!!(t&&n.matches(t))}catch(i){return!1}}}function _n(e,t,r,n,i,s){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(a===null)return!1;if(a.tagName==="INPUT"){let c=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(c))return!0}let o=-1,l=-1;if(s){if(l=Pr(a,gn(n,i)),l<0)return!0;o=Pr(a,gn(t,r),l>=0?l:1/0)}else{if(o=Pr(a,gn(t,r)),o<0)return!1;l=Pr(a,gn(n,i),o>=0?o:1/0)}return o>=0?l>=0?o<=l:!0:l>=0?!1:!!s}catch(a){}return!!s}function Ly(e,t,r){let n=_y(e);if(!n)return;let i=!1,s;try{s=n.document.readyState}catch(o){return}if(s!=="complete"){let o=Jl(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{gg(o),i=!0,t()});return}let a="about:blank";if(n.location.href!==a||e.src===a||e.src==="")return Jl(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Dy(e,t,r){let n=!1,i;try{i=e.sheet}catch(a){i=null}if(i)return;let s=Jl(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{gg(s),n=!0,t()})}function Py(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:m,inlineStylesheet:g,maskInputOptions:h={},maskTextFn:_,maskInputFn:A,dataURLOptions:E={}
21,inlineImages:D,recordCanvas:j,keepIframeSrcFn:P,newlyAddedElement:J=!1,ignoreCSSAttributes:L}=t,S=Uy(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pe.Document,childNodes:[],compatMode:e.compatMode}:{type:pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return By(e,{doc:r,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:g,maskAttributeFn:l,maskInputOptions:h,maskInputFn:A,dataURLOptions:E,inlineImages:D,recordCanvas:j,keepIframeSrcFn:P,newlyAddedElement:J,rootId:S,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:m,ignoreCSSAttributes:L});case e.TEXT_NODE:return Fy(e,{doc:r,maskAllText:o,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:m,maskTextFn:_,maskInputOptions:h,maskInputFn:A,rootId:S});case e.CDATA_SECTION_NODE:return{type:pe.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:pe.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function Uy(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function Fy(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:a,maskTextFn:o,maskInputOptions:l,maskInputFn:c,rootId:d}=t,u=e.parentNode&&e.parentNode.tagName,m=e.textContent,g=u==="STYLE"?!0:void 0,h=u==="SCRIPT"?!0:void 0,_=u==="TEXTAREA"?!0:void 0;if(g&&m){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(m=aa(e.parentNode.sheet))}catch(E){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${E}`,e)}m=ca(m,Ea(t.doc))}h&&(m="SCRIPT_PLACEHOLDER");let A=_n(e,n,s,i,a,r);if(!g&&!h&&!_&&m&&A&&(m=o?o(m,e.parentElement):m.replace(/[\S]/g,"*")),_&&m&&(l.textarea||A)&&(m=c?c(m,e.parentNode):m.replace(/[\S]/g,"*")),u==="OPTION"&&m){let E=Sa({type:null,tagName:u,maskInputOptions:l});m=Si({isMasked:_n(e,n,s,i,a,E),element:e,value:m,maskInputFn:c})}return{type:pe.Text,textContent:m||"",isStyle:g,rootId:d}}function By(e,t){let{doc:r,blockClass:n,blockSelector:i,unblockSelector:s,inlineStylesheet:a,maskInputOptions:o={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:d={},inlineImages:u,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:h=!1,rootId:_,maskTextClass:A,unmaskTextClass:E,maskTextSelector:D,unmaskTextSelector:j,ignoreCSSAttributes:P}=t,J=Cy(e,n,i,s),L=Sy(e),S={},F=e.attributes.length;for(let T=0;T<F;T++){let w=e.attributes[T];w.name&&!bg(L,w.name,w.value)&&(S[w.name]=hg(r,L,bn(w.name),w.value,e,l,P))}if(L==="link"&&a){let T=Array.from(r.styleSheets).find(V=>V.href===e.href),w=null;T&&(w=aa(T)),w&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=ca(w,T.href))}if(L==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let T=aa(e.sheet);T&&(S._cssText=ca(T,Ea(r)))}if(L==="input"||L==="textarea"||L==="select"||L==="option"){let T=e,w=Tc(T),V=la(T,Xl(L),w),se=T.checked;if(w!=="submit"&&w!=="button"&&V){let ae=_n(T,A,D,E,j,Sa({type:w,tagName:Xl(L),maskInputOptions:o}));S.value=Si({isMasked:ae,element:T,value:V,maskInputFn:c})}se&&(S.checked=se)}if(L==="option"&&(e.selected&&!o.select?S.selected=!0:delete S.selected),L==="canvas"&&m){if(e.__context==="2d")by(e)||(S.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let T=e.toDataURL(d.type,d.quality),w=r.createElement("canvas");w.width=e.width,w.height=e.height;let V=w.toDataURL(d.type,d.quality);T!==V&&(S.rr_dataURL=T)}}if(L==="img"&&u){pn||(pn=r.createElement("canvas"),Wm=pn.getContext("2d"));let T=e,w=T.currentSrc||T.getAttribute("src")||"<unknown-src>",V=T.crossOrigin,se=()=>{T.removeEventListener("load",se);try{pn.width=T.naturalWidth,pn.height=T.naturalHeight,Wm.drawImage(T,0,0),S.rr_dataURL=pn.toDataURL(d.type,d.quality)}catch(ae){if(T.crossOrigin!=="anonymous"){T.crossOrigin="anonymous",T.complete&&T.naturalWidth!==0?se():T.addEventListener("load",se);return}else console.warn(`Cannot inline img src=${w}! Error: ${ae}`)}T.crossOrigin==="anonymous"&&(V?S.crossOrigin=V:T.removeAttribute("crossorigin"))};
21T.complete&&T.naturalWidth!==0?se():T.addEventListener("load",se)}if((L==="audio"||L==="video")&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),J){let{width:T,height:w}=e.getBoundingClientRect();S={class:S.class,rr_width:`${T}px`,rr_height:`${w}px`}}L==="iframe"&&!g(S.src)&&(!J&&!fg(e)&&(S.rr_src=S.src),delete S.src);let ue;try{customElements.get(L)&&(ue=!0)}catch(T){}return{type:pe.Element,tagName:L,attributes:S,childNodes:[],isSVG:wy(e)||void 0,needBlock:J,rootId:_,isCustom:ue}}function K(e){return e==null?"":e.toLowerCase()}function qy(e,t){if(t.comment&&e.type===pe.Comment)return!0;if(e.type===pe.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&dg(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(K(e.attributes.name).match(/^msapplication-tile(image|color)$/)||K(e.attributes.name)==="application-name"||K(e.attributes.rel)==="icon"||K(e.attributes.rel)==="apple-touch-icon"||K(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&K(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(K(e.attributes.property).match(/^(og|twitter|fb):/)||K(e.attributes.name).match(/^(og|twitter):/)||K(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(K(e.attributes.name)==="robots"||K(e.attributes.name)==="googlebot"||K(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(K(e.attributes.name)==="author"||K(e.attributes.name)==="generator"||K(e.attributes.name)==="framework"||K(e.attributes.name)==="publisher"||K(e.attributes.name)==="progid"||K(e.attributes.property).match(/^article:/)||K(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(K(e.attributes.name)==="google-site-verification"||K(e.attributes.name)==="yandex-verification"||K(e.attributes.name)==="csrf-token"||K(e.attributes.name)==="p:domain_verify"||K(e.attributes.name)==="verify-v1"||K(e.attributes.name)==="verification"||K(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function fn(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,skipChild:m=!1,inlineStylesheet:g=!0,maskInputOptions:h={},maskAttributeFn:_,maskTextFn:A,maskInputFn:E,slimDOMOptions:D,dataURLOptions:j={},inlineImages:P=!1,recordCanvas:J=!1,onSerialize:L,onIframeLoad:S,iframeLoadTimeout:F=5e3,onBlockedImageLoad:ue,onStylesheetLoad:T,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:V=()=>!1,newlyAddedElement:se=!1,ignoreCSSAttributes:ae}=t,{preserveWhiteSpace:Ve=!0}=t,_e=Py(e,{doc:r,mirror:n,blockClass:i,blockSelector:s,maskAllText:o,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,inlineStylesheet:g,maskInputOptions:h,maskAttributeFn:_,maskTextFn:A,maskInputFn:E,dataURLOptions:j,inlineImages:P,recordCanvas:J,keepIframeSrcFn:V,newlyAddedElement:se,ignoreCSSAttributes:ae});if(!_e)return console.warn(e,"not serialized"),null;let ye;n.hasNode(e)?ye=n.getId(e):qy(_e,D)||!Ve&&_e.type===pe.Text&&!_e.isStyle&&!_e.textContent.trim().length?ye=Ei:ye=Ic();let C=Object.assign(_e,{id:ye});if(n.add(e,C),ye===Ei)return null;L&&L(e);let qe=!m;if(C.type===pe.Element){qe=qe&&!C.needBlock;let Z=e.shadowRoot;Z&&yi(Z)&&(C.isShadowHost=!0)}if((C.type===pe.Document||C.type===pe.Element)&&qe){D.headWhitespace&&C.type===pe.Element&&C.tagName==="head"&&(Ve=!1);let Z={doc:r,mirror:n,blockClass:i,blockSelector:s,maskAllText:o,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,skipChild:m,inlineStylesheet:g,maskInputOptions:h,maskAttributeFn:_,maskTextFn:A,maskInputFn:E,slimDOMOptions:D,dataURLOptions:j,inlineImages:P,recordCanvas:J,preserveWhiteSpace:Ve,onSerialize:L,onIframeLoad:S,iframeLoadTimeout:F,onBlockedImageLoad:ue,onStylesheetLoad:T,stylesheetLoadTimeout:w,keepIframeSrcFn:V,ignoreCSSAttributes:ae},lt=e.childNodes?Array.from(e.childNodes):[];for(let ct of lt){let je=fn(ct,Z);je&&C.childNodes.push(je)}if(cy(e)&&e.shadowRoot)for(let ct of Array.from(e.shadowRoot.childNodes)){let je=fn(ct,Z);je&&(yi(e.shadowRoot)&&(je.isShadow=!0),C.childNodes.push(je))}}if(e.parentNode&&_i(e.parentNode)&&yi(e.parentNode)&&(C.isShadow=!0),C.type===pe.Element&&C.tagName==="iframe"&&!C.needBlock&&Ly(e,()=>{let Z=fg(e);if(Z&&S){let lt=fn(Z,{doc:Z,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:g,maskInputOptions:h,maskAttributeFn:_,maskTextFn:A,maskInputFn:E,slimDOMOptions:D,dataURLOptions:j,inlineImages:P,recordCanvas:J,preserveWhiteSpace:Ve,onSerialize:L,onIframeLoad:S,iframeLoadTimeout:F,onStylesheetLoad:T,stylesheetLoadTimeout:w,keepIframeSrcFn:V,ignoreCSSAttributes:ae});lt&&S(e,lt)}},F),C.type===pe.Element&&C.tagName==="img"&&!e.complete&&C.needBlock){let Z=e,lt=()=>{if(Z.isConnected&&!Z.complete&&ue)try{let ct=Z.getBoundingClientRect();ct.width>0&&ct.height>0&&ue(Z,C,ct)}catch(ct){}Z.removeEventListener("load",lt)};Z.isConnected&&Z.addEventListener("load",lt)}return C.type===pe.Element&&C.tagName==="link"&&typeof C.attributes.rel=="string"&&(C.attributes.rel==="stylesheet"||C.attributes.rel==="preload"&&typeof C.attributes.href=="string"&&dg(C.attributes.href)==="css")&&Dy(e,()=>{if(T){let Z=fn(e,{doc:r,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:g,maskInputOptions:h,maskAttributeFn:_,maskTextFn:A,maskInputFn:E,slimDOMOptions:D,dataURLOptions:j,inlineImages:P,recordCanvas:J,preserveWhiteSpace:Ve,onSerialize:L,onIframeLoad:S,iframeLoadTimeout:F,onStylesheetLoad:T,stylesheetLoadTimeout:w,keepIframeSrcFn:V,ignoreCSSAttributes:ae});Z&&T(e,Z)}},w),C.type===pe.Element&&delete C.needBlock,C}
21function Hy(e,t){let{mirror:r=new oa,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:a=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:d=null,inlineStylesheet:u=!0,inlineImages:m=!1,recordCanvas:g=!1,maskAllInputs:h=!1,maskAttributeFn:_,maskTextFn:A,maskInputFn:E,slimDOM:D=!1,dataURLOptions:j,preserveWhiteSpace:P,onSerialize:J,onIframeLoad:L,iframeLoadTimeout:S,onBlockedImageLoad:F,onStylesheetLoad:ue,stylesheetLoadTimeout:T,keepIframeSrcFn:w=()=>!1,ignoreCSSAttributes:V=new Set([])}=t||{};return fn(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:o,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:u,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:_,maskTextFn:A,maskInputFn:E,slimDOMOptions:D===!0||D==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:D==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:D===!1?{}:D,dataURLOptions:j,inlineImages:m,recordCanvas:g,preserveWhiteSpace:P,onSerialize:J,onIframeLoad:L,iframeLoadTimeout:S,onBlockedImageLoad:F,onStylesheetLoad:ue,stylesheetLoadTimeout:T,keepIframeSrcFn:w,newlyAddedElement:!1,ignoreCSSAttributes:V})}function Oe(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}function Ti(e,t,r={}){let n=null,i=0;return function(...s){let a=Date.now();!i&&r.leading===!1&&(i=a);let o=t-(a-i),l=this;o<=0||o>t?(n&&(jy(n),n=null),i=a,e.apply(l,s)):!n&&r.trailing!==!1&&(n=Ta(()=>{i=r.leading===!1?0:Date.now(),n=null,e.apply(l,s)},o))}}function _g(e,t,r,n,i=window){let s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(a){Ta(()=>{r.set.call(this,a)},0),s&&s.set&&s.set.call(this,a)}}),()=>_g(e,t,s||{},!0)}function Ac(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(n){return()=>{}}}function yg(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function vg(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Sg(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Eg(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(t){return null}}function Be(e,t,r,n,i){if(!e)return!1;let s=Eg(e);if(!s)return!1;let a=gn(t,r);if(!i){let c=n&&s.matches(n);return a(s)&&!c}let o=Pr(s,a),l=-1;return o<0?!1:(n&&(l=Pr(s,gn(null,n))),o>-1&&l<0?!0:o<l)}function Gy(e,t){return t.getId(e)!==-1}function zl(e,t){return t.getId(e)===Ei}function Tg(e,t){if(_i(e))return!1;let r=t.getId(e);return t.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Tg(e.parentNode,t):!0:!0}function Ql(e){return!!e.changedTouches}function Wy(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let r=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function Ig(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Ag(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}
21function Zl(e){return!!e?.shadowRoot}function Rg(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Yy(e){let t=e,r;for(;r=Rg(t);)t=r;return t}function zy(e){let t=e.ownerDocument;if(!t)return!1;let r=Yy(e);return t.contains(r)}function Og(e){let t=e.ownerDocument;return t?t.contains(e)||zy(e):!1}function Rc(e){let t=Vm[e];if(t)return t;let r=window.document,n=window[e];if(r&&typeof r.createElement=="function")try{let i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);let s=i.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(i)}catch(i){}return Vm[e]=n.bind(window)}function Vy(...e){return Rc("requestAnimationFrame")(...e)}function Ta(...e){return Rc("setTimeout")(...e)}function jy(...e){return Rc("clearTimeout")(...e)}function $y(e){vi=e}function Ky(){vi=void 0}function Oc(e){try{return e.contentDocument}catch(t){}}function Ii(e){try{return e.contentWindow}catch(t){}}function $m(e){return"__ln"in e}function ic(e,t){e.delete(t),t.childNodes?.forEach(r=>ic(e,r))}function Xm(e,t,r){return e.length===0?!1:Jy(e,t,r)}function Jy(e,t,r){let n=t.parentNode;for(;n;){let i=r.getId(n);if(e.some(s=>s.id===i))return!0;n=n.parentNode}return!1}function Jm(e,t){return e.size===0?!1:xg(e,t)}function xg(e,t){let{parentNode:r}=t;return r?e.has(r)?!0:xg(e,r):!1}function ki(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function kg(e,t){let r=new nc;hn.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let s=new n(W(a=>{e.onMutation&&e.onMutation(a)===!1||r.processMutations.bind(r)(a)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function Qy({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,a=[],o,l=Ti(W(u=>{let m=Date.now()-o;e(a.map(g=>(g.timeOffset-=m,g)),u),a=[],o=null}),s),c=W(Ti(W(u=>{let m=ki(u),{clientX:g,clientY:h}=Ql(u)?u.changedTouches[0]:u;o||(o=pa()),a.push({x:g,y:h,id:n.getId(m),timeOffset:pa()-o}),l(typeof DragEvent<"u"&&u instanceof DragEvent?k.Drag:u instanceof MouseEvent?k.MouseMove:k.TouchMove)}),i,{trailing:!1})),d=[Oe("mousemove",c,r),Oe("touchmove",c,r),Oe("drag",c,r)];return W(()=>{d.forEach(u=>u())})}function Zy({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,sampling:a}){if(a.mouseInteraction===!1)return()=>{};let o=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,l=[],c=null,d=u=>m=>{let g=ki(m);if(Be(g,n,i,s,!0))return;let h=null,_=u;if("pointerType"in m){switch(m.pointerType){case"mouse":h=Mt.Mouse;break;case"touch":h=Mt.Touch;break;case"pen":h=Mt.Pen;break}h===Mt.Touch?Re[u]===Re.MouseDown?_="TouchStart":Re[u]===Re.MouseUp&&(_="TouchEnd"):Mt.Pen}else Ql(m)&&(h=Mt.Touch);h!==null?(c=h,(_.startsWith("Touch")&&h===Mt.Touch||_.startsWith("Mouse")&&h===Mt.Mouse)&&(h=null)):Re[u]===Re.Click&&(h=c,c=null);let A=Ql(m)?m.changedTouches[0]:m;if(!A)return;let E=r.getId(g),{clientX:D,clientY:j}=A;W(e)(p({type:Re[_],id:E,x:D,y:j},h!==null&&{pointerType:h}))};return Object.keys(Re).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&o[u]!==!1).forEach(u=>{let m=bn(u),g=d(u);if(window.PointerEvent)switch(Re[u]){case Re.MouseDown:case Re.MouseUp:m=m.replace("mouse","pointer");break;case Re.TouchStart:case Re.TouchEnd:return}l.push(Oe(m,g,t))}),W(()=>{l.forEach(u=>u())})}function Ng({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,sampling:a}){let o=W(Ti(W(l=>{let c=ki(l);if(!c||Be(c,n,i,s,!0))return;let d=r.getId(c);if(c===t&&t.defaultView){let u=yg(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:c.scrollLeft,y:c.scrollTop})}),a.scroll||100));return Oe("scroll",o,t)}function ev({viewportResizeCb:e},{win:t}){let r=-1,n=-1,i=W(Ti(W(()=>{let s=vg(),a=Sg();(r!==s||n!==a)&&(e({width:Number(a),height:Number(s)}),r=s,n=a)}),200));return Oe("resize",i,t)}function rv({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,ignoreClass:a,ignoreSelector:o,maskInputOptions:l,maskInputFn:c,sampling:d,userTr
21iggeredOnInput:u,maskTextClass:m,unmaskTextClass:g,maskTextSelector:h,unmaskTextSelector:_}){function A(S){let F=ki(S),ue=S.isTrusted,T=F&&Xl(F.tagName);if(T==="OPTION"&&(F=F.parentElement),!F||!T||tv.indexOf(T)<0||Be(F,n,i,s,!0))return;let w=F;if(w.classList.contains(a)||o&&w.matches(o))return;let V=Tc(F),se=la(w,T,V),ae=!1,Ve=Sa({maskInputOptions:l,tagName:T,type:V}),_e=_n(F,m,h,g,_,Ve);(V==="radio"||V==="checkbox")&&(ae=F.checked),se=Si({isMasked:_e,element:F,value:se,maskInputFn:c}),E(F,u?{text:se,isChecked:ae,userTriggered:ue}:{text:se,isChecked:ae});let ye=F.name;V==="radio"&&ye&&ae&&t.querySelectorAll(`input[type="radio"][name="${ye}"]`).forEach(C=>{if(C!==F){let qe=Si({isMasked:_e,element:C,value:la(C,T,V),maskInputFn:c});E(C,u?{text:qe,isChecked:!ae,userTriggered:!1}:{text:qe,isChecked:!ae})}})}function E(S,F){let ue=Qm.get(S);if(!ue||ue.text!==F.text||ue.isChecked!==F.isChecked){Qm.set(S,F);let T=r.getId(S);W(e)(y(p({},F),{id:T}))}}let j=(d.input==="last"?["change"]:["input","change"]).map(S=>Oe(S,W(A),t)),P=t.defaultView;if(!P)return()=>{j.forEach(S=>S())};let J=P.Object.getOwnPropertyDescriptor(P.HTMLInputElement.prototype,"value"),L=[[P.HTMLInputElement.prototype,"value"],[P.HTMLInputElement.prototype,"checked"],[P.HTMLSelectElement.prototype,"value"],[P.HTMLTextAreaElement.prototype,"value"],[P.HTMLSelectElement.prototype,"selectedIndex"],[P.HTMLOptionElement.prototype,"selected"]];return J&&J.set&&j.push(...L.map(S=>_g(S[0],S[1],{set(){W(A)({target:this,isTrusted:!1})}},!1,P))),W(()=>{j.forEach(S=>S())})}function da(e){let t=[];function r(n,i){if(ra("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||ra("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||ra("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||ra("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let a=Array.from(n.parentRule.cssRules).indexOf(n);i.unshift(a)}else if(n.parentStyleSheet){let a=Array.from(n.parentStyleSheet.cssRules).indexOf(n);i.unshift(a)}return i}return r(e,t)}function tr(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function nv({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:W((d,u,m)=>{let[g,h]=m,{id:_,styleId:A}=tr(u,t,r.styleMirror);return(_&&_!==-1||A&&A!==-1)&&e({id:_,styleId:A,adds:[{rule:g,index:h}]}),d.apply(u,m)})});let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:W((d,u,m)=>{let[g]=m,{id:h,styleId:_}=tr(u,t,r.styleMirror);return(h&&h!==-1||_&&_!==-1)&&e({id:h,styleId:_,removes:[{index:g}]}),d.apply(u,m)})});let a;n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:W((d,u,m)=>{let[g]=m,{id:h,styleId:_}=tr(u,t,r.styleMirror);return(h&&h!==-1||_&&_!==-1)&&e({id:h,styleId:_,replace:g}),d.apply(u,m)})}));let o;n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:W((d,u,m)=>{let[g]=m,{id:h,styleId:_}=tr(u,t,r.styleMirror);return(h&&h!==-1||_&&_!==-1)&&e({id:h,styleId:_,replaceSync:g}),d.apply(u,m)})}));let l={};na("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(na("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),na("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),na("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(l).forEach(([d,u])=>{c[d]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(c[d].insertRule,{apply:W((m,g,h)=>{let[_,A]=h,{id:E,styleId:D}=tr(g.parentStyleSheet,t,r.styleMirror);return(E&&E!==-1||D&&D!==-1)&&e({id:E,styleId:D,adds:[{rule:_,index:[...da(g),A||0]}]}),m.apply(g,h)})}),u.prototype.deleteRule=new Proxy(c[d].deleteRule,{apply:W((m,g,h)=>{let[_]=h,{id:A,styleId:E}=tr(g.parentStyleSheet,t,r.styleMirror);return(A&&A!==-1||E&&E!==-1)&&e({id:A,styleId:E,removes:[{index:[...da(g),_]}]}),m.apply(g,h)})})}),W(()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=s,a&&(n.CSSStyleSheet.prototype.replace=a),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([d,u])=>{u.prototype.insertRule=c[d].insertRule,u.prototype.deleteRule=c[d].deleteRule})})}function wg({mirror:e,stylesheetManager:t},r){let n=null;r.nodeName==="#document"?n=e.getId(r):n=e.getId(r.host);
21let i=r.nodeName==="#document"?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,s=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return n===null||n===-1||!i||!s?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(a){let o=s.set?.call(this,a);if(n!==null&&n!==-1)try{t.adoptStyleSheets(a,n)}catch(l){}return o}}),W(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))}function iv({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:W((o,l,c)=>{let[d,u,m]=c;if(r.has(d))return s.apply(l,[d,u,m]);let{id:g,styleId:h}=tr(l.parentRule?.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,set:{property:d,value:u,priority:m},index:da(l.parentRule)}),o.apply(l,c)})});let a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:W((o,l,c)=>{let[d]=c;if(r.has(d))return a.apply(l,[d]);let{id:u,styleId:m}=tr(l.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&u!==-1||m&&m!==-1)&&e({id:u,styleId:m,remove:{property:d},index:da(l.parentRule)}),o.apply(l,c)})}),W(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=a})}function sv({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:s,doc:a}){let o=W(c=>Ti(W(d=>{let u=ki(d);if(!u||Be(u,t,r,n,!0))return;let{currentTime:m,volume:g,muted:h,playbackRate:_}=u;e({type:c,id:i.getId(u),currentTime:m,volume:g,muted:h,playbackRate:_})}),s.media||500)),l=[Oe("play",o(dn.Play),a),Oe("pause",o(dn.Pause),a),Oe("seeked",o(dn.Seeked),a),Oe("volumechange",o(dn.VolumeChange),a),Oe("ratechange",o(dn.RateChange),a)];return W(()=>{l.forEach(c=>c())})}function av({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,s=r.FontFace;r.FontFace=function(l,c,d){let u=new s(l,c,d);return i.set(u,{family:l,buffer:typeof c!="string",descriptors:d,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),u};let a=Ac(t.fonts,"add",function(o){return function(l){return Ta(W(()=>{let c=i.get(l);c&&(e(c),i.delete(l))}),0),o.apply(this,[l])}});return n.push(()=>{r.FontFace=s}),n.push(a),W(()=>{n.forEach(o=>o())})}function ov(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,selectionCb:a}=e,o=!0,l=W(()=>{let c=t.getSelection();if(!c||o&&c?.isCollapsed)return;o=c.isCollapsed||!1;let d=[],u=c.rangeCount||0;for(let m=0;m<u;m++){let g=c.getRangeAt(m),{startContainer:h,startOffset:_,endContainer:A,endOffset:E}=g;Be(h,n,i,s,!0)||Be(A,n,i,s,!0)||d.push({start:r.getId(h),startOffset:_,end:r.getId(A),endOffset:E})}a({ranges:d})});return l(),Oe("selectionchange",l)}function lv({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Ac(r.customElements,"define",function(i){return function(s,a,o){try{t({define:{name:s}})}catch(l){}return i.apply(this,[s,a,o])}})}function cv(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=kg(e,e.doc));let i=Qy(e),s=Zy(e),a=Ng(e),o=ev(e,{win:r}),l=rv(e),c=sv(e),d=()=>{},u=()=>{},m=()=>{},g=()=>{};e.recordDOM&&(d=nv(e,{win:r}),u=wg(e,e.doc),m=iv(e,{win:r}),e.collectFonts&&(g=av(e)));let h=ov(e),_=lv(e),A=[];for(let E of e.plugins)A.push(E.observer(E.callback,r,E.options));return W(()=>{hn.forEach(E=>E.reset()),n?.disconnect(),i(),s(),a(),o(),l(),c(),d(),u(),m(),g(),h(),_(),A.forEach(E=>E())})}function ra(e){return typeof window[e]<"u"}function na(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}function st(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:a=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:u=null,maskTextSelector:m=null,unmaskTextSelector:g=null,inlineStylesheet:h=!0,maskAllInputs:_,maskInputOptions:A,slimDOMOptions:E,maskAttributeFn:D,maskInputFn:j,maskTextFn:P,maxCanvasSize:J=null,packFn:L,sampling:S={},dataURLOptions:F={},mousemoveWait:ue,recordDOM:T=!0,recordCanvas:w=!1,recordCrossOriginIframes:V=!1,recordAfter:se=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:ae=!1,collectFonts:Ve=!1,inlineImages:_e=!1,plugins:ye,keepIframeSrcFn:C=()=>!1,ignoreCSSAttributes:qe=new Set([]),errorHandler:Z,onMutation:lt,getCanvasManager:ct}=e;$y(Z);let je=V?window.parent===window:!0,En=!1;if(!je)try{window.parent.document&&(En=!1)}catch(Y){En=!0}if(je&&!t)throw new Error("emit function is required");if(!je&&!En)return()=>{};ue!==void 0&&S.mousemove===void 0&&(S.mousemove=ue),it.reset();let Pa=_===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:A!==void 0?A:{},Ua=E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:E==="all",headMetaDescKeywords:E==="all"}:E||{};Wy();let Fa,Ba=0,Vc=Y=>{for(let $e of ye||[])$e.eventProcessor&&(Y=$e.eventProcessor(Y));return L&&!En&&(Y=L(Y)),Y};ie=(Y,$e)=>{let q=Y;if(q.timestamp=pa(),hn[0]?.isFrozen()&&q.type!==M.FullSnapshot&&!(q.type===M.IncrementalSnapshot&&q.data.source===k.Mutation)&&hn.forEach(be=>be.unfreeze()),je)t?.(Vc(q),$e);else if(En){let be={type:"rrweb",event:Vc(q),origin:window.location.origin,isCheckout:$e};window.parent.postMessage(be,"*")}if(q.type===M.FullSnapshot)Fa=q,Ba=0;else if(q.type===M.IncrementalSnapshot){if(q.data.source===k.Mutation&&q.data.isAttachIframe)return;Ba++;let be=n&&Ba>=n,H=r&&Fa&&q.timestamp-Fa.timestamp>r;(be||H)&&Ga(!0)}};let Tn=Y=>
21{ie({type:M.IncrementalSnapshot,data:p({source:k.Mutation},Y)})},jc=Y=>ie({type:M.IncrementalSnapshot,data:p({source:k.Scroll},Y)}),Tf=Y=>ie({type:M.IncrementalSnapshot,data:p({source:k.CanvasMutation},Y)}),If=Y=>ie({type:M.IncrementalSnapshot,data:p({source:k.AdoptedStyleSheet},Y)}),ir=new cc({mutationCb:Tn,adoptedStyleSheetCb:If}),sr=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new sc:new ac({mirror:it,mutationCb:Tn,stylesheetManager:ir,recordCrossOriginIframes:V,wrappedEmit:ie});for(let Y of ye||[])Y.getMirror&&Y.getMirror({nodeMirror:it,crossOriginIframeMirror:sr.crossOriginIframeMirror,crossOriginIframeStyleMirror:sr.crossOriginIframeStyleMirror});let qa=new pc,Ha=uv(ct,{mirror:it,win:window,mutationCb:Y=>ie({type:M.IncrementalSnapshot,data:p({source:k.CanvasMutation},Y)}),recordCanvas:w,blockClass:i,blockSelector:s,unblockSelector:a,maxCanvasSize:J,sampling:S.canvas,dataURLOptions:F,errorHandler:Z}),Fi=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new oc:new lc({mutationCb:Tn,scrollCb:jc,bypassOptions:{onMutation:lt,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:u,maskTextSelector:m,unmaskTextSelector:g,inlineStylesheet:h,maskInputOptions:Pa,dataURLOptions:F,maskAttributeFn:D,maskTextFn:P,maskInputFn:j,recordCanvas:w,inlineImages:_e,sampling:S,slimDOMOptions:Ua,iframeManager:sr,stylesheetManager:ir,canvasManager:Ha,keepIframeSrcFn:C,processedNodeManager:qa,ignoreCSSAttributes:qe},mirror:it}),Ga=(Y=!1)=>{if(!T)return;ie({type:M.Meta,data:{href:window.location.href,width:Sg(),height:vg()}},Y),ir.reset(),Fi.init(),hn.forEach(q=>q.lock());let $e=Hy(document,{mirror:it,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:u,maskTextSelector:m,unmaskTextSelector:g,inlineStylesheet:h,maskAllInputs:Pa,maskAttributeFn:D,maskInputFn:j,maskTextFn:P,slimDOM:Ua,dataURLOptions:F,recordCanvas:w,inlineImages:_e,onSerialize:q=>{Ig(q,it)&&sr.addIframe(q),Ag(q,it)&&ir.trackLinkElement(q),Zl(q)&&Fi.addShadowRoot(q.shadowRoot,document)},onIframeLoad:(q,be)=>{sr.attachIframe(q,be);let H=Ii(q);H&&Ha.addWindow(H),Fi.observeAttachShadow(q)},onStylesheetLoad:(q,be)=>{ir.attachLinkElement(q,be)},onBlockedImageLoad:(q,be,{width:H,height:In})=>{Tn({adds:[],removes:[],texts:[],attributes:[{id:be.id,attributes:{style:{width:`${H}px`,height:`${In}px`}}}]})},keepIframeSrcFn:C,ignoreCSSAttributes:qe});if(!$e)return console.warn("Failed to snapshot the document");ie({type:M.FullSnapshot,data:{node:$e,initialOffset:yg(window)}}),hn.forEach(q=>q.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ir.adoptStyleSheets(document.adoptedStyleSheets,it.getId(document))};ma=Ga;try{let Y=[],$e=be=>W(cv)({onMutation:lt,mutationCb:Tn,mousemoveCb:(H,In)=>ie({type:M.IncrementalSnapshot,data:{source:In,positions:H}}),mouseInteractionCb:H=>ie({type:M.IncrementalSnapshot,data:p({source:k.MouseInteraction},H)}),scrollCb:jc,viewportResizeCb:H=>ie({type:M.IncrementalSnapshot,data:p({source:k.ViewportResize},H)}),inputCb:H=>ie({type:M.IncrementalSnapshot,data:p({source:k.Input},H)}),mediaInteractionCb:H=>ie({type:M.IncrementalSnapshot,data:p({source:k.MediaInteraction},H)}),styleSheetRuleCb:H=>ie({type:M.IncrementalSnapshot,data:p({source:k.StyleSheetRule},H)}),styleDeclarationCb:H=>ie({type:M.IncrementalSnapshot,data:p({source:k.StyleDeclaration},H)}),canvasMutationCb:Tf,fontCb:H=>ie({type:M.IncrementalSnapshot,data:p({source:k.Font},H)}),selectionCb:H=>{ie({type:M.IncrementalSnapshot,data:p({source:k.Selection},H)})},customElementCb:H=>{ie({type:M.IncrementalSnapshot,data:p({source:k.CustomElement},H)})},blockClass:i,ignoreClass:o,ignoreSelector:l,maskAllText:c,maskTextClass:d,unmaskTextClass:u,maskTextSelector:m,unmaskTextSelector:g,maskInputOptions:Pa,inlineStylesheet:h,sampling:S,recordDOM:T,recordCanvas:w,inlineImages:_e,userTriggeredOnInput:ae,collectFonts:Ve,doc:be,maskAttributeFn:D,maskInputFn:j,maskTextFn:P,keepIframeSrcFn:C,blockSelector:s,unblockSelector:a,slimDOMOptions:Ua,dataURLOptions:F,mirror:it,iframeManager:sr,stylesheetManager:ir,shadowDomManager:Fi,processedNodeManager:qa,canvasManager:Ha,ignoreCSSAttributes:qe,plugins:ye?.filter(H=>H.observer)?.map(H=>({observer:H.observer,options:H.options,callback:In=>ie({type:M.Plugin,data:{plugin:H.name,payload:In}})}))||[]},{});sr.addLoadListener(be=>{try{Y.push($e(be.contentDocument))}catch(H){console.warn(H)}});let q=()=>{Ga(),Y.push($e(document))};return document.readyState==="interactive"||document.readyState==="complete"?q():(Y.push(Oe("DOMContentLoaded",()=>{ie({type:M.DomContentLoaded,data:{}}),se==="DOMContentLoaded"&&q()})),Y.push(Oe("load",()=>{ie({type:M.Load,data:{}}),se==="load"&&q()}
21,window))),()=>{Y.forEach(be=>be()),qa.destroy(),ma=void 0,Ky()}}catch(Y){console.warn(Y)}}function pv(e){if(!ma)throw new Error("please take full snapshot after start recording");ma(e)}function uv(e,t){try{return e?e(t):new ua}catch(r){return console.warn("Unable to initialize CanvasManager"),new ua}}function xc(e){return e>9999999999?e:e*1e3}function Vl(e){return e>9999999999?e/1e3:e}function Ni(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:M.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:ve(t,10,1e3)}}),t.category==="console")))}function Cg(e){return e.closest(gv)||e}function Mg(e){let t=Lg(e);return!t||!(t instanceof Element)?t:Cg(t)}function Lg(e){return fv(e)?e.target:e}function fv(e){return we(e)&&"target"in e}function hv(e){return rr||(rr=[],bv()),rr.push(e),()=>{let t=rr?rr.indexOf(e):-1;t>-1&&rr.splice(t,1)}}function bv(){te(X,"open",function(e){return function(...t){if(rr)try{rr.forEach(r=>r())}catch(r){}return e.apply(X,t)}})}function yv(e,t,r){e.handleClick(t,r)}function Sv(e,t){return!!(!vv.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function Ev(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function eg(){return Date.now()/1e3}function Tv(e,t){try{if(!Iv(t))return;let{source:r}=t.data;if(_v.has(r)&&e.registerMutation(t.timestamp),r===k.Scroll&&e.registerScroll(t.timestamp),Av(t)){let{type:n,id:i}=t.data,s=st.mirror.getNode(i);s instanceof HTMLElement&&n===Re.Click&&e.registerClick(s)}}catch(r){}}function Iv(e){return e.type===dv}function Av(e){return e.data.source===k.MouseInteraction}function vt(e){return p({timestamp:Date.now()/1e3,type:"default"},e)}function Ov(e){let t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(let r in e)if(Rv.has(r)){let n=r;(r==="data-testid"||r==="data-test-id")&&(n="testId"),t[n]=e[r]}return t}function Dg(e,t){let r=st.mirror.getId(e),n=r&&st.mirror.getNode(r),i=n&&st.mirror.getMeta(n),s=i&&wv(i)?i:null;return{message:t,data:s?{nodeId:r,node:{id:r,tagName:s.tagName,textContent:Array.from(s.childNodes).map(a=>a.type===Ia.Text&&a.textContent).filter(Boolean).map(a=>a.trim()).join(""),attributes:Ov(s.attributes)}}:{}}}function kv(e){let{target:t,message:r}=Nv(e);return vt(p({category:`ui.${e.name}`},Dg(t,r)))}function Nv(e){let t=e.name==="click",r,n=null;try{n=t?Mg(e.event):Lg(e.event),r=er(n,{maxStringLength:200})||"<unknown>"}catch(i){r="<unknown>"}return{target:n,message:r}}function wv(e){return e.type===Ia.Element}function Cv(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=Mv(t);r&&Ni(e,r)}function Mv(e){let{metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:s,target:a}=e;if(!a||Lv(a)||!s)return null;let o=t||n||i,l=s.length===1;if(!o&&l)return null;let c=er(a,{maxStringLength:200})||"<unknown>",d=Dg(a,c);return vt({category:"ui.keyDown",message:c,data:y(p({},d.data),{metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:s})})}function Lv(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}function jl(e,t){return({metric:r})=>{t.replayPerformanceEntries.push(e(r))}}function Pv(e){return e.map(Uv).filter(Boolean)}function Uv(e){let t=Dv[e.entryType];return t?t(e):null}function yn(e){return(($i()||X.performance.timeOrigin)+e)/1e3}function Fv(e){let{duration:t,entryType:r,name:n,startTime:i}=e,s=yn(i);return{type:r,name:n,start:s,end:s+t,data:void 0}}function Bv(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:s,encodedBodySize:a,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:d,loadEventEnd:u,redirectCount:m,startTime:g,transferSize:h,type:_}=e;return i===0?null:{type:`${t}.${_}`,start:yn(g),end:yn(s),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:d,loadEventEnd:u,domComplete:s,redirectCount:m}}}function qv(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:s,decodedBodySize:a,encodedBodySize:o,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:yn(s),end:yn(i),name:n,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:o}}}function Hv(e){let t=e.entries[e.entries.length-1],r=t?.element?[t.element]:void 0;return kc(e,"largest-contentful-paint",r)}function Gv(e){return e.sources!==void 0}function Wv(e){let t=[],r=[];for(let n of e.entries)if(Gv(n)){let i=[];
21for(let s of n.sources)if(s.node){r.push(s.node);let a=st.mirror.getId(s.node);a&&i.push(a)}t.push({value:n.value,nodeIds:i.length?i:void 0})}return kc(e,"cumulative-layout-shift",r,t)}function Yv(e){let t=e.entries[e.entries.length-1],r=t?.target?[t.target]:void 0;return kc(e,"interaction-to-next-paint",r)}function kc(e,t,r,n){let i=e.value,s=e.rating,a=yn(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:s,nodeIds:r?r.map(o=>st.mirror.getId(o)):void 0,attributions:n}}}function zv(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function r({entries:i}){i.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(i=>{n.push(Ul(i,r))}),n.push(Dl(jl(Hv,e)),Ll(jl(Wv,e)),Pl(jl(Yv,e))),()=>{n.forEach(i=>i())}}function jv(){let e=new Blob([Vv]);return URL.createObjectURL(e)}function $l(e,t="info"){Ue({category:"console",data:{logger:"replay"},level:t,message:`${sa}${e}`},{level:t})}function $v(){let e=!1,t=!1,r={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return O?(tg.forEach(n=>{r[n]=(...i)=>{b[n](sa,...i),t&&$l(i.join(""),nn(n))}}),r.exception=(n,...i)=>{i.length&&r.error&&r.error(...i),b.error(sa,n),e?xt(n,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&$l(n,"error")},r.infoTick=(...n)=>{b.log(sa,...n),t&&setTimeout(()=>$l(n[0]),0)}):tg.forEach(n=>{r[n]=()=>{}}),r}function Kv({useCompression:e,workerUrl:t}){if(e&&window.Worker){let r=Xv(t);if(r)return r}return O&&x.log("Using simple buffer"),new ga}function Xv(e){try{let t=e||Jv();if(!t)return;O&&x.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new gc(r)}catch(t){O&&x.exception(t,"Failed to create compression worker")}}function Jv(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?jv():""}function Nc(){try{return"sessionStorage"in X&&!!X.sessionStorage}catch(e){return!1}}function Qv(e){Zv(),e.session=void 0}function Zv(){if(Nc())try{X.sessionStorage.removeItem(vc)}catch(e){}}function Pg(e){return e===void 0?!1:Math.random()<e}function Aa(e){if(Nc())try{X.sessionStorage.setItem(vc,JSON.stringify(e))}catch(t){}}function Ug(e){let t=Date.now(),r=e.id||re(),n=e.started||t,i=e.lastActivity||t,s=e.segmentId||0,a=e.sampled,o=e.previousSessionId,l=e.dirty||!1;return{id:r,started:n,lastActivity:i,segmentId:s,sampled:a,previousSessionId:o,dirty:l}}function eS(e,t){return Pg(e)?"session":t?"buffer":!1}function rg({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=eS(e,t),s=Ug({sampled:i,previousSessionId:n});return r&&Aa(s),s}function tS(){if(!Nc())return null;try{let e=X.sessionStorage.getItem(vc);if(!e)return null;let t=JSON.parse(e);return O&&x.infoTick("Loading existing session"),Ug(t)}catch(e){return null}}function fc(e,t,r=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=r}function rS(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return fc(e.started,t,n)||fc(e.lastActivity,r,n)}function fa(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!(!rS(e,{sessionIdleExpire:t,maxReplayDuration:r})||e.sampled==="buffer"&&e.segmentId===0)}function Kl({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&tS();return i?fa(i,{sessionIdleExpire:e,maxReplayDuration:t})?(O&&x.infoTick("Session in sessionStorage is expired, creating new one..."),rg(n,{previousSessionId:i.id})):i:(O&&x.infoTick("Creating new session"),rg(n,{previousSessionId:r}))}function nS(e){return e.type===M.Custom}function wc(e,t,r){return Bg(e,t)?(Fg(e,t,r),!0):!1}function iS(e,t,r){return Bg(e,t)?Fg(e,t,r):Promise.resolve(null)}function Fg(e,t,r){return B(this,null,function*(){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i=e.recordingMode==="buffer";try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let s=e.getOptions(),a=sS(t,s.beforeAddRecordingEvent);return a?yield n.addEvent(a):void 0}catch(s){if(!e.isEnabled())return e.handleException(s),null;let a=s&&s instanceof Ri,o=a?"eventBufferOverflow":"eventBufferError",l=R();if(l){let c=a?"buffer_overflow":"internal_sdk_error";l.recordDroppedEvent(c,"replay")}if(a&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(s),yield e.stop({reason:o})}})}
21function Bg(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=xc(t.timestamp);return r+e.timeouts.sessionIdlePause<Date.now()?!1:r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(O&&x.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1):!0}function sS(e,t){try{if(typeof t=="function"&&nS(e))return t(e)}catch(r){return O&&x.exception(r,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function qg(e,t,r){let n=e.getContext();t&&n.traceIds.size<ng&&n.traceIds.add(t),r&&n.segmentNames.size<ng&&n.segmentNames.add(r)}function aS(e){return t=>{e.isEnabled()&&qg(e,t.trace_id,t.name||void 0)}}function Cc(e){return!e.type}function hc(e){return e.type==="transaction"}function oS(e){return e.type==="replay_event"}function ig(e){return e.type==="feedback"}function lS(e){return(t,r)=>{if(!e.isEnabled()||!Cc(t)&&!hc(t))return;let n=r.statusCode;if(!(!n||n<200||n>=300)){if(hc(t)){cS(e,t);return}pS(e,t)}}}function cS(e,t){qg(e,t.contexts?.trace?.trace_id,t.transaction)}function pS(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags?.replayId)return;let{beforeErrorSampling:n}=e.getOptions();typeof n=="function"&&!n(t)||Lr(()=>B(null,null,function*(){try{yield e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}}))}function uS(e){return t=>{!e.isEnabled()||!Cc(t)||dS(e,t)}}function dS(e,t){let r=t.exception?.values?.[0]?.value;if(typeof r=="string"&&(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let n=vt({category:"replay.hydrate-error",data:{url:rt()}});Ni(e,n)}}function mS(e){let t=R();t&&t.on("beforeAddBreadcrumb",r=>gS(e,r))}function gS(e,t){if(!e.isEnabled()||!Hg(t))return;let r=fS(t);r&&Ni(e,r)}function fS(e){return!Hg(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?hS(e):vt(e)}function hS(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return vt(e);let r=!1,n=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>ta?(r=!0,`${i.slice(0,ta)}\u2026`):i;if(typeof i=="object")try{let s=ve(i,7);return JSON.stringify(s).length>ta?(r=!0,`${JSON.stringify(s,null,2).slice(0,ta)}\u2026`):s}catch(s){}return i});return vt(y(p({},e),{data:p(y(p({},e.data),{arguments:n}),r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}function Hg(e){return!!e.category}function bS(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function ha(){let e=G().getPropagationContext().dsc;e&&delete e.replay_id;let t=bt();if(t){let r=Pe(t);delete r.replay_id}}function sg(e){let t=G().getPropagationContext().dsc;t&&(t.replay_id=e);let r=bt();if(r){let n=Pe(r);n.replay_id=e}}function _S(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:M.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function yS(e,t){return e.recordingMode!=="buffer"||t.message===Sc||!t.exception||t.type?!1:Pg(e.getOptions().errorSampleRate)}function vS(e){return Object.assign((t,r)=>{if(e.session&&fa(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&ha(),!e.isEnabled()||e.isPaused())return t;if(oS(t))return delete t.breadcrumbs,t;if(!Cc(t)&&!hc(t)&&!ig(t))return t;if(!e.checkAndHandleExpiredSession())return ha(),t;if(ig(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),_S(e,t),t;if(bS(t,r)&&!e.getOptions()._experiments.captureExceptions)return O&&x.log("Ignoring error from rrweb internals",t),null;let i=yS(e,t);if((i||e.recordingMode==="session")&&(t.tags=y(p({},t.tags),{replayId:e.getSessionId()})),i&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){let a=e.session;a.dirty=!0,e.getOptions().stickySession&&Aa(a)}return t},{id:"Replay"})}function Ra(e,t){return t.map(({type:r,start:n,end:i,name:s,data:a})=>{let o=e.throttledAddEvent({type:M.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:r,description:s,startTimestamp:n,endTimestamp:i,data:a}}});
21return typeof o=="string"?Promise.resolve(null):o})}function SS(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}function ES(e){return t=>{if(!e.isEnabled())return;let r=SS(t);r!==null&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(Ra(e,[r]),!1)))}}function TS(e,t){return O&&e.getOptions()._experiments.traceInternals?!1:pl(t,R())}function Gg(e,t){e.isEnabled()&&t!==null&&(TS(e,t.name)||e.addUpdate(()=>(Ra(e,[t]),!0)))}function Oa(e){if(!e)return;let t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=Qs(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(r){}}function Wg(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function ba(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r=p({},e._meta),n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function Yg(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:s,statusCode:a,request:o,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:s,statusCode:a,request:o,response:l}}}function Oi(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function nr(e,t,r){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:s}=IS(r);return n.body=i,s?.length&&(n._meta={warnings:s}),n}function bc(e,t){return Object.entries(e).reduce((r,[n,i])=>{let s=n.toLowerCase();return t.includes(s)&&e[n]&&(r[s]=i),r},{})}function IS(e){if(!e||typeof e!="string")return{body:e};let t=e.length>Fm,r=AS(e);if(t){let n=e.slice(0,Fm);return r?{body:n,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${n}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch(n){}return{body:e}}function AS(e){let t=e[0],r=e[e.length-1];return t==="["&&r==="]"||t==="{"&&r==="}"}function _a(e,t){let r=RS(e);return Qe(r,t)}function RS(e,t=X.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(X.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}function OS(e,t,r){return B(this,null,function*(){try{let n=yield kS(e,t,r),i=Yg("resource.fetch",n);Gg(r.replay,i)}catch(n){O&&x.exception(n,"Failed to capture fetch breadcrumb")}})}function xS(e,t){let{input:r,response:n}=t,i=r?ea(r):void 0,s=Oa(i),a=n?Wg(n.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),a!==void 0&&(e.data.response_body_size=a)}function kS(e,t,r){return B(this,null,function*(){let n=Date.now(),{startTimestamp:i=n,endTimestamp:s=n}=t,{url:a,method:o,status_code:l=0,request_body_size:c,response_body_size:d}=e.data,u=_a(a,r.networkDetailAllowUrls)&&!_a(a,r.networkDetailDenyUrls),m=u?NS(r,t.input,c):Oi(c),g=yield wS(u,r,t.response,d);return{startTimestamp:i,endTimestamp:s,url:a,method:o,statusCode:l,request:m,response:g}})}function NS({networkCaptureBodies:e,networkRequestHeaders:t},r,n){let i=r?LS(r,t):{};if(!e)return nr(i,n,void 0);let s=ea(r),[a,o]=Zs(s,x),l=nr(i,n,a);return o?ba(l,o):l}function wS(s,a,o,l){return B(this,arguments,function*(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&i!==void 0)return Oi(i);let c=n?zg(n.headers,r):{};if(!n||!t&&i!==void 0)return nr(c,i,void 0);let[d,u]=yield MS(n),m=CS(d,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:c});return u?ba(m,u):m})}function CS(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let s=e?.length&&r===void 0?Oa(e):r;return n?t?nr(i,s,e):nr(i,s,void 0):Oi(s)}catch(s){return O&&x.exception(s,"Failed to serialize response body"),nr(i,r,void 0)}}function MS(e){return B(this,null,function*(){let t=DS(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[yield PS(t)]}catch(r){return r instanceof Error&&r.message.indexOf("Timeout")>-1?(O&&x.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(O&&x.exception(r,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}})}function zg(e,t){let r={};return t.forEach(n=>{e.get(n)&&(r[n]=e.get(n))}),r}
21function LS(e,t){return e.length===1&&typeof e[0]!="string"?ag(e[0],t):e.length===2?ag(e[1],t):{}}function ag(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?zg(r,t):Array.isArray(r)?{}:bc(r,t):{}}function DS(e){try{return e.clone()}catch(t){O&&x.exception(t,"Failed to clone response body")}}function PS(e){return new Promise((t,r)=>{let n=Lr(()=>r(new Error("Timeout while trying to read response body")),500);US(e).then(i=>t(i),i=>r(i)).finally(()=>clearTimeout(n))})}function US(e){return B(this,null,function*(){return yield e.text()})}function FS(e,t,r){return B(this,null,function*(){try{let n=qS(e,t,r),i=Yg("resource.xhr",n);Gg(r.replay,i)}catch(n){O&&x.exception(n,"Failed to capture xhr breadcrumb")}})}function BS(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=Oa(n),s=r.getResponseHeader("content-length")?Wg(r.getResponseHeader("content-length")):WS(r.response,r.responseType);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function qS(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:s=n,input:a,xhr:o}=t,{url:l,method:c,status_code:d=0,request_body_size:u,response_body_size:m}=e.data;if(!l)return null;if(!o||!_a(l,r.networkDetailAllowUrls)||_a(l,r.networkDetailDenyUrls)){let L=Oi(u),S=Oi(m);return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:d,request:L,response:S}}let g=o[Ct],h=g?bc(g.request_headers,r.networkRequestHeaders):{},_=bc(Wl(o),r.networkResponseHeaders),[A,E]=r.networkCaptureBodies?Zs(a,x):[void 0],[D,j]=r.networkCaptureBodies?HS(o):[void 0],P=nr(h,u,A),J=nr(_,m,D);return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:d,request:E?ba(P,E):P,response:j?ba(J,j):J}}function HS(e){let t=[];try{return[e.responseText]}catch(r){t.push(r)}try{return GS(e.response,e.responseType)}catch(r){t.push(r)}return O&&x.warn("Failed to get xhr response body",...t),[void 0]}function GS(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&we(e))return[JSON.stringify(e)];if(!e)return[void 0]}catch(r){return O&&x.exception(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return O&&x.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function WS(e,t){try{let r=t==="json"&&we(e)?JSON.stringify(e):e;return Oa(r)}catch(r){return}}function YS(e){let t=R();try{let{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a}=e.getOptions(),o={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",(l,c)=>zS(o,l,c))}catch(r){}}function zS(e,t,r){if(t.data)try{VS(t)&&$S(r)&&(BS(t,r),FS(t,r,e)),jS(t)&&KS(r)&&(xS(t,r),OS(t,r,e))}catch(n){O&&x.exception(n,"Error when enriching network breadcrumb")}}function VS(e){return e.category==="xhr"}function jS(e){return e.category==="fetch"}function $S(e){return e?.xhr}function KS(e){return e?.input!==void 0}function XS(e){let t=R();gi(xv(e)),Mr(ES(e)),mS(e),YS(e);let r=vS(e);Qn(r),t&&(t.on("beforeSendEvent",uS(e)),t.on("afterSendEvent",lS(e)),t.on("createDsc",n=>{let i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(n.replay_id=i)}),t.on("processSegmentSpan",aS(e)),t.on("spanStart",n=>{e.lastActiveSpan=n}),t.on("spanEnd",n=>{e.lastActiveSpan=n}),t.on("beforeSendFeedback",(n,i)=>B(null,null,function*(){let s=e.getSessionId();i?.includeReplay&&e.isEnabled()&&s&&n.contexts?.feedback&&(n.contexts.feedback.source==="api"&&(yield e.sendBufferedReplayOrFlush()),n.contexts.feedback.replay_id=s)})),t.on("openFeedbackWidget",()=>B(null,null,function*(){yield e.sendBufferedReplayOrFlush()})))}function JS(e){return B(this,null,function*(){try{return Promise.all(Ra(e,[QS(X.performance.memory)]))}catch(t){return[]}})}function QS(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}function ZS(e,t,r){return Go(e,t,y(p({},r),{setTimeoutImpl:Lr}))}function eE(){return/iPhone|iPad|iPod/i.test(ia?.userAgent??"")||/Macintosh/i.test(ia?.userAgent??"")&&ia?.maxTouchPoints&&ia?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function tE(e){let t=!1;return(r,n)=>{try{if(!e.checkAndHandleExpiredSession()){O&&x.warn("Received replay event after session expired.");return}let i=n||!t;t=!0,rE(r),e.clickDetector&&Tv(e.clickDetector,r),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!wc(e,r,i))return!0;
21if(!i)return!1;let s=e.session;if(iE(e,i),e.recordingMode==="buffer"&&s&&e.eventBuffer&&!s.dirty){let a=e.eventBuffer.getEarliestTimestamp();a&&(O&&x.log(`Updating session start time to earliest event in buffer to ${new Date(a)}`),s.started=a,e.getOptions().stickySession&&Aa(s))}return s?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}catch(i){e.handleException(i)}}}function rE(e){let t=e.data;if(!(e.type!==M.IncrementalSnapshot||!t||typeof t!="object"||!("source"in t)||t.source!==k.Mutation||!("attributes"in t)||!Array.isArray(t.attributes)))for(let r of t.attributes){let n=st.mirror.getNode(r.id),i=n&&st.mirror.getMeta(n);if(i?.type===Ia.Element)for(let[s,a]of Object.entries(r.attributes))a===null?delete i.attributes[s]:i.attributes[s]=a}}function nE(e){let t=e.getOptions();return{type:M.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function iE(e,t){!t||e.session?.segmentId!==0||wc(e,nE(e),!1)}function sE(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(t){return null}}function aE(e,t,r,n){return Te(Vn(e,$r(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function oE({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
22`;if(typeof e=="string")r=`${n}${e}`;else{let s=new TextEncoder().encode(n);r=new Uint8Array(s.length+e.length),r.set(s),r.set(e,s.length)}return r}function lE(i){return B(this,arguments,function*({client:e,scope:t,replayId:r,event:n}){let s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:r,integrations:s};e.emit("preprocessEvent",n,a);let o=yield Xn(e.getOptions(),n,a,t,e,Q());if(!o)return null;e.emit("postprocessEvent",o,a),o.platform=o.platform||"javascript";let l=e.getSdkMetadata(),{name:c,version:d,settings:u}=l?.sdk||{};return o.sdk=y(p({},o.sdk),{name:c||"sentry.javascript.unknown",version:d||"0.0.0",settings:u}),o})}function cE(a){return B(this,arguments,function*({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:s}){let o=oE({recordingData:e,headers:{segment_id:r}}),{urls:l,errorIds:c,traceIds:d,segmentNames:u,initialTimestamp:m}=n,g=R(),h=G(),_=g?.getTransport(),A=g?.getDsn();if(!g||!_||!A||!s.sampled)return Promise.resolve({});let E={type:K_,replay_start_timestamp:m/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,segment_names:u,urls:l,replay_id:t,segment_id:r,replay_type:s.sampled},D=yield lE({scope:h,client:g,replayId:t,event:E});if(!D)return g.recordDroppedEvent("event_processor","replay"),O&&x.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete D.sdkProcessingMetadata;let j=aE(D,o,A,g.getOptions().tunnel),P;try{P=yield _.send(j)}catch(L){let S=new Error(Sc);try{S.cause=L}catch(F){}throw S}let J=ni({},P);if(ri(J,"replay"))throw new xi(J);if(typeof P.statusCode=="number"&&(P.statusCode<200||P.statusCode>=300))throw new ya(P.statusCode);return P})}function Vg(r){return B(this,arguments,function*(e,t={count:0,interval:ty}){let{recordingData:n,onError:i}=e;if(n.length)try{return yield cE(e),!0}catch(s){if(s instanceof ya||s instanceof xi)throw s;if(Sr("Replays",{_retryCount:t.count}),i&&i(s),t.count>=ry){let a=new Error(`${Sc} - max retries exceeded`);try{a.cause=s}catch(o){}throw a}return t.interval*=++t.count,new Promise((a,o)=>{Lr(()=>B(null,null,function*(){try{yield Vg(e,t),a(!0)}catch(l){o(l)}}),t.interval)})}})}function uE(e,t,r){let n=new Map,i=o=>{let l=o-r;n.forEach((c,d)=>
22{d<l&&n.delete(d)})},s=()=>[...n.values()].reduce((o,l)=>o+l,0),a=!1;return(...o)=>{let l=Math.floor(Date.now()/1e3);if(i(l),s()>=t){let d=a;return a=!0,d?pE:jg}a=!1;let c=n.get(l)||0;return n.set(l,c+1),e(...o)}}function bi(e,t){return[...e,...t].join(",")}function dE({mask:e,unmask:t,block:r,unblock:n,ignore:i}){let s=["base","iframe[srcdoc]:not([src])"],a=bi(e,[".sentry-mask","[data-sentry-mask]"]),o=bi(t,[]);return{maskTextSelector:a,unmaskTextSelector:o,blockSelector:bi(r,[".sentry-block","[data-sentry-block]",...s]),unblockSelector:bi(n,[]),ignoreSelector:bi(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function mE({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:s}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return s;let a=r.includes(t),o=n&&t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"");return a||o?s.replace(/[\S]/g,"*"):s}function hE(){if(typeof Request>"u"||cg)return;let e=Request;try{let t=function(r,n){let i=new e(r,n);return n?.body!=null&&(i[fE]=n.body),i};t.prototype=e.prototype,I.Request=t,cg=!0}catch(t){}}function _E(e,t){let r=t.getOptions(),n=p({sessionSampleRate:0,errorSampleRate:0},e),i=ft(r.replaysSessionSampleRate),s=ft(r.replaysOnErrorSampleRate);return i==null&&s==null&&fe(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(n.sessionSampleRate=i),s!=null&&(n.errorSampleRate=s),n}function pg(e){return[...gE,...e.map(t=>t.toLowerCase())]}var X,vc,K_,Sc,X_,J_,Q_,Z_,ey,ty,ry,Fm,ta,ny,iy,Ec,sy,ay,Bm,oy,ly,qm,pe,oa,Hm,Gm,yy,vy,Ei,pn,Wm,Ty,Iy,Ay,Ry,xy,ky,Ym,un,zm,pa,ec,Vm,M,k,Re,Mt,dn,vi,W,jm,Xy,hi,ua,tc,rc,Km,nc,hn,tv,Qm,Ai,sc,ac,oc,lc,cc,pc,ie,ma,it,Zm,dv,mv,gv,rr,_v,uc,vv,Ia,Rv,xv,Dv,O,Vv,tg,sa,x,Ri,ga,dc,mc,gc,ng,ia,ya,xi,va,jg,pE,_c,og,gE,fE,lg,cg,bE,yc,$g=f(()=>{"use strict";nt();Dr();X=I,vc="sentryReplaySession",K_="replay_event",Sc="Unable to send Replay",X_=3e5,J_=9e5,Q_=5e3,Z_=5500,ey=6e4,ty=5e3,ry=3,Fm=15e4,ta=5e3,ny=3e3,iy=300,Ec=2e7,sy=4999,ay=5e4,Bm=36e5,oy=Object.defineProperty,ly=(e,t,r)=>t in e?oy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qm=(e,t,r)=>ly(e,typeof t!="symbol"?t+"":t,r),pe=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(pe||{});oa=class{constructor(){qm(this,"idNodeMap",new Map),qm(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};Hm="__rrweb_original__";Gm={};yy=1,vy=new RegExp("[^a-z0-9-_:]"),Ei=-2;Ty=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Iy=/^(?:[a-z+]+:)?\/\//i,Ay=/^www\..*/i,Ry=/^(data:)([^,]*),(.*)/i;xy=/^[^ \t\n\r\u000c]+/,ky=/^[, \t\n\r\u000c]+/;Ym=new WeakMap;un=`Please stop import mirror directly. Instead of that,\r
23now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
24or you can use record.mirror to access the mirror instance during recording.`,zm={map:{},getId(){return console.error(un),-1},getNode(){return console.error(un),null},removeNodeFromMap(){console.error(un)},has(){return console.error(un),!1},reset(){console.error(un)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(zm=new Proxy(zm,{get(e,t,r){return t==="map"&&console.error(un),Reflect.get(e,t,r)}}));pa=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(pa=()=>new Date().getTime());ec=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};Vm={};M=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(M||{}
24),k=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(k||{}),Re=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Re||{}),Mt=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Mt||{}),dn=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(dn||{});W=e=>vi?(...r)=>{try{return e(...r)}catch(n){if(vi&&vi(n)===!0)return()=>{};throw n}}:e,jm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xy=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(hi=0;hi<jm.length;hi++)Xy[jm.charCodeAt(hi)]=hi;ua=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}};tc=class{constructor(t){this.doc=t,this.unattachedDoc=null}parse(t){return this.parseWithConstructableStylesheet(t)||this.parseWithDetachedElement(t)}parseWithConstructableStylesheet(t){if(typeof CSSStyleSheet>"u"||typeof CSSStyleSheet.prototype.replaceSync!="function")return null;try{let r=new CSSStyleSheet;r.replaceSync(`x { ${t} }`);let n=r.cssRules[0];return!n||n.type!==CSSRule.STYLE_RULE?null:n.style}catch(r){return null}}parseWithDetachedElement(t){let r=this.getUnattachedDoc().createElement("span");return r.setAttribute("style",t),r.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}return this.unattachedDoc}};rc=class{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=r?.next||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&$m(t.previousSibling)){let n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&$m(t.nextSibling)&&t.nextSibling.__ln.previous){let n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Km=(e,t)=>`${e}@${t}`,nc=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,n=new rc,i=l=>{let c=l,d=Ei;for(;d===Ei;)c=c&&c.nextSibling,d=c&&this.mirror.getId(c);return d},s=l=>{if(!l.parentNode||!Og(l))return;let c=_i(l.parentNode)?this.mirror.getId(Rg(l)):this.mirror.getId(l.parentNode),d=i(l);if(c===-1||d===-1)return n.addNode(l);let u=fn(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inl
24ineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{Ig(m,this.mirror)&&!Be(m,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(m),Ag(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),Zl(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(m,g)=>{if(Be(m,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(m,g);let h=Ii(m);h&&this.canvasManager.addWindow(h),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,g)=>{this.stylesheetManager.attachLinkElement(m,g)},onBlockedImageLoad:(m,g,{width:h,height:_})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:g.id,attributes:{style:{width:`${h}px`,height:`${_}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});u&&(t.push({parentId:c,nextId:d,node:u}),r.add(u.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let l of this.movedSet)Xm(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||s(l);for(let l of this.addedSet)!Jm(this.droppedSet,l)&&!Xm(this.removes,l,this.mirror)||Jm(this.movedSet,l)?s(l):this.droppedSet.add(l);let a=null;for(;n.length;){let l=null;if(a){let c=this.mirror.getId(a.value.parentNode),d=i(a.value);c!==-1&&d!==-1&&(l=a)}if(!l){let c=n.tail;for(;c;){let d=c;if(c=c.previous,d){let u=this.mirror.getId(d.value.parentNode);if(i(d.value)===-1)continue;if(u!==-1){l=d;break}else{let g=d.value;if(g.parentNode&&g.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=g.parentNode.host;if(this.mirror.getId(h)!==-1){l=d;break}}}}}}if(!l){for(;n.head;)n.removeNode(n.head.value);break}a=l.previous,n.removeNode(l.value),s(l.value)}let o={texts:this.texts.map(l=>({id:this.mirror.getId(l.node),value:l.value})).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{let{attributes:c}=l;if(typeof c.style=="string"){let d=JSON.stringify(l.styleDiff),u=JSON.stringify(l._unchangedStyles);d.length<c.style.length&&(d+u).split("var(").length===c.style.split("var(").length&&(c.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:c}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=t=>{if(!zl(t.target,this.mirror))switch(t.type){case"characterData":{let r=t.target.textContent;!Be(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:_n(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r,Eg(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,n=t.attributeName,i=t.target.getAttribute(n);if(n==="value"){let a=Tc(r),o=r.tagName;i=la(r,o,a);let l=Sa({maskInputOptions:this.maskInputOptions,tagName:o,type:a}),c=_n(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,l);i=Si({isMasked:c,element:r,value:i,maskInputFn:this.maskInputFn})}if(Be(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let s=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(i))if(!Oc(r))n="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!bg(r.tagName,n)&&(s.attributes[n]=hg(this.doc,bn(r.tagName),bn(n),i,r,this.maskAttributeFn),n==="style")){let a=t.oldValue?this.styleDeclarationParser.parse(t.oldValue):null;for(let o of Array.from(r.style)){let l=r.style.getPropertyValue(o),c=r.style.getPropertyPriority(o);l!==(a?.getPropertyValue(o)||"")||c!==(a?.getPropertyPriority(o)||"")?c===""?s.styleDiff[o]=l:s.styleDiff[o]=[l,c]:s._unchangedStyles[o]=[l,c]}
24if(a)for(let o of Array.from(a))r.style.getPropertyValue(o)===""&&(s.styleDiff[o]=!1)}break}case"childList":{if(Be(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let n=this.mirror.getId(r),i=_i(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Be(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||zl(r,this.mirror)||!Gy(r,this.mirror)||(this.addedSet.has(r)?(ic(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||Tg(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Km(n,i)]?ic(this.movedSet,r):this.removes.push({parentId:i,id:n,isShadow:_i(t.target)&&yi(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(zl(t,this.mirror))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[Km(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Be(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(n=>this.genAdds(n)),Zl(t)&&t.shadowRoot.childNodes.forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(r=>{this[r]=t[r]}),this.styleDeclarationParser=new tc(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};hn=[];tv=["INPUT","TEXTAREA","SELECT"],Qm=new WeakMap;Ai=class{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,r,n,i){let s=n||this.getIdToRemoteIdMap(t),a=i||this.getRemoteIdToIdMap(t),o=s.get(r);return o||(o=this.generateIdFn(),s.set(r,o),a.set(o,r)),o}getIds(t,r){let n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return r.map(s=>this.getId(t,s,n,i))}getRemoteId(t,r,n){let i=n||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let s=i.get(r);return s||-1}getRemoteIds(t,r){let n=this.getRemoteIdToIdMap(t);return r.map(i=>this.getRemoteId(t,i,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},sc=class{constructor(){this.crossOriginIframeMirror=new Ai(Ic),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},ac=class{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ai(Ic),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ai(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0);let r=Ii(t);r&&this.crossOriginIframeMap.set(r,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&Ii(t)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);let n=Oc(t);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let i=this.crossOriginIframeMap.get(t.source);if(!i)return;let s=this.transformCrossOriginEvent(i,r.data.event);s&&this.wrappedEmit(s,r.data.isCheckout)}transformCrossOriginEvent(t,r){switch(r.type){case M.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:M.IncrementalSnapshot,data:{source:k.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case M.Meta:case M.Load:case M.DomContentLoaded:return!1;case M.Plugin:return r;case M.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case M.IncrementalSnapshot:switch(r.data.source){case k.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(n.node,i)}
24),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case k.Drag:case k.TouchMove:case k.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case k.ViewportResize:return!1;case k.MediaInteraction:case k.MouseInteraction:case k.Scroll:case k.CanvasMutation:case k.Input:return this.replaceIds(r.data,t,["id"]),r;case k.StyleSheetRule:case k.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case k.Font:return r;case k.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case k.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),r.data.styles?.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,n,i){for(let s of i)!Array.isArray(r[s])&&typeof r[s]!="number"||(Array.isArray(r[s])?r[s]=t.getIds(n,r[s]):r[s]=t.getId(n,r[s]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==pe.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}},oc=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},lc=class{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!yi(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);let n=kg(y(p({},this.bypassOptions),{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Ng(y(p({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),Ta(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(wg({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){let r=Oc(t),n=Ii(t);!r||!n||this.patchAttachShadow(n.Element,r)}patchAttachShadow(t,r){let n=this;this.restoreHandlers.push(Ac(t.prototype,"attachShadow",function(i){return function(s){let a=i.call(this,s);return this.shadowRoot&&Og(this)&&n.addShadowRoot(this.shadowRoot,r),a}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},cc=class{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new ec,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let n={id:r,styleIds:[]},i=[];for(let s of t){let a;this.styleMirror.has(s)?a=this.styleMirror.getId(s):(a=this.styleMirror.add(s),i.push({styleId:a,rules:Array.from(s.rules||CSSRule,(o,l)=>({rule:ug(o),index:l}))})),n.styleIds.push(a)}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},pc=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,r){let n=this.nodeMap.get(t);return n&&Array.from(n).some(i=>i!==r)}add(t,r){this.active||(this.active=!0,Vy(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}};try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}it=hy();st.mirror=it;st.takeFullSnapshot=pv;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Zm||(Zm={}));dv=3,mv=5;gv="button,a";_v=new Set([k.Mutation,k.StyleSheetRule,k.StyleDeclaration,k.AdoptedStyleSheet,k.CanvasMutation,k.Selection,k.MediaInteraction]);uc=class{constructor(t,r,n=Ni){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=r.timeout/1e3,this._threshold=r.threshold/1e3,this._scrollTimeout=r.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=r.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let t=hv(()=>{this._lastMutation=eg()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,r){if(Sv(r,this._ignoreSelector)||!Ev(t))return;let n={timestamp:Vl(t.timestamp),clickBreadcrumb:t,clickCount:0,node:r};this._clicks.some(i=>i.node===n.node&&Math.abs(i.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Vl(t)}registerScroll(t=Date.now()){this._lastScroll=Vl(t)}registerClick(t){let r=Cg(t);this._handleMultiClick(r)}_handleMultiClick(t){this._getClicks(t).forEach(r=>{r.clickCount++})}_getClicks(t){return this._clicks.filter(r=>r.node===t)}_checkClicks(){let t=[],r=eg();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=r&&t.push(n)});for(let n of t){let i=this._clicks.indexOf(n);i>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){let r=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,s=!n&&!i,{clickCount:a,clickBreadcrumb:o}=t;if(s){let l=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,c=l<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:y(p({},o.data),{url:X.location.href,route:r.getCurrentRoute(),timeAfterClickMs:l,endReason:c,clickCount:a||1})};this._addBreadcrumbEvent(r,d);return}if(a>1){let l={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:y(p({},o.data),{url:X.location.href,route:r.getCurrentRoute(),clickCount:a,metric:!0})};this._addBreadcrumbEvent(r,l)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Lr(()=>this._checkClicks(),1e3)}},vv=["A","BUTTON","INPUT"];Ia=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Ia||{}),Rv=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);xv=e=>t=>{if(!e.isEnabled())return;let r=kv(t);if(!r)return;let n=t.name==="click",i=n?t.event:void 0;n&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&yv(e.clickDetector,r,Mg(t.event)),Ni(e,r)};Dv={resource:qv,paint:Fv,navigation:Bv};O=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Vv='
vendor: 10,329 bytes, line 24
24var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
24';tg=["log","warn","error"],sa="[Replay] ";x=$v(),Ri=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Ec}.`)}},ga=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}addEvent(t){return B(this,null,function*(){let r=JSON.stringify(t).length;if(this._totalSize+=r,this._totalSize>Ec)throw new Ri;this.events.push(t)})}finish(){return new Promise(t=>{let r=this.events;this.clear(),t(JSON.stringify(r))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=null;for(let{timestamp:r}of this.events)(t===null||r<t)&&(t=r);return t===null?t:xc(t)}},dc=class{constructor(t){this._onMessage=({data:r})=>{let n=r;if(typeof n.id!="number")return;let i=this._pending.get(n.id);if(!(!i||i.method!==n.method)){if(this._pending.delete(n.id),!n.success){O&&x.error("Error in compression worker: ",n.response),i.reject(new Error("Error in compression worker"));return}i.resolve(n.response)}},this._worker=t,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,r)=>{this._worker.addEventListener("message",({data:n})=>{n.success?t():(O&&x.warn("Received worker message with unsuccessful status",n),r(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",n=>{O&&x.warn("Failed to load Replay compression worker",n),r(new Error(`Failed to load Replay compression worker: ${n instanceof ErrorEvent&&n.message?n.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){O&&x.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(t=>t.reject(new Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(t,r){let n=this._getAndIncrementId();return new Promise((i,s)=>{this._pending.set(n,{method:t,resolve:i,reject:s});try{this._worker.postMessage({id:n,method:t,arg:r})}catch(a){this._pending.delete(n),s(a)}})}_getAndIncrementId(){return this._id++}},mc=class{constructor(t){this._worker=new dc(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){let r=xc(t.timestamp);(!this._earliestTimestamp||r<this._earliestTimestamp)&&(this._earliestTimestamp=r);let n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>Ec?Promise.reject(new Ri):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{O&&x.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}_finishRequest(){return B(this,null,function*(){let t=yield this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t})}},gc=class{constructor(t){this._fallback=new ga,this._compression=new mc(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}finish(){return B(this,null,function*(){return yield this.ensureWorkerIsLoaded(),this._used.finish()})}
24ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}_ensureWorkerIsLoaded(){return B(this,null,function*(){try{yield this._compression.ensureReady()}catch(t){O&&x.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}yield this._switchToCompressionWorker()})}_switchToCompressionWorker(){return B(this,null,function*(){let{events:t,hasCheckout:r,waitForCheckout:n}=this._fallback,i=[];for(let s of t)i.push(this._compression.addEvent(s));this._compression.hasCheckout=r,this._compression.waitForCheckout=n,this._used=this._compression;try{yield Promise.all(i),this._fallback.clear()}catch(s){O&&x.exception(s,"Failed to add events when switching buffers.")}})}};ng=100;ia=I.navigator;ya=class extends Error{constructor(t){super(`Transport returned status code ${t}`)}},xi=class extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}},va=class extends Error{constructor(){super("Session is too long, not sending replay")}};jg="__THROTTLED",pE="__SKIPPED";_c=class{constructor({options:t,recordingOptions:r}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:X_,sessionIdleExpire:J_},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=r,this._options=t,this._debouncedFlush=ZS(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=uE((a,o)=>iS(this,a,o),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),s=n?{threshold:Math.min(ny,n),timeout:n,scrollTimeout:iy,ignoreSelector:i?i.join(","):""}:void 0;if(s&&(this.clickDetector=new uc(this,s)),O){let a=t._experiments;x.setConfig({captureExceptions:!!a.captureExceptions,traceInternals:!!a.traceInternals})}this._handleVisibilityChange=()=>{X.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let a=vt({category:"ui.blur"});this._doChangeToBackgroundTasks(a)},this._handleWindowFocus=()=>{let a=vt({category:"ui.focus"});this._doChangeToForegroundTasks(a)},this._handleKeyboardEvent=a=>{Cv(this,a)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){O&&x.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){let{errorSampleRate:r,sessionSampleRate:n}=this._options,i=r<=0&&n<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){O&&x.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",O&&x.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){O&&x.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){O&&x.log("Buffering is in progress, call `flush()` to save the replay");return}O&&x.infoTick("Starting replay in session mode"),this._updateUserActivity();let t=Kl({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){O&&x.log("Buffering is in progress, call `flush()` to save the replay");return}O&&x.infoTick("Starting replay in buffer mode");let t=Kl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let t=this._canvas;this._stopRecording=st(p(y(p(y(p(p({},this._recordingOptions),this.recordingMode==="buffer"?{checkoutEveryNms:ey}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)}),{emit:tE(this)}),eE()),{onMutation:this._onMutationHandler.bind(this)}),t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}))}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}stop(){return B(this,arguments,function*({forceFlush:t=!1,reason:r}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";let n=r??"manual";R()?.emit("replayEnd",{sessionId:this.session?.id,reason:n});try{O&&x.log(`Stopping Replay triggered by ${n}`),ha(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&(yield this._flush({force:!0})),this.eventBuffer?.destroy(),this.eventBuffer=null,Qv(this)}catch(i){this.handleException(i)}})}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),O&&x.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),O&&x.log("Resuming replay"))}sendBufferedReplayOrFlush(){return B(this,arguments,function*({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let r=Date.now();O&&x.log("Converting buffer to session"),yield this.flushImmediate();let n=this.stopRecording();!t||!n||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(r),this._updateSessionActivity(r),this._maybeSaveSession(),sg(this.session.id)),this.startRecording())})}addUpdate(t){let r=t();this.recordingMode==="buffer"||!this._isEnabled||r!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}
24checkAndHandleExpiredSession(){if(this._lastActivity&&fc(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let t=`${X.location.pathname}${X.location.hash}${X.location.search}`,r=`${X.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=r,this._context.initialTimestamp=Date.now(),this._context.urls.push(r)}throttledAddEvent(t,r){let n=this._throttledAddEvent(t,r);if(n===jg){let i=vt({category:"replay.throttled"});this.addUpdate(()=>!wc(this,{type:mv,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return n}getCurrentRoute(){let t=this.lastActiveSpan||bt(),r=t&&ne(t),i=(r&&z(r).data||{})[ce];if(!(!r||!i||!["route","custom"].includes(i)))return z(r).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Kv({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&R()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),this.recordingMode==="session"&&this.session&&sg(this.session.id)}_initializeSessionForSampling(t){let r=this._options.errorSampleRate>0,n=Kl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:r});this.session=n}_checkSession(){if(!this.session)return!1;let t=this.session;return fa(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}_refreshSession(t){return B(this,null,function*(){this._isEnabled&&(yield this.stop({reason:"sessionExpired"}),this.initializeSampling(t.id))})}_addListeners(){try{X.document.addEventListener("visibilitychange",this._handleVisibilityChange),X.addEventListener("blur",this._handleWindowBlur),X.addEventListener("focus",this._handleWindowFocus),X.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(XS(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=zv(this)}_removeListeners(){try{X.document.removeEventListener("visibilitychange",this._handleVisibilityChange),X.removeEventListener("blur",this._handleWindowBlur),X.removeEventListener("focus",this._handleWindowFocus),X.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;if(fa(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){ha();return}t&&this._createCustomBreadcrumb(t),this.conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){O&&x.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:M.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=Pv(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let r=this._context.initialTimestamp/1e3;t=t.filter(n=>n.start>=r)}return Promise.all(Ra(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:r}=this;if(!t||!r||this._requiresManualStart||t.segmentId)return;let n=r.getEarliestTimestamp();
24n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),t}_runFlush(){return B(this,null,function*(){let t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){O&&x.error("No session or eventBuffer found to flush.");return}if(yield this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(yield JS(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let r=Date.now();if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new va;let n=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();let s=yield this.eventBuffer.finish();yield Vg({replayId:t,recordingData:s,segmentId:i,eventContext:n,session:this.session,timestamp:r,onError:a=>this.handleException(a)})}catch(r){this.handleException(r),this.stop({reason:"sendError"});let n=R();if(n){let i;r instanceof xi?i="ratelimit_backoff":r instanceof va?i="invalid":i="send_error",n.recordDroppedEvent(i,"replay")}}})}_flush(){return B(this,arguments,function*({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){O&&x.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let r=this.session.started,i=Date.now()-r;this._debouncedFlush.cancel();let s=i<this._options.minReplayDuration,a=i>this._options.maxReplayDuration+5e3;if(s||a){O&&x.log(`Session duration (${Math.floor(i/1e3)}s) is too ${s?"short":"long"}, not sending replay.`),s&&this._debouncedFlush();return}let o=this.eventBuffer;o&&this.session.segmentId===0&&!o.hasCheckout&&O&&x.log("Flushing initial segment without checkout.");let l=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{yield this._flushLock}catch(c){this.handleException(c)}finally{this._flushLock=void 0,l&&this._debouncedFlush()}})}_maybeSaveSession(){this.session&&this._options.stickySession&&Aa(this.session)}_onMutationHandler(t){let{ignoreMutations:r}=this._options._experiments;if(r?.length&&t.some(o=>{let l=sE(o.target),c=r.join(",");return l?.matches(c)}))return!1;let n=t.length,i=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,a=i&&n>i;if(n>s||a){let o=vt({category:"replay.mutations",data:{count:n,limit:a}});this._createCustomBreadcrumb(o)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}};og='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',gE=["content-length","content-type","accept"],fE=Symbol.for("sentry__originalRequestBody"),lg=!1,cg=!1;bE=e=>
24new yc(e),yc=class{constructor({flushMinDelay:t=Q_,flushMaxDelay:r=Z_,minReplayDuration:n=sy,maxReplayDuration:i=Bm,stickySession:s=!0,useCompression:a=!0,workerUrl:o,_experiments:l={},maskAllText:c=!0,maskAllInputs:d=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:m=750,mutationLimit:g=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:_=[],networkDetailAllowUrls:A=[],networkDetailDenyUrls:E=[],networkCaptureBodies:D=!0,networkRequestHeaders:j=[],networkResponseHeaders:P=[],mask:J=[],maskAttributes:L=["title","placeholder","aria-label"],unmask:S=[],block:F=[],unblock:ue=[],ignore:T=[],maskFn:w,beforeAddRecordingEvent:V,beforeErrorSampling:se,onError:ae,attachRawBodyFromRequest:Ve=!1}={}){this.name="Replay";let _e=dE({mask:J,unmask:S,block:F,unblock:ue,ignore:T});if(this._recordingOptions=y(p({maskAllInputs:d,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:w,maskInputFn:w,maskAttributeFn:(ye,C,qe)=>mE({maskAttributes:L,maskAllText:c,privacyOptions:_e,key:ye,value:C,el:qe})},_e),{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:ye=>{try{ye.__rrweb__=!0}catch(C){}},recordCrossOriginIframes:!!l.recordCrossOriginIframes}),this._initialOptions={flushMinDelay:t,flushMaxDelay:r,minReplayDuration:Math.min(n,ay),maxReplayDuration:Math.min(i,Bm),stickySession:s,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:d,maskAllText:c,mutationBreadcrumbLimit:m,mutationLimit:g,slowClickTimeout:h,slowClickIgnoreSelectors:_,networkDetailAllowUrls:A,networkDetailDenyUrls:E,networkCaptureBodies:D,networkRequestHeaders:pg(j),networkResponseHeaders:pg(P),beforeAddRecordingEvent:V,beforeErrorSampling:se,onError:ae,attachRawBodyFromRequest:Ve,_experiments:l},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${og}`:og,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&yt())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return lg}set _isInitialized(t){lg=t}afterAllSetup(t){!yt()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&hE(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session",reason:"manual"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(t){let r=this.getReplayId(!0);r&&(kt(t,{"sentry.replay_id":r}),this.getRecordingMode()==="buffer"&&kt(t,{"sentry._internal.replay_is_buffering":!0}))}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){let r=_E(this._initialOptions,t);this._replay=new _c({options:r,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{let r=t.getIntegrationByName("ReplayCanvas");if(!r)return;this._replay._canvas=r.getOptions()}catch(r){}}}});function Lc(){return Mc>0}function yE(){Mc++,setTimeout(()=>{Mc--})}function Ur(e,t={}){function r(i){return typeof i=="function"}if(!r(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let s=e.__sentry_wrapped__;return typeof s=="function"?s:e}if(Pt(e))return e}catch(i){return e}let n=function(...i){I._sentryWrappedDepth=(I._sentryWrappedDepth||0)+1;try{let s=i.map(a=>Ur(a,t));return e.apply(this,s)}catch(s){throw yE(),Wt(a=>{a.addEventProcessor(o=>(t.mechanism&&(pr(o,void 0,void 0),We(o,t.mechanism)),o.extra=y(p({},o.extra),{arguments:i}),o)),xt(s)}),s}finally{I._sentryWrappedDepth=(I._sentryWrappedDepth||0)-1}};try{for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}catch(i){}Rn(n,e),$(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return e.name}})}catch(i){}return n}function wi(){let e=rt(),{referrer:t}=U.document||{},{userAgent:r}=U.navigator||{},n=p(p({},t&&{Referer:t}),r&&{"User-Agent":r});return{url:e,headers:n}}var U,Mc,at=f(()=>{"use strict";he();U=I,Mc=0});function xa(e,t){let r=ka(e,t),n={type:IE(t),value:AE(t)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function vE(e,t,r,n){let s=R()?.getOptions().normalizeDepth,a=xE(t),o={__serialized__:Nn(t,s)};if(a)return{exception:{values:[xa(e,a)]},extra:o};let l={exception:{values:[{type:Dt(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:RE(t,{isUnhandledRejection:n})}]},extra:o};if(r){let c=ka(e,r);c.length&&(l.exception.values[0].stacktrace={frames:c})}return l}function Dc(e,t){return{exception:{values:[xa(e,t)]}}}function ka(e,t){let r=t.stacktrace||t.stack||"",n=EE(t),i=TE(t);try{return e(r,n,i)}catch(s){}return[]}function EE(e){return e&&SE.test(e.message)?1:0}function TE(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Kg(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function IE(e){let t=e?.name;return!t&&Kg(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function AE(e){let t=e?.message;return Kg(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?ws(t.error):ws(e):"No error message"}function Xg(e,t,r,n){let i=r?.syntheticException||void 0,s=Na(e,t,i,n);return We(s),s.level="error",r?.event_id&&(s.event_id=r.event_id),_t(s)}function Jg(e,t,r="info",n,i){let s=n?.syntheticException||void 0,a=Pc(e,t,s,i);return a.level=r,n?.event_id&&(a.event_id=n.event_id),_t(a)}function Na(e,t,r,n,i){let s;if(Br(t)&&t.error)return Dc(e,t.error);if(An(t)||Gi(t)){let a=t;if("stack"in t){s=Dc(e,t);let o=s.exception?.values?.[0];if(n&&r&&o&&!o.stacktrace){let l=ka(e,r);l.length&&(o.stacktrace={frames:l},We(s,{synthetic:!0}))}}else{let o=a.name||(An(a)?"DOMError":"DOMException"),l=a.message?`${o}: ${a.message}`:o;s=Pc(e,l,r,n),pr(s,l)}return"code"in a&&(s.tags=y(p({},s.tags),{"DOMException.code":`${a.code}`})),s}
24return ut(t)?Dc(e,t):dt(t)||Dt(t)?(s=vE(e,t,r,i),We(s,{synthetic:!0}),s):(s=Pc(e,t,r,n),pr(s,`${t}`,void 0),We(s,{synthetic:!0}),s)}function Pc(e,t,r,n){let i={};if(n&&r){let s=ka(e,r);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),We(i,{synthetic:!0})}if(Lt(t)){let{__sentry_template_string__:s,__sentry_template_values__:a}=t;return i.logentry={message:s,params:a},i}return i.message=t,i}function RE(e,{isUnhandledRejection:t}){let r=Yi(e),n=t?"promise rejection":"exception";return Br(e)?`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``:Dt(e)?`Event \`${OE(e)}\` (type=${e.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function OE(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}function xE(e){return Object.values(e).find(t=>t instanceof Error)}var SE,wa=f(()=>{"use strict";he();SE=/Minified React error #\d+;/i});function kE(e){return p({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:U.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},e)}var Ca,Qg=f(()=>{"use strict";he();wa();at();Ca=class extends si{constructor(t){let r=kE(t),n=U.SENTRY_SDK_SOURCE||el();rn(r,"browser",["browser"],n),super(r);let{userInfo:i}=this.getDataCollectionOptions();r._metadata?.sdk&&(r._metadata.sdk.settings=p({infer_ip:i?"auto":"never"},r._metadata.sdk.settings));let{sendClientReports:s}=this._options;U.document&&U.document.addEventListener("visibilitychange",()=>{U.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),i&&this.on("beforeSendSession",ul)}eventFromException(t,r){return Xg(this._options.stackParser,t,r,this._options.attachStacktrace)}eventFromMessage(t,r="info",n){return Jg(this._options.stackParser,t,r,n,this._options.attachStacktrace)}_prepareEvent(t,r,n,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,r,n,i)}}});function Zg(e,t=Js("fetch")){let r=0,n=0;function i(s){return B(this,null,function*(){let a=s.body.length;r+=a,n++;let o=p({body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15},e.fetchOptions);try{let l=yield t(e.url,o);return{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}}catch(l){throw Hl("fetch"),l}finally{r-=a,n--}})}return Ts(e,i,Tr(e.bufferSize||NE))}var NE,ef=f(()=>{"use strict";he();Dr();NE=40});var ot,vn=f(()=>{"use strict";ot=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__});function Uc(e,t,r,n){let i={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return r!==void 0&&(i.lineno=r),n!==void 0&&(i.colno=n),i}var wE,CE,ME,LE,DE,PE,UE,FE,BE,qE,HE,GE,WE,tf,rf,nf=f(()=>{"use strict";he();wE=30,CE=50;ME=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,LE=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,DE=/\((\S*)(?::(\d+))(?::(\d+))\)/,PE=/at (.+?) ?\(data:(.+?),/,UE=e=>{let t=e.match(PE);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=ME.exec(e);if(r){let[,i,s,a]=r;return Uc(i,"?",+s,+a)}let n=LE.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let o=DE.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}let[s,a]=rf(n[1]||"?",n[2]);return Uc(a,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},FE=[wE,UE],BE=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,qE=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,HE=e=>{let t=BE.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let s=qE.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let n=t[3],i=t[1]||"?";return[i,n]=rf(i,n),Uc(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},GE=[CE,HE],WE=[FE,GE],tf=xn(...WE),rf=(e,t)=>{let r=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return r||n?[e.indexOf("@")!==-1?e.split("@")[0]:"?",r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}});function VE(e){return function(r){R()===e&&Ue({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:Ze(r)},{event:r})}}function jE(e,t){return function(n){if(R()!==e)return;let i,s,a=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>Ma&&(ot&&b.warn(`\`dom.maxStringLength\` cannot exceed ${Ma}, but a value of ${o} was configured. Sentry will use ${Ma}
24 instead.`),o=Ma),typeof a=="string"&&(a=[a]);try{let c=n.event,d=QE(c)?c.target:c;i=er(d,{keyAttrs:a,maxStringLength:o}),s=Ls(d)}catch(c){i="<unknown>"}if(i.length===0)return;let l={category:`ui.${n.name}`,message:i};s&&(l.data={"ui.component_name":s}),Ue(l,{event:n.event,name:n.name,global:n.global})}}function $E(e){return function(r){if(R()!==e)return;let n={category:"console",data:{arguments:r.args,logger:"console"},level:nn(r.level),message:wn(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${wn(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Ue(n,{input:r.args,level:r.level})}}function KE(e){return function(r){if(R()!==e)return;let{startTimestamp:n,endTimestamp:i}=r,s=r.xhr[Ct];if(!n||!i||!s)return;let{method:a,url:o,status_code:l,body:c}=s,d={method:a,url:o,status_code:l},u={xhr:r.xhr,input:c,startTimestamp:n,endTimestamp:i},m={category:"xhr",data:d,type:"http",level:Cs(l)};e.emit("beforeOutgoingRequestBreadcrumb",m,u),Ue(m,u)}}function XE(e){return function(r){if(R()!==e)return;let{startTimestamp:n,endTimestamp:i}=r;if(i&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){let s={data:r.error,input:r.args,startTimestamp:n,endTimestamp:i},a={category:"fetch",data:r.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,s),Ue(a,s)}else{let s=r.response,a=y(p({},r.fetchData),{status_code:s?.status}),o={input:r.args,response:s,startTimestamp:n,endTimestamp:i},l={category:"fetch",data:a,type:"http",level:Cs(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",l,o),Ue(l,o)}}}function JE(e){return function(r){if(R()!==e)return;let n=r.from,i=r.to,s=tn(U.location.href),a=n?tn(n):void 0,o=tn(i);a?.path||(a=s),s.protocol===o.protocol&&s.host===o.host&&(i=o.relative),s.protocol===a.protocol&&s.host===a.host&&(n=a.relative),Ue({category:"navigation",data:{from:n,to:i}})}}function QE(e){return!!e&&!!e.target}var Ma,YE,zE,Ci,Fc=f(()=>{"use strict";he();Dr();vn();at();Ma=1024,YE="Breadcrumbs",zE=(e={})=>{let t=p({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:YE,setup(r){t.console&&_l($E(r)),t.dom&&gi(jE(r,t.dom)),t.xhr&&Gl(KE(r)),t.fetch&&Al(XE(r)),t.history&&Mr(JE(r)),t.sentry&&r.on("beforeSendEvent",VE(r))}}},Ci=zE});function sf(e){return function(...t){let r=t[0];return t[0]=Ur(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Ee(e)}`}}),e.apply(this,t)}}function rT(e){return function(t){return e.apply(this,[Ur(t,{mechanism:{data:{handler:Ee(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function nT(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in r&&typeof r[i]=="function"&&te(r,i,function(s){let a={mechanism:{data:{handler:Ee(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},o=Pt(s);return o&&(a.mechanism.data.handler=Ee(o)),Ur(s,a)})}),e.apply(this,t)}}function iT(e,t){let n=U[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(te(n,"addEventListener",function(i){return function(s,a,o){try{sT(a)&&(a.handleEvent=Ur(a.handleEvent,{mechanism:{data:{handler:Ee(a),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch(l){}return t.unregisterOriginalCallbacks&&aT(this,s,a),i.apply(this,[s,Ur(a,{mechanism:{data:{handler:Ee(a),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),te(n,"removeEventListener",function(i){return function(s,a,o){try{if(Object.prototype.hasOwnProperty.call(a,"__sentry_wrapped__")){let l=a.__sentry_wrapped__;l&&i.call(this,s,l,o)}}catch(l){}return i.call(this,s,a,o)}}))}function sT(e){return typeof e.handleEvent=="function"}function aT(e,t,r){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,r)}var ZE,eT,tT,af,of=f(()=>{"use strict";he();at();ZE="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDB
24Request,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),eT="BrowserApiErrors",tT=(e={})=>{let t=p({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},e);return{name:eT,setupOnce(){t.setTimeout&&te(U,"setTimeout",sf),t.setInterval&&te(U,"setInterval",sf),t.requestAnimationFrame&&te(U,"requestAnimationFrame",rT),t.XMLHttpRequest&&"XMLHttpRequest"in U&&te(XMLHttpRequest.prototype,"send",nT);let r=t.eventTarget;r&&(Array.isArray(r)?r:ZE).forEach(i=>iT(i,t))}}},af=tT});var Mi,Bc=f(()=>{"use strict";he();Dr();vn();at();Mi=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof U.document>"u"){ot&&b.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Qr({ignoreDuration:!0});let r=!1;wr(()=>{r||(Er(),r=!0)});let n=Q(),i=n.getUser();n.addScopeListener(s=>{let a=s.getUser();(i?.id!==a?.id||i?.ip_address!==a?.ip_address)&&(i=a,r&&Er())}),t==="route"&&Mr(({from:s,to:a})=>{s!==a&&(Qr({ignoreDuration:!0}),Er(),r=!0)})}}}});function lf(){try{let e=U.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch(e){return}}var oT,lT,Li,qc=f(()=>{"use strict";he();at();oT="CultureContext",lT=()=>({name:oT,preprocessEvent(e){let t=lf();t&&(e.contexts=y(p({},e.contexts),{culture:p(p({},t),e.contexts?.culture)}))},processSegmentSpan(e){let t=lf();t&&kt(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}),Li=lT});function uT(e){Fo(t=>{let{stackParser:r,attachStacktrace:n}=pf();if(R()!==e||Lc())return;let{msg:i,url:s,line:a,column:o,error:l}=t,c=fT(Na(r,l||i,void 0,n,!1),s,a,o);c.level="error",Jr(c,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function dT(e){qo(t=>{let{stackParser:r,attachStacktrace:n}=pf();if(R()!==e||Lc())return;let i=mT(t),s=Xe(i)?gT(i):Na(r,i,void 0,n,!0);s.level="error",Jr(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function mT(e){if(Xe(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}function gT(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function fT(e,t,r,n){let i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},l=o.frames=o.frames||[];return l.length===0&&l.push({colno:n,lineno:r,filename:hT(t)??rt(),function:"?",in_app:!0}),e}function cf(e){ot&&b.log(`Global Handler attached: ${e}`)}function pf(){return R()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function hT(e){if(!(!le(e)||e.length===0))return e.startsWith("data:")?`<${Os(e,!1)}>`:e}var cT,pT,Di,Hc=f(()=>{"use strict";he();vn();wa();at();cT="GlobalHandlers",pT=(e={})=>{let t=p({onerror:!0,onunhandledrejection:!0},e);return{name:cT,setupOnce(){Error.stackTraceLimit=50}
24,setup(r){t.onerror&&(uT(r),cf("onerror")),t.onunhandledrejection&&(dT(r),cf("onunhandledrejection"))}}},Di=pT});var Pi,Gc=f(()=>{"use strict";he();at();Pi=()=>({name:"HttpContext",preprocessEvent(e){if(!U.navigator&&!U.location&&!U.document)return;let t=wi(),r=p(p({},t.headers),e.request?.headers);e.request=y(p(p({},t),e.request),{headers:r})},processSegmentSpan(e){let t=e.attributes?.[Ye];if(!U.navigator&&!U.location&&!U.document)return;let r=wi();kt(e,{"url.full":t!=="http.client"?r.url:void 0,"http.request.header.user_agent":r.headers["User-Agent"],"http.request.header.referer":r.headers.Referer})}})});var bT,_T,yT,vT,Ui,Wc=f(()=>{"use strict";he();wa();bT="cause",_T=5,yT="LinkedErrors",vT=(e={})=>{let t=e.limit||_T,r=e.key||bT;return{name:yT,preprocessEvent(n,i,s){let a=s.getOptions();bl(xa,a.stackParser,r,t,n,i)}}},Ui=vT});function uf(e){if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Yl(e)){let t=ET(e);if(ST.test(t))return`[HTMLElement: ${er(e)}]`}}function ET(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}var ST,df=f(()=>{"use strict";Dr();ST=/^HTML(\w*)Element$/});function mf(){return TT()?(ot&&fe(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function TT(){if(typeof U.window>"u")return!1;let e=U;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let r=rt();return!(U===U.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}var gf=f(()=>{"use strict";he();vn();at()});function ff(e){return[Rr(),Ar(),sn(),af(),Ci(),Di(),Ui(),Or(),Pi(),Li(),Mi()]}function Yc(e={}){let t=!e.skipBrowserExtensionCheck&&mf(),r=e.defaultIntegrations==null?ff():e.defaultIntegrations,n=y(p({},e),{enabled:t?!1:e.enabled,stackParser:Vi(e.stackParser||tf),integrations:Ko({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||Zg});return ji(uf),ll(Ca,n)}var hf=f(()=>{"use strict";he();Qg();Fc();of();Bc();qc();Hc();Gc();Wc();nf();ef();df();gf()});function La(e={}){let t=U.document,r=t?.head||t?.body;if(!r){ot&&b.error("[showReportDialog] Global document not defined");return}let n=G(),s=R()?.getDsn();if(!s){ot&&b.error("[showReportDialog] DSN not configured");return}let a=y(p({},e),{user:p(p({},n.getUser()),e.user),eventId:e.eventId||Jn()}),o=U.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=Vo(s,a);let{onLoad:l,onClose:c}=a;if(l&&(o.onload=l),c){let d=u=>{if(u.data==="__sentry_reportdialog_closed__")try{c()}finally{U.removeEventListener("message",d)}};U.addEventListener("message",d)}r.appendChild(o)}var bf=f(()=>{"use strict";he();vn();at()});var _f,yf=f(()=>{"use strict";_f={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1}});function zc(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:n}),e.emit("startNavigationSpan",t,{isRedirect:i,url:n});let s=G();return s.setTransactionName(t.name),n&&!i&&s.setSDKProcessingMetadata({normalizedRequest:y(p({},wi()),{url:n})}),RT(e)}function RT(e){return e[AT]}var HL,AT,vf=f(()=>{"use strict";he();at();yf();HL=p(y(p({},Ho),{instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{}}),_f);AT="_sentry_idleSpan"});var Da=f(()=>{"use strict";he();
24hf();bf();Fc();Hc();Gc();Wc();Bc();$g();vf();Dr();qc()});function kT(e={}){return[Rr(),Ar(),sn(),Ci(),Di(),Ui(),Or(),Pi(),Li(),Mi()]}function iP(e){let t=p({defaultIntegrations:kT()},e);return rn(t,"angular"),NT(),Yc(t)}function NT(){let t=Wa?.major&&parseInt(Wa.major,10);t&&(t<14&&Sf&&b.warn(`This Sentry SDK does not officially support Angular ${t}.`,"This SDK only supports Angular 14 and above.","If you're using lower Angular versions, check the Angular Version Compatibility table in our docs: https://docs.sentry.io/platforms/javascript/guides/angular/#angular-version-compatibility.","Otherwise, please consider upgrading your Angular version."),Sr("angular",{version:t}))}function Sn(e){return wT?Zone.root.run(e):e()}function CT(e){return e?.ngOriginalError?e.ngOriginalError:e}function MT(e){return Ef(e.error)?e.error:typeof ErrorEvent<"u"&&e.error instanceof ErrorEvent&&e.error.message?e.error.message:typeof e.error=="string"?`Server returned code ${e.status} with body "${e.error}"`:e.message}function Ef(e){if(e instanceof Error)return!0;if(e===null||typeof e!="object")return!1;let t=e;return le(t.name)&&le(t.message)&&(t.stack===void 0||le(t.stack))}function sP(e){return new LT(e)}function UT(e,t,r){if(!r)return;let{data:n,op:i}=z(r);if(!n||n[ce]==="url"){r.updateName(e);let s=fi(t);r.setAttributes({[Me]:`auto.${i}.angular`,[ce]:"route",[jp]:s,[$p]:Ir(s)?.pathname,[Kp]:e})}}function FT(e){let t=[],r=e?.firstChild;for(;r;){let i=r?.routeConfig&&r.routeConfig.path;if(i==null)break;t.push(i),r=r.firstChild}let n=t.filter(i=>i).join("/");return n?`/${n}/`:"/"}var Sf,wT,LT,DT,PT,aP,BT=f(()=>{"use strict";Da();Da();Da();Xc();Xc();nt();Of();ip();ip();Af();Rf();ho();Sf=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__;wT=typeof Zone<"u"&&Zone.root?.run;LT=(()=>{class e{constructor(r){this._options=p({logErrors:!0},r)}ngOnDestroy(){this._removeAfterSendEventListener&&this._removeAfterSendEventListener()}handleError(r){let n=this._extractError(r)||"Handled unknown error",i=Sn(()=>xt(n,{mechanism:{type:"auto.function.angular.error_handler",handled:!1}}));if(this._options.logErrors&&fe(()=>console.error(n)),this._options.showDialog){let s=R();s&&!this._removeAfterSendEventListener?this._removeAfterSendEventListener=s.on("afterSendEvent",a=>{!a.type&&a.event_id&&Sn(()=>{La(y(p({},this._options.dialogOptions),{eventId:a.event_id}))})}):s||Sn(()=>{La(y(p({},this._options.dialogOptions),{eventId:i}))})}}_extractError(r){if(this._options.extractor){let n=this._defaultExtractor.bind(this);return this._options.extractor(r,n)}return this._defaultExtractor(r)}_defaultExtractor(r){let n=CT(r);return n instanceof Jc?MT(n):typeof n=="string"||Ef(n)?n:null}}return e.\u0275fac=function(r){return new(r||e)(za("errorHandlerOptions"))},e.\u0275prov=Ya({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();DT="ui.angular.routing";aP=(()=>{class e{constructor(r){this._router=r,this.navStart$=this._router.events.pipe(Bi(n=>n instanceof Qc),qi(n=>{if(!PT){Sf&&b.error("Angular integration has tracing enabled, but Tracing integration is not configured");return}this._routingSpan&&(this._routingSpan.end(),this._routingSpan=null);let i=R(),s=Rs(n.url);if(i){this._isPageloadOngoing()?this._pageloadOngoing=!1:Sn(()=>{zc(i,{name:s,attributes:{[Me]:"auto.navigation.angular",[ce]:"url"}},{url:fi(n.url)})}),this._routingSpan=Sn(()=>jn({name:`${n.url}`,op:DT,attributes:p({[Me]:"auto.ui.angular",[ce]:"url",url:s},n.navigationTrigger&&{navigationTrigger:n.navigationTrigger})}))||null;return}})),this.resEnd$=this._router.events.pipe(Bi(n=>n instanceof rp),qi(n=>{let i=FT(n.state.root);i&&G().setTransactionName(i);let s=bt(),a=s&&ne(s);UT(i,n.urlAfterRedirects,a)})),this.navEnd$=this._router.events.pipe(Bi(n=>n instanceof Zc||n instanceof ep||n instanceof tp),qi(()=>{this._routingSpan&&(Sn(()=>{this._routingSpan.end()}),this._routingSpan=null)})),this._routingSpan=null,this._pageloadOngoing=!0,this._subscription=new Kc,this._subscription.add(this.navStart$.subscribe()),this._subscription.add(this.resEnd$.subscribe()),this._subscription.add(this.navEnd$.subscribe())}ngOnDestroy(){this._subscription.unsubscribe()}_isPageloadOngoing(){if(!this._pageloadOngoing)return!1;let r=bt();if(!r)return this._pageloadOngoing=!1,!1;let n=ne(r);return this._pageloadOngoing=z(n).op==="pageload",this._pageloadOngoing}}return e.\u0275fac=function(r){return new(r||e)(za(np))},e.\u0275prov=Ya({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()});
24export{xt as a,bE as b,Da as c,iP as d,sP as e,aP as f,BT as g};

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.