PageSourceSearch

https://www.jm.no/assets/vendor-sentry-DakCpbCX.js

js jm.no collected 2026-10-02 20:54:42 UTC 214,795 bytes, 21 lines download raw bytes

1import{r as ht}from"./vendor-react-NmI9CjOw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"jmweb@744c25cda"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bb872be7-1399-47bf-958e-a7127c1f337b",e._sentryDebugIdIdentifier="sentry-dbid-bb872be7-1399-47bf-958e-a7127c1f337b")}catch{}})();const w=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,A=globalThis,Le="10.40.0";function Ct(){return Sn(A),A}function Sn(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Le,t[Le]=t[Le]||{}}function it(e,t,n=A){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Le]=r[Le]||{};return s[e]||(s[e]=t())}const Za=["debug","info","warn","error","log","assert","trace"],ec="Sentry Logger ",rn={};function Fe(e){if(!("console"in A))return e();const t=A.console,n={},r=Object.keys(rn);r.forEach(s=>{const i=rn[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function tc(){Fr().enabled=!0}function nc(){Fr().enabled=!1}function qi(){return Fr().enabled}function rc(...e){Pr("log",...e)}function sc(...e){Pr("warn",...e)}function ic(...e){Pr("error",...e)}function Pr(e,...t){w&&qi()&&Fe(()=>{A.console[e](`${ec}[${e}]:`,...t)})}function Fr(){return w?it("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const S={enable:tc,disable:nc,isEnabled:qi,log:rc,warn:sc,error:ic},Gi=50,Pe="?",bs=/\(error: (.*)\)/,vs=/captureMessage|captureException/;function Vi(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(`
2`);for(let c=r;c<o.length;c++){let a=o[c];a.length>1024&&(a=a.slice(0,1024));const u=bs.test(a)?a.replace(bs,"$1"):a;if(!u.match(/\S*Error: /)){for(const l of t){const d=l(u);if(d){i.push(d);break}}if(i.length>=Gi+s)break}}return ac(i.slice(s))}}function oc(e){return Array.isArray(e)?Vi(...e):e}function ac(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ht(t).function||"")&&t.pop(),t.reverse(),vs.test(Ht(t).function||"")&&(t.pop(),vs.test(Ht(t).function||"")&&t.pop()),t.slice(0,Gi).map(n=>({...n,filename:n.filename||Ht(t).filename,function:n.function||Pe}))}function Ht(e){return e[e.length-1]||{}}const zn="<anonymous>";function ve(e){try{return!e||typeof e!="function"?zn:e.name||zn}catch{return zn}}function Is(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function Yi(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const Xt={},ws={};function Be(e,t){Xt[e]=Xt[e]||[],Xt[e].push(t)}function Ue(e,t){if(!ws[e]){ws[e]=!0;try{t()}catch(n){w&&S.error(`Error while instrumenting ${e}`,n)}}}function pe(e,t){const n=e&&Xt[e];if(n)for(const r of n)try{r(t)}catch(s){w&&S.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${ve(r)}
5Error:`,s)}}let jn=null;function cc(e){const t="error";Be(t,e),Ue(t,uc)}function uc(){jn=A.onerror,A.onerror=function(e,t,n,r,s){return pe("error",{column:r,error:s,line:n,msg:e,url:t}),jn?jn.apply(this,arguments):!1},A.onerror.__SENTRY_INSTRUMENTED__=!0}let qn=null;function lc(e){const t="unhandledrejection";Be(t,e),Ue(t,dc)}function dc(){qn=A.onunhandledrejection,A.onunhandledrejection=function(e){return pe("unhandledrejection",e),qn?qn.apply(this,arguments):!0},A.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Ki=Object.prototype.toString;function Mt(e){switch(Ki.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Re(e,Error)}}function ot(e,t){return Ki.call(e)===`[object ${t}]`}function Xi(e){return ot(e,"ErrorEvent")}function ks(e){return ot(e,"DOMError")}function fc(e){return ot(e,"DOMException")}function Se(e){return ot(e,"String")}function Br(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function En(e){return e===null||Br(e)||typeof e!="object"&&typeof e!="function"}function St(e){return ot(e,"Object")}function bn(e){return typeof Event<"u"&&Re(e,Event)}function pc(e){return typeof Element<"u"&&Re(e,Element)}function hc(e){return ot(e,"RegExp")}function xt(e){return!!(e?.then&&typeof e.then=="function")}function mc(e){return St(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Re(e,t){try{return e instanceof t}catch{return!1}}function Ji(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function Qi(e){return typeof Request<"u"&&Re(e,Request)}const Ur=A,gc=80;function vn(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const c=" > ",a=c.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||gc;for(;n&&i++<r&&(u=_c(n,l),!(u==="html"||i>1&&o+s.length*a+u.length>=d));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(c)}catch{return"<unknown>"}}function _c(e,t){const n=e,r=[];if(!n?.tagName)return"";if(Ur.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t?.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s?.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&Se(o)){const c=o.split(/\s+/);for(const a of c)r.push(`.${a}`)}}const i=["aria-label","type","name","title","alt"];for(const o of i){const c=n.getAttribute(o);c&&r.push(`[${o}="${c}"]`)}return r.join("")}function In(){try{return Ur.document.location.href}catch{return""}}function yc(e){if(!Ur.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function ne(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&Zi(s,r);try{e[t]=s}catch{w&&S.log(`Failed to replace method "${t}" in object`,e)}}function Ce(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{w&&S.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Zi(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ce(e,"__sentry_original__",t)}catch{}}function $r(e){return e.__sentry_original__}function eo(e){if(Mt(e))return{message:e.message,name:e.name,stack:e.stack,...Rs(e)};if(bn(e)){const t={type:e.type,target:Ts(e.target),currentTarget:Ts(e.currentTarget),...Rs(e)};return typeof CustomEvent<"u"&&Re(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Ts(e){try{return pc(e)?vn(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Rs(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Sc(e){const t=Object.keys(eo(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let He;function Ot(e){if(He!==void 0)return He?He(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=A;return t in n&&typeof n[t]=="function"?(He=n[t],He(e)):(He=null,e())}function sn(){return Ot(()=>Math.random())}function Dt(){return Ot(()=>Date.now())}function cr(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Cs(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Ji(s)?n.push(Yi(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Jt(e,t,n=!1){return Se(e)?hc(t)?t.test(e):Se(t)?n?e===t:e.includes(t):!1:!1}function At(e,t=[],n=!1){return t.some(r=>Jt(e,r,n))}function Ec(){const e=A;return e.crypto||e.msCrypto}let Gn;function bc(){return sn()*16}function se(e=Ec()){try{if(e?.randomUUID)return Ot(()=>e.randomUUID()).replace(/-/g,"")}catch{}return Gn||(Gn="10000000100040008000"+1e11),Gn.replace(/[018]/g,t=>(t^(bc()&15)>>t/4).toString(16))}function to(e){return e.exception?.values?.[0]}function Ae(e){const{message:t,event_id:n}=e;if(t)return t;const r=to(e);return r?r.type&&r.value?`${r.type}: ${r.value}
5`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ur(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function Je(e,t){const n=to(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s?.data,...t.data};n.mechanism.data=i}}function Ms(e){if(vc(e))return!0;try{Ce(e,"__sentry_captured__",!0)}catch{}return!1}function vc(e){try{return e.__sentry_captured__}catch{}}const no=1e3;function Nt(){return Dt()/no}function Ic(){const{performance:e}=A;if(!e?.now||!e.timeOrigin)return Nt;const t=e.timeOrigin;return()=>(t+Ot(()=>e.now()))/no}let xs;function Ee(){return(xs??(xs=Ic()))()}let Vn=null;function wc(){const{performance:e}=A;if(!e?.now)return;const t=3e5,n=Ot(()=>e.now()),r=Dt(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<t)return s;const i=e.timing?.navigationStart;return typeof i=="number"&&Math.abs(i+n-r)<t?i:r-n}function kc(){return Vn===null&&(Vn=wc()),Vn}function Tc(e){const t=Ee(),n={sid:se(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Cc(n)};return e&&Qe(n,e),n}function Qe(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ee(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:se()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Rc(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Qe(e,n)}function Cc(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Lt(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Lt(r[s],t[s],n-1));return r}function Os(){return se()}function ro(){return se().substring(16)}const lr="_sentrySpan";function Ds(e,t){t?Ce(e,lr,t):delete e[lr]}function dr(e){return e[lr]}const Mc=100;class _e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Os(),sampleRand:sn()}}clone(){const t=new _e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Ds(t,dr(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Qe(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof _e?n.getScopeData():St(n)?t:void 0,{tags:s,attributes:i,extra:o,user:c,contexts:a,level:u,fingerprint:l=[],propagationContext:d,conversationId:f}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},c&&Object.keys(c).length&&(this._user=c),u&&(this._level=u),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),f&&(this._conversationId=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Ds(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Os(),sampleRand:sn()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Mc;if(r<=0)return this;const s={timestamp:Nt(),...t,message:t.message?cr(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:dr(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Lt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||se();if(!this._client)return w&&S.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||se();if(!this._client)return w&&S.warn("No client configured on scope - will not capture message!"),s;const i=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||n?.event_id||se();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(w&&S.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
vendor: 15,983 bytes, lines 5-7
5h(t=>{t(this)}),this._notifyingListeners=!1)}}function xc(){return it("defaultCurrentScope",()=>new _e)}function Oc(){return it("defaultIsolationScope",()=>new _e)}class Dc{constructor(t,n){let r;t?r=t:r=new _e;let s;n?s=n:s=new _e,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return xt(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Ze(){const e=Ct(),t=Sn(e);return t.stack=t.stack||new Dc(xc(),Oc())}function Ac(e){return Ze().withScope(e)}function Nc(e,t){const n=Ze();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function As(e){return Ze().withScope(()=>e(Ze().getIsolationScope()))}function Lc(){return{withIsolationScope:As,withScope:Ac,withSetScope:Nc,withSetIsolationScope:(e,t)=>As(t),getCurrentScope:()=>Ze().getScope(),getIsolationScope:()=>Ze().getIsolationScope()}}function wn(e){const t=Sn(e);return t.acs?t.acs:Lc()}function ie(){const e=Ct();return wn(e).getCurrentScope()}function ae(){const e=Ct();return wn(e).getIsolationScope()}function Pc(){return it("globalScope",()=>new _e)}function Hr(...e){const t=Ct(),n=wn(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function j(){return ie().getClient()}function Fc(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,i={trace_id:n,span_id:s||ro()};return r&&(i.parent_span_id=r),i}const so="sentry.source",Bc="sentry.sample_rate",Uc="sentry.previous_trace_sample_rate",$c="sentry.op",Hc="sentry.origin",io="sentry.profile_id",oo="sentry.exclusive_time",Wc="gen_ai.conversation.id",zc=0,jc=1,qc="_sentryScope",Gc="_sentryIsolationScope";function Vc(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function ao(e){const t=e;return{scope:t[qc],isolationScope:Vc(t[Gc])}}const Yc="sentry-",Kc=/^sentry-/;function Xc(e){const t=Jc(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(Kc)){const o=s.slice(Yc.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Jc(e){if(!(!e||!Se(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Ns(n);return Object.entries(r).forEach(([s,i])=>{t[s]=i}),t},{}):Ns(e)}function Ns(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}const Qc=/^o(\d+)\./,Zc=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function eu(e){return e==="http"||e==="https"}function at(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:c,publicKey:a}=e;return`${c}://${a}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function tu(e){const t=Zc.exec(e);if(!t){Fe(()=>{});return}const[n,r,s="",i="",o="",c=""]=t.slice(1);let a="",u=c;const l=u.split("/");if(l.length>1&&(a=l.slice(0,-1).join("/"),u=l.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return co({host:i,pass:s,path:a,projectId:u,port:o,protocol:n,publicKey:r})}function co(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function nu(e){if(!w)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(S.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?eu(r)?t&&isNaN(parseInt(t,10))?(S.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(S.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(S.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function ru(e){return e.match(Qc)?.[1]}function su(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=ru(n)),r}function uo(e){const t=typeof e=="string"?tu(e):co(e);if(!(!t||!nu(t)))return t}function fr(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const lo=1;let Ls=!1;function iu(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:Et(e).parent_span_id,i=ao(e).scope,o=r?i?.getPropagationContext().propagationSpanId||ro():t;return{parent_span_id:s,span_id:o,trace_id:n}}function ou(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:t,trace_id:n,sampled:r===lo,attributes:i,...s}))}function Ps(e){return typeof e=="number"?Fs(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Fs(e.getTime()):Ee()}function Fs(e){return e>9999999999?e/1e3:e}function Et(e){if(cu(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(au(e)){const{attributes:r,startTime:s,name:i,endTime:o,status:c,links:a}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:u,start_timestamp:Ps(s),timestamp:Ps(o)||void 0,status:lu(c),op:r[$c],origin:r[Hc],links:ou(a)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function au(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function cu(e){return typeof e.getSpanJSON=="function"}function uu(e){const{traceFlags:t}=e.spanContext();return t===lo}function lu(e){if(!(!e||e.code===zc))return e.code===jc?"ok":e.message||"internal_error"}const du="_sentryRootSpan";function Wr(e){return e[du]||e}function fo(){const e=Ct(),t=wn(e);return t.getActiveSpan?t.getActiveSpan():dr(ie())}function Bs(){Ls||(Fe(()=>{}),Ls=!0)}function fu(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=j()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Us(e){S.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function $s(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(hu(n)){if(Jt(e.description,n))return w&&Us(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Jt(e.description,n.name):!0,s=n.op?e.op&&Jt(e.op,n.op):!0;if(r&&s)return w&&Us(e),!0}return!1}function pu(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const s of e)s.parent_span_id===r&&(s.parent_span_id=n)}function hu(e){return typeof e=="string"||e instanceof RegExp}const zr="production",mu="_frozenDsc";function po(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||zr,release:n.release,public_key:r,trace_id:e,org_id:su(t)};return t.emit("createDsc",s),s}function gu(e,t){const n=t.getPropagationContext();return n.dsc||po(n.traceId,e)}function ho(e){const t=j();if(!t)return{};const n=Wr(e),r=Et(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s[Bc]??s[Uc];function c(h){return(typeof o=="number"||typeof o=="string")&&(h.sample_rate=`${o}`),h}const a=n[mu];if(a)return c(a);const u=i?.get("sentry.dsc"),l=u&&Xc(u);if(l)return c(l);const d=po(e.spanContext().traceId,t),f=s[so],p=r.description;return f!=="url"&&p&&(d.transaction=p),fu()&&(d.sampled=String(uu(n)),d.sample_rand=i?.get("sentry.sample_rand")??ao(n).scope?.getPropagationContext().sampleRand.toString()),c(d),t.emit("createDsc",d,n),d}function fe(e,t=100,n=1/0){try{return pr("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function mo(e,t=3,n=100*1024){const r=fe(e,t);return Eu(r)>n?mo(e,t-1,n):r}function pr(e,t,n=1/0,r=1/0,s=bu()){const[i,o]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const c=_u(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const a=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(a===0)return c.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return pr("",p,a-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const f=eo(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=r){l[p]="[MaxProperties ~]";break}const h=f[p];l[p]=pr(p,h,a-1,r,s),d++}return o(t),l}function _u(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Ji(t))return Yi(t);if(mc(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${ve(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=yu(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function yu(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function Su(e){return~-encodeURI(e).split(/%..|./).length}function Eu(e){return Su(JSON.stringify(e))}function bu(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function $e(e,t=[]){return[e,t]}function vu(e,t){const[n,r]=e;return[n,[...r,t]]}function hr(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Iu(e,t){return hr(e,(n,r)=>t.includes(r))}function mr(e){const t=Sn(A);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function wu(e){const[t,n]=e;let r=JSON.stringify(t);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[mr(r),i]:r.push(typeof i=="string"?mr(i):i)}for(const i of n){const[o,c]=i;if(s(`
6${JSON.stringify(o)}
7`),typeof c=="string"||c instanceof Uint8Array)s(c);else{let a;try{a=JSON.stringify(c)}catch{a=JSON.stringify(fe(c))}s(a)}}return typeof r=="string"?r:ku(r)}function ku(e){const t=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Tu(e){const t=typeof e.data=="string"?mr(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Ru={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function Hs(e){return Ru[e]}function jr(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function go(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:at(r)},...s&&{trace:s}}}function Cu(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Mu(e,t,n,r){const s=jr(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:at(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return $e(i,[o])}function xu(e,t,n,r){const s=jr(n),i=e.type&&e.type!=="replay_event"?e.type:"event";Cu(e,n?.sdk);const o=go(e,s,r,t);return delete e.sdkProcessingMetadata,$e(o,[[{type:i},e]])}const Yn=0,Ws=1,zs=2;function Pt(e){return new bt(t=>{t(e)})}function qr(e){return new bt((t,n)=>{n(e)})}class bt{constructor(t){this._state=Yn,this._handlers=[],this._runExecutor(t)}then(t,n){return new bt((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new bt((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Yn)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ws&&n[1](this._value),this._state===zs&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,o)=>{if(this._state===Yn){if(xt(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Ws,i)},s=i=>{n(zs,i)};try{t(r,s)}catch(i){s(i)}}}function Ou(e,t,n,r=0){try{const s=gr(t,n,e,r);return xt(s)?s:Pt(s)}catch(s){return qr(s)}}function gr(e,t,n,r){const s=n[r];if(!e||!s)return e;const i=s({...e},t);return w&&i===null&&S.log(`Event processor "${s.id||"?"}" dropped event`),xt(i)?i.then(o=>gr(o,t,n,r+1)):gr(i,t,n,r+1)}let De,js,qs,Ie;function Du(e){const t=A._sentryDebugIds,n=A._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(Ie&&r.length===js&&s.length===qs)return Ie;js=r.length,qs=s.length,Ie={},De||(De={});const i=(o,c)=>{for(const a of o){const u=c[a],l=De?.[a];if(l&&Ie&&u)Ie[l[0]]=u,De&&(De[a]=[l[0],u]);else if(u){const d=e(a);for(let f=d.length-1;f>=0;f--){const h=d[f]?.filename;if(h&&Ie&&De){Ie[h]=u,De[a]=[h,u];break}}}}};return t&&i(r,t),n&&i(s,n),Ie}function Au(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;Nu(e,t),r&&Fu(e,r),Bu(e,n),Lu(e,s),Pu(e,i)}function Gs(e,t){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:c,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:f,propagationContext:p,transactionName:h,span:m}=t;ft(e,"extra",n),ft(e,"tags",r),ft(e,"attributes",s),ft(e,"user",i),ft(e,"contexts",o),e.sdkProcessingMetadata=Lt(e.sdkProcessingMetadata,a,2),c&&(e.level=c),h&&(e.transactionName=h),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function ft(e,t,n){e[t]=Lt(e[t],n,1)}function _o(e,t){const n=Pc().getScopeData();return e&&Gs(n,e.getScopeData()),t&&Gs(n,t.getScopeData()),n}function Nu(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:c}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),o&&(e.level=o),c&&e.type!=="transaction"&&(e.transaction=c)}function Lu(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Pu(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Fu(e,t){e.contexts={trace:iu(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ho(t),...e.sdkProcessingMetadata};const n=Wr(t),r=Et(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Bu(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function yo(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=e,a={...t,event_id:t.event_id||n.event_id||se(),timestamp:t.timestamp||Nt()},u=n.integrations||e.integrations.map(y=>y.name);Uu(a,e),Wu(a,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&$u(a,e.stackParser);const l=ju(r,n.captureContext);n.mechanism&&Je(a,n.mechanism);const d=s?s.getEventProcessors():[],f=_o(i,l),p=[...n.attachments||[],...f.attachments];
7p.length&&(n.attachments=p),Au(a,f);const h=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Pt(a):Ou(h,a,n)).then(y=>(y&&Hu(y),typeof o=="number"&&o>0?zu(y,o,c):y))}function Uu(e,t){const{environment:n,release:r,dist:s,maxValueLength:i}=t;e.environment=e.environment||n||zr,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const o=e.request;o?.url&&i&&(o.url=cr(o.url,i)),i&&e.exception?.values?.forEach(c=>{c.value&&(c.value=cr(c.value,i))})}function $u(e,t){const n=Du(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function Hu(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Wu(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function zu(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:fe(s.data,t,n)}}))},...e.user&&{user:fe(e.user,t,n)},...e.contexts&&{contexts:fe(e.contexts,t,n)},...e.extra&&{extra:fe(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=fe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:fe(s.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=fe(e.contexts.flags,3,n)),r}function ju(e,t){if(!t)return e;const n=e?e.clone():new _e;return n.update(t),n}function qu(e){if(e)return Gu(e)?{captureContext:e}:Yu(e)?{captureContext:e}:e}function Gu(e){return e instanceof _e||typeof e=="function"}const Vu=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Yu(e){return Object.keys(e).some(t=>Vu.includes(t))}function Gr(e,t){return ie().captureException(e,qu(t))}function So(e,t){return ie().captureEvent(e,t)}function Eo(e,t){ae().setContext(e,t)}function d_(e){ae().setUser(e)}function Ku(){return ae().lastEventId()}function Xu(e){ae().addEventProcessor(e)}function Vs(e){const t=ae(),{user:n}=_o(t,ie()),{userAgent:r}=A.navigator||{},s=Tc({user:n,...r&&{userAgent:r},...e}),i=t.getSession();return i?.status==="ok"&&Qe(i,{status:"exited"}),bo(),t.setSession(s),s}function bo(){const e=ae(),n=ie().getSession()||e.getSession();n&&Rc(n),vo(),e.setSession()}function vo(){const e=ae(),t=j(),n=e.getSession();n&&t&&t.captureSession(n)}function Kn(e=!1){if(e){bo();return}vo()}const Ju="7";function Io(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Qu(e){return`${Io(e)}${e.projectId}/envelope/`}function Zu(e,t){const n={sentry_version:Ju};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function el(e,t,n){return t||`${Qu(e)}?${Zu(e,n)}`}function tl(e,t){const n=uo(e);if(!n)return"";const r=`${Io(n)}embed/error-page/`;let s=`dsn=${at(n)}`;for(const i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const o=t.user;if(!o)continue;o.name&&(s+=`&name=${encodeURIComponent(o.name)}`),o.email&&(s+=`&email=${encodeURIComponent(o.email)}`)}else s+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${s}`}const Ys=[];function nl(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function rl(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return nl(r)}function sl(e,t){const n={};return t.forEach(r=>{r&&wo(e,r,n)}),n}function Ks(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function wo(e,t,n){if(n[t.name]){w&&S.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Ys.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),Ys.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((i,o)=>r(i,o,e),{id:t.name});e.addEventProcessor(s)}w&&S.log(`Integration installed: ${t.name}`)}function il(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function ol(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=at(r)),$e(s,[il(e)])}function _r(e,t){const n=t??al(e)??[];if(n.length===0)return;const r=e.getOptions(),s=ol(n,r._metadata,r.tunnel,e.getDsn());ko().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function al(e){return ko().get(e)}function ko(){return it("clientToLogBufferMap",()=>new WeakMap)}function cl(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function ul(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=at(r)),$e(s,[cl(e)])}function To(e,t){const n=t??ll(e)??[];if(n.length===0)return;const r=e.getOptions(),s=ul(n,r._metadata,r.tunnel,e.getDsn());Ro().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function ll(e){return Ro().get(e)}function Ro(){return it("clientToMetricBufferMap",()=>new WeakMap)}function Co(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const Vr=Symbol.for("SentryBufferFullError");function Yr(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function s(o){if(!n())return qr(Vr);const c=o();return t.add(c),c.then(()=>r(c),()=>r(c)),c}function i(o){if(!t.size)return Pt(!0);const c=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return c;const a=[c,new Promise(u=>Co(setTimeout(()=>u(!1),o)))];return Promise.race(a)}return{get $(){return Array.from(t)},add:s,drain:i}}const dl=60*1e3;
7function fl(e,t=Dt()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?dl:r-t}function pl(e,t){return e[t]||e.all||0}function Mo(e,t,n=Dt()){return pl(e,t)>n}function xo(e,{statusCode:t,headers:n},r=Dt()){const s={...e},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const c of i.trim().split(",")){const[a,u,,,l]=c.split(":",5),d=parseInt(a,10),f=(isNaN(d)?60:d)*1e3;if(!u)s.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else o?s.all=r+fl(o,r):t===429&&(s.all=r+60*1e3);return s}const Oo=64;function hl(e,t,n=Yr(e.bufferSize||Oo)){let r={};const s=o=>n.drain(o);function i(o){const c=[];if(hr(o,(d,f)=>{const p=Hs(f);Mo(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):c.push(d)}),c.length===0)return Promise.resolve({});const a=$e(o[0],c),u=d=>{if(Iu(a,["client_report"])){w&&S.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}hr(a,(f,p)=>{e.recordDroppedEvent(d,Hs(p))})},l=()=>t({body:wu(a)}).then(d=>d.statusCode===413?(w&&S.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),d):(w&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&S.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=xo(r,d),d),d=>{throw u("network_error"),w&&S.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===Vr)return w&&S.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:i,flush:s}}function ml(e,t,n){const r=[{type:"client_report"},{timestamp:Nt(),discarded_events:e}];return $e(t?{dsn:t}:{},[r])}function Do(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function gl(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:c}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o?.[io],exclusive_time:o?.[oo],measurements:e.measurements,is_segment:!0}}function _l(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[io]:e.profile_id},...e.exclusive_time&&{[oo]:e.exclusive_time}}}},measurements:e.measurements}}const Xs="Not capturing exception because it's already been captured.",Js="Discarded session because of missing or non-string release",Ao=Symbol.for("SentryInternalError"),No=Symbol.for("SentryDoNotSendEventError"),yl=5e3;function Qt(e){return{message:e,[Ao]:!0}}function Xn(e){return{message:e,[No]:!0}}function Qs(e){return!!e&&typeof e=="object"&&Ao in e}function Zs(e){return!!e&&typeof e=="object"&&No in e}function ei(e,t,n,r,s){let i=0,o,c=!1;e.on(n,()=>{i=0,clearTimeout(o),c=!1}),e.on(t,a=>{i+=r(a),i>=8e5?s(e):c||(c=!0,o=Co(setTimeout(()=>{s(e)},yl)))}),e.on("flush",()=>{s(e)})}class Sl{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Yr(t.transportOptions?.bufferSize??Oo),t.dsn?this._dsn=uo(t.dsn):w&&S.warn("No DSN provided, client will not send events."),this._dsn){const r=el(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&ei(this,"afterCaptureLog","flushLogs",Il,_r),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&ei(this,"afterCaptureMetric","flushMetrics",vl,To)}captureException(t,n,r){const s=se();if(Ms(t))return w&&S.log(Xs),s;const i={event_id:s,...n};return this._process(()=>this.eventFromException(t,i).then(o=>this._captureEvent(o,i,r)).then(o=>o),"error"),i.event_id}captureMessage(t,n,r,s){const i={event_id:se(),...r},o=Br(t)?t:String(t),c=En(t),a=c?this.eventFromMessage(o,n,i):this.eventFromException(t,i);return this._process(()=>a.then(u=>this._captureEvent(u,i,s)),c?"unknown":"error"),i.event_id}captureEvent(t,n,r){const s=se();if(n?.originalException&&Ms(n.originalException))return w&&S.log(Xs),s;const i={event_id:s,...n},o=t.sdkProcessingMetadata||{},c=o.capturedSpanScope,a=o.capturedSpanIsolationScope,u=ti(t.type);return this._process(()=>this._captureEvent(t,i,c||r,a),u),i.event_id}captureSession(t){this.sendSession(t),Qe(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;
7this.emit("flush");const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){_r(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];wo(this,t,this._integrations),n||Ks(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=xu(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=vu(r,Tu(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=zr}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){w&&S.warn(Js);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){w&&S.warn(Js);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=Mu(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;w&&S.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,s=(...i)=>n(...i);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return w&&S.error("Error while sending envelope:",n),{}}return w&&S.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=sl(this,t),Ks(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const i=n.exception?.values;if(i){s=!0,r=!1;for(const a of i)if(a.mechanism?.handled===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(Qe(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o?.length&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),yo(i,t,n,r,this,s).then(c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts={trace:Fc(r),...c.contexts};const a=gu(this,r);return c.sdkProcessingMetadata={dynamicSamplingContext:a,...c.sdkProcessingMetadata},c})}_captureEvent(t,n={},r=ie(),s=ae()){return w&&yr(t)&&S.log(`Captured error event \`${Do(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(i=>i.event_id,i=>{w&&(Zs(i)?S.log(i.message):Qs(i)?S.warn(i.message):S.warn(i))})}_processEvent(t,n,r,s){const i=this.getOptions(),{sampleRate:o}=i,c=Lo(t),a=yr(t),l=`before send for type \`${t.type||"error"}\``,d=typeof o>"u"?void 0:fr(o);if(a&&typeof d=="number"&&sn()>d)return this.recordDroppedEvent("sample_rate","error"),qr(Xn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const f=ti(t.type);return this._prepareEvent(t,n,r,s).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f),Xn("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return p;const m=bl(this,i,p,n);return El(m,l)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",f),c){const y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw Xn(`${l} returned \`null\`, will not send event.`)}const h=r.getSession()||s.getSession();if(a&&h&&this._updateSessionFromEvent(h,p),c){const E=p.sdkProcessingMetadata?.spanCountBeforeProcessing||0,y=p.spans?p.spans.length:0,k=E-y;k>0&&this.recordDroppedEvent("before_send","span",k)}const m=p.transaction_info;if(c&&m&&p.transaction!==t.transaction){const E="custom";p.transaction_info={...m,source:E}}return this.sendEvent(p,n),p}).then(null,p=>{throw Zs(p)||Qs(p)?p:(this.captureException(p,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:p}),Qt(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
8Reason: ${p}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Vr&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,i]=n.split(":");return{reason:s,category:i,quantity:r}})}_flushOutcomes(){w&&S.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){w&&S.log("No outcomes to send");return}if(!this._dsn){w&&S.log("No dsn provided, will not send outcomes");return}w&&S.log("Sending outcomes:",t);const n=ml(t,this._options.tunnel&&at(this._dsn));this.sendEnvelope(n)}}function ti(e){return e==="replay_event"?"replay":e||"error"}function El(e,t){const n=`${t} must return \`null\` or a valid event.`;if(xt(e))return e.then(r=>{if(!St(r)&&r!==null)throw Qt(n);return r},r=>{throw Qt(`${t} rejected with ${r}`)});if(!St(e)&&e!==null)throw Qt(n);return e}function bl(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o,ignoreSpans:c}=t;let a=n;if(yr(a)&&s)return s(a,r);if(Lo(a)){if(o||c){const u=gl(a);if(c?.length&&$s(u,c))return null;if(o){const l=o(u);l?a=Lt(n,_l(l)):Bs()}if(a.spans){const l=[],d=a.spans;for(const p of d){if(c?.length&&$s(p,c)){pu(d,p);continue}if(o){const h=o(p);h?l.push(h):(Bs(),l.push(p))}else l.push(p)}const f=a.spans.length-l.length;f&&e.recordDroppedEvent("before_send","span",f),a.spans=l}}if(i){if(a.spans){const u=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return i(a,r)}}return a}function yr(e){return e.type===void 0}function Lo(e){return e.type==="transaction"}function vl(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Po(e.attributes)}function Il(e){let t=0;return e.message&&(t+=e.message.length*2),t+Po(e.attributes)}function Po(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*ni(n[0]):En(n)?t+=ni(n):t+=100}),t}function ni(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function wl(e){return Mt(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function ri(e){return wl(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function kl(e,t){t.debug===!0&&(w?S.enable():Fe(()=>{})),ie().update(t.initialScope);const r=new e(t);return Tl(r),r.init(),r}function Tl(e){ie().setClient(e)}const Rl="thismessage:/";function Cl(e){return"isRelative"in e}function Ml(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?Rl:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function Jn(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 xl(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),i=e.indexOf(",");let o="";if(t&&i!==-1){const c=e.slice(i+1);o=c.length>10?`${c.slice(0,10)}... [truncated]`:c}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return e}function Ol(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return Al(e,n)||Dl(e,r)}function Dl(e,t){return t?si(e)===si(t):!1}function Al(e,t){const n=Ml(e);return!n||Cl(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function si(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Nl(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function Fo(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(i=>({name:`${r}:@sentry/${i}`,version:Le})),s.version=Le)}function Ll(e,t,n){let r,s,i;const o=n?.maxWait?Math.max(n.maxWait,t):0,c=n?.setTimeoutImpl||setTimeout;function a(){return u(),r=e(),r}function u(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function l(){return s!==void 0||i!==void 0?a():r}function d(){return s&&clearTimeout(s),s=c(a,t),o&&i===void 0&&(i=c(a,o)),r}return d.cancel=u,d.flush=l,d}const Pl=100;function Me(e,t){const n=j(),r=ae();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=Pl}=n.getOptions();if(i<=0)return;const c={timestamp:Nt(),...e},a=s?Fe(()=>s(c,t)):c;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i)
vendor: 10,505 bytes, lines 8-15
8)}let ii;const Fl="FunctionToString",oi=new WeakMap,Bl=()=>({name:Fl,setupOnce(){ii=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=$r(this),n=oi.has(j())&&t!==void 0?t:this;return ii.apply(n,e)}}catch{}},setup(e){oi.set(e,!0)}}),Ul=Bl,$l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (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$/],Hl="EventFilters",Wl=(e={})=>{let t;return{name:Hl,setup(n){const r=n.getOptions();t=ai(e,r)},processEvent(n,r,s){if(!t){const i=s.getOptions();t=ai(e,i)}return jl(n,t)?null:n}}},zl=(e={})=>({...Wl(e),name:"InboundFilters"});function ai(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:$l],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function jl(e,t){if(e.type){if(e.type==="transaction"&&Gl(e,t.ignoreTransactions))return w&&S.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
9Event: ${Ae(e)}`),!0}else{if(ql(e,t.ignoreErrors))return w&&S.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
10Event: ${Ae(e)}`),!0;if(Xl(e))return w&&S.warn(`Event dropped due to not having an error message, error type or stacktrace.
11Event: ${Ae(e)}`),!0;if(Vl(e,t.denyUrls))return w&&S.warn(`Event dropped due to being matched by \`denyUrls\` option.
12Event: ${Ae(e)}.
13Url: ${on(e)}`),!0;if(!Yl(e,t.allowUrls))return w&&S.warn(`Event dropped due to not being matched by \`allowUrls\` option.
14Event: ${Ae(e)}.
15Url: ${on(e)}`),!0}return!1}function ql(e,t){return t?.length?Do(e).some(n=>At(n,t)):!1}function Gl(e,t){if(!t?.length)return!1;const n=e.transaction;return n?At(n,t):!1}function Vl(e,t){if(!t?.length)return!1;const n=on(e);return n?At(n,t):!1}function Yl(e,t){if(!t?.length)return!0;const n=on(e);return n?At(n,t):!0}function Kl(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 on(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?Kl(n):null}catch{return w&&S.error(`Cannot extract url for event ${Ae(e)}`),null}}function Xl(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Jl(e,t,n,r,s,i){if(!s.exception?.values||!i||!Re(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Sr(e,t,r,i.originalException,n,s.exception.values,o,0))}function Sr(e,t,n,r,s,i,o,c){if(i.length>=n+1)return i;let a=[...i];if(Re(r[s],Error)){ci(o,c,r);const u=e(t,r[s]),l=a.length;ui(u,s,l,c),a=Sr(e,t,n,r[s],s,[u,...a],u,l)}return Bo(r)&&r.errors.forEach((u,l)=>{if(Re(u,Error)){ci(o,c,r);const d=e(t,u),f=a.length;ui(d,`errors[${l}]`,f,c),a=Sr(e,t,n,u,s,[d,...a],d,f)}}),a}function Bo(e){return Array.isArray(e.errors)}function ci(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...Bo(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function ui(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Ql(e){const t="console";Be(t,e),Ue(t,Zl)}function Zl(){"console"in A&&Za.forEach(function(e){e in A.console&&ne(A.console,e,function(t){return rn[e]=t,function(...n){pe("console",{args:n,level:e}),rn[e]?.apply(A.console,n)}})})}function Uo(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const ed="Dedupe",td=()=>{let e;return{name:ed,processEvent(t){if(t.type)return t;try{if(rd(t,e))return w&&S.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},nd=td;function rd(e,t){return t?!!(sd(e,t)||id(e,t)):!1}function sd(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Ho(e,t)||!$o(e,t))}function id(e,t){const n=li(t),r=li(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Ho(e,t)||!$o(e,t))}function $o(e,t){let n=Is(e),r=Is(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function Ho(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 li(e){return e.exception?.values?.[0]}const od="ConversationId",ad=()=>({name:od,setup(e){e.on("spanStart",t=>{const n=ie().getScopeData(),r=ae().getScopeData(),s=n.conversationId||r.conversationId;s&&t.setAttribute(Wc,s)})}}),cd=ad;function Wo(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const vt=A;function ud(){return"history"in vt&&!!vt.history}function ld(){if(!("fetch"in vt))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Er(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function dd(){if(typeof EdgeRuntime=="string")return!0;if(!ld())return!1;if(Er(vt.fetch))return!0;let e=!1;const t=vt.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Er(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){w&&S.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function fd(e,t){const n="fetch";Be(n,e),Ue(n,()=>pd(void 0,t))}function pd(e,t=!1){t&&!dd()||ne(A,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=hd(r),c={args:r,fetchData:{method:i,url:o},startTimestamp:Ee()*1e3,virtualError:s,headers:md(r)};return pe("fetch",{...c}),n.apply(A,r).then(async a=>(pe("fetch",{...c,endTimestamp:Ee()*1e3,response:a}),a),a=>{pe("fetch",{...c,endTimestamp:Ee()*1e3,error:a}),Mt(a)&&a.stack===void 0&&(a.stack=s.stack,Ce(a,"framesToPop",1));const l=j()?.getOptions().enhanceFetchErrorMessages??"always";if(l!==!1&&a instanceof TypeError&&(a.message==="Failed to fetch"||a.message==="Load failed"||a.message==="NetworkError when attempting to fetch resource."))try{const p=new URL(c.fetchData.url).host;l==="always"?a.message=`${a.message} (${p})`:Ce(a,"__sentry_fetch_url_host__",p)}catch{}throw a})}})}function Zt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function di(e){return typeof e=="string"?e:e?Zt(e,"url")?e.url:e.toString?e.toString():"":""}function hd(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:di(n),method:Zt(r,"method")?String(r.method).toUpperCase():Qi(n)&&Zt(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:di(t),method:Zt(t,"method")?String(t.method).toUpperCase():"GET"}}function md(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Qi(t))return new Headers(t.headers)}catch{}}function gd(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function _d(){return"npm"}function yd(){return!gd()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function fi(){return typeof window<"u"&&(!yd()||Sd())}function Sd(){return A.process?.type==="renderer"}const z=A;let br=0;function zo(){return br>0}function Ed(){br++,setTimeout(()=>{br--})}function et(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if($r(e))return e}catch{return e}const r=function(...s){try{const i=s.map(o=>et(o,t));return e.apply(this,i)}catch(i){throw Ed(),Hr(o=>{o.addEventProcessor(c=>(t.mechanism&&(ur(c,void 0),Je(c,t.mechanism)),c.extra={...c.extra,arguments:s},c)),Gr(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Zi(r,e),Ce(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function bd(){const e=In(),{referrer:t}=z.document||{},{userAgent:n}=z.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function Kr(e,t){const n=Xr(e,t),r={type:Td(t),value:Rd(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function vd(e,t,n,r){const i=j()?.getOptions().normalizeDepth,o=Dd(t),c={__serialized__:mo(t,i)};if(o)return{exception:{values:[Kr(e,o)]},extra:c};const a={exception:{values:[{type:bn(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:xd(t,{isUnhandledRejection:r})}]},extra:c};if(n){const u=Xr(e,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function Qn(e,t){return{exception:{values:[Kr(e,t)]}}}function Xr(e,t){const n=t.stacktrace||t.stack||"",r=wd(t),s=kd(t);try{return e(n,r,s)}catch{}return[]}const Id=/Minified React error #\d+;/i;function wd(e){return e&&Id.test(e.message)?1:0}function kd(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function jo(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Td(e){const t=e?.name;return!t&&jo(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Rd(e){const t=e?.message;return jo(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?ri(t.error):ri(e):"No error message"}function Cd(e,t,n,r){const s=n?.syntheticException||void 0,i=Jr(e,t,s,r);return Je(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),Pt(i)}function Md(e,t,n="info",r,s){const i=r?.syntheticException||void 0,o=vr(e,t,i,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),Pt(o)}
15function Jr(e,t,n,r,s){let i;if(Xi(t)&&t.error)return Qn(e,t.error);if(ks(t)||fc(t)){const o=t;if("stack"in t)i=Qn(e,t);else{const c=o.name||(ks(o)?"DOMError":"DOMException"),a=o.message?`${c}: ${o.message}`:c;i=vr(e,a,n,r),ur(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return Mt(t)?Qn(e,t):St(t)||bn(t)?(i=vd(e,t,n,s),Je(i,{synthetic:!0}),i):(i=vr(e,t,n,r),ur(i,`${t}`),Je(i,{synthetic:!0}),i)}function vr(e,t,n,r){const s={};if(r&&n){const i=Xr(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]}),Je(s,{synthetic:!0})}if(Br(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function xd(e,{isUnhandledRejection:t}){const n=Sc(e),r=t?"promise rejection":"exception";return Xi(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:bn(e)?`Event \`${Od(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Od(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Dd(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class Ad extends Sl{constructor(t){const n=Nd(t),r=z.SENTRY_SDK_SOURCE||_d();Fo(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:i,enableLogs:o,_experiments:c,enableMetrics:a}=this._options,u=a??c?.enableMetrics??!0;z.document&&(i||o||u)&&z.document.addEventListener("visibilitychange",()=>{z.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),o&&_r(this),u&&To(this))}),s&&this.on("beforeSendSession",Nl)}eventFromException(t,n){return Cd(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Md(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function Nd(e){return{release:"jmweb@744c25cda",sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const It=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,L=A,Ld=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",kn=(e,t,n,r)=>{let s,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(s??0),(i||s===void 0)&&(s=t.value,t.delta=i,t.rating=Ld(t.value,n),e(t)))}},qo=(e=!0)=>{const t=L.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Tn=()=>qo()?.activationStart??0;function Ke(e,t,n){L.document&&L.addEventListener(e,t,n)}function an(e,t,n){L.document&&L.removeEventListener(e,t,n)}let Xe=-1;const Go=new Set,Pd=()=>L.document?.visibilityState==="hidden"&&!L.document?.prerendering?0:1/0,en=e=>{if(Fd(e)&&Xe>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of Go)t();isFinite(Xe)||(Xe=e.type==="visibilitychange"?e.timeStamp:0,an("prerenderingchange",en,!0))}},Rn=()=>{if(L.document&&Xe<0){const e=Tn();Xe=(L.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??Pd(),Ke("visibilitychange",en,!0),Ke("pagehide",en,!0),Ke("prerenderingchange",en,!0)}return{get firstHiddenTime(){return Xe},onHidden(e){Go.add(e)}}};function Fd(e){return e.type==="pagehide"||L.document?.visibilityState==="hidden"}const Bd=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Cn=(e,t=-1)=>{const n=qo();let r="navigate";return n&&(L.document?.prerendering||Tn()>0?r="prerender":L.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Bd(),navigationType:r}},Zn=new WeakMap;function Qr(e,t){try{return Zn.get(e)||Zn.set(e,new t),Zn.get(e)}catch{return new t}}class cn{constructor(){cn.prototype.__init.call(this),cn.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const ct=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Zr=e=>{let t=!1;return()=>{t||(e(),t=!0)}},es=e=>{L.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Ud=[1800,3e3],$d=(e,t={})=>{es(()=>{const n=Rn(),r=Cn("FCP");let s;const o=ct("paint",c=>{for(const a of c)a.name==="first-contentful-paint"&&(o.disconnect(),a.startTime<n.firstHiddenTime&&(r.value=Math.max(a.startTime-Tn(),0),r.entries.push(a),s(!0)))});o&&(s=kn(e,r,Ud,t.reportAllChanges))})},Hd=[.1,.25],Wd=(e,t={})=>{$d(Zr(()=>{const n=Cn("CLS",0);let r;const s=Rn(),i=Qr(t,cn),o=a=>{for(const u of a)i._processEntry(u);i._sessionValue>
15n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},c=ct("layout-shift",o);c&&(r=kn(e,n,Hd,t.reportAllChanges),s.onHidden(()=>{o(c.takeRecords()),r(!0)}),L?.setTimeout?.(r))}))};let Vo=0,er=1/0,Wt=0;const zd=e=>{e.forEach(t=>{t.interactionId&&(er=Math.min(er,t.interactionId),Wt=Math.max(Wt,t.interactionId),Vo=Wt?(Wt-er)/7+1:0)})};let Ir;const Yo=()=>Ir?Vo:performance.interactionCount||0,jd=()=>{"interactionCount"in performance||Ir||(Ir=ct("event",zd,{type:"event",buffered:!0,durationThreshold:0}))},tr=10;let Ko=0;const qd=()=>Yo()-Ko;class un{constructor(){un.prototype.__init.call(this),un.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Ko=Yo(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(qd()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<tr||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,i)=>i._latency-s._latency),this._longestInteractionList.length>tr){const s=this._longestInteractionList.splice(tr);for(const i of s)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(r)}}}const Xo=e=>{const t=L.requestIdleCallback||L.setTimeout;L.document?.visibilityState==="hidden"?e():(e=Zr(e),Ke("visibilitychange",e,{once:!0,capture:!0}),Ke("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),an("visibilitychange",e,{capture:!0}),an("pagehide",e,{capture:!0})}))},Gd=[200,500],Vd=40,Yd=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=Rn();es(()=>{jd();const r=Cn("INP");let s;const i=Qr(t,un),o=a=>{Xo(()=>{for(const l of a)i._processEntry(l);const u=i._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,s())})},c=ct("event",o,{durationThreshold:t.durationThreshold??Vd});s=kn(e,r,Gd,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(c.takeRecords()),s(!0)}))})};class Kd{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const Xd=[2500,4e3],Jd=(e,t={})=>{es(()=>{const n=Rn(),r=Cn("LCP");let s;const i=Qr(t,Kd),o=a=>{t.reportAllChanges||(a=a.slice(-1));for(const u of a)i._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Tn(),0),r.entries=[u],s())},c=ct("largest-contentful-paint",o);if(c){s=kn(e,r,Xd,t.reportAllChanges);const a=Zr(()=>{o(c.takeRecords()),c.disconnect(),s(!0)}),u=l=>{l.isTrusted&&(Xo(a),an(l.type,u,{capture:!0}))};for(const l of["keydown","click","visibilitychange"])Ke(l,u,{capture:!0})}})},mt={},ln={};let Jo,Qo,Zo;function Qd(e,t=!1){return ts("cls",e,nf,Jo,t)}function Zd(e,t=!1){return ts("lcp",e,rf,Qo,t)}function ef(e){return ts("inp",e,sf,Zo)}function tf(e,t){return ea(e,t),ln[e]||(of(e),ln[e]=!0),ta(e,t)}function Mn(e,t){const n=mt[e];
15if(n?.length)for(const r of n)try{r(t)}catch(s){It&&S.error(`Error while triggering instrumentation handler.
16Type: ${e}
17Name: ${ve(r)}
18Error:`,s)}}function nf(){return Wd(e=>{Mn("cls",{metric:e}),Jo=e},{reportAllChanges:!0})}function rf(){return Jd(e=>{Mn("lcp",{metric:e}),Qo=e},{reportAllChanges:!0})}function sf(){return Yd(e=>{Mn("inp",{metric:e}),Zo=e})}function ts(e,t,n,r,s=!1){ea(e,t);let i;return ln[e]||(i=n(),ln[e]=!0),r&&t({metric:r}),ta(e,t,s?i:void 0)}function of(e){const t={};e==="event"&&(t.durationThreshold=0),ct(e,n=>{Mn(e,{entries:n})},t)}function ea(e,t){mt[e]=mt[e]||[],mt[e].push(t)}function ta(e,t,n){return()=>{n&&n();const r=mt[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}const af=1e3;let pi,wr,kr;function na(e){const t="dom";Be(t,e),Ue(t,cf)}function cf(){if(!L.document)return;const e=pe.bind(null,"dom"),t=hi(e,!0);L.document.addEventListener("click",t,!1),L.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=L[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(ne(s,"addEventListener",function(i){return function(o,c,a){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=u[o]=u[o]||{refCount:0};if(!l.handler){const d=hi(e);l.handler=d,i.call(this,o,d,a)}l.refCount++}catch{}return i.call(this,o,c,a)}}),ne(s,"removeEventListener",function(i){return function(o,c,a){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},l=u[o];l&&(l.refCount--,l.refCount<=0&&(i.call(this,o,l.handler,a),l.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,c,a)}}))})}function uf(e){if(e.type!==wr)return!1;try{if(!e.target||e.target._sentryId!==kr)return!1}catch{}return!0}function lf(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function hi(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=df(n);if(lf(n.type,r))return;Ce(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ce(r,"_sentryId",se());
18const s=n.type==="keypress"?"input":n.type;uf(n)||(e({event:n,name:s,global:t}),wr=n.type,kr=r?r._sentryId:void 0),clearTimeout(pi),pi=L.setTimeout(()=>{kr=void 0,wr=void 0},af)}}function df(e){try{return e.target}catch{return null}}let zt;function ns(e){const t="history";Be(t,e),Ue(t,ff)}function ff(){if(L.addEventListener("popstate",()=>{const t=L.location.href,n=zt;if(zt=t,n===t)return;pe("history",{from:n,to:t})}),!ud())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=zt,i=pf(String(r));if(zt=i,s===i)return t.apply(this,n);pe("history",{from:s,to:i})}return t.apply(this,n)}}ne(L.history,"pushState",e),ne(L.history,"replaceState",e)}function pf(e){try{return new URL(e,L.location.origin).toString()}catch{return e}}const tn={};function ra(e){const t=tn[e];if(t)return t;let n=L[e];if(Er(n))return tn[e]=n.bind(L);const r=L.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(s)}catch(s){It&&S.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(tn[e]=n.bind(L))}function hf(e){tn[e]=void 0}function Ft(...e){return ra("setTimeout")(...e)}const je="__sentry_xhr_v3__";function mf(e){const t="xhr";Be(t,e),Ue(t,gf)}function gf(){if(!L.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,i=Ee()*1e3,o=Se(r[0])?r[0].toUpperCase():void 0,c=_f(r[1]);if(!o||!c)return t.apply(n,r);n[je]={method:o,url:c,request_headers:{}},o==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const a=()=>{const u=n[je];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const l={endTimestamp:Ee()*1e3,startTimestamp:i,xhr:n,virtualError:s};pe("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,l,d){return a(),u.apply(l,d)}}):n.addEventListener("readystatechange",a),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,l,d){const[f,p]=d,h=l[je];return h&&Se(f)&&Se(p)&&(h.request_headers[f.toLowerCase()]=p),u.apply(l,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[je];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const i={startTimestamp:Ee()*1e3,xhr:n};return pe("xhr",i),t.apply(n,r)}})}function _f(e){if(Se(e))return e;try{return e.toString()}catch{}}const yf=Symbol.for("sentry__originalRequestBody");function sa(e){return new URLSearchParams(e).toString()}function ia(e,t=S){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[sa(e)];if(!e)return[void 0]}catch(n){return It&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return It&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function oa(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][yf];return n!==void 0?n:void 0}}function Sf(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return It&&S.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
19`).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}const Ef=40;function bf(e,t=ra("fetch")){let n=0,r=0;async function s(i){const o=i.body.length;n+=o,r++;const c={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const a=await t(e.url,c);return{statusCode:a.status,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")}}}catch(a){throw hf("fetch"),a}finally{n-=o,r--}}return hl(e,s,Yr(e.bufferSize||Ef))}const tt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vf=30,If=50;function Tr(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?Pe:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const wf=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,kf=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tf=/\((\S*)(?::(\d+))(?::(\d+))\)/,Rf=/at (.+?) ?\(data:(.+?),/,Cf=e=>{const t=e.match(Rf);
19if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=wf.exec(e);if(n){const[,s,i,o]=n;return Tr(s,Pe,+i,+o)}const r=kf.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const c=Tf.exec(r[2]);c&&(r[2]=c[1],r[3]=c[2],r[4]=c[3])}const[i,o]=aa(r[1]||Pe,r[2]);return Tr(o,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Mf=[vf,Cf],xf=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Of=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Df=e=>{const t=xf.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=Of.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],s=t[1]||Pe;return[s,r]=aa(s,r),Tr(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Af=[If,Df],Nf=[Mf,Af],Lf=Vi(...Nf),aa=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Pe,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},jt=1024,Pf="Breadcrumbs",Ff=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Pf,setup(n){t.console&&Ql(Hf(n)),t.dom&&na($f(n,t.dom)),t.xhr&&mf(Wf(n)),t.fetch&&fd(zf(n)),t.history&&ns(jf(n)),t.sentry&&n.on("beforeSendEvent",Uf(n))}}},Bf=Ff;function Uf(e){return function(n){j()===e&&Me({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ae(n)},{event:n})}}function $f(e,t){return function(r){if(j()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>jt&&(tt&&S.warn(`\`dom.maxStringLength\` cannot exceed ${jt}, but a value of ${c} was configured. Sentry will use ${jt} instead.`),c=jt),typeof o=="string"&&(o=[o]);try{const u=r.event,l=qf(u)?u.target:u;s=vn(l,{keyAttrs:o,maxStringLength:c}),i=yc(l)}catch{s="<unknown>"}if(s.length===0)return;const a={category:`ui.${r.name}`,message:s};i&&(a.data={"ui.component_name":i}),Me(a,{event:r.event,name:r.name,global:r.global})}}function Hf(e){return function(n){if(j()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Uo(n.level),message:Cs(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Cs(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Me(r,{input:n.args,level:n.level})}}function Wf(e){return function(n){if(j()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[je];if(!r||!s||!i)return;const{method:o,url:c,status_code:a,body:u}=i,l={method:o,url:c,status_code:a},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:l,type:"http",level:Wo(a)};e.emit("beforeOutgoingRequestBreadcrumb",f,d),Me(f,d)}}function zf(e){return function(n){if(j()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",c,o),Me(c,o)}else{const i=n.response,o={...n.fetchData,status_code:i?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;const c={input:n.args,response:i,startTimestamp:r,endTimestamp:s},a={category:"fetch",data:o,type:"http",level:Wo(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,c),Me(a,c)}}}function jf(e){return function(n){if(j()!==e)return;let r=n.from,s=n.to;const i=Jn(z.location.href);let o=r?Jn(r):void 0;const c=Jn(s);o?.path||(o=i),i.protocol===c.protocol&&i.host===c.host&&(s=c.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Me({category:"navigation",data:{from:r,to:s}})}}function qf(e){return!!e&&!!e.target}const Gf=["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"],Vf="BrowserApiErrors",Yf=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Vf,setupOnce(){t.setTimeout&&ne(z,"setTimeout",mi),t.setInterval&&ne(z,"setInterval",mi),t.requestAnimationFrame&&ne(z,"requestAnimationFrame",Xf),t.XMLHttpRequest&&"XMLHttpRequest"in z&&ne(XMLHttpRequest.prototype,"send",Jf);const n=t.eventTarget;n&&(Array.isArray(n)?n:Gf).forEach(s=>Qf(s,t))}}},Kf=Yf;function mi(e){return function(...t){const n=t[0];return t[0]=et(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${ve(e)}`}}),e.apply(this,t)}}function Xf(e){return function(t){return e.apply(this,[et(t,{mechanism:{data:{handler:ve(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Jf(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&ne(n,s,function(i){const o={mechanism:{data:{handler:ve(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},c=$r(i);return c&&(o.mechanism.data.handler=ve(c)),et(i,o)})}),e.apply(this,t)}}function Qf(e,t){const r=z[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(ne(r,"addEventListener",function(s){return function(i,o,c){try{Zf(o)&&(o.handleEvent=et(o.handleEvent,{mechanism:{data:{handler:ve(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&ep(this,i,o),s.apply(this,[i,et(o,{mechanism:{data:{handler:ve(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),ne(r,"removeEventListener",function(s){return function(i,o,c){try{const a=o.__sentry_wrapped__;a&&s.call(this,i,a,c)}catch{}return s.call(this,i,o,c)}}))}function Zf(e){return typeof e.handleEvent=="function"}function ep(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const tp=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof z.document>"u"){tt&&S.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Vs({ignoreDuration:!0}),Kn();const n=ae();let r=n.getUser();n.addScopeListener(s=>{const i=s.getUser();(r?.id!==i?.id||r?.ip_address!==i?.ip_address)&&(Kn(),r=i)}),t==="route"&&ns(({from:s,to:i})=>{s!==i&&(Vs({ignoreDuration:!0}),Kn())})}}},np="CultureContext",rp=()=>({name:np,preprocessEvent(e){const t=ip();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}}),sp=rp;function ip(){try{const e=z.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const op="GlobalHandlers",ap=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:op,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(up(n),gi("onerror")),t.onunhandledrejection&&(lp(n),gi("onunhandledrejection"))}}},cp=ap;function up(e){cc(t=>{const{stackParser:n,attachStacktrace:r}=ca();if(j()!==e||zo())return;const{msg:s,url:i,line:o,column:c,error:a}=t,u=pp(Jr(n,a||s,void 0,r,!1),i,o,c);u.level="error",So(u,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function lp(e){lc(t=>{const{stackParser:n,attachStacktrace:r}=ca();if(j()!==e||zo())return;const s=dp(t),i=En(s)?fp(s):Jr(n,s,void 0,r,!0);i.level="error",So(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function dp(e){if(En(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 fp(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function pp(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},c=o.stacktrace=o.stacktrace||{},a=c.frames=c.frames||[],u=r,l=n,d=hp(t)??In();return a.length===0&&a.push({colno:u,filename:d,function:Pe,in_app:!0,lineno:l}),e}function gi(e){tt&&S.log(`Global Handler attached: ${e}`)}function ca(){return j()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function hp(e){if(!(!Se(e)||e.length===0))return e.startsWith("data:")?`<${xl(e,!1)}>`:e}const mp=()=>({name:"HttpContext",preprocessEvent(e){if(!z.navigator&&!z.location&&!z.document)return;const t=bd(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),gp="cause",_p=5,yp="LinkedErrors",Sp=(e={})=>{const t=e.limit||_p,n=e.key||gp;return{name:yp,preprocessEvent(r,s,i){const o=i.getOptions();Jl(Kr,o.stackParser,n,t,r,s)}}},Ep=Sp;function bp(){return vp()?(tt&&Fe(()=>{}),!0):!1}function vp(){if(typeof z.window>"u")return!1;const e=z;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=In(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(z===z.top&&r.some(i=>n.startsWith(`${i}://`)))}function Ip(e){return[zl(),Ul(),cd(),Kf(),Bf(),cp(),Ep(),nd(),mp(),sp(),tp()]}function wp(e={}){const t=!e.skipBrowserExtensionCheck&&bp();let n=e.defaultIntegrations==null?Ip():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:oc(e.stackParser||Lf),integrations:rl({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||bf};return kl(Ad,r)}function _i(e={}){const t=z.document,n=t?.head||t?.body;if(!n){tt&&S.error("[showReportDialog] Global document not defined");return}const r=ie(),i=j()?.getDsn();if(!i){tt&&S.error("[showReportDialog] DSN not configured");return}const o={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||Ku()},c=z.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=tl(i,o);const{onLoad:a,onClose:u}=o;if(a&&(c.onload=a),u){const l=d=>{if(d.data==="__sentry_reportdialog_closed__")try{u()}finally{z.removeEventListener("message",l)}};z.addEventListener("message",l)}n.appendChild(c)}const H=A,rs="sentryReplaySession",kp="replay_event",ss="Unable to send Replay",Tp=3e5,Rp=9e5,Cp=5e3,Mp=5500,xp=6e4,Op=5e3,Dp=3,yi=15e4,qt=5e3,Ap=3e3,Np=300,is=2e7,Lp=4999,Pp=5e4,Si=36e5;var Fp=Object.defineProperty,Bp=(e,t,n)=>t in e?Fp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ei=(e,t,n)=>Bp(e,typeof t!="symbol"?t+"":t,n),Y=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Y||{});
19function Up(e){return e.nodeType===e.ELEMENT_NODE}function gt(e){return e?.host?.shadowRoot===e}function _t(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function $p(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 Hp(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 dn(e){try{const t=e.rules||e.cssRules;return t?$p(Array.from(t,ua).join("")):null}catch{return null}}function Wp(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],i=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function ua(e){let t;if(jp(e))try{t=dn(e.styleSheet)||Hp(e)}catch{}else if(qp(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=Wp(e)),r&&(n=zp(n)),r||s)return n}return t||e.cssText}function zp(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function jp(e){return"styleSheet"in e}function qp(e){return"selectorText"in e}class la{constructor(){Ei(this,"idNodeMap",new Map),Ei(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Gp(){return new la}function xn({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 wt({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function nt(e){return e.toLowerCase()}function Rr(e){return e.toUpperCase()}const bi="__rrweb_original__";function Vp(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const i=t.getImageData,o=bi in i?i[bi]:i;if(new Uint32Array(o.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function os(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?nt(t):null}function fn(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function da(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const vi={};function fa(e){const t=vi[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return vi[e]=r.bind(window)}function Cr(...e){return fa("setTimeout")(...e)}function pa(...e){return fa("clearTimeout")(...e)}function ha(e){try{return e.contentDocument}catch{}}let Yp=1;const Kp=new RegExp("[^a-z0-9-_:]"),kt=-2;function as(){return Yp++}function Xp(e){if(e instanceof HTMLFormElement)return"form";const t=nt(e.tagName);return Kp.test(t)?"div":t}function Jp(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let We,Ii;const Qp=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Zp=/^(?:[a-z+]+:)?\/\//i,eh=/^www\..*/i,th=/^(data:)([^,]*),(.*)/i;function nh(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const i=s.indexOf(":");if(i===-1){r.push(s);continue}const o=s.slice(0,i).trim();t.has(o)||r.push(s)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch{return e}}function pn(e,t){return(e||"").replace(Qp,(n,r,s,i,o,c)=>{const a=s||o||c,u=r||i||"";if(!a)return n;if(Zp.test(a)||eh.test(a))return`url(${u}${a}${u})`;if(th.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${Jp(t)+a}${u})`;const l=t.split("/"),d=a.split("/");l.pop();for(const f of d)f!=="."&&(f===".."?l.pop():l.push(f));return`url(${u}${l.join("/")}${u})`})}const rh=/^[^ \t\n\r\u000c]+/,sh=/^[, \t\n\r\u000c]+/;function ih(e,t){if(t.trim()==="")return t;let n=0;function r(i){let o;const c=i.exec(t.substring(n));return c?(o=c[0],n+=o.length,o):""}const s=[];for(;r(sh),!(n>=t.length);){let i=r(rh);if(i.slice(-1)===",")i=qe(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=qe(e,i);let c=!1;for(;;){const a=t.charAt(n);if(a===""){s.push((i+o).trim());break}else if(c)a===")"&&(c=!1);else if(a===","){n+=1,s.push((i+o).trim());break}else a==="("&&(c=!0);o+=a,n+=1}}}return s.join(", ")}const wi=new WeakMap;function qe(e,t){return!t||t.trim()===""?t:On(e,t)}function oh(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function On(e,t){let n=wi.get(e);if(n||(n=e.createElement("a"),wi.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function ma(e,t,n,r,s,i,o){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return qe(e,r);if(n==="xlink:href"&&r[0]!=="#")return qe(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return qe(e,r);if(n==="srcset")return ih(e,r);if(n==="style"){let c=pn(r,On(e));return o&&o.size>0&&(c=nh(c,o)),c}else if(t==="object"&&n==="data")return qe(e,r);return typeof i=="function"?i(n,r,s):r}function ga(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function ah(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function ch(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Ne(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ne(e.parentNode,t,n,r+1)}function Ge(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(ch(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function rt(e,t,n,r,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const u=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let c=-1,a=-1;if(i){if(a=Ne(o,Ge(r,s)),a<0)return!0;c=Ne(o,Ge(t,n),a>=0?a:1/0)}else{if(c=Ne(o,Ge(t,n)),c<0)return!1;a=Ne(o,Ge(r,s),c>=0?c:1/0)}return c>=0?a>=0?c<=a:!0:a>=0?!1:!!i}catch{}return!!i}function uh(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const c=Cr(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{pa(c),s=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return Cr(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function lh(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=Cr(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{pa(i),r=!0,t()})}function dh(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskAttributeFn:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:E,dataURLOptions:y={}
19,inlineImages:k,recordCanvas:B,keepIframeSrcFn:N,newlyAddedElement:W=!1,ignoreCSSAttributes:M}=t,g=fh(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Y.Document,childNodes:[],compatMode:e.compatMode}:{type:Y.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Y.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return hh(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:a,maskInputOptions:h,maskInputFn:E,dataURLOptions:y,inlineImages:k,recordCanvas:B,keepIframeSrcFn:N,newlyAddedElement:W,rootId:g,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:M});case e.TEXT_NODE:return ph(e,{doc:n,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:E,rootId:g});case e.CDATA_SECTION_NODE:return{type:Y.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:Y.Comment,textContent:e.textContent||"",rootId:g};default:return!1}}function fh(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function ph(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:c,maskInputOptions:a,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=d==="STYLE"?!0:void 0,h=d==="SCRIPT"?!0:void 0,m=d==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=dn(e.parentNode.sheet))}catch{}f=pn(f,On(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const E=rt(e,r,i,s,o,n);if(!p&&!h&&!m&&f&&E&&(f=c?c(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(a.textarea||E)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const y=xn({type:null,tagName:d,maskInputOptions:a});f=wt({isMasked:rt(e,r,i,s,o,y),element:e,value:f,maskInputFn:u})}return{type:Y.Text,textContent:f||"",isStyle:p,rootId:l}}function hh(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:c={},maskAttributeFn:a,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskTextClass:E,unmaskTextClass:y,maskTextSelector:k,unmaskTextSelector:B,ignoreCSSAttributes:N}=t,W=ah(e,r,s,i),M=Xp(e);let g={};const x=e.attributes.length;for(let _=0;_<x;_++){const T=e.attributes[_];T.name&&!ga(M,T.name,T.value)&&(g[T.name]=ma(n,M,nt(T.name),T.value,e,a,N))}if(M==="link"&&o){const _=Array.from(n.styleSheets).find(U=>U.href===e.href);let T=null;_&&(T=dn(_)),T&&(g.rel=null,g.href=null,g.crossorigin=null,g._cssText=pn(T,_.href))}if(M==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const _=dn(e.sheet);_&&(g._cssText=pn(_,On(n)))}if(M==="input"||M==="textarea"||M==="select"||M==="option"){const _=e,T=os(_),U=fn(_,Rr(M),T),V=_.checked;if(T!=="submit"&&T!=="button"&&U){const X=rt(_,E,k,y,B,xn({type:T,tagName:Rr(M),maskInputOptions:c}));g.value=wt({isMasked:X,element:_,value:U,maskInputFn:u})}V&&(g.checked=V)}if(M==="option"&&(e.selected&&!c.select?g.selected=!0:delete g.selected),M==="canvas"&&f){if(e.__context==="2d")Vp(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const _=e.toDataURL(l.type,l.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height;const U=T.toDataURL(l.type,l.quality);_!==U&&(g.rr_dataURL=_)}}if(M==="img"&&d){We||(We=n.createElement("canvas"),Ii=We.getContext("2d"));const _=e,T=_.currentSrc||_.getAttribute("src")||"<unknown-src>",U=_.crossOrigin,V=()=>{_.removeEventListener("load",V);try{We.width=_.naturalWidth,We.height=_.naturalHeight,Ii.drawImage(_,0,0),g.rr_dataURL=We.toDataURL(l.type,l.quality)}catch{if(_.crossOrigin!=="anonymous"){_.crossOrigin="anonymous",_.complete&&_.naturalWidth!==0?V():_.addEventListener("load",V);return}}_.crossOrigin==="anonymous"&&(U?g.crossOrigin=U:_.removeAttribute("crossorigin"))};_.complete&&_.naturalWidth!==0?V():_.addEventListener("load",V)}if((M==="audio"||M==="video")&&(g.rr_mediaState=e.paused?"paused":"played",g.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),W){const{width:_,height:T}=e.getBoundingClientRect();g={class:g.class,rr_width:`${_}px`,rr_height:`${T}px`}}M==="iframe"&&!p(g.src)&&(!W&&!ha(e)&&(g.rr_src=g.src),delete g.src);let K;try{customElements.get(M)&&(K=!0)}catch{}return{type:Y.Element,tagName:M,attributes:g,childNodes:[],isSVG:oh(e)||void 0,needBlock:W,rootId:m,isCustom:K}}function $(e){return e==null?"":e.toLowerCase()}function mh(e,t){if(t.comment&&e.type===Y.Comment)return!0;
19if(e.type===Y.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"&&da(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&($(e.attributes.name).match(/^msapplication-tile(image|color)$/)||$(e.attributes.name)==="application-name"||$(e.attributes.rel)==="icon"||$(e.attributes.rel)==="apple-touch-icon"||$(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&$(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&($(e.attributes.property).match(/^(og|twitter|fb):/)||$(e.attributes.name).match(/^(og|twitter):/)||$(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&($(e.attributes.name)==="robots"||$(e.attributes.name)==="googlebot"||$(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&($(e.attributes.name)==="author"||$(e.attributes.name)==="generator"||$(e.attributes.name)==="framework"||$(e.attributes.name)==="publisher"||$(e.attributes.name)==="progid"||$(e.attributes.property).match(/^article:/)||$(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&($(e.attributes.name)==="google-site-verification"||$(e.attributes.name)==="yandex-verification"||$(e.attributes.name)==="csrf-token"||$(e.attributes.name)==="p:domain_verify"||$(e.attributes.name)==="verify-v1"||$(e.attributes.name)==="verification"||$(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ve(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:E,maskInputFn:y,slimDOMOptions:k,dataURLOptions:B={},inlineImages:N=!1,recordCanvas:W=!1,onSerialize:M,onIframeLoad:g,iframeLoadTimeout:x=5e3,onBlockedImageLoad:K,onStylesheetLoad:_,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:U=()=>!1,newlyAddedElement:V=!1,ignoreCSSAttributes:X}=t;let{preserveWhiteSpace:ce=!0}=t;const Q=dh(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:c,unblockSelector:o,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:E,maskInputFn:y,dataURLOptions:B,inlineImages:N,recordCanvas:W,keepIframeSrcFn:U,newlyAddedElement:V,ignoreCSSAttributes:X});if(!Q)return null;let Z;r.hasNode(e)?Z=r.getId(e):mh(Q,k)||!ce&&Q.type===Y.Text&&!Q.isStyle&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?Z=kt:Z=as();const R=Object.assign(Q,{id:Z});if(r.add(e,R),Z===kt)return null;M&&M(e);let oe=!f;if(R.type===Y.Element){oe=oe&&!R.needBlock;const q=e.shadowRoot;q&&_t(q)&&(R.isShadowHost=!0)}if((R.type===Y.Document||R.type===Y.Element)&&oe){k.headWhitespace&&R.type===Y.Element&&R.tagName==="head"&&(ce=!1);const q={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:c,unblockSelector:o,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:E,maskInputFn:y,slimDOMOptions:k,dataURLOptions:B,inlineImages:N,recordCanvas:W,preserveWhiteSpace:ce,onSerialize:M,onIframeLoad:g,iframeLoadTimeout:x,onBlockedImageLoad:K,onStylesheetLoad:_,stylesheetLoadTimeout:T,keepIframeSrcFn:U,ignoreCSSAttributes:X},he=e.childNodes?Array.from(e.childNodes):[];for(const me of he){const ue=Ve(me,q);ue&&R.childNodes.push(ue)}if(Up(e)&&e.shadowRoot)for(const me of Array.from(e.shadowRoot.childNodes)){const ue=Ve(me,q);ue&&(_t(e.shadowRoot)&&(ue.isShadow=!0),R.childNodes.push(ue))}}if(e.parentNode&&gt(e.parentNode)&&_t(e.parentNode)&&(R.isShadow=!0),R.type===Y.Element&&R.tagName==="iframe"&&!R.needBlock&&uh(e,()=>{const q=ha(e);if(q&&g){const he=Ve(q,{doc:q,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:E,maskInputFn:y,slimDOMOptions:k,dataURLOptions:B,inlineImages:N,recordCanvas:W,preserveWhiteSpace:ce,onSerialize:M,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:_,stylesheetLoadTimeout:T,keepIframeSrcFn:U,ignoreCSSAttributes:X});he&&g(e,he)}},x),R.type===Y.Element&&R.tagName==="img"&&!e.complete&&R.needBlock){const q=e,he=()=>{if(q.isConnected&&!q.complete&&K)try{const me=q.getBoundingClientRect();me.width>0&&me.height>0&&K(q,R,me)}catch{}q.removeEventListener("load",he)};q.isConnected&&q.addEventListener("load",he)}return R.type===Y.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&da(R.attributes.href)==="css")&&lh(e,()=>{if(_){const q=Ve(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:E,maskInputFn:y,slimDOMOptions:k,dataURLOptions:B,inlineImages:N,recordCanvas:W,preserveWhiteSpace:ce,onSerialize:M,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:_,stylesheetLoadTimeout:T,keepIframeSrcFn:U,ignoreCSSAttributes:X});q&&_(e,q)}},T),R.type===Y.Element&&delete R.needBlock,R}function gh(e,t){const{mirror:n=new la,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:c="rr-mask",unmaskTextClass:a=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inl
19ineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:E,maskInputFn:y,slimDOM:k=!1,dataURLOptions:B,preserveWhiteSpace:N,onSerialize:W,onIframeLoad:M,iframeLoadTimeout:g,onBlockedImageLoad:x,onStylesheetLoad:K,stylesheetLoadTimeout:_,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:U=new Set([])}=t||{};return Ve(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:c,unmaskTextClass:a,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:m,maskTextFn:E,maskInputFn:y,slimDOMOptions:k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:k==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:k===!1?{}:k,dataURLOptions:B,inlineImages:f,recordCanvas:p,preserveWhiteSpace:N,onSerialize:W,onIframeLoad:M,iframeLoadTimeout:g,onBlockedImageLoad:x,onStylesheetLoad:K,stylesheetLoadTimeout:_,keepIframeSrcFn:T,newlyAddedElement:!1,ignoreCSSAttributes:U})}function te(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let ki={map:{},getId(){return-1},getNode(){return null},removeNodeFromMap(){},has(){return!1},reset(){}};typeof window<"u"&&window.Proxy&&window.Reflect&&(ki=new Proxy(ki,{get(e,t,n){return Reflect.get(e,t,n)}}));function Tt(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const c=t-(o-s),a=this;c<=0||c>t?(r&&(Ih(r),r=null),s=o,e.apply(a,i)):!r&&n.trailing!==!1&&(r=Dn(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(a,i)},c))}}function _a(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){Dn(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>_a(e,t,i||{},!0)}function cs(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let hn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(hn=()=>new Date().getTime());function ya(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Sa(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ea(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ba(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function re(e,t,n,r,s){if(!e)return!1;const i=ba(e);if(!i)return!1;const o=Ge(t,n);if(!s){const u=r&&i.matches(r);return o(i)&&!u}const c=Ne(i,o);let a=-1;return c<0?!1:(r&&(a=Ne(i,Ge(null,r))),c>-1&&a<0?!0:c<a)}function _h(e,t){return t.getId(e)!==-1}function nr(e,t){return t.getId(e)===kt}function va(e,t){if(gt(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?va(e.parentNode,t):!0:!0}function Mr(e){return!!e.changedTouches}function yh(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 Ia(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function wa(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}
19function xr(e){return!!e?.shadowRoot}class Sh{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ka(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Eh(e){let t=e,n;for(;n=ka(t);)t=n;return t}function bh(e){const t=e.ownerDocument;if(!t)return!1;const n=Eh(e);return t.contains(n)}function Ta(e){const t=e.ownerDocument;return t?t.contains(e)||bh(e):!1}const Ti={};function us(e){const t=Ti[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Ti[e]=r.bind(window)}function vh(...e){return us("requestAnimationFrame")(...e)}function Dn(...e){return us("setTimeout")(...e)}function Ih(...e){return us("clearTimeout")(...e)}var C=(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))(C||{}),I=(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))(I||{}),ee=(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))(ee||{}),ye=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ye||{}),ze=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(ze||{});function ls(e){try{return e.contentDocument}catch{}}function wh(e){try{return e.contentWindow}catch{}}function Ri(e){return"__ln"in e}class kh{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Ri(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&&Ri(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 Ci=(e,t)=>`${e}@${t}`;class Th{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=>
vendor: 4,563 bytes, line 19
19{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new kh,s=a=>{let u=a,l=kt;for(;l===kt;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},i=a=>{if(!a.parentNode||!Ta(a))return;const u=gt(a.parentNode)?this.mirror.getId(ka(a)):this.mirror.getId(a.parentNode),l=s(a);if(u===-1||l===-1)return r.addNode(a);const d=Ve(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{Ia(f,this.mirror)&&!re(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),wa(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),xr(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{re(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,p),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)},onBlockedImageLoad:(f,p,{width:h,height:m})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:p.id,attributes:{style:{width:`${h}px`,height:`${m}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(t.push({parentId:u,nextId:l,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)Mi(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||i(a);for(const a of this.addedSet)!xi(this.droppedSet,a)&&!Mi(this.removes,a,this.mirror)||xi(this.movedSet,a)?i(a):this.droppedSet.add(a);let o=null;for(;r.length;){let a=null;if(o){const u=this.mirror.getId(o.value.parentNode),l=s(o.value);u!==-1&&l!==-1&&(a=o)}if(!a){let u=r.tail;for(;u;){const l=u;if(u=u.previous,l){const d=this.mirror.getId(l.value.parentNode);if(s(l.value)===-1)continue;if(d!==-1){a=l;break}else{const p=l.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){a=l;break}}}}}}if(!a){for(;r.head;)r.removeNode(r.head.value);break}o=a.previous,r.removeNode(a.value),i(a.value)}const c={texts:this.texts.map(a=>({id:this.mirror.getId(a.node),value:a.value})).filter(a=>!n.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{const{attributes:u}=a;if(typeof u.style=="string"){const l=JSON.stringify(a.styleDiff),d=JSON.stringify(a._unchangedStyles);l.length<u.style.length&&(l+d).split("var(").length===u.style.split("var(").length&&(u.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:u}}).filter(a=>!n.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(c))},this.processMutation=t=>{if(!nr(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!re(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:rt(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,ba(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const o=os(n),c=n.tagName;s=fn(n,c,o);const a=xn({maskInputOptions:this.maskInputOptions,tagName:c,type:o}),u=rt(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a);s=wt({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if(re(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!l
vendor: 5,752 bytes, line 19
19s(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!ga(n.tagName,r)&&(i.attributes[r]=ma(this.doc,nt(n.tagName),nt(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const c of Array.from(n.style)){const a=n.style.getPropertyValue(c),u=n.style.getPropertyPriority(c);a!==o.style.getPropertyValue(c)||u!==o.style.getPropertyPriority(c)?u===""?i.styleDiff[c]=a:i.styleDiff[c]=[a,u]:i._unchangedStyles[c]=[a,u]}for(const c of Array.from(o.style))n.style.getPropertyValue(c)===""&&(i.styleDiff[c]=!1)}break}case"childList":{if(re(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=gt(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);re(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||nr(n,this.mirror)||!_h(n,this.mirror)||(this.addedSet.has(n)?(Or(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||va(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Ci(r,s)]?Or(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:gt(t.target)&&_t(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(nr(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[Ci(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);re(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),xr(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Or(e,t){e.delete(t),t.childNodes?.forEach(n=>Or(e,n))}function Mi(e,t,n){return e.length===0?!1:Rh(e,t,n)}function Rh(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(i=>i.id===s))return!0;r=r.parentNode}return!1}function xi(e,t){return e.size===0?!1:Ra(e,t)}function Ra(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Ra(e,n):!1}let yt;function Ch(e){yt=e}function Mh(){yt=void 0}const D=e=>yt?(...n)=>{try{return e(...n)}catch(r){if(yt&&yt(r)===!0)return()=>{};throw r}}:e,Ye=[];function Bt(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 Ca(e,t){const n=new Th;Ye.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(r=window[s]);const i=new r(D(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function xh({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],c;const a=Tt(D(d=>{const f=Date.now()-c;e(o.map(p=>(p.timeOffset-=f,p)),d),o=[],c=null}),i),u=D(Tt(D(d=>{const f=Bt(d),{clientX:p,clientY:h}=Mr(d)?d.changedTouches[0]:d;c||(c=hn()),o.push({x:p,y:h,id:r.getId(f),timeOffset:hn()-c}),a(typeof DragEvent<"u"&&d instanceof DragEvent?I.Drag:d instanceof MouseEvent?I.MouseMove:I.TouchMove)}),s,{trailing:!1})),l=[te("mousemove",u,n),te("touchmove",u,n),te("drag",u,n)];return D(()=>{l.forEach(d=>d())})}function Oh({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const c=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,a=[];let u=null;const l=d=>f=>{const p=Bt(f);if(re(p,r,s,i,!0))return;let h=null,m=d;if("pointerType"in f){switch(f.pointerType){case"mouse":h=ye.Mouse;break;case"touch":h=ye.Touch;break;case"pen":h=ye.Pen;break}h===ye.Touch?ee[d]===ee.MouseDown?m="TouchStart":ee[d]===ee.MouseUp&&(m="TouchEnd"):ye.Pen}else Mr(f)&&(h=ye.Touch);h!==null?(u=h,(m.startsWith("Touch")&&h===ye.Touch||m.startsWith("Mouse")&&h===ye.Mouse)&&(h=null)):ee[d]===ee.Click&&(h=u,u=null);const E=Mr(f)?f.changedTouches[0]:f;if(!E)return;const y=n.getId(p),{clientX:k,clientY:B}=E;D(e)({type:ee[m],id:y,x:k,y:B,...h!==null&&{pointerType:h}})};return Object.keys(ee).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&c[d]!==!1).forEac
vendor: 4,238 bytes, line 19
19h(d=>{let f=nt(d);const p=l(d);if(window.PointerEvent)switch(ee[d]){case ee.MouseDown:case ee.MouseUp:f=f.replace("mouse","pointer");break;case ee.TouchStart:case ee.TouchEnd:return}a.push(te(f,p,t))}),D(()=>{a.forEach(d=>d())})}function Ma({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const c=D(Tt(D(a=>{const u=Bt(a);if(!u||re(u,r,s,i,!0))return;const l=n.getId(u);if(u===t&&t.defaultView){const d=ya(t.defaultView);e({id:l,x:d.left,y:d.top})}else e({id:l,x:u.scrollLeft,y:u.scrollTop})}),o.scroll||100));return te("scroll",c,t)}function Dh({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=D(Tt(D(()=>{const i=Sa(),o=Ea();(n!==i||r!==o)&&(e({width:Number(o),height:Number(i)}),n=i,r=o)}),200));return te("resize",s,t)}const Ah=["INPUT","TEXTAREA","SELECT"],Oi=new WeakMap;function Nh({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:c,maskInputOptions:a,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function E(g){let x=Bt(g);const K=g.isTrusted,_=x&&Rr(x.tagName);if(_==="OPTION"&&(x=x.parentElement),!x||!_||Ah.indexOf(_)<0||re(x,r,s,i,!0))return;const T=x;if(T.classList.contains(o)||c&&T.matches(c))return;const U=os(x);let V=fn(T,_,U),X=!1;const ce=xn({maskInputOptions:a,tagName:_,type:U}),Q=rt(x,f,h,p,m,ce);(U==="radio"||U==="checkbox")&&(X=x.checked),V=wt({isMasked:Q,element:x,value:V,maskInputFn:u}),y(x,d?{text:V,isChecked:X,userTriggered:K}:{text:V,isChecked:X});const Z=x.name;U==="radio"&&Z&&X&&t.querySelectorAll(`input[type="radio"][name="${Z}"]`).forEach(R=>{if(R!==x){const oe=wt({isMasked:Q,element:R,value:fn(R,_,U),maskInputFn:u});y(R,d?{text:oe,isChecked:!X,userTriggered:!1}:{text:oe,isChecked:!X})}})}function y(g,x){const K=Oi.get(g);if(!K||K.text!==x.text||K.isChecked!==x.isChecked){Oi.set(g,x);const _=n.getId(g);D(e)({...x,id:_})}}const B=(l.input==="last"?["change"]:["input","change"]).map(g=>te(g,D(E),t)),N=t.defaultView;if(!N)return()=>{B.forEach(g=>g())};const W=N.Object.getOwnPropertyDescriptor(N.HTMLInputElement.prototype,"value"),M=[[N.HTMLInputElement.prototype,"value"],[N.HTMLInputElement.prototype,"checked"],[N.HTMLSelectElement.prototype,"value"],[N.HTMLTextAreaElement.prototype,"value"],[N.HTMLSelectElement.prototype,"selectedIndex"],[N.HTMLOptionElement.prototype,"selected"]];return W&&W.set&&B.push(...M.map(g=>_a(g[0],g[1],{set(){D(E)({target:this,isTrusted:!1})}},!1,N))),D(()=>{B.forEach(g=>g())})}function mn(e){const t=[];function n(r,s){if(Gt("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Gt("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Gt("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Gt("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(e,t)}function we(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function Lh({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:D((l,d,f)=>{const[p,h]=f,{id:m,styleId:E}=we(d,t,n.styleMirror);return(m&&m!==-1||E&&E!==-1)&&e({id:m,styleId:E,adds:[{rule:p,index:h}]}),l.apply(d,f)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:D((l,d,f)=>{const[p]=f,{id:h,styleId:m}=we(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:p}]}),l.apply(d,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:D((l,d,f)=>{const[p]=f,{id:h,styleId:m}=we(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:p}),l.apply(d,f)})}));let c;r.CSSStyleSheet.prototype.replaceSync&&(c=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:D((l,d,f)=>{const[p]=f,{id:h,styleId:m}=we(d,t,n.styleMirror);
vendor: 4,577 bytes, line 19
19return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),l.apply(d,f)})}));const a={};Vt("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(Vt("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),Vt("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),Vt("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(a).forEach(([l,d])=>{u[l]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[l].insertRule,{apply:D((f,p,h)=>{const[m,E]=h,{id:y,styleId:k}=we(p.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,adds:[{rule:m,index:[...mn(p),E||0]}]}),f.apply(p,h)})}),d.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:D((f,p,h)=>{const[m]=h,{id:E,styleId:y}=we(p.parentStyleSheet,t,n.styleMirror);return(E&&E!==-1||y&&y!==-1)&&e({id:E,styleId:y,removes:[{index:[...mn(p),m]}]}),f.apply(p,h)})})}),D(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),c&&(r.CSSStyleSheet.prototype.replaceSync=c),Object.entries(a).forEach(([l,d])=>{d.prototype.insertRule=u[l].insertRule,d.prototype.deleteRule=u[l].deleteRule})})}function xa({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(o){const c=i.set?.call(this,o);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return c}}),D(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function Ph({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:D((c,a,u)=>{const[l,d,f]=u;if(n.has(l))return i.apply(a,[l,d,f]);const{id:p,styleId:h}=we(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:l,value:d,priority:f},index:mn(a.parentRule)}),c.apply(a,u)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:D((c,a,u)=>{const[l]=u;if(n.has(l))return o.apply(a,[l]);const{id:d,styleId:f}=we(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:l},index:mn(a.parentRule)}),c.apply(a,u)})}),D(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function Fh({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const c=D(u=>Tt(D(l=>{const d=Bt(l);if(!d||re(d,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:m}=d;e({type:u,id:s.getId(d),currentTime:f,volume:p,muted:h,playbackRate:m})}),i.media||500)),a=[te("play",c(ze.Play),o),te("pause",c(ze.Pause),o),te("seeked",c(ze.Seeked),o),te("volumechange",c(ze.VolumeChange),o),te("ratechange",c(ze.RateChange),o)];return D(()=>{a.forEach(u=>u())})}function Bh({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(a,u,l){const d=new i(a,u,l);return s.set(d,{family:a,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};const o=cs(t.fonts,"add",function(c){return function(a){return Dn(D(()=>{const u=s.get(a);u&&(e(u),s.delete(a))}),0),c.apply(this,[a])}});return r.push(()=>{n.FontFace=i}),r.push(o),D(()=>{r.forEach(c=>c())})}function Uh(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let c=!0;const a=D(()=>{const u=t.getSelection();if(!u||c&&u?.isCollapsed)return;c=u.isCollapsed||!1;const l=[],d=u.rangeCount||0;for(let f=0;f<d;f++){const p=u.getRangeAt(f),{startContainer:h,startOffset:m,endContainer:E,endOffset:y}=p;re(h,r,s,i,!0)||re(E,r,s,i,!0)||l.push({start:n.getId(h),startOffset:m,end:n.getId(E),endOffset:y})}o({ranges:l})});return a(),te("selectionchange",a)}function $h({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:cs(n.customElements,"define",function(s){return function(i,o,c){try{t({define:{name:i}})}catch{}
vendor: 8,995 bytes, line 19
19return s.apply(this,[i,o,c])}})}function Hh(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Ca(e,e.doc));const s=xh(e),i=Oh(e),o=Ma(e),c=Dh(e,{win:n}),a=Nh(e),u=Fh(e);let l=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(l=Lh(e,{win:n}),d=xa(e,e.doc),f=Ph(e,{win:n}),e.collectFonts&&(p=Bh(e)));const h=Uh(e),m=$h(e),E=[];for(const y of e.plugins)E.push(y.observer(y.callback,n,y.options));return D(()=>{Ye.forEach(y=>y.reset()),r?.disconnect(),s(),i(),o(),c(),a(),u(),l(),d(),f(),p(),h(),m(),E.forEach(y=>y())})}function Gt(e){return typeof window[e]<"u"}function Vt(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Dr{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const i=r||this.getIdToRemoteIdMap(t),o=s||this.getRemoteIdToIdMap(t);let c=i.get(n);return c||(c=this.generateIdFn(),i.set(n,c),o.set(c,n)),c}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=s.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class Wh{constructor(){this.crossOriginIframeMirror=new Dr(as),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class zh{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Dr(as),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Dr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=ls(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const i=this.transformCrossOriginEvent(s,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case C.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:C.IncrementalSnapshot,data:{source:I.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case C.Meta:case C.Load:case C.DomContentLoaded:return!1;case C.Plugin:return n;case C.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case C.IncrementalSnapshot:switch(n.data.source){case I.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case I.Drag:case I.TouchMove:case I.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case I.ViewportResize:return!1;case I.MediaInteraction:case I.MouseInteraction:case I.Scroll:case I.CanvasMutation:case I.Input:return this.replaceIds(n.data,t,["id"]),n;case I.StyleSheetRule:case I.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case I.Font:return n;case I.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case I.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const i of s)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Y.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class jh{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class qh{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(!_t(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Ca({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Ma({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Dn(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(xa({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=ls(t),r=wh(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(cs(t.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&Ta(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var Di="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gh=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Yt=0;Yt<Di.length;Yt++)Gh[Di.charCodeAt(Yt)]=Yt;class Ai{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Vh{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Sh,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const i of t){let o;this.styleMirror.has(i)?o=this.styleMirror.getId(i):(o=this.styleMirror.add(i),s.push({styleId:o,rules:Array.from(i.rules||CSSRule,(c,a)=>({rule:ua(c),index:a}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Yh{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,vh(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let G,gn;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch{}const de=Gp();function be(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr
19-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:a=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:E,slimDOMOptions:y,maskAttributeFn:k,maskInputFn:B,maskTextFn:N,maxCanvasSize:W=null,packFn:M,sampling:g={},dataURLOptions:x={},mousemoveWait:K,recordDOM:_=!0,recordCanvas:T=!1,recordCrossOriginIframes:U=!1,recordAfter:V=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:X=!1,collectFonts:ce=!1,inlineImages:Q=!1,plugins:Z,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:q,onMutation:he,getCanvasManager:me}=e;Ch(q);const ue=U?window.parent===window:!0;let ut=!1;if(!ue)try{window.parent.document&&(ut=!1)}catch{ut=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!ut)return()=>{};K!==void 0&&g.mousemove===void 0&&(g.mousemove=K),de.reset();const Pn=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}:E!==void 0?E:{},Fn=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||{};yh();let Bn,Un=0;const Ss=P=>{for(const le of Z||[])le.eventProcessor&&(P=le.eventProcessor(P));return M&&!ut&&(P=M(P)),P};G=(P,le)=>{const O=P;if(O.timestamp=hn(),Ye[0]?.isFrozen()&&O.type!==C.FullSnapshot&&!(O.type===C.IncrementalSnapshot&&O.data.source===I.Mutation)&&Ye.forEach(J=>J.unfreeze()),ue)t?.(Ss(O),le);else if(ut){const J={type:"rrweb",event:Ss(O),origin:window.location.origin,isCheckout:le};window.parent.postMessage(J,"*")}if(O.type===C.FullSnapshot)Bn=O,Un=0;else if(O.type===C.IncrementalSnapshot){if(O.data.source===I.Mutation&&O.data.isAttachIframe)return;Un++;const J=r&&Un>=r,F=n&&Bn&&O.timestamp-Bn.timestamp>n;(J||F)&&Wn(!0)}};const lt=P=>{G({type:C.IncrementalSnapshot,data:{source:I.Mutation,...P}})},Es=P=>G({type:C.IncrementalSnapshot,data:{source:I.Scroll,...P}}),Ja=P=>G({type:C.IncrementalSnapshot,data:{source:I.CanvasMutation,...P}}),Qa=P=>G({type:C.IncrementalSnapshot,data:{source:I.AdoptedStyleSheet,...P}}),xe=new Vh({mutationCb:lt,adoptedStyleSheetCb:Qa}),Oe=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new Wh:new zh({mirror:de,mutationCb:lt,stylesheetManager:xe,recordCrossOriginIframes:U,wrappedEmit:G});for(const P of Z||[])P.getMirror&&P.getMirror({nodeMirror:de,crossOriginIframeMirror:Oe.crossOriginIframeMirror,crossOriginIframeStyleMirror:Oe.crossOriginIframeStyleMirror});const $n=new Yh,Hn=Xh(me,{mirror:de,win:window,mutationCb:P=>G({type:C.IncrementalSnapshot,data:{source:I.CanvasMutation,...P}}),recordCanvas:T,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:W,sampling:g.canvas,dataURLOptions:x,errorHandler:q}),$t=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new jh:new qh({mutationCb:lt,scrollCb:Es,bypassOptions:{onMutation:he,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:Pn,dataURLOptions:x,maskAttributeFn:k,maskTextFn:N,maskInputFn:B,recordCanvas:T,inlineImages:Q,sampling:g,slimDOMOptions:Fn,iframeManager:Oe,stylesheetManager:xe,canvasManager:Hn,keepIframeSrcFn:R,processedNodeManager:$n,ignoreCSSAttributes:oe},mirror:de}),Wn=(P=!1)=>{if(!_)return;G({type:C.Meta,data:{href:window.location.href,width:Ea(),height:Sa()}},P),xe.reset(),$t.init(),Ye.forEach(O=>O.lock());const le=gh(document,{mirror:de,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:Pn,maskAttributeFn:k,maskInputFn:B,maskTextFn:N,slimDOM:Fn,dataURLOptions:x,recordCanvas:T,inlineImages:Q,onSerialize:O=>{Ia(O,de)&&Oe.addIframe(O),wa(O,de)&&xe.trackLinkElement(O),xr(O)&&$t.addShadowRoot(O.shadowRoot,document)},onIframeLoad:(O,J)=>{Oe.attachIframe(O,J),O.contentWindow&&Hn.addWindow(O.contentWindow),$t.observeAttachShadow(O)},onStylesheetLoad:(O,J)=>{xe.attachLinkElement(O,J)},onBlockedImageLoad:(O,J,{width:F,height:dt})=>{lt({adds:[],removes:[],texts:[],attributes:[{id:J.id,attributes:{style:{width:`${F}px`,height:`${dt}px`}}}]})},keepIframeSrcFn:R,ignoreCSSAttributes:oe});le&&(G({type:C.FullSnapshot,data:{node:le,initialOffset:ya(window)}}),Ye.forEach(O=>O.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&xe.adoptStyleSheets(document.adoptedStyleSheets,de.getId(document)))};gn=Wn;try{const P=[],le=J=>D(Hh)({onMutation:he,mutationCb:lt,mousemoveCb:(F,dt)=>G({type:C.IncrementalSnapshot,data:{source:dt,positions:F}}),mouseInteractionCb:F=>G({type:C.IncrementalSnapshot,data:{source:I.MouseInteraction,...F}}),scrollCb:Es,viewportResizeCb:F=>G({type:C.IncrementalSnapshot,data:{source:I.ViewportResize,...F}}),inputCb:F=>G({type:C.IncrementalSnapshot,data:{source:I.Input,...F}}),mediaInteractionCb:F=>G({type:C.IncrementalSnapshot,data:{source:I.MediaInteraction,...F}}),styleSheetRuleCb:F=>G({type:C.IncrementalSnapshot,data:{source:I.StyleSheetRule,...F}}),styleDeclarationCb:F=>G({type:C.IncrementalSnapshot,data:{source:I.StyleDeclaration,...F}}),canvasMutationCb:Ja,fontCb:F=>G({type:C.IncrementalSnapshot,data:{source:I.Font,...F}}),selectionCb:F=>{G({type:C.IncrementalSnapshot,data:{source:I.Selection,...F}})},customElementCb:F=>{G({type:C.IncrementalSnapshot,data:{source:I.CustomElement,...F}})},blockClass:s,ignoreClass:c,ignoreSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:Pn,inlineStylesheet:h,sampling:g,recordDOM:_,recordCanvas:T,inlineImages:Q,userTr
19iggeredOnInput:X,collectFonts:ce,doc:J,maskAttributeFn:k,maskInputFn:B,maskTextFn:N,keepIframeSrcFn:R,blockSelector:i,unblockSelector:o,slimDOMOptions:Fn,dataURLOptions:x,mirror:de,iframeManager:Oe,stylesheetManager:xe,shadowDomManager:$t,processedNodeManager:$n,canvasManager:Hn,ignoreCSSAttributes:oe,plugins:Z?.filter(F=>F.observer)?.map(F=>({observer:F.observer,options:F.options,callback:dt=>G({type:C.Plugin,data:{plugin:F.name,payload:dt}})}))||[]},{});Oe.addLoadListener(J=>{try{P.push(le(J.contentDocument))}catch{}});const O=()=>{Wn(),P.push(le(document))};return document.readyState==="interactive"||document.readyState==="complete"?O():(P.push(te("DOMContentLoaded",()=>{G({type:C.DomContentLoaded,data:{}}),V==="DOMContentLoaded"&&O()})),P.push(te("load",()=>{G({type:C.Load,data:{}}),V==="load"&&O()},window))),()=>{P.forEach(J=>J()),$n.destroy(),gn=void 0,Mh()}}catch{}}function Kh(e){if(!gn)throw new Error("please take full snapshot after start recording");gn(e)}be.mirror=de;be.takeFullSnapshot=Kh;function Xh(e,t){try{return e?e(t):new Ai}catch{return new Ai}}var Ni;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ni||(Ni={}));const Jh=3,Qh=5;function ds(e){return e>9999999999?e:e*1e3}function rr(e){return e>9999999999?e/1e3:e}function Ut(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:C.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:fe(t,10,1e3)}}),t.category==="console")))}const Zh="button,a";function Oa(e){return e.closest(Zh)||e}function Da(e){const t=Aa(e);return!t||!(t instanceof Element)?t:Oa(t)}function Aa(e){return em(e)?e.target:e}function em(e){return typeof e=="object"&&!!e&&"target"in e}let ke;function tm(e){return ke||(ke=[],nm()),ke.push(e),()=>{const t=ke?ke.indexOf(e):-1;t>-1&&ke.splice(t,1)}}function nm(){ne(H,"open",function(e){return function(...t){if(ke)try{ke.forEach(n=>n())}catch{}return e.apply(H,t)}})}const rm=new Set([I.Mutation,I.StyleSheetRule,I.StyleDeclaration,I.AdoptedStyleSheet,I.CanvasMutation,I.Selection,I.MediaInteraction]);function sm(e,t,n){e.handleClick(t,n)}class im{constructor(t,n,r=Ut){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=tm(()=>{this._lastMutation=Li()});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(am(n,this._ignoreSelector)||!cm(t))return;const r={timestamp:rr(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=rr(t)}registerScroll(t=Date.now()){this._lastScroll=rr(t)}registerClick(t){const n=Oa(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=Li();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!s,{clickCount:o,clickBreadcrumb:c}=t;if(i){const a=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=a<this._timeout*1e3?"mutation":"timeout",l={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.slowClickDetected",data:{...c.data,url:H.location.href,route:n.getCurrentRoute(),timeAfterClickMs:a,endReason:u,clickCount:o||1}};this._addBreadcrumbEvent(n,l);return}if(o>1){const a={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.multiClick",data:{...c.data,url:H.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,a)}}
19_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Ft(()=>this._checkClicks(),1e3)}}const om=["A","BUTTON","INPUT"];function am(e,t){return!!(!om.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 cm(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Li(){return Date.now()/1e3}function um(e,t){try{if(!lm(t))return;const{source:n}=t.data;if(rm.has(n)&&e.registerMutation(t.timestamp),n===I.Scroll&&e.registerScroll(t.timestamp),dm(t)){const{type:r,id:s}=t.data,i=be.mirror.getNode(s);i instanceof HTMLElement&&r===ee.Click&&e.registerClick(i)}}catch{}}function lm(e){return e.type===Jh}function dm(e){return e.data.source===I.MouseInteraction}function ge(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var fs=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(fs||{});const fm=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function pm(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(fm.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const hm=e=>t=>{if(!e.isEnabled())return;const n=mm(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&sm(e.clickDetector,n,Da(t.event)),Ut(e,n)};function Na(e,t){const n=be.mirror.getId(e),r=n&&be.mirror.getNode(n),s=r&&be.mirror.getMeta(r),i=s&&_m(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===fs.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:pm(i.attributes)}}:{}}}function mm(e){const{target:t,message:n}=gm(e);return ge({category:`ui.${e.name}`,...Na(t,n)})}function gm(e){const t=e.name==="click";let n,r=null;try{r=t?Da(e.event):Aa(e.event),n=vn(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function _m(e){return e.type===fs.Element}function ym(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=Sm(t);n&&Ut(e,n)}function Sm(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||Em(o)||!i)return null;const c=t||r||s,a=i.length===1;if(!c&&a)return null;const u=vn(o,{maxStringLength:200})||"<unknown>",l=Na(o,u);return ge({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function Em(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const bm={resource:Tm,paint:wm,navigation:km};function sr(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}
19function vm(e){return e.map(Im).filter(Boolean)}function Im(e){const t=bm[e.entryType];return t?t(e):null}function st(e){return((kc()||H.performance.timeOrigin)+e)/1e3}function wm(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=st(s);return{type:n,name:r,start:i,end:i+t,data:void 0}}function km(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:st(p),end:st(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:f}}}function Tm(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:c,responseStatus:a,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:st(i),end:st(s),name:r,data:{size:u,statusCode:a,decodedBodySize:o,encodedBodySize:c}}}function Rm(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return ps(e,"largest-contentful-paint",n)}function Cm(e){return e.sources!==void 0}function Mm(e){const t=[],n=[];for(const r of e.entries)if(Cm(r)){const s=[];for(const i of r.sources)if(i.node){n.push(i.node);const o=be.mirror.getId(i.node);o&&s.push(o)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return ps(e,"cumulative-layout-shift",n,t)}function xm(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return ps(e,"interaction-to-next-paint",n)}function ps(e,t,n,r){const s=e.value,i=e.rating,o=st(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map(c=>be.mirror.getId(c)):void 0,attributions:r}}}function Om(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(tf(s,n))}),r.push(Zd(sr(Rm,e)),Qd(sr(Mm,e)),ef(sr(xm,e))),()=>{r.forEach(s=>s())}}const b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Dm='
vendor: 10,329 bytes, line 19
19var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
19';function Am(){const e=new Blob([Dm]);return URL.createObjectURL(e)}const Pi=["log","warn","error"],nn="[Replay] ";function ir(e,t="info"){Me({category:"console",data:{logger:"replay"},level:t,message:`${nn}${e}`},{level:t})}function Nm(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return b?(Pi.forEach(r=>{n[r]=(...s)=>{S[r](nn,...s),t&&ir(s.join(""),Uo(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),S.error(nn,r),e?Gr(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&ir(r,"error")},n.infoTick=(...r)=>{S.log(nn,...r),t&&setTimeout(()=>ir(r[0]),0)}):Pi.forEach(r=>{n[r]=()=>{}}),n}const v=Nm();class hs extends Error{constructor(){super(`Event buffer exceeded maximum size of ${is}.`)}}class La{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>is)throw new hs;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?ds(t):null}}class Lm{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():(b&&v.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{b&&v.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){b&&v.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,i)=>{const o=({data:c})=>{const a=c;if(a.method===t&&a.id===r){if(this._worker.removeEventListener("message",o),!a.success){b&&v.error("Error in compression worker: ",a.response),i(new Error("Error in compression worker"));return}s(a.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class Pm{constructor(t){this._worker=new Lm(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=ds(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>is?Promise.reject(new hs):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{b&&v.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 Fm{constructor(t){this._fallback=new La,this._compression=new Pm(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()}
19ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){b&&v.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const i of t)s.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(i){b&&v.exception(i,"Failed to add events when switching buffers.")}}}function Bm({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=Um(t);if(n)return n}return b&&v.log("Using simple buffer"),new La}function Um(e){try{const t=e||$m();if(!t)return;b&&v.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new Fm(n)}catch(t){b&&v.exception(t,"Failed to create compression worker")}}function $m(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Am():""}function ms(){try{return"sessionStorage"in H&&!!H.sessionStorage}catch{return!1}}function Hm(e){Wm(),e.session=void 0}function Wm(){if(ms())try{H.sessionStorage.removeItem(rs)}catch{}}function Pa(e){return e===void 0?!1:Math.random()<e}function An(e){if(ms())try{H.sessionStorage.setItem(rs,JSON.stringify(e))}catch{}}function Fa(e){const t=Date.now(),n=e.id||se(),r=e.started||t,s=e.lastActivity||t,i=e.segmentId||0,o=e.sampled,c=e.previousSessionId,a=e.dirty||!1;return{id:n,started:r,lastActivity:s,segmentId:i,sampled:o,previousSessionId:c,dirty:a}}function zm(e,t){return Pa(e)?"session":t?"buffer":!1}function Fi({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=zm(e,t),i=Fa({sampled:s,previousSessionId:r});return n&&An(i),i}function jm(){if(!ms())return null;try{const e=H.sessionStorage.getItem(rs);if(!e)return null;const t=JSON.parse(e);return b&&v.infoTick("Loading existing session"),Fa(t)}catch{return null}}function Ar(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Ba(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ar(e.started,t,r)||Ar(e.lastActivity,n,r)}function Ua(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Ba(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function or({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&jm();return s?Ua(s,{sessionIdleExpire:e,maxReplayDuration:t})?(b&&v.infoTick("Session in sessionStorage is expired, creating new one..."),Fi(r,{previousSessionId:s.id})):s:(b&&v.infoTick("Creating new session"),Fi(r,{previousSessionId:n}))}function qm(e){return e.type===C.Custom}function gs(e,t,n){return Ha(e,t)?($a(e,t,n),!0):!1}function Gm(e,t,n){return Ha(e,t)?$a(e,t,n):Promise.resolve(null)}async function $a(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=e.getOptions(),o=Vm(t,i.beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(i){const o=i&&i instanceof hs,c=o?"addEventSizeExceeded":"addEvent",a=j();if(a){const u=o?"buffer_overflow":"internal_sdk_error";a.recordDroppedEvent(u,"replay")}if(o&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:c})}}function Ha(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=ds(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(b&&v.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function Vm(e,t){try{if(typeof t=="function"&&qm(e))return t(e)}catch(n){return b&&v.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function _s(e){return!e.type}function Nr(e){return e.type==="transaction"}function Ym(e){return e.type==="replay_event"}function Bi(e){return e.type==="feedback"}function Km(e){return(t,n)=>{if(!e.isEnabled()||!_s(t)&&!Nr(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(Nr(t)){Xm(e,t);return}
19Jm(e,t)}}}function Xm(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function Jm(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)||Ft(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function Qm(e){return t=>{!e.isEnabled()||!_s(t)||Zm(e,t)}}function Zm(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=ge({category:"replay.hydrate-error",data:{url:In()}});Ut(e,r)}}function eg(e){const t=j();t&&t.on("beforeAddBreadcrumb",n=>tg(e,n))}function tg(e,t){if(!e.isEnabled()||!Wa(t))return;const n=ng(t);n&&Ut(e,n)}function ng(e){return!Wa(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?rg(e):ge(e)}function rg(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return ge(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>qt?(n=!0,`${s.slice(0,qt)}…`):s;if(typeof s=="object")try{const i=fe(s,7);return JSON.stringify(i).length>qt?(n=!0,`${JSON.stringify(i,null,2).slice(0,qt)}…`):i}catch{}return s});return ge({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Wa(e){return!!e.category}function sg(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function za(){const e=ie().getPropagationContext().dsc;e&&delete e.replay_id;const t=fo();if(t){const n=ho(t);delete n.replay_id}}function ig(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:C.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 og(e,t){return e.recordingMode!=="buffer"||t.message===ss||!t.exception||t.type?!1:Pa(e.getOptions().errorSampleRate)}function ag(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(Ym(t))return delete t.breadcrumbs,t;if(!_s(t)&&!Nr(t)&&!Bi(t))return t;if(!e.checkAndHandleExpiredSession())return za(),t;if(Bi(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),ig(e,t),t;if(sg(t,n)&&!e.getOptions()._experiments.captureExceptions)return b&&v.log("Ignoring error from rrweb internals",t),null;const s=og(e,t);if((s||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const o=e.session;o.dirty=!0,e.getOptions().stickySession&&An(o)}return t},{id:"Replay"})}function Nn(e,t){return t.map(({type:n,start:r,end:s,name:i,data:o})=>{const c=e.throttledAddEvent({type:C.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});return typeof c=="string"?Promise.resolve(null):c})}function cg(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 ug(e){return t=>{if(!e.isEnabled())return;const n=cg(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Nn(e,[n]),!1)))}}function lg(e,t){return b&&e.getOptions()._experiments.traceInternals?!1:Ol(t,j())}function ja(e,t){e.isEnabled()&&t!==null&&(lg(e,t.name)||e.addUpdate(()=>(Nn(e,[t]),!0)))}function Ln(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=sa(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function qa(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function _n(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 Ga(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:c,response:a}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:i,statusCode:o,request:c,response:a}}}function Rt(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Te(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=dg(n);return r.body=s,i?.length&&(r._meta={warnings:i}),r}function Lr(e,t){return Object.entries(e).reduce((n,[r,s])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=s),n},{})}function dg(e){if(!e||typeof e!="string")return{body:e};const t=e.length>yi,n=fg(e);if(t){const r=e.slice(0,yi);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 fg(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function yn(e,t){const n=pg(e);return At(n,t)}function pg(e,t=H.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(H.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 hg(e,t,n){try{const r=await gg(e,t,n),s=Ga("resource.fetch",r);ja(n.replay,s)}catch(r){b&&v.exception(r,"Failed to capture fetch breadcrumb")}}function mg(e,t){const{input:n,response:r}=t,s=n?oa(n):void 0,i=Ln(s),o=r?qa(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}async function gg(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:c,status_code:a=0,request_body_size:u,response_body_size:l}=e.data,d=yn(o,n.networkDetailAllowUrls)&&!yn(o,n.networkDetailDenyUrls),f=d?_g(n,t.input,u):Rt(u),p=await yg(d,n,t.response,l);return{startTimestamp:s,endTimestamp:i,url:o,method:c,statusCode:a,request:f,response:p}}function _g({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?bg(n,t):{};if(!e)return Te(s,r,void 0);const i=oa(n),[o,c]=ia(i,v),a=Te(s,r,o);return c?_n(a,c):a}async function yg(e,{networkCaptureBodies:t,networkResponseHeaders:n}
19,r,s){if(!e&&s!==void 0)return Rt(s);const i=r?Va(r.headers,n):{};if(!r||!t&&s!==void 0)return Te(i,s,void 0);const[o,c]=await Eg(r),a=Sg(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return c?_n(a,c):a}function Sg(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e?.length&&n===void 0?Ln(e):n;return r?t?Te(s,i,e):Te(s,i,void 0):Rt(i)}catch(i){return b&&v.exception(i,"Failed to serialize response body"),Te(s,n,void 0)}}async function Eg(e){const t=vg(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await Ig(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(b&&v.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(b&&v.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Va(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function bg(e,t){return e.length===1&&typeof e[0]!="string"?Ui(e[0],t):e.length===2?Ui(e[1],t):{}}function Ui(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Va(n,t):Array.isArray(n)?{}:Lr(n,t):{}}function vg(e){try{return e.clone()}catch(t){b&&v.exception(t,"Failed to clone response body")}}function Ig(e){return new Promise((t,n)=>{const r=Ft(()=>n(new Error("Timeout while trying to read response body")),500);wg(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function wg(e){return await e.text()}async function kg(e,t,n){try{const r=Rg(e,t,n),s=Ga("resource.xhr",r);ja(n.replay,s)}catch(r){b&&v.exception(r,"Failed to capture xhr breadcrumb")}}function Tg(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Ln(r),i=n.getResponseHeader("content-length")?qa(n.getResponseHeader("content-length")):xg(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}function Rg(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:c}=t,{url:a,method:u,status_code:l=0,request_body_size:d,response_body_size:f}=e.data;if(!a)return null;if(!c||!yn(a,n.networkDetailAllowUrls)||yn(a,n.networkDetailDenyUrls)){const M=Rt(d),g=Rt(f);return{startTimestamp:s,endTimestamp:i,url:a,method:u,statusCode:l,request:M,response:g}}const p=c[je],h=p?Lr(p.request_headers,n.networkRequestHeaders):{},m=Lr(Sf(c),n.networkResponseHeaders),[E,y]=n.networkCaptureBodies?ia(o,v):[void 0],[k,B]=n.networkCaptureBodies?Cg(c):[void 0],N=Te(h,d,E),W=Te(m,f,k);return{startTimestamp:s,endTimestamp:i,url:a,method:u,statusCode:l,request:y?_n(N,y):N,response:B?_n(W,B):W}}function Cg(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return Mg(e.response,e.responseType)}catch(n){t.push(n)}return b&&v.warn("Failed to get xhr response body",...t),[void 0]}function Mg(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 b&&v.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return b&&v.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function xg(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Ln(n)}catch{return}}function Og(e){const t=j();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),c={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(a,u)=>Dg(c,a,u))}catch{}}function Dg(e,t,n){if(t.data)try{Ag(t)&&Lg(n)&&(Tg(t,n),kg(t,n,e)),Ng(t)&&Pg(n)&&(mg(t,n),hg(t,n,e))}catch(r){b&&v.exception(r,"Error when enriching network breadcrumb")}}function Ag(e){return e.category==="xhr"}function Ng(e){return e.category==="fetch"}function Lg(e){return e?.xhr}function Pg(e){return e?.response}function Fg(e){const t=j();na(hm(e)),ns(ug(e)),eg(e),Og(e);const n=ag(e);Xu(n),t&&(t.on("beforeSendEvent",Qm(e)),t.on("afterSendEvent",Km(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,s)=>{const i=e.getSessionId();s?.includeReplay&&e.isEnabled()&&i&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=i)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function Bg(e){try{return Promise.all(Nn(e,[Ug(H.performance.memory)]))}catch{return[]}}function Ug(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function $g(e,t,n){return Ll(e,t,{...n,setTimeoutImpl:Ft})}const Kt=A.navigator;function Hg(){return/iPhone|iPad|iPod/i.test(Kt?.userAgent??"")||/Macintosh/i.test(Kt?.userAgent??"")&&Kt?.maxTouchPoints&&Kt?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function Wg(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){b&&v.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&um(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!gs(e,n,s))return!0;
19if(!s)return!1;const i=e.session;if(jg(e,s),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){const o=e.eventBuffer.getEarliestTimestamp();o&&(b&&v.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,e.getOptions().stickySession&&An(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function zg(e){const t=e.getOptions();return{type:C.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 jg(e,t){!t||!e.session||e.session.segmentId!==0||gs(e,zg(e),!1)}function qg(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Gg(e,t,n,r){return $e(go(e,jr(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function Vg({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
20`;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function Yg({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:s};e.emit("preprocessEvent",r,i);const o=await yo(e.getOptions(),r,i,t,e,ae());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const c=e.getSdkMetadata(),{name:a,version:u,settings:l}=c?.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0",settings:l},o}async function Kg({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=Vg({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:a,traceIds:u,initialTimestamp:l}=r,d=j(),f=ie(),p=d?.getTransport(),h=d?.getDsn();if(!d||!p||!h||!i.sampled)return Promise.resolve({});const m={type:kp,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:a,trace_ids:u,urls:c,replay_id:t,segment_id:n,replay_type:i.sampled},E=await Yg({scope:f,client:d,replayId:t,event:m});if(!E)return d.recordDroppedEvent("event_processor","replay"),b&&v.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete E.sdkProcessingMetadata;const y=Gg(E,o,h,d.getOptions().tunnel);let k;try{k=await p.send(y)}catch(N){const W=new Error(ss);try{W.cause=N}catch{}throw W}const B=xo({},k);if(Mo(B,"replay"))throw new ys(B);if(typeof k.statusCode=="number"&&(k.statusCode<200||k.statusCode>=300))throw new Ya(k.statusCode);return k}class Ya extends Error{constructor(t){super(`Transport returned status code ${t}`)}}
20class ys extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class $i extends Error{constructor(){super("Session is too long, not sending replay")}}async function Ka(e,t={count:0,interval:Op}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Kg(e),!0}catch(s){if(s instanceof Ya||s instanceof ys)throw s;if(Eo("Replays",{_retryCount:t.count}),r&&r(s),t.count>=Dp){const i=new Error(`${ss} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{Ft(async()=>{try{await Ka(e,t),i(!0)}catch(c){o(c)}},t.interval)})}}const Xa="__THROTTLED",Xg="__SKIPPED";function Jg(e,t,n){const r=new Map,s=c=>{const a=c-n;r.forEach((u,l)=>{l<a&&r.delete(l)})},i=()=>[...r.values()].reduce((c,a)=>c+a,0);let o=!1;return(...c)=>{const a=Math.floor(Date.now()/1e3);if(s(a),i()>=t){const l=o;return o=!0,l?Xg:Xa}o=!1;const u=r.get(a)||0;return r.set(a,u+1),e(...c)}}class Qg{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Tp,sessionIdleExpire:Rp},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=$g(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Jg((o,c)=>Gm(this,o,c),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),i=r?{threshold:Math.min(Ap,r),timeout:r,scrollTimeout:Np,ignoreSelector:s?s.join(","):""}:void 0;if(i&&(this.clickDetector=new im(this,i)),b){const o=t._experiments;v.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{H.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const o=ge({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=ge({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{ym(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){b&&v.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){b&&v.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",b&&v.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){b&&v.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){b&&v.log("Buffering is in progress, call `flush()` to save the replay");return}b&&v.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=or({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){b&&v.log("Buffering is in progress, call `flush()` to save the replay");return}b&&v.infoTick("Starting replay in buffer mode");const t=or({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=be({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:xp}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Wg(this),...Hg(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{b&&v.log(`Stopping Replay${n?` triggered by ${n}`:""}`),za(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Hm(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),b&&v.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),b&&v.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();b&&v.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}
20checkAndHandleExpiredSession(){if(this._lastActivity&&Ar(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${H.location.pathname}${H.location.hash}${H.location.search}`,n=`${H.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===Xa){const s=ge({category:"replay.throttled"});this.addUpdate(()=>!gs(this,{type:Qh,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||fo(),n=t&&Wr(t),s=(n&&Et(n).data||{})[so];if(!(!n||!s||!["route","custom"].includes(s)))return Et(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Bm({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=or({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 Ua(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{H.document.addEventListener("visibilitychange",this._handleVisibilityChange),H.addEventListener("blur",this._handleWindowBlur),H.addEventListener("focus",this._handleWindowFocus),H.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Fg(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=Om(this)}_removeListeners(){try{H.document.removeEventListener("visibilitychange",this._handleVisibilityChange),H.removeEventListener("blur",this._handleWindowBlur),H.removeEventListener("focus",this._handleWindowFocus),H.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||Ba(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()){b&&v.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:C.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=vm(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(Nn(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)}
20_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){b&&v.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await Bg(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new $i;const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await Ka({replayId:t,recordingData:i,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:o=>this.handleException(o)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=j();if(r){let s;n instanceof ys?s="ratelimit_backoff":n instanceof $i?s="invalid":s="send_error",r.recordDroppedEvent(s,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){b&&v.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const i=s<this._options.minReplayDuration,o=s>this._options.maxReplayDuration+5e3;if(i||o){b&&v.log(`Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const c=this.eventBuffer;c&&this.session.segmentId===0&&!c.hasCheckout&&b&&v.log("Flushing initial segment without checkout.");const a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&An(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(c=>{const a=qg(c.target),u=n.join(",");return a?.matches(u)}))return!1;const r=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=s&&r>s;if(r>i||o){const c=ge({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(c)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function pt(e,t){return[...e,...t].join(",")}function Zg({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const i=["base","iframe[srcdoc]:not([src])"],o=pt(e,[".sentry-mask","[data-sentry-mask]"]),c=pt(t,[]);return{maskTextSelector:o,unmaskTextSelector:c,blockSelector:pt(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:pt(r,[]),ignoreSelector:pt(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function e_({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Hi='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',t_=["content-length","content-type","accept"],n_=Symbol.for("sentry__originalRequestBody");let Wi=!1,zi=!1;function r_(){if(typeof Request>"u"||zi)return;const e=Request;try{const t=function(n,r){const s=new e(n,r);return r?.body!=null&&(s[n_]=r.body),s};t.prototype=e.prototype,A.Request=t,zi=!0}catch{}}const f_=e=>new s_(e);class s_{constructor({flushMinDelay:t=Cp,flushMaxDelay:n=Mp,minReplayDuration:r=Lp,maxReplayDuration:s=Si,stickySession:i=!0,useCompression:o=!0,workerUrl:c,_experiments:a={},maskAllText:u=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:E=[],networkDetailDenyUrls:y=[],networkCaptureBodies:k=!0,networkRequestHeaders:B=[],networkResponseHeaders:N=[],mask:W=[],maskAttributes:M=["title","placeholder","aria-label"],unmask:g=[],block:x=[],unblock:K=[],ignore:_=[],maskFn:T,beforeAddRecordingEvent:U,beforeErrorSampling:V,onError:X,attachRawBodyFromRequest:ce=!1}={}){this.name="Replay";const Q=Zg({mask:W,unmask:g,block:x,unblock:K,ignore:_});if(this._recordingOptions={maskAllInputs:l,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(Z,R,oe)=>e_({maskAttributes:M,maskAllText:u,privacyOptions:Q,key:Z,value:R,el:oe}),...Q,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:Z=>{try{Z.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,Pp),maxReplayDuration:Math.min(s,Si),stickySession:i,useCompression:o,workerUrl:c,blockAllMedia:d,maskAllInputs:l,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:E,networkDetailDenyUrls:y,networkCaptureBodies:k,networkRequestHeaders:ji(B),networkResponseHeaders:ji(N),beforeAddRecordingEvent:U,beforeErrorSampling:V,onError:X,attachRawBodyFromRequest:ce,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Hi}`:Hi,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&fi())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Wi}set _isInitialized(t){Wi=t}afterAllSetup(t){!fi()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&r_(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
20startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=i_(this._initialOptions,t);this._replay=new Qg({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function i_(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=fr(n.replaysSessionSampleRate),i=fr(n.replaysOnErrorSampleRate);return s==null&&i==null&&Fe(()=>{}),s!=null&&(r.sessionSampleRate=s),i!=null&&(r.errorSampleRate=i),r}function ji(e){return[...t_,...e.map(t=>t.toLowerCase())]}function p_(e){const t={...e};return Fo(t,"react"),Eo("react",{version:ht.version}),wp(t)}function o_(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function a_(e,t){const n=new WeakSet;function r(s,i){if(!n.has(s)){if(s.cause)return n.add(s),r(s.cause,i);s.cause=i}}r(e,t)}function c_(e,{componentStack:t},n){if(o_(ht.version)&&Mt(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,a_(e,r)}return Hr(r=>(r.setContext("react",{componentStack:t}),Gr(e,n)))}const u_=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ar={componentStack:null,error:null,eventId:null};class h_ extends ht.Component{constructor(t){super(t),this.state=ar,this._openFallbackReportDialog=!0;const n=j();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&_i({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:s,onError:i,showDialog:o,dialogOptions:c}=this.props;Hr(a=>{s&&s(a,t,r);const u=this.props.handled!=null?this.props.handled:!!this.props.fallback,l=c_(t,n,{mechanism:{handled:u,type:"auto.function.react.error_boundary"}});i&&i(t,r,l),o&&(this._lastEventId=l,this._openFallbackReportDialog&&_i({...c,eventId:l})),this.setState({error:t,componentStack:r,eventId:l})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:s}=this.props;s&&(this.state===ar?s(null,null,null):s(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:s}=this.state;t&&t(n,r,s),this.setState(ar)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const s=typeof t=="function"?ht.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return ht.isValidElement(s)?s:(t&&u_&&S.warn("fallback did not produce a valid ReactElement"),null)}}export{h_ as E,d_ as a,Gr as c,p_ as i,f_ as r,Eo as s};
21//# sourceMappingURL=vendor-sentry-DakCpbCX.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.