1import{r as we,jf as Hs}from"../index-C5bhKY-j.js";const L=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Mt="8.55.0",P=globalThis;function gr(e,t,n){const r=n||P,s=r.__SENTRY__=r.__SENTRY__||{},o=s[Mt]=s[Mt]||{};return o[e]||(o[e]=t())}const Ht=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qf="Sentry Logger ",_s=["debug","info","warn","error","log","assert","trace"],ys={};function yt(e){if(!("console"in P))return e();const t=P.console,n={},r=Object.keys(ys);r.forEach(s=>{const o=ys[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Gf(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Ht?_s.forEach(n=>{t[n]=(...r)=>{e&&yt(()=>{P.console[n](`${qf}[${n}]:`,...r)})}}):_s.forEach(n=>{t[n]=()=>{}}),t}const y=gr("logger",Gf),xu=50,et="?",wa=/\(error: (.*)\)/,Ia=/captureMessage|captureException/;function Ru(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(` 2`);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const u=wa.test(c)?c.replace(wa,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of t){const l=d(u);if(l){o.push(l);break}}if(o.length>=xu+s)break}}return Yf(o.slice(s))}}function Vf(e){return Array.isArray(e)?Ru(...e):e}function Yf(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Pr(t).function||"")&&t.pop(),t.reverse(),Ia.test(Pr(t).function||"")&&(t.pop(),Ia.test(Pr(t).function||"")&&t.pop()),t.slice(0,xu).map(n=>({...n,filename:n.filename||Pr(t).filename,function:n.function||et}))}function Pr(e){return e[e.length-1]||{}}const lo="<anonymous>";function dt(e){try{return!e||typeof e!="function"?lo:e.name||lo}catch{return lo}}function Lo(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const ts={},Ta={};function Wt(e,t){ts[e]=ts[e]||[],ts[e].push(t)}function zt(e,t){if(!Ta[e]){Ta[e]=!0;try{t()}catch(n){Ht&&y.error(`Error while instrumenting ${e}`,n)}}}function He(e,t){const n=e&&ts[e];if(n)for(const r of n)try{r(t)}catch(s){Ht&&y.error(`Error while triggering instrumentation handler. 3Type: ${e} 4Name: ${dt(r)} 5Error:`,s)}}let fo=null;function Mu(e){const t="error";Wt(t,e),zt(t,Xf)}function Xf(){fo=P.onerror,P.onerror=function(e,t,n,r,s){return He("error",{column:r,error:s,line:n,msg:e,url:t}),fo?fo.apply(this,arguments):!1},P.onerror.__SENTRY_INSTRUMENTED__=!0}let po=null;function Au(e){const t="unhandledrejection";Wt(t,e),zt(t,Kf)}function Kf(){po=P.onunhandledrejection,P.onunhandledrejection=function(e){return He("unhandledrejection",e),po?po.apply(this,arguments):!0},P.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function St(){return vi(P),P}function vi(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Mt,t[Mt]=t[Mt]||{}}const Ou=Object.prototype.toString;function ct(e){switch(Ou.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ft(e,Error)}}function qn(e,t){return Ou.call(e)===`[object ${t}]`}function Nu(e){return qn(e,"ErrorEvent")}function ka(e){return qn(e,"DOMError")}function Jf(e){return qn(e,"DOMException")}function ut(e){return qn(e,"String")}function wi(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ii(e){return e===null||wi(e)||typeof e!="object"&&typeof e!="function"}function on(e){return qn(e,"Object")}function Ws(e){return typeof Event<"u"&&ft(e,Event)}function Zf(e){return typeof Element<"u"&&ft(e,Element)}function Qf(e){return qn(e,"RegExp")}function _r(e){return!!(e&&e.then&&typeof e.then=="function")}function ep(e){return on(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ft(e,t){try{return e instanceof t}catch{return!1}}function Du(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Cn=P,tp=80;function pt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||tp;for(;n&&o++<r&&(u=np(n,d),!(u==="html"||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function np(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Cn.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>
5{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&ut(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function Ti(){try{return Cn.document.location.href}catch{return""}}function rp(e){return Cn.document&&Cn.document.querySelector?Cn.document.querySelector(e):null}function Lu(e){if(!Cn.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function At(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ho(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function Ss(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Du(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function sp(e,t,n=!1){return ut(e)?Qf(t)?t.test(e):ut(t)?n?e===t:e.includes(t):!1:!1}function Ot(e,t=[],n=!1){return t.some(r=>sp(e,r,n))}function xe(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&Pu(s,r);try{e[t]=s}catch{Ht&&y.log(`Failed to replace method "${t}" in object`,e)}}function Ne(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Ht&&y.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Pu(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ne(e,"__sentry_original__",t)}catch{}}function ki(e){return e.__sentry_original__}function Fu(e){if(ct(e))return{message:e.message,name:e.name,stack:e.stack,...xa(e)};if(Ws(e)){const t={type:e.type,target:Ca(e.target),currentTarget:Ca(e.currentTarget),...xa(e)};return typeof CustomEvent<"u"&&ft(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Ca(e){try{return Zf(e)?pt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function xa(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function op(e,t=40){const n=Object.keys(Fu(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return At(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:At(o,t)}return""}function ge(e){return Po(e,new Map)}function Po(e,t){if(ip(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=Po(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Po(s,t))}),r}return e}function ip(e){if(!on(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const $u=1e3;function yr(){return Date.now()/$u}function ap(){const{performance:e}=P;if(!e||!e.now)return yr;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/$u}const ie=ap(),Ie=(()=>{const{performance:e}=P;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,u=c<t;return o||u?s<=c?e.timeOrigin:i:r})();function Re(){const e=P,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Uu(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function wt(e){const{message:t,event_id:n}=e;if(t)return t;const r=Uu(e);return r?r.type&&r.value?`${r.type}: ${r.value}
5`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Fo(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function Ft(e,t){const n=Uu(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}function cp(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>ho(i,0));const o=Math.min(r-1,s);t.context_line=ho(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>ho(i,0))}function Ra(e){if(up(e))return!0;try{Ne(e,"__sentry_captured__",!0)}catch{}return!1}function up(e){try{return e.__sentry_captured__}catch{}}var it;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(it||(it={}));function ht(e){return new Be(t=>{t(e)})}function bs(e){return new Be((t,n)=>{n(e)})}class Be{constructor(t){Be.prototype.__init.call(this),Be.prototype.__init2.call(this),Be.prototype.__init3.call(this),Be.prototype.__init4.call(this),this._state=it.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Be((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Be((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(it.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(it.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===it.PENDING){if(_r(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===it.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===it.RESOLVED&&n[1](this._value),this._state===it.REJECTED&&n[2](this._value),n[0]=!0)})}}}function lp(e){const t=ie(),n={sid:Re(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>fp(n)};return e&&Mn(n,e),n}function Mn(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||ie(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Re()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function dp(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Mn(e,n)}function fp(e){return ge({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 mt(){return Re()}function $t(){return Re().substring(16)}function zs(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=zs(r[s],t[s],n-1));return r}const $o="_sentrySpan";function an(e,t){t?Ne(e,$o,t):delete e[$o]}function Es(e){return e[$o]}const pp=100;class Ci{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:mt(),spanId:$t()}}clone(){const t=new Ci;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,an(t,Es(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&&Mn(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof Ut?[n.getScopeData(),n.getRequestSession()]:on(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:u,fingerprint:d=[],propagationContext:l}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),l&&(this._propagationContext=l),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,an(this,void 0),this._attachments=[],this.setPropagationContext({traceId:mt()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:pp;if(r<=0)return this;const s={timestamp:yr(),...t};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.re
5cordDroppedEvent("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,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:Es(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=zs(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:$t(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Re();if(!this._client)return y.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:Re();if(!this._client)return y.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Re();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(y.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Ut=Ci;function hp(){return gr("defaultCurrentScope",()=>new Ut)}function mp(){return gr("defaultIsolationScope",()=>new Ut)}class gp{constructor(t,n){let r;t?r=t:r=new Ut;let s;n?s=n:s=new Ut,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return _r(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function An(){const e=St(),t=vi(e);return t.stack=t.stack||new gp(hp(),mp())}function _p(e){return An().withScope(e)}function yp(e,t){const n=An();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Ma(e){return An().withScope(()=>e(An().getIsolationScope()))}function Sp(){return{withIsolationScope:Ma,withScope:_p,withSetScope:yp,withSetIsolationScope:(e,t)=>Ma(t),getCurrentScope:()=>An().getScope(),getIsolationScope:()=>An().getIsolationScope()}}function jt(e){const t=vi(e);return t.acs?t.acs:Sp()}function W(){const e=St();return jt(e).getCurrentScope()}function be(){const e=St();return jt(e).getIsolationScope()}function xi(){return gr("globalScope",()=>new Ut)}function We(...e){const t=St(),n=jt(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function ST(...e){const t=St(),n=jt(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function x(){return W().getClient()}function bp(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:s}=t;return ge({trace_id:n,span_id:r,parent_span_id:s})}const Uo="_sentryMetrics";function Bo(e){const t=e[Uo];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(ge(s));return n}function Ep(e,t,n,r,s,o,i){const c=e[Uo]||(e[Uo]=new Map),u=`${t}:${n}@${s}`,d=c.get(i);if(d){const[,l]=d;c.set(i,[u,{min:Math.min(l.min,r),max:Math.max(l.max,r),count:l.count+=1,sum:l.sum+=r,tags:l.tags}])}else c.set(i,[u,{min:r,max:r,count:1,sum:r,tags:o}])}const pe="sentry.source",Bu="sentry.sample_rate",Me="sentry.op",Z="sentry.origin",Ho="sentry.idle_span_finish_reason",js="sentry.measurement_unit",qs="sentry.measurement_value",Wo="sentry.custom_span_name",vp="sentry.profile_id",Ri="sentry.exclusive_time",wp=0,Hu=1,ye=2;function Ip(e){if(e<400&&e>=100)return{code:Hu};if(e>=400&&e<500)switch(e){case 401:return{code:ye,message:"unauthenticated"};case 403:return{code:ye,message:"permission_denied"};case 404:return{code:ye,message:"not_found"};case 409:return{code:ye,message:"already_exists"};case 413:return{code:ye,message:"failed_precondition"};case 429:return{code:ye,message:"resource_exhausted"};case 499:return{code:ye,message:"cancelled"};default:return{code:ye,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:ye,message:"unimplemented"};case 503:return{code:ye,message:"unavailable"};case 504:return{code:ye,message:"deadline_exceeded"};default:return{code:ye,message:"internal_error"}}return{code:ye,message:"unknown_error"}}function Wu(e,t){e.setAttribute("http.response.status_code",t);const n=Ip(t);n.message!=="unknown_error"&&e.setStatus(n)}const Mi="sentry-",Tp=/^sentry-/,kp=8192;function zu(e){const t=Cp(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(Tp)){const i=s.slice(Mi.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function ju(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${Mi}${r}`]=s),n),{});return xp(t)}function Cp(e){if(!(!e||!ut(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Aa(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):Aa(e)}function Aa(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function xp(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>kp?(Ht&&y.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const qu=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Rp(e){if(!e)return;const t=e.match(qu);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 Gu(e,t){const n=Rp(e),r=zu(t);if(!n||!n.traceId)return{traceId:mt(),spanId:$t()};const{traceId:s,parentSpanId:o,parentSampled:i}=n,a=$t();return{traceId:s,parentSpanId:o,spanId:a,sampled:i,dsc:r||{}}}function Vu(e=mt(),t=$t(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const Yu=0,Xu=1;let Oa=!1;function Mp(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=H(e);return ge({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function Ap(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:H(e).parent_span_id,o=r?$t():t;return ge({parent_span_id:s,span_id:o,trace_id:n})}function Op(e){const{traceId:t,spanId:n}=e.spanContext(),r=un(e);return Vu(t,n,r)}function tn(e){return typeof e=="number"?Na(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Na(e.getTime()):ie()}function Na(e){return e>9999999999?e/1e3:e}function H(e){if(Dp(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Np(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return ge({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:tn(s),timestamp:tn(i)||void 0,status:Ku(c),op:r[Me],origin:r[Z],_metrics_summary:Bo(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Np(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Dp(e){return typeof e.getSpanJSON=="function"}function un(e){const{traceFlags:t}=e.spanContext();return t===Xu}function Ku(e){if(!(!e||e.code===wp))return e.code===Hu?"ok":e.message||"unknown_error"}const nn="_sentryChildSpans",zo="_sentryRootSpan";function Ju(e,t){const n=e[zo]||e;Ne(t,zo,n),e[nn]?e[nn].add(t):Ne(e,nn,new Set([t]))}function Lp(e,t){e[nn]&&e[nn].delete(t)}function ns(e){const t=new Set;function n(r){if(!t.has(r)&&un(r)){t.add(r);const s=r[nn]?Array.from(r[nn]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function he(e){return e[zo]||e}function de(){const e=St(),t=jt(e);return t.getActiveSpan?t.getActiveSpan():Es(W())}function Pp(e,t,n,r,s,o){const i=de();i&&Ep(i,e,t,n,r,s,o)}function Zu(){Oa||(yt(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK ver
5sion 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Oa=!0)}function bT(e,t){e.updateName(t),e.setAttributes({[pe]:"custom",[Wo]:t})}let Da=!1;function Qu(){Da||(Da=!0,Mu(jo),Au(jo))}function jo(){const e=de(),t=e&&he(e);if(t){const n="internal_error";L&&y.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:ye,message:n})}}jo.tag="sentry_tracingErrorCallback";const el="_sentryScope",tl="_sentryIsolationScope";function Fp(e,t,n){e&&(Ne(e,tl,n),Ne(e,el,t))}function La(e){return{scope:e[el],isolationScope:e[tl]}}function ET(){Qu()}function Bt(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=x(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class qt{constructor(t={}){this._traceId=t.traceId||mt(),this._spanId=t.spanId||$t()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Yu}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Ai(e,t,n=()=>{}){let r;try{r=e()}catch(s){throw t(s),n(),s}return $p(r,t,n)}function $p(e,t,n){return _r(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}const Gs="production",nl="_frozenDsc";function Pa(e,t){Ne(e,nl,t)}function rl(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=ge({environment:n.environment||Gs,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function sl(e,t){const n=t.getPropagationContext();return n.dsc||rl(n.traceId,e)}function Gt(e){const t=x();if(!t)return{};const n=he(e),r=n[nl];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&zu(o);if(i)return i;const a=rl(e.spanContext().traceId,t),c=H(n),u=c.data||{},d=u[Bu];d!=null&&(a.sample_rate=`${d}`);const l=u[pe],f=c.description;return l!=="url"&&f&&(a.transaction=f),Bt()&&(a.sampled=String(un(n))),t.emit("createDsc",a,n),a}function vT(e){const t=Gt(e);return ju(t)}function Up(e){if(!L)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=H(e),{spanId:s}=e.spanContext(),o=un(e),i=he(e),a=i===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:d,description:l}=H(i);u.push(`root ID: ${i.spanContext().spanId}`),d&&u.push(`root op: ${d}`),l&&u.push(`root description: ${l}`)}y.log(`${c} 6 ${u.join(` 7 `)}`)}function Bp(e){if(!L)return;const{description:t="< unknown name >",op:n="< unknown op >"}=H(e),{spanId:r}=e.spanContext(),o=he(e)===e,i=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;y.log(i)}function vs(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){L&&y.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function Hp(e,t){if(!Bt(e))return[!1];const n=be().getScopeData().sdkProcessingMetadata.normalizedRequest,r={...t,normalizedRequest:t.normalizedRequest||n};let s;typeof e.tracesSampler=="function"?s=e.tracesSampler(r):r.parentSampled!==void 0?s=r.parentSampled:typeof e.tracesSampleRate<"u"?s=e.tracesSampleRate:s=1;const o=vs(s);return o===void 0?(L&&y.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):o?Math.random()<o?[!0,o]:(L&&y.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[!1,o]):(L&&y.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,o])}const Wp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function zp(e){return e==="http"||e==="https"}function ln(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function ol(e){const t=Wp.exec(e);if(!t){yt(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return il({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function il(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function jp(e){if(!Ht)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(y.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?zp(r)?t&&isNaN(parseInt(t,10))?(y.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(y.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(y.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function al(e){const t=typeof e=="string"?ol(e):il(e);if(!(!t||!jp(t)))return t}function qp(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}function Ue(e,t=100,n=1/0){try{return qo("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function cl(e,t=3,n=100*1024){const r=Ue(e,t);return Xp(r)>n?cl(e,t-1,n):r}function qo(e,t,n=1/0,r=1/0,s=qp()){const[o,i]=s;
7if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=Gp(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return qo("",p,c-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let l=0;const f=Fu(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(l>=r){d[p]="[MaxProperties ~]";break}const h=f[p];d[p]=qo(p,h,c-1,r,s),l++}return i(t),d}function Gp(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(Du(t))return"[VueViewModel]";if(ep(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${dt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Vp(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Vp(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Yp(e){return~-encodeURI(e).split(/%..|./).length}function Xp(e){return Yp(JSON.stringify(e))}function bt(e,t=[]){return[e,t]}function Kp(e,t){const[n,r]=e;return[n,[...r,t]]}function cn(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Fa(e,t){return cn(e,(n,r)=>t.includes(r))}function ws(e){return P.__SENTRY__&&P.__SENTRY__.encodePolyfill?P.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Jp(e){return P.__SENTRY__&&P.__SENTRY__.decodePolyfill?P.__SENTRY__.decodePolyfill(e):new TextDecoder().decode(e)}function Is(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[ws(r),o]:r.push(typeof o=="string"?ws(o):o)}for(const o of n){const[i,a]=o;if(s(` 8${JSON.stringify(i)} 9`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Ue(a))}s(c)}}return typeof r=="string"?r:Zp(r)}function Zp(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Qp(e){let t=typeof e=="string"?ws(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(Jp(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function eh(e){return[{type:"span"},e]}function th(e){const t=typeof e.data=="string"?ws(e.data):e.data;return[ge({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const nh={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function $a(e){return nh[e]}function Oi(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function ul(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ln(r)},...s&&{trace:ge({...s})}}}function rh(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function sh(e,t,n,r){const s=Oi(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:ln(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return bt(o,[i])}function oh(e,t,n,r){const s=Oi(n),o=e.type&&e.type!=="replay_event"?e.type:"event";rh(e,n&&n.sdk);const i=ul(e,s,r,t);return delete e.sdkProcessingMetadata,bt(i,[[{type:o},e]])}function ih(e,t){function n(d){return!!d.trace_id&&!!d.public_key}const r=Gt(e[0]),s=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:ln(s)}},a=t&&t.getOptions().beforeSendSpan,c=a?d=>{const l=a(H(d));return l||Zu(),l}:d=>H(d),u=[];for(const d of e){const l=c(d);l&&u.push(eh(l))}return bt(i,u)}function ah(e,t,n,r=de()){const s=r&&he(r);s&&(L&&y.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[qs]:t,[js]:n}))}function Ua(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[js],o=r[qs];typeof s=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:s})}),t}const Ba=1e3;class Ni{constructor(t={}){this._traceId=t.traceId||mt(),this._spanId=t.spanId||$t(),this._startTime=t.startTimestamp||ie(),this._attributes={},this.setAttributes({[Z]:"manual",[Me]: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()}
9addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Xu:Yu}}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=tn(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(pe,"custom"),this}end(t){this._endTime||(this._endTime=tn(t),Bp(this),this._onSpanEnded())}getSpanJSON(){return ge({data:this._attributes,description:this._name,op:this._attributes[Me],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Ku(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Z],_metrics_summary:Bo(this),profile_id:this._attributes[vp],exclusive_time:this._attributes[Ri],measurements:Ua(this._events),is_segment:this._isStandaloneSpan&&he(this)===this||void 0,segment_id:this._isStandaloneSpan?he(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){L&&y.log("[Tracing] Adding an event to span:",t);const s=Ha(n)?n:r||ie(),o=Ha(n)?{}:n||{},i={name:t,time:tn(s),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=x();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===he(this)))return;if(this._isStandaloneSpan){this._sampled?uh(ih([this],t)):(L&&y.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(La(this).scope||W()).captureEvent(r)}_convertSpanToTransaction(){if(!Wa(H(this)))return;this._name||(L&&y.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=La(this),s=(t||W()).getClient()||x();if(this._sampled!==!0){L&&y.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),s&&s.recordDroppedEvent("sample_rate","transaction");return}const i=ns(this).filter(l=>l!==this&&!ch(l)).map(l=>H(l)).filter(Wa),a=this._attributes[pe];delete this._attributes[Wo],i.forEach(l=>{l.data&&delete l.data[Wo]});const c={contexts:{trace:Mp(this)},spans:i.length>Ba?i.sort((l,f)=>l.start_timestamp-f.start_timestamp).slice(0,Ba):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...ge({dynamicSamplingContext:Gt(this)})},_metrics_summary:Bo(this),...a&&{transaction_info:{source:a}}},u=Ua(this._events);return u&&Object.keys(u).length&&(L&&y.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),c.measurements=u),c}}function Ha(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Wa(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function ch(e){return e instanceof Ni&&e.isStandaloneSpan()}function uh(e){const t=x();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const Di="__SENTRY_SUPPRESS_TRACING__";function wT(e,t){const n=Sr();if(n.startSpan)return n.startSpan(e,t);const r=Pi(e),{forceTransaction:s,parentSpan:o}=e;return We(e.scope,()=>ll(o)(()=>{const a=W(),c=Fi(a),d=e.onlyIfParent&&!c?new qt:Li({parentSpan:c,spanArguments:r,forceTransaction:s,scope:a});return an(a,d),Ai(()=>t(d),()=>{const{status:l}=H(d);d.isRecording()&&(!l||l==="ok")&&d.setStatus({code:ye,message:"internal_error"})},()=>d.end())}))}function lh(e,t){const n=Sr();if(n.startSpanManual)return n.startSpanManual(e,t);const r=Pi(e),{forceTransaction:s,parentSpan:o}=e;return We(e.scope,()=>ll(o)(()=>{const a=W(),c=Fi(a),d=e.onlyIfParent&&!c?new qt:Li({parentSpan:c,spanArguments:r,forceTransaction:s,scope:a});an(a,d);function l(){d.end()}return Ai(()=>t(d,l),()=>{const{status:f}=H(d);d.isRecording()&&(!f||f==="ok")&&d.setStatus({code:ye,message:"internal_error"})})}))}function Qe(e){const t=Sr();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Pi(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?i=>We(e.scope,i):s!==void 0?i=>On(s,i):i=>i())(()=>{const i=W(),a=Fi(i);return e.onlyIfParent&&!a?new qt:Li({parentSpan:a,spanArguments:n,forceTransaction:r,scope:i})})}const IT=(e,t)=>{const n=St(),r=jt(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:s,baggage:o}=e;return We(i=>{const a=Gu(s,o);return i.setPropagationContext(a),t()})};function On(e,t){const n=Sr();return n.withActiveSpan?n.withActiveSpan(e,t):We(r=>(an(r,e||void 0),t(r)))}function TT(e){const t=Sr();return t.suppressTracing?t.suppressTracing(e):We(n=>(n.setSDKProcessingMetadata({[Di]:!0}),e()))}function kT(e){return We(t=>(t.setPropagationContext({traceId:mt()}
9),L&&y.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),On(null,e)))}function Li({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Bt())return new qt;const s=be();let o;if(e&&!n)o=dh(e,r,t),Ju(e,o);else if(e){const i=Gt(e),{traceId:a,spanId:c}=e.spanContext(),u=un(e);o=za({traceId:a,parentSpanId:c,...t},r,u),Pa(o,i)}else{const{traceId:i,dsc:a,parentSpanId:c,sampled:u}={...s.getPropagationContext(),...r.getPropagationContext()};o=za({traceId:i,parentSpanId:c,...t},r,u),a&&Pa(o,a)}return Up(o),Fp(o,r,s),o}function Pi(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=tn(e.startTime),delete r.startTime,r}return n}function Sr(){const e=St();return jt(e)}function za(e,t,n){const r=x(),s=r&&r.getOptions()||{},{name:o="",attributes:i}=e,[a,c]=t.getScopeData().sdkProcessingMetadata[Di]?[!1]:Hp(s,{name:o,parentSampled:n,attributes:i,transactionContext:{name:o,parentSampled:n}}),u=new Ni({...e,attributes:{[pe]:"custom",...e.attributes},sampled:a});return c!==void 0&&u.setAttribute(Bu,c),r&&r.emit("spanStart",u),u}function dh(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),o=t.getScopeData().sdkProcessingMetadata[Di]?!1:un(e),i=o?new Ni({...n,parentSpanId:r,traceId:s,sampled:o}):new qt({traceId:s});Ju(e,i);const a=x();return a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i)),i}function Fi(e){const t=Es(e);if(!t)return;const n=x();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?he(t):t}function ll(e){return e!==void 0?t=>On(e,t):t=>t()}const rs={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},fh="heartbeatFailed",ph="idleTimeout",hh="finalTimeout",mh="externalFinish";function dl(e,t={}){const n=new Map;let r=!1,s,o=mh,i=!t.disableAutoFinish;const a=[],{idleTimeout:c=rs.idleTimeout,finalTimeout:u=rs.finalTimeout,childSpanTimeout:d=rs.childSpanTimeout,beforeSpanEnd:l}=t,f=x();if(!f||!Bt())return new qt;const p=W(),h=de(),g=gh(e);g.end=new Proxy(g.end,{apply(E,C,R){l&&l(g);const[m,...b]=R,T=m||ie(),w=tn(T),B=ns(g).filter(F=>F!==g);if(!B.length)return k(w),Reflect.apply(E,C,[w,...b]);const V=B.map(F=>H(F).timestamp).filter(F=>!!F),z=V.length?Math.max(...V):void 0,A=H(g).start_timestamp,ae=Math.min(A?A+u/1e3:1/0,Math.max(A||-1/0,Math.min(w,z||1/0)));return k(ae),Reflect.apply(E,C,[ae,...b])}});function S(){s&&(clearTimeout(s),s=void 0)}function _(E){S(),s=setTimeout(()=>{!r&&n.size===0&&i&&(o=ph,g.end(E))},c)}function v(E){s=setTimeout(()=>{!r&&i&&(o=fh,g.end(E))},d)}function O(E){S(),n.set(E,!0);const C=ie();v(C+d/1e3)}function M(E){if(n.has(E)&&n.delete(E),n.size===0){const C=ie();_(C+c/1e3)}}function k(E){r=!0,n.clear(),a.forEach(w=>w()),an(p,h);const C=H(g),{start_timestamp:R}=C;if(!R)return;(C.data||{})[Ho]||g.setAttribute(Ho,o),y.log(`[Tracing] Idle span "${C.op}" finished`);const b=ns(g).filter(w=>w!==g);let T=0;b.forEach(w=>{w.isRecording()&&(w.setStatus({code:ye,message:"cancelled"}),w.end(E),L&&y.log("[Tracing] Cancelling span since span ended early",JSON.stringify(w,void 0,2)));const B=H(w),{timestamp:V=0,start_timestamp:z=0}=B,A=z<=E,ae=(u+c)/1e3,F=V-z<=ae;if(L){const ee=JSON.stringify(w,void 0,2);A?F||y.log("[Tracing] Discarding span since it finished after idle span final timeout",ee):y.log("[Tracing] Discarding span since it happened after idle span was finished",ee)}(!F||!A)&&(Lp(g,w),T++)}),T>0&&g.setAttribute("sentry.idle_span_discarded_spans",T)}return a.push(f.on("spanStart",E=>{if(r||E===g||H(E).timestamp)return;ns(g).includes(E)&&O(E.spanContext().spanId)})),a.push(f.on("spanEnd",E=>{r||M(E.spanContext().spanId)})),a.push(f.on("idleSpanEnableAutoFinish",E=>
9{E===g&&(i=!0,_(),n.size&&v())})),t.disableAutoFinish||_(),setTimeout(()=>{r||(g.setStatus({code:ye,message:"deadline_exceeded"}),o=hh,g.end())},u),g}function gh(e){const t=Qe(e);return an(W(),t),L&&y.log("[Tracing] Started span is an idle span"),t}function Go(e,t,n,r=0){return new Be((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);L&&i.id&&a===null&&y.log(`Event processor "${i.id}" dropped event`),_r(a)?a.then(c=>Go(e,c,n,r+1).then(s)).then(null,o):Go(e,a,n,r+1).then(s).then(null,o)}})}let Fr,ja,$r;function fl(e){const t=P._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return $r&&n.length===ja||(ja=n.length,$r=n.reduce((r,s)=>{Fr||(Fr={});const o=Fr[s];if(o)r[o[0]]=o[1];else{const i=e(s);for(let a=i.length-1;a>=0;a--){const c=i[a],u=c&&c.filename,d=t[s];if(u&&d){r[u]=d,Fr[s]=[u,d];break}}}return r},{})),$r}function _h(e,t){const n=fl(e);if(!n)return[];const r=[];for(const s of t)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function yh(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;Sh(e,t),r&&vh(e,r),wh(e,n),bh(e,s),Eh(e,o)}function qa(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:l,propagationContext:f,transactionName:p,span:h}=t;Ur(e,"extra",n),Ur(e,"tags",r),Ur(e,"user",s),Ur(e,"contexts",o),e.sdkProcessingMetadata=zs(e.sdkProcessingMetadata,a,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...f}}function Ur(e,t,n){e[t]=zs(e[t],n,1)}function Sh(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=ge(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=ge(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=ge(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const l=ge(o);l&&Object.keys(l).length&&(e.contexts={...l,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function bh(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Eh(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function vh(e,t){e.contexts={trace:Ap(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Gt(t),...e.sdkProcessingMetadata};const n=he(t),r=H(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function wh(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function pl(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Re(),timestamp:t.timestamp||yr()},u=n.integrations||e.integrations.map(S=>S.name);Ih(c,e),Ch(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&Th(c,e.stackParser);const d=Rh(r,n.captureContext);n.mechanism&&Ft(c,n.mechanism);const l=s?s.getEventProcessors():[],f=xi().getScopeData();if(o){const S=o.getScopeData();qa(f,S)}if(d){const S=d.getScopeData();qa(f,S)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),yh(c,f);const h=[...l,...f.eventProcessors];return Go(h,c,n).then(S=>(S&&kh(S),typeof i=="number"&&i>0?xh(S,i,a):S))}function Ih(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||Gs,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=At(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=At(i.value,o));const a=e.request;a&&a.url&&(a.url=At(a.url,o))}function Th(e,t){const n=fl(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{n&&s.filename&&(s.debug_id=n[s.filename])})})}catch{}}function kh(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Ch(e,t){t.length>0&&(e.sdk=e.sdk||{}
9,e.sdk.integrations=[...e.sdk.integrations||[],...t])}function xh(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Ue(s.data,t,n)}}))},...e.user&&{user:Ue(e.user,t,n)},...e.contexts&&{contexts:Ue(e.contexts,t,n)},...e.extra&&{extra:Ue(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ue(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:Ue(s.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Ue(e.contexts.flags,3,n)),r}function Rh(e,t){if(!t)return e;const n=e?e.clone():new Ut;return n.update(t),n}function Mh(e){if(e)return Ah(e)?{captureContext:e}:Nh(e)?{captureContext:e}:e}function Ah(e){return e instanceof Ut||typeof e=="function"}const Oh=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Nh(e){return Object.keys(e).some(t=>Oh.includes(t))}function Vs(e,t){return W().captureException(e,Mh(t))}function Vo(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return W().captureMessage(e,n,r)}function br(e,t){return W().captureEvent(e,t)}function $i(e,t){be().setContext(e,t)}function Dh(e){be().setExtras(e)}function Lh(e,t){be().setExtra(e,t)}function Ph(e){be().setTags(e)}function Fh(e,t){be().setTag(e,t)}function $h(e){be().setUser(e)}function Uh(){return be().lastEventId()}async function CT(e){const t=x();return t?t.flush(e):(L&&y.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function xT(e){const t=x();return t?t.close(e):(L&&y.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function RT(){return!!x()}function Bh(){const e=x();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Hh(e){be().addEventProcessor(e)}function Yo(e){const t=x(),n=be(),r=W(),{release:s,environment:o=Gs}=t&&t.getOptions()||{},{userAgent:i}=P.navigator||{},a=lp({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&Mn(c,{status:"exited"}),Ts(),n.setSession(a),r.setSession(a),a}function Ts(){const e=be(),t=W(),n=t.getSession()||e.getSession();n&&dp(n),hl(),e.setSession(),t.setSession()}function hl(){const e=be(),t=W(),n=x(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Ga(e=!1){if(e){Ts();return}hl()}const Wh="7";function ml(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function zh(e){return`${ml(e)}${e.projectId}/envelope/`}function jh(e,t){const n={sentry_version:Wh};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function gl(e,t,n){return t||`${zh(e)}?${jh(e,n)}`}function qh(e,t){const n=al(e);if(!n)return"";const r=`${ml(n)}embed/error-page/`;let s=`dsn=${ln(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=t.user;if(!i)continue;i.name&&(s+=`&name=${encodeURIComponent(i.name)}`),i.email&&(s+=`&email=${encodeURIComponent(i.email)}`)}else s+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${s}`}const Va=[];function Gh(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Vh(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;const s=Gh(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function Yh(e,t){const n={};return t.forEach(r=>{r&&_l(e,r,n)}),n}function Ya(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function _l(e,t,n){if(n[t.name]){L&&y.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Va.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Va.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}L&&y.log(`Integration installed: ${t.name}`)}function Xa(e){const t=x();if(!t){L&&y.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}
9function Xh(e,t,n){const r=[{type:"client_report"},{timestamp:yr(),discarded_events:e}];return bt(t?{dsn:t}:{},[r])}class Ye extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}const Ka="Not capturing exception because it's already been captured.";class Kh{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=al(t.dsn):L&&y.warn("No DSN provided, client will not send events."),this._dsn){const s=gl(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:s})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(s=>s in t&&t[s]==null);r&&yt(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const s=Re();if(Ra(t))return L&&y.log(Ka),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:Re(),...r},i=wi(t)?t:String(t),a=Ii(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(t,n,r){const s=Re();if(n&&n.originalException&&Ra(n.originalException))return L&&y.log(Ka),s;const o={event_id:s,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,a||r)),o.event_id}captureSession(t){typeof t.release!="string"?L&&y.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Mn(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;
9return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):ht(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];_l(this,t,this._integrations),n||Ya(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=oh(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Kp(r,th(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=sh(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,o=`${t}:${n}`;L&&y.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(L&&y.error("Error while sending envelope:",n),n)):(L&&y.error("Transport disabled"),ht({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Yh(this,t),Ya(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const c of o){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(Mn(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Be(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=W(),s=be()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),pl(o,t,n,r,this,s).then(a=>{if(a===null)return a;a.contexts={trace:bp(r),...a.contexts};const c=sl(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{L&&(s instanceof Ye&&s.logLevel==="log"?y.log(s.message):y.warn(s))})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Sl(t),a=yl(t),c=t.type||"error",u=`before send for type \`${c}\``,d=typeof o>"u"?void 0:vs(o);if(a&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error",t),bs(new Ye(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const l=c==="replay_event"?"replay":c,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",l,t),new Ye("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return h;const S=Zh(this,s,h,n);return Jh(S,u)}).then(h=>{if(h===null){if(this.recordDroppedEvent("before_send",l,t),i){const v=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",v)}throw new Ye(`${u} returned \`null\`, will not send event.`,"log")}const g=r&&r.getSession();if(!i&&g&&this._updateSessionFromEvent(g,h),i){const _=h.sdkProcessingMetadata&&h.sdkProcessingMetadata.spanCountBeforeProcessing||0,v=h.spans?h.spans.length:0,O=_-v;O>0&&this.recordDroppedEvent("before_send","span",O)}const S=h.transaction_info;if(i&&S&&h.transaction!==t.transaction){const _="custom";h.transaction_info={...S,source:_}}return this.sendEvent(h,n),h}).then(null,h=>{throw h instanceof Ye?h:(this.captureException(h,{data:{__sentry__:!0},originalException:h}),new Ye(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 10Reason: ${h}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){L&&y.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){L&&y.log("No outcomes to send");return}if(!this._dsn){L&&y.log("No dsn provided, will not send outcomes");return}L&&y.log("Sending outcomes:",t);const n=Xh(t,this._options.tunnel&&ln(this._dsn));this.sendEnvelope(n)}}function Jh(e,t){const n=`${t} must return \`null\` or a valid event.`;if(_r(e))return e.then(r=>{if(!on(r)&&r!==null)throw new Ye(n);return r},r=>{throw new Ye(`${t} rejected with ${r}`)});if(!on(e)&&e!==null)throw new Ye(n);return e}function Zh(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;if(yl(n)&&s)return s(n,r);if(Sl(n)){if(n.spans&&i){const a=[];for(const c of n.spans){const u=i(c);u?a.push(u):(Zu(),e.recordDroppedEvent("before_send","span"))}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function yl(e){return e.type===void 0}function Sl(e){return e.type==="transaction"}function Qh(e,t){t.debug===!0&&(L?y.enable():yt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),W().update(t.initialScope);const r=new e(t);return em(r),r.init(),r}function em(e){W().setClient(e)}function tm(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return bs(new Ye("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new Be((a,c)=>{let u=t.length;if(!u)return a(!0);const d=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(l=>{ht(l).then(()=>{--u||(clearTimeout(d),a(!0))},c)})})}return{$:t,add:s,drain:o}}const nm=60*1e3;
10function bl(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?nm:r-t}function rm(e,t){return e[t]||e.all||0}function El(e,t,n=Date.now()){return rm(e,t)>n}function vl(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,d]=a.split(":",5),l=parseInt(c,10),f=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else i?s.all=r+bl(i,r):t===429&&(s.all=r+60*1e3);return s}const sm=64;function om(e,t,n=tm(e.bufferSize||sm)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(cn(i,(l,f)=>{const p=$a(f);if(El(r,p)){const h=Ja(l,f);e.recordDroppedEvent("ratelimit_backoff",p,h)}else a.push(l)}),a.length===0)return ht({});const c=bt(i[0],a),u=l=>{cn(c,(f,p)=>{const h=Ja(f,p);e.recordDroppedEvent(l,$a(p),h)})},d=()=>t({body:Is(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&L&&y.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=vl(r,l),l),l=>{throw u("network_error"),l});return n.add(d).then(l=>l,l=>{if(l instanceof Ye)return L&&y.error("Skipped sending event because buffer is full."),u("queue_overflow"),ht({});throw l})}return{send:o,flush:s}}function Ja(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const mo=100,go=5e3,im=36e5;function am(e){function t(...n){L&&y.info("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const s=n.createStore(n);let o=go,i;function a(l,f,p){return Fa(l,["client_report"])?!1:n.shouldStore?n.shouldStore(l,f,p):!0}function c(l){i&&clearTimeout(i),i=setTimeout(async()=>{i=void 0;const f=await s.shift();f&&(t("Attempting to send previously queued event"),f[0].sent_at=new Date().toISOString(),d(f,!0).catch(p=>{t("Failed to retry sending",p)}))},l),typeof i!="number"&&i.unref&&i.unref()}function u(){i||(c(o),o=Math.min(o*2,im))}async function d(l,f=!1){if(!f&&Fa(l,["replay_event","replay_recording"]))return await s.push(l),c(mo),{};try{const p=await r.send(l);let h=mo;if(p){if(p.headers&&p.headers["retry-after"])h=bl(p.headers["retry-after"]);else if(p.headers&&p.headers["x-sentry-rate-limits"])h=6e4;else if((p.statusCode||0)>=400)return p}return c(h),o=go,p}catch(p){if(await a(l,p,o))return f?await s.unshift(l):await s.push(l),u(),t("Error sending. Event queued.",p),{};throw p}}return n.flushAtStartup&&u(),{send:d,flush:l=>(l===void 0&&(o=go,c(mo)),r.flush(l))}}}function wl(e,t){let n;return cn(e,(r,s)=>(t.includes(s)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function cm(e,t){return n=>{const r=e(n);return{...r,send:async s=>{const o=wl(s,["event","transaction","profile","replay_event"]);return o&&(o.release=t),r.send(s)}}}}function um(e,t){return bt(t?{...e[0],dsn:t}:e[0],e[1])}function MT(e,t){return n=>{const r=e(n),s=new Map;function o(c,u){const d=u?`${c}:${u}`:c;let l=s.get(d);if(!l){const f=ol(c);if(!f)return;const p=gl(f,n.tunnel);l=u?cm(e,u)({...n,url:p}):e({...n,url:p}),s.set(d,l)}return[c,l]}async function i(c){function u(p){const h=p&&p.length?p:["event"];return wl(c,h)}const d=t({envelope:c,getEvent:u}).map(p=>typeof p=="string"?o(p,void 0):o(p.dsn,p.release)).filter(p=>!!p),l=d.length?d:[["",r]];return(await Promise.all(l.map(([p,h])=>h.send(um(c,p)))))[0]}async function a(c){const u=[...s.values(),r];return(await Promise.all(u.map(l=>l.flush(c)))).every(l=>l)}return{send:i,flush:a}}}function Il(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return dm(e,n)||lm(e,r)}function lm(e,t){return t?Za(e)===Za(t):!1}function dm(e,t){return t?e.includes(t.host):!1}function Za(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function AT(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}function Tl(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Mt})),version:Mt}),e._metadata=s}function kl(e={}){const t=x();
10if(!Bh()||!t)return{};const n=St(),r=jt(n);if(r.getTraceData)return r.getTraceData(e);const s=W(),o=e.span||de(),i=o?Op(o):fm(s),a=o?Gt(o):sl(t,s),c=ju(a);return qu.test(i)?{"sentry-trace":i,baggage:c}:(y.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function fm(e){const{traceId:t,sampled:n,spanId:r}=e.getPropagationContext();return Vu(t,r,n)}const pm=100;function tt(e,t){const n=x(),r=be();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=pm}=n.getOptions();if(o<=0)return;const a={timestamp:yr(),...e},c=s?yt(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}let Qa;const hm="FunctionToString",ec=new WeakMap,mm=(()=>({name:hm,setupOnce(){Qa=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=ki(this),n=ec.has(x())&&t!==void 0?t:this;return Qa.apply(n,e)}}catch{}},setup(e){ec.set(e,!0)}})),gm=mm,_m=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],ym="InboundFilters",Sm=((e={})=>({name:ym,processEvent(t,n,r){const s=r.getOptions(),o=Em(e,s);return vm(t,o)?null:t}})),bm=Sm;function Em(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:_m],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function vm(e,t){return t.ignoreInternal&&xm(e)?(L&&y.warn(`Event dropped due to being internal Sentry Error. 11Event: ${wt(e)}`),!0):wm(e,t.ignoreErrors)?(L&&y.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 12Event: ${wt(e)}`),!0):Mm(e)?(L&&y.warn(`Event dropped due to not having an error message, error type or stacktrace. 13Event: ${wt(e)}`),!0):Im(e,t.ignoreTransactions)?(L&&y.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 14Event: ${wt(e)}`),!0):Tm(e,t.denyUrls)?(L&&y.warn(`Event dropped due to being matched by \`denyUrls\` option. 15Event: ${wt(e)}. 16Url: ${ks(e)}`),!0):km(e,t.allowUrls)?!1:(L&&y.warn(`Event dropped due to not being matched by \`allowUrls\` option. 17Event: ${wt(e)}. 18Url: ${ks(e)}`),!0)}function wm(e,t){return e.type||!t||!t.length?!1:Cm(e).some(n=>Ot(n,t))}function Im(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ot(n,t):!1}function Tm(e,t){if(!t||!t.length)return!1;const n=ks(e);return n?Ot(n,t):!1}function km(e,t){if(!t||!t.length)return!0;const n=ks(e);return n?Ot(n,t):!0}function Cm(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function xm(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Rm(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ks(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Rm(t):null}catch{return L&&y.error(`Cannot extract url for event ${wt(e)}`),null}}function Mm(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function Am(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!ft(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Om(Xo(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function Xo(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(ft(r[s],Error)){tc(i,a);const u=e(t,r[s]),d=c.length;nc(u,s,d,a),c=Xo(e,t,n,r[s],s,[u,...c],u,d)}
18return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(ft(u,Error)){tc(i,a);const l=e(t,u),f=c.length;nc(l,`errors[${d}]`,f,a),c=Xo(e,t,n,u,s,[l,...c],l,f)}}),c}function tc(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function nc(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Om(e,t){return e.map(n=>(n.value&&(n.value=At(n.value,t)),n))}const Cl=new Map,rc=new Set;function Nm(e){if(P._sentryModuleMetadata)for(const t of Object.keys(P._sentryModuleMetadata)){const n=P._sentryModuleMetadata[t];if(rc.has(t))continue;rc.add(t);const r=e(t);for(const s of r.reverse())if(s.filename){Cl.set(s.filename,n);break}}}function Dm(e,t){return Nm(e),Cl.get(t)}function xl(e,t){try{t.exception.values.forEach(n=>{if(n.stacktrace)for(const r of n.stacktrace.frames||[]){if(!r.filename||r.module_metadata)continue;const s=Dm(e,r.filename);s&&(r.module_metadata=s)}})}catch{}}function Rl(e){try{e.exception.values.forEach(t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[])delete n.module_metadata})}catch{}}const OT=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{cn(t,(n,r)=>{if(r==="event"){const s=Array.isArray(n)?n[1]:void 0;s&&(Rl(s),n[1]=s)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;xl(n,t)})}});function rn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Lm(e){return e.split(/[?#]/,1)[0]}function sc(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function Ml(e){const t="console";Wt(t,e),zt(t,Pm)}function Pm(){"console"in P&&_s.forEach(function(e){e in P.console&&xe(P.console,e,function(t){return ys[e]=t,function(...n){He("console",{args:n,level:e});const s=ys[e];s&&s.apply(P.console,n)}})})}function Ui(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Fm="CaptureConsole",$m=((e={})=>{const t=e.levels||_s,n=!!e.handled;return{name:Fm,setup(r){"console"in P&&Ml(({args:s,level:o})=>{x()!==r||!t.includes(o)||Um(s,o,n)})}}}),NT=$m;function Um(e,t,n){const r={level:Ui(t),extra:{arguments:e}};We(s=>{if(s.addEventProcessor(a=>(a.logger="console",Ft(a,{handled:n,type:"console"}),a)),t==="assert"){if(!e[0]){const a=`Assertion failed: ${Ss(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),Vo(a,r)}return}const o=e.find(a=>a instanceof Error);if(o){Vs(o,r);return}const i=Ss(e," ");Vo(i,r)})}const Bm="Debug",Hm=((e={})=>{const t={debugger:!1,stringify:!1,...e};return{name:Bm,setup(n){n.on("beforeSendEvent",(r,s)=>{if(t.debugger)debugger;yt(()=>{t.stringify?(console.log(JSON.stringify(r,null,2)),s&&Object.keys(s).length&&console.log(JSON.stringify(s,null,2))):(console.log(r),s&&Object.keys(s).length&&console.log(s))})})}}}),DT=Hm,Wm="Dedupe",zm=(()=>{let e;return{name:Wm,processEvent(t){if(t.type)return t;try{if(qm(t,e))return L&&y.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),jm=zm;function qm(e,t){return t?!!(Gm(e,t)||Vm(e,t)):!1}function Gm(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Ol(e,t)||!Al(e,t))}function Vm(e,t){const n=oc(t),r=oc(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Ol(e,t)||!Al(e,t))}function Al(e,t){let n=Lo(e),r=Lo(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Ol(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 oc(e){return e.exception&&e.exception.values&&e.exception.values[0]}const Ym="ExtraErrorData",Xm=((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:Ym,processEvent(r,s,o){const{maxValueLength:i=250}=o.getOptions();return Km(r,s,t,n,i)}}}),LT=Xm;function Km(e,t={},n,r,s){if(!t.originalException||!ct(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,i=Jm(t.originalException,r,s);if(i){const a={...e.contexts},c=Ue(i,n);return on(c)&&(Ne(c,"__sentry_skip_normalization__",!0),a[o]=c),{...e,contexts:a}}return e}
18function Jm(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],s={};for(const o of Object.keys(e)){if(r.indexOf(o)!==-1)continue;const i=e[o];s[o]=ct(i)||typeof i=="string"?At(`${i}`,n):i}if(t&&e.cause!==void 0&&(s.cause=ct(e.cause)?e.cause.toString():e.cause),typeof e.toJSON=="function"){const o=e.toJSON();for(const i of Object.keys(o)){const a=o[i];s[i]=ct(a)?a.toString():a}}return s}catch(r){L&&y.error("Unable to extract extra data from the Error object:",r)}return null}function Zm(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const s=e[r];s==="."?e.splice(r,1):s===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const Qm=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function eg(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Qm.exec(t);return n?n.slice(1):[]}function ic(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:"/";s&&(t=`${s}/${t}`,n=s.charAt(0)==="/")}return t=Zm(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function ac(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 tg(e,t){e=ic(e).slice(1),t=ic(t).slice(1);const n=ac(e.split("/")),r=ac(t.split("/")),s=Math.min(n.length,r.length);let o=s;for(let a=0;a<s;a++)if(n[a]!==r[a]){o=a;break}let i=[];for(let a=o;a<n.length;a++)i.push("..");return i=i.concat(r.slice(o)),i.join("/")}function ng(e,t){return eg(e)[2]||""}const rg="RewriteFrames",PT=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in P&&P.window!==void 0,s=e.iteratee||sg({isBrowser:r,root:t,prefix:n});function o(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:i(c.stacktrace)}}))}}}catch{return a}}function i(a){return{...a,frames:a&&a.frames&&a.frames.map(c=>s(c))}}return{name:rg,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=o(c)),c}}};function sg({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const s=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){const i=r.filename;i.indexOf(t)===0&&(r.filename=i.replace(t,n))}}else if(s||o){const i=s?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?tg(t,i):ng(i);r.filename=`${n}${a}`}return r}}const og="SessionTiming",ig=(()=>{const e=ie()*1e3;return{name:og,processEvent(t){const n=ie()*1e3;return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}}),FT=ig,ag=10,cg="ZodErrors";function ug(e){return ct(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function lg(e){return{...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 dg(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function fg(e){const t=new Set;for(const r of e.issues){const s=dg(r.path);s.length>0&&t.add(s)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const s=e.issues[0];s!==void 0&&"expected"in s&&typeof s.expected=="string"&&(r=s.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${At(n.join(", "),100)}`}function pg(e,t=!1,n,r){if(!n.exception||!n.exception.values||!r||!r.originalException||!ug(r.originalException)||r.originalException.issues.length===0)return n;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(lg);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:fg(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(s){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:s
18instanceof Error?`${s.name}: ${s.message} 19${s.stack}`:"unknown"}}}}}const hg=((e={})=>{const t=typeof e.limit>"u"?ag:e.limit;return{name:cg,processEvent(n,r){return pg(t,e.saveZodIssuesAsAttachment,n,r)}}}),$T=hg,UT=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{cn(n,(r,s)=>{if(s==="event"){const o=Array.isArray(r)?r[1]:void 0;o&&(Rl(o),r[1]=o)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;xl(r,n)})},processEvent(t){const n=mg(t);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](o=>!o.some(i=>e.filterKeys.includes(i)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function mg(e){const t=Lo(e);if(t)return t.filter(n=>!!n.filename).map(n=>n.module_metadata?Object.keys(n.module_metadata).filter(r=>r.startsWith(cc)).map(r=>r.slice(cc.length)):[])}const cc="_sentryBundlerPluginAppKey:",Nl="c",Dl="g",Bi="s",Ll="d",gg=5e3;function Pl(e,t){const n=gr("globalMetricsAggregators",()=>new WeakMap),r=n.get(e);if(r)return r;const s=new t(e);return e.on("flush",()=>s.flush()),e.on("close",()=>s.close()),n.set(e,s),s}function Ys(e,t,n,r,s={}){const o=s.client||x();if(!o)return;const i=de(),a=i?he(i):void 0,c=a&&H(a).description,{unit:u,tags:d,timestamp:l}=s,{release:f,environment:p}=o.getOptions(),h={};f&&(h.release=f),p&&(h.environment=p),c&&(h.transaction=c),L&&y.log(`Adding value of ${r} to ${t} metric ${n}`),Pl(o,e).add(t,n,r,u,{...h,...d},l)}function _g(e,t,n=1,r){Ys(e,Nl,t,Hi(n),r)}function Ko(e,t,n,r){Ys(e,Ll,t,Hi(n),r)}function yg(e,t,n,r="second",s){if(typeof n=="function"){const o=ie();return lh({op:"metrics.timing",name:t,startTime:o,onlyIfParent:!0},i=>Ai(()=>n(),()=>{},()=>{const a=ie(),c=a-o;Ko(e,t,c,{...s,unit:"second"}),i.end(a)}))}Ko(e,t,n,{...s,unit:r})}function Sg(e,t,n,r){Ys(e,Bi,t,n,r)}function bg(e,t,n,r){Ys(e,Dl,t,Hi(n),r)}const Er={increment:_g,distribution:Ko,set:Sg,gauge:bg,timing:yg,getMetricsAggregatorForClient:Pl};function Hi(e){return typeof e=="string"?parseInt(e):e}function Eg(e,t,n,r){const s=Object.entries(ge(r)).sort((o,i)=>o[0].localeCompare(i[0]));return`${e}${t}${n}${s}`}function vg(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return t>>>0}function wg(e){let t="";for(const n of e){const r=Object.entries(n.tags),s=r.length>0?`|#${r.map(([o,i])=>`${o}:${i}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${s}|T${n.timestamp} 20`}return t}function Ig(e){return e.replace(/[^\w]+/gi,"_")}function Tg(e){return e.replace(/[^\w\-.]+/gi,"_")}function kg(e){return e.replace(/[^\w\-./]+/gi,"")}const Cg=[[` 21`,"\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function xg(e){for(const[t,n]of Cg)if(e===t)return n;return e}function Rg(e){return[...e].reduce((t,n)=>t+xg(n),"")}function Mg(e){const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=kg(n);t[r]=Rg(String(e[n]))}return t}function Ag(e,t){y.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=e.getDsn(),r=e.getSdkMetadata(),s=e.getOptions().tunnel,o=Og(t,n,r,s);e.sendEnvelope(o)}function Og(e,t,n,r){const s={sent_at:new Date().toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(s.dsn=ln(t));const o=Ng(e);return bt(s,[o])}function Ng(e){const t=wg(e);return[{type:"statsd",length:t.length},t]}class Dg{constructor(t){this._value=t}get weight(){return 1}add(t){this._value+=t}toString(){return`${this._value}`}}class Lg{constructor(t){this._last=t,this._min=t,this._max=t,this._sum=t,this._count=1}get weight(){return 5}add(t){this._last=t,t<this._min&&(this._min=t),t>this._max&&(this._max=t),this._sum+=t,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class Pg{constructor(t){this._value=[t]}get weight(){return this._value.length}add(t){this._value.push(t)}toString(){return this._value.join(":")}}class Fg{constructor(t){this.first=t,this._value=new Set([t])}get weight(){return this._value.size}add(t){this._value.add(t)}toString(){return Array.from(this._value).map(t=>typeof t=="string"?vg(t):t).join(":")}}const $g={[Nl]:Dg,[Dl]:Lg,[Ll]:Pg,[Bi]:Fg};class vr{constructor(t){this._client=t,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),gg)}add(t,n,r,s="none",o={}
21,i=ie()){const a=Math.floor(i),c=Tg(n),u=Mg(o),d=Ig(s),l=Eg(t,c,d,u);let f=this._buckets.get(l);const p=f&&t===Bi?f.metric.weight:0;f?(f.metric.add(r),f.timestamp<a&&(f.timestamp=a)):(f={metric:new $g[t](r),timestamp:a,metricType:t,name:c,unit:d,tags:u},this._buckets.set(l,f));const h=typeof r=="string"?f.metric.weight-p:r;Pp(t,c,h,d,o,l)}flush(){if(this._buckets.size===0)return;const t=Array.from(this._buckets.values());Ag(this._client,t),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}}function Ug(e,t,n,r,s="auto.http.browser"){if(!e.fetchData)return;const o=Bt()&&t(e.fetchData.url);if(e.endTimestamp&&o){const f=e.fetchData.__span;if(!f)return;const p=r[f];p&&(Wg(p,e),delete r[f]);return}const{method:i,url:a}=e.fetchData,c=Hg(a),u=c?rn(c).host:void 0,d=!!de(),l=o&&d?Qe({name:`${i} ${a}`,attributes:{url:a,type:"fetch","http.method":i,"http.url":c,"server.address":u,[Z]:s,[Me]:"http.client"}}):new qt;if(e.fetchData.__span=l.spanContext().spanId,r[l.spanContext().spanId]=l,n(e.fetchData.url)){const f=e.args[0],p=e.args[1]||{},h=Bg(f,p,Bt()&&d?l:void 0);h&&(e.args[1]=p,p.headers=h)}return l}function Bg(e,t,n){const r=kl({span:n}),s=r["sentry-trace"],o=r.baggage;if(!s)return;const i=t.headers||(zg(e)?e.headers:void 0);if(i)if(jg(i)){const a=new Headers(i);if(a.set("sentry-trace",s),o){const c=a.get("baggage");if(c){const u=Br(c);a.set("baggage",u?`${u},${o}`:o)}else a.set("baggage",o)}return a}else if(Array.isArray(i)){const a=[...i.filter(c=>!(Array.isArray(c)&&c[0]==="sentry-trace")).map(c=>{if(Array.isArray(c)&&c[0]==="baggage"&&typeof c[1]=="string"){const[u,d,...l]=c;return[u,Br(d),...l]}else return c}),["sentry-trace",s]];return o&&a.push(["baggage",o]),a}else{const a="baggage"in i?i.baggage:void 0;let c=[];return Array.isArray(a)?c=a.map(u=>typeof u=="string"?Br(u):u).filter(u=>u===""):a&&c.push(Br(a)),o&&c.push(o),{...i,"sentry-trace":s,baggage:c.length>0?c.join(","):void 0}}else return{...r}}function Hg(e){try{return new URL(e).href}catch{return}}function Wg(e,t){if(t.response){Wu(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:ye,message:"internal_error"});e.end()}function Br(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(Mi)).join(",")}function zg(e){return typeof Request<"u"&&ft(e,Request)}function jg(e){return typeof Headers<"u"&&ft(e,Headers)}function qg(e,t={},n=W()){const{message:r,name:s,email:o,url:i,source:a,associatedEventId:c,tags:u}=e,d={contexts:{feedback:ge({contact_email:o,name:s,message:r,url:i,source:a,associated_event_id:c})},type:"feedback",level:"info",tags:u},l=n&&n.getClient()||x();return l&&l.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}function Gg(){return{bindClient(e){W().setClient(e)},withScope:We,getClient:()=>x(),getScope:W,getIsolationScope:be,captureException:(e,t)=>W().captureException(e,t),captureMessage:(e,t,n)=>W().captureMessage(e,t,n),captureEvent:br,addBreadcrumb:tt,setUser:$h,setTags:Ph,setTag:Fh,setExtra:Lh,setExtras:Dh,setContext:$i,getIntegration(e){const t=x();return t&&t.getIntegrationByName(e.id)||null},startSession:Yo,endSession:Ts,captureSession(e){if(e)return Ts();Vg()}}}const BT=Gg;function Vg(){const e=W(),t=x(),n=e.getSession();t&&n&&t.captureSession(n)}function Fl(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Cs=P;function $l(){if(!("fetch"in Cs))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Jo(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ul(){if(typeof EdgeRuntime=="string")return!0;if(!$l())return!1;if(Jo(Cs.fetch))return!0;let e=!1;const t=Cs.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");
21n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Jo(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Ht&&y.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Yg(){return"ReportingObserver"in Cs}function Wi(e,t){const n="fetch";Wt(n,e),zt(n,()=>Bl(void 0,t))}function Xg(e){const t="fetch-body-resolved";Wt(t,e),zt(t,()=>Bl(Jg))}function Bl(e,t=!1){t&&!Ul()||xe(P,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=Zg(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:ie()*1e3,virtualError:s};return e||He("fetch",{...a}),n.apply(P,r).then(async c=>(e?e(c):He("fetch",{...a,endTimestamp:ie()*1e3,response:c}),c),c=>{throw He("fetch",{...a,endTimestamp:ie()*1e3,error:c}),ct(c)&&c.stack===void 0&&(c.stack=s.stack,Ne(c,"framesToPop",1)),c})}})}async function Kg(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Jg(e){let t;try{t=e.clone()}catch{return}Kg(t,()=>{He("fetch-body-resolved",{endTimestamp:ie()*1e3,response:e})})}function Zo(e,t){return!!e&&typeof e=="object"&&!!e[t]}function uc(e){return typeof e=="string"?e:e?Zo(e,"url")?e.url:e.toString?e.toString():"":""}function Zg(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:uc(n),method:Zo(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:uc(t),method:Zo(t,"method")?String(t.method).toUpperCase():"GET"}}function Qg(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function e_(){return"npm"}function t_(){return!Qg()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Qo(){return typeof window<"u"&&(!t_()||n_())}function n_(){const e=P.process;return!!e&&e.type==="renderer"}const Hr=P;function r_(){const e=Hr.chrome,t=e&&e.app&&e.app.runtime,n="history"in Hr&&!!Hr.history.pushState&&!!Hr.history.replaceState;return!t&&n}function s_(e,t){return e??t()}function sn(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}const I=P;let ei=0;function Hl(){return ei>0}function o_(){ei++,setTimeout(()=>{ei--})}function Nn(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(ki(e))return e}catch{return e}const r=function(...s){try{const o=s.map(i=>Nn(i,t));return e.apply(this,o)}catch(o){throw o_(),We(i=>{i.addEventProcessor(a=>(t.mechanism&&(Fo(a,void 0),Ft(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Vs(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Pu(r,e),Ne(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const G=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function zi(e,t){const n=ji(e,t),r={type:l_(t),value:d_(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function i_(e,t,n,r){const s=x(),o=s&&s.getOptions().normalizeDepth,i=g_(t),a={__serialized__:cl(t,o)};if(i)return{exception:{values:[zi(e,i)]},extra:a};const c={exception:{values:[{type:Ws(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:h_(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=ji(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function _o(e,t){return{exception:{values:[zi(e,t)]}}}function ji(e,t){const n=t.stacktrace||t.stack||"",r=c_(t),s=u_(t);try{return e(n,r,s)}catch{}return[]}const a_=/Minified React error #\d+;/i;function c_(e){return e&&a_.test(e.message)?1:0}function u_(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Wl(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function l_(e){const t=e&&e.name;return!t&&Wl(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function d_(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Wl(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function f_(e,t,n,r){const s=n&&n.syntheticException||void 0,o=qi(e,t,s,r);return Ft(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),ht(o)}function p_(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,i=ti(e,t,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),ht(i)}
21function qi(e,t,n,r,s){let o;if(Nu(t)&&t.error)return _o(e,t.error);if(ka(t)||Jf(t)){const i=t;if("stack"in t)o=_o(e,t);else{const a=i.name||(ka(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=ti(e,c,n,r),Fo(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return ct(t)?_o(e,t):on(t)||Ws(t)?(o=i_(e,t,n,s),Ft(o,{synthetic:!0}),o):(o=ti(e,t,n,r),Fo(o,`${t}`),Ft(o,{synthetic:!0}),o)}function ti(e,t,n,r){const s={};if(r&&n){const o=ji(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),Ft(s,{synthetic:!0})}if(wi(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function h_(e,{isUnhandledRejection:t}){const n=op(e),r=t?"promise rejection":"exception";return Nu(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ws(e)?`Event \`${m_(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function m_(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function g_(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function __(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:ln(r)}},o=y_(e);return bt(s,[o])}function y_(e){return[{type:"user_report"},e]}class S_ extends Kh{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=I.SENTRY_SDK_SOURCE||e_();Tl(n,"browser",["browser"],r),super(n),n.sendClientReports&&I.document&&I.document.addEventListener("visibilitychange",()=>{I.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return f_(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return p_(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){G&&y.warn("SDK not enabled, will not capture user feedback.");return}const n=__(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const Gi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,b_=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Gn=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s||0),(o||s===void 0)&&(s=t.value,t.delta=o,t.rating=b_(t.value,n),e(t)))}},N=P,E_=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,wr=(e=!0)=>{const t=N.performance&&N.performance.getEntriesByType&&N.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Ir=()=>{const e=wr();return e&&e.activationStart||0},Vn=(e,t)=>{const n=wr();let r="navigate";return n&&(N.document&&N.document.prerendering||Ir()>0?r="prerender":N.document&&N.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:E_(),navigationType:r}},dn=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Yn=e=>{const t=n=>{(n.type==="pagehide"||N.document&&N.document.visibilityState==="hidden")&&e(n)};N.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Xs=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let tr=-1;const v_=()=>N.document.visibilityState==="hidden"&&!N.document.prerendering?0:1/0,xs=e=>{N.document.visibilityState==="hidden"&&tr>-1&&(tr=e.type==="visibilitychange"?e.timeStamp:0,I_())},w_=()=>{addEventListener("visibilitychange",xs,!0),addEventListener("prerenderingchange",xs,!0)},I_=()=>{removeEventListener("visibilitychange",xs,!0),removeEventListener("prerenderingchange",xs,!0)},Ks=()=>(N.document&&tr<0&&(tr=v_(),w_()),{get firstHiddenTime(){return tr}}),Tr=e=>{N.document&&N.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},T_=[1800,3e3],k_=(e,t={})=>{Tr(()=>{const n=Ks(),r=Vn("FCP");let s;const i=dn("paint",a=>{a.forEach(c=>{c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-
21Ir(),0),r.entries.push(c),s(!0)))})});i&&(s=Gn(e,r,T_,t.reportAllChanges))})},C_=[.1,.25],x_=(e,t={})=>{k_(Xs(()=>{const n=Vn("CLS",0);let r,s=0,o=[];const i=c=>{c.forEach(u=>{if(!u.hadRecentInput){const d=o[0],l=o[o.length-1];s&&d&&l&&u.startTime-l.startTime<1e3&&u.startTime-d.startTime<5e3?(s+=u.value,o.push(u)):(s=u.value,o=[u])}}),s>n.value&&(n.value=s,n.entries=o,r())},a=dn("layout-shift",i);a&&(r=Gn(e,n,C_,t.reportAllChanges),Yn(()=>{i(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},R_=[100,300],M_=(e,t={})=>{Tr(()=>{const n=Ks(),r=Vn("FID");let s;const o=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),s(!0))},i=c=>{c.forEach(o)},a=dn("first-input",i);s=Gn(e,r,R_,t.reportAllChanges),a&&Yn(Xs(()=>{i(a.takeRecords()),a.disconnect()}))})};let zl=0,yo=1/0,Wr=0;const A_=e=>{e.forEach(t=>{t.interactionId&&(yo=Math.min(yo,t.interactionId),Wr=Math.max(Wr,t.interactionId),zl=Wr?(Wr-yo)/7+1:0)})};let ni;const O_=()=>ni?zl:performance.interactionCount||0,N_=()=>{"interactionCount"in performance||ni||(ni=dn("event",A_,{type:"event",buffered:!0,durationThreshold:0}))},at=[],So=new Map,D_=40;let L_=0;const P_=()=>O_()-L_,F_=()=>{const e=Math.min(at.length-1,Math.floor(P_()/50));return at[e]},bo=10,$_=[],U_=e=>{if($_.forEach(r=>r(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=at[at.length-1],n=So.get(e.interactionId);if(n||at.length<bo||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};So.set(r.id,r),at.push(r)}at.sort((r,s)=>s.latency-r.latency),at.length>bo&&at.splice(bo).forEach(r=>So.delete(r.id))}},jl=e=>{const t=N.requestIdleCallback||N.setTimeout;let n=-1;return e=Xs(e),N.document&&N.document.visibilityState==="hidden"?e():(n=t(e),Yn(e)),n},B_=[200,500],H_=(e,t={})=>{"PerformanceEventTiming"in N&&"interactionId"in PerformanceEventTiming.prototype&&Tr(()=>{N_();const n=Vn("INP");let r;const s=i=>{jl(()=>{i.forEach(U_);const a=F_();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())})},o=dn("event",s,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:D_});r=Gn(e,n,B_,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Yn(()=>{s(o.takeRecords()),r(!0)}))})},W_=[2500,4e3],lc={},z_=(e,t={})=>{Tr(()=>{const n=Ks(),r=Vn("LCP");let s;const o=a=>{t.reportAllChanges||(a=a.slice(-1)),a.forEach(c=>{c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Ir(),0),r.entries=[c],s())})},i=dn("largest-contentful-paint",o);if(i){s=Gn(e,r,W_,t.reportAllChanges);const a=Xs(()=>{lc[r.id]||(o(i.takeRecords()),i.disconnect(),lc[r.id]=!0,s(!0))});["keydown","click"].forEach(c=>{N.document&&addEventListener(c,()=>jl(a),{once:!0,capture:!0})}),Yn(a)}})},j_=[800,1800],ri=e=>{N.document&&N.document.prerendering?Tr(()=>ri(e)):N.document&&N.document.readyState!=="complete"?addEventListener("load",()=>ri(e),!0):setTimeout(e,0)},q_=(e,t={})=>{const n=Vn("TTFB"),r=Gn(e,n,j_,t.reportAllChanges);ri(()=>
21{const s=wr();s&&(n.value=Math.max(s.responseStart-Ir(),0),n.entries=[s],r(!0))})},nr={},Rs={};let ql,Gl,Vl,Yl,Xl;function Vi(e,t=!1){return kr("cls",e,V_,ql,t)}function Kl(e,t=!1){return kr("lcp",e,X_,Vl,t)}function Jl(e){return kr("fid",e,Y_,Gl)}function G_(e){return kr("ttfb",e,K_,Yl)}function Zl(e){return kr("inp",e,J_,Xl)}function Dn(e,t){return Ql(e,t),Rs[e]||(Z_(e),Rs[e]=!0),ed(e,t)}function Xn(e,t){const n=nr[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(s){Gi&&y.error(`Error while triggering instrumentation handler. 22Type: ${e} 23Name: ${dt(r)} 24Error:`,s)}}function V_(){return x_(e=>{Xn("cls",{metric:e}),ql=e},{reportAllChanges:!0})}function Y_(){return M_(e=>{Xn("fid",{metric:e}),Gl=e})}function X_(){return z_(e=>{Xn("lcp",{metric:e}),Vl=e},{reportAllChanges:!0})}function K_(){return q_(e=>{Xn("ttfb",{metric:e}),Yl=e})}function J_(){return H_(e=>{Xn("inp",{metric:e}),Xl=e})}function kr(e,t,n,r,s=!1){Ql(e,t);let o;return Rs[e]||(o=n(),Rs[e]=!0),r&&t({metric:r}),ed(e,t,s?o:void 0)}function Z_(e){const t={};e==="event"&&(t.durationThreshold=0),dn(e,n=>{Xn(e,{entries:n})},t)}function Ql(e,t){nr[e]=nr[e]||[],nr[e].push(t)}function ed(e,t,n){return()=>{n&&n();const r=nr[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function Q_(e){return"duration"in e}function Eo(e){return typeof e=="number"&&isFinite(e)}function gt(e,t,n,{...r}){const s=H(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),On(e,()=>{const o=Qe({startTime:t,...r});return o&&o.end(n),o})}function td(e){const t=x();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:o}=e,{release:i,environment:a}=t.getOptions(),c=t.getIntegrationByName("Replay"),u=c&&c.getReplayId(),d=W(),l=d.getUser(),f=l!==void 0?l.email||l.id||l.ip_address:void 0;let p;try{p=d.getScopeData().contexts.profile.profile_id}catch{}const h={release:i,environment:a,user:f||void 0,profile_id:p||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":N.navigator&&N.navigator.userAgent,...s};return Qe({name:n,attributes:h,startTime:o,experimental:{standalone:!0}})}function Yi(){return N&&N.addEventListener&&N.performance}function _e(e){return e/1e3}function nd(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function ey(){let e=0,t,n;if(!ny())return;let r=!1;function s(){r||(r=!0,n&&ty(e,t,n),o())}const o=Vi(({metric:i})=>{const a=i.entries[i.entries.length-1];a&&(e=i.value,t=a)},!0);Yn(()=>{s()}),setTimeout(()=>{const i=x();if(!i)return;const a=i.on("startNavigationSpan",()=>{s(),a&&a()}),c=de(),u=c&&he(c),d=u&&H(u);d&&d.op==="pageload"&&(n=u.spanContext().spanId)},0)}function ty(e,t,n){Gi&&y.log(`Sending CLS span (${e})`);const r=_e((Ie||0)+(t&&t.startTime||0)),s=W().getScopeData().transactionName,o=t?pt(t.sources[0]&&t.sources[0].node):"Layout shift",i=ge({[Z]:"auto.http.browser.cls",[Me]:"ui.webvital.cls",[Ri]:t&&t.duration||0,"sentry.pageload.span_id":n}),a=td({name:o,transaction:s,attributes:i,startTime:r});a&&(a.addEvent("cls",{[js]:"",[qs]:e}),a.end(r))}function ny(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const ry=2147483647;let dc=0,ve={},Oe,rr;function sy({recordClsStandaloneSpans:e}){const t=Yi();if(t&&Ie){t.mark&&N.performance.mark("sentry-tracing-init");const n=ly(),r=uy(),s=dy(),o=e?ey():cy();return()=>{n(),r(),s(),o&&o()}}return()=>{}}function oy(){Dn("longtask",({entries:e})=>{const t=de();if(!t)return;const{op:n,start_timestamp:r}=H(t);for(const s of e){const o=_e(Ie+s.startTime),i=_e(s.duration);n==="navigation"&&r&&o<r||gt(t,o,o+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Z]:"auto.ui.browser.metrics"}})}})}function iy(){new PerformanceObserver(t=>{const n=de();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=_e(Ie+r.startTime),{start_timestamp:o,op:i}=H(n);if(i==="navigation"&&o&&s<o)continue;const a=_e(r.duration),c={[Z]:"auto.ui.browser.metrics"}
24,u=r.scripts[0],{invoker:d,invokerType:l,sourceURL:f,sourceFunctionName:p,sourceCharPosition:h}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=l,f&&(c["code.filepath"]=f),p&&(c["code.function"]=p),h!==-1&&(c["browser.script.source_char_position"]=h),gt(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function ay(){Dn("event",({entries:e})=>{const t=de();if(t){for(const n of e)if(n.name==="click"){const r=_e(Ie+n.startTime),s=_e(n.duration),o={name:pt(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Z]:"auto.ui.browser.metrics"}},i=Lu(n.target);i&&(o.attributes["ui.component_name"]=i),gt(t,r,r+s,o)}}})}function cy(){return Vi(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ve.cls={value:e.value,unit:""},rr=t)},!0)}function uy(){return Kl(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ve.lcp={value:e.value,unit:"millisecond"},Oe=t)},!0)}function ly(){return Jl(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=_e(Ie),r=_e(t.startTime);ve.fid={value:e.value,unit:"millisecond"},ve["mark.fid"]={value:n+r,unit:"second"}})}function dy(){return G_(({metric:e})=>{e.entries[e.entries.length-1]&&(ve.ttfb={value:e.value,unit:"millisecond"})})}function fy(e,t){const n=Yi();if(!n||!n.getEntries||!Ie)return;const r=_e(Ie),s=n.getEntries(),{op:o,start_timestamp:i}=H(e);if(s.slice(dc).forEach(a=>{const c=_e(a.startTime),u=_e(Math.max(0,a.duration));if(!(o==="navigation"&&i&&r+c<i))switch(a.entryType){case"navigation":{hy(e,a,r);break}case"mark":case"paint":case"measure":{py(e,a,c,u,r);const d=Ks(),l=a.startTime<d.firstHiddenTime;a.name==="first-paint"&&l&&(ve.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&l&&(ve.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{_y(e,a,a.name,c,u,r);break}}}),dc=Math.max(s.length-1,0),yy(e),o==="pageload"){by(ve);const a=ve["mark.fid"];a&&ve.fid&&(gt(e,a.value,a.value+_e(ve.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Z]:"auto.ui.browser.metrics"}}),delete ve["mark.fid"]),(!("fcp"in ve)||!t.recordClsOnPageloadSpan)&&delete ve.cls,Object.entries(ve).forEach(([c,u])=>{ah(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",Ir()),Sy(e)}Oe=void 0,rr=void 0,ve={}}function py(e,t,n,r,s){const o=wr(!1),i=_e(o?o.requestStart:0),a=s+Math.max(n,i),c=s+n,u=c+r,d={[Z]:"auto.resource.browser.metrics"};return a!==c&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=a),gt(e,a,u,{name:t.name,op:t.entryType,attributes:d}),a}function hy(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{zr(e,t,r,n)}),zr(e,t,"secureConnection",n,"TLS/SSL"),zr(e,t,"fetch",n,"cache"),zr(e,t,"domainLookup",n,"DNS"),gy(e,t,n)}function zr(e,t,n,r,s=n){const o=my(n),i=t[o],a=t[`${n}Start`];!a||!i||gt(e,r+_e(a),r+_e(i),{op:`browser.${s}`,name:t.name,attributes:{[Z]:"auto.ui.browser.metrics"}})}function my(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function gy(e,t,n){const r=n+_e(t.requestStart),s=n+_e(t.responseEnd),o=n+_e(t.responseStart);t.responseEnd&&(gt(e,r,s,{op:"browser.request",name:t.name,attributes:{[Z]:"auto.ui.browser.metrics"}}),gt(e,o,s,{op:"browser.response",name:t.name,attributes:{[Z]:"auto.ui.browser.metrics"}}))}function _y(e,t,n,r,s,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const i=rn(n),a={[Z]:"auto.resource.browser.metrics"};vo(a,t,"transferSize","http.response_transfer_size"),vo(a,t,"encodedBodySize","http.response_content_length"),vo(a,t,"decodedBodySize","http.decoded_response_content_length");const c=t.deliveryType;c!=null&&(a["http.response_delivery_type"]=c);const u=t.renderBlockingStatus;u&&(a["resource.render_blocking_status"]=u),i.protocol&&(a["url.scheme"]=i.protocol.split(":").pop()),i.host&&(a["server.address"]=i.host),a["url.same_origin"]=n.includes(N.location.origin);const{name:d,version:l}=nd(t.nextHopProtocol);a["network.protocol.name"]=d,a["network.protocol.version"]=l;const f=o+r,p=f+s;gt(e,f,p,{name:n.replace(N.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})}function yy(e){const t=N.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Eo(n.rtt)&&(ve["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Eo(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Eo(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function Sy(e){Oe&&(Oe.element&&e.setAttribute("lcp.element",pt(Oe.element)),Oe.id&&e.setAttribute("lcp.id",Oe.id),Oe.url&&e.setAttribute("lcp.url",Oe.url.trim().slice(0,200)),Oe.loadTime!=null&&e.setAttribute("lcp.loadTime",Oe.loadTime),Oe.renderTime!=null&&e.setAttribute("lcp.renderTime",Oe.renderTime),e.setAttribute("lcp.size",Oe.size)),rr&&rr.sources&&rr.sources.forEac
24h((t,n)=>e.setAttribute(`cls.source.${n+1}`,pt(t.node)))}function vo(e,t,n,r){const s=t[n];s!=null&&s<ry&&(e[r]=s)}function by(e){const t=wr(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const Ey=1e3;let fc,si,oi;function rd(e){Wt("dom",e),zt("dom",vy)}function vy(){if(!N.document)return;const e=He.bind(null,"dom"),t=pc(e,!0);N.document.addEventListener("click",t,!1),N.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=N[n],o=s&&s.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(xe(o,"addEventListener",function(i){return function(a,c,u){if(a==="click"||a=="keypress")try{const d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=d[a]=d[a]||{refCount:0};if(!l.handler){const f=pc(e);l.handler=f,i.call(this,a,f,u)}l.refCount++}catch{}return i.call(this,a,c,u)}}),xe(o,"removeEventListener",function(i){return function(a,c,u){if(a==="click"||a=="keypress")try{const d=this.__sentry_instrumentation_handlers__||{},l=d[a];l&&(l.refCount--,l.refCount<=0&&(i.call(this,a,l.handler,u),l.handler=void 0,delete d[a]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,u)}}))})}function wy(e){if(e.type!==si)return!1;try{if(!e.target||e.target._sentryId!==oi)return!1}catch{}return!0}function Iy(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function pc(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Ty(n);if(Iy(n.type,r))return;Ne(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ne(r,"_sentryId",Re());
24const s=n.type==="keypress"?"input":n.type;wy(n)||(e({event:n,name:s,global:t}),si=n.type,oi=r?r._sentryId:void 0),clearTimeout(fc),fc=N.setTimeout(()=>{oi=void 0,si=void 0},Ey)}}function Ty(e){try{return e.target}catch{return null}}let jr;function Js(e){const t="history";Wt(t,e),zt(t,ky)}function ky(){if(!r_())return;const e=N.onpopstate;N.onpopstate=function(...n){const r=N.location.href,s=jr;if(jr=r,He("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=jr,i=String(s);jr=i,He("history",{from:o,to:i})}return n.apply(this,r)}}xe(N.history,"pushState",t),xe(N.history,"replaceState",t)}const ss={};function Xi(e){const t=ss[e];if(t)return t;let n=N[e];if(Jo(n))return ss[e]=n.bind(N);const r=N.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){Gi&&y.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(ss[e]=n.bind(N))}function hc(e){ss[e]=void 0}function Ln(...e){return Xi("setTimeout")(...e)}const xt="__sentry_xhr_v3__";function Ki(e){Wt("xhr",e),zt("xhr",Cy)}function Cy(){if(!N.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=ie()*1e3,i=ut(r[0])?r[0].toUpperCase():void 0,a=xy(r[1]);if(!i||!a)return t.apply(n,r);n[xt]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[xt];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:ie()*1e3,startTimestamp:o,xhr:n,virtualError:s};He("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){const[f,p]=l,h=d[xt];return h&&ut(f)&&ut(p)&&(h.request_headers[f.toLowerCase()]=p),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[xt];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:ie()*1e3,xhr:n};return He("xhr",o),t.apply(n,r)}})}function xy(e){if(ut(e))return e;try{return e.toString()}catch{}}const wo=[],os=new Map;function Ry(){if(Yi()&&Ie){const t=My();return()=>{t()}}return()=>{}}const mc={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 My(){return Zl(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(h=>h.duration===e.value&&mc[h.name]);if(!t)return;const{interactionId:n}=t,r=mc[t.name],s=_e(Ie+t.startTime),o=_e(e.value),i=de(),a=i?he(i):void 0,u=(n!=null?os.get(n):void 0)||a,d=u?H(u).description:W().getScopeData().transactionName,l=pt(t.target),f=ge({[Z]:"auto.http.browser.inp",[Me]:`ui.interaction.${r}`,[Ri]:t.duration}),p=td({name:l,transaction:d,attributes:f,startTime:s});p&&(p.addEvent("inp",{[js]:"millisecond",[qs]:e.value}),p.end(s+o))})}function Ay(e){const t=({entries:n})=>{const r=de(),s=r&&he(r);n.forEach(o=>{if(!Q_(o)||!s)return;const i=o.interactionId;if(i!=null&&!os.has(i)){if(wo.length>10){const a=wo.shift();os.delete(a)}wo.push(i),os.set(i,s)}})};Dn("event",t),Dn("first-input",t)}function sd(e,t=Xi("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return hc("fetch"),bs("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return hc("fetch"),n-=i,r--,bs(c)}}return om(e,s)}const Oy=10,Ny=20,Dy=30,Ly=40,Py=50;function Pn(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?et:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Fy=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,$y=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Uy=/\((\S*)(?::(\d+))(?::(\d+))\)/,By=e=>{const t=Fy.exec(e);if(t){const[,r,s,o]=t;return Pn(r,et,+s,+o)}const n=$y.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=Uy.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=od(n[1]||et,n[2]);return Pn(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Hy=[Dy,By],Wy=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,zy=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,jy=e=>{const t=Wy.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=zy.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||et;return[s,r]=od(s,r),Pn(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},qy=[Py,jy],Gy=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Vy=e=>{const t=Gy.exec(e);return t?Pn(t[2],t[1]||et,+t[3],t[4]?+t[4]:void 0):void 0},HT=[Ly,Vy],Yy=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Xy=e=>{const t=Yy.exec(e);return t?Pn(t[2],t[3]||et,+t[1]):void 0},WT=[Oy,Xy],Ky=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Jy=e=>{const t=Ky.exec(e);return t?Pn(t[5],t[3]||t[4]||et,+t[1],+t[2]):void 0},zT=[Ny,Jy],Zy=[Hy,qy],Qy=Ru(...Zy),od=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:et,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},qr=1024,eS="Breadcrumbs",tS=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:eS,setup(n){t.console&&Ml(oS(n)),t.dom&&rd(sS(n,t.dom)),t.xhr&&Ki(iS(n)),t.fetch&&Wi(aS(n)),t.history&&Js(cS(n)),t.sentry&&n.on("beforeSendEvent",rS(n))}}}),nS=tS;function rS(e){return function(n){x()===e&&tt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:wt(n)},{event:n})}}function sS(e,t){return function(r){if(x()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>qr&&(G&&y.warn(`\`dom.maxStringLength\` cannot exceed ${qr}, but a value of ${a} was configured. Sentry will use ${qr} instead.`),a=qr),typeof i=="string"&&(i=[i]);try{const u=r.event,d=uS(u)?u.target:u;s=pt(d,{keyAttrs:i,maxStringLength:a}),o=Lu(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),tt(c,{event:r.event,name:r.name,global:r.global})}}function oS(e){return function(n){if(x()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Ui(n.level),message:Ss(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Ss(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;tt(r,{input:n.args,level:n.level})}}function iS(e){return function(n){if(x()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[xt];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,d={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},f=Fl(c);tt({category:"xhr",data:d,type:"http",level:f},l)}}function aS(e){return function(n){if(x()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;
24if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};tt({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=Fl(i.status_code);tt({category:"fetch",data:i,type:"http",level:c},a)}}}function cS(e){return function(n){if(x()!==e)return;let r=n.from,s=n.to;const o=rn(I.location.href);let i=r?rn(r):void 0;const a=rn(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),tt({category:"navigation",data:{from:r,to:s}})}}function uS(e){return!!e&&!!e.target}const lS=["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"],dS="BrowserApiErrors",fS=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:dS,setupOnce(){t.setTimeout&&xe(I,"setTimeout",gc),t.setInterval&&xe(I,"setInterval",gc),t.requestAnimationFrame&&xe(I,"requestAnimationFrame",hS),t.XMLHttpRequest&&"XMLHttpRequest"in I&&xe(XMLHttpRequest.prototype,"send",mS);const n=t.eventTarget;n&&(Array.isArray(n)?n:lS).forEach(gS)}}}),pS=fS;function gc(e){return function(...t){const n=t[0];return t[0]=Nn(n,{mechanism:{data:{function:dt(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function hS(e){return function(t){return e.apply(this,[Nn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:dt(e)},handled:!1,type:"instrument"}})])}}function mS(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&xe(n,s,function(o){const i={mechanism:{data:{function:s,handler:dt(o)},handled:!1,type:"instrument"}},a=ki(o);return a&&(i.mechanism.data.handler=dt(a)),Nn(o,i)})}),e.apply(this,t)}}function gS(e){const n=I[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(xe(r,"addEventListener",function(s){return function(o,i,a){try{_S(i)&&(i.handleEvent=Nn(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:dt(i),target:e},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[o,Nn(i,{mechanism:{data:{function:"addEventListener",handler:dt(i),target:e},handled:!1,type:"instrument"}}),a])}}),xe(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function _S(e){return typeof e.handleEvent=="function"}const yS=()=>({name:"BrowserSession",setupOnce(){if(typeof I.document>"u"){G&&y.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Yo({ignoreDuration:!0}),Ga(),Js(({from:e,to:t})=>{e!==void 0&&e!==t&&(Yo({ignoreDuration:!0}),Ga())})}}),SS="GlobalHandlers",bS=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:SS,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(vS(n),_c("onerror")),t.onunhandledrejection&&(wS(n),_c("onunhandledrejection"))}}}),ES=bS;function vS(e){Mu(t=>{const{stackParser:n,attachStacktrace:r}=id();if(x()!==e||Hl())return;const{msg:s,url:o,line:i,column:a,error:c}=t,u=kS(qi(n,c||s,void 0,r,!1),o,i,a);u.level="error",br(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function wS(e){Au(t=>{const{stackParser:n,attachStacktrace:r}=id();if(x()!==e||Hl())return;const s=IS(t),o=Ii(s)?TS(s):qi(n,s,void 0,r,!0);o.level="error",br(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function IS(e){if(Ii(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 TS(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function kS(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,d=n,l=ut(t)&&t.length>0?t:Ti();
24return c.length===0&&c.push({colno:u,filename:l,function:et,in_app:!0,lineno:d}),e}function _c(e){G&&y.log(`Global Handler attached: ${e}`)}function id(){const e=x();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const CS=()=>({name:"HttpContext",preprocessEvent(e){if(!I.navigator&&!I.location&&!I.document)return;const t=e.request&&e.request.url||I.location&&I.location.href,{referrer:n}=I.document||{},{userAgent:r}=I.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}}),xS="cause",RS=5,MS="LinkedErrors",AS=((e={})=>{const t=e.limit||RS,n=e.key||xS;return{name:MS,preprocessEvent(r,s,o){const i=o.getOptions();Am(zi,i.stackParser,i.maxValueLength,n,t,r,s)}}}),OS=AS;function NS(e){const t=[bm(),gm(),pS(),nS(),ES(),OS(),jm(),CS()];return e.autoSessionTracking!==!1&&t.push(yS()),t}function DS(e={}){const t={defaultIntegrations:NS(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:I.SENTRY_RELEASE&&I.SENTRY_RELEASE.id?I.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function LS(){const e=typeof I.window<"u"&&I;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=I.location&&I.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&I===I.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function PS(e={}){const t=DS(e);if(!t.skipBrowserExtensionCheck&&LS()){yt(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}G&&($l()||y.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:Vf(t.stackParser||Qy),integrations:Vh(t),transport:t.transport||sd};return Qh(S_,n)}function yc(e={}){if(!I.document){G&&y.error("Global document not defined in showReportDialog call");return}const t=W(),n=t.getClient(),r=n&&n.getDsn();if(!r){G&&y.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=Uh();a&&(e.eventId=a)}const s=I.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=qh(r,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{I.removeEventListener("message",a)}};I.addEventListener("message",a)}const i=I.document.head||I.document.body;i?i.appendChild(s):G&&y.error("Not injecting report dialog. No injection point found in HTML")}function jT(){}function qT(e){e()}function GT(e){const t=x();t&&t.captureUserFeedback(e)}const FS={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},Sc=I;async function $S(e,t){const n=FS[e],r=Sc.Sentry=Sc.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const s=r[e];if(typeof s=="function"&&!("_isShim"in s))return s;const o=US(n),i=I.document.createElement("script");i.src=o,i.crossOrigin="anonymous",i.referrerPolicy="origin",t&&i.setAttribute("nonce",t);const a=new Promise((l,f)=>{i.addEventListener("load",()=>l()),i.addEventListener("error",f)}),c=I.document.currentScript,u=I.document.body||I.document.head||c&&c.parentElement;if(u)u.appendChild(i);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}const d=r[e];if(typeof d!="function")throw new Error(`Could not load integration: ${e}`);return d}function US(e){const t=x(),n=t&&t.getOptions(),r=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${Mt}/${e}.min.js`,r).toString()}
24const BS=P,HS="ReportingObserver",bc=new WeakMap,WS=((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(bc.has(x()))for(const s of r)We(o=>{o.setExtra("url",s.url);const i=`ReportingObserver [${s.type}]`;let a="No details available";if(s.body){const c={};for(const u in s.body)c[u]=s.body[u];if(o.setExtra("body",c),s.type==="crash"){const u=s.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=s.body.message||a}Vo(`${i}: ${a}`)})}return{name:HS,setupOnce(){if(!Yg())return;new BS.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){bc.set(r,!0)}}}),VT=WS,zS="HttpClient",jS=((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:zS,setup(n){ZS(n,t),QS(n,t)}}}),YT=jS;function qS(e,t,n,r,s){if(cd(e,n.status,n.url)){const o=eb(t,r);let i,a,c,u;ld()&&([i,c]=Ec("Cookie",o),[a,u]=Ec("Set-Cookie",n));const d=ud({url:o.url,method:o.method,status:n.status,requestHeaders:i,responseHeaders:a,requestCookies:c,responseCookies:u,error:s});br(d)}}function Ec(e,t){const n=YS(t.headers);let r;try{const s=n[e]||n[e.toLowerCase()]||void 0;s&&(r=ad(s))}catch{}return[n,r]}function GS(e,t,n,r,s){if(cd(e,t.status,t.responseURL)){let o,i,a;if(ld()){try{const u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(i=ad(u))}catch{}try{a=XS(t)}catch{}o=r}const c=ud({url:t.responseURL,method:n,status:t.status,requestHeaders:o,responseHeaders:a,responseCookies:i,error:s});br(c)}}function VS(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function ad(e){return e.split("; ").reduce((t,n)=>{const[r,s]=n.split("=");return r&&s&&(t[r]=s),t},{})}function YS(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function XS(e){const t=e.getAllResponseHeaders();return t?t.split(`\r 25`).reduce((n,r)=>{const[s,o]=r.split(": ");return s&&o&&(n[s]=o),n},{}):{}}function KS(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function JS(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function ZS(e,t){Ul()&&Wi(n=>{if(x()!==e)return;const{response:r,args:s,error:o,virtualError:i}=n,[a,c]=s;r&&qS(t,a,r,c,o||i)},!1)}function QS(e,t){"XMLHttpRequest"in P&&Ki(n=>{if(x()!==e)return;const{error:r,virtualError:s}=n,o=n.xhr,i=o[xt];if(!i)return;const{method:a,request_headers:c}=i;try{GS(t,o,a,c,r||s)}catch(u){G&&y.warn("Error while extracting response event form XHR response",u)}})}function cd(e,t,n){return JS(e.failedRequestStatusCodes,t)&&KS(e.failedRequestTargets,n)&&!Il(n,x())}function ud(e){const t=x(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,s=`HTTP Client Error with status code: ${e.status}`,o={message:s,exception:{values:[{type:"Error",value:s,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:VS(e.responseHeaders)}}};return Ft(o,{type:"http.client",handled:!1}),o}function eb(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function ld(){const e=x();return e?!!e.getOptions().sendDefaultPii:!1}const Io=P,tb=7,nb="ContextLines",rb=((e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:tb;return{name:nb,processEvent(n){return sb(n,t)}}}),XT=rb;function sb(e,t){const n=Io.document,r=Io.location&&Lm(Io.location.href);if(!n||!r)return e;const s=e.exception&&e.exception.values;if(!s||!s.length)return e;const o=n.documentElement.innerHTML;if(!o)return e;const i=["<!DOCTYPE html>","<html>",...o.split(` 26`),"</html>"];return s.forEach(a=>{const c=a.stacktrace;c&&c.frames&&(c.frames=c.frames.map(u=>ob(u,i,r,t)))}),e}function ob(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||cp(t,e,r),e}const oe=P,Ji="sentryReplaySession",ib="replay_event",Zi="Unable to send Replay",ab=3e5,cb=9e5,ub=5e3,lb=5500,db=6e4,fb=5e3,pb=3,vc=15e4,Gr=5e3,hb=3e3,mb=300,Qi=2e7,gb=4999,_b=15e3,wc=36e5;function ii(e,t){return e??t()}function cr(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}var Se;(function(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"})(Se||(Se={}));
26function yb(e){return e.nodeType===e.ELEMENT_NODE}function sr(e){const t=cr([e,"optionalAccess",n=>n.host]);return cr([t,"optionalAccess",n=>n.shadowRoot])===e}function or(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Sb(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 bb(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Ms(e){try{const t=e.rules||e.cssRules;return t?Sb(Array.from(t,dd).join("")):null}catch{return null}}function Eb(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function dd(e){let t;if(wb(e))try{t=Ms(e.styleSheet)||bb(e)}catch{}else if(Ib(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=Eb(e)),r&&(n=vb(n)),r||s)return n}return t||e.cssText}function vb(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function wb(e){return"styleSheet"in e}function Ib(e){return"selectorText"in e}class fd{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=cr([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return ii(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);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){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Tb(){return new fd}function Zs({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 ur({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function Fn(e){return e.toLowerCase()}function ai(e){return e.toUpperCase()}const Ic="__rrweb_original__";function kb(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const o=t.getImageData,i=Ic in o?o[Ic]:o;if(new Uint32Array(i.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function ea(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Fn(t):null}function As(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function pd(e,t){let n;try{n=new URL(e,ii(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(r);return ii(cr([s,"optionalAccess",o=>o[1]]),()=>null)}const Tc={};function hd(e){const t=Tc[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return Tc[e]=r.bind(window)}function ci(...e){return hd("setTimeout")(...e)}function md(...e){return hd("clearTimeout")(...e)}function gd(e){try{return e.contentDocument}catch{}}let Cb=1;const xb=new RegExp("[^a-z0-9-_:]"),lr=-2;function ta(){return Cb++}function Rb(e){if(e instanceof HTMLFormElement)return"form";const t=Fn(e.tagName);return xb.test(t)?"div":t}function Mb(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}
26let _n,kc;const Ab=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ob=/^(?:[a-z+]+:)?\/\//i,Nb=/^www\..*/i,Db=/^(data:)([^,]*),(.*)/i;function Os(e,t){return(e||"").replace(Ab,(n,r,s,o,i,a)=>{const c=s||i||a,u=r||o||"";if(!c)return n;if(Ob.test(c)||Nb.test(c))return`url(${u}${c}${u})`;if(Db.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${Mb(t)+c}${u})`;const d=t.split("/"),l=c.split("/");d.pop();for(const f of l)f!=="."&&(f===".."?d.pop():d.push(f));return`url(${u}${d.join("/")}${u})`})}const Lb=/^[^ \t\n\r\u000c]+/,Pb=/^[, \t\n\r\u000c]+/;function Fb(e,t){if(t.trim()==="")return t;let n=0;function r(o){let i;const a=o.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}const s=[];for(;r(Pb),!(n>=t.length);){let o=r(Lb);if(o.slice(-1)===",")o=En(e,o.substring(0,o.length-1)),s.push(o);else{let i="";o=En(e,o);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((o+i).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((o+i).trim());break}else c==="("&&(a=!0);i+=c,n+=1}}}return s.join(", ")}const Cc=new WeakMap;function En(e,t){return!t||t.trim()===""?t:Qs(e,t)}function $b(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Qs(e,t){let n=Cc.get(e);if(n||(n=e.createElement("a"),Cc.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function _d(e,t,n,r,s,o){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?En(e,r):n==="srcset"?Fb(e,r):n==="style"?Os(r,Qs(e)):t==="object"&&n==="data"?En(e,r):typeof o=="function"?o(n,r,s):r)}function yd(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Ub(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const o=e.classList[s];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function Bb(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Qt(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Qt(e.parentNode,t,n,r+1)}function vn(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Bb(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function $n(e,t,n,r,s,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const u=i.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(o){if(c=Qt(i,vn(r,s)),c<0)return!0;a=Qt(i,vn(t,n),c>=0?c:1/0)}else{if(a=Qt(i,vn(t,n)),a<0)return!1;c=Qt(i,vn(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!o}catch{}return!!o}function Hb(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=ci(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{md(a),s=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return ci(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Wb(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const o=ci(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{md(o),r=!0,t()})}function zb(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:g,maskInputFn:S,dataURLOptions:_={},inlineImages:v,recordCanvas:O,keepIframeSrcFn:M,newlyAddedElement:k=!1}=t,E=jb(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Se.Document,childNodes:[],compatMode:e.compatMode}:{type:Se.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Se.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return Gb(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:S,dataURLOptions:_,inlineImages:v,recordCanvas:O,keepIframeSrcFn:M,newlyAddedElement:k,rootId:E,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f});case e.TEXT_NODE:return qb(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,maskTextFn:g,maskInputOptions:h,maskInputFn:S,rootId:E});case e.CDATA_SECTION_NODE:return{type:Se.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:Se.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function jb(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function qb(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:d}=t,l=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0,g=l==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||cr([e,"access",_=>_.parentNode,"access",_=>_.sheet,"optionalAccess",_=>_.cssRules])&&(f=Ms(e.parentNode.sheet))}catch(_){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${_}`,e)}f=Os(f,Qs(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const S=$n(e,r,o,s,i,n);if(!p&&!h&&!g&&f&&S&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),g&&f&&(c.textarea||S)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),l==="OPTION"&&f){const _=Zs({type:null,tagName:l,maskInputOptions:c});f=ur({isMasked:$n(e,r,o,s,i,_),element:e,value:f,maskInputFn:u})}return{type:Se.Text,textContent:f||"",isStyle:p,rootId:d}}function Gb(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:g,maskTextClass:S,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:O}=t,M=Ub(e,r,s,o),k=Rb(e);let E={};const C=e.attributes.length;for(let m=0;m<C;m++){const b=e.attributes[m];b.name&&!yd(k,b.name,b.value)&&(E[b.name]=_d(n,k,Fn(b.name),b.value,e,c))}if(k==="link"&&i){const m=Array.from(n.styleSheets).find(T=>T.href===e.href);let b=null;m&&(b=Ms(m)),b&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=Os(b,m.href))}if(k==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const m=Ms(e.sheet);
26m&&(E._cssText=Os(m,Qs(n)))}if(k==="input"||k==="textarea"||k==="select"||k==="option"){const m=e,b=ea(m),T=As(m,ai(k),b),w=m.checked;if(b!=="submit"&&b!=="button"&&T){const B=$n(m,S,v,_,O,Zs({type:b,tagName:ai(k),maskInputOptions:a}));E.value=ur({isMasked:B,element:m,value:T,maskInputFn:u})}w&&(E.checked=w)}if(k==="option"&&(e.selected&&!a.select?E.selected=!0:delete E.selected),k==="canvas"&&f){if(e.__context==="2d")kb(e)||(E.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const m=e.toDataURL(d.type,d.quality),b=n.createElement("canvas");b.width=e.width,b.height=e.height;const T=b.toDataURL(d.type,d.quality);m!==T&&(E.rr_dataURL=m)}}if(k==="img"&&l){_n||(_n=n.createElement("canvas"),kc=_n.getContext("2d"));const m=e,b=m.currentSrc||m.getAttribute("src")||"<unknown-src>",T=m.crossOrigin,w=()=>{m.removeEventListener("load",w);try{_n.width=m.naturalWidth,_n.height=m.naturalHeight,kc.drawImage(m,0,0),E.rr_dataURL=_n.toDataURL(d.type,d.quality)}catch(B){if(m.crossOrigin!=="anonymous"){m.crossOrigin="anonymous",m.complete&&m.naturalWidth!==0?w():m.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${b}! Error: ${B}`)}m.crossOrigin==="anonymous"&&(T?E.crossOrigin=T:m.removeAttribute("crossorigin"))};m.complete&&m.naturalWidth!==0?w():m.addEventListener("load",w)}if((k==="audio"||k==="video")&&(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),M){const{width:m,height:b}=e.getBoundingClientRect();E={class:E.class,rr_width:`${m}px`,rr_height:`${b}px`}}k==="iframe"&&!p(E.src)&&(!M&&!gd(e)&&(E.rr_src=E.src),delete E.src);let R;try{customElements.get(k)&&(R=!0)}catch{}return{type:Se.Element,tagName:k,attributes:E,childNodes:[],isSVG:$b(e)||void 0,needBlock:M,rootId:g,isCustom:R}}function se(e){return e==null?"":e.toLowerCase()}function Vb(e,t){if(t.comment&&e.type===Se.Comment)return!0;if(e.type===Se.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"&&pd(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(se(e.attributes.name).match(/^msapplication-tile(image|color)$/)||se(e.attributes.name)==="application-name"||se(e.attributes.rel)==="icon"||se(e.attributes.rel)==="apple-touch-icon"||se(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&se(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(se(e.attributes.property).match(/^(og|twitter|fb):/)||se(e.attributes.name).match(/^(og|twitter):/)||se(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(se(e.attributes.name)==="robots"||se(e.attributes.name)==="googlebot"||se(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(se(e.attributes.name)==="author"||se(e.attributes.name)==="generator"||se(e.attributes.name)==="framework"||se(e.attributes.name)==="publisher"||se(e.attributes.name)==="progid"||se(e.attributes.property).match(/^article:/)||se(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(se(e.attributes.name)==="google-site-verification"||se(e.attributes.name)==="yandex-verification"||se(e.attributes.name)==="csrf-token"||se(e.attributes.name)==="p:domain_verify"||se(e.attributes.name)==="verify-v1"||se(e.attributes.name)==="verification"||se(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function wn(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:g,maskTextFn:S,maskInputFn:_,slimDOMOptions:v,dataURLOptions:O={},inlineImages:M=!1,recordCanvas:k=!1,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:R=5e3,onStylesheetLoad:m,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:w=!1}=t;let{preserveWhiteSpace:B=!0}=t;const V=zb(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:_,dataURLOptions:O,inlineImages:M,recordCanvas:k,keepIframeSrcFn:T,newlyAddedElement:w});if(!V)return console.warn(e,"not serialized"),null;let z;
26r.hasNode(e)?z=r.getId(e):Vb(V,v)||!B&&V.type===Se.Text&&!V.isStyle&&!V.textContent.replace(/^\s+|\s+$/gm,"").length?z=lr:z=ta();const A=Object.assign(V,{id:z});if(r.add(e,A),z===lr)return null;E&&E(e);let ae=!f;if(A.type===Se.Element){ae=ae&&!A.needBlock,delete A.needBlock;const F=e.shadowRoot;F&&or(F)&&(A.isShadowHost=!0)}if((A.type===Se.Document||A.type===Se.Element)&&ae){v.headWhitespace&&A.type===Se.Element&&A.tagName==="head"&&(B=!1);const F={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:_,slimDOMOptions:v,dataURLOptions:O,inlineImages:M,recordCanvas:k,preserveWhiteSpace:B,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:m,stylesheetLoadTimeout:b,keepIframeSrcFn:T};for(const ee of Array.from(e.childNodes)){const Te=wn(ee,F);Te&&A.childNodes.push(Te)}if(yb(e)&&e.shadowRoot)for(const ee of Array.from(e.shadowRoot.childNodes)){const Te=wn(ee,F);Te&&(or(e.shadowRoot)&&(Te.isShadow=!0),A.childNodes.push(Te))}}return e.parentNode&&sr(e.parentNode)&&or(e.parentNode)&&(A.isShadow=!0),A.type===Se.Element&&A.tagName==="iframe"&&Hb(e,()=>{const F=gd(e);if(F&&C){const ee=wn(F,{doc:F,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:_,slimDOMOptions:v,dataURLOptions:O,inlineImages:M,recordCanvas:k,preserveWhiteSpace:B,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:m,stylesheetLoadTimeout:b,keepIframeSrcFn:T});ee&&C(e,ee)}},R),A.type===Se.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&pd(A.attributes.href)==="css")&&Wb(e,()=>{if(m){const F=wn(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:_,slimDOMOptions:v,dataURLOptions:O,inlineImages:M,recordCanvas:k,preserveWhiteSpace:B,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:R,onStylesheetLoad:m,stylesheetLoadTimeout:b,keepIframeSrcFn:T});F&&m(e,F)}},b),A}function Yb(e,t){const{mirror:n=new fd,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:l=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:S,maskInputFn:_,slimDOM:v=!1,dataURLOptions:O,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:E,iframeLoadTimeout:C,onStylesheetLoad:R,stylesheetLoadTimeout:m,keepIframeSrcFn:b=()=>!1}=t||{};return wn(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,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:_,slimDOMOptions:v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:v===!1?{}:v,dataURLOptions:O,inlineImages:f,recordCanvas:p,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:E,iframeLoadTimeout:C,onStylesheetLoad:R,stylesheetLoadTimeout:m,keepIframeSrcFn:b,newlyAddedElement:!1})}function It(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}function Ce(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Sn=`Please stop import mirror directly. Instead of that,\r
27now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 28or you can use record.mirror to access the mirror instance during recording.`;let xc={map:{},getId(){return console.error(Sn),-1},getNode(){return console.error(Sn),null},removeNodeFromMap(){console.error(Sn)},has(){return console.error(Sn),!1},reset(){console.error(Sn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(xc=new Proxy(xc,{get(e,t,n){return t==="map"&&console.error(Sn),Reflect.get(e,t,n)}}));function dr(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();!s&&n.leading===!1&&(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(tE(r),r=null),s=i,e.apply(c,o)):!r&&n.trailing!==!1&&(r=eo(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,o)},a))}}function Sd(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(i){eo(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>Sd(e,t,o||{},!0)}function na(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let Ns=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ns=()=>new Date().getTime());function bd(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:It([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||It([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||It([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:It([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||It([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||It([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function Ed(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function vd(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function wd(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function De(e,t,n,r,s){if(!e)return!1;const o=wd(e);if(!o)return!1;const i=vn(t,n);if(!s){const u=r&&o.matches(r);return i(o)&&!u}const a=Qt(o,i);let c=-1;return a<0?!1:(r&&(c=Qt(o,vn(null,r))),a>-1&&c<0?!0:a<c)}function Xb(e,t){return t.getId(e)!==-1}function To(e,t){return t.getId(e)===lr}function Id(e,t){if(sr(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Id(e.parentNode,t):!0:!0}function ui(e){return!!e.changedTouches}function Kb(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 Td(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function kd(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function li(e){return!!It([e,"optionalAccess",t=>t.shadowRoot])}class Jb{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return s_(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 Cd(e){let t=null;return It([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Zb(e){let t=e,n;for(;n=Cd(t);)t=n;return t}function Qb(e){const t=e.ownerDocument;if(!t)return!1;const n=Zb(e);return t.contains(n)}function xd(e){const t=e.ownerDocument;return t?t.contains(e)||Qb(e):!1}const Rc={};function ra(e){const t=Rc[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return Rc[e]=r.bind(window)}function eE(...e){return ra("requestAnimationFrame")(...e)}
28function eo(...e){return ra("setTimeout")(...e)}function tE(...e){return ra("clearTimeout")(...e)}var j=(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))(j||{}),U=(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))(U||{}),ke=(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))(ke||{}),st=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(st||{}),Mc;(function(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"})(Mc||(Mc={}));var Ac;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(Ac||(Ac={}));function sa(e){try{return e.contentDocument}catch{}}function nE(e){try{return e.contentWindow}catch{}}function rE(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}function Oc(e){return"__ln"in e}class sE{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=rE([n,"optionalAccess",s=>s.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Oc(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Oc(t.nextSibling)&&t.nextSibling.__ln.previous){const 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){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Nc=(e,t)=>`${e}@${t}`;class oE{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new sE,s=c=>{let u=c,d=lr;for(;d===lr;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},o=c=>{if(!c.parentNode||!xd(c))return;const u=sr(c.parentNode)?this.mirror.getId(Cd(c)):this.mirror.getId(c.parentNode),d=s(c);if(u===-1||d===-1)return r.addNode(c);const l=wn(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.inl
28ineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{Td(f,this.mirror)&&!De(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),kd(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),li(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{De(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,p),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)}});l&&(t.push({parentId:u,nextId:d,node:l}),n.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Dc(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!Lc(this.droppedSet,c)&&!Dc(this.removes,c,this.mirror)||Lc(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const u=this.mirror.getId(i.value.parentNode),d=s(i.value);u!==-1&&d!==-1&&(c=i)}if(!c){let u=r.tail;for(;u;){const d=u;if(u=u.previous,d){const l=this.mirror.getId(d.value.parentNode);if(s(d.value)===-1)continue;if(l!==-1){c=d;break}else{const p=d.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(c.value)}const 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=>{const{attributes:u}=c;if(typeof u.style=="string"){const 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(!To(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!De(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:$n(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,wd(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const i=ea(n),a=n.tagName;s=As(n,a,i);const c=Zs({maskInputOptions:this.maskInputOptions,tagName:a,type:i}),u=$n(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=ur({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if(De(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let o=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!sa(n))r="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!yd(n.tagName,r)&&(o.attributes[r]=_d(this.doc,Fn(n.tagName),Fn(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==i.style.getPropertyValue(a)||u!==i.style.getPropertyPriority(a)?u===""?o.styleDiff[a]=c:o.styleDiff[a]=[c,u]:o._unchangedStyles[a]=[c,u]}for(const a of Array.from(i.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}
28case"childList":{if(De(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=sr(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);De(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||To(n,this.mirror)||!Xb(n,this.mirror)||(this.addedSet.has(n)?(di(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Id(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Nc(r,s)]?di(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:sr(t.target)&&or(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(To(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[Nc(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);De(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),li(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"].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 di(e,t){e.delete(t),t.childNodes.forEach(n=>di(e,n))}function Dc(e,t,n){return e.length===0?!1:iE(e,t,n)}function iE(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(o=>o.id===s))return!0;r=r.parentNode}return!1}function Lc(e,t){return e.size===0?!1:Rd(e,t)}function Rd(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Rd(e,n):!1}let ir;function aE(e){ir=e}function cE(){ir=void 0}const X=e=>ir?((...n)=>{try{return e(...n)}catch(r){if(ir&&ir(r)===!0)return()=>{};throw r}}):e;function Xe(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}const In=[];function Cr(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Md(e,t){const n=new oE;In.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=Xe([window,"optionalAccess",i=>i.Zone,"optionalAccess",i=>i.__symbol__,"optionalCall",i=>i("MutationObserver")]);s&&window[s]&&(r=window[s]);const o=new r(X(i=>{e.onMutation&&e.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function uE({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],a;const c=dr(X(l=>{const f=Date.now()-a;e(i.map(p=>(p.timeOffset-=f,p)),l),i=[],a=null}),o),u=X(dr(X(l=>{const f=Cr(l),{clientX:p,clientY:h}=ui(l)?l.changedTouches[0]:l;a||(a=Ns()),i.push({x:p,y:h,id:r.getId(f),timeOffset:Ns()-a}),c(typeof DragEvent<"u"&&l instanceof DragEvent?U.Drag:l instanceof MouseEvent?U.MouseMove:U.TouchMove)}),s,{trailing:!1})),d=[Ce("mousemove",u,n),Ce("touchmove",u,n),Ce("drag",u,n)];return X(()=>{d.forEach(l=>l())})}function lE({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const a=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let u=null;const d=l=>f=>{const p=Cr(f);if(De(p,r,s,o,!0))return;let h=null,g=l;if("pointerType"in f){switch(f.pointerType){case"mouse":h=st.Mouse;break;case"touch":h=st.Touch;break;case"pen":h=st.Pen;break}h===st.Touch?ke[l]===ke.MouseDown?g="TouchStart":ke[l]===ke.MouseUp&&(g="TouchEnd"):st.Pen}else ui(f)&&(h=st.Touch);h!==null?(u=h,(g.startsWith("Touch")&&h===st.Touch||g.startsWith("Mouse")&&h===st.Mouse)&&(h=null)):ke[l]===ke.Click&&(h=u,u=null);const S=ui(f)?f.changedTouches[0]:f;if(!S)return;const _=n.getId(p),{clientX:v,clientY:O}=S;X(e)({type:ke[g],id:_,x:v,y:O,...h!==null&&{pointerType:h}})};return Object.keys(ke).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEac
vendor: 1,143 bytes, line 28
28h(l=>{let f=Fn(l);const p=d(l);if(window.PointerEvent)switch(ke[l]){case ke.MouseDown:case ke.MouseUp:f=f.replace("mouse","pointer");break;case ke.TouchStart:case ke.TouchEnd:return}c.push(Ce(f,p,t))}),X(()=>{c.forEach(l=>l())})}function Ad({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){const a=X(dr(X(c=>{const u=Cr(c);if(!u||De(u,r,s,o,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const l=bd(t.defaultView);e({id:d,x:l.left,y:l.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),i.scroll||100));return Ce("scroll",a,t)}function dE({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=X(dr(X(()=>{const o=Ed(),i=vd();(n!==o||r!==i)&&(e({width:Number(i),height:Number(o)}),n=o,r=i)}),200));return Ce("resize",s,t)}const fE=["INPUT","TEXTAREA","SELECT"],Pc=new WeakMap;function pE({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:l,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:g}){function S(C){let R=Cr(C);const m=C.isTrusted,b=R&&ai(R.tagName);
28if(b==="OPTION"&&(R=R.parentElement),!R||!b||fE.indexOf(b)<0||De(R,r,s,o,!0))return;const T=R;if(T.classList.contains(i)||a&&T.matches(a))return;const w=ea(R);let B=As(T,b,w),V=!1;const z=Zs({maskInputOptions:c,tagName:b,type:w}),A=$n(R,f,h,p,g,z);(w==="radio"||w==="checkbox")&&(V=R.checked),B=ur({isMasked:A,element:R,value:B,maskInputFn:u}),_(R,l?{text:B,isChecked:V,userTriggered:m}:{text:B,isChecked:V});const ae=R.name;w==="radio"&&ae&&V&&t.querySelectorAll(`input[type="radio"][name="${ae}"]`).forEach(F=>{if(F!==R){const ee=ur({isMasked:A,element:F,value:As(F,b,w),maskInputFn:u});_(F,l?{text:ee,isChecked:!V,userTriggered:!1}:{text:ee,isChecked:!V})}})}function _(C,R){const m=Pc.get(C);if(!m||m.text!==R.text||m.isChecked!==R.isChecked){Pc.set(C,R);const b=n.getId(C);X(e)({...R,id:b})}}const O=(d.input==="last"?["change"]:["input","change"]).map(C=>Ce(C,X(S),t)),M=t.defaultView;if(!M)return()=>{O.forEach(C=>C())};const k=M.Object.getOwnPropertyDescriptor(M.HTMLInputElement.prototype,"value"),E=[[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 k&&k.set&&O.push(...E.map(C=>Sd(C[0],C[1],{set(){X(S)({target:this,isTrusted:!1})}},!1,M))),X(()=>{O.forEach(C=>C())})}function Ds(e){const t=[];function n(r,s){if(Vr("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Vr("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Vr("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Vr("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(i)}return s}return n(e,t)}function Tt(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function hE({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:X((d,l,f)=>{const[p,h]=f,{id:g,styleId:S}=Tt(l,t,n.styleMirror);return(g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,adds:[{rule:p,index:h}]}),d.apply(l,f)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:X((d,l,f)=>{const[p]=f,{id:h,styleId:g}=Tt(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,removes:[{index:p}]}),d.apply(l,f)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:X((d,l,f)=>{const[p]=f,{id:h,styleId:g}=Tt(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replace:p}),d.apply(l,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:X((d,l,f)=>{const[p]=f,{id:h,styleId:g}=Tt(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replaceSync:p}),d.apply(l,f)})}));const c={};Yr("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Yr("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Yr("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Yr("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const 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:X((f,p,h)=>{const[g,S]=h,{id:_,styleId:v}=Tt(p.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||v&&v!==-1)&&e({id:_,styleId:v,adds:[{rule:g,index:[...Ds(p),S||0]}]}),f.apply(p,h)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:X((f,p,h)=>{const[g]=h,{id:S,styleId:_}=Tt(p.parentStyleSheet,t,n.styleMirror);return(S&&S!==-1||_&&_!==-1)&&e({id:S,styleId:_,removes:[{index:[...Ds(p),g]}]}),f.apply(p,h)})})}),X(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEac
28h(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function Od({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?Xe([n,"access",i=>i.defaultView,"optionalAccess",i=>i.Document]):Xe([n,"access",i=>i.ownerDocument,"optionalAccess",i=>i.defaultView,"optionalAccess",i=>i.ShadowRoot]),o=Xe([s,"optionalAccess",i=>i.prototype])?Object.getOwnPropertyDescriptor(Xe([s,"optionalAccess",i=>i.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Xe([o,"access",i=>i.get,"optionalAccess",i=>i.call,"call",i=>i(this)])},set(i){const a=Xe([o,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,i)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(i,r)}catch{}return a}}),X(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function mE({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:X((a,c,u)=>{const[d,l,f]=u;if(n.has(d))return o.apply(c,[d,l,f]);const{id:p,styleId:h}=Tt(Xe([c,"access",g=>g.parentRule,"optionalAccess",g=>g.parentStyleSheet]),t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:d,value:l,priority:f},index:Ds(c.parentRule)}),a.apply(c,u)})});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:X((a,c,u)=>{const[d]=u;if(n.has(d))return i.apply(c,[d]);const{id:l,styleId:f}=Tt(Xe([c,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),t,r.styleMirror);return(l&&l!==-1||f&&f!==-1)&&e({id:l,styleId:f,remove:{property:d},index:Ds(c.parentRule)}),a.apply(c,u)})}),X(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i})}function gE({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=X(u=>dr(X(d=>{const l=Cr(d);if(!l||De(l,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:g}=l;e({type:u,id:s.getId(l),currentTime:f,volume:p,muted:h,playbackRate:g})}),o.media||500)),c=[Ce("play",a(0),i),Ce("pause",a(1),i),Ce("seeked",a(2),i),Ce("volumechange",a(3),i),Ce("ratechange",a(4),i)];return X(()=>{c.forEach(u=>u())})}function _E({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(c,u,d){const l=new o(c,u,d);return s.set(l,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};const i=na(t.fonts,"add",function(a){return function(c){return eo(X(()=>{const u=s.get(c);u&&(e(u),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(i),X(()=>{r.forEach(a=>a())})}function yE(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=X(()=>{const u=t.getSelection();if(!u||a&&Xe([u,"optionalAccess",f=>f.isCollapsed]))return;a=u.isCollapsed||!1;const d=[],l=u.rangeCount||0;for(let f=0;f<l;f++){const p=u.getRangeAt(f),{startContainer:h,startOffset:g,endContainer:S,endOffset:_}=p;De(h,r,s,o,!0)||De(S,r,s,o,!0)||d.push({start:n.getId(h),startOffset:g,end:n.getId(S),endOffset:_})}i({ranges:d})});return c(),Ce("selectionchange",c)}function SE({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:na(n.customElements,"define",function(s){return function(o,i,a){try{t({define:{name:o}})}catch{}return s.apply(this,[o,i,a])}})}function bE(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Md(e,e.doc));const s=uE(e),o=lE(e),i=Ad(e),a=dE(e,{win:n}),c=pE(e),u=gE(e);let d=()=>{},l=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(d=hE(e,{win:n}),l=Od(e,e.doc),f=mE(e,{win:n}),e.collectFonts&&(p=_E(e)));const h=yE(e),g=SE(e),S=[];
28for(const _ of e.plugins)S.push(_.observer(_.callback,n,_.options));return X(()=>{In.forEach(_=>_.reset()),Xe([r,"optionalAccess",_=>_.disconnect,"call",_=>_()]),s(),o(),i(),a(),c(),u(),d(),l(),f(),p(),h(),g(),S.forEach(_=>_())})}function Vr(e){return typeof window[e]<"u"}function Yr(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class fi{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const o=r||this.getIdToRemoteIdMap(t),i=s||this.getRemoteIdToIdMap(t);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),i.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(o=>this.getId(t,o,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const o=s.get(n);return o||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function Fc(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}class EE{constructor(){this.crossOriginIframeMirror=new fi(ta),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class vE{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new fi(ta),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new fi(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}),Fc([this,"access",s=>s.loadListener,"optionalCall",s=>s(t)]);const r=sa(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const o=this.transformCrossOriginEvent(s,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case j.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:j.IncrementalSnapshot,data:{source:U.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case j.Meta:case j.Load:case j.DomContentLoaded:return!1;case j.Plugin:return n;case j.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case j.IncrementalSnapshot:switch(n.data.source){case U.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}
28),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 U.Drag:case U.TouchMove:case U.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case U.ViewportResize:return!1;case U.MediaInteraction:case U.MouseInteraction:case U.Scroll:case U.CanvasMutation:case U.Input:return this.replaceIds(n.data,t,["id"]),n;case U.StyleSheetRule:case U.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case U.Font:return n;case U.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case U.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),Fc([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(s=>{this.replaceStyleIds(s,t,["styleId"])})]),n}}return!1}replace(t,n,r,s){for(const o of s)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=t.getIds(r,n[o]):n[o]=t.getId(r,n[o]));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!==Se.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class wE{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class IE{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(!or(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Md({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Ad({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),eo(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Od({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=sa(t),r=nE(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(na(t.prototype,"attachShadow",function(s){return function(o){const i=s.call(this,o);return this.shadowRoot&&xd(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class $c{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class TE{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Jb,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const o of t){let i;this.styleMirror.has(o)?i=this.styleMirror.getId(o):(i=this.styleMirror.add(o),s.push({styleId:i,rules:Array.from(o.rules||CSSRule,(a,c)=>({rule:dd(a),index:c}))})),r.styleIds.push(i)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class kE{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,eE(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let fe,Ls;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=sn([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ve=Tb();function lt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr
28-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:l=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:g,maskInputOptions:S,slimDOMOptions:_,maskAttributeFn:v,maskInputFn:O,maskTextFn:M,maxCanvasSize:k=null,packFn:E,sampling:C={},dataURLOptions:R={},mousemoveWait:m,recordDOM:b=!0,recordCanvas:T=!1,recordCrossOriginIframes:w=!1,recordAfter:B=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:V=!1,collectFonts:z=!1,inlineImages:A=!1,plugins:ae,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:ee=new Set([]),errorHandler:Te,onMutation:ze,getCanvasManager:Vt}=e;aE(Te);const pn=w?window.parent===window:!0;let je=!1;if(!pn)try{window.parent.document&&(je=!1)}catch{je=!0}if(pn&&!t)throw new Error("emit function is required");if(!pn&&!je)return()=>{};m!==void 0&&C.mousemove===void 0&&(C.mousemove=m),Ve.reset();const Fe=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:{},rt=_===!0||_==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_==="all",headMetaDescKeywords:_==="all"}:_||{};Kb();let hn,mn=0;const Kn=K=>{for(const Ge of ae||[])Ge.eventProcessor&&(K=Ge.eventProcessor(K));return E&&!je&&(K=E(K)),K};fe=(K,Ge)=>{const Y=K;if(Y.timestamp=Ns(),sn([In,"access",ue=>ue[0],"optionalAccess",ue=>ue.isFrozen,"call",ue=>ue()])&&Y.type!==j.FullSnapshot&&!(Y.type===j.IncrementalSnapshot&&Y.data.source===U.Mutation)&&In.forEach(ue=>ue.unfreeze()),pn)sn([t,"optionalCall",ue=>ue(Kn(Y),Ge)]);else if(je){const ue={type:"rrweb",event:Kn(Y),origin:window.location.origin,isCheckout:Ge};window.parent.postMessage(ue,"*")}if(Y.type===j.FullSnapshot)hn=Y,mn=0;else if(Y.type===j.IncrementalSnapshot){if(Y.data.source===U.Mutation&&Y.data.isAttachIframe)return;mn++;const ue=r&&mn>=r,J=n&&hn&&Y.timestamp-hn.timestamp>n;(ue||J)&&uo(!0)}};const Et=K=>{fe({type:j.IncrementalSnapshot,data:{source:U.Mutation,...K}})},re=K=>fe({type:j.IncrementalSnapshot,data:{source:U.Scroll,...K}}),Ee=K=>fe({type:j.IncrementalSnapshot,data:{source:U.CanvasMutation,...K}}),qe=K=>fe({type:j.IncrementalSnapshot,data:{source:U.AdoptedStyleSheet,...K}}),me=new TE({mutationCb:Et,adoptedStyleSheetCb:qe}),ce=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new EE:new vE({mirror:Ve,mutationCb:Et,stylesheetManager:me,recordCrossOriginIframes:w,wrappedEmit:fe});for(const K of ae||[])K.getMirror&&K.getMirror({nodeMirror:Ve,crossOriginIframeMirror:ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:ce.crossOriginIframeStyleMirror});const $e=new kE,Yt=xE(Vt,{mirror:Ve,win:window,mutationCb:K=>fe({type:j.IncrementalSnapshot,data:{source:U.CanvasMutation,...K}}),recordCanvas:T,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:k,sampling:C.canvas,dataURLOptions:R,errorHandler:Te}),gn=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new wE:new IE({mutationCb:Et,scrollCb:re,bypassOptions:{onMutation:ze,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:Fe,dataURLOptions:R,maskAttributeFn:v,maskTextFn:M,maskInputFn:O,recordCanvas:T,inlineImages:A,sampling:C,slimDOMOptions:rt,iframeManager:ce,stylesheetManager:me,canvasManager:Yt,keepIframeSrcFn:F,processedNodeManager:$e},mirror:Ve}),uo=(K=!1)=>{if(!b)return;fe({type:j.Meta,data:{href:window.location.href,width:vd(),height:Ed()}},K),me.reset(),gn.init(),In.forEach(Y=>Y.lock());const Ge=Yb(document,{mirror:Ve,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:Fe,maskAttributeFn:v,maskInputFn:O,maskTextFn:M,slimDOM:rt,dataURLOptions:R,recordCanvas:T,inlineImages:A,onSerialize:Y=>{Td(Y,Ve)&&ce.addIframe(Y),kd(Y,Ve)&&me.trackLinkElement(Y),li(Y)&&gn.addShadowRoot(Y.shadowRoot,document)},onIframeLoad:(Y,ue)=>{ce.attachIframe(Y,ue),Y.contentWindow&&Yt.addWindow(Y.contentWindow),gn.observeAttachShadow(Y)},onStylesheetLoad:(Y,ue)=>{me.attachLinkElement(Y,ue)},keepIframeSrcFn:F});if(!Ge)return console.warn("Failed to snapshot the document");fe({type:j.FullSnapshot,data:{node:Ge,initialOffset:bd(window)}}),In.forEach(Y=>Y.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&me.adoptStyleSheets(document.adoptedStyleSheets,Ve.getId(document))};Ls=uo;try{const K=[],Ge=ue=>X(bE)({onMutation:ze,mutationCb:Et,mousemoveCb:(J,Xt)=>fe({type:j.IncrementalSnapshot,data:{source:Xt,positions:J}}),mouseInteractionCb:J=>fe({type:j.IncrementalSnapshot,data:{source:U.MouseInteraction,...J}}),scrollCb:re,viewportResizeCb:J=>fe({type:j.IncrementalSnapshot,data:{source:U.ViewportResize,...J}}),inputCb:J=>fe({type:j.IncrementalSnapshot,data:{source:U.Input,...J}}),mediaInteractionCb:J=>fe({type:j.IncrementalSnapshot,data:{source:U.MediaInteraction,...J}}),styleSheetRuleCb:J=>fe({type:j.IncrementalSnapshot,data:{source:U.StyleSheetRule,...J}}),styleDeclarationCb:J=>fe({type:j.IncrementalSnapshot,data:{source:U.StyleDeclaration,...J}}),canvasMutationCb:Ee,fontCb:J=>fe({type:j.IncrementalSnapshot,data:{source:U.Font,...J}}),selectionCb:J=>{fe({type:j.IncrementalSnapshot,data:{source:U.Selection,...J}})},customElementCb:J=>{fe({type:j.IncrementalSnapshot,data:{source:U.CustomElement,...J}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:Fe,inlineStylesheet:h,sampling:C,recordDOM:b,re
28cordCanvas:T,inlineImages:A,userTriggeredOnInput:V,collectFonts:z,doc:ue,maskAttributeFn:v,maskInputFn:O,maskTextFn:M,keepIframeSrcFn:F,blockSelector:o,unblockSelector:i,slimDOMOptions:rt,dataURLOptions:R,mirror:Ve,iframeManager:ce,stylesheetManager:me,shadowDomManager:gn,processedNodeManager:$e,canvasManager:Yt,ignoreCSSAttributes:ee,plugins:sn([ae,"optionalAccess",J=>J.filter,"call",J=>J(Xt=>Xt.observer),"optionalAccess",J=>J.map,"call",J=>J(Xt=>({observer:Xt.observer,options:Xt.options,callback:jf=>fe({type:j.Plugin,data:{plugin:Xt.name,payload:jf}})}))])||[]},{});ce.addLoadListener(ue=>{try{K.push(Ge(ue.contentDocument))}catch(J){console.warn(J)}});const Y=()=>{uo(),K.push(Ge(document))};return document.readyState==="interactive"||document.readyState==="complete"?Y():(K.push(Ce("DOMContentLoaded",()=>{fe({type:j.DomContentLoaded,data:{}}),B==="DOMContentLoaded"&&Y()})),K.push(Ce("load",()=>{fe({type:j.Load,data:{}}),B==="load"&&Y()},window))),()=>{K.forEach(ue=>ue()),$e.destroy(),Ls=void 0,cE()}}catch(K){console.warn(K)}}function CE(e){if(!Ls)throw new Error("please take full snapshot after start recording");Ls(e)}lt.mirror=Ve;lt.takeFullSnapshot=CE;function xE(e,t){try{return e?e(t):new $c}catch{return console.warn("Unable to initialize CanvasManager"),new $c}}const RE=3,ME=5;function oa(e){return e>9999999999?e:e*1e3}function ko(e){return e>9999999999?e/1e3:e}function xr(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:j.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ue(t,10,1e3)}}),t.category==="console")))}const AE="button,a";function Nd(e){return e.closest(AE)||e}function Dd(e){const t=Ld(e);return!t||!(t instanceof Element)?t:Nd(t)}function Ld(e){return OE(e)?e.target:e}function OE(e){return typeof e=="object"&&!!e&&"target"in e}let kt;function NE(e){return kt||(kt=[],DE()),kt.push(e),()=>{const t=kt?kt.indexOf(e):-1;t>-1&&kt.splice(t,1)}}function DE(){xe(oe,"open",function(e){return function(...t){if(kt)try{kt.forEach(n=>n())}catch{}return e.apply(oe,t)}})}const LE=new Set([U.Mutation,U.StyleSheetRule,U.StyleDeclaration,U.AdoptedStyleSheet,U.CanvasMutation,U.Selection,U.MediaInteraction]);function PE(e,t,n){e.handleClick(t,n)}class FE{constructor(t,n,r=xr){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=NE(()=>{this._lastMutation=Uc()});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(UE(n,this._ignoreSelector)||!BE(t))return;const r={timestamp:ko(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=ko(t)}registerScroll(t=Date.now()){this._lastScroll=ko(t)}registerClick(t){const n=Nd(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Uc();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!r&&!s,{clickCount:i,clickBreadcrumb:a}=t;if(o){const 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:{...a.data,url:oe.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:i||1}};this._addBreadcrumbEvent(n,d);return}if(i>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:oe.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Ln(()=>this._checkClicks(),1e3)}}const $E=["A","BUTTON","INPUT"];function UE(e,t){return!!(!$E.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 BE(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Uc(){return Date.now()/1e3}function HE(e,t){try{if(!WE(t))return;const{source:n}=t.data;if(LE.has(n)&&e.registerMutation(t.timestamp),n===U.Scroll&&e.registerScroll(t.timestamp),zE(t)){const{type:r,id:s}=t.data,o=lt.mirror.getNode(s);o instanceof HTMLElement&&r===ke.Click&&e.registerClick(o)}}catch{}}function WE(e){return e.type===RE}function zE(e){return e.data.source===U.MouseInteraction}function Je(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ps;(function(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"})(Ps||(Ps={}));const jE=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function qE(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(jE.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const GE=e=>t=>{if(!e.isEnabled())return;const n=VE(t);if(!n)return;
28const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&PE(e.clickDetector,n,Dd(t.event)),xr(e,n)};function Pd(e,t){const n=lt.mirror.getId(e),r=n&<.mirror.getNode(n),s=r&<.mirror.getMeta(r),o=s&&XE(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(i=>i.type===Ps.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:qE(o.attributes)}}:{}}}function VE(e){const{target:t,message:n}=YE(e);return Je({category:`ui.${e.name}`,...Pd(t,n)})}function YE(e){const t=e.name==="click";let n,r=null;try{r=t?Dd(e.event):Ld(e.event),n=pt(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function XE(e){return e.type===Ps.Element}function KE(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=JE(t);n&&xr(e,n)}function JE(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||ZE(i)||!o)return null;const a=t||r||s,c=o.length===1;if(!a&&c)return null;const u=pt(i,{maxStringLength:200})||"<unknown>",d=Pd(i,u);return Je({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function ZE(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const QE={resource:sv,paint:nv,navigation:rv};function Xr(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function ev(e){return e.map(tv).filter(Boolean)}function tv(e){const t=QE[e.entryType];return t?t(e):null}function Un(e){return((Ie||oe.performance.timeOrigin)+e)/1e3}function nv(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=Un(s);return{type:n,name:r,start:o,end:o+t,data:void 0}}function rv(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:f,startTime:p,transferSize:h,type:g}=e;return s===0?null:{type:`${t}.${g}`,start:Un(p),end:Un(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:l,domComplete:o,redirectCount:f}}}function sv(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Un(o),end:Un(s),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}}function ov(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return to(e,"largest-contentful-paint",n)}function iv(e){return e.sources!==void 0}function av(e){const t=[],n=[];for(const r of e.entries)if(iv(r)){const s=[];for(const o of r.sources)if(o.node){n.push(o.node);const i=lt.mirror.getId(o.node);i&&s.push(i)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return to(e,"cumulative-layout-shift",n,t)}function cv(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return to(e,"first-input-delay",n)}function uv(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return to(e,"interaction-to-next-paint",n)}function to(e,t,n,r){const s=e.value,o=e.rating,i=Un(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map(a=>lt.mirror.getId(a)):void 0,attributions:r}}}function lv(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Dn(s,n))}),r.push(Kl(Xr(ov,e)),Vi(Xr(av,e)),Jl(Xr(cv,e)),Zl(Xr(uv,e))),()=>{r.forEach(s=>s())}}const D=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,dv='var 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]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}
vendor: 5,457 bytes, line 28
28},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(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,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,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=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=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:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},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,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}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 a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,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[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,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[a[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=p,P=g,Q=y,R=w;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;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}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];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}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-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(a[t]^a[t+1]<<A^a[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||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),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(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
28++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|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(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 a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),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(a),32768),this.s.z=n.length-a+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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=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 H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[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});';function fv(){const e=new Blob([dv]);return URL.createObjectURL(e)}const Bc=["info","warn","error","log"],is="[Replay] ";function Co(e,t="info"){tt({category:"console",data:{logger:"replay"},level:t,message:`${is}${e}`},{level:t})}function pv(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return D?(Bc.forEach(r=>{n[r]=(...s)=>{y[r](is,...s),t&&Co(s.join(""),Ui(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),y.error(is,r),e?Vs(r):t&&Co(r,"error")},n.infoTick=(...r)=>{y.info(is,...r),t&&setTimeout(()=>Co(r[0]),0)}):Bc.forEach(r=>{n[r]=()=>{}}),n}const $=pv();
28class ia extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Qi}.`)}}class Fd{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Qi)throw new ia;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?oa(t):null}}class hv{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():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){D&&$.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,o)=>{const i=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){D&&$.error("Error in compression worker: ",c.response),o(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class mv{constructor(t){this._worker=new hv(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=oa(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Qi?Promise.reject(new ia):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{D&&$.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class gv{constructor(t){this._fallback=new Fd,this._compression=new mv(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){D&&$.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const o of t)s.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(o){D&&$.exception(o,"Failed to add events when switching buffers.")}}}function _v({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=yv(t);if(n)return n}return D&&$.info("Using simple buffer"),new Fd}function yv(e){try{const t=e||Sv();if(!t)return;D&&$.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new gv(n)}catch(t){D&&$.exception(t,"Failed to create compression worker")}}function Sv(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?fv():""}function aa(){try{return"sessionStorage"in oe&&!!oe.sessionStorage}catch{return!1}}function bv(e){Ev(),e.session=void 0}function Ev(){if(aa())try{oe.sessionStorage.removeItem(Ji)}catch{}}function $d(e){return e===void 0?!1:Math.random()<e}function Ud(e){const t=Date.now(),n=e.id||Re(),r=e.started||t,s=e.lastActivity||t,o=e.segmentId||0,i=e.sampled,a=e.previousSessionId;return{id:n,started:r,lastActivity:s,segmentId:o,sampled:i,previousSessionId:a}}function ca(e){if(aa())try{oe.sessionStorage.setItem(Ji,JSON.stringify(e))}catch{}}function vv(e,t){return $d(e)?"session":t?"buffer":!1}function Hc({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=vv(e,t),o=Ud({sampled:s,previousSessionId:r});return n&&ca(o),o}function wv(){if(!aa())return null;try{const e=oe.sessionStorage.getItem(Ji);if(!e)return null;const t=JSON.parse(e);return D&&$.infoTick("Loading existing session"),Ud(t)}catch{return null}}function pi(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Bd(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return pi(e.started,t,r)||pi(e.lastActivity,n,r)}function Hd(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Bd(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function xo({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&wv();return s?Hd(s,{sessionIdleExpire:e,maxReplayDuration:t})?(D&&$.infoTick("Session in sessionStorage is expired, creating new one..."),Hc(r,{previousSessionId:s.id})):s:(D&&$.infoTick("Creating new session"),Hc(r,{previousSessionId:n}))}function Iv(e){return e.type===j.Custom}function ua(e,t,n){return zd(e,t)?(Wd(e,t,n),!0):!1}function Tv(e,t,n){return zd(e,t)?Wd(e,t,n):Promise.resolve(null)}async function Wd(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";
28try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=e.getOptions(),i=kv(t,o.beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(o){const i=o&&o instanceof ia,a=i?"addEventSizeExceeded":"addEvent";if(i&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:a});const c=x();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function zd(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=oa(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(D&&$.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function kv(e,t){try{if(typeof t=="function"&&Iv(e))return t(e)}catch(n){return D&&$.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function la(e){return!e.type}function hi(e){return e.type==="transaction"}function Cv(e){return e.type==="replay_event"}function Wc(e){return e.type==="feedback"}function xv(e){return(t,n)=>{if(!e.isEnabled()||!la(t)&&!hi(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(hi(t)){Rv(e,t);return}Mv(e,t)}}}function Rv(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function Mv(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Ln(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function Av(e){return t=>{!e.isEnabled()||!la(t)||Ov(e,t)}}function Ov(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Je({category:"replay.hydrate-error",data:{url:Ti()}});xr(e,r)}}function Nv(e){const t=x();t&&t.on("beforeAddBreadcrumb",n=>Dv(e,n))}function Dv(e,t){if(!e.isEnabled()||!jd(t))return;const n=Lv(t);n&&xr(e,n)}function Lv(e){return!jd(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?Pv(e):Je(e)}function Pv(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Je(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>Gr?(n=!0,`${s.slice(0,Gr)}…`):s;if(typeof s=="object")try{const o=Ue(s,7);return JSON.stringify(o).length>Gr?(n=!0,`${JSON.stringify(o,null,2).slice(0,Gr)}…`):o}catch{}return s});return Je({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function jd(e){return!!e.category}function Fv(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function qd(){const e=W().getPropagationContext().dsc;e&&delete e.replay_id;const t=de();if(t){const n=Gt(t);delete n.replay_id}}function $v(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:j.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 Uv(e,t){return e.recordingMode!=="buffer"||t.message===Zi||!t.exception||t.type?!1:$d(e.getOptions().errorSampleRate)}function Bv(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:Cv(t)?(delete t.breadcrumbs,t):!la(t)&&!hi(t)&&!Wc(t)?t:e.checkAndHandleExpiredSession()?Wc(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),$v(e,t),t):Fv(t,n)&&!e.getOptions()._experiments.captureExceptions?(D&&$.log("Ignoring error from rrweb internals",t),null):((Uv(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(qd(),t),{id:"Replay"})}function no(e,t){return t.map(({type:n,start:r,end:s,name:o,data:i})=>{const a=e.throttledAddEvent({type:j.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:s,data:i}}});
28return typeof a=="string"?Promise.resolve(null):a})}function Hv(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Wv(e){return t=>{if(!e.isEnabled())return;const n=Hv(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(no(e,[n]),!1)))}}function zv(e,t){return D&&e.getOptions()._experiments.traceInternals?!1:Il(t,x())}function Gd(e,t){e.isEnabled()&&t!==null&&(zv(e,t.name)||e.addUpdate(()=>(no(e,[t]),!0)))}function ro(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Kd(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Vd(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Yd(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Kd(e)];if(!e)return[void 0]}catch(t){return D&&$.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return D&&$.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Fs(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Xd(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:ge({method:o,statusCode:i,request:a,response:c})}}function fr(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Nt(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=jv(n);return r.body=s,o&&o.length>0&&(r._meta={warnings:o}),r}function mi(e,t){return Object.entries(e).reduce((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n},{})}function Kd(e){return new URLSearchParams(e).toString()}function jv(e){if(!e||typeof e!="string")return{body:e};const t=e.length>vc,n=qv(e);if(t){const r=e.slice(0,vc);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function qv(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function $s(e,t){const n=Gv(e);return Ot(n,t)}function Gv(e,t=oe.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(oe.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Vv(e,t,n){try{const r=await Xv(e,t,n),s=Xd("resource.fetch",r);Gd(n.replay,s)}catch(r){D&&$.exception(r,"Failed to capture fetch breadcrumb")}}function Yv(e,t){const{input:n,response:r}=t,s=n?Jd(n):void 0,o=ro(s),i=r?Vd(r.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}async function Xv(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,l=$s(i,n.networkDetailAllowUrls)&&!$s(i,n.networkDetailDenyUrls),f=l?Kv(n,t.input,u):fr(u),p=await Jv(l,n,t.response,d);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:f,response:p}}function Kv({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?e0(n,t):{};if(!e)return Nt(s,r,void 0);const o=Jd(n),[i,a]=Yd(o),c=Nt(s,r,i);return a?Fs(c,a):c}async function Jv(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return fr(s);const o=r?Zd(r.headers,n):{};if(!r||!t&&s!==void 0)return Nt(o,s,void 0);const[i,a]=await Qv(r),c=Zv(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return a?Fs(c,a):c}function Zv(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e&&e.length&&n===void 0?ro(e):n;return r?t?Nt(s,o,e):Nt(s,o,void 0):fr(o)}catch(o){return D&&$.exception(o,"Failed to serialize response body"),Nt(s,n,void 0)}}async function Qv(e){const t=t0(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await n0(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(D&&$.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(D&&$.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Jd(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function Zd(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}
28function e0(e,t){return e.length===1&&typeof e[0]!="string"?zc(e[0],t):e.length===2?zc(e[1],t):{}}function zc(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Zd(n,t):Array.isArray(n)?{}:mi(n,t):{}}function t0(e){try{return e.clone()}catch(t){D&&$.exception(t,"Failed to clone response body")}}function n0(e){return new Promise((t,n)=>{const r=Ln(()=>n(new Error("Timeout while trying to read response body")),500);r0(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function r0(e){return await e.text()}async function s0(e,t,n){try{const r=i0(e,t,n),s=Xd("resource.xhr",r);Gd(n.replay,s)}catch(r){D&&$.exception(r,"Failed to capture xhr breadcrumb")}}function o0(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=ro(r),o=n.getResponseHeader("content-length")?Vd(n.getResponseHeader("content-length")):l0(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}function i0(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:c,method:u,status_code:d=0,request_body_size:l,response_body_size:f}=e.data;if(!c)return null;if(!a||!$s(c,n.networkDetailAllowUrls)||$s(c,n.networkDetailDenyUrls)){const E=fr(l),C=fr(f);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:d,request:E,response:C}}const p=a[xt],h=p?mi(p.request_headers,n.networkRequestHeaders):{},g=mi(a0(a),n.networkResponseHeaders),[S,_]=n.networkCaptureBodies?Yd(i):[void 0],[v,O]=n.networkCaptureBodies?c0(a):[void 0],M=Nt(h,l,S),k=Nt(g,f,v);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:d,request:_?Fs(M,_):M,response:O?Fs(k,O):k}}function a0(e){const t=e.getAllResponseHeaders();return t?t.split(`\r 29`).reduce((n,r)=>{const[s,o]=r.split(": ");return o&&(n[s.toLowerCase()]=o),n},{}):{}}function c0(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return u0(e.response,e.responseType)}catch(n){t.push(n)}return D&&$.warn("Failed to get xhr response body",...t),[void 0]}function u0(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 D&&$.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return D&&$.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function l0(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return ro(n)}catch{return}}function d0(e){const t=x();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(c,u)=>f0(a,c,u))}catch{}}function f0(e,t,n){if(t.data)try{p0(t)&&m0(n)&&(o0(t,n),s0(t,n,e)),h0(t)&&g0(n)&&(Yv(t,n),Vv(t,n,e))}catch(r){D&&$.exception(r,"Error when enriching network breadcrumb")}}function p0(e){return e.category==="xhr"}function h0(e){return e.category==="fetch"}function m0(e){return e&&e.xhr}function g0(e){return e&&e.response}function _0(e){const t=x();rd(GE(e)),Js(Wv(e)),Nv(e),d0(e);const n=Bv(e);Hh(n),t&&(t.on("beforeSendEvent",Av(e)),t.on("afterSendEvent",xv(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,s)=>{const o=e.getSessionId();s&&s.includeReplay&&e.isEnabled()&&o&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=o)}))}async function y0(e){try{return Promise.all(no(e,[S0(oe.performance.memory)]))}catch{return[]}}function S0(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function b0(e,t,n){let r,s,o;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){s!==void 0&&clearTimeout(s),o!==void 0&&clearTimeout(o),s=o=void 0}function u(){return s!==void 0||o!==void 0?a():r}function d(){return s&&clearTimeout(s),s=Ln(a,t),i&&o===void 0&&(o=Ln(a,i)),r}return d.cancel=c,d.flush=u,d}const Kt=P.navigator;function E0(){return/iPhone|iPad|iPod/i.test(Kt&&Kt.userAgent||"")||/Macintosh/i.test(Kt&&Kt.userAgent||"")&&Kt&&Kt.maxTouchPoints&&Kt.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function v0(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){D&&$.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&HE(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!ua(e,n,s))return!0;
29if(!s)return!1;const o=e.session;if(I0(e,s),e.recordingMode==="buffer"&&o&&e.eventBuffer){const i=e.eventBuffer.getEarliestTimestamp();i&&(D&&$.info(`Updating session start time to earliest event in buffer to ${new Date(i)}`),o.started=i,e.getOptions().stickySession&&ca(o))}return o&&o.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function w0(e){const t=e.getOptions();return{type:j.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 I0(e,t){!t||!e.session||e.session.segmentId!==0||ua(e,w0(e),!1)}function T0(e,t,n,r){return bt(ul(e,Oi(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function k0({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} 30`;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function C0({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:s};e.emit("preprocessEvent",r,o);const i=await pl(e.getOptions(),r,o,t,e,be());if(!i)return null;i.platform=i.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},i}async function x0({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=k0({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:d}=r,l=x(),f=W(),p=l&&l.getTransport(),h=l&&l.getDsn();if(!l||!p||!h||!o.sampled)return ht({});const g={type:ib,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},S=await C0({scope:f,client:l,replayId:t,event:g});if(!S)return l.recordDroppedEvent("event_processor","replay",g),D&&$.info("An event processor returned `null`, will not send event."),ht({});delete S.sdkProcessingMetadata;const _=T0(S,i,h,l.getOptions().tunnel);let v;try{v=await p.send(_)}catch(M){const k=new Error(Zi);try{k.cause=M}catch{}throw k}if(typeof v.statusCode=="number"&&(v.statusCode<200||v.statusCode>=300))throw new Qd(v.statusCode);const O=vl({},v);if(El(O,"replay"))throw new da(O);return v}class Qd extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class da extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function ef(e,t={count:0,interval:fb}){const{recordingData:n,onError:r}=e;if(n.length)try{return await x0(e),!0}catch(s){if(s instanceof Qd||s instanceof da)throw s;if($i("Replays",{_retryCount:t.count}),r&&r(s),t.count>=pb){const o=new Error(`${Zi} - max retries exceeded`);try{o.cause=s}catch{}throw o}return t.interval*=++t.count,new Promise((o,i)=>{Ln(async()=>{try{await ef(e,t),o(!0)}catch(a){i(a)}},t.interval)})}}const tf="__THROTTLED",R0="__SKIPPED";function M0(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let i=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),o()>=t){const d=i;return i=!0,d?R0:tf}i=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class Ct{constructor({options:t,recordingOptions:n}){Ct.prototype.__init.call(this),Ct.prototype.__init2.call(this),Ct.prototype.__init3.call(this),Ct.prototype.__init4.call(this),Ct.prototype.__init5.call(this),Ct.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:ab,sessionIdleExpire:cb},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=b0(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=M0((i,a)=>Tv(this,i,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),o=r?{threshold:Math.min(hb,r),timeout:r,scrollTimeout:mb,ignoreSelector:s?s.join(","):""}:void 0;if(o&&(this.clickDetector=new FE(this,o)),D){const i=t._experiments;$.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){D&&$.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){D&&$.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",D&&$.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}
30start(){if(this._isEnabled&&this.recordingMode==="session"){D&&$.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){D&&$.info("Buffering is in progress, call `flush()` to save the replay");return}D&&$.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=xo({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){D&&$.info("Buffering is in progress, call `flush()` to save the replay");return}D&&$.infoTick("Starting replay in buffer mode");const t=xo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=lt({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:db}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:v0(this),...E0(),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{D&&$.info(`Stopping Replay${n?` triggered by ${n}`:""}`),qd(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,bv(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),D&&$.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),D&&$.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();D&&$.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&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(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&pi(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${oe.location.pathname}${oe.location.hash}${oe.location.search}`,n=`${oe.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===tf){const s=Je({category:"replay.throttled"});this.addUpdate(()=>!ua(this,{type:ME,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||de(),n=t&&he(t),s=(n&&H(n).data||{})[pe];if(!(!n||!s||!["route","custom"].includes(s)))return H(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=_v({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=xo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Hd(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{oe.document.addEventListener("visibilitychange",this._handleVisibilityChange),oe.addEventListener("blur",this._handleWindowBlur),oe.addEventListener("focus",this._handleWindowFocus),oe.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(_0(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=lv(this)}_removeListeners(){try{oe.document.removeEventListener("visibilitychange",this._handleVisibilityChange),oe.removeEventListener("blur",this._handleWindowBlur),oe.removeEventListener("focus",this._handleWindowFocus),oe.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{oe.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
30dTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Je({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Je({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{KE(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Bd(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()){D&&$.info("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:j.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=ev(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(no(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){D&&$.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await y0(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await ef({replayId:t,recordingData:o,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:i=>this.handleException(i)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=x();if(r){const s=n instanceof da?"ratelimit_backoff":"send_error";r.recordDroppedEvent(s,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){D&&$.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const o=s<this._options.minReplayDuration,i=s>this._options.maxReplayDuration+5e3;if(o||i){D&&$.info(`Session duration (${Math.floor(s/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&D&&$.info("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ca(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,o=r&&n>r;if(n>s||o){const i=Je({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(i)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Jn(e,t){return[...e,...t].join(",")}function A0({mask:e,unmask:t,block:n,unblock:r,ignore:s}
30){const o=["base","iframe[srcdoc]:not([src])"],i=Jn(e,[".sentry-mask","[data-sentry-mask]"]),a=Jn(t,[]);return{maskTextSelector:i,unmaskTextSelector:a,blockSelector:Jn(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:Jn(r,[]),ignoreSelector:Jn(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function O0({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const jc='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',N0=["content-length","content-type","accept"];let qc=!1;const KT=(e=>new so(e));class so{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=ub,flushMaxDelay:n=lb,minReplayDuration:r=gb,maxReplayDuration:s=wc,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:S=[],networkDetailDenyUrls:_=[],networkCaptureBodies:v=!0,networkRequestHeaders:O=[],networkResponseHeaders:M=[],mask:k=[],maskAttributes:E=["title","placeholder"],unmask:C=[],block:R=[],unblock:m=[],ignore:b=[],maskFn:T,beforeAddRecordingEvent:w,beforeErrorSampling:B,onError:V}={}){this.name=so.id;const z=A0({mask:k,unmask:C,block:R,unblock:m,ignore:b});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(A,ae,F)=>O0({maskAttributes:E,maskAllText:u,privacyOptions:z,key:A,value:ae,el:F}),...z,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:A=>{try{A.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,_b),maxReplayDuration:Math.min(s,wc),stickySession:o,useCompression:i,workerUrl:a,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:g,networkDetailAllowUrls:S,networkDetailDenyUrls:_,networkCaptureBodies:v,networkRequestHeaders:Gc(O),networkResponseHeaders:Gc(M),beforeAddRecordingEvent:w,beforeErrorSampling:B,onError:V,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${jc}`:jc),this._isInitialized&&Qo())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return qc}set _isInitialized(t){qc=t}afterAllSetup(t){!Qo()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}getRecordingMode(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=D0(this._initialOptions,t);this._replay=new Ct({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}so.__initStatic();function D0(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...ge(e)},s=vs(n.replaysSessionSampleRate),o=vs(n.replaysOnErrorSampleRate);return s==null&&o==null&&yt(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),o!=null&&(r.errorSampleRate=o),r}function Gc(e){return[...N0,...e.map(t=>t.toLowerCase())]}function JT(){const e=x();return e&&e.getIntegrationByName("Replay")}var Vc;(function(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"})(Vc||(Vc={}));function L0(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function gi(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:gi(e.parentNode,t,n,r+1)}function Yc(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(L0(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const bn=`Please stop import mirror directly. Instead of that,\r
31now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 32or you can use record.mirror to access the mirror instance during recording.`;let Xc={map:{},getId(){return console.error(bn),-1},getNode(){return console.error(bn),null},removeNodeFromMap(){console.error(bn)},has(){return console.error(bn),!1},reset(){console.error(bn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Xc=new Proxy(Xc,{get(e,t,n){return t==="map"&&console.error(bn),Reflect.get(e,t,n)}}));function fa(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(i){rf(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>fa(e,t,o||{},!0)}function pa(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function P0(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function oo(e,t,n,r,s){if(!e)return!1;const o=P0(e);if(!o)return!1;const i=Yc(t,n),a=gi(o,i);let c=-1;return a<0?!1:(r&&(c=gi(o,Yc(null,r))),a>-1&&c<0?!0:a<c)}const Kc={};function nf(e){const t=Kc[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return Kc[e]=r.bind(window)}function Jt(...e){return nf("requestAnimationFrame")(...e)}function rf(...e){return nf("setTimeout")(...e)}var Bn=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Bn||{});let as;function F0(e){as=e}const Ro=e=>as?((...n)=>{try{return e(...n)}catch(r){if(as&&as(r)===!0)return()=>{};throw r}}):e;var Tn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Kr=0;Kr<Tn.length;Kr++)$0[Tn.charCodeAt(Kr)]=Kr;var U0=function(e){var t=new Uint8Array(e),n,r=t.length,s="";for(n=0;n<r;n+=3)s+=Tn[t[n]>>2],s+=Tn[(t[n]&3)<<4|t[n+1]>>4],s+=Tn[(t[n+1]&15)<<2|t[n+2]>>6],s+=Tn[t[n+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const Jc=new Map;function B0(e,t){let n=Jc.get(e);return n||(n=new Map,Jc.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const sf=(e,t,n)=>{if(!e||!(af(e,t)||typeof e=="object"))return;const r=e.constructor.name,s=B0(n,r);let o=s.indexOf(e);return o===-1&&(o=s.length,s.push(e)),o};function cs(e,t,n){if(e instanceof Array)return e.map(r=>cs(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){const r=e.constructor.name,s=U0(e);return{rr_type:r,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[cs(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:s}=e;return{rr_type:r,src:s}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",s=e.toDataURL();return{rr_type:r,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[cs(e.data,t,n),e.width,e.height]};if(af(e,t)||typeof e=="object"){const r=e.constructor.name,s=sf(e,t,n);return{rr_type:r,index:s}}}}return e}const of=(e,t,n)=>e.map(r=>cs(r,t,n)),af=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function H0(e,t,n,r,s){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=pa(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return oo(this.canvas,n,r,s,!0)||rf(()=>{const l=of(d,t,this);e(this.canvas,{type:Bn["2D"],property:a,args:l})},0),u.apply(this,d)}});o.push(c)}catch{const u=fa(t.CanvasRenderingContext2D.prototype,a,{set(d){e(this.canvas,{type:Bn["2D"],property:a,args:[d],setter:!0})}});o.push(u)}return()=>{o.forEach(a=>a())}}function W0(e){return e==="experimental-webgl"?"webgl":e}
32function Zc(e,t,n,r,s){const o=[];try{const i=pa(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!oo(this,t,n,r,!0)){const d=W0(c);if("__context"in this||(this.__context=d),s&&["webgl","webgl2"].includes(d))if(u[0]&&typeof u[0]=="object"){const l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(i=>i())}}function Qc(e,t,n,r,s,o,i,a){const c=[],u=Object.getOwnPropertyNames(e);for(const d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const l=pa(e,d,function(f){return function(...p){const h=f.apply(this,p);if(sf(h,a,this),"tagName"in this.canvas&&!oo(this.canvas,r,s,o,!0)){const g=of(p,a,this),S={type:t,property:d,args:g};n(this.canvas,S)}return h}});c.push(l)}catch{const f=fa(e,d,{set(p){n(this.canvas,{type:t,property:d,args:[p],setter:!0})}});c.push(f)}return c}function z0(e,t,n,r,s,o){const i=[];return i.push(...Qc(t.WebGLRenderingContext.prototype,Bn.WebGL,e,n,r,s,o,t)),typeof t.WebGL2RenderingContext<"u"&&i.push(...Qc(t.WebGL2RenderingContext.prototype,Bn.WebGL2,e,n,r,s,o,t)),()=>{i.forEach(a=>a())}}var j0='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 q0(){const e=new Blob([j0]);return URL.createObjectURL(e)}class G0{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,sn([this,"access",t=>t.worker,"optionalAccess",t=>t.terminate,"call",t=>t()]),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}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.processMutation=(l,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(f)};const{sampling:n="all",win:r,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:a,recordCanvas:c,dataURLOptions:u,errorHandler:d}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,d&&F0(d),(c&&typeof n=="number"||t.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!t.enableManualSnapshot&&Ro(()=>{c&&n==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),c&&typeof n=="number"&&this.initCanvasFPSObserver(n,s,o,i,a,{dataURLOptions:u})})()}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:s,unblockSelector:o,recordCanvas:i,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}Ro(()=>
32{if(i&&n==="all"&&this.initCanvasMutationObserver(t,r,s,o),i&&typeof n=="number"){const c=Zc(t,r,s,o,!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}initFPSWorker(){const t=new Worker(q0());return t.onmessage=n=>{const r=n.data,{id:s}=r;if(this.snapshotInProgressMap.set(s,!1),!("base64"in r))return;const{base64:o,type:i,width:a,height:c}=r;this.mutationCb({id:s,type:Bn["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:i}]},0,0,a,c]}]})},t}initCanvasFPSObserver(t,n,r,s,o,i){const a=this.takeSnapshot(!1,t,n,r,s,o,i.dataURLOptions);this.restoreHandlers.push(()=>{cancelAnimationFrame(a)})}initCanvasMutationObserver(t,n,r,s){const o=Zc(t,n,r,s,!1),i=H0(this.processMutation.bind(this),t,n,r,s),a=z0(this.processMutation.bind(this),t,n,r,s,this.mirror);this.restoreHandlers.push(()=>{o(),i(),a()})}snapshot(t){const{options:n}=this,r=this.takeSnapshot(!0,n.sampling==="all"?2:n.sampling||2,n.blockClass,n.blockSelector,n.unblockSelector,n.maxCanvasSize,n.dataURLOptions,t);this.restoreHandlers.push(()=>{cancelAnimationFrame(r)})}takeSnapshot(t,n,r,s,o,i,a,c){const u=1e3/n;let d=0,l;const f=h=>{if(h)return[h];const g=[],S=_=>{_.querySelectorAll("canvas").forEach(v=>{oo(v,r,s,o)||g.push(v)})};for(const _ of this.windows){const v=_.deref();v&&S(v.document)}for(const _ of this.shadowDoms){const v=_.deref();v&&S(v)}return g},p=h=>{if(this.windows.length){if(d&&h-d<u){l=Jt(p);return}
32d=h,f(c).forEach(g=>{if(!this.mirror.hasNode(g))return;const S=this.mirror.getId(g);if(!this.snapshotInProgressMap.get(S)&&!(!g.width||!g.height)){if(this.snapshotInProgressMap.set(S,!0),!t&&["webgl","webgl2"].includes(g.__context)){const _=g.getContext(g.__context);sn([_,"optionalAccess",v=>v.getContextAttributes,"call",v=>v(),"optionalAccess",v=>v.preserveDrawingBuffer])===!1&&_.clear(_.COLOR_BUFFER_BIT)}createImageBitmap(g).then(_=>{sn([this,"access",v=>v.worker,"optionalAccess",v=>v.postMessage,"call",v=>v({id:S,bitmap:_,width:g.width,height:g.height,dataURLOptions:a,maxCanvasSize:i},[_])])}).catch(_=>{Ro(()=>{throw _})()})}}),t||(l=Jt(p))}};return l=Jt(p),l}startPendingCanvasMutationFlusher(){Jt(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Jt(t)};Jt(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Jt(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const s=r.map(i=>{const{type:a,...c}=i;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:s}),this.pendingCanvasMutations.delete(t)}}const eu={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}}},V0="ReplayCanvas",Jr=1280,Y0=((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Jr):Jr,n?Math.min(n,Jr):Jr]};let s;const o=new Promise(i=>s=i);return{name:V0,getOptions(){const{quality:i,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const d=new G0({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:l=>{try{typeof l=="object"&&(l.__rrweb__=!0)}catch{}}});return s(d),d},...eu[i]||eu.medium}},async snapshot(i){(await o).snapshot(i)}}}),ZT=Y0,Ze=P,Q=Ze.document,Qn=Ze.navigator,cf="Report a Bug",X0="Cancel",K0="Send Bug Report",J0="Confirm",Z0="Report a Bug",Q0="[email protected]",ew="Email",tw="What's the bug? What did you expect?",nw="Description",rw="Your Name",sw="Name",ow="Thank you for your report!",iw="(required)",aw="Add a screenshot",cw="Remove screenshot",uw="widget",lw="api",dw=5e3,fw=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=x();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&W().setTags(e.tags);const r=qg({source:lw,url:Ti(),...e},t);return new Promise((s,o)=>{const i=setTimeout(()=>o("Unable to determine if Feedback was correctly sent."),5e3),a=n.on("afterSendEvent",(c,u)=>{if(c.event_id===r)return clearTimeout(i),a(),u&&typeof u.statusCode=="number"&&u.statusCode>=200&&u.statusCode<300?s(r):u&&typeof u.statusCode=="number"&&u.statusCode===0?o("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):u&&typeof u.statusCode=="number"&&u.statusCode===403?o("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):o("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")})})},us=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function pw(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Qn.userAgent)||/Macintosh/i.test(Qn.userAgent)&&Qn.maxTouchPoints&&Qn.maxTouchPoints>1||!isSecureContext)}function Zr(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:n=>{t.onSubmitSuccess&&t.onSubmitSuccess(n),e.onSubmitSuccess&&e.onSubmitSuccess(n)},onSubmitError:n=>{t.onSubmitError&&t.onSubmitError(n),e.onSubmitError&&e.onSubmitError(n)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function hw(e){const t=Q.createElement("style");return t.textContent=` 33.widget__actor { 34 position: fixed;
35 z-index: var(--z-index); 36 margin: var(--page-margin); 37 inset: var(--actor-inset); 38 39 display: flex; 40 align-items: center; 41 gap: 8px; 42 padding: 16px; 43 44 font-family: inherit; 45 font-size: var(--font-size); 46 font-weight: 600; 47 line-height: 1.14em; 48 text-decoration: none; 49 50 background: var(--actor-background, var(--background)); 51 border-radius: var(--actor-border-radius, 1.7em/50%); 52 border: var(--actor-border, var(--border)); 53 box-shadow: var(--actor-box-shadow, var(--box-shadow)); 54 color: var(--actor-color, var(--foreground)); 55 fill: var(--actor-color, var(--foreground)); 56 cursor: pointer; 57 opacity: 1; 58 transition: transform 0.2s ease-in-out; 59 transform: translate(0, 0) scale(1); 60} 61.widget__actor[aria-hidden="true"] { 62 opacity: 0; 63 pointer-events: none; 64 visibility: hidden; 65 transform: translate(0, 16px) scale(0.98); 66} 67 68.widget__actor:hover { 69 background: var(--actor-hover-background, var(--background)); 70 filter: var(--interactive-filter); 71} 72 73.widget__actor svg { 74 width: 1.14em; 75 height: 1.14em; 76} 77 78@media (max-width: 600px) { 79 .widget__actor span { 80 display: none; 81 } 82} 83`,e&&t.setAttribute("nonce",e),t}function Le(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const yn=20,mw="http://www.w3.org/2000/svg";function gw(){const e=a=>Ze.document.createElementNS(mw,a),t=Le(e("svg"),{width:`${yn}`,height:`${yn}`,viewBox:`0 0 ${yn} ${yn}`,fill:"var(--actor-color, var(--foreground))"}),n=Le(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Le(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);const s=e("defs"),o=Le(e("clipPath"),{id:"clip0_57_80"}),i=Le(e("rect"),{width:`${yn}`,height:`${yn}`,fill:"white"});return o.appendChild(i),s.appendChild(o),t.appendChild(s).appendChild(o).appendChild(i),t}function _w({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=Q.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||cf,s.appendChild(gw()),e){const i=Q.createElement("span");i.appendChild(Q.createTextNode(e)),s.appendChild(i)}const o=hw(r);return{el:s,appendToDom(){n.appendChild(o),n.appendChild(s)},removeFromDom(){n.removeChild(s),n.removeChild(o)},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const uf="rgba(88, 74, 192, 1)",yw={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackgroun
83d:uf,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%)"},tu={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:uf,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 nu(e){return` 84 --foreground: ${e.foreground}; 85 --background: ${e.background}; 86 --accent-foreground: ${e.accentForeground}; 87 --accent-background: ${e.accentBackground}; 88 --success-color: ${e.successColor}; 89 --error-color: ${e.errorColor}; 90 --border: ${e.border}; 91 --box-shadow: ${e.boxShadow}; 92 --outline: ${e.outline}; 93 --interactive-filter: ${e.interactiveFilter}; 94 `}function Sw({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const s=Q.createElement("style");return s.textContent=` 95:host { 96 --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; 97 --font-size: 14px; 98 --z-index: 100000; 99 100 --page-margin: 16px; 101 --inset: auto 0 0 auto; 102 --actor-inset: var(--inset); 103 104 font-family: var(--font-family); 105 font-size: var(--font-size); 106 107 ${e!=="system"?"color-scheme: only light;":""} 108 109 ${nu(e==="dark"?{...tu,...t}:{...yw,...n})} 110} 111 112${e==="system"?` 113@media (prefers-color-scheme: dark) { 114 :host { 115 ${nu({...tu,...t})} 116 } 117}`:""} 118} 119`,r&&s.setAttribute("nonce",r),s}const lf=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:s="sentry-feedback",autoInject:o=!0,showBranding:i=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:u=!0,showName:d=!0,enableScreenshot:l=!0,useSentryUser:f={email:"email",name:"username"},tags:p,styleNonce:h,scriptNonce:g,colorScheme:S="system",themeLight:_={},themeDark:v={},addScreenshotButtonLabel:O=aw,cancelButtonLabel:M=X0,confirmButtonLabel:k=J0,emailLabel:E=ew,emailPlaceholder:C=Q0,formTitle:R=Z0,isRequiredLabel:m=iw,messageLabel:b=nw,messagePlaceholder:T=tw,nameLabel:w=sw,namePlaceholder:B=rw,removeScreenshotButtonLabel:V=cw,submitButtonLabel:z=K0,successMessageText:A=ow,triggerLabel:ae=cf,triggerAriaLabel:F="",onFormOpen:ee,onFormClose:Te,onSubmitSuccess:ze,onSubmitError:Vt,onFormSubmitted:pn}={})=>{const je={id:s,autoInject:o,showBranding:i,isEmailRequired:a,isNameRequired:c,showEmail:u,showName:d,enableScreenshot:l,useSentryUser:f,tags:p,styleNonce:h,scriptNonce:g,colorScheme:S,themeDark:v,themeLight:_,triggerLabel:ae,triggerAriaLabel:F,cancelButtonLabel:M,submitButtonLabel:z,confirmButtonLabel:k,formTitle:R,emailLabel:E,emailPlaceholder:C,messageLabel:b,messagePlaceholder:T,nameLabel:w,namePlaceholder:B,successMessageText:A,isRequiredLabel:m,addScreenshotButtonLabel:O,removeScreenshotButtonLabel:V,onFormClose:Te,onFormOpen:ee,onSubmitError:Vt,onSubmitSuccess:ze,onFormSubmitted:pn};let Fe=null,rt=[];const hn=re=>{if(!Fe){const Ee=Q.createElement("div");Ee.id=String(re.id),Q.body.appendChild(Ee),Fe=Ee.attachShadow({mode:"open"}),Fe.appendChild(Sw(re))}return Fe},mn=async re=>{const Ee=re.enableScreenshot&&pw();let qe,me;try{qe=(t?t():await e("feedbackModalIntegration",g))(),Xa(qe)}catch{throw us&&y.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const $e=Ee?n?n():await e("feedbackScreenshotIntegration",g):void 0;$e&&(me=$e(),Xa(me))}catch{us&&y.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const ce=qe.createDialog({options:{...re,onFormClose:()=>{ce&&ce.close(),re.onFormClose&&re.onFormClose()},onFormSubmitted:()=>{ce&&ce.close(),re.onFormSubmitted&&re.onFormSubmitted()}},screenshotIntegration:me,sendFeedback:fw,shadow:hn(re)});return ce},Kn=(re,Ee={})=>{const qe=Zr(je,Ee),me=typeof re=="string"?Q.querySelector(re):typeof re.addEventListener=="function"?re:null;if(!me)throw us&&y.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let ce=null;const $e=async()=>{ce||(ce=await mn({...qe,onFormSubmitted:()=>{ce&&ce.removeFromDom(),qe.onFormSubmitted&&qe.onFormSubmitted()}})),ce.appendToDom(),ce.open()};me.addEventListener("click",$e);const Yt=()=>{rt=rt.filter(gn=>gn!==Yt),ce&&ce.removeFromDom(),ce=null,me.removeEventListener("click",$e)};return rt.push(Yt),Yt},Et=(re={})=>{const Ee=Zr(je,re),qe=hn(Ee),me=_w({triggerLabel:Ee.triggerLabel,triggerAriaLabel:Ee.triggerAriaLabel,shadow:qe,styleNonce:h});return Kn(me.el,{...Ee,onFormOpen(){me.hide()},onFormClose(){me.show()},onFormSubmitted(){me.show()}}),me};return{name:"Feedback",setupOnce(){!Qo()||!je.autoInject||(Q.readyState==="loading"?Q.addEventListener("DOMContentLoaded",()=>Et().appendToDom()):Et().appendToDom())},attachTo:Kn,createWidget(re={}){const Ee=Et(Zr(je,re));return Ee.appendToDom(),Ee},async createForm(re={}){return mn(Zr(je,re))},remove(){Fe&&(Fe.parentElement&&Fe.parentElement.remove(),Fe=null),rt.forEach(re=>re()),rt=[]}}});function QT(){const e=x();return e&&e.getIntegrationByName("Feedback")}var io,ne,df,Zt,ru,ff,_i,pr={},ha=[],bw=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ma=Array.isArray;function Rt(e,t){for(var n in t)e[n]=t[n];return e}function pf(e){var t=e.parentNode;t&&t.removeChild(e)}function q(e,t,n){var r,s,o,i={};
vendor: 5,691 bytes, line 119
119for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?io.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return ls(e,i,r,s,null)}function ls(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++df,__i:-1,__u:0};return s==null&&ne.vnode!=null&&ne.vnode(o),o}function Rr(e){return e.children}function ds(e,t){this.props=e,this.context=t}function Hn(e,t){if(t==null)return e.__?Hn(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"?Hn(e):null}function Ew(e,t,n){var r,s=e.__v,o=s.__e,i=e.__P;if(i)return(r=Rt({},s)).__v=s.__v+1,ne.vnode&&ne.vnode(r),ga(i,r,s,e.__n,i.ownerSVGElement!==void 0,32&s.__u?[o]:null,t,o??Hn(s),!!(32&s.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=o&&hf(r),r}function hf(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 hf(e)}}function su(e){(!e.__d&&(e.__d=!0)&&Zt.push(e)&&!Us.__r++||ru!==ne.debounceRendering)&&((ru=ne.debounceRendering)||ff)(Us)}function Us(){var e,t,n,r=[],s=[];for(Zt.sort(_i);e=Zt.shift();)e.__d&&(n=Zt.length,t=Ew(e,r,s)||t,n===0||Zt.length>n?(yi(r,t,s),s.length=r.length=0,t=void 0,Zt.sort(_i)):t&&ne.__c&&ne.__c(t,ha));t&&yi(r,t,s),Us.__r=0}function mf(e,t,n,r,s,o,i,a,c,u,d){var l,f,p,h,g,S=r&&r.__k||ha,_=t.length;for(n.__d=c,vw(n,t,S),c=n.__d,l=0;l<_;l++)(p=n.__k[l])!=null&&typeof p!="boolean"&&typeof p!="function"&&(f=p.__i===-1?pr:S[p.__i]||pr,p.__i=l,ga(e,p,f,s,o,i,a,c,u,d),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&_a(f.ref,null,p),d.push(p.ref,p.__c||h,p)),g==null&&h!=null&&(g=h),65536&p.__u||f.__k===p.__k?c=gf(p,c,e):typeof p.type=="function"&&p.__d!==void 0?c=p.__d:h&&(c=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=g}function vw(e,t,n){var r,s,o,i,a,c=t.length,u=n.length,d=u,l=0;for(e.__k=[],r=0;r<c;r++)(s=e.__k[r]=(s=t[r])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?ls(null,s,null,null,s):ma(s)?ls(Rr,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?ls(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,a=ww(s,n,i=r+l,d),s.__i=a,o=null,a!==-1&&(d--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&l--,typeof s.type!="function"&&(s.__u|=65536)):a!==i&&(a===i+1?l++:a>i?d>c-i?l+=a-i:l--:l=a<i&&a==i-1?a-i:0,a!==r+l&&(s.__u|=65536))):(o=n[r])&&o.key==null&&o.__e&&(o.__e==e.__d&&(e.__d=Hn(o)),Si(o,o,!1),n[r]=null,d--);if(d)for(r=0;r<u;r++)(o=n[r])!=null&&(131072&o.__u)==0&&(o.__e==e.__d&&(e.__d=Hn(o)),Si(o,o))}function gf(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=gf(r[s],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 ww(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,c=t[n];if(c===null||c&&s==c.key&&o===c.type)return n;if(r>(c!=null&&(131072&c.__u)==0?1:0))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&(131072&c.__u)==0&&s==c.key&&o===c.type)return i;i--}if(a<t.length){if((c=t[a])&&(131072&c.__u)==0&&s==c.key&&o===c.type)return a;a++}}return-1}function ou(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||bw.test(t)?n:n+"px"}function Qr(e,t,n,r,s){var o;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||ou(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ou(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=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+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?au:iu,o)):e.removeEventListener(t,o?au:iu,o);else{if(s)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 iu(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(ne.event?ne.event(e):e)}}function au(e){if(this.l)return this.l[e.type+!0](ne.event?ne.event(e):e)}function ga(e,t,n,r,s,o,i,a,c,u){var d,l,f,p,h,g,S,_,v,O,M,k,E,C,R,m=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=ne.__b)&&d(t);e:if(typeof m=="function")try{if(_=t.props,v=(d=m.contextType)&&r[d.__c],O=d?v?v.props.value:d.__:r,n.__c?S=(l=t.__c=n.__c).__=l.__E:("prototype"in m&&m.prototype.render?t.__c=l=new m(_,O):(t.__c=l=new ds(_,O),l.constructor=m,l.render=Tw),v&&v.sub(l),l.props=_,l.state||(l.state={}),l.context=O,l.__n=r,f=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),m.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Rt({},l.__s)),Rt(l.__s,m.getDerivedStateFromProps(_,l.__s))),p=l.props,h=l.state,l.__v=t,f)m.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(m.getDerivedStateFromProps==null&&_!==p&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(_,O),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(_,l.__s,O)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=_,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEac
vendor: 3,987 bytes, line 119
119h(function(b){b&&(b.__=t)}),M=0;M<l._sb.length;M++)l.__h.push(l._sb[M]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(_,l.__s,O),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(p,h,g)})}if(l.context=O,l.props=_,l.__P=e,l.__e=!1,k=ne.__r,E=0,"prototype"in m&&m.prototype.render){for(l.state=l.__s,l.__d=!1,k&&k(t),d=l.render(l.props,l.state,l.context),C=0;C<l._sb.length;C++)l.__h.push(l._sb[C]);l._sb=[]}else do l.__d=!1,k&&k(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++E<25);l.state=l.__s,l.getChildContext!=null&&(r=Rt(Rt({},r),l.getChildContext())),f||l.getSnapshotBeforeUpdate==null||(g=l.getSnapshotBeforeUpdate(p,h)),mf(e,ma(R=d!=null&&d.type===Rr&&d.key==null?d.props.children:d)?R:[R],t,n,r,s,o,i,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),S&&(l.__E=l.__=null)}catch(b){t.__v=null,c||o!=null?(t.__e=a,t.__u|=c?160:32,o[o.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),ne.__e(b,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Iw(n.__e,t,n,r,s,o,i,c,u);(d=ne.diffed)&&d(t)}function yi(e,t,n){for(var r=0;r<n.length;r++)_a(n[r],n[++r],n[++r]);ne.__c&&ne.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){ne.__e(o,s.__v)}})}function Iw(e,t,n,r,s,o,i,a,c){var u,d,l,f,p,h,g,S=n.props,_=t.props,v=t.type;if(v==="svg"&&(s=!0),o!=null){for(u=0;u<o.length;u++)if((p=o[u])&&"setAttribute"in p==!!v&&(v?p.localName===v:p.nodeType===3)){e=p,o[u]=null;break}}if(e==null){if(v===null)return document.createTextNode(_);e=s?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,_.is&&_),o=null,a=!1}if(v===null)S===_||a&&e.data===_||(e.data=_);else{if(o=o&&io.call(e.childNodes),S=n.props||pr,!a&&o!=null)for(S={},u=0;u<e.attributes.length;u++)S[(p=e.attributes[u]).name]=p.value;for(u in S)p=S[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=p:u==="key"||u in _||Qr(e,u,null,p,s));for(u in _)p=_[u],u=="children"?f=p:u=="dangerouslySetInnerHTML"?d=p:u=="value"?h=p:u=="checked"?g=p:u==="key"||a&&typeof p!="function"||S[u]===p||Qr(e,u,p,S[u],s);if(d)a||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),mf(e,ma(f)?f:[f],t,n,r,s&&v!=="foreignObject",o,i,o?o[0]:n.__k&&Hn(n,0),a,c),o!=null)for(u=o.length;u--;)o[u]!=null&&pf(o[u]);a||(u="value",h!==void 0&&(h!==e[u]||v==="progress"&&!h||v==="option"&&h!==S[u])&&Qr(e,u,h,S[u],!1),u="checked",g!==void 0&&g!==e[u]&&Qr(e,u,g,S[u],!1))}return e}function _a(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){ne.__e(r,n)}}function Si(e,t,n){var r,s;if(ne.unmount&&ne.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||_a(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){ne.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Si(r[s],t,n||typeof e.type!="function");n||e.__e==null||pf(e.__e),e.__=e.__e=e.__d=void 0}function Tw(e,t,n){return this.constructor(e,n)}function kw(e,t,n){var r,s,o,i;ne.__&&ne.__(e,t),s=(r=!1)?null:t.__k,o=[],i=[],ga(t,e=t.__k=q(Rr,null,[e]),s||pr,pr,t.ownerSVGElement!==void 0,s?null:t.firstChild?io.call(t.childNodes):null,o,s?s.__e:t.firstChild,r,i),e.__d=void 0,yi(o,e,i)}io=ha.slice,ne={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},df=0,ds.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Rt({},this.state),typeof e=="function"&&(e=e(Rt({},n),this.props)),e&&Rt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),su(this))},ds.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),su(this))},ds.prototype.render=Rr,Zt=[],ff=typeof Promise=="function"?Promise.prototype.then.bind(Prom
119ise.resolve()):setTimeout,_i=function(e,t){return e.__v.__b-t.__v.__b},Us.__r=0;var _t,te,Mo,cu,Wn=0,_f=[],fs=[],le=ne,uu=le.__b,lu=le.__r,du=le.diffed,fu=le.__c,pu=le.unmount,hu=le.__;function fn(e,t){le.__h&&le.__h(te,e,Wn||t),Wn=0;var n=te.__H||(te.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:fs}),n.__[e]}function xn(e){return Wn=1,yf(bf,e)}function yf(e,t,n){var r=fn(_t++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):bf(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=te,!te.u)){var s=function(a,c,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!o||o.call(this,a,c,u);var l=!1;return d.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(l=!0)}}),!(!l&&r.__c.props===a)&&(!o||o.call(this,a,c,u))};te.u=!0;var o=te.shouldComponentUpdate,i=te.componentWillUpdate;te.componentWillUpdate=function(a,c,u){if(this.__e){var d=o;o=void 0,s(a,c,u),o=d}i&&i.call(this,a,c,u)},te.shouldComponentUpdate=s}return r.__N||r.__}function Cw(e,t){var n=fn(_t++,3);!le.__s&&ya(n.__H,t)&&(n.__=e,n.i=t,te.__H.__h.push(n))}function Sf(e,t){var n=fn(_t++,4);!le.__s&&ya(n.__H,t)&&(n.__=e,n.i=t,te.__h.push(n))}function xw(e){return Wn=5,Mr(function(){return{current:e}},[])}function Rw(e,t,n){Wn=6,Sf(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 Mr(e,t){var n=fn(_t++,7);return ya(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Rn(e,t){return Wn=8,Mr(function(){return e},t)}function Mw(e){var t=te.context[e.__c],n=fn(_t++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(te)),t.props.value):e.__}function Aw(e,t){le.useDebugValue&&le.useDebugValue(t?t(e):e)}function Ow(e){var t=fn(_t++,10),n=xn();return t.__=e,te.componentDidCatch||(te.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Nw(){var e=fn(_t++,11);if(!e.__){for(var t=te.__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 Dw(){for(var e;e=_f.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ps),e.__H.__h.forEach(bi),e.__H.__h=[]}catch(t){e.__H.__h=[],le.__e(t,e.__v)}}le.__b=function(e){te=null,uu&&uu(e)},le.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),hu&&hu(e,t)},le.__r=function(e){lu&&lu(e),_t=0;var t=(te=e.__c).__H;t&&(Mo===te?(t.__h=[],te.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=fs,n.__N=n.i=void 0})):(t.__h.forEach(ps),t.__h.forEach(bi),t.__h=[],_t=0)),Mo=te},le.diffed=function(e){du&&du(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(_f.push(t)!==1&&cu===le.requestAnimationFrame||((cu=le.requestAnimationFrame)||Lw)(Dw)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==fs&&(n.__=n.__V),n.i=void 0,n.__V=fs})),Mo=te=null},le.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ps),n.__h=n.__h.filter(function(r){return!r.__||bi(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],le.__e(r,n.__v)}}),fu&&fu(e,t)},le.unmount=function(e){pu&&pu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ps(r)}catch(s){t=s}}),n.__H=void 0,t&&le.__e(t,n.__v))};var mu=typeof requestAnimationFrame=="function";function Lw(e){var t,n=function(){clearTimeout(r),mu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);mu&&(t=requestAnimationFrame(n))}function ps(e){var t=te,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),te=t}function bi(e){var t=te;e.__c=e.__(),te=t}function ya(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function bf(e,t){return typeof t=="function"?t(e):t}const Pw={__proto__:null,useCallback:Rn,useContext:Mw,useDebugValue:Aw,useEffect:Cw,useErrorBoundary:Ow,useId:Nw,useImperativeHandle:Rw,useLayoutEffect:Sf,useMemo:Mr,useReducer:yf,useRef:xw,useState:xn},Fw="http://www.w3.org/2000/svg";function $w(){const e=r=>Q.createElementNS(Fw,r),t=Le(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Le(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 Uw({options:e}){const t=Mr(()=>({__html:$w().outerHTML}),[]);return q("h2",{class:"dialog__header"},q("span",{class:"dialog__title"},e.formTitle),e.showBranding?q("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function Bw(e,t){const 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 Ao(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function Hw({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:s,onSubmitSuccess:o,onSubmitError:i,showEmail
119:a,showName:c,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:f,cancelButtonLabel:p,emailLabel:h,emailPlaceholder:g,isEmailRequired:S,isNameRequired:_,messageLabel:v,messagePlaceholder:O,nameLabel:M,namePlaceholder:k,submitButtonLabel:E,isRequiredLabel:C}=e,[R,m]=xn(null),[b,T]=xn(!1),w=u&&u.input,[B,V]=xn(null),z=Rn(F=>{V(F),T(!1)},[]),A=Rn(F=>{const ee=Bw(F,{emailLabel:h,isEmailRequired:S,isNameRequired:_,messageLabel:v,nameLabel:M});return ee.length>0?m(`Please enter in the following required fields: ${ee.join(", ")}`):m(null),ee.length===0},[h,S,_,v,M]),ae=Rn(async F=>{try{if(F.preventDefault(),!(F.target instanceof HTMLFormElement))return;const ee=new FormData(F.target),Te=await(u&&b?u.value():void 0),ze={name:Ao(ee,"name"),email:Ao(ee,"email"),message:Ao(ee,"message"),attachments:Te?[Te]:void 0};if(!A(ze))return;try{await s({name:ze.name,email:ze.email,message:ze.message,source:uw,tags:d},{attachments:ze.attachments}),o(ze)}catch(Vt){us&&y.error(Vt),m(Vt),i(Vt)}}catch{}},[u&&b,o,i]);return q("form",{class:"form",onSubmit:ae},w&&b?q(w,{onError:z}):null,q("div",{class:"form__right","data-sentry-feedback":!0},q("div",{class:"form__top"},R?q("div",{class:"form__error-container"},R):null,c?q("label",{for:"name",class:"form__label"},q(Oo,{label:M,isRequiredLabel:C,isRequired:_}),q("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:k,required:_,type:"text"})):q("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?q("label",{for:"email",class:"form__label"},q(Oo,{label:h,isRequiredLabel:C,isRequired:S}),q("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:S,type:"email"})):q("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),q("label",{for:"message",class:"form__label"},q(Oo,{label:v,isRequiredLabel:C,isRequired:!0}),q("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:O,required:!0,rows:5})),w?q("label",{for:"screenshot",class:"form__label"},q("button",{class:"btn btn--default",type:"button",onClick:()=>{V(null),T(F=>!F)}},b?f:l),B?q("div",{class:"form__error-container"},B.message):null):null),q("div",{class:"btn-group"},q("button",{class:"btn btn--primary",type:"submit"},E),q("button",{class:"btn btn--default",type:"button",onClick:r},p))))}function Oo({label:e,isRequired:t,isRequiredLabel:n}){return q("span",{class:"form__label__text"},e,t&&q("span",{class:"form__label__text--required"},n))}const es=16,gu=17,Ww="http://www.w3.org/2000/svg";function zw(){const e=c=>Ze.document.createElementNS(Ww,c),t=Le(e("svg"),{width:`${es}`,height:`${gu}`,viewBox:`0 0 ${es} ${gu}`,fill:"inherit"}),n=Le(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Le(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"}),s=Le(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
11910.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(s,r);const o=e("defs"),i=Le(e("clipPath"),{id:"clip0_57_156"}),a=Le(e("rect"),{width:`${es}`,height:`${es}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(a),t}function jw({open:e,onFormSubmitted:t,...n}){const r=n.options,s=Mr(()=>({__html:zw().outerHTML}),[]),[o,i]=xn(null),a=Rn(()=>{o&&(clearTimeout(o),i(null)),t()},[o]),c=Rn(u=>{n.onSubmitSuccess(u),i(setTimeout(()=>{t(),i(null)},dw))},[t]);return q(Rr,null,o?q("div",{class:"success__position",onClick:a},q("div",{class:"success__content"},r.successMessageText,q("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):q("dialog",{class:"dialog",onClick:r.onFormClose,open:e},q("div",{class:"dialog__position"},q("div",{class:"dialog__content",onClick:u=>{u.stopPropagation()}},q(Uw,{options:r}),q(Hw,{...n,onSubmitSuccess:c})))))}const qw=` 120.dialog { 121 position: fixed; 122 z-index: var(--z-index); 123 margin: 0; 124 inset: 0; 125 126 display: flex; 127 align-items: center; 128 justify-content: center; 129 padding: 0; 130 height: 100vh; 131 width: 100vw; 132 133 color: var(--dialog-color, var(--foreground)); 134 fill: var(--dialog-color, var(--foreground)); 135 line-height: 1.75em; 136 137 background-color: rgba(0, 0, 0, 0.05); 138 border: none; 139 inset: 0; 140 opacity: 1; 141 transition: opacity 0.2s ease-in-out; 142} 143 144.dialog__position { 145 position: fixed; 146 z-index: var(--z-index); 147 inset: var(--dialog-inset); 148 padding: var(--page-margin); 149 display: flex; 150 max-height: calc(100vh - (2 * var(--page-margin))); 151} 152@media (max-width: 600px) { 153 .dialog__position { 154 inset: var(--page-margin); 155 padding: 0; 156 } 157} 158 159.dialog__position:has(.editor) { 160 inset: var(--page-margin); 161 padding: 0; 162} 163 164.dialog:not([open]) { 165 opacity: 0; 166 pointer-events: none; 167 visibility: hidden; 168} 169.dialog:not([open]) .dialog__content { 170 transform: translate(0, -16px) scale(0.98); 171} 172 173.dialog__content { 174 display: flex; 175 flex-direction: column; 176 gap: 16px; 177 padding: var(--dialog-padding, 24px); 178 max-width: 100%; 179 width: 100%; 180 max-height: 100%; 181 overflow: auto; 182 183 background: var(--dialog-background, var(--background)); 184 border-radius: var(--dialog-border-radius, 20px); 185 border: var(--dialog-border, var(--border));
186 box-shadow: var(--dialog-box-shadow, var(--box-shadow)); 187 transform: translate(0, 0) scale(1); 188 transition: transform 0.2s ease-in-out; 189} 190 191`,Gw=` 192.dialog__header { 193 display: flex; 194 gap: 4px; 195 justify-content: space-between; 196 font-weight: var(--dialog-header-weight, 600); 197 margin: 0; 198} 199.dialog__title { 200 align-self: center; 201 width: var(--form-width, 272px); 202} 203 204@media (max-width: 600px) { 205 .dialog__title { 206 width: auto; 207 } 208} 209 210.dialog__position:has(.editor) .dialog__title { 211 width: auto; 212} 213 214 215.brand-link { 216 display: inline-flex; 217} 218.brand-link:focus-visible { 219 outline: var(--outline); 220} 221`,Vw=` 222.form { 223 display: flex; 224 overflow: auto; 225 flex-direction: row; 226 gap: 16px; 227 flex: 1 0; 228} 229 230.form__right { 231 flex: 0 0 auto; 232 display: flex; 233 overflow: auto; 234 flex-direction: column; 235 justify-content: space-between; 236 gap: 20px; 237 width: var(--form-width, 100%); 238} 239 240.dialog__position:has(.editor) .form__right { 241 width: var(--form-width, 272px); 242} 243 244.form__top { 245 display: flex; 246 flex-direction: column; 247 gap: 8px; 248} 249 250.form__error-container { 251 color: var(--error-color); 252 fill: var(--error-color); 253} 254 255.form__label { 256 display: flex; 257 flex-direction: column; 258 gap: 4px; 259 margin: 0px; 260} 261 262.form__label__text { 263 display: flex; 264 gap: 4px; 265 align-items: center; 266} 267 268.form__label__text--required { 269 font-size: 0.85em; 270} 271 272.form__input { 273 font-family: inherit; 274 line-height: inherit; 275 background: transparent; 276 box-sizing: border-box; 277 border: var(--input-border, var(--border)); 278 border-radius: var(--input-border-radius, 6px); 279 color: var(--input-color, inherit); 280 fill: var(--input-color, inherit); 281 font-size: var(--input-font-size, inherit); 282 font-weight: var(--input-font-weight, 500); 283 padding: 6px 12px; 284} 285 286.form__input::placeholder { 287 opacity: 0.65; 288 color: var(--input-placeholder-color, inherit); 289 filter: var(--interactive-filter); 290} 291 292.form__input:focus-visible { 293 outline: var(--input-focus-outline, var(--outline)); 294} 295 296.form__input--textarea { 297 font-family: inherit; 298 resize: vertical; 299} 300 301.error { 302 color: var(--error-color); 303 fill: var(--error-color); 304} 305`,Yw=` 306.btn-group { 307 display: grid; 308 gap: 8px; 309} 310 311.btn { 312 line-height: inherit; 313 border: var(--button-border, var(--border)); 314 border-radius: var(--button-border-radius, 6px); 315 cursor: pointer; 316 font-family: inherit; 317 font-size: var(--button-font-size, inherit); 318 font-weight: var(--button-font-weight, 600); 319 padding: var(--button-padding, 6px 16px); 320} 321.btn[disabled] { 322 opacity: 0.6; 323 pointer-events: none; 324} 325 326.btn--primary { 327 color: var(--button-primary-color, var(--accent-foreground)); 328 fill: var(--button-primary-color, var(--accent-foreground)); 329 background: var(--button-primary-background, var(--accent-background)); 330 border: var(--button-primary-border, var(--border)); 331 border-radius: var(--button-primary-border-radius, 6px); 332 font-weight: var(--button-primary-font-weight, 500); 333} 334.btn--primary:hover { 335 color: var(--button-primary-hover-color, var(--accent-foreground)); 336 fill: var(--button-primary-hover-color, var(--accent-foreground)); 337 background: var(--button-primary-hover-background, var(--accent-background)); 338 filter: var(--interactive-filter); 339} 340.btn--primary:focus-visible { 341 background: var(--button-primary-hover-background, var(--accent-background)); 342 filter: var(--interactive-filter); 343 outline: var(--button-primary-focus-outline, var(--outline)); 344} 345 346.btn--default { 347 color: var(--button-color, var(--foreground)); 348 fill: var(--button-color, var(--foreground)); 349 background: var(--button-background, var(--background)); 350 border: var(--button-border, var(--border)); 351 border-radius: var(--button-border-radius, 6px); 352 font-weight: var(--button-font-weight, 500); 353} 354.btn--default:hover { 355 color: var(--button-color, var(--foreground)); 356 fill: var(--button-color, var(--foreground)); 357 background: var(--button-hover-background, var(--background)); 358 filter: var(--interactive-filter); 359} 360.btn--default:focus-visible { 361 background: var(--button-hover-background, var(--background)); 362 filter: var(--interactive-filter); 363 outline: var(--button-focus-outline, var(--outline)); 364} 365`,Xw=` 366.success__position { 367 position: fixed; 368 inset: var(--dialog-inset); 369 padding: var(--page-margin); 370 z-index: var(--z-index); 371} 372.success__content { 373 background: var(--success-background, var(--background)); 374 border: var(--success-border, var(--border)); 375 border-radius: var(--success-border-radius, 1.7em/50%);
376 box-shadow: var(--success-box-shadow, var(--box-shadow)); 377 font-weight: var(--success-font-weight, 600); 378 color: var(--success-color); 379 fill: var(--success-color); 380 padding: 12px 24px; 381 line-height: 1.75em; 382 383 display: grid; 384 align-items: center; 385 grid-auto-flow: column; 386 gap: 6px; 387 cursor: default; 388} 389 390.success__icon { 391 display: flex; 392} 393`;function Kw(e){const t=Q.createElement("style");return t.textContent=` 394:host { 395 --dialog-inset: var(--inset); 396} 397 398${qw} 399${Gw} 400${Vw} 401${Yw} 402${Xw} 403`,e&&t.setAttribute("nonce",e),t}function Jw(){const e=W().getUser(),t=be().getUser(),n=xi().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const Zw=(()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const s=r,o=e.useSentryUser,i=Jw(),a=Q.createElement("div"),c=Kw(e.styleNonce);let u="";const d={get el(){return a},appendToDom(){!s.contains(c)&&!s.contains(a)&&(s.appendChild(c),s.appendChild(a))},removeFromDom(){s.removeChild(a),s.removeChild(c),Q.body.style.overflow=u},open(){f(!0),e.onFormOpen&&e.onFormOpen(),u=Q.body.style.overflow,Q.body.style.overflow="hidden"},close(){f(!1),Q.body.style.overflow=u}},l=t&&t.createInput({h:q,hooks:Pw,dialog:d,options:e}),f=p=>{kw(q(jw,{options:e,screenshotInput:l,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:o&&i&&i[o.name]||"",defaultEmail:o&&i&&i[o.email]||"",onFormClose:()=>{f(!1),e.onFormClose&&e.onFormClose()},onSubmit:n,onSubmitSuccess:h=>{f(!1),e.onSubmitSuccess&&e.onSubmitSuccess(h)},onSubmitError:h=>{e.onSubmitError&&e.onSubmitError(h)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:p}),a)};return d}}));function Qw({h:e}){return function({top:n,left:r,corner:s,onGrabButton:o}){return e("button",{class:`editor__crop-corner editor__crop-corner--${s} `,style:{top:n,left:r},onMouseDown:i=>{i.preventDefault(),o(i,s)},onClick:i=>{i.preventDefault()}})}}function eI(e){const t=Q.createElement("style"),n="#1A141F",r="#302735";return t.textContent=` 404.editor { 405 padding: 10px; 406 padding-top: 65px; 407 padding-bottom: 65px; 408 flex-grow: 1; 409 410 background-color: ${n}; 411 background-image: repeating-linear-gradient( 412 -145deg, 413 transparent, 414 transparent 8px, 415 ${n} 8px, 416 ${n} 11px 417 ), 418 repeating-linear-gradient( 419 -45deg, 420 transparent, 421 transparent 15px, 422 ${r} 15px, 423 ${r} 16px 424 ); 425} 426 427.editor__canvas-container { 428 width: 100%; 429 height: 100%; 430 position: relative; 431 display: flex; 432 align-items: center; 433 justify-content: center; 434} 435 436.editor__canvas-container canvas { 437 object-fit: contain; 438 position: relative; 439} 440 441.editor__crop-btn-group { 442 padding: 8px; 443 gap: 8px; 444 border-radius: var(--menu-border-radius, 6px); 445 background: var(--button-primary-background, var(--background)); 446 width: 175px; 447 position: absolute; 448} 449 450.editor__crop-corner { 451 width: 30px; 452 height: 30px; 453 position: absolute; 454 background: none; 455 border: 3px solid #ffffff; 456} 457 458.editor__crop-corner--top-left { 459 cursor: nwse-resize; 460 border-right: none; 461 border-bottom: none; 462} 463.editor__crop-corner--top-right { 464 cursor: nesw-resize; 465 border-left: none; 466 border-bottom: none; 467} 468.editor__crop-corner--bottom-left { 469 cursor: nesw-resize; 470 border-right: none; 471 border-top: none; 472} 473.editor__crop-corner--bottom-right { 474 cursor: nwse-resize; 475 border-left: none; 476 border-top: none; 477} 478`,e&&t.setAttribute("nonce",e),t}function tI({hooks:e}){return function({onBeforeScreenshot:n,onScreenshot:r,onAfterScreenshot:s,onError:o}){e.useEffect(()=>{(async()=>{n();const a=await Qn.mediaDevices.getDisplayMedia({video:{width:Ze.innerWidth*Ze.devicePixelRatio,height:Ze.innerHeight*Ze.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),c=Q.createElement("video");await new Promise((u,d)=>{c.srcObject=a,c.onloadedmetadata=()=>{r(c),a.getTracks().forEach(l=>l.stop()),u()},c.play().catch(d)}),s()})().catch(o)},[])}}const er=30,ot=3,vt=er+ot,Ae=Ze.devicePixelRatio,Zn=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),No=e=>{const t=e.clientHeight,n=e.clientWidth,r=e.width/e.height;let s=t*r,o=t;s>n&&(s=n,o=n/r);const i=(n-s)/2,a=(t-o)/2;return{startX:i,startY:a,endX:s+i,endY:o+a}};function nI({h:e,hooks:t,imageBuffer:n,dialog:r,options:s}){const o=tI({hooks:t});return function({onError:a}){const c=t.useMemo(()=>({__html:eI(s.styleNonce).innerText}),[]),u=Qw({h:e}),d=t.useRef(null),l=t.useRef(null),f=t.useRef(null),[p,h]=t.useState({startX:0,startY:0,endX:0,endY:0}),[g,S]=t.useState(!1),[_,v]=t.useState(!1);t.useEffect(()=>{Ze.addEventListener("resize",O,!1)},[]);function O(){const m=f.current,b=Zn(No(n));
478if(m){m.width=b.width*Ae,m.height=b.height*Ae,m.style.width=`${b.width}px`,m.style.height=`${b.height}px`;const w=m.getContext("2d");w&&w.scale(Ae,Ae)}const T=l.current;T&&(T.style.width=`${b.width}px`,T.style.height=`${b.height}px`),h({startX:0,startY:0,endX:b.width,endY:b.height})}t.useEffect(()=>{const m=f.current;if(!m)return;const b=m.getContext("2d");if(!b)return;const T=Zn(No(n)),w=Zn(p);b.clearRect(0,0,T.width,T.height),b.fillStyle="rgba(0, 0, 0, 0.5)",b.fillRect(0,0,T.width,T.height),b.clearRect(w.x,w.y,w.width,w.height),b.strokeStyle="#ffffff",b.lineWidth=3,b.strokeRect(w.x+1,w.y+1,w.width-2,w.height-2),b.strokeStyle="#000000",b.lineWidth=1,b.strokeRect(w.x+3,w.y+3,w.width-6,w.height-6)},[p]);function M(m,b){S(!1),v(!0);const T=k(b),w=()=>{Q.removeEventListener("mousemove",T),Q.removeEventListener("mouseup",w),S(!0),v(!1)};Q.addEventListener("mouseup",w),Q.addEventListener("mousemove",T)}const k=t.useCallback(m=>function(b){if(!f.current)return;const T=f.current,w=T.getBoundingClientRect(),B=b.clientX-w.x,V=b.clientY-w.y;switch(m){case"top-left":h(z=>({...z,startX:Math.min(Math.max(0,B),z.endX-vt),startY:Math.min(Math.max(0,V),z.endY-vt)}));break;case"top-right":h(z=>({...z,endX:Math.max(Math.min(B,T.width/Ae),z.startX+vt),startY:Math.min(Math.max(0,V),z.endY-vt)}));break;case"bottom-left":h(z=>({...z,startX:Math.min(Math.max(0,B),z.endX-vt),endY:Math.max(Math.min(V,T.height/Ae),z.startY+vt)}));break;case"bottom-right":h(z=>({...z,endX:Math.max(Math.min(B,T.width/Ae),z.startX+vt),endY:Math.max(Math.min(V,T.height/Ae),z.startY+vt)}));break}},[]),E=t.useRef({initialX:0,initialY:0});function C(m){if(_)return;E.current={initialX:m.clientX,initialY:m.clientY};const b=w=>{const B=f.current;if(!B)return;const V=w.clientX-E.current.initialX,z=w.clientY-E.current.initialY;h(A=>{const ae=Math.max(0,Math.min(A.startX+V,B.width/Ae-(A.endX-A.startX))),F=Math.max(0,Math.min(A.startY+z,B.height/Ae-(A.endY-A.startY))),ee=ae+(A.endX-A.startX),Te=F+(A.endY-A.startY);return E.current.initialX=w.clientX,E.current.initialY=w.clientY,{startX:ae,startY:F,endX:ee,endY:Te}})},T=()=>{Q.removeEventListener("mousemove",b),Q.removeEventListener("mouseup",T)};Q.addEventListener("mousemove",b),Q.addEventListener("mouseup",T)}function R(){const m=Q.createElement("canvas"),b=Zn(No(n)),T=Zn(p);m.width=T.width*Ae,m.height=T.height*Ae;const w=m.getContext("2d");w&&n&&w.drawImage(n,T.x/b.width*n.width,T.y/b.height*n.height,T.width/b.width*n.width,T.height/b.height*n.height,0,0,m.width,m.height);const B=n.getContext("2d");B&&(B.clearRect(0,0,n.width,n.height),n.width=m.width,n.height=m.height,n.style.width=`${T.width}px`,n.style.height=`${T.height}px`,B.drawImage(m,0,0),O())}return o({onBeforeScreenshot:t.useCallback(()=>{r.el.style.display="none"},[]),onScreenshot:t.useCallback(m=>{const b=n.getContext("2d");if(!b)throw new Error("Could not get canvas context");n.width=m.videoWidth,n.height=m.videoHeight,n.style.width="100%",n.style.height="100%",b.drawImage(m,0,0)},[n]),onAfterScreenshot:t.useCallback(()=>{r.el.style.display="block";const m=d.current;m&&m.appendChild(n),O()},[]),onError:t.useCallback(m=>{r.el.style.display="block",a(m)},[])}),e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__canvas-container",ref:d},e("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:l},e("canvas",{onMouseDown:C,style:{position:"absolute",cursor:g?"move":"auto"},ref:f}),e(u,{left:p.startX-ot,top:p.startY-ot,onGrabButton:M,corner:"top-left"}),e(u,{left:p.endX-er+ot,top:p.startY-ot,onGrabButton:M,corner:"top-right"}),e(u,{left:p.startX-ot,top:p.endY-er+ot,onGrabButton:M,corner:"bottom-left"}),e(u,{left:p.endX-er+ot,top:p.endY-er+ot,onGrabButton:M,corner:"bottom-right"}),e("div",{style:{left:Math.max(0,p.endX-191),top:Math.max(0,p.endY+8),display:g?"flex":"none"},class:"editor__crop-btn-group"},e("button",{onClick:m=>{m.preventDefault(),f.current&&h({startX:0,startY:0,endX:f.current.width/Ae,endY:f.current.height/Ae}),S(!1)},class:"btn btn--default"},s.cancelButtonLabel),e("button",{onClick:m=>{m.preventDefault(),R(),S(!1)},class:"btn btn--primary"},s.confirmButtonLabel)))))}}const rI=(()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const s=Q.createElement("canvas");return{input:nI({h:e,hooks:t,imageBuffer:s,dialog:n,options:r}),value:async()=>{const o=await new Promise(i=>{s.toBlob(i,"image/png")});if(o)return{data:new Uint8Array(await o.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}})),e1=lf({lazyLoadIntegration:$S}),t1=lf({getModalIntegration:()=>Zw,getScreenshotIntegration:()=>rI});function sI(e,t=1,n){Er.increment(vr,e,t,n)}
478function oI(e,t,n){Er.distribution(vr,e,t,n)}function iI(e,t,n){Er.set(vr,e,t,n)}function aI(e,t,n){Er.gauge(vr,e,t,n)}function cI(e,t,n="second",r){return Er.timing(vr,e,t,n,r)}const n1={increment:sI,distribution:oI,set:iI,gauge:aI,timing:cI},_u=new WeakMap,Do=new Map,hs={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function uI(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:o,enableHTTPTimings:i,tracePropagationTargets:a}={traceFetch:hs.traceFetch,traceXHR:hs.traceXHR,trackFetchStreamPerformance:hs.trackFetchStreamPerformance,...t},c=typeof o=="function"?o:l=>!0,u=l=>fI(l,a),d={};n&&(e.addEventProcessor(l=>(l.type==="transaction"&&l.spans&&l.spans.forEach(f=>{if(f.op==="http.client"){const p=Do.get(f.span_id);p&&(f.timestamp=p/1e3,Do.delete(f.span_id))}}),l)),s&&Xg(l=>{if(l.response){const f=_u.get(l.response);f&&l.endTimestamp&&Do.set(f,l.endTimestamp)}}),Wi(l=>{const f=Ug(l,c,u,d);if(l.response&&l.fetchData.__span&&_u.set(l.response,l.fetchData.__span),f){const p=Ef(l.fetchData.url),h=p?rn(p).host:void 0;f.setAttributes({"http.url":p,"server.address":h})}i&&f&&yu(f)})),r&&Ki(l=>{const f=pI(l,c,u,d);i&&f&&yu(f)})}function lI(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function yu(e){const{url:t}=H(e).data||{};if(!t||typeof t!="string")return;const n=Dn("resource",({entries:r})=>{r.forEach(s=>{lI(s)&&s.name.endsWith(t)&&(dI(s).forEach(i=>e.setAttribute(...i)),setTimeout(n))})})}function Ke(e=0){return((Ie||performance.timeOrigin)+e)/1e3}function dI(e){const{name:t,version:n}=nd(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Ie?[...r,["http.request.redirect_start",Ke(e.redirectStart)],["http.request.fetch_start",Ke(e.fetchStart)],["http.request.domain_lookup_start",Ke(e.domainLookupStart)],["http.request.domain_lookup_end",Ke(e.domainLookupEnd)],["http.request.connect_start",Ke(e.connectStart)],["http.request.secure_connection_start",Ke(e.secureConnectionStart)],["http.request.connection_end",Ke(e.connectEnd)],["http.request.request_start",Ke(e.requestStart)],["http.request.response_start",Ke(e.responseStart)],["http.request.response_end",Ke(e.responseEnd)]]:r}function fI(e,t){const n=I.location&&I.location.href;if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const o=r.origin===s;return t?Ot(r.toString(),t)||o&&Ot(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?Ot(e,t):r}}function pI(e,t,n,r){const s=e.xhr,o=s&&s[xt];if(!s||s.__sentry_own_request__||!o)return;const i=Bt()&&t(o.url);if(e.endTimestamp&&i){const l=s.__sentry_xhr_span_id__;if(!l)return;const f=r[l];f&&o.status_code!==void 0&&(Wu(f,o.status_code),f.end(),delete r[l]);return}const a=Ef(o.url),c=a?rn(a).host:void 0,u=!!de(),d=i&&u?Qe({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":a,url:o.url,"server.address":c,[Z]:"auto.http.browser",[Me]:"http.client"}}):new qt;return s.__sentry_xhr_span_id__=d.spanContext().spanId,r[s.__sentry_xhr_span_id__]=d,n(o.url)&&hI(s,Bt()&&u?d:void 0),d}function hI(e,t){const{"sentry-trace":n,baggage:r}=kl({span:t});n&&mI(e,n,r)}function mI(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function Ef(e){try{return new URL(e,I.location.origin).href}catch{return}}function gI(){I&&I.document?I.document.addEventListener("visibilitychange",()=>{const e=de();if(!e)return;const t=he(e);if(I.document.hidden&&t){const n="cancelled",{op:r,status:s}=H(t);G&&y.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:ye,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):G&&y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const _I="BrowserTracing",yI={...rs,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...hs},Ar=((e={})=>{Qu();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:s,enableStandaloneClsSpans:o},beforeStartSpan:i,idleTimeout:a,finalTimeout:c,childSpanTimeout:u,markBackgroun
478dSpan:d,traceFetch:l,traceXHR:f,trackFetchStreamPerformance:p,shouldCreateSpanForRequest:h,enableHTTPTimings:g,instrumentPageLoad:S,instrumentNavigation:_}={...yI,...e},v=sy({recordClsStandaloneSpans:o||!1});t&&Ry(),r&&P.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?iy():n&&oy(),s&&ay();const O={name:void 0,source:void 0};function M(k,E){const C=E.op==="pageload",R=i?i(E):E,m=R.attributes||{};E.name!==R.name&&(m[pe]="custom",R.attributes=m),O.name=R.name,O.source=m[pe];const b=dl(R,{idleTimeout:a,finalTimeout:c,childSpanTimeout:u,disableAutoFinish:C,beforeSpanEnd:w=>{v(),fy(w,{recordClsOnPageloadSpan:!o})}});function T(){["interactive","complete"].includes(I.document.readyState)&&k.emit("idleSpanEnableAutoFinish",b)}return C&&I.document&&(I.document.addEventListener("readystatechange",()=>{T()}),T()),b}return{name:_I,afterAllSetup(k){let E,C=I.location&&I.location.href;function R(){E&&!H(E).timestamp&&(G&&y.log(`[Tracing] Finishing current active span with op: ${H(E).op}`),E.end())}k.on("startNavigationSpan",m=>{x()===k&&(R(),E=M(k,{op:"navigation",...m}))}),k.on("startPageLoadSpan",(m,b={})=>{if(x()!==k)return;R();const T=b.sentryTrace||Su("sentry-trace"),w=b.baggage||Su("baggage"),B=Gu(T,w);W().setPropagationContext(B),E=M(k,{op:"pageload",...m})}),k.on("spanEnd",m=>{const b=H(m).op;if(m!==he(m)||b!=="navigation"&&b!=="pageload")return;const T=W(),w=T.getPropagationContext();T.setPropagationContext({...w,sampled:w.sampled!==void 0?w.sampled:un(m),dsc:w.dsc||Gt(m)})}),I.location&&(S&&Or(k,{name:I.location.pathname,startTime:Ie?Ie/1e3:void 0,attributes:{[pe]:"url",[Z]:"auto.pageload.browser"}}),_&&Js(({to:m,from:b})=>{if(b===void 0&&C&&C.indexOf(m)!==-1){C=void 0;return}b!==m&&(C=void 0,Nr(k,{name:I.location.pathname,attributes:{[pe]:"url",[Z]:"auto.navigation.browser"}}))})),d&&gI(),s&&SI(a,c,u,O),t&&Ay(),uI(k,{traceFetch:l,traceXHR:f,trackFetchStreamPerformance:p,tracePropagationTargets:k.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:h,enableHTTPTimings:g})}}});function Or(e,t,n){e.emit("startPageLoadSpan",t,n),W().setTransactionName(t.name);const r=de();return(r&&H(r).op)==="pageload"?r:void 0}function Nr(e,t){be().setPropagationContext({traceId:mt()}),W().setPropagationContext({traceId:mt()}),e.emit("startNavigationSpan",t),W().setTransactionName(t.name);const n=de();return(n&&H(n).op)==="navigation"?n:void 0}function Su(e){const t=rp(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function SI(e,t,n,r){let s;const o=()=>{const i="ui.action.click",a=de(),c=a&&he(a);if(c){const u=H(c).op;if(["navigation","pageload"].includes(u)){G&&y.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Ho,"interactionInterrupted"),s.end(),s=void 0),!r.name){G&&y.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}s=dl({name:r.name,op:i,attributes:{[pe]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};I.document&&addEventListener("click",o,{once:!1,capture:!0})}function zn(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function bI(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=zn(n);return s=>r.then(o=>s(o.transaction(t,"readwrite").objectStore(t)))}function Sa(e){return zn(e.getAllKeys())}function EI(e,t,n){return e(r=>Sa(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.max(...s,0)+1),zn(r.transaction)}))}function vI(e,t,n){return e(r=>Sa(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.min(...s,0)-1),zn(r.transaction)}))}function wI(e){return e(t=>Sa(t).then(n=>{const r=n[0];if(r!=null)return zn(t.get(r)).then(s=>(t.delete(r),zn(t.transaction).then(()=>s)))}))}function II(e){let t;function n(){return t==null&&(t=bI(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const s=await Is(r);await EI(n(),s,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const s=await Is(r);await vI(n(),s,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await wI(n());if(r)return Qp(r)}catch{}}}}function TI(e){return t=>{const n=e({...t,createStore:II});return I.addEventListener("online",async r=>{await n.flush()}),n}}function r1(e=sd){return TI(am(e))}const bu=1e6,ms=String(0),kI="main";let vf="",wf="",If="",Ei=I.navigator&&I.navigator.userAgent||"",Tf="";const CI=I.navigator&&I.navigator.language||I.navigator&&I.navigator.languages&&I.navigator.languages[0]||"";function xI(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const Eu=I.navigator&&I.navigator.userAgentData;xI(Eu)&&Eu.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(vf=e.platform||"",If=e.architecture||"",Tf=e.model||"",wf=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];Ei=`${t.brand} ${t.version}`}}).catch(e=>{});function RI(e){return!("thread_metadata"in e)}function MI(e){return RI(e)?NI(e):e}function AI(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return typeof t=="string"&&t.length!==32&&G&&y.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function OI(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.`);const s=AI(r),o=MI(n),i=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:ie()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:ie()*1e3;return{event_id:e,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Gs,runtime:{name:"javascript",version:I.navigator.userAgent},os:{name:vf,version:wf,build_number:Ei},device:{locale:CI,model:Tf,manufacturer:Ei,architecture:If,is_emulator:!1},debug_meta:{images:PI(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||Re(),trace_id:s,active_thread_id:ms,relative_start_ns:"0",relative_end_ns:((a-i)*1e6).toFixed(0)}]}}function kf(e){return H(e).op==="pageload"}function NI(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[ms]:{name:kI}}},s=e.samples[0];if(!s)return r;const o=s.timestamp,i=typeof performance.timeOrigin=="number"?performance.timeOrigin:Ie||0,a=i-(Ie||i);
478return e.samples.forEach((c,u)=>{if(c.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[u]={elapsed_since_start_ns:((c.timestamp+a-o)*bu).toFixed(0),stack_id:t,thread_id:ms};return}let d=e.stacks[c.stackId];const l=[];for(;d;){l.push(d.frameId);const p=e.frames[d.frameId];p&&r.frames[d.frameId]===void 0&&(r.frames[d.frameId]={function:p.name,abs_path:typeof p.resourceId=="number"?e.resources[p.resourceId]:void 0,lineno:p.line,colno:p.column}),d=d.parentId===void 0?void 0:e.stacks[d.parentId]}const f={elapsed_since_start_ns:((c.timestamp+a-o)*bu).toFixed(0),stack_id:n,thread_id:ms};r.stacks[n]=l,r.samples[u]=f,n++}),r}function DI(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function LI(e){const t=[];return cn(e,(n,r)=>{if(r==="transaction")for(let s=1;s<n.length;s++){const o=n[s];o&&o.contexts&&o.contexts.profile&&o.contexts.profile.profile_id&&t.push(n[s])}}),t}function PI(e){const t=x(),n=t&&t.getOptions(),r=n&&n.stackParser;return r?_h(r,e):[]}function FI(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(G&&y.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?(G&&y.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function $I(e){return e.samples.length<2?(G&&y.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(G&&y.log("[Profiling] Discarding profile because it contains no frames"),!1)}let Cf=!1;const xf=3e4;function UI(e){return typeof e=="function"}function BI(){const e=I.Profiler;if(!UI(e)){G&&y.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(xf/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{G&&(y.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),y.log("[Profiling] Disabling profiling for current user session.")),Cf=!0}}function vu(e){if(Cf)return G&&y.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return G&&y.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=x(),n=t&&t.getOptions();if(!n)return G&&y.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return FI(r)?r?(r===!0?!0:Math.random()<r)?!0:(G&&y.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(G&&y.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(G&&y.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function HI(e,t,n,r){return $I(n)?OI(e,t,n,r):null}const en=new Map;function WI(){return en.size}function zI(e){const t=en.get(e);return t&&en.delete(e),t}function jI(e,t){if(en.set(e,t),en.size>30){const n=en.keys().next().value;en.delete(n)}}function wu(e){let t;kf(e)&&(t=ie()*1e3);const n=BI();if(!n)return;G&&y.log(`[Profiling] started profiling span: ${H(e).description}`);const r=Re();W().setContext("profile",{profile_id:r,start_timestamp:t});async function s(){if(e&&n)return n.stop().then(c=>{if(o&&(I.clearTimeout(o),o=void 0),G&&y.log(`[Profiling] stopped profiling of span: ${H(e).description}`),!c){G&&y.log(`[Profiling] profiler returned null profile for: ${H(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}jI(r,c)}).catch(c=>{G&&y.log("[Profiling] error while stopping profiler:",c)})}let o=I.setTimeout(()=>{G&&y.log("[Profiling] max profile duration elapsed, stopping profiling for:",H(e).description),s()},xf);const i=e.end.bind(e);function a(){return e?(s().then(()=>{i()},()=>{i()}),e):i()}e.end=a}const qI="BrowserProfiling",GI=(()=>({name:qI,setup(e){const t=de(),n=t&&he(t);n&&kf(n)&&vu(n)&&wu(n),e.on("spanStart",r=>{r===he(r)&&vu(r)&&wu(r)}),e.on("beforeEnvelope",r=>{if(!WI())return;const s=LI(r);if(!s.length)return;const o=[];for(const i of s){const a=i&&i.contexts,c=a&&a.profile&&a.profile.profile_id,u=a&&a.profile&&a.profile.start_timestamp;if(typeof c!="string"){G&&y.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){G&&y.log("[Profiling] cannot find profile for a span without a profile context");continue}a&&a.profile&&delete a.profile;const d=zI(c);if(!d){G&&y.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const l=HI(c,u,d,i);l&&o.push(l)}DI(r,o)})}})),s1=GI,VI="SpotlightBrowser",YI=((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:VI,setup:()=>{G&&y.log("Using Sidecar URL",t)},processEvent:n=>KI(n)?null:n,afterAllSetup:n=>{XI(n,t)}}});function XI(e,t){const n=Xi("fetch");let r=0;e.on("beforeEnvelope",s=>{if(r>
4783){y.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:Is(s),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>{r++,y.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const o1=YI;function KI(e){return!!(e.type==="transaction"&&e.spans&&e.contexts&&e.contexts.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t&&t.includes("#sentry-spotlight")))}const JI=100;function Dr(e){const n=W().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function jn(e,t,n=JI){const r=W().getScopeData().contexts;r.flags||(r.flags={values:[]});const s=r.flags.values;ZI(s,e,t,n)}function ZI(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){G&&y.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const s=e.findIndex(o=>o.flag===t);s!==-1&&e.splice(s,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}const i1=()=>({name:"FeatureFlags",processEvent(e,t,n){return Dr(e)},addFeatureFlag(e,t){jn(e,t)}}),a1=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Dr(e)}});function c1(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{jn(e,t.value)}}}const u1=()=>({name:"OpenFeature",processEvent(e,t,n){return Dr(e)}});class l1{after(t,n){jn(n.flagKey,n.value)}error(t,n,r){jn(t.flagKey,t.defaultValue)}}const d1=({unleashClientClass:e})=>({name:"Unleash",processEvent(t,n,r){return Dr(t)},setupOnce(){const t=e.prototype;xe(t,"isEnabled",QI)}});function QI(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?jn(n,r):G&&y.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const f1=({featureFlagClient:e})=>({name:"Statsig",processEvent(t,n,r){return Dr(t)},setup(){e.on("gate_evaluation",t=>{jn(t.gate.name,t.gate.value)})}});function p1(e){const t={...e};return Tl(t,"react"),$i("react",{version:we.version}),PS(t)}function eT(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function tT(e,t){const n=new WeakSet;function r(s,o){if(!n.has(s)){if(s.cause)return n.add(s),r(s.cause,o);s.cause=o}}r(e,t)}function Rf(e,{componentStack:t},n){if(eT(we.version)&&ct(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,tT(e,r)}return Vs(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}function h1(e){return(t,n)=>{const r=Rf(t,n);e&&e(t,n,r)}}const Mf="ui.react.render",nT="ui.react.update",Af="ui.react.mount",rT="unknown";class Of extends we.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(t){super(t);const{name:n,disabled:r=!1}=this.props;r||(this._mountSpan=Qe({name:`<${n}>`,onlyIfParent:!0,op:Af,attributes:{[Z]:"auto.ui.react.profiler","ui.component_name":n}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:n=!0}){if(n&&this._mountSpan&&t!==this.props.updateProps){const r=Object.keys(t).filter(s=>t[s]!==this.props.updateProps[s]);if(r.length>0){const s=ie();this._updateSpan=On(this._mountSpan,()=>Qe({name:`<${this.props.name}>`,onlyIfParent:!0,op:nT,startTime:s,attributes:{[Z]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":r}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=ie(),{name:n,includeRender:r=!0}=this.props;if(this._mountSpan&&r){const s=H(this._mountSpan).timestamp;On(this._mountSpan,()=>{const o=Qe({onlyIfParent:!0,name:`<${n}>`,op:Mf,startTime:s,attributes:{[Z]:"auto.ui.react.profiler","ui.component_name":n}});o&&o.end(t)})}}render(){return this.props.children}}Of.__initStatic();function m1(e,t){const n=t&&t.name||e.displayName||e.name||rT,r=s=>we.createElement(Of,{...t,name:n,updateProps:s},we.createElement(e,{...s}));return r.displayName=`profiler(${n})`,Hs(r,e),r}function g1(e,t={disabled:!1,hasRenderSpan:!0}
478){const[n]=we.useState(()=>{if(!(t&&t.disabled))return Qe({name:`<${e}>`,onlyIfParent:!0,op:Af,attributes:{[Z]:"auto.ui.react.profiler","ui.component_name":e}})});we.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const r=H(n).timestamp,s=ie(),o=Qe({name:`<${e}>`,onlyIfParent:!0,op:Mf,startTime:r,attributes:{[Z]:"auto.ui.react.profiler","ui.component_name":e}});o&&o.end(s)}}),[])}const Lr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,sT="unknown",Iu={componentStack:null,error:null,eventId:null};class ba extends we.Component{constructor(t){super(t),ba.prototype.__init.call(this),this.state=Iu,this._openFallbackReportDialog=!0;const n=x();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&yc({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,s=r??void 0,{beforeCapture:o,onError:i,showDialog:a,dialogOptions:c}=this.props;We(u=>{o&&o(u,t,s);const d=this.props.handled!=null?this.props.handled:!!this.props.fallback,l=Rf(t,n,{mechanism:{handled:d}});i&&i(t,s,l),a&&(this._lastEventId=l,this._openFallbackReportDialog&&yc({...c,eventId:l})),this.setState({error:t,componentStack:r,eventId:l})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:s}=this.props;s&&s(t,n,r),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:s}=this.state;t&&t(n,r,s),this.setState(Iu)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let s;return typeof t=="function"?s=we.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):s=t,we.isValidElement(s)?s:(t&&Lr&&y.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}function _1(e,t){const n=e.displayName||e.name||sT,r=s=>we.createElement(ba,{...t},we.createElement(e,{...s}));return r.displayName=`errorBoundary(${n})`,Hs(r,e),r}const oT="redux.action",iT="info",aT={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function y1(e){const t={...aT,...e};return n=>(r,s)=>(t.attachReduxState&&xi().addEventProcessor((i,a)=>{try{i.type===void 0&&i.contexts.state.state.type==="redux"&&(a.attachments=[...a.attachments||[],{filename:"redux_state.json",data:JSON.stringify(i.contexts.state.state.value)}])}catch{}return i}),n((i,a)=>{const c=r(i,a),u=W(),d=t.actionTransformer(a);typeof d<"u"&&d!==null&&tt({category:oT,data:d,type:iT});const l=t.stateTransformer(c);if(typeof l<"u"&&l!==null){const p=x(),h=p&&p.getOptions(),g=h&&h.normalizeDepth||3,S={state:{type:"redux",value:l}};Ne(S,"__sentry_override_normalization_depth__",3+g),u.setContext("state",S)}else u.setContext("state",null);const{configureScopeWithState:f}=t;return typeof f=="function"&&f(u,c),c},s))}function S1(e){const t=Ar({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),o&&I&&I.location&&Tu(r,I.location,s,(c,u="url")=>{Or(a,{name:c,attributes:{[Me]:"pageload",[Z]:"auto.pageload.react.reactrouter_v3",[pe]:u}})}),i&&n.listen&&n.listen(c=>{(c.action==="PUSH"||c.action==="POP")&&Tu(r,c,s,(u,d="url")=>{Nr(a,{name:u,attributes:{[Me]:"navigation",[Z]:"auto.navigation.react.reactrouter_v3",[pe]:d}})})})}}}function Tu(e,t,n,r){let s=t.pathname;n({location:t,routes:e},(o,i,a)=>{if(o||!a)return r(s);const c=cT(a.routes||[]);return c.length===0||c==="/*"?r(s):(s=c,r(s,"route"))})}function cT(e){if(!Array.isArray(e)||e.length===0)return"";const t=e.filter(r=>!!r.path);let n=-1;for(let r=t.length-1;r>=0;r--){const s=t[r];if(s.path&&s.path.startsWith("/")){n=r;break}}return t.slice(n).filter(({path:r})=>!!r).map(({path:r})=>r).join("")}function b1(e,t={}){const n=e,r=Ar({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:s=!0,instrumentNavigation:o=!0}=t;return{...r,afterAllSetup(i){r.afterAllSetup(i);const a=I.location;if(s&&a){const c=n.matchRoutes(a.pathname,n.options.parseSearch(a.search),{preload:!1,throwOnError:!1}),u=c[c.length-1];Or(i,{name:u?u.routeId:a.pathname,attributes:{[Me]:"pageload",[Z]:"auto.pageload.react.tanstack_router",[pe]:u?"route":"url",...ku(u)}})}o&&n.subscribe("onBeforeNavigate",c=>{const u=c.fromLocation&&c.fromLocation.state;if(c.toLocation.state===u)return;const d=n.matchRoutes(c.toLocation.pathname,c.toLocation.search,{preload:!1,throwOnError:!1}),l=d[d.length-1],f=I.location,p=Nr(i,{name:l?l.routeId:f.pathname,attributes:{[Me]:"navigation",[Z]:"auto.navigation.react.tanstack_router",[pe]:l?"route":"url"}}),h=n.subscribe("onResolved",g=>{if(h(),p){const S=n.matchRoutes(g.toLocation.pathname,g.toLocation.search,{preload:!1,throwOnError:!1}),_=S[S.length-1];_&&(p.updateName(_.routeId),p.setAttribute(pe,"route"),p.setAttributes(ku(_)))}})})}}}function ku(e){if(!e)return{};const t={};
478return Object.entries(e.params).forEach(([n,r])=>{t[`url.path.params.${n}`]=r}),t}function E1(e){const t=Ar({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),Nf(a,o,i,n,"reactrouter_v4",r,s)}}}function v1(e){const t=Ar({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),Nf(a,o,i,n,"reactrouter_v5",r,s)}}}function Nf(e,t,n,r,s,o=[],i){function a(){if(r&&r.location)return r.location.pathname;if(I&&I.location)return I.location.pathname}function c(u){if(o.length===0||!i)return[u,"url"];const d=Df(o,u,i);for(const l of d)if(l.match.isExact)return[l.match.path,"route"];return[u,"url"]}if(t){const u=a();if(u){const[d,l]=c(u);Or(e,{name:d,attributes:{[Me]:"pageload",[Z]:`auto.pageload.react.${s}`,[pe]:l}})}}n&&r.listen&&r.listen((u,d)=>{if(d&&(d==="PUSH"||d==="POP")){const[l,f]=c(u.pathname);Nr(e,{name:l,attributes:{[Me]:"navigation",[Z]:`auto.navigation.react.${s}`,[pe]:f}})}})}function Df(e,t,n,r=[]){return e.some(s=>{const o=s.path?n(t,s):r.length?r[r.length-1].match:uT(t);return o&&(r.push({route:s,match:o}),s.routes&&Df(s.routes,t,n,r)),!!o}),r}function uT(e){return{path:"/",url:"/",params:{},isExact:e==="/"}}function w1(e){const t=e.displayName||e.name,n=r=>{if(r&&r.computedMatch&&r.computedMatch.isExact){const s=r.computedMatch.path,o=lT();W().setTransactionName(s),o&&(o.updateName(s),o.setAttribute(pe,"route"))}return we.createElement(e,{...r})};return n.displayName=`sentryRoute(${t})`,Hs(n,e),n}function lT(){const e=de(),t=e&&he(e);if(!t)return;const n=H(t).op;return n==="navigation"||n==="pageload"?t:void 0}let Dt,Lt,Pt,gs,nt,kn=!1;const Lf=new WeakSet,Pe=new Set;function Pf(e,t){return!Dt||!Lt||!Pt||!nt?(Lr&&y.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e):function(n,r){n.forEach(a=>{Pe.add(a)});const s=e(n,r),o=r&&r.basename,i=co();return s.state.historyAction==="POP"&&i&&ao(i,s.state.location,n,void 0,o,Array.from(Pe)),s.subscribe(a=>{(a.historyAction==="PUSH"||a.historyAction==="POP")&&(a.navigation.state!=="idle"?requestAnimationFrame(()=>{hr({location:a.location,routes:n,navigationType:a.historyAction,version:t,basename:o,allRoutes:Array.from(Pe)})}):hr({location:a.location,routes:n,navigationType:a.historyAction,version:t,basename:o,allRoutes:Array.from(Pe)}))}),s}}function Ff(e,t){return!Dt||!Lt||!Pt||!nt?(Lr&&y.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e):function(n,r){n.forEach(p=>{Pe.add(p)});const s=e(n,r),o=r?r.basename:void 0,i=co();let a;const c=r?r.initialEntries:void 0,u=r?r.initialIndex:void 0,d=c&&c.length===1,l=u!==void 0&&c&&c[u];a=d?c[0]:l?c[u]:void 0;const f=a?typeof a=="string"?{pathname:a}:a:s.state.location;return s.state.historyAction==="POP"&&i&&ao(i,f,n,void 0,o,Array.from(Pe)),s.subscribe(p=>{const h=p.location;(p.historyAction==="PUSH"||p.historyAction==="POP")&&hr({location:h,routes:n,navigationType:p.historyAction,version:t,basename:o,allRoutes:Array.from(Pe)})}),s}}function $f(e,t){const n=Ar({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:s,useNavigationType:o,createRoutesFromChildren:i,matchRoutes:a,stripBasename:c,instrumentPageLoad:u=!0,instrumentNavigation:d=!0}=e;return{...n,setup(){Dt=r,Lt=s,Pt=o,nt=a,gs=i,kn=c||!1},afterAllSetup(l){n.afterAllSetup(l);const f=I&&I.location&&I.location.pathname;u&&f&&Or(l,{name:f,attributes:{[pe]:"url",[Me]:"pageload",[Z]:`auto.pageload.react.reactrouter_v${t}`}}),d&&Lf.add(l)}}}function Uf(e,t){if(!Dt||!Lt||!Pt||!nt)return Lr&&y.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;const n=r=>{const s=we.useRef(!0),{routes:o,locationArg:i}=r,a=e(o,i),c=Lt(),u=Pt(),d=typeof i=="string"||i&&i.pathname?i:c;return Dt(()=>
478{const l=typeof d=="string"?{pathname:d}:d;s.current?(o.forEach(f=>{Ea(f).forEach(h=>{Pe.add(h)})}),ao(co(),l,o,void 0,void 0,Array.from(Pe)),s.current=!1):hr({location:l,routes:o,navigationType:u,version:t,allRoutes:Array.from(Pe)})},[u,d]),a};return(r,s)=>we.createElement(n,{routes:r,locationArg:s})}function hr(e){const{location:t,routes:n,navigationType:r,version:s,matches:o,basename:i,allRoutes:a}=e,c=Array.isArray(o)?o:nt(n,t,i),u=x();if(!(!u||!Lf.has(u))&&(r==="PUSH"||r==="POP")&&c){let d,l="url";const f=Hf(t,a||n);f&&(d=mr(va(a||n,t)),l="route"),(!f||!d)&&([d,l]=Wf(n,t,c,i)),Nr(u,{name:d,attributes:{[pe]:l,[Me]:"navigation",[Z]:`auto.navigation.react.reactrouter_v${s}`}})}}function Bs(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}function dT(e,t,n){const r=e||kn?Bs(t,n):t;return[r[r.length-1]==="/"||r.slice(-2)==="/*"?r.slice(0,-1):r,"route"]}function Bf(e){return e.endsWith("*")}function Cu(e,t){return Bf(e)&&t.route.children&&t.route.children.length>0||!1}function fT(e){return!!(!e.children&&e.element&&e.path&&e.path.endsWith("/*"))}function Hf(e,t){const n=nt(t,e);if(n){for(const r of n)if(fT(r.route)&&hT(r))return!0}return!1}function Ea(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{Ea(n,t).forEach(s=>t.add(s))})),t}function pT(e){return mT(e.route.path||"")}function hT(e){return e.params["*"]||""}function mT(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function ar(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function mr(e){return e[0]==="/"?e:`/${e}`}function va(e,t){const n=nt(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const s=pT(r),o=Bs(t.pathname,mr(r.pathnameBase));return ar(ar(s||"")+mr(va(e.filter(i=>i!==r.route),{pathname:o})))}return""}function Wf(e,t,n,r=""){if(!e||e.length===0)return[kn?Bs(t.pathname,r):t.pathname,"url"];let s="";if(n)for(const i of n){const a=i.route;if(a){if(a.index)return dT(s,i.pathname,r);const c=a.path;if(c&&!Cu(c,i)){const u=c[0]==="/"||s[s.length-1]==="/"?c:`/${c}`;if(s=ar(s)+mr(u),ar(t.pathname)===ar(r+i.pathname))return sc(s)!==sc(i.pathname)&&!Bf(s)?[(kn?"":r)+u,"route"]:(Cu(s,i)&&(s=s.slice(0,-1)),[(kn?"":r)+s,"route"])}}}return[kn?Bs(t.pathname,r):t.pathname||"/","url"]}function ao(e,t,n,r,s,o){const i=Array.isArray(r)?r:nt(o||n,t,s);if(i){let a,c="url";const u=Hf(t,o||n);u&&(a=mr(va(o||n,t)),c="route"),(!u||!a)&&([a,c]=Wf(n,t,i,s)),W().setTransactionName(a||"/"),e&&(e.updateName(a),e.setAttribute(pe,c))}}function zf(e,t){if(!Dt||!Lt||!Pt||!gs||!nt)return Lr&&y.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters. 479 useEffect: ${Dt}. useLocation: ${Lt}. useNavigationType: ${Pt}. 480 createRoutesFromChildren: ${gs}. matchRoutes: ${nt}.`),e;const n=r=>{const s=we.useRef(!0),o=Lt(),i=Pt();return Dt(()=>{const a=gs(r.children);s.current?(a.forEach(c=>{Ea(c).forEach(d=>{Pe.add(d)})}),ao(co(),o,a,void 0,void 0,Array.from(Pe)),s.current=!1):hr({location:o,routes:a,navigationType:i,version:t,allRoutes:Array.from(Pe)})},[o,i]),we.createElement(e,{...r})};return Hs(n,e),n}function co(){const e=de(),t=e?he(e):void 0;if(!t)return;const n=H(t).op;return n==="navigation"||n==="pageload"?t:void 0}function I1(e){return $f(e,"6")}function gT(e){return Uf(e,"6")}const T1=gT;function _T(e){return Pf(e,"6")}const k1=_T;function C1(e){return Ff(e,"6")}function x1(e){return zf(e,"6")}function R1(e){return $f(e,"7")}function M1(e){return zf(e,"7")}function A1(e){return Pf(e,"7")}function O1(e){return Ff(e,"7")}function N1(e){return Uf(e,"7")}export{S_ as BrowserClient,ba as ErrorBoundary,l1 as OpenFeatureIntegrationHook,Of as Profiler,Mt as SDK_VERSION,Me as SEMANTIC_ATTRIBUTE_SENTRY_OP,Z as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,Bu as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,pe as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Ut as Scope,I as WINDOW,tt as addBreadcrumb,Hh as addEventProcessor,Xa as addIntegration,ET as addTracingExtensions,nS as breadcrumbsIntegration,pS as browserApiErrorsIntegration,s1 as browserProfilingIntegration,yS as browserSessionIntegration,Ar as browserTracingIntegration,c1 as buildLaunchDarklyFlagUsedHandler,NT as captureConsoleIntegration,br as captureEvent,Vs as captureException,qg as captureFeedback,Vo as captureMessage,Ga as captureSession,GT as captureUserFeedback,Hy as chromeStackLineParser,xT as close,XT as contextLinesIntegration,IT as continueTrace,y1 as createReduxEnhancer,om as createTransport,__ as createUserFeedbackEnvelope,DT as debugIntegration,jm as dedupeIntegration,hs as defaultRequestInstrumentationOptions,Zy as defaultStackLineParsers,Qy as defaultStackParser,Ts as endSession,f_ as eventFromException,p_ as eventFromMessage,zi as exceptionFromError,LT as extraErrorDataIntegration,i1 as featureFlagsIntegration,e1 as feedbackAsyncIntegration,t1 as feedbackIntegration,t1 as feedbackSyncIntegration,CT as flush,jT as forceLoad,gm as functionToStringIntegration,qy as geckoStackLineParser,de as getActiveSpan,x as getClient,BT as getCurrentHub,W as getCurrentScope,NS as getDefaultIntegrations,QT as getFeedback,xi as getGlobalScope,be as getIsolationScope,JT as getReplay,he as getRootSpan,ns as getSpanDescendants,Ip as getSpanStatusFromHttpCode,ES as globalHandlersIntegration,YT as httpClientIntegration,CS as httpContextIntegration,bm as inbou
480ndFiltersIntegration,p1 as init,uI as instrumentOutgoingRequests,RT as isInitialized,Uh as lastEventId,a1 as launchDarklyIntegration,$S as lazyLoadIntegration,OS as linkedErrorsIntegration,r1 as makeBrowserOfflineTransport,sd as makeFetchTransport,MT as makeMultiplexedTransport,n1 as metrics,OT as moduleMetadataIntegration,qT as onLoad,u1 as openFeatureIntegration,WT as opera10StackLineParser,zT as opera11StackLineParser,AT as parameterize,h1 as reactErrorHandler,S1 as reactRouterV3BrowserTracingIntegration,E1 as reactRouterV4BrowserTracingIntegration,v1 as reactRouterV5BrowserTracingIntegration,I1 as reactRouterV6BrowserTracingIntegration,R1 as reactRouterV7BrowserTracingIntegration,Qu as registerSpanErrorInstrumentation,ZT as replayCanvasIntegration,KT as replayIntegration,VT as reportingObserverIntegration,PT as rewriteFramesIntegration,fw as sendFeedback,FT as sessionTimingIntegration,$i as setContext,em as setCurrentClient,Lh as setExtra,Dh as setExtras,Wu as setHttpStatus,ah as setMeasurement,Fh as setTag,Ph as setTags,$h as setUser,yc as showReportDialog,vT as spanToBaggageHeader,H as spanToJSON,Op as spanToTraceHeader,o1 as spotlightBrowserIntegration,Nr as startBrowserTracingNavigationSpan,Or as startBrowserTracingPageLoadSpan,Qe as startInactiveSpan,kT as startNewTrace,Yo as startSession,wT as startSpan,lh as startSpanManual,f1 as statsigIntegration,TT as suppressTracing,b1 as tanstackRouterBrowserTracingIntegration,UT as thirdPartyErrorFilterIntegration,d1 as unleashIntegration,bT as updateSpanName,g1 as useProfiler,HT as winjsStackLineParser,On as withActiveSpan,_1 as withErrorBoundary,ST as withIsolationScope,m1 as withProfiler,We as withScope,x1 as withSentryReactRouterV6Routing,M1 as withSentryReactRouterV7Routing,w1 as withSentryRouting,k1 as wrapCreateBrowserRouter,_T as wrapCreateBrowserRouterV6,A1 as wrapCreateBrowserRouterV7,C1 as wrapCreateMemoryRouterV6,O1 as wrapCreateMemoryRouterV7,T1 as wrapUseRoutes,gT as wrapUseRoutesV6,N1 as wrapUseRoutesV7,$T as zodErrorsIntegration}; 481//# sourceMappingURL=index-3qAZU94F.js.map
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.