1import{r as Se,l as Cd}from"./chunk-6CSD65Y2-C1lv1GS6.js";import{D as Ws,l as w,g as It,G as X,i as zs,a as me,b as Re,c as j,S as Bn,d as O,h as Hn,e as js,f as z,t as he,j as xd,k as No,m as Y,_ as Oc,n as os,r as Rd,o as Ke,p as Nc,q as Ve,u as Md,v as po,w as qs,x as yt,y as kt,z as Gs,A as Dc,B as Vs,C as nn,E as Ge,F as ve,H as Ad,I as Od,J as ss,K as Lc,L as ho,M as Sn,N as En,O as Fi,P as Ys,Q as Nd,R as Dd,T as Ld,U as Pd,V as Fd,W as Pc,X as is,Y as Fc,Z as $d,$ as Gr,a0 as sn,a1 as Vr,a2 as $i,a3 as Bi,a4 as Bd,a5 as as,a6 as Hd,a7 as Ud,a8 as Wd,a9 as zd,aa as jd,ab as qd,ac as Xs,ad as dt,ae as bt,af as Un,ag as $c,ah as ke,ai as Hi,aj as Kn,ak as Yr,al as cs,am as St,an,ao as Gd,ap as Vd,aq as Yd,ar as Xd,as as Fe,at as ee,au as Bc,av as Kd,aw as Jd,ax as us,ay as Hc,az as Ui,aA as Zd,aB as Ks,aC as Qd,aD as ef,aE as ls,aF as Uc,aG as Wc,aH as Ee,aI as zc,aJ as Ct,aK as tf,aL as jc,aM as An,aN as st,aO as nf,aP as Js,aQ as rf,aR as of,aS as be,aT as sf,aU as af,aV as cf,aW as uf,aX as Wi,aY as lf,aZ as df}from"./trace-2TfIQPbY.js";import{a_ as P1,a$ as F1,b0 as $1,b1 as B1,b2 as H1,s as U1,b3 as W1,b4 as z1,b5 as j1}from"./trace-2TfIQPbY.js";const Ar={},zi={};function xt(e,t){Ar[e]=Ar[e]||[],Ar[e].push(t)}function Rt(e,t){if(!zi[e]){zi[e]=!0;try{t()}catch(n){Ws&&w.error(`Error while instrumenting ${e}`,n)}}}function Pe(e,t){const n=e&&Ar[e];if(n)for(const r of n)try{r(t)}catch(o){Ws&&w.error(`Error while triggering instrumentation handler. 2Type: ${e} 3Name: ${It(r)} 4Error:`,o)}}let Do=null;function qc(e){const t="error";xt(t,e),Rt(t,ff)}function ff(){Do=X.onerror,X.onerror=function(e,t,n,r,o){return Pe("error",{column:r,error:o,line:n,msg:e,url:t}),Do?Do.apply(this,arguments):!1},X.onerror.__SENTRY_INSTRUMENTED__=!0}let Lo=null;function Gc(e){const t="unhandledrejection";xt(t,e),Rt(t,pf)}function pf(){Lo=X.onunhandledrejection,X.onunhandledrejection=function(e){return Pe("unhandledrejection",e),Lo?Lo.apply(this,arguments):!0},X.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var nt;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(nt||(nt={}));function it(e){return new Le(t=>{t(e)})}function Xr(e){return new Le((t,n)=>{n(e)})}class Le{constructor(t){Le.prototype.__init.call(this),Le.prototype.__init2.call(this),Le.prototype.__init3.call(this),Le.prototype.__init4.call(this),this._state=nt.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Le((r,o)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(i){o(i)}},s=>{if(!n)o(s);else try{r(n(s))}catch(i){o(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Le((n,r)=>{let o,s;return this.then(i=>{s=!1,o=i,t&&t()},i=>{s=!0,o=i,t&&t()}).then(()=>{if(s){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(nt.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(nt.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===nt.PENDING){if(zs(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===nt.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===nt.RESOLVED&&n[1](this._value),this._state===nt.REJECTED&&n[2](this._value),n[0]=!0)})}}}let ji=!1;function Vc(){ji||(ji=!0,qc(ds),Gc(ds))}function ds(){const e=me(),t=e&&Re(e);if(t){const n="internal_error";j&&w.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:Bn,message:n})}}ds.tag="sentry_tracingErrorCallback";function kw(){Vc()}const Or={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},hf="heartbeatFailed",mf="idleTimeout",gf="finalTimeout",_f="externalFinish";function Yc(e,t={}){const n=new Map;let r=!1,o,s=_f,i=!t.disableAutoFinish;const a=[],{idleTimeout:c=Or.idleTimeout,finalTimeout:u=Or.finalTimeout,childSpanTimeout:d=Or.childSpanTimeout,beforeSpanEnd:l}=t,f=O();if(!f||!Hn())return new js;const p=z(),h=me(),m=yf(e);m.end=new Proxy(m.end,{apply(E,x,M){l&&l(m);const[g,...S]=M,k=g||he(),T=xd(k),$=No(m).filter(L=>L!==m);if(!$.length)return _(T),Reflect.apply(E,x,[T,...S]);const q=$.map(L=>Y(L).timestamp).filter(L=>!!L),B=q.length?Math.max(...q):void 0,A=Y(m).start_timestamp,ae=Math.min(A?A+u/1e3:1/0,Math.max(A||-1/0,Math.min(T,B||1/0)));return _(ae),Reflect.apply(E,x,[ae,...S])}});function b(){o&&(clearTimeout(o),o=void 0)}function y(E){b(),o=setTimeout(()=>{!r&&n.size===0&&i&&(s=mf,m.end(E))},c)}function v(E){o=setTimeout(()=>{!r&&i&&(s=hf,m.end(E))},d)}function C(E){b(),n.set(E,!0);const x=he();v(x+d/1e3)}function R(E){if(n.has(E)&&n.delete(E),n.size===0){const x=he();y(x+c/1e3)}}function _(E){r=!0,n.clear(),a.forEach(T=>T()),Oc(p,h);const x=Y(m),{start_timestamp:M}=x;if(!M)return;(x.data||{})[os]||m.setAttribute(os,s),w.log(`[Tracing] Idle span "${x.op}" finished`);const S=No(m).filter(T=>T!==m);let k=0;
4S.forEach(T=>{T.isRecording()&&(T.setStatus({code:Bn,message:"cancelled"}),T.end(E),j&&w.log("[Tracing] Cancelling span since span ended early",JSON.stringify(T,void 0,2)));const $=Y(T),{timestamp:q=0,start_timestamp:B=0}=$,A=B<=E,ae=(u+c)/1e3,L=q-B<=ae;if(j){const te=JSON.stringify(T,void 0,2);A?L||w.log("[Tracing] Discarding span since it finished after idle span final timeout",te):w.log("[Tracing] Discarding span since it happened after idle span was finished",te)}(!L||!A)&&(Rd(m,T),k++)}),k>0&&m.setAttribute("sentry.idle_span_discarded_spans",k)}return a.push(f.on("spanStart",E=>{if(r||E===m||Y(E).timestamp)return;No(m).includes(E)&&C(E.spanContext().spanId)})),a.push(f.on("spanEnd",E=>{r||R(E.spanContext().spanId)})),a.push(f.on("idleSpanEnableAutoFinish",E=>{E===m&&(i=!0,y(),n.size&&v())})),t.disableAutoFinish||y(),setTimeout(()=>{r||(m.setStatus({code:Bn,message:"deadline_exceeded"}),s=gf,m.end())},u),m}function yf(e){const t=Ke(e);return Oc(z(),t),j&&w.log("[Tracing] Started span is an idle span"),t}function fs(e,t,n,r=0){return new Le((o,s)=>{const i=e[r];if(t===null||typeof i!="function")o(t);else{const a=i({...t},n);j&&i.id&&a===null&&w.log(`Event processor "${i.id}" dropped event`),zs(a)?a.then(c=>fs(e,c,n,r+1).then(o)).then(null,s):fs(e,a,n,r+1).then(o).then(null,s)}})}let pr,qi,hr;function Xc(e){const t=X._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return hr&&n.length===qi||(qi=n.length,hr=n.reduce((r,o)=>{pr||(pr={});const s=pr[o];if(s)r[s[0]]=s[1];else{const i=e(o);for(let a=i.length-1;a>=0;a--){const c=i[a],u=c&&c.filename,d=t[o];if(u&&d){r[u]=d,pr[o]=[u,d];break}}}return r},{})),hr}function bf(e,t){const n=Xc(e);if(!n)return[];const r=[];for(const o of t)o&&n[o]&&r.push({type:"sourcemap",code_file:o,debug_id:n[o]});return r}function Sf(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;Ef(e,t),r&&Tf(e,r),If(e,n),vf(e,o),wf(e,s)}function Gi(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:l,propagationContext:f,transactionName:p,span:h}=t;mr(e,"extra",n),mr(e,"tags",r),mr(e,"user",o),mr(e,"contexts",s),e.sdkProcessingMetadata=Nc(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 mr(e,t,n){e[t]=Nc(e[t],n,1)}function Ef(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=t,c=Ve(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=Ve(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=Ve(o);d&&Object.keys(d).length&&(e.user={...d,...e.user});const l=Ve(s);l&&Object.keys(l).length&&(e.contexts={...l,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function vf(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function wf(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Tf(e,t){e.contexts={trace:Md(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:po(t),...e.sdkProcessingMetadata};const n=Re(t),r=Y(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function If(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 Kc(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||yt(),timestamp:t.timestamp||qs()},u=n.integrations||e.integrations.map(b=>b.name);kf(c,e),Rf(c,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Cf(c,e.stackParser);const d=Af(r,n.captureContext);n.mechanism&&kt(c,n.mechanism);const l=o?o.getEventProcessors():[],f=Gs().getScopeData();if(s){const b=s.getScopeData();Gi(f,b)}if(d){const b=d.getScopeData();Gi(f,b)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Sf(c,f);const h=[...l,...f.eventProcessors];return fs(h,c,n).then(b=>
4(b&&xf(b),typeof i=="number"&&i>0?Mf(b,i,a):b))}function kf(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||Vs,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o),e.message&&(e.message=nn(e.message,s));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=nn(i.value,s));const a=e.request;a&&a.url&&(a.url=nn(a.url,s))}function Cf(e,t){const n=Xc(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{n&&o.filename&&(o.debug_id=n[o.filename])})})}catch{}}function xf(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}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,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function Rf(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Mf(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Ge(o.data,t,n)}}))},...e.user&&{user:Ge(e.user,t,n)},...e.contexts&&{contexts:Ge(e.contexts,t,n)},...e.extra&&{extra:Ge(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=Ge(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:Ge(o.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Ge(e.contexts.flags,3,n)),r}function Af(e,t){if(!t)return e;const n=e?e.clone():new Dc;return n.update(t),n}function Of(e){if(e)return Nf(e)?{captureContext:e}:Lf(e)?{captureContext:e}:e}function Nf(e){return e instanceof Dc||typeof e=="function"}const Df=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Lf(e){return Object.keys(e).some(t=>Df.includes(t))}function mo(e,t){return z().captureException(e,Of(t))}function ps(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return z().captureMessage(e,n,r)}function Jn(e,t){return z().captureEvent(e,t)}function Zs(e,t){ve().setContext(e,t)}function Pf(e){ve().setExtras(e)}function Ff(e,t){ve().setExtra(e,t)}function $f(e){ve().setTags(e)}function Bf(e,t){ve().setTag(e,t)}function Hf(e){ve().setUser(e)}function Uf(){return ve().lastEventId()}async function Cw(e){const t=O();return t?t.flush(e):(j&&w.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function xw(e){const t=O();return t?t.close(e):(j&&w.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Rw(){return!!O()}function Wf(){const e=O();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function zf(e){ve().addEventProcessor(e)}function hs(e){const t=O(),n=ve(),r=z(),{release:o,environment:s=Vs}=t&&t.getOptions()||{},{userAgent:i}=X.navigator||{},a=Od({release:o,environment:s,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&ss(c,{status:"exited"}),Kr(),n.setSession(a),r.setSession(a),a}function Kr(){const e=ve(),t=z(),n=t.getSession()||e.getSession();n&&Ad(n),Jc(),e.setSession(),t.setSession()}function Jc(){const e=ve(),t=z(),n=O(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Vi(e=!1){if(e){Kr();return}Jc()}const jf="7";function Zc(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function qf(e){return`${Zc(e)}${e.projectId}/envelope/`}function Gf(e,t){const n={sentry_version:jf};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Qc(e,t,n){return t||`${qf(e)}?${Gf(e,n)}`}function Vf(e,t){const n=Lc(e);if(!n)return"";const r=`${Zc(n)}embed/error-page/`;let o=`dsn=${ho(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const i=t.user;if(!i)continue;i.name&&(o+=`&name=${encodeURIComponent(i.name)}`),i.email&&(o+=`&email=${encodeURIComponent(i.email)}`)}else o+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${o}`}const Yi=[];function Yf(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Xf(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>
4{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 o=Yf(r),s=o.findIndex(i=>i.name==="Debug");if(s>-1){const[i]=o.splice(s,1);o.push(i)}return o}function Kf(e,t){const n={};return t.forEach(r=>{r&&eu(e,r,n)}),n}function Xi(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function eu(e,t,n){if(n[t.name]){j&&w.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Yi.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Yi.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",(o,s)=>r(o,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((s,i)=>r(s,i,e),{id:t.name});e.addEventProcessor(o)}j&&w.log(`Integration installed: ${t.name}`)}function Ki(e){const t=O();if(!t){j&&w.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function Jf(e,t,n){const r=[{type:"client_report"},{timestamp:qs(),discarded_events:e}];return Sn(t?{dsn:t}:{},[r])}class ze extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}const Ji="Not capturing exception because it's already been captured.";class Zf{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Lc(t.dsn):j&&w.warn("No DSN provided, client will not send events."),this._dsn){const o=Qc(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:o})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in t&&t[o]==null);r&&En(()=>{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 o=yt();if(Fi(t))return j&&w.log(Ji),o;const s={event_id:o,...n};return this._process(this.eventFromException(t,s).then(i=>this._captureEvent(i,s,r))),s.event_id}captureMessage(t,n,r,o){const s={event_id:yt(),...r},i=Fc(t)?t:String(t),a=Ys(t)?this.eventFromMessage(i,n,s):this.eventFromException(t,s);return this._process(a.then(c=>this._captureEvent(c,s,o))),s.event_id}captureEvent(t,n,r){const o=yt();if(n&&n.originalException&&Fi(n.originalException))return j&&w.log(Ji),o;const s={event_id:o,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,s,a||r)),s.event_id}captureSession(t){typeof t.release!="string"?j&&w.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ss(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;
4return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):it(!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];eu(this,t,this._integrations),n||Xi(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Nd(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=Dd(r,Ld(s));const o=this.sendEnvelope(r);o&&o.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const n=Pd(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,s=`${t}:${n}`;j&&w.log(`Recording outcome: "${s}"${o>1?` (${o} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+o}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(j&&w.error("Error while sending envelope:",n),n)):(j&&w.error("Transport disabled"),it({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Kf(this,t),Xi(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",o=!1;const s=n.exception&&n.exception.values;if(s){o=!0;for(const c of s){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(ss(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Le(n=>{let r=0;const o=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=o,t&&r>=t&&(clearInterval(s),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=z(),o=ve()){const s=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Kc(s,t,n,r,this,o).then(a=>{if(a===null)return a;a.contexts={trace:Fd(r),...a.contexts};const c=Pc(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{j&&(o instanceof ze&&o.logLevel==="log"?w.log(o.message):w.warn(o))})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:s}=o,i=nu(t),a=tu(t),c=t.type||"error",u=`before send for type \`${c}\``,d=typeof s>"u"?void 0:is(s);if(a&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error",t),Xr(new ze(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"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 ze("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return h;const b=ep(this,o,h,n);return Qf(b,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 ze(`${u} returned \`null\`, will not send event.`,"log")}const m=r&&r.getSession();if(!i&&m&&this._updateSessionFromEvent(m,h),i){const y=h.sdkProcessingMetadata&&h.sdkProcessingMetadata.spanCountBeforeProcessing||0,v=h.spans?h.spans.length:0,C=y-v;C>0&&this.recordDroppedEvent("before_send","span",C)}const b=h.transaction_info;if(i&&b&&h.transaction!==t.transaction){const y="custom";h.transaction_info={...b,source:y}}return this.sendEvent(h,n),h}).then(null,h=>{throw h instanceof ze?h:(this.captureException(h,{data:{__sentry__:!0},originalException:h}),new ze(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 5Reason: ${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[o,s]=n.split(":");return{reason:o,category:s,quantity:r}})}_flushOutcomes(){j&&w.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){j&&w.log("No outcomes to send");return}if(!this._dsn){j&&w.log("No dsn provided, will not send outcomes");return}j&&w.log("Sending outcomes:",t);const n=Jf(t,this._options.tunnel&&ho(this._dsn));this.sendEnvelope(n)}}function Qf(e,t){const n=`${t} must return \`null\` or a valid event.`;if(zs(e))return e.then(r=>{if(!Gr(r)&&r!==null)throw new ze(n);return r},r=>{throw new ze(`${t} rejected with ${r}`)});if(!Gr(e)&&e!==null)throw new ze(n);return e}function ep(e,t,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:i}=t;if(tu(n)&&o)return o(n,r);if(nu(n)){if(n.spans&&i){const a=[];for(const c of n.spans){const u=i(c);u?a.push(u):($d(),e.recordDroppedEvent("before_send","span"))}n.spans=a}if(s){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return s(n,r)}}return n}function tu(e){return e.type===void 0}function nu(e){return e.type==="transaction"}function tp(e,t){t.debug===!0&&(j?w.enable():En(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),z().update(t.initialScope);const r=new e(t);return np(r),r.init(),r}function np(e){z().setClient(e)}function rp(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 o(i){if(!n())return Xr(new ze("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 s(i){return new Le((a,c)=>{let u=t.length;if(!u)return a(!0);const d=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(l=>{it(l).then(()=>{--u||(clearTimeout(d),a(!0))},c)})})}return{$:t,add:o,drain:s}}const op=60*1e3;function ru(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?op:r-t}function sp(e,t){return e[t]||e.all||0}function ou(e,t,n=Date.now()){return sp(e,t)>n}function su(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(const a of s.trim().split(",")){const[c,u,,,d]=a.split(":",5),l=parseInt(c,10),f=(isNaN(l)?60:l)*1e3;if(!u)o.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[p]=r+f):o[p]=r+f}else i?o.all=r+ru(i,r):t===429&&(o.all=r+60*1e3);return o}const ip=64;function ap(e,t,n=rp(e.bufferSize||ip)){let r={};const o=i=>n.drain(i);function s(i){const a=[];if(sn(i,(l,f)=>{const p=$i(f);
5if(ou(r,p)){const h=Zi(l,f);e.recordDroppedEvent("ratelimit_backoff",p,h)}else a.push(l)}),a.length===0)return it({});const c=Sn(i[0],a),u=l=>{sn(c,(f,p)=>{const h=Zi(f,p);e.recordDroppedEvent(l,$i(p),h)})},d=()=>t({body:Vr(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&j&&w.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=su(r,l),l),l=>{throw u("network_error"),l});return n.add(d).then(l=>l,l=>{if(l instanceof ze)return j&&w.error("Skipped sending event because buffer is full."),u("queue_overflow"),it({});throw l})}return{send:s,flush:o}}function Zi(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const Po=100,Fo=5e3,cp=36e5;function up(e){function t(...n){j&&w.info("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let s=Fo,i;function a(l,f,p){return Bi(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 o.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(s),s=Math.min(s*2,cp))}async function d(l,f=!1){if(!f&&Bi(l,["replay_event","replay_recording"]))return await o.push(l),c(Po),{};try{const p=await r.send(l);let h=Po;if(p){if(p.headers&&p.headers["retry-after"])h=ru(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),s=Fo,p}catch(p){if(await a(l,p,s))return f?await o.unshift(l):await o.push(l),u(),t("Error sending. Event queued.",p),{};throw p}}return n.flushAtStartup&&u(),{send:d,flush:l=>(l===void 0&&(s=Fo,c(Po)),r.flush(l))}}}function iu(e,t){let n;return sn(e,(r,o)=>(t.includes(o)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function lp(e,t){return n=>{const r=e(n);return{...r,send:async o=>{const s=iu(o,["event","transaction","profile","replay_event"]);return s&&(s.release=t),r.send(o)}}}}function dp(e,t){return Sn(t?{...e[0],dsn:t}:e[0],e[1])}function Mw(e,t){return n=>{const r=e(n),o=new Map;function s(c,u){const d=u?`${c}:${u}`:c;let l=o.get(d);if(!l){const f=Bd(c);if(!f)return;const p=Qc(f,n.tunnel);l=u?lp(e,u)({...n,url:p}):e({...n,url:p}),o.set(d,l)}return[c,l]}async function i(c){function u(p){const h=p&&p.length?p:["event"];return iu(c,h)}const d=t({envelope:c,getEvent:u}).map(p=>typeof p=="string"?s(p,void 0):s(p.dsn,p.release)).filter(p=>!!p),l=d.length?d:[["",r]];return(await Promise.all(l.map(([p,h])=>h.send(dp(c,p)))))[0]}async function a(c){const u=[...o.values(),r];return(await Promise.all(u.map(l=>l.flush(c)))).every(l=>l)}return{send:i,flush:a}}}function au(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return pp(e,n)||fp(e,r)}function fp(e,t){return t?Qi(e)===Qi(t):!1}function pp(e,t){return t?e.includes(t.host):!1}function Qi(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Aw(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 cu(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:as})),version:as}),e._metadata=o}function uu(e={}){const t=O();if(!Wf()||!t)return{};const n=Hd(),r=Ud(n);if(r.getTraceData)return r.getTraceData(e);const o=z(),s=e.span||me(),i=s?Wd(s):hp(o),a=s?po(s):Pc(t,o),c=zd(a);return jd.test(i)?{"sentry-trace":i,baggage:c}:(w.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function hp(e){const{traceId:t,sampled:n,spanId:r}=e.getPropagationContext();return qd(t,r,n)}const mp=100;function Je(e,t){const n=O(),r=ve();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=mp}=n.getOptions();if(s<=0)return;const a={timestamp:qs(),...e},c=o?En(()=>o(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,s))}let ea;const gp="FunctionToString",ta=new WeakMap,_p=(()=>({name:gp,setupOnce(){ea=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Xs(this),n=ta.has(O())&&t!==void 0?t:this;return ea.apply(n,e)}}catch{}},setup(e){ta.set(e,!0)}})),yp=_p,bp=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,"undefined is not an object (evaluating 'a.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+$/,/^Java exception was raised during method invocation$/],Sp="InboundFilters",Ep=((e={})=>({name:Sp,processEvent(t,n,r){const o=r.getOptions(),s=wp(e,o);return Tp(t,s)?null:t}})),vp=Ep;function wp(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:bp],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Tp(e,t){return t.ignoreInternal&&Mp(e)?(j&&w.warn(`Event dropped due to being internal Sentry Error. 6Event: ${dt(e)}`),!0):Ip(e,t.ignoreErrors)?(j&&w.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 7Event: ${dt(e)}`),!0):Op(e)?(j&&w.warn(`Event dropped due to not having an error message, error type or stacktrace. 8Event: ${dt(e)}`),!0):kp(e,t.ignoreTransactions)?(j&&w.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 9Event: ${dt(e)}`),!0):Cp(e,t.denyUrls)?(j&&w.warn(`Event dropped due to being matched by \`denyUrls\` option. 10Event: ${dt(e)}. 11Url: ${Jr(e)}`),!0):xp(e,t.allowUrls)?!1:(j&&w.warn(`Event dropped due to not being matched by \`allowUrls\` option. 12Event: ${dt(e)}. 13Url: ${Jr(e)}`),!0)}function Ip(e,t){return e.type||!t||!t.length?!1:Rp(e).some(n=>bt(n,t))}function kp(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?bt(n,t):!1}function Cp(e,t){if(!t||!t.length)return!1;const n=Jr(e);return n?bt(n,t):!1}function xp(e,t){if(!t||!t.length)return!0;const n=Jr(e);return n?bt(n,t):!0}function Rp(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 Mp(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Ap(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 Jr(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Ap(t):null}catch{return j&&w.error(`Cannot extract url for event ${dt(e)}`),null}}function Op(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 Np(e,t,n=250,r,o,s,i){if(!s.exception||!s.exception.values||!i||!Un(i.originalException,Error))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;a&&(s.exception.values=Dp(ms(e,t,o,i.originalException,r,s.exception.values,a,0),n))}function ms(e,t,n,r,o,s,i,a){if(s.length>=n+1)return s;let c=[...s];if(Un(r[o],Error)){na(i,a);const u=e(t,r[o]),d=c.length;ra(u,o,d,a),c=ms(e,t,n,r[o],o,[u,...c],u,d)}
13return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(Un(u,Error)){na(i,a);const l=e(t,u),f=c.length;ra(l,`errors[${d}]`,f,a),c=ms(e,t,n,u,o,[l,...c],l,f)}}),c}function na(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 ra(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 Dp(e,t){return e.map(n=>(n.value&&(n.value=nn(n.value,t)),n))}const lu=new Map,oa=new Set;function Lp(e){if(X._sentryModuleMetadata)for(const t of Object.keys(X._sentryModuleMetadata)){const n=X._sentryModuleMetadata[t];if(oa.has(t))continue;oa.add(t);const r=e(t);for(const o of r.reverse())if(o.filename){lu.set(o.filename,n);break}}}function Pp(e,t){return Lp(e),lu.get(t)}function du(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 o=Pp(e,r.filename);o&&(r.module_metadata=o)}})}catch{}}function fu(e){try{e.exception.values.forEach(t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[])delete n.module_metadata})}catch{}}const Ow=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{sn(t,(n,r)=>{if(r==="event"){const o=Array.isArray(n)?n[1]:void 0;o&&(fu(o),n[1]=o)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;du(n,t)})}});function $t(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 Fp(e){return e.split(/[?#]/,1)[0]}function sa(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function pu(e){const t="console";xt(t,e),Rt(t,$p)}function $p(){"console"in X&&$c.forEach(function(e){e in X.console&&ke(X.console,e,function(t){return Hi[e]=t,function(...n){Pe("console",{args:n,level:e});const o=Hi[e];o&&o.apply(X.console,n)}})})}function Qs(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Bp="CaptureConsole",Hp=((e={})=>{const t=e.levels||$c,n=!!e.handled;return{name:Bp,setup(r){"console"in X&&pu(({args:o,level:s})=>{O()!==r||!t.includes(s)||Up(o,s,n)})}}}),Nw=Hp;function Up(e,t,n){const r={level:Qs(t),extra:{arguments:e}};Kn(o=>{if(o.addEventProcessor(a=>(a.logger="console",kt(a,{handled:n,type:"console"}),a)),t==="assert"){if(!e[0]){const a=`Assertion failed: ${Yr(e.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",e.slice(1)),ps(a,r)}return}const s=e.find(a=>a instanceof Error);if(s){mo(s,r);return}const i=Yr(e," ");ps(i,r)})}const Wp="Debug",zp=((e={})=>{const t={debugger:!1,stringify:!1,...e};return{name:Wp,setup(n){n.on("beforeSendEvent",(r,o)=>{if(t.debugger)debugger;En(()=>{t.stringify?(console.log(JSON.stringify(r,null,2)),o&&Object.keys(o).length&&console.log(JSON.stringify(o,null,2))):(console.log(r),o&&Object.keys(o).length&&console.log(o))})})}}}),Dw=zp,jp="Dedupe",qp=(()=>{let e;return{name:jp,processEvent(t){if(t.type)return t;try{if(Vp(t,e))return j&&w.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),Gp=qp;function Vp(e,t){return t?!!(Yp(e,t)||Xp(e,t)):!1}function Yp(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!mu(e,t)||!hu(e,t))}function Xp(e,t){const n=ia(t),r=ia(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!mu(e,t)||!hu(e,t))}function hu(e,t){let n=cs(e),r=cs(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const s=r[o],i=n[o];if(s.filename!==i.filename||s.lineno!==i.lineno||s.colno!==i.colno||s.function!==i.function)return!1}return!0}function mu(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 ia(e){return e.exception&&e.exception.values&&e.exception.values[0]}const Kp="ExtraErrorData",Jp=((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:Kp,processEvent(r,o,s){const{maxValueLength:i=250}=s.getOptions();return Zp(r,o,t,n,i)}}}),Lw=Jp;function Zp(e,t={},n,r,o){if(!t.originalException||!St(t.originalException))return e;const s=t.originalException.name||t.originalException.constructor.name,i=Qp(t.originalException,r,o);if(i){const a={...e.contexts},c=Ge(i,n);return Gr(c)&&(an(c,"__sentry_skip_normalization__",!0),a[s]=c),{...e,contexts:a}}return e}
13function Qp(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const s of Object.keys(e)){if(r.indexOf(s)!==-1)continue;const i=e[s];o[s]=St(i)||typeof i=="string"?nn(`${i}`,n):i}if(t&&e.cause!==void 0&&(o.cause=St(e.cause)?e.cause.toString():e.cause),typeof e.toJSON=="function"){const s=e.toJSON();for(const i of Object.keys(s)){const a=s[i];o[i]=St(a)?a.toString():a}}return o}catch(r){j&&w.error("Unable to extract extra data from the Error object:",r)}return null}function eh(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const th=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function nh(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=th.exec(t);return n?n.slice(1):[]}function aa(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n=o.charAt(0)==="/")}return t=eh(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function ca(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 rh(e,t){e=aa(e).slice(1),t=aa(t).slice(1);const n=ca(e.split("/")),r=ca(t.split("/")),o=Math.min(n.length,r.length);let s=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){s=a;break}let i=[];for(let a=s;a<n.length;a++)i.push("..");return i=i.concat(r.slice(s)),i.join("/")}function oh(e,t){return nh(e)[2]||""}const sh="RewriteFrames",Pw=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in X&&X.window!==void 0,o=e.iteratee||ih({isBrowser:r,root:t,prefix:n});function s(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=>o(c))}}return{name:sh,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=s(c)),c}}};function ih({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename);if(e){if(t){const i=r.filename;i.indexOf(t)===0&&(r.filename=i.replace(t,n))}}else if(o||s){const i=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?rh(t,i):oh(i);r.filename=`${n}${a}`}return r}}const ah="SessionTiming",ch=(()=>{const e=he()*1e3;return{name:ah,processEvent(t){const n=he()*1e3;return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}}),Fw=ch,uh=10,lh="ZodErrors";function dh(e){return St(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function fh(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 ph(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function hh(e){const t=new Set;for(const r of e.issues){const o=ph(r.path);o.length>0&&t.add(o)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const o=e.issues[0];o!==void 0&&"expected"in o&&typeof o.expected=="string"&&(r=o.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${nn(n.join(", "),100)}`}function mh(e,t=!1,n,r){if(!n.exception||!n.exception.values||!r||!r.originalException||!dh(r.originalException)||r.originalException.issues.length===0)return n;try{const s=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(fh);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:s})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:hh(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":s.slice(0,e)}}}catch(o){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:o instanceof Error?`${o.name}: ${o.message} 14${o.stack}`:"unknown"}}}}}const gh=((e={})=>{const t=typeof e.limit>"u"?uh:e.limit;return{name:lh,processEvent(n,r){return mh(t,e.saveZodIssuesAsAttachment,n,r)}}}),$w=gh,Bw=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{sn(n,(r,o)=>{if(o==="event"){const s=Array.isArray(r)?r[1]:void 0;s&&(fu(s),r[1]=s)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;du(r,n)})},processEvent(t){const n=_h(t);
14if(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](s=>!s.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 _h(e){const t=cs(e);if(t)return t.filter(n=>!!n.filename).map(n=>n.module_metadata?Object.keys(n.module_metadata).filter(r=>r.startsWith(ua)).map(r=>r.slice(ua.length)):[])}const ua="_sentryBundlerPluginAppKey:",gu="c",_u="g",ei="s",yu="d",yh=5e3;function bu(e,t){const n=Yd("globalMetricsAggregators",()=>new WeakMap),r=n.get(e);if(r)return r;const o=new t(e);return e.on("flush",()=>o.flush()),e.on("close",()=>o.close()),n.set(e,o),o}function go(e,t,n,r,o={}){const s=o.client||O();if(!s)return;const i=me(),a=i?Re(i):void 0,c=a&&Y(a).description,{unit:u,tags:d,timestamp:l}=o,{release:f,environment:p}=s.getOptions(),h={};f&&(h.release=f),p&&(h.environment=p),c&&(h.transaction=c),j&&w.log(`Adding value of ${r} to ${t} metric ${n}`),bu(s,e).add(t,n,r,u,{...h,...d},l)}function bh(e,t,n=1,r){go(e,gu,t,ti(n),r)}function gs(e,t,n,r){go(e,yu,t,ti(n),r)}function Sh(e,t,n,r="second",o){if(typeof n=="function"){const s=he();return Gd({op:"metrics.timing",name:t,startTime:s,onlyIfParent:!0},i=>Vd(()=>n(),()=>{},()=>{const a=he(),c=a-s;gs(e,t,c,{...o,unit:"second"}),i.end(a)}))}gs(e,t,n,{...o,unit:r})}function Eh(e,t,n,r){go(e,ei,t,n,r)}function vh(e,t,n,r){go(e,_u,t,ti(n),r)}const Zn={increment:bh,distribution:gs,set:Eh,gauge:vh,timing:Sh,getMetricsAggregatorForClient:bu};function ti(e){return typeof e=="string"?parseInt(e):e}function wh(e,t,n,r){const o=Object.entries(Ve(r)).sort((s,i)=>s[0].localeCompare(i[0]));return`${e}${t}${n}${o}`}function Th(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 Ih(e){let t="";for(const n of e){const r=Object.entries(n.tags),o=r.length>0?`|#${r.map(([s,i])=>`${s}:${i}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${o}|T${n.timestamp} 15`}return t}function kh(e){return e.replace(/[^\w]+/gi,"_")}function Ch(e){return e.replace(/[^\w\-.]+/gi,"_")}function xh(e){return e.replace(/[^\w\-./]+/gi,"")}const Rh=[[` 16`,"\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Mh(e){for(const[t,n]of Rh)if(e===t)return n;return e}function Ah(e){return[...e].reduce((t,n)=>t+Mh(n),"")}function Oh(e){const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=xh(n);t[r]=Ah(String(e[n]))}return t}function Nh(e,t){w.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=e.getDsn(),r=e.getSdkMetadata(),o=e.getOptions().tunnel,s=Dh(t,n,r,o);e.sendEnvelope(s)}function Dh(e,t,n,r){const o={sent_at:new Date().toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=ho(t));const s=Lh(e);return Sn(o,[s])}function Lh(e){const t=Ih(e);return[{type:"statsd",length:t.length},t]}class Ph{constructor(t){this._value=t}get weight(){return 1}add(t){this._value+=t}toString(){return`${this._value}`}}class Fh{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 $h{constructor(t){this._value=[t]}get weight(){return this._value.length}add(t){this._value.push(t)}toString(){return this._value.join(":")}}class Bh{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"?Th(t):t).join(":")}}const Hh={[gu]:Ph,[_u]:Fh,[yu]:$h,[ei]:Bh};class Qn{constructor(t){this._client=t,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),yh)}add(t,n,r,o="none",s={},i=he()){const a=Math.floor(i),c=Ch(n),u=Oh(s),d=kh(o),l=wh(t,c,d,u);let f=this._buckets.get(l);const p=f&&t===ei?f.metric.weight:0;f?(f.metric.add(r),f.timestamp<a&&(f.timestamp=a)):(f={metric:new Hh[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;Xd(t,c,h,d,s,l)}flush(){if(this._buckets.size===0)return;const t=Array.from(this._buckets.values());Nh(this._client,t),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}}function Uh(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return;const s=Hn()&&t(e.fetchData.url);if(e.endTimestamp&&s){const f=e.fetchData.__span;if(!f)return;const p=r[f];p&&(jh(p,e),delete r[f]);return}const{method:i,url:a}=e.fetchData,c=zh(a),u=c?$t(c).host:void 0,d=!!me(),l=s&&d?Ke({name:`${i} ${a}`,attributes:{url:a,type:"fetch","http.method":i,"http.url":c,"server.address":u,[ee]:o,[Fe]:"http.client"}}):new js;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=Wh(f,p,Hn()&&d?l:void 0);h&&(e.args[1]=p,p.headers=h)}return l}function Wh(e,t,n){const r=uu({span:n}),o=r["sentry-trace"],s=r.baggage;if(!o)return;const i=t.headers||(qh(e)?e.headers:void 0);if(i)if(Gh(i)){const a=new Headers(i);if(a.set("sentry-trace",o),s){const c=a.get("baggage");if(c){const u=gr(c);a.set("baggage",u?`${u},${s}`:s)}else a.set("baggage",s)}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,gr(d),...l]}else return c}),["sentry-trace",o]];return s&&a.push(["baggage",s]),a}else{const a="baggage"in i?i.baggage:void 0;let c=[];return Array.isArray(a)?c=a.map(u=>typeof u=="string"?gr(u):u).filter(u=>
16u===""):a&&c.push(gr(a)),s&&c.push(s),{...i,"sentry-trace":o,baggage:c.length>0?c.join(","):void 0}}else return{...r}}function zh(e){try{return new URL(e).href}catch{return}}function jh(e,t){if(t.response){Bc(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:Bn,message:"internal_error"});e.end()}function gr(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(Kd)).join(",")}function qh(e){return typeof Request<"u"&&Un(e,Request)}function Gh(e){return typeof Headers<"u"&&Un(e,Headers)}function Vh(e,t={},n=z()){const{message:r,name:o,email:s,url:i,source:a,associatedEventId:c,tags:u}=e,d={contexts:{feedback:Ve({contact_email:s,name:o,message:r,url:i,source:a,associated_event_id:c})},type:"feedback",level:"info",tags:u},l=n&&n.getClient()||O();return l&&l.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}function Yh(){return{bindClient(e){z().setClient(e)},withScope:Kn,getClient:()=>O(),getScope:z,getIsolationScope:ve,captureException:(e,t)=>z().captureException(e,t),captureMessage:(e,t,n)=>z().captureMessage(e,t,n),captureEvent:Jn,addBreadcrumb:Je,setUser:Hf,setTags:$f,setTag:Bf,setExtra:Ff,setExtras:Pf,setContext:Zs,getIntegration(e){const t=O();return t&&t.getIntegrationByName(e.id)||null},startSession:hs,endSession:Kr,captureSession(e){if(e)return Kr();Xh()}}}const Hw=Yh;function Xh(){const e=z(),t=O(),n=e.getSession();t&&n&&t.captureSession(n)}function Su(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Zr=X;function Eu(){if(!("fetch"in Zr))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function _s(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function vu(){if(typeof EdgeRuntime=="string")return!0;if(!Eu())return!1;if(_s(Zr.fetch))return!0;let e=!1;const t=Zr.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");
16n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=_s(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Ws&&w.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Kh(){return"ReportingObserver"in Zr}function ni(e,t){const n="fetch";xt(n,e),Rt(n,()=>wu(void 0,t))}function Jh(e){const t="fetch-body-resolved";xt(t,e),Rt(t,()=>wu(Qh))}function wu(e,t=!1){t&&!vu()||ke(X,"fetch",function(n){return function(...r){const o=new Error,{method:s,url:i}=em(r),a={args:r,fetchData:{method:s,url:i},startTimestamp:he()*1e3,virtualError:o};return e||Pe("fetch",{...a}),n.apply(X,r).then(async c=>(e?e(c):Pe("fetch",{...a,endTimestamp:he()*1e3,response:c}),c),c=>{throw Pe("fetch",{...a,endTimestamp:he()*1e3,error:c}),St(c)&&c.stack===void 0&&(c.stack=o.stack,an(c,"framesToPop",1)),c})}})}async function Zh(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(i)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function Qh(e){let t;try{t=e.clone()}catch{return}Zh(t,()=>{Pe("fetch-body-resolved",{endTimestamp:he()*1e3,response:e})})}function ys(e,t){return!!e&&typeof e=="object"&&!!e[t]}function la(e){return typeof e=="string"?e:e?ys(e,"url")?e.url:e.toString?e.toString():"":""}function em(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:la(n),method:ys(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:la(t),method:ys(t,"method")?String(t.method).toUpperCase():"GET"}}function tm(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function nm(){return"npm"}function rm(){return!tm()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function bs(){return typeof window<"u"&&(!rm()||om())}function om(){const e=X.process;return!!e&&e.type==="renderer"}const _r=X;function sm(){const e=_r.chrome,t=e&&e.app&&e.app.runtime,n="history"in _r&&!!_r.history.pushState&&!!_r.history.replaceState;return!t&&n}function im(e,t){return e??t()}function Bt(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=s(n)):(o==="call"||o==="optionalCall")&&(n=s((...i)=>n.call(t,...i)),t=void 0)}return n}const I=X;let Ss=0;function Tu(){return Ss>0}function am(){Ss++,setTimeout(()=>{Ss--})}function cn(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(Xs(e))return e}catch{return e}const r=function(...o){try{const s=o.map(i=>cn(i,t));return e.apply(this,s)}catch(s){throw am(),Kn(i=>{i.addEventProcessor(a=>(t.mechanism&&(us(a,void 0),kt(a,t.mechanism)),a.extra={...a.extra,arguments:o},a)),mo(s)}),s}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}Jd(r,e),an(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const W=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ri(e,t){const n=oi(e,t),r={type:fm(t),value:pm(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function cm(e,t,n,r){const o=O(),s=o&&o.getOptions().normalizeDepth,i=ym(t),a={__serialized__:Qd(t,s)};if(i)return{exception:{values:[ri(e,i)]},extra:a};const c={exception:{values:[{type:Ks(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:gm(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=oi(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function $o(e,t){return{exception:{values:[ri(e,t)]}}}function oi(e,t){const n=t.stacktrace||t.stack||"",r=lm(t),o=dm(t);try{return e(n,r,o)}catch{}return[]}const um=/Minified React error #\d+;/i;function lm(e){return e&&um.test(e.message)?1:0}function dm(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Iu(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function fm(e){const t=e&&e.name;return!t&&Iu(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function pm(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Iu(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function hm(e,t,n,r){const o=n&&n.syntheticException||void 0,s=si(e,t,o,r);return kt(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),it(s)}function mm(e,t,n="info",r,o){const s=r&&r.syntheticException||void 0,i=Es(e,t,s,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),it(i)}function si(e,t,n,r,o){let s;if(Hc(t)&&t.error)return $o(e,t.error);if(Ui(t)||Zd(t)){const i=t;if("stack"in t)s=$o(e,t);else{const a=i.name||(Ui(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;s=Es(e,c,n,r),us(s,c)}return"code"in i&&(s.tags={...s.tags,"DOMException.code":`${i.code}`}),s}return St(t)?$o(e,t):Gr(t)||Ks(t)?(s=cm(e,t,n,o),kt(s,{synthetic:!0}),s):(s=Es(e,t,n,r),us(s,`${t}`),kt(s,{synthetic:!0}),s)}function Es(e,t,n,r){const o={};if(r&&n){const s=oi(e,n);s.length&&(o.exception={values:[{value:t,stacktrace:{frames:s}}]}),kt(o,{synthetic:!0})}
16if(Fc(t)){const{__sentry_template_string__:s,__sentry_template_values__:i}=t;return o.logentry={message:s,params:i},o}return o.message=t,o}function gm(e,{isUnhandledRejection:t}){const n=ef(e),r=t?"promise rejection":"exception";return Hc(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ks(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 ym(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function bm(e,{metadata:t,tunnel:n,dsn:r}){const o={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:ho(r)}},s=Sm(e);return Sn(o,[s])}function Sm(e){return[{type:"user_report"},e]}class Em extends Zf{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=I.SENTRY_SDK_SOURCE||nm();cu(n,"browser",["browser"],r),super(n),n.sendClientReports&&I.document&&I.document.addEventListener("visibilitychange",()=>{I.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return hm(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return mm(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){W&&w.warn("SDK not enabled, will not capture user feedback.");return}const n=bm(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 ii=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vm=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",vn=(e,t,n,r)=>{let o,s;return i=>{t.value>=0&&(i||r)&&(s=t.value-(o||0),(s||o===void 0)&&(o=t.value,t.delta=s,t.rating=vm(t.value,n),e(t)))}},N=X,wm=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,er=(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},tr=()=>{const e=er();return e&&e.activationStart||0},wn=(e,t)=>{const n=er();let r="navigate";return n&&(N.document&&N.document.prerendering||tr()>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:wm(),navigationType:r}},Ht=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Tn=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))},_o=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let On=-1;const Tm=()=>N.document.visibilityState==="hidden"&&!N.document.prerendering?0:1/0,Qr=e=>{N.document.visibilityState==="hidden"&&On>-1&&(On=e.type==="visibilitychange"?e.timeStamp:0,km())},Im=()=>{addEventListener("visibilitychange",Qr,!0),addEventListener("prerenderingchange",Qr,!0)},km=()=>{removeEventListener("visibilitychange",Qr,!0),removeEventListener("prerenderingchange",Qr,!0)},yo=()=>(N.document&&On<0&&(On=Tm(),Im()),{get firstHiddenTime(){return On}}),nr=e=>{N.document&&N.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Cm=[1800,3e3],xm=(e,t={})=>{nr(()=>{const n=yo(),r=wn("FCP");let o;const i=Ht("paint",a=>{a.forEach(c=>{c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-tr(),0),r.entries.push(c),o(!0)))})});i&&(o=vn(e,r,Cm,t.reportAllChanges))})},Rm=[.1,.25],Mm=(e,t={})=>{xm(_o(()=>{const n=wn("CLS",0);let r,o=0,s=[];const i=c=>{c.forEach(u=>{if(!u.hadRecentInput){const d=s[0],l=s[s.length-1];o&&d&&l&&u.startTime-l.startTime<1e3&&u.startTime-d.startTime<5e3?(o+=u.value,s.push(u)):(o=u.value,s=[u])}}),o>n.value&&(n.value=o,n.entries=s,r())},a=Ht("layout-shift",i);a&&(r=vn(e,n,Rm,t.reportAllChanges),Tn(()=>{i(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},Am=[100,300],Om=(e,t={})=>{nr(()=>{const n=yo(),r=wn("FID");let o;const s=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),o(!0))},i=c=>
16{c.forEach(s)},a=Ht("first-input",i);o=vn(e,r,Am,t.reportAllChanges),a&&Tn(_o(()=>{i(a.takeRecords()),a.disconnect()}))})};let ku=0,Bo=1/0,yr=0;const Nm=e=>{e.forEach(t=>{t.interactionId&&(Bo=Math.min(Bo,t.interactionId),yr=Math.max(yr,t.interactionId),ku=yr?(yr-Bo)/7+1:0)})};let vs;const Dm=()=>vs?ku:performance.interactionCount||0,Lm=()=>{"interactionCount"in performance||vs||(vs=Ht("event",Nm,{type:"event",buffered:!0,durationThreshold:0}))},rt=[],Ho=new Map,Pm=40;let Fm=0;const $m=()=>Dm()-Fm,Bm=()=>{const e=Math.min(rt.length-1,Math.floor($m()/50));return rt[e]},Uo=10,Hm=[],Um=e=>{if(Hm.forEach(r=>r(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=rt[rt.length-1],n=Ho.get(e.interactionId);if(n||rt.length<Uo||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]};Ho.set(r.id,r),rt.push(r)}rt.sort((r,o)=>o.latency-r.latency),rt.length>Uo&&rt.splice(Uo).forEach(r=>Ho.delete(r.id))}},Cu=e=>{const t=N.requestIdleCallback||N.setTimeout;let n=-1;return e=_o(e),N.document&&N.document.visibilityState==="hidden"?e():(n=t(e),Tn(e)),n},Wm=[200,500],zm=(e,t={})=>{"PerformanceEventTiming"in N&&"interactionId"in PerformanceEventTiming.prototype&&nr(()=>{Lm();const n=wn("INP");let r;const o=i=>{Cu(()=>{i.forEach(Um);const a=Bm();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())})},s=Ht("event",o,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:Pm});r=vn(e,n,Wm,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),Tn(()=>{o(s.takeRecords()),r(!0)}))})},jm=[2500,4e3],da={},qm=(e,t={})=>{nr(()=>{const n=yo(),r=wn("LCP");let o;const s=a=>{t.reportAllChanges||(a=a.slice(-1)),a.forEach(c=>{c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-tr(),0),r.entries=[c],o())})},i=Ht("largest-contentful-paint",s);if(i){o=vn(e,r,jm,t.reportAllChanges);const a=_o(()=>{da[r.id]||(s(i.takeRecords()),i.disconnect(),da[r.id]=!0,o(!0))});["keydown","click"].forEach(c=>{N.document&&addEventListener(c,()=>Cu(a),{once:!0,capture:!0})}),Tn(a)}})},Gm=[800,1800],ws=e=>{N.document&&N.document.prerendering?nr(()=>ws(e)):N.document&&N.document.readyState!=="complete"?addEventListener("load",()=>ws(e),!0):setTimeout(e,0)},Vm=(e,t={})=>{const n=wn("TTFB"),r=vn(e,n,Gm,t.reportAllChanges);ws(()=>{const o=er();o&&(n.value=Math.max(o.responseStart-tr(),0),n.entries=[o],r(!0))})},Nn={},eo={};let xu,Ru,Mu,Au,Ou;function ai(e,t=!1){return rr("cls",e,Xm,xu,t)}function Nu(e,t=!1){return rr("lcp",e,Jm,Mu,t)}function Du(e){return rr("fid",e,Km,Ru)}function Ym(e){return rr("ttfb",e,Zm,Au)}function Lu(e){return rr("inp",e,Qm,Ou)}function un(e,t){return Pu(e,t),eo[e]||(eg(e),eo[e]=!0),Fu(e,t)}function In(e,t){const n=Nn[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){ii&&w.error(`Error while triggering instrumentation handler. 17Type: ${e} 18Name: ${It(r)} 19Error:`,o)}}function Xm(){return Mm(e=>{In("cls",{metric:e}),xu=e},{reportAllChanges:!0})}function Km(){return Om(e=>{In("fid",{metric:e}),Ru=e})}function Jm(){return qm(e=>{In("lcp",{metric:e}),Mu=e},{reportAllChanges:!0})}function Zm(){return Vm(e=>{In("ttfb",{metric:e}),Au=e})}function Qm(){return zm(e=>{In("inp",{metric:e}),Ou=e})}function rr(e,t,n,r,o=!1){Pu(e,t);let s;return eo[e]||(s=n(),eo[e]=!0),r&&t({metric:r}),Fu(e,t,o?s:void 0)}function eg(e){const t={};e==="event"&&(t.durationThreshold=0),Ht(e,n=>{In(e,{entries:n})},t)}function Pu(e,t){Nn[e]=Nn[e]||[],Nn[e].push(t)}function Fu(e,t,n){return()=>{n&&n();const r=Nn[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function tg(e){return"duration"in e}function Wo(e){return typeof e=="number"&&isFinite(e)}function at(e,t,n,{...r}){const o=Y(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),ls(e,()=>{const s=Ke({startTime:t,...r});return s&&s.end(n),s})}function $u(e){const t=O();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:s}=e,{release:i,environment:a}=t.getOptions(),c=t.getIntegrationByName("Replay"),u=c&&c.getReplayId(),d=z(),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,...o};return Ke({name:n,attributes:h,startTime:s,experimental:{standalone:!0}})}function ci(){return N&&N.addEventListener&&N.performance}function pe(e){return e/1e3}function Bu(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}
19return r===e&&(t=r),{name:t,version:n}}function ng(){let e=0,t,n;if(!og())return;let r=!1;function o(){r||(r=!0,n&&rg(e,t,n),s())}const s=ai(({metric:i})=>{const a=i.entries[i.entries.length-1];a&&(e=i.value,t=a)},!0);Tn(()=>{o()}),setTimeout(()=>{const i=O();if(!i)return;const a=i.on("startNavigationSpan",()=>{o(),a&&a()}),c=me(),u=c&&Re(c),d=u&&Y(u);d&&d.op==="pageload"&&(n=u.spanContext().spanId)},0)}function rg(e,t,n){ii&&w.log(`Sending CLS span (${e})`);const r=pe((Ee||0)+(t&&t.startTime||0)),o=z().getScopeData().transactionName,s=t?Ct(t.sources[0]&&t.sources[0].node):"Layout shift",i=Ve({[ee]:"auto.http.browser.cls",[Fe]:"ui.webvital.cls",[zc]:t&&t.duration||0,"sentry.pageload.span_id":n}),a=$u({name:s,transaction:o,attributes:i,startTime:r});a&&(a.addEvent("cls",{[Wc]:"",[Uc]:e}),a.end(r))}function og(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const sg=2147483647;let fa=0,ye={},xe,Dn;function ig({recordClsStandaloneSpans:e}){const t=ci();if(t&&Ee){t.mark&&N.performance.mark("sentry-tracing-init");const n=fg(),r=dg(),o=pg(),s=e?ng():lg();return()=>{n(),r(),o(),s&&s()}}return()=>{}}function ag(){un("longtask",({entries:e})=>{const t=me();if(!t)return;const{op:n,start_timestamp:r}=Y(t);for(const o of e){const s=pe(Ee+o.startTime),i=pe(o.duration);n==="navigation"&&r&&s<r||at(t,s,s+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[ee]:"auto.ui.browser.metrics"}})}})}function cg(){new PerformanceObserver(t=>{const n=me();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const o=pe(Ee+r.startTime),{start_timestamp:s,op:i}=Y(n);if(i==="navigation"&&s&&o<s)continue;const a=pe(r.duration),c={[ee]:"auto.ui.browser.metrics"},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),at(n,o,o+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function ug(){un("event",({entries:e})=>{const t=me();if(t){for(const n of e)if(n.name==="click"){const r=pe(Ee+n.startTime),o=pe(n.duration),s={name:Ct(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[ee]:"auto.ui.browser.metrics"}},i=jc(n.target);i&&(s.attributes["ui.component_name"]=i),at(t,r,r+o,s)}}})}function lg(){return ai(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ye.cls={value:e.value,unit:""},Dn=t)},!0)}function dg(){return Nu(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ye.lcp={value:e.value,unit:"millisecond"},xe=t)},!0)}function fg(){return Du(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=pe(Ee),r=pe(t.startTime);ye.fid={value:e.value,unit:"millisecond"},ye["mark.fid"]={value:n+r,unit:"second"}})}function pg(){return Ym(({metric:e})=>{e.entries[e.entries.length-1]&&(ye.ttfb={value:e.value,unit:"millisecond"})})}function hg(e,t){const n=ci();if(!n||!n.getEntries||!Ee)return;const r=pe(Ee),o=n.getEntries(),{op:s,start_timestamp:i}=Y(e);if(o.slice(fa).forEach(a=>{const c=pe(a.startTime),u=pe(Math.max(0,a.duration));if(!(s==="navigation"&&i&&r+c<i))switch(a.entryType){case"navigation":{gg(e,a,r);break}case"mark":case"paint":case"measure":{mg(e,a,c,u,r);const d=yo(),l=a.startTime<d.firstHiddenTime;a.name==="first-paint"&&l&&(ye.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&l&&(ye.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{bg(e,a,a.name,c,u,r);break}}}),fa=Math.max(o.length-1,0),Sg(e),s==="pageload"){vg(ye);const a=ye["mark.fid"];a&&ye.fid&&(at(e,a.value,a.value+pe(ye.fid.value),{name:"first input delay",op:"ui.action",attributes:{[ee]:"auto.ui.browser.metrics"}}),delete ye["mark.fid"]),(!("fcp"in ye)||!t.recordClsOnPageloadSpan)&&delete ye.cls,Object.entries(ye).forEach(([c,u])=>{tf(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",tr()),Eg(e)}xe=void 0,Dn=void 0,ye={}}function mg(e,t,n,r,o){const s=er(!1),i=pe(s?s.requestStart:0),a=o+Math.max(n,i),c=o+n,u=c+r,d={[ee]:"auto.resource.browser.metrics"};
19a!==c&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=a),a<=u&&at(e,a,u,{name:t.name,op:t.entryType,attributes:d})}function gg(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{br(e,t,r,n)}),br(e,t,"secureConnection",n,"TLS/SSL"),br(e,t,"fetch",n,"cache"),br(e,t,"domainLookup",n,"DNS"),yg(e,t,n)}function br(e,t,n,r,o=n){const s=_g(n),i=t[s],a=t[`${n}Start`];!a||!i||at(e,r+pe(a),r+pe(i),{op:`browser.${o}`,name:t.name,attributes:{[ee]:"auto.ui.browser.metrics"}})}function _g(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function yg(e,t,n){const r=n+pe(t.requestStart),o=n+pe(t.responseEnd),s=n+pe(t.responseStart);t.responseEnd&&(at(e,r,o,{op:"browser.request",name:t.name,attributes:{[ee]:"auto.ui.browser.metrics"}}),at(e,s,o,{op:"browser.response",name:t.name,attributes:{[ee]:"auto.ui.browser.metrics"}}))}function bg(e,t,n,r,o,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const i=$t(n),a={[ee]:"auto.resource.browser.metrics"};zo(a,t,"transferSize","http.response_transfer_size"),zo(a,t,"encodedBodySize","http.response_content_length"),zo(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}=Bu(t.nextHopProtocol);a["network.protocol.name"]=d,a["network.protocol.version"]=l;const f=s+r,p=f+o;at(e,f,p,{name:n.replace(N.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})}function Sg(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),Wo(n.rtt)&&(ye["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Wo(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Wo(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function Eg(e){xe&&(xe.element&&e.setAttribute("lcp.element",Ct(xe.element)),xe.id&&e.setAttribute("lcp.id",xe.id),xe.url&&e.setAttribute("lcp.url",xe.url.trim().slice(0,200)),xe.loadTime!=null&&e.setAttribute("lcp.loadTime",xe.loadTime),xe.renderTime!=null&&e.setAttribute("lcp.renderTime",xe.renderTime),e.setAttribute("lcp.size",xe.size)),Dn&&Dn.sources&&Dn.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,Ct(t.node)))}function zo(e,t,n,r){const o=t[n];o!=null&&o<sg&&(e[r]=o)}function vg(e){const t=er(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const wg=1e3;let pa,Ts,Is;function Hu(e){xt("dom",e),Rt("dom",Tg)}function Tg(){if(!N.document)return;const e=Pe.bind(null,"dom"),t=ha(e,!0);N.document.addEventListener("click",t,!1),N.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=N[n],s=o&&o.prototype;!s||!s.hasOwnProperty||!s.hasOwnProperty("addEventListener")||(ke(s,"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=ha(e);l.handler=f,i.call(this,a,f,u)}l.refCount++}catch{}return i.call(this,a,c,u)}}),ke(s,"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 Ig(e){if(e.type!==Ts)return!1;try{if(!e.target||e.target._sentryId!==Is)return!1}catch{}return!0}function kg(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function ha(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Cg(n);if(kg(n.type,r))return;an(n,"_sentryCaptured",!0),r&&!r._sentryId&&an(r,"_sentryId",yt());
19const o=n.type==="keypress"?"input":n.type;Ig(n)||(e({event:n,name:o,global:t}),Ts=n.type,Is=r?r._sentryId:void 0),clearTimeout(pa),pa=N.setTimeout(()=>{Is=void 0,Ts=void 0},wg)}}function Cg(e){try{return e.target}catch{return null}}let Sr;function bo(e){const t="history";xt(t,e),Rt(t,xg)}function xg(){if(!sm())return;const e=N.onpopstate;N.onpopstate=function(...n){const r=N.location.href,o=Sr;if(Sr=r,Pe("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const s=Sr,i=String(o);Sr=i,Pe("history",{from:s,to:i})}return n.apply(this,r)}}ke(N.history,"pushState",t),ke(N.history,"replaceState",t)}const Nr={};function ui(e){const t=Nr[e];if(t)return t;let n=N[e];if(_s(n))return Nr[e]=n.bind(N);const r=N.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const s=o.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(o)}catch(o){ii&&w.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Nr[e]=n.bind(N))}function ma(e){Nr[e]=void 0}function ln(...e){return ui("setTimeout")(...e)}const gt="__sentry_xhr_v3__";function li(e){xt("xhr",e),Rt("xhr",Rg)}function Rg(){if(!N.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=new Error,s=he()*1e3,i=An(r[0])?r[0].toUpperCase():void 0,a=Mg(r[1]);if(!i||!a)return t.apply(n,r);n[gt]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[gt];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:he()*1e3,startTimestamp:s,xhr:n,virtualError:o};Pe("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[gt];return h&&An(f)&&An(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 o=n[gt];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const s={startTimestamp:he()*1e3,xhr:n};return Pe("xhr",s),t.apply(n,r)}})}function Mg(e){if(An(e))return e;try{return e.toString()}catch{}}const jo=[],Dr=new Map;function Ag(){if(ci()&&Ee){const t=Og();return()=>{t()}}return()=>{}}const ga={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 Og(){return Lu(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(h=>h.duration===e.value&&ga[h.name]);if(!t)return;const{interactionId:n}=t,r=ga[t.name],o=pe(Ee+t.startTime),s=pe(e.value),i=me(),a=i?Re(i):void 0,u=(n!=null?Dr.get(n):void 0)||a,d=u?Y(u).description:z().getScopeData().transactionName,l=Ct(t.target),f=Ve({[ee]:"auto.http.browser.inp",[Fe]:`ui.interaction.${r}`,[zc]:t.duration}),p=$u({name:l,transaction:d,attributes:f,startTime:o});p&&(p.addEvent("inp",{[Wc]:"millisecond",[Uc]:e.value}),p.end(o+s))})}function Ng(e){const t=({entries:n})=>{const r=me(),o=r&&Re(r);n.forEach(s=>{if(!tg(s)||!o)return;const i=s.interactionId;if(i!=null&&!Dr.has(i)){if(jo.length>10){const a=jo.shift();Dr.delete(a)}jo.push(i),Dr.set(i,o)}})};un("event",t),un("first-input",t)}function Uu(e,t=ui("fetch")){let n=0,r=0;function o(s){const i=s.body.length;n+=i,r++;const a={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return ma("fetch"),Xr("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 ma("fetch"),n-=i,r--,Xr(c)}}return ap(e,o)}const Dg=10,Lg=20,Pg=30,Fg=40,$g=50;function dn(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?st:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const Bg=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Hg=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ug=/\((\S*)(?::(\d+))(?::(\d+))\)/,Wg=e=>{const t=Bg.exec(e);if(t){const[,r,o,s]=t;return dn(r,st,+o,+s)}const n=Hg.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=Ug.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[o,s]=Wu(n[1]||st,n[2]);return dn(s,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},zg=[Pg,Wg],jg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,qg=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Gg=e=>{const t=jg.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=qg.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],o=t[1]||st;return[o,r]=Wu(o,r),dn(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Vg=[$g,Gg],Yg=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Xg=e=>{const t=Yg.exec(e);return t?dn(t[2],t[1]||st,+t[3],t[4]?+t[4]:void 0):void 0},Uw=[Fg,Xg],Kg=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Jg=e=>{const t=Kg.exec(e);return t?dn(t[2],t[3]||st,+t[1]):void 0},Ww=[Dg,Jg],Zg=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Qg=e=>{const t=Zg.exec(e);return t?dn(t[5],t[3]||t[4]||st,+t[1],+t[2]):void 0},zw=[Lg,Qg],e_=[zg,Vg],t_=nf(...e_),Wu=(e,t)=>
vendor: 6,579 bytes, line 19
19{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:st,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Er=1024,n_="Breadcrumbs",r_=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:n_,setup(n){t.console&&pu(a_(n)),t.dom&&Hu(i_(n,t.dom)),t.xhr&&li(c_(n)),t.fetch&&ni(u_(n)),t.history&&bo(l_(n)),t.sentry&&n.on("beforeSendEvent",s_(n))}}}),o_=r_;function s_(e){return function(n){O()===e&&Je({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:dt(n)},{event:n})}}function i_(e,t){return function(r){if(O()!==e)return;let o,s,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Er&&(W&&w.warn(`\`dom.maxStringLength\` cannot exceed ${Er}, but a value of ${a} was configured. Sentry will use ${Er} instead.`),a=Er),typeof i=="string"&&(i=[i]);try{const u=r.event,d=d_(u)?u.target:u;o=Ct(d,{keyAttrs:i,maxStringLength:a}),s=jc(d)}catch{o="<unknown>"}if(o.length===0)return;const c={category:`ui.${r.name}`,message:o};s&&(c.data={"ui.component_name":s}),Je(c,{event:r.event,name:r.name,global:r.global})}}function a_(e){return function(n){if(O()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Qs(n.level),message:Yr(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Yr(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Je(r,{input:n.args,level:n.level})}}function c_(e){return function(n){if(O()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,s=n.xhr[gt];if(!r||!o||!s)return;const{method:i,url:a,status_code:c,body:u}=s,d={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:o},f=Su(c);Je({category:"xhr",data:d,type:"http",level:f},l)}}function u_(e){return function(n){if(O()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};Je({category:"fetch",data:s,level:"error",type:"http"},i)}else{const s=n.response,i={...n.fetchData,status_code:s&&s.status},a={input:n.args,response:s,startTimestamp:r,endTimestamp:o},c=Su(i.status_code);Je({category:"fetch",data:i,type:"http",level:c},a)}}}function l_(e){return function(n){if(O()!==e)return;let r=n.from,o=n.to;const s=$t(I.location.href);let i=r?$t(r):void 0;const a=$t(o);(!i||!i.path)&&(i=s),s.protocol===a.protocol&&s.host===a.host&&(o=a.relative),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),Je({category:"navigation",data:{from:r,to:o}})}}function d_(e){return!!e&&!!e.target}const f_=["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"],p_="BrowserApiErrors",h_=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:p_,setupOnce(){t.setTimeout&&ke(I,"setTimeout",_a),t.setInterval&&ke(I,"setInterval",_a),t.requestAnimationFrame&&ke(I,"requestAnimationFrame",g_),t.XMLHttpRequest&&"XMLHttpRequest"in I&&ke(XMLHttpRequest.prototype,"send",__);const n=t.eventTarget;n&&(Array.isArray(n)?n:f_).forEach(y_)}}}),m_=h_;function _a(e){return function(...t){const n=t[0];return t[0]=cn(n,{mechanism:{data:{function:It(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function g_(e){return function(t){return e.apply(this,[cn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:It(e)},handled:!1,type:"instrument"}})])}}function __(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&ke(n,o,function(s){const i={mechanism:{data:{function:o,handler:It(s)},handled:!1,type:"instrument"}},a=Xs(s);return a&&(i.mechanism.data.handler=It(a)),cn(s,i)})}),e.apply(this,t)}}function y_(e){const n=I[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(ke(r,"addEventListener",function(o){return function(s,i,a){try{b_(i)&&(i.handleEvent=cn(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:It(i),target:e},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[s,cn(i,{mechanism:{data:{function:"addEventListener",handler:It(i),target:e},handled:!1,type:"instrument"}}),a])}}),ke(r,"removeEventListener",function(o){return function(s,i,a){try{const c=i.__sentry_wrapped__;c&&o.call(this,s,c,a)}catch{}return o.call(this,s,i,a)}}))}function b_(e){return typeof e.handleEvent=="function"}const S_=()=>({name:"BrowserSession",setupOnce(){if(typeof I.document>"u"){W&&w.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}hs({ignoreDuration:!0}),Vi(),bo(({from:e,to:t})=>{e!==void 0&&e!==t&&(hs({ignoreDuration:!0}),Vi())})}}),E_="GlobalHandlers",v_=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:E_,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(T_(n),ya("onerror")),t.onunhandledrejection&&(I_(n),ya("onunhandledrejection"))}}}),w_=v_;function T_(e){qc(t=>{const{stackParser:n,attachStacktrace:r}=zu();if(O()!==e||Tu())return;const{msg:o,url:s,line:i,column:a,error:c}=t,u=x_(si(n,c||o,void 0,r,!1),s,i,a);u.level="error",Jn(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function I_(e){Gc(t=>{const{stackParser:n,attachStacktrace:r}=zu();if(O()!==e||Tu())return;const o=k_(t),s=Ys(o)?C_(o):si(n,o,void 0,r,!0);s.level="error",Jn(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function k_(e){if(Ys(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 C_(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function x_(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],i=s[0]=s[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,d=n,l=An(t)&&t.length>0?t:Js();
19return c.length===0&&c.push({colno:u,filename:l,function:st,in_app:!0,lineno:d}),e}function ya(e){W&&w.log(`Global Handler attached: ${e}`)}function zu(){const e=O();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const R_=()=>({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||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:o};e.request=s}}),M_="cause",A_=5,O_="LinkedErrors",N_=((e={})=>{const t=e.limit||A_,n=e.key||M_;return{name:O_,preprocessEvent(r,o,s){const i=s.getOptions();Np(ri,i.stackParser,i.maxValueLength,n,t,r,o)}}}),D_=N_;function L_(e){const t=[vp(),yp(),m_(),o_(),w_(),D_(),Gp(),R_()];return e.autoSessionTracking!==!1&&t.push(S_()),t}function P_(e={}){const t={defaultIntegrations:L_(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 F_(){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,o=I.location&&I.location.href||"",s=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&I===I.top&&s.some(c=>o.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function $_(e={}){const t=P_(e);if(!t.skipBrowserExtensionCheck&&F_()){En(()=>{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}W&&(Eu()||w.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:rf(t.stackParser||t_),integrations:Xf(t),transport:t.transport||Uu};return tp(Em,n)}function ba(e={}){if(!I.document){W&&w.error("Global document not defined in showReportDialog call");return}const t=z(),n=t.getClient(),r=n&&n.getDsn();if(!r){W&&w.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=Uf();a&&(e.eventId=a)}const o=I.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=Vf(r,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:s}=e;if(s){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{s()}finally{I.removeEventListener("message",a)}};I.addEventListener("message",a)}const i=I.document.head||I.document.body;i?i.appendChild(o):W&&w.error("Not injecting report dialog. No injection point found in HTML")}function jw(){}function qw(e){e()}function Gw(e){const t=O();t&&t.captureUserFeedback(e)}const B_={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"},Sa=I;async function H_(e,t){const n=B_[e],r=Sa.Sentry=Sa.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const o=r[e];if(typeof o=="function"&&!("_isShim"in o))return o;const s=U_(n),i=I.document.createElement("script");i.src=s,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 U_(e){const t=O(),n=t&&t.getOptions(),r=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${as}/${e}.min.js`,r).toString()}const W_=X,z_="ReportingObserver",Ea=new WeakMap,j_=((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(Ea.has(O()))for(const o of r)Kn(s=>{s.setExtra("url",o.url);const i=`ReportingObserver [${o.type}]`;let a="No details available";if(o.body){const c={};for(const u in o.body)c[u]=o.body[u];if(s.setExtra("body",c),o.type==="crash"){const u=o.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=o.body.message||a}ps(`${i}: ${a}`)})}return{name:z_,setupOnce(){if(!Kh())return;new W_.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){Ea.set(r,!0)}}}),Vw=j_,q_="HttpClient",G_=((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:q_,setup(n){ey(n,t),ty(n,t)}}}),Yw=G_;function V_(e,t,n,r,o){if(qu(e,n.status,n.url)){const s=ny(t,r);let i,a,c,u;Vu()&&([i,c]=va("Cookie",s),[a,u]=va("Set-Cookie",n));const d=Gu({url:s.url,method:s.method,status:n.status,requestHeaders:i,responseHeaders:a,requestCookies:c,responseCookies:u,error:o});Jn(d)}}function va(e,t){const n=K_(t.headers);let r;try{const o=n[e]||n[e.toLowerCase()]||void 0;o&&(r=ju(o))}catch{}return[n,r]}function Y_(e,t,n,r,o){if(qu(e,t.status,t.responseURL)){let s,i,a;
19if(Vu()){try{const u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(i=ju(u))}catch{}try{a=J_(t)}catch{}s=r}const c=Gu({url:t.responseURL,method:n,status:t.status,requestHeaders:s,responseHeaders:a,responseCookies:i,error:o});Jn(c)}}function X_(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function ju(e){return e.split("; ").reduce((t,n)=>{const[r,o]=n.split("=");return r&&o&&(t[r]=o),t},{})}function K_(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function J_(e){const t=e.getAllResponseHeaders();return t?t.split(`\r 20`).reduce((n,r)=>{const[o,s]=r.split(": ");return o&&s&&(n[o]=s),n},{}):{}}function Z_(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function Q_(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function ey(e,t){vu()&&ni(n=>{if(O()!==e)return;const{response:r,args:o,error:s,virtualError:i}=n,[a,c]=o;r&&V_(t,a,r,c,s||i)},!1)}function ty(e,t){"XMLHttpRequest"in X&&li(n=>{if(O()!==e)return;const{error:r,virtualError:o}=n,s=n.xhr,i=s[gt];if(!i)return;const{method:a,request_headers:c}=i;try{Y_(t,s,a,c,r||o)}catch(u){W&&w.warn("Error while extracting response event form XHR response",u)}})}function qu(e,t,n){return Q_(e.failedRequestStatusCodes,t)&&Z_(e.failedRequestTargets,n)&&!au(n,O())}function Gu(e){const t=O(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,s={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:X_(e.responseHeaders)}}};return kt(s,{type:"http.client",handled:!1}),s}function ny(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function Vu(){const e=O();return e?!!e.getOptions().sendDefaultPii:!1}const qo=X,ry=7,oy="ContextLines",sy=((e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:ry;return{name:oy,processEvent(n){return iy(n,t)}}}),Xw=sy;function iy(e,t){const n=qo.document,r=qo.location&&Fp(qo.location.href);if(!n||!r)return e;const o=e.exception&&e.exception.values;if(!o||!o.length)return e;const s=n.documentElement.innerHTML;if(!s)return e;const i=["<!DOCTYPE html>","<html>",...s.split(` 21`),"</html>"];return o.forEach(a=>{const c=a.stacktrace;c&&c.frames&&(c.frames=c.frames.map(u=>ay(u,i,r,t)))}),e}function ay(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||of(t,e,r),e}const ie=X,di="sentryReplaySession",cy="replay_event",fi="Unable to send Replay",uy=3e5,ly=9e5,dy=5e3,fy=5500,py=6e4,hy=5e3,my=3,wa=15e4,vr=5e3,gy=3e3,_y=300,pi=2e7,yy=4999,by=15e3,Ta=36e5;function ks(e,t){return e??t()}function Wn(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=s(n)):(o==="call"||o==="optionalCall")&&(n=s((...i)=>n.call(t,...i)),t=void 0)}return n}var ge;(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"})(ge||(ge={}));function Sy(e){return e.nodeType===e.ELEMENT_NODE}function Ln(e){const t=Wn([e,"optionalAccess",n=>n.host]);return Wn([t,"optionalAccess",n=>n.shadowRoot])===e}function Pn(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Ey(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 vy(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 to(e){try{const t=e.rules||e.cssRules;return t?Ey(Array.from(t,Yu).join("")):null}catch{return null}}function wy(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],s=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}function Yu(e){let t;if(Iy(e))try{t=to(e.styleSheet)||vy(e)}catch{}else if(ky(e)){let n=e.cssText;const r=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=wy(e)),r&&(n=Ty(n)),r||o)return n}return t||e.cssText}function Ty(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Iy(e){return"styleSheet"in e}function ky(e){return"selectorText"in e}class Xu{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=Wn([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return ks(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);
21this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Cy(){return new Xu}function So({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 zn({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function fn(e){return e.toLowerCase()}function Cs(e){return e.toUpperCase()}const Ia="__rrweb_original__";function xy(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){const s=t.getImageData,i=Ia in s?s[Ia]:s;if(new Uint32Array(i.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function hi(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?fn(t):null}function no(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Ku(e,t){let n;try{n=new URL(e,ks(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(r);return ks(Wn([o,"optionalAccess",s=>s[1]]),()=>null)}const ka={};function Ju(e){const t=ka[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const s=o.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(o)}catch{}return ka[e]=r.bind(window)}function xs(...e){return Ju("setTimeout")(...e)}function Zu(...e){return Ju("clearTimeout")(...e)}function Qu(e){try{return e.contentDocument}catch{}}let Ry=1;const My=new RegExp("[^a-z0-9-_:]"),jn=-2;function mi(){return Ry++}function Ay(e){if(e instanceof HTMLFormElement)return"form";const t=fn(e.tagName);return My.test(t)?"div":t}function Oy(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Gt,Ca;const Ny=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Dy=/^(?:[a-z+]+:)?\/\//i,Ly=/^www\..*/i,Py=/^(data:)([^,]*),(.*)/i;function ro(e,t){return(e||"").replace(Ny,(n,r,o,s,i,a)=>{const c=o||i||a,u=r||s||"";if(!c)return n;if(Dy.test(c)||Ly.test(c))return`url(${u}${c}${u})`;if(Py.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${Oy(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 Fy=/^[^ \t\n\r\u000c]+/,$y=/^[, \t\n\r\u000c]+/;function By(e,t){if(t.trim()==="")return t;let n=0;function r(s){let i;const a=s.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}const o=[];for(;r($y),!(n>=t.length);){let s=r(Fy);if(s.slice(-1)===",")s=Kt(e,s.substring(0,s.length-1)),o.push(s);else{let i="";s=Kt(e,s);let a=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((s+i).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,o.push((s+i).trim());break}else c==="("&&(a=!0);i+=c,n+=1}}}return o.join(", ")}const xa=new WeakMap;function Kt(e,t){return!t||t.trim()===""?t:Eo(e,t)}function Hy(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Eo(e,t){let n=xa.get(e);if(n||(n=e.createElement("a"),xa.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function el(e,t,n,r,o,s){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Kt(e,r):n==="srcset"?By(e,r):n==="style"?ro(r,Eo(e)):t==="object"&&n==="data"?Kt(e,r):typeof s=="function"?s(n,r,o):r)}function tl(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Uy(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const s=e.classList[o];if(t.test(s))return!0}if(n)return e.matches(n)}catch{}return!1}function Wy(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Pt(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Pt(e.parentNode,t,n,r+1)}function Jt(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Wy(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function pn(e,t,n,r,o,s){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(s){if(c=Pt(i,Jt(r,o)),c<0)return!0;a=Pt(i,Jt(t,n),c>=0?c:1/0)}else{if(a=Pt(i,Jt(t,n)),a<0)return!1;c=Pt(i,Jt(r,o),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!s}catch{}return!!s}function zy(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const a=xs(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{Zu(a),o=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return xs(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function jy(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const s=xs(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Zu(s),r=!0,t()})}function qy(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:b,dataURLOptions:y={}
21,inlineImages:v,recordCanvas:C,keepIframeSrcFn:R,newlyAddedElement:_=!1}=t,E=Gy(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ge.Document,childNodes:[],compatMode:e.compatMode}:{type:ge.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ge.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return Yy(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:b,dataURLOptions:y,inlineImages:v,recordCanvas:C,keepIframeSrcFn:R,newlyAddedElement:_,rootId:E,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f});case e.TEXT_NODE:return Vy(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:b,rootId:E});case e.CDATA_SECTION_NODE:return{type:ge.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:ge.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function Gy(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Vy(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,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,m=l==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||Wn([e,"access",y=>y.parentNode,"access",y=>y.sheet,"optionalAccess",y=>y.cssRules])&&(f=to(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}f=ro(f,Eo(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const b=pn(e,r,s,o,i,n);if(!p&&!h&&!m&&f&&b&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||b)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),l==="OPTION"&&f){const y=So({type:null,tagName:l,maskInputOptions:c});f=zn({isMasked:pn(e,r,s,o,i,y),element:e,value:f,maskInputFn:u})}return{type:ge.Text,textContent:f||"",isStyle:p,rootId:d}}function Yy(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskTextClass:b,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:C}=t,R=Uy(e,r,o,s),_=Ay(e);let E={};const x=e.attributes.length;for(let g=0;g<x;g++){const S=e.attributes[g];S.name&&!tl(_,S.name,S.value)&&(E[S.name]=el(n,_,fn(S.name),S.value,e,c))}if(_==="link"&&i){const g=Array.from(n.styleSheets).find(k=>k.href===e.href);let S=null;g&&(S=to(g)),S&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=ro(S,g.href))}if(_==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const g=to(e.sheet);g&&(E._cssText=ro(g,Eo(n)))}if(_==="input"||_==="textarea"||_==="select"||_==="option"){const g=e,S=hi(g),k=no(g,Cs(_),S),T=g.checked;if(S!=="submit"&&S!=="button"&&k){const $=pn(g,b,v,y,C,So({type:S,tagName:Cs(_),maskInputOptions:a}));E.value=zn({isMasked:$,element:g,value:k,maskInputFn:u})}T&&(E.checked=T)}if(_==="option"&&(e.selected&&!a.select?E.selected=!0:delete E.selected),_==="canvas"&&f){if(e.__context==="2d")xy(e)||(E.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const g=e.toDataURL(d.type,d.quality),S=n.createElement("canvas");S.width=e.width,S.height=e.height;const k=S.toDataURL(d.type,d.quality);g!==k&&(E.rr_dataURL=g)}}if(_==="img"&&l){Gt||(Gt=n.createElement("canvas"),Ca=Gt.getContext("2d"));const g=e,S=g.currentSrc||g.getAttribute("src")||"<unknown-src>",k=g.crossOrigin,T=()=>{g.removeEventListener("load",T);try{Gt.width=g.naturalWidth,Gt.height=g.naturalHeight,Ca.drawImage(g,0,0),E.rr_dataURL=Gt.toDataURL(d.type,d.quality)}catch($){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?T():g.addEventListener("load",T);return}else console.warn(`Cannot inline img src=${S}! Error: ${$}`)}g.crossOrigin==="anonymous"&&(k?E.crossOrigin=k:g.removeAttribute("crossorigin"))};
21g.complete&&g.naturalWidth!==0?T():g.addEventListener("load",T)}if((_==="audio"||_==="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)),R){const{width:g,height:S}=e.getBoundingClientRect();E={class:E.class,rr_width:`${g}px`,rr_height:`${S}px`}}_==="iframe"&&!p(E.src)&&(!R&&!Qu(e)&&(E.rr_src=E.src),delete E.src);let M;try{customElements.get(_)&&(M=!0)}catch{}return{type:ge.Element,tagName:_,attributes:E,childNodes:[],isSVG:Hy(e)||void 0,needBlock:R,rootId:m,isCustom:M}}function se(e){return e==null?"":e.toLowerCase()}function Xy(e,t){if(t.comment&&e.type===ge.Comment)return!0;if(e.type===ge.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"&&Ku(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 Zt(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:b,maskInputFn:y,slimDOMOptions:v,dataURLOptions:C={},inlineImages:R=!1,recordCanvas:_=!1,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:M=5e3,onStylesheetLoad:g,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:T=!1}=t;let{preserveWhiteSpace:$=!0}=t;const q=qy(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:b,maskInputFn:y,dataURLOptions:C,inlineImages:R,recordCanvas:_,keepIframeSrcFn:k,newlyAddedElement:T});if(!q)return console.warn(e,"not serialized"),null;let B;r.hasNode(e)?B=r.getId(e):Xy(q,v)||!$&&q.type===ge.Text&&!q.isStyle&&!q.textContent.replace(/^\s+|\s+$/gm,"").length?B=jn:B=mi();const A=Object.assign(q,{id:B});if(r.add(e,A),B===jn)return null;E&&E(e);let ae=!f;if(A.type===ge.Element){ae=ae&&!A.needBlock,delete A.needBlock;const L=e.shadowRoot;L&&Pn(L)&&(A.isShadowHost=!0)}if((A.type===ge.Document||A.type===ge.Element)&&ae){v.headWhitespace&&A.type===ge.Element&&A.tagName==="head"&&($=!1);const L={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:b,maskInputFn:y,slimDOMOptions:v,dataURLOptions:C,inl
21ineImages:R,recordCanvas:_,preserveWhiteSpace:$,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:M,onStylesheetLoad:g,stylesheetLoadTimeout:S,keepIframeSrcFn:k};for(const te of Array.from(e.childNodes)){const we=Zt(te,L);we&&A.childNodes.push(we)}if(Sy(e)&&e.shadowRoot)for(const te of Array.from(e.shadowRoot.childNodes)){const we=Zt(te,L);we&&(Pn(e.shadowRoot)&&(we.isShadow=!0),A.childNodes.push(we))}}return e.parentNode&&Ln(e.parentNode)&&Pn(e.parentNode)&&(A.isShadow=!0),A.type===ge.Element&&A.tagName==="iframe"&&zy(e,()=>{const L=Qu(e);if(L&&x){const te=Zt(L,{doc:L,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:b,maskInputFn:y,slimDOMOptions:v,dataURLOptions:C,inlineImages:R,recordCanvas:_,preserveWhiteSpace:$,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:M,onStylesheetLoad:g,stylesheetLoadTimeout:S,keepIframeSrcFn:k});te&&x(e,te)}},M),A.type===ge.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&Ku(A.attributes.href)==="css")&&jy(e,()=>{if(g){const L=Zt(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:b,maskInputFn:y,slimDOMOptions:v,dataURLOptions:C,inlineImages:R,recordCanvas:_,preserveWhiteSpace:$,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:M,onStylesheetLoad:g,stylesheetLoadTimeout:S,keepIframeSrcFn:k});L&&g(e,L)}},S),A}function Ky(e,t){const{mirror:n=new Xu,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=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:m,maskTextFn:b,maskInputFn:y,slimDOM:v=!1,dataURLOptions:C,preserveWhiteSpace:R,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:M,stylesheetLoadTimeout:g,keepIframeSrcFn:S=()=>!1}=t||{};return Zt(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,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:m,maskTextFn:b,maskInputFn:y,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:C,inlineImages:f,recordCanvas:p,preserveWhiteSpace:R,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:M,stylesheetLoadTimeout:g,keepIframeSrcFn:S,newlyAddedElement:!1})}function ft(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=s(n)):(o==="call"||o==="optionalCall")&&(n=s((...i)=>n.call(t,...i)),t=void 0)}return n}function Ie(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Yt=`Please stop import mirror directly. Instead of that,\r 22now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 23or you can use record.mirror to access the mirror instance during recording.`;let Ra={map:{},getId(){return console.error(Yt),-1},getNode(){return console.error(Yt),null},removeNodeFromMap(){console.error(Yt)},has(){return console.error(Yt),!1},reset(){console.error(Yt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ra=new Proxy(Ra,{get(e,t,n){return t==="map"&&console.error(Yt),Reflect.get(e,t,n)}}));function qn(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();!o&&n.leading===!1&&(o=i);const a=t-(i-o),c=this;a<=0||a>t?(r&&(rb(r),r=null),o=i,e.apply(c,s)):!r&&n.trailing!==!1&&(r=vo(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,s)},a))}}function nl(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(i){vo(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>nl(e,t,s||{},!0)}function gi(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let oo=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(oo=()=>new Date().getTime());function rl(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:ft([t,"optionalAccess",n=>n.documentElement,"access",n=>
23n.scrollLeft])||ft([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||ft([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:ft([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||ft([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||ft([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function ol(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function il(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Me(e,t,n,r,o){if(!e)return!1;const s=il(e);if(!s)return!1;const i=Jt(t,n);if(!o){const u=r&&s.matches(r);return i(s)&&!u}const a=Pt(s,i);let c=-1;return a<0?!1:(r&&(c=Pt(s,Jt(null,r))),a>-1&&c<0?!0:a<c)}function Jy(e,t){return t.getId(e)!==-1}function Go(e,t){return t.getId(e)===jn}function al(e,t){if(Ln(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?al(e.parentNode,t):!0:!0}function Rs(e){return!!e.changedTouches}function Zy(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 cl(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ul(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ms(e){return!!ft([e,"optionalAccess",t=>t.shadowRoot])}class Qy{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return im(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 ll(e){let t=null;return ft([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 eb(e){let t=e,n;for(;n=ll(t);)t=n;return t}function tb(e){const t=e.ownerDocument;if(!t)return!1;const n=eb(e);return t.contains(n)}function dl(e){const t=e.ownerDocument;return t?t.contains(e)||tb(e):!1}const Ma={};function _i(e){const t=Ma[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const s=o.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(o)}catch{}return Ma[e]=r.bind(window)}function nb(...e){return _i("requestAnimationFrame")(...e)}function vo(...e){return _i("setTimeout")(...e)}function rb(...e){return _i("clearTimeout")(...e)}var H=(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))(H||{}),F=(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))(F||{}),Te=(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))(Te||{}),et=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(et||{}),Aa;(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"})(Aa||(Aa={}));var Oa;(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"})(Oa||(Oa={}));function yi(e){try{return e.contentDocument}catch{}}function ob(e){try{return e.contentWindow}catch{}}
23function sb(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=s(n)):(o==="call"||o==="optionalCall")&&(n=s((...i)=>n.call(t,...i)),t=void 0)}return n}function Na(e){return"__ln"in e}class ib{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=sb([n,"optionalAccess",o=>o.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Na(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&&Na(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 Da=(e,t)=>`${e}@${t}`;class ab{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 ib,o=c=>{let u=c,d=jn;for(;d===jn;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},s=c=>{if(!c.parentNode||!dl(c))return;const u=Ln(c.parentNode)?this.mirror.getId(ll(c)):this.mirror.getId(c.parentNode),d=o(c);if(u===-1||d===-1)return r.addNode(c);const l=Zt(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{cl(f,this.mirror)&&!Me(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),ul(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),Ms(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{Me(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)La(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||s(c);for(const c of this.addedSet)!Pa(this.droppedSet,c)&&!La(this.removes,c,this.mirror)||Pa(this.movedSet,c)?s(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=o(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(o(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),s(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(!Go(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Me(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:pn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,il(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const i=hi(n),a=n.tagName;o=no(n,a,i);const c=So({maskInputOptions:this.maskInputOptions,tagName:a,type:i}),u=pn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=zn({isMasked:u,element:n,value:o,maskInputFn:this.maskInputFn})}if(Me(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!yi(n))r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!tl(n.tagName,r)&&(s.attributes[r]=el(this.doc,fn(n.tagName),fn(r),o,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===""?s.styleDiff[a]=c:s.styleDiff[a]=[c,u]:s._unchangedStyles[a]=[c,u]}for(const a of Array.from(i.style))n.style.getPropertyValue(a)===""&&(s.styleDiff[a]=!1)}break}
23case"childList":{if(Me(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),o=Ln(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Me(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Go(n,this.mirror)||!Jy(n,this.mirror)||(this.addedSet.has(n)?(As(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||al(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Da(r,o)]?As(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:Ln(t.target)&&Pn(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(Go(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[Da(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Me(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),Ms(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 As(e,t){e.delete(t),t.childNodes.forEach(n=>As(e,n))}function La(e,t,n){return e.length===0?!1:cb(e,t,n)}function cb(e,t,n){let r=t.parentNode;for(;r;){const o=n.getId(r);if(e.some(s=>s.id===o))return!0;r=r.parentNode}return!1}function Pa(e,t){return e.size===0?!1:fl(e,t)}function fl(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:fl(e,n):!1}let Fn;function ub(e){Fn=e}function lb(){Fn=void 0}const V=e=>Fn?((...n)=>{try{return e(...n)}catch(r){if(Fn&&Fn(r)===!0)return()=>{};throw r}}):e;function je(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=s(n)):(o==="call"||o==="optionalCall")&&(n=s((...i)=>n.call(t,...i)),t=void 0)}return n}const Qt=[];function or(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 pl(e,t){const n=new ab;Qt.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=je([window,"optionalAccess",i=>i.Zone,"optionalAccess",i=>i.__symbol__,"optionalCall",i=>i("MutationObserver")]);o&&window[o]&&(r=window[o]);const s=new r(V(i=>{e.onMutation&&e.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function db({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],a;const c=qn(V(l=>{const f=Date.now()-a;e(i.map(p=>(p.timeOffset-=f,p)),l),i=[],a=null}),s),u=V(qn(V(l=>{const f=or(l),{clientX:p,clientY:h}=Rs(l)?l.changedTouches[0]:l;a||(a=oo()),i.push({x:p,y:h,id:r.getId(f),timeOffset:oo()-a}),c(typeof DragEvent<"u"&&l instanceof DragEvent?F.Drag:l instanceof MouseEvent?F.MouseMove:F.TouchMove)}),o,{trailing:!1})),d=[Ie("mousemove",u,n),Ie("touchmove",u,n),Ie("drag",u,n)];return V(()=>{d.forEach(l=>l())})}function fb({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,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=or(f);if(Me(p,r,o,s,!0))return;let h=null,m=l;if("pointerType"in f){switch(f.pointerType){case"mouse":h=et.Mouse;break;case"touch":h=et.Touch;break;case"pen":h=et.Pen;break}h===et.Touch?Te[l]===Te.MouseDown?m="TouchStart":Te[l]===Te.MouseUp&&(m="TouchEnd"):et.Pen}else Rs(f)&&(h=et.Touch);h!==null?(u=h,(m.startsWith("Touch")&&h===et.Touch||m.startsWith("Mouse")&&h===et.Mouse)&&(h=null)):Te[l]===Te.Click&&(h=u,u=null);const b=Rs(f)?f.changedTouches[0]:f;if(!b)return;const y=n.getId(p),{clientX:v,clientY:C}=b;V(e)({type:Te[m],id:y,x:v,y:C,...h!==null&&{pointerType:h}})};return Object.keys(Te).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEac
23h(l=>{let f=fn(l);const p=d(l);if(window.PointerEvent)switch(Te[l]){case Te.MouseDown:case Te.MouseUp:f=f.replace("mouse","pointer");break;case Te.TouchStart:case Te.TouchEnd:return}c.push(Ie(f,p,t))}),V(()=>{c.forEach(l=>l())})}function hl({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){const a=V(qn(V(c=>{const u=or(c);if(!u||Me(u,r,o,s,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const l=rl(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 Ie("scroll",a,t)}function pb({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=V(qn(V(()=>{const s=ol(),i=sl();(n!==s||r!==i)&&(e({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return Ie("resize",o,t)}const hb=["INPUT","TEXTAREA","SELECT"],Fa=new WeakMap;function mb({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:l,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function b(x){let M=or(x);const g=x.isTrusted,S=M&&Cs(M.tagName);if(S==="OPTION"&&(M=M.parentElement),!M||!S||hb.indexOf(S)<0||Me(M,r,o,s,!0))return;const k=M;if(k.classList.contains(i)||a&&k.matches(a))return;const T=hi(M);let $=no(k,S,T),q=!1;const B=So({maskInputOptions:c,tagName:S,type:T}),A=pn(M,f,h,p,m,B);(T==="radio"||T==="checkbox")&&(q=M.checked),$=zn({isMasked:A,element:M,value:$,maskInputFn:u}),y(M,l?{text:$,isChecked:q,userTriggered:g}:{text:$,isChecked:q});const ae=M.name;T==="radio"&&ae&&q&&t.querySelectorAll(`input[type="radio"][name="${ae}"]`).forEach(L=>{if(L!==M){const te=zn({isMasked:A,element:L,value:no(L,S,T),maskInputFn:u});y(L,l?{text:te,isChecked:!q,userTriggered:!1}:{text:te,isChecked:!q})}})}function y(x,M){const g=Fa.get(x);if(!g||g.text!==M.text||g.isChecked!==M.isChecked){Fa.set(x,M);const S=n.getId(x);V(e)({...M,id:S})}}const C=(d.input==="last"?["change"]:["input","change"]).map(x=>Ie(x,V(b),t)),R=t.defaultView;if(!R)return()=>{C.forEach(x=>x())};const _=R.Object.getOwnPropertyDescriptor(R.HTMLInputElement.prototype,"value"),E=[[R.HTMLInputElement.prototype,"value"],[R.HTMLInputElement.prototype,"checked"],[R.HTMLSelectElement.prototype,"value"],[R.HTMLTextAreaElement.prototype,"value"],[R.HTMLSelectElement.prototype,"selectedIndex"],[R.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&C.push(...E.map(x=>nl(x[0],x[1],{set(){V(b)({target:this,isTrusted:!1})}},!1,R))),V(()=>{C.forEach(x=>x())})}function so(e){const t=[];function n(r,o){if(wr("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||wr("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||wr("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||wr("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(i)}return o}return n(e,t)}function pt(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function gb({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:V((d,l,f)=>{const[p,h]=f,{id:m,styleId:b}=pt(l,t,n.styleMirror);return(m&&m!==-1||b&&b!==-1)&&e({id:m,styleId:b,adds:[{rule:p,index:h}]}),d.apply(l,f)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:V((d,l,f)=>{const[p]=f,{id:h,styleId:m}=pt(l,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,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:V((d,l,f)=>{const[p]=f,{id:h,styleId:m}=pt(l,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,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:V((d,l,f)=>{const[p]=f,{id:h,styleId:m}=pt(l,t,n.styleMirror);
23return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),d.apply(l,f)})}));const c={};Tr("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Tr("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Tr("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Tr("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:V((f,p,h)=>{const[m,b]=h,{id:y,styleId:v}=pt(p.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||v&&v!==-1)&&e({id:y,styleId:v,adds:[{rule:m,index:[...so(p),b||0]}]}),f.apply(p,h)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:V((f,p,h)=>{const[m]=h,{id:b,styleId:y}=pt(p.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||y&&y!==-1)&&e({id:b,styleId:y,removes:[{index:[...so(p),m]}]}),f.apply(p,h)})})}),V(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function ml({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const o=n.nodeName==="#document"?je([n,"access",i=>i.defaultView,"optionalAccess",i=>i.Document]):je([n,"access",i=>i.ownerDocument,"optionalAccess",i=>i.defaultView,"optionalAccess",i=>i.ShadowRoot]),s=je([o,"optionalAccess",i=>i.prototype])?Object.getOwnPropertyDescriptor(je([o,"optionalAccess",i=>i.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!s?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return je([s,"access",i=>i.get,"optionalAccess",i=>i.call,"call",i=>i(this)])},set(i){const a=je([s,"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}}),V(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))}function _b({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:V((a,c,u)=>{const[d,l,f]=u;if(n.has(d))return s.apply(c,[d,l,f]);const{id:p,styleId:h}=pt(je([c,"access",m=>m.parentRule,"optionalAccess",m=>m.parentStyleSheet]),t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:d,value:l,priority:f},index:so(c.parentRule)}),a.apply(c,u)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:V((a,c,u)=>{const[d]=u;if(n.has(d))return i.apply(c,[d]);const{id:l,styleId:f}=pt(je([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:so(c.parentRule)}),a.apply(c,u)})}),V(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}function yb({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=V(u=>qn(V(d=>{const l=or(d);if(!l||Me(l,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:m}=l;e({type:u,id:o.getId(l),currentTime:f,volume:p,muted:h,playbackRate:m})}),s.media||500)),c=[Ie("play",a(0),i),Ie("pause",a(1),i),Ie("seeked",a(2),i),Ie("volumechange",a(3),i),Ie("ratechange",a(4),i)];return V(()=>{c.forEach(u=>u())})}function bb({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(c,u,d){const l=new s(c,u,d);return o.set(l,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};const i=gi(t.fonts,"add",function(a){return function(c){return vo(V(()=>{const u=o.get(c);u&&(e(u),o.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(i),V(()=>{r.forEach(a=>a())})}function Sb(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e;let a=!0;const c=V(()=>{const u=t.getSelection();if(!u||a&&je([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:m,endContainer:b,endOffset:y}=p;Me(h,r,o,s,!0)||Me(b,r,o,s,!0)||d.push({start:n.getId(h),startOffset:m,end:n.getId(b),endOffset:y})}i({ranges:d})});return c(),Ie("selectionchange",c)}function Eb({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:gi(n.customElements,"define",function(o){return function(s,i,a){try{t({define:{name:s}})}catch{}return o.apply(this,[s,i,a])}})}function vb(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=pl(e,e.doc));const o=db(e),s=fb(e),i=hl(e),a=pb(e,{win:n}),c=mb(e),u=yb(e);let d=()=>{},l=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(d=gb(e,{win:n}),l=ml(e,e.doc),f=_b(e,{win:n}),e.collectFonts&&(p=bb(e)));const h=Sb(e),m=Eb(e),b=[];for(const y of e.plugins)b.push(y.observer(y.callback,n,y.options));return V(()=>{Qt.forEach(y=>y.reset()),je([r,"optionalAccess",y=>y.disconnect,"call",y=>y()]),o(),s(),i(),a(),c(),u(),d(),l(),f(),p(),h(),m(),b.forEach(y=>y())})}function wr(e){return typeof window[e]<"u"}function Tr(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Os{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const s=r||this.getIdToRemoteIdMap(t),i=o||this.getRemoteIdToIdMap(t);let a=s.get(n);return a||(a=this.generateIdFn(),s.set(n,a),i.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=o.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function $a(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=s(n)):(o==="call"||o==="optionalCall")&&(n=s((...i)=>n.call(t,...i)),t=void 0)}return n}
23class wb{constructor(){this.crossOriginIframeMirror=new Os(mi),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Tb{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Os(mi),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Os(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}),$a([this,"access",o=>o.loadListener,"optionalCall",o=>o(t)]);const r=yi(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 o=this.crossOriginIframeMap.get(t.source);if(!o)return;const s=this.transformCrossOriginEvent(o,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case H.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:H.IncrementalSnapshot,data:{source:F.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case H.Meta:case H.Load:case H.DomContentLoaded:return!1;case H.Plugin:return n;case H.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case H.IncrementalSnapshot:switch(n.data.source){case F.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case F.Drag:case F.TouchMove:case F.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case F.ViewportResize:return!1;case F.MediaInteraction:case F.MouseInteraction:case F.Scroll:case F.CanvasMutation:case F.Input:return this.replaceIds(n.data,t,["id"]),n;case F.StyleSheetRule:case F.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case F.Font:return n;case F.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case F.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),$a([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(o=>{this.replaceStyleIds(o,t,["styleId"])})]),n}}return!1}replace(t,n,r,o){for(const s of o)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));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!==ge.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class Ib{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class kb{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(!Pn(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=pl({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(hl({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),vo(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(ml({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=yi(t),r=ob(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(gi(t.prototype,"attachShadow",function(o){return function(s){const i=o.call(this,s);return this.shadowRoot&&dl(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}
23reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Ba{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Cb{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Qy,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:[]},o=[];for(const s of t){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),o.push({styleId:i,rules:Array.from(s.rules||CSSRule,(a,c)=>({rule:Yu(a),index:c}))})),r.styleIds.push(i)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class xb{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,nb(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let de,io;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Bt([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 We=Cy();function ot(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=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:m,maskInputOptions:b,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:C,maskTextFn:R,maxCanvasSize:_=null,packFn:E,sampling:x={},dataURLOptions:M={},mousemoveWait:g,recordDOM:S=!0,recordCanvas:k=!1,recordCrossOriginIframes:T=!1,recordAfter:$=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:q=!1,collectFonts:B=!1,inlineImages:A=!1,plugins:ae,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:we,onMutation:$e,getCanvasManager:Mt}=e;ub(we);const Wt=T?window.parent===window:!0;let Be=!1;if(!Wt)try{window.parent.document&&(Be=!1)}catch{Be=!0}if(Wt&&!t)throw new Error("emit function is required");if(!Wt&&!Be)return()=>{};g!==void 0&&x.mousemove===void 0&&(x.mousemove=g),We.reset();const Ne=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:b!==void 0?b:{},Qe=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:y==="all",headMetaDescKeywords:y==="all"}:y||{};Zy();let zt,jt=0;const kn=K=>{for(const Ue of ae||[])Ue.eventProcessor&&(K=Ue.eventProcessor(K));return E&&!Be&&(K=E(K)),K};de=(K,Ue)=>{const G=K;if(G.timestamp=oo(),Bt([Qt,"access",ue=>ue[0],"optionalAccess",ue=>ue.isFrozen,"call",ue=>ue()])&&G.type!==H.FullSnapshot&&!(G.type===H.IncrementalSnapshot&&G.data.source===F.Mutation)&&Qt.forEach(ue=>ue.unfreeze()),Wt)Bt([t,"optionalCall",ue=>ue(kn(G),Ue)]);else if(Be){const ue={type:"rrweb",event:kn(G),origin:window.location.origin,isCheckout:Ue};window.parent.postMessage(ue,"*")}
23if(G.type===H.FullSnapshot)zt=G,jt=0;else if(G.type===H.IncrementalSnapshot){if(G.data.source===F.Mutation&&G.data.isAttachIframe)return;jt++;const ue=r&&jt>=r,J=n&&zt&&G.timestamp-zt.timestamp>n;(ue||J)&&Oo(!0)}};const ut=K=>{de({type:H.IncrementalSnapshot,data:{source:F.Mutation,...K}})},oe=K=>de({type:H.IncrementalSnapshot,data:{source:F.Scroll,...K}}),_e=K=>de({type:H.IncrementalSnapshot,data:{source:F.CanvasMutation,...K}}),He=K=>de({type:H.IncrementalSnapshot,data:{source:F.AdoptedStyleSheet,...K}}),fe=new Cb({mutationCb:ut,adoptedStyleSheetCb:He}),ce=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new wb:new Tb({mirror:We,mutationCb:ut,stylesheetManager:fe,recordCrossOriginIframes:T,wrappedEmit:de});for(const K of ae||[])K.getMirror&&K.getMirror({nodeMirror:We,crossOriginIframeMirror:ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:ce.crossOriginIframeStyleMirror});const De=new xb,At=Mb(Mt,{mirror:We,win:window,mutationCb:K=>de({type:H.IncrementalSnapshot,data:{source:F.CanvasMutation,...K}}),recordCanvas:k,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:_,sampling:x.canvas,dataURLOptions:M,errorHandler:we}),qt=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Ib:new kb({mutationCb:ut,scrollCb:oe,bypassOptions:{onMutation:$e,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:Ne,dataURLOptions:M,maskAttributeFn:v,maskTextFn:R,maskInputFn:C,recordCanvas:k,inlineImages:A,sampling:x,slimDOMOptions:Qe,iframeManager:ce,stylesheetManager:fe,canvasManager:At,keepIframeSrcFn:L,processedNodeManager:De},mirror:We}),Oo=(K=!1)=>{if(!S)return;de({type:H.Meta,data:{href:window.location.href,width:sl(),height:ol()}},K),fe.reset(),qt.init(),Qt.forEach(G=>G.lock());const Ue=Ky(document,{mirror:We,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:Ne,maskAttributeFn:v,maskInputFn:C,maskTextFn:R,slimDOM:Qe,dataURLOptions:M,recordCanvas:k,inlineImages:A,onSerialize:G=>{cl(G,We)&&ce.addIframe(G),ul(G,We)&&fe.trackLinkElement(G),Ms(G)&&qt.addShadowRoot(G.shadowRoot,document)},onIframeLoad:(G,ue)=>{ce.attachIframe(G,ue),G.contentWindow&&At.addWindow(G.contentWindow),qt.observeAttachShadow(G)},onStylesheetLoad:(G,ue)=>{fe.attachLinkElement(G,ue)},keepIframeSrcFn:L});if(!Ue)return console.warn("Failed to snapshot the document");de({type:H.FullSnapshot,data:{node:Ue,initialOffset:rl(window)}}),Qt.forEach(G=>G.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fe.adoptStyleSheets(document.adoptedStyleSheets,We.getId(document))};io=Oo;try{const K=[],Ue=ue=>V(vb)({onMutation:$e,mutationCb:ut,mousemoveCb:(J,Ot)=>de({type:H.IncrementalSnapshot,data:{source:Ot,positions:J}}),mouseInteractionCb:J=>de({type:H.IncrementalSnapshot,data:{source:F.MouseInteraction,...J}}),scrollCb:oe,viewportResizeCb:J=>de({type:H.IncrementalSnapshot,data:{source:F.ViewportResize,...J}}),inputCb:J=>de({type:H.IncrementalSnapshot,data:{source:F.Input,...J}}),mediaInteractionCb:J=>de({type:H.IncrementalSnapshot,data:{source:F.MediaInteraction,...J}}),styleSheetRuleCb:J=>de({type:H.IncrementalSnapshot,data:{source:F.StyleSheetRule,...J}}),styleDeclarationCb:J=>de({type:H.IncrementalSnapshot,data:{source:F.StyleDeclaration,...J}}),canvasMutationCb:_e,fontCb:J=>de({type:H.IncrementalSnapshot,data:{source:F.Font,...J}}),selectionCb:J=>{de({type:H.IncrementalSnapshot,data:{source:F.Selection,...J}})},customElementCb:J=>{de({type:H.IncrementalSnapshot,data:{source:F.CustomElement,...J}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:Ne,inlineStylesheet:h,sampling:x,recordDOM:S,recordCanvas:k,inlineImages:A,userTriggeredOnInput:q,collectFonts:B,doc:ue,maskAttributeFn:v,maskInputFn:C,maskTextFn:R,keepIframeSrcFn:L,blockSelector:s,unblockSelector:i,slimDOMOptions:Qe,dataURLOptions:M,mirror:We,iframeManager:ce,stylesheetManager:fe,shadowDomManager:qt,processedNodeManager:De,canvasManager:At,ignoreCSSAttributes:te,plugins:Bt([ae,"optionalAccess",J=>J.filter,"call",J=>J(Ot=>Ot.observer),"optionalAccess",J=>J.map,"call",J=>J(Ot=>({observer:Ot.observer,options:Ot.options,callback:kd=>
23de({type:H.Plugin,data:{plugin:Ot.name,payload:kd}})}))])||[]},{});ce.addLoadListener(ue=>{try{K.push(Ue(ue.contentDocument))}catch(J){console.warn(J)}});const G=()=>{Oo(),K.push(Ue(document))};return document.readyState==="interactive"||document.readyState==="complete"?G():(K.push(Ie("DOMContentLoaded",()=>{de({type:H.DomContentLoaded,data:{}}),$==="DOMContentLoaded"&&G()})),K.push(Ie("load",()=>{de({type:H.Load,data:{}}),$==="load"&&G()},window))),()=>{K.forEach(ue=>ue()),De.destroy(),io=void 0,lb()}}catch(K){console.warn(K)}}function Rb(e){if(!io)throw new Error("please take full snapshot after start recording");io(e)}ot.mirror=We;ot.takeFullSnapshot=Rb;function Mb(e,t){try{return e?e(t):new Ba}catch{return console.warn("Unable to initialize CanvasManager"),new Ba}}const Ab=3,Ob=5;function bi(e){return e>9999999999?e:e*1e3}function Vo(e){return e>9999999999?e/1e3:e}function sr(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:H.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ge(t,10,1e3)}}),t.category==="console")))}const Nb="button,a";function gl(e){return e.closest(Nb)||e}function _l(e){const t=yl(e);return!t||!(t instanceof Element)?t:gl(t)}function yl(e){return Db(e)?e.target:e}function Db(e){return typeof e=="object"&&!!e&&"target"in e}let ht;function Lb(e){return ht||(ht=[],Pb()),ht.push(e),()=>{const t=ht?ht.indexOf(e):-1;t>-1&&ht.splice(t,1)}}function Pb(){ke(ie,"open",function(e){return function(...t){if(ht)try{ht.forEach(n=>n())}catch{}return e.apply(ie,t)}})}const Fb=new Set([F.Mutation,F.StyleSheetRule,F.StyleDeclaration,F.AdoptedStyleSheet,F.CanvasMutation,F.Selection,F.MediaInteraction]);function $b(e,t,n){e.handleClick(t,n)}class Bb{constructor(t,n,r=sr){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=Lb(()=>{this._lastMutation=Ha()});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(Ub(n,this._ignoreSelector)||!Wb(t))return;const r={timestamp:Vo(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Vo(t)}registerScroll(t=Date.now()){this._lastScroll=Vo(t)}registerClick(t){const n=gl(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=Ha();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 o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,s=!r&&!o,{clickCount:i,clickBreadcrumb:a}=t;if(s){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:ie.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:ie.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 Hb=["A","BUTTON","INPUT"];function Ub(e,t){return!!(!Hb.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 Wb(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Ha(){return Date.now()/1e3}function zb(e,t){try{if(!jb(t))return;const{source:n}=t.data;if(Fb.has(n)&&e.registerMutation(t.timestamp),n===F.Scroll&&e.registerScroll(t.timestamp),qb(t)){const{type:r,id:o}=t.data,s=ot.mirror.getNode(o);s instanceof HTMLElement&&r===Te.Click&&e.registerClick(s)}}catch{}}function jb(e){return e.type===Ab}function qb(e){return e.data.source===F.MouseInteraction}function Ye(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var ao;(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"})(ao||(ao={}));const Gb=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Vb(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(Gb.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const Yb=e=>t=>{if(!e.isEnabled())return;const n=Xb(t);if(!n)return;const r=t.name==="click",o=r?t.event:void 0;
23r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&$b(e.clickDetector,n,_l(t.event)),sr(e,n)};function bl(e,t){const n=ot.mirror.getId(e),r=n&&ot.mirror.getNode(n),o=r&&ot.mirror.getMeta(r),s=o&&Jb(o)?o:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(i=>i.type===ao.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:Vb(s.attributes)}}:{}}}function Xb(e){const{target:t,message:n}=Kb(e);return Ye({category:`ui.${e.name}`,...bl(t,n)})}function Kb(e){const t=e.name==="click";let n,r=null;try{r=t?_l(e.event):yl(e.event),n=Ct(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Jb(e){return e.type===ao.Element}function Zb(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=Qb(t);n&&sr(e,n)}function Qb(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=e;if(!i||eS(i)||!s)return null;const a=t||r||o,c=s.length===1;if(!a&&c)return null;const u=Ct(i,{maxStringLength:200})||"<unknown>",d=bl(i,u);return Ye({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}function eS(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const tS={resource:iS,paint:oS,navigation:sS};function Ir(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function nS(e){return e.map(rS).filter(Boolean)}function rS(e){const t=tS[e.entryType];return t?t(e):null}function hn(e){return((Ee||ie.performance.timeOrigin)+e)/1e3}function oS(e){const{duration:t,entryType:n,name:r,startTime:o}=e,s=hn(o);return{type:n,name:r,start:s,end:s+t,data:void 0}}function sS(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return o===0?null:{type:`${t}.${m}`,start:hn(p),end:hn(s),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:l,domComplete:s,redirectCount:f}}}function iS(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:hn(s),end:hn(o),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}}function aS(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return wo(e,"largest-contentful-paint",n)}function cS(e){return e.sources!==void 0}function uS(e){const t=[],n=[];for(const r of e.entries)if(cS(r)){const o=[];for(const s of r.sources)if(s.node){n.push(s.node);const i=ot.mirror.getId(s.node);i&&o.push(i)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return wo(e,"cumulative-layout-shift",n,t)}function lS(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return wo(e,"first-input-delay",n)}function dS(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return wo(e,"interaction-to-next-paint",n)}function wo(e,t,n,r){const o=e.value,s=e.rating,i=hn(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map(a=>ot.mirror.getId(a)):void 0,attributions:r}}}function fS(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(o=>{r.push(un(o,n))}),r.push(Nu(Ir(aS,e)),ai(Ir(uS,e)),Du(Ir(lS,e)),Lu(Ir(dS,e))),()=>{r.forEach(o=>o())}}const D=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,pS='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 23
23},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;
23++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 hS(){const e=new Blob([pS]);return URL.createObjectURL(e)}const Ua=["info","warn","error","log"],Lr="[Replay] ";function Yo(e,t="info"){Je({category:"console",data:{logger:"replay"},level:t,message:`${Lr}${e}`},{level:t})}function mS(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};
23return D?(Ua.forEach(r=>{n[r]=(...o)=>{w[r](Lr,...o),t&&Yo(o.join(""),Qs(r))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),w.error(Lr,r),e?mo(r):t&&Yo(r,"error")},n.infoTick=(...r)=>{w.info(Lr,...r),t&&setTimeout(()=>Yo(r[0]),0)}):Ua.forEach(r=>{n[r]=()=>{}}),n}const P=mS();class Si extends Error{constructor(){super(`Event buffer exceeded maximum size of ${pi}.`)}}class Sl{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>pi)throw new Si;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?bi(t):null}}class gS{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&&P.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,s)=>{const i=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){D&&P.error("Error in compression worker: ",c.response),s(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class _S{constructor(t){this._worker=new gS(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=bi(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>pi?Promise.reject(new Si):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&&P.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 yS{constructor(t){this._fallback=new Sl,this._compression=new _S(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&&P.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,o=[];for(const s of t)o.push(this._compression.addEvent(s));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(s){D&&P.exception(s,"Failed to add events when switching buffers.")}}}function bS({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=SS(t);if(n)return n}return D&&P.info("Using simple buffer"),new Sl}function SS(e){try{const t=e||ES();if(!t)return;D&&P.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new yS(n)}catch(t){D&&P.exception(t,"Failed to create compression worker")}}function ES(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?hS():""}function Ei(){try{return"sessionStorage"in ie&&!!ie.sessionStorage}catch{return!1}}function vS(e){wS(),e.session=void 0}function wS(){if(Ei())try{ie.sessionStorage.removeItem(di)}catch{}}function El(e){return e===void 0?!1:Math.random()<e}function vl(e){const t=Date.now(),n=e.id||yt(),r=e.started||t,o=e.lastActivity||t,s=e.segmentId||0,i=e.sampled,a=e.previousSessionId;return{id:n,started:r,lastActivity:o,segmentId:s,sampled:i,previousSessionId:a}}function vi(e){if(Ei())try{ie.sessionStorage.setItem(di,JSON.stringify(e))}catch{}}function TS(e,t){return El(e)?"session":t?"buffer":!1}function Wa({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=TS(e,t),s=vl({sampled:o,previousSessionId:r});return n&&vi(s),s}function IS(){if(!Ei())return null;try{const e=ie.sessionStorage.getItem(di);if(!e)return null;const t=JSON.parse(e);return D&&P.infoTick("Loading existing session"),vl(t)}
23catch{return null}}function Ns(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function wl(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ns(e.started,t,r)||Ns(e.lastActivity,n,r)}function Tl(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!wl(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Xo({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&IS();return o?Tl(o,{sessionIdleExpire:e,maxReplayDuration:t})?(D&&P.infoTick("Session in sessionStorage is expired, creating new one..."),Wa(r,{previousSessionId:o.id})):o:(D&&P.infoTick("Creating new session"),Wa(r,{previousSessionId:n}))}function kS(e){return e.type===H.Custom}function wi(e,t,n){return kl(e,t)?(Il(e,t,n),!0):!1}function CS(e,t,n){return kl(e,t)?Il(e,t,n):Promise.resolve(null)}async function Il(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o=e.recordingMode==="buffer";try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=e.getOptions(),i=xS(t,s.beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(s){const i=s&&s instanceof Si,a=i?"addEventSizeExceeded":"addEvent";if(i&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(s),await e.stop({reason:a});const c=O();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function kl(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=bi(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(D&&P.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function xS(e,t){try{if(typeof t=="function"&&kS(e))return t(e)}catch(n){return D&&P.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Ti(e){return!e.type}function Ds(e){return e.type==="transaction"}function RS(e){return e.type==="replay_event"}function za(e){return e.type==="feedback"}function MS(e){return(t,n)=>{if(!e.isEnabled()||!Ti(t)&&!Ds(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Ds(t)){AS(e,t);return}OS(e,t)}}}function AS(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 OS(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(o){e.handleException(o)}})}function NS(e){return t=>{!e.isEnabled()||!Ti(t)||DS(e,t)}}function DS(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=Ye({category:"replay.hydrate-error",data:{url:Js()}});sr(e,r)}}function LS(e){const t=O();t&&t.on("beforeAddBreadcrumb",n=>PS(e,n))}function PS(e,t){if(!e.isEnabled()||!Cl(t))return;const n=FS(t);n&&sr(e,n)}function FS(e){return!Cl(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?$S(e):Ye(e)}function $S(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Ye(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>vr?(n=!0,`${o.slice(0,vr)}…`):o;if(typeof o=="object")try{const s=Ge(o,7);return JSON.stringify(s).length>vr?(n=!0,`${JSON.stringify(s,null,2).slice(0,vr)}…`):s}catch{}return o});return Ye({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Cl(e){return!!e.category}function BS(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function xl(){const e=z().getPropagationContext().dsc;e&&delete e.replay_id;const t=me();if(t){const n=po(t);delete n.replay_id}}function HS(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:H.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 US(e,t){return e.recordingMode!=="buffer"||t.message===fi||!t.exception||t.type?!1:El(e.getOptions().errorSampleRate)}function WS(e){return Object.assign((t,n)=>
23!e.isEnabled()||e.isPaused()?t:RS(t)?(delete t.breadcrumbs,t):!Ti(t)&&!Ds(t)&&!za(t)?t:e.checkAndHandleExpiredSession()?za(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),HS(e,t),t):BS(t,n)&&!e.getOptions()._experiments.captureExceptions?(D&&P.log("Ignoring error from rrweb internals",t),null):((US(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(xl(),t),{id:"Replay"})}function To(e,t){return t.map(({type:n,start:r,end:o,name:s,data:i})=>{const a=e.throttledAddEvent({type:H.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:o,data:i}}});return typeof a=="string"?Promise.resolve(null):a})}function zS(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 jS(e){return t=>{if(!e.isEnabled())return;const n=zS(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(To(e,[n]),!1)))}}function qS(e,t){return D&&e.getOptions()._experiments.traceInternals?!1:au(t,O())}function Rl(e,t){e.isEnabled()&&t!==null&&(qS(e,t.name)||e.addUpdate(()=>(To(e,[t]),!0)))}function Io(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=Nl(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Ml(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Al(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Nl(e)];if(!e)return[void 0]}catch(t){return D&&P.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return D&&P.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function co(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 Ol(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:Ve({method:s,statusCode:i,request:a,response:c})}}function Gn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Et(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:o,warnings:s}=GS(n);return r.body=o,s&&s.length>0&&(r._meta={warnings:s}),r}function Ls(e,t){return Object.entries(e).reduce((n,[r,o])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=o),n},{})}function Nl(e){return new URLSearchParams(e).toString()}function GS(e){if(!e||typeof e!="string")return{body:e};const t=e.length>wa,n=VS(e);if(t){const r=e.slice(0,wa);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 VS(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function uo(e,t){const n=YS(e);return bt(n,t)}function YS(e,t=ie.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ie.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 XS(e,t,n){try{const r=await JS(e,t,n),o=Ol("resource.fetch",r);Rl(n.replay,o)}catch(r){D&&P.exception(r,"Failed to capture fetch breadcrumb")}}function KS(e,t){const{input:n,response:r}=t,o=n?Dl(n):void 0,s=Io(o),i=r?Ml(r.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}async function JS(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=t,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,l=uo(i,n.networkDetailAllowUrls)&&!uo(i,n.networkDetailDenyUrls),f=l?ZS(n,t.input,u):Gn(u),p=await QS(l,n,t.response,d);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:c,request:f,response:p}}function ZS({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?nE(n,t):{};if(!e)return Et(o,r,void 0);const s=Dl(n),[i,a]=Al(s),c=Et(o,r,i);return a?co(c,a):c}async function QS(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return Gn(o);const s=r?Ll(r.headers,n):{};if(!r||!t&&o!==void 0)return Et(s,o,void 0);const[i,a]=await tE(r),c=eE(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:s});return a?co(c,a):c}function eE(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const s=e&&e.length&&n===void 0?Io(e):n;return r?t?Et(o,s,e):Et(o,s,void 0):Gn(s)}catch(s){return D&&P.exception(s,"Failed to serialize response body"),Et(o,n,void 0)}}async function tE(e){const t=rE(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await oE(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(D&&P.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(D&&P.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Dl(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function Ll(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}
23function nE(e,t){return e.length===1&&typeof e[0]!="string"?ja(e[0],t):e.length===2?ja(e[1],t):{}}function ja(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Ll(n,t):Array.isArray(n)?{}:Ls(n,t):{}}function rE(e){try{return e.clone()}catch(t){D&&P.exception(t,"Failed to clone response body")}}function oE(e){return new Promise((t,n)=>{const r=ln(()=>n(new Error("Timeout while trying to read response body")),500);sE(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function sE(e){return await e.text()}async function iE(e,t,n){try{const r=cE(e,t,n),o=Ol("resource.xhr",r);Rl(n.replay,o)}catch(r){D&&P.exception(r,"Failed to capture xhr breadcrumb")}}function aE(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=Io(r),s=n.getResponseHeader("content-length")?Ml(n.getResponseHeader("content-length")):fE(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),s!==void 0&&(e.data.response_body_size=s)}function cE(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=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||!uo(c,n.networkDetailAllowUrls)||uo(c,n.networkDetailDenyUrls)){const E=Gn(l),x=Gn(f);return{startTimestamp:o,endTimestamp:s,url:c,method:u,statusCode:d,request:E,response:x}}const p=a[gt],h=p?Ls(p.request_headers,n.networkRequestHeaders):{},m=Ls(uE(a),n.networkResponseHeaders),[b,y]=n.networkCaptureBodies?Al(i):[void 0],[v,C]=n.networkCaptureBodies?lE(a):[void 0],R=Et(h,l,b),_=Et(m,f,v);return{startTimestamp:o,endTimestamp:s,url:c,method:u,statusCode:d,request:y?co(R,y):R,response:C?co(_,C):_}}function uE(e){const t=e.getAllResponseHeaders();return t?t.split(`\r 24`).reduce((n,r)=>{const[o,s]=r.split(": ");return s&&(n[o.toLowerCase()]=s),n},{}):{}}function lE(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return dE(e.response,e.responseType)}catch(n){t.push(n)}return D&&P.warn("Failed to get xhr response body",...t),[void 0]}function dE(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&&P.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return D&&P.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function fE(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Io(n)}catch{return}}function pE(e){const t=O();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(c,u)=>hE(a,c,u))}catch{}}function hE(e,t,n){if(t.data)try{mE(t)&&_E(n)&&(aE(t,n),iE(t,n,e)),gE(t)&&yE(n)&&(KS(t,n),XS(t,n,e))}catch(r){D&&P.exception(r,"Error when enriching network breadcrumb")}}function mE(e){return e.category==="xhr"}function gE(e){return e.category==="fetch"}function _E(e){return e&&e.xhr}function yE(e){return e&&e.response}function bE(e){const t=O();Hu(Yb(e)),bo(jS(e)),LS(e),pE(e);const n=WS(e);zf(n),t&&(t.on("beforeSendEvent",NS(e)),t.on("afterSendEvent",MS(e)),t.on("createDsc",r=>{const o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,o)=>{const s=e.getSessionId();o&&o.includeReplay&&e.isEnabled()&&s&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=s)}))}async function SE(e){try{return Promise.all(To(e,[EE(ie.performance.memory)]))}catch{return[]}}function EE(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function vE(e,t,n){let r,o,s;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){o!==void 0&&clearTimeout(o),s!==void 0&&clearTimeout(s),o=s=void 0}function u(){return o!==void 0||s!==void 0?a():r}function d(){return o&&clearTimeout(o),o=ln(a,t),i&&s===void 0&&(s=ln(a,i)),r}return d.cancel=c,d.flush=u,d}const Nt=X.navigator;function wE(){return/iPhone|iPad|iPod/i.test(Nt&&Nt.userAgent||"")||/Macintosh/i.test(Nt&&Nt.userAgent||"")&&Nt&&Nt.maxTouchPoints&&Nt.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function TE(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){D&&P.warn("Received replay event after session expired.");return}const o=r||!t;t=!0,e.clickDetector&&zb(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!wi(e,n,o))return!0;
24if(!o)return!1;const s=e.session;if(kE(e,o),e.recordingMode==="buffer"&&s&&e.eventBuffer){const i=e.eventBuffer.getEarliestTimestamp();i&&(D&&P.info(`Updating session start time to earliest event in buffer to ${new Date(i)}`),s.started=i,e.getOptions().stickySession&&vi(s))}return s&&s.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function IE(e){const t=e.getOptions();return{type:H.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 kE(e,t){!t||!e.session||e.session.segmentId!==0||wi(e,IE(e),!1)}function CE(e,t,n,r){return Sn(sf(e,af(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function xE({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} 25`;if(typeof e=="string")n=`${r}${e}`;else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+e.length),n.set(s),n.set(e,s.length)}return n}async function RE({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,s={event_id:n,integrations:o};e.emit("preprocessEvent",r,s);const i=await Kc(e.getOptions(),r,s,t,e,ve());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 ME({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=xE({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:d}=r,l=O(),f=z(),p=l&&l.getTransport(),h=l&&l.getDsn();if(!l||!p||!h||!s.sampled)return it({});const m={type:cy,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},b=await RE({scope:f,client:l,replayId:t,event:m});if(!b)return l.recordDroppedEvent("event_processor","replay",m),D&&P.info("An event processor returned `null`, will not send event."),it({});delete b.sdkProcessingMetadata;const y=CE(b,i,h,l.getOptions().tunnel);let v;try{v=await p.send(y)}catch(R){const _=new Error(fi);try{_.cause=R}catch{}throw _}if(typeof v.statusCode=="number"&&(v.statusCode<200||v.statusCode>=300))throw new Pl(v.statusCode);const C=su({},v);if(ou(C,"replay"))throw new Ii(C);return v}class Pl extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Ii extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Fl(e,t={count:0,interval:hy}){const{recordingData:n,onError:r}=e;if(n.length)try{return await ME(e),!0}catch(o){if(o instanceof Pl||o instanceof Ii)throw o;if(Zs("Replays",{_retryCount:t.count}),r&&r(o),t.count>=my){const s=new Error(`${fi} - max retries exceeded`);try{s.cause=o}catch{}throw s}return t.interval*=++t.count,new Promise((s,i)=>{ln(async()=>{try{await Fl(e,t),s(!0)}catch(a){i(a)}},t.interval)})}}const $l="__THROTTLED",AE="__SKIPPED";function OE(e,t,n){const r=new Map,o=a=>{const c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},s=()=>[...r.values()].reduce((a,c)=>a+c,0);let i=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(o(c),s()>=t){const d=i;return i=!0,d?AE:$l}i=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class mt{constructor({options:t,recordingOptions:n}){mt.prototype.__init.call(this),mt.prototype.__init2.call(this),mt.prototype.__init3.call(this),mt.prototype.__init4.call(this),mt.prototype.__init5.call(this),mt.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:uy,sessionIdleExpire:ly},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=vE(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=OE((i,a)=>CS(this,i,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),s=r?{threshold:Math.min(gy,r),timeout:r,scrollTimeout:_y,ignoreSelector:o?o.join(","):""}:void 0;if(s&&(this.clickDetector=new Bb(this,s)),D){const i=t._experiments;P.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&&P.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){D&&P.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&&P.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}
25start(){if(this._isEnabled&&this.recordingMode==="session"){D&&P.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){D&&P.info("Buffering is in progress, call `flush()` to save the replay");return}D&&P.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&&P.info("Buffering is in progress, call `flush()` to save the replay");return}D&&P.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=ot({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:py}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:TE(this),...wE(),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&&P.info(`Stopping Replay${n?` triggered by ${n}`:""}`),xl(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,vS(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),D&&P.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),D&&P.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();D&&P.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&&Ns(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${ie.location.pathname}${ie.location.hash}${ie.location.search}`,n=`${ie.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===$l){const o=Ye({category:"replay.throttled"});this.addUpdate(()=>!wi(this,{type:Ob,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||me(),n=t&&Re(t),o=(n&&Y(n).data||{})[be];if(!(!n||!o||!["route","custom"].includes(o)))return Y(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=bS({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 Tl(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{ie.document.addEventListener("visibilitychange",this._handleVisibilityChange),ie.addEventListener("blur",this._handleWindowBlur),ie.addEventListener("focus",this._handleWindowFocus),ie.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(bE(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=fS(this)}_removeListeners(){try{ie.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ie.removeEventListener("blur",this._handleWindowBlur),ie.removeEventListener("focus",this._handleWindowFocus),ie.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{ie.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
25dTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Ye({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Ye({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{Zb(this,t)}}_doChangeToBackgroundTasks(t){!this.session||wl(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&&P.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:H.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=nS(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(To(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&&P.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await SE(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(),o=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await Fl({replayId:t,recordingData:s,segmentId:o,eventContext:r,session:this.session,timestamp:n,onError:i=>this.handleException(i)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=O();if(r){const o=n instanceof Ii?"ratelimit_backoff":"send_error";r.recordDroppedEvent(o,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){D&&P.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const s=o<this._options.minReplayDuration,i=o>this._options.maxReplayDuration+5e3;if(s||i){D&&P.info(`Session duration (${Math.floor(o/1e3)}s) is too ${s?"short":"long"}, not sending replay.`),s&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&D&&P.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&&vi(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,s=r&&n>r;if(n>o||s){const i=Ye({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(i)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Cn(e,t){return[...e,...t].join(",")}function NE({mask:e,unmask:t,block:n,unblock:r,ignore:o}
25){const s=["base","iframe[srcdoc]:not([src])"],i=Cn(e,[".sentry-mask","[data-sentry-mask]"]),a=Cn(t,[]);return{maskTextSelector:i,unmaskTextSelector:a,blockSelector:Cn(n,[".sentry-block","[data-sentry-block]",...s]),unblockSelector:Cn(r,[]),ignoreSelector:Cn(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function DE({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?s:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const qa='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',LE=["content-length","content-type","accept"];let Ga=!1;const Kw=(e=>new ko(e));class ko{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=dy,flushMaxDelay:n=fy,minReplayDuration:r=yy,maxReplayDuration:o=Ta,stickySession:s=!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:m=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:y=[],networkCaptureBodies:v=!0,networkRequestHeaders:C=[],networkResponseHeaders:R=[],mask:_=[],maskAttributes:E=["title","placeholder"],unmask:x=[],block:M=[],unblock:g=[],ignore:S=[],maskFn:k,beforeAddRecordingEvent:T,beforeErrorSampling:$,onError:q}={}){this.name=ko.id;const B=NE({mask:_,unmask:x,block:M,unblock:g,ignore:S});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:k,maskInputFn:k,maskAttributeFn:(A,ae,L)=>DE({maskAttributes:E,maskAllText:u,privacyOptions:B,key:A,value:ae,el:L}),...B,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,by),maxReplayDuration:Math.min(o,Ta),stickySession:s,useCompression:i,workerUrl:a,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:b,networkDetailDenyUrls:y,networkCaptureBodies:v,networkRequestHeaders:Va(C),networkResponseHeaders:Va(R),beforeAddRecordingEvent:T,beforeErrorSampling:$,onError:q,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${qa}`:qa),this._isInitialized&&bs())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Ga}set _isInitialized(t){Ga=t}afterAllSetup(t){!bs()||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=PE(this._initialOptions,t);this._replay=new mt({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}ko.__initStatic();function PE(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Ve(e)},o=is(n.replaysSessionSampleRate),s=is(n.replaysOnErrorSampleRate);return o==null&&s==null&&En(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),s!=null&&(r.errorSampleRate=s),r}function Va(e){return[...LE,...e.map(t=>t.toLowerCase())]}function Jw(){const e=O();return e&&e.getIntegrationByName("Replay")}var Ya;(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"})(Ya||(Ya={}));function FE(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Ps(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ps(e.parentNode,t,n,r+1)}function Xa(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(FE(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Xt=`Please stop import mirror directly. Instead of that,\r
26now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 27or you can use record.mirror to access the mirror instance during recording.`;let Ka={map:{},getId(){return console.error(Xt),-1},getNode(){return console.error(Xt),null},removeNodeFromMap(){console.error(Xt)},has(){return console.error(Xt),!1},reset(){console.error(Xt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ka=new Proxy(Ka,{get(e,t,n){return t==="map"&&console.error(Xt),Reflect.get(e,t,n)}}));function ki(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(i){Hl(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>ki(e,t,s||{},!0)}function Ci(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function $E(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Co(e,t,n,r,o){if(!e)return!1;const s=$E(e);if(!s)return!1;const i=Xa(t,n),a=Ps(s,i);let c=-1;return a<0?!1:(r&&(c=Ps(s,Xa(null,r))),a>-1&&c<0?!0:a<c)}const Ja={};function Bl(e){const t=Ja[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const s=o.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(o)}catch{}return Ja[e]=r.bind(window)}function Dt(...e){return Bl("requestAnimationFrame")(...e)}function Hl(...e){return Bl("setTimeout")(...e)}var mn=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(mn||{});let Pr;function BE(e){Pr=e}const Ko=e=>Pr?((...n)=>{try{return e(...n)}catch(r){if(Pr&&Pr(r)===!0)return()=>{};throw r}}):e;var en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",HE=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var kr=0;kr<en.length;kr++)HE[en.charCodeAt(kr)]=kr;var UE=function(e){var t=new Uint8Array(e),n,r=t.length,o="";for(n=0;n<r;n+=3)o+=en[t[n]>>2],o+=en[(t[n]&3)<<4|t[n+1]>>4],o+=en[(t[n+1]&15)<<2|t[n+2]>>6],o+=en[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const Za=new Map;function WE(e,t){let n=Za.get(e);return n||(n=new Map,Za.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const Ul=(e,t,n)=>{if(!e||!(zl(e,t)||typeof e=="object"))return;const r=e.constructor.name,o=WE(n,r);let s=o.indexOf(e);return s===-1&&(s=o.length,o.push(e)),s};function Fr(e,t,n){if(e instanceof Array)return e.map(r=>Fr(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,o=UE(e);return{rr_type:r,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Fr(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:o}=e;return{rr_type:r,src:o}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",o=e.toDataURL();return{rr_type:r,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Fr(e.data,t,n),e.width,e.height]};if(zl(e,t)||typeof e=="object"){const r=e.constructor.name,o=Ul(e,t,n);return{rr_type:r,index:o}}}}return e}const Wl=(e,t,n)=>e.map(r=>Fr(r,t,n)),zl=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof t[o]=="function").find(o=>e instanceof t[o]);function zE(e,t,n,r,o){const s=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=Ci(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return Co(this.canvas,n,r,o,!0)||Hl(()=>{const l=Wl(d,t,this);e(this.canvas,{type:mn["2D"],property:a,args:l})},0),u.apply(this,d)}});s.push(c)}catch{const u=ki(t.CanvasRenderingContext2D.prototype,a,{set(d){e(this.canvas,{type:mn["2D"],property:a,args:[d],setter:!0})}});s.push(u)}return()=>
27{s.forEach(a=>a())}}function jE(e){return e==="experimental-webgl"?"webgl":e}function Qa(e,t,n,r,o){const s=[];try{const i=Ci(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!Co(this,t,n,r,!0)){const d=jE(c);if("__context"in this||(this.__context=d),o&&["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])}});s.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(i=>i())}}function ec(e,t,n,r,o,s,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=Ci(e,d,function(f){return function(...p){const h=f.apply(this,p);if(Ul(h,a,this),"tagName"in this.canvas&&!Co(this.canvas,r,o,s,!0)){const m=Wl(p,a,this),b={type:t,property:d,args:m};n(this.canvas,b)}return h}});c.push(l)}catch{const f=ki(e,d,{set(p){n(this.canvas,{type:t,property:d,args:[p],setter:!0})}});c.push(f)}return c}function qE(e,t,n,r,o,s){const i=[];return i.push(...ec(t.WebGLRenderingContext.prototype,mn.WebGL,e,n,r,o,s,t)),typeof t.WebGL2RenderingContext<"u"&&i.push(...ec(t.WebGL2RenderingContext.prototype,mn.WebGL2,e,n,r,o,s,t)),()=>{i.forEach(a=>a())}}var GE='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 VE(){const e=new Blob([GE]);return URL.createObjectURL(e)}class YE{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,Bt([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:o,blockSelector:s,unblockSelector:i,maxCanvasSize:a,recordCanvas:c,dataURLOptions:u,errorHandler:d}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,d&&BE(d),(c&&typeof n=="number"||t.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!t.enableManualSnapshot&&Ko(()=>{c&&n==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),c&&typeof n=="number"&&this.initCanvasFPSObserver(n,o,s,i,a,{dataURLOptions:u})})()}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:o,unblockSelector:s,recordCanvas:i,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}Ko(()=>
27{if(i&&n==="all"&&this.initCanvasMutationObserver(t,r,o,s),i&&typeof n=="number"){const c=Qa(t,r,o,s,!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(VE());return t.onmessage=n=>{const r=n.data,{id:o}=r;if(this.snapshotInProgressMap.set(o,!1),!("base64"in r))return;const{base64:s,type:i,width:a,height:c}=r;this.mutationCb({id:o,type:mn["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:s}],type:i}]},0,0,a,c]}]})},t}initCanvasFPSObserver(t,n,r,o,s,i){const a=this.takeSnapshot(!1,t,n,r,o,s,i.dataURLOptions);this.restoreHandlers.push(()=>{cancelAnimationFrame(a)})}initCanvasMutationObserver(t,n,r,o){const s=Qa(t,n,r,o,!1),i=zE(this.processMutation.bind(this),t,n,r,o),a=qE(this.processMutation.bind(this),t,n,r,o,this.mirror);this.restoreHandlers.push(()=>{s(),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,o,s,i,a,c){const u=1e3/n;let d=0,l;const f=h=>{if(h)return[h];const m=[],b=y=>{y.querySelectorAll("canvas").forEach(v=>{Co(v,r,o,s)||m.push(v)})};for(const y of this.windows){const v=y.deref();v&&b(v.document)}for(const y of this.shadowDoms){const v=y.deref();v&&b(v)}return m},p=h=>{if(this.windows.length){if(d&&h-d<u){l=Dt(p);return}
27d=h,f(c).forEach(m=>{if(!this.mirror.hasNode(m))return;const b=this.mirror.getId(m);if(!this.snapshotInProgressMap.get(b)&&!(!m.width||!m.height)){if(this.snapshotInProgressMap.set(b,!0),!t&&["webgl","webgl2"].includes(m.__context)){const y=m.getContext(m.__context);Bt([y,"optionalAccess",v=>v.getContextAttributes,"call",v=>v(),"optionalAccess",v=>v.preserveDrawingBuffer])===!1&&y.clear(y.COLOR_BUFFER_BIT)}createImageBitmap(m).then(y=>{Bt([this,"access",v=>v.worker,"optionalAccess",v=>v.postMessage,"call",v=>v({id:b,bitmap:y,width:m.width,height:m.height,dataURLOptions:a,maxCanvasSize:i},[y])])}).catch(y=>{Ko(()=>{throw y})()})}}),t||(l=Dt(p))}};return l=Dt(p),l}startPendingCanvasMutationFlusher(){Dt(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Dt(t)};Dt(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Dt(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const o=r.map(i=>{const{type:a,...c}=i;return c}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:o}),this.pendingCanvasMutations.delete(t)}}const tc={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}}},XE="ReplayCanvas",Cr=1280,KE=((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Cr):Cr,n?Math.min(n,Cr):Cr]};let o;const s=new Promise(i=>o=i);return{name:XE,getOptions(){const{quality:i,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const d=new YE({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:l=>{try{typeof l=="object"&&(l.__rrweb__=!0)}catch{}}});return o(d),d},...tc[i]||tc.medium}},async snapshot(i){(await s).snapshot(i)}}}),Zw=KE,Xe=X,Q=Xe.document,Rn=Xe.navigator,jl="Report a Bug",JE="Cancel",ZE="Send Bug Report",QE="Confirm",ev="Report a Bug",tv="[email protected]",nv="Email",rv="What's the bug? What did you expect?",ov="Description",sv="Your Name",iv="Name",av="Thank you for your report!",cv="(required)",uv="Add a screenshot",lv="Remove screenshot",dv="widget",fv="api",pv=5e3,hv=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=O();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&z().setTags(e.tags);const r=Vh({source:fv,url:Js(),...e},t);return new Promise((o,s)=>{const i=setTimeout(()=>s("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?o(r):u&&typeof u.statusCode=="number"&&u.statusCode===0?s("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?s("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):s("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")})})},$r=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function mv(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Rn.userAgent)||/Macintosh/i.test(Rn.userAgent)&&Rn.maxTouchPoints&&Rn.maxTouchPoints>1||!isSecureContext)}function xr(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}}}
27function gv(e){const t=Q.createElement("style");return t.textContent=` 28.widget__actor { 29 position: fixed; 30 z-index: var(--z-index); 31 margin: var(--page-margin); 32 inset: var(--actor-inset); 33 34 display: flex; 35 align-items: center; 36 gap: 8px; 37 padding: 16px; 38 39 font-family: inherit; 40 font-size: var(--font-size); 41 font-weight: 600; 42 line-height: 1.14em; 43 text-decoration: none; 44 45 background: var(--actor-background, var(--background)); 46 border-radius: var(--actor-border-radius, 1.7em/50%); 47 border: var(--actor-border, var(--border)); 48 box-shadow: var(--actor-box-shadow, var(--box-shadow)); 49 color: var(--actor-color, var(--foreground)); 50 fill: var(--actor-color, var(--foreground)); 51 cursor: pointer; 52 opacity: 1; 53 transition: transform 0.2s ease-in-out; 54 transform: translate(0, 0) scale(1); 55} 56.widget__actor[aria-hidden="true"] { 57 opacity: 0; 58 pointer-events: none; 59 visibility: hidden; 60 transform: translate(0, 16px) scale(0.98); 61} 62 63.widget__actor:hover { 64 background: var(--actor-hover-background, var(--background)); 65 filter: var(--interactive-filter); 66} 67 68.widget__actor svg { 69 width: 1.14em; 70 height: 1.14em; 71} 72 73@media (max-width: 600px) { 74 .widget__actor span { 75 display: none; 76 } 77} 78`,e&&t.setAttribute("nonce",e),t}function Ae(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const Vt=20,_v="http://www.w3.org/2000/svg";function yv(){const e=a=>Xe.document.createElementNS(_v,a),t=Ae(e("svg"),{width:`${Vt}`,height:`${Vt}`,viewBox:`0 0 ${Vt} ${Vt}`,fill:"var(--actor-color, var(--foreground))"}),n=Ae(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Ae(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 o=e("defs"),s=Ae(e("clipPath"),{id:"clip0_57_80"}),i=Ae(e("rect"),{width:`${Vt}`,height:`${Vt}`,fill:"white"});return s.appendChild(i),o.appendChild(s),t.appendChild(o).appendChild(s).appendChild(i),t}function bv({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const o=Q.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||jl,o.appendChild(yv()),e){const i=Q.createElement("span");i.appendChild(Q.createTextNode(e)),o.appendChild(i)}const s=gv(r);return{el:o,appendToDom(){n.appendChild(s),n.appendChild(o)},removeFromDom(){n.removeChild(o),n.removeChild(s)},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const ql="rgba(88, 74, 192, 1)",Sv={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackgroun
78d:ql,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%)"},nc={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:ql,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 rc(e){return` 79 --foreground: ${e.foreground}; 80 --background: ${e.background}; 81 --accent-foreground: ${e.accentForeground}; 82 --accent-background: ${e.accentBackground}; 83 --success-color: ${e.successColor}; 84 --error-color: ${e.errorColor}; 85 --border: ${e.border}; 86 --box-shadow: ${e.boxShadow}; 87 --outline: ${e.outline}; 88 --interactive-filter: ${e.interactiveFilter}; 89 `}function Ev({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=Q.createElement("style");return o.textContent=` 90:host { 91 --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; 92 --font-size: 14px; 93 --z-index: 100000; 94 95 --page-margin: 16px; 96 --inset: auto 0 0 auto; 97 --actor-inset: var(--inset); 98 99 font-family: var(--font-family); 100 font-size: var(--font-size); 101 102 ${e!=="system"?"color-scheme: only light;":""} 103 104 ${rc(e==="dark"?{...nc,...t}:{...Sv,...n})} 105} 106 107${e==="system"?` 108@media (prefers-color-scheme: dark) { 109 :host { 110 ${rc({...nc,...t})} 111 } 112}`:""} 113} 114`,r&&o.setAttribute("nonce",r),o}const Gl=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:o="sentry-feedback",autoInject:s=!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:m,colorScheme:b="system",themeLight:y={},themeDark:v={},addScreenshotButtonLabel:C=uv,cancelButtonLabel:R=JE,confirmButtonLabel:_=QE,emailLabel:E=nv,emailPlaceholder:x=tv,formTitle:M=ev,isRequiredLabel:g=cv,messageLabel:S=ov,messagePlaceholder:k=rv,nameLabel:T=iv,namePlaceholder:$=sv,removeScreenshotButtonLabel:q=lv,submitButtonLabel:B=ZE,successMessageText:A=av,triggerLabel:ae=jl,triggerAriaLabel:L="",onFormOpen:te,onFormClose:we,onSubmitSuccess:$e,onSubmitError:Mt,onFormSubmitted:Wt}={})=>{const Be={id:o,autoInject:s,showBranding:i,isEmailRequired:a,isNameRequired:c,showEmail:u,showName:d,enableScreenshot:l,useSentryUser:f,tags:p,styleNonce:h,scriptNonce:m,colorScheme:b,themeDark:v,themeLight:y,triggerLabel:ae,triggerAriaLabel:L,cancelButtonLabel:R,submitButtonLabel:B,confirmButtonLabel:_,formTitle:M,emailLabel:E,emailPlaceholder:x,messageLabel:S,messagePlaceholder:k,nameLabel:T,namePlaceholder:$,successMessageText:A,isRequiredLabel:g,addScreenshotButtonLabel:C,removeScreenshotButtonLabel:q,onFormClose:we,onFormOpen:te,onSubmitError:Mt,onSubmitSuccess:$e,onFormSubmitted:Wt};let Ne=null,Qe=[];const zt=oe=>{if(!Ne){const _e=Q.createElement("div");_e.id=String(oe.id),Q.body.appendChild(_e),Ne=_e.attachShadow({mode:"open"}),Ne.appendChild(Ev(oe))}return Ne},jt=async oe=>{const _e=oe.enableScreenshot&&mv();let He,fe;try{He=(t?t():await e("feedbackModalIntegration",m))(),Ki(He)}catch{throw $r&&w.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 De=_e?n?n():await e("feedbackScreenshotIntegration",m):void 0;De&&(fe=De(),Ki(fe))}catch{$r&&w.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const ce=He.createDialog({options:{...oe,onFormClose:()=>{ce&&ce.close(),oe.onFormClose&&oe.onFormClose()},onFormSubmitted:()=>{ce&&ce.close(),oe.onFormSubmitted&&oe.onFormSubmitted()}},screenshotIntegration:fe,sendFeedback:hv,shadow:zt(oe)});return ce},kn=(oe,_e={})=>{const He=xr(Be,_e),fe=typeof oe=="string"?Q.querySelector(oe):typeof oe.addEventListener=="function"?oe:null;if(!fe)throw $r&&w.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let ce=null;const De=async()=>{ce||(ce=await jt({...He,onFormSubmitted:()=>{ce&&ce.removeFromDom(),He.onFormSubmitted&&He.onFormSubmitted()}})),ce.appendToDom(),ce.open()};fe.addEventListener("click",De);const At=()=>{Qe=Qe.filter(qt=>qt!==At),ce&&ce.removeFromDom(),ce=null,fe.removeEventListener("click",De)};return Qe.push(At),At},ut=(oe={})=>{const _e=xr(Be,oe),He=zt(_e),fe=bv({triggerLabel:_e.triggerLabel,triggerAriaLabel:_e.triggerAriaLabel,shadow:He,styleNonce:h});return kn(fe.el,{..._e,onFormOpen(){fe.hide()},onFormClose(){fe.show()},onFormSubmitted(){fe.show()}}),fe};return{name:"Feedback",setupOnce(){!bs()||!Be.autoInject||(Q.readyState==="loading"?Q.addEventListener("DOMContentLoaded",()=>ut().appendToDom()):ut().appendToDom())},attachTo:kn,createWidget(oe={}){const _e=ut(xr(Be,oe));return _e.appendToDom(),_e},async createForm(oe={}){return jt(xr(Be,oe))},remove(){Ne&&(Ne.parentElement&&Ne.parentElement.remove(),Ne=null),Qe.forEach(oe=>oe()),Qe=[]}}});function Qw(){const e=O();return e&&e.getIntegrationByName("Feedback")}var xo,re,Vl,Lt,oc,Yl,Fs,Vn={},xi=[],vv=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ri=Array.isArray;function _t(e,t){for(var n in t)e[n]=t[n];return e}function Xl(e){var t=e.parentNode;t&&t.removeChild(e)}function U(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?xo.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return Br(e,i,r,o,null)}function Br(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Vl,__i:-1,__u:0};return o==null&&re.vnode!=null&&re.vnode(s),s}function ir(e){return e.children}function Hr(e,t){this.props=e,this.context=t}function gn(e,t){if(t==null)return e.__?gn(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"?gn(e):null}function wv(e,t,n){var r,o=e.__v,s=o.__e,i=e.__P;if(i)return(r=_t({},o)).__v=o.__v+1,re.vnode&&re.vnode(r),Mi(i,r,o,e.__n,i.ownerSVGElement!==void 0,32&o.__u?[s]:null,t,s??gn(o),!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=s&&Kl(r),r}function Kl(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 Kl(e)}}function sc(e){(!e.__d&&(e.__d=!0)&&Lt.push(e)&&!lo.__r++||oc!==re.debounceRendering)&&((oc=re.debounceRendering)||Yl)(lo)}function lo(){var e,t,n,r=[],o=[];for(Lt.sort(Fs);e=Lt.shift();)e.__d&&(n=Lt.length,t=wv(e,r,o)||t,n===0||Lt.length>n?($s(r,t,o),o.length=r.length=0,t=void 0,Lt.sort(Fs)):t&&re.__c&&re.__c(t,xi));t&&$s(r,t,o),lo.__r=0}function Jl(e,t,n,r,o,s,i,a,c,u,d){var l,f,p,h,m,b=r&&r.__k||xi,y=t.length;for(n.__d=c,Tv(n,t,b),c=n.__d,l=0;l<y;l++)(p=n.__k[l])!=null&&typeof p!="boolean"&&typeof p!="function"&&(f=p.__i===-1?Vn:b[p.__i]||Vn,p.__i=l,Mi(e,p,f,o,s,i,a,c,u,d),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Ai(f.ref,null,p),d.push(p.ref,p.__c||h,p)),m==null&&h!=null&&(m=h),65536&p.__u||f.__k===p.__k?c=Zl(p,c,e):typeof p.t
vendor: 5,211 bytes, line 114
114ype=="function"&&p.__d!==void 0?c=p.__d:h&&(c=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=m}function Tv(e,t,n){var r,o,s,i,a,c=t.length,u=n.length,d=u,l=0;for(e.__k=[],r=0;r<c;r++)(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Br(null,o,null,null,o):Ri(o)?Br(ir,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Br(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=Iv(o,n,i=r+l,d),o.__i=a,s=null,a!==-1&&(d--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&l--,typeof o.type!="function"&&(o.__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&&(o.__u|=65536))):(s=n[r])&&s.key==null&&s.__e&&(s.__e==e.__d&&(e.__d=gn(s)),Bs(s,s,!1),n[r]=null,d--);if(d)for(r=0;r<u;r++)(s=n[r])!=null&&(131072&s.__u)==0&&(s.__e==e.__d&&(e.__d=gn(s)),Bs(s,s))}function Zl(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Zl(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Iv(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,c=t[n];if(c===null||c&&o==c.key&&s===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&&o==c.key&&s===c.type)return i;i--}if(a<t.length){if((c=t[a])&&(131072&c.__u)==0&&o==c.key&&s===c.type)return a;a++}}return-1}function ic(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||vv.test(t)?n:n+"px"}function Rr(e,t,n,r,o){var s;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||ic(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ic(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=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+s]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,s?cc:ac,s)):e.removeEventListener(t,s?cc:ac,s);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function ac(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(re.event?re.event(e):e)}}function cc(e){if(this.l)return this.l[e.type+!0](re.event?re.event(e):e)}function Mi(e,t,n,r,o,s,i,a,c,u){var d,l,f,p,h,m,b,y,v,C,R,_,E,x,M,g=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=re.__b)&&d(t);e:if(typeof g=="function")try{if(y=t.props,v=(d=g.contextType)&&r[d.__c],C=d?v?v.props.value:d.__:r,n.__c?b=(l=t.__c=n.__c).__=l.__E:("prototype"in g&&g.prototype.render?t.__c=l=new g(y,C):(t.__c=l=new Hr(y,C),l.constructor=g,l.render=Cv),v&&v.sub(l),l.props=y,l.state||(l.state={}),l.context=C,l.__n=r,f=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),g.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=_t({},l.__s)),_t(l.__s,g.getDerivedStateFromProps(y,l.__s))),p=l.props,h=l.state,l.__v=t,f)g.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(g.getDerivedStateFromProps==null&&y!==p&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,C),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,C)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=y,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(S){S&&(S.__=t)}),R=0;R<l._sb.length;R++)l.__h.push(l._sb[R]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,C),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(p,h,m)})}if(l.context=C,l.props=y,l.__P=e,l.__e=!1,_=re.__r,E=0,"prototype"in g&&g.prototype.render){for(l.state=l.__s,l.__d=!1,_&&_(t),d=l.render(l.props,l.state,l.context),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[]}else do l.__d=!1,_&&_(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=_t(_t({},r),l.getChildContext())),f||l.getSnapshotBeforeUpdate==null||(m=l.getSnapshotBeforeUpdate(p,h)),Jl(e,Ri(M=d!=null&&d.type===ir&&d.key==null?d.props.children:d)?M:[M],t,n,r,o,s,i,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),b&&(l.__E=l.__=null)}catch(S){t.__v=null,c||s!=null?(t.__e=a,t.__u|=c?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),re.__e(S,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=kv(n.__e,t,n,r,o,s,i,c,u);(d=re.diffed)&&d(t)}function $s(e,t,n){for(var r=0;r<n.length;r++)Ai(n[r],n[++r],n[++r]);re.__c&&re.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){re.__e(s,o.__v)}})}function kv(e,t,n,r,o,s,i,a,c){var u,d,l,f,p,h,m,b=n.props,y=t.props,v=t.type;if(v==="svg"&&(o=!0),s!=null){for(u=0;
vendor: 2,582 bytes, line 114
114u<s.length;u++)if((p=s[u])&&"setAttribute"in p==!!v&&(v?p.localName===v:p.nodeType===3)){e=p,s[u]=null;break}}if(e==null){if(v===null)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),s=null,a=!1}if(v===null)b===y||a&&e.data===y||(e.data=y);else{if(s=s&&xo.call(e.childNodes),b=n.props||Vn,!a&&s!=null)for(b={},u=0;u<e.attributes.length;u++)b[(p=e.attributes[u]).name]=p.value;for(u in b)p=b[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=p:u==="key"||u in y||Rr(e,u,null,p,o));for(u in y)p=y[u],u=="children"?f=p:u=="dangerouslySetInnerHTML"?d=p:u=="value"?h=p:u=="checked"?m=p:u==="key"||a&&typeof p!="function"||b[u]===p||Rr(e,u,p,b[u],o);if(d)a||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),Jl(e,Ri(f)?f:[f],t,n,r,o&&v!=="foreignObject",s,i,s?s[0]:n.__k&&gn(n,0),a,c),s!=null)for(u=s.length;u--;)s[u]!=null&&Xl(s[u]);a||(u="value",h!==void 0&&(h!==e[u]||v==="progress"&&!h||v==="option"&&h!==b[u])&&Rr(e,u,h,b[u],!1),u="checked",m!==void 0&&m!==e[u]&&Rr(e,u,m,b[u],!1))}return e}function Ai(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){re.__e(r,n)}}function Bs(e,t,n){var r,o;if(re.unmount&&re.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ai(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){re.__e(s,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Bs(r[o],t,n||typeof e.type!="function");n||e.__e==null||Xl(e.__e),e.__=e.__e=e.__d=void 0}function Cv(e,t,n){return this.constructor(e,n)}function xv(e,t,n){var r,o,s,i;re.__&&re.__(e,t),o=(r=!1)?null:t.__k,s=[],i=[],Mi(t,e=t.__k=U(ir,null,[e]),o||Vn,Vn,t.ownerSVGElement!==void 0,o?null:t.firstChild?xo.call(t.childNodes):null,s,o?o.__e:t.firstChild,r,i),e.__d=void 0,$s(s,e,i)}xo=xi.slice,re={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(a){e=a}throw e}},Vl=0,Hr.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_t({},this.state),typeof e=="function"&&(e=e(_t({},n),this.props)),e&&_t(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),sc(this))},Hr.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),sc(this))},Hr.prototype.render=ir,Lt=[],Yl=typeof Promise=="function"?Promise.prototype.then.bind(Prom
114ise.resolve()):setTimeout,Fs=function(e,t){return e.__v.__b-t.__v.__b},lo.__r=0;var ct,ne,Jo,uc,_n=0,Ql=[],Ur=[],le=re,lc=le.__b,dc=le.__r,fc=le.diffed,pc=le.__c,hc=le.unmount,mc=le.__;function Ut(e,t){le.__h&&le.__h(ne,e,_n||t),_n=0;var n=ne.__H||(ne.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Ur}),n.__[e]}function rn(e){return _n=1,ed(nd,e)}function ed(e,t,n){var r=Ut(ct++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):nd(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=ne,!ne.u)){var o=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!s||s.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)&&(!s||s.call(this,a,c,u))};ne.u=!0;var s=ne.shouldComponentUpdate,i=ne.componentWillUpdate;ne.componentWillUpdate=function(a,c,u){if(this.__e){var d=s;s=void 0,o(a,c,u),s=d}i&&i.call(this,a,c,u)},ne.shouldComponentUpdate=o}return r.__N||r.__}function Rv(e,t){var n=Ut(ct++,3);!le.__s&&Oi(n.__H,t)&&(n.__=e,n.i=t,ne.__H.__h.push(n))}function td(e,t){var n=Ut(ct++,4);!le.__s&&Oi(n.__H,t)&&(n.__=e,n.i=t,ne.__h.push(n))}function Mv(e){return _n=5,ar(function(){return{current:e}},[])}function Av(e,t,n){_n=6,td(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 ar(e,t){var n=Ut(ct++,7);return Oi(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function on(e,t){return _n=8,ar(function(){return e},t)}function Ov(e){var t=ne.context[e.__c],n=Ut(ct++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ne)),t.props.value):e.__}function Nv(e,t){le.useDebugValue&&le.useDebugValue(t?t(e):e)}function Dv(e){var t=Ut(ct++,10),n=rn();return t.__=e,ne.componentDidCatch||(ne.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Lv(){var e=Ut(ct++,11);if(!e.__){for(var t=ne.__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 Pv(){for(var e;e=Ql.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wr),e.__H.__h.forEach(Hs),e.__H.__h=[]}catch(t){e.__H.__h=[],le.__e(t,e.__v)}}le.__b=function(e){ne=null,lc&&lc(e)},le.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),mc&&mc(e,t)},le.__r=function(e){dc&&dc(e),ct=0;var t=(ne=e.__c).__H;t&&(Jo===ne?(t.__h=[],ne.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Ur,n.__N=n.i=void 0})):(t.__h.forEach(Wr),t.__h.forEach(Hs),t.__h=[],ct=0)),Jo=ne},le.diffed=function(e){fc&&fc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ql.push(t)!==1&&uc===le.requestAnimationFrame||((uc=le.requestAnimationFrame)||Fv)(Pv)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Ur&&(n.__=n.__V),n.i=void 0,n.__V=Ur})),Jo=ne=null},le.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Wr),n.__h=n.__h.filter(function(r){return!r.__||Hs(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],le.__e(r,n.__v)}}),pc&&pc(e,t)},le.unmount=function(e){hc&&hc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Wr(r)}catch(o){t=o}}),n.__H=void 0,t&&le.__e(t,n.__v))};var gc=typeof requestAnimationFrame=="function";function Fv(e){var t,n=function(){clearTimeout(r),gc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);gc&&(t=requestAnimationFrame(n))}function Wr(e){var t=ne,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ne=t}function Hs(e){var t=ne;e.__c=e.__(),ne=t}function Oi(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function nd(e,t){return typeof t=="function"?t(e):t}const $v={__proto__:null,useCallback:on,useContext:Ov,useDebugValue:Nv,useEffect:Rv,useErrorBoundary:Dv,useId:Lv,useImperativeHandle:Av,useLayoutEffect:td,useMemo:ar,useReducer:ed,useRef:Mv,useState:rn},Bv="http://www.w3.org/2000/svg";function Hv(){const e=r=>Q.createElementNS(Bv,r),t=Ae(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Ae(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 Uv({options:e}){const t=ar(()=>({__html:Hv().outerHTML}),[]);return U("h2",{class:"dialog__header"},U("span",{class:"dialog__title"},e.formTitle),e.showBranding?U("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function Wv(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 Zo(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function zv({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:s,onSubmitError:i,showEmail
114:a,showName:c,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:f,cancelButtonLabel:p,emailLabel:h,emailPlaceholder:m,isEmailRequired:b,isNameRequired:y,messageLabel:v,messagePlaceholder:C,nameLabel:R,namePlaceholder:_,submitButtonLabel:E,isRequiredLabel:x}=e,[M,g]=rn(null),[S,k]=rn(!1),T=u&&u.input,[$,q]=rn(null),B=on(L=>{q(L),k(!1)},[]),A=on(L=>{const te=Wv(L,{emailLabel:h,isEmailRequired:b,isNameRequired:y,messageLabel:v,nameLabel:R});return te.length>0?g(`Please enter in the following required fields: ${te.join(", ")}`):g(null),te.length===0},[h,b,y,v,R]),ae=on(async L=>{try{if(L.preventDefault(),!(L.target instanceof HTMLFormElement))return;const te=new FormData(L.target),we=await(u&&S?u.value():void 0),$e={name:Zo(te,"name"),email:Zo(te,"email"),message:Zo(te,"message"),attachments:we?[we]:void 0};if(!A($e))return;try{await o({name:$e.name,email:$e.email,message:$e.message,source:dv,tags:d},{attachments:$e.attachments}),s($e)}catch(Mt){$r&&w.error(Mt),g(Mt),i(Mt)}}catch{}},[u&&S,s,i]);return U("form",{class:"form",onSubmit:ae},T&&S?U(T,{onError:B}):null,U("div",{class:"form__right","data-sentry-feedback":!0},U("div",{class:"form__top"},M?U("div",{class:"form__error-container"},M):null,c?U("label",{for:"name",class:"form__label"},U(Qo,{label:R,isRequiredLabel:x,isRequired:y}),U("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:_,required:y,type:"text"})):U("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?U("label",{for:"email",class:"form__label"},U(Qo,{label:h,isRequiredLabel:x,isRequired:b}),U("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:b,type:"email"})):U("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),U("label",{for:"message",class:"form__label"},U(Qo,{label:v,isRequiredLabel:x,isRequired:!0}),U("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:C,required:!0,rows:5})),T?U("label",{for:"screenshot",class:"form__label"},U("button",{class:"btn btn--default",type:"button",onClick:()=>{q(null),k(L=>!L)}},S?f:l),$?U("div",{class:"form__error-container"},$.message):null):null),U("div",{class:"btn-group"},U("button",{class:"btn btn--primary",type:"submit"},E),U("button",{class:"btn btn--default",type:"button",onClick:r},p))))}function Qo({label:e,isRequired:t,isRequiredLabel:n}){return U("span",{class:"form__label__text"},e,t&&U("span",{class:"form__label__text--required"},n))}const Mr=16,_c=17,jv="http://www.w3.org/2000/svg";function qv(){const e=c=>Xe.document.createElementNS(jv,c),t=Ae(e("svg"),{width:`${Mr}`,height:`${_c}`,viewBox:`0 0 ${Mr} ${_c}`,fill:"inherit"}),n=Ae(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Ae(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Ae(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
11410.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);const s=e("defs"),i=Ae(e("clipPath"),{id:"clip0_57_156"}),a=Ae(e("rect"),{width:`${Mr}`,height:`${Mr}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(a),t}function Gv({open:e,onFormSubmitted:t,...n}){const r=n.options,o=ar(()=>({__html:qv().outerHTML}),[]),[s,i]=rn(null),a=on(()=>{s&&(clearTimeout(s),i(null)),t()},[s]),c=on(u=>{n.onSubmitSuccess(u),i(setTimeout(()=>{t(),i(null)},pv))},[t]);return U(ir,null,s?U("div",{class:"success__position",onClick:a},U("div",{class:"success__content"},r.successMessageText,U("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):U("dialog",{class:"dialog",onClick:r.onFormClose,open:e},U("div",{class:"dialog__position"},U("div",{class:"dialog__content",onClick:u=>{u.stopPropagation()}},U(Uv,{options:r}),U(zv,{...n,onSubmitSuccess:c})))))}const Vv=` 115.dialog { 116 position: fixed; 117 z-index: var(--z-index); 118 margin: 0; 119 inset: 0; 120 121 display: flex; 122 align-items: center; 123 justify-content: center; 124 padding: 0; 125 height: 100vh; 126 width: 100vw; 127 128 color: var(--dialog-color, var(--foreground)); 129 fill: var(--dialog-color, var(--foreground)); 130 line-height: 1.75em; 131 132 background-color: rgba(0, 0, 0, 0.05); 133 border: none; 134 inset: 0; 135 opacity: 1; 136 transition: opacity 0.2s ease-in-out; 137} 138 139.dialog__position { 140 position: fixed; 141 z-index: var(--z-index); 142 inset: var(--dialog-inset); 143 padding: var(--page-margin); 144 display: flex; 145 max-height: calc(100vh - (2 * var(--page-margin))); 146} 147@media (max-width: 600px) { 148 .dialog__position { 149 inset: var(--page-margin); 150 padding: 0; 151 } 152} 153 154.dialog__position:has(.editor) { 155 inset: var(--page-margin); 156 padding: 0; 157} 158 159.dialog:not([open]) { 160 opacity: 0; 161 pointer-events: none; 162 visibility: hidden; 163} 164.dialog:not([open]) .dialog__content { 165 transform: translate(0, -16px) scale(0.98); 166} 167 168.dialog__content { 169 display: flex; 170 flex-direction: column; 171 gap: 16px; 172 padding: var(--dialog-padding, 24px); 173 max-width: 100%; 174 width: 100%; 175 max-height: 100%; 176 overflow: auto; 177 178 background: var(--dialog-background, var(--background)); 179 border-radius: var(--dialog-border-radius, 20px); 180 border: var(--dialog-border, var(--border));
181 box-shadow: var(--dialog-box-shadow, var(--box-shadow)); 182 transform: translate(0, 0) scale(1); 183 transition: transform 0.2s ease-in-out; 184} 185 186`,Yv=` 187.dialog__header { 188 display: flex; 189 gap: 4px; 190 justify-content: space-between; 191 font-weight: var(--dialog-header-weight, 600); 192 margin: 0; 193} 194.dialog__title { 195 align-self: center; 196 width: var(--form-width, 272px); 197} 198 199@media (max-width: 600px) { 200 .dialog__title { 201 width: auto; 202 } 203} 204 205.dialog__position:has(.editor) .dialog__title { 206 width: auto; 207} 208 209 210.brand-link { 211 display: inline-flex; 212} 213.brand-link:focus-visible { 214 outline: var(--outline); 215} 216`,Xv=` 217.form { 218 display: flex; 219 overflow: auto; 220 flex-direction: row; 221 gap: 16px; 222 flex: 1 0; 223} 224 225.form__right { 226 flex: 0 0 auto; 227 display: flex; 228 overflow: auto; 229 flex-direction: column; 230 justify-content: space-between; 231 gap: 20px; 232 width: var(--form-width, 100%); 233} 234 235.dialog__position:has(.editor) .form__right { 236 width: var(--form-width, 272px); 237} 238 239.form__top { 240 display: flex; 241 flex-direction: column; 242 gap: 8px; 243} 244 245.form__error-container { 246 color: var(--error-color); 247 fill: var(--error-color); 248} 249 250.form__label { 251 display: flex; 252 flex-direction: column; 253 gap: 4px; 254 margin: 0px; 255} 256 257.form__label__text { 258 display: flex; 259 gap: 4px; 260 align-items: center; 261} 262 263.form__label__text--required { 264 font-size: 0.85em; 265} 266 267.form__input { 268 font-family: inherit; 269 line-height: inherit; 270 background: transparent; 271 box-sizing: border-box; 272 border: var(--input-border, var(--border)); 273 border-radius: var(--input-border-radius, 6px); 274 color: var(--input-color, inherit); 275 fill: var(--input-color, inherit); 276 font-size: var(--input-font-size, inherit); 277 font-weight: var(--input-font-weight, 500); 278 padding: 6px 12px; 279} 280 281.form__input::placeholder { 282 opacity: 0.65; 283 color: var(--input-placeholder-color, inherit); 284 filter: var(--interactive-filter); 285} 286 287.form__input:focus-visible { 288 outline: var(--input-focus-outline, var(--outline)); 289} 290 291.form__input--textarea { 292 font-family: inherit; 293 resize: vertical; 294} 295 296.error { 297 color: var(--error-color); 298 fill: var(--error-color); 299} 300`,Kv=` 301.btn-group { 302 display: grid; 303 gap: 8px; 304} 305 306.btn { 307 line-height: inherit; 308 border: var(--button-border, var(--border)); 309 border-radius: var(--button-border-radius, 6px); 310 cursor: pointer; 311 font-family: inherit; 312 font-size: var(--button-font-size, inherit); 313 font-weight: var(--button-font-weight, 600); 314 padding: var(--button-padding, 6px 16px); 315} 316.btn[disabled] { 317 opacity: 0.6; 318 pointer-events: none; 319} 320 321.btn--primary { 322 color: var(--button-primary-color, var(--accent-foreground)); 323 fill: var(--button-primary-color, var(--accent-foreground)); 324 background: var(--button-primary-background, var(--accent-background)); 325 border: var(--button-primary-border, var(--border)); 326 border-radius: var(--button-primary-border-radius, 6px); 327 font-weight: var(--button-primary-font-weight, 500); 328} 329.btn--primary:hover { 330 color: var(--button-primary-hover-color, var(--accent-foreground)); 331 fill: var(--button-primary-hover-color, var(--accent-foreground)); 332 background: var(--button-primary-hover-background, var(--accent-background)); 333 filter: var(--interactive-filter); 334} 335.btn--primary:focus-visible { 336 background: var(--button-primary-hover-background, var(--accent-background)); 337 filter: var(--interactive-filter); 338 outline: var(--button-primary-focus-outline, var(--outline)); 339} 340 341.btn--default { 342 color: var(--button-color, var(--foreground)); 343 fill: var(--button-color, var(--foreground)); 344 background: var(--button-background, var(--background)); 345 border: var(--button-border, var(--border)); 346 border-radius: var(--button-border-radius, 6px); 347 font-weight: var(--button-font-weight, 500); 348} 349.btn--default:hover { 350 color: var(--button-color, var(--foreground)); 351 fill: var(--button-color, var(--foreground)); 352 background: var(--button-hover-background, var(--background)); 353 filter: var(--interactive-filter); 354} 355.btn--default:focus-visible { 356 background: var(--button-hover-background, var(--background)); 357 filter: var(--interactive-filter); 358 outline: var(--button-focus-outline, var(--outline)); 359} 360`,Jv=` 361.success__position { 362 position: fixed; 363 inset: var(--dialog-inset); 364 padding: var(--page-margin); 365 z-index: var(--z-index); 366} 367.success__content { 368 background: var(--success-background, var(--background)); 369 border: var(--success-border, var(--border)); 370 border-radius: var(--success-border-radius, 1.7em/50%);
371 box-shadow: var(--success-box-shadow, var(--box-shadow)); 372 font-weight: var(--success-font-weight, 600); 373 color: var(--success-color); 374 fill: var(--success-color); 375 padding: 12px 24px; 376 line-height: 1.75em; 377 378 display: grid; 379 align-items: center; 380 grid-auto-flow: column; 381 gap: 6px; 382 cursor: default; 383} 384 385.success__icon { 386 display: flex; 387} 388`;function Zv(e){const t=Q.createElement("style");return t.textContent=` 389:host { 390 --dialog-inset: var(--inset); 391} 392 393${Vv} 394${Yv} 395${Xv} 396${Kv} 397${Jv} 398`,e&&t.setAttribute("nonce",e),t}function Qv(){const e=z().getUser(),t=ve().getUser(),n=Gs().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const e0=(()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const o=r,s=e.useSentryUser,i=Qv(),a=Q.createElement("div"),c=Zv(e.styleNonce);let u="";const d={get el(){return a},appendToDom(){!o.contains(c)&&!o.contains(a)&&(o.appendChild(c),o.appendChild(a))},removeFromDom(){o.removeChild(a),o.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:U,hooks:$v,dialog:d,options:e}),f=p=>{xv(U(Gv,{options:e,screenshotInput:l,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:s&&i&&i[s.name]||"",defaultEmail:s&&i&&i[s.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 t0({h:e}){return function({top:n,left:r,corner:o,onGrabButton:s}){return e("button",{class:`editor__crop-corner editor__crop-corner--${o} `,style:{top:n,left:r},onMouseDown:i=>{i.preventDefault(),s(i,o)},onClick:i=>{i.preventDefault()}})}}function n0(e){const t=Q.createElement("style"),n="#1A141F",r="#302735";return t.textContent=` 399.editor { 400 padding: 10px; 401 padding-top: 65px; 402 padding-bottom: 65px; 403 flex-grow: 1; 404 405 background-color: ${n}; 406 background-image: repeating-linear-gradient( 407 -145deg, 408 transparent, 409 transparent 8px, 410 ${n} 8px, 411 ${n} 11px 412 ), 413 repeating-linear-gradient( 414 -45deg, 415 transparent, 416 transparent 15px, 417 ${r} 15px, 418 ${r} 16px 419 ); 420} 421 422.editor__canvas-container { 423 width: 100%; 424 height: 100%; 425 position: relative; 426 display: flex; 427 align-items: center; 428 justify-content: center; 429} 430 431.editor__canvas-container canvas { 432 object-fit: contain; 433 position: relative; 434} 435 436.editor__crop-btn-group { 437 padding: 8px; 438 gap: 8px; 439 border-radius: var(--menu-border-radius, 6px); 440 background: var(--button-primary-background, var(--background)); 441 width: 175px; 442 position: absolute; 443} 444 445.editor__crop-corner { 446 width: 30px; 447 height: 30px; 448 position: absolute; 449 background: none; 450 border: 3px solid #ffffff; 451} 452 453.editor__crop-corner--top-left { 454 cursor: nwse-resize; 455 border-right: none; 456 border-bottom: none; 457} 458.editor__crop-corner--top-right { 459 cursor: nesw-resize; 460 border-left: none; 461 border-bottom: none; 462} 463.editor__crop-corner--bottom-left { 464 cursor: nesw-resize; 465 border-right: none; 466 border-top: none; 467} 468.editor__crop-corner--bottom-right { 469 cursor: nwse-resize; 470 border-left: none; 471 border-top: none; 472} 473`,e&&t.setAttribute("nonce",e),t}function r0({hooks:e}){return function({onBeforeScreenshot:n,onScreenshot:r,onAfterScreenshot:o,onError:s}){e.useEffect(()=>{(async()=>{n();const a=await Rn.mediaDevices.getDisplayMedia({video:{width:Xe.innerWidth*Xe.devicePixelRatio,height:Xe.innerHeight*Xe.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)}),o()})().catch(s)},[])}}const Mn=30,tt=3,lt=Mn+tt,Ce=Xe.devicePixelRatio,xn=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)}),es=e=>{const t=e.clientHeight,n=e.clientWidth,r=e.width/e.height;let o=t*r,s=t;o>n&&(o=n,s=n/r);const i=(n-o)/2,a=(t-s)/2;return{startX:i,startY:a,endX:o+i,endY:s+a}};function o0({h:e,hooks:t,imageBuffer:n,dialog:r,options:o}){const s=r0({hooks:t});return function({onError:a}){const c=t.useMemo(()=>({__html:n0(o.styleNonce).innerText}),[]),u=t0({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}),[m,b]=t.useState(!1),[y,v]=t.useState(!1);t.useEffect(()=>{Xe.addEventListener("resize",C,!1)},[]);function C(){const g=f.current,S=xn(es(n));if(g){g.width=S.width*Ce,g.height=S.height*Ce,g.style.width=`${S.width}px`,g.style.height=`${S.height}px`;
473const T=g.getContext("2d");T&&T.scale(Ce,Ce)}const k=l.current;k&&(k.style.width=`${S.width}px`,k.style.height=`${S.height}px`),h({startX:0,startY:0,endX:S.width,endY:S.height})}t.useEffect(()=>{const g=f.current;if(!g)return;const S=g.getContext("2d");if(!S)return;const k=xn(es(n)),T=xn(p);S.clearRect(0,0,k.width,k.height),S.fillStyle="rgba(0, 0, 0, 0.5)",S.fillRect(0,0,k.width,k.height),S.clearRect(T.x,T.y,T.width,T.height),S.strokeStyle="#ffffff",S.lineWidth=3,S.strokeRect(T.x+1,T.y+1,T.width-2,T.height-2),S.strokeStyle="#000000",S.lineWidth=1,S.strokeRect(T.x+3,T.y+3,T.width-6,T.height-6)},[p]);function R(g,S){b(!1),v(!0);const k=_(S),T=()=>{Q.removeEventListener("mousemove",k),Q.removeEventListener("mouseup",T),b(!0),v(!1)};Q.addEventListener("mouseup",T),Q.addEventListener("mousemove",k)}const _=t.useCallback(g=>function(S){if(!f.current)return;const k=f.current,T=k.getBoundingClientRect(),$=S.clientX-T.x,q=S.clientY-T.y;switch(g){case"top-left":h(B=>({...B,startX:Math.min(Math.max(0,$),B.endX-lt),startY:Math.min(Math.max(0,q),B.endY-lt)}));break;case"top-right":h(B=>({...B,endX:Math.max(Math.min($,k.width/Ce),B.startX+lt),startY:Math.min(Math.max(0,q),B.endY-lt)}));break;case"bottom-left":h(B=>({...B,startX:Math.min(Math.max(0,$),B.endX-lt),endY:Math.max(Math.min(q,k.height/Ce),B.startY+lt)}));break;case"bottom-right":h(B=>({...B,endX:Math.max(Math.min($,k.width/Ce),B.startX+lt),endY:Math.max(Math.min(q,k.height/Ce),B.startY+lt)}));break}},[]),E=t.useRef({initialX:0,initialY:0});function x(g){if(y)return;E.current={initialX:g.clientX,initialY:g.clientY};const S=T=>{const $=f.current;if(!$)return;const q=T.clientX-E.current.initialX,B=T.clientY-E.current.initialY;h(A=>{const ae=Math.max(0,Math.min(A.startX+q,$.width/Ce-(A.endX-A.startX))),L=Math.max(0,Math.min(A.startY+B,$.height/Ce-(A.endY-A.startY))),te=ae+(A.endX-A.startX),we=L+(A.endY-A.startY);return E.current.initialX=T.clientX,E.current.initialY=T.clientY,{startX:ae,startY:L,endX:te,endY:we}})},k=()=>{Q.removeEventListener("mousemove",S),Q.removeEventListener("mouseup",k)};Q.addEventListener("mousemove",S),Q.addEventListener("mouseup",k)}function M(){const g=Q.createElement("canvas"),S=xn(es(n)),k=xn(p);g.width=k.width*Ce,g.height=k.height*Ce;const T=g.getContext("2d");T&&n&&T.drawImage(n,k.x/S.width*n.width,k.y/S.height*n.height,k.width/S.width*n.width,k.height/S.height*n.height,0,0,g.width,g.height);const $=n.getContext("2d");$&&($.clearRect(0,0,n.width,n.height),n.width=g.width,n.height=g.height,n.style.width=`${k.width}px`,n.style.height=`${k.height}px`,$.drawImage(g,0,0),C())}return s({onBeforeScreenshot:t.useCallback(()=>{r.el.style.display="none"},[]),onScreenshot:t.useCallback(g=>{const S=n.getContext("2d");if(!S)throw new Error("Could not get canvas context");n.width=g.videoWidth,n.height=g.videoHeight,n.style.width="100%",n.style.height="100%",S.drawImage(g,0,0)},[n]),onAfterScreenshot:t.useCallback(()=>{r.el.style.display="block";const g=d.current;g&&g.appendChild(n),C()},[]),onError:t.useCallback(g=>{r.el.style.display="block",a(g)},[])}),e("div",{class:"editor"},e("style",{nonce:o.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:x,style:{position:"absolute",cursor:m?"move":"auto"},ref:f}),e(u,{left:p.startX-tt,top:p.startY-tt,onGrabButton:R,corner:"top-left"}),e(u,{left:p.endX-Mn+tt,top:p.startY-tt,onGrabButton:R,corner:"top-right"}),e(u,{left:p.startX-tt,top:p.endY-Mn+tt,onGrabButton:R,corner:"bottom-left"}),e(u,{left:p.endX-Mn+tt,top:p.endY-Mn+tt,onGrabButton:R,corner:"bottom-right"}),e("div",{style:{left:Math.max(0,p.endX-191),top:Math.max(0,p.endY+8),display:m?"flex":"none"},class:"editor__crop-btn-group"},e("button",{onClick:g=>{g.preventDefault(),f.current&&h({startX:0,startY:0,endX:f.current.width/Ce,endY:f.current.height/Ce}),b(!1)},class:"btn btn--default"},o.cancelButtonLabel),e("button",{onClick:g=>{g.preventDefault(),M(),b(!1)},class:"btn btn--primary"},o.confirmButtonLabel)))))}}const s0=(()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=Q.createElement("canvas");return{input:o0({h:e,hooks:t,imageBuffer:o,dialog:n,options:r}),value:async()=>{const s=await new Promise(i=>{o.toBlob(i,"image/png")});if(s)return{data:new Uint8Array(await s.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}})),e1=Gl({lazyLoadIntegration:H_}),t1=Gl({getModalIntegration:()=>e0,getScreenshotIntegration:()=>s0});function i0(e,t=1,n){Zn.increment(Qn,e,t,n)}function a0(e,t,n){Zn.distribution(Qn,e,t,n)}function c0(e,t,n){Zn.set(Qn,e,t,n)}function u0(e,t,n){Zn.gauge(Qn,e,t,n)}function l0(e,t,n="second",r){return Zn.timing(Qn,e,t,n,r)}const n1={increment:i0,distribution:a0,set:c0,gauge:u0,timing:l0},yc=new WeakMap,ts=new Map,zr={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function d0(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:s,enableHTTPTimings:i,tracePropagationTargets:a}={traceFetch:zr.traceFetch,traceXHR:zr.traceXHR,trackFetchStreamPerformance:zr.trackFetchStreamPerformance,...t},c=typeof s=="function"?s:l=>!0,u=l=>h0(l,a),d={};n&&(e.addEventProcessor(l=>(l.type==="transaction"&&l.spans&&l.spans.forEach(f=>{if(f.op==="http.client"){const p=ts.get(f.span_id);p&&(f.timestamp=p/1e3,ts.delete(f.span_id))}}),l)),o&&Jh(l=>{if(l.response){const f=yc.get(l.response);f&&l.endTimestamp&&ts.set(f,l.endTimestamp)}}),ni(l=>{const f=Uh(l,c,u,d);if(l.response&&l.fetchData.__span&&yc.set(l.response,l.fetchData.__span),f){const p=rd(l.fetchData.url),h=p?$t(p).host:void 0;f.setAttributes({"http.url":p,"server.address":h})}i&&f&&bc(f)})),r&&li(l=>{const f=m0(l,c,u,d);i&&f&&bc(f)})}function f0(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.
473initiatorType==="xmlhttprequest")}function bc(e){const{url:t}=Y(e).data||{};if(!t||typeof t!="string")return;const n=un("resource",({entries:r})=>{r.forEach(o=>{f0(o)&&o.name.endsWith(t)&&(p0(o).forEach(i=>e.setAttribute(...i)),setTimeout(n))})})}function qe(e=0){return((Ee||performance.timeOrigin)+e)/1e3}function p0(e){const{name:t,version:n}=Bu(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Ee?[...r,["http.request.redirect_start",qe(e.redirectStart)],["http.request.fetch_start",qe(e.fetchStart)],["http.request.domain_lookup_start",qe(e.domainLookupStart)],["http.request.domain_lookup_end",qe(e.domainLookupEnd)],["http.request.connect_start",qe(e.connectStart)],["http.request.secure_connection_start",qe(e.secureConnectionStart)],["http.request.connection_end",qe(e.connectEnd)],["http.request.request_start",qe(e.requestStart)],["http.request.response_start",qe(e.responseStart)],["http.request.response_end",qe(e.responseEnd)]]:r}function h0(e,t){const n=I.location&&I.location.href;if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const s=r.origin===o;return t?bt(r.toString(),t)||s&&bt(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?bt(e,t):r}}function m0(e,t,n,r){const o=e.xhr,s=o&&o[gt];if(!o||o.__sentry_own_request__||!s)return;const i=Hn()&&t(s.url);if(e.endTimestamp&&i){const l=o.__sentry_xhr_span_id__;if(!l)return;const f=r[l];f&&s.status_code!==void 0&&(Bc(f,s.status_code),f.end(),delete r[l]);return}const a=rd(s.url),c=a?$t(a).host:void 0,u=!!me(),d=i&&u?Ke({name:`${s.method} ${s.url}`,attributes:{type:"xhr","http.method":s.method,"http.url":a,url:s.url,"server.address":c,[ee]:"auto.http.browser",[Fe]:"http.client"}}):new js;return o.__sentry_xhr_span_id__=d.spanContext().spanId,r[o.__sentry_xhr_span_id__]=d,n(s.url)&&g0(o,Hn()&&u?d:void 0),d}function g0(e,t){const{"sentry-trace":n,baggage:r}=uu({span:t});n&&_0(e,n,r)}function _0(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function rd(e){try{return new URL(e,I.location.origin).href}catch{return}}function y0(){I&&I.document?I.document.addEventListener("visibilitychange",()=>{const e=me();if(!e)return;const t=Re(e);if(I.document.hidden&&t){const n="cancelled",{op:r,status:o}=Y(t);W&&w.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:Bn,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):W&&w.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const b0="BrowserTracing",S0={...Or,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...zr},cr=((e={})=>{Vc();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:o,enableStandaloneClsSpans:s},beforeStartSpan:i,idleTimeout:a,finalTimeout:c,childSpanTimeout:u,markBackgroundSpan:d,traceFetch:l,traceXHR:f,trackFetchStreamPerformance:p,shouldCreateSpanForRequest:h,enableHTTPTimings:m,instrumentPageLoad:b,instrumentNavigation:y}={...S0,...e},v=ig({recordClsStandaloneSpans:s||!1});t&&Ag(),r&&X.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?cg():n&&ag(),o&&ug();const C={name:void 0,source:void 0};function R(_,E){const x=E.op==="pageload",M=i?i(E):E,g=M.attributes||{};E.name!==M.name&&(g[be]="custom",M.attributes=g),C.name=M.name,C.source=g[be];const S=Yc(M,{idleTimeout:a,finalTimeout:c,childSpanTimeout:u,disableAutoFinish:x,beforeSpanEnd:T=>{v(),hg(T,{recordClsOnPageloadSpan:!s})}});function k(){["interactive","complete"].includes(I.document.readyState)&&_.emit("idleSpanEnableAutoFinish",S)}return x&&I.document&&(I.document.addEventListener("readystatechange",()=>{k()}),k()),S}return{name:b0,afterAllSetup(_){let E,x=I.location&&I.location.href;function M(){E&&!Y(E).timestamp&&(W&&w.log(`[Tracing] Finishing current active span with op: ${Y(E).op}`),E.end())}_.on("startNavigationSpan",g=>{O()===_&&(M(),E=R(_,{op:"navigation",...g}))}),_.on("startPageLoadSpan",(g,S={})=>
473{if(O()!==_)return;M();const k=S.sentryTrace||Sc("sentry-trace"),T=S.baggage||Sc("baggage"),$=cf(k,T);z().setPropagationContext($),E=R(_,{op:"pageload",...g})}),_.on("spanEnd",g=>{const S=Y(g).op;if(g!==Re(g)||S!=="navigation"&&S!=="pageload")return;const k=z(),T=k.getPropagationContext();k.setPropagationContext({...T,sampled:T.sampled!==void 0?T.sampled:uf(g),dsc:T.dsc||po(g)})}),I.location&&(b&&ur(_,{name:I.location.pathname,startTime:Ee?Ee/1e3:void 0,attributes:{[be]:"url",[ee]:"auto.pageload.browser"}}),y&&bo(({to:g,from:S})=>{if(S===void 0&&x&&x.indexOf(g)!==-1){x=void 0;return}S!==g&&(x=void 0,lr(_,{name:I.location.pathname,attributes:{[be]:"url",[ee]:"auto.navigation.browser"}}))})),d&&y0(),o&&E0(a,c,u,C),t&&Ng(),d0(_,{traceFetch:l,traceXHR:f,trackFetchStreamPerformance:p,tracePropagationTargets:_.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}}});function ur(e,t,n){e.emit("startPageLoadSpan",t,n),z().setTransactionName(t.name);const r=me();return(r&&Y(r).op)==="pageload"?r:void 0}function lr(e,t){ve().setPropagationContext({traceId:Wi()}),z().setPropagationContext({traceId:Wi()}),e.emit("startNavigationSpan",t),z().setTransactionName(t.name);const n=me();return(n&&Y(n).op)==="navigation"?n:void 0}function Sc(e){const t=lf(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function E0(e,t,n,r){let o;const s=()=>{const i="ui.action.click",a=me(),c=a&&Re(a);if(c){const u=Y(c).op;if(["navigation","pageload"].includes(u)){W&&w.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(os,"interactionInterrupted"),o.end(),o=void 0),!r.name){W&&w.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}o=Yc({name:r.name,op:i,attributes:{[be]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};I.document&&addEventListener("click",s,{once:!1,capture:!0})}function yn(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function v0(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=yn(n);return o=>r.then(s=>o(s.transaction(t,"readwrite").objectStore(t)))}function Ni(e){return yn(e.getAllKeys())}function w0(e,t,n){return e(r=>Ni(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.max(...o,0)+1),yn(r.transaction)}))}function T0(e,t,n){return e(r=>Ni(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.min(...o,0)-1),yn(r.transaction)}))}function I0(e){return e(t=>Ni(t).then(n=>{const r=n[0];if(r!=null)return yn(t.get(r)).then(o=>(t.delete(r),yn(t.transaction).then(()=>o)))}))}function k0(e){let t;function n(){return t==null&&(t=v0(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const o=await Vr(r);await w0(n(),o,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const o=await Vr(r);await T0(n(),o,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await I0(n());if(r)return df(r)}catch{}}}}function C0(e){return t=>{const n=e({...t,createStore:k0});return I.addEventListener("online",async r=>{await n.flush()}),n}}function r1(e=Uu){return C0(up(e))}const Ec=1e6,jr=String(0),x0="main";let od="",sd="",id="",Us=I.navigator&&I.navigator.userAgent||"",ad="";const R0=I.navigator&&I.navigator.language||I.navigator&&I.navigator.languages&&I.navigator.languages[0]||"";function M0(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const vc=I.navigator&&I.navigator.userAgentData;M0(vc)&&vc.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(od=e.platform||"",id=e.architecture||"",ad=e.model||"",sd=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];Us=`${t.brand} ${t.version}`}}).catch(e=>{});function A0(e){return!("thread_metadata"in e)}function O0(e){return A0(e)?L0(e):e}function N0(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return typeof t=="string"&&t.length!==32&&W&&w.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function D0(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 o=N0(r),s=O0(n),i=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:he()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:he()*1e3;return{event_id:e,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Vs,runtime:{name:"javascript",version:I.navigator.userAgent},os:{name:od,version:sd,build_number:Us},device:{locale:R0,model:ad,manufacturer:Us,architecture:id,is_emulator:!1},debug_meta:{images:$0(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||yt(),trace_id:o,active_thread_id:jr,relative_start_ns:"0",relative_end_ns:((a-i)*1e6).toFixed(0)}]}}function cd(e){return Y(e).op==="pageload"}function L0(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[jr]:{name:x0}}},o=e.samples[0];if(!o)return r;const s=o.timestamp,i=typeof performance.timeOrigin=="number"?performance.timeOrigin:Ee||0,a=i-(Ee||i);
473return 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-s)*Ec).toFixed(0),stack_id:t,thread_id:jr};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-s)*Ec).toFixed(0),stack_id:n,thread_id:jr};r.stacks[n]=l,r.samples[u]=f,n++}),r}function P0(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function F0(e){const t=[];return sn(e,(n,r)=>{if(r==="transaction")for(let o=1;o<n.length;o++){const s=n[o];s&&s.contexts&&s.contexts.profile&&s.contexts.profile.profile_id&&t.push(n[o])}}),t}function $0(e){const t=O(),n=t&&t.getOptions(),r=n&&n.stackParser;return r?bf(r,e):[]}function B0(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(W&&w.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?(W&&w.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function H0(e){return e.samples.length<2?(W&&w.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(W&&w.log("[Profiling] Discarding profile because it contains no frames"),!1)}let ud=!1;const ld=3e4;function U0(e){return typeof e=="function"}function W0(){const e=I.Profiler;if(!U0(e)){W&&w.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(ld/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{W&&(w.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),w.log("[Profiling] Disabling profiling for current user session.")),ud=!0}}function wc(e){if(ud)return W&&w.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return W&&w.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=O(),n=t&&t.getOptions();if(!n)return W&&w.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return B0(r)?r?(r===!0?!0:Math.random()<r)?!0:(W&&w.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(W&&w.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(W&&w.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function z0(e,t,n,r){return H0(n)?D0(e,t,n,r):null}const Ft=new Map;function j0(){return Ft.size}function q0(e){const t=Ft.get(e);return t&&Ft.delete(e),t}function G0(e,t){if(Ft.set(e,t),Ft.size>30){const n=Ft.keys().next().value;Ft.delete(n)}}function Tc(e){let t;cd(e)&&(t=he()*1e3);const n=W0();if(!n)return;W&&w.log(`[Profiling] started profiling span: ${Y(e).description}`);const r=yt();z().setContext("profile",{profile_id:r,start_timestamp:t});async function o(){if(e&&n)return n.stop().then(c=>{if(s&&(I.clearTimeout(s),s=void 0),W&&w.log(`[Profiling] stopped profiling of span: ${Y(e).description}`),!c){W&&w.log(`[Profiling] profiler returned null profile for: ${Y(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}G0(r,c)}).catch(c=>{W&&w.log("[Profiling] error while stopping profiler:",c)})}let s=I.setTimeout(()=>{W&&w.log("[Profiling] max profile duration elapsed, stopping profiling for:",Y(e).description),o()},ld);const i=e.end.bind(e);function a(){return e?(o().then(()=>{i()},()=>{i()}),e):i()}e.end=a}const V0="BrowserProfiling",Y0=(()=>({name:V0,setup(e){const t=me(),n=t&&Re(t);n&&cd(n)&&wc(n)&&Tc(n),e.on("spanStart",r=>{r===Re(r)&&wc(r)&&Tc(r)}),e.on("beforeEnvelope",r=>{if(!j0())return;const o=F0(r);if(!o.length)return;const s=[];for(const i of o){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"){W&&w.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){W&&w.log("[Profiling] cannot find profile for a span without a profile context");continue}a&&a.profile&&delete a.profile;const d=q0(c);if(!d){W&&w.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}
473const l=z0(c,u,d,i);l&&s.push(l)}P0(r,s)})}})),o1=Y0,X0="SpotlightBrowser",K0=((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:X0,setup:()=>{W&&w.log("Using Sidecar URL",t)},processEvent:n=>Z0(n)?null:n,afterAllSetup:n=>{J0(n,t)}}});function J0(e,t){const n=ui("fetch");let r=0;e.on("beforeEnvelope",o=>{if(r>3){w.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:Vr(o),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(s=>{s.status>=200&&s.status<400&&(r=0)},s=>{r++,w.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",s)})})}const s1=K0;function Z0(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 Q0=100;function dr(e){const n=z().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function bn(e,t,n=Q0){const r=z().getScopeData().contexts;r.flags||(r.flags={values:[]});const o=r.flags.values;ew(o,e,t,n)}function ew(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){W&&w.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const o=e.findIndex(s=>s.flag===t);o!==-1&&e.splice(o,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){bn(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)=>{bn(e,t.value)}}}const u1=()=>({name:"OpenFeature",processEvent(e,t,n){return dr(e)}});class l1{after(t,n){bn(n.flagKey,n.value)}error(t,n,r){bn(t.flagKey,t.defaultValue)}}const d1=({featureFlagClientClass:e,unleashClientClass:t})=>{const n=e||t;if(!n)throw new Error("featureFlagClientClass option is required");return{name:"Unleash",processEvent(r,o,s){return dr(r)},setupOnce(){const r=n.prototype;ke(r,"isEnabled",tw)}}};function tw(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?bn(n,r):W&&w.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=>{bn(t.gate.name,t.gate.value)})}});function p1(e){const t={...e};return cu(t,"react"),Zs("react",{version:Se.version}),$_(t)}function nw(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function rw(e,t){const n=new WeakSet;function r(o,s){if(!n.has(o)){if(o.cause)return n.add(o),r(o.cause,s);o.cause=s}}r(e,t)}function dd(e,{componentStack:t},n){if(nw(Se.version)&&St(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,rw(e,r)}return mo(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}function h1(e){return(t,n)=>{const r=dd(t,n);e&&e(t,n,r)}}var ns={exports:{}},Z={};/** @license React v16.13.1 474 * react-is.production.min.js 475 * 476 * Copyright (c) Facebook, Inc. and its affiliates. 477 * 478 * This source code is licensed under the MIT license found in the 479 * LICENSE file in the root directory of this source tree. 480 */var Ic;function ow(){if(Ic)return Z;Ic=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function C(_){if(typeof _=="object"&&_!==null){var E=_.$$typeof;switch(E){case t:switch(_=_.type,_){case c:case u:case r:case s:case o:case l:return _;default:switch(_=_&&_.$$typeof,_){case a:case d:case h:case p:case i:return _;default:return E}}case n:return E}}}function R(_){return C(_)===u}return Z.AsyncMode=c,Z.ConcurrentMode=u,Z.ContextConsumer=a,Z.ContextProvider=i,Z.Element=t,Z.ForwardRef=d,Z.Fragment=r,Z.Lazy=h,Z.Memo=p,Z.Portal=n,Z.Profiler=s,Z.StrictMode=o,Z.Suspense=l,Z.isAsyncMode=function(_){return R(_)||C(_)===c},Z.isConcurrentMode=R,Z.isContextConsumer=function(_){return C(_)===a},Z.isContextProvider=function(_){return C(_)===i},Z.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Z.isForwardRef=function(_){return C(_)===d},Z.isFragment=function(_){return C(_)===r},Z.isLazy=function(_){return C(_)===h},Z.isMemo=function(_){return C(_)===p},Z.isPortal=function(_){return C(_)===n},Z.isProfiler=function(_){return C(_)===s},Z.isStrictMode=function(_){return C(_)===o},Z.isSuspense=function(_){return C(_)===l},Z.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===s||_===o||_===l||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===h||_.$$typeof===p||_.$$typeof===i||_.$$typeof===a||_.$$typeof===d||_.$$typeof===b||_.$$typeof===y||_.$$typeof===v||_.$$typeof===m)},Z.typeOf=C,Z}var kc;function sw(){return kc||(kc=1,ns.exports=ow()),ns.exports}
480var rs,Cc;function iw(){if(Cc)return rs;Cc=1;var e=sw(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=o;function i(h){return e.isMemo(h)?o:s[h.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,f=Object.prototype;function p(h,m,b){if(typeof m!="string"){if(f){var y=l(m);y&&y!==f&&p(h,y,b)}var v=c(m);u&&(v=v.concat(u(m)));for(var C=i(h),R=i(m),_=0;_<v.length;++_){var E=v[_];if(!n[E]&&!(b&&b[E])&&!(R&&R[E])&&!(C&&C[E])){var x=d(m,E);try{a(h,E,x)}catch{}}}}return h}return rs=p,rs}var aw=iw();const Ro=Cd(aw),fd="ui.react.render",cw="ui.react.update",pd="ui.react.mount",uw="unknown";class hd extends Se.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=Ke({name:`<${n}>`,onlyIfParent:!0,op:pd,attributes:{[ee]:"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(o=>t[o]!==this.props.updateProps[o]);if(r.length>0){const o=he();this._updateSpan=ls(this._mountSpan,()=>Ke({name:`<${this.props.name}>`,onlyIfParent:!0,op:cw,startTime:o,attributes:{[ee]:"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=he(),{name:n,includeRender:r=!0}=this.props;if(this._mountSpan&&r){const o=Y(this._mountSpan).timestamp;ls(this._mountSpan,()=>{const s=Ke({onlyIfParent:!0,name:`<${n}>`,op:fd,startTime:o,attributes:{[ee]:"auto.ui.react.profiler","ui.component_name":n}});s&&s.end(t)})}}render(){return this.props.children}}hd.__initStatic();function m1(e,t){const n=t&&t.name||e.displayName||e.name||uw,r=o=>Se.createElement(hd,{...t,name:n,updateProps:o},Se.createElement(e,{...o}));return r.displayName=`profiler(${n})`,Ro(r,e),r}function g1(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=Se.useState(()=>{if(!(t&&t.disabled))return Ke({name:`<${e}>`,onlyIfParent:!0,op:pd,attributes:{[ee]:"auto.ui.react.profiler","ui.component_name":e}})});Se.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const r=Y(n).timestamp,o=he(),s=Ke({name:`<${e}>`,onlyIfParent:!0,op:fd,startTime:r,attributes:{[ee]:"auto.ui.react.profiler","ui.component_name":e}});s&&s.end(o)}}),[])}const fr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,lw="unknown",xc={componentStack:null,error:null,eventId:null};class Di extends Se.Component{constructor(t){super(t),Di.prototype.__init.call(this),this.state=xc,this._openFallbackReportDialog=!0;const n=O();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&ba({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,o=r??void 0,{beforeCapture:s,onError:i,showDialog:a,dialogOptions:c}=this.props;Kn(u=>{s&&s(u,t,o);const d=this.props.handled!=null?this.props.handled:!!this.props.fallback,l=dd(t,n,{mechanism:{handled:d}});i&&i(t,o,l),a&&(this._lastEventId=l,this._openFallbackReportDialog&&ba({...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:o}=this.props;o&&o(t,n,r),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:o}=this.state;t&&t(n,r,o),this.setState(xc)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let o;return typeof t=="function"?o=Se.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):o=t,Se.isValidElement(o)?o:(t&&fr&&w.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||lw,r=o=>Se.createElement(Di,{...t},Se.createElement(e,{...o}));return r.displayName=`errorBoundary(${n})`,Ro(r,e),r}const dw="redux.action",fw="info",pw={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function y1(e){const t={...pw,...e};return n=>(r,o)=>(t.attachReduxState&&Gs().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=z(),d=t.actionTransformer(a);typeof d<"u"&&d!==null&&Je({category:dw,data:d,type:fw});const l=t.stateTransformer(c);if(typeof l<"u"&&l!==null){const p=O(),h=p&&p.getOptions(),m=h&&h.normalizeDepth||3,b={state:{type:"redux",value:l}};an(b,"__sentry_override_normalization_depth__",3+m),u.setContext("state",b)}else u.setContext("state",null);const{configureScopeWithState:f}=t;return typeof f=="function"&&f(u,c),c},o))}function b1(e){const t=cr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),s&&I&&I.location&&Rc(r,I.location,o,(c,u="url")=>{ur(a,{name:c,attributes:{[Fe]:"pageload",[ee]:"auto.pageload.react.reactrouter_v3",[be]:u}})}),i&&n.listen&&n.listen(c=>{(c.action==="PUSH"||c.action==="POP")&&Rc(r,c,o,(u,d="url")=>{lr(a,{name:u,attributes:{[Fe]:"navigation",[ee]:"auto.navigation.react.reactrouter_v3",[be]:d}})})})}}}function Rc(e,t,n,r){let o=t.pathname;n({location:t,routes:e},(s,i,a)=>
480{if(s||!a)return r(o);const c=hw(a.routes||[]);return c.length===0||c==="/*"?r(o):(o=c,r(o,"route"))})}function hw(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 o=t[r];if(o.path&&o.path.startsWith("/")){n=r;break}}return t.slice(n).filter(({path:r})=>!!r).map(({path:r})=>r).join("")}function S1(e,t={}){const n=e,r=cr({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:o=!0,instrumentNavigation:s=!0}=t;return{...r,afterAllSetup(i){r.afterAllSetup(i);const a=I.location;if(o&&a){const c=n.matchRoutes(a.pathname,n.options.parseSearch(a.search),{preload:!1,throwOnError:!1}),u=c[c.length-1];ur(i,{name:u?u.routeId:a.pathname,attributes:{[Fe]:"pageload",[ee]:"auto.pageload.react.tanstack_router",[be]:u?"route":"url",...Mc(u)}})}s&&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=lr(i,{name:l?l.routeId:f.pathname,attributes:{[Fe]:"navigation",[ee]:"auto.navigation.react.tanstack_router",[be]:l?"route":"url"}}),h=n.subscribe("onResolved",m=>{if(h(),p){const b=n.matchRoutes(m.toLocation.pathname,m.toLocation.search,{preload:!1,throwOnError:!1}),y=b[b.length-1];y&&(p.updateName(y.routeId),p.setAttribute(be,"route"),p.setAttributes(Mc(y)))}})})}}}function Mc(e){if(!e)return{};const t={};return Object.entries(e.params).forEach(([n,r])=>{t[`url.path.params.${n}`]=r}),t}function E1(e){const t=cr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),md(a,s,i,n,"reactrouter_v4",r,o)}}}function v1(e){const t=cr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),md(a,s,i,n,"reactrouter_v5",r,o)}}}function md(e,t,n,r,o,s=[],i){function a(){if(r&&r.location)return r.location.pathname;if(I&&I.location)return I.location.pathname}function c(u){if(s.length===0||!i)return[u,"url"];const d=gd(s,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);ur(e,{name:d,attributes:{[Fe]:"pageload",[ee]:`auto.pageload.react.${o}`,[be]:l}})}}n&&r.listen&&r.listen((u,d)=>{if(d&&(d==="PUSH"||d==="POP")){const[l,f]=c(u.pathname);lr(e,{name:l,attributes:{[Fe]:"navigation",[ee]:`auto.navigation.react.${o}`,[be]:f}})}})}function gd(e,t,n,r=[]){return e.some(o=>{const s=o.path?n(t,o):r.length?r[r.length-1].match:mw(t);return s&&(r.push({route:o,match:s}),o.routes&&gd(o.routes,t,n,r)),!!s}),r}function mw(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 o=r.computedMatch.path,s=gw();z().setTransactionName(o),s&&(s.updateName(o),s.setAttribute(be,"route"))}return Se.createElement(e,{...r})};return n.displayName=`sentryRoute(${t})`,Ro(n,e),n}function gw(){const e=me(),t=e&&Re(e);if(!t)return;const n=Y(t).op;return n==="navigation"||n==="pageload"?t:void 0}let vt,wt,Tt,qr,Ze,tn=!1;const _d=new WeakSet,Oe=new Set;function yd(e,t){return!vt||!wt||!Tt||!Ze?(fr&&w.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=>{Oe.add(a)});const o=e(n,r),s=r&&r.basename,i=Ao();return o.state.historyAction==="POP"&&i&&Mo(i,o.state.location,n,void 0,s,Array.from(Oe)),o.subscribe(a=>{(a.historyAction==="PUSH"||a.historyAction==="POP")&&(a.navigation.state!=="idle"?requestAnimationFrame(()=>{Yn({location:a.location,routes:n,navigationType:a.historyAction,version:t,basename:s,allRoutes:Array.from(Oe)})}):Yn({location:a.location,routes:n,navigationType:a.historyAction,version:t,basename:s,allRoutes:Array.from(Oe)}))}),o}}function bd(e,t){return!vt||!wt||!Tt||!Ze?(fr&&w.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e):function(n,r){n.forEac
480h(p=>{Oe.add(p)});const o=e(n,r),s=r?r.basename:void 0,i=Ao();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:o.state.location;return o.state.historyAction==="POP"&&i&&Mo(i,f,n,void 0,s,Array.from(Oe)),o.subscribe(p=>{const h=p.location;(p.historyAction==="PUSH"||p.historyAction==="POP")&&Yn({location:h,routes:n,navigationType:p.historyAction,version:t,basename:s,allRoutes:Array.from(Oe)})}),o}}function Sd(e,t){const n=cr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:o,useNavigationType:s,createRoutesFromChildren:i,matchRoutes:a,stripBasename:c,instrumentPageLoad:u=!0,instrumentNavigation:d=!0}=e;return{...n,setup(){vt=r,wt=o,Tt=s,Ze=a,qr=i,tn=c||!1},afterAllSetup(l){n.afterAllSetup(l);const f=I&&I.location&&I.location.pathname;u&&f&&ur(l,{name:f,attributes:{[be]:"url",[Fe]:"pageload",[ee]:`auto.pageload.react.reactrouter_v${t}`}}),d&&_d.add(l)}}}function Ed(e,t){if(!vt||!wt||!Tt||!Ze)return fr&&w.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;const n=r=>{const o=Se.useRef(!0),{routes:s,locationArg:i}=r,a=e(s,i),c=wt(),u=Tt(),d=typeof i=="string"||i&&i.pathname?i:c;return vt(()=>{const l=typeof d=="string"?{pathname:d}:d;o.current?(s.forEach(f=>{Li(f).forEach(h=>{Oe.add(h)})}),Mo(Ao(),l,s,void 0,void 0,Array.from(Oe)),o.current=!1):Yn({location:l,routes:s,navigationType:u,version:t,allRoutes:Array.from(Oe)})},[u,d]),a};return(r,o)=>Se.createElement(n,{routes:r,locationArg:o})}function Yn(e){const{location:t,routes:n,navigationType:r,version:o,matches:s,basename:i,allRoutes:a}=e,c=Array.isArray(s)?s:Ze(n,t,i),u=O();if(!(!u||!_d.has(u))&&(r==="PUSH"||r==="POP")&&c){let d,l="url";const f=wd(t,a||n);f&&(d=Xn(Pi(a||n,t)),l="route"),(!f||!d)&&([d,l]=Td(n,t,c,i)),lr(u,{name:d,attributes:{[be]:l,[Fe]:"navigation",[ee]:`auto.navigation.react.reactrouter_v${o}`}})}}function fo(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 _w(e,t,n){const r=e||tn?fo(t,n):t;return[r[r.length-1]==="/"||r.slice(-2)==="/*"?r.slice(0,-1):r,"route"]}function vd(e){return e.endsWith("*")}function Ac(e,t){return vd(e)&&t.route.children&&t.route.children.length>0||!1}function yw(e){return!!(!e.children&&e.element&&e.path&&e.path.endsWith("/*"))}function wd(e,t){const n=Ze(t,e);if(n){for(const r of n)if(yw(r.route)&&Sw(r))return!0}return!1}function Li(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{Li(n,t).forEach(o=>t.add(o))})),t}function bw(e){return Ew(e.route.path||"")}function Sw(e){return e.params["*"]||""}function Ew(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function $n(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Xn(e){return e[0]==="/"?e:`/${e}`}function Pi(e,t){const n=Ze(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const o=bw(r),s=fo(t.pathname,Xn(r.pathnameBase));return $n($n(o||"")+Xn(Pi(e.filter(i=>i!==r.route),{pathname:s})))}return""}function Td(e,t,n,r=""){if(!e||e.length===0)return[tn?fo(t.pathname,r):t.pathname,"url"];let o="";if(n)for(const i of n){const a=i.route;if(a){if(a.index)return _w(o,i.pathname,r);const c=a.path;if(c&&!Ac(c,i)){const u=c[0]==="/"||o[o.length-1]==="/"?c:`/${c}`;if(o=$n(o)+Xn(u),$n(t.pathname)===$n(r+i.pathname))return sa(o)!==sa(i.pathname)&&!vd(o)?[(tn?"":r)+u,"route"]:(Ac(o,i)&&(o=o.slice(0,-1)),[(tn?"":r)+o,"route"])}}}return[tn?fo(t.pathname,r):t.pathname||"/","url"]}function Mo(e,t,n,r,o,s){const i=Array.isArray(r)?r:Ze(s||n,t,o);if(i){let a,c="url";const u=wd(t,s||n);u&&(a=Xn(Pi(s||n,t)),c="route"),(!u||!a)&&([a,c]=Td(n,t,i,o)),z().setTransactionName(a||"/"),e&&(e.updateName(a),e.setAttribute(be,c))}}function Id(e,t){if(!vt||!wt||!Tt||!qr||!Ze)return fr&&w.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters. 481 useEffect: ${vt}. useLocation: ${wt}. useNavigationType: ${Tt}. 482 createRoutesFromChildren: ${qr}. matchRoutes: ${Ze}.`),e;const n=r=>{const o=Se.useRef(!0),s=wt(),i=Tt();return vt(()=>{const a=qr(r.children);
482o.current?(a.forEach(c=>{Li(c).forEach(d=>{Oe.add(d)})}),Mo(Ao(),s,a,void 0,void 0,Array.from(Oe)),o.current=!1):Yn({location:s,routes:a,navigationType:i,version:t,allRoutes:Array.from(Oe)})},[s,i]),Se.createElement(e,{...r})};return Ro(n,e),n}function Ao(){const e=me(),t=e?Re(e):void 0;if(!t)return;const n=Y(t).op;return n==="navigation"||n==="pageload"?t:void 0}function T1(e){return Sd(e,"6")}function vw(e){return Ed(e,"6")}const I1=vw;function ww(e){return yd(e,"6")}const k1=ww;function C1(e){return bd(e,"6")}function x1(e){return Id(e,"6")}function R1(e){return Sd(e,"7")}function M1(e){return Id(e,"7")}function A1(e){return yd(e,"7")}function O1(e){return bd(e,"7")}function N1(e){return Ed(e,"7")}export{Em as BrowserClient,Di as ErrorBoundary,l1 as OpenFeatureIntegrationHook,hd as Profiler,as as SDK_VERSION,Fe as SEMANTIC_ATTRIBUTE_SENTRY_OP,ee as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,P1 as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,be as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Dc as Scope,I as WINDOW,Je as addBreadcrumb,zf as addEventProcessor,Ki as addIntegration,kw as addTracingExtensions,o_ as breadcrumbsIntegration,m_ as browserApiErrorsIntegration,o1 as browserProfilingIntegration,S_ as browserSessionIntegration,cr as browserTracingIntegration,c1 as buildLaunchDarklyFlagUsedHandler,Nw as captureConsoleIntegration,Jn as captureEvent,mo as captureException,Vh as captureFeedback,ps as captureMessage,Vi as captureSession,Gw as captureUserFeedback,zg as chromeStackLineParser,xw as close,Xw as contextLinesIntegration,F1 as continueTrace,y1 as createReduxEnhancer,ap as createTransport,bm as createUserFeedbackEnvelope,Dw as debugIntegration,Gp as dedupeIntegration,zr as defaultRequestInstrumentationOptions,e_ as defaultStackLineParsers,t_ as defaultStackParser,Kr as endSession,hm as eventFromException,mm as eventFromMessage,ri as exceptionFromError,Lw as extraErrorDataIntegration,i1 as featureFlagsIntegration,e1 as feedbackAsyncIntegration,t1 as feedbackIntegration,t1 as feedbackSyncIntegration,Cw as flush,jw as forceLoad,yp as functionToStringIntegration,Vg as geckoStackLineParser,me as getActiveSpan,O as getClient,Hw as getCurrentHub,z as getCurrentScope,L_ as getDefaultIntegrations,Qw as getFeedback,Gs as getGlobalScope,ve as getIsolationScope,Jw as getReplay,Re as getRootSpan,No as getSpanDescendants,$1 as getSpanStatusFromHttpCode,w_ as globalHandlersIntegration,Yw as httpClientIntegration,R_ as httpContextIntegration,vp as inboundFiltersIntegration,p1 as init,d0 as instrumentOutgoingRequests,Rw as isInitialized,Uf as lastEventId,a1 as launchDarklyIntegration,H_ as lazyLoadIntegration,D_ as linkedErrorsIntegration,r1 as makeBrowserOfflineTransport,Uu as makeFetchTransport,Mw as makeMultiplexedTransport,n1 as metrics,Ow as moduleMetadataIntegration,qw as onLoad,u1 as openFeatureIntegration,Ww as opera10StackLineParser,zw as opera11StackLineParser,Aw as parameterize,h1 as reactErrorHandler,b1 as reactRouterV3BrowserTracingIntegration,E1 as reactRouterV4BrowserTracingIntegration,v1 as reactRouterV5BrowserTracingIntegration,T1 as reactRouterV6BrowserTracingIntegration,R1 as reactRouterV7BrowserTracingIntegration,Vc as registerSpanErrorInstrumentation,Zw as replayCanvasIntegration,Kw as replayIntegration,Vw as reportingObserverIntegration,Pw as rewriteFramesIntegration,hv as sendFeedback,Fw as sessionTimingIntegration,Zs as setContext,np as setCurrentClient,Ff as setExtra,Pf as setExtras,Bc as setHttpStatus,tf as setMeasurement,Bf as setTag,$f as setTags,Hf as setUser,ba as showReportDialog,B1 as spanToBaggageHeader,Y as spanToJSON,Wd as spanToTraceHeader,s1 as spotlightBrowserIntegration,lr as startBrowserTracingNavigationSpan,ur as startBrowserTracingPageLoadSpan,Ke as startInactiveSpan,H1 as startNewTrace,hs as startSession,U1 as startSpan,Gd as startSpanManual,f1 as statsigIntegration,W1 as suppressTracing,S1 as tanstackRouterBrowserTracingIntegration,Bw as thirdPartyErrorFilterIntegration,d1 as unleashIntegration,z1 as updateSpanName,g1 as useProfiler,Uw as winjsStackLineParser,ls as withActiveSpan,_1 as withErrorBoundary,j1 as withIsolationScope,m1 as withProfiler,Kn as withScope,x1 as withSentryReactRouterV6Routing,M1 as withSentryReactRouterV7Routing,w1 as withSentryRouting,k1 as wrapCreateBrowserRouter,ww as wrapCreateBrowserRouterV6,A1 as wrapCreateBrowserRouterV7,C1 as wrapCreateMemoryRouterV6,O1 as wrapCreateMemoryRouterV7,I1 as wrapUseRoutes,vw as wrapUseRoutesV6,N1 as wrapUseRoutesV7,$w as zodErrorsIntegration};
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.