PageSourceSearch

https://www.havest.kr/en/chunk-HF5QMHRU.js

js havest.kr collected 2026-10-09 04:25:47 UTC 292,775 bytes, 32 lines download raw bytes

1import{Y as Is,k as su,l as gt,m as St,n as bs}from"./chunk-JGF2TGA4.js";import{a as p,b,c as Fo,g as z}from"./chunk-BTULGOEF.js";var v=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var A=globalThis;var Ct="10.36.0";function Xe(){return mn(A),A}function mn(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ct,t[Ct]=t[Ct]||{}}function _t(e,t,n=A){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[Ct]=r[Ct]||{};return o[e]||(o[e]=t())}var Rs=["debug","info","warn","error","log","assert","trace"],Mp="Sentry Logger ",Pn={};function Le(e){if(!("console"in A))return e();let t=A.console,n={},r=Object.keys(Pn);r.forEach(o=>{let i=Pn[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function Lp(){xs().enabled=!0}function Op(){xs().enabled=!1}function au(){return xs().enabled}function Dp(...e){ws("log",...e)}function Pp(...e){ws("warn",...e)}function Fp(...e){ws("error",...e)}function ws(e,...t){v&&au()&&Le(()=>{A.console[e](`${Mp}[${e}]:`,...t)})}function xs(){return v?_t("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var S={enable:Lp,disable:Op,isEnabled:au,log:Dp,warn:Pp,error:Fp};var cu=/\(error: (.*)\)/,uu=/captureMessage|captureException/;function Bo(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(`
2`);for(let c=r;c<s.length;c++){let a=s[c];a.length>1024&&(a=a.slice(0,1024));let u=cu.test(a)?a.replace(cu,"$1"):a;if(!u.match(/\S*Error: /)){for(let l of t){let d=l(u);if(d){i.push(d);break}}if(i.length>=50+o)break}}return du(i.slice(o))}}function As(e){return Array.isArray(e)?Bo(...e):e}function du(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Uo(t).function||"")&&t.pop(),t.reverse(),uu.test(Uo(t).function||"")&&(t.pop(),uu.test(Uo(t).function||"")&&t.pop()),t.slice(0,50).map(n=>b(p({},n),{filename:n.filename||Uo(t).filename,function:n.function||"?"}))}function Uo(e){return e[e.length-1]||{}}var Cs="<anonymous>";function $e(e){try{return!e||typeof e!="function"?Cs:e.name||Cs}catch(t){return Cs}}function Ho(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch(r){return}}}function Wo(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}var $o={},lu={};function Ae(e,t){$o[e]=$o[e]||[],$o[e].push(t)}function ke(e,t){if(!lu[e]){lu[e]=!0;try{t()}catch(n){v&&S.error(`Error while instrumenting ${e}`,n)}}}function Ee(e,t){let n=e&&$o[e];if(n)for(let r of n)try{r(t)}catch(o){v&&S.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${$e(r)}
5Error:`,o)}}var ks=null;function Rr(e){let t="error";Ae(t,e),ke(t,Up)}function Up(){ks=A.onerror,A.onerror=function(e,t,n,r,o){return Ee("error",{column:r,error:o,line:n,msg:e,url:t}),ks?ks.apply(this,arguments):!1},A.onerror.__SENTRY_INSTRUMENTED__=!0}var Ns=null;function wr(e){let t="unhandledrejection";Ae(t,e),ke(t,Bp)}function Bp(){Ns=A.onunhandledrejection,A.onunhandledrejection=function(e){return Ee("unhandledrejection",e),Ns?Ns.apply(this,arguments):!0},A.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var fu=Object.prototype.toString;function Ht(e){switch(fu.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Je(e,Error)}}function Fn(e,t){return fu.call(e)===`[object ${t}]`}function xr(e){return Fn(e,"ErrorEvent")}function Go(e){return Fn(e,"DOMError")}function Ms(e){return Fn(e,"DOMException")}function Ne(e){return Fn(e,"String")}function hn(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function yt(e){return e===null||hn(e)||typeof e!="object"&&typeof e!="function"}function At(e){return Fn(e,"Object")}function gn(e){return typeof Event<"u"&&Je(e,Event)}function Ls(e){return typeof Element<"u"&&Je(e,Element)}function Os(e){return Fn(e,"RegExp")}function ot(e){return!!(e?.then&&typeof e.then=="function")}function Ds(e){return At(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Je(e,t){try{return e instanceof t}catch(n){return!1}}function Cr(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function Ar(e){return typeof Request<"u"&&Je(e,Request)}var Ps=A,Hp=80;function he(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,c=" > ",a=c.length,u,l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Hp;for(;n&&i++<r&&(u=Wp(n,l),!(u==="html"||i>1&&s+o.length*a+u.length>=d));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(c)}catch(n){return"<unknown>"}}function Wp(e,t){let n=e,r=[];if(!n?.tagName)return"";if(Ps.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let o=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;
5if(o?.length)o.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&Ne(s)){let c=s.split(/\s+/);for(let a of c)r.push(`.${a}`)}}let i=["aria-label","type","name","title","alt"];for(let s of i){let c=n.getAttribute(s);c&&r.push(`[${s}="${c}"]`)}return r.join("")}function Ke(){try{return Ps.document.location.href}catch(e){return""}}function kr(e){if(!Ps.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Se(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!="function")return;let o=n(r);typeof o=="function"&&zo(o,r);try{e[t]=o}catch(i){v&&S.log(`Failed to replace method "${t}" in object`,e)}}function le(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){v&&S.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function zo(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,le(e,"__sentry_original__",t)}catch(n){}}function Sn(e){return e.__sentry_original__}function jo(e){if(Ht(e))return p({message:e.message,name:e.name,stack:e.stack},mu(e));if(gn(e)){let t=p({type:e.type,target:pu(e.target),currentTarget:pu(e.currentTarget)},mu(e));return typeof CustomEvent<"u"&&Je(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function pu(e){try{return Ls(e)?he(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}}function mu(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Fs(e){let t=Object.keys(jo(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}var Un;function _n(e){if(Un!==void 0)return Un?Un(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=A;return t in n&&typeof n[t]=="function"?(Un=n[t],Un(e)):(Un=null,e())}function it(){return _n(()=>Math.random())}function yn(){return _n(()=>Date.now())}function Bn(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Vo(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{Cr(o)?n.push(Wo(o)):n.push(String(o))}catch(i){n.push("[value cannot be serialized]")}}return n.join(t)}function Hn(e,t,n=!1){return Ne(e)?Os(t)?t.test(e):Ne(t)?n?e===t:e.includes(t):!1:!1}function Ge(e,t=[],n=!1){return t.some(r=>Hn(e,r,n))}function $p(){let e=A;return e.crypto||e.msCrypto}var Us;function Gp(){return it()*16}function _e(e=$p()){try{if(e?.randomUUID)return _n(()=>e.randomUUID()).replace(/-/g,"")}catch(t){}return Us||(Us="10000000100040008000"+1e11),Us.replace(/[018]/g,t=>(t^(Gp()&15)>>t/4).toString(16))}function hu(e){return e.exception?.values?.[0]}function kt(e){let{message:t,event_id:n}=e;if(t)return t;let r=hu(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Wn(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Nt(e,t){let n=hu(e);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism=p(p(p({},r),o),t),t&&"data"in t){let i=p(p({},o?.data),t.data);n.mechanism.data=i}}function Yo(e){if(zp(e))return!0;try{le(e,"__sentry_captured__",!0)}catch(t){}return!1}function zp(e){try{return e.__sentry_captured__}catch(t){}}var Su=1e3;function Ze(){return yn()/Su}function jp(){let{performance:e}=A;if(!e?.now||!e.timeOrigin)return Ze;let t=e.timeOrigin;return()=>(t+_n(()=>e.now()))/Su}var gu;function ne(){return(gu??(gu=jp()))()}var Bs=null;function Vp(){let{performance:e}=A;if(!e?.now)return;let t=3e5,n=_n(()=>e.now()),r=yn(),o=e.timeOrigin;if(typeof o=="number"&&Math.abs(o+n-r)<t)return o;let i=e.timing?.navigationStart;return typeof i=="number"&&Math.abs(i+n-r)<t?i:r-n}function me(){return Bs===null&&(Bs=Vp()),Bs}function _u(e){let t=ne(),n={sid:_e(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Yp(n)};return e&&Wt(n,e),n}function Wt(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||ne(),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:_e()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
5ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function yu(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Wt(e,n)}function Yp(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 Jt(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r=p({},e);for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Jt(r[o],t[o],n-1));return r}function Oe(){return _e()}function Me(){return _e().substring(16)}var Hs="_sentrySpan";function $t(e,t){t?le(e,Hs,t):delete e[Hs]}function En(e){return e[Hs]}var qp=100,ze=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:Oe(),sampleRand:it()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags=p({},this._tags),t._attributes=p({},this._attributes),t._extra=p({},this._extra),t._contexts=p({},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=p({},this._sdkProcessingMetadata),t._propagationContext=p({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,$t(t,En(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&&Wt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags=p(p({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes=p(p({},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=p(p({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,n){return this._extra=b(p({},this._extra),{[t]:n}),this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t=="function"?t(this):t,r=n instanceof e?n.getScopeData():At(n)?t:void 0,{tags:o,attributes:i,extra:s,user:c,contexts:a,level:u,fingerprint:l=[],propagationContext:d}=r||{};return this._tags=p(p({},this._tags),o),this._attributes=p(p({},this._attributes),i),this._extra=p(p({},this._extra),s),this._contexts=p(p({},this._contexts),a),c&&Object.keys(c).length&&(this._user=c),u&&(this._level=u),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),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,$t(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Oe(),sampleRand:it()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:qp;if(r<=0)return this;let o=b(p({timestamp:Ze()},t),{message:t.message?Bn(t.message,2048):t.message});return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:En(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Jt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n?.event_id||_e();if(!this._client)return v&&S.warn("No client configured on scope - will not capture exception!"),r;let o=new Error("Sentry syntheticException");return this._client.captureException(t,b(p({originalException:t,syntheticException:o},n),{event_id:r}),this),r}captureMessage(t,n,r){let o=r?.event_id||_e();if(!this._client)return v&&S.warn("No client configured on scope - will not capture message!"),o;let i=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,b(p({originalException:t,syntheticException:i},r),{event_id:o}),this),o}captureEvent(t,n){let r=n?.event_id||_e();return this._client?(this._client.captureEvent(t,b(p({},n),{event_id:r}),this),r):(v&&S.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
5h(t=>{t(this)}),this._notifyingListeners=!1)}};function Eu(){return _t("defaultCurrentScope",()=>new ze)}function Tu(){return _t("defaultIsolationScope",()=>new ze)}var Ws=class{constructor(t,n){let r;t?r=t:r=new ze;let o;n?o=n:o=new ze,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){let n=this._pushScope(),r;try{r=t(n)}catch(o){throw this._popScope(),o}return ot(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function $n(){let e=Xe(),t=mn(e);return t.stack=t.stack||new Ws(Eu(),Tu())}function Xp(e){return $n().withScope(e)}function Jp(e,t){let n=$n();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function vu(e){return $n().withScope(()=>e($n().getIsolationScope()))}function bu(){return{withIsolationScope:vu,withScope:Xp,withSetScope:Jp,withSetIsolationScope:(e,t)=>vu(t),getCurrentScope:()=>$n().getScope(),getIsolationScope:()=>$n().getIsolationScope()}}function Mt(e){let t=mn(e);return t.acs?t.acs:bu()}function D(){let e=Xe();return Mt(e).getCurrentScope()}function we(){let e=Xe();return Mt(e).getIsolationScope()}function qo(){return _t("globalScope",()=>new ze)}function Kt(...e){let t=Xe(),n=Mt(t);if(e.length===2){let[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function k(){return D().getClient()}function $s(e){let t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,i={trace_id:n,span_id:o||Me()};return r&&(i.parent_span_id=r),i}var ye="sentry.source",Zt="sentry.sample_rate",Nr="sentry.previous_trace_sample_rate",be="sentry.op",X="sentry.origin",Qt="sentry.idle_span_finish_reason",Lt="sentry.measurement_unit",Ot="sentry.measurement_value",Mr="sentry.custom_span_name",Gn="sentry.profile_id",st="sentry.exclusive_time";var Gs="sentry.link.type";function zs(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"internal_error"}}function zn(e,t){e.setAttribute("http.response.status_code",t);let n=zs(t);n.message!=="unknown_error"&&e.setStatus(n)}var Iu="_sentryScope",Ru="_sentryIsolationScope";function Kp(e){try{let t=A.WeakRef;if(typeof t=="function")return new t(e)}catch(t){}return e}function Zp(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch(t){return}return e}}function wu(e,t,n){e&&(le(e,Ru,Kp(n)),le(e,Iu,t))}function Tn(e){let t=e;return{scope:t[Iu],isolationScope:Zp(t[Ru])}}var Xo="sentry-",Qp=/^sentry-/,em=8192;function Jo(e){let t=tm(e);if(!t)return;let n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(Qp)){let s=o.slice(Xo.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function js(e){if(!e)return;let t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${Xo}${r}`]=o),n),{});return nm(t)}function tm(e){if(!(!e||!Ne(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{let r=xu(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):xu(e)}function xu(e){return e.split(",").map(t=>{let n=t.indexOf("=");if(n===-1)return[];let r=t.slice(0,n),o=t.slice(n+1);return[r,o].map(i=>{try{return decodeURIComponent(i.trim())}catch(s){return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function nm(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{let i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=o===0?i:`${t},${i}`;return s.length>em?(v&&S.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}
5var rm=/^o(\d+)\./,om=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function im(e){return e==="http"||e==="https"}function Et(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:a}=e;return`${c}://${a}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function sm(e){let t=om.exec(e);if(!t){Le(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i="",s="",c=""]=t.slice(1),a="",u=c,l=u.split("/");if(l.length>1&&(a=l.slice(0,-1).join("/"),u=l.pop()),u){let d=u.match(/^\d+/);d&&(u=d[0])}return Cu({host:i,pass:o,path:a,projectId:u,port:s,protocol:n,publicKey:r})}function Cu(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function am(e){if(!v)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(S.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?im(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 cm(e){return e.match(rm)?.[1]}function Au(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=cm(n)),r}function ku(e){let t=typeof e=="string"?sm(e):Cu(e);if(!(!t||!am(t)))return t}function Qe(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}var Ko=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Nu(e){if(!e)return;let t=e.match(Ko);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Vs(e,t){let n=Nu(e),r=Jo(t);if(!n?.traceId)return{traceId:Oe(),sampleRand:it()};let o=um(n,r);r&&(r.sample_rand=o.toString());let{traceId:i,parentSpanId:s,parentSampled:c}=n;return{traceId:i,parentSpanId:s,sampled:c,dsc:r||{},sampleRand:o}}function Lr(e=Oe(),t=Me(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Or(e=Oe(),t=Me(),n){return`00-${e}-${t}-${n?"01":"00"}`}function um(e,t){let n=Qe(t?.sample_rand);if(n!==void 0)return n;let r=Qe(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?it()*r:r+it()*(1-r):it()}var Zo=0,Qo=1,Mu=!1;function Du(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:c,links:a}=O(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:c,links:a}}function qs(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:O(e).parent_span_id,i=Tn(e).scope,s=r?i?.getPropagationContext().propagationSpanId||Me():t;return{parent_span_id:o,span_id:s,trace_id:n}}function ei(e){let{traceId:t,spanId:n}=e.spanContext(),r=et(e);return Lr(t,n,r)}function Pu(e){let{traceId:t,spanId:n}=e.spanContext(),r=et(e);return Or(t,n,r)}function ti(e){if(e&&e.length>0)return e.map(s=>{var c=s,{context:a}=c,u=a,{spanId:t,traceId:n,traceFlags:r}=u,o=Fo(u,["spanId","traceId","traceFlags"]),{attributes:i}=c;return p({span_id:t,trace_id:n,sampled:r===Qo,attributes:i},o)})}function Tt(e){return typeof e=="number"?Lu(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Lu(e.getTime()):ne()}function Lu(e){return e>9999999999?e/1e3:e}function O(e){if(fm(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(lm(e)){let{attributes:r,startTime:o,name:i,endTime:s,status:c,links:a}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:u,start_timestamp:Tt(o),timestamp:Tt(s)||void 0,status:ni(c),op:r[be],origin:r[X],links:ti(a)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function lm(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function fm(e){return typeof e.getSpanJSON=="function"}function et(e){let{traceFlags:t}=e.spanContext();return t===Qo}function ni(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"internal_error"}var vn="_sentryChildSpans",Ys="_sentryRootSpan";function ri(e,t){let n=e[Ys]||e;le(t,Ys,n),e[vn]?e[vn].add(t):le(e,vn,new Set([t]))}function Fu(e,t){e[vn]&&e[vn].delete(t)}function en(e){let t=new Set;function n(r){if(!t.has(r)&&et(r)){t.add(r);let o=r[vn]?Array.from(r[vn]):[];for(let i of o)n(i)}}return n(e),Array.from(t)}function Z(e){return e[Ys]||e}function re(){let e=Xe(),t=Mt(e);return t.getActiveSpan?t.getActiveSpan():En(D())}function Dr(){Mu||(Le(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Mu=!0)}var Uu=!1;function oi(){if(Uu)return;function e(){let t=re(),n=t&&Z(t);if(n){let r="internal_error";v&&S.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:2,message:r})}}e.tag="sentry_tracingErrorCallback",Uu=!0,Rr(e),wr(e)}function Ie(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let t=e||k()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Bu(e){S.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function bn(e,t){if(!t?.length||!e.description)return!1;for(let n of t){if(pm(n)){if(Hn(e.description,n))return v&&Bu(e),!0;continue}if(!n.name&&!n.op)continue;let r=n.name?Hn(e.description,n.name):!0,o=n.op?e.op&&Hn(e.op,n.op):!0;if(r&&o)return v&&Bu(e),!0}return!1}function Hu(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function pm(e){return typeof e=="string"||e instanceof RegExp}var jn="production";var Wu="_frozenDsc";function Vn(e,t){le(e,Wu,t)}function Xs(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||jn,release:n.release,public_key:r,trace_id:e,org_id:Au(t)};return t.emit("createDsc",o),o}function Pr(e,t){let n=t.getPropagationContext();return n.dsc||Xs(n.traceId,e)}function xe(e){let t=k();if(!t)return{};let n=Z(e),r=O(n),o=r.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Zt]??o[Nr];function c(h){return(typeof s=="number"||typeof s=="string")&&(h.sample_rate=`${s}`),h}let a=n[Wu];if(a)return c(a);let u=i?.get("sentry.dsc"),l=u&&Jo(u);if(l)return c(l);let d=Xs(e.spanContext().traceId,t),f=o[ye],m=r.description;return f!=="url"&&m&&(d.transaction=m),Ie()&&(d.sampled=String(et(n)),d.sample_rand=i?.get("sentry.sample_rand")??Tn(n).scope?.getPropagationContext().sampleRand.toString()),c(d),t.emit("createDsc",d,n),d}var De=class{constructor(t={}){this._traceId=t.traceId||Oe(),this._spanId=t.spanId||Me()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Zo}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
5addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}};function Pe(e,t=100,n=1/0){try{return Js("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ii(e,t=3,n=100*1024){let r=Pe(e,t);return Sm(r)>n?ii(e,t-1,n):r}function Js(e,t,n=1/0,r=1/0,o=_m()){let[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;let c=mm(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;let 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 ~]";let u=t;if(u&&typeof u.toJSON=="function")try{let m=u.toJSON();return Js("",m,a-1,r,o)}catch(m){}let l=Array.isArray(t)?[]:{},d=0,f=jo(t);for(let m in f){if(!Object.prototype.hasOwnProperty.call(f,m))continue;if(d>=r){l[m]="[MaxProperties ~]";break}let h=f[m];l[m]=Js(m,h,a-1,r,o),d++}return s(t),l}function mm(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(Cr(t))return Wo(t);if(Ds(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${$e(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=hm(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function hm(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function gm(e){return~-encodeURI(e).split(/%..|./).length}function Sm(e){return gm(JSON.stringify(e))}function _m(){let e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function Fe(e,t=[]){return[e,t]}function Zs(e,t){let[n,r]=e;return[n,[...r,t]]}function Fr(e,t){let n=e[1];for(let r of n){let o=r[0].type;if(t(r,o))return!0}return!1}function Qs(e,t){return Fr(e,(n,r)=>t.includes(r))}function Ks(e){let t=mn(A);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function ea(e){let[t,n]=e,r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[Ks(r),i]:r.push(typeof i=="string"?Ks(i):i)}for(let i of n){let[s,c]=i;if(o(`
6${JSON.stringify(s)}
7`),typeof c=="string"||c instanceof Uint8Array)o(c);else{let a;try{a=JSON.stringify(c)}catch(u){a=JSON.stringify(Pe(c))}o(a)}}return typeof r=="string"?r:ym(r)}function ym(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function ta(e){return[{type:"span"},e]}function na(e){let t=typeof e.data=="string"?Ks(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Em={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 si(e){return Em[e]}function Yn(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ur(e,t,n,r){let o=e.sdkProcessingMetadata?.dynamicSamplingContext;return p(p(p({event_id:e.event_id,sent_at:new Date().toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:Et(r)}),o&&{trace:o})}function Tm(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk=b(p({},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?p(p({},e.sdk?.settings),t.settings):void 0}),e}function $u(e,t,n,r){let o=Yn(n),i=p(p({sent_at:new Date().toISOString()},o&&{sdk:o}),!!r&&t&&{dsn:Et(t)}),s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Fe(i,[s])}function Gu(e,t,n,r){let o=Yn(n),i=e.type&&e.type!=="replay_event"?e.type:"event";Tm(e,n?.sdk);let s=Ur(e,o,r,t);return delete e.sdkProcessingMetadata,Fe(s,[[{type:i},e]])}function zu(e,t){function n(m){return!!m.trace_id&&!!m.public_key}let r=xe(e[0]),o=t?.getDsn(),i=t?.getOptions().tunnel,s=p(p({sent_at:new Date().toISOString()},n(r)&&{trace:r}),!!i&&o&&{dsn:Et(o)}),{beforeSendSpan:c,ignoreSpans:a}=t?.getOptions()||{},u=a?.length?e.filter(m=>!bn(O(m),a)):e,l=e.length-u.length;l&&t?.recordDroppedEvent("before_send","span",l);let d=c?m=>{let h=O(m),g=c(h);return g||(Dr(),h)}:O,f=[];for(let m of u){let h=d(m);h&&f.push(ta(h))}return Fe(s,f)}function ju(e){if(!v)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=O(e),{spanId:o}=e.spanContext(),i=et(e),s=Z(e),c=s===e,a=`[Tracing] Starting ${i?"sampled":"unsampled"} ${c?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&u.push(`parent ID: ${r}`),!c){let{op:l,description:d}=O(s);u.push(`root ID: ${s.spanContext().spanId}`),l&&u.push(`root op: ${l}`),d&&u.push(`root description: ${d}`)}S.log(`${a}
8  ${u.join(`
9  `)}`)}function Vu(e){if(!v)return;let{description:t="< unknown name >",op:n="< unknown op >"}=O(e),{spanId:r}=e.spanContext(),i=Z(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;S.log(s)}function ai(e,t,n,r=re()){let o=r&&Z(r);o&&(v&&S.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[Ot]:t,[Lt]:n}))}function ci(e){if(!e||e.length===0)return;let t={};return e.forEach(n=>{let r=n.attributes||{},o=r[Lt],i=r[Ot];
9typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}var Yu=1e3,nn=class{constructor(t={}){this._traceId=t.traceId||Oe(),this._spanId=t.spanId||Me(),this._startTime=t.startTimestamp||ne(),this._links=t.links,this._attributes={},this.setAttributes(p({[X]:"manual",[be]:t.op},t.attributes)),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){let{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Qo:Zo}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Tt(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(ye,"custom"),this}end(t){this._endTime||(this._endTime=Tt(t),Vu(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[be],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ni(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[X],profile_id:this._attributes[Gn],exclusive_time:this._attributes[st],measurements:ci(this._events),is_segment:this._isStandaloneSpan&&Z(this)===this||void 0,segment_id:this._isStandaloneSpan?Z(this).spanContext().spanId:void 0,links:ti(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){v&&S.log("[Tracing] Adding an event to span:",t);let o=qu(n)?n:r||ne(),i=qu(n)?{}:n||{},s={name:t,time:Tt(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=k();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Z(this)))return;if(this._isStandaloneSpan){this._sampled?bm(zu([this],t)):(v&&S.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}let r=this._convertSpanToTransaction();r&&(Tn(this).scope||D()).captureEvent(r)}_convertSpanToTransaction(){if(!Xu(O(this)))return;this._name||(v&&S.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=Tn(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let i=en(this).filter(l=>l!==this&&!vm(l)).map(l=>O(l)).filter(Xu),s=this._attributes[ye];delete this._attributes[Mr],i.forEach(l=>{delete l.data[Mr]});let c=p({contexts:{trace:Du(this)},spans:i.length>Yu?i.sort((l,d)=>l.start_timestamp-d.start_timestamp).slice(0,Yu):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:xe(this)},request:r},s&&{transaction_info:{source:s}}),a=ci(this._events);return a&&Object.keys(a).length&&(v&&S.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),c.measurements=a),c}};function qu(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Xu(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function vm(e){return e instanceof nn&&e.isStandaloneSpan()}function bm(e){let t=k();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Ju(e,t,n=()=>{},r=()=>{}){let o;try{o=e()}catch(i){throw t(i),n(),i}return Im(o,t,n,r)}function Im(e,t,n,r){return ot(e)?e.then(o=>(n(),r(o),o),o=>{throw t(o),n(),o}):(n(),r(e),e)}function Ku(e,t,n){if(!Ie(e))return[!1];let r,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler(b(p({},t),{inheritOrSampleWith:c=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):c})),r=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,r=!0);let i=Qe(o);if(i===void 0)return v&&S.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return v&&S.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,r];let s=n<i;return s||v&&S.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,r]}var Qu="__SENTRY_SUPPRESS_TRACING__";function ui(e,t){let n=ra();if(n.startSpan)return n.startSpan(e,t);let r=td(e),{forceTransaction:o,parentSpan:i,scope:s}=e,c=s?.clone();return Kt(c,()=>wm(i)(()=>{let u=D(),l=nd(u,i),f=e.onlyIfParent&&!l?new De:ed({parentSpan:l,spanArguments:r,forceTransaction:o,scope:u});return $t(u,f),Ju(()=>t(f),()=>{let{status:m}=O(f);f.isRecording()&&(!m||m==="ok")&&f.setStatus({code:2,message:"internal_error"})},()=>{f.end()})}))}function je(e){let t=ra();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=td(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?s=>Kt(e.scope,s):o!==void 0?s=>qn(o,s):s=>s())(()=>{let s=D(),c=nd(s,o);return e.onlyIfParent&&!c?new De:ed({parentSpan:c,spanArguments:n,forceTransaction:r,scope:s})})}function qn(e,t){let n=ra();return n.withActiveSpan?n.withActiveSpan(e,t):Kt(r=>($t(r,e||void 0),t(r)))}function ed({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Ie()){let s=new De;if(n||!e){let c=p({sampled:"false",sample_rate:"0",transaction:t.name},xe(s));Vn(s,c)}return s}let o=we(),i;if(e&&!n)i=Rm(e,r,t),ri(e,i);else if(e){let s=xe(e),{traceId:c,spanId:a}=e.spanContext(),u=et(e);i=Zu(p({traceId:c,parentSpanId:a},t),r,u),Vn(i,s)}else{let{traceId:s,dsc:c,parentSpanId:a,sampled:u}=p(p({},o.getPropagationContext()),r.getPropagationContext());i=Zu(p({traceId:s,parentSpanId:a},t),r,u),c&&Vn(i,c)}return ju(i),wu(i,r,o),i}function td(e){let t=e.experimental||{},n=p({isStandalone:t.standalone},e);if(e.startTime){let r=p({},n);return r.startTimestamp=Tt(e.startTime),delete r.startTime,r}return n}function ra(){let e=Xe();return Mt(e)}function Zu(e,t,n){let r=k(),o=r?.getOptions()||{},{name:i=""}=e,s={spanAttributes:p({},e.attributes),spanName:i,parentSampled:n};r?.emit("beforeSampling",s,{decision:!1});let c=s.parentSampled??n,a=s.spanAttributes,u=t.getPropagationContext(),[l,d,f]=t.getScopeData().sdkProcessingMetadata[Qu]?[!1]:Ku(o,{name:i,parentSampled:c,attributes:a,parentSampleRate:Qe(u.dsc?.sample_rate)},u.sampleRand),m=new nn(b(p({},e),{attributes:p({[ye]:"custom",[Zt]:d!==void 0&&f?d:void 0},a),sampled:l}));return!l&&r&&(v&&S.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",m),m}function Rm(e,t,n){let{spanId:r,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[Qu]?!1:et(e),s=i?new nn(b(p({},n),{parentSpanId:r,traceId:o,sampled:i})):new De({traceId:o});ri(e,s);let c=k();
9return c&&(c.emit("spanStart",s),n.endTimestamp&&c.emit("spanEnd",s)),s}function nd(e,t){if(t)return t;if(t===null)return;let n=En(e);if(!n)return;let r=k();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Z(n):n}function wm(e){return e!==void 0?t=>qn(e,t):t=>t()}var Xn={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},xm="heartbeatFailed",Cm="idleTimeout",Am="finalTimeout",km="externalFinish";function di(e,t={}){let n=new Map,r=!1,o,i=km,s=!t.disableAutoFinish,c=[],{idleTimeout:a=Xn.idleTimeout,finalTimeout:u=Xn.finalTimeout,childSpanTimeout:l=Xn.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:f=!0}=t,m=k();if(!m||!Ie()){let y=new De,T=p({sample_rate:"0",sampled:"false"},xe(y));return Vn(y,T),y}let h=D(),g=re(),_=Nm(e);_.end=new Proxy(_.end,{apply(y,T,ee){if(d&&d(_),T instanceof De)return;let[I,...C]=ee,G=I||ne(),Y=Tt(G),W=en(_).filter(N=>N!==_),ve=O(_);if(!W.length||!f)return L(Y),Reflect.apply(y,T,[Y,...C]);let oe=m.getOptions().ignoreSpans,ue=W?.reduce((N,ie)=>{let de=O(ie);return!de.timestamp||oe&&bn(de,oe)?N:N?Math.max(N,de.timestamp):de.timestamp},void 0),R=ve.start_timestamp,te=Math.min(R?R+u/1e3:1/0,Math.max(R||-1/0,Math.min(Y,ue||1/0)));return L(te),Reflect.apply(y,T,[te,...C])}});function E(){o&&(clearTimeout(o),o=void 0)}function w(y){E(),o=setTimeout(()=>{!r&&n.size===0&&s&&(i=Cm,_.end(y))},a)}function M(y){o=setTimeout(()=>{!r&&s&&(i=xm,_.end(y))},l)}function P(y){E(),n.set(y,!0);let T=ne();M(T+l/1e3)}function j(y){if(n.has(y)&&n.delete(y),n.size===0){let T=ne();w(T+a/1e3)}}function L(y){r=!0,n.clear(),c.forEach(W=>W()),$t(h,g);let T=O(_),{start_timestamp:ee}=T;if(!ee)return;T.data[Qt]||_.setAttribute(Qt,i);let C=T.status;(!C||C==="unknown")&&_.setStatus({code:1}),S.log(`[Tracing] Idle span "${T.op}" finished`);let G=en(_).filter(W=>W!==_),Y=0;G.forEach(W=>{W.isRecording()&&(W.setStatus({code:2,message:"cancelled"}),W.end(y),v&&S.log("[Tracing] Cancelling span since span ended early",JSON.stringify(W,void 0,2)));let ve=O(W),{timestamp:oe=0,start_timestamp:ue=0}=ve,R=ue<=y,te=(u+a)/1e3,N=oe-ue<=te;if(v){let ie=JSON.stringify(W,void 0,2);R?N||S.log("[Tracing] Discarding span since it finished after idle span final timeout",ie):S.log("[Tracing] Discarding span since it happened after idle span was finished",ie)}(!N||!R)&&(Fu(_,W),Y++)}),Y>0&&_.setAttribute("sentry.idle_span_discarded_spans",Y)}return c.push(m.on("spanStart",y=>{if(r||y===_||O(y).timestamp||y instanceof nn&&y.isStandaloneSpan())return;en(_).includes(y)&&P(y.spanContext().spanId)})),c.push(m.on("spanEnd",y=>{r||j(y.spanContext().spanId)})),c.push(m.on("idleSpanEnableAutoFinish",y=>{y===_&&(s=!0,w(),n.size&&M())})),t.disableAutoFinish||w(),setTimeout(()=>{r||(_.setStatus({code:2,message:"deadline_exceeded"}),i=Am,_.end())},u),_}function Nm(e){let t=je(e);return $t(D(),t),v&&S.log("[Tracing] Started span is an idle span"),t}var oa=0,rd=1,od=2;function rn(e){return new Br(t=>{t(e)})}function In(e){return new Br((t,n)=>{n(e)})}var Br=class e{constructor(t){this._state=oa,this._handlers=[],this._runExecutor(t)}then(t,n){return new e((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new e((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}_executeHandlers(){if(this._state===oa)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===rd&&n[1](this._value),this._state===od&&n[2](this._value),n[0]=!0)})}_runExecutor(t){let n=(i,s)=>{if(this._state===oa){if(ot(s)){s.then(r,o);return}this._state=i,this._value=s,this._executeHandlers()}},r=i=>{n(rd,i)},o=i=>{n(od,i)};try{t(r,o)}catch(i){o(i)}}};function id(e,t,n,r=0){try{let o=ia(t,n,e,r);return ot(o)?o:rn(o)}catch(o){return In(o)}}function ia(e,t,n,r){let o=n[r];if(!e||!o)return e;let i=o(p({},e),t);return v&&i===null&&S.log(`Event processor "${o.id||"?"}" dropped event`),ot(i)?i.then(s=>ia(s,t,n,r+1)):ia(i,t,n,r+1)}var Rn,sd,ad,on;function cd(e){let t=A._sentryDebugIds,n=A._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],o=n?Object.keys(n):[];if(on&&r.length===sd&&o.length===ad)return on;sd=r.length,ad=o.length,on={},Rn||(Rn={});let i=(s,c)=>{for(let a of s){let u=c[a],l=Rn?.[a];if(l&&on&&u)on[l[0]]=u,Rn&&(Rn[a]=[l[0],u]);
9else if(u){let d=e(a);for(let f=d.length-1;f>=0;f--){let h=d[f]?.filename;if(h&&on&&Rn){on[h]=u,Rn[a]=[h,u];break}}}}};return t&&i(r,t),n&&i(o,n),on}function dd(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;Mm(e,t),r&&Dm(e,r),Pm(e,n),Lm(e,o),Om(e,i)}function ud(e,t){let{extra:n,tags:r,attributes:o,user:i,contexts:s,level:c,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:f,propagationContext:m,transactionName:h,span:g}=t;Hr(e,"extra",n),Hr(e,"tags",r),Hr(e,"attributes",o),Hr(e,"user",i),Hr(e,"contexts",s),e.sdkProcessingMetadata=Jt(e.sdkProcessingMetadata,a,2),c&&(e.level=c),h&&(e.transactionName=h),g&&(e.span=g),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=p(p({},e.propagationContext),m)}function Hr(e,t,n){e[t]=Jt(e[t],n,1)}function ld(e,t){let n=qo().getScopeData();return e&&ud(n,e.getScopeData()),t&&ud(n,t.getScopeData()),n}function Mm(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:c}=t;Object.keys(n).length&&(e.extra=p(p({},n),e.extra)),Object.keys(r).length&&(e.tags=p(p({},r),e.tags)),Object.keys(o).length&&(e.user=p(p({},o),e.user)),Object.keys(i).length&&(e.contexts=p(p({},i),e.contexts)),s&&(e.level=s),c&&e.type!=="transaction"&&(e.transaction=c)}function Lm(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Om(e,t){e.sdkProcessingMetadata=p(p({},e.sdkProcessingMetadata),t)}function Dm(e,t){e.contexts=p({trace:qs(t)},e.contexts),e.sdkProcessingMetadata=p({dynamicSamplingContext:xe(t)},e.sdkProcessingMetadata);let n=Z(t),r=O(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Pm(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 Wr(e,t,n,r,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:c=1e3}=e,a=b(p({},t),{event_id:t.event_id||n.event_id||_e(),timestamp:t.timestamp||Ze()}),u=n.integrations||e.integrations.map(_=>_.name);Fm(a,e),Hm(a,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Um(a,e.stackParser);let l=$m(r,n.captureContext);n.mechanism&&Nt(a,n.mechanism);let d=o?o.getEventProcessors():[],f=ld(i,l),m=[...n.attachments||[],...f.attachments];m.length&&(n.attachments=m),dd(a,f);let h=[...d,...f.eventProcessors];return id(h,a,n).then(_=>(_&&Bm(_),typeof s=="number"&&s>0?Wm(_,s,c):_))}function Fm(e,t){let{environment:n,release:r,dist:o,maxValueLength:i}=t;e.environment=e.environment||n||jn,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);let s=e.request;s?.url&&i&&(s.url=Bn(s.url,i)),i&&e.exception?.values?.forEach(c=>{c.value&&(c.value=Bn(c.value,i))})}function Um(e,t){let n=cd(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function Bm(e){let t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function Hm(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Wm(e,t,n){if(!e)return null;let r=p(p(p(p(p({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>p(p({},o),o.data&&{data:Pe(o.data,t,n)}))}),e.user&&{user:Pe(e.user,t,n)}),e.contexts&&{contexts:Pe(e.contexts,t,n)}),e.extra&&{extra:Pe(e.extra,t,n)});return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Pe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>p(p({},o),o.data&&{data:Pe(o.data,t,n)}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Pe(e.contexts.flags,3,n)),r}function $m(e,t){if(!t)return e;let n=e?e.clone():new ze;return n.update(t),n}
9function fd(e){if(e)return Gm(e)?{captureContext:e}:jm(e)?{captureContext:e}:e}function Gm(e){return e instanceof ze||typeof e=="function"}var zm=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function jm(e){return Object.keys(e).some(t=>zm.includes(t))}function Jn(e,t){return D().captureException(e,fd(t))}function $r(e,t){return D().captureEvent(e,t)}function Kn(e,t){we().setContext(e,t)}function li(){let e=k();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function fi(e){we().addEventProcessor(e)}function Gr(e){let t=we(),n=D(),{userAgent:r}=A.navigator||{},o=_u(p(p({user:n.getUser()||t.getUser()},r&&{userAgent:r}),e)),i=t.getSession();return i?.status==="ok"&&Wt(i,{status:"exited"}),pi(),t.setSession(o),o}function pi(){let e=we(),n=D().getSession()||e.getSession();n&&yu(n),md(),e.setSession()}function md(){let e=we(),t=k(),n=e.getSession();n&&t&&t.captureSession(n)}function zr(e=!1){if(e){pi();return}md()}var Vm="7";function Ym(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function qm(e){return`${Ym(e)}${e.projectId}/envelope/`}function Xm(e,t){let n={sentry_version:Vm};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function hd(e,t,n){return t||`${qm(e)}?${Xm(e,n)}`}var sa=[];function Jm(e){let t={};return e.forEach(n=>{let{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function aa(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){let o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return Jm(r)}function gd(e,t){let n={};return t.forEach(r=>{r&&ua(e,r,n)}),n}function ca(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function ua(e,t,n){if(n[t.name]){v&&S.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!sa.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),sa.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(typeof t.processEvent=="function"){let r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}v&&S.log(`Integration installed: ${t.name}`)}function Km(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Sd(e,t,n,r){let o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=Et(r)),Fe(o,[Km(e)])}function jr(e,t){let n=t??Zm(e)??[];if(n.length===0)return;let r=e.getOptions(),o=Sd(n,r._metadata,r.tunnel,e.getDsn());_d().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function Zm(e){return _d().get(e)}function _d(){return _t("clientToLogBufferMap",()=>new WeakMap)}function Qm(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function yd(e,t,n,r){let o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=Et(r)),Fe(o,[Qm(e)])}function Vr(e,t){let n=t??eh(e)??[];if(n.length===0)return;let r=e.getOptions(),o=yd(n,r._metadata,r.tunnel,e.getDsn());Ed().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function eh(e){return Ed().get(e)}function Ed(){return _t("clientToMetricBufferMap",()=>new WeakMap)}var Zn=Symbol.for("SentryBufferFullError");function wn(e=100){let t=new Set;function n(){return t.size<e}function r(s){t.delete(s)}function o(s){if(!n())return In(Zn);let c=s();return t.add(c),c.then(()=>r(c),()=>r(c)),c}function i(s){if(!t.size)return rn(!0);let c=Promise.allSettled(Array.from(t)).then(()=>!0);if(!s)return c;let a=[c,new Promise(u=>setTimeout(()=>u(!1),s))];return Promise.race(a)}return{get $(){return Array.from(t)},add:o,drain:i}}var Td=60*1e3;function vd(e,t=yn()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Td:r-t}function bd(e,t){return e[t]||e.all||0}function Yr(e,t,n=yn()){return bd(e,t)>n}function qr(e,{statusCode:t,headers:n},r=yn()){let o=p({},e),i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(let c of i.trim().split(",")){let[a,u,,,l]=c.split(":",5),d=parseInt(a,10),f=(isNaN(d)?60:d)*1e3;if(!u)o.all=r+f;else for(let m of u.split(";"))m==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(o[m]=r+f):o[m]=r+f}else s?o.all=r+vd(s,r):t===429&&(o.all=r+60*1e3);return o}var da=64;function mi(e,t,n=wn(e.bufferSize||da)){let r={},o=s=>
9n.drain(s);function i(s){let c=[];if(Fr(s,(d,f)=>{let m=si(f);Yr(r,m)?e.recordDroppedEvent("ratelimit_backoff",m):c.push(d)}),c.length===0)return Promise.resolve({});let a=Fe(s[0],c),u=d=>{if(Qs(a,["client_report"])){v&&S.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}Fr(a,(f,m)=>{e.recordDroppedEvent(d,si(m))})},l=()=>t({body:ea(a)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&v&&S.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=qr(r,d),d),d=>{throw u("network_error"),v&&S.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===Zn)return v&&S.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:i,flush:o}}function Id(e,t,n){let r=[{type:"client_report"},{timestamp:n||Ze(),discarded_events:e}];return Fe(t?{dsn:t}:{},[r])}function hi(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch(n){}return t}function Rd(e){let{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:c}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[Gn],exclusive_time:s?.[st],measurements:e.measurements,is_segment:!0}}function wd(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:p(p(p({},e.data),e.profile_id&&{[Gn]:e.profile_id}),e.exclusive_time&&{[st]:e.exclusive_time})}},measurements:e.measurements}}var xd="Not capturing exception because it's already been captured.",Cd="Discarded session because of missing or non-string release",Od=Symbol.for("SentryInternalError"),Dd=Symbol.for("SentryDoNotSendEventError"),th=5e3;function gi(e){return{message:e,[Od]:!0}}function la(e){return{message:e,[Dd]:!0}}function Ad(e){return!!e&&typeof e=="object"&&Od in e}function kd(e){return!!e&&typeof e=="object"&&Dd in e}function Nd(e,t,n,r,o){let i=0,s,c=!1;e.on(n,()=>{i=0,clearTimeout(s),c=!1}),e.on(t,a=>{i+=r(a),i>=8e5?o(e):c||(c=!0,s=setTimeout(()=>{o(e)},th))}),e.on("flush",()=>{o(e)})}var Xr=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=wn(t.transportOptions?.bufferSize??da),t.dsn?this._dsn=ku(t.dsn):v&&S.warn("No DSN provided, client will not send events."),this._dsn){let r=hd(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport(b(p({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&&Nd(this,"afterCaptureLog","flushLogs",ih,jr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Nd(this,"afterCaptureMetric","flushMetrics",oh,Vr)}captureException(t,n,r){let o=_e();if(Yo(t))return v&&S.log(xd),o;let i=p({event_id:o},n);return this._process(()=>this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r)).then(s=>s),"error"),i.event_id}captureMessage(t,n,r,o){let i=p({event_id:_e()},r),s=hn(t)?t:String(t),c=yt(t),a=c?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(()=>a.then(u=>this._captureEvent(u,i,o)),c?"unknown":"error"),i.event_id}captureEvent(t,n,r){let o=_e();if(n?.originalException&&Yo(n.originalException))return v&&S.log(xd),o;let i=p({event_id:o},n),s=t.sdkProcessingMetadata||{},c=s.capturedSpanScope,a=s.capturedSpanIsolationScope,u=Md(t.type);return this._process(()=>this._captureEvent(t,i,c||r,a),u),i.event_id}captureSession(t){this.sendSession(t),Wt(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){return z(this,null,function*(){let n=this._transport;if(!n)return!0;
9this.emit("flush");let r=yield this._isClientDoneProcessing(t),o=yield n.flush(t);return r&&o})}close(t){return z(this,null,function*(){let n=yield this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n})}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let n=this._integrations[t.name];ua(this,t,this._integrations),n||ca(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Gu(t,this._dsn,this._options._metadata,this._options.tunnel);for(let o of n.attachments||[])r=Zs(r,na(o));this.sendEnvelope(r).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){let{release:n,environment:r=jn}=this._options;if("aggregates"in t){let i=t.attrs||{};if(!i.release&&!n){v&&S.warn(Cd);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){v&&S.warn(Cd);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);let o=$u(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){let o=`${t}:${n}`;v&&S.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){let r=this._hooks[t]=this._hooks[t]||new Set,o=(...i)=>n(...i);return r.add(o),()=>{r.delete(o)}}emit(t,...n){let r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return z(this,null,function*(){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return yield this._transport.send(t)}catch(n){return v&&S.error("Error while sending envelope:",n),{}}return v&&S.error("Transport disabled"),{}})}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=gd(this,t),ca(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",o=!1,i=n.exception?.values;if(i){o=!0,r=!1;for(let a of i)if(a.mechanism?.handled===!1){r=!0;break}}let s=t.status==="ok";(s&&t.errors===0||s&&r)&&(Wt(t,b(p({},r&&{status:"crashed"}),{errors:t.errors||Number(o||r)})),this.captureSession(t))}_isClientDoneProcessing(t){return z(this,null,function*(){let n=0;for(;!t||n<t;){if(yield new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){let i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Wr(i,t,n,r,this,o).then(c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts=p({trace:$s(r)},c.contexts);let a=Pr(this,r);return c.sdkProcessingMetadata=p({dynamicSamplingContext:a},c.sdkProcessingMetadata),c})}_captureEvent(t,n={},r=D(),o=we()){return v&&fa(t)&&S.log(`Captured error event \`${hi(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,o).then(i=>i.event_id,i=>{v&&(kd(i)?S.log(i.message):Ad(i)?S.warn(i.message):S.warn(i))})}_processEvent(t,n,r,o){let i=this.getOptions(),{sampleRate:s}=i,c=Pd(t),a=fa(t),l=`before send for type \`${t.type||"error"}\``,d=typeof s>"u"?void 0:Qe(s);if(a&&typeof d=="number"&&it()>d)return this.recordDroppedEvent("sample_rate","error"),In(la(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let f=Md(t.type);return this._prepareEvent(t,n,r,o).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",f),la("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return m;let g=rh(this,i,m,n);return nh(g,l)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",f),c){let E=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",E)}throw la(`${l} returned \`null\`, will not send event.`)}let h=r.getSession()||o.getSession();if(a&&h&&this._updateSessionFromEvent(h,m),c){let _=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,E=m.spans?m.spans.length:0,w=_-E;w>0&&this.recordDroppedEvent("before_send","span",w)}let g=m.transaction_info;if(c&&g&&m.transaction!==t.transaction){let _="custom";m.transaction_info=b(p({},g),{source:_})}return this.sendEvent(m,n),m}).then(null,m=>{throw kd(m)||Ad(m)?m:(this.captureException(m,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:m}),gi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10Reason: ${m}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Zn&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{let[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){v&&S.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){v&&S.log("No outcomes to send");return}if(!this._dsn){v&&S.log("No dsn provided, will not send outcomes");return}v&&S.log("Sending outcomes:",t);let n=Id(t,this._options.tunnel&&Et(this._dsn));this.sendEnvelope(n)}};function Md(e){return e==="replay_event"?"replay":e||"error"}function nh(e,t){let n=`${t} must return \`null\` or a valid event.`;if(ot(e))return e.then(r=>{if(!At(r)&&r!==null)throw gi(n);return r},r=>{throw gi(`${t} rejected with ${r}`)});if(!At(e)&&e!==null)throw gi(n);return e}function rh(e,t,n,r){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s,ignoreSpans:c}=t,a=n;if(fa(a)&&o)return o(a,r);if(Pd(a)){if(s||c){let u=Rd(a);if(c?.length&&bn(u,c))return null;if(s){let l=s(u);l?a=Jt(n,wd(l)):Dr()}if(a.spans){let l=[],d=a.spans;for(let m of d){if(c?.length&&bn(m,c)){Hu(d,m);continue}if(s){let h=s(m);h?l.push(h):(Dr(),l.push(m))}else l.push(m)}let f=a.spans.length-l.length;f&&e.recordDroppedEvent("before_send","span",f),a.spans=l}}if(i){if(a.spans){let u=a.spans.length;a.sdkProcessingMetadata=b(p({},n.sdkProcessingMetadata),{spanCountBeforeProcessing:u})}return i(a,r)}}return a}function fa(e){return e.type===void 0}function Pd(e){return e.type==="transaction"}function oh(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Fd(e.attributes)}function ih(e){let t=0;return e.message&&(t+=e.message.length*2),t+Fd(e.attributes)}function Fd(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*Ld(n[0]):yt(n)?t+=Ld(n):t+=100}),t}function Ld(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function sh(e){return Ht(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function Si(e){return sh(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function pa(e,t){t.debug===!0&&(v?S.enable():Le(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),D().update(t.initialScope);let r=new e(t);return ma(r),r.init(),r}function ma(e){D().setClient(e)}var ah="thismessage:/";function Qn(e){return"isRelative"in e}function xn(e,t){let n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=t??(n?ah:void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let o=new URL(e,r);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch(o){}}function ha(e){if(Qn(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function vt(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function _i(e){return e.split(/[?#]/,1)[0]}function at(e,t=!0){if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",o=e.includes(";base64,"),i=e.indexOf(","),s="";if(t&&i!==-1){let c=e.slice(i+1);s=c.length>10?`${c.slice(0,10)}... [truncated]`:c}return`data:${r}${o?",base64":""}${s?`,${s}`:""}`}return e}function ga(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return uh(e,n)||ch(e,r)}function ch(e,t){return t?Ud(e)===Ud(t):!1}function uh(e,t){let n=xn(e);return!n||Qn(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Ud(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Sa(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs=b(p({},e.attrs),{ip_address:"{{auto}}"})):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function Jr(e,t,n=[t],r="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Ct})),version:Ct}),e._metadata=o}function er(e={}){let t=e.client||k();if(!li()||!t)return{};let n=Xe(),r=Mt(n);if(r.getTraceData)return r.getTraceData(e);let o=e.scope||D(),i=e.span||re(),s=i?ei(i):dh(o),c=i?xe(i):Pr(t,o),a=js(c);if(!Ko.test(s))return S.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let l={"sentry-trace":s,baggage:a};return e.propagateTraceparent&&(l.traceparent=i?Pu(i):lh(o)),l}function dh(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Lr(t,r,n)}function lh(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Or(t,r,n)}function _a(e,t,n){let r,o,i,s=n?.maxWait?Math.max(n.maxWait,t):0,c=n?.setTimeoutImpl||setTimeout;function a(){return u(),r=e(),r}function u(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function l(){return o!==void 0||i!==void 0?a():r}function d(){return o&&clearTimeout(o),o=c(a,t),s&&i===void 0&&(i=c(a,s)),r}return d.cancel=u,d.flush=l,d}var fh=100;function ct(e,t){let n=k(),r=we();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=fh}=n.getOptions();if(i<=0)return;let s=Ze(),c=p({timestamp:s},e),a=o?Le(()=>o(c,t)):c;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i)
10)}var Bd,ph="FunctionToString",Hd=new WeakMap,mh=()=>({name:ph,setupOnce(){Bd=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Sn(this),n=Hd.has(k())&&t!==void 0?t:this;return Bd.apply(n,e)}}catch(e){}},setup(e){Hd.set(e,!0)}}),tr=mh;var hh=[/^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$/],gh="EventFilters",ya=(e={})=>{let t;return{name:gh,setup(n){let r=n.getOptions();t=Wd(e,r)},processEvent(n,r,o){if(!t){let i=o.getOptions();t=Wd(e,i)}return Sh(n,t)?null:n}}},nr=(e={})=>b(p({},ya(e)),{name:"InboundFilters"});function Wd(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:hh],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Sh(e,t){if(e.type){if(e.type==="transaction"&&yh(e,t.ignoreTransactions))return v&&S.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
11Event: ${kt(e)}`),!0}else{if(_h(e,t.ignoreErrors))return v&&S.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
12Event: ${kt(e)}`),!0;if(bh(e))return v&&S.warn(`Event dropped due to not having an error message, error type or stacktrace.
13Event: ${kt(e)}`),!0;if(Eh(e,t.denyUrls))return v&&S.warn(`Event dropped due to being matched by \`denyUrls\` option.
14Event: ${kt(e)}.
15Url: ${yi(e)}`),!0;if(!Th(e,t.allowUrls))return v&&S.warn(`Event dropped due to not being matched by \`allowUrls\` option.
16Event: ${kt(e)}.
17Url: ${yi(e)}`),!0}return!1}function _h(e,t){return t?.length?hi(e).some(n=>Ge(n,t)):!1}function yh(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Ge(n,t):!1}function Eh(e,t){if(!t?.length)return!1;let n=yi(e);return n?Ge(n,t):!1}function Th(e,t){if(!t?.length)return!0;let n=yi(e);return n?Ge(n,t):!0}function vh(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function yi(e){try{let n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?vh(n):null}catch(t){return v&&S.error(`Cannot extract url for event ${kt(e)}`),null}}function bh(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Ta(e,t,n,r,o,i){if(!o.exception?.values||!i||!Je(i.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Ea(e,t,r,i.originalException,n,o.exception.values,s,0))}function Ea(e,t,n,r,o,i,s,c){if(i.length>=n+1)return i;let a=[...i];if(Je(r[o],Error)){$d(s,c);let u=e(t,r[o]),l=a.length;Gd(u,o,l,c),a=Ea(e,t,n,r[o],o,[u,...a],u,l)}return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if(Je(u,Error)){$d(s,c);let d=e(t,u),f=a.length;Gd(d,`errors[${l}]`,f,c),a=Ea(e,t,n,u,o,[d,...a],d,f)}}),a}function $d(e,t){e.mechanism=b(p(p({handled:!0,type:"auto.core.linked_errors"},e.mechanism),e.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:t})}function Gd(e,t,n,r){e.mechanism=b(p({handled:!0},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}function va(e){let t="console";Ae(t,e),ke(t,Ih)}function Ih(){"console"in A&&Rs.forEach(function(e){e in A.console&&Se(A.console,e,function(t){return Pn[e]=t,function(...n){Ee("console",{args:n,level:e}),Pn[e]?.apply(A.console,n)}})})}function Kr(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var Rh="Dedupe",wh=()=>{let e;return{name:Rh,processEvent(t){if(t.type)return t;try{if(xh(t,e))return v&&S.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}},rr=wh;function xh(e,t){return t?!!(Ch(e,t)||Ah(e,t)):!1}function Ch(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Vd(e,t)||!jd(e,t))}function Ah(e,t){let n=zd(t),r=zd(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Vd(e,t)||!jd(e,t))}
17function jd(e,t){let n=Ho(e),r=Ho(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function Vd(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(o){return!1}}function zd(e){return e.exception?.values?.[0]}function ba(e,t,n,r,o){if(!e.fetchData)return;let{method:i,url:s}=e.fetchData,c=Ie()&&t(s);if(e.endTimestamp&&c){let m=e.fetchData.__span;if(!m)return;let h=r[m];h&&(Mh(h,e),kh(h,e,o),delete r[m]);return}let{spanOrigin:a="auto.http.browser",propagateTraceparent:u=!1}=typeof o=="object"?o:{spanOrigin:o},l=!!re(),d=c&&l?je(Oh(s,i,a)):new De;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){let m=e.args[0],h=p({},e.args[1]||{}),g=Nh(m,h,Ie()&&l?d:void 0,u);g&&(e.args[1]=h,h.headers=g)}let f=k();if(f){let m={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",d,m)}return d}function kh(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Nh(e,t,n,r){let o=er({span:n,propagateTraceparent:r}),i=o["sentry-trace"],s=o.baggage,c=o.traceparent;if(!i)return;let a=t.headers||(Ar(e)?e.headers:void 0);if(a)if(Lh(a)){let u=new Headers(a);if(u.get("sentry-trace")||u.set("sentry-trace",i),r&&c&&!u.get("traceparent")&&u.set("traceparent",c),s){let l=u.get("baggage");l?Ei(l)||u.set("baggage",`${l},${s}`):u.set("baggage",s)}return u}else if(Array.isArray(a)){let u=[...a];a.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",i]),r&&c&&!a.find(d=>d[0]==="traceparent")&&u.push(["traceparent",c]);let l=a.find(d=>d[0]==="baggage"&&Ei(d[1]));return s&&!l&&u.push(["baggage",s]),u}else{let u="sentry-trace"in a?a["sentry-trace"]:void 0,l="traceparent"in a?a.traceparent:void 0,d="baggage"in a?a.baggage:void 0,f=d?Array.isArray(d)?[...d]:[d]:[],m=d&&(Array.isArray(d)?d.find(g=>Ei(g)):Ei(d));s&&!m&&f.push(s);let h=b(p({},a),{"sentry-trace":u??i,baggage:f.length>0?f.join(","):void 0});return r&&c&&!l&&(h.traceparent=c),h}else return p({},o)}function Mh(e,t){if(t.response){zn(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}function Ei(e){return e.split(",").some(t=>t.trim().startsWith(Xo))}function Lh(e){return typeof Headers<"u"&&Je(e,Headers)}function Oh(e,t,n){if(e.startsWith("data:")){let i=at(e);return{name:`${t} ${i}`,attributes:Yd(e,void 0,t,n)}}let r=xn(e),o=r?ha(r):e;return{name:`${t} ${o}`,attributes:Yd(e,r,t,n)}}function Yd(e,t,n,r){let o={url:at(e),type:"fetch","http.method":n,[X]:r,[be]:"http.client"};return t&&(Qn(t)||(o["http.url"]=at(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function Ti(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}var Zr=A;function Ia(){return"history"in Zr&&!!Zr.history}function Dh(){if(!("fetch"in Zr))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch(e){return!1}}function Qr(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ra(){if(typeof EdgeRuntime=="string")return!0;if(!Dh())return!1;if(Qr(Zr.fetch))return!0;let e=!1,t=Zr.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Qr(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){v&&S.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function eo(e,t){let n="fetch";Ae(n,e),ke(n,()=>Xd(void 0,t))}function wa(e){let t="fetch-body-resolved";Ae(t,e),ke(t,()=>Xd(Fh))}function Xd(e,t=!1){t&&!Ra()||Se(A,"fetch",function(n){return function(...r){let o=new Error,{method:i,url:s}=Uh(r),c={args:r,fetchData:{method:i,url:s},startTimestamp:ne()*1e3,virtualError:o,headers:Bh(r)};return e||Ee("fetch",p({},c)),n.apply(A,r).then(a=>z(null,null,function*(){return e?e(a):Ee("fetch",b(p({},c),{endTimestamp:ne()*1e3,response:a})),a}),a=>{Ee("fetch",b(p({},c),{endTimestamp:ne()*1e3,error:a})),Ht(a)&&a.stack===void 0&&(a.stack=o.stack,le(a,"framesToPop",1));let l=k()?.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{let m=new URL(c.fetchData.url).host;l==="always"?a.message=`${a.message} (${m})`:le(a,"__sentry_fetch_url_host__",m)}catch(f){}throw a})}})}function Ph(e,t){return z(this,null,function*(){if(e?.body){let n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:c}=yield r.read();clearTimeout(s),c&&(t(),i=!1)}catch(c){i=!1}finally{clearTimeout(s)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}})}function Fh(e){let t;try{t=e.clone()}catch(n){return}Ph(t,()=>{Ee("fetch-body-resolved",{endTimestamp:ne()*1e3,response:e})})}function vi(e,t){return!!e&&typeof e=="object"&&!!e[t]}function qd(e){return typeof e=="string"?e:e?vi(e,"url")?e.url:e.toString?e.toString():"":""}function Uh(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:qd(n),method:vi(r,"method")?String(r.method).toUpperCase():Ar(n)&&vi(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:qd(t),method:vi(t,"method")?String(t.method).toUpperCase():"GET"}}function Bh(e){let[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Ar(t))return new Headers(t.headers)}catch(r){}}function xa(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Ca(){return"npm"}function Jd(){return!xa()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function or(){return typeof window<"u"&&(!Jd()||Hh())}function Hh(){return A.process?.type==="renderer"}var ut=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var x=A;var og=(e,t)=>
17e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Dt=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o??0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=og(t.value,n),e(t)))}};var Gt=(e=!0)=>{let t=x.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t};var dt=()=>Gt()?.activationStart??0;function lt(e,t,n){x.document&&x.addEventListener(e,t,n)}function Cn(e,t,n){x.document&&x.removeEventListener(e,t,n)}var ir=-1,Kd=new Set,ig=()=>x.document?.visibilityState==="hidden"&&!x.document?.prerendering?0:1/0,bi=e=>{if(sg(e)&&ir>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(let t of Kd)t();isFinite(ir)||(ir=e.type==="visibilitychange"?e.timeStamp:0,Cn("prerenderingchange",bi,!0))}},Pt=()=>{if(x.document&&ir<0){let e=dt();ir=(x.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??ig(),lt("visibilitychange",bi,!0),lt("pagehide",bi,!0),lt("prerenderingchange",bi,!0)}return{get firstHiddenTime(){return ir},onHidden(e){Kd.add(e)}}};function sg(e){return e.type==="pagehide"||x.document?.visibilityState==="hidden"}var Zd=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`;var Ft=(e,t=-1)=>{let n=Gt(),r="navigate";return n&&(x.document?.prerendering||dt()>0?r="prerender":x.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Zd(),navigationType:r}};var Aa=new WeakMap;function sr(e,t){try{return Aa.get(e)||Aa.set(e,new t),Aa.get(e)}catch(n){return new t}}var Ii=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;let n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}};var ft=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe(p({type:e,buffered:!0},n)),r}}catch(r){}};var ar=e=>{let t=!1;return()=>{t||(e(),t=!0)}};var an=e=>{x.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()};var ag=[1800,3e3],Qd=(e,t={})=>{an(()=>{let n=Pt(),r=Ft("FCP"),o,s=ft("paint",c=>{for(let a of c)a.name==="first-contentful-paint"&&(s.disconnect(),a.startTime<n.firstHiddenTime&&(r.value=Math.max(a.startTime-dt(),0),r.entries.push(a),o(!0)))});s&&(o=Dt(e,r,ag,t.reportAllChanges))})};var cg=[.1,.25],el=(e,t={})=>{Qd(ar(()=>{let n=Ft("CLS",0),r,o=Pt(),i=sr(t,Ii),s=a=>{for(let u of a)i._processEntry(u);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},c=ft("layout-shift",s);c&&(r=Dt(e,n,cg,t.reportAllChanges),o.onHidden(()=>{s(c.takeRecords()),r(!0)}),x?.setTimeout?.(r))}))};var tl=0,ka=1/0,Ri=0,ug=e=>{e.forEach(t=>{t.interactionId&&(ka=Math.min(ka,t.interactionId),Ri=Math.max(Ri,t.interactionId),tl=Ri?(Ri-ka)/7+1:0)})},Na,Ma=()=>Na?tl:performance.interactionCount||0,nl=()=>{"interactionCount"in performance||Na||(Na=ft("event",ug,{type:"event",buffered:!0,durationThreshold:0}))};var La=10,rl=0,dg=()=>Ma()-rl,wi=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){rl=Ma(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let t=Math.min(this._longestInteractionList.length-1,Math.floor(dg()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;let n=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<La||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.
17interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((o,i)=>i._latency-o._latency),this._longestInteractionList.length>La){let o=this._longestInteractionList.splice(La);for(let i of o)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(r)}}};var xi=e=>{let t=x.requestIdleCallback||x.setTimeout;x.document?.visibilityState==="hidden"?e():(e=ar(e),lt("visibilitychange",e,{once:!0,capture:!0}),lt("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Cn("visibilitychange",e,{capture:!0}),Cn("pagehide",e,{capture:!0})}))};var lg=[200,500],fg=40,ol=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=Pt();an(()=>{nl();let r=Ft("INP"),o,i=sr(t,wi),s=a=>{xi(()=>{for(let l of a)i._processEntry(l);let u=i._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,o())})},c=ft("event",s,{durationThreshold:t.durationThreshold??fg});o=Dt(e,r,lg,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(c.takeRecords()),o(!0)}))})};var Ci=class{_processEntry(t){this._onBeforeProcessingEntry?.(t)}};var pg=[2500,4e3],il=(e,t={})=>{an(()=>{let n=Pt(),r=Ft("LCP"),o,i=sr(t,Ci),s=a=>{t.reportAllChanges||(a=a.slice(-1));for(let u of a)i._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-dt(),0),r.entries=[u],o())},c=ft("largest-contentful-paint",s);if(c){o=Dt(e,r,pg,t.reportAllChanges);let a=ar(()=>{s(c.takeRecords()),c.disconnect(),o(!0)}),u=l=>{l.isTrusted&&(xi(a),Cn(l.type,u,{capture:!0}))};for(let l of["keydown","click","visibilitychange"])lt(l,u,{capture:!0})}})};var mg=[800,1800],Oa=e=>{x.document?.prerendering?an(()=>Oa(e)):x.document?.readyState!=="complete"?addEventListener("load",()=>Oa(e),!0):setTimeout(e)},sl=(e,t={})=>{let n=Ft("TTFB"),r=Dt(e,n,mg,t.reportAllChanges);Oa(()=>{let o=Gt();o&&(n.value=Math.max(o.responseStart-dt(),0),n.entries=[o],r(!0))})};var no={},Ai={},al,cl,ul,dl;function An(e,t=!1){return ki("cls",e,hg,al,t)}function kn(e,t=!1){return ki("lcp",e,gg,cl,t)}function Da(e){return ki("ttfb",e,Sg,ul)}function ro(e){return ki("inp",e,_g,dl)}function tt(e,t){return ll(e,t),Ai[e]||(yg(e),Ai[e]=!0),fl(e,t)}function oo(e,t){let n=no[e];if(n?.length)for(let r of n)try{r(t)}catch(o){ut&&S.error(`Error while triggering instrumentation handler.
18Type: ${e}
19Name: ${$e(r)}
20Error:`,o)}}function hg(){return el(e=>{oo("cls",{metric:e}),al=e},{reportAllChanges:!0})}function gg(){return il(e=>{oo("lcp",{metric:e}),cl=e},{reportAllChanges:!0})}function Sg(){return sl(e=>{oo("ttfb",{metric:e}),ul=e})}function _g(){return ol(e=>{oo("inp",{metric:e}),dl=e})}function ki(e,t,n,r,o=!1){ll(e,t);let i;return Ai[e]||(i=n(),Ai[e]=!0),r&&t({metric:r}),fl(e,t,o?i:void 0)}function yg(e){let t={};e==="event"&&(t.durationThreshold=0),ft(e,n=>{oo(e,{entries:n})},t)}function ll(e,t){no[e]=no[e]||[],no[e].push(t)}function fl(e,t,n){return()=>{n&&n();let r=no[e];if(!r)return;let o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function pl(e){return"duration"in e}var ml=e=>{let t=n=>{(n.type==="pagehide"||x.document?.visibilityState==="hidden")&&e(n)};lt("visibilitychange",t,{capture:!0,once:!0}),lt("pagehide",t,{capture:!0,once:!0})};function Ni(e){return typeof e=="number"&&isFinite(e)}function zt(e,t,n,o){var r=Fo(o,[]);let i=O(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),qn(e,()=>{let s=je(p({startTime:t},r));return s&&s.end(n),s})}function cr(e){let t=k();if(!t)return;let{name:n,transaction:r,attributes:o,startTime:i}=e,{release:s,environment:c,sendDefaultPii:a}=t.getOptions(),l=t.getIntegrationByName("Replay")?.getReplayId(),d=D(),f=d.getUser(),m=f!==void 0?f.email||f.id||f.ip_address:void 0,h;try{h=d.getScopeData().contexts.profile.profile_id}catch(_){}let g=p({release:s,environment:c,user:m||void 0,profile_id:h||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":x.navigator?.userAgent,"client.address":a?"{{auto}}":void 0},o);return je({name:n,attributes:g,startTime:i,experimental:{standalone:!0}})}function jt(){return x.addEventListener&&x.performance}function se(e){return e/1e3}function hl(e){let t="unknown",n="unknown",r="";for(let o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}
20return r===e&&(t=r),{name:t,version:n}}function Mi(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch(t){return!1}}function Li(e,t){let n,r=!1;function o(c){!r&&n&&t(c,n),r=!0}ml(()=>{o("pagehide")});let i=e.on("beforeStartNavigationSpan",(c,a)=>{a?.isRedirect||(o("navigation"),i(),s())}),s=e.on("afterStartPageLoadSpan",c=>{n=c.spanContext().spanId,s()})}function gl(e){let t=0,n;if(!Mi("layout-shift"))return;let r=An(({metric:o})=>{let i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);Li(e,(o,i)=>{Eg(t,n,i,o),r()})}function Eg(e,t,n,r){ut&&S.log(`Sending CLS span (${e})`);let o=t?se((me()||0)+t.startTime):ne(),i=D().getScopeData().transactionName,s=t?he(t.sources[0]?.node):"Layout shift",c={[X]:"auto.http.browser.cls",[be]:"ui.webvital.cls",[st]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,l)=>{c[`cls.source.${l+1}`]=he(u.node)});let a=cr({name:s,transaction:i,attributes:c,startTime:o});a&&(a.addEvent("cls",{[Lt]:"",[Ot]:e}),a.end(o))}function Sl(e){let t=0,n;if(!Mi("largest-contentful-paint"))return;let r=kn(({metric:o})=>{let i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);Li(e,(o,i)=>{Tg(t,n,i,o),r()})}function Tg(e,t,n,r){ut&&S.log(`Sending LCP span (${e})`);let o=se((me()||0)+(t?.startTime||0)),i=D().getScopeData().transactionName,s=t?he(t.element):"Largest contentful paint",c={[X]:"auto.http.browser.lcp",[be]:"ui.webvital.lcp",[st]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(c["lcp.element"]=he(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url),t.loadTime!=null&&(c["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(c["lcp.renderTime"]=t.renderTime),t.size!=null&&(c["lcp.size"]=t.size));let a=cr({name:s,transaction:i,attributes:c,startTime:o});a&&(a.addEvent("lcp",{[Lt]:"millisecond",[Ot]:e}),a.end(o))}function pt(e){return e&&((me()||performance.timeOrigin)+e)/1e3}function io(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=hl(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return me()||jt()?.timeOrigin?vg(b(p({},t),{"http.request.redirect_start":pt(e.redirectStart),"http.request.redirect_end":pt(e.redirectEnd),"http.request.worker_start":pt(e.workerStart),"http.request.fetch_start":pt(e.fetchStart),"http.request.domain_lookup_start":pt(e.domainLookupStart),"http.request.domain_lookup_end":pt(e.domainLookupEnd),"http.request.connect_start":pt(e.connectStart),"http.request.secure_connection_start":pt(e.secureConnectionStart),"http.request.connection_end":pt(e.connectEnd),"http.request.request_start":pt(e.requestStart),"http.request.response_start":pt(e.responseStart),"http.request.response_end":pt(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0})):t}function vg(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}var bg=2147483647,_l=0,bt={},Ve,Di;function Pa({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=jt();if(r&&me()){r.mark&&x.performance.mark("sentry-tracing-init");let o=t?Sl(n):Rg(),i=wg(),s=e?gl(n):Ig();return()=>{o?.(),i(),s?.()}}return()=>{}}function Fa(){tt("longtask",({entries:e})=>{let t=re();if(!t)return;let{op:n,start_timestamp:r}=O(t);for(let o of e){let i=se(me()+o.startTime),s=se(o.duration);n==="navigation"&&r&&i<r||zt(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[X]:"auto.ui.browser.metrics"}})}})}function Ua(){new PerformanceObserver(t=>{let n=re();if(n)for(let r of t.getEntries()){if(!r.scripts[0])continue;let o=se(me()+r.startTime),{start_timestamp:i,op:s}=O(n);if(s==="navigation"&&i&&o<i)continue;let c=se(r.duration),a={[X]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:l,invokerType:d,sourceURL:f,sourceFunctionName:m,sourceCharPosition:h}=u;a["browser.script.invoker"]=l,a["browser.script.invoker_type"]=d,f&&(a["code.filepath"]=f),m&&(a["code.function"]=m),h!==-1&&(a["browser.script.source_char_position"]=h),zt(n,o,o+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0})}function Ba(){tt("event",({entries:e})=>{let t=re();if(t){for(let n of e)if(n.name==="click"){let r=se(me()+n.startTime),o=se(n.duration),i={name:he(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[X]:"auto.ui.browser.metrics"}},s=kr(n.target);s&&(i.attributes["ui.component_name"]=s),zt(t,r,r+o,i)}}})}function Ig(){return An(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(bt.cls={value:e.value,unit:""},Di=t)},!0)}function Rg(){return kn(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(bt.lcp={value:e.value,unit:"millisecond"},Ve=t)},!0)}function wg(){return Da(({metric:e})=>{e.entries[e.entries.length-1]&&(bt.ttfb={value:e.value,unit:"millisecond"})})}
20function Ha(e,t){let n=jt(),r=me();if(!n?.getEntries||!r)return;let o=se(r),i=n.getEntries(),{op:s,start_timestamp:c}=O(e);i.slice(_l).forEach(a=>{let u=se(a.startTime),l=se(Math.max(0,a.duration));if(!(s==="navigation"&&c&&o+u<c))switch(a.entryType){case"navigation":{kg(e,a,o);break}case"mark":case"paint":case"measure":{Cg(e,a,u,l,o,t.ignorePerformanceApiSpans);let d=Pt(),f=a.startTime<d.firstHiddenTime;a.name==="first-paint"&&f&&(bt.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&f&&(bt.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{Lg(e,a,a.name,u,l,o,t.ignoreResourceSpans);break}}}),_l=Math.max(i.length-1,0),Og(e),s==="pageload"&&(Fg(bt),t.recordClsOnPageloadSpan||delete bt.cls,t.recordLcpOnPageloadSpan||delete bt.lcp,Object.entries(bt).forEach(([a,u])=>{ai(a,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",dt()),Dg(e,t)),Ve=void 0,Di=void 0,bt={}}function xg(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components \u269B"}catch(t){return}}function Cg(e,t,n,r,o,i){if(xg(t)||["mark","measure"].includes(t.entryType)&&Ge(t.name,i))return;let s=Gt(!1),c=se(s?s.requestStart:0),a=o+Math.max(n,c),u=o+n,l=u+r,d={[X]:"auto.resource.browser.metrics"};a!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=a),Ag(d,t),a<=l&&zt(e,a,l,{name:t.name,op:t.entryType,attributes:d})}function Ag(e,t){try{let n=t.detail;if(!n)return;if(typeof n=="object"){for(let[r,o]of Object.entries(n))if(o&&yt(o))e[`sentry.browser.measure.detail.${r}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(o)}catch(i){}return}if(yt(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch(r){}}catch(n){}}function kg(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Oi(e,t,r,n)}),Oi(e,t,"secureConnection",n,"TLS/SSL"),Oi(e,t,"fetch",n,"cache"),Oi(e,t,"domainLookup",n,"DNS"),Mg(e,t,n)}function Oi(e,t,n,r,o=n){let i=Ng(n),s=t[i],c=t[`${n}Start`];!c||!s||zt(e,r+se(c),r+se(s),{op:`browser.${o}`,name:t.name,attributes:p({[X]:"auto.ui.browser.metrics"},n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{})})}function Ng(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Mg(e,t,n){let r=n+se(t.requestStart),o=n+se(t.responseEnd),i=n+se(t.responseStart);t.responseEnd&&(zt(e,r,o,{op:"browser.request",name:t.name,attributes:{[X]:"auto.ui.browser.metrics"}}),zt(e,i,o,{op:"browser.response",name:t.name,attributes:{[X]:"auto.ui.browser.metrics"}}))}function Lg(e,t,n,r,o,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;let c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(c))return;let a={[X]:"auto.resource.browser.metrics"},u=vt(n);u.protocol&&(a["url.scheme"]=u.protocol.split(":").pop()),u.host&&(a["server.address"]=u.host),a["url.same_origin"]=n.includes(x.location.origin),Pg(t,a,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);let l=p(p({},a),io(t)),d=i+r,f=d+o;zt(e,d,f,{name:n.replace(x.location.origin,""),op:c,attributes:l})}function Og(e){let t=x.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Ni(n.rtt)&&(bt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Ni(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Ni(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function Dg(e,t){Ve&&t.recordLcpOnPageloadSpan&&(Ve.element&&e.setAttribute("lcp.element",he(Ve.element)),Ve.id&&e.setAttribute("lcp.id",Ve.id),Ve.url&&e.setAttribute("lcp.url",Ve.url.trim().slice(0,200)),Ve.loadTime!=null&&e.setAttribute("lcp.loadTime",Ve.loadTime),Ve.renderTime!=null&&e.setAttribute("lcp.renderTime",Ve.renderTime),e.setAttribute("lcp.size",Ve.size)),Di?.sources&&t.recordClsOnPageloadSpan&&Di.sources.forEac
20h((n,r)=>e.setAttribute(`cls.source.${r+1}`,he(n.node)))}function Pg(e,t,n){n.forEach(([r,o])=>{let i=e[r];i!=null&&(typeof i=="number"&&i<bg||typeof i=="string")&&(t[o]=i)})}function Fg(e){let t=Gt(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Wa(){return jt()&&me()?tt("element",Ug):()=>{}}var Ug=({entries:e})=>{let t=re(),n=t?Z(t):void 0,r=n?O(n).description:D().getScopeData().transactionName;e.forEach(o=>{let i=o;if(!i.identifier)return;let s=i.name,c=i.renderTime,a=i.loadTime,[u,l]=a?[se(a),"load-time"]:c?[se(c),"render-time"]:[ne(),"entry-emission"],d=s==="image-paint"?se(Math.max(0,(c??0)-(a??0))):0,f={[X]:"auto.ui.browser.elementtiming",[be]:"ui.elementtiming",[ye]:"component","sentry.span_start_time_source":l,"sentry.transaction_name":r,"element.id":i.id,"element.type":i.element?.tagName?.toLowerCase()||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":c,"element.load_time":a,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":s};ui({name:`element[${i.identifier}]`,attributes:f,startTime:u,onlyIfParent:!0},m=>{m.end(u+d)})})};var Bg=1e3,yl,$a,Ga;function so(e){Ae("dom",e),ke("dom",Hg)}function Hg(){if(!x.document)return;let e=Ee.bind(null,"dom"),t=El(e,!0);x.document.addEventListener("click",t,!1),x.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let o=x[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(Se(o,"addEventListener",function(i){return function(s,c,a){if(s==="click"||s=="keypress")try{let u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=u[s]=u[s]||{refCount:0};if(!l.handler){let d=El(e);l.handler=d,i.call(this,s,d,a)}l.refCount++}catch(u){}return i.call(this,s,c,a)}}),Se(o,"removeEventListener",function(i){return function(s,c,a){if(s==="click"||s=="keypress")try{let u=this.__sentry_instrumentation_handlers__||{},l=u[s];l&&(l.refCount--,l.refCount<=0&&(i.call(this,s,l.handler,a),l.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch(u){}return i.call(this,s,c,a)}}))})}function Wg(e){if(e.type!==$a)return!1;try{if(!e.target||e.target._sentryId!==Ga)return!1}catch(t){}return!0}function $g(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function El(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Gg(n);if($g(n.type,r))return;le(n,"_sentryCaptured",!0),r&&!r._sentryId&&le(r,"_sentryId",_e());let o=n.type==="keypress"?"input":n.type;Wg(n)||(e({event:n,name:o,global:t}),$a=n.type,Ga=r?r._sentryId:void 0),clearTimeout(yl),yl=x.setTimeout(()=>{Ga=void 0,$a=void 0},Bg)}}function Gg(e){try{return e.target}catch(t){return null}}var Pi;function Vt(e){let t="history";Ae(t,e),ke(t,zg)}function zg(){if(x.addEventListener("popstate",()=>{let t=x.location.href,n=Pi;if(Pi=t,n===t)return;Ee("history",{from:n,to:t})}),!Ia())return;function e(t){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let o=Pi,i=jg(String(r));if(Pi=i,o===i)return t.apply(this,n);Ee("history",{from:o,to:i})}return t.apply(this,n)}}Se(x.history,"pushState",e),Se(x.history,"replaceState",e)}function jg(e){try{return new URL(e,x.location.origin).toString()}catch(t){return e}}var Fi={};function Ui(e){let t=Fi[e];if(t)return t;let n=x[e];if(Qr(n))return Fi[e]=n.bind(x);let r=x.document;if(r&&typeof r.createElement=="function")try{let o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);let i=o.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){ut&&S.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Fi[e]=n.bind(x))}function za(e){Fi[e]=void 0}function Nn(...e){return Ui("setTimeout")(...e)}var It="__sentry_xhr_v3__";function ao(e){Ae("xhr",e),ke("xhr",Vg)}function Vg(){if(!x.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){let o=new Error,i=ne()*1e3,s=Ne(r[0])?r[0].toUpperCase():void 0,c=Yg(r[1]);if(!s||!c)return t.apply(n,r);
20n[It]={method:s,url:c,request_headers:{}},s==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);let a=()=>{let u=n[It];if(u&&n.readyState===4){try{u.status_code=n.status}catch(d){}let l={endTimestamp:ne()*1e3,startTimestamp:i,xhr:n,virtualError:o};Ee("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){let[f,m]=d,h=l[It];return h&&Ne(f)&&Ne(m)&&(h.request_headers[f.toLowerCase()]=m),u.apply(l,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){let o=n[It];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);let i={startTimestamp:ne()*1e3,xhr:n};return Ee("xhr",i),t.apply(n,r)}})}function Yg(e){if(Ne(e))return e;try{return e.toString()}catch(t){}}var qg=Symbol.for("sentry__originalRequestBody");function Bi(e){return new URLSearchParams(e).toString()}function Hi(e,t=S){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Bi(e)];if(!e)return[void 0]}catch(n){return ut&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ut&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Wi(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let n=e[0][qg];return n!==void 0?n:void 0}}function co(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return ut&&S.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
21`).reduce((n,r)=>{let[o,i]=r.split(": ");return i&&(n[o.toLowerCase()]=i),n},{}):{}}var ja=[],$i=new Map,ur=new Map,Xg=60;function Ya(){if(jt()&&me()){let t=Jg();return()=>{t()}}return()=>{}}var Va={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Jg(){return ro(Kg)}var Kg=({metric:e})=>{if(e.value==null)return;let t=se(e.value);if(t>Xg)return;let n=e.entries.find(h=>h.duration===e.value&&Va[h.name]);if(!n)return;let{interactionId:r}=n,o=Va[n.name],i=se(me()+n.startTime),s=re(),c=s?Z(s):void 0,a=r!=null?$i.get(r):void 0,u=a?.span||
21c,l=u?O(u).description:D().getScopeData().transactionName,d=a?.elementName||he(n.target),f={[X]:"auto.http.browser.inp",[be]:`ui.interaction.${o}`,[st]:n.duration},m=cr({name:d,transaction:l,attributes:f,startTime:i});m&&(m.addEvent("inp",{[Lt]:"millisecond",[Ot]:e.value}),m.end(i+t))};function qa(){let e=Object.keys(Va);or()&&e.forEach(o=>{x.addEventListener(o,t,{capture:!0,passive:!0})});function t(o){let i=o.target;if(!i)return;let s=he(i),c=Math.round(o.timeStamp);if(ur.set(c,s),ur.size>50){let a=ur.keys().next().value;a!==void 0&&ur.delete(a)}}function n(o){let i=Math.round(o.startTime),s=ur.get(i);if(!s)for(let c=-5;c<=5;c++){let a=ur.get(i+c);if(a){s=a;break}}return s||"<unknown>"}let r=({entries:o})=>{let i=re(),s=i&&Z(i);o.forEach(c=>{if(!pl(c))return;let a=c.interactionId;if(a==null||$i.has(a))return;let u=c.target?he(c.target):n(c);if(ja.length>10){let l=ja.shift();$i.delete(l)}ja.push(a),$i.set(a,{span:s,elementName:u})})};tt("event",r),tt("first-input",r)}var ce=A,bc="sentryReplaySession",Zg="replay_event",Ic="Unable to send Replay",Qg=3e5,eS=9e5,tS=5e3,nS=5500,rS=6e4,oS=5e3,iS=3,Tl=15e4,Gi=5e3,sS=3e3,aS=300,Rc=2e7,cS=4999,uS=5e4,vl=36e5,dS=Object.defineProperty,lS=(e,t,n)=>t in e?dS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bl=(e,t,n)=>lS(e,typeof t!="symbol"?t+"":t,n),Te=(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))(Te||{});function fS(e){return e.nodeType===e.ELEMENT_NODE}function fo(e){return e?.host?.shadowRoot===e}function po(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function pS(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 mS(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function qi(e){try{let t=e.rules||e.cssRules;return t?pS(Array.from(t,Vl).join("")):null}catch(t){return null}}function hS(e){let t="";for(let n=0;n<e.style.length;n++){let r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function Vl(e){let t;if(SS(e))try{t=qi(e.styleSheet)||mS(e)}catch(n){}else if(_S(e)){let n=e.cssText,r=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=hS(e)),r&&(n=gS(n)),r||o)return n}return t||e.cssText}function gS(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function SS(e){return"styleSheet"in e}function _S(e){return"selectorText"in e}var Xi=class{constructor(){bl(this,"idNodeMap",new Map),bl(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){let r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){let r=this.getNode(t);if(r){let o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function yS(){return new Xi}function ss({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 ho({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Sr(e){return e.toLowerCase()}function ec(e){return e.toUpperCase()}var Il="__rrweb_original__";function ES(e){let t=e.getContext("2d");if(!t)return!0;let n=50;for(let r=0;r<e.width;r+=n)for(let o=0;
21o<e.height;o+=n){let i=t.getImageData,s=Il in i?i[Il]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(a=>a!==0))return!1}return!0}function wc(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Sr(t):null}function Ji(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Yl(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(i){return null}let r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}var Rl={};function ql(e){let t=Rl[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement=="function")try{let o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch(o){}return Rl[e]=r.bind(window)}function tc(...e){return ql("setTimeout")(...e)}function Xl(...e){return ql("clearTimeout")(...e)}function Jl(e){try{return e.contentDocument}catch(t){}}var TS=1,vS=new RegExp("[^a-z0-9-_:]"),go=-2;function xc(){return TS++}function bS(e){if(e instanceof HTMLFormElement)return"form";let t=Sr(e.tagName);return vS.test(t)?"div":t}function IS(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var dr,wl,RS=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wS=/^(?:[a-z+]+:)?\/\//i,xS=/^www\..*/i,CS=/^(data:)([^,]*),(.*)/i;function AS(e,t){if(!e||t.size===0)return e;try{let n=e.split(";"),r=[];for(let o of n){if(o=o.trim(),!o)continue;let i=o.indexOf(":");if(i===-1){r.push(o);continue}let s=o.slice(0,i).trim();t.has(s)||r.push(o)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Ki(e,t){return(e||"").replace(RS,(n,r,o,i,s,c)=>{let a=o||s||c,u=r||i||"";if(!a)return n;if(wS.test(a)||xS.test(a))return`url(${u}${a}${u})`;if(CS.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${IS(t)+a}${u})`;let l=t.split("/"),d=a.split("/");l.pop();for(let f of d)f!=="."&&(f===".."?l.pop():l.push(f));return`url(${u}${l.join("/")}${u})`})}var kS=/^[^ \t\n\r\u000c]+/,NS=/^[, \t\n\r\u000c]+/;function MS(e,t){if(t.trim()==="")return t;let n=0;function r(i){let s,c=i.exec(t.substring(n));return c?(s=c[0],n+=s.length,s):""}let o=[];for(;r(NS),!(n>=t.length);){let i=r(kS);if(i.slice(-1)===",")i=pr(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=pr(e,i);let c=!1;for(;;){let a=t.charAt(n);if(a===""){o.push((i+s).trim());break}else if(c)a===")"&&(c=!1);else if(a===","){n+=1,o.push((i+s).trim());break}else a==="("&&(c=!0);s+=a,n+=1}}}return o.join(", ")}var xl=new WeakMap;function pr(e,t){return!t||t.trim()===""?t:as(e,t)}function LS(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function as(e,t){let n=xl.get(e);if(n||(n=e.createElement("a"),xl.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Kl(e,t,n,r,o,i,s){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return pr(e,r);if(n==="xlink:href"&&r[0]!=="#")return pr(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return pr(e,r);if(n==="srcset")return MS(e,r);if(n==="style"){let c=Ki(r,as(e));return s&&s.size>0&&(c=AS(c,s)),c}else if(t==="object"&&n==="data")return pr(e,r);return typeof i=="function"?i(n,r,o):r}function Zl(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function OS(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){let i=e.classList[o];if(t.test(i))return!0}if(n)return e.matches(n)}catch(o){}return!1}function DS(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function Mn(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Mn(e.parentNode,t,n,r+1)}function mr(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(DS(r,e))return!0}return!!(t&&r.matches(t))}catch(o){return!1}}}function _r(e,t,n,r,o,i){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){let u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let c=-1,a=-1;if(i){if(a=Mn(s,mr(r,o)),a<0)return!0;c=Mn(s,mr(t,n),a>=0?a:1/0)}else{if(c=Mn(s,mr(t,n)),c<0)return!1;a=Mn(s,mr(r,o),c>=0?c:1/0)}return c>=0?a>=0?c<=a:!0:a>=0?!1:!!i}catch(s){}return!!i}function PS(e,t,n){let r=e.contentWindow;if(!r)return;let o=!1,i;try{i=r.document.readyState}catch(c){return}if(i!=="complete"){let c=tc(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{Xl(c),o=!0,t()});return}let s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return tc(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function FS(e,t,n){let r=!1,o;try{o=e.sheet}catch(s){return}if(o)return;let i=tc(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Xl(i),r=!0,t()})}function US(e,t){let{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskAttributeFn:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:h={},maskTextFn:g,maskInputFn:_,dataURLOptions:E={}
21,inlineImages:w,recordCanvas:M,keepIframeSrcFn:P,newlyAddedElement:j=!1,ignoreCSSAttributes:L}=t,y=BS(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Te.Document,childNodes:[],compatMode:e.compatMode}:{type:Te.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Te.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return WS(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:a,maskInputOptions:h,maskInputFn:_,dataURLOptions:E,inlineImages:w,recordCanvas:M,keepIframeSrcFn:P,newlyAddedElement:j,rootId:y,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:L});case e.TEXT_NODE:return HS(e,{doc:n,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:g,maskInputOptions:h,maskInputFn:_,rootId:y});case e.CDATA_SECTION_NODE:return{type:Te.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:Te.Comment,textContent:e.textContent||"",rootId:y};default:return!1}}function BS(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function HS(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:c,maskInputOptions:a,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,m=d==="STYLE"?!0:void 0,h=d==="SCRIPT"?!0:void 0,g=d==="TEXTAREA"?!0:void 0;if(m&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=qi(e.parentNode.sheet))}catch(E){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${E}`,e)}f=Ki(f,as(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");let _=_r(e,r,i,o,s,n);if(!m&&!h&&!g&&f&&_&&(f=c?c(f,e.parentElement):f.replace(/[\S]/g,"*")),g&&f&&(a.textarea||_)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){let E=ss({type:null,tagName:d,maskInputOptions:a});f=ho({isMasked:_r(e,r,i,o,s,E),element:e,value:f,maskInputFn:u})}return{type:Te.Text,textContent:f||"",isStyle:m,rootId:l}}function WS(e,t){let{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:c={},maskAttributeFn:a,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:m,newlyAddedElement:h=!1,rootId:g,maskTextClass:_,unmaskTextClass:E,maskTextSelector:w,unmaskTextSelector:M,ignoreCSSAttributes:P}=t,j=OS(e,r,o,i),L=bS(e),y={},T=e.attributes.length;for(let I=0;I<T;I++){let C=e.attributes[I];C.name&&!Zl(L,C.name,C.value)&&(y[C.name]=Kl(n,L,Sr(C.name),C.value,e,a,P))}if(L==="link"&&s){let I=Array.from(n.styleSheets).find(G=>G.href===e.href),C=null;I&&(C=qi(I)),C&&(y.rel=null,y.href=null,y.crossorigin=null,y._cssText=Ki(C,I.href))}if(L==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let I=qi(e.sheet);I&&(y._cssText=Ki(I,as(n)))}if(L==="input"||L==="textarea"||L==="select"||L==="option"){let I=e,C=wc(I),G=Ji(I,ec(L),C),Y=I.checked;if(C!=="submit"&&C!=="button"&&G){let W=_r(I,_,w,E,M,ss({type:C,tagName:ec(L),maskInputOptions:c}));y.value=ho({isMasked:W,element:I,value:G,maskInputFn:u})}Y&&(y.checked=Y)}if(L==="option"&&(e.selected&&!c.select?y.selected=!0:delete y.selected),L==="canvas"&&f){if(e.__context==="2d")ES(e)||(y.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let I=e.toDataURL(l.type,l.quality),C=n.createElement("canvas");C.width=e.width,C.height=e.height;let G=C.toDataURL(l.type,l.quality);I!==G&&(y.rr_dataURL=I)}}if(L==="img"&&d){dr||(dr=n.createElement("canvas"),wl=dr.getContext("2d"));let I=e,C=I.currentSrc||I.getAttribute("src")||"<unknown-src>",G=I.crossOrigin,Y=()=>{I.removeEventListener("load",Y);try{dr.width=I.naturalWidth,dr.height=I.naturalHeight,wl.drawImage(I,0,0),y.rr_dataURL=dr.toDataURL(l.type,l.quality)}catch(W){if(I.crossOrigin!=="anonymous"){I.crossOrigin="anonymous",I.complete&&I.naturalWidth!==0?Y():I.addEventListener("load",Y);return}else console.warn(`Cannot inline img src=${C}! Error: ${W}`)}I.crossOrigin==="anonymous"&&(G?y.crossOrigin=G:I.removeAttribute("crossorigin"))};
21I.complete&&I.naturalWidth!==0?Y():I.addEventListener("load",Y)}if((L==="audio"||L==="video")&&(y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),j){let{width:I,height:C}=e.getBoundingClientRect();y={class:y.class,rr_width:`${I}px`,rr_height:`${C}px`}}L==="iframe"&&!m(y.src)&&(!j&&!Jl(e)&&(y.rr_src=y.src),delete y.src);let ee;try{customElements.get(L)&&(ee=!0)}catch(I){}return{type:Te.Element,tagName:L,attributes:y,childNodes:[],isSVG:LS(e)||void 0,needBlock:j,rootId:g,isCustom:ee}}function ae(e){return e==null?"":e.toLowerCase()}function $S(e,t){if(t.comment&&e.type===Te.Comment)return!0;if(e.type===Te.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"&&Yl(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ae(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ae(e.attributes.name)==="application-name"||ae(e.attributes.rel)==="icon"||ae(e.attributes.rel)==="apple-touch-icon"||ae(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ae(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ae(e.attributes.property).match(/^(og|twitter|fb):/)||ae(e.attributes.name).match(/^(og|twitter):/)||ae(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ae(e.attributes.name)==="robots"||ae(e.attributes.name)==="googlebot"||ae(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ae(e.attributes.name)==="author"||ae(e.attributes.name)==="generator"||ae(e.attributes.name)==="framework"||ae(e.attributes.name)==="publisher"||ae(e.attributes.name)==="progid"||ae(e.attributes.property).match(/^article:/)||ae(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ae(e.attributes.name)==="google-site-verification"||ae(e.attributes.name)==="yandex-verification"||ae(e.attributes.name)==="csrf-token"||ae(e.attributes.name)==="p:domain_verify"||ae(e.attributes.name)==="verify-v1"||ae(e.attributes.name)==="verification"||ae(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function hr(e,t){let{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:m=!0,maskInputOptions:h={},maskAttributeFn:g,maskTextFn:_,maskInputFn:E,slimDOMOptions:w,dataURLOptions:M={},inlineImages:P=!1,recordCanvas:j=!1,onSerialize:L,onIframeLoad:y,iframeLoadTimeout:T=5e3,onBlockedImageLoad:ee,onStylesheetLoad:I,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:G=()=>!1,newlyAddedElement:Y=!1,ignoreCSSAttributes:W}=t,{preserveWhiteSpace:ve=!0}=t,oe=US(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:c,unblockSelector:s,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:E,dataURLOptions:M,inlineImages:P,recordCanvas:j,keepIframeSrcFn:G,newlyAddedElement:Y,ignoreCSSAttributes:W});if(!oe)return console.warn(e,"not serialized"),null;let ue;r.hasNode(e)?ue=r.getId(e):$S(oe,w)||!ve&&oe.type===Te.Text&&!oe.isStyle&&!oe.textContent.replace(/^\s+|\s+$/gm,"").length?ue=go:ue=xc();let R=Object.assign(oe,{id:ue});if(r.add(e,R),ue===go)return null;L&&L(e);let te=!f;if(R.type===Te.Element){te=te&&!R.needBlock;let N=e.shadowRoot;N&&po(N)&&(R.isShadowHost=!0)}if((R.type===Te.Document||R.type===Te.Element)&&te){w.headWhitespace&&R.type===Te.Element&&R.tagName==="head"&&(ve=!1);let N={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:c,unblockSelector:s,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:E,slimDOMOptions:w,dataURLOptions:M,inlineImages:P,recordCanvas:j,preserveWhiteSpace:ve,onSerialize:L,onIframeLoad:y,iframeLoadTimeout:T,onBlockedImageLoad:ee,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:G,ignoreCSSAttributes:W},ie=e.childNodes?Array.from(e.childNodes):[];for(let de of ie){let pe=hr(de,N);pe&&R.childNodes.push(pe)}if(fS(e)&&e.shadowRoot)for(let de of Array.from(e.shadowRoot.childNodes)){let pe=hr(de,N);pe&&(po(e.shadowRoot)&&(pe.isShadow=!0),R.childNodes.push(pe))}}if(e.parentNode&&fo(e.parentNode)&&po(e.parentNode)&&(R.isShadow=!0),R.type===Te.Element&&R.tagName==="iframe"&&!R.needBlock&&PS(e,()=>{let N=Jl(e);
21if(N&&y){let ie=hr(N,{doc:N,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:E,slimDOMOptions:w,dataURLOptions:M,inlineImages:P,recordCanvas:j,preserveWhiteSpace:ve,onSerialize:L,onIframeLoad:y,iframeLoadTimeout:T,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:G,ignoreCSSAttributes:W});ie&&y(e,ie)}},T),R.type===Te.Element&&R.tagName==="img"&&!e.complete&&R.needBlock){let N=e,ie=()=>{if(N.isConnected&&!N.complete&&ee)try{let de=N.getBoundingClientRect();de.width>0&&de.height>0&&ee(N,R,de)}catch(de){}N.removeEventListener("load",ie)};N.isConnected&&N.addEventListener("load",ie)}return R.type===Te.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&Yl(R.attributes.href)==="css")&&FS(e,()=>{if(I){let N=hr(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:E,slimDOMOptions:w,dataURLOptions:M,inlineImages:P,recordCanvas:j,preserveWhiteSpace:ve,onSerialize:L,onIframeLoad:y,iframeLoadTimeout:T,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:G,ignoreCSSAttributes:W});N&&I(e,N)}},C),R.type===Te.Element&&delete R.needBlock,R}function GS(e,t){let{mirror:n=new Xi,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:c="rr-mask",unmaskTextClass:a=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:m=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:_,maskInputFn:E,slimDOM:w=!1,dataURLOptions:M,preserveWhiteSpace:P,onSerialize:j,onIframeLoad:L,iframeLoadTimeout:y,onBlockedImageLoad:T,onStylesheetLoad:ee,stylesheetLoadTimeout:I,keepIframeSrcFn:C=()=>!1,ignoreCSSAttributes:G=new Set([])}=t||{};return hr(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,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:g,maskTextFn:_,maskInputFn:E,slimDOMOptions:w===!0||w==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:w==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:w===!1?{}:w,dataURLOptions:M,inlineImages:f,recordCanvas:m,preserveWhiteSpace:P,onSerialize:j,onIframeLoad:L,iframeLoadTimeout:y,onBlockedImageLoad:T,onStylesheetLoad:ee,stylesheetLoadTimeout:I,keepIframeSrcFn:C,newlyAddedElement:!1,ignoreCSSAttributes:G})}function Be(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var lr=`Please stop import mirror directly. Instead of that,\r
22now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
23or you can use record.mirror to access the mirror instance during recording.`,Cl={map:{},getId(){return console.error(lr),-1},getNode(){return console.error(lr),null},removeNodeFromMap(){console.error(lr)},has(){return console.error(lr),!1},reset(){console.error(lr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Cl=new Proxy(Cl,{get(e,t,n){return t==="map"&&console.error(lr),Reflect.get(e,t,n)}}));function So(e,t,n={}){let r=null,o=0;return function(...i){let s=Date.now();!o&&n.leading===!1&&(o=s);let c=t-(s-o),a=this;c<=0||c>t?(r&&(XS(r),r=null),o=s,e.apply(a,i)):!r&&n.trailing!==!1&&(r=cs(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(a,i)},c))}}function Ql(e,t,n,r,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){cs(()=>{n.set.call(this,s)}
23,0),i&&i.set&&i.set.call(this,s)}}),()=>Ql(e,t,i||{},!0)}function Cc(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(r){return()=>{}}}var Zi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Zi=()=>new Date().getTime());function ef(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function tf(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nf(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function rf(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(t){return null}}function nt(e,t,n,r,o){if(!e)return!1;let i=rf(e);if(!i)return!1;let s=mr(t,n);if(!o){let u=r&&i.matches(r);return s(i)&&!u}let c=Mn(i,s),a=-1;return c<0?!1:(r&&(a=Mn(i,mr(null,r))),c>-1&&a<0?!0:c<a)}function zS(e,t){return t.getId(e)!==-1}function Xa(e,t){return t.getId(e)===go}function of(e,t){if(fo(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?of(e.parentNode,t):!0:!0}function nc(e){return!!e.changedTouches}function jS(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 sf(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function af(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function rc(e){return!!e?.shadowRoot}var oc=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function cf(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function VS(e){let t=e,n;for(;n=cf(t);)t=n;return t}function YS(e){let t=e.ownerDocument;if(!t)return!1;let n=VS(e);return t.contains(n)}function uf(e){let t=e.ownerDocument;return t?t.contains(e)||YS(e):!1}var Al={};function Ac(e){let t=Al[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement=="function")try{let o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch(o){}return Al[e]=r.bind(window)}function qS(...e){return Ac("requestAnimationFrame")(...e)}function cs(...e){return Ac("setTimeout")(...e)}function XS(...e){return Ac("clearTimeout")(...e)}var $=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))($||{}),B=(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))(B||{}),Ue=(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))(Ue||{}),Yt=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Yt||{}),fr=(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))(fr||{});function kc(e){try{return e.contentDocument}catch(t){}}function JS(e){try{return e.contentWindow}catch(t){}}function kl(e){return"__ln"in e}var ic=class{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){let n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&kl(t.previousSibling)){let r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&kl(t.nextSibling)&&t.nextSibling.__ln.previous){let r=t.nextSibling.__ln.previous;
23n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){let n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Nl=(e,t)=>`${e}@${t}`,sc=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],n=new Set,r=new ic,o=a=>{let u=a,l=go;for(;l===go;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},i=a=>{if(!a.parentNode||!uf(a))return;let u=fo(a.parentNode)?this.mirror.getId(cf(a)):this.mirror.getId(a.parentNode),l=o(a);if(u===-1||l===-1)return r.addNode(a);let d=hr(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=>{sf(f,this.mirror)&&!nt(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),af(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),rc(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(f,m)=>{nt(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,m),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,m)=>{this.stylesheetManager.attachLinkElement(f,m)},onBlockedImageLoad:(f,m,{width:h,height:g})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:m.id,attributes:{style:{width:`${h}px`,height:`${g}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(t.push({parentId:u,nextId:l,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)Ml(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||i(a);for(let a of this.addedSet)!Ll(this.droppedSet,a)&&!Ml(this.removes,a,this.mirror)||Ll(this.movedSet,a)?i(a):this.droppedSet.add(a);let s=null;for(;r.length;){let a=null;if(s){let u=this.mirror.getId(s.value.parentNode),l=o(s.value);u!==-1&&l!==-1&&(a=s)}if(!a){let u=r.tail;for(;u;){let l=u;if(u=u.previous,l){let d=this.mirror.getId(l.value.parentNode);if(o(l.value)===-1)continue;if(d!==-1){a=l;break}else{let m=l.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=m.parentNode.host;if(this.mirror.getId(h)!==-1){a=l;break}}}}}}if(!a){for(;r.head;)r.removeNode(r.head.value);break}s=a.previous,r.removeNode(a.value),i(a.value)}let 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=>{let{attributes:u}=a;if(typeof u.style=="string"){let 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(!Xa(t.target,this.mirror))switch(t.type){case"characterData":{let n=t.target.textContent;!nt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:_r(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,rf(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{let n=t.target,r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){let s=wc(n),c=n.tagName;o=Ji(n,c,s);let a=ss({maskInputOptions:this.maskInputOptions,tagName:c,type:s}),u=_r(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a);o=ho({isMasked:u,element:n,value:o,maskInputFn:this.maskInputFn})}if(nt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!kc(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
23,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"),!Zl(n.tagName,r)&&(i.attributes[r]=Kl(this.doc,Sr(n.tagName),Sr(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(c){this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(let c of Array.from(n.style)){let a=n.style.getPropertyValue(c),u=n.style.getPropertyPriority(c);a!==s.style.getPropertyValue(c)||u!==s.style.getPropertyPriority(c)?u===""?i.styleDiff[c]=a:i.styleDiff[c]=[a,u]:i._unchangedStyles[c]=[a,u]}for(let c of Array.from(s.style))n.style.getPropertyValue(c)===""&&(i.styleDiff[c]=!1)}break}case"childList":{if(nt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{let r=this.mirror.getId(n),o=fo(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);nt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Xa(n,this.mirror)||!zS(n,this.mirror)||(this.addedSet.has(n)?(ac(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||of(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Nl(r,o)]?ac(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:fo(t.target)&&po(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(Xa(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[Nl(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);nt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),rc(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 ac(e,t){e.delete(t),t.childNodes?.forEach(n=>ac(e,n))}function Ml(e,t,n){return e.length===0?!1:KS(e,t,n)}function KS(e,t,n){let r=t.parentNode;for(;r;){let o=n.getId(r);if(e.some(i=>i.id===o))return!0;r=r.parentNode}return!1}function Ll(e,t){return e.size===0?!1:df(e,t)}function df(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:df(e,n):!1}var mo;function ZS(e){mo=e}function QS(){mo=void 0}var q=e=>mo?(...n)=>{try{return e(...n)}catch(r){if(mo&&mo(r)===!0)return()=>{};throw r}}:e,gr=[];function vo(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function lf(e,t){let n=new sc;gr.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);let i=new r(q(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function e_({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,s=[],c,a=So(q(d=>
23{let f=Date.now()-c;e(s.map(m=>(m.timeOffset-=f,m)),d),s=[],c=null}),i),u=q(So(q(d=>{let f=vo(d),{clientX:m,clientY:h}=nc(d)?d.changedTouches[0]:d;c||(c=Zi()),s.push({x:m,y:h,id:r.getId(f),timeOffset:Zi()-c}),a(typeof DragEvent<"u"&&d instanceof DragEvent?B.Drag:d instanceof MouseEvent?B.MouseMove:B.TouchMove)}),o,{trailing:!1})),l=[Be("mousemove",u,n),Be("touchmove",u,n),Be("drag",u,n)];return q(()=>{l.forEach(d=>d())})}function t_({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};let c=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,a=[],u=null,l=d=>f=>{let m=vo(f);if(nt(m,r,o,i,!0))return;let h=null,g=d;if("pointerType"in f){switch(f.pointerType){case"mouse":h=Yt.Mouse;break;case"touch":h=Yt.Touch;break;case"pen":h=Yt.Pen;break}h===Yt.Touch?Ue[d]===Ue.MouseDown?g="TouchStart":Ue[d]===Ue.MouseUp&&(g="TouchEnd"):Yt.Pen}else nc(f)&&(h=Yt.Touch);h!==null?(u=h,(g.startsWith("Touch")&&h===Yt.Touch||g.startsWith("Mouse")&&h===Yt.Mouse)&&(h=null)):Ue[d]===Ue.Click&&(h=u,u=null);let _=nc(f)?f.changedTouches[0]:f;if(!_)return;let E=n.getId(m),{clientX:w,clientY:M}=_;q(e)(p({type:Ue[g],id:E,x:w,y:M},h!==null&&{pointerType:h}))};return Object.keys(Ue).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&c[d]!==!1).forEach(d=>{let f=Sr(d),m=l(d);if(window.PointerEvent)switch(Ue[d]){case Ue.MouseDown:case Ue.MouseUp:f=f.replace("mouse","pointer");break;case Ue.TouchStart:case Ue.TouchEnd:return}a.push(Be(f,m,t))}),q(()=>{a.forEach(d=>d())})}function ff({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){let c=q(So(q(a=>{let u=vo(a);if(!u||nt(u,r,o,i,!0))return;let l=n.getId(u);if(u===t&&t.defaultView){let d=ef(t.defaultView);e({id:l,x:d.left,y:d.top})}else e({id:l,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return Be("scroll",c,t)}function n_({viewportResizeCb:e},{win:t}){let n=-1,r=-1,o=q(So(q(()=>{let i=tf(),s=nf();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return Be("resize",o,t)}var r_=["INPUT","TEXTAREA","SELECT"],Ol=new WeakMap;function o_({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:c,maskInputOptions:a,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:m,maskTextSelector:h,unmaskTextSelector:g}){function _(y){let T=vo(y),ee=y.isTrusted,I=T&&ec(T.tagName);if(I==="OPTION"&&(T=T.parentElement),!T||!I||r_.indexOf(I)<0||nt(T,r,o,i,!0))return;let C=T;if(C.classList.contains(s)||c&&C.matches(c))return;let G=wc(T),Y=Ji(C,I,G),W=!1,ve=ss({maskInputOptions:a,tagName:I,type:G}),oe=_r(T,f,h,m,g,ve);(G==="radio"||G==="checkbox")&&(W=T.checked),Y=ho({isMasked:oe,element:T,value:Y,maskInputFn:u}),E(T,d?{text:Y,isChecked:W,userTriggered:ee}:{text:Y,isChecked:W});let ue=T.name;G==="radio"&&ue&&W&&t.querySelectorAll(`input[type="radio"][name="${ue}"]`).forEach(R=>{if(R!==T){let te=ho({isMasked:oe,element:R,value:Ji(R,I,G),maskInputFn:u});E(R,d?{text:te,isChecked:!W,userTriggered:!1}:{text:te,isChecked:!W})}})}function E(y,T){let ee=Ol.get(y);if(!ee||ee.text!==T.text||ee.isChecked!==T.isChecked){Ol.set(y,T);let I=n.getId(y);q(e)(b(p({},T),{id:I}))}}let M=(l.input==="last"?["change"]:["input","change"]).map(y=>Be(y,q(_),t)),P=t.defaultView;if(!P)return()=>{M.forEach(y=>y())};let j=P.Object.getOwnPropertyDescriptor(P.HTMLInputElement.prototype,"value"),L=[[P.HTMLInputElement.prototype,"value"],[P.HTMLInputElement.prototype,"checked"],[P.HTMLSelectElement.prototype,"value"],[P.HTMLTextAreaElement.prototype,"value"],[P.HTMLSelectElement.prototype,"selectedIndex"],[P.HTMLOptionElement.prototype,"selected"]];return j&&j.set&&M.push(...L.map(y=>Ql(y[0],y[1],{set(){q(_)({target:this,isTrusted:!1})}},!1,P))),q(()=>{M.forEach(y=>y())})}function Qi(e){let t=[];function n(r,o){if(zi("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||zi("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||zi("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||zi("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){let s=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(s)}else if(r.parentStyleSheet){let s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(s)}return o}return n(e,t)}function cn(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function i_({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:q((l,d,f)=>{let[m,h]=f,{id:g,styleId:_}=cn(d,t,n.styleMirror);return(g&&g!==-1||_&&_!==-1)&&e({id:g,styleId:_,adds:[{rule:m,index:h}]}),l.apply(d,f)})});let i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:q((l,d,f)=>{let[m]=f,{id:h,styleId:g}=cn(d,t,n.styleMirror);
23return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,removes:[{index:m}]}),l.apply(d,f)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:q((l,d,f)=>{let[m]=f,{id:h,styleId:g}=cn(d,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replace:m}),l.apply(d,f)})}));let c;r.CSSStyleSheet.prototype.replaceSync&&(c=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:q((l,d,f)=>{let[m]=f,{id:h,styleId:g}=cn(d,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replaceSync:m}),l.apply(d,f)})}));let a={};ji("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(ji("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),ji("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),ji("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(a).forEach(([l,d])=>{u[l]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[l].insertRule,{apply:q((f,m,h)=>{let[g,_]=h,{id:E,styleId:w}=cn(m.parentStyleSheet,t,n.styleMirror);return(E&&E!==-1||w&&w!==-1)&&e({id:E,styleId:w,adds:[{rule:g,index:[...Qi(m),_||0]}]}),f.apply(m,h)})}),d.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:q((f,m,h)=>{let[g]=h,{id:_,styleId:E}=cn(m.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||E&&E!==-1)&&e({id:_,styleId:E,removes:[{index:[...Qi(m),g]}]}),f.apply(m,h)})})}),q(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),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 pf({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);let o=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(s){let c=i.set?.call(this,s);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch(a){}return c}}),q(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function s_({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){let i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:q((c,a,u)=>{let[l,d,f]=u;if(n.has(l))return i.apply(a,[l,d,f]);let{id:m,styleId:h}=cn(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:l,value:d,priority:f},index:Qi(a.parentRule)}),c.apply(a,u)})});let s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:q((c,a,u)=>{let[l]=u;if(n.has(l))return s.apply(a,[l]);let{id:d,styleId:f}=cn(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:l},index:Qi(a.parentRule)}),c.apply(a,u)})}),q(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function a_({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){let c=q(u=>So(q(l=>{let d=vo(l);if(!d||nt(d,t,n,r,!0))return;let{currentTime:f,volume:m,muted:h,playbackRate:g}=d;e({type:u,id:o.getId(d),currentTime:f,volume:m,muted:h,playbackRate:g})}),i.media||500)),a=[Be("play",c(fr.Play),s),Be("pause",c(fr.Pause),s),Be("seeked",c(fr.Seeked),s),Be("volumechange",c(fr.VolumeChange),s),Be("ratechange",c(fr.RateChange),s)];return q(()=>{a.forEach(u=>u())})}function c_({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(a,u,l){let d=new i(a,u,l);return o.set(d,{family:a,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};let s=Cc(t.fonts,"add",function(c){return function(a){return cs(q(()=>{let u=o.get(a);u&&(e(u),o.delete(a))}),0),c.apply(this,[a])}});return r.push(()=>{n.FontFace=i}),r.push(s),q(()=>{r.forEach(c=>c())})}function u_(e){let{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e,c=!0,a=q(()=>{let u=t.getSelection();if(!u||c&&u?.isCollapsed)return;c=u.isCollapsed||!1;let l=[],d=u.rangeCount||0;for(let f=0;f<d;f++){let m=u.getRangeAt(f),{startContainer:h,startOffset:g,endContainer:_,endOffset:E}=m;nt(h,r,o,i,!0)||nt(_,r,o,i,!0)||l.push({start:n.getId(h),startOffset:g,end:n.getId(_),endOffset:E})}s({ranges:l})});return a(),Be("selectionchange",a)}function d_({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}
23:Cc(n.customElements,"define",function(o){return function(i,s,c){try{t({define:{name:i}})}catch(a){}return o.apply(this,[i,s,c])}})}function l_(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=lf(e,e.doc));let o=e_(e),i=t_(e),s=ff(e),c=n_(e,{win:n}),a=o_(e),u=a_(e),l=()=>{},d=()=>{},f=()=>{},m=()=>{};e.recordDOM&&(l=i_(e,{win:n}),d=pf(e,e.doc),f=s_(e,{win:n}),e.collectFonts&&(m=c_(e)));let h=u_(e),g=d_(e),_=[];for(let E of e.plugins)_.push(E.observer(E.callback,n,E.options));return q(()=>{gr.forEach(E=>E.reset()),r?.disconnect(),o(),i(),s(),c(),a(),u(),l(),d(),f(),m(),h(),g(),_.forEach(E=>E())})}function zi(e){return typeof window[e]<"u"}function ji(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var _o=class{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){let i=r||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t),c=i.get(n);return c||(c=this.generateIdFn(),i.set(n,c),s.set(c,n)),c}getIds(t,n){let r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,o))}getRemoteId(t,n,r){let o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;let i=o.get(n);return i||-1}getRemoteIds(t,n){let r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}},cc=class{constructor(){this.crossOriginIframeMirror=new _o(xc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},uc=class{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new _o(xc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new _o(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);let r=kc(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){let n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;let o=this.crossOriginIframeMap.get(t.source);if(!o)return;let i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case $.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);let r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:$.IncrementalSnapshot,data:{source:B.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case $.Meta:case $.Load:case $.DomContentLoaded:return!1;case $.Plugin:return n;case $.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case $.IncrementalSnapshot:switch(n.data.source){case B.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}
23),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 B.Drag:case B.TouchMove:case B.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case B.ViewportResize:return!1;case B.MediaInteraction:case B.MouseInteraction:case B.Scroll:case B.CanvasMutation:case B.Input:return this.replaceIds(n.data,t,["id"]),n;case B.StyleSheetRule:case B.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case B.Font:return n;case B.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case B.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,o){for(let i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Te.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}},dc=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},lc=class{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!po(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);let r=lf(b(p({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(ff(b(p({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),cs(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(pf({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){let n=kc(t),r=JS(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){let r=this;this.restoreHandlers.push(Cc(t.prototype,"attachShadow",function(o){return function(i){let s=o.call(this,i);return this.shadowRoot&&uf(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(n){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},Dl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f_=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(uo=0;uo<Dl.length;uo++)f_[Dl.charCodeAt(uo)]=uo;var uo,es=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}},fc=class{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new oc,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;let r={id:n,styleIds:[]},o=[];for(let i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(c,a)=>({rule:Vl(c),index:a}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},pc=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){let r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,qS(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}},ge,ts;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var Rt=yS();function qt(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:c="rr-ignore",ignoreSelector:a=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:m=null,inlineStylesheet:h=!0,maskAllInputs:g,maskInputOptions:_,slimDOMOptions:E,maskAttributeFn:w,maskInputFn:M,maskTextFn:P,maxCanvasSize:j=null,packFn:L,sampling:y={},dataURLOptions:T={},mousemoveWait:ee,recordDOM:I=!0,recordCanvas:C=!1,recordCrossOriginIframes:G=!1,recordAfter:Y=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:W=!1,collectFonts:ve=!1,inlineImages:oe=!1,plugins:ue,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:N,onMutation:ie,getCanvasManager:de}=e;ZS(N);let pe=G?window.parent===window:!0,Ye=!1;if(!pe)try{window.parent.document&&(Ye=!1)}catch(J){Ye=!0}if(pe&&!t)throw new Error("emit function is required");if(!pe&&!Ye)return()=>{};ee!==void 0&&y.mousemove===void 0&&(y.mousemove=ee),Rt.reset();let qe=g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:_!==void 0?_:{},On=E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:E==="all",headMetaDescKeywords:E==="all"}:E||{};jS();let Bt,Dn=0,Do=J=>{for(let ht of ue||[])ht.eventProcessor&&(J=ht.eventProcessor(J));return L&&!Ye&&(J=L(J)),J};ge=(J,ht)=>{let V=J;if(V.timestamp=Zi(),gr[0]?.isFrozen()&&V.type!==$.FullSnapshot&&!(V.type===$.IncrementalSnapshot&&V.data.source===B.Mutation)&&gr.forEach(Ce=>Ce.unfreeze()),pe)t?.(Do(V),ht);else if(Ye){let Ce={type:"rrweb",event:Do(V),origin:window.location.origin,isCheckout:ht};window.parent.postMessage(Ce,"*")}if(V.type===$.FullSnapshot)Bt=V,Dn=0;else if(V.type===$.IncrementalSnapshot){if(V.data.source===B.Mutation&&V.data.isAttachIframe)return;Dn++;let Ce=r&&Dn>=r,K=n&&Bt&&V.timestamp-Bt.timestamp>n;(Ce||K)&&vs(!0)}};let br=J=>
23{ge({type:$.IncrementalSnapshot,data:p({source:B.Mutation},J)})},iu=J=>ge({type:$.IncrementalSnapshot,data:p({source:B.Scroll},J)}),kp=J=>ge({type:$.IncrementalSnapshot,data:p({source:B.CanvasMutation},J)}),Np=J=>ge({type:$.IncrementalSnapshot,data:p({source:B.AdoptedStyleSheet},J)}),fn=new fc({mutationCb:br,adoptedStyleSheetCb:Np}),pn=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new cc:new uc({mirror:Rt,mutationCb:br,stylesheetManager:fn,recordCrossOriginIframes:G,wrappedEmit:ge});for(let J of ue||[])J.getMirror&&J.getMirror({nodeMirror:Rt,crossOriginIframeMirror:pn.crossOriginIframeMirror,crossOriginIframeStyleMirror:pn.crossOriginIframeStyleMirror});let Es=new pc,Ts=m_(de,{mirror:Rt,win:window,mutationCb:J=>ge({type:$.IncrementalSnapshot,data:p({source:B.CanvasMutation},J)}),recordCanvas:C,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:j,sampling:y.canvas,dataURLOptions:T,errorHandler:N}),Po=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new dc:new lc({mutationCb:br,scrollCb:iu,bypassOptions:{onMutation:ie,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:m,inlineStylesheet:h,maskInputOptions:qe,dataURLOptions:T,maskAttributeFn:w,maskTextFn:P,maskInputFn:M,recordCanvas:C,inlineImages:oe,sampling:y,slimDOMOptions:On,iframeManager:pn,stylesheetManager:fn,canvasManager:Ts,keepIframeSrcFn:R,processedNodeManager:Es,ignoreCSSAttributes:te},mirror:Rt}),vs=(J=!1)=>{if(!I)return;ge({type:$.Meta,data:{href:window.location.href,width:nf(),height:tf()}},J),fn.reset(),Po.init(),gr.forEach(V=>V.lock());let ht=GS(document,{mirror:Rt,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:m,inlineStylesheet:h,maskAllInputs:qe,maskAttributeFn:w,maskInputFn:M,maskTextFn:P,slimDOM:On,dataURLOptions:T,recordCanvas:C,inlineImages:oe,onSerialize:V=>{sf(V,Rt)&&pn.addIframe(V),af(V,Rt)&&fn.trackLinkElement(V),rc(V)&&Po.addShadowRoot(V.shadowRoot,document)},onIframeLoad:(V,Ce)=>{pn.attachIframe(V,Ce),V.contentWindow&&Ts.addWindow(V.contentWindow),Po.observeAttachShadow(V)},onStylesheetLoad:(V,Ce)=>{fn.attachLinkElement(V,Ce)},onBlockedImageLoad:(V,Ce,{width:K,height:Ir})=>{br({adds:[],removes:[],texts:[],attributes:[{id:Ce.id,attributes:{style:{width:`${K}px`,height:`${Ir}px`}}}]})},keepIframeSrcFn:R,ignoreCSSAttributes:te});if(!ht)return console.warn("Failed to snapshot the document");ge({type:$.FullSnapshot,data:{node:ht,initialOffset:ef(window)}}),gr.forEach(V=>V.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fn.adoptStyleSheets(document.adoptedStyleSheets,Rt.getId(document))};ts=vs;try{let J=[],ht=Ce=>q(l_)({onMutation:ie,mutationCb:br,mousemoveCb:(K,Ir)=>ge({type:$.IncrementalSnapshot,data:{source:Ir,positions:K}}),mouseInteractionCb:K=>ge({type:$.IncrementalSnapshot,data:p({source:B.MouseInteraction},K)}),scrollCb:iu,viewportResizeCb:K=>ge({type:$.IncrementalSnapshot,data:p({source:B.ViewportResize},K)}),inputCb:K=>ge({type:$.IncrementalSnapshot,data:p({source:B.Input},K)}),mediaInteractionCb:K=>ge({type:$.IncrementalSnapshot,data:p({source:B.MediaInteraction},K)}),styleSheetRuleCb:K=>ge({type:$.IncrementalSnapshot,data:p({source:B.StyleSheetRule},K)}),styleDeclarationCb:K=>ge({type:$.IncrementalSnapshot,data:p({source:B.StyleDeclaration},K)}),canvasMutationCb:kp,fontCb:K=>ge({type:$.IncrementalSnapshot,data:p({source:B.Font},K)}),selectionCb:K=>{ge({type:$.IncrementalSnapshot,data:p({source:B.Selection},K)})},customElementCb:K=>{ge({type:$.IncrementalSnapshot,data:p({source:B.CustomElement},K)})},blockClass:o,ignoreClass:c,ignoreSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:m,maskInputOptions:qe,inlineStylesheet:h,sampling:y,recordDOM:I,recordCanvas:C,inlineImages:oe,userTriggeredOnInput:W,collectFonts:ve,doc:Ce,maskAttributeFn:w,maskInputFn:M,maskTextFn:P,keepIframeSrcFn:R,blockSelector:i,unblockSelector:s,slimDOMOptions:On,dataURLOptions:T,mirror:Rt,iframeManager:pn,stylesheetManager:fn,shadowDomManager:Po,processedNodeManager:Es,canvasManager:Ts,ignoreCSSAttributes:te,plugins:ue?.filter(K=>K.observer)?.map(K=>({observer:K.observer,options:K.options,callback:Ir=>ge({type:$.Plugin,data:{plugin:K.name,payload:Ir}})}))||[]},{});
23pn.addLoadListener(Ce=>{try{J.push(ht(Ce.contentDocument))}catch(K){console.warn(K)}});let V=()=>{vs(),J.push(ht(document))};return document.readyState==="interactive"||document.readyState==="complete"?V():(J.push(Be("DOMContentLoaded",()=>{ge({type:$.DomContentLoaded,data:{}}),Y==="DOMContentLoaded"&&V()})),J.push(Be("load",()=>{ge({type:$.Load,data:{}}),Y==="load"&&V()},window))),()=>{J.forEach(Ce=>Ce()),Es.destroy(),ts=void 0,QS()}}catch(J){console.warn(J)}}function p_(e){if(!ts)throw new Error("please take full snapshot after start recording");ts(e)}qt.mirror=Rt;qt.takeFullSnapshot=p_;function m_(e,t){try{return e?e(t):new es}catch(n){return console.warn("Unable to initialize CanvasManager"),new es}}var Pl;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Pl||(Pl={}));var h_=3,g_=5;function Nc(e){return e>9999999999?e:e*1e3}function Ja(e){return e>9999999999?e/1e3:e}function bo(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:$.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Pe(t,10,1e3)}}),t.category==="console")))}var S_="button,a";function mf(e){return e.closest(S_)||e}function hf(e){let t=gf(e);return!t||!(t instanceof Element)?t:mf(t)}function gf(e){return __(e)?e.target:e}function __(e){return typeof e=="object"&&!!e&&"target"in e}var un;function y_(e){return un||(un=[],E_()),un.push(e),()=>{let t=un?un.indexOf(e):-1;t>-1&&un.splice(t,1)}}function E_(){Se(ce,"open",function(e){return function(...t){if(un)try{un.forEach(n=>n())}catch(n){}return e.apply(ce,t)}})}var T_=new Set([B.Mutation,B.StyleSheetRule,B.StyleDeclaration,B.AdoptedStyleSheet,B.CanvasMutation,B.Selection,B.MediaInteraction]);function v_(e,t,n){e.handleClick(t,n)}var mc=class{constructor(t,n,r=bo){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){let t=y_(()=>{this._lastMutation=Fl()});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(I_(n,this._ignoreSelector)||!R_(t))return;let r={timestamp:Ja(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Ja(t)}registerScroll(t=Date.now()){this._lastScroll=Ja(t)}registerClick(t){let n=mf(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){let t=[],n=Fl();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(let r of t){let o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){let n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:c}=t;if(i){let 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:b(p({},c.data),{url:ce.location.href,route:n.getCurrentRoute(),timeAfterClickMs:a,endReason:u,clickCount:s||1})};this._addBreadcrumbEvent(n,l);return}if(s>1){let a={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.multiClick",data:b(p({},c.data),{url:ce.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0})};this._addBreadcrumbEvent(n,a)}}
23_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Nn(()=>this._checkClicks(),1e3)}},b_=["A","BUTTON","INPUT"];function I_(e,t){return!!(!b_.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 R_(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Fl(){return Date.now()/1e3}function w_(e,t){try{if(!x_(t))return;let{source:n}=t.data;if(T_.has(n)&&e.registerMutation(t.timestamp),n===B.Scroll&&e.registerScroll(t.timestamp),C_(t)){let{type:r,id:o}=t.data,i=qt.mirror.getNode(o);i instanceof HTMLElement&&r===Ue.Click&&e.registerClick(i)}}catch(n){}}function x_(e){return e.type===h_}function C_(e){return e.data.source===B.MouseInteraction}function Ut(e){return p({timestamp:Date.now()/1e3,type:"default"},e)}var Mc=(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))(Mc||{}),A_=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function k_(e){let t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(let n in e)if(A_.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}var N_=e=>t=>{if(!e.isEnabled())return;let n=M_(t);if(!n)return;let r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&v_(e.clickDetector,n,hf(t.event)),bo(e,n)};function Sf(e,t){let n=qt.mirror.getId(e),r=n&&qt.mirror.getNode(n),o=r&&qt.mirror.getMeta(r),i=o&&O_(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===Mc.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:k_(i.attributes)}}:{}}}function M_(e){let{target:t,message:n}=L_(e);return Ut(p({category:`ui.${e.name}`},Sf(t,n)))}function L_(e){let t=e.name==="click",n,r=null;try{r=t?hf(e.event):gf(e.event),n=he(r,{maxStringLength:200})||"<unknown>"}catch(o){n="<unknown>"}return{target:r,message:n}}function O_(e){return e.type===Mc.Element}function D_(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=P_(t);n&&bo(e,n)}function P_(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||F_(s)||!i)return null;let c=t||r||o,a=i.length===1;if(!c&&a)return null;let u=he(s,{maxStringLength:200})||"<unknown>",l=Sf(s,u);return Ut({category:"ui.keyDown",message:u,data:b(p({},l.data),{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i})})}function F_(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}var U_={resource:G_,paint:W_,navigation:$_};function Ka(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}
23function B_(e){return e.map(H_).filter(Boolean)}function H_(e){let t=U_[e.entryType];return t?t(e):null}function yr(e){return((me()||ce.performance.timeOrigin)+e)/1e3}function W_(e){let{duration:t,entryType:n,name:r,startTime:o}=e,i=yr(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function $_(e){let{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:m,transferSize:h,type:g}=e;return o===0?null:{type:`${t}.${g}`,start:yr(m),end:yr(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:f}}}function G_(e){let{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:c,responseStatus:a,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:yr(i),end:yr(o),name:r,data:{size:u,statusCode:a,decodedBodySize:s,encodedBodySize:c}}}function z_(e){let t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Lc(e,"largest-contentful-paint",n)}function j_(e){return e.sources!==void 0}function V_(e){let t=[],n=[];for(let r of e.entries)if(j_(r)){let o=[];for(let i of r.sources)if(i.node){n.push(i.node);let s=qt.mirror.getId(i.node);s&&o.push(s)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return Lc(e,"cumulative-layout-shift",n,t)}function Y_(e){let t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Lc(e,"interaction-to-next-paint",n)}function Lc(e,t,n,r){let o=e.value,i=e.rating,s=yr(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(c=>qt.mirror.getId(c)):void 0,attributions:r}}}function q_(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(o=>{r.push(tt(o,n))}),r.push(kn(Ka(z_,e)),An(Ka(V_,e)),ro(Ka(Y_,e))),()=>{r.forEach(o=>o())}}var F=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,X_='
vendor: 10,329 bytes, line 23
23var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
23';function J_(){let e=new Blob([X_]);return URL.createObjectURL(e)}var Ul=["log","warn","error"],Yi="[Replay] ";function Za(e,t="info"){ct({category:"console",data:{logger:"replay"},level:t,message:`${Yi}${e}`},{level:t})}function K_(){let e=!1,t=!1,n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return F?(Ul.forEach(r=>{n[r]=(...o)=>{S[r](Yi,...o),t&&Za(o.join(""),Kr(r))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),S.error(Yi,r),e?Jn(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Za(r,"error")},n.infoTick=(...r)=>{S.log(Yi,...r),t&&setTimeout(()=>Za(r[0]),0)}):Ul.forEach(r=>{n[r]=()=>{}}),n}var U=K_(),yo=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Rc}.`)}},ns=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}addEvent(t){return z(this,null,function*(){let n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Rc)throw new yo;this.events.push(t)})}finish(){return new Promise(t=>{let n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=this.events.map(n=>n.timestamp).sort()[0];return t?Nc(t):null}},hc=class{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){F&&U.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){let r=this._getAndIncrementId();return new Promise((o,i)=>{let s=({data:c})=>{let a=c;if(a.method===t&&a.id===r){if(this._worker.removeEventListener("message",s),!a.success){F&&U.error("Error in compression worker: ",a.response),i(new Error("Error in compression worker"));return}o(a.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}},gc=class{constructor(t){this._worker=new hc(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){let n=Nc(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);let r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Rc?Promise.reject(new yo):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{F&&U.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}_finishRequest(){return z(this,null,function*(){let t=yield this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t})}},Sc=class{constructor(t){this._fallback=new ns,this._compression=new gc(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}finish(){return z(this,null,function*(){return yield this.ensureWorkerIsLoaded(),this._used.finish()})}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}_ensureWorkerIsLoaded(){return z(this,null,function*(){try{yield this._compression.ensureReady()}catch(t){F&&U.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}yield this._switchToCompressionWorker()})}_switchToCompressionWorker(){return z(this,null,function*(){let{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,o=[];for(let i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{yield Promise.all(o),this._fallback.clear()}catch(i){F&&U.exception(i,"Failed to add events when switching buffers.")}})}};function Z_({useCompression:e,workerUrl:t}){if(e&&window.Worker){let n=Q_(t);if(n)return n}return F&&U.log("Using simple buffer"),new ns}function Q_(e){try{let t=e||ey();if(!t)return;F&&U.log(`Using compression worker${e?` from ${e}`:""}`);let n=new Worker(t);return new Sc(n)}catch(t){F&&U.exception(t,"Failed to create compression worker")}}function ey(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?J_():""}function Oc(){try{return"sessionStorage"in ce&&!!ce.sessionStorage}catch(e){return!1}}function ty(e){ny(),e.session=void 0}function ny(){if(Oc())try{ce.sessionStorage.removeItem(bc)}catch(e){}}function _f(e){return e===void 0?!1:Math.random()<e}function us(e){if(Oc())try{ce.sessionStorage.setItem(bc,JSON.stringify(e))}catch(t){}}function yf(e){let t=Date.now(),n=e.id||_e(),r=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,c=e.previousSessionId,a=e.dirty||!1;return{id:n,started:r,lastActivity:o,segmentId:i,sampled:s,previousSessionId:c,dirty:a}}function ry(e,t){return _f(e)?"session":t?"buffer":!1}function Bl({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let o=ry(e,t),i=yf({sampled:o,previousSessionId:r});return n&&us(i),i}function oy(){if(!Oc())return null;try{let e=ce.sessionStorage.getItem(bc);if(!e)return null;let t=JSON.parse(e);return F&&U.infoTick("Loading existing session"),yf(t)}catch(e){return null}}function _c(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Ef(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return _c(e.started,t,r)||_c(e.lastActivity,n,r)}function Tf(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Ef(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Qa({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let o=r.stickySession&&oy();return o?Tf(o,{sessionIdleExpire:e,maxReplayDuration:t})?(F&&U.infoTick("Session in sessionStorage is expired, creating new one..."),Bl(r,{previousSessionId:o.id})):o:(F&&U.infoTick("Creating new session"),Bl(r,{previousSessionId:n}))}function iy(e){return e.type===$.Custom}function Dc(e,t,n){return bf(e,t)?(vf(e,t,n),!0):!1}function sy(e,t,n){return bf(e,t)?vf(e,t,n):Promise.resolve(null)}function vf(e,t,n){return z(this,null,function*(){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let o=e.recordingMode==="buffer";
23try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let i=e.getOptions(),s=ay(t,i.beforeAddRecordingEvent);return s?yield r.addEvent(s):void 0}catch(i){let s=i&&i instanceof yo,c=s?"addEventSizeExceeded":"addEvent",a=k();if(a){let u=s?"buffer_overflow":"internal_sdk_error";a.recordDroppedEvent(u,"replay")}if(s&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),yield e.stop({reason:c})}})}function bf(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=Nc(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(F&&U.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function ay(e,t){try{if(typeof t=="function"&&iy(e))return t(e)}catch(n){return F&&U.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Pc(e){return!e.type}function yc(e){return e.type==="transaction"}function cy(e){return e.type==="replay_event"}function Hl(e){return e.type==="feedback"}function uy(e){return(t,n)=>{if(!e.isEnabled()||!Pc(t)&&!yc(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(yc(t)){dy(e,t);return}ly(e,t)}}}function dy(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function ly(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Nn(()=>z(null,null,function*(){try{yield e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}}))}function fy(e){return t=>{!e.isEnabled()||!Pc(t)||py(e,t)}}function py(e,t){let n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let r=Ut({category:"replay.hydrate-error",data:{url:Ke()}});bo(e,r)}}function my(e){let t=k();t&&t.on("beforeAddBreadcrumb",n=>hy(e,n))}function hy(e,t){if(!e.isEnabled()||!If(t))return;let n=gy(t);n&&bo(e,n)}function gy(e){return!If(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?Sy(e):Ut(e)}function Sy(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Ut(e);let n=!1,r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Gi?(n=!0,`${o.slice(0,Gi)}\u2026`):o;if(typeof o=="object")try{let i=Pe(o,7);return JSON.stringify(i).length>Gi?(n=!0,`${JSON.stringify(i,null,2).slice(0,Gi)}\u2026`):i}catch(i){}return o});return Ut(b(p({},e),{data:p(b(p({},e.data),{arguments:r}),n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}function If(e){return!!e.category}function _y(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function Rf(){let e=D().getPropagationContext().dsc;e&&delete e.replay_id;let t=re();if(t){let n=xe(t);delete n.replay_id}}function yy(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:$.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function Ey(e,t){return e.recordingMode!=="buffer"||t.message===Ic||!t.exception||t.type?!1:_f(e.getOptions().errorSampleRate)}function Ty(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(cy(t))return delete t.breadcrumbs,t;if(!Pc(t)&&!yc(t)&&!Hl(t))return t;if(!e.checkAndHandleExpiredSession())return Rf(),t;if(Hl(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),yy(e,t),t;if(_y(t,n)&&!e.getOptions()._experiments.captureExceptions)return F&&U.log("Ignoring error from rrweb internals",t),null;let o=Ey(e,t);if((o||e.recordingMode==="session")&&(t.tags=b(p({},t.tags),{replayId:e.getSessionId()})),o&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){let s=e.session;s.dirty=!0,e.getOptions().stickySession&&us(s)}return t},{id:"Replay"})}function ds(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{let c=e.throttledAddEvent({type:$.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:s}}});return typeof c=="string"?Promise.resolve(null):c})}function vy(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function by(e){return t=>{if(!e.isEnabled())return;let n=vy(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(ds(e,[n]),!1)))}}function Iy(e,t){return F&&e.getOptions()._experiments.traceInternals?!1:ga(t,k())}function wf(e,t){e.isEnabled()&&t!==null&&(Iy(e,t.name)||e.addUpdate(()=>(ds(e,[t]),!0)))}function ls(e){if(!e)return;let t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=Bi(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(n){}}function xf(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function rs(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n=p({},e._meta),r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Cf(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:c,response:a}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:i,statusCode:s,request:c,response:a}}}function Eo(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function dn(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:o,warnings:i}=Ry(n);return r.body=o,i?.length&&(r._meta={warnings:i}),r}function Ec(e,t){return Object.entries(e).reduce((n,[r,o])=>{let i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n},{})}function Ry(e){if(!e||typeof e!="string")return{body:e};let t=e.length>Tl,n=wy(e);if(t){let r=e.slice(0,Tl);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(r){}return{body:e}}function wy(e){let t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function os(e,t){let n=xy(e);return Ge(n,t)}function xy(e,t=ce.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ce.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}function Cy(e,t,n){return z(this,null,function*(){try{let r=yield ky(e,t,n),o=Cf("resource.fetch",r);wf(n.replay,o)}catch(r){F&&U.exception(r,"Failed to capture fetch breadcrumb")}})}
23function Ay(e,t){let{input:n,response:r}=t,o=n?Wi(n):void 0,i=ls(o),s=r?xf(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function ky(e,t,n){return z(this,null,function*(){let r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:c,status_code:a=0,request_body_size:u,response_body_size:l}=e.data,d=os(s,n.networkDetailAllowUrls)&&!os(s,n.networkDetailDenyUrls),f=d?Ny(n,t.input,u):Eo(u),m=yield My(d,n,t.response,l);return{startTimestamp:o,endTimestamp:i,url:s,method:c,statusCode:a,request:f,response:m}})}function Ny({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let o=n?Dy(n,t):{};if(!e)return dn(o,r,void 0);let i=Wi(n),[s,c]=Hi(i,U),a=dn(o,r,s);return c?rs(a,c):a}function My(i,s,c,a){return z(this,arguments,function*(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return Eo(o);let u=r?Af(r.headers,n):{};if(!r||!t&&o!==void 0)return dn(u,o,void 0);let[l,d]=yield Oy(r),f=Ly(l,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:u});return d?rs(f,d):f})}function Ly(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{let i=e?.length&&n===void 0?ls(e):n;return r?t?dn(o,i,e):dn(o,i,void 0):Eo(i)}catch(i){return F&&U.exception(i,"Failed to serialize response body"),dn(o,n,void 0)}}function Oy(e){return z(this,null,function*(){let t=Py(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[yield Fy(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(F&&U.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(F&&U.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}})}function Af(e,t){let n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function Dy(e,t){return e.length===1&&typeof e[0]!="string"?Wl(e[0],t):e.length===2?Wl(e[1],t):{}}function Wl(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?Af(n,t):Array.isArray(n)?{}:Ec(n,t):{}}function Py(e){try{return e.clone()}catch(t){F&&U.exception(t,"Failed to clone response body")}}function Fy(e){return new Promise((t,n)=>{let r=Nn(()=>n(new Error("Timeout while trying to read response body")),500);Uy(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}function Uy(e){return z(this,null,function*(){return yield e.text()})}function By(e,t,n){return z(this,null,function*(){try{let r=Wy(e,t,n),o=Cf("resource.xhr",r);wf(n.replay,o)}catch(r){F&&U.exception(r,"Failed to capture xhr breadcrumb")}})}function Hy(e,t){let{xhr:n,input:r}=t;if(!n)return;let o=ls(r),i=n.getResponseHeader("content-length")?xf(n.getResponseHeader("content-length")):zy(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function Wy(e,t,n){let r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,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||!os(a,n.networkDetailAllowUrls)||os(a,n.networkDetailDenyUrls)){let L=Eo(d),y=Eo(f);return{startTimestamp:o,endTimestamp:i,url:a,method:u,statusCode:l,request:L,response:y}}let m=c[It],h=m?Ec(m.request_headers,n.networkRequestHeaders):{},g=Ec(co(c),n.networkResponseHeaders),[_,E]=n.networkCaptureBodies?Hi(s,U):[void 0],[w,M]=n.networkCaptureBodies?$y(c):[void 0],P=dn(h,d,_),j=dn(g,f,w);return{startTimestamp:o,endTimestamp:i,url:a,method:u,statusCode:l,request:E?rs(P,E):P,response:M?rs(j,M):j}}function $y(e){let t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return Gy(e.response,e.responseType)}catch(n){t.push(n)}return F&&U.warn("Failed to get xhr response body",...t),[void 0]}function Gy(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 F&&U.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return F&&U.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function zy(e,t){try{let n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return ls(n)}catch(n){return}}function jy(e){let t=k();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),c={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(a,u)=>Vy(c,a,u))}catch(n){}}function Vy(e,t,n){if(t.data)try{Yy(t)&&Xy(n)&&(Hy(t,n),By(t,n,e)),qy(t)&&Jy(n)&&(Ay(t,n),Cy(t,n,e))}catch(r){F&&U.exception(r,"Error when enriching network breadcrumb")}}function Yy(e){return e.category==="xhr"}function qy(e){return e.category==="fetch"}function Xy(e){return e?.xhr}function Jy(e){return e?.response}function Ky(e){let t=k();so(N_(e)),Vt(by(e)),my(e),jy(e);let n=Ty(e);fi(n),t&&(t.on("beforeSendEvent",fy(e)),t.on("afterSendEvent",uy(e)),t.on("createDsc",r=>{let o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,o)=>z(null,null,function*(){let i=e.getSessionId();o?.includeReplay&&e.isEnabled()&&i&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&(yield e.sendBufferedReplayOrFlush()),r.contexts.feedback.replay_id=i)})),t.on("openFeedbackWidget",()=>z(null,null,function*(){yield e.sendBufferedReplayOrFlush()})))}function Zy(e){return z(this,null,function*(){try{return Promise.all(ds(e,[Qy(ce.performance.memory)]))}catch(t){return[]}})}function Qy(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}
23function eE(e,t,n){return _a(e,t,b(p({},n),{setTimeoutImpl:Nn}))}var Vi=A.navigator;function tE(){return/iPhone|iPad|iPod/i.test(Vi?.userAgent??"")||/Macintosh/i.test(Vi?.userAgent??"")&&Vi?.maxTouchPoints&&Vi?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function nE(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){F&&U.warn("Received replay event after session expired.");return}let o=r||!t;t=!0,e.clickDetector&&w_(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!Dc(e,n,o))return!0;if(!o)return!1;let i=e.session;if(oE(e,o),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){let s=e.eventBuffer.getEarliestTimestamp();s&&(F&&U.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),i.started=s,e.getOptions().stickySession&&us(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function rE(e){let t=e.getOptions();return{type:$.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function oE(e,t){!t||!e.session||e.session.segmentId!==0||Dc(e,rE(e),!1)}function iE(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(t){return null}}function sE(e,t,n,r){return Fe(Ur(e,Yn(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function aE({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
24`;if(typeof e=="string")n=`${r}${e}`;else{let i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}function cE(o){return z(this,arguments,function*({client:e,scope:t,replayId:n,event:r}){let i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,s={event_id:n,integrations:i};e.emit("preprocessEvent",r,s);let c=yield Wr(e.getOptions(),r,s,t,e,we());if(!c)return null;e.emit("postprocessEvent",c,s),c.platform=c.platform||"javascript";let a=e.getSdkMetadata(),{name:u,version:l,settings:d}=a?.sdk||{};return c.sdk=b(p({},c.sdk),{name:u||"sentry.javascript.unknown",version:l||"0.0.0",settings:d}),c})}function uE(s){return z(this,arguments,function*({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){let c=aE({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:u,traceIds:l,initialTimestamp:d}=r,f=k(),m=D(),h=f?.getTransport(),g=f?.getDsn();if(!f||!h||!g||!i.sampled)return Promise.resolve({});let _={type:Zg,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:u,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},E=yield cE({scope:m,client:f,replayId:t,event:_});if(!E)return f.recordDroppedEvent("event_processor","replay"),F&&U.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete E.sdkProcessingMetadata;let w=sE(E,c,g,f.getOptions().tunnel),M;try{M=yield h.send(w)}catch(j){let L=new Error(Ic);try{L.cause=j}catch(y){}throw L}if(typeof M.statusCode=="number"&&(M.statusCode<200||M.statusCode>=300))throw new is(M.statusCode);let P=qr({},M);if(Yr(P,"replay"))throw new To(P);return M})}var is=class extends Error{constructor(t){super(`Transport returned status code ${t}`)}},To=class extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}};function kf(n){return z(this,arguments,function*(e,t={count:0,interval:oS}){let{recordingData:r,onError:o}=e;if(r.length)try{return yield uE(e),!0}catch(i){if(i instanceof is||i instanceof To)throw i;if(Kn("Replays",{_retryCount:t.count}),o&&o(i),t.count>=iS){let s=new Error(`${Ic} - max retries exceeded`);try{s.cause=i}catch(c){}throw s}return t.interval*=++t.count,new Promise((s,c)=>{Nn(()=>z(null,null,function*(){try{yield kf(e,t),s(!0)}catch(a){c(a)}}),t.interval)})}})}var Nf="__THROTTLED",dE="__SKIPPED";
24function lE(e,t,n){let r=new Map,o=c=>{let a=c-n;r.forEach((u,l)=>{l<a&&r.delete(l)})},i=()=>[...r.values()].reduce((c,a)=>c+a,0),s=!1;return(...c)=>{let a=Math.floor(Date.now()/1e3);if(o(a),i()>=t){let l=s;return s=!0,l?dE:Nf}s=!1;let u=r.get(a)||0;return r.set(a,u+1),e(...c)}}var Tc=class{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Qg,sessionIdleExpire:eS},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=eE(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=lE((s,c)=>sy(this,s,c),300,5);let{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(sS,r),timeout:r,scrollTimeout:aS,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new mc(this,i)),F){let s=t._experiments;U.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{ce.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let s=Ut({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{let s=Ut({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{D_(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){F&&U.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){let{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){F&&U.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",F&&U.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){F&&U.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){F&&U.log("Buffering is in progress, call `flush()` to save the replay");return}F&&U.infoTick("Starting replay in session mode"),this._updateUserActivity();let t=Qa({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){F&&U.log("Buffering is in progress, call `flush()` to save the replay");return}F&&U.infoTick("Starting replay in buffer mode");let t=Qa({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let t=this._canvas;this._stopRecording=qt(p(b(p(b(p(p({},this._recordingOptions),this.recordingMode==="buffer"?{checkoutEveryNms:rS}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)}),{emit:nE(this)}),tE()),{onMutation:this._onMutationHandler.bind(this)}),t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}))}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}stop(){return z(this,arguments,function*({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{F&&U.log(`Stopping Replay${n?` triggered by ${n}`:""}`),Rf(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&(yield this._flush({force:!0})),this.eventBuffer?.destroy(),this.eventBuffer=null,ty(this)}catch(r){this.handleException(r)}}})}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),F&&U.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),F&&U.log("Resuming replay"))}sendBufferedReplayOrFlush(){return z(this,arguments,function*({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let n=Date.now();F&&U.log("Converting buffer to session"),yield this.flushImmediate();let r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())})}addUpdate(t){let n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}
24checkAndHandleExpiredSession(){if(this._lastActivity&&_c(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let t=`${ce.location.pathname}${ce.location.hash}${ce.location.search}`,n=`${ce.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){let r=this._throttledAddEvent(t,n);if(r===Nf){let o=Ut({category:"replay.throttled"});this.addUpdate(()=>!Dc(this,{type:g_,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){let t=this.lastActiveSpan||re(),n=t&&Z(t),o=(n&&O(n).data||{})[ye];if(!(!n||!o||!["route","custom"].includes(o)))return O(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Z_({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){let n=this._options.errorSampleRate>0,r=Qa({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;let t=this.session;return Tf(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}_refreshSession(t){return z(this,null,function*(){this._isEnabled&&(yield this.stop({reason:"refresh session"}),this.initializeSampling(t.id))})}_addListeners(){try{ce.document.addEventListener("visibilitychange",this._handleVisibilityChange),ce.addEventListener("blur",this._handleWindowBlur),ce.addEventListener("focus",this._handleWindowFocus),ce.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Ky(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=q_(this)}_removeListeners(){try{ce.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ce.removeEventListener("blur",this._handleWindowBlur),ce.removeEventListener("focus",this._handleWindowFocus),ce.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||Ef(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()){F&&U.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:$.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=B_(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(ds(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;let r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
24_popEventContext(){let t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}_runFlush(){return z(this,null,function*(){let t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){F&&U.error("No session or eventBuffer found to flush.");return}if(yield this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(yield Zy(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");let r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();let i=yield this.eventBuffer.finish();yield kf({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});let r=k();if(r){let o=n instanceof To?"ratelimit_backoff":"send_error";r.recordDroppedEvent(o,"replay")}}})}_flush(){return z(this,arguments,function*({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){F&&U.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();let i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){F&&U.log(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}let c=this.eventBuffer;c&&this.session.segmentId===0&&!c.hasCheckout&&F&&U.log("Flushing initial segment without checkout.");let a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{yield this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}})}_maybeSaveSession(){this.session&&this._options.stickySession&&us(this.session)}_onMutationHandler(t){let{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(c=>{let a=iE(c.target),u=n.join(",");return a?.matches(u)}))return!1;let r=t.length,o=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=o&&r>o;if(r>i||s){let c=Ut({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(c)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}};function lo(e,t){return[...e,...t].join(",")}function fE({mask:e,unmask:t,block:n,unblock:r,ignore:o}){let i=["base","iframe[srcdoc]:not([src])"],s=lo(e,[".sentry-mask","[data-sentry-mask]"]),c=lo(t,[]);return{maskTextSelector:s,unmaskTextSelector:c,blockSelector:lo(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:lo(r,[]),ignoreSelector:lo(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function pE({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}var $l='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',mE=["content-length","content-type","accept"],hE=Symbol.for("sentry__originalRequestBody"),Gl=!1,zl=!1;function gE(){if(typeof Request>"u"||zl)return;let e=Request;try{let t=function(n,r){let o=new e(n,r);return r?.body!=null&&(o[hE]=r.body),o};t.prototype=e.prototype,A.Request=t,zl=!0}catch(t){}}var SE=e=>new vc(e),vc=class{constructor({flushMinDelay:t=tS,flushMaxDelay:n=nS,minReplayDuration:r=cS,maxReplayDuration:o=vl,stickySession:i=!0,useCompression:s=!0,workerUrl:c,_experiments:a={},maskAllText:u=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:m=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:E=[],networkCaptureBodies:w=!0,networkRequestHeaders:M=[],networkResponseHeaders:P=[],mask:j=[],maskAttributes:L=["title","placeholder","aria-label"],unmask:y=[],block:T=[],unblock:ee=[],ignore:I=[],maskFn:C,beforeAddRecordingEvent:G,beforeErrorSampling:Y,onError:W,attachRawBodyFromRequest:ve=!1}={}){this.name="Replay";let oe=fE({mask:j,unmask:y,block:T,unblock:ee,ignore:I});if(this._recordingOptions=b(p({maskAllInputs:l,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(ue,R,te)=>pE({maskAttributes:L,maskAllText:u,privacyOptions:oe,key:ue,value:R,el:te})},oe),{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:ue=>{try{ue.__rrweb__=!0}catch(R){}},recordCrossOriginIframes:!!a.recordCrossOriginIframes}),this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,uS),maxReplayDuration:Math.min(o,vl),stickySession:i,useCompression:s,workerUrl:c,blockAllMedia:d,maskAllInputs:l,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:m,slowClickTimeout:h,slowClickIgnoreSelectors:g,networkDetailAllowUrls:_,networkDetailDenyUrls:E,networkCaptureBodies:w,networkRequestHeaders:jl(M),networkResponseHeaders:jl(P),beforeAddRecordingEvent:G,beforeErrorSampling:Y,onError:W,attachRawBodyFromRequest:ve,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${$l}`:$l,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&or())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Gl}set _isInitialized(t){Gl=t}afterAllSetup(t){!or()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&gE(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
24startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){let n=_E(this._initialOptions,t);this._replay=new Tc({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{let n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch(n){}}};function _E(e,t){let n=t.getOptions(),r=p({sessionSampleRate:0,errorSampleRate:0},e),o=Qe(n.replaysSessionSampleRate),i=Qe(n.replaysOnErrorSampleRate);return o==null&&i==null&&Le(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),i!=null&&(r.errorSampleRate=i),r}function jl(e){return[...mE,...e.map(t=>t.toLowerCase())]}var H=A,Fc=0;function Uc(){return Fc>0}function yE(){Fc++,setTimeout(()=>{Fc--})}function Ln(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{let o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(Sn(e))return e}catch(o){return e}let r=function(...o){try{let i=o.map(s=>Ln(s,t));return e.apply(this,i)}catch(i){throw yE(),Kt(s=>{s.addEventProcessor(c=>(t.mechanism&&(Wn(c,void 0,void 0),Nt(c,t.mechanism)),c.extra=b(p({},c.extra),{arguments:o}),c)),Jn(i)}),i}};try{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch(o){}zo(r,e),le(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch(o){}return r}function Io(){let e=Ke(),{referrer:t}=H.document||{},{userAgent:n}=H.navigator||{},r=p(p({},t&&{Referer:t}),n&&{"User-Agent":n});return{url:e,headers:r}}function fs(e,t){let n=Wc(e,t),r={type:IE(t),value:RE(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function EE(e,t,n,r){let i=k()?.getOptions().normalizeDepth,s=CE(t),c={__serialized__:ii(t,i)};if(s)return{exception:{values:[fs(e,s)]},extra:c};let a={exception:{values:[{type:gn(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:wE(t,{isUnhandledRejection:r})}]},extra:c};if(n){let u=Wc(e,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function Bc(e,t){return{exception:{values:[fs(e,t)]}}}function Wc(e,t){let n=t.stacktrace||t.stack||"",r=vE(t),o=bE(t);try{return e(n,r,o)}catch(i){}return[]}var TE=/Minified React error #\d+;/i;function vE(e){return e&&TE.test(e.message)?1:0}function bE(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Mf(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function IE(e){let t=e?.name;return!t&&Mf(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function RE(e){let t=e?.message;return Mf(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Si(t.error):Si(e):"No error message"}function Lf(e,t,n,r){let o=n?.syntheticException||void 0,i=ps(e,t,o,r);return Nt(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),rn(i)}function Of(e,t,n="info",r,o){let i=r?.syntheticException||void 0,s=Hc(e,t,i,o);return s.level=n,r?.event_id&&(s.event_id=r.event_id),rn(s)}function ps(e,t,n,r,o){let i;if(xr(t)&&t.error)return Bc(e,t.error);if(Go(t)||Ms(t)){let s=t;if("stack"in t)i=Bc(e,t);else{let c=s.name||(Go(s)?"DOMError":"DOMException"),a=s.message?`${c}: ${s.message}`:c;i=Hc(e,a,n,r),Wn(i,a)}return"code"in s&&(i.tags=b(p({},i.tags),{"DOMException.code":`${s.code}`})),i}return Ht(t)?Bc(e,t):At(t)||gn(t)?(i=EE(e,t,n,o),Nt(i,{synthetic:!0}),i):(i=Hc(e,t,n,r),Wn(i,`${t}`,void 0),Nt(i,{synthetic:!0}),i)}function Hc(e,t,n,r){let o={};if(r&&n){let i=Wc(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),Nt(o,{synthetic:!0})}
24if(hn(t)){let{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function wE(e,{isUnhandledRejection:t}){let n=Fs(e),r=t?"promise rejection":"exception";return xr(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:gn(e)?`Event \`${xE(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function xE(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}function CE(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}var ms=class extends Xr{constructor(t){let n=AE(t),r=H.SENTRY_SDK_SOURCE||Ca();Jr(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings=p({infer_ip:n.sendDefaultPii?"auto":"never"},n._metadata.sdk.settings)),super(n);let{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:c,enableMetrics:a}=this._options,u=a??c?.enableMetrics??!0;H.document&&(i||s||u)&&H.document.addEventListener("visibilitychange",()=>{H.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),s&&jr(this),u&&Vr(this))}),o&&this.on("beforeSendSession",Sa)}eventFromException(t,n){return Lf(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Of(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}};function AE(e){return p({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:H.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},e)}var kE=40;function Df(e,t=Ui("fetch")){let n=0,r=0;function o(i){return z(this,null,function*(){let s=i.body.length;n+=s,r++;let c=p({body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);try{let a=yield 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 za("fetch"),a}finally{n-=s,r--}})}return mi(e,o,wn(e.bufferSize||kE))}var Re=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var NE=30;var ME=50;function $c(e,t,n,r){let o={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var LE=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,OE=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,DE=/\((\S*)(?::(\d+))(?::(\d+))\)/,PE=/at (.+?) ?\(data:(.+?),/,FE=e=>{let t=e.match(PE);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=LE.exec(e);if(n){let[,o,i,s]=n;return $c(o,"?",+i,+s)}let r=OE.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){let c=DE.exec(r[2]);c&&(r[2]=c[1],r[3]=c[2],r[4]=c[3])}let[i,s]=Ff(r[1]||"?",r[2]);return $c(s,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},UE=[NE,FE],BE=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,HE=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,WE=e=>{let t=BE.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=HE.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||"?";return[o,r]=Ff(o,r),$c(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},$E=[ME,WE];var GE=[UE,$E],Pf=Bo(...GE),Ff=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var hs=1024,zE="Breadcrumbs",jE=(e={})=>{let t=p({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:zE,setup(n){t.console&&va(qE(n)),t.dom&&so(YE(n,t.dom)),t.xhr&&ao(XE(n)),t.fetch&&eo(JE(n)),t.history&&Vt(KE(n)),t.sentry&&n.on("beforeSendEvent",VE(n))}}},Ro=jE;function VE(e){return function(n){k()===e&&ct({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:kt(n)},{event:n})}}function YE(e,t){return function(r){if(k()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>hs&&(Re&&S.warn(`\`dom.maxStringLength\` cannot exceed ${hs}, but a value of ${c} was configured. Sentry will use ${hs} instead.`),c=hs),typeof s=="string"&&(s=[s]);try{let u=r.event,l=ZE(u)?u.target:u;o=he(l,{keyAttrs:s,maxStringLength:c}),i=kr(l)}catch(u){o="<unknown>"}if(o.length===0)return;let a={category:`ui.${r.name}`,message:o};i&&(a.data={"ui.component_name":i}),ct(a,{event:r.event,name:r.name,global:r.global})}}function qE(e){return function(n){if(k()!==e)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:Kr(n.level),message:Vo(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Vo(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ct(r,{input:n.args,level:n.level})}}function XE(e){return function(n){if(k()!==e)return;let{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[It];if(!r||!o||!i)return;let{method:s,url:c,status_code:a,body:u}=i,l={method:s,url:c,status_code:a},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:o},f={category:"xhr",data:l,type:"http",level:Ti(a)};e.emit("beforeOutgoingRequestBreadcrumb",f,d),ct(f,d)}}function JE(e){return function(n){if(k()!==e)return;let{startTimestamp:r,endTimestamp:o}=n;
24if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){let i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o},c={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",c,s),ct(c,s)}else{let i=n.response,s=b(p({},n.fetchData),{status_code:i?.status});n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;let c={input:n.args,response:i,startTimestamp:r,endTimestamp:o},a={category:"fetch",data:s,type:"http",level:Ti(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,c),ct(a,c)}}}function KE(e){return function(n){if(k()!==e)return;let r=n.from,o=n.to,i=vt(H.location.href),s=r?vt(r):void 0,c=vt(o);s?.path||(s=i),i.protocol===c.protocol&&i.host===c.host&&(o=c.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),ct({category:"navigation",data:{from:r,to:o}})}}function ZE(e){return!!e&&!!e.target}var QE=["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"],eT="BrowserApiErrors",tT=(e={})=>{let t=p({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},e);return{name:eT,setupOnce(){t.setTimeout&&Se(H,"setTimeout",Uf),t.setInterval&&Se(H,"setInterval",Uf),t.requestAnimationFrame&&Se(H,"requestAnimationFrame",nT),t.XMLHttpRequest&&"XMLHttpRequest"in H&&Se(XMLHttpRequest.prototype,"send",rT);let n=t.eventTarget;n&&(Array.isArray(n)?n:QE).forEach(o=>oT(o,t))}}},Bf=tT;function Uf(e){return function(...t){let n=t[0];return t[0]=Ln(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${$e(e)}`}}),e.apply(this,t)}}function nT(e){return function(t){return e.apply(this,[Ln(t,{mechanism:{data:{handler:$e(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function rT(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Se(n,o,function(i){let s={mechanism:{data:{handler:$e(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},c=Sn(i);return c&&(s.mechanism.data.handler=$e(c)),Ln(i,s)})}),e.apply(this,t)}}function oT(e,t){let r=H[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Se(r,"addEventListener",function(o){return function(i,s,c){try{iT(s)&&(s.handleEvent=Ln(s.handleEvent,{mechanism:{data:{handler:$e(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch(a){}return t.unregisterOriginalCallbacks&&sT(this,i,s),o.apply(this,[i,Ln(s,{mechanism:{data:{handler:$e(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),Se(r,"removeEventListener",function(o){return function(i,s,c){try{let a=s.__sentry_wrapped__;a&&o.call(this,i,a,c)}catch(a){}return o.call(this,i,s,c)}}))}function iT(e){return typeof e.handleEvent=="function"}function sT(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}var wo=()=>({name:"BrowserSession",setupOnce(){if(typeof H.document>"u"){Re&&S.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Gr({ignoreDuration:!0}),zr(),Vt(({from:e,to:t})=>{e!==void 0&&e!==t&&(Gr({ignoreDuration:!0}),zr())})}});var aT="GlobalHandlers",cT=(e={})=>{let t=p({onerror:!0,onunhandledrejection:!0},e);return{name:aT,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(uT(n),Hf("onerror")),t.onunhandledrejection&&(dT(n),Hf("onunhandledrejection"))}}},xo=cT;function uT(e){Rr(t=>{let{stackParser:n,attachStacktrace:r}=Wf();if(k()!==e||Uc())return;let{msg:o,url:i,line:s,column:c,error:a}=t,u=pT(ps(n,a||o,void 0,r,!1),i,s,c);u.level="error",$r(u,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function dT(e){wr(t=>{let{stackParser:n,attachStacktrace:r}=Wf();if(k()!==e||Uc())return;let o=lT(t),i=yt(o)?fT(o):ps(n,o,void 0,r,!0);i.level="error",$r(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function lT(e){if(yt(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}function fT(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function pT(e,t,n,r){let o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},c=s.stacktrace=s.stacktrace||{},a=c.frames=c.frames||[],u=r,l=n,d=mT(t)??Ke();return a.length===0&&a.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),e}function Hf(e){Re&&S.log(`Global Handler attached: ${e}`)}function Wf(){return k()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function mT(e){if(!(!Ne(e)||e.length===0))return e.startsWith("data:")?`<${at(e,!1)}>`:e}var Co=()=>({name:"HttpContext",preprocessEvent(e){if(!H.navigator&&!H.location&&!H.document)return;let t=Io(),n=p(p({},t.headers),e.request?.headers);e.request=b(p(p({},t),e.request),{headers:n})}});var hT="cause",gT=5,ST="LinkedErrors",_T=(e={})=>{let t=e.limit||gT,n=e.key||hT;return{name:ST,preprocessEvent(r,o,i){let s=i.getOptions();Ta(fs,s.stackParser,n,t,r,o)}}},Ao=_T;function $f(){return yT()?(Re&&Le(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}
24function yT(){if(typeof H.window>"u")return!1;let e=H;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let n=Ke(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(H===H.top&&r.some(i=>n.startsWith(`${i}://`)))}function Gf(e){return[nr(),tr(),Bf(),Ro(),xo(),Ao(),rr(),Co(),wo()]}function Gc(e={}){let t=!e.skipBrowserExtensionCheck&&$f(),n=e.defaultIntegrations==null?Gf():e.defaultIntegrations,r=b(p({},e),{enabled:t?!1:e.enabled,stackParser:As(e.stackParser||Pf),integrations:aa({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Df});return pa(ms,r)}function zf(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function zc(e){try{return new URL(e,H.location.origin).href}catch(t){return}}function jf(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function jc(e){try{return new Headers(e)}catch(t){return}}var Vf=new WeakMap,Vc=new Map,Yc={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function qf(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:c,onRequestSpanStart:a,onRequestSpanEnd:u}=p(p({},Yc),t),l=typeof i=="function"?i:h=>!0,d=h=>ET(h,c),f={},m=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(g=>{if(g.op==="http.client"){let _=Vc.get(g.span_id);_&&(g.timestamp=_/1e3,Vc.delete(g.span_id))}}),h)),o&&wa(h=>{if(h.response){let g=Vf.get(h.response);g&&h.endTimestamp&&Vc.set(g,h.endTimestamp)}}),eo(h=>{let g=ba(h,l,d,f,{propagateTraceparent:m,onRequestSpanEnd:u});if(h.response&&h.fetchData.__span&&Vf.set(h.response,h.fetchData.__span),g){let _=zc(h.fetchData.url),E=_?vt(_).host:void 0;g.setAttributes({"http.url":_?at(_):void 0,"server.address":E}),s&&Yf(g),a?.(g,{headers:h.headers})}})),r&&ao(h=>{let g=TT(h,l,d,f,m,u);g&&(s&&Yf(g),a?.(g,{headers:jc(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}function Yf(e){let{url:t}=O(e).data;if(!t||typeof t!="string")return;let n=tt("resource",({entries:r})=>{r.forEach(o=>{jf(o)&&o.name.endsWith(t)&&(e.setAttributes(io(o)),setTimeout(n))})})}function ET(e,t){let n=Ke();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch(s){return!1}let i=r.origin===o;return t?Ge(r.toString(),t)||i&&Ge(r.pathname,t):i}else{let r=!!e.match(/^\/(?!\/)/);return t?Ge(e,t):r}}function TT(e,t,n,r,o,i){let s=e.xhr,c=s?.[It];if(!s||s.__sentry_own_request__||!c)return;let{url:a,method:u}=c,l=Ie()&&t(a);if(e.endTimestamp&&l){let E=s.__sentry_xhr_span_id__;if(!E)return;let w=r[E];w&&c.status_code!==void 0&&(zn(w,c.status_code),w.end(),i?.(w,{headers:jc(co(s)),error:e.error}),delete r[E]);return}let d=zc(a),f=d?vt(d):vt(a),m=at(_i(a)),h=!!re(),g=l&&h?je({name:`${u} ${m}`,attributes:p(p({url:at(a),type:"xhr","http.method":u,"http.url":d?at(d):void 0,"server.address":f?.host,[X]:"auto.http.browser",[be]:"http.client"},f?.search&&{"http.query":f?.search}),f?.hash&&{"http.fragment":f?.hash})}):new De;s.__sentry_xhr_span_id__=g.spanContext().spanId,r[s.__sentry_xhr_span_id__]=g,n(a)&&vT(s,Ie()&&h?g:void 0,o);let _=k();return _&&_.emit("beforeOutgoingRequestSpan",g,e),g}function vT(e,t,n){let{"sentry-trace":r,baggage:o,traceparent:i}=er({span:t,propagateTraceparent:n});r&&bT(e,r,o,i)}function bT(e,t,n,r){let o=e.__sentry_xhr_v3__?.request_headers;if(!(o?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){let i=o?.baggage;(!i||!zf(i))&&e.setRequestHeader("baggage",n)}}catch(i){}}function Xf(){H.document?H.document.addEventListener("visibilitychange",()=>{let e=re();if(!e)return;let t=Z(e);if(H.document.hidden&&t){let n="cancelled",{op:r,status:o}=O(t);Re&&S.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:2,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Re&&S.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var IT=3600,Jf="sentry_previous_trace",RT="sentry.previous_trace";function Kf(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t==="session-storage",o=r?CT():void 0;e.on("spanStart",s=>{if(Z(s)!==s)return;let c=D().getPropagationContext();o=wT(o,s,c),r&&xT(o)});let i=!0;n&&e.on("beforeSampling",s=>{if(!o)return;let c=D(),a=c.getPropagationContext();if(i&&a.parentSpanId){i=!1;return}c.setPropagationContext(b(p({},a),{dsc:b(p({},a.dsc),{sample_rate:String(o.sampleRate),sampled:String(qc(o.spanContext))}),sampleRand:o.sampleRand})),s.parentSampled=qc(o.spanContext),s.parentSampleRate=o.sampleRate,s.spanAttributes=b(p({},s.spanAttributes),{[Nr]:o.sampleRate})})}function wT(e,t,n){let r=O(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Zt])}catch(c){return 0}}let i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return i;let s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=IT&&(Re&&S.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify(p({op:r.op},t.spanContext()))}\``),t.addLink({context:s,attributes:{[Gs]:"previous_trace"}}),t.setAttribute(RT,`${s.traceId}-${s.spanId}-${qc(s)?1:0}`)),i)}function xT(e){try{H.sessionStorage.setItem(Jf,JSON.stringify(e))}catch(t){Re&&S.warn("Could not store previous trace in sessionStorage",t)}}function CT(){try{let e=H.sessionStorage?.getItem(Jf);return JSON.parse(e)}catch(e){return}}function qc(e){return e.traceFlags===1}var AT="BrowserTracing",kT=p(b(p({},Xn),{instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
24dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{}}),Yc),Xc=(e={})=>{let t={name:void 0,source:void 0},n=H.document,{enableInp:r,enableElementTiming:o,enableLongTask:i,enableLongAnimationFrame:s,_experiments:{enableInteractions:c,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:u},beforeStartSpan:l,idleTimeout:d,finalTimeout:f,childSpanTimeout:m,markBackgroundSpan:h,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:E,shouldCreateSpanForRequest:w,enableHTTPTimings:M,ignoreResourceSpans:P,ignorePerformanceApiSpans:j,instrumentPageLoad:L,instrumentNavigation:y,detectRedirects:T,linkPreviousTrace:ee,consistentTraceSampling:I,enableReportPageLoaded:C,onRequestSpanStart:G,onRequestSpanEnd:Y}=p(p({},kT),e),W,ve,oe;function ue(R,te,N=!0){let ie=te.op==="pageload",de=te.name,pe=l?l(te):te,Ye=pe.attributes||{};if(de!==pe.name&&(Ye[ye]="custom",pe.attributes=Ye),!N){let Bt=Ze();je(b(p({},pe),{startTime:Bt})).end(Bt);return}t.name=pe.name,t.source=Ye[ye];let qe=di(pe,{idleTimeout:d,finalTimeout:f,childSpanTimeout:m,disableAutoFinish:ie,beforeSpanEnd:Bt=>{W?.(),Ha(Bt,{recordClsOnPageloadSpan:!a,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:P,ignorePerformanceApiSpans:j}),Qf(R,void 0);let Dn=D(),Do=Dn.getPropagationContext();Dn.setPropagationContext(b(p({},Do),{traceId:qe.spanContext().traceId,sampled:et(qe),dsc:xe(Bt)})),ie&&(oe=void 0)},trimIdleSpanEndTimestamp:!C});ie&&C&&(oe=qe),Qf(R,qe);function On(){n&&["interactive","complete"].includes(n.readyState)&&R.emit("idleSpanEnableAutoFinish",qe)}ie&&!C&&n&&(n.addEventListener("readystatechange",()=>{On()}),On())}return{name:AT,setup(R){if(oi(),W=Pa({recordClsStandaloneSpans:a||!1,recordLcpStandaloneSpans:u||!1,client:R}),r&&Ya(),o&&Wa(),s&&A.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Ua():i&&Fa(),c&&Ba(),T&&n){let N=()=>{ve=ne()};addEventListener("click",N,{capture:!0}),addEventListener("keydown",N,{capture:!0,passive:!0})}function te(){let N=ko(R);N&&!O(N).timestamp&&(Re&&S.log(`[Tracing] Finishing current active span with op: ${O(N).op}`),N.setAttribute(Qt,"cancelled"),N.end())}R.on("startNavigationSpan",(N,ie)=>{if(k()!==R)return;if(ie?.isRedirect){Re&&S.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),ue(R,p({op:"navigation.redirect"},N),!1);return}ve=void 0,te(),we().setPropagationContext({traceId:Oe(),sampleRand:Math.random(),propagationSpanId:Ie()?void 0:Me()});let de=D();de.setPropagationContext({traceId:Oe(),sampleRand:Math.random(),propagationSpanId:Ie()?void 0:Me()}),de.setSDKProcessingMetadata({normalizedRequest:void 0}),ue(R,b(p({op:"navigation"},N),{parentSpan:null,forceTransaction:!0}))}),R.on("startPageLoadSpan",(N,ie={})=>{if(k()!==R)return;te();let de=ie.sentryTrace||Zf("sentry-trace"),pe=ie.baggage||Zf("baggage"),Ye=Vs(de,pe),qe=D();qe.setPropagationContext(Ye),Ie()||(qe.getPropagationContext().propagationSpanId=Me()),qe.setSDKProcessingMetadata({normalizedRequest:Io()}),ue(R,p({op:"pageload"},N))}),R.on("endPageloadSpan",()=>{C&&oe&&(oe.setAttribute(Qt,"reportPageLoaded"),oe.end())})},afterAllSetup(R){let te=Ke();if(ee!=="off"&&Kf(R,{linkPreviousTrace:ee,consistentTraceSampling:I}),H.location){if(L){let N=me();tp(R,{name:H.location.pathname,startTime:N?N/1e3:void 0,attributes:{[ye]:"url",[X]:"auto.pageload.browser"}})}y&&Vt(({to:N,from:ie})=>{if(ie===void 0&&te?.indexOf(N)!==-1){te=void 0;return}te=void 0;let de=xn(N),pe=ko(R),Ye=pe&&T&&MT(pe,ve);Jc(R,{name:de?.pathname||H.location.pathname,attributes:{[ye]:"url",[X]:"auto.navigation.browser"}},{url:N,isRedirect:Ye})})}h&&Xf(),c&&NT(R,d,f,m,t),r&&qa(),qf(R,{traceFetch:g,traceXHR:_,trackFetchStreamPerformance:E,tracePropagationTargets:R.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:w,enableHTTPTimings:M,onRequestSpanStart:G,onRequestSpanEnd:Y})}}};function tp(e,t,n){e.emit("startPageLoadSpan",t,n),D().setTransactionName(t.name);let r=ko(e);return r&&e.emit("afterStartPageLoadSpan",r),r}
24function Jc(e,t,n){let{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});let i=D();return i.setTransactionName(t.name),r&&!o&&i.setSDKProcessingMetadata({normalizedRequest:b(p({},Io()),{url:r})}),ko(e)}function Zf(e){return H.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function NT(e,t,n,r,o){let i=H.document,s,c=()=>{let a="ui.action.click",u=ko(e);if(u){let l=O(u).op;if(["navigation","pageload"].includes(l)){Re&&S.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Qt,"interactionInterrupted"),s.end(),s=void 0),!o.name){Re&&S.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}s=di({name:o.name,op:a,attributes:{[ye]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",c,{capture:!0})}var np="_sentry_idleSpan";function ko(e){return e[np]}function Qf(e,t){le(e,np,t)}var ep=1.5;function MT(e,t){let n=O(e),r=Ze(),o=n.start_timestamp;return!(r-o>ep||t&&r-t<=ep)}var LT=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__;function OT(e={}){return[nr(),tr(),Ro(),xo(),Ao(),rr(),Co(),wo()]}function N1(e){let t=p({defaultIntegrations:OT()},e);return Jr(t,"angular"),DT(),Gc(t)}function DT(){let t=Is?.major&&parseInt(Is.major,10);t&&(t<14&&LT&&S.warn(`This Sentry SDK does not officially support Angular ${t}.`,"This SDK only supports Angular 14 and above.","If you're using lower Angular versions, check the Angular Version Compatibility table in our docs: https://docs.sentry.io/platforms/javascript/guides/angular/#angular-version-compatibility.","Otherwise, please consider upgrading your Angular version."),Kn("angular",{version:t}))}var M1=typeof Zone<"u"&&Zone.root?.run;var PT;function L1(e={}){return e.instrumentNavigation!==!1&&(PT=!0),Xc(b(p({},e),{instrumentNavigation:!1}))}var gp="4.6.2";function ys(e,t){return new Promise(function(n){return setTimeout(n,e,t)})}function FT(){return new Promise(function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)})}function UT(e,t){t===void 0&&(t=1/0);var n=window.requestIdleCallback;return n?new Promise(function(r){return n.call(window,function(){return r()},{timeout:t})}):ys(Math.min(e,t))}function Sp(e){return!!e&&typeof e.then=="function"}function rp(e,t){try{var n=e();Sp(n)?n.then(function(r){return t(!0,r)},function(r){return t(!1,r)}):t(!0,n)}catch(r){t(!1,r)}}function op(e,t,n){return n===void 0&&(n=16),gt(this,void 0,void 0,function(){var r,o,i,s;return St(this,function(c){switch(c.label){case 0:r=Array(e.length),o=Date.now(),i=0,c.label=1;case 1:return i<e.length?(r[i]=t(e[i],i),s=Date.now(),s>=o+n?(o=s,[4,FT()]):[3,3]):[3,4];case 2:c.sent(),c.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function No(e){return e.then(void 0,function(){}),e}function BT(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function HT(e,t){return!BT(e,t)}function nu(e){return parseInt(e)}function wt(e){return parseFloat(e)}function Xt(e,t){return typeof e=="number"&&isNaN(e)?t:e}function We(e){return e.reduce(function(t,n){return t+(n?1:0)},0)}function _p(e,t){if(t===void 0&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function WT(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(e),i=o[1]||void 0,s={},c=/([.:#][\w-]+|\[.+?\])/gi,a=function(f,m){s[f]=s[f]||[],s[f].push(m)};;){var u=c.exec(o[2]);if(!u)break;var l=u[0];switch(l[0]){case".":a("class",l.slice(1));break;case"#":a("id",l.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(d)a(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,s]}function $T(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>127)return new TextEncoder().encode(e);t[n]=r}return t}function ln(e,t){var n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,i=e[1]&65535,s=t[0]>>>16,c=t[0]&65535,a=t[1]>>>16,u=t[1]&65535,l=0,d=0,f=0,m=0;m+=i+u,f+=m>>>16,m&=65535,f+=o+a,d+=f>>>16,f&=65535,d+=r+c,l+=d>>>16,d&=65535,l+=n+s,l&=65535,e[0]=l<<16|d,e[1]=f<<16|m}function mt(e,t){var n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,i=e[1]&65535,s=t[0]>>>16,c=t[0]&65535,a=t[1]>>>16,u=t[1]&65535,l=0,d=0,f=0,m=0;m+=i*u,f+=m>>>16,m&=65535,f+=o*u,d+=f>>
24>16,f&=65535,f+=i*a,d+=f>>>16,f&=65535,d+=r*u,l+=d>>>16,d&=65535,d+=o*a,l+=d>>>16,d&=65535,d+=i*c,l+=d>>>16,d&=65535,l+=n*u+r*a+o*c+i*s,l&=65535,e[0]=l<<16|d,e[1]=f<<16|m}function Er(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function rt(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function fe(e,t){e[0]^=t[0],e[1]^=t[1]}var GT=[4283543511,3981806797],zT=[3301882366,444984403];function ip(e){var t=[0,e[0]>>>1];fe(e,t),mt(e,GT),t[1]=e[0]>>>1,fe(e,t),mt(e,zT),t[1]=e[0]>>>1,fe(e,t)}var gs=[2277735313,289559509],Ss=[1291169091,658871167],sp=[0,5],jT=[0,1390208809],VT=[0,944331445];function YT(e,t){var n=$T(e);t=t||0;var r=[0,n.length],o=r[1]%16,i=r[1]-o,s=[0,t],c=[0,t],a=[0,0],u=[0,0],l;for(l=0;l<i;l=l+16)a[0]=n[l+4]|n[l+5]<<8|n[l+6]<<16|n[l+7]<<24,a[1]=n[l]|n[l+1]<<8|n[l+2]<<16|n[l+3]<<24,u[0]=n[l+12]|n[l+13]<<8|n[l+14]<<16|n[l+15]<<24,u[1]=n[l+8]|n[l+9]<<8|n[l+10]<<16|n[l+11]<<24,mt(a,gs),Er(a,31),mt(a,Ss),fe(s,a),Er(s,27),ln(s,c),mt(s,sp),ln(s,jT),mt(u,Ss),Er(u,33),mt(u,gs),fe(c,u),Er(c,31),ln(c,s),mt(c,sp),ln(c,VT);a[0]=0,a[1]=0,u[0]=0,u[1]=0;var d=[0,0];switch(o){case 15:d[1]=n[l+14],rt(d,48),fe(u,d);case 14:d[1]=n[l+13],rt(d,40),fe(u,d);case 13:d[1]=n[l+12],rt(d,32),fe(u,d);case 12:d[1]=n[l+11],rt(d,24),fe(u,d);case 11:d[1]=n[l+10],rt(d,16),fe(u,d);case 10:d[1]=n[l+9],rt(d,8),fe(u,d);case 9:d[1]=n[l+8],fe(u,d),mt(u,Ss),Er(u,33),mt(u,gs),fe(c,u);case 8:d[1]=n[l+7],rt(d,56),fe(a,d);case 7:d[1]=n[l+6],rt(d,48),fe(a,d);case 6:d[1]=n[l+5],rt(d,40),fe(a,d);case 5:d[1]=n[l+4],rt(d,32),fe(a,d);case 4:d[1]=n[l+3],rt(d,24),fe(a,d);case 3:d[1]=n[l+2],rt(d,16),fe(a,d);case 2:d[1]=n[l+1],rt(d,8),fe(a,d);case 1:d[1]=n[l],fe(a,d),mt(a,gs),Er(a,31),mt(a,Ss),fe(s,a)}return fe(s,r),fe(c,r),ln(s,c),ln(c,s),ip(s),ip(c),ln(s,c),ln(c,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function qT(e){var t;return su({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
25`)},e)}function XT(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function JT(e){return typeof e!="function"}function KT(e,t){var n=No(new Promise(function(r){var o=Date.now();rp(e.bind(null,t),function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var c=Date.now()-o;if(!i[0])return r(function(){return{error:i[1],duration:c}});var a=i[1];if(JT(a))return r(function(){return{value:a,duration:c}});r(function(){return new Promise(function(u){var l=Date.now();rp(a,function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var m=c+Date.now()-l;if(!d[0])return u({error:d[1],duration:m});u({value:d[1],duration:m})})})})})}));return function(){return n.then(function(o){return o()})}}function ZT(e,t,n,r){var o=Object.keys(e).filter(function(s){return HT(n,s)}),i=No(op(o,function(s){return KT(e[s],t)},r));return function(){return gt(this,void 0,void 0,function(){var c,a,u,l,d;return St(this,function(f){switch(f.label){case 0:return[4,i];case 1:return c=f.sent(),[4,op(c,function(m){return No(m())},r)];case 2:return a=f.sent(),[4,Promise.all(a)];case 3:for(u=f.sent(),l={},d=0;d<o.length;++d)l[o[d]]=u[d];return[2,l]}})})}}function yp(){var e=window,t=navigator;return We(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function QT(){var e=window,t=navigator;return We(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!yp()}function Mo(){var e=window,t=navigator;return We(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function xt(){var e=window,t=navigator;return We(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function ru(){var e=window,t=e.HTMLElement,n=e.Document;return We(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Lo(){var e=window;return XT(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Ep(){var e,t,n=window;return We(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function ev(){var e=window;return We([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function tv(){var e=window,t=e.URLPattern;return We(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function nv(){var e=window;return We(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Oo(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return We([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function rv(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return We(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function ov(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function iv(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function ou(){var e=Mo(),t=Ep(),n=window,r=navigator,o="connection";return e?We([!("SharedWorker"in n),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:t?We(["onorientationchange"in n,"orientation"in n,/android/i.test(r.a
25ppVersion)])>=2:!1}function sv(){var e=navigator,t=window,n=Audio.prototype,r=t.visualViewport;return We(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function av(){return dv()?-4:cv()}function cv(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(uv())return-1;var n=4500,r=5e3,o=new t(1,r,44100),i=o.createOscillator();i.type="triangle",i.frequency.value=1e4;var s=o.createDynamicsCompressor();s.threshold.value=-50,s.knee.value=40,s.ratio.value=12,s.attack.value=0,s.release.value=.25,i.connect(s),s.connect(o.destination),i.start(0);var c=lv(o),a=c[0],u=c[1],l=No(a.then(function(d){return fv(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return u(),l}}function uv(){return xt()&&!ru()&&!nv()}function dv(){return xt()&&Oo()&&Lo()||Mo()&&sv()&&tv()}function lv(e){var t=3,n=500,r=500,o=5e3,i=function(){},s=new Promise(function(c,a){var u=!1,l=0,d=0;e.oncomplete=function(h){return c(h.renderedBuffer)};var f=function(){setTimeout(function(){return a(ap("timeout"))},Math.min(r,d+o-Date.now()))},m=function(){try{var h=e.startRendering();switch(Sp(h)&&No(h),e.state){case"running":d=Date.now(),u&&f();break;case"suspended":document.hidden||l++,u&&l>=t?a(ap("suspended")):setTimeout(m,n);break}}catch(g){a(g)}};m(),i=function(){u||(u=!0,d>0&&f())}});return[s,i]}function fv(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function ap(e){var t=new Error(e);return t.name=e,t}function Tp(e,t,n){var r,o,i;return n===void 0&&(n=50),gt(this,void 0,void 0,function(){var s,c;return St(this,function(a){switch(a.label){case 0:s=document,a.label=1;case 1:return s.body?[3,3]:[4,ys(n)];case 2:return a.sent(),[3,1];case 3:c=s.createElement("iframe"),a.label=4;case 4:return a.trys.push([4,,10,11]),[4,new Promise(function(u,l){var d=!1,f=function(){d=!0,u()},m=function(_){d=!0,l(_)};c.onload=f,c.onerror=m;var h=c.style;h.setProperty("display","block","important"),h.position="absolute",h.top="0",h.left="0",h.visibility="hidden",t&&"srcdoc"in c?c.srcdoc=t:c.src="about:blank",s.body.appendChild(c);var g=function(){var _,E;d||(((E=(_=c.contentWindow)===null||_===void 0?void 0:_.document)===null||E===void 0?void 0:E.readyState)==="complete"?f():setTimeout(g,10))};g()})];case 5:a.sent(),a.label=6;case 6:return!((o=(r=c.contentWindow)===null||r===void 0?void 0:r.document)===null||o===void 0)&&o.body?[3,8]:[4,ys(n)];case 7:return a.sent(),[3,6];case 8:return[4,e(c,c.contentWindow)];case 9:return[2,a.sent()];case 10:return(i=c.parentNode)===null||i===void 0||i.removeChild(c),[7];case 11:return[2]}})})}function pv(e){for(var t=WT(e),n=t[0],r=t[1],o=document.createElement(n??"div"),i=0,s=Object.keys(r);i<s.length;i++){var c=s[i],a=r[c].join(" ");c==="style"?mv(o.style,a):o.setAttribute(c,a)}return o}function mv(e,t){for(var n=0,r=t.split(";");n<r.length;n++){var o=r[n],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(i){var s=i[1],c=i[2],a=i[4];e.setProperty(s,c,a||"")}}}function hv(){for(var e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}var gv="mmMwWLliI0O&1",Sv="48px",Tr=["monospace","sans-serif","serif"],cp=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function _v(){var e=this;return Tp(function(t,n){var r=n.document;return gt(e,void 0,void 0,function(){var o,i,s,c,a,u,l,d,f,m,h,g;return St(this,function(_){for(o=r.body,o.style.fontSize=Sv,i=r.createElement("div"),i.style.setProperty("visibility","hidden","important"),s={},c={},a=function(E){var w=r.createElement("span"),M=w.style;return M.position="absolute",M.top="0",M.left="0",M.fontFamily=E,w.textContent=gv,i.appendChild(w),w},u=function(E,w){return a("'".concat(E,"',").concat(w))},l=function(){return Tr.map(a)},d=function(){for(var E={},w=function(L){E[L]=Tr.map(function(y){return u(L,y)})},M=0,P=cp;M<P.length;M++){var j=P[M];w(j)}return E},f=function(E){return Tr.some(function(w,M){return E[M].offsetWidth!==s[w]||E[M].offsetHeight!==c[w]})},m=l(),h=d(),o.appendChild(i),g=0;g<Tr.length;g++)s[Tr[g]]=m[g].offsetWidth,c[Tr[g]]=m[g].offsetHeight;return[2,cp.filter(function(E){return f(h[E])})]})})})}function yv(){var e=navigator.plugins;if(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];if(r){for(var o=[],i=0;i<r.length;++i){var s=r[i];o.push({type:s.type,suffixes:s.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:o})}}return t}}function Ev(){return Tv(Cv())}function Tv(e){var t,n=!1,r,o,i=vv(),s=i[0],c=i[1];return bv(s,c)?(n=Iv(c),e?r=o="skipped":(t=Rv(s,c),r=t[0],o=t[1])):r=o="unsupported",{winding:n,geometry:r,text:o}}function vv(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function bv(e,t){return!!(t&&e.toDataURL)}function Iv(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(
255,5,"evenodd")}function Rv(e,t){wv(e,t);var n=Kc(e),r=Kc(e);if(n!==r)return["unstable","unstable"];xv(e,t);var o=Kc(e);return[o,n]}function wv(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat("\u{1F603}");t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function xv(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var o=r[n],i=o[0],s=o[1],c=o[2];t.fillStyle=i,t.beginPath(),t.arc(s,c,40,0,Math.PI*2,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function Kc(e){return e.toDataURL()}function Cv(){return xt()&&Oo()&&Lo()}function Av(){var e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=nu(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch(o){n=!1}var r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:r}}function kv(){return navigator.oscpu}function Nv(){var e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))Mo()&&ev()||t.push(e.languages);else if(typeof e.languages=="string"){var r=e.languages;r&&t.push(r.split(","))}return t}function Mv(){return window.screen.colorDepth}function Lv(){return Xt(wt(navigator.deviceMemory),void 0)}function Ov(){if(!(xt()&&Oo()&&Lo()))return Dv()}function Dv(){var e=screen,t=function(r){return Xt(nu(r),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n}var Pv=2500,Fv=10,_s,Zc;function Uv(){if(Zc===void 0){var e=function(){var t=eu();tu(t)?Zc=setTimeout(e,Pv):(_s=t,Zc=void 0)};e()}}function Bv(){var e=this;return Uv(),function(){return gt(e,void 0,void 0,function(){var t;return St(this,function(n){switch(n.label){case 0:return t=eu(),tu(t)?_s?[2,bs([],_s,!0)]:ov()?[4,iv()]:[3,2]:[3,2];case 1:n.sent(),t=eu(),n.label=2;case 2:return tu(t)||(_s=t),[2,t]}})})}}function Hv(){var e=this;if(xt()&&Oo()&&Lo())return function(){return Promise.resolve(void 0)};var t=Bv();return function(){return gt(e,void 0,void 0,function(){var n,r;return St(this,function(o){switch(o.label){case 0:return[4,t()];case 1:return n=o.sent(),r=function(i){return i===null?null:_p(i,Fv)},[2,[r(n[0]),r(n[1]),r(n[2]),r(n[3])]]}})})}}function eu(){var e=screen;return[Xt(wt(e.availTop),null),Xt(wt(e.width)-wt(e.availWidth)-Xt(wt(e.availLeft),0),null),Xt(wt(e.height)-wt(e.availHeight)-Xt(wt(e.availTop),0),null),Xt(wt(e.availLeft),null)]}function tu(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function Wv(){return Xt(nu(navigator.hardwareConcurrency),void 0)}function $v(){var e,t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){var n=new t().resolvedOptions().timeZone;if(n)return n}var r=-Gv();return"UTC".concat(r>=0?"+":"").concat(r)}function Gv(){var e=new Date().getFullYear();return Math.max(wt(new Date(e,0,1).getTimezoneOffset()),wt(new Date(e,6,1).getTimezoneOffset()))}function zv(){try{return!!window.sessionStorage}catch(e){return!0}}function jv(){try{return!!window.localStorage}catch(e){return!0}}function Vv(){if(!(yp()||QT()))try{return!!window.indexedDB}catch(e){return!0}}function Yv(){return!!window.openDatabase}function qv(){return navigator.cpuClass}function Xv(){var e=navigator.platform;return e==="MacIntel"&&xt()&&!ru()?rv()?"iPad":"iPhone":e}function Jv(){return navigator.vendor||""}function Kv(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<n.length;t++){var r=n[t],o=window[r];o&&typeof o=="object"&&e.push(r)}return e.sort()}function Zv(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(n){return!1}}function Qv(){var
vendor: 7,231 bytes, line 25
25 e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}
vendor: 4,607 bytes, lines 25-27
25function eb(e){var t=e===void 0?{}:e,n=t.debug;return gt(this,void 0,void 0,function(){var r,o,i,s,c,a;return St(this,function(u){switch(u.label){case 0:return tb()?(r=Qv(),o=Object.keys(r),i=(a=[]).concat.apply(a,o.map(function(l){return r[l]})),[4,nb(i)]):[2,void 0];case 1:return s=u.sent(),n&&rb(r,s),c=o.filter(function(l){var d=r[l],f=We(d.map(function(m){return s[m]}));return f>d.length*.6}),c.sort(),[2,c]}})})}function tb(){return xt()||ou()}function nb(e){var t;return gt(this,void 0,void 0,function(){var n,r,o,i,a,s,c,a;return St(this,function(u){switch(u.label){case 0:for(n=document,r=n.createElement("div"),o=new Array(e.length),i={},up(r),a=0;a<e.length;++a)s=pv(e[a]),s.tagName==="DIALOG"&&s.show(),c=n.createElement("div"),up(c),c.appendChild(s),r.appendChild(c),o[a]=s;u.label=1;case 1:return n.body?[3,3]:[4,ys(50)];case 2:return u.sent(),[3,1];case 3:n.body.appendChild(r);try{for(a=0;a<e.length;++a)o[a].offsetParent||(i[e[a]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return[2,i]}})})}function up(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function rb(e,t){for(var n="DOM blockers debug:\n```",r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];n+=`
26`.concat(i,":");for(var s=0,c=e[i];s<c.length;s++){var a=c[s];n+=`
27  `.concat(t[a]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(a)}}console.log("".concat(n,"\n```"))}function ob(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}}function ib(){if(dp("inverted"))return!0;if(dp("none"))return!1}function dp(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function sb(){if(lp("active"))return!0;if(lp("none"))return!1}function lp(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var ab=100;function cb(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=ab;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}}function ub(){if(vr("no-preference"))return 0;if(vr("high")||vr("more"))return 1;if(vr("low")||vr("less"))return-1;if(vr("forced"))return 10}function vr(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function db(){if(fp("reduce"))return!0;if(fp("no-preference"))return!1}function fp(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function lb(){if(pp("reduce"))return!0;if(pp("no-preference"))return!1}function pp(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function fb(){if(mp("high"))return!0;if(mp("standard"))return!1}function mp(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var Q=Math,He=function(){return 0};function pb(){var e=Q.acos||He,t=Q.acosh||He,n=Q.asin||He,r=Q.asinh||He,o=Q.atanh||He,i=Q.atan||He,s=Q.sin||He,c=Q.sinh||He,a=Q.cos||He,u=Q.cosh||He,l=Q.tan||He,d=Q.tanh||He,f=Q.exp||He,m=Q.expm1||He,h=Q.log1p||He,g=function(T){return Q.pow(Q.PI,T)},_=function(T){return Q.log(T+Q.sqrt(T*T-1))},E=function(T){return Q.log(T+Q.sqrt(T*T+1))},w=function(T){return Q.log((1+T)/(1-T))/2},M=function(T){return Q.exp(T)-1/Q.exp(T)/2},P=function(T){return(Q.exp(T)+1/Q.exp(T))/2},j=function(T){return Q.exp(T)-1},L=function(T){return(Q.exp(2*T)-1)/(Q.exp(2*T)+1)},y=function(T){return Q.log(1+T)};return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:_(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:E(1),atanh:o(.5),atanhPf:w(.5),atan:i(.5),sin:s(-1e300),sinh:c(1),sinhPf:M(1),cos:a(10.000000000123),cosh:u(1),coshPf:P(1),tan:l(-1e300),tanh:d(1),tanhPf:L(1),exp:f(1),expm1:m(1),expm1Pf:j(1),log1p:h(10),log1pPf:y(10),powPI:g(-100)}}var mb="mmMwWLliI0fiflO&1",Qc={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function hb(){return gb(function(e,t){for(var n={},r={},o=0,i=Object.keys(Qc);o<i.length;o++){var s=i[o],c=Qc[s],a=c[0],u=a===void 0?{}:a,l=c[1],d=l===void 0?mb:l,f=e.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var m=0,h=Object.keys(u);m<h.length;m++){var g=h[m],_=u[g];_!==void 0&&(f.style[g]=_)}n[s]=f,t.append(e.createElement("br"),f)}for(var E=0,w=Object.keys(Qc);E<w.length;E++){var s=w[E];r[s]=n[s].getBoundingClientRect().width}return r})}function gb(e,t){return t===void 0&&(t=4e3),Tp(function(n,r){var o=r.document,i=o.body,s=i.style;s.width="".concat(t,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",Mo()?i.style.zoom="".concat(1/r.devicePixelRatio):xt()&&
27(i.style.zoom="reset");var c=o.createElement("div");return c.textContent=bs([],Array(t/20<<0),!0).map(function(){return"word"}).join(" "),i.appendChild(c),e(o,i)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function Sb(){return navigator.pdfViewerEnabled}function _b(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function yb(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Eb())return-3;try{return e.canMakePayments()?1:0}catch(t){return Tb(t)}}var Eb=hv;function Tb(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function vb(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var vp=-1,bp=-2,bb=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Ib=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Rb=["FRAGMENT_SHADER","VERTEX_SHADER"],wb=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Ip="WEBGL_debug_renderer_info",xb="WEBGL_polygon_mode";function Cb(e){var t,n,r,o,i,s,c=e.cache,a=Rp(c);if(!a)return vp;
27if(!xp(a))return bp;var u=wp()?null:a.getExtension(Ip);return{version:((t=a.getParameter(a.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=a.getParameter(a.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:u?(r=a.getParameter(u.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((o=a.getParameter(a.RENDERER))===null||o===void 0?void 0:o.toString())||"",rendererUnmasked:u?(i=a.getParameter(u.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((s=a.getParameter(a.SHADING_LANGUAGE_VERSION))===null||s===void 0?void 0:s.toString())||""}}function Ab(e){var t=e.cache,n=Rp(t);if(!n)return vp;if(!xp(n))return bp;var r=n.getSupportedExtensions(),o=n.getContextAttributes(),i=[],s=[],c=[],a=[],u=[];if(o)for(var l=0,d=Object.keys(o);l<d.length;l++){var f=d[l];s.push("".concat(f,"=").concat(o[f]))}for(var m=hp(n),h=0,g=m;h<g.length;h++){var _=g[h],E=n[_];c.push("".concat(_,"=").concat(E).concat(bb.has(E)?"=".concat(n.getParameter(E)):""))}if(r)for(var w=0,M=r;w<M.length;w++){var P=M[w];if(!(P===Ip&&wp()||P===xb&&Mb())){var j=n.getExtension(P);if(!j){i.push(P);continue}for(var L=0,y=hp(j);L<y.length;L++){var _=y[L],E=j[_];a.push("".concat(_,"=").concat(E).concat(Ib.has(E)?"=".concat(n.getParameter(E)):""))}}}for(var T=0,ee=Rb;T<ee.length;T++)for(var I=ee[T],C=0,G=wb;C<G.length;C++){var Y=G[C],W=kb(n,I,Y);u.push("".concat(I,".").concat(Y,"=").concat(W.join(",")))}return a.sort(),c.sort(),{contextAttributes:s,parameters:c,shaderPrecisions:u,extensions:r,extensionParameters:a,unsupportedExtensions:i}}function Rp(e){if(e.webgl)return e.webgl.context;var t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",function(){return n=void 0});for(var r=0,o=["webgl","experimental-webgl"];r<o.length;r++){var i=o[r];try{n=t.getContext(i)}catch(s){}if(n)break}return e.webgl={context:n},n}function kb(e,t,n){var r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function hp(e){var t=Object.keys(e.__proto__);return t.filter(Nb)}function Nb(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function wp(){return Ep()}function Mb(){return Mo()||xt()}function xp(e){return typeof e.getParameter=="function"}function Lb(){var e=ou()||xt();if(!e)return-2;if(!window.AudioContext)return-1;var t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function Ob(){if(!window.Intl)return-1;var e=window.Intl.DateTimeFormat;if(!e)return-2;var t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}var Db={fonts:_v,domBlockers:eb,fontPreferences:hb,audio:av,screenFrame:Hv,canvas:Ev,osCpu:kv,languages:Nv,colorDepth:Mv,deviceMemory:Lv,screenResolution:Ov,hardwareConcurrency:Wv,timezone:$v,sessionStorage:zv,localStorage:jv,indexedDB:Vv,openDatabase:Yv,cpuClass:qv,platform:Xv,plugins:yv,touchSupport:Av,vendor:Jv,vendorFlavors:Kv,cookiesEnabled:Zv,colorGamut:ob,invertedColors:ib,forcedColors:sb,monochrome:cb,contrast:ub,reducedMotion:db,reducedTransparency:lb,hdr:fb,math:pb,pdfViewerEnabled:Sb,architecture:_b,applePay:yb,privateClickMeasurement:vb,audioBaseLatency:Lb,dateTimeLocale:Ob,webGlBasics:Cb,webGlExtensions:Ab};function Pb(e){return ZT(Db,e,[])}var Fb="$ if upgrade to Pro: https://fpjs.dev/pro";function Ub(e){var t=Bb(e),n=Hb(t);return{score:t,comment:Fb.replace(/\$/g,"".concat(n))}}function Bb(e){if(ou())return .4;if(xt())return ru()&&!(Oo()&&Lo())?.5:.3;var t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function Hb(e){return _p(.99+.01*e,1e-4)}function Wb(e){for(var t="",n=0,r=Object.keys(e).sort();n<r.length;n++){var o=r[n],i=e[o],s="error"in i?"error":JSON.stringify(i.value);t+="".concat(t?"|":"").concat(o.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return t}function Cp(e){return JSON.stringify(e,function(t,n){return n instanceof Error?qT(n):n},2)}function Ap(e){return YT(Wb(e))}function $b(e){var t,n=Ub(e);return{get visitorId(){return t===void 0&&(t=Ap(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:gp}}function Gb(e){return e===void 0&&(e=50),UT(e,e*2)}function zb(e,t){var n=Date.now();return{get:function(r){return gt(this,void 0,void 0,function(){var o,i,s;return St(this,function(c){switch(c.label){case 0:return o=Date.now(),[4,e()];case 1:return i=c.sent(),s=$b(i),(t||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(s.version,`
28userAgent: `).concat(navigator.userAgent,`
29timeBetweenLoadAndGet: `).concat(o-n,`
30visitorId: `).concat(s.visitorId,`
31components: `).concat(Cp(i),"\n```")),[2,s]}})})}}}function jb(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(gp,"/npm-monitoring"),!0),e.send()}catch(t){console.error(t)}}function Vb(e){var t;return e===void 0&&(e={}),gt(this,void 0,void 0,function(){var n,r,o;return St(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&jb(),n=e.delayFallback,r=e.debug,[4,Gb(n)];case 1:return i.sent(),o=Pb({cache:{},debug:r}),[2,zb(o,r)]}})})}var U1={load:Vb,hashComponents:Ap,componentsToDebugString:Cp};export{Jn as a,SE as b,N1 as c,L1 as d,U1 as e};
32/**i18n:c586d70757c26a6d8d86dc8e7a09d4039aba817c773374036b45942d5712fd18*/

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.