1import{r as Sn}from"./vendor-react-DQ_Xy7dv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"18a9bc4b0ed59767d2de3b701c124b8aedbc90fa"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="64613f18-be6a-4f56-82e4-ed19b743d31c",e._sentryDebugIdIdentifier="sentry-dbid-64613f18-be6a-4f56-82e4-ed19b743d31c")}catch{}})();const b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,W=globalThis,vt="10.46.0";function At(){return Hr(W),W}function Hr(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||vt,t[vt]=t[vt]||{}}function sn(e,t,n=W){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[vt]=r[vt]||{};return s[e]||(s[e]=t())}const ql=["debug","info","warn","error","log","assert","trace"],Gl="Sentry Logger ",br={};function Nt(e){if(!("console"in W))return e();const t=W.console,n={},r=Object.keys(br);r.forEach(s=>{const i=br[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Vl(){ai().enabled=!0}function Yl(){ai().enabled=!1}function ja(){return ai().enabled}function Kl(...e){oi("log",...e)}function Xl(...e){oi("warn",...e)}function Jl(...e){oi("error",...e)}function oi(e,...t){b&&ja()&&Nt(()=>{W.console[e](`${Gl}[${e}]:`,...t)})}function ai(){return b?sn("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const _={enable:Vl,disable:Yl,isEnabled:ja,log:Kl,warn:Xl,error:Jl},qa=50,Rt="?",eo=/\(error: (.*)\)/,to=/captureMessage|captureException/;function Ga(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(` 2`);for(let c=r;c<o.length;c++){let a=o[c];a.length>1024&&(a=a.slice(0,1024));const u=eo.test(a)?a.replace(eo,"$1"):a;if(!u.match(/\S*Error: /)){for(const l of t){const d=l(u);if(d){i.push(d);break}}if(i.length>=qa+s)break}}return Zl(i.slice(s))}}function Ql(e){return Array.isArray(e)?Ga(...e):e}function Zl(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Qn(t).function||"")&&t.pop(),t.reverse(),to.test(Qn(t).function||"")&&(t.pop(),to.test(Qn(t).function||"")&&t.pop()),t.slice(0,qa).map(n=>({...n,filename:n.filename||Qn(t).filename,function:n.function||Rt}))}function Qn(e){return e[e.length-1]||{}}const rs="<anonymous>";function Ge(e){try{return!e||typeof e!="function"?rs:e.name||rs}catch{return rs}}function no(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function Va(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const ur={},ro={};function ut(e,t){ur[e]=ur[e]||[],ur[e].push(t)}function lt(e,t){if(!ro[e]){ro[e]=!0;try{t()}catch(n){b&&_.error(`Error while instrumenting ${e}`,n)}}}function xe(e,t){const n=e&&ur[e];if(n)for(const r of n)try{r(t)}catch(s){b&&_.error(`Error while triggering instrumentation handler. 3Type: ${e} 4Name: ${Ge(r)} 5Error:`,s)}}let ss=null;function Ya(e){const t="error";ut(t,e),lt(t,ed)}function ed(){ss=W.onerror,W.onerror=function(e,t,n,r,s){return xe("error",{column:r,error:s,line:n,msg:e,url:t}),ss?ss.apply(this,arguments):!1},W.onerror.__SENTRY_INSTRUMENTED__=!0}let is=null;function Ka(e){const t="unhandledrejection";ut(t,e),lt(t,td)}function td(){is=W.onunhandledrejection,W.onunhandledrejection=function(e){return xe("unhandledrejection",e),is?is.apply(this,arguments):!0},W.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Xa=Object.prototype.toString;function On(e){switch(Xa.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ve(e,Error)}}function on(e,t){return Xa.call(e)===`[object ${t}]`}function Ja(e){return on(e,"ErrorEvent")}function so(e){return on(e,"DOMError")}function nd(e){return on(e,"DOMException")}function We(e){return on(e,"String")}function ci(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Kt(e){return e===null||ci(e)||typeof e!="object"&&typeof e!="function"}function In(e){return on(e,"Object")}function Wr(e){return typeof Event<"u"&&Ve(e,Event)}function rd(e){return typeof Element<"u"&&Ve(e,Element)}function sd(e){return on(e,"RegExp")}function Ot(e){return!!(e?.then&&typeof e.then=="function")}
5function id(e){return In(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ve(e,t){try{return e instanceof t}catch{return!1}}function Qa(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function ui(e){return typeof Request<"u"&&Ve(e,Request)}const li=W,od=80;function ve(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const c=" > ",a=c.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||od;for(;n&&i++<r&&(u=ad(n,l),!(u==="html"||i>1&&o+s.length*a+u.length>=d));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(c)}catch{return"<unknown>"}}function ad(e,t){const n=e,r=[];if(!n?.tagName)return"";if(li.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t?.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s?.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&We(i)){const o=i.split(/\s+/);for(const c of o)r.push(`.${c}`)}}for(const i of["aria-label","type","name","title","alt"]){const o=n.getAttribute(i);o&&r.push(`[${i}="${o}"]`)}return r.join("")}function an(){try{return li.document.location.href}catch{return""}}function Za(e){if(!li.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function be(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&ec(s,r);try{e[t]=s}catch{b&&_.log(`Failed to replace method "${t}" in object`,e)}}function ue(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{b&&_.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ec(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,ue(e,"__sentry_original__",t)}catch{}}function di(e){return e.__sentry_original__}function tc(e){if(On(e))return{message:e.message,name:e.name,stack:e.stack,...oo(e)};if(Wr(e)){const t={type:e.type,target:io(e.target),currentTarget:io(e.currentTarget),...oo(e)};return typeof CustomEvent<"u"&&Ve(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function io(e){try{return rd(e)?ve(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function oo(e){return typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e)):{}}function cd(e){const t=Object.keys(tc(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let Bt;function Dn(e){if(Bt!==void 0)return Bt?Bt(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=W;return t in n&&typeof n[t]=="function"?(Bt=n[t],Bt(e)):(Bt=null,e())}function Ze(){return Dn(()=>Math.random())}function Pn(){return Dn(()=>Date.now())}function ws(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ao(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Qa(s)?n.push(Va(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function lr(e,t,n=!1){return We(e)?sd(t)?t.test(e):We(t)?n?e===t:e.includes(t):!1:!1}function ze(e,t=[],n=!1){return t.some(r=>lr(e,r,n))}function ud(){const e=W;return e.crypto||e.msCrypto}let os;function ld(){return Ze()*16}function Ce(e=ud()){try{if(e?.randomUUID)return Dn(()=>e.randomUUID()).replace(/-/g,"")}catch{}return os||(os="10000000100040008000"+1e11),os.replace(/[018]/g,t=>(t^(ld()&15)>>t/4).toString(16))}function nc(e){return e.exception?.values?.[0]}function _t(e){const{message:t,event_id:n}=e;if(t)return t;const r=nc(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ks(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function Xt(e,t){const n=nc(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s?.data,...t.data};n.mechanism.data=i}}function co(e){if(dd(e))return!0;try{ue(e,"__sentry_captured__",!0)}catch{}return!1}function dd(e){try{return e.__sentry_captured__}catch{}}const rc=1e3;function Dt(){return Pn()/rc}function fd(){const{performance:e}=W;if(!e?.now||!e.timeOrigin)return Dt;const t=e.timeOrigin;return()=>(t+Dn(()=>e.now()))/rc}let uo;function de(){return(uo??(uo=fd()))()}let as=null;function pd(){const{performance:e}=W;if(!e?.now)return;const t=3e5,n=Dn(()=>e.now()),r=Pn(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<t)return s;const i=e.timing?.navigationStart;return typeof i=="number"&&Math.abs(i+n-r)<t?i:r-n}function Te(){return as===null&&(as=pd()),as}function hd(e){const t=de(),n={sid:Ce(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>gd(n)};return e&&Jt(n,e),n}function Jt(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||de(),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:Ce()),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{const n=e.timestamp-e.started;e.duration=n>=0?n: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
vendor: 6,662 bytes, line 5
5ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function md(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Jt(e,n)}function gd(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}}}function Ln(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Ln(r[s],t[s],n-1));return r}function Ye(){return Ce()}function je(){return Ce().substring(16)}const Rs="_sentrySpan";function Qt(e,t){t?ue(e,Rs,t):delete e[Rs]}function vr(e){return e[Rs]}const _d=100;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:Ye(),sampleRand:Ze()}}clone(){const t=new $e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Qt(t,vr(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&&Jt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},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,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof $e?n.getScopeData():In(n)?t:void 0,{tags:s,attributes:i,extra:o,user:c,contexts:a,level:u,fingerprint:l=[],propagationContext:d,conversationId:f}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},c&&Object.keys(c).length&&(this._user=c),u&&(this._level=u),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),f&&(this._conversationId=f),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,Qt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ye(),sampleRand:Ze()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:_d;if(r<=0)return this;const s={timestamp:Dt(),...t,message:t.message?ws(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(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:vr(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Ln(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||Ce();if(!this._client)return b&&_.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||Ce();if(!this._client)return b&&_.warn("No client configured on scope - will not capture message!"),s;const i=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||n?.event_id||Ce();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(b&&_.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
5h(t=>{t(this)}),this._notifyingListeners=!1)}}function yd(){return sn("defaultCurrentScope",()=>new $e)}function Sd(){return sn("defaultIsolationScope",()=>new $e)}const lo=e=>e instanceof Promise&&!e[sc],sc=Symbol("chained PromiseLike"),ic=(e,t,n)=>{const r=e.then(s=>(t(s),s),s=>{throw n(s),s});return lo(r)&&lo(e)?r:Ed(e,r)},Ed=(e,t)=>{let n=!1;for(const r in e){if(r in t)continue;n=!0;const s=e[r];typeof s=="function"?Object.defineProperty(t,r,{value:(...i)=>s.apply(e,i),enumerable:!0,configurable:!0,writable:!0}):t[r]=s}return n&&Object.assign(t,{[sc]:!0}),t};class bd{constructor(t,n){let r;t?r=t:r=new $e;let s;n?s=n:s=new $e,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return Ot(r)?ic(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const 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 Zt(){const e=At(),t=Hr(e);return t.stack=t.stack||new bd(yd(),Sd())}function vd(e){return Zt().withScope(e)}function Td(e,t){const n=Zt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function fo(e){return Zt().withScope(()=>e(Zt().getIsolationScope()))}function Id(){return{withIsolationScope:fo,withScope:vd,withSetScope:Td,withSetIsolationScope:(e,t)=>fo(t),getCurrentScope:()=>Zt().getScope(),getIsolationScope:()=>Zt().getIsolationScope()}}function cn(e){const t=Hr(e);return t.acs?t.acs:Id()}function G(){const e=At();return cn(e).getCurrentScope()}function Ie(){const e=At();return cn(e).getIsolationScope()}function wd(){return sn("globalScope",()=>new $e)}function un(...e){const t=At(),n=cn(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function B(){return G().getClient()}function kd(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,i={trace_id:n,span_id:s||je()};return r&&(i.parent_span_id=r),i}const ae="sentry.source",fi="sentry.sample_rate",oc="sentry.previous_trace_sample_rate",Fe="sentry.op",se="sentry.origin",wn="sentry.idle_span_finish_reason",Fn="sentry.measurement_unit",Bn="sentry.measurement_value",po="sentry.custom_span_name",pi="sentry.profile_id",ln="sentry.exclusive_time",Rd="sentry.link.type",Cd="gen_ai.conversation.id",Md=0,hi=1,ce=2;function xd(e){if(e<400&&e>=100)return{code:hi};if(e>=400&&e<500)switch(e){case 401:return{code:ce,message:"unauthenticated"};case 403:return{code:ce,message:"permission_denied"};case 404:return{code:ce,message:"not_found"};case 409:return{code:ce,message:"already_exists"};case 413:return{code:ce,message:"failed_precondition"};case 429:return{code:ce,message:"resource_exhausted"};case 499:return{code:ce,message:"cancelled"};default:return{code:ce,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:ce,message:"unimplemented"};case 503:return{code:ce,message:"unavailable"};case 504:return{code:ce,message:"deadline_exceeded"};default:return{code:ce,message:"internal_error"}}return{code:ce,message:"internal_error"}}function ac(e,t){e.setAttribute("http.response.status_code",t);const n=xd(t);n.message!=="unknown_error"&&e.setStatus(n)}const cc="_sentryScope",uc="_sentryIsolationScope";function Ad(e){try{const t=W.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function Nd(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function Od(e,t,n){e&&(ue(e,uc,Ad(n)),ue(e,cc,t))}function Tr(e){const t=e;return{scope:t[cc],isolationScope:Nd(t[uc])}}const Ir="sentry-",Dd=8192;function lc(e){const t=Ld(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,i])=>{if(s.startsWith(Ir)){const o=s.slice(Ir.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Pd(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${Ir}${r}`]=s),n),{});return Fd(t)}function Ld(e){if(!(!e||!We(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=ho(n);return Object.entries(r).forEach(([s,i])=>{t[s]=i}),t},{}):ho(e)}function ho(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Fd(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>Dd?(b&&_.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const Bd=/^o(\d+)\./,$d=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Ud(e){return e==="http"||e==="https"}function Pt(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:c,publicKey:a}=e;return`${c}://${a}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function Hd(e){const t=$d.exec(e);if(!t){Nt(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",i="",o="",c=""]=t.slice(1);let a="",u=c;const l=u.split("/");if(l.length>1&&(a=l.slice(0,-1).join("/"),u=l.pop()),u){const d=u.match(/^\d+/);
5d&&(u=d[0])}return dc({host:i,pass:s,path:a,projectId:u,port:o,protocol:n,publicKey:r})}function dc(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Wd(e){if(!b)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(_.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?Ud(r)?t&&isNaN(parseInt(t,10))?(_.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(_.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(_.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function zd(e){return e.match(Bd)?.[1]}function jd(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=zd(n)),r}function fc(e){const t=typeof e=="string"?Hd(e):dc(e);if(!(!t||!Wd(t)))return t}function Ct(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const pc=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function qd(e){if(!e)return;const t=e.match(pc);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Gd(e,t){const n=qd(e),r=lc(t);if(!n?.traceId)return{traceId:Ye(),sampleRand:Ze()};const s=Vd(n,r);r&&(r.sample_rand=s.toString());const{traceId:i,parentSpanId:o,parentSampled:c}=n;return{traceId:i,parentSpanId:o,sampled:c,dsc:r||{},sampleRand:s}}function hc(e=Ye(),t=je(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function mc(e=Ye(),t=je(),n){return`00-${e}-${t}-${n?"01":"00"}`}function Vd(e,t){const n=Ct(t?.sample_rand);if(n!==void 0)return n;const r=Ct(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Ze()*r:r+Ze()*(1-r):Ze()}const gc=0,mi=1;let mo=!1;function Yd(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:c,links:a}=O(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:s,status:o,origin:c,links:a}}function Kd(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:O(e).parent_span_id,i=Tr(e).scope,o=r?i?.getPropagationContext().propagationSpanId||je():t;return{parent_span_id:s,span_id:o,trace_id:n}}function Xd(e){const{traceId:t,spanId:n}=e.spanContext(),r=dt(e);return hc(t,n,r)}function Jd(e){const{traceId:t,spanId:n}=e.spanContext(),r=dt(e);return mc(t,n,r)}function _c(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:t,trace_id:n,sampled:r===mi,attributes:i,...s}))}function Tt(e){return typeof e=="number"?go(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?go(e.getTime()):de()}function go(e){return e>9999999999?e/1e3:e}function O(e){if(Zd(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Qd(e)){const{attributes:r,startTime:s,name:i,endTime:o,status:c,links:a}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:u,start_timestamp:Tt(s),timestamp:Tt(o)||void 0,status:yc(c),op:r[Fe],origin:r[se],links:_c(a)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Qd(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Zd(e){return typeof e.getSpanJSON=="function"}function dt(e){const{traceFlags:t}=e.spanContext();return t===mi}function yc(e){if(!(!e||e.code===Md))return e.code===hi?"ok":e.message||"internal_error"}const It="_sentryChildSpans",Cs="_sentryRootSpan";function Sc(e,t){const n=e[Cs]||e;ue(t,Cs,n),e[It]?e[It].add(t):ue(e,It,new Set([t]))}function ef(e,t){e[It]&&e[It].delete(t)}function dr(e){const t=new Set;function n(r){if(!t.has(r)&&dt(r)){t.add(r);const s=r[It]?Array.from(r[It]):[];for(const i of s)n(i)}}return n(e),Array.from(t)}function he(e){return e[Cs]||e}function ge(){const e=At(),t=cn(e);return t.getActiveSpan?t.getActiveSpan():vr(G())}function Ms(){mo||(Nt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),mo=!0)}let _o=!1;function tf(){if(_o)return;function e(){const t=ge(),n=t&&he(t);if(n){const r="internal_error";b&&_.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:ce,message:r})}}e.tag="sentry_tracingErrorCallback",_o=!0,Ya(e),Ka(e)}function Le(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||B()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function yo(e){_.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function wr(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(rf(n)){if(lr(e.description,n))return b&&yo(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?lr(e.description,n.name):!0,s=n.op?e.op&&lr(e.op,n.op):!0;if(r&&s)return b&&yo(e),!0}return!1}function nf(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const s of e)s.parent_span_id===r&&(s.parent_span_id=n)}function rf(e){return typeof e=="string"||e instanceof RegExp}const gi="production",Ec="_frozenDsc";function fr(e,t){ue(e,Ec,t)}function bc(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||gi,release:n.release,public_key:r,trace_id:e,org_id:jd(t)};return t.emit("createDsc",s),s}function vc(e,t){const n=t.getPropagationContext();return n.dsc||bc(n.traceId,e)}function Ke(e){const t=B();if(!t)return{};const n=he(e),r=O(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s[fi]??s[oc];
vendor: 4,184 bytes, lines 5-7
5function c(h){return(typeof o=="number"||typeof o=="string")&&(h.sample_rate=`${o}`),h}const a=n[Ec];if(a)return c(a);const u=i?.get("sentry.dsc"),l=u&&lc(u);if(l)return c(l);const d=bc(e.spanContext().traceId,t),f=s[ae],p=r.description;return f!=="url"&&p&&(d.transaction=p),Le()&&(d.sampled=String(dt(n)),d.sample_rand=i?.get("sentry.sample_rand")??Tr(n).scope?.getPropagationContext().sampleRand.toString()),c(d),t.emit("createDsc",d,n),d}class st{constructor(t={}){this._traceId=t.traceId||Ye(),this._spanId=t.spanId||je()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:gc}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function De(e,t=100,n=1/0){try{return xs("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Tc(e,t=3,n=100*1024){const r=De(e,t);return cf(r)>n?Tc(e,t-1,n):r}function xs(e,t,n=1/0,r=1/0,s=uf()){const[i,o]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const c=sf(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const a=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(a===0)return c.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return xs("",p,a-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const f=tc(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=r){l[p]="[MaxProperties ~]";break}const h=f[p];l[p]=xs(p,h,a-1,r,s),d++}return o(t),l}function sf(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Qa(t))return Va(t);if(id(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Ge(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=of(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function of(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function af(e){return~-encodeURI(e).split(/%..|./).length}function cf(e){return af(JSON.stringify(e))}function uf(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function ft(e,t=[]){return[e,t]}function lf(e,t){const[n,r]=e;return[n,[...r,t]]}function As(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function df(e,t){return As(e,(n,r)=>t.includes(r))}function Ns(e){const t=Hr(W);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function ff(e){const[t,n]=e;let r=JSON.stringify(t);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[Ns(r),i]:r.push(typeof i=="string"?Ns(i):i)}for(const i of n){const[o,c]=i;if(s(` 6${JSON.stringify(o)} 7`),typeof c=="string"||c instanceof Uint8Array)s(c);else{let a;try{a=JSON.stringify(c)}catch{a=JSON.stringify(De(c))}s(a)}}return typeof r=="string"?r:pf(r)}function pf(e){const t=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function hf(e){return[{type:"span"},e]}function mf(e){const t=typeof e.data=="string"?Ns(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Ic={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 gf(e){return e in Ic}function So(e){return gf(e)?Ic[e]:e}function _i(e){if(!e?.sdk)return;
7const{name:t,version:n}=e.sdk;return{name:t,version:n}}function wc(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Pt(r)},...s&&{trace:s}}}function _f(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function yf(e,t,n,r){const s=_i(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Pt(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ft(i,[o])}function Sf(e,t,n,r){const s=_i(n),i=e.type&&e.type!=="replay_event"?e.type:"event";_f(e,n?.sdk);const o=wc(e,s,r,t);return delete e.sdkProcessingMetadata,ft(o,[[{type:i},e]])}function Ef(e,t){function n(p){return!!p.trace_id&&!!p.public_key}const r=Ke(e[0]),s=t?.getDsn(),i=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&s&&{dsn:Pt(s)}},{beforeSendSpan:c,ignoreSpans:a}=t?.getOptions()||{},u=a?.length?e.filter(p=>!wr(O(p),a)):e,l=e.length-u.length;l&&t?.recordDroppedEvent("before_send","span",l);const d=c?p=>{const h=O(p),m=c(h);return m||(Ms(),h)}:O,f=[];for(const p of u){const h=d(p);h&&f.push(hf(h))}return ft(o,f)}function bf(e){if(!b)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=O(e),{spanId:s}=e.spanContext(),i=dt(e),o=he(e),c=o===e,a=`[Tracing] Starting ${i?"sampled":"unsampled"} ${c?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!c){const{op:l,description:d}=O(o);u.push(`root ID: ${o.spanContext().spanId}`),l&&u.push(`root op: ${l}`),d&&u.push(`root description: ${d}`)}_.log(`${a} 8 ${u.join(` 9 `)}`)}function vf(e){if(!b)return;const{description:t="< unknown name >",op:n="< unknown op >"}=O(e),{spanId:r}=e.spanContext(),i=he(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;_.log(o)}function Tf(e,t,n,r=ge()){const s=r&&he(r);s&&(b&&_.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[Bn]:t,[Fn]:n}))}function Eo(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[Fn],i=r[Bn];typeof s=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:s})}),t}const bo=1e3;class zr{constructor(t={}){this._traceId=t.traceId||Ye(),this._spanId=t.spanId||je(),this._startTime=t.startTimestamp||de(),this._links=t.links,this._attributes={},this.setAttributes({[se]:"manual",[Fe]: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._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?mi:gc}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Tt(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(ae,"custom"),this}end(t){this._endTime||(this._endTime=Tt(t),vf(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Fe],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:yc(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[se],profile_id:this._attributes[pi],exclusive_time:this._attributes[ln],measurements:Eo(this._events),is_segment:this._isStandaloneSpan&&he(this)===this||void 0,segment_id:this._isStandaloneSpan?he(this).spanContext().spanId:void 0,links:_c(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){b&&_.log("[Tracing] Adding an event to span:",t);const s=vo(n)?n:r||de(),i=vo(n)?{}:n||{},o={name:t,time:Tt(s),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=B();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===he(this)))return;if(this._isStandaloneSpan){this._sampled?wf(Ef([this],t)):(b&&_.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Tr(this).scope||G()).captureEvent(r)}_convertSpanToTransaction(){if(!To(O(this)))return;this._name||(b&&_.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Tr(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const i=dr(this).filter(l=>
9l!==this&&!If(l)).map(l=>O(l)).filter(To),o=this._attributes[ae];delete this._attributes[po],i.forEach(l=>{delete l.data[po]});const c={contexts:{trace:Yd(this)},spans:i.length>bo?i.sort((l,d)=>l.start_timestamp-d.start_timestamp).slice(0,bo):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Ke(this)},request:r,...o&&{transaction_info:{source:o}}},a=Eo(this._events);return a&&Object.keys(a).length&&(b&&_.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),c.measurements=a),c}}function vo(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function To(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function If(e){return e instanceof zr&&e.isStandaloneSpan()}function wf(e){const t=B();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function kf(e,t,n=()=>{},r=()=>{}){let s;try{s=e()}catch(i){throw t(i),n(),i}return Rf(s,t,n,r)}function Rf(e,t,n,r){return Ot(e)?ic(e,s=>{n(),r(s)},s=>{t(s),n()}):(n(),r(e),e)}function Cf(e,t,n){if(!Le(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:c=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):c}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const i=Ct(s);if(i===void 0)return 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(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!i)return 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,i,r];const o=n<i;return o||b&&_.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[o,i,r]}const kc="__SENTRY_SUPPRESS_TRACING__";function Mf(e,t){const n=Si();if(n.startSpan)return n.startSpan(e,t);const r=Cc(e),{forceTransaction:s,parentSpan:i,scope:o}=e,c=o?.clone();return un(c,()=>Af(i)(()=>{const u=G(),l=Mc(u,i),f=e.onlyIfParent&&!l?new st:Rc({parentSpan:l,spanArguments:r,forceTransaction:s,scope:u});return Qt(u,f),kf(()=>t(f),()=>{const{status:p}=O(f);f.isRecording()&&(!p||p==="ok")&&f.setStatus({code:ce,message:"internal_error"})},()=>{f.end()})}))}function dn(e){const t=Si();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Cc(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?o=>un(e.scope,o):s!==void 0?o=>yi(s,o):o=>o())(()=>{const o=G(),c=Mc(o,s);return e.onlyIfParent&&!c?new st:Rc({parentSpan:c,spanArguments:n,forceTransaction:r,scope:o})})}function yi(e,t){const n=Si();return n.withActiveSpan?n.withActiveSpan(e,t):un(r=>(Qt(r,e||void 0),t(r)))}function Rc({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Le()){const o=new st;if(n||!e){const c={sampled:"false",sample_rate:"0",transaction:t.name,...Ke(o)};fr(o,c)}return o}const s=Ie();let i;if(e&&!n)i=xf(e,r,t),Sc(e,i);else if(e){const o=Ke(e),{traceId:c,spanId:a}=e.spanContext(),u=dt(e);i=Io({traceId:c,parentSpanId:a,...t},r,u),fr(i,o)}else{const{traceId:o,dsc:c,parentSpanId:a,sampled:u}={...s.getPropagationContext(),...r.getPropagationContext()};i=Io({traceId:o,parentSpanId:a,...t},r,u),c&&fr(i,c)}return bf(i),Od(i,r,s),i}function Cc(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Tt(e.startTime),delete r.startTime,r}return n}function Si(){const e=At();return cn(e)}function Io(e,t,n){const r=B(),s=r?.getOptions()||{},{name:i=""}=e,o={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r?.emit("beforeSampling",o,{decision:!1});const c=o.parentSampled??n,a=o.spanAttributes,u=t.getPropagationContext(),[l,d,f]=t.getScopeData().sdkProcessingMetadata[kc]?[!1]:Cf(s,{name:i,parentSampled:c,attributes:a,parentSampleRate:Ct(u.dsc?.sample_rate)},u.sampleRand),p=new zr({...e,attributes:{[ae]:"custom",[fi]:d!==void 0&&f?d:void 0,...a},sampled:l});return!l&&r&&(b&&_.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",p),p}function xf(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[kc]?!1:dt(e),o=i?new zr({...n,parentSpanId:r,traceId:s,sampled:i}):new st({traceId:s});Sc(e,o);const c=B();
9return c&&(c.emit("spanStart",o),n.endTimestamp&&c.emit("spanEnd",o)),o}function Mc(e,t){if(t)return t;if(t===null)return;const n=vr(e);if(!n)return;const r=B();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?he(n):n}function Af(e){return e!==void 0?t=>yi(e,t):t=>t()}const pr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Nf="heartbeatFailed",Of="idleTimeout",Df="finalTimeout",Pf="externalFinish";function xc(e,t={}){const n=new Map;let r=!1,s,i=Pf,o=!t.disableAutoFinish;const c=[],{idleTimeout:a=pr.idleTimeout,finalTimeout:u=pr.finalTimeout,childSpanTimeout:l=pr.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:f=!0}=t,p=B();if(!p||!Le()){const y=new st,T={sample_rate:"0",sampled:"false",...Ke(y)};return fr(y,T),y}const h=G(),m=ge(),g=Lf(e);g.end=new Proxy(g.end,{apply(y,T,Q){if(d&&d(g),T instanceof st)return;const[E,...I]=Q,j=E||de(),V=Tt(j),U=dr(g).filter(A=>A!==g),le=O(g);if(!U.length||!f)return w(V),Reflect.apply(y,T,[V,...I]);const te=p.getOptions().ignoreSpans,X=U?.reduce((A,H)=>{const J=O(H);return!J.timestamp||te&&wr(J,te)?A:A?Math.max(A,J.timestamp):J.timestamp},void 0),k=le.start_timestamp,F=Math.min(k?k+u/1e3:1/0,Math.max(k||-1/0,Math.min(V,X||1/0)));return w(F),Reflect.apply(y,T,[F,...I])}});function S(){s&&(clearTimeout(s),s=void 0)}function v(y){S(),s=setTimeout(()=>{!r&&n.size===0&&o&&(i=Of,g.end(y))},a)}function L(y){s=setTimeout(()=>{!r&&o&&(i=Nf,g.end(y))},l)}function x(y){S(),n.set(y,!0);const T=de();L(T+l/1e3)}function P(y){if(n.has(y)&&n.delete(y),n.size===0){const T=de();v(T+a/1e3)}}function w(y){r=!0,n.clear(),c.forEach(U=>U()),Qt(h,m);const T=O(g),{start_timestamp:Q}=T;if(!Q)return;T.data[wn]||g.setAttribute(wn,i);const I=T.status;(!I||I==="unknown")&&g.setStatus({code:hi}),_.log(`[Tracing] Idle span "${T.op}" finished`);const j=dr(g).filter(U=>U!==g);let V=0;j.forEach(U=>{U.isRecording()&&(U.setStatus({code:ce,message:"cancelled"}),U.end(y),b&&_.log("[Tracing] Cancelling span since span ended early",JSON.stringify(U,void 0,2)));const le=O(U),{timestamp:te=0,start_timestamp:X=0}=le,k=X<=y,F=(u+a)/1e3,A=te-X<=F;if(b){const H=JSON.stringify(U,void 0,2);k?A||_.log("[Tracing] Discarding span since it finished after idle span final timeout",H):_.log("[Tracing] Discarding span since it happened after idle span was finished",H)}(!A||!k)&&(ef(g,U),V++)}),V>0&&g.setAttribute("sentry.idle_span_discarded_spans",V)}return c.push(p.on("spanStart",y=>{if(r||y===g||O(y).timestamp||y instanceof zr&&y.isStandaloneSpan())return;dr(g).includes(y)&&x(y.spanContext().spanId)})),c.push(p.on("spanEnd",y=>{r||P(y.spanContext().spanId)})),c.push(p.on("idleSpanEnableAutoFinish",y=>{y===g&&(o=!0,v(),n.size&&L())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(g.setStatus({code:ce,message:"deadline_exceeded"}),i=Df,g.end())},u),g}function Lf(e){const t=dn(e);return Qt(G(),t),b&&_.log("[Tracing] Started span is an idle span"),t}const cs=0,wo=1,ko=2;function $n(e){return new kn(t=>{t(e)})}function Ei(e){return new kn((t,n)=>{n(e)})}class kn{constructor(t){this._state=cs,this._handlers=[],this._runExecutor(t)}then(t,n){return new kn((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new kn((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===cs)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===wo&&n[1](this._value),this._state===ko&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,o)=>{if(this._state===cs){if(Ot(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(wo,i)},s=i=>{n(ko,i)};try{t(r,s)}catch(i){s(i)}}}function Ff(e,t,n,r=0){try{const s=Os(t,n,e,r);return Ot(s)?s:$n(s)}catch(s){return Ei(s)}}function Os(e,t,n,r){const s=n[r];if(!e||!s)return e;const i=s({...e},t);return b&&i===null&&_.log(`Event processor "${s.id||"?"}" dropped event`),Ot(i)?i.then(o=>Os(o,t,n,r+1)):Os(i,t,n,r+1)}let gt,Ro,Co,Xe;function Bf(e){const t=W._sentryDebugIds,n=W._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(Xe&&r.length===Ro&&s.length===Co)return Xe;Ro=r.length,Co=s.length,Xe={},gt||(gt={});const i=(o,c)=>{for(const a of o){const u=c[a],l=gt?.[a];if(l&&Xe&&u)Xe[l[0]]=u,gt&&(gt[a]=[l[0],u]);else if(u){const d=e(a);for(let f=d.length-1;f>=0;f--){const h=d[f]?.filename;if(h&&Xe&>){Xe[h]=u,gt[a]=[h,u];break}}}}};return t&&i(r,t),n&&i(s,n),Xe}function $f(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;Uf(e,t),r&&zf(e,r),jf(e,n),Hf(e,s),Wf(e,i)}function Mo(e,t){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:c,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:f,propagationContext:p,transactionName:h,span:m}=t;_n(e,"extra",n),_n(e,"tags",r),_n(e,"attributes",s),_n(e,"user",i),_n(e,"contexts",o),e.sdkProcessingMetadata=Ln(e.sdkProcessingMetadata,a,2),c&&
9(e.level=c),h&&(e.transactionName=h),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function _n(e,t,n){e[t]=Ln(e[t],n,1)}function Ac(e,t){const n=wd().getScopeData();return e&&Mo(n,e.getScopeData()),t&&Mo(n,t.getScopeData()),n}function Uf(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:c}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),o&&(e.level=o),c&&e.type!=="transaction"&&(e.transaction=c)}function Hf(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Wf(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function zf(e,t){e.contexts={trace:Kd(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ke(t),...e.sdkProcessingMetadata};const n=he(t),r=O(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function jf(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}function Nc(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=e,a={...t,event_id:t.event_id||n.event_id||Ce(),timestamp:t.timestamp||Dt()},u=n.integrations||e.integrations.map(S=>S.name);qf(a,e),Yf(a,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&Gf(a,e.stackParser);const l=Xf(r,n.captureContext);n.mechanism&&Xt(a,n.mechanism);const d=s?s.getEventProcessors():[],f=Ac(i,l),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),$f(a,f);const h=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?$n(a):Ff(h,a,n)).then(S=>(S&&Vf(S),typeof o=="number"&&o>0?Kf(S,o,c):S))}function qf(e,t){const{environment:n,release:r,dist:s,maxValueLength:i}=t;e.environment=e.environment||n||gi,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const o=e.request;o?.url&&i&&(o.url=ws(o.url,i)),i&&e.exception?.values?.forEach(c=>{c.value&&(c.value=ws(c.value,i))})}function Gf(e,t){const n=Bf(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function Vf(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Yf(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Kf(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:De(s.data,t,n)}}))},...e.user&&{user:De(e.user,t,n)},...e.contexts&&{contexts:De(e.contexts,t,n)},...e.extra&&{extra:De(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=De(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:De(s.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=De(e.contexts.flags,3,n)),r}function Xf(e,t){if(!t)return e;const n=e?e.clone():new $e;return n.update(t),n}function Jf(e){if(e)return Qf(e)?{captureContext:e}:ep(e)?{captureContext:e}:e}function Qf(e){return e instanceof $e||typeof e=="function"}const Zf=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function ep(e){return Object.keys(e).some(t=>Zf.includes(t))}function bi(e,t){return G().captureException(e,Jf(t))}function tv(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return G().captureMessage(e,n,r)}function Oc(e,t){return G().captureEvent(e,t)}function Dc(e,t){Ie().setContext(e,t)}function nv(e){Ie().setUser(e)}function tp(){return Ie().lastEventId()}function np(){const e=B();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function rp(e){Ie().addEventProcessor(e)}function xo(e){const t=Ie(),{user:n}=Ac(t,G()),{userAgent:r}=W.navigator||{},s=hd({user:n,...r&&{userAgent:r},...e}),i=t.getSession();return i?.status==="ok"&&Jt(i,{status:"exited"}),Pc(),t.setSession(s),s}function Pc(){const e=Ie(),n=G().getSession()||e.getSession();n&&md(n),Lc(),e.setSession()}function Lc(){const e=Ie(),t=B(),n=e.getSession();n&&t&&t.captureSession(n)}function us(e=!1){if(e){Pc();return}Lc()}const sp="7";function Fc(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ip(e){return`${Fc(e)}${e.projectId}/envelope/`}function op(e,t){const n={sentry_version:sp};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function ap(e,t,n){return t||`${ip(e)}?${op(e,n)}`}function cp(e,t){const n=fc(e);if(!n)return"";const r=`${Fc(n)}embed/error-page/`;let s=`dsn=${Pt(n)}`;for(const i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const o=t.user;if(!o)continue;o.name&&(s+=`&name=${encodeURIComponent(o.name)}`),o.email&&(s+=`&email=${encodeURIComponent(o.email)}`)}else s+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${s}`}const Ao=[];function up(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function lp(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return up(r)}function dp(e,t){const n={};return t.forEach(r=>{r&&Bc(e,r,n)}),n}function No(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Bc(e,t,n){if(n[t.name]){b&&_.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Ao.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),Ao.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((i,o)=>r(i,o,e),{id:t.name});e.addEventProcessor(s)}b&&_.log(`Integration installed: ${t.name}`)}function fp(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function pp(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Pt(r)),ft(s,[fp(e)])}function Ds(e,t){const n=t??hp(e)??[];if(n.length===0)return;const r=e.getOptions(),s=pp(n,r._metadata,r.tunnel,e.getDsn());$c().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function hp(e){return $c().get(e)}function $c(){return sn("clientToLogBufferMap",()=>new WeakMap)}function mp(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function gp(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Pt(r)),ft(s,[mp(e)])}function Uc(e,t){const n=t??_p(e)??[];if(n.length===0)return;const r=e.getOptions(),s=gp(n,r._metadata,r.tunnel,e.getDsn());Hc().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function _p(e){return Hc().get(e)}function Hc(){return sn("clientToMetricBufferMap",()=>new WeakMap)}function Wc(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const vi=Symbol.for("SentryBufferFullError");function Ti(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function s(o){if(!n())return Ei(vi);const c=o();return t.add(c),c.then(()=>r(c),()=>r(c)),c}function i(o){if(!t.size)return $n(!0);const c=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return c;const a=[c,new Promise(u=>Wc(setTimeout(()=>u(!1),o)))];return Promise.race(a)}return{get $(){return Array.from(t)},add:s,drain:i}}const yp=60*1e3;function Sp(e,t=Pn()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?yp:r-t}function Ep(e,t){return e[t]||e.all||0}function zc(e,t,n=Pn()){return Ep(e,t)>n}function jc(e,{statusCode:t,headers:n},r=Pn()){const s={...e},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const c of i.trim().split(",")){const[a,u,,,l]=c.split(":",5),d=parseInt(a,10),f=(isNaN(d)?60:d)*1e3;if(!u)s.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else o?s.all=r+Sp(o,r):t===429&&(s.all=r+60*1e3);return s}const qc=64;function bp(e,t,n=Ti(e.bufferSize||qc)){let r={};const s=o=>n.drain(o);function i(o){const c=[];if(As(o,(d,f)=>{const p=So(f);
9zc(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):c.push(d)}),c.length===0)return Promise.resolve({});const a=ft(o[0],c),u=d=>{if(df(a,["client_report"])){b&&_.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}As(a,(f,p)=>{e.recordDroppedEvent(d,So(p))})},l=()=>t({body:ff(a)}).then(d=>d.statusCode===413?(b&&_.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),d):(b&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&_.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=jc(r,d),d),d=>{throw u("network_error"),b&&_.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===vi)return b&&_.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:i,flush:s}}function vp(e,t,n){const r=[{type:"client_report"},{timestamp:Dt(),discarded_events:e}];return ft(t?{dsn:t}:{},[r])}function Gc(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Tp(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:c}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o?.[pi],exclusive_time:o?.[ln],measurements:e.measurements,is_segment:!0}}function Ip(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:{...e.data,...e.profile_id&&{[pi]:e.profile_id},...e.exclusive_time&&{[ln]:e.exclusive_time}}}},measurements:e.measurements}}const Oo="Not capturing exception because it's already been captured.",Do="Discarded session because of missing or non-string release",Vc=Symbol.for("SentryInternalError"),Yc=Symbol.for("SentryDoNotSendEventError"),wp=5e3;function hr(e){return{message:e,[Vc]:!0}}function ls(e){return{message:e,[Yc]:!0}}function Po(e){return!!e&&typeof e=="object"&&Vc in e}function Lo(e){return!!e&&typeof e=="object"&&Yc in e}function Fo(e,t,n,r,s){let i=0,o,c=!1;e.on(n,()=>{i=0,clearTimeout(o),c=!1}),e.on(t,a=>{i+=r(a),i>=8e5?s(e):c||(c=!0,o=Wc(setTimeout(()=>{s(e)},wp)))}),e.on("flush",()=>{s(e)})}class kp{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ti(t.transportOptions?.bufferSize??qc),t.dsn?this._dsn=fc(t.dsn):b&&_.warn("No DSN provided, client will not send events."),this._dsn){const r=ap(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Fo(this,"afterCaptureLog","flushLogs",xp,Ds),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Fo(this,"afterCaptureMetric","flushMetrics",Mp,Uc)}captureException(t,n,r){const s=Ce();if(co(t))return b&&_.log(Oo),s;const i={event_id:s,...n};return this._process(()=>this.eventFromException(t,i).then(o=>this._captureEvent(o,i,r)).then(o=>o),"error"),i.event_id}captureMessage(t,n,r,s){const i={event_id:Ce(),...r},o=ci(t)?t:String(t),c=Kt(t),a=c?this.eventFromMessage(o,n,i):this.eventFromException(t,i);return this._process(()=>a.then(u=>this._captureEvent(u,i,s)),c?"unknown":"error"),i.event_id}captureEvent(t,n,r){const s=Ce();if(n?.originalException&&co(n.originalException))return b&&_.log(Oo),s;const i={event_id:s,...n},o=t.sdkProcessingMetadata||{},c=o.capturedSpanScope,a=o.capturedSpanIsolationScope,u=Bo(t.type);return this._process(()=>this._captureEvent(t,i,c||r,a),u),i.event_id}captureSession(t){this.sendSession(t),Jt(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;
9this.emit("flush");const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){Ds(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Bc(this,t,this._integrations),n||No(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Sf(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=lf(r,mf(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=gi}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){b&&_.warn(Do);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){b&&_.warn(Do);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=yf(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;b&&_.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,s=(...i)=>n(...i);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return b&&_.error("Error while sending envelope:",n),{}}return b&&_.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=dp(this,t),No(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const i=n.exception?.values;if(i){s=!0,r=!1;for(const a of i)if(a.mechanism?.handled===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(Jt(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o?.length&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),Nc(i,t,n,r,this,s).then(c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts={trace:{...c.contexts?.trace,...kd(r)},...c.contexts};const a=vc(this,r);return c.sdkProcessingMetadata={dynamicSamplingContext:a,...c.sdkProcessingMetadata},c})}_captureEvent(t,n={},r=G(),s=Ie()){return b&&Ps(t)&&_.log(`Captured error event \`${Gc(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(i=>i.event_id,i=>{b&&(Lo(i)?_.log(i.message):Po(i)?_.warn(i.message):_.warn(i))})}_processEvent(t,n,r,s){const i=this.getOptions(),{sampleRate:o}=i,c=Kc(t),a=Ps(t),l=`before send for type \`${t.type||"error"}\``,d=typeof o>"u"?void 0:Ct(o);if(a&&typeof d=="number"&&Ze()>d)return this.recordDroppedEvent("sample_rate","error"),Ei(ls(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const f=Bo(t.type);return this._prepareEvent(t,n,r,s).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f),ls("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return p;const m=Cp(this,i,p,n);return Rp(m,l)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",f),c){const S=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",S)}throw ls(`${l} returned \`null\`, will not send event.`)}const h=r.getSession()||s.getSession();if(a&&h&&this._updateSessionFromEvent(h,p),c){const g=p.sdkProcessingMetadata?.spanCountBeforeProcessing||0,S=p.spans?p.spans.length:0,v=g-S;v>0&&this.recordDroppedEvent("before_send","span",v)}const m=p.transaction_info;if(c&&m&&p.transaction!==t.transaction){const g="custom";p.transaction_info={...m,source:g}}return this.sendEvent(p,n),p}).then(null,p=>{throw Lo(p)||Po(p)?p:(this.captureException(p,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:p}),hr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 10Reason: ${p}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===vi&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,i]=n.split(":");return{reason:s,category:i,quantity:r}})}_flushOutcomes(){b&&_.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){b&&_.log("No outcomes to send");return}if(!this._dsn){b&&_.log("No dsn provided, will not send outcomes");return}b&&_.log("Sending outcomes:",t);const n=vp(t,this._options.tunnel&&Pt(this._dsn));this.sendEnvelope(n)}}function Bo(e){return e==="replay_event"?"replay":e||"error"}function Rp(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ot(e))return e.then(r=>{if(!In(r)&&r!==null)throw hr(n);return r},r=>{throw hr(`${t} rejected with ${r}`)});if(!In(e)&&e!==null)throw hr(n);return e}function Cp(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o,ignoreSpans:c}=t;let a=n;if(Ps(a)&&s)return s(a,r);if(Kc(a)){if(o||c){const u=Tp(a);if(c?.length&&wr(u,c))return null;if(o){const l=o(u);l?a=Ln(n,Ip(l)):Ms()}if(a.spans){const l=[],d=a.spans;for(const p of d){if(c?.length&&wr(p,c)){nf(d,p);continue}if(o){const h=o(p);h?l.push(h):(Ms(),l.push(p))}else l.push(p)}const f=a.spans.length-l.length;f&&e.recordDroppedEvent("before_send","span",f),a.spans=l}}if(i){if(a.spans){const u=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return i(a,r)}}return a}function Ps(e){return e.type===void 0}function Kc(e){return e.type==="transaction"}function Mp(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Xc(e.attributes)}function xp(e){let t=0;return e.message&&(t+=e.message.length*2),t+Xc(e.attributes)}function Xc(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*$o(n[0]):Kt(n)?t+=$o(n):t+=100}),t}function $o(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function Ap(e){return On(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function Uo(e){return Ap(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Np(e,t){t.debug===!0&&(b?_.enable():Nt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),G().update(t.initialScope);const r=new e(t);return Op(r),r.init(),r}function Op(e){G().setClient(e)}const Dp="thismessage:/";function Ii(e){return"isRelative"in e}function wi(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?Dp:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function Pp(e){if(Ii(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function wt(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Lp(e){return e.split(/[?#]/,1)[0]}function et(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),i=e.indexOf(",");let o="";if(t&&i!==-1){const c=e.slice(i+1);o=c.length>10?`${c.slice(0,10)}... [truncated]`:c}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return e}function Fp(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return $p(e,n)||Bp(e,r)}function Bp(e,t){return t?Ho(e)===Ho(t):!1}function $p(e,t){const n=wi(e);return!n||Ii(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Ho(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Up(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}
10function Jc(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(i=>({name:`${r}:@sentry/${i}`,version:vt})),s.version=vt)}function Qc(e={}){const t=e.client||B();if(!np()||!t)return{};const n=At(),r=cn(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||G(),i=e.span||ge(),o=i?Xd(i):Hp(s),c=i?Ke(i):vc(t,s),a=Pd(c);if(!pc.test(o))return _.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const l={"sentry-trace":o,baggage:a};return e.propagateTraceparent&&(l.traceparent=i?Jd(i):Wp(s)),l}function Hp(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return hc(t,r,n)}function Wp(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return mc(t,r,n)}function zp(e,t,n){let r,s,i;const o=n?.maxWait?Math.max(n.maxWait,t):0,c=n?.setTimeoutImpl||setTimeout;function a(){return u(),r=e(),r}function u(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function l(){return s!==void 0||i!==void 0?a():r}function d(){return s&&clearTimeout(s),s=c(a,t),o&&i===void 0&&(i=c(a,o)),r}return d.cancel=u,d.flush=l,d}const jp=100;function it(e,t){const n=B(),r=Ie();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=jp}=n.getOptions();if(i<=0)return;const c={timestamp:Dt(),...e},a=s?Nt(()=>s(c,t)):c;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i))}let Wo;const qp="FunctionToString",zo=new WeakMap,Gp=(()=>({name:qp,setupOnce(){Wo=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=di(this),n=zo.has(B())&&t!==void 0?t:this;return Wo.apply(n,e)}}catch{}},setup(e){zo.set(e,!0)}})),Vp=Gp,Yp=[/^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$/],Kp="EventFilters",Xp=(e={})=>{let t;return{name:Kp,setup(n){const r=n.getOptions();t=jo(e,r)},processEvent(n,r,s){if(!t){const i=s.getOptions();t=jo(e,i)}return Qp(n,t)?null:n}}},Jp=((e={})=>({...Xp(e),name:"InboundFilters"}));function jo(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Yp],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Qp(e,t){if(e.type){if(e.type==="transaction"&&eh(e,t.ignoreTransactions))return b&&_.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 11Event: ${_t(e)}`),!0}else{if(Zp(e,t.ignoreErrors))return b&&_.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 12Event: ${_t(e)}`),!0;if(sh(e))return b&&_.warn(`Event dropped due to not having an error message, error type or stacktrace. 13Event: ${_t(e)}`),!0;if(th(e,t.denyUrls))return b&&_.warn(`Event dropped due to being matched by \`denyUrls\` option. 14Event: ${_t(e)}. 15Url: ${kr(e)}`),!0;if(!nh(e,t.allowUrls))return b&&_.warn(`Event dropped due to not being matched by \`allowUrls\` option. 16Event: ${_t(e)}. 17Url: ${kr(e)}`),!0}return!1}function Zp(e,t){return t?.length?Gc(e).some(n=>ze(n,t)):!1}function eh(e,t){if(!t?.length)return!1;const n=e.transaction;return n?ze(n,t):!1}function th(e,t){if(!t?.length)return!1;const n=kr(e);return n?ze(n,t):!1}function nh(e,t){if(!t?.length)return!0;const n=kr(e);return n?ze(n,t):!0}function rh(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function kr(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?rh(n):null}catch{return b&&_.error(`Cannot extract url for event ${_t(e)}`),null}}function sh(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function ih(e,t,n,r,s,i){if(!s.exception?.values||!i||!Ve(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Ls(e,t,r,i.originalException,n,s.exception.values,o,0))}function Ls(e,t,n,r,s,i,o,c){if(i.length>=n+1)return i;let a=[...i];if(Ve(r[s],Error)){qo(o,c,r);const u=e(t,r[s]),l=a.length;
17Go(u,s,l,c),a=Ls(e,t,n,r[s],s,[u,...a],u,l)}return Zc(r)&&r.errors.forEach((u,l)=>{if(Ve(u,Error)){qo(o,c,r);const d=e(t,u),f=a.length;Go(d,`errors[${l}]`,f,c),a=Ls(e,t,n,u,s,[d,...a],d,f)}}),a}function Zc(e){return Array.isArray(e.errors)}function qo(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...Zc(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Go(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function oh(e){const t="console";ut(t,e),lt(t,ah)}function ah(){"console"in W&&ql.forEach(function(e){e in W.console&&be(W.console,e,function(t){return br[e]=t,function(...n){xe("console",{args:n,level:e}),br[e]?.apply(W.console,n)}})})}function eu(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const ch="Dedupe",uh=(()=>{let e;return{name:ch,processEvent(t){if(t.type)return t;try{if(dh(t,e))return b&&_.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),lh=uh;function dh(e,t){return t?!!(fh(e,t)||ph(e,t)):!1}function fh(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!nu(e,t)||!tu(e,t))}function ph(e,t){const n=Vo(t),r=Vo(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!nu(e,t)||!tu(e,t))}function tu(e,t){let n=no(e),r=no(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function nu(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Vo(e){return e.exception?.values?.[0]}const hh="ConversationId",mh=(()=>({name:hh,setup(e){e.on("spanStart",t=>{const n=G().getScopeData(),r=Ie().getScopeData(),s=n.conversationId||r.conversationId;s&&t.setAttribute(Cd,s)})}})),gh=mh;function _h(e,t,n,r,s){if(!e.fetchData)return;const{method:i,url:o}=e.fetchData,c=Le()&&t(o);if(e.endTimestamp){const p=e.fetchData.__span;if(!p)return;const h=r[p];h&&(c&&(Eh(h,e),yh(h,e,s)),delete r[p]);return}const{spanOrigin:a="auto.http.browser",propagateTraceparent:u=!1}=typeof s=="object"?s:{spanOrigin:s},l=!!ge(),d=c&&l?dn(vh(o,i,a)):new st;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){const p=e.args[0],h={...e.args[1]||{}},m=Sh(p,h,Le()&&l?d:void 0,u);m&&(e.args[1]=h,h.headers=m)}const f=B();if(f){const p={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",d,p)}return d}function yh(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Sh(e,t,n,r){const s=Qc({span:n,propagateTraceparent:r}),i=s["sentry-trace"],o=s.baggage,c=s.traceparent;if(!i)return;const a=t.headers||(ui(e)?e.headers:void 0);if(a)if(bh(a)){const u=new Headers(a);if(u.get("sentry-trace")||u.set("sentry-trace",i),r&&c&&!u.get("traceparent")&&u.set("traceparent",c),o){const l=u.get("baggage");l?Zn(l)||u.set("baggage",`${l},${o}`):u.set("baggage",o)}return u}else if(Array.isArray(a)){const u=[...a];a.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",i]),r&&c&&!a.find(d=>d[0]==="traceparent")&&u.push(["traceparent",c]);const l=a.find(d=>d[0]==="baggage"&&Zn(d[1]));return o&&!l&&u.push(["baggage",o]),u}else{const u="sentry-trace"in a?a["sentry-trace"]:void 0,l="traceparent"in a?a.traceparent:void 0,d="baggage"in a?a.baggage:void 0,f=d?Array.isArray(d)?[...d]:[d]:[],p=d&&(Array.isArray(d)?d.find(m=>Zn(m)):Zn(d));o&&!p&&f.push(o);const h={...a,"sentry-trace":u??i,baggage:f.length>0?f.join(","):void 0};return r&&c&&!l&&(h.traceparent=c),h}else return{...s}}function Eh(e,t){if(t.response){ac(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:ce,message:"internal_error"});e.end()}function Zn(e){return e.split(",").some(t=>t.trim().startsWith(Ir))}function bh(e){return typeof Headers<"u"&&Ve(e,Headers)}function vh(e,t,n){if(e.startsWith("data:")){const i=et(e);return{name:`${t} ${i}`,attributes:Yo(e,void 0,t,n)}}const r=wi(e),s=r?Pp(r):e;return{name:`${t} ${s}`,attributes:Yo(e,r,t,n)}}function Yo(e,t,n,r){const s={url:et(e),type:"fetch","http.method":n,[se]:r,[Fe]:"http.client"};return t&&(Ii(t)||(s["http.url"]=et(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function ru(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Rn=W;function Th(){return"history"in Rn&&!!Rn.history}function Ih(){if(!("fetch"in Rn))return!1;
17try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Fs(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function wh(){if(typeof EdgeRuntime=="string")return!0;if(!Ih())return!1;if(Fs(Rn.fetch))return!0;let e=!1;const t=Rn.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Fs(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){b&&_.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function su(e,t){const n="fetch";ut(n,e),lt(n,()=>iu(void 0,t))}function kh(e){const t="fetch-body-resolved";ut(t,e),lt(t,()=>iu(Ch))}function iu(e,t=!1){t&&!wh()||be(W,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=Mh(r),c={args:r,fetchData:{method:i,url:o},startTimestamp:de()*1e3,virtualError:s,headers:xh(r)};return e||xe("fetch",{...c}),n.apply(W,r).then(async a=>(e?e(a):xe("fetch",{...c,endTimestamp:de()*1e3,response:a}),a),a=>{xe("fetch",{...c,endTimestamp:de()*1e3,error:a}),On(a)&&a.stack===void 0&&(a.stack=s.stack,ue(a,"framesToPop",1));const l=B()?.getOptions().enhanceFetchErrorMessages??"always";if(l!==!1&&a instanceof TypeError&&(a.message==="Failed to fetch"||a.message==="Load failed"||a.message==="NetworkError when attempting to fetch resource."))try{const p=new URL(c.fetchData.url).host;l==="always"?a.message=`${a.message} (${p})`:ue(a,"__sentry_fetch_url_host__",p)}catch{}throw a})}})}async function Rh(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await r.read();clearTimeout(o),c&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(o)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Ch(e){let t;try{t=e.clone()}catch{return}Rh(t,()=>{xe("fetch-body-resolved",{endTimestamp:de()*1e3,response:e})})}function mr(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Ko(e){return typeof e=="string"?e:e?mr(e,"url")?e.url:e.toString?e.toString():"":""}function Mh(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Ko(n),method:mr(r,"method")?String(r.method).toUpperCase():ui(n)&&mr(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Ko(t),method:mr(t,"method")?String(t.method).toUpperCase():"GET"}}function xh(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(ui(t))return new Headers(t.headers)}catch{}}function Ah(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Nh(){return"npm"}function Oh(){return!Ah()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Bs(){return typeof window<"u"&&(!Oh()||Dh())}function Dh(){return W.process?.type==="renderer"}const M=W;let $s=0;function ou(){return $s>0}function Ph(){$s++,setTimeout(()=>{$s--})}function en(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(di(e))return e}catch{return e}const r=function(...s){try{const i=s.map(o=>en(o,t));return e.apply(this,i)}catch(i){throw Ph(),un(o=>{o.addEventProcessor(c=>(t.mechanism&&(ks(c,void 0),Xt(c,t.mechanism)),c.extra={...c.extra,arguments:s},c)),bi(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}ec(r,e),ue(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function ki(){const e=an(),{referrer:t}=M.document||{},{userAgent:n}=M.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function Ri(e,t){const n=Ci(e,t),r={type:Uh(t),value:Hh(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Lh(e,t,n,r){const i=B()?.getOptions().normalizeDepth,o=Gh(t),c={__serialized__:Tc(t,i)};if(o)return{exception:{values:[Ri(e,o)]},extra:c};const a={exception:{values:[{type:Wr(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:jh(t,{isUnhandledRejection:r})}]},extra:c};if(n){const u=Ci(e,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function ds(e,t){return{exception:{values:[Ri(e,t)]}}}function Ci(e,t){const n=t.stacktrace||t.stack||"",r=Bh(t),s=$h(t);try{return e(n,r,s)}catch{}return[]}const Fh=/Minified React error #\d+;/i;function Bh(e){return e&&Fh.test(e.message)?1:0}function $h(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function au(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Uh(e){const t=e?.name;return!t&&au(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Hh(e){const t=e?.message;return au(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Uo(t.error):Uo(e):"No error message"}function Wh(e,t,n,r){const s=n?.syntheticException||void 0,i=Mi(e,t,s,r);return Xt(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),$n(i)}function zh(e,t,n="info",r,s){const i=r?.syntheticException||void 0,o=Us(e,t,i,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),$n(o)}
17function Mi(e,t,n,r,s){let i;if(Ja(t)&&t.error)return ds(e,t.error);if(so(t)||nd(t)){const o=t;if("stack"in t)i=ds(e,t);else{const c=o.name||(so(o)?"DOMError":"DOMException"),a=o.message?`${c}: ${o.message}`:c;i=Us(e,a,n,r),ks(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return On(t)?ds(e,t):In(t)||Wr(t)?(i=Lh(e,t,n,s),Xt(i,{synthetic:!0}),i):(i=Us(e,t,n,r),ks(i,`${t}`),Xt(i,{synthetic:!0}),i)}function Us(e,t,n,r){const s={};if(r&&n){const i=Ci(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]}),Xt(s,{synthetic:!0})}if(ci(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function jh(e,{isUnhandledRejection:t}){const n=cd(e),r=t?"promise rejection":"exception";return Ja(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Wr(e)?`Event \`${qh(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function qh(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Gh(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class Vh extends kp{constructor(t){const n=Yh(t),r=M.SENTRY_SDK_SOURCE||Nh();Jc(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:i,enableLogs:o,_experiments:c,enableMetrics:a}=this._options,u=a??c?.enableMetrics??!0;M.document&&(i||o||u)&&M.document.addEventListener("visibilitychange",()=>{M.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),o&&Ds(this),u&&Uc(this))}),s&&this.on("beforeSendSession",Up)}eventFromException(t,n){return Wh(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return zh(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function Yh(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:M.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Mt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,D=W,Kh=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Un=(e,t,n,r)=>{let s,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(s??0),(i||s===void 0)&&(s=t.value,t.delta=i,t.rating=Kh(t.value,n),e(t)))}},Hn=(e=!0)=>{const t=D.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},fn=()=>Hn()?.activationStart??0;function tt(e,t,n){D.document&&D.addEventListener(e,t,n)}function Rr(e,t,n){D.document&&D.removeEventListener(e,t,n)}let Vt=-1;const cu=new Set,Xh=()=>D.document?.visibilityState==="hidden"&&!D.document?.prerendering?0:1/0,gr=e=>{if(Jh(e)&&Vt>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of cu)t();isFinite(Vt)||(Vt=e.type==="visibilitychange"?e.timeStamp:0,Rr("prerenderingchange",gr,!0))}},Wn=()=>{if(D.document&&Vt<0){const e=fn();Vt=(D.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??Xh(),tt("visibilitychange",gr,!0),tt("pagehide",gr,!0),tt("prerenderingchange",gr,!0)}return{get firstHiddenTime(){return Vt},onHidden(e){cu.add(e)}}};function Jh(e){return e.type==="pagehide"||D.document?.visibilityState==="hidden"}const Qh=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,zn=(e,t=-1)=>{const n=Hn();let r="navigate";return n&&(D.document?.prerendering||fn()>0?r="prerender":D.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Qh(),navigationType:r}},fs=new WeakMap;function xi(e,t){try{return fs.get(e)||fs.set(e,new t),fs.get(e)}catch{return new t}}class Cr{constructor(){Cr.prototype.__init.call(this),Cr.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const pn=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Ai=e=>{let t=!1;return()=>{t||(e(),t=!0)}},jr=e=>{D.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Zh=[1800,3e3],em=(e,t={})=>{jr(()=>{const n=Wn(),r=zn("FCP");let s;const o=pn("paint",c=>{for(const a of c)a.name==="first-contentful-paint"&&(o.disconnect(),a.startTime<n.firstHiddenTime&&(r.value=Math.max(a.startTime-fn(),0),r.entries.push(a),s(!0)))});o&&(s=Un(e,r,Zh,t.reportAllChanges))})},tm=[.1,.25],nm=(e,t={})=>{em(Ai(()=>{const n=zn("CLS",0);let r;const s=Wn(),i=xi(t,Cr),o=a=>{for(const u of a)i._processEntry(u);i._sessionValue>
17n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},c=pn("layout-shift",o);c&&(r=Un(e,n,tm,t.reportAllChanges),s.onHidden(()=>{o(c.takeRecords()),r(!0)}),D?.setTimeout?.(r))}))};let uu=0,ps=1/0,er=0;const rm=e=>{e.forEach(t=>{t.interactionId&&(ps=Math.min(ps,t.interactionId),er=Math.max(er,t.interactionId),uu=er?(er-ps)/7+1:0)})};let Hs;const lu=()=>Hs?uu:performance.interactionCount||0,sm=()=>{"interactionCount"in performance||Hs||(Hs=pn("event",rm,{type:"event",buffered:!0,durationThreshold:0}))},hs=10;let du=0;const im=()=>lu()-du;class Mr{constructor(){Mr.prototype.__init.call(this),Mr.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){du=lu(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(im()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<hs||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,i)=>i._latency-s._latency),this._longestInteractionList.length>hs){const s=this._longestInteractionList.splice(hs);for(const i of s)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(r)}}}const fu=e=>{const t=D.requestIdleCallback||D.setTimeout;D.document?.visibilityState==="hidden"?e():(e=Ai(e),tt("visibilitychange",e,{once:!0,capture:!0}),tt("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Rr("visibilitychange",e,{capture:!0}),Rr("pagehide",e,{capture:!0})}))},om=[200,500],am=40,cm=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=Wn();jr(()=>{sm();const r=zn("INP");let s;const i=xi(t,Mr),o=a=>{fu(()=>{for(const l of a)i._processEntry(l);const u=i._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,s())})},c=pn("event",o,{durationThreshold:t.durationThreshold??am});s=Un(e,r,om,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(c.takeRecords()),s(!0)}))})};class um{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const lm=[2500,4e3],dm=(e,t={})=>{jr(()=>{const n=Wn(),r=zn("LCP");let s;const i=xi(t,um),o=a=>{t.reportAllChanges||(a=a.slice(-1));for(const u of a)i._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-fn(),0),r.entries=[u],s())},c=pn("largest-contentful-paint",o);if(c){s=Un(e,r,lm,t.reportAllChanges);const a=Ai(()=>{o(c.takeRecords()),c.disconnect(),s(!0)}),u=l=>{l.isTrusted&&(fu(a),Rr(l.type,u,{capture:!0}))};for(const l of["keydown","click","visibilitychange"])tt(l,u,{capture:!0})}})},fm=[800,1800],Ws=e=>{D.document?.prerendering?jr(()=>Ws(e)):D.document?.readyState!=="complete"?addEventListener("load",()=>Ws(e),!0):setTimeout(e)},pm=(e,t={})=>{const n=zn("TTFB"),r=Un(e,n,fm,t.reportAllChanges);Ws(()=>{const s=Hn();s&&(n.value=Math.max(s.responseStart-fn(),0),n.entries=[s],r(!0))})},En={},xr={};let pu,hu,mu,gu;function Ni(e,t=!1){return qr("cls",e,mm,pu,t)}function Oi(e,t=!1){return qr("lcp",e,gm,hu,t)}function hm(e){return qr("ttfb",e,_m,mu)}function _u(e){return qr("inp",e,ym,gu)}function xt(e,t){return yu(e,t),xr[e]||(Sm(e),xr[e]=!0),Su(e,t)}function jn(e,t){const n=En[e];if(n?.length)for(const r of n)try{r(t)}catch(s){Mt&&_.error(`Error while triggering instrumentation handler. 18Type: ${e} 19Name: ${Ge(r)} 20Error:`,s)}}function mm(){return nm(e=>{jn("cls",{metric:e}),pu=e},{reportAllChanges:!0})}function gm(){return dm(e=>{jn("lcp",{metric:e}),hu=e},{reportAllChanges:!0})}function _m(){return pm(e=>{jn("ttfb",{metric:e}),mu=e})}function ym(){return cm(e=>{jn("inp",{metric:e}),gu=e})}function qr(e,t,n,r,s=!1){yu(e,t);let i;return xr[e]||(i=n(),xr[e]=!0),r&&t({metric:r}),Su(e,t,s?i:void 0)}function Sm(e){const t={};e==="event"&&(t.durationThreshold=0),pn(e,n=>{jn(e,{entries:n})},t)}function yu(e,t){En[e]=En[e]||[],En[e].push(t)}function Su(e,t,n){return()=>{n&&n();const r=En[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function Em(e){return"duration"in e}const bm=e=>{const t=n=>{(n.type==="pagehide"||D.document?.visibilityState==="hidden")&&e(n)};tt("visibilitychange",t,{capture:!0,once:!0}),tt("pagehide",t,{capture:!0,once:!0})};function ms(e){return typeof e=="number"&&isFinite(e)}function ot(e,t,n,{...r}){const s=O(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),yi(e,()=>{const i=dn({startTime:t,...r});return i&&i.end(n),i})}function Di(e){const t=B();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:i}=e,{release:o,environment:c,sendDefaultPii:a}=t.getOptions(),l=t.getIntegrationByName("Replay")?.getReplayId(),d=G(),f=d.getUser(),p=f!==void 0?f.email||f.id||f.ip_address:void 0;let h;try{h=d.getScopeData().contexts.profile.profile_id}catch{}const m={release:o,environment:c,user:p||void 0,profile_id:h||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":D.navigator?.userAgent,"client.address":a?"{{auto}}":void 0,...s};return dn({name:n,attributes:m,startTime:i,experimental:{standalone:!0}})}function qn(){return D.addEventListener&&D.performance}function re(e){return e/1e3}function vm(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}
20return r===e&&(t=r),{name:t,version:n}}function Eu(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function bu(e,t){let n,r=!1;function s(c){!r&&n&&t(c,n),r=!0}bm(()=>{s("pagehide")});const i=e.on("beforeStartNavigationSpan",(c,a)=>{a?.isRedirect||(s("navigation"),i(),o())}),o=e.on("afterStartPageLoadSpan",c=>{n=c.spanContext().spanId,o()})}function Tm(e){let t=0,n;if(!Eu("layout-shift"))return;const r=Ni(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);bu(e,(s,i)=>{Im(t,n,i,s),r()})}function Im(e,t,n,r){Mt&&_.log(`Sending CLS span (${e})`);const s=t?re((Te()||0)+t.startTime):de(),i=G().getScopeData().transactionName,o=t?ve(t.sources[0]?.node):"Layout shift",c={[se]:"auto.http.browser.cls",[Fe]:"ui.webvital.cls",[ln]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,l)=>{c[`cls.source.${l+1}`]=ve(u.node)});const a=Di({name:o,transaction:i,attributes:c,startTime:s});a&&(a.addEvent("cls",{[Fn]:"",[Bn]:e}),a.end(s))}function wm(e){let t=0,n;if(!Eu("largest-contentful-paint"))return;const r=Oi(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);bu(e,(s,i)=>{km(t,n,i,s),r()})}function km(e,t,n,r){Mt&&_.log(`Sending LCP span (${e})`);const s=re((Te()||0)+(t?.startTime||0)),i=G().getScopeData().transactionName,o=t?ve(t.element):"Largest contentful paint",c={[se]:"auto.http.browser.lcp",[Fe]:"ui.webvital.lcp",[ln]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(c["lcp.element"]=ve(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url),t.loadTime!=null&&(c["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(c["lcp.renderTime"]=t.renderTime),t.size!=null&&(c["lcp.size"]=t.size));const a=Di({name:o,transaction:i,attributes:c,startTime:s});a&&(a.addEvent("lcp",{[Fn]:"millisecond",[Bn]:e}),a.end(s))}function Me(e){return e&&((Te()||performance.timeOrigin)+e)/1e3}function vu(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=vm(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return Te()||qn()?.timeOrigin?Rm({...t,"http.request.redirect_start":Me(e.redirectStart),"http.request.redirect_end":Me(e.redirectEnd),"http.request.worker_start":Me(e.workerStart),"http.request.fetch_start":Me(e.fetchStart),"http.request.domain_lookup_start":Me(e.domainLookupStart),"http.request.domain_lookup_end":Me(e.domainLookupEnd),"http.request.connect_start":Me(e.connectStart),"http.request.secure_connection_start":Me(e.secureConnectionStart),"http.request.connection_end":Me(e.connectEnd),"http.request.request_start":Me(e.requestStart),"http.request.response_start":Me(e.responseStart),"http.request.response_end":Me(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function Rm(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const Cm=2147483647;let Xo=0,Pe={},Ee,Ar;function Mm({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=qn();if(r&&Te()){r.mark&&D.performance.mark("sentry-tracing-init");const s=t?wm(n):Dm(),i=Pm(),o=e?Tm(n):Om();return()=>{s?.(),i(),o?.()}}return()=>{}}function xm(){xt("longtask",({entries:e})=>{const t=ge();if(!t)return;const{op:n,start_timestamp:r}=O(t);for(const s of e){const i=re(Te()+s.startTime),o=re(s.duration);n==="navigation"&&r&&i<r||ot(t,i,i+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[se]:"auto.ui.browser.metrics"}})}})}function Am(){new PerformanceObserver(t=>{const n=ge();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=re(Te()+r.startTime),{start_timestamp:i,op:o}=O(n);if(o==="navigation"&&i&&s<i)continue;const c=re(r.duration),a={[se]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:l,invokerType:d,sourceURL:f,sourceFunctionName:p,sourceCharPosition:h}=u;a["browser.script.invoker"]=l,a["browser.script.invoker_type"]=d,f&&(a["code.filepath"]=f),p&&(a["code.function"]=p),h!==-1&&(a["browser.script.source_char_position"]=h),ot(n,s,s+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0})}function Nm(){xt("event",({entries:e})=>{const t=ge();if(t){for(const n of e)if(n.name==="click"){const r=re(Te()+n.startTime),s=re(n.duration),i={name:ve(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[se]:"auto.ui.browser.metrics"}},o=Za(n.target);o&&(i.attributes["ui.component_name"]=o),ot(t,r,r+s,i)}}})}
20function Om(){return Ni(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Pe.cls={value:e.value,unit:""},Ar=t)},!0)}function Dm(){return Oi(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Pe.lcp={value:e.value,unit:"millisecond"},Ee=t)},!0)}function Pm(){return hm(({metric:e})=>{e.entries[e.entries.length-1]&&(Pe.ttfb={value:e.value,unit:"millisecond"})})}function Lm(e,t){const n=qn(),r=Te();if(!n?.getEntries||!r)return;const s=re(r),i=n.getEntries(),{op:o,start_timestamp:c}=O(e);i.slice(Xo).forEach(a=>{const u=re(a.startTime),l=re(Math.max(0,a.duration));if(!(o==="navigation"&&c&&s+u<c))switch(a.entryType){case"navigation":{Um(e,a,s);break}case"mark":case"paint":case"measure":{Bm(e,a,u,l,s,t.ignorePerformanceApiSpans);const d=Wn(),f=a.startTime<d.firstHiddenTime;a.name==="first-paint"&&f&&(Pe.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&f&&(Pe.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{zm(e,a,a.name,u,l,s,t.ignoreResourceSpans);break}}}),Xo=Math.max(i.length-1,0),jm(e),o==="pageload"&&(Vm(Pe),t.recordClsOnPageloadSpan||delete Pe.cls,t.recordLcpOnPageloadSpan||delete Pe.lcp,Object.entries(Pe).forEach(([a,u])=>{Tf(a,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",fn()),qm(e,t)),Ee=void 0,Ar=void 0,Pe={}}function Fm(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components â"}catch{return}}function Bm(e,t,n,r,s,i){if(Fm(t)||["mark","measure"].includes(t.entryType)&&ze(t.name,i))return;const o=Hn(!1),c=re(o?o.requestStart:0),a=s+Math.max(n,c),u=s+n,l=u+r,d={[se]:"auto.resource.browser.metrics"};a!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=a),$m(d,t),a<=l&&ot(e,a,l,{name:t.name,op:t.entryType,attributes:d})}function $m(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&Kt(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(Kt(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Um(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{tr(e,t,r,n)}),tr(e,t,"secureConnection",n,"TLS/SSL"),tr(e,t,"fetch",n,"cache"),tr(e,t,"domainLookup",n,"DNS"),Wm(e,t,n)}function tr(e,t,n,r,s=n){const i=Hm(n),o=t[i],c=t[`${n}Start`];!c||!o||ot(e,r+re(c),r+re(o),{op:`browser.${s}`,name:t.name,attributes:{[se]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Hm(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Wm(e,t,n){const r=n+re(t.requestStart),s=n+re(t.responseEnd),i=n+re(t.responseStart);t.responseEnd&&(ot(e,r,s,{op:"browser.request",name:t.name,attributes:{[se]:"auto.ui.browser.metrics"}}),ot(e,i,s,{op:"browser.response",name:t.name,attributes:{[se]:"auto.ui.browser.metrics"}}))}function zm(e,t,n,r,s,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(c))return;const a={[se]:"auto.resource.browser.metrics"},u=wt(n);u.protocol&&(a["url.scheme"]=u.protocol.split(":").pop()),u.host&&(a["server.address"]=u.host),a["url.same_origin"]=n.includes(D.location.origin),Gm(t,a,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const l={...a,...vu(t)},d=i+r,f=d+s;ot(e,d,f,{name:n.replace(D.location.origin,""),op:c,attributes:l})}function jm(e){const t=D.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),ms(n.rtt)&&(Pe["connection.rtt"]={value:n.rtt,unit:"millisecond"})),ms(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),ms(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function qm(e,t){Ee&&t.recordLcpOnPageloadSpan&&(Ee.element&&e.setAttribute("lcp.element",ve(Ee.element)),Ee.id&&e.setAttribute("lcp.id",Ee.id),Ee.url&&e.setAttribute("lcp.url",Ee.url.trim().slice(0,200)),Ee.loadTime!=null&&e.setAttribute("lcp.loadTime",Ee.loadTime),Ee.renderTime!=null&&e.setAttribute("lcp.renderTime",Ee.renderTime),e.setAttribute("lcp.size",Ee.size)),Ar?.sources&&t.recordClsOnPageloadSpan&&Ar.sources.forEac
20h((n,r)=>e.setAttribute(`cls.source.${r+1}`,ve(n.node)))}function Gm(e,t,n){n.forEach(([r,s])=>{const i=e[r];i!=null&&(typeof i=="number"&&i<Cm||typeof i=="string")&&(t[s]=i)})}function Vm(e){const t=Hn(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Ym(){return qn()&&Te()?xt("element",Km):()=>{}}const Km=({entries:e})=>{const t=ge(),n=t?he(t):void 0,r=n?O(n).description:G().getScopeData().transactionName;e.forEach(s=>{const i=s;if(!i.identifier)return;const o=i.name,c=i.renderTime,a=i.loadTime,[u,l]=a?[re(a),"load-time"]:c?[re(c),"render-time"]:[de(),"entry-emission"],d=o==="image-paint"?re(Math.max(0,(c??0)-(a??0))):0,f={[se]:"auto.ui.browser.elementtiming",[Fe]:"ui.elementtiming",[ae]:"component","sentry.span_start_time_source":l,"sentry.transaction_name":r,"element.id":i.id,"element.type":i.element?.tagName?.toLowerCase()||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":c,"element.load_time":a,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":o};Mf({name:`element[${i.identifier}]`,attributes:f,startTime:u,onlyIfParent:!0},p=>{p.end(u+d)})})},Xm=1e3;let Jo,zs,js;function Tu(e){ut("dom",e),lt("dom",Jm)}function Jm(){if(!D.document)return;const e=xe.bind(null,"dom"),t=Qo(e,!0);D.document.addEventListener("click",t,!1),D.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=D[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(be(s,"addEventListener",function(i){return function(o,c,a){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=u[o]=u[o]||{refCount:0};if(!l.handler){const d=Qo(e);l.handler=d,i.call(this,o,d,a)}l.refCount++}catch{}return i.call(this,o,c,a)}}),be(s,"removeEventListener",function(i){return function(o,c,a){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},l=u[o];l&&(l.refCount--,l.refCount<=0&&(i.call(this,o,l.handler,a),l.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,c,a)}}))})}function Qm(e){if(e.type!==zs)return!1;try{if(!e.target||e.target._sentryId!==js)return!1}catch{}return!0}function Zm(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Qo(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=eg(n);if(Zm(n.type,r))return;ue(n,"_sentryCaptured",!0),r&&!r._sentryId&&ue(r,"_sentryId",Ce());
20const s=n.type==="keypress"?"input":n.type;Qm(n)||(e({event:n,name:s,global:t}),zs=n.type,js=r?r._sentryId:void 0),clearTimeout(Jo),Jo=D.setTimeout(()=>{js=void 0,zs=void 0},Xm)}}function eg(e){try{return e.target}catch{return null}}let nr;function Gr(e){const t="history";ut(t,e),lt(t,tg)}function tg(){if(D.addEventListener("popstate",()=>{const t=D.location.href,n=nr;if(nr=t,n===t)return;xe("history",{from:n,to:t})}),!Th())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=nr,i=ng(String(r));if(nr=i,s===i)return t.apply(this,n);xe("history",{from:s,to:i})}return t.apply(this,n)}}be(D.history,"pushState",e),be(D.history,"replaceState",e)}function ng(e){try{return new URL(e,D.location.origin).toString()}catch{return e}}const _r={};function Iu(e){const t=_r[e];if(t)return t;let n=D[e];if(Fs(n))return _r[e]=n.bind(D);const r=D.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(s)}catch(s){Mt&&_.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(_r[e]=n.bind(D))}function rg(e){_r[e]=void 0}function Gn(...e){return Iu("setTimeout")(...e)}const St="__sentry_xhr_v3__";function wu(e){ut("xhr",e),lt("xhr",sg)}function sg(){if(!D.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,i=de()*1e3,o=We(r[0])?r[0].toUpperCase():void 0,c=ig(r[1]);if(!o||!c)return t.apply(n,r);n[St]={method:o,url:c,request_headers:{}},o==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const a=()=>{const u=n[St];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const l={endTimestamp:de()*1e3,startTimestamp:i,xhr:n,virtualError:s};xe("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,l,d){return a(),u.apply(l,d)}}):n.addEventListener("readystatechange",a),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,l,d){const[f,p]=d,h=l[St];return h&&We(f)&&We(p)&&(h.request_headers[f.toLowerCase()]=p),u.apply(l,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[St];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const i={startTimestamp:de()*1e3,xhr:n};return xe("xhr",i),t.apply(n,r)}})}function ig(e){if(We(e))return e;try{return e.toString()}catch{}}const og=Symbol.for("sentry__originalRequestBody");function ku(e){return new URLSearchParams(e).toString()}function Ru(e,t=_){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ku(e)];if(!e)return[void 0]}catch(n){return Mt&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Mt&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Cu(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){const n=e[0][og];return n!==void 0?n:void 0}}function Mu(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return Mt&&_.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 21`).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}const gs=[],yr=new Map,$t=new Map,ag=60;function cg(){if(qn()&&Te()){const t=ug();return()=>{t()}}return()=>{}}const qs={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ug(){return _u(lg)}const lg=({metric:e})=>{if(e.value==null)return;const t=re(e.value);if(t>ag)return;const n=e.entries.find(h=>h.duration===e.value&&qs[h.name]);if(!n)return;const{interactionId:r}=n,s=qs[n.name],i=re(Te()+n.startTime),o=ge(),c=o?he(o):void 0,a=r!=null?yr.get(r):void 0,u=a?.span||
21c,l=u?O(u).description:G().getScopeData().transactionName,d=a?.elementName||ve(n.target),f={[se]:"auto.http.browser.inp",[Fe]:`ui.interaction.${s}`,[ln]:n.duration},p=Di({name:d,transaction:l,attributes:f,startTime:i});p&&(p.addEvent("inp",{[Fn]:"millisecond",[Bn]:e.value}),p.end(i+t))};function dg(){const e=Object.keys(qs);Bs()&&e.forEach(s=>{D.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const i=s.target;if(!i)return;const o=ve(i),c=Math.round(s.timeStamp);if($t.set(c,o),$t.size>50){const a=$t.keys().next().value;a!==void 0&&$t.delete(a)}}function n(s){const i=Math.round(s.startTime);let o=$t.get(i);if(!o)for(let c=-5;c<=5;c++){const a=$t.get(i+c);if(a){o=a;break}}return o||"<unknown>"}const r=({entries:s})=>{const i=ge(),o=i&&he(i);s.forEach(c=>{if(!Em(c))return;const a=c.interactionId;if(a==null||yr.has(a))return;const u=c.target?ve(c.target):n(c);if(gs.length>10){const l=gs.shift();yr.delete(l)}gs.push(a),yr.set(a,{span:o,elementName:u})})};xt("event",r),xt("first-input",r)}const fg=40;function pg(e,t=Iu("fetch")){let n=0,r=0;async function s(i){const o=i.body.length;n+=o,r++;const c={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const a=await t(e.url,c);return{statusCode:a.status,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")}}}catch(a){throw rg("fetch"),a}finally{n-=o,r--}}return bp(e,s,Ti(e.bufferSize||fg))}const Se=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,hg=30,mg=50;function Gs(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?Rt:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const gg=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,_g=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yg=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sg=/at (.+?) ?\(data:(.+?),/,Eg=e=>{const t=e.match(Sg);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=gg.exec(e);if(n){const[,s,i,o]=n;return Gs(s,Rt,+i,+o)}const r=_g.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const c=yg.exec(r[2]);c&&(r[2]=c[1],r[3]=c[2],r[4]=c[3])}const[i,o]=xu(r[1]||Rt,r[2]);return Gs(o,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},bg=[hg,Eg],vg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Tg=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ig=e=>{const t=vg.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=Tg.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],s=t[1]||Rt;return[s,r]=xu(s,r),Gs(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},wg=[mg,Ig],kg=[bg,wg],Rg=Ga(...kg),xu=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Rt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},rr=1024,Cg="Breadcrumbs",Mg=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Cg,setup(n){t.console&&oh(Og(n)),t.dom&&Tu(Ng(n,t.dom)),t.xhr&&wu(Dg(n)),t.fetch&&su(Pg(n)),t.history&&Gr(Lg(n)),t.sentry&&n.on("beforeSendEvent",Ag(n))}}}),xg=Mg;function Ag(e){return function(n){B()===e&&it({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:_t(n)},{event:n})}}function Ng(e,t){return function(r){if(B()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>rr&&(Se&&_.warn(`\`dom.maxStringLength\` cannot exceed ${rr}, but a value of ${c} was configured. Sentry will use ${rr} instead.`),c=rr),typeof o=="string"&&(o=[o]);try{const u=r.event,l=Fg(u)?u.target:u;s=ve(l,{keyAttrs:o,maxStringLength:c}),i=Za(l)}catch{s="<unknown>"}if(s.length===0)return;const a={category:`ui.${r.name}`,message:s};i&&(a.data={"ui.component_name":i}),it(a,{event:r.event,name:r.name,global:r.global})}}function Og(e){return function(n){if(B()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:eu(n.level),message:ao(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${ao(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;it(r,{input:n.args,level:n.level})}}function Dg(e){return function(n){if(B()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[St];if(!r||!s||!i)return;const{method:o,url:c,status_code:a,body:u}=i,l={method:o,url:c,status_code:a},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:l,type:"http",level:ru(a)};e.emit("beforeOutgoingRequestBreadcrumb",f,d),it(f,d)}}function Pg(e){return function(n){if(B()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;
21if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",c,o),it(c,o)}else{const i=n.response,o={...n.fetchData,status_code:i?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;const c={input:n.args,response:i,startTimestamp:r,endTimestamp:s},a={category:"fetch",data:o,type:"http",level:ru(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,c),it(a,c)}}}function Lg(e){return function(n){if(B()!==e)return;let r=n.from,s=n.to;const i=wt(M.location.href);let o=r?wt(r):void 0;const c=wt(s);o?.path||(o=i),i.protocol===c.protocol&&i.host===c.host&&(s=c.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),it({category:"navigation",data:{from:r,to:s}})}}function Fg(e){return!!e&&!!e.target}const Bg=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],$g="BrowserApiErrors",Ug=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:$g,setupOnce(){t.setTimeout&&be(M,"setTimeout",Zo),t.setInterval&&be(M,"setInterval",Zo),t.requestAnimationFrame&&be(M,"requestAnimationFrame",Wg),t.XMLHttpRequest&&"XMLHttpRequest"in M&&be(XMLHttpRequest.prototype,"send",zg);const n=t.eventTarget;n&&(Array.isArray(n)?n:Bg).forEach(s=>jg(s,t))}}}),Hg=Ug;function Zo(e){return function(...t){const n=t[0];return t[0]=en(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Ge(e)}`}}),e.apply(this,t)}}function Wg(e){return function(t){return e.apply(this,[en(t,{mechanism:{data:{handler:Ge(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function zg(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&be(n,s,function(i){const o={mechanism:{data:{handler:Ge(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},c=di(i);return c&&(o.mechanism.data.handler=Ge(c)),en(i,o)})}),e.apply(this,t)}}function jg(e,t){const r=M[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(be(r,"addEventListener",function(s){return function(i,o,c){try{qg(o)&&(o.handleEvent=en(o.handleEvent,{mechanism:{data:{handler:Ge(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&Gg(this,i,o),s.apply(this,[i,en(o,{mechanism:{data:{handler:Ge(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),be(r,"removeEventListener",function(s){return function(i,o,c){try{const a=o.__sentry_wrapped__;a&&s.call(this,i,a,c)}catch{}return s.call(this,i,o,c)}}))}function qg(e){return typeof e.handleEvent=="function"}function Gg(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const Vg=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof M.document>"u"){Se&&_.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}xo({ignoreDuration:!0}),us();const n=Ie();let r=n.getUser();n.addScopeListener(s=>{const i=s.getUser();(r?.id!==i?.id||r?.ip_address!==i?.ip_address)&&(us(),r=i)}),t==="route"&&Gr(({from:s,to:i})=>{s!==i&&(xo({ignoreDuration:!0}),us())})}}},Yg="CultureContext",Kg=(()=>({name:Yg,preprocessEvent(e){const t=Jg();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}})),Xg=Kg;function Jg(){try{const e=M.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const Qg="GlobalHandlers",Zg=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Qg,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(t_(n),ea("onerror")),t.onunhandledrejection&&(n_(n),ea("onunhandledrejection"))}}}),e_=Zg;function t_(e){Ya(t=>{const{stackParser:n,attachStacktrace:r}=Au();if(B()!==e||ou())return;const{msg:s,url:i,line:o,column:c,error:a}=t,u=i_(Mi(n,a||s,void 0,r,!1),i,o,c);u.level="error",Oc(u,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function n_(e){Ka(t=>{const{stackParser:n,attachStacktrace:r}=Au();if(B()!==e||ou())return;const s=r_(t),i=Kt(s)?s_(s):Mi(n,s,void 0,r,!0);i.level="error",Oc(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function r_(e){if(Kt(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function s_(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function i_(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},c=o.stacktrace=o.stacktrace||{},a=c.frames=c.frames||[],u=r,l=n,d=o_(t)??an();return a.length===0&&a.push({colno:u,filename:d,function:Rt,in_app:!0,lineno:l}),e}
21function ea(e){Se&&_.log(`Global Handler attached: ${e}`)}function Au(){return B()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function o_(e){if(!(!We(e)||e.length===0))return e.startsWith("data:")?`<${et(e,!1)}>`:e}const a_=()=>({name:"HttpContext",preprocessEvent(e){if(!M.navigator&&!M.location&&!M.document)return;const t=ki(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),c_="cause",u_=5,l_="LinkedErrors",d_=((e={})=>{const t=e.limit||u_,n=e.key||c_;return{name:l_,preprocessEvent(r,s,i){const o=i.getOptions();ih(Ri,o.stackParser,n,t,r,s)}}}),f_=d_;function p_(){return h_()?(Se&&Nt(()=>{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 h_(){if(typeof M.window>"u")return!1;const e=M;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=an(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(M===M.top&&r.some(i=>n.startsWith(`${i}://`)))}function m_(e){return[Jp(),Vp(),gh(),Hg(),xg(),e_(),f_(),lh(),a_(),Xg(),Vg()]}function g_(e={}){const t=!e.skipBrowserExtensionCheck&&p_();let n=e.defaultIntegrations==null?m_():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:Ql(e.stackParser||Rg),integrations:lp({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||pg};return Np(Vh,r)}function ta(e={}){const t=M.document,n=t?.head||t?.body;if(!n){Se&&_.error("[showReportDialog] Global document not defined");return}const r=G(),i=B()?.getDsn();if(!i){Se&&_.error("[showReportDialog] DSN not configured");return}const o={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||tp()},c=M.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=cp(i,o);const{onLoad:a,onClose:u}=o;if(a&&(c.onload=a),u){const l=d=>{if(d.data==="__sentry_reportdialog_closed__")try{u()}finally{M.removeEventListener("message",l)}};M.addEventListener("message",l)}n.appendChild(c)}const ee=W,Pi="sentryReplaySession",__="replay_event",Li="Unable to send Replay",y_=3e5,S_=9e5,E_=5e3,b_=5500,v_=6e4,T_=5e3,I_=3,na=15e4,sr=5e3,w_=3e3,k_=300,Fi=2e7,R_=4999,C_=5e4,ra=36e5;var M_=Object.defineProperty,x_=(e,t,n)=>t in e?M_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sa=(e,t,n)=>x_(e,typeof t!="symbol"?t+"":t,n),oe=(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))(oe||{});function A_(e){return e.nodeType===e.ELEMENT_NODE}function bn(e){return e?.host?.shadowRoot===e}function vn(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function N_(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 O_(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Nr(e){try{const t=e.rules||e.cssRules;return t?N_(Array.from(t,Nu).join("")):null}catch{return null}}function D_(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],i=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function Nu(e){let t;if(L_(e))try{t=Nr(e.styleSheet)||O_(e)}catch{}else if(F_(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=D_(e)),r&&(n=P_(n)),r||s)return n}return t||e.cssText}function P_(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function L_(e){return"styleSheet"in e}function F_(e){return"selectorText"in e}class Ou{constructor(){sa(this,"idNodeMap",new Map),sa(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){const n=this.getId(t);
21this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function B_(){return new Ou}function Vr({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Cn({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function tn(e){return e.toLowerCase()}function Vs(e){return e.toUpperCase()}const ia="__rrweb_original__";function $_(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const i=t.getImageData,o=ia in i?i[ia]:i;if(new Uint32Array(o.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function Bi(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?tn(t):null}function Or(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Du(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const oa={};function Pu(e){const t=oa[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return oa[e]=r.bind(window)}function Ys(...e){return Pu("setTimeout")(...e)}function Lu(...e){return Pu("clearTimeout")(...e)}function Fu(e){try{return e.contentDocument}catch{}}let U_=1;const H_=new RegExp("[^a-z0-9-_:]"),Mn=-2;function $i(){return U_++}function W_(e){if(e instanceof HTMLFormElement)return"form";const t=tn(e.tagName);return H_.test(t)?"div":t}function z_(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Ut,aa;const j_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,q_=/^(?:[a-z+]+:)?\/\//i,G_=/^www\..*/i,V_=/^(data:)([^,]*),(.*)/i;function Y_(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const i=s.indexOf(":");if(i===-1){r.push(s);continue}const o=s.slice(0,i).trim();t.has(o)||r.push(s)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Dr(e,t){return(e||"").replace(j_,(n,r,s,i,o,c)=>{const a=s||o||c,u=r||i||"";if(!a)return n;if(q_.test(a)||G_.test(a))return`url(${u}${a}${u})`;if(V_.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${z_(t)+a}${u})`;const l=t.split("/"),d=a.split("/");l.pop();for(const f of d)f!=="."&&(f===".."?l.pop():l.push(f));return`url(${u}${l.join("/")}${u})`})}const K_=/^[^ \t\n\r\u000c]+/,X_=/^[, \t\n\r\u000c]+/;function J_(e,t){if(t.trim()==="")return t;let n=0;function r(i){let o;const c=i.exec(t.substring(n));return c?(o=c[0],n+=o.length,o):""}const s=[];for(;r(X_),!(n>=t.length);){let i=r(K_);if(i.slice(-1)===",")i=zt(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=zt(e,i);let c=!1;for(;;){const a=t.charAt(n);if(a===""){s.push((i+o).trim());break}else if(c)a===")"&&(c=!1);else if(a===","){n+=1,s.push((i+o).trim());break}else a==="("&&(c=!0);o+=a,n+=1}}}return s.join(", ")}const ca=new WeakMap;function zt(e,t){return!t||t.trim()===""?t:Yr(e,t)}function Q_(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Yr(e,t){let n=ca.get(e);if(n||(n=e.createElement("a"),ca.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Bu(e,t,n,r,s,i,o){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return zt(e,r);if(n==="xlink:href"&&r[0]!=="#")return zt(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return zt(e,r);if(n==="srcset")return J_(e,r);if(n==="style"){let c=Dr(r,Yr(e));return o&&o.size>0&&(c=Y_(c,o)),c}else if(t==="object"&&n==="data")return zt(e,r);return typeof i=="function"?i(n,r,s):r}function $u(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Z_(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function ey(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Et(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Et(e.parentNode,t,n,r+1)}function jt(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(ey(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function nn(e,t,n,r,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const u=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let c=-1,a=-1;if(i){if(a=Et(o,jt(r,s)),a<0)return!0;c=Et(o,jt(t,n),a>=0?a:1/0)}else{if(c=Et(o,jt(t,n)),c<0)return!1;a=Et(o,jt(r,s),c>=0?c:1/0)}return c>=0?a>=0?c<=a:!0:a>=0?!1:!!i}catch{}return!!i}function ty(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const c=Ys(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{Lu(c),s=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return Ys(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function ny(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=Ys(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Lu(i),r=!0,t()})}function ry(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskAttributeFn:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:S={}
21,inlineImages:v,recordCanvas:L,keepIframeSrcFn:x,newlyAddedElement:P=!1,ignoreCSSAttributes:w}=t,y=sy(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:oe.Document,childNodes:[],compatMode:e.compatMode}:{type:oe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:oe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return oy(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:a,maskInputOptions:h,maskInputFn:g,dataURLOptions:S,inlineImages:v,recordCanvas:L,keepIframeSrcFn:x,newlyAddedElement:P,rootId:y,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:w});case e.TEXT_NODE:return iy(e,{doc:n,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:y});case e.CDATA_SECTION_NODE:return{type:oe.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:oe.Comment,textContent:e.textContent||"",rootId:y};default:return!1}}function sy(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function iy(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:c,maskInputOptions:a,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=d==="STYLE"?!0:void 0,h=d==="SCRIPT"?!0:void 0,m=d==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=Nr(e.parentNode.sheet))}catch(S){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`,e)}f=Dr(f,Yr(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const g=nn(e,r,i,s,o,n);if(!p&&!h&&!m&&f&&g&&(f=c?c(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(a.textarea||g)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const S=Vr({type:null,tagName:d,maskInputOptions:a});f=Cn({isMasked:nn(e,r,i,s,o,S),element:e,value:f,maskInputFn:u})}return{type:oe.Text,textContent:f||"",isStyle:p,rootId:l}}function oy(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:c={},maskAttributeFn:a,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskTextClass:g,unmaskTextClass:S,maskTextSelector:v,unmaskTextSelector:L,ignoreCSSAttributes:x}=t,P=Z_(e,r,s,i),w=W_(e);let y={};const T=e.attributes.length;for(let E=0;E<T;E++){const I=e.attributes[E];I.name&&!$u(w,I.name,I.value)&&(y[I.name]=Bu(n,w,tn(I.name),I.value,e,a,x))}if(w==="link"&&o){const E=Array.from(n.styleSheets).find(j=>j.href===e.href);let I=null;E&&(I=Nr(E)),I&&(y.rel=null,y.href=null,y.crossorigin=null,y._cssText=Dr(I,E.href))}if(w==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const E=Nr(e.sheet);E&&(y._cssText=Dr(E,Yr(n)))}if(w==="input"||w==="textarea"||w==="select"||w==="option"){const E=e,I=Bi(E),j=Or(E,Vs(w),I),V=E.checked;if(I!=="submit"&&I!=="button"&&j){const U=nn(E,g,v,S,L,Vr({type:I,tagName:Vs(w),maskInputOptions:c}));y.value=Cn({isMasked:U,element:E,value:j,maskInputFn:u})}V&&(y.checked=V)}if(w==="option"&&(e.selected&&!c.select?y.selected=!0:delete y.selected),w==="canvas"&&f){if(e.__context==="2d")$_(e)||(y.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const E=e.toDataURL(l.type,l.quality),I=n.createElement("canvas");I.width=e.width,I.height=e.height;const j=I.toDataURL(l.type,l.quality);E!==j&&(y.rr_dataURL=E)}}if(w==="img"&&d){Ut||(Ut=n.createElement("canvas"),aa=Ut.getContext("2d"));const E=e,I=E.currentSrc||E.getAttribute("src")||"<unknown-src>",j=E.crossOrigin,V=()=>{E.removeEventListener("load",V);try{Ut.width=E.naturalWidth,Ut.height=E.naturalHeight,aa.drawImage(E,0,0),y.rr_dataURL=Ut.toDataURL(l.type,l.quality)}catch(U){if(E.crossOrigin!=="anonymous"){E.crossOrigin="anonymous",E.complete&&E.naturalWidth!==0?V():E.addEventListener("load",V);return}else console.warn(`Cannot inline img src=${I}! Error: ${U}`)}E.crossOrigin==="anonymous"&&(j?y.crossOrigin=j:E.removeAttribute("crossorigin"))};
21E.complete&&E.naturalWidth!==0?V():E.addEventListener("load",V)}if((w==="audio"||w==="video")&&(y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),P){const{width:E,height:I}=e.getBoundingClientRect();y={class:y.class,rr_width:`${E}px`,rr_height:`${I}px`}}w==="iframe"&&!p(y.src)&&(!P&&!Fu(e)&&(y.rr_src=y.src),delete y.src);let Q;try{customElements.get(w)&&(Q=!0)}catch{}return{type:oe.Element,tagName:w,attributes:y,childNodes:[],isSVG:Q_(e)||void 0,needBlock:P,rootId:m,isCustom:Q}}function Z(e){return e==null?"":e.toLowerCase()}function ay(e,t){if(t.comment&&e.type===oe.Comment)return!0;if(e.type===oe.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"&&Du(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Z(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Z(e.attributes.name)==="application-name"||Z(e.attributes.rel)==="icon"||Z(e.attributes.rel)==="apple-touch-icon"||Z(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Z(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Z(e.attributes.property).match(/^(og|twitter|fb):/)||Z(e.attributes.name).match(/^(og|twitter):/)||Z(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Z(e.attributes.name)==="robots"||Z(e.attributes.name)==="googlebot"||Z(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Z(e.attributes.name)==="author"||Z(e.attributes.name)==="generator"||Z(e.attributes.name)==="framework"||Z(e.attributes.name)==="publisher"||Z(e.attributes.name)==="progid"||Z(e.attributes.property).match(/^article:/)||Z(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Z(e.attributes.name)==="google-site-verification"||Z(e.attributes.name)==="yandex-verification"||Z(e.attributes.name)==="csrf-token"||Z(e.attributes.name)==="p:domain_verify"||Z(e.attributes.name)==="verify-v1"||Z(e.attributes.name)==="verification"||Z(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function qt(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:S,slimDOMOptions:v,dataURLOptions:L={},inlineImages:x=!1,recordCanvas:P=!1,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:T=5e3,onBlockedImageLoad:Q,onStylesheetLoad:E,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:j=()=>!1,newlyAddedElement:V=!1,ignoreCSSAttributes:U}=t;let{preserveWhiteSpace:le=!0}=t;const te=ry(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:c,unblockSelector:o,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:S,dataURLOptions:L,inlineImages:x,recordCanvas:P,keepIframeSrcFn:j,newlyAddedElement:V,ignoreCSSAttributes:U});if(!te)return console.warn(e,"not serialized"),null;let X;r.hasNode(e)?X=r.getId(e):ay(te,v)||!le&&te.type===oe.Text&&!te.isStyle&&!te.textContent.replace(/^\s+|\s+$/gm,"").length?X=Mn:X=$i();const k=Object.assign(te,{id:X});if(r.add(e,k),X===Mn)return null;w&&w(e);let F=!f;if(k.type===oe.Element){F=F&&!k.needBlock;const A=e.shadowRoot;A&&vn(A)&&(k.isShadowHost=!0)}if((k.type===oe.Document||k.type===oe.Element)&&F){v.headWhitespace&&k.type===oe.Element&&k.tagName==="head"&&(le=!1);const A={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:c,unblockSelector:o,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:S,slimDOMOptions:v,dataURLOptions:L,inlineImages:x,recordCanvas:P,preserveWhiteSpace:le,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:T,onBlockedImageLoad:Q,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:j,ignoreCSSAttributes:U},H=e.childNodes?Array.from(e.childNodes):[];for(const J of H){const ie=qt(J,A);ie&&k.childNodes.push(ie)}if(A_(e)&&e.shadowRoot)for(const J of Array.from(e.shadowRoot.childNodes)){const ie=qt(J,A);ie&&(vn(e.shadowRoot)&&(ie.isShadow=!0),k.childNodes.push(ie))}}
vendor: 5,380 bytes, lines 21-23
21if(e.parentNode&&bn(e.parentNode)&&vn(e.parentNode)&&(k.isShadow=!0),k.type===oe.Element&&k.tagName==="iframe"&&!k.needBlock&&ty(e,()=>{const A=Fu(e);if(A&&y){const H=qt(A,{doc:A,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:S,slimDOMOptions:v,dataURLOptions:L,inlineImages:x,recordCanvas:P,preserveWhiteSpace:le,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:T,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:j,ignoreCSSAttributes:U});H&&y(e,H)}},T),k.type===oe.Element&&k.tagName==="img"&&!e.complete&&k.needBlock){const A=e,H=()=>{if(A.isConnected&&!A.complete&&Q)try{const J=A.getBoundingClientRect();J.width>0&&J.height>0&&Q(A,k,J)}catch{}A.removeEventListener("load",H)};A.isConnected&&A.addEventListener("load",H)}return k.type===oe.Element&&k.tagName==="link"&&typeof k.attributes.rel=="string"&&(k.attributes.rel==="stylesheet"||k.attributes.rel==="preload"&&typeof k.attributes.href=="string"&&Du(k.attributes.href)==="css")&&ny(e,()=>{if(E){const A=qt(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:S,slimDOMOptions:v,dataURLOptions:L,inlineImages:x,recordCanvas:P,preserveWhiteSpace:le,onSerialize:w,onIframeLoad:y,iframeLoadTimeout:T,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:j,ignoreCSSAttributes:U});A&&E(e,A)}},I),k.type===oe.Element&&delete k.needBlock,k}function cy(e,t){const{mirror:n=new Ou,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:c="rr-mask",unmaskTextClass:a=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:S,slimDOM:v=!1,dataURLOptions:L,preserveWhiteSpace:x,onSerialize:P,onIframeLoad:w,iframeLoadTimeout:y,onBlockedImageLoad:T,onStylesheetLoad:Q,stylesheetLoadTimeout:E,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:j=new Set([])}=t||{};return qt(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:c,unmaskTextClass:a,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,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:m,maskTextFn:g,maskInputFn:S,slimDOMOptions:v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:v===!1?{}:v,dataURLOptions:L,inlineImages:f,recordCanvas:p,preserveWhiteSpace:x,onSerialize:P,onIframeLoad:w,iframeLoadTimeout:y,onBlockedImageLoad:T,onStylesheetLoad:Q,stylesheetLoadTimeout:E,keepIframeSrcFn:I,newlyAddedElement:!1,ignoreCSSAttributes:j})}function ye(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Ht=`Please stop import mirror directly. Instead of that,\r 22now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 23or you can use record.mirror to access the mirror instance during recording.`;let ua={map:{},getId(){return console.error(Ht),-1},getNode(){return console.error(Ht),null},removeNodeFromMap(){console.error(Ht)},has(){return console.error(Ht),!1},reset(){console.error(Ht)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(ua=new Proxy(ua,{get(e,t,n){return t==="map"&&console.error(Ht),Reflect.get(e,t,n)}}));function xn(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const c=t-(o-s),a=this;c<=0||c>t?(r&&(my(r),r=null),s=o,e.apply(a,i)):!r&&n.trailing!==!1&&(r=Kr(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(a,i)},c))}}function Uu(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){Kr(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>Uu(e,t,i||{},!0)}function Ui(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let Pr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Pr=()=>new Date().getTime());function Hu(e){const 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 Wu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function zu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ju(e){if(!e)return null;
23try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function ke(e,t,n,r,s){if(!e)return!1;const i=ju(e);if(!i)return!1;const o=jt(t,n);if(!s){const u=r&&i.matches(r);return o(i)&&!u}const c=Et(i,o);let a=-1;return c<0?!1:(r&&(a=Et(i,jt(null,r))),c>-1&&a<0?!0:c<a)}function uy(e,t){return t.getId(e)!==-1}function _s(e,t){return t.getId(e)===Mn}function qu(e,t){if(bn(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?qu(e.parentNode,t):!0:!0}function Ks(e){return!!e.changedTouches}function ly(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 n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Gu(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Vu(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Xs(e){return!!e?.shadowRoot}class dy{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,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Yu(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function fy(e){let t=e,n;for(;n=Yu(t);)t=n;return t}function py(e){const t=e.ownerDocument;if(!t)return!1;const n=fy(e);return t.contains(n)}function Ku(e){const t=e.ownerDocument;return t?t.contains(e)||py(e):!1}const la={};function Hi(e){const t=la[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return la[e]=r.bind(window)}function hy(...e){return Hi("requestAnimationFrame")(...e)}function Kr(...e){return Hi("setTimeout")(...e)}function my(...e){return Hi("clearTimeout")(...e)}var $=(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))($||{}),N=(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))(N||{}),_e=(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))(_e||{}),He=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(He||{}),Wt=(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))(Wt||{});function Wi(e){try{return e.contentDocument}catch{}}function gy(e){try{return e.contentWindow}catch{}}function da(e){return"__ln"in e}class _y{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 n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&da(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&da(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;
23n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const fa=(e,t)=>`${e}@${t}`;class yy{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;const t=[],n=new Set,r=new _y,s=a=>{let u=a,l=Mn;for(;l===Mn;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},i=a=>{if(!a.parentNode||!Ku(a))return;const u=bn(a.parentNode)?this.mirror.getId(Yu(a)):this.mirror.getId(a.parentNode),l=s(a);if(u===-1||l===-1)return r.addNode(a);const d=qt(a,{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.inlineStylesheet,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:f=>{Gu(f,this.mirror)&&!ke(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),Vu(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),Xs(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{ke(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,p),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)},onBlockedImageLoad:(f,p,{width:h,height:m})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:p.id,attributes:{style:{width:`${h}px`,height:`${m}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(t.push({parentId:u,nextId:l,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());
vendor: 10,290 bytes, line 23
23for(const a of this.movedSet)pa(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||i(a);for(const a of this.addedSet)!ha(this.droppedSet,a)&&!pa(this.removes,a,this.mirror)||ha(this.movedSet,a)?i(a):this.droppedSet.add(a);let o=null;for(;r.length;){let a=null;if(o){const u=this.mirror.getId(o.value.parentNode),l=s(o.value);u!==-1&&l!==-1&&(a=o)}if(!a){let u=r.tail;for(;u;){const l=u;if(u=u.previous,l){const d=this.mirror.getId(l.value.parentNode);if(s(l.value)===-1)continue;if(d!==-1){a=l;break}else{const p=l.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){a=l;break}}}}}}if(!a){for(;r.head;)r.removeNode(r.head.value);break}o=a.previous,r.removeNode(a.value),i(a.value)}const c={texts:this.texts.map(a=>({id:this.mirror.getId(a.node),value:a.value})).filter(a=>!n.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{const{attributes:u}=a;if(typeof u.style=="string"){const l=JSON.stringify(a.styleDiff),d=JSON.stringify(a._unchangedStyles);l.length<u.style.length&&(l+d).split("var(").length===u.style.split("var(").length&&(u.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:u}}).filter(a=>!n.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.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(c))},this.processMutation=t=>{if(!_s(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!ke(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:nn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,ju(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const o=Bi(n),c=n.tagName;s=Or(n,c,o);const a=Vr({maskInputOptions:this.maskInputOptions,tagName:c,type:o}),u=nn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a);s=Cn({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if(ke(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!Wi(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!$u(n.tagName,r)&&(i.attributes[r]=Bu(this.doc,tn(n.tagName),tn(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const c of Array.from(n.style)){const a=n.style.getPropertyValue(c),u=n.style.getPropertyPriority(c);a!==o.style.getPropertyValue(c)||u!==o.style.getPropertyPriority(c)?u===""?i.styleDiff[c]=a:i.styleDiff[c]=[a,u]:i._unchangedStyles[c]=[a,u]}for(const c of Array.from(o.style))n.style.getPropertyValue(c)===""&&(i.styleDiff[c]=!1)}break}case"childList":{if(ke(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=bn(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ke(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||_s(n,this.mirror)||!uy(n,this.mirror)||(this.addedSet.has(n)?(Js(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||qu(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[fa(r,s)]?Js(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:bn(t.target)&&vn(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(_s(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[fa(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ke(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),Xs(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,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(n=>{this[n]=t[n]})}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()}}function Js(e,t){e.delete(t),t.childNodes?.forEach(n=>Js(e,n))}function pa(e,t,n){return e.length===0?!1:Sy(e,t,n)}function Sy(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(i=>i.id===s))return!0;r=r.parentNode}return!1}function ha(e,t){return e.size===0?!1:Xu(e,t)}function Xu(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Xu(e,n):!1}let Tn;function Ey(e){Tn=e}function by(){Tn=void 0}const q=e=>Tn?(...n)=>{try{return e(...n)}catch(r){if(Tn&&Tn(r)===!0)return()=>{};throw r}}:e,Gt=[];function Vn(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ju(e,t){const n=new yy;Gt.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(r=window[s]);const i=new r(q(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function vy({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],c;const a=xn(q(d=>{const f=Date.now()-c;e(o.map(p=>(p.timeOffset-=f,p)),d),o=[],c=null}),i),u=q(xn(q(d=>{const f=Vn(d),{clientX:p,clientY:h}=Ks(d)?d.changedTouches[0]:d;c||(c=Pr()),o.push({x:p,y:h,id:r.getId(f),timeOffset:Pr()-c}),a(typeof DragEvent<"u"&&d instanceof DragEvent?N.Drag:d instanceof MouseEvent?N.MouseMove:N.TouchMove)}),s,{trailing:!1})),l=[ye("mousemove",u,n),ye("touchmove",u,n),ye("drag",u,n)];return q(()=>{l.forEach(d=>d())})}function Ty({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const c=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,a=[];let u=null;const l=d=>f=>{const p=Vn(f);if(ke(p,r,s,i,!0))return;let h=null,m=d;if("pointerType"in f){switch(f.pointerType){case"mouse":h=He.Mouse;break;case"touch":h=He.Touch;break;case"pen":h=He.Pen;break}h===He.Touch?_e[d]===_e.MouseDown?m="TouchStart":_e[d]===_e.MouseUp&&(m="TouchEnd"):He.Pen}else Ks(f)&&(h=He.Touch);h!==null?(u=h,(m.startsWith("Touch")&&h===He.Touch||m.startsWith("Mouse")&&h===He.Mouse)&&(h=null)):_e[d]===_e.Click&&(h=u,u=null);const g=Ks(f)?f.changedTouches[0]:f;if(!g)return;const S=n.getId(p),{clientX:v,clientY:L}=g;q(e)({type:_e[m],id:S,x:v,y:L,...h!==null&&{pointerType:h}})};return Object.keys(_e).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&c[d]!==!1).forEach(d=>{let f=tn(d);const p=l(d);if(window.PointerEvent)switch(_e[d]){case _e.MouseDown:case _e.MouseUp:f=f.replace("mouse","pointer");break;case _e.TouchStart:case _e.TouchEnd:return}a.push(ye(f,p,t))}),q(()=>{a.forEach(d=>d())})}function Qu({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const c=q(xn(q(a=>{const u=Vn(a);if(!u||ke(u,r,s,i,!0))return;const l=n.getId(u);if(u===t&&t.defaultView){const d=Hu(t.defaultView);e({id:l,x:d.left,y:d.top})}else e({id:l,x:u.scrollLeft,y:u.scrollTop})}),o.scroll||100));return ye("scroll",c,t)}function Iy({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=q(xn(q(()=>{const i=Wu(),o=zu();(n!==i||r!==o)&&(e({width:Number(o),height:Number(i)}),n=i,r=o)}),200));return ye("resize",s,t)}const wy=["INPUT","TEXTAREA","SELECT"],ma=new WeakMap;function ky({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:c,maskInputOptions:a,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(y){let T=Vn(y);const Q=y.isTrusted,E=T&&Vs(T.tagName);if(E==="OPTION"&&(T=T.parentElement),!T||!E||wy.indexOf(E)<0||ke(T,r,s,i,!0))return;const I=T;if(I.classList.contains(o)||c&&I.matches(c))return;const j=Bi(T);let V=Or(I,E,j),U=!1;const le=Vr({maskInputOptions:a,tagName:E,type:j}),te=nn(T,f,h,p,m,le);(j==="radio"||j==="checkbox")&&(U=T.checked),V=Cn({isMasked:te,element:T,value:V,maskInputFn:u}),S(T,d?{text:V,isChecked:U,userTriggered:Q}:{text:V,isChecked:U});const X=T.name;j==="radio"&&X&&U&&t.querySelectorAll(`input[type="radio"][name="${X}"]`).forEach(k=>{if(k!==T){const F=Cn({isMasked:te,element:k,value:Or(k,E,j),maskInputFn:u});S(k,d?{text:F,isChecked:!U,userTriggered:!1}:{text:F,isChecked:!U})}})}function S(y,T){const Q=ma.get(y);if(!Q||Q.text!==T.text||Q.isChecked!==T.isChecked){ma.set(y,T);const E=n.getId(y);q(e)({...T,id:E})}}
vendor: 6,876 bytes, line 23
23const L=(l.input==="last"?["change"]:["input","change"]).map(y=>ye(y,q(g),t)),x=t.defaultView;if(!x)return()=>{L.forEach(y=>y())};const P=x.Object.getOwnPropertyDescriptor(x.HTMLInputElement.prototype,"value"),w=[[x.HTMLInputElement.prototype,"value"],[x.HTMLInputElement.prototype,"checked"],[x.HTMLSelectElement.prototype,"value"],[x.HTMLTextAreaElement.prototype,"value"],[x.HTMLSelectElement.prototype,"selectedIndex"],[x.HTMLOptionElement.prototype,"selected"]];return P&&P.set&&L.push(...w.map(y=>Uu(y[0],y[1],{set(){q(g)({target:this,isTrusted:!1})}},!1,x))),q(()=>{L.forEach(y=>y())})}function Lr(e){const t=[];function n(r,s){if(ir("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||ir("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||ir("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||ir("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(e,t)}function Je(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function Ry({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:q((l,d,f)=>{const[p,h]=f,{id:m,styleId:g}=Je(d,t,n.styleMirror);return(m&&m!==-1||g&&g!==-1)&&e({id:m,styleId:g,adds:[{rule:p,index:h}]}),l.apply(d,f)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:q((l,d,f)=>{const[p]=f,{id:h,styleId:m}=Je(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:p}]}),l.apply(d,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:q((l,d,f)=>{const[p]=f,{id:h,styleId:m}=Je(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:p}),l.apply(d,f)})}));let c;r.CSSStyleSheet.prototype.replaceSync&&(c=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:q((l,d,f)=>{const[p]=f,{id:h,styleId:m}=Je(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),l.apply(d,f)})}));const a={};or("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(or("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),or("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),or("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(a).forEach(([l,d])=>{u[l]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[l].insertRule,{apply:q((f,p,h)=>{const[m,g]=h,{id:S,styleId:v}=Je(p.parentStyleSheet,t,n.styleMirror);return(S&&S!==-1||v&&v!==-1)&&e({id:S,styleId:v,adds:[{rule:m,index:[...Lr(p),g||0]}]}),f.apply(p,h)})}),d.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:q((f,p,h)=>{const[m]=h,{id:g,styleId:S}=Je(p.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,removes:[{index:[...Lr(p),m]}]}),f.apply(p,h)})})}),q(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),c&&(r.CSSStyleSheet.prototype.replaceSync=c),Object.entries(a).forEach(([l,d])=>{d.prototype.insertRule=u[l].insertRule,d.prototype.deleteRule=u[l].deleteRule})})}function Zu({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(o){const c=i.set?.call(this,o);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return c}}),q(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function Cy({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:q((c,a,u)=>{const[l,d,f]=u;if(n.has(l))return i.apply(a,[l,d,f]);const{id:p,styleId:h}=Je(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:l,value:d,priority:f},index:Lr(a.parentRule)}),c.apply(a,u)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:q((c,a,u)=>{const[l]=u;if(n.has(l))return o.apply(a,[l]);const{id:d,styleId:f}=Je(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:l},index:Lr(a.parentRule)}),c.apply(a,u)})}),q(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function My({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const c=q(u=>xn(q(l=>{const d=Vn(l);if(!d||ke(d,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:m}=d;e({type:u,id:s.getId(d),currentTime:f,volume:p,muted:h,playbackRate:m})}),i.media||500)),a=[ye("play",c(Wt.Play),o),ye("pause",c(Wt.Pause),o),ye("seeked",c(Wt.Seeked),o),ye("volumechange",c(Wt.VolumeChange),o),ye("ratechange",c(Wt.RateChange),o)];return q(()=>{a.forEach(u=>u())})}function xy({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(a,u,l){const d=new i(a,u,l);return s.set(d,{family:a,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};const o=Ui(t.fonts,"add",function(c){return function(a){return Kr(q(()=>{const u=s.get(a);u&&(e(u),s.delete(a))}),0),c.apply(this,[a])}});return r.push(()=>{n.FontFace=i}),r.push(o),q(()=>{r.forEach(c=>c())})}function Ay(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let c=!0;const a=q(()=>{const u=t.getSelection();if(!u||c&&u?.isCollapsed)return;c=u.isCollapsed||!1;const l=[],d=u.rangeCount||0;for(let f=0;f<d;f++){const p=u.getRangeAt(f),{startContainer:h,startOffset:m,endContainer:g,endOffset:S}=p;ke(h,r,s,i,!0)||ke(g,r,s,i,!0)||l.push({start:n.getId(h),startOffset:m,end:n.getId(g),endOffset:S})}o({ranges:l})});return a(),ye("selectionchange",a)}function Ny({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Ui(n.customElements,"define",function(s){return function(i,o,c){try{t({define:{name:i}})}catch{}
vendor: 9,048 bytes, line 23
23return s.apply(this,[i,o,c])}})}function Oy(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Ju(e,e.doc));const s=vy(e),i=Ty(e),o=Qu(e),c=Iy(e,{win:n}),a=ky(e),u=My(e);let l=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(l=Ry(e,{win:n}),d=Zu(e,e.doc),f=Cy(e,{win:n}),e.collectFonts&&(p=xy(e)));const h=Ay(e),m=Ny(e),g=[];for(const S of e.plugins)g.push(S.observer(S.callback,n,S.options));return q(()=>{Gt.forEach(S=>S.reset()),r?.disconnect(),s(),i(),o(),c(),a(),u(),l(),d(),f(),p(),h(),m(),g.forEach(S=>S())})}function ir(e){return typeof window[e]<"u"}function or(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Qs{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const i=r||this.getIdToRemoteIdMap(t),o=s||this.getRemoteIdToIdMap(t);let c=i.get(n);return c||(c=this.generateIdFn(),i.set(n,c),o.set(c,n)),c}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=s.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class Dy{constructor(){this.crossOriginIframeMirror=new Qs($i),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Py{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Qs($i),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Qs(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),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=Wi(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const i=this.transformCrossOriginEvent(s,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case $.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:$.IncrementalSnapshot,data:{source:N.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case $.Meta:case $.Load:case $.DomContentLoaded:return!1;case $.Plugin:return n;case $.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case $.IncrementalSnapshot:switch(n.data.source){case N.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case N.Drag:case N.TouchMove:case N.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case N.ViewportResize:return!1;case N.MediaInteraction:case N.MouseInteraction:case N.Scroll:case N.CanvasMutation:case N.Input:return this.replaceIds(n.data,t,["id"]),n;case N.StyleSheetRule:case N.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case N.Font:return n;case N.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case N.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const i of s)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==oe.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class Ly{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Fy{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,n){if(!vn(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Ju({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Qu({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Kr(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Zu({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Wi(t),r=gy(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(Ui(t.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&Ku(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",By=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ar=0;ar<ga.length;ar++)By[ga.charCodeAt(ar)]=ar;class _a{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class $y{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new dy,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const i of t){let o;this.styleMirror.has(i)?o=this.styleMirror.getId(i):(o=this.styleMirror.add(i),s.push({styleId:o,rules:Array.from(i.rules||CSSRule,(c,a)=>({rule:Nu(c),index:a}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Uy{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,hy(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let ne,Fr;try{if(Array.from([1],e=>e*2)[0]!==2){const 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)}const Oe=B_();function qe(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr
23-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:a=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:S,maskAttributeFn:v,maskInputFn:L,maskTextFn:x,maxCanvasSize:P=null,packFn:w,sampling:y={},dataURLOptions:T={},mousemoveWait:Q,recordDOM:E=!0,recordCanvas:I=!1,recordCrossOriginIframes:j=!1,recordAfter:V=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:U=!1,collectFonts:le=!1,inlineImages:te=!1,plugins:X,keepIframeSrcFn:k=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:A,onMutation:H,getCanvasManager:J}=e;Ey(A);const ie=j?window.parent===window:!0;let fe=!1;if(!ie)try{window.parent.document&&(fe=!1)}catch{fe=!0}if(ie&&!t)throw new Error("emit function is required");if(!ie&&!fe)return()=>{};Q!==void 0&&y.mousemove===void 0&&(y.mousemove=Q),Oe.reset();const Ae=m===!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}:g!==void 0?g:{},we=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all"}:S||{};ly();let Ft,Ue=0;const mn=Y=>{for(const Ne of X||[])Ne.eventProcessor&&(Y=Ne.eventProcessor(Y));return w&&!fe&&(Y=w(Y)),Y};ne=(Y,Ne)=>{const z=Y;if(z.timestamp=Pr(),Gt[0]?.isFrozen()&&z.type!==$.FullSnapshot&&!(z.type===$.IncrementalSnapshot&&z.data.source===N.Mutation)&&Gt.forEach(pe=>pe.unfreeze()),ie)t?.(mn(z),Ne);else if(fe){const pe={type:"rrweb",event:mn(z),origin:window.location.origin,isCheckout:Ne};window.parent.postMessage(pe,"*")}if(z.type===$.FullSnapshot)Ft=z,Ue=0;else if(z.type===$.IncrementalSnapshot){if(z.data.source===N.Mutation&&z.data.isAttachIframe)return;Ue++;const pe=r&&Ue>=r,K=n&&Ft&&z.timestamp-Ft.timestamp>n;(pe||K)&&ns(!0)}};const pt=Y=>{ne({type:$.IncrementalSnapshot,data:{source:N.Mutation,...Y}})},Zi=Y=>ne({type:$.IncrementalSnapshot,data:{source:N.Scroll,...Y}}),zl=Y=>ne({type:$.IncrementalSnapshot,data:{source:N.CanvasMutation,...Y}}),jl=Y=>ne({type:$.IncrementalSnapshot,data:{source:N.AdoptedStyleSheet,...Y}}),ht=new $y({mutationCb:pt,adoptedStyleSheetCb:jl}),mt=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new Dy:new Py({mirror:Oe,mutationCb:pt,stylesheetManager:ht,recordCrossOriginIframes:j,wrappedEmit:ne});for(const Y of X||[])Y.getMirror&&Y.getMirror({nodeMirror:Oe,crossOriginIframeMirror:mt.crossOriginIframeMirror,crossOriginIframeStyleMirror:mt.crossOriginIframeStyleMirror});const es=new Uy,ts=Wy(J,{mirror:Oe,win:window,mutationCb:Y=>ne({type:$.IncrementalSnapshot,data:{source:N.CanvasMutation,...Y}}),recordCanvas:I,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:P,sampling:y.canvas,dataURLOptions:T,errorHandler:A}),Jn=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Ly:new Fy({mutationCb:pt,scrollCb:Zi,bypassOptions:{onMutation:H,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:Ae,dataURLOptions:T,maskAttributeFn:v,maskTextFn:x,maskInputFn:L,recordCanvas:I,inlineImages:te,sampling:y,slimDOMOptions:we,iframeManager:mt,stylesheetManager:ht,canvasManager:ts,keepIframeSrcFn:k,processedNodeManager:es,ignoreCSSAttributes:F},mirror:Oe}),ns=(Y=!1)=>{if(!E)return;ne({type:$.Meta,data:{href:window.location.href,width:zu(),height:Wu()}},Y),ht.reset(),Jn.init(),Gt.forEach(z=>z.lock());const Ne=cy(document,{mirror:Oe,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:Ae,maskAttributeFn:v,maskInputFn:L,maskTextFn:x,slimDOM:we,dataURLOptions:T,recordCanvas:I,inlineImages:te,onSerialize:z=>{Gu(z,Oe)&&mt.addIframe(z),Vu(z,Oe)&&ht.trackLinkElement(z),Xs(z)&&Jn.addShadowRoot(z.shadowRoot,document)},onIframeLoad:(z,pe)=>{mt.attachIframe(z,pe),z.contentWindow&&ts.addWindow(z.contentWindow),Jn.observeAttachShadow(z)},onStylesheetLoad:(z,pe)=>{ht.attachLinkElement(z,pe)},onBlockedImageLoad:(z,pe,{width:K,height:gn})=>{pt({adds:[],removes:[],texts:[],attributes:[{id:pe.id,attributes:{style:{width:`${K}px`,height:`${gn}px`}}}]})},keepIframeSrcFn:k,ignoreCSSAttributes:F});if(!Ne)return console.warn("Failed to snapshot the document");ne({type:$.FullSnapshot,data:{node:Ne,initialOffset:Hu(window)}}),Gt.forEach(z=>z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ht.adoptStyleSheets(document.adoptedStyleSheets,Oe.getId(document))};Fr=ns;try{const Y=[],Ne=pe=>q(Oy)({onMutation:H,mutationCb:pt,mousemoveCb:(K,gn)=>ne({type:$.IncrementalSnapshot,data:{source:gn,positions:K}}),mouseInteractionCb:K=>ne({type:$.IncrementalSnapshot,data:{source:N.MouseInteraction,...K}}),scrollCb:Zi,viewportResizeCb:K=>ne({type:$.IncrementalSnapshot,data:{source:N.ViewportResize,...K}}),inputCb:K=>ne({type:$.IncrementalSnapshot,data:{source:N.Input,...K}}),mediaInteractionCb:K=>ne({type:$.IncrementalSnapshot,data:{source:N.MediaInteraction,...K}}),styleSheetRuleCb:K=>ne({type:$.IncrementalSnapshot,data:{source:N.StyleSheetRule,...K}}),styleDeclarationCb:K=>ne({type:$.IncrementalSnapshot,data:{source:N.StyleDeclaration,...K}}),canvasMutationCb:zl,fontCb:K=>ne({type:$.IncrementalSnapshot,data:{source:N.Font,...K}}),selectionCb:K=>{ne({type:$.IncrementalSnapshot,data:{source:N.Selection,...K}})},customElementCb:K=>{ne({type:$.IncrementalSnapshot,data:{source:N.CustomElement,...K}})},blockClass:s,ignoreClass:c,ignoreSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:Ae,inlineStylesheet:h,sampling:y,recordDOM:E,recordCanvas:I,inlineImages:te,userTriggeredOnInput:U,collectFonts:le,doc:pe,maskAttributeFn:v,maskInputFn:L,maskTextFn:x,keepIframeSrcFn:k,blockSelector:i,unblockSelector:o,slimDOMOptions:we,dataURLOptions:T,mirror:Oe,iframeManager:mt,stylesheetManager:ht,shadowDomManager:Jn,processedNodeManager:es,canvasManager:ts,ignoreCSSAttributes:F,plugins:X?.filter(K=>K.observer)?.map(K=>({observer:K.observer,options:K.options,callback:gn=>ne({type:$.Plugin,data:{plugin:K.name,payload:gn}})}))||[]},{});mt.addLoadListener(pe=>{try{Y.push(Ne(pe.contentDocument))}catch(K){console.warn(K)}});const z=()=>{ns(),Y.push(Ne(document))};return document.readyState==="interactive"||document.readyState==="complete"?z():(Y.push(ye("DOMContentLoaded",()=>{ne({type:$.DomContentLoaded,data:{}}),V==="DOMContentLoaded"&&z()})),Y.push(ye("load",()=>{ne({type:$.Load,data:{}}),V==="load"&&z()}
23,window))),()=>{Y.forEach(pe=>pe()),es.destroy(),Fr=void 0,by()}}catch(Y){console.warn(Y)}}function Hy(e){if(!Fr)throw new Error("please take full snapshot after start recording");Fr(e)}qe.mirror=Oe;qe.takeFullSnapshot=Hy;function Wy(e,t){try{return e?e(t):new _a}catch{return console.warn("Unable to initialize CanvasManager"),new _a}}var ya;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ya||(ya={}));const zy=3,jy=5;function zi(e){return e>9999999999?e:e*1e3}function ys(e){return e>9999999999?e/1e3:e}function Yn(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:$.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:De(t,10,1e3)}}),t.category==="console")))}const qy="button,a";function el(e){return e.closest(qy)||e}function tl(e){const t=nl(e);return!t||!(t instanceof Element)?t:el(t)}function nl(e){return Gy(e)?e.target:e}function Gy(e){return typeof e=="object"&&!!e&&"target"in e}let Qe;function Vy(e){return Qe||(Qe=[],Yy()),Qe.push(e),()=>{const t=Qe?Qe.indexOf(e):-1;t>-1&&Qe.splice(t,1)}}function Yy(){be(ee,"open",function(e){return function(...t){if(Qe)try{Qe.forEach(n=>n())}catch{}return e.apply(ee,t)}})}const Ky=new Set([N.Mutation,N.StyleSheetRule,N.StyleDeclaration,N.AdoptedStyleSheet,N.CanvasMutation,N.Selection,N.MediaInteraction]);function Xy(e,t,n){e.handleClick(t,n)}class Jy{constructor(t,n,r=Yn){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=Vy(()=>{this._lastMutation=Sa()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(Zy(n,this._ignoreSelector)||!eS(t))return;const r={timestamp:ys(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=ys(t)}registerScroll(t=Date.now()){this._lastScroll=ys(t)}registerClick(t){const n=el(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Sa();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!s,{clickCount:o,clickBreadcrumb:c}=t;if(i){const a=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=a<this._timeout*1e3?"mutation":"timeout",l={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.slowClickDetected",data:{...c.data,url:ee.location.href,route:n.getCurrentRoute(),timeAfterClickMs:a,endReason:u,clickCount:o||1}};this._addBreadcrumbEvent(n,l);return}if(o>1){const a={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.multiClick",data:{...c.data,url:ee.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,a)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Gn(()=>this._checkClicks(),1e3)}}const Qy=["A","BUTTON","INPUT"];function Zy(e,t){return!!(!Qy.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 eS(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Sa(){return Date.now()/1e3}function tS(e,t){try{if(!nS(t))return;const{source:n}=t.data;if(Ky.has(n)&&e.registerMutation(t.timestamp),n===N.Scroll&&e.registerScroll(t.timestamp),rS(t)){const{type:r,id:s}=t.data,i=qe.mirror.getNode(s);i instanceof HTMLElement&&r===_e.Click&&e.registerClick(i)}}catch{}}function nS(e){return e.type===zy}function rS(e){return e.data.source===N.MouseInteraction}function Be(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var ji=(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))(ji||{});const sS=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function iS(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(sS.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const oS=e=>t=>{if(!e.isEnabled())return;const n=aS(t);
23if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&Xy(e.clickDetector,n,tl(t.event)),Yn(e,n)};function rl(e,t){const n=qe.mirror.getId(e),r=n&&qe.mirror.getNode(n),s=r&&qe.mirror.getMeta(r),i=s&&uS(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===ji.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:iS(i.attributes)}}:{}}}function aS(e){const{target:t,message:n}=cS(e);return Be({category:`ui.${e.name}`,...rl(t,n)})}function cS(e){const t=e.name==="click";let n,r=null;try{r=t?tl(e.event):nl(e.event),n=ve(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function uS(e){return e.type===ji.Element}function lS(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=dS(t);n&&Yn(e,n)}function dS(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||fS(o)||!i)return null;const c=t||r||s,a=i.length===1;if(!c&&a)return null;const u=ve(o,{maxStringLength:200})||"<unknown>",l=rl(o,u);return Be({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function fS(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const pS={resource:yS,paint:gS,navigation:_S};function Ss(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function hS(e){return e.map(mS).filter(Boolean)}function mS(e){const t=pS[e.entryType];return t?t(e):null}function rn(e){return((Te()||ee.performance.timeOrigin)+e)/1e3}function gS(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=rn(s);return{type:n,name:r,start:i,end:i+t,data:void 0}}function _S(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:rn(p),end:rn(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:f}}}function yS(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:c,responseStatus:a,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:rn(i),end:rn(s),name:r,data:{size:u,statusCode:a,decodedBodySize:o,encodedBodySize:c}}}function SS(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return qi(e,"largest-contentful-paint",n)}function ES(e){return e.sources!==void 0}function bS(e){const t=[],n=[];for(const r of e.entries)if(ES(r)){const s=[];for(const i of r.sources)if(i.node){n.push(i.node);const o=qe.mirror.getId(i.node);o&&s.push(o)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return qi(e,"cumulative-layout-shift",n,t)}function vS(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return qi(e,"interaction-to-next-paint",n)}function qi(e,t,n,r){const s=e.value,i=e.rating,o=rn(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map(c=>qe.mirror.getId(c)):void 0,attributions:r}}}function TS(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(xt(s,n))}),r.push(Oi(Ss(SS,e)),Ni(Ss(bS,e)),_u(Ss(vS,e))),()=>{r.forEach(s=>s())}}const R=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,IS='
vendor: 10,329 bytes, line 23
23var 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});
23';function wS(){const e=new Blob([IS]);return URL.createObjectURL(e)}const Ea=["log","warn","error"],Sr="[Replay] ";function Es(e,t="info"){it({category:"console",data:{logger:"replay"},level:t,message:`${Sr}${e}`},{level:t})}function kS(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return R?(Ea.forEach(r=>{n[r]=(...s)=>{_[r](Sr,...s),t&&Es(s.join(""),eu(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),_.error(Sr,r),e?bi(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Es(r,"error")},n.infoTick=(...r)=>{_.log(Sr,...r),t&&setTimeout(()=>Es(r[0]),0)}):Ea.forEach(r=>{n[r]=()=>{}}),n}const C=kS();class Gi extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Fi}.`)}}class sl{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=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Fi)throw new Gi;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=null;for(const{timestamp:n}of this.events)(t===null||n<t)&&(t=n);return t===null?t:zi(t)}}class RS{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():(R&&C.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{R&&C.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.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(){R&&C.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,i)=>{const o=({data:c})=>{const a=c;if(a.method===t&&a.id===r){if(this._worker.removeEventListener("message",o),!a.success){R&&C.error("Error in compression worker: ",a.response),i(new Error("Error in compression worker"));return}s(a.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class CS{constructor(t){this._worker=new RS(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){const n=zi(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Fi?Promise.reject(new Gi):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{R&&C.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class MS{constructor(t){this._fallback=new sl,this._compression=new CS(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)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}
23ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){R&&C.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const i of t)s.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(i){R&&C.exception(i,"Failed to add events when switching buffers.")}}}function xS({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=AS(t);if(n)return n}return R&&C.log("Using simple buffer"),new sl}function AS(e){try{const t=e||NS();if(!t)return;R&&C.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new MS(n)}catch(t){R&&C.exception(t,"Failed to create compression worker")}}function NS(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?wS():""}function Vi(){try{return"sessionStorage"in ee&&!!ee.sessionStorage}catch{return!1}}function OS(e){DS(),e.session=void 0}function DS(){if(Vi())try{ee.sessionStorage.removeItem(Pi)}catch{}}function il(e){return e===void 0?!1:Math.random()<e}function Xr(e){if(Vi())try{ee.sessionStorage.setItem(Pi,JSON.stringify(e))}catch{}}function ol(e){const t=Date.now(),n=e.id||Ce(),r=e.started||t,s=e.lastActivity||t,i=e.segmentId||0,o=e.sampled,c=e.previousSessionId,a=e.dirty||!1;return{id:n,started:r,lastActivity:s,segmentId:i,sampled:o,previousSessionId:c,dirty:a}}function PS(e,t){return il(e)?"session":t?"buffer":!1}function ba({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=PS(e,t),i=ol({sampled:s,previousSessionId:r});return n&&Xr(i),i}function LS(){if(!Vi())return null;try{const e=ee.sessionStorage.getItem(Pi);if(!e)return null;const t=JSON.parse(e);return R&&C.infoTick("Loading existing session"),ol(t)}catch{return null}}function Zs(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function al(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Zs(e.started,t,r)||Zs(e.lastActivity,n,r)}function cl(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!al(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function bs({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&LS();return s?cl(s,{sessionIdleExpire:e,maxReplayDuration:t})?(R&&C.infoTick("Session in sessionStorage is expired, creating new one..."),ba(r,{previousSessionId:s.id})):s:(R&&C.infoTick("Creating new session"),ba(r,{previousSessionId:n}))}function FS(e){return e.type===$.Custom}function Yi(e,t,n){return ll(e,t)?(ul(e,t,n),!0):!1}function BS(e,t,n){return ll(e,t)?ul(e,t,n):Promise.resolve(null)}async function ul(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=e.getOptions(),o=$S(t,i.beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(i){const o=i&&i instanceof Gi,c=o?"addEventSizeExceeded":"addEvent",a=B();if(a){const u=o?"buffer_overflow":"internal_sdk_error";a.recordDroppedEvent(u,"replay")}if(o&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:c})}}function ll(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=zi(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(R&&C.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function $S(e,t){try{if(typeof t=="function"&&FS(e))return t(e)}catch(n){return R&&C.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Ki(e){return!e.type}function ei(e){return e.type==="transaction"}function US(e){return e.type==="replay_event"}function va(e){return e.type==="feedback"}function HS(e){return(t,n)=>{if(!e.isEnabled()||!Ki(t)&&!ei(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(ei(t)){WS(e,t);return}zS(e,t)}}}function WS(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function zS(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Gn(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function jS(e){return t=>{!e.isEnabled()||!Ki(t)||qS(e,t)}}function qS(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Be({category:"replay.hydrate-error",data:{url:an()}});Yn(e,r)}}function GS(e){const t=B();t&&t.on("beforeAddBreadcrumb",n=>VS(e,n))}function VS(e,t){if(!e.isEnabled()||!dl(t))return;const n=YS(t);n&&Yn(e,n)}function YS(e){return!dl(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?KS(e):Be(e)}function KS(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Be(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>sr?(n=!0,`${s.slice(0,sr)}â¦`):s;if(typeof s=="object")try{const i=De(s,7);return JSON.stringify(i).length>sr?(n=!0,`${JSON.stringify(i,null,2).slice(0,sr)}â¦`):i}catch{}return s});return Be({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function dl(e){return!!e.category}function XS(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function fl(){const e=G().getPropagationContext().dsc;e&&delete e.replay_id;const t=ge();if(t){const n=Ke(t);delete n.replay_id}}function JS(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:$.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 QS(e,t){return e.recordingMode!=="buffer"||t.message===Li||!t.exception||t.type?!1:il(e.getOptions().errorSampleRate)}function ZS(e){return Object.assign((t,n)=>
23{if(!e.isEnabled()||e.isPaused())return t;if(US(t))return delete t.breadcrumbs,t;if(!Ki(t)&&!ei(t)&&!va(t))return t;if(!e.checkAndHandleExpiredSession())return fl(),t;if(va(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),JS(e,t),t;if(XS(t,n)&&!e.getOptions()._experiments.captureExceptions)return R&&C.log("Ignoring error from rrweb internals",t),null;const s=QS(e,t);if((s||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const o=e.session;o.dirty=!0,e.getOptions().stickySession&&Xr(o)}return t},{id:"Replay"})}function Jr(e,t){return t.map(({type:n,start:r,end:s,name:i,data:o})=>{const c=e.throttledAddEvent({type:$.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});return typeof c=="string"?Promise.resolve(null):c})}function eE(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function tE(e){return t=>{if(!e.isEnabled())return;const n=eE(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Jr(e,[n]),!1)))}}function nE(e,t){return R&&e.getOptions()._experiments.traceInternals?!1:Fp(t,B())}function pl(e,t){e.isEnabled()&&t!==null&&(nE(e,t.name)||e.addUpdate(()=>(Jr(e,[t]),!0)))}function Qr(e){if(!e)return;const 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){const n=ku(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function hl(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Br(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ml(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:c,response:a}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:i,statusCode:o,request:c,response:a}}}function An(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function nt(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=rE(n);return r.body=s,i?.length&&(r._meta={warnings:i}),r}function ti(e,t){return Object.entries(e).reduce((n,[r,s])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=s),n},{})}function rE(e){if(!e||typeof e!="string")return{body:e};const t=e.length>na,n=sE(e);if(t){const r=e.slice(0,na);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}â¦`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function sE(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function $r(e,t){const n=iE(e);return ze(n,t)}function iE(e,t=ee.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ee.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function oE(e,t,n){try{const r=await cE(e,t,n),s=ml("resource.fetch",r);pl(n.replay,s)}catch(r){R&&C.exception(r,"Failed to capture fetch breadcrumb")}}function aE(e,t){const{input:n,response:r}=t,s=n?Cu(n):void 0,i=Qr(s),o=r?hl(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}async function cE(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:c,status_code:a=0,request_body_size:u,response_body_size:l}=e.data,d=$r(o,n.networkDetailAllowUrls)&&!$r(o,n.networkDetailDenyUrls),f=d?uE(n,t.input,u):An(u),p=await lE(d,n,t.response,l);return{startTimestamp:s,endTimestamp:i,url:o,method:c,statusCode:a,request:f,response:p}}function uE({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?pE(n,t):{};if(!e)return nt(s,r,void 0);const i=Cu(n),[o,c]=Ru(i,C),a=nt(s,r,o);return c?Br(a,c):a}async function lE(e,{networkCaptureBodies:t,networkResponseHeaders:n}
23,r,s){if(!e&&s!==void 0)return An(s);const i=r?gl(r.headers,n):{};if(!r||!t&&s!==void 0)return nt(i,s,void 0);const[o,c]=await fE(r),a=dE(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return c?Br(a,c):a}function dE(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e?.length&&n===void 0?Qr(e):n;return r?t?nt(s,i,e):nt(s,i,void 0):An(i)}catch(i){return R&&C.exception(i,"Failed to serialize response body"),nt(s,n,void 0)}}async function fE(e){const t=hE(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await mE(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(R&&C.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(R&&C.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function gl(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function pE(e,t){return e.length===1&&typeof e[0]!="string"?Ta(e[0],t):e.length===2?Ta(e[1],t):{}}function Ta(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?gl(n,t):Array.isArray(n)?{}:ti(n,t):{}}function hE(e){try{return e.clone()}catch(t){R&&C.exception(t,"Failed to clone response body")}}function mE(e){return new Promise((t,n)=>{const r=Gn(()=>n(new Error("Timeout while trying to read response body")),500);gE(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function gE(e){return await e.text()}async function _E(e,t,n){try{const r=SE(e,t,n),s=ml("resource.xhr",r);pl(n.replay,s)}catch(r){R&&C.exception(r,"Failed to capture xhr breadcrumb")}}function yE(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Qr(r),i=n.getResponseHeader("content-length")?hl(n.getResponseHeader("content-length")):vE(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}function SE(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:c}=t,{url:a,method:u,status_code:l=0,request_body_size:d,response_body_size:f}=e.data;if(!a)return null;if(!c||!$r(a,n.networkDetailAllowUrls)||$r(a,n.networkDetailDenyUrls)){const w=An(d),y=An(f);return{startTimestamp:s,endTimestamp:i,url:a,method:u,statusCode:l,request:w,response:y}}const p=c[St],h=p?ti(p.request_headers,n.networkRequestHeaders):{},m=ti(Mu(c),n.networkResponseHeaders),[g,S]=n.networkCaptureBodies?Ru(o,C):[void 0],[v,L]=n.networkCaptureBodies?EE(c):[void 0],x=nt(h,d,g),P=nt(m,f,v);return{startTimestamp:s,endTimestamp:i,url:a,method:u,statusCode:l,request:S?Br(x,S):x,response:L?Br(P,L):P}}function EE(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return bE(e.response,e.responseType)}catch(n){t.push(n)}return R&&C.warn("Failed to get xhr response body",...t),[void 0]}function bE(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return R&&C.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return R&&C.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function vE(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Qr(n)}catch{return}}function TE(e){const t=B();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),c={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(a,u)=>IE(c,a,u))}catch{}}function IE(e,t,n){if(t.data)try{wE(t)&&RE(n)&&(yE(t,n),_E(t,n,e)),kE(t)&&CE(n)&&(aE(t,n),oE(t,n,e))}catch(r){R&&C.exception(r,"Error when enriching network breadcrumb")}}function wE(e){return e.category==="xhr"}function kE(e){return e.category==="fetch"}function RE(e){return e?.xhr}function CE(e){return e?.response}function ME(e){const t=B();Tu(oS(e)),Gr(tE(e)),GS(e),TE(e);const n=ZS(e);rp(n),t&&(t.on("beforeSendEvent",jS(e)),t.on("afterSendEvent",HS(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,s)=>{const i=e.getSessionId();s?.includeReplay&&e.isEnabled()&&i&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=i)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function xE(e){try{return Promise.all(Jr(e,[AE(ee.performance.memory)]))}catch{return[]}}function AE(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function NE(e,t,n){return zp(e,t,{...n,setTimeoutImpl:Gn})}const cr=W.navigator;function OE(){return/iPhone|iPad|iPod/i.test(cr?.userAgent??"")||/Macintosh/i.test(cr?.userAgent??"")&&cr?.maxTouchPoints&&cr?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function DE(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){R&&C.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&tS(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!Yi(e,n,s))return!0;
23if(!s)return!1;const i=e.session;if(LE(e,s),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){const o=e.eventBuffer.getEarliestTimestamp();o&&(R&&C.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,e.getOptions().stickySession&&Xr(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function PE(e){const t=e.getOptions();return{type:$.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 LE(e,t){!t||e.session?.segmentId!==0||Yi(e,PE(e),!1)}function FE(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function BE(e,t,n,r){return ft(wc(e,_i(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function $E({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} 24`;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function UE({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:s};e.emit("preprocessEvent",r,i);const o=await Nc(e.getOptions(),r,i,t,e,Ie());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const c=e.getSdkMetadata(),{name:a,version:u,settings:l}=c?.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0",settings:l},o}async function HE({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=$E({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:a,traceIds:u,initialTimestamp:l}=r,d=B(),f=G(),p=d?.getTransport(),h=d?.getDsn();if(!d||!p||!h||!i.sampled)return Promise.resolve({});const m={type:__,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:a,trace_ids:u,urls:c,replay_id:t,segment_id:n,replay_type:i.sampled},g=await UE({scope:f,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay"),R&&C.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete g.sdkProcessingMetadata;const S=BE(g,o,h,d.getOptions().tunnel);let v;try{v=await p.send(S)}catch(x){const P=new Error(Li);try{P.cause=x}catch{}throw P}const L=jc({},v);if(zc(L,"replay"))throw new Xi(L);if(typeof v.statusCode=="number"&&(v.statusCode<200||v.statusCode>=300))throw new _l(v.statusCode);return v}class _l extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Xi extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class Ia extends Error{constructor(){super("Session is too long, not sending replay")}}async function yl(e,t={count:0,interval:T_}){const{recordingData:n,onError:r}=e;if(n.length)try{return await HE(e),!0}catch(s){if(s instanceof _l||s instanceof Xi)throw s;if(Dc("Replays",{_retryCount:t.count}),r&&r(s),t.count>=I_){const i=new Error(`${Li} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{Gn(async()=>{try{await yl(e,t),i(!0)}catch(c){o(c)}},t.interval)})}}const Sl="__THROTTLED",WE="__SKIPPED";function zE(e,t,n){const r=new Map,s=c=>{const a=c-n;r.forEach((u,l)=>{l<a&&r.delete(l)})},i=()=>[...r.values()].reduce((c,a)=>c+a,0);let o=!1;return(...c)=>{const a=Math.floor(Date.now()/1e3);if(s(a),i()>=t){const l=o;return o=!0,l?WE:Sl}o=!1;const u=r.get(a)||0;return r.set(a,u+1),e(...c)}}class jE{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:y_,sessionIdleExpire:S_},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=NE(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=zE((o,c)=>BS(this,o,c),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),i=r?{threshold:Math.min(w_,r),timeout:r,scrollTimeout:k_,ignoreSelector:s?s.join(","):""}:void 0;if(i&&(this.clickDetector=new Jy(this,i)),R){const o=t._experiments;C.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{ee.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
24dTasks()},this._handleWindowBlur=()=>{const o=Be({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=Be({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{lS(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){R&&C.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){R&&C.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",R&&C.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){R&&C.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){R&&C.log("Buffering is in progress, call `flush()` to save the replay");return}R&&C.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=bs({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){R&&C.log("Buffering is in progress, call `flush()` to save the replay");return}R&&C.infoTick("Starting replay in buffer mode");const t=bs({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{const t=this._canvas;this._stopRecording=qe({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:v_}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:DE(this),...OE(),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}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{R&&C.log(`Stopping Replay${n?` triggered by ${n}`:""}`),fl(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,OS(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),R&&C.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),R&&C.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();R&&C.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!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&&Zs(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${ee.location.pathname}${ee.location.hash}${ee.location.search}`,n=`${ee.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===Sl){const s=Be({category:"replay.throttled"});this.addUpdate(()=>!Yi(this,{type:jy,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||ge(),n=t&&he(t),s=(n&&O(n).data||{})[ae];if(!(!n||!s||!["route","custom"].includes(s)))return O(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=xS({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=bs({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return cl(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{ee.document.addEventListener("visibilitychange",this._handleVisibilityChange),ee.addEventListener("blur",this._handleWindowBlur),ee.addEventListener("focus",this._handleWindowFocus),ee.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(ME(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=TS(this)}_removeListeners(){try{ee.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ee.removeEventListener("blur",this._handleWindowBlur),ee.removeEventListener("focus",this._handleWindowFocus),ee.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||al(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){R&&C.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:$.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=hS(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(Jr(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
24_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){R&&C.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await xE(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Ia;const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await yl({replayId:t,recordingData:i,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:o=>this.handleException(o)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=B();if(r){let s;n instanceof Xi?s="ratelimit_backoff":n instanceof Ia?s="invalid":s="send_error",r.recordDroppedEvent(s,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){R&&C.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const i=s<this._options.minReplayDuration,o=s>this._options.maxReplayDuration+5e3;if(i||o){R&&C.log(`Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const c=this.eventBuffer;c&&this.session.segmentId===0&&!c.hasCheckout&&R&&C.log("Flushing initial segment without checkout.");const a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Xr(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(c=>{const a=FE(c.target),u=n.join(",");return a?.matches(u)}))return!1;const r=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=s&&r>s;if(r>i||o){const c=Be({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(c)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function yn(e,t){return[...e,...t].join(",")}function qE({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const i=["base","iframe[srcdoc]:not([src])"],o=yn(e,[".sentry-mask","[data-sentry-mask]"]),c=yn(t,[]);return{maskTextSelector:o,unmaskTextSelector:c,blockSelector:yn(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:yn(r,[]),ignoreSelector:yn(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function GE({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const wa='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',VE=["content-length","content-type","accept"],YE=Symbol.for("sentry__originalRequestBody");let ka=!1,Ra=!1;function KE(){if(typeof Request>"u"||Ra)return;const e=Request;try{const t=function(n,r){const s=new e(n,r);return r?.body!=null&&(s[YE]=r.body),s};t.prototype=e.prototype,W.Request=t,Ra=!0}catch{}}const rv=(e=>new XE(e));class XE{constructor({flushMinDelay:t=E_,flushMaxDelay:n=b_,minReplayDuration:r=R_,maxReplayDuration:s=ra,stickySession:i=!0,useCompression:o=!0,workerUrl:c,_experiments:a={},maskAllText:u=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:S=[],networkCaptureBodies:v=!0,networkRequestHeaders:L=[],networkResponseHeaders:x=[],mask:P=[],maskAttributes:w=["title","placeholder","aria-label"],unmask:y=[],block:T=[],unblock:Q=[],ignore:E=[],maskFn:I,beforeAddRecordingEvent:j,beforeErrorSampling:V,onError:U,attachRawBodyFromRequest:le=!1}={}){this.name="Replay";const te=qE({mask:P,unmask:y,block:T,unblock:Q,ignore:E});if(this._recordingOptions={maskAllInputs:l,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(X,k,F)=>GE({maskAttributes:w,maskAllText:u,privacyOptions:te,key:X,value:k,el:F}),...te,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:X=>{try{X.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,C_),maxReplayDuration:Math.min(s,ra),stickySession:i,useCompression:o,workerUrl:c,blockAllMedia:d,maskAllInputs:l,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:S,networkCaptureBodies:v,networkRequestHeaders:Ca(L),networkResponseHeaders:Ca(x),beforeAddRecordingEvent:j,beforeErrorSampling:V,onError:U,attachRawBodyFromRequest:le,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${wa}`:wa,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&Bs())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ka}set _isInitialized(t){ka=t}afterAllSetup(t){!Bs()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&KE(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
24startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):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}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=JE(this._initialOptions,t);this._replay=new jE({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function JE(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=Ct(n.replaysSessionSampleRate),i=Ct(n.replaysOnErrorSampleRate);return s==null&&i==null&&Nt(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),i!=null&&(r.errorSampleRate=i),r}function Ca(e){return[...VE,...e.map(t=>t.toLowerCase())]}function QE(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function El(e){try{return new URL(e,M.location.origin).href}catch{return}}function ZE(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function bl(e){try{return new Headers(e)}catch{return}}const Ma=new WeakMap,vs=new Map,vl={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function eb(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:c,onRequestSpanStart:a,onRequestSpanEnd:u}={...vl,...t},l=typeof i=="function"?i:h=>!0,d=h=>tb(h,c),f={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(m=>{if(m.op==="http.client"){const g=vs.get(m.span_id);g&&(m.timestamp=g/1e3,vs.delete(m.span_id))}}),h)),s&&kh(h=>{if(h.response){const m=Ma.get(h.response);m&&h.endTimestamp&&vs.set(m,h.endTimestamp)}}),su(h=>{const m=_h(h,l,d,f,{propagateTraceparent:p,onRequestSpanEnd:u});if(h.response&&h.fetchData.__span&&Ma.set(h.response,h.fetchData.__span),m){const g=El(h.fetchData.url),S=g?wt(g).host:void 0;m.setAttributes({"http.url":g?et(g):void 0,"server.address":S}),o&&xa(m),a?.(m,{headers:h.headers})}})),r&&wu(h=>{const m=nb(h,l,d,f,p,u);m&&(o&&xa(m),a?.(m,{headers:bl(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}function xa(e){const{url:t}=O(e).data;if(!t||typeof t!="string")return;const n=xt("resource",({entries:r})=>{r.forEach(s=>{ZE(s)&&s.name.endsWith(t)&&(e.setAttributes(vu(s)),setTimeout(n))})})}function tb(e,t){const n=an();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const i=r.origin===s;return t?ze(r.toString(),t)||i&&ze(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?ze(e,t):r}}function nb(e,t,n,r,s,i){const o=e.xhr,c=o?.[St];if(!o||o.__sentry_own_request__||!c)return;const{url:a,method:u}=c,l=Le()&&t(a);if(e.endTimestamp){const S=o.__sentry_xhr_span_id__;if(!S)return;const v=r[S];v&&(l&&c.status_code!==void 0&&(ac(v,c.status_code),v.end(),i?.(v,{headers:bl(Mu(o)),error:e.error})),delete r[S]);return}const d=El(a),f=wt(d||a),p=et(Lp(a)),h=!!ge(),m=l&&h?dn({name:`${u} ${p}`,attributes:{url:et(a),type:"xhr","http.method":u,"http.url":d?et(d):void 0,"server.address":f?.host,[se]:"auto.http.browser",[Fe]:"http.client",...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new st;o.__sentry_xhr_span_id__=m.spanContext().spanId,r[o.__sentry_xhr_span_id__]=m,n(a)&&rb(o,Le()&&h?m:void 0,s);const g=B();return g&&g.emit("beforeOutgoingRequestSpan",m,e),m}function rb(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:i}=Qc({span:t,propagateTraceparent:n});r&&sb(e,r,s,i)}
24function sb(e,t,n,r){const s=e.__sentry_xhr_v3__?.request_headers;if(!(s?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!s?.traceparent&&e.setRequestHeader("traceparent",r),n){const i=s?.baggage;(!i||!QE(i))&&e.setRequestHeader("baggage",n)}}catch{}}function ib(){M.document?M.document.addEventListener("visibilitychange",()=>{const e=ge();if(!e)return;const t=he(e);if(M.document.hidden&&t){const n="cancelled",{op:r,status:s}=O(t);Se&&_.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:ce,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Se&&_.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const ob=3600,Tl="sentry_previous_trace",ab="sentry.previous_trace";function cb(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?db():void 0;e.on("spanStart",o=>{if(he(o)!==o)return;const c=G().getPropagationContext();s=ub(s,o,c),r&&lb(s)});let i=!0;n&&e.on("beforeSampling",o=>{if(!s)return;const c=G(),a=c.getPropagationContext();if(i&&a.parentSpanId){i=!1;return}c.setPropagationContext({...a,dsc:{...a.dsc,sample_rate:String(s.sampleRate),sampled:String(ni(s.spanContext))},sampleRand:s.sampleRand}),o.parentSampled=ni(s.spanContext),o.parentSampleRate=s.sampleRate,o.spanAttributes={...o.spanAttributes,[oc]:s.sampleRate}})}function ub(e,t,n){const r=O(t);function s(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[fi])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return i;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=ob&&(Se&&_.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Rd]:"previous_trace"}}),t.setAttribute(ab,`${o.traceId}-${o.spanId}-${ni(o)?1:0}`)),i)}function lb(e){try{M.sessionStorage.setItem(Tl,JSON.stringify(e))}catch(t){Se&&_.warn("Could not store previous trace in sessionStorage",t)}}function db(){try{const e=M.sessionStorage?.getItem(Tl);return JSON.parse(e)}catch{return}}function ni(e){return e.traceFlags===1}const fb="BrowserTracing",pb=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function hb(){const e=M.navigator;return e?.userAgent?pb.test(e.userAgent):!1}const mb={...pr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...vl},gb=((e={})=>{const t={name:void 0,source:void 0},n=M.document,{enableInp:r,enableElementTiming:s,enableLongTask:i,enableLongAnimationFrame:o,_experiments:{enableInteractions:c,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:u},beforeStartSpan:l,idleTimeout:d,finalTimeout:f,childSpanTimeout:p,markBackgroundSpan:h,traceFetch:m,traceXHR:g,trackFetchStreamPerformance:S,shouldCreateSpanForRequest:v,enableHTTPTimings:L,ignoreResourceSpans:x,ignorePerformanceApiSpans:P,instrumentPageLoad:w,instrumentNavigation:y,detectRedirects:T,linkPreviousTrace:Q,consistentTraceSampling:E,enableReportPageLoaded:I,onRequestSpanStart:j,onRequestSpanEnd:V}={...mb,...e},U=hb();let le,te,X;function k(F,A,H=!0){const J=A.op==="pageload",ie=A.name,fe=l?l(A):A,Ae=fe.attributes||{};if(ie!==fe.name&&(Ae[ae]="custom",fe.attributes=Ae),!H){const Ue=Dt();dn({...fe,startTime:Ue}).end(Ue);return}t.name=fe.name,t.source=Ae[ae];const we=xc(fe,{idleTimeout:d,finalTimeout:f,childSpanTimeout:p,disableAutoFinish:J,beforeSpanEnd:Ue=>{le?.(),Lm(Ue,{recordClsOnPageloadSpan:!a,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:x,ignorePerformanceApiSpans:P}),Oa(F,void 0);const mn=G(),pt=mn.getPropagationContext();mn.setPropagationContext({...pt,traceId:we.spanContext().traceId,sampled:dt(we),dsc:Ke(Ue)}),J&&(X=void 0)},trimIdleSpanEndTimestamp:!I});J&&I&&(X=we),Oa(F,we);function Ft(){n&&["interactive","complete"].includes(n.readyState)&&F.emit
24("idleSpanEnableAutoFinish",we)}J&&!I&&n&&(n.addEventListener("readystatechange",()=>{Ft()}),Ft())}return{name:fb,setup(F){if(U){Se&&_.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(tf(),le=Mm({recordClsStandaloneSpans:a||!1,recordLcpStandaloneSpans:u||!1,client:F}),r&&cg(),s&&Ym(),o&&W.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?Am():i&&xm(),c&&Nm(),T&&n){const H=()=>{te=de()};addEventListener("click",H,{capture:!0}),addEventListener("keydown",H,{capture:!0,passive:!0})}function A(){const H=Nn(F);H&&!O(H).timestamp&&(Se&&_.log(`[Tracing] Finishing current active span with op: ${O(H).op}`),H.setAttribute(wn,"cancelled"),H.end())}F.on("startNavigationSpan",(H,J)=>{if(B()!==F)return;if(J?.isRedirect){Se&&_.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),k(F,{op:"navigation.redirect",...H},!1);return}te=void 0,A(),Ie().setPropagationContext({traceId:Ye(),sampleRand:Math.random(),propagationSpanId:Le()?void 0:je()});const ie=G();ie.setPropagationContext({traceId:Ye(),sampleRand:Math.random(),propagationSpanId:Le()?void 0:je()}),ie.setSDKProcessingMetadata({normalizedRequest:void 0}),k(F,{op:"navigation",...H,parentSpan:null,forceTransaction:!0})}),F.on("startPageLoadSpan",(H,J={})=>{if(B()!==F)return;A();const ie=J.sentryTrace||Aa("sentry-trace")||Na("sentry-trace"),fe=J.baggage||Aa("baggage")||Na("baggage"),Ae=Gd(ie,fe),we=G();we.setPropagationContext(Ae),Le()||(we.getPropagationContext().propagationSpanId=je()),we.setSDKProcessingMetadata({normalizedRequest:ki()}),k(F,{op:"pageload",...H})}),F.on("endPageloadSpan",()=>{I&&X&&(X.setAttribute(wn,"reportPageLoaded"),X.end())})},afterAllSetup(F){if(U)return;let A=an();if(Q!=="off"&&cb(F,{linkPreviousTrace:Q,consistentTraceSampling:E}),M.location){if(w){const H=Te();Il(F,{name:M.location.pathname,startTime:H?H/1e3:void 0,attributes:{[ae]:"url",[se]:"auto.pageload.browser"}})}y&&Gr(({to:H,from:J})=>{if(J===void 0&&A?.indexOf(H)!==-1){A=void 0;return}A=void 0;const ie=wi(H),fe=Nn(F),Ae=fe&&T&&yb(fe,te);wl(F,{name:ie?.pathname||M.location.pathname,attributes:{[ae]:"url",[se]:"auto.navigation.browser"}},{url:H,isRedirect:Ae})})}h&&ib(),c&&_b(F,d,f,p,t),r&&dg(),eb(F,{traceFetch:m,traceXHR:g,trackFetchStreamPerformance:S,tracePropagationTargets:F.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:L,onRequestSpanStart:j,onRequestSpanEnd:V})}}});function Il(e,t,n){e.emit("startPageLoadSpan",t,n),G().setTransactionName(t.name);const r=Nn(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function wl(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const i=G();return i.setTransactionName(t.name),r&&!s&&i.setSDKProcessingMetadata({normalizedRequest:{...ki(),url:r}}),Nn(e)}function Aa(e){return M.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function Na(e){return M.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===e)?.description}function _b(e,t,n,r,s){const i=M.document;let o;const c=()=>{const a="ui.action.click",u=Nn(e);if(u){const l=O(u).op;if(["navigation","pageload"].includes(l)){Se&&_.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(wn,"interactionInterrupted"),o.end(),o=void 0),!s.name){Se&&_.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=xc({name:s.name,op:a,attributes:{[ae]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",c,{capture:!0})}const kl="_sentry_idleSpan";function Nn(e){return e[kl]}function Oa(e,t){ue(e,kl,t)}const Da=1.5;function yb(e,t){const n=O(e),r=Dt(),s=n.start_timestamp;return!(r-s>Da||t&&r-t<=Da)}function sv(e){const t={...e};return Jc(t,"react"),Dc("react",{version:Sn.version}),g_(t)}function Sb(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function Eb(e,t){const n=new WeakSet;function r(s,i){if(!n.has(s)){if(s.cause)return n.add(s),r(s.cause,i);s.cause=i}}r(e,t)}function bb(e,{componentStack:t},n){if(Sb(Sn.version)&&On(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,Eb(e,r)}return un(r=>(r.setContext("react",{componentStack:t}),bi(e,n)))}const me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ts={componentStack:null,error:null,eventId:null};class iv extends Sn.Component{constructor(t){super(t),this.state=Ts,this._openFallbackReportDialog=!0;const n=B();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&ta({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:s,onError:i,showDialog:o,dialogOptions:c}=this.props;un(a=>{s&&s(a,t,r);const u=this.props.handled!=null?this.props.handled:!!this.props.fallback,l=bb(t,n,{mechanism:{handled:u,type:"auto.function.react.error_boundary"}});i&&i(t,r,l),o&&(this._lastEventId=l,this._openFallbackReportDialog&&ta({...c,eventId:l})),this.setState({error:t,componentStack:r,eventId:l})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:s}=this.props;s&&(this.state===Ts?s(null,null,null):s(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:s}=this.state;t&&t(n,r,s),this.setState(Ts)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const s=typeof t=="function"?Sn.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return Sn.isValidElement(s)?s:(t&&me&&_.warn("fallback did not produce a valid ReactElement"),null)}}function Kn(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}const Pa=new WeakMap;function vb(e,t,n){if(!e||!t?.length)return null;const r=n?Kn(e,n):e;let s=Pa.get(t);s||(s=Cb(t),Pa.set(t,s),me&&_.log("[React Router] Sorted route manifest by specificity:",s.length,"patterns"));for(const i of s)if(Tb(r,i))return me&&_.log("[React Router] Matched pathname",r,"to pattern",
24i),i;return me&&_.log("[React Router] No manifest match found for pathname:",r),null}function Tb(e,t){if(t==="/")return e==="/"||e==="";const n=Fa(e),r=Fa(t);if(r.length>0&&r[r.length-1]==="*"){const i=r.slice(0,-1);if(n.length<i.length)return!1;for(const[o,c]of i.entries())if(!La(n[o],c))return!1;return!0}if(n.length!==r.length)return!1;for(const[i,o]of r.entries())if(!La(n[i],o))return!1;return!0}function La(e,t){return e===void 0||t===void 0?!1:Rl.test(t)?!0:e===t}function Fa(e){return e.split("/").filter(Boolean)}const Rl=/^:[\w-]+$/,Ib=10,wb=3,kb=1,Rb=-2;function Ba(e){const t=e.split("/");let n=t.length;t.includes("*")&&(n+=Rb);for(const r of t)r!=="*"&&(Rl.test(r)?n+=wb:r===""?n+=kb:n+=Ib);return n}function Cb(e){return[...e].sort((t,n)=>{const r=Ba(t);return Ba(n)-r})}let Ji,kt=!1;const rt=[],Mb=10;function xb(e,t){const n={};return rt.length>=Mb&&(me&&_.warn("[React Router] Navigation context stack overflow - removing oldest context"),rt.shift()),rt.push({token:n,targetPath:e,span:t}),n}function Ab(e){rt[rt.length-1]?.token===e&&rt.pop()}function Cl(){const e=rt.length;return e>0?rt[e-1]??null:null}function Nb(e,t=!1){Ji=e,kt=t}function Ob(e){return Pb(e.route.path||"")}function Db(e){return e.params["*"]||""}function Pb(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function Yt(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Ml(e){return e.endsWith("*")}function at(e){return e.includes("/*")||e.endsWith("*")}function $a(e,t){return Ml(e)&&!!t.route.children?.length||!1}function Lb(e){return!!(!e.children&&e.element&&e.path?.endsWith("/*"))}function Fb(e,t,n){const r=e&&e.length>0?e:kt?Kn(t,n):t;let s=r.slice(-2)==="/*"?r.slice(0,-2):r;return s.length>1&&s[s.length-1]==="/"&&(s=s.slice(0,-1)),[s,"route"]}function Ua(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function Ur(e){return e[0]==="/"?e:`/${e}`}function xl(e,t){const n=Ji(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const s=Ob(r),i=Kn(t.pathname,Ur(r.pathnameBase));return t.pathname===i?Yt(i):Yt(Yt(s||"")+Ur(xl(e.filter(o=>o!==r.route),{pathname:i})))}return""}function Bb(e,t){const n=Ji(t,e);if(n){for(const r of n)if(Lb(r.route)&&Db(r))return!0}return!1}function Ha(e,t){return kt?Kn(e.pathname,t):e.pathname||""}function $b(e,t,n,r=""){if(!e||e.length===0)return[kt?Kn(t.pathname,r):t.pathname,"url"];if(!n)return[Ha(t,r),"url"];let s="";for(const i of n){const o=i.route;if(!o)continue;if(o.index)return Fb(s,i.pathname,r);const c=o.path;if(!c||$a(c,i))continue;const a=c[0]==="/"||s[s.length-1]==="/"?c:`/${c}`;if(s=Yt(s)+Ur(a),Yt(t.pathname)===Yt(r+i.pathname))return Ua(s)!==Ua(i.pathname)&&!Ml(s)?[(kt?"":r)+a,"route"]:($a(s,i)&&(s=s.slice(0,-1)),[(kt?"":r)+s,"route"])}return[Ha(t,r),"url"]}function Zr(e,t,n,r,s="",i,o){if(o&&i&&i.length>0){const l=vb(e.pathname,i,s);if(l)return[(kt?"":s)+l,"route"]}let c,a="url";
24const u=Bb(e,n);return u&&(c=Ur(xl(n,e)),a="route"),(!u||!c)&&([c,a]=$b(t,e,r,s)),[c||e.pathname,a]}function hn(){const e=ge(),t=e?he(e):void 0;if(!t)return;const n=O(t).op;return n==="navigation"||n==="pageload"?t:void 0}function Ub(){const e=Cl();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(typeof M<"u")try{const t=M.location;if(t)return{pathname:t.pathname,search:t.search||"",hash:t.hash||"",state:null,key:"default"}}catch{me&&_.warn("[React Router] Could not access window.location")}return null}function Hb(){const e=Cl();return e?e.span:hn()}function Wb(e,t,n,r){const s=new Proxy(e,{apply(i,o,c){const a=Ub(),u=Hb(),l=i.apply(o,c);return zb(l,t,n,r,a,u),l}});return ue(s,"__sentry_proxied__",!0),s}function zb(e,t,n,r,s,i){Ot(e)?e.then(o=>{Array.isArray(o)&&r(o,t,s??void 0,i)}).catch(o=>{me&&_.warn(`Error resolving async handler '${n}' for route`,t,o)}):Array.isArray(e)&&r(e,t,s??void 0,i)}function Qi(e,t){if(e.handle&&typeof e.handle=="object")for(const n of Object.keys(e.handle)){const r=e.handle[n];typeof r=="function"&&!r.__sentry_proxied__&&(e.handle[n]=Wb(r,e,n,t))}if(Array.isArray(e.children))for(const n of e.children)Qi(n,t)}let Al,Nl,Ol,ct,Lt=!1,bt=3e3,Xn,Dl="";const Pl=new WeakSet,yt=new WeakMap,Re=new Set,Er=new WeakMap,ri=new WeakMap;function jb(e){return M?.requestAnimationFrame?M.requestAnimationFrame(e):setTimeout(e,0)}function Wa(e){M?.cancelAnimationFrame?M.cancelAnimationFrame(e):clearTimeout(e)}function Ll(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function za(e){return e.includes(":")||e.includes("*")}function qb(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){const i=!!e.routeName&&at(e.routeName),o=at(n),c=!!e.routeName&&za(e.routeName),a=za(n),u=i&&!o,l=!c&&a,d=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!o;return{skip:!0,shouldUpdate:!!(e.routeName&&(u||l||d))}}return{skip:!1,shouldUpdate:!1}}function Fl(e,t){const n=t.children||[],r=e.filter(s=>!n.some(i=>i===s||s.path&&i.path===s.path||s.id&&i.id===s.id));r.length>0&&(t.children=[...n,...r])}function Bl(e,t){let n=Er.get(e);n||(n=new Set,Er.set(e,n)),n.add(t),t.finally(()=>{const r=Er.get(e);r&&r.delete(t)})}function Gb(e){const t=new Promise(n=>{ri.set(e,n)});Bl(e,t)}function Vb(e){const t=ri.get(e);t&&(t(),ri.delete(e),e.__sentry_may_have_lazy_routes__&&(e.__sentry_may_have_lazy_routes__=!1))}function $l(e,t,n=null,r){e.forEach(i=>{Re.add(i),Lt&&Qi(i,$l)}
24),t&&Fl(e,t);const s=r??hn();if(s){const i=O(s);if(i.timestamp){me&&_.warn("[React Router] Lazy handler resolved after span ended - skipping update");return}const o=i.op;let c=n;if(!c&&!r&&typeof M<"u"){const a=M.location;a?.pathname&&(c={pathname:a.pathname})}c&&(o==="pageload"?Wl({activeRootSpan:s,location:{pathname:c.pathname},routes:Array.from(Re),allRoutes:Array.from(Re)}):o==="navigation"&&si(s,c,Array.from(Re),!1,ct))}}function si(e,t,n,r=!1,s){const i=O(e),o=i.description,c=e?.__sentry_navigation_name_set__,a=o&&at(o);if((!c||r||a)&&!i.timestamp){const l=s(n,t),[d,f]=Zr(t,n,n,l||[],Dl,Xn,Lt),p=i.data?.[ae];d&&(!o||!c&&(p!=="route"||f==="route")||p!=="route"&&f==="route"||p==="route"&&f==="route"&&a)&&(e.updateName(d),e.setAttribute(ae,f),!at(d)&&f==="route"&&ue(e,"__sentry_navigation_name_set__",!0))}}function Yb(e,t,n,r,s){let i=!1,o=!!s&&O(s).op==="pageload",c=!1,a=null,u=null;e.subscribe(l=>{if(!i){const f=hn();f&&O(f).op==="pageload"?o=!0:o&&(l.historyAction==="POP"&&!c?c=!0:i=!0)}if(l.historyAction==="PUSH"||l.historyAction==="POP"&&i){const f=Ll(l.location),p=()=>{u!==f&&(u=f,a=null,Qb({location:l.location,routes:t,navigationType:l.historyAction,version:n,basename:r,allRoutes:Array.from(Re)}))};l.navigation.state!=="idle"?(u!==f&&(u=null),a!==null&&Wa(a),a=jb(p)):(a!==null&&(Wa(a),a=null),p())}})}function Kb(e,t){return!Al||!Nl||!Ol||!ct?(me&&_.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e):function(n,r){if(Ul(n),Lt)for(const u of n)Qi(u,$l);const s=hn();r&&"patchRoutesOnNavigation"in r&&typeof r.patchRoutesOnNavigation=="function"&&s&&(ue(s,"__sentry_may_have_lazy_routes__",!0),Gb(s));const o=Jb(r,!1,s),c=e(n,o),a=r?.basename;return c.state.historyAction==="POP"&&s&&Wl({activeRootSpan:s,location:c.state.location,routes:n,basename:a,allRoutes:Array.from(Re)}),Dl=a||"",Yb(c,n,t,a,s),c}}function Xb(e,t){const n=gb({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:s,useNavigationType:i,createRoutesFromChildren:o,matchRoutes:c,stripBasename:a,enableAsyncRouteHandlers:u=!1,instrumentPageLoad:l=!0,instrumentNavigation:d=!0,lazyRouteTimeout:f,lazyRouteManifest:p}=e;return{...n,setup(h){n.setup(h);const m=e.finalTimeout??3e4,g=(e.idleTimeout??1e3)*3,S=f??g;S===1/0?(bt=m,me&&_.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",m,"ms to prevent indefinite hangs")):Number.isNaN(S)?(me&&_.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",g),bt=g):S<0?(me&&_.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",S,"falling back to:",g),bt=g):bt=S,Al=r,Nl=s,Ol=i,ct=c,Lt=u,Xn=p,Nb(c,a||!1)},afterAllSetup(h){n.afterAllSetup(h);const m=M.location?.pathname;l&&m&&Il(h,{name:m,attributes:{[ae]:"url",[Fe]:"pageload",[se]:`auto.pageload.react.reactrouter_v${t}`}}),d&&Pl.add(h)}}}function Jb(e,t=!1,n){if(!e||!("patchRoutesOnNavigation"in e)||typeof e.patchRoutesOnNavigation!="function")return e||{};const r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async s=>{const i=s?.path,o=hn()??n;if(!t){const a=s?.patch,u=s?.matches;a&&(s.patch=(l,d)=>{if(Ul(d),u&&u.length>0){const h=u[u.length-1]?.route;if(h){const m=Array.from(Re).find(g=>{const S=g.id!==void 0&&g.id===l,v=g===h,L=g.path!==void 0&&h.path!==void 0&&g.path===h.path;return S||v||L});m&&Fl(d,m)}}const f=o?O(o):void 0;return i&&o&&f&&!f.timestamp&&f.op==="navigation"&&si(o,{pathname:i,search:"",hash:"",state:null,key:"default"},Array.from(Re),!0,ct),a(l,d)})}const c=(async()=>{const a=xb(i,o);let u;try{u=await r(s)}finally{Ab(a),o&&Vb(o)}const l=o?O(o):void 0;if(o&&l&&!l.timestamp&&l.op==="navigation"){const d=i;d&&si(o,{pathname:d,search:"",hash:"",state:null,key:"default"},Array.from(Re),!1,ct)}return u})();return o&&Bl(o,c),c}}}function Qb(e){const{location:t,routes:n,navigationType:r,version:s,matches:i,basename:o,allRoutes:c}=e,a=Array.isArray(i)?i:ct(c||n,t,o),u=B();if(!u||!Pl.has(u))return;const l=hn();
24if(!(l&&O(l).op==="pageload"&&r==="POP")&&(r==="PUSH"||r==="POP")&&a){const[d,f]=Zr(t,c||n,c||n,a,o,Xn,Lt),p=Ll(t),h=yt.get(u),m=h&&!h.isPlaceholder?!!O(h.span).timestamp:!1,{skip:g,shouldUpdate:S}=qb(h,p,d,m);if(g){if(S&&h){const P=h.routeName;h.isPlaceholder?(h.routeName=d,me&&_.log(`[Tracing] Updated placeholder navigation name from "${P}" to "${d}" (will apply to real span)`)):(h.span.updateName(d),h.span.setAttribute(ae,f),ue(h.span,"__sentry_navigation_name_set__",!0),h.routeName=d,me&&_.log(`[Tracing] Updated navigation span name from "${P}" to "${d}"`))}else me&&_.log(`[Tracing] Skipping duplicate navigation for location: ${p}`);return}const L={span:{end:()=>{}},routeName:d,pathname:t.pathname,locationKey:p,isPlaceholder:!0};yt.set(u,L);let x;try{x=wl(u,{name:L.routeName,attributes:{[ae]:f,[Fe]:"navigation",[se]:`auto.navigation.react.reactrouter_v${s}`}})}catch(P){throw yt.delete(u),P}x?(yt.set(u,{span:x,routeName:L.routeName,pathname:t.pathname,locationKey:p}),ii(x,t,n,o,"navigation")):yt.delete(u)}}function Ul(e){e.forEach(t=>{Hl(t).forEach(r=>{Re.add(r)})})}function Hl(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{Hl(n,t).forEach(s=>{t.add(s)})})),t}function Wl({activeRootSpan:e,location:t,routes:n,matches:r,basename:s,allRoutes:i}){const o=Array.isArray(r)?r:ct(i||n,t,s);if(o){const[c,a]=Zr(t,i||n,i||n,o,s,Xn,Lt);G().setTransactionName(c||"/"),e&&(e.updateName(c),e.setAttribute(ae,a),ii(e,t,n,s,"pageload"))}else e&&ii(e,t,n,s,"pageload")}function Zb(e,t,n,r,s=!1){return n?!!(!e&&s||e&&at(e)&&r==="route"&&!at(n)||t!=="route"&&r==="route"):!1}function Is(e,t,n,r,s,i,o,c){try{const a=t.data?.[ae];if(a==="route"&&n&&!at(n))return;const u=Array.from(c),l=u.length>0?u:s,d=ct(l,r,i);if(!d)return;const[f,p]=Zr(r,l,l,d,i,Xn,Lt),h=Zb(n,a,f,p,!0),m=o==="pageload"||!t.timestamp;h&&m&&(e.updateName(f),e.setAttribute(ae,p))}catch(a){me&&_.warn(`Error updating span details before ending: ${a}`)}}function ii(e,t,n,r,s){const i=`__sentry_${s}_end_patched__`;if(e?.[i]||!e.end)return;const c=e.end.bind(e);let a=!1;e.end=function(...l){if(a)return;a=!0;const d=l.length>0?l[0]:Date.now()/1e3,f=O(e),p=f.description,h=f.data?.[ae],m=()=>{const x=B();if(x&&s==="navigation"){const P=yt.get(x);P&&P.span===e&&yt.delete(x)}},g=Er.get(e),S=e.__sentry_may_have_lazy_routes__;if((g&&g.size>0||S)&&p&&(at(p)||h!=="route")){if(bt===0){Is(e,f,p,t,n,r,s,Re),m(),c(d);return}const x=new Promise(w=>setTimeout(w,bt));let P;if(g&&g.size>0){const w=Promise.allSettled(g).then(()=>{});P=bt===1/0?w:Promise.race([w,x])}else P=x;P.then(()=>{const w=O(e);Is(e,w,w.description,t,n,r,s,Re),m(),c(d)}).catch(()=>{m(),c(d)});return}Is(e,f,p,t,n,r,s,Re),m(),c(d)},ue(e,i,!0)}function ov(e){return Xb(e,"7")}function av(e){return Kb(e,"7")}export{iv as E,rv as a,bi as b,tv as c,it as d,sv as i,tp as l,ov as r,nv as s,av as w};
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.