1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="52de62d4-cab6-56e2-89c8-7b34da7cb6a5")}catch(e){}}(); 3import{a as Qf,b as Zf,c as ep,d as tp,e as np,i as rp}from"./chunk-NKLXREWT.js";import"./chunk-UHCISBON.js";import{b as Xf}from"./chunk-6YMLPQDC.js";import"./chunk-DJM52XL6.js";import{Cb as Jf,D as Bs,Db as Kf,Ia as Vf,_ as Fs,a as zf,aa as su,ea as au,fa as qf,ia as cu,ub as Yf}from"./chunk-UMKIUVES.js";import{a as f,b as E,c as mn,e as jf,g as x,h as wn,i as eo,j as to}from"./chunk-TXY5D64Z.js";var b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var C=globalThis;var xt="10.47.0";function ut(){return zn(C),C}function zn(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||xt,t[xt]=t[xt]||{}}function rn(e,t,n=C){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[xt]=r[xt]||{};return o[e]||(o[e]=t())}var Er=["debug","info","warn","error","log","assert","trace"],bT="Sentry Logger ",no={};function Be(e){if(!("console"in C))return e();let t=C.console,n={},r=Object.keys(no);r.forEach(o=>{let i=no[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function AT(){lu().enabled=!0}function RT(){lu().enabled=!1}function op(){return lu().enabled}function vT(...e){uu("log",...e)}function NT(...e){uu("warn",...e)}function CT(...e){uu("error",...e)}function uu(e,...t){b&&op()&&Be(()=>{C.console[e](`${bT}[${e}]:`,...t)})}function lu(){return b?rn("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var _={enable:AT,disable:RT,isEnabled:op,log:vT,warn:NT,error:CT};var ip=/\(error: (.*)\)/,sp=/captureMessage|captureException/;function Hs(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(` 4`);for(let a=r;a<s.length;a++){let c=s[a];c.length>1024&&(c=c.slice(0,1024));let u=ip.test(c)?c.replace(ip,"$1"):c;if(!u.match(/\S*Error: /)){for(let d of t){let l=d(u);if(l){i.push(l);break}}if(i.length>=50+o)break}}return ap(i.slice(o))}}function fu(e){return Array.isArray(e)?Hs(...e):e}function ap(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Gs(t).function||"")&&t.pop(),t.reverse(),sp.test(Gs(t).function||"")&&(t.pop(),sp.test(Gs(t).function||"")&&t.pop()),t.slice(0,50).map(n=>E(f({},n),{filename:n.filename||Gs(t).filename,function:n.function||"?"}))}function Gs(e){return e[e.length-1]||{}}var du="<anonymous>";function gt(e){try{return!e||typeof e!="function"?du:e.name||du}catch{return du}}function ro(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function $s(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function cp(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}var Ws={},up={};function tt(e,t){Ws[e]=Ws[e]||[],Ws[e].push(t)}function nt(e,t){if(!up[e]){up[e]=!0;try{t()}catch(n){b&&_.error(`Error while instrumenting ${e}`,n)}}}function Fe(e,t){let n=e&&Ws[e];if(n)for(let r of n)try{r(t)}catch(o){b&&_.error(`Error while triggering instrumentation handler. 5Type: ${e} 6Name: ${gt(r)} 7Error:`,o)}}var pu=null;function mi(e){let t="error";tt(t,e),nt(t,xT)}function xT(){pu=C.onerror,C.onerror=function(e,t,n,r,o){return Fe("error",{column:r,error:o,line:n,msg:e,url:t}),pu?pu.apply(this,arguments):!1},C.onerror.__SENTRY_INSTRUMENTED__=!0}var mu=null;function hi(e){let t="unhandledrejection";tt(t,e),nt(t,wT)}function wT(){mu=C.onunhandledrejection,C.onunhandledrejection=function(e){return Fe("unhandledrejection",e),mu?mu.apply(this,arguments):!0},C.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var lp=Object.prototype.toString;function rt(e){switch(lp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return wt(e,Error)}}function oo(e,t){return lp.call(e)===`[object ${t}]`}function _i(e){return oo(e,"ErrorEvent")}function js(e){return oo(e,"DOMError")}function hu(e){return oo(e,"DOMException")}function ke(e){return oo(e,"String")}function kn(e){return typeof e=="object"&&e!==null&&"__sentry_template_str
7ing__"in e&&"__sentry_template_values__"in e}function lt(e){return e===null||kn(e)||typeof e!="object"&&typeof e!="function"}function Ce(e){return oo(e,"Object")}function Tr(e){return typeof Event<"u"&&wt(e,Event)}function _u(e){return typeof Element<"u"&&wt(e,Element)}function gu(e){return oo(e,"RegExp")}function St(e){return!!(e?.then&&typeof e.then=="function")}function Su(e){return Ce(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function wt(e,t){try{return e instanceof t}catch{return!1}}function gi(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function Si(e){return typeof Request<"u"&&wt(e,Request)}var Eu=C,kT=80;function Oe(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||kT;for(;n&&i++<r&&(u=OT(n,d),!(u==="html"||i>1&&s+o.length*c+u.length>=l));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function OT(e,t){let n=e,r=[];if(!n?.tagName)return"";if(Eu.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());let o=t?.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(o?.length)o.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let i=n.className;if(i&&ke(i)){let s=i.split(/\s+/);for(let a of s)r.push(`.${a}`)}}for(let i of["aria-label","type","name","title","alt"]){let s=n.getAttribute(i);s&&r.push(`[${i}="${s}"]`)}return r.join("")}function dt(){try{return Eu.document.location.href}catch{return""}}function Ei(e){if(!Eu.HTMLElement)return null;let t=e,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 Ee(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!="function")return;let o=n(r);typeof o=="function"&&zs(o,r);try{e[t]=o}catch{b&&_.log(`Failed to replace method "${t}" in object`,e)}}function Te(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 zs(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,Te(e,"__sentry_original__",t)}catch{}}function yr(e){return e.__sentry_original__}function qs(e){if(rt(e))return f({message:e.message,name:e.name,stack:e.stack},fp(e));if(Tr(e)){let t=f({type:e.type,target:dp(e.target),currentTarget:dp(e.currentTarget)},fp(e));return typeof CustomEvent<"u"&&wt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function dp(e){try{return _u(e)?Oe(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function fp(e){return typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e)):{}}function Tu(e){let t=Object.keys(qs(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}var io;function Ir(e){if(io!==void 0)return io?io(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=C;return t in n&&typeof n[t]=="function"?(io=n[t],io(e)):(io=null,e())}function Et(){return Ir(()=>Math.random())}function br(){return Ir(()=>Date.now())}function hn(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ti(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function Ar(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{gi(o)?n.push($s(o)):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function so(e,t,n=!1){return ke(e)?gu(t)?t.test(e):ke(t)?n?e===t:e.includes(t):!1:!1}function Qe(e,t=[],n=!1){return t.some(r=>so(e,r,n))}function MT(){let e=C;return e.crypto||e.msCrypto}var yu;function PT(){return Et()*16}function fe(e=MT()){try{if(e?.randomUUID)return Ir(()=>e.randomUUID()).replace(/-/g,"")}catch{}return yu||(yu="10000000100040008000"+1e11),yu.replace(/[018]/g,t=>(t^(PT()&15)>>t/4).toString(16))}function pp(e){return e.exception?.values?.[0]}function _n(e){let{message:t,event_id:n}=e;if(t)return t;let r=pp(e);return r?r.type&&r.value?`${r.type}: ${r.value}
7`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ao(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function ot(e,t){let n=pp(e);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism=f(f(f({},r),o),t),t&&"data"in t){let i=f(f({},o?.data),t.data);n.mechanism.data=i}}function Iu(e,t,n=5){if(t.lineno===void 0)return;let r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(s=>Ti(s,0));let i=Math.min(r-1,o);t.context_line=Ti(e[i],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(s=>Ti(s,0))}function Vs(e){if(mp(e))return!0;try{Te(e,"__sentry_captured__",!0)}catch{}return!1}function mp(e){try{return e.__sentry_captured__}catch{}}var _p=1e3;function kt(){return br()/_p}function LT(){let{performance:e}=C;if(!e?.now||!e.timeOrigin)return kt;let t=e.timeOrigin;return()=>(t+Ir(()=>e.now()))/_p}var hp;function oe(){return(hp??(hp=LT()))()}var bu=null;function UT(){let{performance:e}=C;if(!e?.now)return;let t=3e5,n=Ir(()=>e.now()),r=br(),o=e.timeOrigin;if(typeof o=="number"&&Math.abs(o+n-r)<t)return o;let i=e.timing?.navigationStart;return typeof i=="number"&&Math.abs(i+n-r)<t?i:r-n}function ye(){return bu===null&&(bu=UT()),bu}function gp(e){let t=oe(),n={sid:fe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>DT(n)};return e&&On(n,e),n}function On(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||oe(),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:fe()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let 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),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Sp(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),On(e,n)}function DT(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 qn(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r=f({},e);for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=qn(r[o],t[o],n-1));return r}function Ze(){return fe()}function it(){return fe().substring(16)}var Au="_sentrySpan";function ft(e,t){t?Te(e,Au,t):delete e[Au]}function on(e){return e[Au]}var BT=100,pt=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:Ze(),sampleRand:Et()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags=f({},this._tags),t._attributes=f({},this._attributes),t._extra=f({},this._extra),t._contexts=f({},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=f({},this._sdkProcessingMetadata),t._propagationContext=f({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,ft(t,on(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&&On(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=f(f({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes=f(f({},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=f(f({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,n){return this._extra=E(f({},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;let n=typeof t=="function"?t(this):t,r=n instanceof e?n.getScopeData():Ce(n)?t:void 0,{tags:o,attributes:i,extra:s,user:a,contexts:c,level:u,fingerprint:d=[],propagationContext:l,conversationId:p}=r||{};return this._tags=f(f({},this._tags),o),this._attributes=f(f({},this._attributes),i),this._extra=f(f({},this._extra),s),this._contexts=f(f({},this._contexts),c),a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),l&&(this._propagationContext=l),p&&(this._conversationId=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,ft(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ze(),sampleRand:Et()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:BT;if(r<=0)return this;let o=E(f({timestamp:kt()},t),{message:t.message?hn(t.message,2048):t.message});return this._breadcrumbs.push(o),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:on(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=qn(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n?.event_id||fe();if(!this._client)return b&&_.warn("No client configured on scope - will not capture exception!"),r;let o=new Error("Sentry syntheticException");return this._client.captureException(t,E(f({originalException:t,syntheticException:o},n),{event_id:r}),this),r}captureMessage(t,n,r){let o=r?.event_id||fe();if(!this._client)return b&&_.warn("No client configured on scope - will not capture message!"),o;let i=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,E(f({originalException:t,syntheticException:i},r),{event_id:o}),this),o}captureEvent(t,n){let r=t.event_id||n?.event_id||fe();return this._client?(this._client.captureEvent(t,E(f({},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
7h(t=>{t(this)}),this._notifyingListeners=!1)}};function Ep(){return rn("defaultCurrentScope",()=>new pt)}function Tp(){return rn("defaultIsolationScope",()=>new pt)}var yp=e=>e instanceof Promise&&!e[Ip],Ip=Symbol("chained PromiseLike"),Ys=(e,t,n)=>{let r=e.then(o=>(t(o),o),o=>{throw n(o),o});return yp(r)&&yp(e)?r:FT(e,r)},FT=(e,t)=>{let n=!1;for(let r in e){if(r in t)continue;n=!0;let o=e[r];typeof o=="function"?Object.defineProperty(t,r,{value:(...i)=>o.apply(e,i),enumerable:!0,configurable:!0,writable:!0}):t[r]=o}return n&&Object.assign(t,{[Ip]:!0}),t};var Ru=class{constructor(t,n){let r;t?r=t:r=new pt;let o;n?o=n:o=new pt,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){let n=this._pushScope(),r;try{r=t(n)}catch(o){throw this._popScope(),o}return St(r)?Ys(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(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function co(){let e=ut(),t=zn(e);return t.stack=t.stack||new Ru(Ep(),Tp())}function GT(e){return co().withScope(e)}function HT(e,t){let n=co();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function bp(e){return co().withScope(()=>e(co().getIsolationScope()))}function Ap(){return{withIsolationScope:bp,withScope:GT,withSetScope:HT,withSetIsolationScope:(e,t)=>bp(t),getCurrentScope:()=>co().getScope(),getIsolationScope:()=>co().getIsolationScope()}}function Wt(e){let t=zn(e);return t.acs?t.acs:Ap()}var Rp;function vp(){return Rp?.()}function vu(){return Rp!==void 0}function L(){let e=ut();return Wt(e).getCurrentScope()}function ae(){let e=ut();return Wt(e).getIsolationScope()}function gn(){return rn("globalScope",()=>new pt)}function ze(...e){let t=ut(),n=Wt(t);if(e.length===2){let[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function Nu(...e){let t=ut(),n=Wt(t);if(e.length===2){let[r,o]=e;return r?n.withSetIsolationScope(r,o):n.withIsolationScope(o)}return n.withIsolationScope(e[0])}function I(){return L().getClient()}function yi(e){let t=vp();if(t)return{trace_id:t.traceId,span_id:t.spanId};let n=e.getPropagationContext(),{traceId:r,parentSpanId:o,propagationSpanId:i}=n,s={trace_id:r,span_id:i||it()};return o&&(s.parent_span_id=o),s}var Re="sentry.source",Vn="sentry.sample_rate",Ii="sentry.previous_trace_sample_rate",pe="sentry.op",W="sentry.origin",Yn="sentry.idle_span_finish_reason",Sn="sentry.measurement_unit",En="sentry.measurement_value",uo="sentry.custom_span_name",lo="sentry.profile_id",jt="sentry.exclusive_time";var Cu="http.request.method",xu="url.full",wu="sentry.link.type",ku="gen_ai.conversation.id";function Ou(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"internal_error"}}function Mn(e,t){e.setAttribute("http.response.status_code",t);let n=Ou(t);n.message!=="unknown_error"&&e.setStatus(n)}var Np="_sentryScope",Cp="_sentryIsolationScope";function $T(e){try{let t=C.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function WT(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function xp(e,t,n){e&&(Te(e,Cp,$T(n)),Te(e,Np,t))}function Rr(e){let t=e;return{scope:t[Np],isolationScope:WT(t[Cp])}}var bi="sentry-";var jT=8192;function fo(e){let t=zT(e);if(!t)return;let n=Object.entries(t).reduce((r,[o,i])=>{if(o.startsWith(bi)){let s=o.slice(bi.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function Js(e){if(!e)return;let t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${bi}${r}`]=o),n),{});return qT(t)}function zT(e){if(!(!e||!ke(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{let r=wp(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):wp(e)}function wp(e){return e.split(",").map(t=>{let n=t.indexOf("=");if(n===-1)return[];let r=t.slice(0,n),o=t.slice(n+1);return[r,o].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function qT(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{let i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=o===0?i:`${t},${i}`;return s.length>jT?(b&&_.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}var VT=/^o(\d+)\./,YT=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function JT(e){return e==="http"||e==="https"}function qe(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function Ks(e){let t=YT.exec(e);if(!t){Be(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i="",s="",a=""]=t.slice(1),c="",u=a,d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){let l=u.match(/^\d+/);l&&(u=l[0])}return kp({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function kp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function KT(e){if(!b)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(_.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?JT(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 XT(e){return e.match(VT)?.[1]}function Xs(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=XT(n)),r}function Ai(e){let t=typeof e=="string"?Ks(e):kp(e);if(!(!t||!KT(t)))return t}function Ot(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}var Qs=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Op(e){if(!e)return;let t=e.match(Qs);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 Ri(e,t){let n=Op(e),r=fo(t);
7if(!n?.traceId)return{traceId:Ze(),sampleRand:Et()};let o=QT(n,r);r&&(r.sample_rand=o.toString());let{traceId:i,parentSpanId:s,parentSampled:a}=n;return{traceId:i,parentSpanId:s,sampled:a,dsc:r||{},sampleRand:o}}function vi(e=Ze(),t=it(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Ni(e=Ze(),t=it(),n){return`00-${e}-${t}-${n?"01":"00"}`}function QT(e,t){let n=Ot(t?.sample_rand);if(n!==void 0)return n;let r=Ot(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Et()*r:r+Et()*(1-r):Et()}function Mu(e,t){let n=Xs(e);return t&&n&&t!==n?(_.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):(e.getOptions().strictTraceContinuation||!1)&&(t&&!n||!t&&n)?(_.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1):!0}var ea=0,ta=1,Mp=!1;function Lp(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a,links:c}=D(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a,links:c}}function Ci(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:D(e).parent_span_id,i=Rr(e).scope,s=r?i?.getPropagationContext().propagationSpanId||it():t;return{parent_span_id:o,span_id:s,trace_id:n}}function na(e){let{traceId:t,spanId:n}=e.spanContext(),r=Mt(e);return vi(t,n,r)}function Up(e){let{traceId:t,spanId:n}=e.spanContext(),r=Mt(e);return Ni(t,n,r)}function ra(e){if(e&&e.length>0)return e.map(s=>{var a=s,{context:c}=a,u=c,{spanId:t,traceId:n,traceFlags:r}=u,o=mn(u,["spanId","traceId","traceFlags"]),{attributes:i}=a;return f({span_id:t,trace_id:n,sampled:r===ta,attributes:i},o)})}function sn(e){return typeof e=="number"?Pp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Pp(e.getTime()):oe()}function Pp(e){return e>9999999999?e/1e3:e}function D(e){if(ty(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(ey(e)){let{attributes:r,startTime:o,name:i,endTime:s,status:a,links:c}=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:sn(o),timestamp:sn(s)||void 0,status:oa(a),op:r[pe],origin:r[W],links:ra(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function ey(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function ty(e){return typeof e.getSpanJSON=="function"}function Mt(e){let{traceFlags:t}=e.spanContext();return t===ta}function oa(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"internal_error"}var vr="_sentryChildSpans",Pu="_sentryRootSpan";function ia(e,t){let n=e[Pu]||e;Te(t,Pu,n),e[vr]?e[vr].add(t):Te(e,vr,new Set([t]))}function Dp(e,t){e[vr]&&e[vr].delete(t)}function Jn(e){let t=new Set;function n(r){if(!t.has(r)&&Mt(r)){t.add(r);let o=r[vr]?Array.from(r[vr]):[];for(let i of o)n(i)}}return n(e),Array.from(t)}function ie(e){return e[Pu]||e}function ee(){let e=ut(),t=Wt(e);return t.getActiveSpan?t.getActiveSpan():on(L())}function xi(){Mp||(Be(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Mp=!0)}function Bp(e,t){e.updateName(t),e.setAttributes({[Re]:"custom",[uo]:t})}var Fp=!1;function sa(){if(Fp)return;function e(){let t=ee(),n=t&&ie(t);if(n){let r="internal_error";b&&_.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:2,message:r})}}e.tag="sentry_tracingErrorCallback",Fp=!0,mi(e),hi(e)}function Le(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let t=e||I()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Gp(e){_.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Nr(e,t){if(!t?.length||!e.description)return!1;for(let n of t){if(ny(n)){if(so(e.description,n))return b&&Gp(e),!0;continue}if(!n.name&&!n.op)continue;let r=n.name?so(e.description,n.name):!0,o=n.op?e.op&&so(e.op,n.op):!0;if(r&&o)return b&&Gp(e),!0}return!1}function Hp(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function ny(e){return typeof e=="string"||e instanceof RegExp}var Pn="production";var $p="_frozenDsc";function po(e,t){Te(e,$p,t)}function Lu(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||Pn,release:n.release,public_key:r,trace_id:e,org_id:Xs(t)};return t.emit("createDsc",o),o}function Cr(e,t){let n=t.getPropagationContext();return n.dsc||Lu(n.traceId,e)}function Ue(e){let t=I();if(!t)return{};let n=ie(e),r=D(n),o=r.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Vn]??o[Ii];function a(h){return(typeof s=="number"||typeof s=="string")&&(h.sample_rate=`${s}`),h}let c=n[$p];if(c)return a(c);let u=i?.get("sentry.dsc"),d=u&&fo(u);if(d)return a(d);let l=Lu(e.spanContext().traceId,t),p=o[Re],m=r.description;return p!=="url"&&m&&(l.transaction=m),Le()&&(l.sampled=String(Mt(n)),l.sample_rand=i?.get("sentry.sample_rand")??Rr(n).scope?.getPropagationContext().sampleRand.toString()),a(l),t.emit("createDsc",l,n),l}function Wp(e){let t=Ue(e);return Js(t)}var st=class{constructor(t={}){this._traceId=t.traceId||Ze(),this._spanId=t.spanId||it()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:ea}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
7addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}};function ve(e,t=100,n=1/0){try{return Uu("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function aa(e,t=3,n=100*1024){let r=ve(e,t);return sy(r)>n?aa(e,t-1,n):r}function Uu(e,t,n=1/0,r=1/0,o=ay()){let[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;let a=ry(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";let u=t;if(u&&typeof u.toJSON=="function")try{let m=u.toJSON();return Uu("",m,c-1,r,o)}catch{}let d=Array.isArray(t)?[]:{},l=0,p=qs(t);for(let m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(l>=r){d[m]="[MaxProperties ~]";break}let h=p[m];d[m]=Uu(m,h,c-1,r,o),l++}return s(t),d}function ry(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(gi(t))return $s(t);if(Su(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${gt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=oy(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function oy(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function iy(e){return~-encodeURI(e).split(/%..|./).length}function sy(e){return iy(JSON.stringify(e))}function ay(){let 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 De(e,t=[]){return[e,t]}function Du(e,t){let[n,r]=e;return[n,[...r,t]]}function Pt(e,t){let n=e[1];for(let r of n){let o=r[0].type;if(t(r,o))return!0}return!1}function mo(e,t){return Pt(e,(n,r)=>t.includes(r))}function ca(e){let t=zn(C);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function cy(e){let t=zn(C);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function Kn(e){let[t,n]=e,r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[ca(r),i]:r.push(typeof i=="string"?ca(i):i)}for(let i of n){let[s,a]=i;if(o(` 8${JSON.stringify(s)} 9`),typeof a=="string"||a instanceof Uint8Array)o(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(ve(a))}o(c)}}return typeof r=="string"?r:uy(r)}function uy(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function Bu(e){let t=typeof e=="string"?ca(e):e;function n(s){let a=t.subarray(0,s);return t=t.subarray(s+1),a}function r(){let s=t.indexOf(10);
9return s<0&&(s=t.length),JSON.parse(cy(n(s)))}let o=r(),i=[];for(;t.length;){let s=r(),a=typeof s.length=="number"?s.length:void 0;i.push([s,a?n(a):r()])}return[o,i]}function Fu(e){return[{type:"span"},e]}function Gu(e){let t=typeof e.data=="string"?ca(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var jp={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 ly(e){return e in jp}function ua(e){return ly(e)?jp[e]:e}function Xn(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function wi(e,t,n,r){let o=e.sdkProcessingMetadata?.dynamicSamplingContext;return f(f(f({event_id:e.event_id,sent_at:new Date().toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:qe(r)}),o&&{trace:o})}function dy(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk=E(f({},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?f(f({},e.sdk?.settings),t.settings):void 0}),e}function zp(e,t,n,r){let o=Xn(n),i=f(f({sent_at:new Date().toISOString()},o&&{sdk:o}),!!r&&t&&{dsn:qe(t)}),s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return De(i,[s])}function qp(e,t,n,r){let o=Xn(n),i=e.type&&e.type!=="replay_event"?e.type:"event";dy(e,n?.sdk);let s=wi(e,o,r,t);return delete e.sdkProcessingMetadata,De(s,[[{type:i},e]])}function Vp(e,t){function n(m){return!!m.trace_id&&!!m.public_key}let r=Ue(e[0]),o=t?.getDsn(),i=t?.getOptions().tunnel,s=f(f({sent_at:new Date().toISOString()},n(r)&&{trace:r}),!!i&&o&&{dsn:qe(o)}),{beforeSendSpan:a,ignoreSpans:c}=t?.getOptions()||{},u=c?.length?e.filter(m=>!Nr(D(m),c)):e,d=e.length-u.length;d&&t?.recordDroppedEvent("before_send","span",d);let l=a?m=>{let h=D(m),g=a(h);return g||(xi(),h)}:D,p=[];for(let m of u){let h=l(m);h&&p.push(Fu(h))}return De(s,p)}function Yp(e){if(!b)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=D(e),{spanId:o}=e.spanContext(),i=Mt(e),s=ie(e),a=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&u.push(`parent ID: ${r}`),!a){let{op:d,description:l}=D(s);u.push(`root ID: ${s.spanContext().spanId}`),d&&u.push(`root op: ${d}`),l&&u.push(`root description: ${l}`)}_.log(`${c} 10 ${u.join(` 11 `)}`)}function Jp(e){if(!b)return;let{description:t="< unknown name >",op:n="< unknown op >"}=D(e),{spanId:r}=e.spanContext(),i=ie(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;_.log(s)}function la(e,t,n,r=ee()){let o=r&&ie(r);o&&(b&&_.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[En]:t,[Sn]:n}))}function da(e){if(!e||e.length===0)return;let t={};return e.forEach(n=>{let r=n.attributes||{},o=r[Sn],i=r[En];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}var Kp=1e3,Qn=class{constructor(t={}){this._traceId=t.traceId||Ze(),this._spanId=t.spanId||it(),this._startTime=t.startTimestamp||oe(),this._links=t.links,this._attributes={},this.setAttributes(f({[W]:"manual",[pe]: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(){let{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?ta:ea}}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=sn(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Re,"custom"),this}end(t){this._endTime||(this._endTime=sn(t),Jp(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[pe],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:oa(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[W],profile_id:this._attributes[lo],exclusive_time:this._attributes[jt],measurements:da(this._events),is_segment:this._isStandaloneSpan&&ie(this)===this||void 0,segment_id:this._isStandaloneSpan?ie(this).spanContext().spanId:void 0,links:ra(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){b&&_.log("[Tracing] Adding an event to span:",t);let o=Xp(n)?n:r||oe(),i=Xp(n)?{}:n||{}
11,s={name:t,time:sn(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=I();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===ie(this)))return;if(this._isStandaloneSpan){this._sampled?py(Vp([this],t)):(b&&_.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}let r=this._convertSpanToTransaction();r&&(Rr(this).scope||L()).captureEvent(r)}_convertSpanToTransaction(){if(!Qp(D(this)))return;this._name||(b&&_.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=Rr(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let i=Jn(this).filter(d=>d!==this&&!fy(d)).map(d=>D(d)).filter(Qp),s=this._attributes[Re];delete this._attributes[uo],i.forEach(d=>{delete d.data[uo]});let a=f({contexts:{trace:Lp(this)},spans:i.length>Kp?i.sort((d,l)=>d.start_timestamp-l.start_timestamp).slice(0,Kp):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Ue(this)},request:r},s&&{transaction_info:{source:s}}),c=da(this._events);return c&&Object.keys(c).length&&(b&&_.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}};function Xp(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Qp(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function fy(e){return e instanceof Qn&&e.isStandaloneSpan()}function py(e){let t=I();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function ki(e,t,n=()=>{},r=()=>{}){let o;try{o=e()}catch(i){throw t(i),n(),i}return my(o,t,n,r)}function my(e,t,n,r){return St(e)?Ys(e,o=>{n(),r(o)},o=>{t(o),n()}):(n(),r(e),e)}function Zp(e,t,n){if(!Le(e))return[!1];let r,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler(E(f({},t),{inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a})),r=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,r=!0);let i=Ot(o);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(o)} of type ${JSON.stringify(typeof o)}.`),[!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];let s=n<i;return s||b&&_.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,r]}var fa="__SENTRY_SUPPRESS_TRACING__";function Tt(e,t){let n=ho();if(n.startSpan)return n.startSpan(e,t);let r=Wu(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return ze(a,()=>nm(i)(()=>{let u=L(),d=ju(u,i),p=e.onlyIfParent&&!d?new st:$u({parentSpan:d,spanArguments:r,forceTransaction:o,scope:u});return ft(u,p),ki(()=>t(p),()=>{let{status:m}=D(p);p.isRecording()&&(!m||m==="ok")&&p.setStatus({code:2,message:"internal_error"})},()=>{p.end()})}))}function yt(e,t){let n=ho();if(n.startSpanManual)return n.startSpanManual(e,t);let r=Wu(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return ze(a,()=>nm(i)(()=>{let u=L(),d=ju(u,i),p=e.onlyIfParent&&!d?new st:$u({parentSpan:d,spanArguments:r,forceTransaction:o,scope:u});return ft(u,p),ki(()=>t(p,()=>p.end()),()=>{let{status:m}=D(p);p.isRecording()&&(!m||m==="ok")&&p.setStatus({code:2,message:"internal_error"})})}))}function Ve(e){let t=ho();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=Wu(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?s=>ze(e.scope,s):o!==void 0?s=>xr(o,s):s=>s())(()=>{let s=L(),a=ju(s,o);return e.onlyIfParent&&!a?new st:$u({parentSpan:a,spanArguments:n,forceTransaction:r,scope:s})})}var tm=(e,t)=>
11{let n=ut(),r=Wt(n);if(r.continueTrace)return r.continueTrace(e,t);let{sentryTrace:o,baggage:i}=e,s=I(),a=fo(i);return s&&!Mu(s,a?.org_id)?Hu(t):ze(c=>{let u=Ri(o,i);return c.setPropagationContext(u),ft(c,void 0),t()})};function xr(e,t){let n=ho();return n.withActiveSpan?n.withActiveSpan(e,t):ze(r=>(ft(r,e||void 0),t(r)))}function pa(e){let t=ho();return t.suppressTracing?t.suppressTracing(e):ze(n=>{n.setSDKProcessingMetadata({[fa]:!0});let r=e();return n.setSDKProcessingMetadata({[fa]:void 0}),r})}function Hu(e){let t=ho();return t.startNewTrace?t.startNewTrace(e):ze(n=>(n.setPropagationContext({traceId:Ze(),sampleRand:Et()}),b&&_.log(`Starting a new trace with id ${n.getPropagationContext().traceId}`),xr(null,e)))}function $u({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Le()){let s=new st;if(n||!e){let a=f({sampled:"false",sample_rate:"0",transaction:t.name},Ue(s));po(s,a)}return s}let o=ae(),i;if(e&&!n)i=hy(e,r,t),ia(e,i);else if(e){let s=Ue(e),{traceId:a,spanId:c}=e.spanContext(),u=Mt(e);i=em(f({traceId:a,parentSpanId:c},t),r,u),po(i,s)}else{let{traceId:s,dsc:a,parentSpanId:c,sampled:u}=f(f({},o.getPropagationContext()),r.getPropagationContext());i=em(f({traceId:s,parentSpanId:c},t),r,u),a&&po(i,a)}return Yp(i),xp(i,r,o),i}function Wu(e){let t=e.experimental||{},n=f({isStandalone:t.standalone},e);if(e.startTime){let r=f({},n);return r.startTimestamp=sn(e.startTime),delete r.startTime,r}return n}function ho(){let e=ut();return Wt(e)}function em(e,t,n){let r=I(),o=r?.getOptions()||{},{name:i=""}=e,s={spanAttributes:f({},e.attributes),spanName:i,parentSampled:n};r?.emit("beforeSampling",s,{decision:!1});let a=s.parentSampled??n,c=s.spanAttributes,u=t.getPropagationContext(),[d,l,p]=t.getScopeData().sdkProcessingMetadata[fa]?[!1]:Zp(o,{name:i,parentSampled:a,attributes:c,parentSampleRate:Ot(u.dsc?.sample_rate)},u.sampleRand),m=new Qn(E(f({},e),{attributes:f({[Re]:"custom",[Vn]:l!==void 0&&p?l:void 0},c),sampled:d}));return!d&&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",m),m}function hy(e,t,n){let{spanId:r,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[fa]?!1:Mt(e),s=i?new Qn(E(f({},n),{parentSpanId:r,traceId:o,sampled:i})):new st({traceId:o});ia(e,s);let a=I();return a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s)),s}function ju(e,t){if(t)return t;if(t===null)return;let n=on(e);if(!n)return;let r=I();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?ie(n):n}function nm(e){return e!==void 0?t=>xr(e,t):t=>t()}var _o={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},_y="heartbeatFailed",gy="idleTimeout",Sy="finalTimeout",Ey="externalFinish";function ma(e,t={}){let n=new Map,r=!1,o,i=Ey,s=!t.disableAutoFinish,a=[],{idleTimeout:c=_o.idleTimeout,finalTimeout:u=_o.finalTimeout,childSpanTimeout:d=_o.childSpanTimeout,beforeSpanEnd:l,trimIdleSpanEndTimestamp:p=!0}=t,m=I();if(!m||!Le()){let y=new st,P=f({sample_rate:"0",sampled:"false"},Ue(y));return po(y,P),y}let h=L(),g=ee(),S=Ty(e);S.end=new Proxy(S.end,{apply(y,P,q){if(l&&l(S),P instanceof st)return;let[v,...F]=q,O=v||oe(),B=sn(O),$=Jn(S).filter(k=>k!==S),se=D(S);if(!$.length||!p)return G(B),Reflect.apply(y,P,[B,...F]);let re=m.getOptions().ignoreSpans,ue=$?.reduce((k,Q)=>{let me=D(Q);return!me.timestamp||re&&Nr(me,re)?k:k?Math.max(k,me.timestamp):me.timestamp},void 0),N=se.start_timestamp,J=Math.min(N?N+u/1e3:1/0,Math.max(N||-1/0,Math.min(B,ue||1/0)));return G(J),Reflect.apply(y,P,[J,...F])}});function T(){o&&(clearTimeout(o),o=void 0)}function A(y){T(),o=setTimeout(()=>{!r&&n.size===0&&s&&(i=gy,S.end(y))},c)}function U(y){o=setTimeout(()=>{!r&&s&&(i=_y,S.end(y))},d)}function M(y){T(),n.set(y,!0);let P=oe();U(P+d/1e3)}function V(y){if(n.has(y)&&n.delete(y),n.size===0){let P=oe();A(P+c/1e3)}}function G(y){r=!0,n.clear(),a.forEach($=>$()),ft(h,g);let P=D(S),{start_timestamp:q}=P;if(!q)return;P.data[Yn]||S.setAttribute(Yn,i);let F=P.status;(!F||F==="unknown")&&S.setStatus({code:1}),_.log(`[Tracing] Idle span "${P.op}" finished`);let O=Jn(S).filter($=>$!==S),B=0;O.forEach($=>{$.isRecording()&&($.setStatus({code:2,message:"cancelled"}),$.end(y),b&&_.log("[Tracing] Cancelling span since span ended early",JSON.stringify($,void 0,2)));let se=D($),{timestamp:re=0,start_timestamp:ue=0}
11=se,N=ue<=y,J=(u+c)/1e3,k=re-ue<=J;if(b){let Q=JSON.stringify($,void 0,2);N?k||_.log("[Tracing] Discarding span since it finished after idle span final timeout",Q):_.log("[Tracing] Discarding span since it happened after idle span was finished",Q)}(!k||!N)&&(Dp(S,$),B++)}),B>0&&S.setAttribute("sentry.idle_span_discarded_spans",B)}return a.push(m.on("spanStart",y=>{if(r||y===S||D(y).timestamp||y instanceof Qn&&y.isStandaloneSpan())return;Jn(S).includes(y)&&M(y.spanContext().spanId)})),a.push(m.on("spanEnd",y=>{r||V(y.spanContext().spanId)})),a.push(m.on("idleSpanEnableAutoFinish",y=>{y===S&&(s=!0,A(),n.size&&U())})),t.disableAutoFinish||A(),setTimeout(()=>{r||(S.setStatus({code:2,message:"deadline_exceeded"}),i=Sy,S.end())},u),S}function Ty(e){let t=Ve(e);return ft(L(),t),b&&_.log("[Tracing] Started span is an idle span"),t}var zu=0,rm=1,om=2;function Tn(e){return new Oi(t=>{t(e)})}function wr(e){return new Oi((t,n)=>{n(e)})}var Oi=class e{constructor(t){this._state=zu,this._handlers=[],this._runExecutor(t)}then(t,n){return new e((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new e((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}_executeHandlers(){if(this._state===zu)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===rm&&n[1](this._value),this._state===om&&n[2](this._value),n[0]=!0)})}_runExecutor(t){let n=(i,s)=>{if(this._state===zu){if(St(s)){s.then(r,o);return}this._state=i,this._value=s,this._executeHandlers()}},r=i=>{n(rm,i)},o=i=>{n(om,i)};try{t(r,o)}catch(i){o(i)}}};function im(e,t,n,r=0){try{let o=qu(t,n,e,r);return St(o)?o:Tn(o)}catch(o){return wr(o)}}function qu(e,t,n,r){let o=n[r];if(!e||!o)return e;let i=o(f({},e),t);return b&&i===null&&_.log(`Event processor "${o.id||"?"}" dropped event`),St(i)?i.then(s=>qu(s,t,n,r+1)):qu(i,t,n,r+1)}var kr,sm,am,Zn;function ha(e){let t=C._sentryDebugIds,n=C._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],o=n?Object.keys(n):[];if(Zn&&r.length===sm&&o.length===am)return Zn;sm=r.length,am=o.length,Zn={},kr||(kr={});let i=(s,a)=>{for(let c of s){let u=a[c],d=kr?.[c];if(d&&Zn&&u)Zn[d[0]]=u,kr&&(kr[c]=[d[0],u]);else if(u){let l=e(c);for(let p=l.length-1;p>=0;p--){let h=l[p]?.filename;if(h&&Zn&&kr){Zn[h]=u,kr[c]=[h,u];break}}}}};return t&&i(r,t),n&&i(o,n),Zn}function Vu(e,t){let n=ha(e);if(!n)return[];let r=[];for(let o of t){let i=cp(o);i&&n[i]&&r.push({type:"sourcemap",code_file:o,debug_id:n[i]})}return r}function um(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;yy(e,t),r&&Ay(e,r),Ry(e,n),Iy(e,o),by(e,i)}function cm(e,t){let{extra:n,tags:r,attributes:o,user:i,contexts:s,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:l,attachments:p,propagationContext:m,transactionName:h,span:g}=t;Mi(e,"extra",n),Mi(e,"tags",r),Mi(e,"attributes",o),Mi(e,"user",i),Mi(e,"contexts",s),e.sdkProcessingMetadata=qn(e.sdkProcessingMetadata,c,2),a&&(e.level=a),h&&(e.transactionName=h),g&&(e.span=g),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext=f(f({},e.propagationContext),m)}function Mi(e,t,n){e[t]=qn(e[t],n,1)}function er(e,t){let n=gn().getScopeData();return e&&cm(n,e.getScopeData()),t&&cm(n,t.getScopeData()),n}function yy(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t;Object.keys(n).length&&(e.extra=f(f({},n),e.extra)),Object.keys(r).length&&(e.tags=f(f({},r),e.tags)),Object.keys(o).length&&(e.user=f(f({},o),e.user)),Object.keys(i).length&&(e.contexts=f(f({},i),e.contexts)),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function Iy(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function by(e,t){e.sdkProcessingMetadata=f(f({},e.sdkProcessingMetadata),t)}function Ay(e,t){e.contexts=f({trace:Ci(t)},e.contexts),e.sdkProcessingMetadata=f({dynamicSamplingContext:Ue(t)},e.sdkProcessingMetadata);let n=ie(t),r=D(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Ry(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 Pi(e,t,n,r,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c=E(f({},t),{event_id:t.event_id||n.event_id||fe(),timestamp:t.timestamp||kt()}),u=n.integrations||e.integrations.map(T=>T.name);vy(c,e),xy(c,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Ny(c,e.stackParser);let d=ky(r,n.captureContext);n.mechanism&&ot(c,n.mechanism);let l=o?o.getEventProcessors():[],p=er(i,d),m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),um(c,p);let h=[...l,...p.eventProcessors];return(n.data&&n.data.__sentry__===!0?Tn(c):im(h,c,n)).then(T=>(T&&Cy(T),typeof s=="number"&&s>0?wy(T,s,a):T))}function vy(e,t){let{environment:n,release:r,dist:o,maxValueLength:i}=t;e.environment=e.environment||n||Pn,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);let s=e.request;s?.url&&i&&(s.url=hn(s.url,i)),i&&e.exception?.values?.forEach(a=>
11{a.value&&(a.value=hn(a.value,i))})}function Ny(e,t){let n=ha(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function Cy(e){let t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function xy(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function wy(e,t,n){if(!e)return null;let r=f(f(f(f(f({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>f(f({},o),o.data&&{data:ve(o.data,t,n)}))}),e.user&&{user:ve(e.user,t,n)}),e.contexts&&{contexts:ve(e.contexts,t,n)}),e.extra&&{extra:ve(e.extra,t,n)});return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ve(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>f(f({},o),o.data&&{data:ve(o.data,t,n)}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=ve(e.contexts.flags,3,n)),r}function ky(e,t){if(!t)return e;let n=e?e.clone():new pt;return n.update(t),n}function lm(e){if(e)return Oy(e)?{captureContext:e}:Py(e)?{captureContext:e}:e}function Oy(e){return e instanceof pt||typeof e=="function"}var My=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Py(e){return Object.keys(e).some(t=>My.includes(t))}function X(e,t){return L().captureException(e,lm(t))}function _a(e,t){let n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return L().captureMessage(e,n,r)}function yn(e,t){return L().captureEvent(e,t)}function go(e,t){ae().setContext(e,t)}function dm(e){ae().setExtras(e)}function fm(e,t){ae().setExtra(e,t)}function pm(e){ae().setTags(e)}function mm(e,t){ae().setTag(e,t)}function hm(e){ae().setUser(e)}function _m(e){ae().setConversationId(e)}function ga(){return ae().lastEventId()}function gm(e){return x(this,null,function*(){let t=I();return t?t.flush(e):(b&&_.warn("Cannot flush events. No client defined."),Promise.resolve(!1))})}function Sm(e){return x(this,null,function*(){let t=I();return t?t.close(e):(b&&_.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))})}function Em(){return!!I()}function Sa(){let e=I();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Ea(e){ae().addEventProcessor(e)}function Li(e){let t=ae(),{user:n}=er(t,L()),{userAgent:r}=C.navigator||{},o=gp(f(f({user:n},r&&{userAgent:r}),e)),i=t.getSession();return i?.status==="ok"&&On(i,{status:"exited"}),Ta(),t.setSession(o),o}function Ta(){let e=ae(),n=L().getSession()||e.getSession();n&&Sp(n),Tm(),e.setSession()}function Tm(){let e=ae(),t=I(),n=e.getSession();n&&t&&t.captureSession(n)}function So(e=!1){if(e){Ta();return}Tm()}var ym="7";function Im(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Ly(e){return`${Im(e)}${e.projectId}/envelope/`}function Uy(e,t){let n={sentry_version:ym};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Ui(e,t,n){return t||`${Ly(e)}?${Uy(e,n)}`}function Yu(e,t){let n=Ai(e);if(!n)return"";let r=`${Im(n)}embed/error-page/`,o=`dsn=${qe(n)}`;for(let i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){let s=t.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${o}`}var Ju=[];function Dy(e){let t={};return e.forEach(n=>{let{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Ku(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){let o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return Dy(r)}function bm(e,t){let n={};return t.forEach(r=>{r&&Qu(e,r,n)}),n}function Xu(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Qu(e,t,n){if(n[t.name]){b&&_.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Ju.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),Ju.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(typeof t.processEvent=="function"){let r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}b&&_.log(`Integration installed: ${t.name}`)}function Di(e){let t=I();if(!t){b&&_.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function By(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function Fy(e,t){let{value:n,unit:r}=By(e)?e:{value:e,unit:void 0},o=Gy(n),i=r&&typeof r=="string"?{unit:r}:{};if(o)return f(f({},o),i);if(!t||t==="skip-undefined"&&n===void 0)return;let s="";try{s=JSON.stringify(n)??""}catch{}return f({value:s,type:"string"},i)}function Eo(e,t=!1){let n={};for(let[r,o]of Object.entries(e??{})){let i=Fy(o,t);
11i&&(n[r]=i)}return n}function Gy(e){let t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}var Hy="sentry.timestamp.sequence",Zu=0,el;function ya(e){let t=Math.floor(e*1e3);el!==void 0&&t!==el&&(Zu=0);let n=Zu;return Zu++,el=t,{key:Hy,value:{value:n,type:"integer"}}}function Ia(e,t){return t?ze(t,()=>{let n=ee(),r=n?Ci(n):yi(t);return[n?Ue(n):Cr(e,t),r]}):[void 0,void 0]}var Am={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function $y(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Rm(e,t,n,r){let o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=qe(r)),De(o,[$y(e)])}var Wy=100;function In(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function vm(e,t){let n=tl(),r=Nm(e);r===void 0?n.set(e,[t]):r.length>=Wy?(Or(e,r),n.set(e,[t])):n.set(e,[...r,t])}function tr(e,t=L(),n=vm){let r=t?.getClient()??I();if(!r){b&&_.warn("No client available to capture log.");return}let{release:o,environment:i,enableLogs:s=!1,beforeSendLog:a}=r.getOptions();if(!s){b&&_.warn("logging option not enabled, log will not be captured.");return}let[,c]=Ia(r,t),u=f({},e.attributes),{user:{id:d,email:l,username:p},attributes:m={}}=er(ae(),t);In(u,"user.id",d,!1),In(u,"user.email",l,!1),In(u,"user.name",p,!1),In(u,"sentry.release",o),In(u,"sentry.environment",i);let{name:h,version:g}=r.getSdkMetadata()?.sdk??{};In(u,"sentry.sdk.name",h),In(u,"sentry.sdk.version",g);let S=r.getIntegrationByName("Replay"),T=S?.getReplayId(!0);In(u,"sentry.replay_id",T),T&&S?.getRecordingMode()==="buffer"&&In(u,"sentry._internal.replay_is_buffering",!0);let A=e.message;if(kn(A)){let{__sentry_template_string__:B,__sentry_template_values__:$=[]}=A;$?.length&&(u["sentry.message.template"]=B),$.forEach((se,re)=>{u[`sentry.message.parameter.${re}`]=se})}let U=on(t);In(u,"sentry.trace.parent_span_id",U?.spanContext().spanId);let M=E(f({},e),{attributes:u});r.emit("beforeCaptureLog",M);let V=a?Be(()=>a(M)):M;if(!V){r.recordDroppedEvent("before_send","log_item",1),b&&_.warn("beforeSendLog returned null, log will not be captured.");return}let{level:G,message:y,attributes:P={},severityNumber:q}=V,v=oe(),F=ya(v),O={timestamp:v,level:G,body:y,trace_id:c?.trace_id,severity_number:q??Am[G],attributes:E(f(f({},Eo(m)),Eo(P,!0)),{[F.key]:F.value})};n(r,O),r.emit("afterCaptureLog",V)}function Or(e,t){let n=t??Nm(e)??[];if(n.length===0)return;let r=e.getOptions(),o=Rm(n,r._metadata,r.tunnel,e.getDsn());tl().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function Nm(e){return tl().get(e)}function tl(){return rn("clientToLogBufferMap",()=>new WeakMap)}function jy(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function Cm(e,t,n,r){let o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=qe(r)),De(o,[jy(e)])}var zy=1e3;function Ln(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function xm(e,t){let n=rl(),r=wm(e);r===void 0?n.set(e,[t]):r.length>=zy?(To(e,r),n.set(e,[t])):n.set(e,[...r,t])}
11function qy(e,t,n){let{release:r,environment:o}=t.getOptions(),i=f({},e.attributes);Ln(i,"user.id",n.id,!1),Ln(i,"user.email",n.email,!1),Ln(i,"user.name",n.username,!1),Ln(i,"sentry.release",r),Ln(i,"sentry.environment",o);let{name:s,version:a}=t.getSdkMetadata()?.sdk??{};Ln(i,"sentry.sdk.name",s),Ln(i,"sentry.sdk.version",a);let c=t.getIntegrationByName("Replay"),u=c?.getReplayId(!0);return Ln(i,"sentry.replay_id",u),u&&c?.getRecordingMode()==="buffer"&&Ln(i,"sentry._internal.replay_is_buffering",!0),E(f({},e),{attributes:i})}function Vy(e,t,n,r){let[,o]=Ia(t,n),i=on(n),s=i?i.spanContext().traceId:o?.trace_id,a=i?i.spanContext().spanId:void 0,c=oe(),u=ya(c);return{timestamp:c,trace_id:s??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:E(f(f({},Eo(r)),Eo(e.attributes,"skip-undefined")),{[u.key]:u.value})}}function nl(e,t){let n=t?.scope??L(),r=t?.captureSerializedMetric??xm,o=n?.getClient()??I();if(!o){b&&_.warn("No client available to capture metric.");return}let{_experiments:i,enableMetrics:s,beforeSendMetric:a}=o.getOptions();if(!(s??i?.enableMetrics??!0)){b&&_.warn("metrics option not enabled, metric will not be captured.");return}let{user:u,attributes:d}=er(ae(),n),l=qy(e,o,u);
11o.emit("processMetric",l);let p=a||i?.beforeSendMetric,m=p?p(l):l;if(!m){b&&_.log("`beforeSendMetric` returned `null`, will not send metric.");return}let h=Vy(m,o,n,d);b&&_.log("[Metric]",h),r(o,h),o.emit("afterCaptureMetric",m)}function To(e,t){let n=t??wm(e)??[];if(n.length===0)return;let r=e.getOptions(),o=Cm(n,r._metadata,r.tunnel,e.getDsn());rl().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function wm(e){return rl().get(e)}function rl(){return rn("clientToMetricBufferMap",()=>new WeakMap)}function yo(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}var Io=Symbol.for("SentryBufferFullError");function Mr(e=100){let t=new Set;function n(){return t.size<e}function r(s){t.delete(s)}function o(s){if(!n())return wr(Io);let a=s();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function i(s){if(!t.size)return Tn(!0);let a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!s)return a;let c=[a,new Promise(u=>yo(setTimeout(()=>u(!1),s)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:o,drain:i}}var km=60*1e3;function ba(e,t=br()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?km:r-t}function Om(e,t){return e[t]||e.all||0}function Bi(e,t,n=br()){return Om(e,t)>n}function Fi(e,{statusCode:t,headers:n},r=br()){let o=f({},e),i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,u,,,d]=a.split(":",5),l=parseInt(c,10),p=(isNaN(l)?60:l)*1e3;if(!u)o.all=r+p;else for(let m of u.split(";"))m==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[m]=r+p):o[m]=r+p}else s?o.all=r+ba(s,r):t===429&&(o.all=r+60*1e3);return o}var ol=64;function Aa(e,t,n=Mr(e.bufferSize||ol)){let r={},o=s=>n.drain(s);function i(s){let a=[];if(Pt(s,(l,p)=>{let m=ua(p);Bi(r,m)?e.recordDroppedEvent("ratelimit_backoff",m):a.push(l)}),a.length===0)return Promise.resolve({});let c=De(s[0],a),u=l=>{if(mo(c,["client_report"])){b&&_.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);return}Pt(c,(p,m)=>{e.recordDroppedEvent(l,ua(m))})},d=()=>t({body:Kn(c)}).then(l=>l.statusCode===413?(b&&_.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),l):(b&&l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&_.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Fi(r,l),l),l=>{throw u("network_error"),b&&_.error("Encountered error running transport request:",l),l});return n.add(d).then(l=>l,l=>{if(l===Io)return b&&_.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw l})}return{send:i,flush:o}}function Mm(e,t,n){let r=[{type:"client_report"},{timestamp:n||kt(),discarded_events:e}];return De(t?{dsn:t}:{},[r])}function Ra(e){let t=[];e.message&&t.push(e.message);try{let 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 Pm(e){let{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[lo],exclusive_time:s?.[jt],measurements:e.measurements,is_segment:!0}}function Lm(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:f(f(f({},e.data),e.profile_id&&{[lo]:e.profile_id}),e.exclusive_time&&{[jt]:e.exclusive_time})}},measurements:e.measurements}}var Um="Not capturing exception because it's already been captured.",Dm="Discarded session because of missing or non-string release",Wm=Symbol.for("SentryInternalError"),jm=Symbol.for("SentryDoNotSendEventError"),Yy=5e3;function va(e){return{message:e,[Wm]:!0}}function il(e){return{message:e,[jm]:!0}}function Bm(e){return!!e&&typeof e=="object"&&Wm in e}function Fm(e){return!!e&&typeof e=="object"&&jm in e}function Gm(e,t,n,r,o){let i=0,s,a=!1;e.on(n,()=>{i=0,clearTimeout(s),a=!1}),e.on(t,c=>{i+=r(c),i>=8e5?o(e):a||(a=!0,s=yo(setTimeout(()=>{o(e)},Yy)))}),e.on("flush",()=>{o(e)})}var Gi=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Mr(t.transportOptions?.bufferSize??ol),t.dsn?this._dsn=Ai(t.dsn):b&&_.warn("No DSN provided, client will not send events."),this._dsn){let r=Ui(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport(E(f({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&&Gm(this,"afterCaptureLog","flushLogs",Qy,Or),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Gm(this,"afterCaptureMetric","flushMetrics",Xy,To)}captureException(t,n,r){let o=fe();if(Vs(t))return b&&_.log(Um),o;let i=f({event_id:o},n);return this._process(()=>this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r)).then(s=>s),"error"),i.event_id}captureMessage(t,n,r,o){let i=f({event_id:fe()},r),s=kn(t)?t:String(t),a=lt(t),c=a?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(()=>c.then(u=>this._captureEvent(u,i,o)),a?"unknown":"error"),i.event_id}captureEvent(t,n,r){let o=fe();if(n?.originalException&&Vs(n.originalException))return b&&_.log(Um),o;let i=f({event_id:o},n),s=t.sdkProcessingMetadata||{},a=s.capturedSpanScope,c=s.capturedSpanIsolationScope,u=Hm(t.type);return this._process(()=>this._captureEvent(t,i,a||r,c),u),i.event_id}captureSession(t){this.sendSession(t),On(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){return x(this,null,function*(){let n=this._transport;if(!n)return!0;
11this.emit("flush");let r=yield this._isClientDoneProcessing(t),o=yield n.flush(t);return r&&o})}close(t){return x(this,null,function*(){Or(this);let n=yield 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){let n=this._integrations[t.name];Qu(this,t,this._integrations),n||Xu(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=qp(t,this._dsn,this._options._metadata,this._options.tunnel);for(let o of n.attachments||[])r=Du(r,Gu(o));this.sendEnvelope(r).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){let{release:n,environment:r=Pn}=this._options;if("aggregates"in t){let i=t.attrs||{};if(!i.release&&!n){b&&_.warn(Dm);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){b&&_.warn(Dm);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);let o=zp(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){let o=`${t}:${n}`;b&&_.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){let r=this._hooks[t]=this._hooks[t]||new Set,o=(...i)=>n(...i);return r.add(o),()=>{r.delete(o)}}emit(t,...n){let r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return x(this,null,function*(){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return yield this._transport.send(t)}catch(n){return b&&_.error("Error while sending envelope:",n),{}}return b&&_.error("Transport disabled"),{}})}dispose(){}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=bm(this,t),Xu(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",o=!1,i=n.exception?.values;if(i){o=!0,r=!1;for(let c of i)if(c.mechanism?.handled===!1){r=!0;break}}let s=t.status==="ok";(s&&t.errors===0||s&&r)&&(On(t,E(f({},r&&{status:"crashed"}),{errors:t.errors||Number(o||r)})),this.captureSession(t))}_isClientDoneProcessing(t){return x(this,null,function*(){let n=0;for(;!t||n<t;){if(yield 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,o){let i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Pi(i,t,n,r,this,o).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts=f({trace:f(f({},a.contexts?.trace),yi(r))},a.contexts);let c=Cr(this,r);return a.sdkProcessingMetadata=f({dynamicSamplingContext:c},a.sdkProcessingMetadata),a})}_captureEvent(t,n={},r=L(),o=ae()){return b&&sl(t)&&_.log(`Captured error event \`${Ra(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,o).then(i=>i.event_id,i=>{b&&(Fm(i)?_.log(i.message):Bm(i)?_.warn(i.message):_.warn(i))})}_processEvent(t,n,r,o){let i=this.getOptions(),{sampleRate:s}=i,a=zm(t),c=sl(t),d=`before send for type \`${t.type||"error"}\``,l=typeof s>"u"?void 0:Ot(s);if(c&&typeof l=="number"&&Et()>l)return this.recordDroppedEvent("sample_rate","error"),wr(il(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let p=Hm(t.type);return this._prepareEvent(t,n,r,o).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",p),il("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return m;let g=Ky(this,i,m,n);return Jy(g,d)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",p),a){let T=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",T)}throw il(`${d} returned \`null\`, will not send event.`)}let h=r.getSession()||o.getSession();if(c&&h&&this._updateSessionFromEvent(h,m),a){let S=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,T=m.spans?m.spans.length:0,A=S-T;A>0&&this.recordDroppedEvent("before_send","span",A)}let g=m.transaction_info;if(a&&g&&m.transaction!==t.transaction){let S="custom";m.transaction_info=E(f({},g),{source:S})}return this.sendEvent(m,n),m}).then(null,m=>{throw Fm(m)||Bm(m)?m:(this.captureException(m,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:m}),va(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 12Reason: ${m}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Io&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{let[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){b&&_.log("Flushing outcomes...");let 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);let n=Mm(t,this._options.tunnel&&qe(this._dsn));this.sendEnvelope(n)}};function Hm(e){return e==="replay_event"?"replay":e||"error"}function Jy(e,t){let n=`${t} must return \`null\` or a valid event.`;if(St(e))return e.then(r=>{if(!Ce(r)&&r!==null)throw va(n);return r},r=>{throw va(`${t} rejected with ${r}`)});if(!Ce(e)&&e!==null)throw va(n);return e}function Ky(e,t,n,r){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s,ignoreSpans:a}=t,c=n;
12if(sl(c)&&o)return o(c,r);if(zm(c)){if(s||a){let u=Pm(c);if(a?.length&&Nr(u,a))return null;if(s){let d=s(u);d?c=qn(n,Lm(d)):xi()}if(c.spans){let d=[],l=c.spans;for(let m of l){if(a?.length&&Nr(m,a)){Hp(l,m);continue}if(s){let h=s(m);h?d.push(h):(xi(),d.push(m))}else d.push(m)}let p=c.spans.length-d.length;p&&e.recordDroppedEvent("before_send","span",p),c.spans=d}}if(i){if(c.spans){let u=c.spans.length;c.sdkProcessingMetadata=E(f({},n.sdkProcessingMetadata),{spanCountBeforeProcessing:u})}return i(c,r)}}return c}function sl(e){return e.type===void 0}function zm(e){return e.type==="transaction"}function Xy(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+qm(e.attributes)}function Qy(e){let t=0;return e.message&&(t+=e.message.length*2),t+qm(e.attributes)}function qm(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*$m(n[0]):lt(n)?t+=$m(n):t+=100}),t}function $m(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function Zy(e){return rt(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function Na(e){return Zy(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function al(e,t){t.debug===!0&&(b?_.enable():Be(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),L().update(t.initialScope);let r=new e(t);return cl(r),r.init(),r}function cl(e){L().setClient(e)}var ul=100,ll=5e3,eI=36e5;function dl(e){function t(...n){b&&_.log("[Offline]:",...n)}return n=>{let r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");let o=n.createStore(n),i=ll,s;function a(l,p,m){return mo(l,["client_report"])?!1:n.shouldStore?n.shouldStore(l,p,m):!0}function c(l){s&&clearTimeout(s),s=yo(setTimeout(()=>x(null,null,function*(){s=void 0;let p=yield o.shift();p&&(t("Attempting to send previously queued event"),p[0].sent_at=new Date().toISOString(),d(p,!0).catch(m=>{t("Failed to retry sending",m)}))}),l))}function u(){s||(c(i),i=Math.min(i*2,eI))}function d(l,p=!1){return x(this,null,function*(){if(!p&&mo(l,["replay_event","replay_recording"]))return yield o.push(l),c(ul),{};try{if(n.shouldSend&&(yield n.shouldSend(l))===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");let m=yield r.send(l),h=ul;if(m){if(m.headers?.["retry-after"])h=ba(m.headers["retry-after"]);else if(m.headers?.["x-sentry-rate-limits"])h=6e4;else if((m.statusCode||0)>=400)return m}return c(h),i=ll,m}catch(m){if(yield a(l,m,i))return p?yield o.unshift(l):yield o.push(l),u(),t("Error sending. Event queued.",m),{};throw m}})}return n.flushAtStartup&&u(),{send:d,flush:l=>(l===void 0&&(i=ll,c(ul)),r.flush(l))}}}var Hi="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function Vm(e,t){let n;return Pt(e,(r,o)=>(t.includes(o)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function tI(e,t){return n=>{let r=e(n);return E(f({},r),{send:o=>x(null,null,function*(){let i=Vm(o,["event","transaction","profile","replay_event"]);return i&&(i.release=t),r.send(o)})})}}function nI(e,t){return De(t?E(f({},e[0]),{dsn:t}):e[0],e[1])}function Ym(e,t){return n=>{let r=e(n),o=new Map,i=t||(u=>{let d=u.getEvent();return d?.extra?.[Hi]&&Array.isArray(d.extra[Hi])?d.extra[Hi]:[]});function s(u,d){let l=d?`${u}:${d}`:u,p=o.get(l);if(!p){let m=Ks(u);if(!m)return;let h=Ui(m,n.tunnel);p=d?tI(e,d)(E(f({},n),{url:h})):e(E(f({},n),{url:h})),o.set(l,p)}return[u,p]}function a(u){return x(this,null,function*(){function d(h){let g=h?.length?h:["event"];return Vm(u,g)}let l=i({envelope:u,getEvent:d}).map(h=>typeof h=="string"?s(h,void 0):s(h.dsn,h.release)).filter(h=>!!h),p=l.length?l:[["",r]];return(yield Promise.all(p.map(([h,g])=>g.send(nI(u,h)))))[0]})}function c(u){return x(this,null,function*(){let d=[...o.values(),r];return(yield Promise.all(d.map(p=>p.flush(u)))).every(p=>p)})}return{send:a,flush:c}}}var rI="thismessage:/";function bo(e){return"isRelative"in e}function Pr(e,t){let n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=t??(n?rI:void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let o=new URL(e,r);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function fl(e){if(bo(e))return e.pathname;let 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 an(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let 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 Lr(e){return e.split(/[?#]/,1)[0]}function zt(e,t=!0){if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",o=e.includes(";base64,"),i=e.indexOf(","),s="";if(t&&i!==-1){let a=e.slice(i+1);s=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${o?",base64":""}${s?`,${s}`:""}`}return e}function $i(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return iI(e,n)||oI(e,r)}function oI(e,t){return t?Jm(e)===Jm(t):!1}function iI(e,t){let n=Pr(e);return!n||bo(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Jm(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function pl(e,...t){let n=new String(String.raw(e,...t));
12return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}var ml=pl;function hl(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs=E(f({},e.attrs),{ip_address:"{{auto}}"})):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function Wi(e,t,n=[t],r="npm"){let o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${t}`,o.packages=n.map(i=>({name:`${r}:@sentry/${i}`,version:xt})),o.version=xt)}function Ao(e={}){let t=e.client||I();if(!Sa()||!t)return{};let n=ut(),r=Wt(n);if(r.getTraceData)return r.getTraceData(e);let o=e.scope||L(),i=e.span||ee();if(!i&&vu())return{};let s=i?na(i):sI(o),a=i?Ue(i):Cr(t,o),c=Js(a);if(!Qs.test(s))return _.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let d={"sentry-trace":s,baggage:c};return e.propagateTraceparent&&(d.traceparent=i?Up(i):aI(o)),d}function sI(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return vi(t,r,n)}function aI(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Ni(t,r,n)}function _l(e,t,n){let r,o,i,s=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function d(){return o!==void 0||i!==void 0?c():r}function l(){return o&&clearTimeout(o),o=a(c,t),s&&i===void 0&&(i=a(c,s)),r}return l.cancel=u,l.flush=d,l}var cI=100;function It(e,t){let n=I(),r=ae();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=cI}=n.getOptions();if(i<=0)return;let s=kt(),a=f({timestamp:s},e),c=o?Be(()=>o(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}var Km,uI="FunctionToString",Xm=new WeakMap,lI=()=>({name:uI,setupOnce(){Km=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=yr(this),n=Xm.has(I())&&t!==void 0?t:this;return Km.apply(n,e)}}catch{}},setup(e){Xm.set(e,!0)}}),Ro=lI;var dI=[/^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$/],fI="EventFilters",gl=(e={})=>{let t;return{name:fI,setup(n){let r=n.getOptions();t=Qm(e,r)},processEvent(n,r,o){if(!t){let i=o.getOptions();t=Qm(e,i)}return pI(n,t)?null:n}}},vo=(e={})=>E(f({},gl(e)),{name:"InboundFilters"});function Qm(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:dI],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function pI(e,t){if(e.type){if(e.type==="transaction"&&hI(e,t.ignoreTransactions))return b&&_.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 13Event: ${_n(e)}`),!0}else{if(mI(e,t.ignoreErrors))return b&&_.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 14Event: ${_n(e)}`),!0;if(EI(e))return b&&_.warn(`Event dropped due to not having an error message, error type or stacktrace. 15Event: ${_n(e)}`),!0;if(_I(e,t.denyUrls))return b&&_.warn(`Event dropped due to being matched by \`denyUrls\` option. 16Event: ${_n(e)}. 17Url: ${Ca(e)}`),!0;if(!gI(e,t.allowUrls))return b&&_.warn(`Event dropped due to not being matched by \`allowUrls\` option. 18Event: ${_n(e)}. 19Url: ${Ca(e)}`),!0}return!1}function mI(e,t){return t?.length?Ra(e).some(n=>Qe(n,t)):!1}function hI(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Qe(n,t):!1}function _I(e,t){if(!t?.length)return!1;let n=Ca(e);return n?Qe(n,t):!1}function gI(e,t){if(!t?.length)return!0;let n=Ca(e);return n?Qe(n,t):!0}function SI(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ca(e){try{let n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?SI(n):null}catch{return b&&_.error(`Cannot extract url for event ${_n(e)}`),null}}function EI(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}
19function El(e,t,n,r,o,i){if(!o.exception?.values||!i||!wt(i.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Sl(e,t,r,i.originalException,n,o.exception.values,s,0))}function Sl(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(wt(r[o],Error)){Zm(s,a,r);let u=e(t,r[o]),d=c.length;eh(u,o,d,a),c=Sl(e,t,n,r[o],o,[u,...c],u,d)}return th(r)&&r.errors.forEach((u,d)=>{if(wt(u,Error)){Zm(s,a,r);let l=e(t,u),p=c.length;eh(l,`errors[${d}]`,p,a),c=Sl(e,t,n,u,o,[l,...c],l,p)}}),c}function th(e){return Array.isArray(e.errors)}function Zm(e,t,n){e.mechanism=E(f(f({handled:!0,type:"auto.core.linked_errors"},th(n)&&{is_exception_group:!0}),e.mechanism),{exception_id:t})}function eh(e,t,n,r){e.mechanism=E(f({handled:!0},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}var rh=new Map,nh=new Set;function TI(e){if(C._sentryModuleMetadata)for(let t of Object.keys(C._sentryModuleMetadata)){let n=C._sentryModuleMetadata[t];if(nh.has(t))continue;nh.add(t);let r=e(t);for(let o of r.reverse())if(o.filename){rh.set(o.filename,n);break}}}function yI(e,t){return TI(e),rh.get(t)}function xa(e,t){t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(r=>{if(!r.filename||r.module_metadata)return;let o=yI(e,r.filename);o&&(r.module_metadata=o)})})}function wa(e){e.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(n=>{delete n.module_metadata})})}var oh=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{Pt(t,(n,r)=>{if(r==="event"){let o=Array.isArray(n)?n[1]:void 0;o&&(wa(o),n[1]=o)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;let n=e.getOptions().stackParser;xa(n,t)})}});function Ur(e){let t="console";tt(t,e),nt(t,II)}function II(){"console"in C&&Er.forEach(function(e){e in C.console&&Ee(C.console,e,function(t){return no[e]=t,function(...n){Fe("console",{args:n,level:e}),no[e]?.apply(C.console,n)}})})}function nr(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var bI="CaptureConsole",AI=(e={})=>{let t=e.levels||Er,n=e.handled??!0;return{name:bI,setup(r){"console"in C&&Ur(({args:o,level:i})=>{I()!==r||!t.includes(i)||RI(o,i,n)})}}},ih=AI;function RI(e,t,n){let r=nr(t),o=new Error,i={level:nr(t),extra:{arguments:e}};ze(s=>{if(s.addEventProcessor(u=>(u.logger="console",ot(u,{handled:n,type:"auto.core.capture_console"}),u)),t==="assert"){if(!e[0]){let u=`Assertion failed: ${Ar(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),s.captureMessage(u,r,{captureContext:i,syntheticException:o})}return}let a=e.find(u=>u instanceof Error);if(a){X(a,i);return}let c=Ar(e," ");s.captureMessage(c,r,{captureContext:i,syntheticException:o})})}var vI="Dedupe",NI=()=>{let e;return{name:vI,processEvent(t){if(t.type)return t;try{if(CI(t,e))return b&&_.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},No=NI;function CI(e,t){return t?!!(xI(e,t)||wI(e,t)):!1}function xI(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ch(e,t)||!ah(e,t))}function wI(e,t){let n=sh(t),r=sh(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ch(e,t)||!ah(e,t))}function ah(e,t){let n=ro(e),r=ro(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function ch(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 sh(e){return e.exception?.values?.[0]}var kI="ExtraErrorData",OI=(e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:kI,processEvent(r,o,i){let{maxValueLength:s}=i.getOptions();return MI(r,o,t,n,s)}}},uh=OI;function MI(e,t={},n,r,o){if(!t.originalException||!rt(t.originalException))return e;let i=t.originalException.name||t.originalException.constructor.name,s=lh(t.originalException,r,o);if(s){let a=f({},e.contexts),c=ve(s,n);return Ce(c)&&(Te(c,"__sentry_skip_normalization__",!0),a[i]=c),E(f({},e),{contexts:a})}return e}function lh(e,t,n){try{let r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(let i of Object.keys(e)){if(r.indexOf(i)!==-1)continue;let s=e[i];o[i]=rt(s)||typeof s=="string"?n?hn(`${s}`,n):`${s}`:s}if(t&&e.cause!==void 0)if(rt(e.cause)){let i=e.cause.name||e.cause.constructor.name;o.cause={[i]:lh(e.cause,!1,n)}}else o.cause=e.cause;if(typeof e.toJSON=="function"){let i=e.toJSON();for(let s of Object.keys(i)){let a=i[s];o[s]=rt(a)?a.toString():a}}return o}catch(r){b&&_.error("Unable to extract extra data from the Error object:",r)}return null}function PI(e,t){let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var LI=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function UI(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=LI.exec(t);return n?n.slice(1):[]}function dh(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n=o.charAt(0)==="/")}return t=PI(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function fh(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function ph(e,t){e=dh(e).slice(1),t=dh(t).slice(1);let n=fh(e.split("/")),r=fh(t.split("/")),o=Math.min(n.length,r.length),i=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}let s=[];for(let a=i;a<n.length;a++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")}function mh(e,t){let n=UI(e)[2]||"";return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var DI="RewriteFrames",hh=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in C&&!!C.window,o=e.iteratee||BI({isBrowser:r,root:t,prefix:n});function i(a){try{return E(f({},a),{exception:E(f({},a.exception),{values:a.exception.values.map(c=>f(f({},c),c.stacktrace&&{stacktrace:s(c.stacktrace)}))})})}catch{return a}}function s(a){return E(f({},a),{frames:a?.frames?.map(c=>o(c))})}return{name:DI,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=i(c)),c}}};function BI({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){let s=r.filename;s.indexOf(t)===0&&(r.filename=s.replace(t,n))}}else if(o||i){let s=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?ph(t,s):mh(s);r.filename=`${n}${a}`}return r}}var FI=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],GI=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],HI={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},gh=["select","insert","upsert","update","delete"];function ka(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function Oa(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function $I(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function WI(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;let[n,...r]=t.split("."),o;return n?.startsWith("fts")?o="textSearch":n?.startsWith("plfts")?o="textSearch[plain]":n?.startsWith("phfts")?o="textSearch[phrase]":n?.startsWith("wfts")?o="textSearch[websearch]":o=n&&HI[n]||"filter",`${o}(${e}, ${r.join(".")})`}function _h(e,t=!1){return new Proxy(e,{apply(n,r,o){return Tt({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[W]:"auto.db.supabase",[pe]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},i=>Reflect.apply(n,r,o).then(s=>(s&&typeof s=="object"&&"error"in s&&s.error?(i.setStatus({code:2}),X(s.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):i.setStatus({code:1}),i.end(),s)).catch(s=>{throw i.setStatus({code:2}),i.end(),X(s,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),s}).then(...o))}})}function jI(e){let t=e.auth;if(!(!t||Oa(e.auth))){for(let n of FI){let r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=_h(r))}for(let n of GI){let r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=_h(r,!0))}ka(e.auth)}}function zI(e){Oa(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){let o=Reflect.apply(t,n,r),i=o.constructor;return VI(i),o}}),ka(e.prototype.from))}function qI(e){Oa(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){let o=gh,i=n,s=$I(i.method,i.headers);if(!o.includes(s)||!i?.url?.pathname||typeof i.url.pathname!="string")return Reflect.apply(t,n,r);let a=i.url.pathname.split("/"),c=a.length>0?a[a.length-1]:"",u=[];
19for(let[m,h]of i.url.searchParams.entries())u.push(WI(m,h));let d=Object.create(null);if(Ce(i.body))for(let[m,h]of Object.entries(i.body))d[m]=h;let l=`${s==="select"?"":`${s}${d?"(...) ":""}`}${u.join(" ")} from(${c})`,p={"db.table":c,"db.schema":i.schema,"db.url":i.url.origin,"db.sdk":i.headers["X-Client-Info"],"db.system":"postgresql","db.operation":s,[W]:"auto.db.supabase",[pe]:"db"};return u.length&&(p["db.query"]=u),Object.keys(d).length&&(p["db.body"]=d),Tt({name:l,attributes:p},m=>Reflect.apply(t,n,[]).then(h=>{if(m&&(h&&typeof h=="object"&&"status"in h&&Mn(m,h.status||500),m.end()),h?.error){let T=new Error(h.error.message);h.error.code&&(T.code=h.error.code),h.error.details&&(T.details=h.error.details);let A={};u.length&&(A.query=u),Object.keys(d).length&&(A.body=d),X(T,U=>(U.addEventProcessor(M=>(ot(M,{handled:!1,type:"auto.db.supabase.postgres"}),M)),U.setContext("supabase",A),U))}let g={type:"supabase",category:`db.${s}`,message:l},S={};return u.length&&(S.query=u),Object.keys(d).length&&(S.body=d),Object.keys(S).length&&(g.data=S),It(g),h},h=>{throw m&&(Mn(m,500),m.end()),h}).then(...r))}}),ka(e.prototype.then))}function VI(e){for(let t of gh)Oa(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,o){let i=Reflect.apply(n,r,o),s=i.constructor;return b&&_.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),qI(s),i}}),ka(e.prototype[t]))}var Tl=e=>{if(!e){b&&_.warn("Supabase integration was not installed because no Supabase client was provided.");return}let t=e.constructor===Function?e:e.constructor;zI(t),jI(e)},YI="Supabase",JI=e=>({setupOnce(){Tl(e)},name:YI}),Sh=e=>JI(e.supabaseClient);var KI=10,XI="ZodErrors";function QI(e){return rt(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function ZI(e){return E(f({},e),{path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0})}function eb(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function tb(e){let t=new Set;for(let r of e.issues){let o=eb(r.path);o.length>0&&t.add(o)}let n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){let o=e.issues[0];o!==void 0&&"expected"in o&&typeof o.expected=="string"&&(r=o.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${hn(n.join(", "),100)}`}function nb(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!QI(r.originalException)||r.originalException.issues.length===0)return n;try{let i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(ZI);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),E(f({},n),{exception:E(f({},n.exception),{values:[E(f({},n.exception.values[0]),{value:tb(r.originalException)}),...n.exception.values.slice(1)]}),extra:E(f({},n.extra),{"zoderror.issues":i.slice(0,e)})})}catch(o){return E(f({},n),{extra:E(f({},n.extra),{"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:o instanceof Error?`${o.name}: ${o.message} 20${o.stack}`:"unknown"}})})}}var rb=(e={})=>{let t=e.limit??KI;return{name:XI,processEvent(n,r){return nb(t,e.saveZodIssuesAsAttachment,n,r)}}},Eh=rb;var yh=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{Pt(n,(r,o)=>{if(o==="event"){let i=Array.isArray(r)?r[1]:void 0;i&&(wa(i),r[1]=i)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;let r=t.getOptions().stackParser;xa(r,n)})},processEvent(t){let n=ib(t,e.ignoreSentryInternalFrames);if(n){let r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](i=>!i.some(s=>e.filterKeys.includes(s)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags=E(f({},t.tags),{third_party_code:!0})}}return t}});function ob(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(ab))return!1;if(e.pre_context){let n=e.pre_context.length;for(let r=0;r<n;r++)if(e.pre_context[r]?.includes(sb))return!0}return!1}function ib(e,t){let n=ro(e);if(n)return n.filter((r,o)=>!r.filename||r.lineno==null&&r.colno==null&&r.instruction_addr==null?!1:!t||!ob(r,o)).map(r=>r.module_metadata?Object.keys(r.module_metadata).filter(o=>o.startsWith(Th)).map(o=>o.slice(Th.length)):[])}var Th="_sentryBundlerPluginAppKey:",sb="Attempt to invoke user-land function",ab="fn.apply(this, wrappedArguments)";var Ih=100,bh=10,Ma="flag.evaluation.";function Lt(e){let n=L().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function bt(e,t,n=Ih){let r=L().getScopeData().contexts;r.flags||(r.flags={values:[]});let o=r.flags.values;cb(o,e,t,n)}function cb(e,t,n,r){if(typeof n!="boolean")return;if(e.length>
20r){b&&_.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}let o=e.findIndex(i=>i.flag===t);o!==-1&&e.splice(o,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function At(e,t,n=bh){if(typeof t!="boolean")return;let r=ee();if(!r)return;let o=D(r).data;if(`${Ma}${e}`in o){r.setAttribute(`${Ma}${e}`,t);return}Object.keys(o).filter(s=>s.startsWith(Ma)).length<n&&r.setAttribute(`${Ma}${e}`,t)}var Ah=()=>({name:"FeatureFlags",processEvent(e,t,n){return Lt(e)},addFeatureFlag(e,t){bt(e,t),At(e,t)}});var yl=({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;typeof t.isOn=="function"&&Ee(t,"isOn",Rh),typeof t.getFeatureValue=="function"&&Ee(t,"getFeatureValue",Rh)},processEvent(t,n,r){return Lt(t)}});function Rh(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"&&(bt(n,r),At(n,r)),r}}var ub="ConversationId",lb=()=>({name:ub,setup(e){e.on("spanStart",t=>{let n=L().getScopeData(),r=ae().getScopeData(),o=n.conversationId||r.conversationId;o&&t.setAttribute(ku,o)})}}),ji=lb;function Il(e,t,n,r,o){if(!e.fetchData)return;let{method:i,url:s}=e.fetchData,a=Le()&&t(s);if(e.endTimestamp){let m=e.fetchData.__span;if(!m)return;let h=r[m];h&&(a&&(pb(h,e),db(h,e,o)),delete r[m]);return}let{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof o=="object"?o:{spanOrigin:o},d=!!ee(),l=a&&d?Ve(hb(s,i,c)):new st;if(e.fetchData.__span=l.spanContext().spanId,r[l.spanContext().spanId]=l,n(e.fetchData.url)){let m=e.args[0],h=f({},e.args[1]||{}),g=fb(m,h,Le()&&d?l:void 0,u);g&&(e.args[1]=h,h.headers=g)}let p=I();if(p){let m={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",l,m)}return l}function db(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function fb(e,t,n,r){let o=Ao({span:n,propagateTraceparent:r}),i=o["sentry-trace"],s=o.baggage,a=o.traceparent;if(!i)return;let c=t.headers||(Si(e)?e.headers:void 0);if(c)if(mb(c)){let u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",i),r&&a&&!u.get("traceparent")&&u.set("traceparent",a),s){let d=u.get("baggage");d?Pa(d)||u.set("baggage",`${d},${s}`):u.set("baggage",s)}return u}else if(Array.isArray(c)){let u=[...c];c.find(l=>l[0]==="sentry-trace")||u.push(["sentry-trace",i]),r&&a&&!c.find(l=>l[0]==="traceparent")&&u.push(["traceparent",a]);let d=c.find(l=>l[0]==="baggage"&&Pa(l[1]));return s&&!d&&u.push(["baggage",s]),u}else{let u="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,l="baggage"in c?c.baggage:void 0,p=l?Array.isArray(l)?[...l]:[l]:[],m=l&&(Array.isArray(l)?l.find(g=>Pa(g)):Pa(l));s&&!m&&p.push(s);let h=E(f({},c),{"sentry-trace":u??i,baggage:p.length>0?p.join(","):void 0});return r&&a&&!d&&(h.traceparent=a),h}else return f({},o)}function pb(e,t){if(t.response){Mn(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}function Pa(e){return e.split(",").some(t=>t.trim().startsWith(bi))}function mb(e){return typeof Headers<"u"&&wt(e,Headers)}function hb(e,t,n){if(e.startsWith("data:")){let i=zt(e);return{name:`${t} ${i}`,attributes:vh(e,void 0,t,n)}}let r=Pr(e),o=r?fl(r):e;return{name:`${t} ${o}`,attributes:vh(e,r,t,n)}}function vh(e,t,n,r){let o={url:zt(e),type:"fetch","http.method":n,[W]:r,[pe]:"http.client"};return t&&(bo(t)||(o["http.url"]=zt(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function La(e,t={},n=L()){let{message:r,name:o,email:i,url:s,source:a,associatedEventId:c,tags:u}=e,d={contexts:{feedback:{contact_email:i,name:o,message:r,url:s,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:u},l=n?.getClient()||I();return l&&l.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}var bl={};jf(bl,{debug:()=>gb,error:()=>Tb,fatal:()=>yb,fmt:()=>ml,info:()=>Sb,trace:()=>_b,warn:()=>Eb});function Co(e,t,n,r,o){tr({level:e,message:t,attributes:n,severityNumber:o},r)}function _b(e,t,{scope:n}={}){Co("trace",e,t,n)}function gb(e,t,{scope:n}={}){Co("debug",e,t,n)}function Sb(e,t,{scope:n}={}){Co("info",e,t,n)}function Eb(e,t,{scope:n}={}){Co("warn",e,t,n)}function Tb(e,t,{scope:n}={}){Co("error",e,t,n)}function yb(e,t,{scope:n}={}){Co("fatal",e,t,n)}
20function xo(e,t,n){return"util"in C&&typeof C.util.format=="function"?C.util.format(...e):Ib(e,t,n)}function Ib(e,t,n){return e.map(r=>lt(r)?String(r):JSON.stringify(ve(r,t,n))).join(" ")}function Ua(e){return/%[sdifocO]/.test(e)}function Da(e,t){let n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((o,i)=>{n[`sentry.message.parameter.${i}`]=o}),n}var bb="ConsoleLogs",Nh={[W]:"auto.log.console"},Ab=(e={})=>{let t=e.levels||Er;return{name:bb,setup(n){let{enableLogs:r,normalizeDepth:o=3,normalizeMaxBreadth:i=1e3}=n.getOptions();if(!r){b&&_.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}Ur(({args:s,level:a})=>{if(I()!==n||!t.includes(a))return;let c=s[0],u=s.slice(1);if(a==="assert"){if(!c){let m=u.length>0?`Assertion failed: ${xo(u,o,i)}`:"Assertion failed";tr({level:"error",message:m,attributes:Nh})}return}let d=a==="log",l=s.length>1&&typeof s[0]=="string"&&!Ua(s[0]),p=f(f({},Nh),l?Da(c,u):{});tr({level:d?"info":a,message:xo(s,o,i),severityNumber:d?10:void 0,attributes:p})})}}},Ch=Ab;var wo={};jf(wo,{count:()=>Rb,distribution:()=>Nb,gauge:()=>vb});function Al(e,t,n,r){nl({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function Rb(e,t=1,n){Al("counter",e,t,n)}function vb(e,t,n){Al("gauge",e,t,n)}function Nb(e,t,n){Al("distribution",e,t,n)}var Cb=["trace","debug","info","warn","error","fatal"];function xh(e={}){let t=new Set(e.levels??Cb),n=e.client;return{log(r){let T=r,{type:o,level:i,message:s,args:a,tag:c,date:u}=T,d=mn(T,["type","level","message","args","tag","date"]),l=n||I();if(!l)return;let p=kb(o,i);if(!t.has(p))return;let{normalizeDepth:m=3,normalizeMaxBreadth:h=1e3}=l.getOptions(),g={};for(let[A,U]of Object.entries(d))g[A]=ve(U,m,h);g["sentry.origin"]="auto.log.consola",c&&(g["consola.tag"]=c),o&&(g["consola.type"]=o),i!=null&&typeof i=="number"&&(g["consola.level"]=i);let S=Mb(Ob(a,m,h),m,h);S?.attributes&&Object.assign(g,S.attributes),tr({level:p,message:S?.message||s||a&&xo(a,m,h)||"",attributes:g})}}}var xb={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},wb={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function kb(e,t){if(e==="verbose")return"debug";if(e==="silent")return"trace";if(e){let n=xb[e];if(n)return n}if(typeof t=="number"){let n=wb[t];if(n)return n}return"info"}function Ob(e,t,n){if(!e?.length)return{message:""};let r=xo(e,t,n),o=e[0];if(Ce(o)){let i=typeof e[1]=="string"?2:1,s=e.slice(i);return{message:r,attributes:o,messageParameters:s}}else{let i=e.slice(1),s=i.length>0&&typeof o=="string"&&!Ua(o);return{message:r,messageTemplate:s?o:void 0,messageParameters:s?i:void 0}}}function Mb(e,t,n){let{message:r,attributes:o,messageTemplate:i,messageParameters:s}=e,a={};if(i&&s){let c=Da(i,s);for(let[u,d]of Object.entries(c))a[u]=u.startsWith("sentry.message.parameter.")?ve(d,t,n):d}else s&&s.length>0&&s.forEach((c,u)=>{a[`sentry.message.parameter.${u}`]=ve(c,t,n)});return{message:r,attributes:f(f({},ve(o,t,n)),a)}}var wh="gen_ai.prompt",rr="gen_ai.system",Ge="gen_ai.request.model",ko="gen_ai.request.stream",or="gen_ai.request.temperature",Oo="gen_ai.request.max_tokens",ir="gen_ai.request.frequency_penalty",Mo="gen_ai.request.presence_penalty",sr="gen_ai.request.top_p",Ba="gen_ai.request.top_k",kh="gen_ai.request.encoding_format",Oh="gen_ai.request.dimensions",Rt="gen_ai.response.finish_reasons",at="gen_ai.response.model",qt="gen_ai.response.id",Mh="gen_ai.response.stop_reason",Ut="gen_ai.usage.input_tokens",Dt="gen_ai.usage.output_tokens",Bt="gen_ai.usage.total_tokens",vt="gen_ai.operation.name",Vt="sentry.sdk_meta.gen_ai.input.messages.original_length",cn="gen_ai.input.messages";var bn="gen_ai.system_instructions",He="gen_ai.response.text",ar="gen_ai.request.available_tools",Dr="gen_ai.response.streaming",Ye="gen_ai.response.tool_calls",Rl="gen_ai.agent.name",Ph="gen_ai.pipeline.name",zi="gen_ai.conversation.id",Lh="gen_ai.usage.cache_creation_input_tokens",Uh="gen_ai.usage.cache_read_input_tokens";var Dh="gen_ai.invoke_agent";var Fa="gen_ai.embeddings.input";var Bh="gen_ai.tool.name";var Fh="gen_ai.tool.input",Gh="gen_ai.tool.output";var vl="openai.response.id",Nl="openai.response.model",Cl="openai.response.timestamp",Hh="openai.usage.completion_tokens",$h="openai.usage.prompt_tokens",xl="anthropic.response.timestamp";function cr(e){return!e||typeof e!="object"?!1:Lb(e)||jh(e)||Pb(e)||zh(e)||qh(e)||Ub(e)||Db(e)||Bb(e)||Fb(e)||Gb(e)||Hb(e)||$b(e)}function Pb(e){return"image_url"in e?typeof e.image_url=="string"?e.image_url.startsWith("data:"):Wh(e):!1}
20function Wh(e){return"image_url"in e&&!!e.image_url&&typeof e.image_url=="object"&&"url"in e.image_url&&typeof e.image_url.url=="string"&&e.image_url.url.startsWith("data:")}function Lb(e){return"type"in e&&typeof e.type=="string"&&"source"in e&&cr(e.source)}function jh(e){return"inlineData"in e&&!!e.inlineData&&typeof e.inlineData=="object"&&"data"in e.inlineData&&typeof e.inlineData.data=="string"}function zh(e){return"type"in e&&e.type==="input_audio"&&"input_audio"in e&&!!e.input_audio&&typeof e.input_audio=="object"&&"data"in e.input_audio&&typeof e.input_audio.data=="string"}function qh(e){return"type"in e&&e.type==="file"&&"file"in e&&!!e.file&&typeof e.file=="object"&&"file_data"in e.file&&typeof e.file.file_data=="string"}function Ub(e){return"media_type"in e&&typeof e.media_type=="string"&&"data"in e}function Db(e){return"type"in e&&e.type==="file"&&"mediaType"in e&&typeof e.mediaType=="string"&&"data"in e&&typeof e.data=="string"&&!e.data.startsWith("http://")&&!e.data.startsWith("https://")}function Bb(e){return"type"in e&&e.type==="image"&&"image"in e&&typeof e.image=="string"&&!e.image.startsWith("http://")&&!e.image.startsWith("https://")}function Fb(e){return"type"in e&&(e.type==="blob"||e.type==="base64")}function Gb(e){return"b64_json"in e}function Hb(e){return"type"in e&&"result"in e&&e.type==="image_generation"}function $b(e){return"uri"in e&&typeof e.uri=="string"&&e.uri.startsWith("data:")}var qi="[Blob substitute]",Wb=["image_url","data","content","b64_json","result","uri","image"];function Br(e){let t=f({},e);cr(t.source)&&(t.source=Br(t.source)),jh(e)&&(t.inlineData=E(f({},e.inlineData),{data:qi})),Wh(e)&&(t.image_url=E(f({},e.image_url),{url:qi})),zh(e)&&(t.input_audio=E(f({},e.input_audio),{data:qi})),qh(e)&&(t.file=E(f({},e.file),{file_data:qi}));for(let n of Wb)typeof t[n]=="string"&&(t[n]=qi);return t}var Yh=2e4,Ga=e=>new TextEncoder().encode(e).length,kl=e=>Ga(JSON.stringify(e));function Ha(e,t){if(Ga(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){let i=Math.floor((n+r)/2),s=e.slice(0,i);Ga(s)<=t?(o=s,n=i+1):r=i-1}return o}function jb(e){return typeof e=="string"?e:"text"in e&&typeof e.text=="string"?e.text:""}function Vh(e,t){return typeof e=="string"?t:E(f({},e),{text:t})}function zb(e){return e!==null&&typeof e=="object"&&"content"in e&&typeof e.content=="string"}function Jh(e){return e!==null&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)}function Kh(e){return e!==null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function qb(e,t){let n=E(f({},e),{content:""}),r=kl(n),o=t-r;if(o<=0)return[];let i=Ha(e.content,o);return[E(f({},e),{content:i})]}function Vb(e){return"parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]}}function Yb(e,t){let{key:n,items:r}=Vb(e);if(n===null||r.length===0)return[];let o=r.map(c=>Vh(c,"")),i=kl(E(f({},e),{[n]:o})),s=t-i;if(s<=0)return[];let a=[];for(let c of r){let u=jb(c),d=Ga(u);if(d<=s)a.push(c),s-=d;else if(a.length===0){let l=Ha(u,s);l&&a.push(Vh(c,l));break}else break}return a.length<=0?[]:[E(f({},e),{[n]:a})]}function Jb(e,t){if(!e)return[];if(typeof e=="string"){let n=Ha(e,t);return n?[n]:[]}return typeof e!="object"?[]:zb(e)?qb(e,t):Jh(e)||Kh(e)?Yb(e,t):[]}function wl(e){return e.map(n=>{let r;return n&&typeof n=="object"&&(Jh(n)?r=E(f({},n),{content:wl(n.content)}):"content"in n&&cr(n.content)&&(r=E(f({},n),{content:Br(n.content)})),Kh(n)&&(r=E(f({},r??n),{parts:wl(n.parts)})),cr(r)?r=Br(r):cr(n)&&(r=Br(n))),r??n})}function Kb(e,t){if(!Array.isArray(e)||e.length===0)return e;let n=t-2,r=e[e.length-1],o=wl([r]),i=o[0];return kl(i)<=n?o:Jb(i,n)}function ur(e){return Kb(e,Yh)}function Xh(e){return Ha(e,Yh)}function An(e){let t=!!I()?.getOptions().sendDefaultPii;return E(f({},e),{recordInputs:e?.recordInputs??t,recordOutputs:e?.recordOutputs??t})}function Po(e,t){return e?`${e}.${t}`:t}function Vi(e,t,n,r,o){if(t!==void 0&&e.setAttributes({[Ut]:t}),n!==void 0&&e.setAttributes({[Dt]:n}),t!==void 0||n!==void 0||r!==void 0||o!==void 0){let i=(t??0)+(n??0)+(r??0)+(o??0);e.setAttributes({[Bt]:i})}}function $a(e){if(typeof e=="string")return Xh(e);if(Array.isArray(e)){let t=ur(e);return JSON.stringify(t)}return JSON.stringify(e)}function Rn(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(s=>s&&typeof s=="object"&&"role"in s&&s.role==="system");if(t===-1)return{systemInstructions:void 0,filteredMessages:e};let n=e[t],r=typeof n.content=="string"?n.content:n.content!==void 0?JSON.stringify(n.content):void 0;if(!r)return{systemInstructions:void 0,filteredMessages:e};let o=JSON.stringify([{type:"text",content:r}]),i=[...e.slice(0,t),...e.slice(t+1)];return{systemInstructions:o,filteredMessages:i}}function Xb(e,t,n){return x(this,null,function*(){let r=e.catch(s=>{throw X(s,{mechanism:{handled:!1,type:n}}),s}),o=yield t,i=yield r;return i&&typeof i=="object"&&"data"in i?E(f({},i),{data:o}):o})}function Lo(e,t,n){return St(e)?new Proxy(e,{get(r,o){let s=o in Promise.prototype||o===Symbol.toStringTag?t:r,a=Reflect.get(s,o);return o==="withResponse"&&typeof a=="function"?function(){let u=a.call(r);return Xb(u,t,n)}:typeof a=="function"?a.bind(s):a}}):t}var Qh={"responses.create":{operation:"chat"}
20,"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},Qb=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],Zh=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...Qb];function e_(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion"}function t_(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="response"}function n_(e){if(e===null||typeof e!="object"||!("object"in e))return!1;let t=e;return t.object==="list"&&typeof t.model=="string"&&t.model.toLowerCase().includes("embedding")}function r_(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="conversation"}function o_(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.startsWith("response.")}function i_(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion.chunk"}function s_(e,t,n){if(Wa(e,t.id,t.model,t.created),t.usage&&Yi(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){let r=t.choices.map(o=>o.finish_reason).filter(o=>o!==null);if(r.length>0&&e.setAttributes({[Rt]:JSON.stringify(r)}),n){let o=t.choices.map(i=>i.message?.tool_calls).filter(i=>Array.isArray(i)&&i.length>0).flat();o.length>0&&e.setAttributes({[Ye]:JSON.stringify(o)})}}}function a_(e,t,n){if(Wa(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[Rt]:JSON.stringify([t.status])}),t.usage&&Yi(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),n){let r=t;if(Array.isArray(r.output)&&r.output.length>0){let o=r.output.filter(i=>typeof i=="object"&&i!==null&&i.type==="function_call");o.length>0&&e.setAttributes({[Ye]:JSON.stringify(o)})}}}function c_(e,t){e.setAttributes({[Nl]:t.model,[at]:t.model}),t.usage&&Yi(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)}function u_(e,t){let{id:n,created_at:r}=t;e.setAttributes({[vl]:n,[qt]:n,[zi]:n}),r&&e.setAttributes({[Cl]:new Date(r*1e3).toISOString()})}function Yi(e,t,n,r){t!==void 0&&e.setAttributes({[$h]:t,[Ut]:t}),n!==void 0&&e.setAttributes({[Hh]:n,[Dt]:n}),r!==void 0&&e.setAttributes({[Bt]:r})}function Wa(e,t,n,r){e.setAttributes({[vl]:t,[qt]:t}),e.setAttributes({[Nl]:n,[at]:n}),e.setAttributes({[Cl]:new Date(r*1e3).toISOString()})}function Zb(e){if("conversation"in e&&typeof e.conversation=="string")return e.conversation;if("previous_response_id"in e&&typeof e.previous_response_id=="string")return e.previous_response_id}function l_(e){let t={[Ge]:e.model??"unknown"};"temperature"in e&&(t[or]=e.temperature),"top_p"in e&&(t[sr]=e.top_p),"frequency_penalty"in e&&(t[ir]=e.frequency_penalty),"presence_penalty"in e&&(t[Mo]=e.presence_penalty),"stream"in e&&(t[ko]=e.stream),"encoding_format"in e&&(t[kh]=e.encoding_format),"dimensions"in e&&(t[Oh]=e.dimensions);let n=Zb(e);return n&&(t[zi]=n),t}function eA(e,t){for(let n of e){let r=n.index;if(!(r===void 0||!n.function))if(!(r in t.chatCompletionToolCalls))t.chatCompletionToolCalls[r]=E(f({},n),{function:{name:n.function.name,arguments:n.function.arguments||""}});else{let o=t.chatCompletionToolCalls[r];n.function.arguments&&o?.function&&(o.function.arguments+=n.function.arguments)}}}function tA(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(let r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&eA(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function nA(e,t,n,r){if(!(e&&typeof e=="object")){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:2,message:"internal_error"}),X(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if(!("type"in e))return;let o=e;if(!Zh.includes(o.type)){t.eventTypes.push(o.type);return}if(n&&(o.type==="response.output_item.done"&&"item"in o&&t.responsesApiToolCalls.push(o.item),o.type==="response.output_text.delta"&&"delta"in o&&o.delta)){t.responseTexts.push(o.delta);return}if("response"in o){let{response:i}=o;t.responseId=i.id??t.responseId,t.responseModel=i.model??t.responseModel,t.responseTimestamp=i.created_at??t.responseTimestamp,i.usage&&(t.promptTokens=i.usage.input_tokens,t.completionTokens=i.usage.output_tokens,t.totalTokens=i.usage.total_tokens),i.status&&t.finishReasons.push(i.status),n&&i.output_text&&t.responseTexts.push(i.output_text)}}function d_(e,t,n){return eo(this,null,function*(){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{try{for(var o=to(e),i,s,a;i=!(s=yield new wn(o.next())).done;i=!1){let c=s.value;i_(c)?tA(c,r,n):o_(c)&&nA(c,r,n,t),yield c}}catch(s){a=[s]}finally{try{i&&(s=o.return)&&(yield new wn(s.call(o)))}finally{if(a)throw a[0]}}}finally{Wa(t,r.responseId,r.responseModel,r.responseTimestamp),Yi(t,r.promptTokens,r.completionTokens,r.totalTokens),t.setAttributes({[Dr]:!0}),r.finishReasons.length&&t.setAttributes({[Rt]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length&&t.setAttributes({[He]:r.responseTexts.join("")});let u=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];u.length>0&&t.setAttributes({[Ye]:JSON.stringify(u)}),t.end()}})}function rA(e){let t=Array.isArray(e.tools)?e.tools:[],r=e.web_search_options&&typeof e.web_search_options=="object"?[f({type:"web_search_options"},e.web_search_options)]:[],o=[...t,...r];if(o.length!==0)try{return JSON.stringify(o)}catch(i){b&&_.error("Failed to serialize OpenAI tools:",i);return}}function oA(e,t){let n={[rr]:"openai",[vt]:t,[W]:"auto.ai.openai"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){let r=e[0],o=rA(r);o&&(n[ar]=o),Object.assign(n,l_(r))}else n[Ge]="unknown";return n}function iA(e,t,n){if(!t||typeof t!="object")return;let r=t;if(e_(r)){if(s_(e,r,n),n&&r.choices?.length){let o=r.choices.map(i=>i.message?.content||"");e.setAttributes({[He]:JSON.stringify(o)})}}else t_(r)?(a_(e,r,n),n&&r.output_text&&e.setAttributes({[He]:r.output_text})):n_(r)?c_(e,r):r_(r)&&u_(e,r)}function f_(e,t,n){if(n==="embeddings"&&"input"in t){let a=t.input;
20if(a==null||typeof a=="string"&&a.length===0||Array.isArray(a)&&a.length===0)return;e.setAttribute(Fa,typeof a=="string"?a:JSON.stringify(a));return}let r="input"in t?t.input:"messages"in t?t.messages:void 0;if(!r||Array.isArray(r)&&r.length===0)return;let{systemInstructions:o,filteredMessages:i}=Rn(r);o&&e.setAttribute(bn,o);let s=$a(i);e.setAttribute(cn,s),Array.isArray(i)?e.setAttribute(Vt,i.length):e.setAttribute(Vt,1)}function sA(e,t,n,r,o){return function(...s){let a=n.operation,c=oA(s,a),u=c[Ge]||"unknown",d=s[0],l=d&&typeof d=="object"&&d.stream===!0,p={name:`${a} ${u}`,op:`gen_ai.${a}`,attributes:c};if(l){let g,S=yt(p,T=>(g=e.apply(r,s),o.recordInputs&&d&&f_(T,d,a),x(null,null,function*(){try{let A=yield g;return d_(A,T,o.recordOutputs??!1)}catch(A){throw T.setStatus({code:2,message:"internal_error"}),X(A,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),T.end(),A}})));return Lo(g,S,"auto.ai.openai")}let m,h=Tt(p,g=>(m=e.apply(r,s),o.recordInputs&&d&&f_(g,d,a),m.then(S=>(iA(g,S,o.recordOutputs),S),S=>{throw X(S,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),S})));return Lo(m,h,"auto.ai.openai")}}function p_(e,t="",n){return new Proxy(e,{get(r,o){let i=r[o],s=Po(t,String(o)),a=Qh[s];return typeof i=="function"&&a?sA(i,s,a,r,n):typeof i=="function"?i.bind(r):i&&typeof i=="object"?p_(i,s,n):i}})}function m_(e,t){return p_(e,"",An(t))}var h_={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}};function __(e,t){if(Array.isArray(t)&&t.length===0)return;let{systemInstructions:n,filteredMessages:r}=Rn(t);n&&e.setAttributes({[bn]:n});let o=Array.isArray(r)?r.length:1;e.setAttributes({[cn]:$a(r),[Vt]:o})}var aA={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function Ol(e){return e&&aA[e]||"internal_error"}function g_(e,t){t.error&&(e.setStatus({code:2,message:Ol(t.error.type)}),X(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function S_(e){let{system:t,messages:n,input:r}=e,o=typeof t=="string"?[{role:"system",content:e.system}]:[],i=Array.isArray(r)?r:r!=null?[r]:void 0,s=Array.isArray(n)?n:n!=null?[n]:[],a=i??s;return[...o,...a]}function cA(e,t){return"type"in e&&typeof e.type=="string"&&e.type==="error"?(t.setStatus({code:2,message:Ol(e.error?.type)}),X(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0):!1}function uA(e,t){if(e.type==="message_delta"&&e.usage&&"output_tokens"in e.usage&&typeof e.usage.output_tokens=="number"&&(t.completionTokens=e.usage.output_tokens),e.message){let n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&(typeof n.usage.input_tokens=="number"&&(t.promptTokens=n.usage.input_tokens),typeof n.usage.cache_creation_input_tokens=="number"&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),typeof n.usage.cache_read_input_tokens=="number"&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}function lA(e,t){e.type!=="content_block_start"||typeof e.index!="number"||!e.content_block||(e.content_block.type==="tool_use"||e.content_block.type==="server_tool_use")&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})}function dA(e,t,n){if(!(e.type!=="content_block_delta"||!e.delta)){if(typeof e.index=="number"&&"partial_json"in e.delta&&typeof e.delta.partial_json=="string"){let r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}n&&typeof e.delta.text=="string"&&t.responseTexts.push(e.delta.text)}}function fA(e,t){if(e.type!=="content_block_stop"||typeof e.index!="number")return;let n=t.activeToolBlocks[e.index];if(!n)return;let r=n.inputJsonParts.join(""),o;try{o=r?JSON.parse(r):{}}catch{o={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:o}),delete t.activeToolBlocks[e.index]}function E_(e,t,n,r){!(e&&typeof e=="object")||cA(e,r)||(uA(e,t),lA(e,t),dA(e,t,n),fA(e,t))}function pA(e,t,n){t.isRecording()&&(e.responseId&&t.setAttributes({[qt]:e.responseId}),e.responseModel&&t.setAttributes({[at]:e.responseModel}),Vi(t,e.promptTokens,e.completionTokens,e.cacheCreationInputTokens,e.cacheReadInputTokens),t.setAttributes({[Dr]:!0}),e.finishReasons.length>0&&t.setAttributes({[Rt]:JSON.stringify(e.finishReasons)}),n&&e.responseTexts.length>0&&t.setAttributes({[He]:e.responseTexts.join("")}),n&&e.toolCalls.length>0&&t.setAttributes({[Ye]:JSON.stringify(e.toolCalls)}),t.end())}function T_(e,t,n){return eo(this,null,function*(){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{try{for(var o=to(e),i,s,a;i=!(s=yield new wn(o.next())).done;i=!1){let c=s.value;E_(c,r,n,t),yield c}}catch(s){a=[s]}finally{try{i&&(s=o.return)&&(yield new wn(s.call(o)))}finally{if(a)throw a[0]}}}finally{r.responseId&&t.setAttributes({[qt]:r.responseId}),r.responseModel&&t.setAttributes({[at]:r.responseModel}),Vi(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[Dr]:!0}),r.finishReasons.length>0&&t.setAttributes({[Rt]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[He]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[Ye]:JSON.stringify(r.toolCalls)}),t.end()}})}function y_(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",o=>{E_(o,r,n,t)}),e.on("message",()=>{pA(r,t,n)}),e.on("error",o=>{X(o,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:2,message:"internal_error"}),t.end())}),e}function mA(e,t,n){let r={[rr]:"anthropic",[vt]:n,[W]:"auto.ai.anthropic"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){let o=e[0];o.tools&&Array.isArray(o.tools)&&(r[ar]=JSON.stringify(o.tools)),r[Ge]=o.model??"unknown","temperature"in o&&(r[or]=o.temperature),"top_p"in o&&(r[sr]=o.top_p),"stream"in o&&(r[ko]=o.stream),"top_k"in o&&(r[Ba]=o.top_k),"frequency_penalty"in o&&(r[ir]=o.frequency_penalty),"max_tokens"in o&&(r[Oo]=o.max_tokens)}else t==="models.retrieve"||t==="models.get"?r[Ge]=e[0]:r[Ge]="unknown";return r}function Ml(e,t){let n=S_(t);__(e,n),"prompt"in t&&e.setAttributes({[wh]:JSON.stringify(t.prompt)})}function hA(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[He]:t.content.map(r=>r.text).filter(r=>!!r).join("")});let n=[];for(let r of t.content)(r.type==="tool_use"||r.type==="server_tool_use")&&n.push(r);n.length>0&&e.setAttributes({[Ye]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[He]:t.completion}),"input_tokens"in t&&e.setAttributes({[He]:JSON.stringify(t.input_tokens)})}function _A(e,t){"id"in t&&"model"in t&&(e.setAttributes({[qt]:t.id,[at]:t.model}),"created"in t&&typeof t.created=="number"&&e.setAttributes({[xl]:new Date(t.created*1e3).toISOString()}),"created_at"in t&&typeof t.created_at=="number"&&e.setAttributes({[xl]:new Date(t.created_at*1e3).toISOString()}),"usage"in t&&t.usage&&Vi(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function gA(e,t,n){if(!(!t||typeof t!="object")){if("type"in t&&t.type==="error"){g_(e,t);return}n&&hA(e,t),_A(e,t)}}function I_(e,t,n){throw X(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:2,message:"internal_error"}),t.end()),e}function SA(e,t,n,r,o,i,s,a,c,u,d){let l=o[Ge]??"unknown",p={name:`${i} ${l}`,op:`gen_ai.${i}`,attributes:o};if(u&&!d){let m,h=yt(p,g=>(m=e.apply(n,r),c.recordInputs&&a&&Ml(g,a),x(null,null,function*(){try{let S=yield m;return T_(S,g,c.recordOutputs??!1)}catch(S){return I_(S,g,s)}})));return Lo(m,h,"auto.ai.anthropic")}else return yt(p,m=>{try{c.recordInputs&&a&&Ml(m,a);let h=t.apply(n,r);return y_(h,m,c.recordOutputs??!1)}catch(h){return I_(h,m,s)}})}function EA(e,t,n,r,o){return new Proxy(e,{apply(i,s,a){let c=n.operation,u=mA(a,t,c),d=u[Ge]??"unknown",l=typeof a[0]=="object"?a[0]:void 0,p=!!l?.stream,m=n.streaming===!0;if(p||m)return SA(e,i,r,a,u,c,t,l,o,p,m);let h,g=Tt({name:`${c} ${d}`,op:`gen_ai.${c}`,attributes:u},S=>(h=i.apply(r,a),o.recordInputs&&l&&Ml(S,l),h.then(T=>(gA(S,T,o.recordOutputs),T),T=>{throw X(T,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}}),T})));return Lo(h,g,"auto.ai.anthropic")}})}
20function b_(e,t="",n){return new Proxy(e,{get(r,o){let i=r[o],s=Po(t,String(o)),a=h_[s];return typeof i=="function"&&a?EA(i,s,a,r,n):typeof i=="function"?i.bind(r):i&&typeof i=="object"?b_(i,s,n):i}})}function A_(e,t){return b_(e,"",An(t))}var R_={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{operation:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},v_="google_genai",Pl="chats.create",N_="chat";function TA(e,t){let n=e?.promptFeedback;if(n?.blockReason){let r=n.blockReasonMessage??n.blockReason;return t.setStatus({code:2,message:"internal_error"}),X(`Content blocked: ${r}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function yA(e,t){typeof e.responseId=="string"&&(t.responseId=e.responseId),typeof e.modelVersion=="string"&&(t.responseModel=e.modelVersion);let n=e.usageMetadata;n&&(typeof n.promptTokenCount=="number"&&(t.promptTokens=n.promptTokenCount),typeof n.candidatesTokenCount=="number"&&(t.completionTokens=n.candidatesTokenCount),typeof n.totalTokenCount=="number"&&(t.totalTokens=n.totalTokenCount))}function IA(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(let r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(let o of r?.content?.parts??[])n&&o.text&&t.responseTexts.push(o.text),o.functionCall&&t.toolCalls.push({type:"function",id:o.functionCall.id,name:o.functionCall.name,arguments:o.functionCall.args})}}function bA(e,t,n,r){!e||TA(e,r)||(yA(e,t),IA(e,t,n))}function C_(e,t,n){return eo(this,null,function*(){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{try{for(var o=to(e),i,s,a;i=!(s=yield new wn(o.next())).done;i=!1){let c=s.value;bA(c,r,n,t),yield c}}catch(s){a=[s]}finally{try{i&&(s=o.return)&&(yield new wn(s.call(o)))}finally{if(a)throw a[0]}}}finally{let c={[Dr]:!0};r.responseId&&(c[qt]=r.responseId),r.responseModel&&(c[at]=r.responseModel),r.promptTokens!==void 0&&(c[Ut]=r.promptTokens),r.completionTokens!==void 0&&(c[Dt]=r.completionTokens),r.totalTokens!==void 0&&(c[Bt]=r.totalTokens),r.finishReasons.length&&(c[Rt]=JSON.stringify(r.finishReasons)),n&&r.responseTexts.length&&(c[He]=r.responseTexts.join("")),n&&r.toolCalls.length&&(c[Ye]=JSON.stringify(r.toolCalls)),t.setAttributes(c),t.end()}})}function Uo(e,t="user"){return typeof e=="string"?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(n=>Uo(n,t)):typeof e!="object"||!e?[]:"role"in e&&typeof e.role=="string"?[e]:"parts"in e?[E(f({},e),{role:t})]:[{role:t,content:e}]}function x_(e,t){if("model"in e&&typeof e.model=="string")return e.model;if(t&&typeof t=="object"){let n=t;if("model"in n&&typeof n.model=="string")return n.model;if("modelVersion"in n&&typeof n.modelVersion=="string")return n.modelVersion}return"unknown"}function AA(e){let t={};return"temperature"in e&&typeof e.temperature=="number"&&(t[or]=e.temperature),"topP"in e&&typeof e.topP=="number"&&(t[sr]=e.topP),"topK"in e&&typeof e.topK=="number"&&(t[Ba]=e.topK),"maxOutputTokens"in e&&typeof e.maxOutputTokens=="number"&&(t[Oo]=e.maxOutputTokens),"frequencyPenalty"in e&&typeof e.frequencyPenalty=="number"&&(t[ir]=e.frequencyPenalty),"presencePenalty"in e&&typeof e.presencePenalty=="number"&&(t[Mo]=e.presencePenalty),t}function RA(e,t,n){let r={[rr]:v_,[vt]:e,[W]:"auto.ai.google_genai"};if(t){if(r[Ge]=x_(t,n),"config"in t&&typeof t.config=="object"&&t.config){let o=t.config;if(Object.assign(r,AA(o)),"tools"in o&&Array.isArray(o.tools)){let i=o.tools.flatMap(s=>s.functionDeclarations);r[ar]=JSON.stringify(i)}}}else r[Ge]=x_({},n);return r}function w_(e,t,n){if(n){let o=t.contents;o!=null&&e.setAttribute(Fa,typeof o=="string"?o:JSON.stringify(o));return}let r=[];if("config"in t&&t.config&&typeof t.config=="object"&&"systemInstruction"in t.config&&t.config.systemInstruction&&r.push(...Uo(t.config.systemInstruction,"system")),"history"in t&&r.push(...Uo(t.history,"user")),"contents"in t&&r.push(...Uo(t.contents,"user")),"message"in t&&r.push(...Uo(t.message,"user")),Array.isArray(r)&&r.length){let{systemInstructions:o,filteredMessages:i}=Rn(r);o&&e.setAttribute(bn,o);let s=Array.isArray(i)?i.length:0;e.setAttributes({[Vt]:s,[cn]:JSON.stringify(ur(i))})}}function vA(e,t,n){if(!(!t||typeof t!="object")){if(t.modelVersion&&e.setAttribute(at,t.modelVersion),t.usageMetadata&&typeof t.usageMetadata=="object"){let r=t.usageMetadata;typeof r.promptTokenCount=="number"&&e.setAttributes({[Ut]:r.promptTokenCount}),typeof r.candidatesTokenCount=="number"&&e.setAttributes({[Dt]:r.candidatesTokenCount}),typeof r.totalTokenCount=="number"&&e.setAttributes({[Bt]:r.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let r=t.candidates.map(o=>o.content?.parts&&Array.isArray(o.content.parts)?o.content.parts.map(i=>typeof i.text=="string"?i.text:"").filter(i=>i.length>0).join(""):"").filter(o=>o.length>0);r.length>0&&e.setAttributes({[He]:r.join("")})}if(n&&t.functionCalls){let r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[Ye]:JSON.stringify(r)})}}}function k_(e,t,n,r,o){let i=t===Pl,s=n.operation==="embeddings";return new Proxy(e,{apply(a,c,u){let d=n.operation,l=u[0],p=RA(d,l,r),m=p[Ge]??"unknown";return n.streaming?yt({name:`${d} ${m}`,op:`gen_ai.${d}`,attributes:p},h=>x(null,null,function*(){try{o.recordInputs&&l&&w_(h,l,s);let g=yield a.apply(r,u);return C_(g,h,!!o.recordOutputs)}catch(g){throw h.setStatus({code:2,message:"internal_error"}),X(g,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),h.end(),g}})):Tt({name:i?`${d} ${m} create`:`${d} ${m}`,op:`gen_ai.${d}`,attributes:p},h=>(o.recordInputs&&l&&w_(h,l,s),ki(()=>a.apply(r,u),g=>{X(g,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},g=>{!i&&!s&&vA(h,g,o.recordOutputs)})))}})}function Ll(e,t="",n){return new Proxy(e,{get:(r,o,i)=>{let s=Reflect.get(r,o,i),a=Po(t,String(o)),c=R_[a];if(typeof s=="function"&&c){if(a===Pl){let u=k_(s,a,c,r,n);return function(...l){let p=u(...l);return p&&typeof p=="object"?Ll(p,N_,n):p}}return k_(s,a,c,r,n)}return typeof s=="function"?s.bind(r):s&&typeof s=="object"?Ll(s,a,n):s}})}function O_(e,t){return Ll(e,"",An(t))}var Fr="auto.ai.langchain",M_={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"};var Yt=(e,t,n)=>{n!=null&&(e[t]=n)}
20,Ft=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function Un(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Do(e){if(Array.isArray(e))try{let t=e.map(n=>n&&typeof n=="object"&&cr(n)?Br(n):n);return JSON.stringify(t)}catch{return String(e)}return Un(e)}function Ji(e){let t=e.toLowerCase();return M_[t]??t}function P_(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function Ul(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function Ki(e){return e.map(t=>{let n=t._getType;if(typeof n=="function"){let o=n.call(t);return{role:Ji(o),content:Do(t.content)}}if(t.lc===1&&t.kwargs){let o=t.id,i=Array.isArray(o)&&o.length>0?o[o.length-1]:"",s=typeof i=="string"?P_(i):"user";return{role:Ji(s),content:Do(t.kwargs?.content)}}if(t.type){let o=String(t.type).toLowerCase();return{role:Ji(o),content:Do(t.content)}}if(t.role)return{role:Ji(String(t.role)),content:Do(t.content)};let r=t.constructor?.name;return r&&r!=="Object"?{role:Ji(P_(r)),content:Do(t.content)}:{role:"user",content:Do(t.content)}})}function NA(e,t,n){let r={},o="kwargs"in e?e.kwargs:void 0,i=t?.temperature??n?.ls_temperature??o?.temperature;Ft(r,or,i);let s=t?.max_tokens??n?.ls_max_tokens??o?.max_tokens;Ft(r,Oo,s);let a=t?.top_p??o?.top_p;Ft(r,sr,a);let c=t?.frequency_penalty;Ft(r,ir,c);let u=t?.presence_penalty;return Ft(r,Mo,u),t&&"stream"in t&&Yt(r,ko,!!t.stream),r}function L_(e,t,n,r,o){return f({[rr]:Un(e??"langchain"),[vt]:"chat",[Ge]:Un(t),[W]:Fr},NA(n,r,o))}function U_(e,t,n,r,o){let i=o?.ls_provider,s=r?.model??o?.ls_model_name??"unknown",a=L_(i,s,e,r,o);if(n&&Array.isArray(t)&&t.length>0){Yt(a,Vt,t.length);let c=t.map(u=>({role:"user",content:u}));Yt(a,cn,Un(c))}return a}function D_(e,t,n,r,o){let i=o?.ls_provider??e.id?.[2],s=r?.model??o?.ls_model_name??"unknown",a=L_(i,s,e,r,o);if(n&&Array.isArray(t)&&t.length>0){let c=Ki(t.flat()),{systemInstructions:u,filteredMessages:d}=Rn(c);u&&Yt(a,bn,u);let l=Array.isArray(d)?d.length:0;Yt(a,Vt,l);let p=ur(d);Yt(a,cn,Un(p))}return a}function CA(e,t){let n=[],r=e.flat();for(let o of r){let i=o.message?.content;if(Array.isArray(i))for(let s of i){let a=s;a.type==="tool_use"&&n.push(a)}}n.length>0&&Yt(t,Ye,Un(n))}function xA(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;if(n)Ft(t,Ut,n.promptTokens),Ft(t,Dt,n.completionTokens),Ft(t,Bt,n.totalTokens);else if(r){Ft(t,Ut,r.input_tokens),Ft(t,Dt,r.output_tokens);let o=Number(r.input_tokens),i=Number(r.output_tokens),s=(Number.isNaN(o)?0:o)+(Number.isNaN(i)?0:i);s>0&&Ft(t,Bt,s),r.cache_creation_input_tokens!==void 0&&Ft(t,Lh,r.cache_creation_input_tokens),r.cache_read_input_tokens!==void 0&&Ft(t,Uh,r.cache_read_input_tokens)}}function B_(e,t){if(!e)return;let n={};if(Array.isArray(e.generations)){let u=e.generations.flat().map(d=>d.generationInfo?.finish_reason?d.generationInfo.finish_reason:d.generation_info?.finish_reason?d.generation_info.finish_reason:null).filter(d=>typeof d=="string");if(u.length>0&&Yt(n,Rt,Un(u)),CA(e.generations,n),t){let d=e.generations.flat().map(l=>l.text??l.message?.content).filter(l=>typeof l=="string");d.length>0&&Yt(n,He,Un(d))}}xA(e.llmOutput,n);let r=e.llmOutput,i=e.generations?.[0]?.[0]?.message,s=r?.model_name??r?.model??i?.response_metadata?.model_name;s&&Yt(n,at,s);let a=r?.id??i?.id;a&&Yt(n,qt,a);let c=r?.stop_reason??i?.response_metadata?.finish_reason;return c&&Yt(n,Mh,Un(c)),n}function F_(e={}){let{recordInputs:t,recordOutputs:n}=An(e),r=new Map,o=s=>{let a=r.get(s);a?.isRecording()&&(a.end(),r.delete(s))},i={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(s,a,c,u,d,l,p,m){let h=Ul(l),g=U_(s,a,t,h,p),S=g[Ge],T=g[vt];yt({name:`${T} ${S}`,op:"gen_ai.chat",attributes:E(f({},g),{[pe]:"gen_ai.chat"})},A=>(r.set(c,A),A))},handleChatModelStart(s,a,c,u,d,l,p,m){let h=Ul(l),g=D_(s,a,t,h,p),S=g[Ge],T=g[vt];yt({name:`${T} ${S}`,op:"gen_ai.chat",attributes:E(f({},g),{[pe]:"gen_ai.chat"})},A=>(r.set(c,A),A))},handleLLMEnd(s,a,c,u,d){let l=r.get(a);if(l?.isRecording()){let p=B_(s,n);p&&l.setAttributes(p),o(a)}},handleLLMError(s,a){let c=r.get(a);c?.isRecording()&&(c.setStatus({code:2,message:"internal_error"}),o(a)),X(s,{mechanism:{handled:!1,type:`${Fr}.llm_error_handler`}})},handleChainStart(s,a,c,u,d,l,p,m){let h=m||s.name||"unknown_chain",g={[W]:"auto.ai.langchain","langchain.chain.name":h};t&&(g["langchain.chain.inputs"]=JSON.stringify(a)),yt({name:`chain ${h}`,op:"gen_ai.invoke_agent",attributes:E(f({},g),{[pe]:"gen_ai.invoke_agent"})},S=>(r.set(c,S),S))},handleChainEnd(s,a){let c=r.get(a);c?.isRecording()&&(n&&c.setAttributes({"langchain.chain.outputs":JSON.stringify(s)}),o(a))},handleChainError(s,a){let c=r.get(a);c?.isRecording()&&(c.setStatus({code:2,message:"internal_error"}),o(a)),X(s,{mechanism:{handled:!1,type:`${Fr}.chain_error_handler`}})},handleToolStart(s,a,c,u){let d=s.name||"unknown_tool",l={[W]:Fr,[Bh]:d};t&&(l[Fh]=a),yt({name:`execute_tool ${d}`,op:"gen_ai.execute_tool",attributes:E(f({},l),{[pe]:"gen_ai.execute_tool"})},p=>
20(r.set(c,p),p))},handleToolEnd(s,a){let c=r.get(a);c?.isRecording()&&(n&&c.setAttributes({[Gh]:JSON.stringify(s)}),o(a))},handleToolError(s,a){let c=r.get(a);c?.isRecording()&&(c.setStatus({code:2,message:"internal_error"}),o(a)),X(s,{mechanism:{handled:!1,type:`${Fr}.tool_error_handler`}})},copy(){return i},toJSON(){return{lc:1,type:"not_implemented",id:i.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:i.lc_id}}};return i}var Dl="auto.ai.langgraph";function wA(e){if(!e||e.length===0)return null;let t=[];for(let n of e)if(n&&typeof n=="object"){let r=n.tool_calls;r&&Array.isArray(r)&&t.push(...r)}return t.length>0?t:null}function kA(e){let t=e,n=0,r=0,o=0;if(t.usage_metadata&&typeof t.usage_metadata=="object"){let i=t.usage_metadata;return typeof i.input_tokens=="number"&&(n=i.input_tokens),typeof i.output_tokens=="number"&&(r=i.output_tokens),typeof i.total_tokens=="number"&&(o=i.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:o}}if(t.response_metadata&&typeof t.response_metadata=="object"){let i=t.response_metadata;if(i.tokenUsage&&typeof i.tokenUsage=="object"){let s=i.tokenUsage;typeof s.promptTokens=="number"&&(n=s.promptTokens),typeof s.completionTokens=="number"&&(r=s.completionTokens),typeof s.totalTokens=="number"&&(o=s.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:o}}function OA(e,t){let n=t;if(n.response_metadata&&typeof n.response_metadata=="object"){let r=n.response_metadata;r.model_name&&typeof r.model_name=="string"&&e.setAttribute(at,r.model_name),r.finish_reason&&typeof r.finish_reason=="string"&&e.setAttribute(Rt,[r.finish_reason])}}function G_(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return!t||!Array.isArray(t)||t.length===0?null:t.map(n=>({name:n.lc_kwargs?.name,description:n.lc_kwargs?.description,schema:n.lc_kwargs?.schema}))}function H_(e,t,n){let o=n?.messages;if(!o||!Array.isArray(o))return;let i=t?.length??0,s=o.length>i?o.slice(i):[];if(s.length===0)return;let a=wA(s);a&&e.setAttribute(Ye,JSON.stringify(a));let c=Ki(s);e.setAttribute(He,JSON.stringify(c));let u=0,d=0,l=0;for(let p of s){let m=kA(p);u+=m.inputTokens,d+=m.outputTokens,l+=m.totalTokens,OA(e,p)}u>0&&e.setAttribute(Ut,u),d>0&&e.setAttribute(Dt,d),l>0&&e.setAttribute(Bt,l)}function $_(e,t){return new Proxy(e,{apply(n,r,o){return Tt({op:"gen_ai.create_agent",name:"create_agent",attributes:{[W]:Dl,[pe]:"gen_ai.create_agent",[vt]:"create_agent"}},i=>{try{let s=Reflect.apply(n,r,o),a=o.length>0?o[0]:{};a?.name&&typeof a.name=="string"&&(i.setAttribute(Rl,a.name),i.updateName(`create_agent ${a.name}`));let c=s.invoke;return c&&typeof c=="function"&&(s.invoke=MA(c.bind(s),s,a,t)),s}catch(s){throw i.setStatus({code:2,message:"internal_error"}),X(s,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),s}})}})}function MA(e,t,n,r){return new Proxy(e,{apply(o,i,s){return Tt({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[W]:Dl,[pe]:Dh,[vt]:"invoke_agent"}},a=>x(null,null,function*(){try{let c=n?.name;c&&typeof c=="string"&&(a.setAttribute(Ph,c),a.setAttribute(Rl,c),a.updateName(`invoke_agent ${c}`));let l=(s.length>1?s[1]:void 0)?.configurable?.thread_id;l&&typeof l=="string"&&a.setAttribute(zi,l);let p=G_(t);p&&a.setAttribute(ar,JSON.stringify(p));let m=r.recordInputs,h=r.recordOutputs,g=s.length>0?s[0]?.messages??[]:[];if(g&&m){let T=Ki(g),{systemInstructions:A,filteredMessages:U}=Rn(T);A&&a.setAttribute(bn,A);let M=ur(U),V=Array.isArray(U)?U.length:0;a.setAttributes({[cn]:JSON.stringify(M),[Vt]:V})}let S=yield Reflect.apply(o,i,s);return h&&H_(a,g??null,S),S}catch(c){throw a.setStatus({code:2,message:"internal_error"}),X(c,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),c}}))}})}function W_(e,t){return e.compile=$_(e.compile,An(t)),e}function ja(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}var Bo=C;function Bl(){return"history"in Bo&&!!Bo.history}function PA(){if(!("fetch"in Bo))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Xi(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Qi(){if(typeof EdgeRuntime=="string")return!0;
20if(!PA())return!1;if(Xi(Bo.fetch))return!0;let e=!1,t=Bo.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Xi(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 Fl(){return"ReportingObserver"in Bo}function Gr(e,t){let n="fetch";tt(n,e),nt(n,()=>z_(void 0,t))}function Gl(e){let t="fetch-body-resolved";tt(t,e),nt(t,()=>z_(UA))}function z_(e,t=!1){t&&!Qi()||Ee(C,"fetch",function(n){return function(...r){let o=new Error,{method:i,url:s}=DA(r),a={args:r,fetchData:{method:i,url:s},startTimestamp:oe()*1e3,virtualError:o,headers:BA(r)};return e||Fe("fetch",f({},a)),n.apply(C,r).then(c=>x(null,null,function*(){return e?e(c):Fe("fetch",E(f({},a),{endTimestamp:oe()*1e3,response:c})),c}),c=>{Fe("fetch",E(f({},a),{endTimestamp:oe()*1e3,error:c})),rt(c)&&c.stack===void 0&&(c.stack=o.stack,Te(c,"framesToPop",1));let d=I()?.getOptions().enhanceFetchErrorMessages??"always";if(d!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{let m=new URL(a.fetchData.url).host;d==="always"?c.message=`${c.message} (${m})`:Te(c,"__sentry_fetch_url_host__",m)}catch{}throw c})}})}function LA(e,t){return x(this,null,function*(){if(e?.body){let n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:a}=yield r.read();clearTimeout(s),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}})}function UA(e){let t;try{t=e.clone()}catch{return}LA(t,()=>{Fe("fetch-body-resolved",{endTimestamp:oe()*1e3,response:e})})}function za(e,t){return!!e&&typeof e=="object"&&!!e[t]}function j_(e){return typeof e=="string"?e:e?za(e,"url")?e.url:e.toString?e.toString():"":""}function DA(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:j_(n),method:za(r,"method")?String(r.method).toUpperCase():Si(n)&&za(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:j_(t),method:za(t,"method")?String(t.method).toUpperCase():"GET"}}function BA(e){let[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Si(t))return new Headers(t.headers)}catch{}}function Hl(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function $l(){return"npm"}function q_(){return!Hl()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function lr(){return typeof window<"u"&&(!q_()||FA())}function FA(){return C.process?.type==="renderer"}var ln=C,_e=ln.document,Zi=ln.navigator,lg="Report a Bug",GA="Cancel",HA="Send Bug Report",$A="Confirm",WA="Report a Bug",jA="[email protected]",zA="Email",qA="What's the bug? What did you expect?",VA="Description",YA="Your Name",JA="Name",KA="Thank you for your report!",XA="(required)",QA="Add a screenshot",ZA="Remove screenshot",eR="Highlight",tR="Hide",nR="Remove",rR="widget",oR="api",iR=5e3,dg=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");let n=I();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&L().setTags(e.tags);let r=La(f({source:oR,url:dt()},e),t);return new Promise((o,i)=>{let s=setTimeout(()=>i("Unable to determine if Feedback was correctly sent."),3e4),a=n.on("afterSendEvent",(c,u)=>{if(c.event_id===r)return clearTimeout(s),a(),u?.statusCode&&u.statusCode>
20=200&&u.statusCode<300?o(r):u?.statusCode===403?i("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):i("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},Ja=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function sR(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Zi.userAgent)||/Macintosh/i.test(Zi.userAgent)&&Zi.maxTouchPoints&&Zi.maxTouchPoints>1||!isSecureContext)}function qa(e,t){return E(f(f({},e),t),{tags:f(f({},e.tags),t.tags),onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:f(f({},e.themeDark),t.themeDark),themeLight:f(f({},e.themeLight),t.themeLight)})}function aR(e){let t=_e.createElement("style");return t.textContent=` 21.widget__actor { 22 position: fixed; 23 z-index: var(--z-index); 24 margin: var(--page-margin); 25 inset: var(--actor-inset); 26 27 display: flex; 28 align-items: center; 29 gap: 8px; 30 padding: 16px; 31 32 font-family: inherit; 33 font-size: var(--font-size); 34 font-weight: 600; 35 line-height: 1.14em; 36 text-decoration: none; 37 38 background: var(--actor-background, var(--background)); 39 border-radius: var(--actor-border-radius, 1.7em/50%); 40 border: var(--actor-border, var(--border));
41 box-shadow: var(--actor-box-shadow, var(--box-shadow)); 42 color: var(--actor-color, var(--foreground)); 43 fill: var(--actor-color, var(--foreground)); 44 cursor: pointer; 45 opacity: 1; 46 transition: transform 0.2s ease-in-out; 47 transform: translate(0, 0) scale(1); 48} 49.widget__actor[aria-hidden="true"] { 50 opacity: 0; 51 pointer-events: none; 52 visibility: hidden; 53 transform: translate(0, 16px) scale(0.98); 54} 55 56.widget__actor:hover { 57 background: var(--actor-hover-background, var(--background)); 58 filter: var(--interactive-filter); 59} 60 61.widget__actor svg { 62 width: 1.14em; 63 height: 1.14em; 64} 65 66@media (max-width: 600px) { 67 .widget__actor span { 68 display: none; 69 } 70} 71`,e&&t.setAttribute("nonce",e),t}function Gt(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}var Fo=20,cR="http://www.w3.org/2000/svg";function uR(){let e=a=>ln.document.createElementNS(cR,a),t=Gt(e("svg"),{width:`${Fo}`,height:`${Fo}`,viewBox:`0 0 ${Fo} ${Fo}`,fill:"var(--actor-color, var(--foreground))"}),n=Gt(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Gt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);let o=e("defs"),i=Gt(e("clipPath"),{id:"clip0_57_80"}),s=Gt(e("rect"),{width:`${Fo}`,height:`${Fo}`,fill:"white"});return i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),t}function lR({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let o=_e.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||lg,o.appendChild(uR()),e){let s=_e.createElement("span");s.appendChild(_e.createTextNode(e)),o.appendChild(s)}let i=aR(r);return{el:o,appendToDom(){n.appendChild(i),n.appendChild(o)},removeFromDom(){o.remove(),i.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}var fg="rgba(88, 74, 192, 1)",dR={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:fg,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},V_={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackgroun
71d:fg,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function Y_(e){return` 72 --foreground: ${e.foreground}; 73 --background: ${e.background}; 74 --accent-foreground: ${e.accentForeground}; 75 --accent-background: ${e.accentBackground}; 76 --success-color: ${e.successColor}; 77 --error-color: ${e.errorColor}; 78 --border: ${e.border}; 79 --box-shadow: ${e.boxShadow}; 80 --outline: ${e.outline}; 81 --interactive-filter: ${e.interactiveFilter}; 82 `}function J_({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let o=_e.createElement("style");return o.textContent=` 83:host { 84 --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; 85 --font-size: 14px; 86 --z-index: 100000; 87 88 --page-margin: 16px; 89 --inset: auto 0 0 auto; 90 --actor-inset: var(--inset); 91 92 font-family: var(--font-family); 93 font-size: var(--font-size); 94 95 ${e!=="system"?`color-scheme: only ${e};`:""} 96 97 ${Y_(e==="dark"?f(f({},V_),t):f(f({},dR),n))} 98} 99 100${e==="system"?` 101@media (prefers-color-scheme: dark) { 102 :host { 103 color-scheme: only dark; 104 105 ${Y_(f(f({},V_),t))} 106 } 107}`:""} 108`,r&&o.setAttribute("nonce",r),o}var tc=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:o="sentry-feedback",autoInject:i=!0,showBranding:s=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:u=!0,showName:d=!0,enableScreenshot:l=!0,useSentryUser:p={email:"email",name:"username"},tags:m,styleNonce:h,scriptNonce:g,colorScheme:S="system",themeLight:T={},themeDark:A={},addScreenshotButtonLabel:U=QA,cancelButtonLabel:M=GA,confirmButtonLabel:V=$A,emailLabel:G=zA,emailPlaceholder:y=jA,formTitle:P=WA,isRequiredLabel:q=XA,messageLabel:v=VA,messagePlaceholder:F=qA,nameLabel:O=JA,namePlaceholder:B=YA,removeScreenshotButtonLabel:$=ZA,submitButtonLabel:se=HA,successMessageText:re=KA,triggerLabel:ue=lg,triggerAriaLabel:N="",highlightToolText:J=eR,hideToolText:k=tR,removeHighlightText:Q=nR,onFormOpen:me,onFormClose:le,onSubmitSuccess:Pe,onSubmitError:ct,onFormSubmitted:jn}={})=>{let Je={id:o,autoInject:i,showBranding:s,isEmailRequired:a,isNameRequired:c,showEmail:u,showName:d,enableScreenshot:l,useSentryUser:p,tags:m,styleNonce:h,scriptNonce:g,colorScheme:S,themeDark:A,themeLight:T,triggerLabel:ue,triggerAriaLabel:N,cancelButtonLabel:M,submitButtonLabel:se,confirmButtonLabel:V,formTitle:P,emailLabel:G,emailPlaceholder:y,messageLabel:v,messagePlaceholder:F,nameLabel:O,namePlaceholder:B,successMessageText:re,isRequiredLabel:q,addScreenshotButtonLabel:U,removeScreenshotButtonLabel:$,highlightToolText:J,hideToolText:k,removeHighlightText:Q,onFormClose:le,onFormOpen:me,onSubmitError:ct,onSubmitSuccess:Pe,onFormSubmitted:jn},Ke=null,en=null,tn=[],fi=he=>{if(!Ke){let Ne=_e.createElement("div");Ne.id=String(he.id),_e.body.appendChild(Ne),Ke=Ne.attachShadow({mode:"open"}),en=J_(he),Ke.appendChild(en)}return Ke},Us=he=>x(null,null,function*(){let Ne=he.enableScreenshot&&sR(),Ct,Xe;try{Ct=(t?t():yield e("feedbackModalIntegration",g))(),Di(Ct)}catch{throw Ja&&_.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{let je=Ne?n?n():yield e("feedbackScreenshotIntegration",g):void 0;je&&(Xe=je(),Di(Xe))}catch{Ja&&_.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let K=Ct.createDialog({options:E(f({},he),{onFormClose:()=>{K?.close(),he.onFormClose?.()},onFormSubmitted:()=>{K?.close(),he.onFormSubmitted?.()}}),screenshotIntegration:Xe,sendFeedback:dg,shadow:fi(he)});return K}),Ds=(he,Ne={})=>{let Ct=qa(Je,Ne),Xe=typeof he=="string"?_e.querySelector(he):typeof he.addEventListener=="function"?he:null;if(!Xe)throw Ja&&_.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let K=null,je=()=>x(null,null,function*(){K||(K=yield Us(E(f({},Ct),{onFormSubmitted:()=>{K?.removeFromDom(),Ct.onFormSubmitted?.()}}))),K.appendToDom(),K.open()});Xe.addEventListener("click",je);let Z=()=>{tn=tn.filter(We=>We!==Z),K?.removeFromDom(),K=null,Xe.removeEventListener("click",je)};return tn.push(Z),Z},nn=(he={})=>{let Ne=qa(Je,he),Ct=fi(Ne),Xe=lR({triggerLabel:Ne.triggerLabel,triggerAriaLabel:Ne.triggerAriaLabel,shadow:Ct,styleNonce:h});return Ds(Xe.el,E(f({},Ne),{onFormOpen(){Xe.hide()},onFormClose(){Xe.show()},onFormSubmitted(){Xe.show()}})),Xe};return{name:"Feedback",setupOnce(){!lr()||!Je.autoInject||(_e.readyState==="loading"?_e.addEventListener("DOMContentLoaded",()=>nn().appendToDom()):nn().appendToDom())},attachTo:Ds,createWidget(he={}){let Ne=nn(qa(Je,he));return Ne.appendToDom(),Ne},createForm(){return x(this,arguments,function*(he={}){return Us(qa(Je,he))})},setTheme(he){if(Je.colorScheme=he,Ke){let Ne=J_(Je);en?Ke.replaceChild(Ne,en):Ke.prepend(Ne),en=Ne}},remove(){Ke&&(Ke.parentElement?.remove(),Ke=null,en=null),tn.forEac
108h(he=>he()),tn=[]}}};function fR(){return I()?.getIntegrationByName("Feedback")}var nc,Se,pg,Hr,K_,mg,Yl,es={},Ql=[],pR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zl=Array.isArray;function fr(e,t){for(var n in t)e[n]=t[n];return e}function hg(e){var t=e.parentNode;t&&t.removeChild(e)}function te(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?nc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Ka(e,s,r,o,null)}function Ka(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++pg,__i:-1,__u:0};return o==null&&Se.vnode!=null&&Se.vnode(i),i}function ts(e){return e.children}function Xa(e,t){this.props=e,this.context=t}function Ho(e,t){if(t==null)return e.__?Ho(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ho(e):null}function mR(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=fr({},o)).__v=o.__v+1,Se.vnode&&Se.vnode(r),ed(s,r,o,e.__n,s.ownerSVGElement!==void 0,32&o.__u?[i]:null,t,i??Ho(o),!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&_g(r),r}function _g(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return _g(e)}}function X_(e){(!e.__d&&(e.__d=!0)&&Hr.push(e)&&!ec.__r++||K_!==Se.debounceRendering)&&((K_=Se.debounceRendering)||mg)(ec)}function ec(){var e,t,n,r=[],o=[];for(Hr.sort(Yl);e=Hr.shift();)e.__d&&(n=Hr.length,t=mR(e,r,o)||t,n===0||Hr.length>n?(Jl(r,t,o),o.length=r.length=0,t=void 0,Hr.sort(Yl)):t&&Se.__c&&Se.__c(t,Ql));t&&Jl(r,t,o),ec.__r=0}function gg(e,t,n,r,o,i,s,a,c,u,d){var l,p,m,h,g,S=r&&r.__k||Ql,T=t.length;for(n.__d=c,hR(n,t,S),c=n.__d,l=0;l<T;l++)(m=n.__k[l])!=null&&typeof m!="boolean"&&typeof m!="function"&&(p=m.__i===-1?es:S[m.__i]||es,m.__i=l,ed(e,m,p,o,i,s,a,c,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&td(p.ref,null,m),d.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),65536&m.__u||p.__k===m.__k?c=Sg(m,c,e):typeof m.type=="function"&&m.__d!==void 0?c=m.__d:h&&(c=h.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=c,n.__e=g}function hR(e,t,n){var r,o,i,s,a,c=t.length,u=n.length,d=u,l=0;for(e.__k=[],r=0;r<c;r++)(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Ka(null,o,null,null,o):Zl(o)?Ka(ts,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Ka(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=_R(o,n,s=r+l,d),o.__i=a,i=null,a!==-1&&(d--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&l--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a===s+1?l++:a>s?d>c-s?l+=a-s:l--:l=a<s&&a==s-1?a-s:0,a!==r+l&&(o.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=Ho(i)),Kl(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<u;r++)(i=n[r])!=null&&(131072&i.__u)==0&&(i.__e==e.__d&&(e.__d=Ho(i)),Kl(i,i))}function Sg(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Sg(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function _R(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,c=t[n];if(c===null||c&&o==c.key&&i===c.type)return n;if(r>(c!=null&&(131072&c.__u)==0?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&(131072&c.__u)==0&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&(131072&c.__u)==0&&o==c.key&&i===c.type)return a;a++}}return-1}function Q_(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||pR.test(t)?n:n+"px"}function Va(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Q_(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Q_(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?eg:Z_,i)):e.removeEventListener(t,i?eg:Z_,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Z_(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(Se.event?Se.event(e):e)}}function eg(e){if(this.l)return this.l[e.type+!0](Se.event?Se.event(e):e)}function ed(e,t,n,r,o,i,s,a,c,u){var d,l,p,m,h,g,S,T,A,U,M,V,G,y,P,q=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(d=Se.__b)&&d(t);e:if(typeof q=="function")try{if(T=t.props,A=(d=q.contextType)&&r[d.__c],U=d?A?A.props.value:d.__:r,n.__c?S=(l=t.__c=n.__c).__=l.__E:("prototype"in q&&q.prototype.render?t.__c=l=new q(T,U):(t.__c=l=new Xa(T,U),l.constructor=q,l.render=SR),A&&A.sub(l),l.props=T,l.state||(l.state={}),l.context=U,l.__n=r,p=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),q.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=fr({},l.__s)),fr(l.__s,q.getDerivedStateFromProps(T,l.__s))),m=l.props,h=l.state,l.__v=t,p)q.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(q.getDerivedStateFromProps==null&&T!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(T,U),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(T,l.__s,U)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=T,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEac
vendor: 3,988 bytes, line 108
108h(function(v){v&&(v.__=t)}),M=0;M<l._sb.length;M++)l.__h.push(l._sb[M]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(T,l.__s,U),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,h,g)})}if(l.context=U,l.props=T,l.__P=e,l.__e=!1,V=Se.__r,G=0,"prototype"in q&&q.prototype.render){for(l.state=l.__s,l.__d=!1,V&&V(t),d=l.render(l.props,l.state,l.context),y=0;y<l._sb.length;y++)l.__h.push(l._sb[y]);l._sb=[]}else do l.__d=!1,V&&V(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++G<25);l.state=l.__s,l.getChildContext!=null&&(r=fr(fr({},r),l.getChildContext())),p||l.getSnapshotBeforeUpdate==null||(g=l.getSnapshotBeforeUpdate(m,h)),gg(e,Zl(P=d!=null&&d.type===ts&&d.key==null?d.props.children:d)?P:[P],t,n,r,o,i,s,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),S&&(l.__E=l.__=null)}catch(v){t.__v=null,c||i!=null?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),Se.__e(v,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=gR(n.__e,t,n,r,o,i,s,c,u);(d=Se.diffed)&&d(t)}function Jl(e,t,n){for(var r=0;r<n.length;r++)td(n[r],n[++r],n[++r]);Se.__c&&Se.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){Se.__e(i,o.__v)}})}function gR(e,t,n,r,o,i,s,a,c){var u,d,l,p,m,h,g,S=n.props,T=t.props,A=t.type;if(A==="svg"&&(o=!0),i!=null){for(u=0;u<i.length;u++)if((m=i[u])&&"setAttribute"in m==!!A&&(A?m.localName===A:m.nodeType===3)){e=m,i[u]=null;break}}if(e==null){if(A===null)return document.createTextNode(T);e=o?document.createElementNS("http://www.w3.org/2000/svg",A):document.createElement(A,T.is&&T),i=null,a=!1}if(A===null)S===T||a&&e.data===T||(e.data=T);else{if(i=i&&nc.call(e.childNodes),S=n.props||es,!a&&i!=null)for(S={},u=0;u<e.attributes.length;u++)S[(m=e.attributes[u]).name]=m.value;for(u in S)m=S[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=m:u==="key"||u in T||Va(e,u,null,m,o));for(u in T)m=T[u],u=="children"?p=m:u=="dangerouslySetInnerHTML"?d=m:u=="value"?h=m:u=="checked"?g=m:u==="key"||a&&typeof m!="function"||S[u]===m||Va(e,u,m,S[u],o);if(d)a||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),gg(e,Zl(p)?p:[p],t,n,r,o&&A!=="foreignObject",i,s,i?i[0]:n.__k&&Ho(n,0),a,c),i!=null)for(u=i.length;u--;)i[u]!=null&&hg(i[u]);a||(u="value",h!==void 0&&(h!==e[u]||A==="progress"&&!h||A==="option"&&h!==S[u])&&Va(e,u,h,S[u],!1),u="checked",g!==void 0&&g!==e[u]&&Va(e,u,g,S[u],!1))}return e}function td(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){Se.__e(r,n)}}function Kl(e,t,n){var r,o;if(Se.unmount&&Se.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||td(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){Se.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Kl(r[o],t,n||typeof e.type!="function");n||e.__e==null||hg(e.__e),e.__=e.__e=e.__d=void 0}function SR(e,t,n){return this.constructor(e,n)}function ER(e,t,n){var r,o,i,s;Se.__&&Se.__(e,t),o=(r=!1)?null:t.__k,i=[],s=[],ed(t,e=t.__k=te(ts,null,[e]),o||es,es,t.ownerSVGElement!==void 0,o?null:t.firstChild?nc.call(t.childNodes):null,i,o?o.__e:t.firstChild,r,s),e.__d=void 0,Jl(i,e,s)}nc=Ql.slice,Se={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},pg=0,Xa.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=fr({},this.state),typeof e=="function"&&(e=e(fr({},n),this.props)),e&&fr(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),X_(this))},Xa.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),X_(this))},Xa.prototype.render=ts,Hr=[],mg=typeof Promise=="function"?Promise.prototype.then.bind(Prom
108ise.resolve()):setTimeout,Yl=function(e,t){return e.__v.__b-t.__v.__b},ec.__r=0;var Dn,ge,Wl,tg,$o=0,Eg=[],Qa=[],xe=Se,ng=xe.__b,rg=xe.__r,og=xe.diffed,ig=xe.__c,sg=xe.unmount,ag=xe.__;function Wr(e,t){xe.__h&&xe.__h(ge,e,$o||t),$o=0;var n=ge.__H||(ge.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Qa}),n.__[e]}function $r(e){return $o=1,Tg(Ig,e)}function Tg(e,t,n){var r=Wr(Dn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ig(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,a);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=ge,!ge.u)){var o=function(a,c,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!i||i.call(this,a,c,u);var l=!1;return d.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(l=!0)}}),!(!l&&r.__c.props===a)&&(!i||i.call(this,a,c,u))};ge.u=!0;var i=ge.shouldComponentUpdate,s=ge.componentWillUpdate;ge.componentWillUpdate=function(a,c,u){if(this.__e){var d=i;i=void 0,o(a,c,u),i=d}s&&s.call(this,a,c,u)},ge.shouldComponentUpdate=o}return r.__N||r.__}function TR(e,t){var n=Wr(Dn++,3);!xe.__s&&nd(n.__H,t)&&(n.__=e,n.i=t,ge.__H.__h.push(n))}function yg(e,t){var n=Wr(Dn++,4);!xe.__s&&nd(n.__H,t)&&(n.__=e,n.i=t,ge.__h.push(n))}function yR(e){return $o=5,ns(function(){return{current:e}},[])}function IR(e,t,n){$o=6,yg(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ns(e,t){var n=Wr(Dn++,7);return nd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Go(e,t){return $o=8,ns(function(){return e},t)}function bR(e){var t=ge.context[e.__c],n=Wr(Dn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ge)),t.props.value):e.__}function AR(e,t){xe.useDebugValue&&xe.useDebugValue(t?t(e):e)}function RR(e){var t=Wr(Dn++,10),n=$r();return t.__=e,ge.componentDidCatch||(ge.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function vR(){var e=Wr(Dn++,11);if(!e.__){for(var t=ge.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function NR(){for(var e;e=Eg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Za),e.__H.__h.forEach(Xl),e.__H.__h=[]}catch(t){e.__H.__h=[],xe.__e(t,e.__v)}}xe.__b=function(e){ge=null,ng&&ng(e)},xe.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ag&&ag(e,t)},xe.__r=function(e){rg&&rg(e),Dn=0;var t=(ge=e.__c).__H;t&&(Wl===ge?(t.__h=[],ge.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Qa,n.__N=n.i=void 0})):(t.__h.forEach(Za),t.__h.forEach(Xl),t.__h=[],Dn=0)),Wl=ge},xe.diffed=function(e){og&&og(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Eg.push(t)!==1&&tg===xe.requestAnimationFrame||((tg=xe.requestAnimationFrame)||CR)(NR)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Qa&&(n.__=n.__V),n.i=void 0,n.__V=Qa})),Wl=ge=null},xe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Za),n.__h=n.__h.filter(function(r){return!r.__||Xl(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],xe.__e(r,n.__v)}}),ig&&ig(e,t)},xe.unmount=function(e){sg&&sg(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Za(r)}catch(o){t=o}}),n.__H=void 0,t&&xe.__e(t,n.__v))};var cg=typeof requestAnimationFrame=="function";function CR(e){var t,n=function(){clearTimeout(r),cg&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);cg&&(t=requestAnimationFrame(n))}function Za(e){var t=ge,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ge=t}function Xl(e){var t=ge;e.__c=e.__(),ge=t}function nd(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ig(e,t){return typeof t=="function"?t(e):t}var xR=Object.defineProperty({__proto__:null,useCallback:Go,useContext:bR,useDebugValue:AR,useEffect:TR,useErrorBoundary:RR,useId:vR,useImperativeHandle:IR,useLayoutEffect:yg,useMemo:ns,useReducer:Tg,useRef:yR,useState:$r},Symbol.toStringTag,{value:"Module"}),wR="http://www.w3.org/2000/svg";function kR(){let e=r=>_e.createElementNS(wR,r),t=Gt(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Gt(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function OR({options:e}){let t=ns(()=>({__html:kR().outerHTML}),[]);return te("h2",{class:"dialog__header"},te("span",{class:"dialog__title"},e.formTitle),e.showBranding?te("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function MR(e,t){let n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function jl(e,t){let n=e.get(t);return typeof n=="string"?n.trim():""}function PR({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:s,showEmail
108:a,showName:c,screenshotInput:u}){let{tags:d,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:p,cancelButtonLabel:m,emailLabel:h,emailPlaceholder:g,isEmailRequired:S,isNameRequired:T,messageLabel:A,messagePlaceholder:U,nameLabel:M,namePlaceholder:V,submitButtonLabel:G,isRequiredLabel:y}=e,[P,q]=$r(!1),[v,F]=$r(null),[O,B]=$r(!1),$=u?.input,[se,re]=$r(null),ue=Go(k=>{re(k),B(!1)},[]),N=Go(k=>{let Q=MR(k,{emailLabel:h,isEmailRequired:S,isNameRequired:T,messageLabel:A,nameLabel:M});return Q.length>0?F(`Please enter in the following required fields: ${Q.join(", ")}`):F(null),Q.length===0},[h,S,T,A,M]),J=Go(k=>x(null,null,function*(){q(!0);try{if(k.preventDefault(),!(k.target instanceof HTMLFormElement))return;let Q=new FormData(k.target),me=yield u&&O?u.value():void 0,le={name:jl(Q,"name"),email:jl(Q,"email"),message:jl(Q,"message"),attachments:me?[me]:void 0};if(!N(le))return;try{let Pe=yield o({name:le.name,email:le.email,message:le.message,source:rR,tags:d},{attachments:le.attachments});i(le,Pe)}catch(Pe){Ja&&_.error(Pe),F(Pe),s(Pe)}}finally{q(!1)}}),[u&&O,i,s]);return te("form",{class:"form",onSubmit:J},$&&O?te($,{onError:ue}):null,te("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:P},te("div",{class:"form__top"},v?te("div",{class:"form__error-container"},v):null,c?te("label",{for:"name",class:"form__label"},te(zl,{label:M,isRequiredLabel:y,isRequired:T}),te("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:V,required:T,type:"text"})):te("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?te("label",{for:"email",class:"form__label"},te(zl,{label:h,isRequiredLabel:y,isRequired:S}),te("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:S,type:"email"})):te("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),te("label",{for:"message",class:"form__label"},te(zl,{label:A,isRequiredLabel:y,isRequired:!0}),te("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:U,required:!0,rows:5})),$?te("label",{for:"screenshot",class:"form__label"},te("button",{class:"btn btn--default",disabled:P,type:"button",onClick:()=>{re(null),B(k=>!k)}},O?p:l),se?te("div",{class:"form__error-container"},se.message):null):null),te("div",{class:"btn-group"},te("button",{class:"btn btn--primary",disabled:P,type:"submit"},G),te("button",{class:"btn btn--default",disabled:P,type:"button",onClick:r},m))))}function zl({label:e,isRequired:t,isRequiredLabel:n}){return te("span",{class:"form__label__text"},e,t&&te("span",{class:"form__label__text--required"},n))}var Ya=16,ug=17,LR="http://www.w3.org/2000/svg";function UR(){let e=c=>ln.document.createElementNS(LR,c),t=Gt(e("svg"),{width:`${Ya}`,height:`${ug}`,viewBox:`0 0 ${Ya} ${ug}`,fill:"inherit"}),n=Gt(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Gt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Gt(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173
10810.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);let i=e("defs"),s=Gt(e("clipPath"),{id:"clip0_57_156"}),a=Gt(e("rect"),{width:`${Ya}`,height:`${Ya}`,fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),t}function DR(r){var o=r,{open:e,onFormSubmitted:t}=o,n=mn(o,["open","onFormSubmitted"]);let i=n.options,s=ns(()=>({__html:UR().outerHTML}),[]),[a,c]=$r(null),u=Go(()=>{a&&(clearTimeout(a),c(null)),t()},[a]),d=Go((l,p)=>{n.onSubmitSuccess(l,p),c(setTimeout(()=>{t(),c(null)},iR))},[t]);return te(ts,null,a?te("div",{class:"success__position",onClick:u},te("div",{class:"success__content"},i.successMessageText,te("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):te("dialog",{class:"dialog",onClick:i.onFormClose,open:e},te("div",{class:"dialog__position"},te("div",{class:"dialog__content",onClick:l=>{l.stopPropagation()}},te(OR,{options:i}),te(PR,E(f({},n),{onSubmitSuccess:d}))))))}var BR=` 109.dialog { 110 position: fixed; 111 z-index: var(--z-index); 112 margin: 0; 113 inset: 0; 114 115 display: flex; 116 align-items: center; 117 justify-content: center; 118 padding: 0; 119 height: 100vh; 120 width: 100vw; 121 122 color: var(--dialog-color, var(--foreground)); 123 fill: var(--dialog-color, var(--foreground)); 124 line-height: 1.75em; 125 126 background-color: rgba(0, 0, 0, 0.05); 127 border: none; 128 inset: 0; 129 opacity: 1; 130 transition: opacity 0.2s ease-in-out; 131} 132 133.dialog__position { 134 position: fixed; 135 z-index: var(--z-index); 136 inset: var(--dialog-inset); 137 padding: var(--page-margin); 138 display: flex; 139 max-height: calc(100vh - (2 * var(--page-margin))); 140} 141@media (max-width: 600px) { 142 .dialog__position { 143 inset: var(--page-margin); 144 padding: 0; 145 } 146} 147 148.dialog__position:has(.editor) { 149 inset: var(--page-margin); 150 padding: 0; 151} 152 153.dialog:not([open]) { 154 opacity: 0; 155 pointer-events: none; 156 visibility: hidden; 157} 158.dialog:not([open]) .dialog__content { 159 transform: translate(0, -16px) scale(0.98); 160} 161 162.dialog__content { 163 display: flex; 164 flex-direction: column; 165 gap: 16px; 166 padding: var(--dialog-padding, 24px); 167 max-width: 100%; 168 width: 100%; 169 max-height: 100%; 170 overflow: auto; 171 172 background: var(--dialog-background, var(--background)); 173 border-radius: var(--dialog-border-radius, 20px); 174 border: var(--dialog-border, var(--border));
175 box-shadow: var(--dialog-box-shadow, var(--box-shadow)); 176 transform: translate(0, 0) scale(1); 177 transition: transform 0.2s ease-in-out; 178} 179 180`,FR=` 181.dialog__header { 182 display: flex; 183 gap: 4px; 184 justify-content: space-between; 185 font-weight: var(--dialog-header-weight, 600); 186 margin: 0; 187} 188.dialog__title { 189 align-self: center; 190 width: var(--form-width, 272px); 191} 192 193@media (max-width: 600px) { 194 .dialog__title { 195 width: auto; 196 } 197} 198 199.dialog__position:has(.editor) .dialog__title { 200 width: auto; 201} 202 203 204.brand-link { 205 display: inline-flex; 206} 207.brand-link:focus-visible { 208 outline: var(--outline); 209} 210`,GR=` 211.form { 212 display: flex; 213 overflow: auto; 214 flex-direction: row; 215 gap: 16px; 216 flex: 1 0; 217} 218 219.form fieldset { 220 border: none; 221 margin: 0; 222 padding: 0; 223} 224 225.form__right { 226 flex: 0 0 auto; 227 display: flex; 228 overflow: auto; 229 flex-direction: column; 230 justify-content: space-between; 231 gap: 20px; 232 width: var(--form-width, 100%); 233} 234 235.dialog__position:has(.editor) .form__right { 236 width: var(--form-width, 272px); 237} 238 239.form__top { 240 display: flex; 241 flex-direction: column; 242 gap: 8px; 243} 244 245.form__error-container { 246 color: var(--error-color); 247 fill: var(--error-color); 248} 249 250.form__label { 251 display: flex; 252 flex-direction: column; 253 gap: 4px; 254 margin: 0px; 255} 256 257.form__label__text { 258 display: flex; 259 gap: 4px; 260 align-items: center; 261} 262 263.form__label__text--required { 264 font-size: 0.85em; 265} 266 267.form__input { 268 font-family: inherit; 269 line-height: inherit; 270 background: transparent; 271 box-sizing: border-box; 272 border: var(--input-border, var(--border)); 273 border-radius: var(--input-border-radius, 6px); 274 color: var(--input-color, inherit); 275 fill: var(--input-color, inherit); 276 font-size: var(--input-font-size, inherit); 277 font-weight: var(--input-font-weight, 500); 278 padding: 6px 12px; 279} 280 281.form__input::placeholder { 282 opacity: 0.65; 283 color: var(--input-placeholder-color, inherit); 284 filter: var(--interactive-filter); 285} 286 287.form__input:focus-visible { 288 outline: var(--input-focus-outline, var(--outline)); 289} 290 291.form__input--textarea { 292 font-family: inherit; 293 resize: vertical; 294} 295 296.error { 297 color: var(--error-color); 298 fill: var(--error-color); 299} 300`,HR=` 301.btn-group { 302 display: grid; 303 gap: 8px; 304} 305 306.btn { 307 line-height: inherit; 308 border: var(--button-border, var(--border)); 309 border-radius: var(--button-border-radius, 6px); 310 cursor: pointer; 311 font-family: inherit; 312 font-size: var(--button-font-size, inherit); 313 font-weight: var(--button-font-weight, 600); 314 padding: var(--button-padding, 6px 16px); 315} 316.btn[disabled] { 317 opacity: 0.6; 318 pointer-events: none; 319} 320 321.btn--primary { 322 color: var(--button-primary-color, var(--accent-foreground)); 323 fill: var(--button-primary-color, var(--accent-foreground)); 324 background: var(--button-primary-background, var(--accent-background)); 325 border: var(--button-primary-border, var(--border)); 326 border-radius: var(--button-primary-border-radius, 6px); 327 font-weight: var(--button-primary-font-weight, 500); 328} 329.btn--primary:hover { 330 color: var(--button-primary-hover-color, var(--accent-foreground)); 331 fill: var(--button-primary-hover-color, var(--accent-foreground)); 332 background: var(--button-primary-hover-background, var(--accent-background)); 333 filter: var(--interactive-filter); 334} 335.btn--primary:focus-visible { 336 background: var(--button-primary-hover-background, var(--accent-background)); 337 filter: var(--interactive-filter); 338 outline: var(--button-primary-focus-outline, var(--outline)); 339} 340 341.btn--default { 342 color: var(--button-color, var(--foreground)); 343 fill: var(--button-color, var(--foreground)); 344 background: var(--button-background, var(--background)); 345 border: var(--button-border, var(--border)); 346 border-radius: var(--button-border-radius, 6px); 347 font-weight: var(--button-font-weight, 500); 348} 349.btn--default:hover { 350 color: var(--button-color, var(--foreground)); 351 fill: var(--button-color, var(--foreground)); 352 background: var(--button-hover-background, var(--background)); 353 filter: var(--interactive-filter); 354} 355.btn--default:focus-visible { 356 background: var(--button-hover-background, var(--background)); 357 filter: var(--interactive-filter); 358 outline: var(--button-focus-outline, var(--outline)); 359} 360`,$R=` 361.success__position { 362 position: fixed; 363 inset: var(--dialog-inset); 364 padding: var(--page-margin); 365 z-index: var(--z-index); 366} 367.success__content { 368 background: var(--success-background, var(--background)); 369 border: var(--success-border, var(--border)); 370 border-radius: var(--success-border-radius, 1.7em/50%);
371 box-shadow: var(--success-box-shadow, var(--box-shadow)); 372 font-weight: var(--success-font-weight, 600); 373 color: var(--success-color); 374 fill: var(--success-color); 375 padding: 12px 24px; 376 line-height: 1.75em; 377 378 display: grid; 379 align-items: center; 380 grid-auto-flow: column; 381 gap: 6px; 382 cursor: default; 383} 384 385.success__icon { 386 display: flex; 387} 388`;function WR(e){let t=_e.createElement("style");return t.textContent=` 389:host { 390 --dialog-inset: var(--inset); 391} 392 393${BR} 394${FR} 395${GR} 396${HR} 397${$R} 398`,e&&t.setAttribute("nonce",e),t}function jR(){let e=L().getUser(),t=ae().getUser(),n=gn().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}var bg=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{let o=r,i=e.useSentryUser,s=jR(),a=_e.createElement("div"),c=WR(e.styleNonce),u="",d={get el(){return a},appendToDom(){!o.contains(c)&&!o.contains(a)&&(o.appendChild(c),o.appendChild(a))},removeFromDom(){a.remove(),c.remove(),_e.body.style.overflow=u},open(){p(!0),e.onFormOpen?.(),I()?.emit("openFeedbackWidget"),u=_e.body.style.overflow,_e.body.style.overflow="hidden"},close(){p(!1),_e.body.style.overflow=u}},l=t?.createInput({h:te,hooks:xR,dialog:d,options:e}),p=m=>{ER(te(DR,{options:e,screenshotInput:l,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(i&&s?.[i.name]||""),defaultEmail:String(i&&s?.[i.email]||""),onFormClose:()=>{p(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(h,g)=>{p(!1),e.onSubmitSuccess?.(h,g)},onSubmitError:h=>{e.onSubmitError?.(h)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:m}),a)};return d}});function zR({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function qR(e){let t=_e.createElement("style"),n="#1A141F",r="#302735";return t.textContent=` 399.editor { 400 display: flex; 401 flex-grow: 1; 402 flex-direction: column; 403} 404 405.editor__image-container { 406 justify-items: center; 407 padding: 15px; 408 position: relative; 409 height: 100%; 410 border-radius: var(--menu-border-radius, 6px); 411 412 background-color: ${n}; 413 background-image: repeating-linear-gradient( 414 -145deg, 415 transparent, 416 transparent 8px, 417 ${n} 8px, 418 ${n} 11px 419 ), 420 repeating-linear-gradient( 421 -45deg, 422 transparent, 423 transparent 15px, 424 ${r} 15px, 425 ${r} 16px 426 ); 427} 428 429.editor__canvas-container { 430 width: 100%; 431 height: 100%; 432 position: relative; 433 display: flex; 434 align-items: center; 435 justify-content: center; 436} 437 438.editor__canvas-container > * { 439 object-fit: contain; 440 position: absolute; 441} 442 443.editor__tool-container { 444 padding-top: 8px; 445 display: flex; 446 justify-content: center; 447} 448 449.editor__tool-bar { 450 display: flex; 451 gap: 8px; 452} 453 454.editor__tool { 455 display: flex; 456 padding: 8px 12px; 457 justify-content: center; 458 align-items: center; 459 border: var(--button-border, var(--border)); 460 border-radius: var(--button-border-radius, 6px); 461 background: var(--button-background, var(--background)); 462 color: var(--button-color, var(--foreground)); 463} 464 465.editor__tool--active { 466 background: var(--button-primary-background, var(--accent-background)); 467 color: var(--button-primary-color, var(--accent-foreground)); 468} 469 470.editor__rect { 471 position: absolute; 472 z-index: 2; 473} 474 475.editor__rect button { 476 opacity: 0; 477 position: absolute; 478 top: -12px; 479 right: -12px; 480 cursor: pointer; 481 padding: 0; 482 z-index: 3; 483 border: none; 484 background: none; 485} 486 487.editor__rect:hover button { 488 opacity: 1; 489} 490`,e&&t.setAttribute("nonce",e),t}function VR({h:e}){return function({action:n,setAction:r,options:o}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},o.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},o.hideToolText)))}}function YR({hooks:e}){function t(){let[n,r]=e.useState(ln.devicePixelRatio??1);return e.useEffect(()=>{let o=()=>{r(ln.devicePixelRatio)},i=matchMedia(`(resolution: ${ln.devicePixelRatio}dppx)`);return i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:o,onAfterScreenshot:i,onError:s}){let a=t();e.useEffect(()=>{x(null,null,function*(){r();let u=yield Zi.mediaDevices.getDisplayMedia({video:{width:ln.innerWidth*a,height:ln.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),d=_e.createElement("video");yield new Promise((l,p)=>{d.srcObject=u,d.onloadedmetadata=()=>
490{o(d,a),u.getTracks().forEach(m=>m.stop()),l()},d.play().catch(p)}),i()}).catch(s)},[])}}function JR(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function dr(e,t,n){if(!e)return;let r=e.getContext("2d",t);r&&n(e,r)}function ql(e,t){dr(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function Vl(e,t,n){dr(e,{alpha:!0},(r,o)=>{n.length&&(o.fillStyle="rgba(0, 0, 0, 0.25)",o.fillRect(0,0,r.width,r.height)),n.forEach(i=>{JR(i,o,t)})})}function KR({h:e,hooks:t,outputBuffer:n,dialog:r,options:o}){let i=YR({hooks:t}),s=VR({h:e}),a=zR({h:e}),c={__html:qR(o.styleNonce).innerText},u=r.el.style,d=({screenshot:l})=>{let[p,m]=t.useState("highlight"),[h,g]=t.useState([]),S=t.useRef(null),T=t.useRef(null),A=t.useRef(null),U=t.useRef(null),[M,V]=t.useState(1),G=t.useMemo(()=>{let O=_e.getElementById(o.id);if(!O)return"white";let B=getComputedStyle(O);return B.getPropertyValue("--button-primary-background")||B.getPropertyValue("--accent-background")},[o.id]);t.useLayoutEffect(()=>{let O=()=>{let B=S.current;B&&(dr(l.canvas,{alpha:!1},$=>{let se=Math.min(B.clientWidth/$.width,B.clientHeight/$.height);V(se)}),(B.clientHeight===0||B.clientWidth===0)&&setTimeout(O,0))};return O(),ln.addEventListener("resize",O),()=>{ln.removeEventListener("resize",O)}},[l]);let y=t.useCallback((O,B)=>{dr(O,{alpha:!0},($,se)=>{se.scale(B,B),$.width=l.canvas.width,$.height=l.canvas.height})},[l]);t.useEffect(()=>{y(T.current,l.dpi),ql(T.current,l.canvas)},[l]),t.useEffect(()=>{y(A.current,l.dpi),dr(A.current,{alpha:!0},(O,B)=>{B.clearRect(0,0,O.width,O.height)}),Vl(A.current,G,h)},[h,G]),t.useEffect(()=>{y(n,l.dpi),ql(n,l.canvas),dr(_e.createElement("canvas"),{alpha:!0},(O,B)=>{B.scale(l.dpi,l.dpi),O.width=l.canvas.width,O.height=l.canvas.height,Vl(O,G,h),ql(n,O)})},[h,l,G]);let P=O=>{if(!p||!U.current)return;let B=U.current.getBoundingClientRect(),$={type:p,x:O.offsetX/M,y:O.offsetY/M},se=(N,J)=>{let k=(J.clientX-B.x)/M,Q=(J.clientY-B.y)/M;return{type:N.type,x:Math.min(N.x,k),y:Math.min(N.y,Q),w:Math.abs(k-N.x),h:Math.abs(Q-N.y)}},re=N=>{dr(A.current,{alpha:!0},(J,k)=>{k.clearRect(0,0,J.width,J.height)}),Vl(A.current,G,[...h,se($,N)])},ue=N=>{let J=se($,N);J.w*M>=1&&J.h*M>=1&&g(k=>[...k,J]),_e.removeEventListener("mousemove",re),_e.removeEventListener("mouseup",ue)};_e.addEventListener("mousemove",re),_e.addEventListener("mouseup",ue)},q=t.useCallback(O=>B=>{B.preventDefault(),B.stopPropagation(),g($=>{let se=[...$];return se.splice(O,1),se})},[]),v={width:`${l.canvas.width*M}px`,height:`${l.canvas.height*M}px`},F=O=>{O.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:S},e("canvas",{ref:T,id:"background",style:v}),e("canvas",{ref:A,id:"foreground",style:v}),e("div",{ref:U,onMouseDown:P,style:v},h.map((O,B)=>e("div",{key:B,class:"editor__rect",style:{top:`${O.y*M}px`,left:`${O.x*M}px`,width:`${O.w*M}px`,height:`${O.h*M}px`}},e("button",{"aria-label":o.removeHighlightText,onClick:q(B),onMouseDown:F,onMouseUp:F,type:"button"},e(a,null))))))),e(s,{options:o,action:p,setAction:m}))};return function({onError:p}){let[m,h]=t.useState();return i({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((g,S)=>{dr(_e.createElement("canvas"),{alpha:!1},(T,A)=>{A.scale(S,S),T.width=g.videoWidth,T.height=g.videoHeight,A.drawImage(g,0,0,T.width,T.height),h({canvas:T,dpi:S})}),n.width=g.videoWidth,n.height=g.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(g=>{u.display="block",p(g)},[])}),m?e(d,{screenshot:m}):e("div",null)}}var Ag=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let o=_e.createElement("canvas");return{input:KR({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:()=>x(null,null,function*(){let i=yield new Promise(s=>{o.toBlob(s,"image/png")});if(i)return{data:new Uint8Array(yield i.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}})}}});var w=C,rd=0;function od(){return rd>0}function XR(){rd++,setTimeout(()=>{rd--})}function jr(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{let o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(yr(e))return e}catch{return e}let r=function(...o){try{let i=o.map(s=>jr(s,t));return e.apply(this,i)}catch(i){throw XR(),ze(s=>
490{s.addEventProcessor(a=>(t.mechanism&&(ao(a,void 0,void 0),ot(a,t.mechanism)),a.extra=E(f({},a.extra),{arguments:o}),a)),X(i)}),i}};try{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}zs(r,e),Te(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function rs(){let e=dt(),{referrer:t}=w.document||{},{userAgent:n}=w.navigator||{},r=f(f({},t&&{Referer:t}),n&&{"User-Agent":n});return{url:e,headers:r}}var QR=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler"],ZR={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};function ev(e){return ZR[e]||e.replace("Integration","").toLowerCase()}var Rg=w;function id(e,t){return x(this,null,function*(){let n=QR.includes(e)?ev(e):void 0,r=Rg.Sentry=Rg.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);let o=r[e];if(typeof o=="function"&&!("_isShim"in o))return o;let i=tv(n),s=w.document.createElement("script");s.src=i,s.crossOrigin="anonymous",s.referrerPolicy="strict-origin",t&&s.setAttribute("nonce",t);let a=new Promise((l,p)=>{s.addEventListener("load",()=>l()),s.addEventListener("error",p)}),c=w.document.currentScript,u=w.document.body||w.document.head||c?.parentElement;if(u)u.appendChild(s);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{yield a}catch{throw new Error(`Error when loading integration: ${e}`)}let d=r[e];if(typeof d!="function")throw new Error(`Could not load integration: ${e}`);return d})}function tv(e){let n=I()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${xt}/${e}.min.js`,n).toString()}var nv=tc({lazyLoadIntegration:id});var vg=tc({getModalIntegration:()=>bg,getScreenshotIntegration:()=>Ag});function os(e,t){let n=cd(e,t),r={type:av(t),value:cv(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function rv(e,t,n,r){let i=I()?.getOptions().normalizeDepth,s=dv(t),a={__serialized__:aa(t,i)};if(s)return{exception:{values:[os(e,s)]},extra:a};let c={exception:{values:[{type:Tr(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:uv(t,{isUnhandledRejection:r})}]},extra:a};if(n){let u=cd(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function sd(e,t){return{exception:{values:[os(e,t)]}}}function cd(e,t){let n=t.stacktrace||t.stack||"",r=iv(t),o=sv(t);try{return e(n,r,o)}catch{}return[]}var ov=/Minified React error #\d+;/i;function iv(e){return e&&ov.test(e.message)?1:0}function sv(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Ng(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function av(e){let t=e?.name;return!t&&Ng(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function cv(e){let t=e?.message;return Ng(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Na(t.error):Na(e):"No error message"}function ud(e,t,n,r){let o=n?.syntheticException||void 0,i=Wo(e,t,o,r);return ot(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),Tn(i)}function ld(e,t,n="info",r,o){let i=r?.syntheticException||void 0,s=ad(e,t,i,o);return s.level=n,r?.event_id&&(s.event_id=r.event_id),Tn(s)}function Wo(e,t,n,r,o){let i;if(_i(t)&&t.error)return sd(e,t.error);if(js(t)||hu(t)){let s=t;if("stack"in t)i=sd(e,t);else{let a=s.name||(js(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;i=ad(e,c,n,r),ao(i,c)}return"code"in s&&(i.tags=E(f({},i.tags),{"DOMException.code":`${s.code}`})),i}return rt(t)?sd(e,t):Ce(t)||Tr(t)?(i=rv(e,t,n,o),ot(i,{synthetic:!0}),i):(i=ad(e,t,n,r),ao(i,`${t}`,void 0),ot(i,{synthetic:!0}),i)}function ad(e,t,n,r){let o={};if(r&&n){let i=cd(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),ot(o,{synthetic:!0})}
490if(kn(t)){let{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function uv(e,{isUnhandledRejection:t}){let n=Tu(e),r=t?"promise rejection":"exception";return _i(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Tr(e)?`Event \`${lv(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function lv(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function dv(e){return Object.values(e).find(t=>t instanceof Error)}var is=class extends Gi{constructor(t){let n=fv(t),r=w.SENTRY_SDK_SOURCE||$l();Wi(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings=f({infer_ip:n.sendDefaultPii?"auto":"never"},n._metadata.sdk.settings)),super(n);let{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;w.document&&(i||s||u)&&w.document.addEventListener("visibilitychange",()=>{w.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),s&&Or(this),u&&To(this))}),o&&this.on("beforeSendSession",hl)}eventFromException(t,n){return ud(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return ld(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}};function fv(e){return f({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:w.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},e)}var Jt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var H=C;var pv=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",vn=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o??0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=pv(t.value,n),e(t)))}};var Bn=(e=!0)=>{let t=H.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t};var Kt=()=>Bn()?.activationStart??0;function Xt(e,t,n){H.document&&H.addEventListener(e,t,n)}function zr(e,t,n){H.document&&H.removeEventListener(e,t,n)}var jo=-1,Cg=new Set,mv=()=>H.document?.visibilityState==="hidden"&&!H.document?.prerendering?0:1/0,rc=e=>{if(hv(e)&&jo>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(let t of Cg)t();isFinite(jo)||(jo=e.type==="visibilitychange"?e.timeStamp:0,zr("prerenderingchange",rc,!0))}},Nn=()=>{if(H.document&&jo<0){let e=Kt();jo=(H.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??mv(),Xt("visibilitychange",rc,!0),Xt("pagehide",rc,!0),Xt("prerenderingchange",rc,!0)}return{get firstHiddenTime(){return jo},onHidden(e){Cg.add(e)}}};function hv(e){return e.type==="pagehide"||H.document?.visibilityState==="hidden"}var xg=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`;var Cn=(e,t=-1)=>{let n=Bn(),r="navigate";return n&&(H.document?.prerendering||Kt()>0?r="prerender":H.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:xg(),navigationType:r}};var dd=new WeakMap;function zo(e,t){try{return dd.get(e)||dd.set(e,new t),dd.get(e)}catch{return new t}}var oc=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;let 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)}};var Qt=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe(f({type:e,buffered:!0},n)),r}}catch{}};var qo=e=>{let t=!1;return()=>{t||(e(),t=!0)}};var pr=e=>{H.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()};var _v=[1800,3e3],wg=(e,t={})=>{pr(()=>{let n=Nn(),r=Cn("FCP"),o,s=Qt("paint",a=>{for(let c of a)c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Kt(),0),r.entries.push(c),o(!0)))});s&&(o=vn(e,r,_v,t.reportAllChanges))})};var gv=[.1,.25],kg=(e,t={})=>{wg(qo(()=>{let n=Cn("CLS",0),r,o=Nn(),i=zo(t,oc),s=c=>{for(let u of c)i._processEntry(u);i._sessionValue>
490n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=Qt("layout-shift",s);a&&(r=vn(e,n,gv,t.reportAllChanges),o.onHidden(()=>{s(a.takeRecords()),r(!0)}),H?.setTimeout?.(r))}))};var Og=0,fd=1/0,ic=0,Sv=e=>{e.forEach(t=>{t.interactionId&&(fd=Math.min(fd,t.interactionId),ic=Math.max(ic,t.interactionId),Og=ic?(ic-fd)/7+1:0)})},pd,md=()=>pd?Og:performance.interactionCount||0,Mg=()=>{"interactionCount"in performance||pd||(pd=Qt("event",Sv,{type:"event",buffered:!0,durationThreshold:0}))};var hd=10,Pg=0,Ev=()=>md()-Pg,sc=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Pg=md(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let t=Math.min(this._longestInteractionList.length-1,Math.floor(Ev()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;let n=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<hd||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((o,i)=>i._latency-o._latency),this._longestInteractionList.length>hd){let o=this._longestInteractionList.splice(hd);for(let i of o)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(r)}}};var ac=e=>{let t=H.requestIdleCallback||H.setTimeout;H.document?.visibilityState==="hidden"?e():(e=qo(e),Xt("visibilitychange",e,{once:!0,capture:!0}),Xt("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),zr("visibilitychange",e,{capture:!0}),zr("pagehide",e,{capture:!0})}))};var Tv=[200,500],yv=40,Lg=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=Nn();pr(()=>{Mg();let r=Cn("INP"),o,i=zo(t,sc),s=c=>{ac(()=>{for(let d of c)i._processEntry(d);let u=i._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,o())})},a=Qt("event",s,{durationThreshold:t.durationThreshold??yv});o=vn(e,r,Tv,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(a.takeRecords()),o(!0)}))})};var cc=class{_processEntry(t){this._onBeforeProcessingEntry?.(t)}};var Iv=[2500,4e3],Ug=(e,t={})=>{pr(()=>{let n=Nn(),r=Cn("LCP"),o,i=zo(t,cc),s=c=>{t.reportAllChanges||(c=c.slice(-1));for(let u of c)i._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Kt(),0),r.entries=[u],o())},a=Qt("largest-contentful-paint",s);if(a){o=vn(e,r,Iv,t.reportAllChanges);let c=qo(()=>{s(a.takeRecords()),a.disconnect(),o(!0)}),u=d=>{d.isTrusted&&(ac(c),zr(d.type,u,{capture:!0}))};for(let d of["keydown","click","visibilitychange"])Xt(d,u,{capture:!0})}})};var bv=[800,1800],_d=e=>{H.document?.prerendering?pr(()=>_d(e)):H.document?.readyState!=="complete"?addEventListener("load",()=>_d(e),!0):setTimeout(e)},Dg=(e,t={})=>{let n=Cn("TTFB"),r=vn(e,n,bv,t.reportAllChanges);_d(()=>{let o=Bn();o&&(n.value=Math.max(o.responseStart-Kt(),0),n.entries=[o],r(!0))})};var ss={},uc={},Bg,Fg,Gg,Hg;function qr(e,t=!1){return lc("cls",e,Av,Bg,t)}function Vr(e,t=!1){return lc("lcp",e,Rv,Fg,t)}function gd(e){return lc("ttfb",e,vv,Gg)}function as(e){return lc("inp",e,Nv,Hg)}function Ht(e,t){return $g(e,t),uc[e]||(Cv(e),uc[e]=!0),Wg(e,t)}function cs(e,t){let n=ss[e];if(n?.length)for(let r of n)try{r(t)}catch(o){Jt&&_.error(`Error while triggering instrumentation handler. 491Type: ${e} 492Name: ${gt(r)} 493Error:`,o)}}function Av(){return kg(e=>{cs("cls",{metric:e}),Bg=e},{reportAllChanges:!0})}
493function Rv(){return Ug(e=>{cs("lcp",{metric:e}),Fg=e},{reportAllChanges:!0})}function vv(){return Dg(e=>{cs("ttfb",{metric:e}),Gg=e})}function Nv(){return Lg(e=>{cs("inp",{metric:e}),Hg=e})}function lc(e,t,n,r,o=!1){$g(e,t);let i;return uc[e]||(i=n(),uc[e]=!0),r&&t({metric:r}),Wg(e,t,o?i:void 0)}function Cv(e){let t={};e==="event"&&(t.durationThreshold=0),Qt(e,n=>{cs(e,{entries:n})},t)}function $g(e,t){ss[e]=ss[e]||[],ss[e].push(t)}function Wg(e,t,n){return()=>{n&&n();let r=ss[e];if(!r)return;let o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function jg(e){return"duration"in e}var zg=e=>{let t=n=>{(n.type==="pagehide"||H.document?.visibilityState==="hidden")&&e(n)};Xt("visibilitychange",t,{capture:!0,once:!0}),Xt("pagehide",t,{capture:!0,once:!0})};function dc(e){return typeof e=="number"&&isFinite(e)}function Fn(e,t,n,o){var r=mn(o,[]);let i=D(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),xr(e,()=>{let s=Ve(f({startTime:t},r));return s&&s.end(n),s})}function Vo(e){let t=I();if(!t)return;let{name:n,transaction:r,attributes:o,startTime:i}=e,{release:s,environment:a,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),l=L(),p=l.getUser(),m=p!==void 0?p.email||p.id||p.ip_address:void 0,h;try{h=l.getScopeData().contexts.profile.profile_id}catch{}let g=f({release:s,environment:a,user:m||void 0,profile_id:h||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":H.navigator?.userAgent,"client.address":c?"{{auto}}":void 0},o);return Ve({name:n,attributes:g,startTime:i,experimental:{standalone:!0}})}function Gn(){return H.addEventListener&&H.performance}function we(e){return e/1e3}function qg(e){let t="unknown",n="unknown",r="";for(let o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function fc(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function pc(e,t){let n,r=!1;function o(a){!r&&n&&t(a,n),r=!0}zg(()=>{o("pagehide")});let i=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(o("navigation"),i(),s())}),s=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,s()})}function Vg(e){let t=0,n;if(!fc("layout-shift"))return;let r=qr(({metric:o})=>{let i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);pc(e,(o,i)=>{xv(t,n,i,o),r()})}function xv(e,t,n,r){Jt&&_.log(`Sending CLS span (${e})`);let o=t?we((ye()||0)+t.startTime):oe(),i=L().getScopeData().transactionName,s=t?Oe(t.sources[0]?.node):"Layout shift",a={[W]:"auto.http.browser.cls",[pe]:"ui.webvital.cls",[jt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,d)=>{a[`cls.source.${d+1}`]=Oe(u.node)});let c=Vo({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("cls",{[Sn]:"",[En]:e}),c.end(o))}function Yg(e){let t=0,n;if(!fc("largest-contentful-paint"))return;let r=Vr(({metric:o})=>{let i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);pc(e,(o,i)=>{wv(t,n,i,o),r()})}function wv(e,t,n,r){Jt&&_.log(`Sending LCP span (${e})`);let o=we((ye()||0)+(t?.startTime||0)),i=L().getScopeData().transactionName,s=t?Oe(t.element):"Largest contentful paint",a={[W]:"auto.http.browser.lcp",[pe]:"ui.webvital.lcp",[jt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=Oe(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));let c=Vo({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("lcp",{[Sn]:"millisecond",[En]:e}),c.end(o))}function Zt(e){return e&&((ye()||performance.timeOrigin)+e)/1e3}function us(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=qg(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return ye()||Gn()?.timeOrigin?kv(E(f({},t),{"http.request.redirect_start":Zt(e.redirectStart),"http.request.redirect_end":Zt(e.redirectEnd),"http.request.worker_start":Zt(e.workerStart),"http.request.fetch_start":Zt(e.fetchStart),"http.request.domain_lookup_start":Zt(e.domainLookupStart),"http.request.domain_lookup_end":Zt(e.domainLookupEnd),"http.request.connect_start":Zt(e.connectStart),"http.request.secure_connection_start":Zt(e.secureConnectionStart),"http.request.connection_end":Zt(e.connectEnd),"http.request.request_start":Zt(e.requestStart),"http.request.response_start":Zt(e.responseStart),"http.request.response_end":Zt(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0})):t}function kv(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}var Ov=2147483647,Jg=0,dn={},Nt,hc;function Sd({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=Gn();if(r&&ye()){r.mark&&H.performance.mark("sentry-tracing-init");let o=t?Yg(n):Pv(),i=Lv(),s=e?Vg(n):Mv();return()=>{o?.(),i(),s?.()}}return()=>{}}function Ed(){Ht("longtask",({entries:e})=>{let t=ee();if(!t)return;let{op:n,start_timestamp:r}=D(t);for(let o of e){let i=we(ye()+o.startTime),s=we(o.duration);n==="navigation"&&r&&i<r||Fn(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[W]:"auto.ui.browser.metrics"}})}})}function Td(){new PerformanceObserver(t=>{let n=ee();if(n)for(let r of t.getEntries()){if(!r.scripts[0])continue;let o=we(ye()+r.startTime),{start_timestamp:i,op:s}=D(n);if(s==="navigation"&&i&&o<i)continue;let a=we(r.duration),c={[W]:"auto.ui.browser.metrics"}
493,u=r.scripts[0],{invoker:d,invokerType:l,sourceURL:p,sourceFunctionName:m,sourceCharPosition:h}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=l,p&&(c["code.filepath"]=p),m&&(c["code.function"]=m),h!==-1&&(c["browser.script.source_char_position"]=h),Fn(n,o,o+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function yd(){Ht("event",({entries:e})=>{let t=ee();if(t){for(let n of e)if(n.name==="click"){let r=we(ye()+n.startTime),o=we(n.duration),i={name:Oe(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[W]:"auto.ui.browser.metrics"}},s=Ei(n.target);s&&(i.attributes["ui.component_name"]=s),Fn(t,r,r+o,i)}}})}function Mv(){return qr(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(dn.cls={value:e.value,unit:""},hc=t)},!0)}function Pv(){return Vr(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(dn.lcp={value:e.value,unit:"millisecond"},Nt=t)},!0)}function Lv(){return gd(({metric:e})=>{e.entries[e.entries.length-1]&&(dn.ttfb={value:e.value,unit:"millisecond"})})}function Id(e,t){let n=Gn(),r=ye();if(!n?.getEntries||!r)return;let o=we(r),i=n.getEntries(),{op:s,start_timestamp:a}=D(e);i.slice(Jg).forEach(c=>{let u=we(c.startTime),d=we(Math.max(0,c.duration));if(!(s==="navigation"&&a&&o+u<a))switch(c.entryType){case"navigation":{Fv(e,c,o);break}case"mark":case"paint":case"measure":{Dv(e,c,u,d,o,t.ignorePerformanceApiSpans);let l=Nn(),p=c.startTime<l.firstHiddenTime;c.name==="first-paint"&&p&&(dn.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(dn.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{$v(e,c,c.name,u,d,o,t.ignoreResourceSpans);break}}}),Jg=Math.max(i.length-1,0),Wv(e),s==="pageload"&&(qv(dn),t.recordClsOnPageloadSpan||delete dn.cls,t.recordLcpOnPageloadSpan||delete dn.lcp,Object.entries(dn).forEach(([c,u])=>{la(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",Kt()),jv(e,t)),Nt=void 0,hc=void 0,dn={}}function Uv(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components \u269B"}catch{return}}function Dv(e,t,n,r,o,i){if(Uv(t)||["mark","measure"].includes(t.entryType)&&Qe(t.name,i))return;let s=Bn(!1),a=we(s?s.requestStart:0),c=o+Math.max(n,a),u=o+n,d=u+r,l={[W]:"auto.resource.browser.metrics"};c!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c),Bv(l,t),c<=d&&Fn(e,c,d,{name:t.name,op:t.entryType,attributes:l})}function Bv(e,t){try{let n=t.detail;if(!n)return;if(typeof n=="object"){for(let[r,o]of Object.entries(n))if(o&<(o))e[`sentry.browser.measure.detail.${r}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(o)}catch{}return}if(lt(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Fv(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{mc(e,t,r,n)}),mc(e,t,"secureConnection",n,"TLS/SSL"),mc(e,t,"fetch",n,"cache"),mc(e,t,"domainLookup",n,"DNS"),Hv(e,t,n)}function mc(e,t,n,r,o=n){let i=Gv(n),s=t[i],a=t[`${n}Start`];!a||!s||Fn(e,r+we(a),r+we(s),{op:`browser.${o}`,name:t.name,attributes:f({[W]:"auto.ui.browser.metrics"},n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{})})}function Gv(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Hv(e,t,n){let r=n+we(t.requestStart),o=n+we(t.responseEnd),i=n+we(t.responseStart);t.responseEnd&&(Fn(e,r,o,{op:"browser.request",name:t.name,attributes:{[W]:"auto.ui.browser.metrics"}}),Fn(e,i,o,{op:"browser.response",name:t.name,attributes:{[W]:"auto.ui.browser.metrics"}}))}function $v(e,t,n,r,o,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;let a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(a))return;let c={[W]:"auto.resource.browser.metrics"},u=an(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(H.location.origin),zv(t,c,[["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"]]);let d=f(f({},c),us(t)),l=i+r,p=l+o;Fn(e,l,p,{name:n.replace(H.location.origin,""),op:a,attributes:d})}function Wv(e){let t=H.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),dc(n.rtt)&&(dn["connection.rtt"]={value:n.rtt,unit:"millisecond"})),dc(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),dc(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function jv(e,t){Nt&&t.recordLcpOnPageloadSpan&&(Nt.element&&e.setAttribute("lcp.element",Oe(Nt.element)),Nt.id&&e.setAttribute("lcp.id",Nt.id),Nt.url&&e.setAttribute("lcp.url",Nt.url.trim().slice(0,200)),Nt.loadTime!=null&&e.setAttribute("lcp.loadTime",Nt.loadTime),Nt.renderTime!=null&&e.setAttribute("lcp.renderTime",Nt.renderTime),e.setAttribute("lcp.size",Nt.size)),hc?.sources&&t.recordClsOnPageloadSpan&&hc.sources.forEac
493h((n,r)=>e.setAttribute(`cls.source.${r+1}`,Oe(n.node)))}function zv(e,t,n){n.forEach(([r,o])=>{let i=e[r];i!=null&&(typeof i=="number"&&i<Ov||typeof i=="string")&&(t[o]=i)})}function qv(e){let t=Bn(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}var Vv="ElementTiming",Yv=()=>({name:Vv,setup(){!Gn()||!ye()||Ht("element",({entries:t})=>{for(let n of t){let r=n;if(!r.identifier)continue;let o=r.identifier,i=r.name,s=r.renderTime,a=r.loadTime,c={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":o};i&&(c["ui.element.paint_type"]=i),r.id&&(c["ui.element.id"]=r.id),r.element&&(c["ui.element.type"]=r.element.tagName.toLowerCase()),r.url&&(c["ui.element.url"]=r.url),r.naturalWidth&&(c["ui.element.width"]=r.naturalWidth),r.naturalHeight&&(c["ui.element.height"]=r.naturalHeight),s>0&&wo.distribution("ui.element.render_time",s,{unit:"millisecond",attributes:c}),a>0&&wo.distribution("ui.element.load_time",a,{unit:"millisecond",attributes:c})}})}}),Kg=Yv;var Jv=1e3,Xg,bd,Ad;function ls(e){tt("dom",e),nt("dom",Kv)}function Kv(){if(!H.document)return;let e=Fe.bind(null,"dom"),t=Qg(e,!0);H.document.addEventListener("click",t,!1),H.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let o=H[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(Ee(o,"addEventListener",function(i){return function(s,a,c){if(s==="click"||s=="keypress")try{let u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[s]=u[s]||{refCount:0};if(!d.handler){let l=Qg(e);d.handler=l,i.call(this,s,l,c)}d.refCount++}catch{}return i.call(this,s,a,c)}}),Ee(o,"removeEventListener",function(i){return function(s,a,c){if(s==="click"||s=="keypress")try{let u=this.__sentry_instrumentation_handlers__||{},d=u[s];d&&(d.refCount--,d.refCount<=0&&(i.call(this,s,d.handler,c),d.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,a,c)}}))})}function Xv(e){if(e.type!==bd)return!1;try{if(!e.target||e.target._sentryId!==Ad)return!1}catch{}return!0}function Qv(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Qg(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Zv(n);if(Qv(n.type,r))return;Te(n,"_sentryCaptured",!0),r&&!r._sentryId&&Te(r,"_sentryId",fe());let o=n.type==="keypress"?"input":n.type;Xv(n)||(e({event:n,name:o,global:t}),bd=n.type,Ad=r?r._sentryId:void 0),clearTimeout(Xg),Xg=H.setTimeout(()=>{Ad=void 0,bd=void 0},Jv)}}function Zv(e){try{return e.target}catch{return null}}var _c;function Hn(e){let t="history";tt(t,e),nt(t,eN)}function eN(){if(H.addEventListener("popstate",()=>{let t=H.location.href,n=_c;if(_c=t,n===t)return;Fe("history",{from:n,to:t})}),!Bl())return;function e(t){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let o=_c,i=tN(String(r));if(_c=i,o===i)return t.apply(this,n);Fe("history",{from:o,to:i})}return t.apply(this,n)}}Ee(H.history,"pushState",e),Ee(H.history,"replaceState",e)}function tN(e){try{return new URL(e,H.location.origin).toString()}catch{return e}}var gc={};function Yo(e){let t=gc[e];if(t)return t;let n=H[e];if(Xi(n))return gc[e]=n.bind(H);let r=H.document;if(r&&typeof r.createElement=="function")try{let o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);let i=o.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){Jt&&_.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(gc[e]=n.bind(H))}function Rd(e){gc[e]=void 0}function Yr(...e){return Yo("setTimeout")(...e)}var mt="__sentry_xhr_v3__";function Jr(e){tt("xhr",e),nt("xhr",nN)}function nN(){if(!H.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){let o=new Error,i=oe()*1e3,s=ke(r[0])?r[0].toUpperCase():void 0,a=rN(r[1]);if(!s||!a)return t.apply(n,r);n[mt]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);let c=()=>{let u=n[mt];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}let d={endTimestamp:oe()*1e3,startTimestamp:i,xhr:n,virtualError:o};Fe("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,l){return c(),u.apply(d,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,l){let[p,m]=l,h=d[mt];return h&&ke(p)&&ke(m)&&(h.request_headers[p.toLowerCase()]=m),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){let o=n[mt];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);let i={startTimestamp:oe()*1e3,xhr:n};return Fe("xhr",i),t.apply(n,r)}})}function rN(e){if(ke(e))return e;try{return e.toString()}catch{}}var oN=Symbol.for("sentry__originalRequestBody");function Sc(e){return new URLSearchParams(e).toString()}function Kr(e,t=_){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Sc(e)];if(!e)return[void 0]}catch(n){return Jt&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Jt&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Jo(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let n=e[0][oN];return n!==void 0?n:void 0}}function ds(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return Jt&&_.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 494`).reduce((n,r)=>{let[o,i]=r.split(": ");return i&&(n[o.toLowerCase()]=i),n},{}):{}}var vd=[],Ec=new Map,Ko=new Map,iN=60;function Cd(){if(Gn()&&ye()){let t=sN();return()=>{t()}}return()=>{}}var Nd={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 sN(){return as(aN)}var aN=({metric:e})=>
494{if(e.value==null)return;let t=we(e.value);if(t>iN)return;let n=e.entries.find(h=>h.duration===e.value&&Nd[h.name]);if(!n)return;let{interactionId:r}=n,o=Nd[n.name],i=we(ye()+n.startTime),s=ee(),a=s?ie(s):void 0,c=r!=null?Ec.get(r):void 0,u=c?.span||a,d=u?D(u).description:L().getScopeData().transactionName,l=c?.elementName||Oe(n.target),p={[W]:"auto.http.browser.inp",[pe]:`ui.interaction.${o}`,[jt]:n.duration},m=Vo({name:l,transaction:d,attributes:p,startTime:i});m&&(m.addEvent("inp",{[Sn]:"millisecond",[En]:e.value}),m.end(i+t))};function xd(){let e=Object.keys(Nd);lr()&&e.forEach(o=>{H.addEventListener(o,t,{capture:!0,passive:!0})});function t(o){let i=o.target;if(!i)return;let s=Oe(i),a=Math.round(o.timeStamp);if(Ko.set(a,s),Ko.size>50){let c=Ko.keys().next().value;c!==void 0&&Ko.delete(c)}}function n(o){let i=Math.round(o.startTime),s=Ko.get(i);if(!s)for(let a=-5;a<=5;a++){let c=Ko.get(i+a);if(c){s=c;break}}return s||"<unknown>"}let r=({entries:o})=>{let i=ee(),s=i&&ie(i);o.forEach(a=>{if(!jg(a))return;let c=a.interactionId;if(c==null||Ec.has(c))return;let u=a.target?Oe(a.target):n(a);if(vd.length>10){let d=vd.shift();Ec.delete(d)}vd.push(c),Ec.set(c,{span:s,elementName:u})})};Ht("event",r),Ht("first-input",r)}var cN=40;function fs(e,t=Yo("fetch")){let n=0,r=0;function o(i){return x(this,null,function*(){let s=i.body.length;n+=s,r++;let a=f({body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);try{let c=yield t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw Rd("fetch"),c}finally{n-=s,r--}})}return Aa(e,o,Mr(e.bufferSize||cN))}var R=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function uN(){let e=I();if(!e){R&&_.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){R&&_.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")}function lN(){let e=I();if(!e){R&&_.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){R&&_.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}var dN={startProfiler:uN,stopProfiler:lN};var fN=10,pN=20,mN=30,hN=40,_N=50;function Xo(e,t,n,r){let o={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var gN=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,SN=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,EN=/\((\S*)(?::(\d+))(?::(\d+))\)/,TN=/at (.+?) ?\(data:(.+?),/,yN=e=>{let t=e.match(TN);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=gN.exec(e);if(n){let[,o,i,s]=n;return Xo(o,"?",+i,+s)}let r=SN.exec(e);if(r){if(r[2]?.indexOf("eval")===0){let a=EN.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}let[i,s]=nS(r[1]||"?",r[2]);return Xo(s,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Zg=[mN,yN],IN=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,bN=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,AN=e=>{let t=IN.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=bN.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||"?";return[o,r]=nS(o,r),Xo(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},eS=[_N,AN],RN=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vN=e=>{let t=RN.exec(e);return t?Xo(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0},NN=[hN,vN],CN=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,xN=e=>{let t=CN.exec(e);return t?Xo(t[2],t[3]||"?",+t[1]):void 0},wN=[fN,xN],kN=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ON=e=>{let t=kN.exec(e);return t?Xo(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0},MN=[pN,ON],tS=[Zg,eS],wd=Hs(...tS),nS=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function PN(e,{metadata:t,tunnel:n,dsn:r}){let o=f(f({event_id:e.event_id,sent_at:new Date().toISOString()},t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:qe(r)}),i=LN(e);return De(o,[i])}function LN(e){return[{type:"user_report"},e]}var Tc=1024,UN="Breadcrumbs",DN=(e={})=>{let t=f({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:UN,setup(n){t.console&&Ur(GN(n)),t.dom&&ls(FN(n,t.dom)),t.xhr&&Jr(HN(n)),t.fetch&&Gr($N(n)),t.history&&Hn(WN(n)),t.sentry&&n.on("beforeSendEvent",BN(n))}}},ps=DN;function BN(e){return function(n){I()===e&&It({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:_n(n)},{event:n})}}function FN(e,t){return function(r){if(I()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Tc&&(R&&_.warn(`\`dom.maxStringLength\` cannot exceed ${Tc}, but a value of ${a} was configured. Sentry will use ${Tc} instead.`),a=Tc),typeof s=="string"&&(s=[s]);try{let u=r.event,d=jN(u)?u.target:u;o=Oe(d,{keyAttrs:s,maxStringLength:a}),i=Ei(d)}catch{o="<unknown>"}if(o.length===0)return;let c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),It(c,{event:r.event,name:r.name,global:r.global})}}function GN(e){return function(n){if(I()!==e)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:nr(n.level),message:Ar(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Ar(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;It(r,{input:n.args,level:n.level})}}function HN(e){return function(n){if(I()!==e)return;let{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[mt];if(!r||!o||!i)return;let{method:s,url:a,status_code:c,body:u}=i,d={method:s,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:o},p={category:"xhr",data:d,type:"http",level:ja(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,l),It(p,l)}}function $N(e){return function(n){if(I()!==e)return;let{startTimestamp:r,endTimestamp:o}=n;
494if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){let i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o},s={category:"fetch",data:n.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,i),It(s,i)}else{let i=n.response,s=E(f({},n.fetchData),{status_code:i?.status}),a={input:n.args,response:i,startTimestamp:r,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:ja(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),It(c,a)}}}function WN(e){return function(n){if(I()!==e)return;let r=n.from,o=n.to,i=an(w.location.href),s=r?an(r):void 0,a=an(o);s?.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),It({category:"navigation",data:{from:r,to:o}})}}function jN(e){return!!e&&!!e.target}var zN="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),qN="BrowserApiErrors",VN=(e={})=>{let t=f({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},e);return{name:qN,setupOnce(){t.setTimeout&&Ee(w,"setTimeout",rS),t.setInterval&&Ee(w,"setInterval",rS),t.requestAnimationFrame&&Ee(w,"requestAnimationFrame",YN),t.XMLHttpRequest&&"XMLHttpRequest"in w&&Ee(XMLHttpRequest.prototype,"send",JN);let n=t.eventTarget;n&&(Array.isArray(n)?n:zN).forEach(o=>KN(o,t))}}},kd=VN;function rS(e){return function(...t){let n=t[0];return t[0]=jr(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${gt(e)}`}}),e.apply(this,t)}}function YN(e){return function(t){return e.apply(this,[jr(t,{mechanism:{data:{handler:gt(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function JN(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Ee(n,o,function(i){let s={mechanism:{data:{handler:gt(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},a=yr(i);return a&&(s.mechanism.data.handler=gt(a)),jr(i,s)})}),e.apply(this,t)}}function KN(e,t){let r=w[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Ee(r,"addEventListener",function(o){return function(i,s,a){try{XN(s)&&(s.handleEvent=jr(s.handleEvent,{mechanism:{data:{handler:gt(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&QN(this,i,s),o.apply(this,[i,jr(s,{mechanism:{data:{handler:gt(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),Ee(r,"removeEventListener",function(o){return function(i,s,a){try{let c=s.__sentry_wrapped__;c&&o.call(this,i,c,a)}catch{}return o.call(this,i,s,a)}}))}function XN(e){return typeof e.handleEvent=="function"}function QN(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}var ms=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof w.document>"u"){R&&_.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Li({ignoreDuration:!0}),So();
494let n=ae(),r=n.getUser();n.addScopeListener(o=>{let i=o.getUser();(r?.id!==i?.id||r?.ip_address!==i?.ip_address)&&(So(),r=i)}),t==="route"&&Hn(({from:o,to:i})=>{o!==i&&(Li({ignoreDuration:!0}),So())})}}};var ZN="CultureContext",eC=()=>({name:ZN,preprocessEvent(e){let t=tC();t&&(e.contexts=E(f({},e.contexts),{culture:f(f({},t),e.contexts?.culture)}))}}),hs=eC;function tC(){try{let e=w.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var nC="GlobalHandlers",rC=(e={})=>{let t=f({onerror:!0,onunhandledrejection:!0},e);return{name:nC,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(oC(n),oS("onerror")),t.onunhandledrejection&&(iC(n),oS("onunhandledrejection"))}}},_s=rC;function oC(e){mi(t=>{let{stackParser:n,attachStacktrace:r}=iS();if(I()!==e||od())return;let{msg:o,url:i,line:s,column:a,error:c}=t,u=sC(Wo(n,c||o,void 0,r,!1),i,s,a);u.level="error",yn(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function iC(e){hi(t=>{let{stackParser:n,attachStacktrace:r}=iS();if(I()!==e||od())return;let o=Od(t),i=lt(o)?Md(o):Wo(n,o,void 0,r,!0);i.level="error",yn(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Od(e){if(lt(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 Md(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function sC(e,t,n,r){let o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:aC(t)??dt(),function:"?",in_app:!0}),e}function oS(e){R&&_.log(`Global Handler attached: ${e}`)}function iS(){return I()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function aC(e){if(!(!ke(e)||e.length===0))return e.startsWith("data:")?`<${zt(e,!1)}>`:e}var gs=()=>({name:"HttpContext",preprocessEvent(e){if(!w.navigator&&!w.location&&!w.document)return;let t=rs(),n=f(f({},t.headers),e.request?.headers);e.request=E(f(f({},t),e.request),{headers:n})}});var cC="cause",uC=5,lC="LinkedErrors",dC=(e={})=>{let t=e.limit||uC,n=e.key||cC;return{name:lC,preprocessEvent(r,o,i){let s=i.getOptions();El(os,s.stackParser,n,t,r,o)}}},Ss=dC;var fC="SpotlightBrowser",pC=(e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:fC,setup:()=>{R&&_.log("Using Sidecar URL",t)},processEvent:n=>_C(n)?null:n,afterAllSetup:n=>{mC(n,t)}}};function mC(e,t){let n=Yo("fetch"),r=0;e.on("beforeEnvelope",o=>{if(r>3){_.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:Kn(o),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(i=>{i.status>=200&&i.status<400&&(r=0)},i=>{r++,_.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",i)})})}var hC=pC;function _C(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}function sS(){return gC()?(R&&Be(()=>{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 gC(){if(typeof w.window>"u")return!1;let e=w;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let n=dt();return!(w===w.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function aS(e){return[vo(),Ro(),ji(),kd(),ps(),_s(),Ss(),No(),gs(),hs(),ms()]}function Pd(e={}){let t=!e.skipBrowserExtensionCheck&&sS(),n=e.defaultIntegrations==null?aS():e.defaultIntegrations,r=E(f({},e),{enabled:t?!1:e.enabled,stackParser:fu(e.stackParser||wd),integrations:Ku({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||fs});return al(is,r)}function SC(){}function EC(e){e()}function yc(e={}){let t=w.document,n=t?.head||t?.body;if(!n){R&&_.error("[showReportDialog] Global document not defined");return}let r=L(),i=I()?.getDsn();if(!i){R&&_.error("[showReportDialog] DSN not configured");return}let s=E(f({},e),{user:f(f({},r.getUser()),e.user),eventId:e.eventId||ga()}),a=w.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=Yu(i,s);let{onLoad:c,onClose:u}=s;if(c&&(a.onload=c),u){let d=l=>{if(l.data==="__sentry_reportdialog_closed__")try{u()}finally{w.removeEventListener("message",d)}};w.addEventListener("message",d)}n.appendChild(a)}var TC=C,yC="ReportingObserver",cS=new WeakMap,IC=(e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(r){if(cS.has(I()))for(let o of r)ze(i=>{i.setExtra("url",o.url);let s=`ReportingObserver [${o.type}]`,a="No details available";if(o.body){let c={};for(let u in o.body)c[u]=o.body[u];if(i.setExtra("body",c),o.type==="crash"){let u=o.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=o.body.message||a}_a(`${s}: ${a}`)})}return{name:yC,setupOnce(){if(!Fl())return;new TC.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){cS.set(r,!0)}}},bC=IC;var AC="HttpClient",RC=(e={})=>{let t=f({failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/]},e);return{name:AC,setup(n){PC(n,t),LC(n,t)}}},vC=RC;function NC(e,t,n,r,o){if(dS(e,n.status,n.url)){let i=UC(t,r),s,a,c,u;pS()&&([s,c]=uS("Cookie",i),[a,u]=uS("Set-Cookie",n));let d=fS({url:i.url,method:i.method,status:n.status,requestHeaders:s,responseHeaders:a,requestCookies:c,responseCookies:u,error:o,type:"fetch"});yn(d)}}function uS(e,t){let n=wC(t.headers),r;try{let o=n[e]||n[e.toLowerCase()]||void 0;o&&(r=lS(o))}catch{}return[n,r]}function CC(e,t,n,r,o){if(dS(e,t.status,t.responseURL)){let i,s,a;if(pS()){try{let u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(s=lS(u))}catch{}try{a=kC(t)}catch{}i=r}let c=fS({url:t.responseURL,method:n,status:t.status,requestHeaders:i,responseHeaders:a,responseCookies:s,error:o,type:"xhr"});yn(c)}}function xC(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function lS(e){return e.split("; ").reduce((t,n)=>{let[r,o]=n.split("=");return r&&o&&(t[r]=o),t},{})}function wC(e){let t={};return e.forEach((n,r)=>{t[r]=n}),t}function kC(e){let t=e.getAllResponseHeaders();return t?t.split(`\r 495`).reduce((n,r)=>{let[o,i]=r.split(": ");return o&&i&&(n[o]=i),n},{}):{}}function OC(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function MC(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function PC(e,t){Qi()&&Gr(n=>{if(I()!==e)return;let{response:r,args:o,error:i,virtualError:s}=n,[a,c]=o;r&&NC(t,a,r,c,i||s)},!1)}function LC(e,t){"XMLHttpRequest"in C&&Jr(n=>{if(I()!==e)return;let{error:r,virtualError:o}=n,i=n.xhr,s=i[mt];if(!s)return;let{method:a,request_headers:c}=s;try{CC(t,i,a,c,r||o)}catch(u){R&&_.warn("Error while extracting response event form XHR response",u)}})}function dS(e,t,n){return MC(e.failedRequestStatusCodes,t)&&OC(e.failedRequestTargets,n)&&!$i(n,I())}function fS(e){let t=I(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:xC(e.responseHeaders)}}};return ot(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function UC(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request
495(e,t)}function pS(){let e=I();return e?!!e.getOptions().sendDefaultPii:!1}var Ld=C,DC=7,BC="ContextLines",FC=(e={})=>{let t=e.frameContextLines!=null?e.frameContextLines:DC;return{name:BC,processEvent(n){return HC(n,t)}}},GC=FC;function HC(e,t){let n=Ld.document,r=Ld.location&&Lr(Ld.location.href);if(!n||!r)return e;let o=e.exception?.values;if(!o?.length)return e;let i=n.documentElement.innerHTML;if(!i)return e;let s=["<!DOCTYPE html>","<html>",...i.split(` 496`),"</html>"];return o.forEach(a=>{let c=a.stacktrace;c?.frames&&(c.frames=c.frames.map(u=>$C(u,s,r,t)))}),e}function $C(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Iu(t,e,r),e}var WC="GraphQLClient",jC=e=>({name:WC,setup(t){zC(t,e),qC(t,e)}});function zC(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{let i=D(n).data||{};if(!(i[pe]==="http.client"))return;let c=i[xu]||i["http.url"],u=i[Cu]||i["http.method"];if(!ke(c)||!ke(u))return;let{endpoints:d}=t,l=Qe(c,d),p=hS(r);if(l&&p){let m=_S(p);if(m){let h=mS(m);n.updateName(`${u} ${c} (${h})`),bc(m)&&n.setAttribute("graphql.document",m.query),Ac(m)&&(n.setAttribute("graphql.persisted_query.hash.sha256",m.extensions.persistedQuery.sha256Hash),n.setAttribute("graphql.persisted_query.version",m.extensions.persistedQuery.version))}}})}function qC(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{let{category:o,type:i,data:s}=n;if(i==="http"&&(o==="fetch"||o==="xhr")){let d=s?.url,{endpoints:l}=t,p=Qe(d,l),m=hS(r);if(p&&s&&m){let h=_S(m);if(!s.graphql&&h){let g=mS(h);s["graphql.operation"]=g,bc(h)&&(s["graphql.document"]=h.query),Ac(h)&&(s["graphql.persisted_query.hash.sha256"]=h.extensions.persistedQuery.sha256Hash,s["graphql.persisted_query.version"]=h.extensions.persistedQuery.version)}}}})}function mS(e){if(Ac(e))return`persisted ${e.operationName}`;if(bc(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=VC(t);return r?`${o} ${r}`:`${o}`}return"unknown"}function hS(e){let t="xhr"in e,n;if(t){let r=e.xhr[mt];n=r&&Kr(r.body)[0]}else{let r=Jo(e.input);n=Kr(r)[0]}return n}function VC(e){let t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};let o=e.match(n);return o?{operationType:o[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function Ic(e){return typeof e=="object"&&e!==null}function bc(e){return Ic(e)&&typeof e.query=="string"}function Ac(e){return Ic(e)&&typeof e.operationName=="string"&&Ic(e.extensions)&&Ic(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash=="string"&&typeof e.extensions.persistedQuery.version=="number"}function _S(e){try{let t=JSON.parse(e);return bc(t)||Ac(t)?t:void 0}catch{return}}var YC=jC;var be=C,df="sentryReplaySession",JC="replay_event",ff="Unable to send Replay",KC=3e5,XC=9e5,QC=5e3,ZC=5500,ex=6e4,tx=5e3,nx=3,gS=15e4,Rc=5e3,rx=3e3,ox=300,pf=2e7,ix=4999,sx=5e4,SS=36e5,ax=Object.defineProperty,cx=(e,t,n)=>t in e?ax(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ES=(e,t,n)=>cx(e,typeof t!="symbol"?t+"":t,n),$e=(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))($e||{});function ux(e){return e.nodeType===e.ELEMENT_NODE}function ys(e){return e?.host?.shadowRoot===e}function Is(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function lx(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 dx(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let 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 wc(e){try{let t=e.rules||e.cssRules;return t?lx(Array.from(t,$S).join("")):null}catch{return null}}function fx(e){let t="";for(let n=0;n<e.style.length;n++){let r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}
496${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function $S(e){let t;if(mx(e))try{t=wc(e.styleSheet)||dx(e)}catch{}else if(hx(e)){let n=e.cssText,r=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=fx(e)),r&&(n=px(n)),r||o)return n}return t||e.cssText}function px(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function mx(e){return"styleSheet"in e}function hx(e){return"selectorText"in e}var kc=class{constructor(){ES(this,"idNodeMap",new Map),ES(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let n=this.getId(t);this.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){let r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){let r=this.getNode(t);if(r){let o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function _x(){return new kc}function Wc({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 As({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function ii(e){return e.toLowerCase()}function Hd(e){return e.toUpperCase()}var TS="__rrweb_original__";function gx(e){let t=e.getContext("2d");if(!t)return!0;let n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){let i=t.getImageData,s=TS in i?i[TS]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function mf(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ii(t):null}function Oc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function WS(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}let r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}var yS={};function jS(e){let t=yS[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement=="function")try{let o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return yS[e]=r.bind(window)}function $d(...e){return jS("setTimeout")(...e)}function zS(...e){return jS("clearTimeout")(...e)}function qS(e){try{return e.contentDocument}catch{}}var Sx=1,Ex=new RegExp("[^a-z0-9-_:]"),Rs=-2;function hf(){return Sx++}function Tx(e){if(e instanceof HTMLFormElement)return"form";let t=ii(e.tagName);return Ex.test(t)?"div":t}function yx(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Qo,IS,Ix=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,bx=/^(?:[a-z+]+:)?\/\//i,Ax=/^www\..*/i,Rx=/^(data:)([^,]*),(.*)/i;function vx(e,t){if(!e||t.size===0)return e;try{let n=e.split(";"),r=[];for(let o of n){if(o=o.trim(),!o)continue;let i=o.indexOf(":");if(i===-1){r.push(o);continue}let s=o.slice(0,i).trim();t.has(s)||r.push(o)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Mc(e,t){return(e||"").replace(Ix,(n,r,o,i,s,a)=>{let c=o||s||a,u=r||i||"";if(!c)return n;if(bx.test(c)||Ax.test(c))return`url(${u}${c}${u})`;if(Rx.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${yx(t)+c}${u})`;let d=t.split("/"),l=c.split("/");d.pop();for(let p of l)p!=="."&&(p===".."?d.pop():d.push(p));return`url(${u}${d.join("/")}${u})`})}var Nx=/^[^ \t\n\r\u000c]+/,Cx=/^[, \t\n\r\u000c]+/;function xx(e,t){if(t.trim()==="")return t;let n=0;function r(i){let s,a=i.exec(t.substring(n));return a?(s=a[0],n+=s.length,s):""}let o=[];for(;r(Cx),!(n>=t.length);){let i=r(Nx);if(i.slice(-1)===",")i=ti(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=ti(e,i);let a=!1;for(;;){let c=t.charAt(n);if(c===""){o.push((i+s).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,o.push((i+s).trim());break}else c==="("&&(a=!0);s+=c,n+=1}}}return o.join(", ")}var bS=new WeakMap;function ti(e,t){return!t||t.trim()===""?t:jc(e,t)}function wx(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function jc(e,t){let n=bS.get(e);if(n||(n=e.createElement("a"),bS.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function VS(e,t,n,r,o,i,s){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return ti(e,r);if(n==="xlink:href"&&r[0]!=="#")return ti(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return ti(e,r);if(n==="srcset")return xx(e,r);if(n==="style"){let a=Mc(r,jc(e));return s&&s.size>0&&(a=vx(a,s)),a}else if(t==="object"&&n==="data")return ti(e,r);return typeof i=="function"?i(n,r,o):r}
496function YS(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function kx(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 o=e.classList.length;o--;){let i=e.classList[o];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function Ox(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function Xr(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Xr(e.parentNode,t,n,r+1)}function ni(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Ox(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function si(e,t,n,r,o,i){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){let u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(i){if(c=Xr(s,ni(r,o)),c<0)return!0;a=Xr(s,ni(t,n),c>=0?c:1/0)}else{if(a=Xr(s,ni(t,n)),a<0)return!1;c=Xr(s,ni(r,o),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function Mx(e,t,n){let r=e.contentWindow;if(!r)return;let o=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){let a=$d(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{zS(a),o=!0,t()});return}let s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return $d(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Px(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;let i=$d(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{zS(i),r=!0,t()})}function Lx(e,t){let{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:h={},maskTextFn:g,maskInputFn:S,dataURLOptions:T={},inlineImages:A,recordCanvas:U,keepIframeSrcFn:M,newlyAddedElement:V=!1,ignoreCSSAttributes:G}=t,y=Ux(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:$e.Document,childNodes:[],compatMode:e.compatMode}:{type:$e.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:$e.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Bx(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:h,maskInputFn:S,dataURLOptions:T,inlineImages:A,recordCanvas:U,keepIframeSrcFn:M,newlyAddedElement:V,rootId:y,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,ignoreCSSAttributes:G});case e.TEXT_NODE:return Dx(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,maskTextFn:g,maskInputOptions:h,maskInputFn:S,rootId:y});case e.CDATA_SECTION_NODE:return{type:$e.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:$e.Comment,textContent:e.textContent||"",rootId:y};default:return!1}}function Ux(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function Dx(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:d}=t,l=e.parentNode&&e.parentNode.tagName,p=e.textContent,m=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0,g=l==="TEXTAREA"?!0:void 0;if(m&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=wc(e.parentNode.sheet))}catch(T){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${T}`,e)}p=Mc(p,jc(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let S=si(e,r,i,o,s,n);if(!m&&!h&&!g&&p&&S&&(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),g&&p&&(c.textarea||S)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),l==="OPTION"&&p){let T=Wc({type:null,tagName:l,maskInputOptions:c});p=As({isMasked:si(e,r,i,o,s,T),element:e,value:p,maskInputFn:u})}return{type:$e.Text,textContent:p||"",isStyle:m,rootId:d}}function Bx(e,t){let{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:h=!1,rootId:g,maskTextClass:S,unmaskTextClass:T,maskTextSelector:A,unmaskTextSelector:U,ignoreCSSAttributes:M}=t,V=kx(e,r,o,i),G=Tx(e),y={},P=e.attributes.length;for(let v=0;v<P;v++){let F=e.attributes[v];F.name&&!YS(G,F.name,F.value)&&(y[F.name]=VS(n,G,ii(F.name),F.value,e,c,M))}if(G==="link"&&s){let v=Array.from(n.styleSheets).find(O=>O.href===e.href),F=null;v&&(F=wc(v)),F&&(y.rel=null,y.href=null,y.crossorigin=null,y._cssText=Mc(F,v.href))}if(G==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let v=wc(e.sheet);v&&(y._cssText=Mc(v,jc(n)))}if(G==="input"||G==="textarea"||G==="select"||G==="option"){let v=e,F=mf(v),O=Oc(v,Hd(G),F),B=v.checked;if(F!=="submit"&&F!=="button"&&O){let $=si(v,S,A,T,U,Wc({type:F,tagName:Hd(G),maskInputOptions:a}));y.value=As({isMasked:$,element:v,value:O,maskInputFn:u})}
496B&&(y.checked=B)}if(G==="option"&&(e.selected&&!a.select?y.selected=!0:delete y.selected),G==="canvas"&&p){if(e.__context==="2d")gx(e)||(y.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let v=e.toDataURL(d.type,d.quality),F=n.createElement("canvas");F.width=e.width,F.height=e.height;let O=F.toDataURL(d.type,d.quality);v!==O&&(y.rr_dataURL=v)}}if(G==="img"&&l){Qo||(Qo=n.createElement("canvas"),IS=Qo.getContext("2d"));let v=e,F=v.currentSrc||v.getAttribute("src")||"<unknown-src>",O=v.crossOrigin,B=()=>{v.removeEventListener("load",B);try{Qo.width=v.naturalWidth,Qo.height=v.naturalHeight,IS.drawImage(v,0,0),y.rr_dataURL=Qo.toDataURL(d.type,d.quality)}catch($){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?B():v.addEventListener("load",B);return}else console.warn(`Cannot inline img src=${F}! Error: ${$}`)}v.crossOrigin==="anonymous"&&(O?y.crossOrigin=O:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?B():v.addEventListener("load",B)}if((G==="audio"||G==="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)),V){let{width:v,height:F}=e.getBoundingClientRect();y={class:y.class,rr_width:`${v}px`,rr_height:`${F}px`}}G==="iframe"&&!m(y.src)&&(!V&&!qS(e)&&(y.rr_src=y.src),delete y.src);let q;try{customElements.get(G)&&(q=!0)}catch{}return{type:$e.Element,tagName:G,attributes:y,childNodes:[],isSVG:wx(e)||void 0,needBlock:V,rootId:g,isCustom:q}}function Ie(e){return e==null?"":e.toLowerCase()}function Fx(e,t){if(t.comment&&e.type===$e.Comment)return!0;if(e.type===$e.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"&&WS(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Ie(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Ie(e.attributes.name)==="application-name"||Ie(e.attributes.rel)==="icon"||Ie(e.attributes.rel)==="apple-touch-icon"||Ie(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Ie(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ie(e.attributes.property).match(/^(og|twitter|fb):/)||Ie(e.attributes.name).match(/^(og|twitter):/)||Ie(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Ie(e.attributes.name)==="robots"||Ie(e.attributes.name)==="googlebot"||Ie(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Ie(e.attributes.name)==="author"||Ie(e.attributes.name)==="generator"||Ie(e.attributes.name)==="framework"||Ie(e.attributes.name)==="publisher"||Ie(e.attributes.name)==="progid"||Ie(e.attributes.property).match(/^article:/)||Ie(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Ie(e.attributes.name)==="google-site-verification"||Ie(e.attributes.name)==="yandex-verification"||Ie(e.attributes.name)==="csrf-token"||Ie(e.attributes.name)==="p:domain_verify"||Ie(e.attributes.name)==="verify-v1"||Ie(e.attributes.name)==="verification"||Ie(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ri(e,t){let{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:h={},maskAttributeFn:g,maskTextFn:S,maskInputFn:T,slimDOMOptions:A,dataURLOptions:U={},inlineImages:M=!1,recordCanvas:V=!1,onSerialize:G,onIframeLoad:y,iframeLoadTimeout:P=5e3,onBlockedImageLoad:q,onStylesheetLoad:v,stylesheetLoadTimeout:F=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:B=!1,ignoreCSSAttributes:$}=t,{preserveWhiteSpace:se=!0}=t,re=Lx(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:T,dataURLOptions:U,inlineImages:M,recordCanvas:V,keepIframeSrcFn:O,newlyAddedElement:B,ignoreCSSAttributes:$});if(!re)return console.warn(e,"not serialized"),null;let ue;r.hasNode(e)?ue=r.getId(e):Fx(re,A)||!se&&re.type===$e.Text&&!re.
496isStyle&&!re.textContent.replace(/^\s+|\s+$/gm,"").length?ue=Rs:ue=hf();let N=Object.assign(re,{id:ue});if(r.add(e,N),ue===Rs)return null;G&&G(e);let J=!p;if(N.type===$e.Element){J=J&&!N.needBlock;let k=e.shadowRoot;k&&Is(k)&&(N.isShadowHost=!0)}if((N.type===$e.Document||N.type===$e.Element)&&J){A.headWhitespace&&N.type===$e.Element&&N.tagName==="head"&&(se=!1);let k={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:p,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:T,slimDOMOptions:A,dataURLOptions:U,inlineImages:M,recordCanvas:V,preserveWhiteSpace:se,onSerialize:G,onIframeLoad:y,iframeLoadTimeout:P,onBlockedImageLoad:q,onStylesheetLoad:v,stylesheetLoadTimeout:F,keepIframeSrcFn:O,ignoreCSSAttributes:$},Q=e.childNodes?Array.from(e.childNodes):[];for(let me of Q){let le=ri(me,k);le&&N.childNodes.push(le)}if(ux(e)&&e.shadowRoot)for(let me of Array.from(e.shadowRoot.childNodes)){let le=ri(me,k);le&&(Is(e.shadowRoot)&&(le.isShadow=!0),N.childNodes.push(le))}}if(e.parentNode&&ys(e.parentNode)&&Is(e.parentNode)&&(N.isShadow=!0),N.type===$e.Element&&N.tagName==="iframe"&&!N.needBlock&&Mx(e,()=>{let k=qS(e);if(k&&y){let Q=ri(k,{doc:k,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:T,slimDOMOptions:A,dataURLOptions:U,inlineImages:M,recordCanvas:V,preserveWhiteSpace:se,onSerialize:G,onIframeLoad:y,iframeLoadTimeout:P,onStylesheetLoad:v,stylesheetLoadTimeout:F,keepIframeSrcFn:O,ignoreCSSAttributes:$});Q&&y(e,Q)}},P),N.type===$e.Element&&N.tagName==="img"&&!e.complete&&N.needBlock){let k=e,Q=()=>{if(k.isConnected&&!k.complete&&q)try{let me=k.getBoundingClientRect();me.width>0&&me.height>0&&q(k,N,me)}catch{}k.removeEventListener("load",Q)};k.isConnected&&k.addEventListener("load",Q)}return N.type===$e.Element&&N.tagName==="link"&&typeof N.attributes.rel=="string"&&(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&&typeof N.attributes.href=="string"&&WS(N.attributes.href)==="css")&&Px(e,()=>{if(v){let k=ri(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:T,slimDOMOptions:A,dataURLOptions:U,inlineImages:M,recordCanvas:V,preserveWhiteSpace:se,onSerialize:G,onIframeLoad:y,iframeLoadTimeout:P,onStylesheetLoad:v,stylesheetLoadTimeout:F,keepIframeSrcFn:O,ignoreCSSAttributes:$});k&&v(e,k)}},F),N.type===$e.Element&&delete N.needBlock,N}function Gx(e,t){let{mirror:n=new kc,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:l=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:S,maskInputFn:T,slimDOM:A=!1,dataURLOptions:U,preserveWhiteSpace:M,onSerialize:V,onIframeLoad:G,iframeLoadTimeout:y,onBlockedImageLoad:P,onStylesheetLoad:q,stylesheetLoadTimeout:v,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:O=new Set([])}=t||{};return ri(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:l,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:g,maskTextFn:S,maskInputFn:T,slimDOMOptions:A===!0||A==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:A==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:A===!1?{}:A,dataURLOptions:U,inlineImages:p,recordCanvas:m,preserveWhiteSpace:M,onSerialize:V,onIframeLoad:G,iframeLoadTimeout:y,onBlockedImageLoad:P,onStylesheetLoad:q,stylesheetLoadTimeout:v,keepIframeSrcFn:F,newlyAddedElement:!1,ignoreCSSAttributes:O})}function _t(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var Zo=`Please stop import mirror directly. Instead of that,\r
497now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 498or you can use record.mirror to access the mirror instance during recording.`,AS={map:{},getId(){return console.error(Zo),-1},getNode(){return console.error(Zo),null},removeNodeFromMap(){console.error(Zo)},has(){return console.error(Zo),!1},reset(){console.error(Zo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(AS=new Proxy(AS,{get(e,t,n){return t==="map"&&console.error(Zo),Reflect.get(e,t,n)}}));function vs(e,t,n={}){let r=null,o=0;return function(...i){let s=Date.now();!o&&n.leading===!1&&(o=s);let a=t-(s-o),c=this;a<=0||a>t?(r&&(qx(r),r=null),o=s,e.apply(c,i)):!r&&n.trailing!==!1&&(r=zc(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function JS(e,t,n,r,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){zc(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>JS(e,t,i||{},!0)}function _f(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}var Pc=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Pc=()=>new Date().getTime());function KS(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function XS(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function QS(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ZS(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function $t(e,t,n,r,o){if(!e)return!1;let i=ZS(e);if(!i)return!1;let s=ni(t,n);if(!o){let u=r&&i.matches(r);return s(i)&&!u}let a=Xr(i,s),c=-1;return a<0?!1:(r&&(c=Xr(i,ni(null,r))),a>-1&&c<0?!0:a<c)}function Hx(e,t){return t.getId(e)!==-1}function Ud(e,t){return t.getId(e)===Rs}function eE(e,t){if(ys(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?eE(e.parentNode,t):!0:!0}function Wd(e){return!!e.changedTouches}function $x(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 tE(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function nE(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function jd(e){return!!e?.shadowRoot}var zd=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,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 rE(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Wx(e){let t=e,n;for(;n=rE(t);)t=n;return t}function jx(e){let t=e.ownerDocument;if(!t)return!1;let n=Wx(e);return t.contains(n)}function oE(e){let t=e.ownerDocument;return t?t.contains(e)||jx(e):!1}var RS={};function gf(e){let t=RS[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement=="function")try{let o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return RS[e]=r.bind(window)}function zx(...e){return gf("requestAnimationFrame")(...e)}
498function zc(...e){return gf("setTimeout")(...e)}function qx(...e){return gf("clearTimeout")(...e)}var ne=(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))(ne||{}),Y=(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))(Y||{}),ht=(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))(ht||{}),$n=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))($n||{}),ei=(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))(ei||{});function Sf(e){try{return e.contentDocument}catch{}}function Vx(e){try{return e.contentWindow}catch{}}function vS(e){return"__ln"in e}var qd=class{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){let n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&vS(t.previousSibling)){let 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&&vS(t.nextSibling)&&t.nextSibling.__ln.previous){let r=t.nextSibling.__ln.previous;n.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){let 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--)}},NS=(e,t)=>`${e}@${t}`,Vd=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],n=new Set,r=new qd,o=c=>{let u=c,d=Rs;for(;d===Rs;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},i=c=>{if(!c.parentNode||!oE(c))return;let u=ys(c.parentNode)?this.mirror.getId(rE(c)):this.mirror.getId(c.parentNode),d=o(c);if(u===-1||d===-1)return r.addNode(c);let l=ri(c,{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:p=>{tE(p,this.mirror)&&!$t(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),nE(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),jd(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,m)=>{$t(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,m),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,m)=>{this.stylesheetManager.attachLinkElement(p,m)},onBlockedImageLoad:(p,m,{width:h,height:g})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:m.id,attributes:{style:{width:`${h}px`,height:`${g}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});l&&(t.push({parentId:u,nextId:d,node:l}),n.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet)CS(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(let c of this.addedSet)!xS(this.droppedSet,c)&&!CS(this.removes,c,this.mirror)||xS(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){let u=this.mirror.getId(s.value.parentNode),d=o(s.value);u!==-1&&d!==-1&&(c=s)}if(!c){let u=r.tail;for(;u;){let d=u;if(u=u.previous,d){let l=this.mirror.getId(d.value.parentNode);
498if(o(d.value)===-1)continue;if(l!==-1){c=d;break}else{let m=d.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=m.parentNode.host;if(this.mirror.getId(h)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),i(c.value)}let a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:u}=c;if(typeof u.style=="string"){let d=JSON.stringify(c.styleDiff),l=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+l).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.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(a))},this.processMutation=t=>{if(!Ud(t.target,this.mirror))switch(t.type){case"characterData":{let n=t.target.textContent;!$t(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:si(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,ZS(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{let n=t.target,r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){let s=mf(n),a=n.tagName;o=Oc(n,a,s);let c=Wc({maskInputOptions:this.maskInputOptions,tagName:a,type:s}),u=si(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=As({isMasked:u,element:n,value:o,maskInputFn:this.maskInputFn})}if($t(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!Sf(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"),!YS(n.tagName,r)&&(i.attributes[r]=VS(this.doc,ii(n.tagName),ii(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(let a of Array.from(n.style)){let c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==s.style.getPropertyValue(a)||u!==s.style.getPropertyPriority(a)?u===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,u]:i._unchangedStyles[a]=[c,u]}for(let a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if($t(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{let r=this.mirror.getId(n),o=ys(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);$t(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ud(n,this.mirror)||!Hx(n,this.mirror)||(this.addedSet.has(n)?(Yd(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||eE(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[NS(r,o)]?Yd(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:ys(t.target)&&Is(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(Ud(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[NS(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);$t(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEac
498h(r=>this.genAdds(r)),jd(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 Yd(e,t){e.delete(t),t.childNodes?.forEach(n=>Yd(e,n))}function CS(e,t,n){return e.length===0?!1:Yx(e,t,n)}function Yx(e,t,n){let r=t.parentNode;for(;r;){let o=n.getId(r);if(e.some(i=>i.id===o))return!0;r=r.parentNode}return!1}function xS(e,t){return e.size===0?!1:iE(e,t)}function iE(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:iE(e,n):!1}var bs;function Jx(e){bs=e}function Kx(){bs=void 0}var ce=e=>bs?(...n)=>{try{return e(...n)}catch(r){if(bs&&bs(r)===!0)return()=>{};throw r}}:e,oi=[];function ks(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function sE(e,t){let n=new Vd;oi.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);let i=new r(ce(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Xx({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,s=[],a,c=vs(ce(l=>{let p=Date.now()-a;e(s.map(m=>(m.timeOffset-=p,m)),l),s=[],a=null}),i),u=ce(vs(ce(l=>{let p=ks(l),{clientX:m,clientY:h}=Wd(l)?l.changedTouches[0]:l;a||(a=Pc()),s.push({x:m,y:h,id:r.getId(p),timeOffset:Pc()-a}),c(typeof DragEvent<"u"&&l instanceof DragEvent?Y.Drag:l instanceof MouseEvent?Y.MouseMove:Y.TouchMove)}),o,{trailing:!1})),d=[_t("mousemove",u,n),_t("touchmove",u,n),_t("drag",u,n)];return ce(()=>{d.forEach(l=>l())})}function Qx({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};let a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[],u=null,d=l=>p=>{let m=ks(p);if($t(m,r,o,i,!0))return;let h=null,g=l;if("pointerType"in p){switch(p.pointerType){case"mouse":h=$n.Mouse;break;case"touch":h=$n.Touch;break;case"pen":h=$n.Pen;break}h===$n.Touch?ht[l]===ht.MouseDown?g="TouchStart":ht[l]===ht.MouseUp&&(g="TouchEnd"):$n.Pen}else Wd(p)&&(h=$n.Touch);h!==null?(u=h,(g.startsWith("Touch")&&h===$n.Touch||g.startsWith("Mouse")&&h===$n.Mouse)&&(h=null)):ht[l]===ht.Click&&(h=u,u=null);let S=Wd(p)?p.changedTouches[0]:p;if(!S)return;let T=n.getId(m),{clientX:A,clientY:U}=S;ce(e)(f({type:ht[g],id:T,x:A,y:U},h!==null&&{pointerType:h}))};return Object.keys(ht).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEach(l=>{let p=ii(l),m=d(l);if(window.PointerEvent)switch(ht[l]){case ht.MouseDown:case ht.MouseUp:p=p.replace("mouse","pointer");break;case ht.TouchStart:case ht.TouchEnd:return}c.push(_t(p,m,t))}),ce(()=>{c.forEach(l=>l())})}function aE({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){let a=ce(vs(ce(c=>{let u=ks(c);if(!u||$t(u,r,o,i,!0))return;let d=n.getId(u);if(u===t&&t.defaultView){let l=KS(t.defaultView);e({id:d,x:l.left,y:l.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return _t("scroll",a,t)}function Zx({viewportResizeCb:e},{win:t}){let n=-1,r=-1,o=ce(vs(ce(()=>{let i=XS(),s=QS();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return _t("resize",o,t)}var e0=["INPUT","TEXTAREA","SELECT"],wS=new WeakMap;function t0({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:d,userTr
498iggeredOnInput:l,maskTextClass:p,unmaskTextClass:m,maskTextSelector:h,unmaskTextSelector:g}){function S(y){let P=ks(y),q=y.isTrusted,v=P&&Hd(P.tagName);if(v==="OPTION"&&(P=P.parentElement),!P||!v||e0.indexOf(v)<0||$t(P,r,o,i,!0))return;let F=P;if(F.classList.contains(s)||a&&F.matches(a))return;let O=mf(P),B=Oc(F,v,O),$=!1,se=Wc({maskInputOptions:c,tagName:v,type:O}),re=si(P,p,h,m,g,se);(O==="radio"||O==="checkbox")&&($=P.checked),B=As({isMasked:re,element:P,value:B,maskInputFn:u}),T(P,l?{text:B,isChecked:$,userTriggered:q}:{text:B,isChecked:$});let ue=P.name;O==="radio"&&ue&&$&&t.querySelectorAll(`input[type="radio"][name="${ue}"]`).forEach(N=>{if(N!==P){let J=As({isMasked:re,element:N,value:Oc(N,v,O),maskInputFn:u});T(N,l?{text:J,isChecked:!$,userTriggered:!1}:{text:J,isChecked:!$})}})}function T(y,P){let q=wS.get(y);if(!q||q.text!==P.text||q.isChecked!==P.isChecked){wS.set(y,P);let v=n.getId(y);ce(e)(E(f({},P),{id:v}))}}let U=(d.input==="last"?["change"]:["input","change"]).map(y=>_t(y,ce(S),t)),M=t.defaultView;if(!M)return()=>{U.forEach(y=>y())};let V=M.Object.getOwnPropertyDescriptor(M.HTMLInputElement.prototype,"value"),G=[[M.HTMLInputElement.prototype,"value"],[M.HTMLInputElement.prototype,"checked"],[M.HTMLSelectElement.prototype,"value"],[M.HTMLTextAreaElement.prototype,"value"],[M.HTMLSelectElement.prototype,"selectedIndex"],[M.HTMLOptionElement.prototype,"selected"]];return V&&V.set&&U.push(...G.map(y=>JS(y[0],y[1],{set(){ce(S)({target:this,isTrusted:!1})}},!1,M))),ce(()=>{U.forEach(y=>y())})}function Lc(e){let t=[];function n(r,o){if(vc("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||vc("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||vc("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||vc("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){let s=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(s)}else if(r.parentStyleSheet){let s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(s)}return o}return n(e,t)}function mr(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function n0({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:ce((d,l,p)=>{let[m,h]=p,{id:g,styleId:S}=mr(l,t,n.styleMirror);return(g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,adds:[{rule:m,index:h}]}),d.apply(l,p)})});let i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:ce((d,l,p)=>{let[m]=p,{id:h,styleId:g}=mr(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,removes:[{index:m}]}),d.apply(l,p)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:ce((d,l,p)=>{let[m]=p,{id:h,styleId:g}=mr(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replace:m}),d.apply(l,p)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ce((d,l,p)=>{let[m]=p,{id:h,styleId:g}=mr(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replaceSync:m}),d.apply(l,p)})}));let c={};Nc("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Nc("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Nc("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Nc("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(c).forEach(([d,l])=>{u[d]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule},l.prototype.insertRule=new Proxy(u[d].insertRule,{apply:ce((p,m,h)=>{let[g,S]=h,{id:T,styleId:A}=mr(m.parentStyleSheet,t,n.styleMirror);return(T&&T!==-1||A&&A!==-1)&&e({id:T,styleId:A,adds:[{rule:g,index:[...Lc(m),S||0]}]}),p.apply(m,h)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:ce((p,m,h)=>{let[g]=h,{id:S,styleId:T}=mr(m.parentStyleSheet,t,n.styleMirror);return(S&&S!==-1||T&&T!==-1)&&e({id:S,styleId:T,removes:[{index:[...Lc(m),g]}]}),p.apply(m,h)})})}),ce(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEac
498h(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function cE({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);let o=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(s){let a=i.set?.call(this,s);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return a}}),ce(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function r0({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){let i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:ce((a,c,u)=>{let[d,l,p]=u;if(n.has(d))return i.apply(c,[d,l,p]);let{id:m,styleId:h}=mr(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:d,value:l,priority:p},index:Lc(c.parentRule)}),a.apply(c,u)})});let s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:ce((a,c,u)=>{let[d]=u;if(n.has(d))return s.apply(c,[d]);let{id:l,styleId:p}=mr(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||p&&p!==-1)&&e({id:l,styleId:p,remove:{property:d},index:Lc(c.parentRule)}),a.apply(c,u)})}),ce(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function o0({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){let a=ce(u=>vs(ce(d=>{let l=ks(d);if(!l||$t(l,t,n,r,!0))return;let{currentTime:p,volume:m,muted:h,playbackRate:g}=l;e({type:u,id:o.getId(l),currentTime:p,volume:m,muted:h,playbackRate:g})}),i.media||500)),c=[_t("play",a(ei.Play),s),_t("pause",a(ei.Pause),s),_t("seeked",a(ei.Seeked),s),_t("volumechange",a(ei.VolumeChange),s),_t("ratechange",a(ei.RateChange),s)];return ce(()=>{c.forEach(u=>u())})}function i0({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,d){let l=new i(c,u,d);return o.set(l,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};let s=_f(t.fonts,"add",function(a){return function(c){return zc(ce(()=>{let u=o.get(c);u&&(e(u),o.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(s),ce(()=>{r.forEach(a=>a())})}function s0(e){let{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e,a=!0,c=ce(()=>{let u=t.getSelection();if(!u||a&&u?.isCollapsed)return;a=u.isCollapsed||!1;let d=[],l=u.rangeCount||0;for(let p=0;p<l;p++){let m=u.getRangeAt(p),{startContainer:h,startOffset:g,endContainer:S,endOffset:T}=m;$t(h,r,o,i,!0)||$t(S,r,o,i,!0)||d.push({start:n.getId(h),startOffset:g,end:n.getId(S),endOffset:T})}s({ranges:d})});return c(),_t("selectionchange",c)}function a0({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:_f(n.customElements,"define",function(o){return function(i,s,a){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,a])}})}function c0(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=sE(e,e.doc));let o=Xx(e),i=Qx(e),s=aE(e),a=Zx(e,{win:n}),c=t0(e),u=o0(e),d=()=>{},l=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(d=n0(e,{win:n}),l=cE(e,e.doc),p=r0(e,{win:n}),e.collectFonts&&(m=i0(e)));let h=s0(e),g=a0(e),S=[];for(let T of e.plugins)S.push(T.observer(T.callback,n,T.options));return ce(()=>{oi.forEach(T=>T.reset()),r?.disconnect(),o(),i(),s(),a(),c(),u(),d(),l(),p(),m(),h(),g(),S.forEach(T=>T())})}function vc(e){return typeof window[e]<"u"}function Nc(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Ns=class{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){let i=r||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t),a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),s.set(a,n)),a}getIds(t,n){let r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,o))}getRemoteId(t,n,r){let o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;let i=o.get(n);return i||-1}getRemoteIds(t,n){let r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,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}}
498,Jd=class{constructor(){this.crossOriginIframeMirror=new Ns(hf),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},Kd=class{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ns(hf),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ns(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);let r=Sf(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){let n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;let o=this.crossOriginIframeMap.get(t.source);if(!o)return;let i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case ne.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);let r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:ne.IncrementalSnapshot,data:{source:Y.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ne.Meta:case ne.Load:case ne.DomContentLoaded:return!1;case ne.Plugin:return n;case ne.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case ne.IncrementalSnapshot:switch(n.data.source){case Y.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),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 Y.Drag:case Y.TouchMove:case Y.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Y.ViewportResize:return!1;case Y.MediaInteraction:case Y.MouseInteraction:case Y.Scroll:case Y.CanvasMutation:case Y.Input:return this.replaceIds(n.data,t,["id"]),n;case Y.StyleSheetRule:case Y.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Y.Font:return n;case Y.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Y.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,o){for(let i of o)!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!==$e.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}},Xd=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},Qd=class{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Is(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);let r=sE(E(f({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(aE(E(f({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),zc(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(cE({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){let n=Sf(t),r=Vx(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){let r=this;this.restoreHandlers.push(_f(t.prototype,"attachShadow",function(o){return function(i){let s=o.call(this,i);return this.shadowRoot&&oE(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}
498reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},kS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Es=0;Es<kS.length;Es++)u0[kS.charCodeAt(Es)]=Es;var Es,Uc=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}},Zd=class{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new zd,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;let r={id:n,styleIds:[]},o=[];for(let i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:$S(a),index:c}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},ef=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){let r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,zx(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}},Me,Dc;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var fn=_x();function Wn(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:l=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:h=!0,maskAllInputs:g,maskInputOptions:S,slimDOMOptions:T,maskAttributeFn:A,maskInputFn:U,maskTextFn:M,maxCanvasSize:V=null,packFn:G,sampling:y={},dataURLOptions:P={}
498,mousemoveWait:q,recordDOM:v=!0,recordCanvas:F=!1,recordCrossOriginIframes:O=!1,recordAfter:B=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:$=!1,collectFonts:se=!1,inlineImages:re=!1,plugins:ue,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:J=new Set([]),errorHandler:k,onMutation:Q,getCanvasManager:me}=e;Jx(k);let le=O?window.parent===window:!0,Pe=!1;if(!le)try{window.parent.document&&(Pe=!1)}catch{Pe=!0}if(le&&!t)throw new Error("emit function is required");if(!le&&!Pe)return()=>{};q!==void 0&&y.mousemove===void 0&&(y.mousemove=q),fn.reset();let ct=g===!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}:S!==void 0?S:{},jn=T===!0||T==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:T==="all",headMetaDescKeywords:T==="all"}:T||{};$x();let Je,Ke=0,en=K=>{for(let je of ue||[])je.eventProcessor&&(K=je.eventProcessor(K));return G&&!Pe&&(K=G(K)),K};Me=(K,je)=>{let Z=K;if(Z.timestamp=Pc(),oi[0]?.isFrozen()&&Z.type!==ne.FullSnapshot&&!(Z.type===ne.IncrementalSnapshot&&Z.data.source===Y.Mutation)&&oi.forEach(We=>We.unfreeze()),le)t?.(en(Z),je);else if(Pe){let We={type:"rrweb",event:en(Z),origin:window.location.origin,isCheckout:je};window.parent.postMessage(We,"*")}if(Z.type===ne.FullSnapshot)Je=Z,Ke=0;else if(Z.type===ne.IncrementalSnapshot){if(Z.data.source===Y.Mutation&&Z.data.isAttachIframe)return;Ke++;let We=r&&Ke>=r,de=n&&Je&&Z.timestamp-Je.timestamp>n;(We||de)&&Xe(!0)}};let tn=K=>{Me({type:ne.IncrementalSnapshot,data:f({source:Y.Mutation},K)})},fi=K=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.Scroll},K)}),Us=K=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.CanvasMutation},K)}),Ds=K=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.AdoptedStyleSheet},K)}),nn=new Zd({mutationCb:tn,adoptedStyleSheetCb:Ds}),Sr=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new Jd:new Kd({mirror:fn,mutationCb:tn,stylesheetManager:nn,recordCrossOriginIframes:O,wrappedEmit:Me});for(let K of ue||[])K.getMirror&&K.getMirror({nodeMirror:fn,crossOriginIframeMirror:Sr.crossOriginIframeMirror,crossOriginIframeStyleMirror:Sr.crossOriginIframeStyleMirror});let he=new ef,Ne=d0(me,{mirror:fn,win:window,mutationCb:K=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.CanvasMutation},K)}),recordCanvas:F,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:V,sampling:y.canvas,dataURLOptions:P,errorHandler:k}),Ct=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Xd:new Qd({mutationCb:tn,scrollCb:fi,bypassOptions:{onMutation:Q,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:h,maskInputOptions:ct,dataURLOptions:P,maskAttributeFn:A,maskTextFn:M,maskInputFn:U,recordCanvas:F,inlineImages:re,sampling:y,slimDOMOptions:jn,iframeManager:Sr,stylesheetManager:nn,canvasManager:Ne,keepIframeSrcFn:N,processedNodeManager:he,ignoreCSSAttributes:J},mirror:fn}),Xe=(K=!1)=>{if(!v)return;Me({type:ne.Meta,data:{href:window.location.href,width:QS(),height:XS()}},K),nn.reset(),Ct.init(),oi.forEach(Z=>Z.lock());let je=Gx(document,{mirror:fn,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:h,maskAllInputs:ct,maskAttributeFn:A,maskInputFn:U,maskTextFn:M,slimDOM:jn,dataURLOptions:P,recordCanvas:F,inlineImages:re,onSerialize:Z=>{tE(Z,fn)&&Sr.addIframe(Z),nE(Z,fn)&&nn.trackLinkElement(Z),jd(Z)&&Ct.addShadowRoot(Z.shadowRoot,document)},onIframeLoad:(Z,We)=>{Sr.attachIframe(Z,We),Z.contentWindow&&Ne.addWindow(Z.contentWindow),Ct.observeAttachShadow(Z)},onStylesheetLoad:(Z,We)=>{nn.attachLinkElement(Z,We)},onBlockedImageLoad:(Z,We,{width:de,height:pi})=>{tn({adds:[],removes:[],texts:[],attributes:[{id:We.id,attributes:{style:{width:`${de}px`,height:`${pi}px`}}}]})},keepIframeSrcFn:N,ignoreCSSAttributes:J});if(!je)return console.warn("Failed to snapshot the document");Me({type:ne.FullSnapshot,data:{node:je,initialOffset:KS(window)}}),oi.forEach(Z=>Z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&nn.adoptStyleSheets(document.adoptedStyleSheets,fn.getId(document))};Dc=Xe;try{let K=[],je=We=>ce(c0)({onMutation:Q,mutationCb:tn,mousemoveCb:(de,pi)=>Me({type:ne.IncrementalSnapshot,data:{source:pi,positions:de}}),mouseInteractionCb:de=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.MouseInteraction},de)}),scrollCb:fi,viewportResizeCb:de=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.ViewportResize},de)}),inputCb:de=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.Input},de)}),mediaInteractionCb:de=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.MediaInteraction},de)}),styleSheetRuleCb:de=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.StyleSheetRule},de)}),styleDeclarationCb:de=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.StyleDeclaration},de)}),canvasMutationCb:Us,fontCb:de=>Me({type:ne.IncrementalSnapshot,data:f({source:Y.Font},de)}),selectionCb:de=>{Me({type:ne.IncrementalSnapshot,data:f({source:Y.Selection},de)})},customElementCb:de=>{Me({type:ne.IncrementalSnapshot,data:f({source:Y.CustomElement},de)})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:ct,inlineStylesheet:h,sampling:y,recordDOM:v,recordCanvas:F,inlineImages:re,userTriggeredOnInput:$,collectFonts:se,doc:We,maskAttributeFn:A,maskInputFn:U,maskTextFn:M,keepIframeSrcFn:N,blockSelector:i,unblockSelector:s,slimDOMOptions:jn,dataURLOptions:P,mirror:fn,iframeManager:Sr,stylesheetManager:nn,shadowDomManager:Ct,processedNodeManager:he,canvasManager:Ne,ignoreCSSAttributes:J,plugins:ue?.filter(de=>de.observer)?.map(de=>({observer:de.observer,options:de.options,callback:pi=>Me({type:ne.Plugin,data:{plugin:de.name,payload:pi}})}))||[]},{});Sr.addLoadListener(We=>{try{K.push(je(We.contentDocument))}catch(de){console.warn(de)}});let Z=()=>{Xe(),K.push(je(document))};return document.readyState==="interactive"||document.readyState==="complete"?Z():(K.push(_t("DOMContentLoaded",()=>{Me({type:ne.DomContentLoaded,data:{}}),B==="DOMContentLoaded"&&Z()})),K.push(_t("load",()=>{Me({type:ne.Load,data:{}}),B==="load"&&Z()}
498,window))),()=>{K.forEach(We=>We()),he.destroy(),Dc=void 0,Kx()}}catch(K){console.warn(K)}}function l0(e){if(!Dc)throw new Error("please take full snapshot after start recording");Dc(e)}Wn.mirror=fn;Wn.takeFullSnapshot=l0;function d0(e,t){try{return e?e(t):new Uc}catch{return console.warn("Unable to initialize CanvasManager"),new Uc}}var OS;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(OS||(OS={}));var f0=3,p0=5;function Ef(e){return e>9999999999?e:e*1e3}function Dd(e){return e>9999999999?e/1e3:e}function Os(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:ne.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:ve(t,10,1e3)}}),t.category==="console")))}var m0="button,a";function uE(e){return e.closest(m0)||e}function lE(e){let t=dE(e);return!t||!(t instanceof Element)?t:uE(t)}function dE(e){return h0(e)?e.target:e}function h0(e){return typeof e=="object"&&!!e&&"target"in e}var hr;function _0(e){return hr||(hr=[],g0()),hr.push(e),()=>{let t=hr?hr.indexOf(e):-1;t>-1&&hr.splice(t,1)}}function g0(){Ee(be,"open",function(e){return function(...t){if(hr)try{hr.forEach(n=>n())}catch{}return e.apply(be,t)}})}var S0=new Set([Y.Mutation,Y.StyleSheetRule,Y.StyleDeclaration,Y.AdoptedStyleSheet,Y.CanvasMutation,Y.Selection,Y.MediaInteraction]);function E0(e,t,n){e.handleClick(t,n)}var tf=class{constructor(t,n,r=Os){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(){let t=_0(()=>{this._lastMutation=MS()});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(y0(n,this._ignoreSelector)||!I0(t))return;let r={timestamp:Dd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Dd(t)}registerScroll(t=Date.now()){this._lastScroll=Dd(t)}registerClick(t){let n=uE(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){let t=[],n=MS();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(let r of t){let o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){let n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:a}=t;if(i){let c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:E(f({},a.data),{url:be.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:s||1})};this._addBreadcrumbEvent(n,d);return}if(s>1){let c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:E(f({},a.data),{url:be.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0})};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Yr(()=>this._checkClicks(),1e3)}},T0=["A","BUTTON","INPUT"];function y0(e,t){return!!(!T0.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 I0(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function MS(){return Date.now()/1e3}function b0(e,t){try{if(!A0(t))return;let{source:n}=t.data;if(S0.has(n)&&e.registerMutation(t.timestamp),n===Y.Scroll&&e.registerScroll(t.timestamp),R0(t)){let{type:r,id:o}=t.data,i=Wn.mirror.getNode(o);i instanceof HTMLElement&&r===ht.Click&&e.registerClick(i)}}catch{}}function A0(e){return e.type===f0}function R0(e){return e.data.source===Y.MouseInteraction}function xn(e){return f({timestamp:Date.now()/1e3,type:"default"},e)}var Tf=(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))(Tf||{}),v0=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function N0(e){let t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(let n in e)if(v0.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}var C0=e=>t=>{if(!e.isEnabled())return;let n=x0(t);if(!n)return;let r=t.name==="click",o=r?t.event:void 0;
498r&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&E0(e.clickDetector,n,lE(t.event)),Os(e,n)};function fE(e,t){let n=Wn.mirror.getId(e),r=n&&Wn.mirror.getNode(n),o=r&&Wn.mirror.getMeta(r),i=o&&k0(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===Tf.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:N0(i.attributes)}}:{}}}function x0(e){let{target:t,message:n}=w0(e);return xn(f({category:`ui.${e.name}`},fE(t,n)))}function w0(e){let t=e.name==="click",n,r=null;try{r=t?lE(e.event):dE(e.event),n=Oe(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function k0(e){return e.type===Tf.Element}function O0(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=M0(t);n&&Os(e,n)}function M0(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||P0(s)||!i)return null;let a=t||r||o,c=i.length===1;if(!a&&c)return null;let u=Oe(s,{maxStringLength:200})||"<unknown>",d=fE(s,u);return xn({category:"ui.keyDown",message:u,data:E(f({},d.data),{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i})})}function P0(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}var L0={resource:G0,paint:B0,navigation:F0};function Bd(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function U0(e){return e.map(D0).filter(Boolean)}function D0(e){let t=L0[e.entryType];return t?t(e):null}function ai(e){return((ye()||be.performance.timeOrigin)+e)/1e3}function B0(e){let{duration:t,entryType:n,name:r,startTime:o}=e,i=ai(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function F0(e){let{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:p,startTime:m,transferSize:h,type:g}=e;return o===0?null:{type:`${t}.${g}`,start:ai(m),end:ai(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:l,domComplete:i,redirectCount:p}}}function G0(e){let{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:ai(i),end:ai(o),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}}function H0(e){let t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return yf(e,"largest-contentful-paint",n)}function $0(e){return e.sources!==void 0}function W0(e){let t=[],n=[];for(let r of e.entries)if($0(r)){let o=[];for(let i of r.sources)if(i.node){n.push(i.node);let s=Wn.mirror.getId(i.node);s&&o.push(s)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return yf(e,"cumulative-layout-shift",n,t)}function j0(e){let t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return yf(e,"interaction-to-next-paint",n)}function yf(e,t,n,r){let o=e.value,i=e.rating,s=ai(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(a=>Wn.mirror.getId(a)):void 0,attributions:r}}}function z0(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(o=>{r.push(Ht(o,n))}),r.push(Vr(Bd(H0,e)),qr(Bd(W0,e)),as(Bd(j0,e))),()=>{r.forEach(o=>o())}}var j=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,q0='
vendor: 10,329 bytes, line 498
498var 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});
498';function V0(){let e=new Blob([q0]);return URL.createObjectURL(e)}var PS=["log","warn","error"],xc="[Replay] ";function Fd(e,t="info"){It({category:"console",data:{logger:"replay"},level:t,message:`${xc}${e}`},{level:t})}function Y0(){let e=!1,t=!1,n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return j?(PS.forEach(r=>{n[r]=(...o)=>{_[r](xc,...o),t&&Fd(o.join(""),nr(r))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),_.error(xc,r),e?X(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Fd(r,"error")},n.infoTick=(...r)=>{_.log(xc,...r),t&&setTimeout(()=>Fd(r[0]),0)}):PS.forEach(r=>{n[r]=()=>{}}),n}var z=Y0(),Cs=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${pf}.`)}},Bc=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}addEvent(t){return x(this,null,function*(){let n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>pf)throw new Cs;this.events.push(t)})}finish(){return new Promise(t=>{let n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=null;for(let{timestamp:n}of this.events)(t===null||n<t)&&(t=n);return t===null?t:Ef(t)}},nf=class{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():(j&&z.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{j&&z.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(){j&&z.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){let r=this._getAndIncrementId();return new Promise((o,i)=>{let s=({data:a})=>{let c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",s),!c.success){j&&z.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}},rf=class{constructor(t){this._worker=new nf(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){let n=Ef(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);let r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>pf?Promise.reject(new Cs):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{j&&z.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}_finishRequest(){return x(this,null,function*(){let t=yield this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t})}},of=class{constructor(t){this._fallback=new Bc,this._compression=new rf(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}finish(){return x(this,null,function*(){return yield this.ensureWorkerIsLoaded(),this._used.finish()})}
498ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}_ensureWorkerIsLoaded(){return x(this,null,function*(){try{yield this._compression.ensureReady()}catch(t){j&&z.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}yield this._switchToCompressionWorker()})}_switchToCompressionWorker(){return x(this,null,function*(){let{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,o=[];for(let i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{yield Promise.all(o),this._fallback.clear()}catch(i){j&&z.exception(i,"Failed to add events when switching buffers.")}})}};function J0({useCompression:e,workerUrl:t}){if(e&&window.Worker){let n=K0(t);if(n)return n}return j&&z.log("Using simple buffer"),new Bc}function K0(e){try{let t=e||X0();if(!t)return;j&&z.log(`Using compression worker${e?` from ${e}`:""}`);let n=new Worker(t);return new of(n)}catch(t){j&&z.exception(t,"Failed to create compression worker")}}function X0(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?V0():""}function If(){try{return"sessionStorage"in be&&!!be.sessionStorage}catch{return!1}}function Q0(e){Z0(),e.session=void 0}function Z0(){if(If())try{be.sessionStorage.removeItem(df)}catch{}}function pE(e){return e===void 0?!1:Math.random()<e}function qc(e){if(If())try{be.sessionStorage.setItem(df,JSON.stringify(e))}catch{}}function mE(e){let t=Date.now(),n=e.id||fe(),r=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,a=e.previousSessionId,c=e.dirty||!1;return{id:n,started:r,lastActivity:o,segmentId:i,sampled:s,previousSessionId:a,dirty:c}}function ew(e,t){return pE(e)?"session":t?"buffer":!1}function LS({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let o=ew(e,t),i=mE({sampled:o,previousSessionId:r});return n&&qc(i),i}function tw(){if(!If())return null;try{let e=be.sessionStorage.getItem(df);if(!e)return null;let t=JSON.parse(e);return j&&z.infoTick("Loading existing session"),mE(t)}catch{return null}}function sf(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function hE(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return sf(e.started,t,r)||sf(e.lastActivity,n,r)}function _E(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!hE(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Gd({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let o=r.stickySession&&tw();return o?_E(o,{sessionIdleExpire:e,maxReplayDuration:t})?(j&&z.infoTick("Session in sessionStorage is expired, creating new one..."),LS(r,{previousSessionId:o.id})):o:(j&&z.infoTick("Creating new session"),LS(r,{previousSessionId:n}))}function nw(e){return e.type===ne.Custom}function bf(e,t,n){return SE(e,t)?(gE(e,t,n),!0):!1}function rw(e,t,n){return SE(e,t)?gE(e,t,n):Promise.resolve(null)}function gE(e,t,n){return x(this,null,function*(){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let o=e.recordingMode==="buffer";try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let i=e.getOptions(),s=ow(t,i.beforeAddRecordingEvent);return s?yield r.addEvent(s):void 0}catch(i){let s=i&&i instanceof Cs,a=s?"addEventSizeExceeded":"addEvent",c=I();if(c){let u=s?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(u,"replay")}if(s&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),yield e.stop({reason:a})}})}function SE(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=Ef(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(j&&z.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function ow(e,t){try{if(typeof t=="function"&&nw(e))return t(e)}catch(n){return j&&z.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Af(e){return!e.type}function af(e){return e.type==="transaction"}function iw(e){return e.type==="replay_event"}function US(e){return e.type==="feedback"}function sw(e){return(t,n)=>{if(!e.isEnabled()||!Af(t)&&!af(t))return;let r=n.statusCode;if(!(!r||r<200||r>
498=300)){if(af(t)){aw(e,t);return}cw(e,t)}}}function aw(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function cw(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Yr(()=>x(null,null,function*(){try{yield e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}}))}function uw(e){return t=>{!e.isEnabled()||!Af(t)||lw(e,t)}}function lw(e,t){let 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))){let r=xn({category:"replay.hydrate-error",data:{url:dt()}});Os(e,r)}}function dw(e){let t=I();t&&t.on("beforeAddBreadcrumb",n=>fw(e,n))}function fw(e,t){if(!e.isEnabled()||!EE(t))return;let n=pw(t);n&&Os(e,n)}function pw(e){return!EE(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?mw(e):xn(e)}function mw(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return xn(e);let n=!1,r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Rc?(n=!0,`${o.slice(0,Rc)}\u2026`):o;if(typeof o=="object")try{let i=ve(o,7);return JSON.stringify(i).length>Rc?(n=!0,`${JSON.stringify(i,null,2).slice(0,Rc)}\u2026`):i}catch{}return o});return xn(E(f({},e),{data:f(E(f({},e.data),{arguments:r}),n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}function EE(e){return!!e.category}function hw(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function TE(){let e=L().getPropagationContext().dsc;e&&delete e.replay_id;let t=ee();if(t){let n=Ue(t);delete n.replay_id}}function _w(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:ne.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 gw(e,t){return e.recordingMode!=="buffer"||t.message===ff||!t.exception||t.type?!1:pE(e.getOptions().errorSampleRate)}function Sw(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(iw(t))return delete t.breadcrumbs,t;if(!Af(t)&&!af(t)&&!US(t))return t;if(!e.checkAndHandleExpiredSession())return TE(),t;if(US(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),_w(e,t),t;if(hw(t,n)&&!e.getOptions()._experiments.captureExceptions)return j&&z.log("Ignoring error from rrweb internals",t),null;let o=gw(e,t);if((o||e.recordingMode==="session")&&(t.tags=E(f({},t.tags),{replayId:e.getSessionId()})),o&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){let s=e.session;s.dirty=!0,e.getOptions().stickySession&&qc(s)}return t},{id:"Replay"})}function Vc(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{let a=e.throttledAddEvent({type:ne.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:s}}});return typeof a=="string"?Promise.resolve(null):a})}function Ew(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Tw(e){return t=>{if(!e.isEnabled())return;let n=Ew(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Vc(e,[n]),!1)))}}function yw(e,t){return j&&e.getOptions()._experiments.traceInternals?!1:$i(t,I())}function yE(e,t){e.isEnabled()&&t!==null&&(yw(e,t.name)||e.addUpdate(()=>(Vc(e,[t]),!0)))}function Yc(e){if(!e)return;let t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=Sc(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function IE(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function Fc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n=f({},e._meta),r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function bE(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:i,statusCode:s,request:a,response:c}}}function xs(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function _r(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:o,warnings:i}=Iw(n);return r.body=o,i?.length&&(r._meta={warnings:i}),r}function cf(e,t){return Object.entries(e).reduce((n,[r,o])=>{let i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n},{})}function Iw(e){if(!e||typeof e!="string")return{body:e};let t=e.length>gS,n=bw(e);if(t){let r=e.slice(0,gS);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function bw(e){let t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Gc(e,t){let n=Aw(e);return Qe(n,t)}function Aw(e,t=be.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(be.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}function Rw(e,t,n){return x(this,null,function*(){try{let r=yield Nw(e,t,n),o=bE("resource.fetch",r);yE(n.replay,o)}catch(r){j&&z.exception(r,"Failed to capture fetch breadcrumb")}})}
498function vw(e,t){let{input:n,response:r}=t,o=n?Jo(n):void 0,i=Yc(o),s=r?IE(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function Nw(e,t,n){return x(this,null,function*(){let r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,l=Gc(s,n.networkDetailAllowUrls)&&!Gc(s,n.networkDetailDenyUrls),p=l?Cw(n,t.input,u):xs(u),m=yield xw(l,n,t.response,d);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:p,response:m}})}function Cw({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let o=n?Ow(n,t):{};if(!e)return _r(o,r,void 0);let i=Jo(n),[s,a]=Kr(i,z),c=_r(o,r,s);return a?Fc(c,a):c}function xw(i,s,a,c){return x(this,arguments,function*(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return xs(o);let u=r?AE(r.headers,n):{};if(!r||!t&&o!==void 0)return _r(u,o,void 0);let[d,l]=yield kw(r),p=ww(d,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:u});return l?Fc(p,l):p})}function ww(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{let i=e?.length&&n===void 0?Yc(e):n;return r?t?_r(o,i,e):_r(o,i,void 0):xs(i)}catch(i){return j&&z.exception(i,"Failed to serialize response body"),_r(o,n,void 0)}}function kw(e){return x(this,null,function*(){let t=Mw(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[yield Pw(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(j&&z.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(j&&z.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}})}function AE(e,t){let n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function Ow(e,t){return e.length===1&&typeof e[0]!="string"?DS(e[0],t):e.length===2?DS(e[1],t):{}}function DS(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?AE(n,t):Array.isArray(n)?{}:cf(n,t):{}}function Mw(e){try{return e.clone()}catch(t){j&&z.exception(t,"Failed to clone response body")}}function Pw(e){return new Promise((t,n)=>{let r=Yr(()=>n(new Error("Timeout while trying to read response body")),500);Lw(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}function Lw(e){return x(this,null,function*(){return yield e.text()})}function Uw(e,t,n){return x(this,null,function*(){try{let r=Bw(e,t,n),o=bE("resource.xhr",r);yE(n.replay,o)}catch(r){j&&z.exception(r,"Failed to capture xhr breadcrumb")}})}function Dw(e,t){let{xhr:n,input:r}=t;if(!n)return;let o=Yc(r),i=n.getResponseHeader("content-length")?IE(n.getResponseHeader("content-length")):Hw(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function Bw(e,t,n){let r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=t,{url:c,method:u,status_code:d=0,request_body_size:l,response_body_size:p}=e.data;if(!c)return null;if(!a||!Gc(c,n.networkDetailAllowUrls)||Gc(c,n.networkDetailDenyUrls)){let G=xs(l),y=xs(p);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:G,response:y}}let m=a[mt],h=m?cf(m.request_headers,n.networkRequestHeaders):{},g=cf(ds(a),n.networkResponseHeaders),[S,T]=n.networkCaptureBodies?Kr(s,z):[void 0],[A,U]=n.networkCaptureBodies?Fw(a):[void 0],M=_r(h,l,S),V=_r(g,p,A);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:T?Fc(M,T):M,response:U?Fc(V,U):V}}function Fw(e){let t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return Gw(e.response,e.responseType)}catch(n){t.push(n)}return j&&z.warn("Failed to get xhr response body",...t),[void 0]}function Gw(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 j&&z.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return j&&z.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Hw(e,t){try{let n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Yc(n)}catch{return}}function $w(e){let t=I();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,u)=>Ww(a,c,u))}catch{}}function Ww(e,t,n){if(t.data)try{jw(t)&&qw(n)&&(Dw(t,n),Uw(t,n,e)),zw(t)&&Vw(n)&&(vw(t,n),Rw(t,n,e))}catch(r){j&&z.exception(r,"Error when enriching network breadcrumb")}}function jw(e){return e.category==="xhr"}function zw(e){return e.category==="fetch"}function qw(e){return e?.xhr}function Vw(e){return e?.response}function Yw(e){let t=I();ls(C0(e)),Hn(Tw(e)),dw(e),$w(e);let n=Sw(e);Ea(n),t&&(t.on("beforeSendEvent",uw(e)),t.on("afterSendEvent",sw(e)),t.on("createDsc",r=>{let o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,o)=>x(null,null,function*(){let i=e.getSessionId();o?.includeReplay&&e.isEnabled()&&i&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&(yield e.sendBufferedReplayOrFlush()),r.contexts.feedback.replay_id=i)})),t.on("openFeedbackWidget",()=>x(null,null,function*(){yield e.sendBufferedReplayOrFlush()})))}function Jw(e){return x(this,null,function*(){try{return Promise.all(Vc(e,[Kw(be.performance.memory)]))}catch{return[]}})}function Kw(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Xw(e,t,n){return _l(e,t,E(f({},n),{setTimeoutImpl:Yr}))}var Cc=C.navigator;function Qw(){return/iPhone|iPad|iPod/i.test(Cc?.userAgent??"")||/Macintosh/i.test(Cc?.userAgent??"")&&Cc?.maxTouchPoints&&Cc?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function Zw(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){j&&z.warn("Received replay event after session expired.");return}let o=r||!t;t=!0,e.clickDetector&&b0(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!bf(e,n,o))return!0;
498if(!o)return!1;let i=e.session;if(tk(e,o),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){let s=e.eventBuffer.getEarliestTimestamp();s&&(j&&z.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),i.started=s,e.getOptions().stickySession&&qc(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function ek(e){let t=e.getOptions();return{type:ne.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 tk(e,t){!t||e.session?.segmentId!==0||bf(e,ek(e),!1)}function nk(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function rk(e,t,n,r){return De(wi(e,Xn(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function ok({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)} 499`;if(typeof e=="string")n=`${r}${e}`;else{let i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}function ik(o){return x(this,arguments,function*({client:e,scope:t,replayId:n,event:r}){let i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,s={event_id:n,integrations:i};e.emit("preprocessEvent",r,s);let a=yield Pi(e.getOptions(),r,s,t,e,ae());if(!a)return null;e.emit("postprocessEvent",a,s),a.platform=a.platform||"javascript";let c=e.getSdkMetadata(),{name:u,version:d,settings:l}=c?.sdk||{};return a.sdk=E(f({},a.sdk),{name:u||"sentry.javascript.unknown",version:d||"0.0.0",settings:l}),a})}function sk(s){return x(this,arguments,function*({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){let a=ok({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:l}=r,p=I(),m=L(),h=p?.getTransport(),g=p?.getDsn();if(!p||!h||!g||!i.sampled)return Promise.resolve({});let S={type:JC,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:i.sampled},T=yield ik({scope:m,client:p,replayId:t,event:S});if(!T)return p.recordDroppedEvent("event_processor","replay"),j&&z.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete T.sdkProcessingMetadata;let A=rk(T,a,g,p.getOptions().tunnel),U;try{U=yield h.send(A)}catch(V){let G=new Error(ff);try{G.cause=V}catch{}throw G}let M=Fi({},U);if(Bi(M,"replay"))throw new ws(M);if(typeof U.statusCode=="number"&&(U.statusCode<200||U.statusCode>=300))throw new Hc(U.statusCode);return U})}var Hc=class extends Error{constructor(t){super(`Transport returned status code ${t}`)}},ws=class extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}},$c=class extends Error{constructor(){super("Session is too long, not sending replay")}};function RE(n){return x(this,arguments,function*(e,t={count:0,interval:tx}){let{recordingData:r,onError:o}=e;if(r.length)try{return yield sk(e),!0}catch(i){if(i instanceof Hc||i instanceof ws)throw i;if(go("Replays",{_retryCount:t.count}),o&&o(i),t.count>=nx){let s=new Error(`${ff} - max retries exceeded`);try{s.cause=i}catch{}throw s}return t.interval*=++t.count,new Promise((s,a)=>{Yr(()=>x(null,null,function*(){try{yield RE(e,t),s(!0)}catch(c){a(c)}}),t.interval)})}})}var vE="__THROTTLED",ak="__SKIPPED";function ck(e,t,n){let r=new Map,o=a=>{let c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0),s=!1;return(...a)=>{let c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){let d=s;return s=!0,d?ak:vE}s=!1;let u=r.get(c)||0;return r.set(c,u+1),e(...a)}}var uf=class{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:KC,sessionIdleExpire:XC},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=Xw(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=ck((s,a)=>rw(this,s,a),300,5);let{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(rx,r),timeout:r,scrollTimeout:ox,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new tf(this,i)),j){let s=t._experiments;z.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{be.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
499dTasks()},this._handleWindowBlur=()=>{let s=xn({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{let s=xn({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{O0(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){j&&z.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){let{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){j&&z.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",j&&z.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){j&&z.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){j&&z.log("Buffering is in progress, call `flush()` to save the replay");return}j&&z.infoTick("Starting replay in session mode"),this._updateUserActivity();let t=Gd({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){j&&z.log("Buffering is in progress, call `flush()` to save the replay");return}j&&z.infoTick("Starting replay in buffer mode");let t=Gd({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let t=this._canvas;this._stopRecording=Wn(f(E(f(E(f(f({},this._recordingOptions),this.recordingMode==="buffer"?{checkoutEveryNms:ex}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)}),{emit:Zw(this)}),Qw()),{onMutation:this._onMutationHandler.bind(this)}),t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}))}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}stop(){return x(this,arguments,function*({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{j&&z.log(`Stopping Replay${n?` triggered by ${n}`:""}`),TE(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&(yield this._flush({force:!0})),this.eventBuffer?.destroy(),this.eventBuffer=null,Q0(this)}catch(r){this.handleException(r)}}})}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),j&&z.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),j&&z.log("Resuming replay"))}sendBufferedReplayOrFlush(){return x(this,arguments,function*({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let n=Date.now();j&&z.log("Converting buffer to session"),yield this.flushImmediate();let 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){let 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}
499checkAndHandleExpiredSession(){if(this._lastActivity&&sf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let t=`${be.location.pathname}${be.location.hash}${be.location.search}`,n=`${be.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){let r=this._throttledAddEvent(t,n);if(r===vE){let o=xn({category:"replay.throttled"});this.addUpdate(()=>!bf(this,{type:p0,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){let t=this.lastActiveSpan||ee(),n=t&&ie(t),o=(n&&D(n).data||{})[Re];if(!(!n||!o||!["route","custom"].includes(o)))return D(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=J0({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){let n=this._options.errorSampleRate>0,r=Gd({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;let t=this.session;return _E(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}_refreshSession(t){return x(this,null,function*(){this._isEnabled&&(yield this.stop({reason:"refresh session"}),this.initializeSampling(t.id))})}_addListeners(){try{be.document.addEventListener("visibilitychange",this._handleVisibilityChange),be.addEventListener("blur",this._handleWindowBlur),be.addEventListener("focus",this._handleWindowFocus),be.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Yw(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=z0(this)}_removeListeners(){try{be.document.removeEventListener("visibilitychange",this._handleVisibilityChange),be.removeEventListener("blur",this._handleWindowBlur),be.removeEventListener("focus",this._handleWindowFocus),be.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||hE(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()){j&&z.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:ne.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=U0(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(Vc(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;let r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
499_popEventContext(){let 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}_runFlush(){return x(this,null,function*(){let t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){j&&z.error("No session or eventBuffer found to flush.");return}if(yield this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(yield Jw(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new $c;let r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();let i=yield this.eventBuffer.finish();yield RE({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});let r=I();if(r){let o;n instanceof ws?o="ratelimit_backoff":n instanceof $c?o="invalid":o="send_error",r.recordDroppedEvent(o,"replay")}}})}_flush(){return x(this,arguments,function*({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){j&&z.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();let i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){j&&z.log(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&j&&z.log("Flushing initial segment without checkout.");let c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{yield this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}})}_maybeSaveSession(){this.session&&this._options.stickySession&&qc(this.session)}_onMutationHandler(t){let{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{let c=nk(a.target),u=n.join(",");return c?.matches(u)}))return!1;let r=t.length,o=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=o&&r>o;if(r>i||s){let a=xn({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(a)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}};function Ts(e,t){return[...e,...t].join(",")}function uk({mask:e,unmask:t,block:n,unblock:r,ignore:o}){let i=["base","iframe[srcdoc]:not([src])"],s=Ts(e,[".sentry-mask","[data-sentry-mask]"]),a=Ts(t,[]);return{maskTextSelector:s,unmaskTextSelector:a,blockSelector:Ts(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Ts(r,[]),ignoreSelector:Ts(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function lk({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}var BS='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',dk=["content-length","content-type","accept"],fk=Symbol.for("sentry__originalRequestBody"),FS=!1,GS=!1;function pk(){if(typeof Request>"u"||GS)return;let e=Request;try{let t=function(n,r){let o=new e(n,r);return r?.body!=null&&(o[fk]=r.body),o};t.prototype=e.prototype,C.Request=t,GS=!0}catch{}}var mk=e=>new lf(e),lf=class{constructor({flushMinDelay:t=QC,flushMaxDelay:n=ZC,minReplayDuration:r=ix,maxReplayDuration:o=SS,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:p=750,mutationLimit:m=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:S=[],networkDetailDenyUrls:T=[],networkCaptureBodies:A=!0,networkRequestHeaders:U=[],networkResponseHeaders:M=[],mask:V=[],maskAttributes:G=["title","placeholder","aria-label"],unmask:y=[],block:P=[],unblock:q=[],ignore:v=[],maskFn:F,beforeAddRecordingEvent:O,beforeErrorSampling:B,onError:$,attachRawBodyFromRequest:se=!1}={}){this.name="Replay";let re=uk({mask:V,unmask:y,block:P,unblock:q,ignore:v});if(this._recordingOptions=E(f({maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:F,maskInputFn:F,maskAttributeFn:(ue,N,J)=>lk({maskAttributes:G,maskAllText:u,privacyOptions:re,key:ue,value:N,el:J})},re),{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:ue=>{try{ue.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes}),this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,sx),maxReplayDuration:Math.min(o,SS),stickySession:i,useCompression:s,workerUrl:a,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:m,slowClickTimeout:h,slowClickIgnoreSelectors:g,networkDetailAllowUrls:S,networkDetailDenyUrls:T,networkCaptureBodies:A,networkRequestHeaders:HS(U),networkResponseHeaders:HS(M),beforeAddRecordingEvent:O,beforeErrorSampling:B,onError:$,attachRawBodyFromRequest:se,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${BS}`:BS,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&lr())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return FS}set _isInitialized(t){FS=t}afterAllSetup(t){!lr()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&pk(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
499startBuffering(){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){let n=hk(this._initialOptions,t);this._replay=new uf({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{let n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}};function hk(e,t){let n=t.getOptions(),r=f({sessionSampleRate:0,errorSampleRate:0},e),o=Ot(n.replaysSessionSampleRate),i=Ot(n.replaysOnErrorSampleRate);return o==null&&i==null&&Be(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),i!=null&&(r.errorSampleRate=i),r}function HS(e){return[...dk,...e.map(t=>t.toLowerCase())]}function _k(){return I()?.getIntegrationByName("Replay")}var gk=Object.defineProperty,Sk=(e,t,n)=>t in e?gk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NE=(e,t,n)=>Sk(e,typeof t!="symbol"?t+"":t,n),vf=class{constructor(){NE(this,"idNodeMap",new Map),NE(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let n=this.getId(t);this.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){let r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){let r=this.getNode(t);if(r){let o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Ek(){return new vf}function Tk(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function Nf(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Nf(e.parentNode,t,n,r+1)}function CE(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Tk(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}var ci=`Please stop import mirror directly. Instead of that,\r 500now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 501or you can use record.mirror to access the mirror instance during recording.`,xE={map:{},getId(){return console.error(ci),-1},getNode(){return console.error(ci),null},removeNodeFromMap(){console.error(ci)},has(){return console.error(ci),!1},reset(){console.error(ci)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(xE=new Proxy(xE,{get(e,t,n){return t==="map"&&console.error(ci),Reflect.get(e,t,n)}}));function xf(e,t,n,r,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){DE(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>xf(e,t,i||{},!0)}function wf(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function yk(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Qc(e,t,n,r,o){if(!e)return!1;let i=yk(e);if(!i)return!1;let s=CE(t,n);if(!o){let u=r&&i.matches(r);return s(i)&&!u}let a=Nf(i,s),c=-1;return a<0?!1:(r&&(c=Nf(i,CE(null,r))),a>-1&&c<0?!0:a<c)}var wE={};function UE(e){let t=wE[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement=="function")try{let o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return wE[e]=r.bind(window)}function Qr(...e){return UE("requestAnimationFrame")(...e)}
501function DE(...e){return UE("setTimeout")(...e)}var li=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(li||{}),Kc;function Ik(e){Kc=e}var Rf=e=>Kc?(...n)=>{try{return e(...n)}catch(r){if(Kc&&Kc(r)===!0)return()=>{};throw r}}:e,ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bk=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Ms=0;Ms<ui.length;Ms++)bk[ui.charCodeAt(Ms)]=Ms;var Ms,Ak=function(e){var t=new Uint8Array(e),n,r=t.length,o="";for(n=0;n<r;n+=3)o+=ui[t[n]>>2],o+=ui[(t[n]&3)<<4|t[n+1]>>4],o+=ui[(t[n+1]&15)<<2|t[n+2]>>6],o+=ui[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},kE=new Map;function Rk(e,t){let n=kE.get(e);return n||(n=new Map,kE.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var BE=(e,t,n)=>{if(!e||!(GE(e,t)||typeof e=="object"))return;let r=e.constructor.name,o=Rk(n,r),i=o.indexOf(e);return i===-1&&(i=o.length,o.push(e)),i};function Xc(e,t,n){if(e instanceof Array)return e.map(r=>Xc(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let r=e.constructor.name,o=Ak(e);return{rr_type:r,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Xc(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let r=e.constructor.name,{src:o}=e;return{rr_type:r,src:o}}else if(e instanceof HTMLCanvasElement){let r="HTMLImageElement",o=e.toDataURL();return{rr_type:r,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Xc(e.data,t,n),e.width,e.height]};if(GE(e,t)||typeof e=="object"){let r=e.constructor.name,o=BE(e,t,n);return{rr_type:r,index:o}}}}return e}var FE=(e,t,n)=>e.map(r=>Xc(r,t,n)),GE=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof t[o]=="function").find(o=>e instanceof t[o]);function vk(e,t,n,r,o){let i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;let c=wf(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return Qc(this.canvas,n,r,o,!0)||DE(()=>{let l=FE(d,t,this);e(this.canvas,{type:li["2D"],property:a,args:l})},0),u.apply(this,d)}});i.push(c)}catch{let c=xf(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:li["2D"],property:a,args:[u],setter:!0})}});i.push(c)}return()=>{i.forEach(a=>a())}}function Nk(e){return e==="experimental-webgl"?"webgl":e}function OE(e,t,n,r,o){let i=[];try{let s=wf(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!Qc(this,t,n,r,!0)){let d=Nk(c);if("__context"in this||(this.__context=d),o&&["webgl","webgl2"].includes(d))if(u[0]&&typeof u[0]=="object"){let l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(s=>s())}}function ME(e,t,n,r,o,i,s,a){let c=[],u=Object.getOwnPropertyNames(e);for(let d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;let l=wf(e,d,function(p){return function(...m){let h=p.apply(this,m);if(BE(h,a,this),"tagName"in this.canvas&&!Qc(this.canvas,r,o,i,!0)){let g=FE(m,a,this),S={type:t,property:d,args:g};n(this.canvas,S)}return h}});c.push(l)}catch{let l=xf(e,d,{set(p){n(this.canvas,{type:t,property:d,args:[p],setter:!0})}});c.push(l)}return c}function Ck(e,t,n,r,o,i){let s=[];return s.push(...ME(t.WebGLRenderingContext.prototype,li.WebGL,e,n,r,o,i,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...ME(t.WebGL2RenderingContext.prototype,li.WebGL2,e,n,r,o,i,t)),()=>
501{s.forEach(a=>a())}}var xk='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function wk(){let e=new Blob([xk]);return URL.createObjectURL(e)}var Cf=class{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};let{enableManualSnapshot:n,sampling:r="all",win:o,recordCanvas:i,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&Ik(s),(i&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(o),!n&&Rf(()=>{i&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){let{sampling:n="all",blockClass:r,blockSelector:o,unblockSelector:i,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}Rf(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,o,i),s&&typeof n=="number"){let c=OE(t,r,o,i,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}Qr(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){let t=new Worker(wk());return t.onmessage=n=>{let r=n.data,{id:o}=r;if(this.snapshotInProgressMap.set(o,!1),!("base64"in r))return;let{base64:i,type:s,width:a,height:c}=r;this.mutationCb({id:o,type:li["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:i}],type:s}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;let n=r=>{this.takeSnapshot(r,!1),t=Qr(n)};t=Qr(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,o){let i=OE(t,n,r,o,!1),s=vk(this.processMutation.bind(this),t,n,r,o),a=Ck(this.processMutation.bind(this),t,n,r,o,this.mirror);this.restoreHandlers.push(()=>{i(),s(),a()})}getCanvasElements(t,n,r){let o=[],i=s=>{s.querySelectorAll("canvas").forEach(a=>{Qc(a,t,n,r,!0)||o.push(a)})};for(let s of this.windows){let a=s.deref(),c;try{c=a&&a.document}catch{}c&&i(c)}for(let s of this.shadowDoms){let a=s.deref();a&&i(a)}return o}takeSnapshot(t,n,r){let{sampling:o,blockClass:i,blockSelector:s,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,l=1e3/(o==="all"?2:o||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<l?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(i,s,a)).forEac
501h(h=>{let g=this.mirror.getId(h);if(!(!this.mirror.hasNode(h)||!h.width||!h.height||this.snapshotInProgressMap.get(g))){if(this.snapshotInProgressMap.set(g,!0),!n&&["webgl","webgl2"].includes(h.__context)){let S=h.getContext(h.__context);S?.getContextAttributes()?.preserveDrawingBuffer===!1&&S.clear(S.COLOR_BUFFER_BIT)}createImageBitmap(h).then(S=>{this.worker?.postMessage({id:g,bitmap:S,width:h.width,height:h.height,dataURLOptions:c,maxCanvasSize:u},[S])}).catch(S=>{Rf(()=>{throw this.snapshotInProgressMap.delete(g),S})()})}}),!0)}startPendingCanvasMutationFlusher(){Qr(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=n=>{this.rafStamps.latestId=n,Qr(t)};Qr(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{let r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Qr(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;let o=r.map(s=>{let u=s,{type:a}=u;return mn(u,["type"])}),{type:i}=r[0];this.mutationCb({id:n,type:i,commands:o}),this.pendingCanvasMutations.delete(t)}};try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Ek();var PE;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(PE||(PE={}));var LE={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},kk="ReplayCanvas",Jc=1280,Ok=(e={})=>{let[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Jc):Jc,n?Math.min(n,Jc):Jc]},o,i,s=new Promise(c=>i=c);return{name:kk,getOptions(){let{quality:c,enableManualSnapshot:u,maxCanvasSize:d}=r;return f({enableManualSnapshot:u,recordCanvas:!0,getCanvasManager:l=>{let p=new Cf(E(f({},l),{enableManualSnapshot:u,maxCanvasSize:d,errorHandler:m=>{try{typeof m=="object"&&(m.__rrweb__=!0)}catch{}}}));return o=p,i(p),p}},LE[c]||LE.medium)},snapshot(c,u){return x(this,null,function*(){(o||(yield s)).snapshot(c,u)})}}},Mk=Ok;function HE(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function kf(e){try{return new URL(e,w.location.origin).href}catch{return}}function $E(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Of(e){try{return new Headers(e)}catch{return}}var WE=new WeakMap,Mf=new Map,Zc={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Pf(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}=f(f({},Zc),t),d=typeof i=="function"?i:h=>!0,l=h=>Pk(h,a),p={},m=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(g=>{if(g.op==="http.client"){let S=Mf.get(g.span_id);S&&(g.timestamp=S/1e3,Mf.delete(g.span_id))}}),h)),o&&Gl(h=>{if(h.response){let g=WE.get(h.response);g&&h.endTimestamp&&Mf.set(g,h.endTimestamp)}}),Gr(h=>{let g=Il(h,d,l,p,{propagateTraceparent:m,onRequestSpanEnd:u});if(h.response&&h.fetchData.__span&&WE.set(h.response,h.fetchData.__span),g){let S=kf(h.fetchData.url),T=S?an(S).host:void 0;g.setAttributes({"http.url":S?zt(S):void 0,"server.address":T}),s&&jE(g),c?.(g,{headers:h.headers})}})),r&&Jr(h=>{let g=Lk(h,d,l,p,m,u);g&&(s&&jE(g),c?.(g,{headers:Of(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}function jE(e){let{url:t}=D(e).data;if(!t||typeof t!="string")return;let n=Ht("resource",({entries:r})=>{r.forEach(o=>{$E(o)&&o.name.endsWith(t)&&(e.setAttributes(us(o)),setTimeout(n))})})}function Pk(e,t){let n=dt();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}let i=r.origin===o;return t?Qe(r.toString(),t)||i&&Qe(r.pathname,t):i}else{let r=!!e.match(/^\/(?!\/)/);return t?Qe(e,t):r}}function Lk(e,t,n,r,o,i){let s=e.xhr,a=s?.[mt];if(!s||s.__sentry_own_request__||!a)return;let{url:c,method:u}=a,d=Le()&&t(c);if(e.endTimestamp){let T=s.__sentry_xhr_span_id__;if(!T)return;let A=r[T];A&&(d&&a.status_code!==void 0&&(Mn(A,a.status_code),A.end(),i?.(A,{headers:Of(ds(s)),error:e.error})),delete r[T]);return}let l=kf(c),p=l?an(l):an(c),m=zt(Lr(c)),h=!!ee(),g=d&&h?Ve({name:`${u} ${m}`,attributes:f(f({url:zt(c),type:"xhr","http.method":u,"http.url":l?zt(l):void 0,"server.address":p?.host,[W]:"auto.http.browser",[pe]:"http.client"},p?.search&&{"http.query":p?.search}),p?.hash&&{"http.fragment":p?.hash})}):new st;s.__sentry_xhr_span_id__=g.spanContext().spanId,r[s.__sentry_xhr_span_id__]=g,n(c)&&Uk(s,Le()&&h?g:void 0,o);let S=I();return S&&S.emit("beforeOutgoingRequestSpan",g,e),g}function Uk(e,t,n){let{"sentry-trace":r,baggage:o,traceparent:i}=Ao({span:t,propagateTraceparent:n});r&&Dk(e,r,o,i)}function Dk(e,t,n,r){let o=e.__sentry_xhr_v3__?.request_headers;if(!(o?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){let i=o?.baggage;(!i||!HE(i))&&e.setRequestHeader("baggage",n)}}catch{}}function zE(){w.document?w.document.addEventListener("visibilitychange",()=>{let e=ee();if(!e)return;let t=ie(e);if(w.document.hidden&&t){let n="cancelled",{op:r,status:o}=D(t);R&&_.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:2,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):R&&_.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var Bk=3600,qE="sentry_previous_trace",Fk="sentry.previous_trace";function VE(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t==="session-storage",o=r?$k():void 0;e.on("spanStart",s=>{if(ie(s)!==s)return;let a=L().getPropagationContext();o=Gk(o,s,a),r&&Hk(o)});let i=!0;n&&e.on("beforeSampling",s=>{if(!o)return;let a=L(),c=a.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}a.setPropagationContext(E(f({}
501,c),{dsc:E(f({},c.dsc),{sample_rate:String(o.sampleRate),sampled:String(Lf(o.spanContext))}),sampleRand:o.sampleRand})),s.parentSampled=Lf(o.spanContext),s.parentSampleRate=o.sampleRate,s.spanAttributes=E(f({},s.spanAttributes),{[Ii]:o.sampleRate})})}function Gk(e,t,n){let r=D(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Vn])}catch{return 0}}let i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return i;let s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=Bk&&(R&&_.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify(f({op:r.op},t.spanContext()))}\``),t.addLink({context:s,attributes:{[wu]:"previous_trace"}}),t.setAttribute(Fk,`${s.traceId}-${s.spanId}-${Lf(s)?1:0}`)),i)}function Hk(e){try{w.sessionStorage.setItem(qE,JSON.stringify(e))}catch(t){R&&_.warn("Could not store previous trace in sessionStorage",t)}}function $k(){try{let e=w.sessionStorage?.getItem(qE);return JSON.parse(e)}catch{return}}function Lf(e){return e.traceFlags===1}var Wk="BrowserTracing",jk=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function zk(){let e=w.navigator;return e?.userAgent?jk.test(e.userAgent):!1}var qk=f(E(f({},_o),{instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{}}),Zc),Uf=(e={})=>{"enableElementTiming"in e&&Be(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t={name:void 0,source:void 0},n=w.document,{enableInp:r,enableLongTask:o,enableLongAnimationFrame:i,_experiments:{enableInteractions:s,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:c},beforeStartSpan:u,idleTimeout:d,finalTimeout:l,childSpanTimeout:p,markBackgroundSpan:m,traceFetch:h,traceXHR:g,trackFetchStreamPerformance:S,shouldCreateSpanForRequest:T,enableHTTPTimings:A,ignoreResourceSpans:U,ignorePerformanceApiSpans:M,instrumentPageLoad:V,instrumentNavigation:G,detectRedirects:y,linkPreviousTrace:P,consistentTraceSampling:q,enableReportPageLoaded:v,onRequestSpanStart:F,onRequestSpanEnd:O}=f(f({},qk),e),B=zk(),$,se,re;function ue(N,J,k=!0){let Q=J.op==="pageload",me=J.name,le=u?u(J):J,Pe=le.attributes||{};if(me!==le.name&&(Pe[Re]="custom",le.attributes=Pe),!k){let Je=kt();Ve(E(f({},le),{startTime:Je})).end(Je);return}t.name=le.name,t.source=Pe[Re];let ct=ma(le,{idleTimeout:d,finalTimeout:l,childSpanTimeout:p,disableAutoFinish:Q,beforeSpanEnd:Je=>{$?.(),Id(Je,{recordClsOnPageloadSpan:!a,recordLcpOnPageloadSpan:!c,ignoreResourceSpans:U,ignorePerformanceApiSpans:M}),KE(N,void 0);let Ke=L(),en=Ke.getPropagationContext();Ke.setPropagationContext(E(f({},en),{traceId:ct.spanContext().traceId,sampled:Mt(ct),dsc:Ue(Je)})),Q&&(re=void 0)},trimIdleSpanEndTimestamp:!v});Q&&v&&(re=ct),KE(N,ct);function jn(){n&&["interactive","complete"].includes(n.readyState)&&N.emit("idleSpanEnableAutoFinish",ct)}Q&&!v&&n&&(n.addEventListener("readystatechange",()=>{jn()}),jn())}return{name:Wk,setup(N){if(B){R&&_.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(sa(),$=Sd({recordClsStandaloneSpans:a||!1,recordLcpStandaloneSpans:c||!1,client:N}),r&&Cd(),i&&C.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?Td():o&&Ed(),s&&yd(),y&&n){let k=()=>{se=oe()};addEventListener("click",k,{capture:!0}),addEventListener("keydown",k,{capture:!0,passive:!0})}function J(){let k=Ps(N);k&&!D(k).timestamp&&(R&&_.log(`[Tracing] Finishing current active span with op: ${D(k).op}`),k.setAttribute(Yn,"cancelled"),k.end())}N.on("startNavigationSpan",(k,Q)=>{if(I()!==N)return;if(Q?.isRedirect){R&&_.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),ue(N,f({op:"navigation.redirect"},k),!1);return}se=void 0,J(),ae().setPropagationContext({traceId:Ze(),sampleRand:Math.random(),propagationSpanId:Le()?void 0:it()});let me=L();me.setPropagationContext({traceId:Ze(),sampleRand:Math.random(),propagationSpanId:Le()?void 0:it()}),me.setSDKProcessingMetadata({normalizedRequest:void 0}),ue(N,E(f({op:"navigation"},k),{parentSpan:null,forceTransaction:!0}))}),N.on("startPageLoadSpan",(k,Q={})=>
501{if(I()!==N)return;J();let me=Q.sentryTrace||YE("sentry-trace")||JE("sentry-trace"),le=Q.baggage||YE("baggage")||JE("baggage"),Pe=Ri(me,le),ct=L();ct.setPropagationContext(Pe),Le()||(ct.getPropagationContext().propagationSpanId=it()),ct.setSDKProcessingMetadata({normalizedRequest:rs()}),ue(N,f({op:"pageload"},k))}),N.on("endPageloadSpan",()=>{v&&re&&(re.setAttribute(Yn,"reportPageLoaded"),re.end())})},afterAllSetup(N){if(B)return;let J=dt();if(P!=="off"&&VE(N,{linkPreviousTrace:P,consistentTraceSampling:q}),w.location){if(V){let k=ye();QE(N,{name:w.location.pathname,startTime:k?k/1e3:void 0,attributes:{[Re]:"url",[W]:"auto.pageload.browser"}})}G&&Hn(({to:k,from:Q})=>{if(Q===void 0&&J?.indexOf(k)!==-1){J=void 0;return}J=void 0;let me=Pr(k),le=Ps(N),Pe=le&&y&&Yk(le,se);eu(N,{name:me?.pathname||w.location.pathname,attributes:{[Re]:"url",[W]:"auto.navigation.browser"}},{url:k,isRedirect:Pe})})}m&&zE(),s&&Vk(N,d,l,p,t),r&&xd(),Pf(N,{traceFetch:h,traceXHR:g,trackFetchStreamPerformance:S,tracePropagationTargets:N.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:T,enableHTTPTimings:A,onRequestSpanStart:F,onRequestSpanEnd:O})}}};function QE(e,t,n){e.emit("startPageLoadSpan",t,n),L().setTransactionName(t.name);let r=Ps(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function eu(e,t,n){let{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});let i=L();return i.setTransactionName(t.name),r&&!o&&i.setSDKProcessingMetadata({normalizedRequest:E(f({},rs()),{url:r})}),Ps(e)}function YE(e){return w.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function JE(e){return w.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===e)?.description}function Vk(e,t,n,r,o){let i=w.document,s,a=()=>{let c="ui.action.click",u=Ps(e);if(u){let d=D(u).op;if(["navigation","pageload"].includes(d)){R&&_.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Yn,"interactionInterrupted"),s.end(),s=void 0),!o.name){R&&_.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=ma({name:o.name,op:c,attributes:{[Re]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",a,{capture:!0})}var ZE="_sentry_idleSpan";function Ps(e){return e[ZE]}function KE(e,t){Te(e,ZE,t)}var XE=1.5;function Yk(e,t){let n=D(e),r=kt(),o=n.start_timestamp;return!(r-o>XE||t&&r-t<=XE)}function Jk(e=I()){e?.emit("endPageloadSpan")}function Kk(e){let t=ee();if(t===e)return;let n=L();e.end=new Proxy(e.end,{apply(r,o,i){return ft(n,t),Reflect.apply(r,o,i)}}),ft(n,e)}function di(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Xk(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=di(n);return o=>r.then(i=>o(i.transaction(t,"readwrite").objectStore(t)))}function Df(e){return di(e.getAllKeys())}function Qk(e,t,n){return e(r=>Df(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.max(...o,0)+1),di(r.transaction)}))}function Zk(e,t,n){return e(r=>Df(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.min(...o,0)-1),di(r.transaction)}))}function eO(e){return e(t=>Df(t).then(n=>{let r=n[0];if(r!=null)return di(t.get(r)).then(o=>(t.delete(r),di(t.transaction).then(()=>o)))}))}function tO(e){let t;function n(){return t==null&&(t=Xk(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:r=>x(null,null,function*(){try{let o=Kn(r);yield Qk(n(),o,e.maxQueueSize||30)}catch{}}),unshift:r=>x(null,null,function*(){try{let o=Kn(r);yield Zk(n(),o,e.maxQueueSize||30)}catch{}}),shift:()=>x(null,null,function*(){try{let r=yield eO(n());if(r)return Bu(r)}catch{}})}}function nO(e){return t=>{let n=e(E(f({},t),{createStore:tO}));return w.addEventListener("online",r=>x(null,null,function*(){yield n.flush()})),n}}function rO(e=fs){return nO(dl(e))}var eT=1e6,oO="window"in C&&C.window===C&&typeof importScripts>"u",gr=String(0),tu=oO?"main":"worker",nu=w.navigator,nT="",rT="",oT="",Bf=nu?.userAgent||"",iT="",iO=nu?.language||nu?.languages?.[0]||"";function sO(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}var tT=nu?.userAgentData;sO(tT)&&tT.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(nT=e.platform||"",oT=e.architecture||"",iT=e.model||"",rT=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];Bf=`${t.brand} ${t.version}`}}).catch(e=>{});function aO(e){return!("thread_metadata"in e)}function cO(e){return aO(e)?fO(e):e}function uO(e){let t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&R&&_.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function lO(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let o=uO(r),i=cO(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:oe()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:oe()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Pn,runtime:{name:"javascript",version:w.navigator.userAgent},os:{name:nT,version:rT,build_number:Bf},device:{locale:iO,model:iT,manufacturer:Bf,architecture:oT,is_emulator:!1},debug_meta:{images:lT(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||fe(),trace_id:o,active_thread_id:gr,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function sT(e,t,n){if(e==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=dO(e),o=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:fe(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:n||fe(),platform:"javascript",version:"2",release:o.release??"",environment:o.environment??"production",debug_meta:{images:lT(e.resources)},profile:r}}function aT(e){try{if(!e||typeof e!="object")return{reason:"chunk is not an object"};let t=r=>typeof r=="string"&&/^[a-f0-9]{32}$/.test(r);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:"profile has no frames"}
501:!Array.isArray(n.stacks)||!n.stacks.length?{reason:"profile has no stacks"}:!Array.isArray(n.samples)||!n.samples.length?{reason:"profile has no samples"}:{valid:!0}:{reason:"missing profile data"}}catch(t){return{reason:`unknown validation error: ${t}`}}}function dO(e){let t=[];for(let a=0;a<e.frames.length;a++){let c=e.frames[a];c&&(t[a]={function:c.name,abs_path:typeof c.resourceId=="number"?e.resources[c.resourceId]:void 0,lineno:c.line,colno:c.column})}let n=[];for(let a=0;a<e.stacks.length;a++){let c=e.stacks[a];if(!c)continue;let u=[],d=c;for(;d;)u.push(d.frameId),d=d.parentId===void 0?void 0:e.stacks[d.parentId];n[a]=u}let r=ye(),o=typeof performance.timeOrigin=="number"?performance.timeOrigin:r||0,i=o-(r||o),s=[];for(let a=0;a<e.samples.length;a++){let c=e.samples[a];if(!c)continue;let u=(o+(c.timestamp-i))/1e3;s[a]={stack_id:c.stackId??0,thread_id:gr,timestamp:u}}return{frames:t,stacks:n,samples:s,thread_metadata:{[gr]:{name:tu}}}}function ru(e){return D(e).op==="pageload"}function fO(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[gr]:{name:tu}}},o=e.samples[0];if(!o)return r;let i=o.timestamp,s=ye(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,c=a-(s||a);return e.samples.forEach((u,d)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[d]={elapsed_since_start_ns:((u.timestamp+c-i)*eT).toFixed(0),stack_id:t,thread_id:gr};return}let l=e.stacks[u.stackId],p=[];for(;l;){p.push(l.frameId);let h=e.frames[l.frameId];h&&r.frames[l.frameId]===void 0&&(r.frames[l.frameId]={function:h.name,abs_path:typeof h.resourceId=="number"?e.resources[h.resourceId]:void 0,lineno:h.line,colno:h.column}),l=l.parentId===void 0?void 0:e.stacks[l.parentId]}let m={elapsed_since_start_ns:((u.timestamp+c-i)*eT).toFixed(0),stack_id:n,thread_id:gr};r.stacks[n]=p,r.samples[d]=m,n++}),r}function cT(e,t){if(!t.length)return e;for(let n of t)e[1].push([{type:"profile"},n]);return e}function uT(e){let t=[];return Pt(e,(n,r)=>{if(r==="transaction")for(let o=1;o<n.length;o++)n[o]?.contexts?.profile?.profile_id&&t.push(n[o])}),t}function lT(e){let r=I()?.getOptions()?.stackParser;return r?Vu(r,e):[]}function dT(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(R&&_.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(R&&_.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function pO(e){return e.samples.length<2?(R&&_.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(R&&_.log("[Profiling] Discarding profile because it contains no frames"),!1)}var Ff=!1,Gf=3e4;function mO(e){return typeof e=="function"}function ou(){let e=w.Profiler;if(!mO(e)){R&&_.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=10,n=Math.floor(Gf/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{R&&(_.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),_.log("[Profiling] Disabling profiling for current user session.")),Ff=!0}}function Hf(e){if(Ff)return R&&_.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return R&&_.log("[Profiling] Discarding profile because root span was not sampled."),!1;let n=I()?.getOptions();if(!n)return R&&_.log("[Profiling] Profiling disabled, no options found."),!1;let r=n.profilesSampleRate;return dT(r)?r?(r===!0?!0:Math.random()<r)?!0:(R&&_.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(R&&_.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(R&&_.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function fT(e){if(Ff)return R&&_.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if(e.profileLifecycle!=="trace"&&e.profileLifecycle!=="manual")return R&&_.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return dT(t)?t?Math.random()<=t:(R&&_.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(R&&_.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function Ls(e){return typeof e.profilesSampleRate<"u"}function pT(e,t,n,r){return pO(n)?lO(e,t,n,r):null}var Zr=new Map;function mT(){return Zr.size}function hT(e){let t=Zr.get(e);return t&&Zr.delete(e),t}function _T(e,t){if(Zr.set(e,t),Zr.size>30){let n=Zr.keys().next().value;n!==void 0&&Zr.delete(n)}}function gT(e){return!e?.contexts?.profile||!e.contexts||(e.contexts.trace?.trace_id&&(e.contexts.trace=E(f({},e.contexts.trace),{data:E(f({},e.contexts.trace.data??{}),{"thread.id":gr,"thread.name":tu})})),e.spans?.forEach(t=>{t.data=E(f({},t.data||{}),{"thread.id":gr,"thread.name":tu})})),e}function $f(e){let t;ru(e)&&(t=oe()*1e3);let n=ou();if(!n)return;R&&_.log(`[Profiling] started profiling span: ${D(e).description}`);let r=fe(),o=null;L().setContext("profile",{profile_id:r,start_timestamp:t});function i(){return x(this,null,function*(){if(e&&n){if(o){R&&_.log("[Profiling] profile for:",D(e).description,"already exists, returning early");return}return n.stop().then(u=>{if(s&&(w.clearTimeout(s),s=void 0),R&&_.log(`[Profiling] stopped profiling of span: ${D(e).description}`),!u){R&&_.log(`[Profiling] profiler returned null profile for: ${D(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}o=u,_T(r,u)}).catch(u=>{R&&_.log("[Profiling] error while stopping profiler:",u)})}})}let s=w.setTimeout(()=>{R&&_.log("[Profiling] max profile duration elapsed, stopping profiling for:",D(e).description),i()},Gf),a=e.end.bind(e);function c(){return e?(i().then(()=>{a()},()=>{a()}),e):a()}e.end=c}var hO=6e4,_O=3e5,iu=class{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(t){let n=t.getOptions().profileLifecycle,r=fT(t.getOptions());R&&_.log(`[Profiling] Initializing profiler (lifecycle='${n}').`),r||R&&_.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=fe(),this._client=t,this._sessionSampled=r,this._lifecycleMode=n,n==="trace"&&this._setupTraceLifecycleListeners(t)}
501start(){if(this._lifecycleMode==="trace"){R&&_.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){R&&_.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){R&&_.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode==="trace"){R&&_.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){R&&_.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(t){if(this._lifecycleMode!=="trace"||!this._sessionSampled)return;let n=t.spanContext().spanId;if(!n||this._activeRootSpanIds.has(n))return;this._registerTraceRootSpan(n);let r=this._activeRootSpanIds.size;r===1&&(R&&_.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,R&&_.log("[Profiling] Started profiling with profiler ID:",this._profilerId),gn().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){R&&_.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(t=>{R&&_.error("[Profiling] Failed to collect current profile chunk on `stop()`:",t)}),this._lifecycleMode==="manual"&&gn().setContext("profile",{}))}_setupTraceLifecycleListeners(t){t.on("spanStart",n=>{if(!this._sessionSampled){R&&_.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(n!==ie(n))return;if(!n.isRecording()){R&&_.log("[Profiling] Discarding profile because root span was not sampled.");return}let r=n.spanContext().spanId;if(!r||this._activeRootSpanIds.has(r))return;this._registerTraceRootSpan(r);let o=this._activeRootSpanIds.size;o===1&&(R&&_.log(`[Profiling] Root span ${r} started. Profiling active while there are active root spans (count=${o}).`),this._beginProfiling())}),t.on("spanEnd",n=>{if(!this._sessionSampled)return;let r=n.spanContext().spanId;if(!r||!this._activeRootSpanIds.has(r))return;this._activeRootSpanIds.delete(r);let o=this._activeRootSpanIds.size;R&&_.log(`[Profiling] Root span with ID ${r} ended. Will continue profiling for as long as there are active root spans (currently: ${o}).`),o===0&&(this._collectCurrentChunk().catch(i=>{R&&_.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",i)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,gn().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(t=>clearTimeout(t)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(t){this._activeRootSpanIds.add(t);let n=setTimeout(()=>this._onRootSpanTimeout(t),_O);this._rootSpanTimeouts.set(t,n)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let t=ou();if(!t){R&&_.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=t}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(t=>{R&&_.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",t)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},hO))}_onRootSpanTimeout(t){this._rootSpanTimeouts.has(t)&&(this._rootSpanTimeouts.delete(t),this._activeRootSpanIds.has(t)&&(R&&_.log(`[Profiling] Reached 5-minute timeout for root span ${t}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(t),this._activeRootSpanIds.size===0&&this._endProfiling()))}_collectCurrentChunk(){return x(this,null,function*(){let t=this._profiler;if(this._profiler=void 0,!!t)try{let n=yield t.stop(),r=sT(n,this._client,this._profilerId),o=aT(r);if("reason"in o){R&&_.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",o.reason);return}this._sendProfileChunk(r),R&&_.log("[Profiling] Collected browser profile chunk.")}catch(n){R&&_.log("[Profiling] Error while stopping JS Profiler for chunk:",n)}})}_sendProfileChunk(t){let n=this._client,r=Xn(n.getSdkMetadata?.()),o=n.getDsn(),i=n.getOptions().tunnel,s=De(f(f({event_id:fe(),sent_at:new Date().toISOString()},r&&{sdk:r}),!!i&&o&&{dsn:qe(o)}),[[{type:"profile_chunk",platform:"javascript"},t]]);n.sendEnvelope(s).then(null,a=>{R&&_.error("Error while sending profile chunk envelope:",a)})}};var gO="BrowserProfiling",SO=()=>({name:gO,setup(e){let t=e.getOptions(),n=new iu;if(!Ls(t)&&!t.profileLifecycle&&(t.profileLifecycle="manual"),Ls(t)&&!t.profilesSampleRate){R&&_.log("[Profiling] Profiling disabled, no profiling options foun
501d.");return}let r=ee(),o=r&&ie(r);if(Ls(t)&&t.profileSessionSampleRate!==void 0&&R&&_.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),Ls(t))o&&ru(o)&&Hf(o)&&$f(o),e.on("spanStart",i=>{i===ie(i)&&Hf(i)&&$f(i)}),e.on("beforeEnvelope",i=>{if(!mT())return;let s=uT(i);if(!s.length)return;let a=[];for(let c of s){let u=c?.contexts,d=u?.profile?.profile_id,l=u?.profile?.start_timestamp;if(typeof d!="string"){R&&_.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!d){R&&_.log("[Profiling] cannot find profile for a span without a profile context");continue}u?.profile&&delete u.profile;let p=hT(d);if(!p){R&&_.log(`[Profiling] Could not retrieve profile for span: ${d}`);continue}let m=pT(d,l,p,c);m&&a.push(m)}cT(i,a)});else{let i=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),i==="manual")n.initialize(e);else if(i==="trace"){if(!Le(t)){R&&_.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),o&&n.notifyRootSpanActive(o),w.setTimeout(()=>{let s=ee(),a=s&&ie(s);a&&n.notifyRootSpanActive(a)},0)}}},processEvent(e){return gT(e)}}),EO=SO;var TO=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Lt(e)}});function yO(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{bt(e,t.value),At(e,t.value)}}}var IO=()=>({name:"OpenFeature",processEvent(e,t,n){return Lt(e)}}),Wf=class{after(t,n){bt(n.flagKey,n.value),At(n.flagKey,n.value)}error(t,n,r){bt(t.flagKey,t.defaultValue),At(t.flagKey,t.defaultValue)}};var bO=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;Ee(t,"isEnabled",AO)},processEvent(t,n,r){return Lt(t)}});function AO(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(bt(n,r),At(n,r)):R&&_.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}var RO=({growthbookClass:e})=>yl({growthbookClass:e});var vO=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{bt(n.gate.name,n.gate.value),At(n.gate.name,n.gate.value)})},processEvent(t,n,r){return Lt(t)}});function NO(){return x(this,null,function*(){let e=I();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";let r=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{yield pa(()=>fetch(r,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}})}var CO="WebWorker",xO=({worker:e})=>({name:CO,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>ST(t))},addWorker:t=>ST(t)});function ST(e){e.addEventListener("message",t=>{if(OO(t.data)){if(t.stopImmediatePropagation(),t.data._sentryDebugIds&&(R&&_.log("Sentry debugId web worker message received",t.data),w._sentryDebugIds=f(f({},t.data._sentryDebugIds),w._sentryDebugIds)),t.data._sentryModuleMetadata&&(R&&_.log("Sentry module metadata web worker message received",t.data),w._sentryModuleMetadata=f(f({},t.data._sentryModuleMetadata),w._sentryModuleMetadata)),t.data._sentryWasmImages){R&&_.log("Sentry WASM images web worker message received",t.data);let n=w._sentryWasmImages||[],r=t.data._sentryWasmImages.filter(o=>Ce(o)&&typeof o.code_file=="string"&&!n.some(i=>i.code_file===o.code_file));w._sentryWasmImages=[...n,...r]}t.data._sentryWorkerError&&(R&&_.log("Sentry worker rejection message received",t.data._sentryWorkerError),wO(t.data._sentryWorkerError))}})}function wO(e){let t=I();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,o=e.reason,i=lt(o)?Md(o):Wo(n,o,void 0,r,!0);i.level="error",e.filename&&(i.contexts=E(f({},i.contexts),{worker:{filename:e.filename}})),yn(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),R&&_.log("Captured worker unhandled rejection",o)}function kO({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let r={reason:Od(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}
501),R&&_.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),R&&_.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function OO(e){if(!Ce(e)||e._sentryMessage!==!0)return!1;let t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,o="_sentryWasmImages"in e;return!(!t&&!n&&!r&&!o||t&&!(Ce(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!(Ce(e._sentryModuleMetadata)||e._sentryModuleMetadata===void 0)||r&&!Ce(e._sentryWorkerError)||o&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(i=>Ce(i)&&typeof i.code_file=="string")))}var ET=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__;function PO(e={}){return[vo(),Ro(),ji(),ps(),_s(),Ss(),No(),gs(),hs(),ms()]}function Pz(e){let t=f({defaultIntegrations:PO()},e);return Wi(t,"angular"),LO(),Pd(t)}function LO(){let t=su?.major&&parseInt(su.major,10);t&&(t<14&&ET&&_.warn(`This Sentry SDK does not officially support Angular ${t}.`,"This SDK only supports Angular 14 and above.","If you're using lower Angular versions, check the Angular Version Compatibility table in our docs: https://docs.sentry.io/platforms/javascript/guides/angular/#angular-version-compatibility.","Otherwise, please consider upgrading your Angular version."),go("angular",{version:t}))}var UO=typeof Zone<"u"&&Zone.root?.run;function pn(e){return UO?Zone.root.run(e):e()}function DO(e){return e?.ngOriginalError?e.ngOriginalError:e}function BO(e){return TT(e.error)?e.error:typeof ErrorEvent<"u"&&e.error instanceof ErrorEvent&&e.error.message?e.error.message:typeof e.error=="string"?`Server returned code ${e.status} with body "${e.error}"`:e.message}function TT(e){if(e instanceof Error)return!0;if(e===null||typeof e!="object")return!1;let t=e;return ke(t.name)&&ke(t.message)&&(t.stack===void 0||ke(t.stack))}var FO=(()=>{class e{constructor(n){this._options=f({logErrors:!0},n)}ngOnDestroy(){this._removeAfterSendEventListener&&this._removeAfterSendEventListener()}handleError(n){let r=this._extractError(n)||"Handled unknown error",o=pn(()=>X(r,{mechanism:{type:"auto.function.angular.error_handler",handled:!1}}));if(this._options.logErrors&&Be(()=>console.error(r)),this._options.showDialog){let i=I();i&&!this._removeAfterSendEventListener?this._removeAfterSendEventListener=i.on("afterSendEvent",s=>{!s.type&&s.event_id&&pn(()=>{yc(E(f({},this._options.dialogOptions),{eventId:s.event_id}))})}):i||pn(()=>{yc(E(f({},this._options.dialogOptions),{eventId:o}))})}}_extractError(n){if(this._options.extractor){let r=this._defaultExtractor.bind(this);return this._options.extractor(n,r)}return this._defaultExtractor(n)}_defaultExtractor(n){let r=DO(n);return r instanceof Xf?BO(r):typeof r=="string"||TT(r)?r:null}}return e.\u0275fac=function(n){return new(n||e)(cu("errorHandlerOptions"))},e.\u0275prov=au({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Lz(e){return new FO(e)}var GO="ui.angular.routing",yT="ui.angular.init",HO="ui.angular",IT;function Uz(e={}){return e.instrumentNavigation!==!1&&(IT=!0),Uf(E(f({},e),{instrumentNavigation:!1}))}function $O(e,t){let n=t&&D(t).data||{};t&&n[Re]==="url"&&(t.updateName(e),t.setAttribute(Re,"route"),t.setAttribute(W,`auto.${D(t).op}.angular`))}var Dz=(()=>{class e{constructor(n){this._router=n,this.navStart$=this._router.events.pipe(Bs(r=>r instanceof Qf),Fs(r=>{if(!IT){ET&&_.error("Angular integration has tracing enabled, but Tracing integration is not configured");return}this._routingSpan&&(this._routingSpan.end(),this._routingSpan=null);let o=I(),i=Lr(r.url);if(o){this._isPageloadOngoing()?this._pageloadOngoing=!1:pn(()=>{eu(o,{name:i,attributes:{[W]:"auto.navigation.angular",[Re]:"url"}})}),this._routingSpan=pn(()=>Ve({name:`${r.url}`,op:GO,attributes:f({[W]:"auto.ui.angular",[Re]:"url",url:i},r.navigationTrigger&&{navigationTrigger:r.navigationTrigger})}))||null;return}})),this.resEnd$=this._router.events.pipe(Bs(r=>r instanceof np),Fs(r=>{let o=WO(r.state.root);o&&L().setTransactionName(o);let i=ee(),s=i&&ie(i);$O(o,s)})),this.navEnd$=this._router.events.pipe(Bs(r=>r instanceof Zf||r instanceof ep||r instanceof tp),Fs(()=>{this._routingSpan&&(pn(()=>{this._routingSpan.end()}),this._routingSpan=null)})),this._routingSpan=null,this._pageloadOngoing=!0,this._subscription=new zf,this._subscription.add(this.navStart$.subscribe()),this._subscription.add(this.resEnd$.subscribe()),this._subscription.add(this.navEnd$.subscribe())}ngOnDestroy(){this._subscription.unsubscribe()}_isPageloadOngoing(){if(!this._pageloadOngoing)return!1;let n=ee();if(!n)return this._pageloadOngoing=!1,!1;let r=ie(n);return this._pageloadOngoing=D(r).op==="pageload",this._pageloadOngoing}}return e.\u0275fac=function(n){return new(n||e)(cu(rp))},e.\u0275prov=au({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Bz=(()=>{class e{constructor(n){this._host=n}ngOnInit(){this.componentName||(this.componentName=this._host.nativeElement.tagName.toLowerCase()),ee()&&(this._tracingSpan=pn(()=>Ve({name:`<${this.componentName}>`,op:yT,attributes:{[W]:"auto.ui.angular.trace_directive"}})))}ngAfterViewInit(){let n=this._tracingSpan;n&&pn(()=>n.end())}}return e.\u0275fac=function(n){return new(n||e)(Yf(Vf))},e.\u0275dir=Kf({type:e,selectors:[["","trace",""]],inputs:{componentName:[0,"trace","componentName"]},standalone:!1}),e})(),Fz=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Jf({type:e}),e.\u0275inj=qf({}),e})();function Gz(e){let t;return n=>{let r=n.prototype.ngOnInit;n.prototype.ngOnInit=function(...i){if(t=pn(()=>Ve({onlyIfParent:!0,name:`<${e?.name||"unnamed"}>`,op:yT,attributes:{[W]:"auto.ui.angular.trace_class_decorator"}})),r)return r.apply(this,i)};let o=n.prototype.ngAfterViewInit;n.prototype.ngAfterViewInit=function(...i){if(t&&pn(()=>t.end()),o)return o.apply(this,i)}}}function Hz(e){return(t,n,r)=>{let o=r.value;return r.value=function(...i){let s=oe();if(pn(()=>{Ve({onlyIfParent:!0,name:`<${e?.name?e.name:"unnamed"}>`,op:`${HO}.${String(n)}`,startTime:s,attributes:{[W]:"auto.ui.angular.trace_method_decorator"}}).end(s)}),o)return o.apply(this,i)},r}}function WO(e){let t=[],n=e?.firstChild;for(;n;
501){let o=n?.routeConfig&&n.routeConfig.path;if(o==null)break;t.push(o),n=n.firstChild}let r=t.filter(o=>o).join("/");return r?`/${r}/`:"/"}export{is as BrowserClient,Hi as MULTIPLEXED_TRANSPORT_EXTRA_KEY,Wf as OpenFeatureIntegrationHook,xt as SDK_VERSION,pe as SEMANTIC_ATTRIBUTE_SENTRY_OP,W as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,Vn as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Re as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,pt as Scope,FO as SentryErrorHandler,Gz as TraceClass,Bz as TraceDirective,Hz as TraceMethod,Fz as TraceModule,Dz as TraceService,w as WINDOW,It as addBreadcrumb,Ea as addEventProcessor,Di as addIntegration,ps as breadcrumbsIntegration,kd as browserApiErrorsIntegration,EO as browserProfilingIntegration,ms as browserSessionIntegration,Uz as browserTracingIntegration,yO as buildLaunchDarklyFlagUsedHandler,ih as captureConsoleIntegration,yn as captureEvent,X as captureException,La as captureFeedback,_a as captureMessage,So as captureSession,Zg as chromeStackLineParser,Sm as close,Ch as consoleLoggingIntegration,GC as contextLinesIntegration,tm as continueTrace,xh as createConsolaReporter,Lz as createErrorHandler,F_ as createLangChainCallbackHandler,Aa as createTransport,PN as createUserFeedbackEnvelope,hs as cultureContextIntegration,No as dedupeIntegration,Zc as defaultRequestInstrumentationOptions,tS as defaultStackLineParsers,wd as defaultStackParser,NO as diagnoseSdkConnectivity,Kg as elementTimingIntegration,Ta as endSession,gl as eventFiltersIntegration,ud as eventFromException,ld as eventFromMessage,os as exceptionFromError,uh as extraErrorDataIntegration,Ah as featureFlagsIntegration,nv as feedbackAsyncIntegration,vg as feedbackIntegration,vg as feedbackSyncIntegration,gm as flush,SC as forceLoad,Ro as functionToStringIntegration,eS as geckoStackLineParser,ee as getActiveSpan,I as getClient,L as getCurrentScope,PO as getDefaultIntegrations,fR as getFeedback,gn as getGlobalScope,ae as getIsolationScope,_k as getReplay,ie as getRootSpan,Jn as getSpanDescendants,Ou as getSpanStatusFromHttpCode,Ao as getTraceData,_s as globalHandlersIntegration,YC as graphqlClientIntegration,RO as growthbookIntegration,vC as httpClientIntegration,gs as httpContextIntegration,vo as inboundFiltersIntegration,Pz as init,A_ as instrumentAnthropicAiClient,O_ as instrumentGoogleGenAIClient,W_ as instrumentLangGraph,m_ as instrumentOpenAiClient,Pf as instrumentOutgoingRequests,Tl as instrumentSupabaseClient,Sa as isEnabled,Em as isInitialized,ga as lastEventId,TO as launchDarklyIntegration,id as lazyLoadIntegration,Ss as linkedErrorsIntegration,bl as logger,rO as makeBrowserOfflineTransport,fs as makeFetchTransport,Ym as makeMultiplexedTransport,wo as metrics,oh as moduleMetadataIntegration,EC as onLoad,IO as openFeatureIntegration,wN as opera10StackLineParser,MN as opera11StackLineParser,pl as parameterize,sa as registerSpanErrorInstrumentation,kO as registerWebWorker,Mk as replayCanvasIntegration,mk as replayIntegration,Jk as reportPageLoaded,bC as reportingObserverIntegration,hh as rewriteFramesIntegration,dg as sendFeedback,Kk as setActiveSpanInBrowser,go as setContext,_m as setConversationId,cl as setCurrentClient,fm as setExtra,dm as setExtras,Mn as setHttpStatus,la as setMeasurement,mm as setTag,pm as setTags,hm as setUser,yc as showReportDialog,Wp as spanToBaggageHeader,D as spanToJSON,na as spanToTraceHeader,hC as spotlightBrowserIntegration,eu as startBrowserTracingNavigationSpan,QE as startBrowserTracingPageLoadSpan,Ve as startInactiveSpan,Hu as startNewTrace,Li as startSession,Tt as startSpan,yt as startSpanManual,vO as statsigIntegration,Sh as supabaseIntegration,pa as suppressTracing,yh as thirdPartyErrorFilterIntegration,dN as uiProfiler,bO as unleashIntegration,Bp as updateSpanName,xO as webWorkerIntegration,NN as winjsStackLineParser,xr as withActiveSpan,Nu as withIsolationScope,ze as withScope,Eh as zodErrorsIntegration}; 502 503//# debugId=52de62d4-cab6-56e2-89c8-7b34da7cb6a5
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.