PageSourceSearch

https://simplywall.st/static/js/sentry.modern.c5231166.js

js simplywall.st collected 2026-09-24 08:28:40 UTC 340,847 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ce656a57-a8b1-5624-a4be-f5fe627d4de4")}catch(e){}}();
3(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[13326],{52371:function(t,e,n){n.r(e),n.d(e,{BrowserClient:function(){return ls},ErrorBoundary:function(){return Pm},OpenFeatureIntegrationHook:function(){return bm},Profiler:function(){return Om},SDK_VERSION:function(){return s},SEMANTIC_ATTRIBUTE_SENTRY_OP:function(){return Gt},SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:function(){return Kt},SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:function(){return Xt},SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:function(){return Yt},Scope:function(){return Lt},WINDOW:function(){return Yo},addBreadcrumb:function(){return Wr},addEventProcessor:function(){return ur},addIntegration:function(){return br},breadcrumbsIntegration:function(){return ya},browserApiErrorsIntegration:function(){return ba},browserProfilingIntegration:function(){return pm},browserSessionIntegration:function(){return Ea},browserTracingIntegration:function(){return Df},buildLaunchDarklyFlagUsedHandler:function(){return ym},captureConsoleIntegration:function(){return po},captureEvent:function(){return Zn},captureException:function(){return Kn},captureFeedback:function(){return Do},captureMessage:function(){return Jn},captureSession:function(){return hr},chromeStackLineParser:function(){return na},close:function(){return ar},contextLinesIntegration:function(){return Ja},continueTrace:function(){return In},createReduxEnhancer:function(){return $m},createTransport:function(){return Ar},createUserFeedbackEnvelope:function(){return ma},dedupeIntegration:function(){return ho},defaultRequestInstrumentationOptions:function(){return Tf},defaultStackLineParsers:function(){return pa},defaultStackParser:function(){return ha},endSession:function(){return dr},eventFiltersIntegration:function(){return Gr},eventFromException:function(){return ss},eventFromMessage:function(){return is},exceptionFromError:function(){return Jo},extraErrorDataIntegration:function(){return _o},featureFlagsIntegration:function(){return gm},feedbackAsyncIntegration:function(){return xf},feedbackIntegration:function(){return Ef},feedbackSyncIntegration:function(){return Ef},flush:function(){return ir},forceLoad:function(){return Na},functionToStringIntegration:function(){return Yr},geckoStackLineParser:function(){return sa},getActiveSpan:function(){return De},getClient:function(){return qt},getCurrentScope:function(){return Ut},getDefaultIntegrations:function(){return Aa},getFeedback:function(){return Jp},getGlobalScope:function(){return jt},getIsolationScope:function(){return Ht},getReplay:function(){return sp},getRootSpan:function(){return Le},getSpanDescendants:function(){return Oe},getSpanStatusFromHttpCode:function(){return se},globalHandlersIntegration:function(){return Ca},graphqlClientIntegration:function(){return ec},httpClientIntegration:function(){return za},httpContextIntegration:function(){return Ma},inboundFiltersIntegration:function(){return Kr},init:function(){return Em},instrumentOutgoingRequests:function(){return Mf},isInitialized:function(){return cr},lastEventId:function(){return sr},launchDarklyIntegration:function(){return _m},lazyLoadIntegration:function(){return $a},linkedErrorsIntegration:function(){return Ra},makeBrowserOfflineTransport:function(){return Wf},makeFetchTransport:function(){return Ji},makeMultiplexedTransport:function(){return Nr},moduleMetadataIntegration:function(){return ao},onLoad:function(){return Pa},openFeatureIntegration:function(){return vm},opera10StackLineParser:function(){return ua},opera11StackLineParser:function(){return da},parameterize:function(){return Br},reactErrorHandler:function(){return Im},reactRouterV3BrowserTracingIntegration:function(){return Um},reactRouterV4BrowserTracingIntegration:function(){return Wm},reactRouterV5BrowserTracingIntegration:function(){return qm},reactRouterV6BrowserTracingIntegration:function(){return Eg},reactRouterV7BrowserTracingIntegration:function(){return Rg},registerSpanErrorInstrumentation:function(){return Be},replayCanvasIntegration:function(){return Fp},replayIntegration:function(){return np},reportingObserverIntegration:function(){return ja},rewriteFramesIntegration:function(){return wo},sendFeedback:function(){return jp},setContext:function(){return Qn},setCurrentClient:function(){return Cr},setExtra:function(){return er},setExtras:function(){return tr},setHttpStatus:function(){return ie},setMeasurement:function(){return yn},setTag:function(){return rr},setTags:function(){return nr},setUser:function(){return or},showReportDialog:function(){return Da},spanToBaggageHeader:function(){return Ye},spanToJSON:function(){return Ce},spanToTraceHeader:function(){return ke},spotlightBrowserIntegration:function(){return hm},startBrowserTracingNavigationSpan:function(){return Pf},startBrowserTracingPageLoadSpan:function(){return Nf},startInactiveSpan:function(){return Cn},startNewTrace:function(){return Rn},startSession:function(){return lr},startSpan:function(){return xn},startSpanManual:function(){return En},statsigIntegration:function(){return wm},suppressTracing:function(){return Mn},tanstackRouterBrowserTracingIntegration:function(){return jm},thirdPartyErrorFilterIntegration:function(){return To},unleashIntegration:function(){return Sm},updateSpanName:function(){return Pe},useProfiler:function(){return Dm},winjsStackLineParser:function(){return aa},withActiveSpan:function(){return Tn},withErrorBoundary:function(){return Fm},withIsolationScope:function(){return Wt},withProfiler:function(){return Lm},withScope:function(){return zt},withSentryReactRouterV6Routing:function(){return Mg},withSentryReactRouterV7Routing:function(){return Ag},withSentryRouting:function(){return Xm},wrapCreateBrowserRouterV6:function(){return Ig},wrapCreateBrowserRouterV7:function(){return Og},wrapCreateMemoryRouterV6:function(){return Tg},wrapCreateMemoryRouterV7:function(){return Lg},wrapUseRoutesV6:function(){return Cg},wrapUseRoutesV7:function(){return Dg},zodErrorsIntegration:function(){return Io}});const r=!1,o=globalThis,s="9.6.0";function i(){return a(o),o}function a(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||s,e[s]=e[s]||{}}function c(t,e,n=o){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[s]=r[s]||{};return i[t]||(i[t]=e())}const u=["debug","info","warn","error","log","assert","trace"],l={};function d(t){if(!("console"in o))return t();const e=o.console,n={},r=Object.keys(l);r.forEach((t=>{const r=l[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const p=c("logger",(function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return u.forEach((t=>{e[t]=()=>{}})),e})),h="?",f=/\(error: (.*)\)/,m=/captureMessage|captureException/;function g(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0,r=0)=>{const o=[],s=t.split("\n");for(let t=n;t<s.length;t++){const n=s[t];if(n.length>1024)continue;const i=f.test(n)?n.replace(f,"$1"):n;if(!i.match(/\S*Error: /)){for(const t of e){const e=t(i);if(e){o.push(e);break}}if(o.length>=50+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(_(e).function||"")&&e.pop();e.reverse(),m.test(_(e).function||"")&&(e.pop(),m.test(_(e).function||"")&&e.pop());return e.slice(0,50).map((t=>({...t,filename:t.filename||_(e).filename,function:t.function||h}
3)))}(o.slice(r))}}function _(t){return t[t.length-1]||{}}const y="<anonymous>";function v(t){try{return t&&"function"==typeof t&&t.name||y}catch(t){return y}}function b(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch(t){return}}}const S={},k={};function w(t,e){S[t]=S[t]||[],S[t].push(e)}function x(t,e){if(!k[t]){k[t]=!0;try{e()}catch(t){}}}function E(t,e){const n=t&&S[t];if(n)for(const t of n)try{t(e)}catch(t){}}let C=null;function I(t){const e="error";w(e,t),x(e,T)}function T(){C=o.onerror,o.onerror=function(t,e,n,r,o){const s={column:r,error:o,line:n,msg:t,url:e};return E("error",s),!!C&&C.apply(this,arguments)},o.onerror.__SENTRY_INSTRUMENTED__=!0}let M=null;function R(t){const e="unhandledrejection";w(e,t),x(e,A)}function A(){M=o.onunhandledrejection,o.onunhandledrejection=function(t){const e=t;return E("unhandledrejection",e),!M||M.apply(this,arguments)},o.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const O=Object.prototype.toString;function L(t){switch(O.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return z(t,Error)}}function D(t,e){return O.call(t)===`[object ${e}]`}function N(t){return D(t,"ErrorEvent")}function P(t){return D(t,"DOMError")}function F(t){return D(t,"String")}function B(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function $(t){return null===t||B(t)||"object"!=typeof t&&"function"!=typeof t}function U(t){return D(t,"Object")}function H(t){return"undefined"!=typeof Event&&z(t,Event)}function j(t){return Boolean(t?.then&&"function"==typeof t.then)}function z(t,e){try{return t instanceof e}catch(t){return!1}}function W(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}const q=o;function V(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,o=[];let s=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&s++<r&&(u=Y(n,l),!("html"===u||s>1&&i+o.length*c+u.length>=d));)o.push(u),i+=u.length,n=n.parentNode;return o.reverse().join(a)}catch(t){return"<unknown>"}}function Y(t,e){const n=t,r=[];if(!n?.tagName)return"";if(q.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=e?.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(o?.length)o.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&F(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const s=["aria-label","type","name","title","alt"];for(const t of s){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function X(){try{return q.document.location.href}catch(t){return""}}function G(t){if(!q.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function K(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function J(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let o=Math.max(e-60,0);o<5&&(o=0);let s=Math.min(o+140,r);return s>r-5&&(s=r),s===r&&(o=Math.max(s-140,0)),n=n.slice(o,s),o>0&&(n=`'{snip} ${n}`),s<r&&(n+=" {snip}"),n}function Z(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{W(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function Q(t,e,n=!1){return!!F(t)&&(D(e,"RegExp")?e.test(t):!!F(e)&&(n?t===e:t.includes(e)))}function tt(t,e=[],n=!1){return e.some((e=>Q(t,e,n)))}function et(t,e,n){if(!(e in t))return;const r=t[e];if("function"!=typeof r)return;const o=n(r);"function"==typeof o&&rt(o,r);try{t[e]=o}catch{}}function nt(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(t){}}function rt(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,nt(t,"__sentry_original__",e)}catch(t){}}function ot(t){return t.__sentry_original__}function st(t){if(L(t))return{message:t.message,name:t.name,stack:t.stack,...at(t)};if(H(t)){const e={type:t.type,target:it(t.target),currentTarget:it(t.currentTarget),...at(t)};return"undefined"!=typeof CustomEvent&&z(t,CustomEvent)&&(e.detail=t.detail),e}return t}function it(t){try{return e=t,"undefined"!=typeof Element&&z(e,Element)?V(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var e}function at(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function ct(t,e=40){const n=Object.keys(st(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return K(r,e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");
3if(!(r.length>e))return t===n.length?r:K(r,e)}return""}function ut(t){return lt(t,new Map)}function lt(t,e){if(function(t){if(!U(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch{return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.getOwnPropertyNames(t))void 0!==t[n]&&(r[n]=lt(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(lt(t,e))})),r}return t}function dt(){return Date.now()/1e3}const pt=function(){const{performance:t}=o;if(!t?.now)return dt;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}();let ht;function ft(){return ht||(ht=function(){const{performance:t}=o;if(!t?.now)return[void 0,"none"];const e=36e5,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=s<e,a=t.timing?.navigationStart,c="number"==typeof a?Math.abs(a+n-r):e;return i||c<e?s<=c?[t.timeOrigin,"timeOrigin"]:[a,"navigationStart"]:[r,"dateNow"]}()),ht[0]}function mt(t=function(){const t=o;return t.crypto||t.msCrypto}()){let e=()=>16*Math.random();try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(e=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function gt(t){return t.exception?.values?.[0]}function _t(t){const{message:e,event_id:n}=t;if(e)return e;const r=gt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function yt(t,e,n){const r=t.exception=t.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function vt(t,e){const n=gt(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function bt(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{nt(t,"__sentry_captured__",!0)}catch(t){}return!1}var St;function kt(t){return new xt((e=>{e(t)}))}function wt(t){return new xt(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(St||(St={}));class xt{constructor(t){this._state=St.PENDING,this._handlers=[],this._runExecutor(t)}then(t,e){return new xt(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new xt(((e,n)=>{let r,o;return this.then((e=>{o=!1,r=e,t&&t()}),(e=>{o=!0,r=e,t&&t()})).then((()=>{o?n(r):e(r)}))}))}_executeHandlers(){if(this._state===St.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===St.RESOLVED&&t[1](this._value),this._state===St.REJECTED&&t[2](this._value),t[0]=!0)}))}_runExecutor(t){const e=(t,e)=>{this._state===St.PENDING&&(j(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(St.RESOLVED,t)},r=t=>{e(St.REJECTED,t)};try{t(n,r)}catch(t){r(t)}}}function Et(t){const e=pt(),n={sid:mt(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return ut({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&Ct(n,t),n}function Ct(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||pt(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:mt()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function It(){return mt()}function Tt(){return mt().substring(16)}function Mt(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=Mt(r[t],e[t],n-1));return r}const Rt="_sentrySpan";function At(t,e){e?nt(t,Rt,e):delete t[Rt]}function Ot(t){return t[Rt]}class Lt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:It(),sampleRand:Math.random()}}clone(){const t=new Lt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,At(t,Ot(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&&Ct(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},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,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,n=e instanceof Lt?e.getScopeData():U(e)?t:void 0,{tags:r,extra:o,user:s,contexts:i,level:a,fingerprint:c=[],propagationContext:u}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...i},s&&Object.keys(s).length&&(this._user=s),a&&(this._level=a),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,At(this,void 0),this._attachments=[],this.setPropagationContext({traceId:It(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:dt(),...t};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),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,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:Ot(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Mt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e?.event_id||mt();if(!this._client)return p.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n?.event_id||mt();if(!this._client)return p.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureEvent(t,e){const n=e?.event_id||mt();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(p.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
3h((t=>{t(this)})),this._notifyingListeners=!1)}}class Dt{constructor(t,e){let n,r;n=t||new Lt,r=e||new Lt,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return j(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Nt(){const t=a(i());return t.stack=t.stack||new Dt(c("defaultCurrentScope",(()=>new Lt)),c("defaultIsolationScope",(()=>new Lt)))}function Pt(t){return Nt().withScope(t)}function Ft(t,e){const n=Nt();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function Bt(t){return Nt().withScope((()=>t(Nt().getIsolationScope())))}function $t(t){const e=a(t);return e.acs?e.acs:{withIsolationScope:Bt,withScope:Pt,withSetScope:Ft,withSetIsolationScope:(t,e)=>Bt(e),getCurrentScope:()=>Nt().getScope(),getIsolationScope:()=>Nt().getIsolationScope()}}function Ut(){return $t(i()).getCurrentScope()}function Ht(){return $t(i()).getIsolationScope()}function jt(){return c("globalScope",(()=>new Lt))}function zt(...t){const e=$t(i());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function Wt(...t){const e=$t(i());if(2===t.length){const[n,r]=t;return n?e.withSetIsolationScope(n,r):e.withIsolationScope(r)}return e.withIsolationScope(t[0])}function qt(){return Ut().getClient()}function Vt(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=e;return ut({trace_id:n,span_id:o||Tt(),parent_span_id:r})}const Yt="sentry.source",Xt="sentry.sample_rate",Gt="sentry.op",Kt="sentry.origin",Jt="sentry.idle_span_finish_reason",Zt="sentry.measurement_unit",Qt="sentry.measurement_value",te="sentry.custom_span_name",ee="sentry.profile_id",ne="sentry.exclusive_time",re="http.request.method",oe="url.full";function se(t){if(t<400&&t>=100)return{code:1};if(t>=400&&t<500)switch(t){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(t>=500&&t<600)switch(t){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:"unknown_error"}}function ie(t,e){t.setAttribute("http.response.status_code",e);const n=se(e);"unknown_error"!==n.message&&t.setStatus(n)}const ae="_sentryScope",ce="_sentryIsolationScope";function ue(t){return{scope:t[ae],isolationScope:t[ce]}}function le(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}const de="sentry-",pe=/^sentry-/;function he(t){const e=function(t){if(!t||!F(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce(((t,e)=>{const n=me(e);return Object.entries(n).forEach((([e,n])=>{t[e]=n})),t}),{});return me(t)}(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>{if(e.match(pe)){t[e.slice(de.length)]=n}return t}),{});return Object.keys(n).length>0?n:void 0}function fe(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[e,n],r)=>{const o=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,s=0===r?o:`${t},${o}`;return s.length>8192?t:s}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${de}${e}`]=n),t)),{}))}function me(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}const ge=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function _e(t,e){const n=function(t){if(!t)return;const e=t.match(ge);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(t),r=he(e);if(!n?.traceId)return{traceId:It(),sampleRand:Math.random()};const o=function(t,e){const n=le(e?.sample_rand);if(void 0!==n)return n;const r=le(e?.sample_rate);return r&&void 0!==t?.parentSampled?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(n,r);r&&(r.sample_rand=o.toString());const{traceId:s,parentSpanId:i,parentSampled:a}=n;return{traceId:s,parentSpanId:i,sampled:a,dsc:r||{},sampleRand:o}}function ye(t=It(),e=Tt(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}let ve=!1;function be(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:o,parent_span_id:s,status:i,origin:a,links:c}=Ce(t);return ut({parent_span_id:s,span_id:e,trace_id:n,data:r,op:o,status:i,origin:a,links:c})}function Se(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),o=r?e:Ce(t).parent_span_id,s=ue(t).scope;return ut({parent_span_id:o,span_id:r?s?.getPropagationContext().propagationSpanId||Tt():e,trace_id:n})}function ke(t){const{traceId:e,spanId:n}=t.spanContext();return ye(e,n,Ie(t))}function we(t){return t&&t.length>0?t.map((({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:o})=>({span_id:t,trace_id:e,sampled:1===n,attributes:o,...r}))):void 0}function xe(t){return"number"==typeof t?Ee(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Ee(t.getTime()):pt()}function Ee(t){return t>9999999999?t/1e3:t}function Ce(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:o,name:s,endTime:i,parentSpanId:a,status:c,links:u}=t;return ut({span_id:e,trace_id:n,data:r,description:s,parent_span_id:a,start_timestamp:xe(o),timestamp:xe(i)||void 0,status:Te(c),op:r[Gt],origin:r[Kt],links:we(u)})}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Ie(t){const{traceFlags:e}=t.spanContext();return 1===e}function Te(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"unknown_error"}const Me="_sentryChildSpans",Re="_sentryRootSpan";function Ae(t,e){const n=t[Re]||t;
3nt(e,Re,n),t[Me]?t[Me].add(e):nt(t,Me,new Set([e]))}function Oe(t){const e=new Set;return function t(n){if(!e.has(n)&&Ie(n)){e.add(n);const r=n[Me]?Array.from(n[Me]):[];for(const e of r)t(e)}}(t),Array.from(e)}function Le(t){return t[Re]||t}function De(){const t=$t(i());return t.getActiveSpan?t.getActiveSpan():Ot(Ut())}function Ne(){ve||(d((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),ve=!0)}function Pe(t,e){t.updateName(e),t.setAttributes({[Yt]:"custom",[te]:e})}let Fe=!1;function Be(){Fe||(Fe=!0,I($e),R($e))}function $e(){const t=De(),e=t&&Le(t);if(e){const t="internal_error";e.setStatus({code:2,message:t})}}function Ue(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||qt()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}$e.tag="sentry_tracingErrorCallback";const He="production",je="_frozenDsc";function ze(t,e){nt(t,je,e)}function We(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},o=ut({environment:n.environment||He,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",o),o}function qe(t,e){const n=e.getPropagationContext();return n.dsc||We(n.traceId,t)}function Ve(t){const e=qt();if(!e)return{};const n=Le(t),r=Ce(n),o=r.data,s=n.spanContext().traceState,i=s?.get("sentry.sample_rate")??o[Xt];function a(t){return"number"!=typeof i&&"string"!=typeof i||(t.sample_rate=`${i}`),t}const c=n[je];if(c)return a(c);const u=s?.get("sentry.dsc"),l=u&&he(u);if(l)return a(l);const d=We(t.spanContext().traceId,e),p=o[Yt],h=r.description;return"url"!==p&&h&&(d.transaction=h),Ue()&&(d.sampled=String(Ie(n)),d.sample_rand=s?.get("sentry.sample_rand")??ue(n).scope?.getPropagationContext().sampleRand.toString()),a(d),e.emit("createDsc",d,n),d}function Ye(t){return fe(Ve(t))}class Xe{constructor(t={}){this._traceId=t.traceId||It(),this._spanId=t.spanId||Tt()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,e){}}function Ge(t,e,n=(()=>{})){let r;try{r=t()}catch(t){throw e(t),n(),t}return function(t,e,n){if(j(t))return t.then((t=>(n(),t)),(t=>{throw e(t),n(),t}));return n(),t}(r,e,n)}const Ke=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Je(t,e=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}function Ze(t){const e=Ke.exec(t);if(!e)return void d((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,o="",s="",i="",a=""]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return Qe({host:s,pass:o,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function Qe(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function tn(t){const e="string"==typeof t?Ze(t):Qe(t);if(e)return e}function en(t,e=100,n=1/0){try{return rn("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function nn(t,e=3,n=102400){const r=en(t,e);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>n?nn(t,e-1,n):r;var o}function rn(t,e,n=1/0,r=1/0,o=function(){const t=new WeakSet;function e(e){return!!t.has(e)||(t.add(e),!1)}function n(e){t.delete(e)}return[e,n]}()){const[s,i]=o;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(W(e))return"[VueViewModel]";if(U(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${v(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var n}(t,e);if(!a.startsWith("[object "))return a;
3if(e.__sentry_skip_normalization__)return e;const c="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(s(e))return"[Circular ~]";const u=e;if(u&&"function"==typeof u.toJSON)try{return rn("",u.toJSON(),c-1,r,o)}catch(t){}const l=Array.isArray(e)?[]:{};let d=0;const p=st(e);for(const t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(d>=r){l[t]="[MaxProperties ~]";break}const e=p[t];l[t]=rn(t,e,c-1,r,o),d++}return i(e),l}function on(t,e=[]){return[t,e]}function sn(t,e){const[n,r]=t;return[n,[...r,e]]}function an(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function cn(t,e){return an(t,((t,n)=>e.includes(n)))}function un(t){const e=a(o);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function ln(t){const[e,n]=t;let r=JSON.stringify(e);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[un(r),t]:r.push("string"==typeof t?un(t):t)}for(const t of n){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(en(n))}o(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function dn(t){let e="string"==typeof t?un(t):t;function n(t){const n=e.subarray(0,t);return e=e.subarray(t+1),n}function r(){let t=e.indexOf(10);return t<0&&(t=e.length),JSON.parse(function(t){const e=a(o);return e.decodePolyfill?e.decodePolyfill(t):(new TextDecoder).decode(t)}(n(t)))}const s=r(),i=[];for(;e.length;){const t=r(),e="number"==typeof t.length?t.length:void 0;i.push([t,e?n(e):r()])}return[s,i]}function pn(t){return[{type:"span"},t]}function hn(t){const e="string"==typeof t.data?un(t.data):t.data;return[ut({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const fn={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",otel_log:"log_item"};function mn(t){return fn[t]}function gn(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function _n(t,e,n,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Je(r)},...o&&{trace:ut({...o})}}}function yn(t,e,n,r=De()){const o=r&&Le(r);o&&o.addEvent(t,{[Qt]:e,[Zt]:n})}function vn(t){if(!t||0===t.length)return;const e={};return t.forEach((t=>{const n=t.attributes||{},r=n[Zt],o=n[Qt];"string"==typeof r&&"number"==typeof o&&(e[t.name]={value:o,unit:r})})),e}class bn{constructor(t={}){this._traceId=t.traceId||It(),this._spanId=t.spanId||Tt(),this._startTime=t.startTimestamp||pt(),this._links=t.links,this._attributes={},this.setAttributes({[Kt]:"manual",[Gt]: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,e){}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?1:0}}setAttribute(t,e){return void 0===e?delete this._attributes[t]:this._attributes[t]=e,this}setAttributes(t){return Object.keys(t).forEach((e=>this.setAttribute(e,t[e]))),this}updateStartTime(t){this._startTime=xe(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Yt,"custom"),this}end(t){this._endTime||(this._endTime=xe(t),this._onSpanEnded())}getSpanJSON(){return ut({data:this._attributes,description:this._name,op:this._attributes[Gt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Te(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Kt],profile_id:this._attributes[ee],exclusive_time:this._attributes[ne],measurements:vn(this._events),is_segment:this._isStandaloneSpan&&Le(this)===this||void 0,segment_id:this._isStandaloneSpan?Le(this).spanContext().spanId:void 0,links:we(this._links)})}isRecording(){return!this._endTime&&!!this._sampled}
3addEvent(t,e,n){const r=Sn(e)?e:n||pt(),o=Sn(e)?{}:e||{},s={name:t,time:xe(r),attributes:o};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=qt();t&&t.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===Le(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){const e=qt();if(!e)return;const n=t[1];if(!n||0===n.length)return void e.recordDroppedEvent("before_send","span");e.sendEnvelope(t)}(function(t,e){const n=Ve(t[0]),r=e?.getDsn(),o=e?.getOptions().tunnel,s={sent_at:(new Date).toISOString(),...function(t){return!!t.trace_id&&!!t.public_key}(n)&&{trace:n},...!!o&&r&&{dsn:Je(r)}},i=e?.getOptions().beforeSendSpan,a=i?t=>{const e=Ce(t);return i(e)||(Ne(),e)}:Ce,c=[];for(const e of t){const t=a(e);t&&c.push(pn(t))}return on(s,c)}([this],t)):t&&t.recordDroppedEvent("sample_rate","span"));const e=this._convertSpanToTransaction();if(e){(ue(this).scope||Ut()).captureEvent(e)}}_convertSpanToTransaction(){if(!kn(Ce(this)))return;this._name||(this._name="<unlabeled transaction>");const{scope:t,isolationScope:e}=ue(this);if(!0!==this._sampled)return;const n=Oe(this).filter((t=>t!==this&&!function(t){return t instanceof bn&&t.isStandaloneSpan()}(t))).map((t=>Ce(t))).filter(kn),r=this._attributes[Yt];delete this._attributes[te],n.forEach((t=>{delete t.data[te]}));const o={contexts:{trace:be(this)},spans:n.length>1e3?n.sort(((t,e)=>t.start_timestamp-e.start_timestamp)).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:e,...ut({dynamicSamplingContext:Ve(this)})},...r&&{transaction_info:{source:r}}},s=vn(this._events);return s&&Object.keys(s).length&&(o.measurements=s),o}}function Sn(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function kn(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}const wn="__SENTRY_SUPPRESS_TRACING__";function xn(t,e){const n=Ln();if(n.startSpan)return n.startSpan(t,e);const r=On(t),{forceTransaction:o,parentSpan:s,scope:i}=t,a=i?.clone();return zt(a,(()=>Pn(s)((()=>{const n=Ut(),s=Nn(n),i=t.onlyIfParent&&!s?new Xe:An({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return At(n,i),Ge((()=>e(i)),(()=>{const{status:t}=Ce(i);!i.isRecording()||t&&"ok"!==t||i.setStatus({code:2,message:"internal_error"})}),(()=>{i.end()}))}))))}function En(t,e){const n=Ln();if(n.startSpanManual)return n.startSpanManual(t,e);const r=On(t),{forceTransaction:o,parentSpan:s,scope:i}=t,a=i?.clone();return zt(a,(()=>Pn(s)((()=>{const n=Ut(),s=Nn(n),i=t.onlyIfParent&&!s?new Xe:An({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return At(n,i),Ge((()=>e(i,(()=>i.end()))),(()=>{const{status:t}=Ce(i);!i.isRecording()||t&&"ok"!==t||i.setStatus({code:2,message:"internal_error"})}))}))))}function Cn(t){const e=Ln();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=On(t),{forceTransaction:r,parentSpan:o}=t;return(t.scope?e=>zt(t.scope,e):void 0!==o?t=>Tn(o,t):t=>t())((()=>{const e=Ut(),o=Nn(e);return t.onlyIfParent&&!o?new Xe:An({parentSpan:o,spanArguments:n,forceTransaction:r,scope:e})}))}const In=(t,e)=>{const n=$t(i());if(n.continueTrace)return n.continueTrace(t,e);const{sentryTrace:r,baggage:o}=t;return zt((t=>{const n=_e(r,o);return t.setPropagationContext(n),e()}))};function Tn(t,e){const n=Ln();return n.withActiveSpan?n.withActiveSpan(t,e):zt((n=>(At(n,t||void 0),e(n))))}function Mn(t){const e=Ln();return e.suppressTracing?e.suppressTracing(t):zt((e=>(e.setSDKProcessingMetadata({[wn]:!0}),t())))}function Rn(t){return zt((e=>(e.setPropagationContext({traceId:It(),sampleRand:Math.random()}),Tn(null,t))))}function An({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!Ue()){const r=new Xe;if(n||!t){ze(r,{sampled:"false",sample_rate:"0",transaction:e.name,...Ve(r)})}return r}const o=Ht();let s;if(t&&!n)s=function(t,e,n){const{spanId:r,traceId:o}=t.spanContext(),s=!e.getScopeData().sdkProcessingMetadata[wn]&&Ie(t),i=s?new bn({...n,parentSpanId:r,traceId:o,sampled:s}):new Xe({traceId:o});Ae(t,i);const a=qt();a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i));return i}(t,r,e),Ae(t,s);else if(t){const n=Ve(t),{traceId:o,spanId:i}=t.spanContext(),a=Ie(t);s=Dn({traceId:o,parentSpanId:i,...e},r,a),ze(s,n)}else{const{traceId:t,dsc:n,parentSpanId:i,sampled:a}={...o.getPropagationContext(),...r.getPropagationContext()};s=Dn({traceId:t,parentSpanId:i,...e},r,a),n&&ze(s,n)}return function(t,e,n){t&&(nt(t,ce,n),nt(t,ae,e))}(s,r,o),s}function On(t){const e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const n={...e};
3return n.startTimestamp=xe(t.startTime),delete n.startTime,n}return e}function Ln(){return $t(i())}function Dn(t,e,n){const r=qt(),o=r?.getOptions()||{},{name:s="",attributes:i}=t,a=e.getPropagationContext(),[c,u,l]=e.getScopeData().sdkProcessingMetadata[wn]?[!1]:function(t,e,n){if(!Ue(t))return[!1];let r,o;"function"==typeof t.tracesSampler?(o=t.tracesSampler({...e,inheritOrSampleWith:t=>"number"==typeof e.parentSampleRate?e.parentSampleRate:"boolean"==typeof e.parentSampled?Number(e.parentSampled):t}),r=!0):void 0!==e.parentSampled?o=e.parentSampled:void 0!==t.tracesSampleRate&&(o=t.tracesSampleRate,r=!0);const s=le(o);if(void 0===s)return[!1];if(!s)return[!1,s,r];return[n<s,s,r]}(o,{name:s,parentSampled:n,attributes:i,parentSampleRate:le(a.dsc?.sample_rate)},a.sampleRand),d=new bn({...t,attributes:{[Yt]:"custom",[Xt]:void 0!==u&&l?u:void 0,...t.attributes},sampled:c});return!c&&r&&r.recordDroppedEvent("sample_rate","transaction"),r&&r.emit("spanStart",d),d}function Nn(t){const e=Ot(t);if(!e)return;const n=qt();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Le(e):e}function Pn(t){return void 0!==t?e=>Tn(t,e):t=>t()}const Fn={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function Bn(t,e={}){const n=new Map;let r,o=!1,s="externalFinish",i=!e.disableAutoFinish;const a=[],{idleTimeout:c=Fn.idleTimeout,finalTimeout:u=Fn.finalTimeout,childSpanTimeout:l=Fn.childSpanTimeout,beforeSpanEnd:d}=e,h=qt();if(!h||!Ue()){const t=new Xe;return ze(t,{sample_rate:"0",sampled:"false",...Ve(t)}),t}const f=Ut(),m=De(),g=function(t){const e=Cn(t);return At(Ut(),e),e}(t);function _(){r&&(clearTimeout(r),r=void 0)}function y(t){_(),r=setTimeout((()=>{!o&&0===n.size&&i&&(s="idleTimeout",g.end(t))}),c)}function v(t){r=setTimeout((()=>{!o&&i&&(s="heartbeatFailed",g.end(t))}),l)}function b(t){o=!0,n.clear(),a.forEach((t=>t())),At(f,m);const e=Ce(g),{start_timestamp:r}=e;if(!r)return;e.data[Jt]||g.setAttribute(Jt,s),p.log(`[Tracing] Idle span "${e.op}" finished`);const i=Oe(g).filter((t=>t!==g));let l=0;i.forEach((e=>{e.isRecording()&&(e.setStatus({code:2,message:"cancelled"}),e.end(t));const n=Ce(e),{timestamp:r=0,start_timestamp:o=0}=n,s=o<=t,i=r-o<=(u+c)/1e3;i&&s||(!function(t,e){t[Me]&&t[Me].delete(e)}(g,e),l++)})),l>0&&g.setAttribute("sentry.idle_span_discarded_spans",l)}return g.end=new Proxy(g.end,{apply(t,e,n){if(d&&d(g),e instanceof Xe)return;const[r,...o]=n,s=xe(r||pt()),i=Oe(g).filter((t=>t!==g));if(!i.length)return b(s),Reflect.apply(t,e,[s,...o]);const a=i.map((t=>Ce(t).timestamp)).filter((t=>!!t)),c=a.length?Math.max(...a):void 0,l=Ce(g).start_timestamp,p=Math.min(l?l+u/1e3:1/0,Math.max(l||-1/0,Math.min(s,c||1/0)));return b(p),Reflect.apply(t,e,[p,...o])}}),a.push(h.on("spanStart",(t=>{if(o||t===g||Ce(t).timestamp)return;var e;Oe(g).includes(t)&&(e=t.spanContext().spanId,_(),n.set(e,!0),v(pt()+l/1e3))}))),a.push(h.on("spanEnd",(t=>{var e;o||(e=t.spanContext().spanId,n.has(e)&&n.delete(e),0===n.size&&y(pt()+c/1e3))}))),a.push(h.on("idleSpanEnableAutoFinish",(t=>{t===g&&(i=!0,y(),n.size&&v())}))),e.disableAutoFinish||y(),setTimeout((()=>{o||(g.setStatus({code:2,message:"deadline_exceeded"}),s="finalTimeout",g.end())}),u),g}function $n(t,e,n,r=0){return new xt(((o,s)=>{const i=t[r];if(null===e||"function"!=typeof i)o(e);else{const a=i({...e},n);j(a)?a.then((e=>$n(t,e,n,r+1).then(o))).then(null,s):$n(t,a,n,r+1).then(o).then(null,s)}}))}let Un,Hn,jn;function zn(t){const e=o._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return jn&&n.length===Hn||(Hn=n.length,jn=n.reduce(((n,r)=>{Un||(Un={});const o=Un[r];if(o)n[o[0]]=o[1];else{const o=t(r);for(let t=o.length-1;t>=0;t--){const s=o[t]?.filename,i=e[r];if(s&&i){n[s]=i,Un[r]=[s,i];break}}}return n}),{})),jn}function Wn(t,e){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=e;!function(t,e){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=e,c=ut(n);Object.keys(c).length&&(t.extra={...c,...t.extra});const u=ut(r);Object.keys(u).length&&(t.tags={...u,...t.tags});const l=ut(o);Object.keys(l).length&&(t.user={...l,...t.user});const d=ut(s);Object.keys(d).length&&(t.contexts={...d,...t.contexts});i&&(t.level=i);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:Se(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Ve(e),...t.sdkProcessingMetadata};const n=Le(e),r=Ce(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,o),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,s)}function qn(t,e){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:h,span:f}=e;Vn(t,"extra",n),Vn(t,"tags",r),Vn(t,"user",o),Vn(t,"contexts",s),t.sdkProcessingMetadata=Mt(t.sdkProcessingMetadata,a,2),i&&(t.level=i),h&&(t.transactionName=h),f&&(t.span=f),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...p}}function Vn(t,e,n){t[e]=Mt(t[e],n,1)}function Yn(t,e,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||mt(),timestamp:e.timestamp||dt()},u=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:o,maxValueLength:s=250}=e;t.environment=t.environment||n||He,!t.release&&r&&(t.release=r);!t.dist&&o&&(t.dist=o);t.message&&(t.message=K(t.message,s));const i=t.exception?.values?.[0];i?.value&&(i.value=K(i.value,s));const a=t.request;a?.url&&(a.url=K(a.url,s))}(c,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(c,u),o&&o.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=zn(e);t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.filename&&(t.debug_id=n[t.filename])}))}))}(c,t.stackParser);const l=function(t,e){if(!e)return t;const n=t?t.clone():new Lt;return n.update(e),n}(r,n.captureContext);n.mechanism&&vt(c,n.mechanism);const d=o?o.getEventProcessors():[],p=jt().getScopeData();if(s){qn(p,s.getScopeData())}if(l){qn(p,l.getScopeData())}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),Wn(c,p);return $n([...d,...p.eventProcessors],c,n).then((t=>(t&&function(t){const e={};if(t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))})),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})}))}(t),"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>
3({...t,...t.data&&{data:en(t.data,e,n)}})))},...t.user&&{user:en(t.user,e,n)},...t.contexts&&{contexts:en(t.contexts,e,n)},...t.extra&&{extra:en(t.extra,e,n)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=en(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:en(t.data,e,n)}}))));t.contexts?.flags&&r.contexts&&(r.contexts.flags=en(t.contexts.flags,3,n));return r}(t,i,a):t)))}function Xn(t){if(t)return function(t){return t instanceof Lt||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>Gn.includes(t)))}(t)?{captureContext:t}:t}const Gn=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Kn(t,e){return Ut().captureException(t,Xn(e))}function Jn(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return Ut().captureMessage(t,n,r)}function Zn(t,e){return Ut().captureEvent(t,e)}function Qn(t,e){Ht().setContext(t,e)}function tr(t){Ht().setExtras(t)}function er(t,e){Ht().setExtra(t,e)}function nr(t){Ht().setTags(t)}function rr(t,e){Ht().setTag(t,e)}function or(t){Ht().setUser(t)}function sr(){return Ht().lastEventId()}async function ir(t){const e=qt();return e?e.flush(t):Promise.resolve(!1)}async function ar(t){const e=qt();return e?e.close(t):Promise.resolve(!1)}function cr(){return!!qt()}function ur(t){Ht().addEventProcessor(t)}function lr(t){const e=Ht(),n=Ut(),{userAgent:r}=o.navigator||{},s=Et({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),i=e.getSession();return"ok"===i?.status&&Ct(i,{status:"exited"}),dr(),e.setSession(s),s}function dr(){const t=Ht(),e=Ut().getSession()||t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),Ct(t,n)}(e),pr(),t.setSession()}function pr(){const t=Ht(),e=qt(),n=t.getSession();n&&e&&e.captureSession(n)}function hr(t=!1){t?dr():pr()}function fr(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function mr(t,e,n){return e||`${function(t){return`${fr(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(t,n)}`}const gr=[];function _r(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach((t=>{t.isDefaultInstance=!0})),Array.isArray(n))r=[...e,...n];else if("function"==typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;return function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(r)}function yr(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function vr(t,e,n){if(!n[e.name]){if(n[e.name]=e,-1===gr.indexOf(e.name)&&"function"==typeof e.setupOnce&&(e.setupOnce(),gr.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}}}function br(t){const e=qt();e&&e.addIntegration(t)}class Sr extends Error{constructor(t,e="warn"){super(t),this.message=t,this.logLevel=e}}function kr(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch(t){}return e}class wr{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn&&(this._dsn=tn(t.dsn)),this._dsn){const e=mr(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){const r=mt();if(bt(t))return r;const o={event_id:r,...e};return this._process(this.eventFromException(t,o).then((t=>this._captureEvent(t,o,n)))),o.event_id}captureMessage(t,e,n,r){const o={event_id:mt(),...n},s=B(t)?t:String(t),i=$(t)?this.eventFromMessage(s,e,o):this.eventFromException(t,o);return this._process(i.then((t=>this._captureEvent(t,o,r)))),o.event_id}captureEvent(t,e,n){const r=mt();if(e?.originalException&&bt(e.originalException))return r;const o={event_id:r,...e},s=t.sdkProcessingMetadata||{},i=s.capturedSpanScope,a=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,o,i||n,a)),o.event_id}captureSession(t){this.sendSession(t),Ct(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;
3return e?(this.emit("flush"),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):kt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];vr(this,t,this._integrations),e||yr(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){const o=gn(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n?.sdk);const i=_n(t,o,r,e);return delete t.sdkProcessingMetadata,on(i,[[{type:s},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=sn(n,hn(t));const r=this.sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const{release:e,environment:n=He}=this._options;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!e)return;r.release=r.release||e,r.environment=r.environment||n,t.attrs=r}else{if(!t.release&&!e)return;t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);const r=function(t,e,n,r){const o=gn(n);return on({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&e&&{dsn:Je(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){const r=`${t}:${e}`;this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const n=this._hooks[t]=this._hooks[t]||[];return n.push(e),()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach((t=>t(...e)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,(t=>t)):kt({})}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&vr(t,e,n)})),n}(this,t),yr(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const o=e.exception?.values;if(o){r=!0;for(const t of o){if(!1===t.mechanism?.handled){n=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&n)&&(Ct(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new xt((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r){const o=this.getOptions(),s=Object.keys(this._integrations);return!e.integrations&&s?.length&&(e.integrations=s),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Yn(o,t,e,n,this,r).then((t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:Vt(n),...t.contexts};const r=qe(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t}))}_captureEvent(t,e={},n=Ut(),o=Ht()){return this._processEvent(t,e,n,o).then((t=>t.event_id),(t=>{r}))}_processEvent(t,e,n,r){const o=this.getOptions(),{sampleRate:s}=o,i=Er(t),a=xr(t),c=t.type||"error",u=`before send for type \`${c}\``,l=void 0===s?void 0:le(s);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),wt(new Sr(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const d="replay_event"===c?"replay":c;return this._prepareEvent(t,e,n,r).then((t=>{if(null===t)throw this.recordDroppedEvent("event_processor",d),new Sr("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return t;const n=function(t,e,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:i}=e;let a=n;if(xr(a)&&o)return o(a,r);if(Er(a)){if(i){const t=i(function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:o,origin:s,data:i,op:a}=t.contexts?.trace??{};return ut({data:i??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:e??"",origin:s,profile_id:i?.[ee],exclusive_time:i?.[ne],measurements:t.measurements,is_segment:!0})}(a));if(t?a=Mt(n,ut({type:"transaction",timestamp:(c=t).timestamp,start_timestamp:c.start_timestamp,transaction:c.description,contexts:{trace:{trace_id:c.trace_id,span_id:c.span_id,parent_span_id:c.parent_span_id,op:c.op,status:c.status,origin:c.origin,data:{...c.data,...c.profile_id&&{[ee]:c.profile_id},...c.exclusive_time&&{[ne]:c.exclusive_time}}}},measurements:c.measurements})):Ne(),a.spans){const t=[];for(const e of a.spans){const n=i(e);
3n?t.push(n):(Ne(),t.push(e))}a.spans=t}}if(s){if(a.spans){const t=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return s(a,r)}}var c;return a}(0,o,t,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(j(t))return t.then((t=>{if(!U(t)&&null!==t)throw new Sr(n);return t}),(t=>{throw new Sr(`${e} rejected with ${t}`)}));if(!U(t)&&null!==t)throw new Sr(n);return t}(n,u)})).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",d),i){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new Sr(`${u} returned \`null\`, will not send event.`,"log")}const s=n.getSession()||r.getSession();if(a&&s&&this._updateSessionFromEvent(s,o),i){const t=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const c=o.transaction_info;if(i&&c&&o.transaction!==t.transaction){const t="custom";o.transaction_info={...c,source:t}}return this.sendEvent(o,e),o})).then(null,(t=>{if(t instanceof Sr)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new Sr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map((([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}}))}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return;if(!this._dsn)return;const e=(n=t,on((r=this._options.tunnel&&Je(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:o||dt(),discarded_events:n}]]));var n,r,o;this.sendEnvelope(e)}}function xr(t){return void 0===t.type}function Er(t){return"transaction"===t.type}function Cr(t){Ut().setClient(t)}function Ir(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return wt(new Sr("Not adding Promise because buffer limit was reached."));const o=r();return-1===e.indexOf(o)&&e.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(t){return new xt(((n,r)=>{let o=e.length;if(!o)return n(!0);const s=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{kt(t).then((()=>{--o||(clearTimeout(s),n(!0))}),r)}))}))}}}function Tr(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}function Mr(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}function Rr(t,{statusCode:e,headers:n},r=Date.now()){const o={...t},s=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(s)for(const t of s.trim().split(",")){const[e,n,,,s]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&s&&!s.split(";").includes("custom")||(o[t]=r+a);else o.all=r+a}else i?o.all=r+Tr(i,r):429===e&&(o.all=r+6e4);return o}function Ar(t,e,n=Ir(t.bufferSize||64)){let r={};return{send:function(o){const s=[];if(an(o,((e,n)=>{const o=mn(n);Mr(r,o)?t.recordDroppedEvent("ratelimit_backoff",o):s.push(e)})),0===s.length)return kt({});const i=on(o[0],s),a=e=>{an(i,((n,r)=>{t.recordDroppedEvent(e,mn(r))}))};return n.add((()=>e({body:ln(i)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode),r=Rr(r,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof Sr)return a("queue_overflow"),kt({});throw t}))},flush:t=>n.drain(t)}}const Or=5e3;function Lr(t){return e=>{const n=t(e);if(!e.createStore)throw new Error("No `createStore` function was provided");const r=e.createStore(e);let o,s=Or;function i(t){o&&clearTimeout(o),o=setTimeout((async()=>{o=void 0;const t=await r.shift();t&&(t[0].sent_at=(new Date).toISOString(),c(t,!0).catch((t=>{})))}),t),"number"!=typeof o&&o.unref&&o.unref()}function a(){o||(i(s),s=Math.min(2*s,36e5))}async function c(t,o=!1){if(!o&&cn(t,["replay_event","replay_recording"]))return await r.push(t),i(100),{};try{const e=await n.send(t);let r=100;if(e)if(e.headers?.["retry-after"])r=Tr(e.headers["retry-after"]);else if(e.headers?.["x-sentry-rate-limits"])r=6e4;else if((e.statusCode||0)>=400)return e;return i(r),s=Or,e}catch(n){if(await function(t,n,r){return!cn(t,["client_report"])&&(!e.shouldStore||e.shouldStore(t,n,r))}(t,n,s))return o?await r.unshift(t):await r.push(t),a(),{};throw n}}return e.flushAtStartup&&a(),{send:c,flush:t=>(void 0===t&&(s=Or,i(100)),n.flush(t))}}}function Dr(t,e){let n;return an(t,((t,r)=>(e.includes(r)&&(n=Array.isArray(t)?t[1]:void 0),!!n))),n}function Nr(t,e){return n=>{const r=t(n),o=new Map;function s(e,r){const s=r?`${e}:${r}`:e;let i=o.get(s);if(!i){const a=Ze(e);if(!a)return;const c=mr(a,n.tunnel);i=r?function(t,e){return n=>{const r=t(n);return{...r,send:async t=>{const n=Dr(t,["event","transaction","profile","replay_event"]);return n&&(n.release=e),r.send(t)}}}}(t,r)({...n,url:c}):t({...n,url:c}),o.set(s,i)}return[e,i]}return{send:async function(t){const n=e({envelope:t,getEvent:function(e){return Dr(t,e?.length?e:["event"])}}).map((t=>"string"==typeof t?s(t,void 0):s(t.dsn,t.release))).filter((t=>!!t)),o=n.length?n:[["",r]];return(await Promise.all(o.map((([e,n])=>n.send(function(t,e){return on(e?{...t[0],dsn:e}:t[0],t[1])}(t,e))))))[0]},flush:async function(t){const e=[...o.values(),r];return(await Promise.all(e.map((e=>e.flush(t))))).every((t=>t))}}}}function Pr(t,e){const n=e?.getDsn(),r=e?.getOptions().tunnel;return function(t,e){return!!e&&t.includes(e.host)}(t,n)||function(t,e){if(!e)return!1;return Fr(t)===Fr(e)}(t,r)}function Fr(t){return"/"===t[t.length-1]?t.slice(0,-1):t}function Br(t,...e){const n=new String(String.raw(t,...e));
3return n.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=e,n}function $r(t){void 0===t.user?.ip_address&&(t.user={...t.user,ip_address:"{{auto}}"})}function Ur(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}function Hr(t,e,n=[e],r="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${r}:@sentry/${t}`,version:s}))),version:s}),t._metadata=o}function jr(t={}){const e=qt();if(!function(){const t=qt();return!1!==t?.getOptions().enabled&&!!t?.getTransport()}()||!e)return{};const n=$t(i());if(n.getTraceData)return n.getTraceData(t);const r=Ut(),o=t.span||De(),s=o?ke(o):function(t){const{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return ye(e,r,n)}(r),a=fe(o?Ve(o):qe(e,r));return ge.test(s)?{"sentry-trace":s,baggage:a}:(p.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}const zr=100;function Wr(t,e){const n=qt(),r=Ht();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=zr}=n.getOptions();if(s<=0)return;const i={timestamp:dt(),...t},a=o?d((()=>o(i,e))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,s))}let qr;const Vr=new WeakMap,Yr=()=>({name:"FunctionToString",setupOnce(){qr=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=ot(this),n=Vr.has(qt())&&void 0!==e?e:this;return qr.apply(n,t)}}catch{}},setup(t){Vr.set(t,!0)}}),Xr=[/^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$/],Gr=(t={})=>({name:"EventFilters",processEvent(e,n,r){const o=r.getOptions(),s=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Xr],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,o);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return!0;if(function(t,e){if(t.type||!e||!e.length)return!1;return kr(t).some((t=>tt(t,e)))}(t,e.ignoreErrors))return!0;if(function(t){if(t.type)return!1;if(!t.exception?.values?.length)return!1;return!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value))}(t))return!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&tt(n,e)}(t,e.ignoreTransactions))return!0;if(function(t,e){if(!e?.length)return!1;const n=Jr(t);return!!n&&tt(n,e)}(t,e.denyUrls))return!0;if(!function(t,e){if(!e?.length)return!0;const n=Jr(t);return!n||tt(n,e)}(t,e.allowUrls))return!0;return!1}(e,s)?null:e}}),Kr=(t={})=>({...Gr(t),name:"InboundFilters"});function Jr(t){try{const e=[...t.exception?.values??[]].reverse().find((t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length))?.stacktrace?.frames;return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(t){return null}}function Zr(t,e,n=250,r,o,s,i){if(!s.exception?.values||!i||!z(i.originalException,Error))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,u;a&&(s.exception.values=(c=Qr(t,e,o,i.originalException,r,s.exception.values,a,0),u=n,
3c.map((t=>(t.value&&(t.value=K(t.value,u)),t)))))}function Qr(t,e,n,r,o,s,i,a){if(s.length>=n+1)return s;let c=[...s];if(z(r[o],Error)){to(i,a);const s=t(e,r[o]),u=c.length;eo(s,o,u,a),c=Qr(t,e,n,r[o],o,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(z(r,Error)){to(i,a);const u=t(e,r),l=c.length;eo(u,`errors[${s}]`,l,a),c=Qr(t,e,n,r,o,[u,...c],u,l)}})),c}function to(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function eo(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}const no=new Map,ro=new Set;function oo(t,e){return function(t){if(o._sentryModuleMetadata)for(const e of Object.keys(o._sentryModuleMetadata)){const n=o._sentryModuleMetadata[e];if(ro.has(e))continue;ro.add(e);const r=t(e);for(const t of r.reverse())if(t.filename){no.set(t.filename,n);break}}}(t),no.get(e)}function so(t,e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const n of e.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;const e=oo(t,n.filename);e&&(n.module_metadata=e)}}))}catch(t){}}function io(t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const e of t.stacktrace.frames||[])delete e.module_metadata}))}catch(t){}}const ao=()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",(t=>{an(t,((t,e)=>{if("event"===e){const e=Array.isArray(t)?t[1]:void 0;e&&(io(e),t[1]=e)}}))})),t.on("applyFrameMetadata",(e=>{if(e.type)return;so(t.getOptions().stackParser,e)}))}});function co(t){const e="console";w(e,t),x(e,uo)}function uo(){"console"in o&&u.forEach((function(t){t in o.console&&et(o.console,t,(function(e){return l[t]=e,function(...e){E("console",{args:e,level:t});l[t]?.apply(o.console,e)}}))}))}function lo(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const po=(t={})=>{const e=t.levels||u,n=t.handled??!0;return{name:"CaptureConsole",setup(t){"console"in o&&co((({args:r,level:o})=>{qt()===t&&e.includes(o)&&function(t,e,n){const r={level:lo(e),extra:{arguments:t}};zt((o=>{if(o.addEventProcessor((t=>(t.logger="console",vt(t,{handled:n,type:"console"}),t))),"assert"===e){if(!t[0]){const e=`Assertion failed: ${Z(t.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",t.slice(1)),Jn(e,r)}return}const s=t.find((t=>t instanceof Error));if(s)return void Kn(s,r);Jn(Z(t," "),r)}))}(r,o,n)}))}}};const ho=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!mo(t,e))return!1;if(!fo(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=go(e),r=go(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!mo(t,e))return!1;if(!fo(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return null}catch(t){}return t=e}}};function fo(t,e){let n=b(t),r=b(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],o=n[t];if(e.filename!==o.filename||e.lineno!==o.lineno||e.colno!==o.colno||e.function!==o.function)return!1}return!0}function mo(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function go(t){return t.exception?.values&&t.exception.values[0]}const _o=(t={})=>{const{depth:e=3,captureErrorCause:n=!0}=t;return{name:"ExtraErrorData",processEvent(t,r,o){const{maxValueLength:s=250}=o.getOptions();return function(t,e={},n,r,o){if(!e.originalException||!L(e.originalException))return t;const s=e.originalException.name||e.originalException.constructor.name,i=function(t,e,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const e of Object.keys(t)){if(-1!==r.indexOf(e))continue;const s=t[e];o[e]=L(s)||"string"==typeof s?K(`${s}`,n):s}if(e&&void 0!==t.cause&&(o.cause=L(t.cause)?t.cause.toString():t.cause),"function"==typeof t.toJSON){const e=t.toJSON();for(const t of Object.keys(e)){const n=e[t];o[t]=L(n)?n.toString():n}}return o}catch(t){}return null}(e.originalException,r,o);if(i){const e={...t.contexts},r=en(i,n);return U(r)&&(nt(r,"__sentry_skip_normalization__",!0),e[s]=r),{...t,contexts:e}}return t}(t,r,e,n,s)}}};function yo(t,e){let n=0;for(let e=t.length-1;e>=0;e--){const r=t[e];"."===r?t.splice(e,1):".."===r?(t.splice(e,1),n++):n&&(t.splice(e,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}const vo=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function bo(t){const e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,n=vo.exec(e);return n?n.slice(1):[]}function So(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const o=r>=0?t[r]:"/";o&&(e=`${o}/${e}`,n="/"===o.charAt(0))}return e=yo(e.split("/").filter((t=>!!t)),!n).join("/"),(n?"/":"")+e||"."}function ko(t){let e=0;for(;e<t.length&&""===t[e];e++);let n=t.length-1;for(;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}const wo=(t={})=>{const e=t.root,n=t.prefix||"app:///",r="window"in o&&!!o.window,s=t.iteratee||function({isBrowser:t,root:e,prefix:n}){return r=>{if(!r.filename)return r;const o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename);if(t){if(e){const t=r.filename;0===t.indexOf(e)&&(r.filename=t.replace(e,n))}}else if(o||s){const t=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=e?function(t,e){t=So(t).slice(1),e=So(e).slice(1);const n=ko(t.split("/")),r=ko(e.split("/")),o=Math.min(n.length,r.length);let s=o;for(let t=0;t<o;t++)if(n[t]!==r[t]){s=t;break}let i=[];for(let t=s;t<n.length;t++)i.push("..");return i=i.concat(r.slice(s)),i.join("/")}(e,t):function(t,e){let n=bo(t)[2]||"";return e&&n.slice(-1*e.length)===e&&(n=n.slice(0,n.length-e.length)),n}(t);r.filename=`${n}${s}`}return r}}({isBrowser:r,root:e,prefix:n});return{name:"RewriteFrames",processEvent(t){let e=t;return t.exception&&Array.isArray(t.exception.values)&&(e=function(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map((t=>{return{...t,...t.stacktrace&&{stacktrace:(e=t.stacktrace,{...e,frames:e?.frames&&e.frames.map((t=>s(t)))})}};var e}))}}}catch(e){return t}}(e)),e}}};function xo(t){return{...t,path:"path"in t&&Array.isArray(t.path)?t.path.join("."):void 0,keys:"keys"in t?JSON.stringify(t.keys):void 0,unionErrors:"unionErrors"in t?JSON.stringify(t.unionErrors):void 0}}function Eo(t){const e=new Set;for(const n of t.issues){const t=n.path.map((t=>"number"==typeof t?"<array>":t)).join(".");t.length>0&&e.add(t)}const n=Array.from(e);if(0===n.length){let e="variable";if(t.issues.length>0){const n=t.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(e=n.expected)}return`Failed to validate ${e}`}return`Failed to validate keys: ${K(n.join(", "),100)}`}function Co(t,e=!1,n,r){if(!(n.exception?.values&&r.originalException&&(o=r.originalException,L(o)&&"ZodError"===o.name&&Array.isArray(o.issues))&&0!==r.originalException.issues.length))return n;var o;try{const o=(e?r.originalException.issues:r.originalException.issues.slice(0,t)).map(xo);return e&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({f
3ilename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:Eo(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,t)}}}catch(t){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:t instanceof Error?`${t.name}: ${t.message}\n${t.stack}`:"unknown"}}}}}const Io=(t={})=>{const e=t.limit??10;return{name:"ZodErrors",processEvent(n,r){return Co(e,t.saveZodIssuesAsAttachment,n,r)}}},To=t=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",(t=>{an(t,((t,e)=>{if("event"===e){const e=Array.isArray(t)?t[1]:void 0;e&&(io(e),t[1]=e)}}))})),t.on("applyFrameMetadata",(e=>{if(e.type)return;so(t.getOptions().stackParser,e)}))},processEvent(e){const n=function(t){const e=b(t);if(!e)return;return e.filter((t=>!!t.filename)).map((t=>t.module_metadata?Object.keys(t.module_metadata).filter((t=>t.startsWith(Mo))).map((t=>t.slice(Mo.length))):[]))}(e);if(n){const r=n["drop-error-if-contains-third-party-frames"===t.behaviour||"apply-tag-if-contains-third-party-frames"===t.behaviour?"some":"every"]((e=>!e.some((e=>t.filterKeys.includes(e)))));if(r){if("drop-error-if-contains-third-party-frames"===t.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===t.behaviour)return null;e.tags={...e.tags,third_party_code:!0}}}return e}});const Mo="_sentryBundlerPluginAppKey:";function Ro(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function Ao(t){return t.split(/[?#]/,1)[0]}function Oo(t,e,n,r,o="auto.http.browser"){if(!t.fetchData)return;const{method:s,url:i}=t.fetchData,a=Ue()&&e(i);if(t.endTimestamp&&a){const e=t.fetchData.__span;if(!e)return;const n=r[e];return void(n&&(!function(t,e){if(e.response){ie(t,e.response.status);const n=e.response?.headers&&e.response.headers.get("content-length");if(n){const e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus({code:2,message:"internal_error"});t.end()}(n,t),delete r[e]))}const c=function(t){try{return new URL(t).href}catch{return}}(i),u=Ro(c||i),l=!!De(),d=a&&l?Cn({name:`${s} ${Ao(i)}`,attributes:{url:i,type:"fetch","http.method":s,"http.url":c,"server.address":u?.host,[Kt]:o,[Gt]:"http.client",...u?.search&&{"http.query":u?.search},...u?.hash&&{"http.fragment":u?.hash}}}):new Xe;if(t.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(t.fetchData.url)){const e=t.args[0],n=t.args[1]||{},r=function(t,e,n){const r=jr({span:n}),o=r["sentry-trace"],s=r.baggage;if(!o)return;const i=e.headers||(function(t){return"undefined"!=typeof Request&&z(t,Request)}(t)?t.headers:void 0);if(i){if(function(t){return"undefined"!=typeof Headers&&z(t,Headers)}(i)){const t=new Headers(i);if(t.set("sentry-trace",o),s){const e=t.get("baggage");if(e){const n=Lo(e);t.set("baggage",n?`${n},${s}`:s)}else t.set("baggage",s)}return t}if(Array.isArray(i)){const t=[...i.filter((t=>!(Array.isArray(t)&&"sentry-trace"===t[0]))).map((t=>{if(Array.isArray(t)&&"baggage"===t[0]&&"string"==typeof t[1]){const[e,n,...r]=t;return[e,Lo(n),...r]}return t})),["sentry-trace",o]];return s&&t.push(["baggage",s]),t}{const t="baggage"in i?i.baggage:void 0;let e=[];return Array.isArray(t)?e=t.map((t=>"string"==typeof t?Lo(t):t)).filter((t=>""===t)):t&&e.push(Lo(t)),s&&e.push(s),{...i,"sentry-trace":o,baggage:e.length>0?e.join(","):void 0}}}return{...r}}(e,n,Ue()&&l?d:void 0);r&&(t.args[1]=n,n.headers=r)}const p=qt();if(p){const e={input:t.args,response:t.response,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,e)}return d}function Lo(t){return t.split(",").filter((t=>!t.split("=")[0].startsWith(de))).join(",")}function Do(t,e={},n=Ut()){const{message:r,name:o,email:s,url:i,source:a,associatedEventId:c,tags:u}=t,l={contexts:{feedback:ut({contact_email:s,name:o,message:r,url:i,source:a,associated_event_id:c})},type:"feedback",level:"info",tags:u},d=n?.getClient()||qt();d&&d.emit("beforeSendFeedback",l,e);return n.captureEvent(l,e)}function No(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}const Po=o;function Fo(){if(!("fetch"in Po))return!1;
3try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function Bo(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function $o(){if("string"==typeof EdgeRuntime)return!0;if(!Fo())return!1;if(Bo(Po.fetch))return!0;let t=!1;const e=Po.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=Bo(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){}return t}function Uo(t,e){const n="fetch";w(n,t),x(n,(()=>Ho(void 0,e)))}function Ho(t,e=!1){e&&!$o()||et(o,"fetch",(function(e){return function(...n){const r=new Error,{method:s,url:i}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Wo(e),method:zo(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Wo(e),method:zo(e,"method")?String(e.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:s,url:i},startTimestamp:1e3*pt(),virtualError:r};return t||E("fetch",{...a}),e.apply(o,n).then((async e=>(t?t(e):E("fetch",{...a,endTimestamp:1e3*pt(),response:e}),e)),(t=>{throw E("fetch",{...a,endTimestamp:1e3*pt(),error:t}),L(t)&&void 0===t.stack&&(t.stack=r.stack,nt(t,"framesToPop",1)),t}))}}))}function jo(t){let e;try{e=t.clone()}catch{return}!async function(t,e){if(t?.body){const n=t.body,r=n.getReader(),o=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),9e4);let s=!0;for(;s;){let t;try{t=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),5e3);const{done:o}=await r.read();clearTimeout(t),o&&(e(),s=!1)}catch(t){s=!1}finally{clearTimeout(t)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,(()=>{}))}}(e,(()=>{E("fetch-body-resolved",{endTimestamp:1e3*pt(),response:t})}))}function zo(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Wo(t){return"string"==typeof t?t:t?zo(t,"url")?t.url:t.toString?t.toString():"":""}function qo(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Vo(){return"undefined"!=typeof window&&(!qo()||"renderer"===o.process?.type)}const Yo=o;let Xo=0;function Go(){return Xo>0}function Ko(t,e={}){if(!function(t){return"function"==typeof t}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(ot(t))return t}catch(e){return t}const n=function(...n){try{const r=n.map((t=>Ko(t,e)));return t.apply(this,r)}catch(t){throw Xo++,setTimeout((()=>{Xo--})),zt((r=>{r.addEventProcessor((t=>(e.mechanism&&(yt(t,void 0,void 0),vt(t,e.mechanism)),t.extra={...t.extra,arguments:n},t))),Kn(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}rt(n,t),nt(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}function Jo(t,e){const n=ts(t,e),r={type:rs(e),value:os(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Zo(t,e,n,r){const o=qt()?.getOptions().normalizeDepth,s=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}return}(e),i={__serialized__:nn(e,o)};if(s)return{exception:{values:[Jo(t,s)]},extra:i};const a={exception:{values:[{type:H(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:us(e,{isUnhandledRejection:r})}]},extra:i};if(n){const e=ts(t,n);e.length&&(a.exception.values[0].stacktrace={frames:e})}return a}function Qo(t,e){return{exception:{values:[Jo(t,e)]}}}function ts(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&es.test(t.message))return 1;return 0}(e),o=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,o)}catch(t){}return[]}const es=/Minified React error #\d+;/i;function ns(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function rs(t){const e=t?.name;if(!e&&ns(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return e}function os(t){const e=t?.message;return ns(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function ss(t,e,n,r){const o=as(t,e,n?.syntheticException||void 0,r);return vt(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),kt(o)}function is(t,e,n="info",r,o){const s=cs(t,e,r?.syntheticException||void 0,o);return s.level=n,r?.event_id&&(s.event_id=r.event_id),kt(s)}function as(t,e,n,r,o){let s;if(N(e)&&e.error){return Qo(t,e.error)}if(P(e)||D(e,"DOMException")){const o=e;if("stack"in e)s=Qo(t,e);else{const e=o.name||(P(o)?"DOMError":"DOMException"),i=o.message?`${e}: ${o.message}`:e;s=cs(t,i,n,r),yt(s,i)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}if(L(e))return Qo(t,e);if(U(e)||H(e)){return s=Zo(t,e,n,o),vt(s,{synthetic:!0}),s}return s=cs(t,e,n,r),yt(s,`${e}`,void 0),vt(s,{synthetic:!0}),s}function cs(t,e,n,r){const o={};if(r&&n){const r=ts(t,n);r.length&&(o.exception={values:[{value:e,stacktrace:{frames:r}}]}),vt(o,{synthetic:!0})}
3if(B(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return o.logentry={message:t,params:n},o}return o.message=e,o}function us(t,{isUnhandledRejection:e}){const n=ct(t),r=e?"promise rejection":"exception";if(N(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(H(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}class ls extends wr{constructor(t){const e={parentSpanIsAlwaysRootSpan:!0,...t};Hr(e,"browser",["browser"],Yo.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Yo.document&&Yo.document.addEventListener("visibilitychange",(()=>{"hidden"===Yo.document.visibilityState&&this._flushOutcomes()})),this._options.sendDefaultPii&&(this.on("postprocessEvent",$r),this.on("beforeSendSession",Ur))}eventFromException(t,e){return ss(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return is(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}const ds=(t,e,n,r)=>{let o,s;return i=>{e.value>=0&&(i||r)&&(s=e.value-(o||0),(s||void 0===o)&&(o=e.value,e.delta=s,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}},ps=o,hs=(t=!0)=>{const e=ps.performance?.getEntriesByType?.("navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},fs=()=>hs()?.activationStart||0,ms=(t,e)=>{const n=hs();let r="navigate";n&&(ps.document?.prerendering||fs()>0?r="prerender":ps.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},gs=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},_s=t=>{const e=e=>{"pagehide"!==e.type&&"hidden"!==ps.document?.visibilityState||t(e)};ps.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},ys=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let vs=-1;const bs=t=>{"hidden"===ps.document.visibilityState&&vs>-1&&(vs="visibilitychange"===t.type?t.timeStamp:0,Ss())},Ss=()=>{removeEventListener("visibilitychange",bs,!0),removeEventListener("prerenderingchange",bs,!0)},ks=()=>(ps.document&&vs<0&&(vs="hidden"!==ps.document.visibilityState||ps.document.prerendering?1/0:0,addEventListener("visibilitychange",bs,!0),addEventListener("prerenderingchange",bs,!0)),{get firstHiddenTime(){return vs}}),ws=t=>{ps.document?.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},xs=[1800,3e3],Es=[.1,.25],Cs=(t,e={})=>{((t,e={})=>{ws((()=>{const n=ks(),r=ms("FCP");let o;const s=gs("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-fs(),0),r.entries.push(t),o(!0)))}))}));s&&(o=ds(t,r,xs,e.reportAllChanges))}))})(ys((()=>{const n=ms("CLS",0);let r,o=0,s=[];const i=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=s[0],n=s[s.length-1];o&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(o+=t.value,s.push(t)):(o=t.value,s=[t])}})),o>n.value&&(n.value=o,n.entries=s,r())},a=gs("layout-shift",i);a&&(r=ds(t,n,Es,e.reportAllChanges),_s((()=>{i(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},Is=[100,300];let Ts=0,Ms=1/0,Rs=0;const As=t=>{t.forEach((t=>{t.interactionId&&(Ms=Math.min(Ms,t.interactionId),Rs=Math.max(Rs,t.interactionId),Ts=Rs?(Rs-Ms)/7+1:0)}))};let Os;const Ls=()=>{"interactionCount"in performance||Os||(Os=gs("event",As,{type:"event",buffered:!0,durationThreshold:0}))},Ds=[],Ns=new Map;const Ps=()=>(Os?Ts:performance.interactionCount||0)-0,Fs=[],Bs=t=>{if(Fs.forEach((e=>e(t))),!t.interactionId&&"first-input"!==t.entryType)return;const e=Ds[Ds.length-1],n=Ns.get(t.interactionId);if(n||Ds.length<10||e&&t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===n.entries[0]?.startTime&&n.entries.push(t);
3else{const e={id:t.interactionId,latency:t.duration,entries:[t]};Ns.set(e.id,e),Ds.push(e)}Ds.sort(((t,e)=>e.latency-t.latency)),Ds.length>10&&Ds.splice(10).forEach((t=>Ns.delete(t.id)))}},$s=t=>{const e=ps.requestIdleCallback||ps.setTimeout;let n=-1;return t=ys(t),"hidden"===ps.document?.visibilityState?t():(n=e(t),_s(t)),n},Us=[200,500],Hs=(t,e={})=>{"PerformanceEventTiming"in ps&&"interactionId"in PerformanceEventTiming.prototype&&ws((()=>{Ls();const n=ms("INP");let r;const o=t=>{$s((()=>{t.forEach(Bs);const e=(()=>{const t=Math.min(Ds.length-1,Math.floor(Ps()/50));return Ds[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())}))},s=gs("event",o,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});r=ds(t,n,Us,e.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),_s((()=>{o(s.takeRecords()),r(!0)})))}))},js=[2500,4e3],zs={},Ws=[800,1800],qs=t=>{ps.document?.prerendering?ws((()=>qs(t))):"complete"!==ps.document?.readyState?addEventListener("load",(()=>qs(t)),!0):setTimeout(t,0)},Vs={},Ys={};let Xs,Gs,Ks,Js,Zs;function Qs(t,e=!1){return li("cls",t,si,Xs,e)}function ti(t,e=!1){return li("lcp",t,ai,Ks,e)}function ei(t){return li("fid",t,ii,Gs)}function ni(t){return li("inp",t,ui,Zs)}function ri(t,e){return di(t,e),Ys[t]||(!function(t){const e={};"event"===t&&(e.durationThreshold=0);gs(t,(e=>{oi(t,{entries:e})}),e)}(t),Ys[t]=!0),pi(t,e)}function oi(t,e){const n=Vs[t];if(n?.length)for(const t of n)try{t(e)}catch(t){}}function si(){return Cs((t=>{oi("cls",{metric:t}),Xs=t}),{reportAllChanges:!0})}function ii(){return((t,e={})=>{ws((()=>{const n=ks(),r=ms("FID");let o;const s=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),o(!0))},i=t=>{t.forEach(s)},a=gs("first-input",i);o=ds(t,r,Is,e.reportAllChanges),a&&_s(ys((()=>{i(a.takeRecords()),a.disconnect()})))}))})((t=>{oi("fid",{metric:t}),Gs=t}))}function ai(){return((t,e={})=>{ws((()=>{const n=ks(),r=ms("LCP");let o;const s=t=>{e.reportAllChanges||(t=t.slice(-1)),t.forEach((t=>{t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-fs(),0),r.entries=[t],o())}))},i=gs("largest-contentful-paint",s);if(i){o=ds(t,r,js,e.reportAllChanges);const n=ys((()=>{zs[r.id]||(s(i.takeRecords()),i.disconnect(),zs[r.id]=!0,o(!0))}));["keydown","click"].forEach((t=>{ps.document&&addEventListener(t,(()=>$s(n)),{once:!0,capture:!0})})),_s(n)}}))})((t=>{oi("lcp",{metric:t}),Ks=t}),{reportAllChanges:!0})}function ci(){return((t,e={})=>{const n=ms("TTFB"),r=ds(t,n,Ws,e.reportAllChanges);qs((()=>{const t=hs();t&&(n.value=Math.max(t.responseStart-fs(),0),n.entries=[t],r(!0))}))})((t=>{oi("ttfb",{metric:t}),Js=t}))}function ui(){return Hs((t=>{oi("inp",{metric:t}),Zs=t}))}function li(t,e,n,r,o=!1){let s;return di(t,e),Ys[t]||(s=n(),Ys[t]=!0),r&&e({metric:r}),pi(t,e,o?s:void 0)}function di(t,e){Vs[t]=Vs[t]||[],Vs[t].push(e)}function pi(t,e,n){return()=>{n&&n();const r=Vs[t];if(!r)return;const o=r.indexOf(e);-1!==o&&r.splice(o,1)}}function hi(t){return"number"==typeof t&&isFinite(t)}function fi(t,e,n,{...r}){const o=Ce(t).start_timestamp;return o&&o>e&&"function"==typeof t.updateStartTime&&t.updateStartTime(e),Tn(t,(()=>{const t=Cn({startTime:e,...r});return t&&t.end(n),t}))}function mi(t){const e=qt();if(!e)return;const{name:n,transaction:r,attributes:o,startTime:s}=t,{release:i,environment:a,sendDefaultPii:c}=e.getOptions(),u=e.getIntegrationByName("Replay")?.getReplayId(),l=Ut(),d=l.getUser(),p=void 0!==d?d.email||d.id||d.ip_address:void 0;let h;try{h=l.getScopeData().contexts.profile.profile_id}catch{}return Cn({name:n,attributes:{release:i,environment:a,user:p||void 0,profile_id:h||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":ps.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...o},startTime:s,experimental:{standalone:!0}})}function gi(){return ps.addEventListener&&ps.performance}function _i(t){return t/1e3}function yi(t){let e="unknown",n="unknown",r="";for(const o of t){if("/"===o){[e,n]=t.split("/");break}if(!isNaN(Number(o))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=o}return r===t&&(e=r),{name:e,version:n}}function vi(){let t,e,n=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}())return;let r=!1;function o(){r||(r=!0,e&&function(t,e,n){const r=_i((ft()||0)+(e?.startTime||0)),o=Ut().getScopeData().transactionName,s=e?V(e.s
3ources[0]?.node):"Layout shift",i=ut({[Kt]:"auto.http.browser.cls",[Gt]:"ui.webvital.cls",[ne]:e?.duration||0,"sentry.pageload.span_id":n}),a=mi({name:s,transaction:o,attributes:i,startTime:r});a&&(a.addEvent("cls",{[Zt]:"",[Qt]:t}),a.end(r))}(n,t,e),s())}const s=Qs((({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)}),!0);_s((()=>{o()})),setTimeout((()=>{const t=qt();if(!t)return;const n=t.on("startNavigationSpan",(()=>{o(),n?.()})),r=De();if(r){const t=Le(r);"pageload"===Ce(t).op&&(e=t.spanContext().spanId)}}),0)}let bi,Si,ki=0,wi={};function xi({recordClsStandaloneSpans:t}){const e=gi();if(e&&ft()){e.mark&&ps.performance.mark("sentry-tracing-init");const n=ei((({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=_i(ft()),r=_i(e.startTime);wi.fid={value:t.value,unit:"millisecond"},wi["mark.fid"]={value:n+r,unit:"second"}})),r=ti((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(wi.lcp={value:t.value,unit:"millisecond"},bi=e)}),!0),o=li("ttfb",(({metric:t})=>{t.entries[t.entries.length-1]&&(wi.ttfb={value:t.value,unit:"millisecond"})}),ci,Js),s=t?vi():Qs((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(wi.cls={value:t.value,unit:""},Si=e)}),!0);return()=>{n(),r(),o(),s?.()}}return()=>{}}function Ei(t,e){const n=gi(),r=ft();if(!n?.getEntries||!r)return;const o=_i(r),s=n.getEntries(),{op:i,start_timestamp:a}=Ce(t);if(s.slice(ki).forEach((e=>{const n=_i(e.startTime),r=_i(Math.max(0,e.duration));if(!("navigation"===i&&a&&o+n<a))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{Ci(t,e,r,n)})),Ci(t,e,"secureConnection",n,"TLS/SSL"),Ci(t,e,"fetch",n,"cache"),Ci(t,e,"domainLookup",n,"DNS"),function(t,e,n){const r=n+_i(e.requestStart),o=n+_i(e.responseEnd),s=n+_i(e.responseStart);e.responseEnd&&(fi(t,r,o,{op:"browser.request",name:e.name,attributes:{[Kt]:"auto.ui.browser.metrics"}}),fi(t,s,o,{op:"browser.response",name:e.name,attributes:{[Kt]:"auto.ui.browser.metrics"}}))}(t,e,n)}(t,e,o);break;case"mark":case"paint":case"measure":{!function(t,e,n,r,o){const s=hs(!1),i=_i(s?s.requestStart:0),a=o+Math.max(n,i),c=o+n,u=c+r,l={[Kt]:"auto.resource.browser.metrics"};a!==c&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=a);a<=u&&fi(t,a,u,{name:e.name,op:e.entryType,attributes:l})}(t,e,n,r,o);const s=ks(),i=e.startTime<s.firstHiddenTime;"first-paint"===e.name&&i&&(wi.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&i&&(wi.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":!function(t,e,n,r,o,s){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const i=Ro(n),a={[Kt]:"auto.resource.browser.metrics"};Ii(a,e,"transferSize","http.response_transfer_size"),Ii(a,e,"encodedBodySize","http.response_content_length"),Ii(a,e,"decodedBodySize","http.decoded_response_content_length");const c=e.deliveryType;null!=c&&(a["http.response_delivery_type"]=c);const u=e.renderBlockingStatus;u&&(a["resource.render_blocking_status"]=u);i.protocol&&(a["url.scheme"]=i.protocol.split(":").pop());i.host&&(a["server.address"]=i.host);a["url.same_origin"]=n.includes(ps.location.origin);const{name:l,version:d}=yi(e.nextHopProtocol);a["network.protocol.name"]=l,a["network.protocol.version"]=d;const p=s+r,h=p+o;fi(t,p,h,{name:n.replace(ps.location.origin,""),op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",attributes:a})}(t,e,e.name,n,r,o)}})),ki=Math.max(s.length-1,0),function(t){const e=ps.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),hi(n.rtt)&&(wi["connection.rtt"]={value:n.rtt,unit:"millisecond"}));hi(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`);hi(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===i){!function(t){const e=hs(!1);if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(wi);const n=wi["mark.fid"];n&&wi.fid&&(fi(t,n.value,n.value+_i(wi.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Kt]:"auto.ui.browser.metrics"}}),delete wi["mark.fid"]),"fcp"in wi&&e.recordClsOnPageloadSpan||delete wi.cls,Object.entries(wi).forEac
3h((([t,e])=>{yn(t,e.value,e.unit)})),t.setAttribute("performance.timeOrigin",o),t.setAttribute("performance.activationStart",fs()),function(t){bi&&(bi.element&&t.setAttribute("lcp.element",V(bi.element)),bi.id&&t.setAttribute("lcp.id",bi.id),bi.url&&t.setAttribute("lcp.url",bi.url.trim().slice(0,200)),null!=bi.loadTime&&t.setAttribute("lcp.loadTime",bi.loadTime),null!=bi.renderTime&&t.setAttribute("lcp.renderTime",bi.renderTime),t.setAttribute("lcp.size",bi.size));Si?.sources&&Si.sources.forEach(((e,n)=>t.setAttribute(`cls.source.${n+1}`,V(e.node))))}(t)}bi=void 0,Si=void 0,wi={}}function Ci(t,e,n,r,o=n){const s=function(t){if("secureConnection"===t)return"connectEnd";if("fetch"===t)return"domainLookupStart";return`${t}End`}(n),i=e[s],a=e[`${n}Start`];a&&i&&fi(t,r+_i(a),r+_i(i),{op:`browser.${o}`,name:e.name,attributes:{[Kt]:"auto.ui.browser.metrics"}})}function Ii(t,e,n,r){const o=e[n];null!=o&&o<2147483647&&(t[r]=o)}let Ti,Mi,Ri,Ai;function Oi(t){w("dom",t),x("dom",Li)}function Li(){if(!ps.document)return;const t=E.bind(null,"dom"),e=Di(t,!0);ps.document.addEventListener("click",e,!1),ps.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=ps[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(et(n,"addEventListener",(function(e){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){const r=Di(t);s.handler=r,e.call(this,n,r,o)}s.refCount++}catch(t){}return e.call(this,n,r,o)}})),et(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}function Di(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(n);if(function(t,e){return"keypress"===t&&(!e?.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;nt(n,"_sentryCaptured",!0),r&&!r._sentryId&&nt(r,"_sentryId",mt());const o="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==Mi)return!1;try{if(!t.target||t.target._sentryId!==Ri)return!1}catch(t){}return!0}(n)){t({event:n,name:o,global:e}),Mi=n.type,Ri=r?r._sentryId:void 0}clearTimeout(Ti),Ti=ps.setTimeout((()=>{Ri=void 0,Mi=void 0}),1e3)}}function Ni(t){const e="history";w(e,t),x(e,Pi)}function Pi(){function t(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const r=Ai,o=String(n);if(Ai=o,r===o)return t.apply(this,e);E("history",{from:r,to:o})}return t.apply(this,e)}}ps.addEventListener("popstate",(()=>{const t=ps.location.href,e=Ai;if(Ai=t,e===t)return;E("history",{from:e,to:t})})),"history"in Po&&Po.history&&(et(ps.history,"pushState",t),et(ps.history,"replaceState",t))}const Fi={};function Bi(t){const e=Fi[t];if(e)return e;let n=ps[t];if(Bo(n))return Fi[t]=n.bind(ps);const r=ps.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const o=e.contentWindow;o?.[t]&&(n=o[t]),r.head.removeChild(e)}catch(t){}return n?Fi[t]=n.bind(ps):n}function $i(t){Fi[t]=void 0}function Ui(...t){return Bi("setTimeout")(...t)}const Hi="__sentry_xhr_v3__";function ji(t){w("xhr",t),x("xhr",zi)}function zi(){if(!ps.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=new Error,o=1e3*pt(),s=F(n[0])?n[0].toUpperCase():void 0,i=function(t){if(F(t))return t;try{return t.toString()}catch{}return}(n[1]);if(!s||!i)return t.apply(e,n);e[Hi]={method:s,url:i,request_headers:{}},"POST"===s&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const a=()=>{const t=e[Hi];if(t&&4===e.readyState){try{t.status_code=e.status}catch(t){}E("xhr",{endTimestamp:1e3*pt(),startTimestamp:o,xhr:e,virtualError:r})}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply(t,e,n){return a(),t.apply(e,n)}}):e.addEventListener("readystatechange",a),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,o]=n,s=e[Hi];return s&&F(r)&&F(o)&&(s.request_headers[r.toLowerCase()]=o),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[Hi];if(!r)return t.apply(e,n);void 0!==n[0]&&(r.body=n[0]);return E("xhr",{startTimestamp:1e3*pt(),xhr:e}),t.apply(e,n)}})}function Wi(t){return new URLSearchParams(t).toString()}function qi(t,e=p){try{if("string"==typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[Wi(t)];if(!t)return[void 0]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function Vi(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}const Yi=[],Xi=new Map;
3function Gi(){if(gi()&&ft()){const t=ni((({metric:t})=>{if(null==t.value)return;const e=t.entries.find((e=>e.duration===t.value&&Ki[e.name]));if(!e)return;const{interactionId:n}=e,r=Ki[e.name],o=_i(ft()+e.startTime),s=_i(t.value),i=De(),a=i?Le(i):void 0,c=(null!=n?Xi.get(n):void 0)||a,u=c?Ce(c).description:Ut().getScopeData().transactionName,l=mi({name:V(e.target),transaction:u,attributes:ut({[Kt]:"auto.http.browser.inp",[Gt]:`ui.interaction.${r}`,[ne]:e.duration}),startTime:o});l&&(l.addEvent("inp",{[Zt]:"millisecond",[Qt]:t.value}),l.end(o+s))}));return()=>{t()}}return()=>{}}const Ki={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 Ji(t,e=Bi("fetch")){let n=0,r=0;return Ar(t,(function(o){const s=o.body.length;n+=s,r++;const i={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return $i("fetch"),wt("No fetch implementation available");try{return e(t.url,i).then((t=>(n-=s,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return $i("fetch"),n-=s,r--,wt(t)}}))}function Zi(t,e,n,r){const o={filename:t,function:"<anonymous>"===e?h:e,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Qi=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ta=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ea=/\((\S*)(?::(\d+))(?::(\d+))\)/,na=[30,t=>{const e=Qi.exec(t);if(e){const[,t,n,r]=e;return Zi(t,h,+n,+r)}const n=ta.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=ea.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=fa(n[1]||h,n[2]);return Zi(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],ra=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,oa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,sa=[50,t=>{const e=ra.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=oa.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||h;return[n,t]=fa(n,t),Zi(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],ia=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,aa=[40,t=>{const e=ia.exec(t);return e?Zi(e[2],e[1]||h,+e[3],e[4]?+e[4]:void 0):void 0}],ca=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,ua=[10,t=>{const e=ca.exec(t);return e?Zi(e[2],e[3]||h,+e[1]):void 0}],la=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,da=[20,t=>{const e=la.exec(t);return e?Zi(e[5],e[3]||e[4]||h,+e[1],+e[2]):void 0}],pa=[na,sa],ha=g(...pa),fa=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:h,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function ma(t,{metadata:e,tunnel:n,dsn:r}){const o={event_id:t.event_id,sent_at:(new Date).toISOString(),...e?.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:Je(r)}},s=function(t){return[{type:"user_report"},t]}(t);return on(o,[s])}const ga=!1,_a=1024,ya=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){e.console&&co(function(t){return function(e){if(qt()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:lo(e.level),message:Z(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Z(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Wr(n,{input:e.args,level:e.level})}}(t)),e.dom&&Oi(function(t,e){return function(n){if(qt()!==t)return;let r,o,s="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>_a&&(i=_a),"string"==typeof s&&(s=[s]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=V(e,{keyAttrs:s,maxStringLength:i}),o=G(e)}catch(t){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),Wr(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom)),e.xhr&&ji(function(t){return function(e){if(qt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,o=e.xhr[Hi];if(!n||!r||!o)return;const{method:s,url:i,status_code:a,body:c}=o,u={method:s,url:i,status_code:a},l={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:No(a)};t.emit("beforeOutgoingRequestBreadcrumb",d,l),Wr(d,l)}}(t)),e.fetch&&Uo(function(t){return function(e){if(qt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;
3if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){const o=e.fetchData,s={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,s),Wr(i,s)}else{const o=e.response,s={...e.fetchData,status_code:o?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,o?.status;const i={input:e.args,response:o,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:s,type:"http",level:No(s.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",a,i),Wr(a,i)}}}(t)),e.history&&Ni(function(t){return function(e){if(qt()!==t)return;let n=e.from,r=e.to;const o=Ro(Yo.location.href);let s=n?Ro(n):void 0;const i=Ro(r);s?.path||(s=o),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),Wr({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){qt()===t&&Wr({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:_t(e)},{event:e})}}(t))}}};const va=["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"],ba=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&et(Yo,"setTimeout",Sa),e.setInterval&&et(Yo,"setInterval",Sa),e.requestAnimationFrame&&et(Yo,"requestAnimationFrame",ka),e.XMLHttpRequest&&"XMLHttpRequest"in Yo&&et(XMLHttpRequest.prototype,"send",wa);const t=e.eventTarget;
3if(t){(Array.isArray(t)?t:va).forEach(xa)}}}};function Sa(t){return function(...e){const n=e[0];return e[0]=Ko(n,{mechanism:{data:{function:v(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function ka(t){return function(e){return t.apply(this,[Ko(e,{mechanism:{data:{function:"requestAnimationFrame",handler:v(t)},handled:!1,type:"instrument"}})])}}function wa(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&et(n,t,(function(e){const n={mechanism:{data:{function:t,handler:v(e)},handled:!1,type:"instrument"}},r=ot(e);return r&&(n.mechanism.data.handler=v(r)),Ko(e,n)}))})),t.apply(this,e)}}function xa(t){const e=Yo[t]?.prototype;e?.hasOwnProperty?.("addEventListener")&&(et(e,"addEventListener",(function(e){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ko(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:v(r),target:t},handled:!1,type:"instrument"}}))}catch{}return e.apply(this,[n,Ko(r,{mechanism:{data:{function:"addEventListener",handler:v(r),target:t},handled:!1,type:"instrument"}}),o])}})),et(e,"removeEventListener",(function(t){return function(e,n,r){try{const o=n.__sentry_wrapped__;o&&t.call(this,e,o,r)}catch(t){}return t.call(this,e,n,r)}})))}const Ea=()=>({name:"BrowserSession",setupOnce(){void 0!==Yo.document&&(lr({ignoreDuration:!0}),hr(),Ni((({from:t,to:e})=>{void 0!==t&&t!==e&&(lr({ignoreDuration:!0}),hr())})))}}),Ca=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){I((e=>{const{stackParser:n,attachStacktrace:r}=Ta();if(qt()!==t||Go())return;const{msg:o,url:s,line:i,column:a,error:c}=e,u=function(t,e,n,r){const o=t.exception=t.exception||{},s=o.values=o.values||[],i=s[0]=s[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,d=F(e)&&e.length>0?e:X();0===c.length&&c.push({colno:u,filename:d,function:h,in_app:!0,lineno:l});return t}(as(n,c||o,void 0,r,!1),s,i,a);u.level="error",Zn(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(t),Ia("onerror")),e.onunhandledrejection&&(!function(t){R((e=>{const{stackParser:n,attachStacktrace:r}=Ta();if(qt()!==t||Go())return;const o=function(t){if($(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),s=$(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:as(n,o,void 0,r,!0);s.level="error",Zn(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),Ia("onunhandledrejection"))}}};function Ia(t){}function Ta(){return qt()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ma=()=>({name:"HttpContext",preprocessEvent(t){if(!Yo.navigator&&!Yo.location&&!Yo.document)return;const e=t.request?.url||X(),{referrer:n}=Yo.document||{},{userAgent:r}=Yo.navigator||{},o={...t.request?.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...t.request,...e&&{url:e},headers:o};t.request=s}}),Ra=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){const s=o.getOptions();Zr(Jo,s.stackParser,s.maxValueLength,n,e,t,r)}}};function Aa(t){return[Kr(),Yr(),ba(),ya(),Ca(),Ra(),ho(),Ma(),Ea()]}function Oa(t){const e={};for(const n of Object.getOwnPropertyNames(t)){const r=n;void 0!==t[r]&&(e[r]=t[r])}return e}function La(t={}){const e=function(t={}){return{defaultIntegrations:Aa(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Yo.SENTRY_RELEASE?.id,sendClientReports:!0,...Oa(t)}}(t);if(!e.skipBrowserExtensionCheck&&function(){const t=void 0!==Yo.window&&Yo;if(!t)return!1;const e=t[t.chrome?"chrome":"browser"]?.runtime?.id,n=X()||"",r=!!e&&Yo===Yo.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((t=>n.startsWith(`${t}//`))),o=void 0!==t.nw;return!!e&&!r&&!o}())return void 0;const n={...e,stackParser:(r=e.stackParser||ha,Array.isArray(r)?g(...r):r),integrations:_r(e),transport:e.transport||Ji};var r;return function(t,e){!0===e.debug&&d((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Ut().update(e.initialScope);const n=new t(e);return Cr(n),n.init(),n}(ls,n)}function Da(t={}){if(!Yo.document)return;const e=Ut(),n=e.getClient()?.getDsn();if(!n)return;if(e&&(t.user={...e.getUser(),...t.user}),!t.eventId){const e=sr();e&&(t.eventId=e)}const r=Yo.document.createElement("script");r.async=!0,r.crossOrigin="anonymous",r.src=function(t,e){const n=tn(t);if(!n)return"";const r=`${fr(n)}embed/error-page/`;let o=`dsn=${Je(n)}`;for(const t in e)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=e.user;if(!t)continue;t.name&&(o+=`&name=${encodeURIComponent(t.name)}`),t.email&&(o+=`&email=${encodeURIComponent(t.email)}`)}else o+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${o}`}(n,t),t.onLoad&&(r.onload=t.onLoad);const{onClose:o}=t;if(o){const t=e=>{if("__sentry_reportdialog_closed__"===e.data)try{o()}finally{Yo.removeEventListener("message",t)}};Yo.addEventListener("message",t)}const s=Yo.document.head||Yo.document.body;s&&s.appendChild(r)}function Na(){}function Pa(t){t()}const Fa={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},Ba=Yo;async function $a(t,e){const n=Fa[t],r=Ba.Sentry=Ba.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${t}`);const o=r[t];if("function"==typeof o&&!("_isShim"in o))return o;const i=function(t){const e=qt()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${s}/${t}.min.js`,e).toString()}(n),a=Yo.document.createElement("script");
3a.src=i,a.crossOrigin="anonymous",a.referrerPolicy="strict-origin",e&&a.setAttribute("nonce",e);const c=new Promise(((t,e)=>{a.addEventListener("load",(()=>t())),a.addEventListener("error",e)})),u=Yo.document.currentScript,l=Yo.document.body||Yo.document.head||u?.parentElement;if(!l)throw new Error(`Could not find parent element to insert lazy-loaded ${t} script`);l.appendChild(a);try{await c}catch{throw new Error(`Error when loading integration: ${t}`)}const d=r[t];if("function"!=typeof d)throw new Error(`Could not load integration: ${t}`);return d}const Ua=o,Ha=new WeakMap,ja=(t={})=>{const e=t.types||["crash","deprecation","intervention"];function n(t){if(Ha.has(qt()))for(const e of t)zt((t=>{t.setExtra("url",e.url);const n=`ReportingObserver [${e.type}]`;let r="No details available";if(e.body){const n={};for(const t in e.body)n[t]=e.body[t];if(t.setExtra("body",n),"crash"===e.type){const t=e.body;r=[t.crashId||"",t.reason||""].join(" ").trim()||r}else{r=e.body.message||r}}Jn(`${n}: ${r}`)}))}return{name:"ReportingObserver",setupOnce(){if(!("ReportingObserver"in Po))return;new Ua.ReportingObserver(n,{buffered:!0,types:e}).observe()},setup(t){Ha.set(t,!0)}}},za=(t={})=>{const e={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...t};return{name:"HttpClient",setup(t){!function(t,e){if(!$o())return;Uo((n=>{if(qt()!==t)return;const{response:r,args:o,error:s,virtualError:i}=n,[a,c]=o;r&&function(t,e,n,r,o){if(Ya(t,n.status,n.url)){const t=function(t,e){if(!e&&t instanceof Request)return t;if(t instanceof Request&&t.bodyUsed)return t;return new Request(t,e)}(e,r);let s,i,a,c;Ga()&&([s,a]=Wa("Cookie",t),[i,c]=Wa("Set-Cookie",n));Zn(Xa({url:t.url,method:t.method,status:n.status,requestHeaders:s,responseHeaders:i,requestCookies:a,responseCookies:c,error:o}))}}(e,a,r,c,s||i)}),!1)}(t,e),function(t,e){if(!("XMLHttpRequest"in o))return;ji((n=>{if(qt()!==t)return;const{error:r,virtualError:o}=n,s=n.xhr,i=s[Hi];if(!i)return;const{method:a,request_headers:c}=i;try{!function(t,e,n,r,o){if(Ya(t,e.status,e.responseURL)){let t,s,i;if(Ga()){try{const t=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;t&&(s=Va(t))}catch{}try{i=function(t){const e=t.getAllResponseHeaders();if(!e)return{};return e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return n&&r&&(t[n]=r),t}),{})}(e)}catch{}t=r}Zn(Xa({url:e.responseURL,method:n,status:e.status,requestHeaders:t,responseHeaders:i,responseCookies:s,error:o}))}}(e,s,a,c,r||o)}catch(t){}}))}(t,e)}}};function Wa(t,e){const n=function(t){const e={};return t.forEach(((t,n)=>{e[n]=t})),e}(e.headers);let r;try{const e=n[t]||n[t.toLowerCase()]||void 0;e&&(r=Va(e))}catch{}return[n,r]}function qa(t){if(t){const e=t["Content-Length"]||t["content-length"];if(e)return parseInt(e,10)}}function Va(t){return t.split("; ").reduce(((t,e)=>{const[n,r]=e.split("=");return n&&r&&(t[n]=r),t}),{})}function Ya(t,e,n){return function(t,e){return t.some((t=>"number"==typeof t?t===e:e>=t[0]&&e<=t[1]))}(t.failedRequestStatusCodes,e)&&(r=t.failedRequestTargets,o=n,r.some((t=>"string"==typeof t?o.includes(t):t.test(o))))&&!Pr(n,qt());var r,o}function Xa(t){const e=qt(),n=e&&t.error&&t.error instanceof Error?t.error.stack:void 0,r=n&&e?e.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${t.status}`,s={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:t.url,method:t.method,headers:t.requestHeaders,cookies:t.requestCookies},contexts:{response:{status_code:t.status,headers:t.responseHeaders,cookies:t.responseCookies,body_size:qa(t.responseHeaders)}}};return vt(s,{type:"http.client",handled:!1}),s}function Ga(){const t=qt();return!!t&&Boolean(t.getOptions().sendDefaultPii)}const Ka=o,Ja=(t={})=>{const e=null!=t.frameContextLines?t.frameContextLines:7;return{name:"ContextLines",processEvent(t){return function(t,e){const n=Ka.document,r=Ka.location&&Ao(Ka.location.href);if(!n||!r)return t;const o=t.exception?.values;if(!o?.length)return t;const s=n.documentElement.innerHTML;if(!s)return t;const i=["<!DOCTYPE html>","<html>",...s.split("\n"),"</html>"];return o.forEach((t=>{const n=t.stacktrace;n?.frames&&(n.frames=n.frames.map((t=>function(t,e,n,r){if(t.filename!==n||!t.lineno||!e.length)return t;return function(t,e,n=5){if(void 0===e.lineno)return;const r=t.length,o=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,o-n),o).map((t=>J(t,0)));const s=Math.min(r-1,o);e.context_line=J(t[s],e.colno||0),e.post_context=t.slice(Math.min(o+1,r),o+1+n).map((t=>J(t,0)))}(e,t,r),t}(t,i,r,e))))})),t}(t,e)}}};function Za(t){const{query:e,operationName:n}=t,{operationName:r=n,operationType:o}=function(t){const e=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=t.match(e);if(r)return{operationType:r[1],operationName:r[2]};const o=t.match(n);if(o)return{operationType:o[1],operationName:void 0};return{operationType:void 0,operationName:void 0}}(e);return r?`${o} ${r}`:`${o}`}function Qa(t){let e;if("xhr"in t){const n=t.xhr[Hi];e=n&&qi(n.body)[0]}
3else{e=qi(Vi(t.input))[0]}return e}function tc(t){let e;try{const n=JSON.parse(t);!!n.query&&(e=n)}finally{return e}}const ec=t=>({name:"GraphQLClient",setup(e){!function(t,e){t.on("beforeOutgoingRequestSpan",((t,n)=>{const r=Ce(t).data||{};if(!("http.client"===r[Gt]))return;const o=r[oe]||r["http.url"],s=r[re]||r["http.method"];if(!F(o)||!F(s))return;const{endpoints:i}=e,a=tt(o,i),c=Qa(n);if(a&&c){const e=tc(c);if(e){const n=Za(e);t.updateName(`${s} ${o} (${n})`),t.setAttribute("graphql.document",c)}}}))}(e,t),function(t,e){t.on("beforeOutgoingRequestBreadcrumb",((t,n)=>{const{category:r,type:o,data:s}=t;if("http"===o&&("fetch"===r||"xhr"===r)){const t=s?.url,{endpoints:r}=e,o=tt(t,r),i=Qa(n);if(o&&s&&i){const t=tc(i);if(!s.graphql&&t){const e=Za(t);s["graphql.document"]=t.query,s["graphql.operation"]=e}}}}))}(e,t)}}),nc=o,rc="sentryReplaySession",oc="Unable to send Replay",sc=15e4,ic=5e3,ac=2e7,cc=36e5;var uc=Object.defineProperty,lc=(t,e,n)=>((t,e,n)=>e in t?uc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n),dc=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(dc||{});function pc(t){const e=t?.host;return Boolean(e?.shadowRoot===t)}function hc(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function fc(t){try{const n=t.rules||t.cssRules;return n?((e=Array.from(n,mc).join("")).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):null}catch(t){return null}var e}function mc(t){let e;if(function(t){return"styleSheet"in t}(t))try{e=fc(t.styleSheet)||function(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return""===t.layerName?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}(t)}catch(t){}else if(function(t){return"selectorText"in t}(t)){let e=t.cssText;const n=t.selectorText.includes(":"),r="string"==typeof t.style.all&&t.style.all;if(r&&(e=function(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style,o=r[n],s=r.getPropertyPriority(o);e+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${t.selectorText} { ${e} }`}(t)),n&&(e=function(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}(e)),n||r)return e}return e||t.cssText}class gc{constructor(){lc(this,"idNodeMap",new Map),lc(this,"nodeMetaMap",new WeakMap)}getId(t){if(!t)return-1;const e=this.getMeta(t)?.id;return e??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function _c({maskInputOptions:t,tagName:e,type:n}){return"OPTION"===e&&(e="SELECT"),Boolean(t[e.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===e&&!n&&t.text)}function yc({isMasked:t,element:e,value:n,maskInputFn:r}){let o=n||"";return t?(r&&(o=r(o,e)),"*".repeat(o.length)):o}function vc(t){return t.toLowerCase()}function bc(t){return t.toUpperCase()}const Sc="__rrweb_original__";function kc(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?vc(e):null}function wc(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}function xc(t,e){let n;try{n=new URL(t,e??window.location.href)}catch(t){return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}const Ec={};function Cc(t){const e=Ec[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch(t){}return Ec[t]=r.bind(window)}function Ic(...t){return Cc("setTimeout")(...t)}function Tc(...t){return Cc("clearTimeout")(...t)}function Mc(t){try{return t.contentDocument}catch(t){}}let Rc=1;const Ac=new RegExp("[^a-z0-9-_:]");function Oc(){return Rc++}let Lc,Dc;const Nc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Pc=/^(?:[a-z+]+:)?\/\//i,Fc=/^www\..*/i,Bc=/^(data:)([^,]*),(.*)/i;function $c(t,e){return(t||"").replace(Nc,((t,n,r,o,s,i)=>{const a=r||s||i,c=n||o||"";if(!a)return t;if(Pc.test(a)||Fc.test(a))return`url(${c}${a}${c})`;if(Bc.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+a}${c})`;const u=e.split("/"),l=a.split("/");u.pop();for(const t of l)"."!==t&&(".."===t?u.pop():u.push(t));return`url(${c}${u.join("/")}${c})`}))}const Uc=/^[^ \t\n\r\u000c]+/,Hc=/^[, \t\n\r\u000c]+/;const jc=new WeakMap;function zc(t,e){return e&&""!==e.trim()?qc(t,e):e}function Wc(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function qc(t,e){let n=jc.get(t);if(n||(n=t.createElement("a"),jc.set(t,n)),e){if(e.startsWith("blob:")||e.startsWith("data:"))return e}else e="";return n.setAttribute("href",e),n.href}function Vc(t,e,n,r,o,s){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?zc(t,r):"background"!==n||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const o=t.exec(e.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Hc),!(n>=e.length);){let s=r(Uc);if(","===s.slice(-1))s=zc(t,s.substring(0,s.length-1)),o.push(s);else{let r="";s=zc(t,s);let i=!1;for(;;){const t=e.charAt(n);if(""===t){o.push((s+r).trim());break}if(i)")"===t&&(i=!1);else{if(","===t){n+=1,o.push((s+r).trim());break}"("===t&&(i=!0)}r+=t,n+=1}}}return o.join(", ")}(t,r):"style"===n?$c(r,qc(t)):"object"===e&&"data"===n?zc(t,r):"function"==typeof s?s(n,r,o):r:zc(t,r):r}function Yc(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function Xc(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch(t){}return!1}
3function Gc(t,e,n=1/0,r=0){return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Gc(t.parentNode,e,n,r+1):-1}function Kc(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"==typeof t){if(r.matches(`.${t}`))return!0}else if(function(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}(r,t))return!0;return!(!e||!r.matches(e))}catch{return!1}}}function Jc(t,e,n,r,o,s){try{const i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const t=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let a=-1,c=-1;if(s){if(c=Gc(i,Kc(r,o)),c<0)return!0;a=Gc(i,Kc(e,n),c>=0?c:1/0)}else{if(a=Gc(i,Kc(e,n)),a<0)return!1;c=Gc(i,Kc(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!s}catch(t){}return!!s}function Zc(t,e){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1}=e,k=function(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return 1===n?void 0:n}(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:dc.Document,childNodes:[],compatMode:t.compatMode}:{type:dc.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:dc.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:k};case t.ELEMENT_NODE:return function(t,e){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskTextClass:g,unmaskTextClass:_,maskTextSelector:y,unmaskTextSelector:v}=e,b=Xc(t,r,o,s),S=function(t){if(t instanceof HTMLFormElement)return"form";const e=vc(t.tagName);return Ac.test(e)?"div":e}(t);let k={};const w=t.attributes.length;for(let e=0;e<w;e++){const r=t.attributes[e];r.name&&!Yc(S,r.name,r.value)&&(k[r.name]=Vc(n,S,vc(r.name),r.value,t,c))}if("link"===S&&i){const e=Array.from(n.styleSheets).find((e=>e.href===t.href));let r=null;e&&(r=fc(e)),r&&(k.rel=null,k.href=null,k.crossorigin=null,k._cssText=$c(r,e.href))}if("style"===S&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=fc(t.sheet);e&&(k._cssText=$c(e,qc(n)))}if("input"===S||"textarea"===S||"select"===S||"option"===S){const e=t,n=kc(e),r=wc(e,bc(S),n),o=e.checked;if("submit"!==n&&"button"!==n&&r){const t=Jc(e,g,y,_,v,_c({type:n,tagName:bc(S),maskInputOptions:a}));k.value=yc({isMasked:t,element:e,value:r,maskInputFn:u})}o&&(k.checked=o)}"option"===S&&(t.selected&&!a.select?k.selected=!0:delete k.selected);if("canvas"===S&&p)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){const o=e.getImageData,s=Sc in o?o[Sc]:o;if(new Uint32Array(s.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((t=>0!==t)))return!1}return!0})(t)||(k.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=t.width,r.height=t.height;e!==r.toDataURL(l.type,l.quality)&&(k.rr_dataURL=e)}if("img"===S&&d){Lc||(Lc=n.createElement("canvas"),Dc=Lc.getContext("2d"));const e=t,r=e.currentSrc||e.getAttribute("src")||"<unknown-src>",o=e.crossOrigin,s=()=>{e.removeEventListener("load",s);try{Lc.width=e.naturalWidth,Lc.height=e.naturalHeight,Dc.drawImage(e,0,0),k.rr_dataURL=Lc.toDataURL(l.type,l.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s));console.warn(`Cannot inline img src=${r}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(o?k.crossOrigin=o:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s)}"audio"!==S&&"video"!==S||(k.rr_mediaState=t.paused?"paused":"played",k.rr_mediaCurrentTime=t.currentTime);f||(t.scrollLeft&&(k.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(k.rr_scrollTop=t.scrollTop));if(b){const{width:e,height:n}=t.getBoundingClientRect();k={class:k.class,rr_width:`${e}px`,rr_height:`${n}px`}}"iframe"!==S||h(k.src)||(b||Mc(t)||(k.rr_src=k.src),delete k.src);let x;try{customElements.get(S)&&(x=!0)}catch(t){}return{type:dc.Element,tagName:S,attributes:k,childNodes:[],isSVG:Wc(t)||void 0,needBlock:b,rootId:m,isCustom:x}}(t,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:k,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case t.TEXT_NODE:return function(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=e,d=t.parentNode&&t.parentNode.tagName;let p=t.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{t.nextSibling||t.previousSibling||t.parentNode.sheet?.cssRules&&(p=fc(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}p=$c(p,qc(e.doc))}f&&(p="SCRIPT_PLACEHOLDER");const g=Jc(t,r,s,o,i,n);h||f||m||!p||!g||(p=a?a(p,t.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||g)&&(p=u?u(p,t.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=yc({isMasked:Jc(t,r,s,o,i,_c({type:null,tagName:d,maskInputOptions:c})),element:t,value:p,maskInputFn:u})}return{type:dc.Text,textContent:p||"",isStyle:h,rootId:l}}(t,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:k});case t.CDATA_SECTION_NODE:return{type:dc.CDATA,textContent:"",rootId:k};case t.COMMENT_NODE:return{type:dc.Comment,textContent:t.textContent||"",rootId:k};default:return!1}}function Qc(t){return null==t?"":t.toLowerCase()}function tu(t,e){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inl
3ineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:x=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:I=(()=>!1),newlyAddedElement:T=!1}=e;let{preserveWhiteSpace:M=!0}=e;const R=Zc(t,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:I,newlyAddedElement:T});if(!R)return console.warn(t,"not serialized"),null;let A;A=r.hasNode(t)?r.getId(t):!function(t,e){if(e.comment&&t.type===dc.Comment)return!0;if(t.type===dc.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===xc(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Qc(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Qc(t.attributes.name)||"icon"===Qc(t.attributes.rel)||"apple-touch-icon"===Qc(t.attributes.rel)||"shortcut icon"===Qc(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Qc(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Qc(t.attributes.property).match(/^(og|twitter|fb):/)||Qc(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Qc(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Qc(t.attributes.name)||"googlebot"===Qc(t.attributes.name)||"bingbot"===Qc(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Qc(t.attributes.name)||"generator"===Qc(t.attributes.name)||"framework"===Qc(t.attributes.name)||"publisher"===Qc(t.attributes.name)||"progid"===Qc(t.attributes.name)||Qc(t.attributes.property).match(/^article:/)||Qc(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Qc(t.attributes.name)||"yandex-verification"===Qc(t.attributes.name)||"csrf-token"===Qc(t.attributes.name)||"p:domain_verify"===Qc(t.attributes.name)||"verify-v1"===Qc(t.attributes.name)||"verification"===Qc(t.attributes.name)||"shopify-checkout-api-token"===Qc(t.attributes.name)))return!0}}return!1}(R,y)&&(M||R.type!==dc.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?Oc():-2;const O=Object.assign(R,{id:A});if(r.add(t,O),-2===A)return null;k&&k(t);let L=!p;if(O.type===dc.Element){L=L&&!O.needBlock,delete O.needBlock;const e=t.shadowRoot;e&&hc(e)&&(O.isShadowHost=!0)}if((O.type===dc.Document||O.type===dc.Element)&&L){y.headWhitespace&&O.type===dc.Element&&"head"===O.tagName&&(M=!1);const e={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:I};for(const n of Array.from(t.childNodes)){const t=tu(n,e);t&&O.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const r=tu(n,e);r&&(hc(t.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}return t.parentNode&&pc(t.parentNode)&&hc(t.parentNode)&&(O.isShadow=!0),O.type!==dc.Element||"iframe"!==O.tagName||Xc(t,o,s,i)||function(t,e,n){const r=t.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(t){return}if("complete"!==o){const r=Ic((()=>{s||(e(),s=!0)}),n);return void t.addEventListener("load",(()=>{Tc(r),s=!0,e()}))}const i="about:blank";if(r.location.href!==i||t.src===i||""===t.src)return Ic(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}(t,(()=>{const e=Mc(t);if(e&&w){const n=tu(e,{doc:e,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:I});n&&w(t,n)}}),x),O.type===dc.Element&&"link"===O.tagName&&"string"==typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"==typeof O.attributes.href&&"css"===xc(O.attributes.href))&&function(t,e,n){let r,o=!1;try{r=t.sheet}catch(t){return}if(r)return;const s=Ic((()=>{o||(e(),o=!0)}),n);t.addEventListener("load",(()=>{Tc(s),o=!0,e()}))}(t,(()=>{if(E){const e=tu(t,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:I});e&&E(t,e)}}),C),O}function eu(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const nu="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let ru={map:{},getId(){return console.error(nu),-1},getNode(){return console.error(nu),null},removeNodeFromMap(){console.error(nu)},has(){return console.error(nu),!1},reset(){console.error(nu)}};function ou(t,e,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=e-(i-o),c=this;a<=0||a>e?(r&&(!function(...t){xu("clearTimeout")(...t)}(r),r=null),o=i,t.apply(c,s)):r||!1===n.trailing||(r=Eu((()=>{o=!1===n.leading?0:Date.now(),r=null,t.apply(c,s)}),a))}}function su(t,e,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,r?n:{set(t){Eu((()=>{n.set.call(this,t)}),0),s&&s.set&&s.set.call(this,t)}}),()=>su(t,e,s||{},!0)}function iu(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=o,()=>{t[e]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ru=new Proxy(ru,{get(t,e,n){return"map"===e&&console.error(nu),Reflect.get(t,e,n)}}));let au=Date.now;function cu(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:e?.documentElement.scrollLeft||e?.body?.parentElement?.scrollLeft||e?.body?.scrollLeft||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:e?.documentElement.scrollTop||e?.body?.parentElement?.scrollTop||e?.body?.scrollTop||0}}function uu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function lu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function du(t){if(!t)return null;return t.nodeType===t.ELEMENT_NODE?t:t.parentElement}function pu(t,e,n,r,o){if(!t)return!1;const s=du(t);if(!s)return!1;const i=Kc(e,n);if(!o){const t=r&&s.matches(r);return i(s)&&!t}const a=Gc(s,i);let c=-1;return!(a<0)&&(r&&(c=Gc(s,Kc(null,r))),a>-1&&c<0||a<c)}function hu(t,e){return-2===e.getId(t)}function fu(t,e){if(pc(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||fu(t.parentNode,e))}function mu(t){return Boolean(t.changedTouches)}function gu(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))}function _u(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function yu(t){return Boolean(t?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(au=()=>(new Date).getTime());class vu{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,e){if(this.has(t))return this.getId(t);let n;return n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}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 bu(t){let e=null;return t.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function Su(t){const e=t.ownerDocument;if(!e)return!1;const n=function(t){let e,n=t;
3for(;e=bu(n);)n=e;return n}(t);return e.contains(n)}function ku(t){const e=t.ownerDocument;return!!e&&(e.contains(t)||Su(t))}const wu={};function xu(t){const e=wu[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch(t){}return wu[t]=r.bind(window)}function Eu(...t){return xu("setTimeout")(...t)}var Cu=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(Cu||{}),Iu=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(Iu||{}),Tu=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(Tu||{}),Mu=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(Mu||{}),Ru=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(Ru||{});function Au(t){try{return t.contentDocument}catch(t){}}function Ou(t){return"__ln"in t}class Lu{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 e=this.head;for(let n=0;n<t;n++)e=e?.next||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&Ou(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&Ou(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Du=(t,e)=>`${t}@${e}`;class Nu{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Set,n=new Lu,r=t=>{let e=t,n=-2;for(;-2===n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},o=o=>{if(!o.parentNode||!ku(o))return;const s=pc(o.parentNode)?this.mirror.getId(bu(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=tu(o,{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.inl
3ineImages,onSerialize:t=>{gu(t,this.mirror)&&!pu(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(t),_u(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),yu(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{pu(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(t,e),t.contentWindow&&this.canvasManager.addWindow(t.contentWindow),this.shadowDomManager.observeAttachShadow(t))},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});a&&(t.push({parentId:s,nextId:i,node:a}),e.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)Fu(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||o(t);for(const t of this.addedSet)Bu(this.droppedSet,t)||Fu(this.removes,t,this.mirror)?Bu(this.movedSet,t)?o(t):this.droppedSet.add(t):o(t);let s=null;for(;n.length;){let t=null;if(s){const e=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==e&&-1!==n&&(t=s)}if(!t){let e=n.tail;for(;e;){const n=e;if(e=e.previous,n){const e=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==e){t=n;break}{const e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host;if(-1!==this.mirror.getId(r)){t=n;break}}}}}}if(!t){for(;n.head;)n.removeNode(n.head.value);break}s=t.previous,n.removeNode(t.value),o(t.value)}const i={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>{const{attributes:e}=t;if("string"==typeof e.style){const n=JSON.stringify(t.styleDiff),r=JSON.stringify(t._unchangedStyles);n.length<e.style.length&&(n+r).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}})).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};(i.texts.length||i.attributes.length||i.removes.length||i.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(i))},this.processMutation=t=>{if(!hu(t.target,this.mirror))switch(t.type){case"characterData":{const e=t.target.textContent;pu(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||e===t.oldValue||this.texts.push({value:Jc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,du(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=t.attributeName,r=t.target.getAttribute(n);if("value"===n){const n=kc(e),o=e.tagName;r=wc(e,o,n);const s=_c({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=yc({isMasked:Jc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:e,value:r,maskInputFn:this.maskInputFn})}if(pu(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===t.oldValue)return;let o=this.attributeMap.get(t.target);if("IFRAME"===e.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Au(e))return;n="rr_src"}if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),"type"===n&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!Yc(e.tagName,n)&&(o.attributes[n]=Vc(this.doc,vc(e.tagName),vc(n),r,e,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue);for(const t of Array.from(e.style)){const r=e.style.getPropertyValue(t),s=e.style.getPropertyPriority(t);r!==n.style.getPropertyValue(t)||s!==n.style.getPropertyPriority(t)?o.styleDiff[t]=""===s?r:[r,s]:o._unchangedStyles[t]=[r,s]}for(const t of Array.from(n.style))""===e.style.getPropertyValue(t)&&(o.styleDiff[t]=!1)}break}case"childList":if(pu(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;
3t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),r=pc(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);pu(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||hu(e,this.mirror)||!function(t,e){return-1!==e.getId(t)}(e,this.mirror)||(this.addedSet.has(e)?(Pu(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||fu(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Du(n,r)]?Pu(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!(!pc(t.target)||!hc(t.target))||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(hu(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[Du(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);pu(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach((t=>this.genAdds(t))),yu(t)&&t.shadowRoot.childNodes.forEach((e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)})))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((e=>{this[e]=t[e]}))}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 Pu(t,e){t.delete(e),e.childNodes.forEach((e=>Pu(t,e)))}function Fu(t,e,n){return 0!==t.length&&function(t,e,n){let r=e.parentNode;for(;r;){const e=n.getId(r);if(t.some((t=>t.id===e)))return!0;r=r.parentNode}return!1}(t,e,n)}function Bu(t,e){return 0!==t.size&&$u(t,e)}function $u(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||$u(t,n))}let Uu;const Hu=t=>{if(!Uu)return t;return(...e)=>{try{return t(...e)}catch(t){if(Uu&&!0===Uu(t))return()=>{};throw t}}},ju=[];function zu(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function Wu(t,e){const n=new Nu;ju.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);const s=new r(Hu((e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)})));return s.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function qu({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let u=null;return Object.keys(Tu).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==a[t])).forEach((i=>{let a=vc(i);const l=(e=>i=>{const a=zu(i);if(pu(a,r,o,s,!0))return;let c=null,l=e;if("pointerType"in i){switch(i.pointerType){case"mouse":c=Mu.Mouse;break;case"touch":c=Mu.Touch;break;case"pen":c=Mu.Pen}c===Mu.Touch?Tu[e]===Tu.MouseDown?l="TouchStart":Tu[e]===Tu.MouseUp&&(l="TouchEnd"):Mu.Pen}else mu(i)&&(c=Mu.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Mu.Touch||l.startsWith("Mouse")&&c===Mu.Mouse)&&(c=null)):Tu[e]===Tu.Click&&(c=u,u=null);const d=mu(i)?i.changedTouches[0]:i;if(!d)return;const p=n.getId(a),{clientX:h,clientY:f}=d;Hu(t)({type:Tu[l],id:p,x:h,y:f,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(Tu[i]){case Tu.MouseDown:case Tu.MouseUp:a=a.replace("mouse","pointer");break;case Tu.TouchStart:case Tu.TouchEnd:return}c.push(eu(a,l,e))})),Hu((()=>
3{c.forEach((t=>t()))}))}function Vu({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){return eu("scroll",Hu(ou(Hu((i=>{const a=zu(i);if(!a||pu(a,r,o,s,!0))return;const c=n.getId(a);if(a===e&&e.defaultView){const n=cu(e.defaultView);t({id:c,x:n.left,y:n.top})}else t({id:c,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),e)}const Yu=["INPUT","TEXTAREA","SELECT"],Xu=new WeakMap;function Gu({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(t){let n=zu(t);const l=t.isTrusted,g=n&&bc(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Yu.indexOf(g)<0||pu(n,r,o,s,!0))return;const y=n;if(y.classList.contains(i)||a&&y.matches(a))return;const v=kc(n);let b=wc(y,g,v),S=!1;const k=_c({maskInputOptions:c,tagName:g,type:v}),w=Jc(n,p,f,h,m,k);"radio"!==v&&"checkbox"!==v||(S=n.checked),b=yc({isMasked:w,element:n,value:b,maskInputFn:u}),_(n,d?{text:b,isChecked:S,userTriggered:l}:{text:b,isChecked:S});const x=n.name;"radio"===v&&x&&S&&e.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((t=>{if(t!==n){const e=yc({isMasked:w,element:t,value:wc(t,g,v),maskInputFn:u});_(t,d?{text:e,isChecked:!S,userTriggered:!1}:{text:e,isChecked:!S})}}))}function _(e,r){const o=Xu.get(e);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Xu.set(e,r);const o=n.getId(e);Hu(t)({...r,id:o})}}const y=("last"===l.input?["change"]:["input","change"]).map((t=>eu(t,Hu(g),e))),v=e.defaultView;if(!v)return()=>{y.forEach((t=>t()))};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...S.map((t=>su(t[0],t[1],{set(){Hu(g)({target:this,isTrusted:!1})}},!1,v)))),Hu((()=>{y.forEach((t=>t()))}))}function Ku(t){return function(t,e){if(tl("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||tl("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||tl("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||tl("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else if(t.parentStyleSheet){const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function Ju(t,e,n){let r,o;return t?(t.ownerNode?r=e.getId(t.ownerNode):o=n.getId(t),{styleId:o,id:r}):{}}function Zu({mirror:t,stylesheetManager:e},n){let r=null;r="#document"===n.nodeName?t.getId(n):t.getId(n.host);const o="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,s=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(t){const n=s.set?.call(this,t);if(null!==r&&-1!==r)try{e.adoptStyleSheets(t,r)}catch(t){}return n}}),Hu((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))):()=>{}}function Qu(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=Wu(t,t.doc));const o=function({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const o="number"==typeof e.mousemove?e.mousemove:50,s="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let i,a=[];const c=ou(Hu((e=>{const n=Date.now()-i;t(a.map((t=>(t.timeOffset-=n,t))),e),a=[],i=null})),s),u=Hu(ou(Hu((t=>{const e=zu(t),{clientX:n,clientY:o}=mu(t)?t.changedTouches[0]:t;i||(i=au()),a.push({x:n,y:o,id:r.getId(e),timeOffset:au()-i}),c("undefined"!=typeof DragEvent&&t instanceof DragEvent?Iu.Drag:t instanceof MouseEvent?Iu.MouseMove:Iu.TouchMove)})),o,{trailing:!1})),l=[eu("mousemove",u,n),eu("touchmove",u,n),eu("drag",u,n)];return Hu((()=>{l.forEach((t=>t()))}))}(t),s=qu(t),i=Vu(t),a=function({viewportResizeCb:t},{win:e}){let n=-1,r=-1;return eu("resize",Hu(ou(Hu((()=>{const e=uu(),o=lu();n===e&&r===o||(t({width:Number(o),height:Number(e)}),n=e,r=o)})),200)),e)}(t,{win:n}),c=Gu(t),u=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=Hu((i=>ou(Hu((s=>{const a=zu(s);if(!a||pu(a,e,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;t({type:i,id:o.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),s.media||500))),c=[eu("play",a(Ru.Play),i),eu("pause",a(Ru.Pause),i),eu("seeked",a(Ru.Seeked),i),eu("volumechange",a(Ru.VolumeChange),i),eu("ratechange",a(Ru.RateChange),i)];return Hu((()=>
vendor: 5,321 bytes, line 3
3{c.forEach((t=>t()))}))}(t);let l=()=>{},d=()=>{},p=()=>{},h=()=>{};t.recordDOM&&(l=function({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Hu(((r,o,s)=>{const[i,a]=s,{id:c,styleId:u}=Ju(o,e,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&t({id:c,styleId:u,adds:[{rule:i,index:a}]}),r.apply(o,s)}))});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:Hu(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Ju(o,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,removes:[{index:i}]}),r.apply(o,s)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Hu(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Ju(o,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,replace:i}),r.apply(o,s)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Hu(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Ju(o,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,replaceSync:i}),r.apply(o,s)}))}));const c={};el("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(el("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),el("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),el("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach((([r,o])=>{u[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Hu(((r,o,s)=>{const[i,a]=s,{id:c,styleId:u}=Ju(o.parentStyleSheet,e,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&t({id:c,styleId:u,adds:[{rule:i,index:[...Ku(o),a||0]}]}),r.apply(o,s)}))}),o.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Hu(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Ju(o.parentStyleSheet,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,removes:[{index:[...Ku(o),i]}]}),r.apply(o,s)}))})})),Hu((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([t,e])=>{e.prototype.insertRule=u[t].insertRule,e.prototype.deleteRule=u[t].deleteRule}))}))}(t,{win:n}),d=Zu(t,t.doc),p=function({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Hu(((o,i,a)=>{const[c,u,l]=a;if(n.has(c))return s.apply(i,[c,u,l]);const{id:d,styleId:p}=Ju(i.parentRule?.parentStyleSheet,e,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&t({id:d,styleId:p,set:{property:c,value:u,priority:l},index:Ku(i.parentRule)}),o.apply(i,a)}))});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Hu(((o,s,a)=>{const[c]=a;if(n.has(c))return i.apply(s,[c]);const{id:u,styleId:l}=Ju(s.parentRule?.parentStyleSheet,e,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&t({id:u,styleId:l,remove:{property:c},index:Ku(s.parentRule)}),o.apply(s,a)}))}),Hu((()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i}))}(t,{win:n}),t.collectFonts&&(h=function({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(t,e,n){const r=new s(t,e,n);return o.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const i=iu(e.fonts,"add",(function(e){return function(n){return Eu(Hu((()=>{const e=o.get(n);e&&(t(e),o.delete(n))})),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=s})),r.push(i),Hu((()=>{r.forEach((t=>t()))}))}(t)));const f=function(t){const{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=t;let a=!0;const c=Hu((()=>{const t=e.getSelection();if(!t||a&&t?.isCollapsed)return;a=t.isCollapsed||!1;const c=[],u=t.rangeCount||0;for(let e=0;e<u;e++){const i=t.getRangeAt(e),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=i;pu(a,r,o,s,!0)||pu(l,r,o,s,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}i({ranges:c})}));return c(),eu("selectionchange",c)}(t),m=function({doc:t,customElementCb:e}){const n=t.defaultView;return n&&n.customElements?iu(n.customElements,"define",(function(t){return function(n,r,o){try{e({define:{name:n}})}catch(t){}return t.apply(this,[n,r,o])}})):()=>{}}(t),g=[];for(const e of t.plugins)g.push(e.observer(e.callback,n,e.options));return Hu((()=>{ju.forEach((t=>t.reset())),r?.disconnect(),o(),s(),i(),a(),c(),u(),l(),d(),p(),h(),f(),m(),g.forEach((t=>t()))}))}function tl(t){return void 0!==window[t]}function el(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class nl{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,e,n,r){const o=n||this.getIdToRemoteIdMap(t),s=r||this.getRemoteIdToIdMap(t);let i=o.get(e);
3return i||(i=this.generateIdFn(),o.set(e,i),s.set(i,e)),i}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map((e=>this.getId(t,e,n,r)))}getRemoteId(t,e,n){const r=n||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;const o=r.get(e);return o||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map((e=>this.getRemoteId(t,e,n)))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}class rl{constructor(){this.crossOriginIframeMirror=new nl(Oc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ol{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new nl(Oc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new nl(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,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const n=Au(t);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(t){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;if(!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case Cu.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:Cu.IncrementalSnapshot,data:{source:Iu.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Cu.Meta:case Cu.Load:case Cu.DomContentLoaded:return!1;case Cu.Plugin:return e;case Cu.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case Cu.IncrementalSnapshot:switch(e.data.source){case Iu.Mutation:return e.data.adds.forEach((e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)})),e.data.removes.forEach((e=>{this.replaceIds(e,t,["parentId","id"])})),e.data.attributes.forEach((e=>{this.replaceIds(e,t,["id"])})),e.data.texts.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case Iu.Drag:case Iu.TouchMove:case Iu.MouseMove:return e.data.positions.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case Iu.ViewportResize:return!1;case Iu.MediaInteraction:case Iu.MouseInteraction:case Iu.Scroll:case Iu.CanvasMutation:case Iu.Input:return this.replaceIds(e.data,t,["id"]),e;case Iu.StyleSheetRule:case Iu.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case Iu.Font:return e;case Iu.Selection:return e.data.ranges.forEach((e=>{this.replaceIds(e,t,["start","end"])})),e;
3case Iu.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),e.data.styles?.forEach((e=>{this.replaceStyleIds(e,t,["styleId"])})),e}}return!1}replace(t,e,n,r){for(const o of r)(Array.isArray(e[o])||"number"==typeof e[o])&&(Array.isArray(e[o])?e[o]=t.getIds(n,e[o]):e[o]=t.getId(n,e[o]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach((t=>{this.replaceIdOnNode(t,e)}))}patchRootIdOnNode(t,e){t.type===dc.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach((t=>{this.patchRootIdOnNode(t,e)}))}}class sl{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class il{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,e){if(!hc(t))return;if(this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const n=Wu({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Vu({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Eu((()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Zu({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))}),0)}observeAttachShadow(t){const e=Au(t),n=function(t){try{return t.contentWindow}catch(t){}}(t);e&&n&&this.patchAttachShadow(n.Element,e)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(iu(t.prototype,"attachShadow",(function(t){return function(r){const o=t.call(this,r);return this.shadowRoot&&ku(this)&&n.addShadowRoot(this.shadowRoot,e),o}})))}reset(){this.restoreHandlers.forEach((t=>{try{t()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var al="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cl="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ul=0;ul<al.length;ul++)cl[al.charCodeAt(ul)]=ul;class ll{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class dl{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new vu,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const n={id:e,styleIds:[]},r=[];for(const e of t){let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),r.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,e)=>({rule:mc(t),index:e})))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class pl{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,e){const n=this.nodeMap.get(t);return n&&Array.from(n).some((t=>t!==e))}add(t,e){this.active||(this.active=!0,function(...t){xu("requestAnimationFrame")(...t)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}destroy(){}}let hl,fl;try{if(2!==Array.from([1],(t=>2*t))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=t.contentWindow?.Array.from||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const ml=new gc;function gl(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,maxCanvasSize:S=null,packFn:k,sampling:w={},dataURLOptions:x={},mousemoveWait:E,recordDOM:C=!0,recordCanvas:I=!1,recordCrossOriginIframes:T=!1,recordAfter:M=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:A=!1,inlineImages:O=!1,plugins:L,keepIframeSrcFn:D=(()=>!1),ignoreCSSAttributes:N=new Set([]),errorHandler:P,onMutation:F,getCanvasManager:B}=t;Uu=P;const $=!T||window.parent===window;let U=!1;if(!$)try{window.parent.document&&(U=!1)}catch(t){U=!0}if($&&!e)throw new Error("emit function is required");if(!$&&!U)return()=>{};void 0!==E&&void 0===w.mousemove&&(w.mousemove=E),ml.reset();const H=!0===m?{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!==g?g:{},j=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};let z;!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.N
3odeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let e=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let W=0;const q=t=>{for(const e of L||[])e.eventProcessor&&(t=e.eventProcessor(t));return k&&!U&&(t=k(t)),t};hl=(t,o)=>{const s=t;if(s.timestamp=au(),!ju[0]?.isFrozen()||s.type===Cu.FullSnapshot||s.type===Cu.IncrementalSnapshot&&s.data.source===Iu.Mutation||ju.forEach((t=>t.unfreeze())),$)e?.(q(s),o);else if(U){const t={type:"rrweb",event:q(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(s.type===Cu.FullSnapshot)z=s,W=0;else if(s.type===Cu.IncrementalSnapshot){if(s.data.source===Iu.Mutation&&s.data.isAttachIframe)return;W++;const t=r&&W>=r,e=n&&z&&s.timestamp-z.timestamp>n;(t||e)&&tt(!0)}};const V=t=>{hl({type:Cu.IncrementalSnapsh
3ot,data:{source:Iu.Mutation,...t}})},Y=t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.Scroll,...t}}),X=t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.CanvasMutation,...t}}),G=new dl({mutationCb:V,adoptedStyleSheetCb:t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.AdoptedStyleSheet,...t}})}),K="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new rl:new ol({mirror:ml,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:T,wrappedEmit:hl});for(const t of L||[])t.getMirror&&t.getMirror({nodeMirror:ml,crossOriginIframeMirror:K.crossOriginIframeMirror,crossOriginIframeStyleMirror:K.crossOriginIframeStyleMirror});const J=new pl,Z=function(t,e){try{return t?t(e):new ll}catch{return console.warn("Unable to initialize CanvasManager"),new ll}}(B,{mirror:ml,win:window,mutationCb:t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.CanvasMutation,...t}}),recordCanvas:I,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:S,sampling:w.canvas,dataURLOptions:x,errorHandler:P}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new sl:new il({mutationCb:V,scrollCb:Y,bypassOptions:{onMutation:F,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:H,dataURLOptions:x,maskAttributeFn:y,maskTextFn:b,maskInputFn:v,recordCanvas:I,inlineImages:O,sampling:w,slimDOMOptions:j,iframeManager:K,stylesheetManager:G,canvasManager:Z,keepIframeSrcFn:D,processedNodeManager:J},mirror:ml}),tt=(t=!1)=>{if(!C)return;hl({type:Cu.Meta,data:{href:window.location.href,width:lu(),height:uu()}},t),G.reset(),Q.init(),ju.forEach((t=>t.lock()));const e=function(t,e){const{mirror:n=new gc,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:C=(()=>!1)}=e;return tu(t,{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{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}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:ml,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:H,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,slimDOM:j,dataURLOptions:x,recordCanvas:I,inlineImages:O,onSerialize:t=>{gu(t,ml)&&K.addIframe(t),_u(t,ml)&&G.trackLinkElement(t),yu(t)&&Q.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{K.attachIframe(t,e),t.contentWindow&&Z.addWindow(t.contentWindow),Q.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{G.attachLinkElement(t,e)},keepIframeSrcFn:D});if(!e)return console.warn("Failed to snapshot the document");hl({type:Cu.FullSnapshot,data:{node:e,initialOffset:cu(window)}}),ju.forEach((t=>t.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,ml.getId(document))};fl=tt;try{const t=[],e=t=>Hu(Qu)({onMutation:F,mutationCb:V,mousemoveCb:(t,e)=>hl({type:Cu.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.MouseInteraction,...t}}),scrollCb:Y,viewportResizeCb:t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.ViewportResize,...t}}),inputCb:t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.Input,...t}}),mediaInteractionCb:t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.MediaInteraction,...t}}),styleSheetRuleCb:t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.StyleSheetRule,...t}}),styleDeclarationCb:t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.StyleDeclaration,...t}}),canvasMutationCb:X,fontCb:t=>hl({type:Cu.IncrementalSnapshot,data:{source:Iu.Font,...t}}),selectionCb:t=>{hl({type:Cu.IncrementalSnapshot,data:{source:Iu.Selection,...t}})},customElementCb:t=>{hl({type:Cu.IncrementalSnapshot,data:{source:Iu.CustomElement,...t}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:H,inlineStylesheet:f,sampling:w,recordDOM:C,recordCanvas:I,inlineImages:O,userTriggeredOnInput:R,collectFonts:A,doc:t,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:D,blockSelector:s,unblockSelector:i,slimDOMOptions:j,dataURLOptions:x,mirror:ml,iframeManager:K,stylesheetManager:G,shadowDomManager:Q,processedNodeManager:J,canvasManager:Z,ignoreCSSAttributes:N,plugins:L?.filter((t=>t.observer))?.map((t=>({observer:t.observer,options:t.options,callback:e=>hl({type:Cu.Plugin,data:{plugin:t.name,payload:e}})})))||[]},{});K.addLoadListener((n=>
3{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{tt(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(eu("DOMContentLoaded",(()=>{hl({type:Cu.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()}))),t.push(eu("load",(()=>{hl({type:Cu.Load,data:{}}),"load"===M&&n()}),window))),()=>{t.forEach((t=>t())),J.destroy(),fl=void 0,Uu=void 0}}catch(t){console.warn(t)}}var _l,yl;gl.mirror=ml,gl.takeFullSnapshot=function(t){if(!fl)throw new Error("please take full snapshot after start recording");fl(t)},(yl=_l||(_l={}))[yl.NotStarted=0]="NotStarted",yl[yl.Running=1]="Running",yl[yl.Stopped=2]="Stopped";function vl(t){return t>9999999999?t:1e3*t}function bl(t){return t>9999999999?t/1e3:t}function Sl(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(t.throttledAddEvent({type:Cu.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:en(e,10,1e3)}}),"console"===e.category))))}function kl(t){return t.closest("button,a")||t}function wl(t){const e=xl(t);return e&&e instanceof Element?kl(e):e}function xl(t){return function(t){return"object"==typeof t&&!!t&&"target"in t}(t)?t.target:t}let El;function Cl(t){return El||(El=[],et(nc,"open",(function(t){return function(...e){if(El)try{El.forEach((t=>t()))}catch(t){}return t.apply(nc,e)}}))),El.push(t),()=>{const e=El?El.indexOf(t):-1;e>-1&&El.splice(e,1)}}const Il=new Set([Iu.Mutation,Iu.StyleSheetRule,Iu.StyleDeclaration,Iu.AdoptedStyleSheet,Iu.CanvasMutation,Iu.Selection,Iu.MediaInteraction]);class Tl{constructor(t,e,n=Sl){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=e.timeout/1e3,this._threshold=e.threshold/1e3,this._scrollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const t=Cl((()=>{this._lastMutation=Rl()}));this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){if(function(t,e){if(!Ml.includes(t.tagName))return!0;if("INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||""))return!0;if("A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))return!0;if(e&&t.matches(e))return!0;return!1}(e,this._ignoreSelector)||!function(t){return!(!t.data||"number"!=typeof t.data.nodeId||!t.timestamp)}(t))return;const n={timestamp:bl(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this._clicks.some((t=>t.node===n.node&&Math.abs(t.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=bl(t)}registerScroll(t=Date.now()){this._lastScroll=bl(t)}registerClick(t){const e=kl(t);this._handleMultiClick(e)}_handleMultiClick(t){this._getClicks(t).forEach((t=>{t.clickCount++}))}_getClicks(t){return this._clicks.filter((e=>e.node===t))}_checkClicks(){const t=[],e=Rl();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=e&&t.push(n)}));for(const e of t){const t=this._clicks.indexOf(e);t>-1&&(this._generateBreadcrumbs(e),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:s,clickBreadcrumb:i}=t;if(o){const n=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:nc.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}};this._addBreadcrumbEvent(e,o)}else if(s>1){const t={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:nc.location.href,route:e.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Ui((()=>this._checkClicks()),1e3)}}const Ml=["A","BUTTON","INPUT"];function Rl(){return Date.now()/1e3}function Al(t,e){try{if(!function(t){return 3===t.type}(e))return;const{source:n}=e.data;if(Il.has(n)&&t.registerMutation(e.timestamp),n===Iu.Scroll&&t.registerScroll(e.timestamp),function(t){return t.data.source===Iu.MouseInteraction}(e)){const{type:n,id:r}=e.data,o=gl.mirror.getNode(r);o instanceof HTMLElement&&n===Tu.Click&&t.registerClick(o)}}catch{}}function Ol(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Ll=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(Ll||{});const Dl=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Nl(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(Dl.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),e[r]=t[n]}return e}const Pl=t=>e=>{if(!t.isEnabled())return;const n=function(t){const{target:e,message:n}=function(t){const e="click"===t.name;let n,r=null;try{r=e?wl(t.event):xl(t.event),n=V(r,{maxStringLength:200})||"<unknown>"}catch(t){n="<unknown>"}return{target:r,message:n}}(t);return Ol({category:`ui.${t.name}`,...Fl(e,n)})}(e);if(!n)return;const r="click"===e.name,o=r?e.event:void 0;!(r&&t.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||function(t,e,n){t.handleClick(e,n)}(t.clickDetector,n,wl(e.event)),Sl(t,n)};function Fl(t,e){const n=gl.mirror.getId(t),r=n&&gl.mirror.getNode(n),o=r&&gl.mirror.getMeta(r),s=o&&function(t){return t.type===Ll.Element}(o)?o:null;return{message:e,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map((t=>
3t.type===Ll.Text&&t.textContent)).filter(Boolean).map((t=>t.trim())).join(""),attributes:Nl(s.attributes)}}:{}}}function Bl(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=function(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=t;if(!i||function(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}(i)||!s)return null;const a=e||r||o,c=1===s.length;if(!a&&c)return null;const u=V(i,{maxStringLength:200})||"<unknown>",l=Fl(i,u);return Ol({category:"ui.keyDown",message:u,data:{...l.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}(e);n&&Sl(t,n)}const $l={resource:function(t){const{entryType:e,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=t;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${e}.${n}`,start:jl(s),end:jl(o),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(t){const{duration:e,entryType:n,name:r,startTime:o}=t,s=jl(o);return{type:n,name:r,start:s,end:s+e,data:void 0}},navigation:function(t){const{entryType:e,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=t;if(0===o)return null;return{type:`${e}.${m}`,start:jl(h),end:jl(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:s,redirectCount:p}}}};function Ul(t,e){return({metric:n})=>{e.replayPerformanceEntries.push(t(n))}}function Hl(t){const e=$l[t.entryType];return e?e(t):null}function jl(t){return((ft()||nc.performance.timeOrigin)+t)/1e3}function zl(t){const e=t.entries[t.entries.length-1];return Xl(t,"largest-contentful-paint",e?.element?[e.element]:void 0)}function Wl(t){return void 0!==t.sources}function ql(t){const e=[],n=[];for(const r of t.entries)if(Wl(r)){const t=[];for(const e of r.sources)if(e.node){n.push(e.node);const r=gl.mirror.getId(e.node);r&&t.push(r)}e.push({value:r.value,nodeIds:t.length?t:void 0})}return Xl(t,"cumulative-layout-shift",n,e)}function Vl(t){const e=t.entries[t.entries.length-1];return Xl(t,"first-input-delay",e?.target?[e.target]:void 0)}function Yl(t){const e=t.entries[t.entries.length-1];return Xl(t,"interaction-to-next-paint",e?.target?[e.target]:void 0)}function Xl(t,e,n,r){const o=t.value,s=t.rating,i=jl(o);return{type:"web-vital",name:e,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map((t=>gl.mirror.getId(t))):void 0,attributions:r}}}const Gl=["info","warn","error","log"];const Kl=function(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{t=!!n.captureExceptions,e=!!n.traceInternals}};return Gl.forEach((t=>{n[t]=()=>{}})),n}();class Jl extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Zl{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>ac)throw new Jl;this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.clear(),t(JSON.stringify(e))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?vl(t):null}}class Ql{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const s=({data:e})=>{const i=e;i.method===t&&i.id===n&&(this._worker.removeEventListener("message",s),i.success?r(i.response):o(new Error("Error in compression worker")))};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class td{constructor(t){this._worker=new Ql(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()}
3addEvent(t){const e=vl(t.timestamp);(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e);const n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>ac?Promise.reject(new Jl):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(t=>{}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class ed{constructor(t){this._fallback=new Zl,this._compression=new td(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:e,waitForCheckout:n}=this._fallback,r=[];for(const e of t)r.push(this._compression.addEvent(e));this._compression.hasCheckout=e,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(t){}}}function nd({useCompression:t,workerUrl:e}){if(t&&window.Worker){const t=function(t){try{const e=t||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const t=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),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))}
vendor: 4,591 bytes, line 3
3,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;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,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}}},O=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;
3++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)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var 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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){G.prototype.flush.call(this)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),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)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),s=i.length;return q(i,n),j(i,s-8,r.d()),j(i,s-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(t)}();return""}();if(!e)return;const n=new Worker(e);return new ed(n)}catch(t){}}(e);if(t)return t}return new Zl}function rd(){try{return"sessionStorage"in nc&&!!nc.sessionStorage}catch{return!1}}function od(t){!function(){if(!rd())return;try{nc.sessionStorage.removeItem(rc)}catch{}}(),t.session=void 0}function sd(t){return void 0!==t&&Math.random()<t}function id(t){const e=Date.now();return{id:t.id||mt(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,previousSessionId:t.previousSessionId}}function ad(t){if(rd())try{nc.sessionStorage.setItem(rc,JSON.stringify(t))}catch{}}function cd({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const o=function(t,e){return sd(t)?"session":!!e&&"buffer"}(t,e),s=id({sampled:o,previousSessionId:r});return n&&ad(s),s}function ud(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function ld(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return ud(t.started,e,r)||ud(t.lastActivity,n,r)}function dd(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!!ld(t,{sessionIdleExpire:e,maxReplayDuration:n})&&("buffer"!==t.sampled||0!==t.segmentId)}function pd({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const o=r.stickySession&&function(){if(!rd())return null;try{const t=nc.sessionStorage.getItem(rc);return t?id(JSON.parse(t)):null}catch{return null}}();return o?dd(o,{sessionIdleExpire:t,maxReplayDuration:e})?cd(r,{previousSessionId:o.id}):o:cd(r,{previousSessionId:n})}function hd(t,e,n){return!!md(t,e)&&(fd(t,e,n),!0)}async function fd(t,e,n){const{eventBuffer:r}=t;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===t.recordingMode;
3try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=function(t,e){try{if("function"==typeof e&&function(t){return t.type===Cu.Custom}(t))return e(t)}catch(t){return null}return t}(e,t.getOptions().beforeAddRecordingEvent);if(!s)return;return await r.addEvent(s)}catch(e){const n=e&&e instanceof Jl,s=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;t.handleException(e),await t.stop({reason:s});const i=qt();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function md(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=vl(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now())&&!(n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)}function gd(t){return!t.type}function _d(t){return"transaction"===t.type}function yd(t){return"feedback"===t.type}function vd(t){return(e,n)=>{if(!t.isEnabled()||!gd(e)&&!_d(e))return;const r=n?.statusCode;!r||r<200||r>=300||(_d(e)?function(t,e){const n=t.getContext();e.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}(t,e):function(t,e){const n=t.getContext();e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id);if("buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();if("function"==typeof r&&!r(e))return;Ui((async()=>{try{await t.sendBufferedReplayOrFlush()}catch(e){t.handleException(e)}}))}(t,e))}}function bd(t){return e=>{t.isEnabled()&&gd(e)&&function(t,e){const n=e.exception?.values?.[0]?.value;if("string"!=typeof n)return;if(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)){Sl(t,Ol({category:"replay.hydrate-error",data:{url:X()}}))}}(t,e)}}function Sd(t){const e=qt();e&&e.on("beforeAddBreadcrumb",(e=>function(t,e){if(!t.isEnabled()||!kd(e))return;const n=function(t){if(!kd(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(t){const e=t.data?.arguments;if(!Array.isArray(e)||0===e.length)return Ol(t);let n=!1;const r=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>ic?(n=!0,`${t.slice(0,ic)}…`):t;if("object"==typeof t)try{const e=en(t,7);return JSON.stringify(e).length>ic?(n=!0,`${JSON.stringify(e,null,2).slice(0,ic)}…`):e}catch{}return t}));return Ol({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return Ol(t)}(e);n&&Sl(t,n)}(t,e)))}function kd(t){return!!t.category}function wd(){const t=Ut().getPropagationContext().dsc;t&&delete t.replay_id;const e=De();if(e){delete Ve(e).replay_id}}function xd(t){return Object.assign(((e,n)=>{if(!t.isEnabled()||t.isPaused())return e;if(function(t){return"replay_event"===t.type}(e))return delete e.breadcrumbs,e;if(!gd(e)&&!_d(e)&&!yd(e))return e;if(!t.checkAndHandleExpiredSession())return wd(),e;if(yd(e))return t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),function(t,e){t.triggerUserActivity(),t.addUpdate((()=>!e.timestamp||(t.throttledAddEvent({type:Cu.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1)))}(t,e),e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length||!e.originalException?.__rrweb__)}(e,n)&&!t.getOptions()._experiments.captureExceptions)return null;const r=function(t,e){return"buffer"===t.recordingMode&&e.message!==oc&&!(!e.exception||e.type)&&sd(t.getOptions().errorSampleRate)}(t,e);return(r||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),e}),{id:"Replay"})}function Ed(t,e){return e.map((({type:e,start:n,end:r,name:o,data:s})=>{const i=t.throttledAddEvent({type:Cu.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:o,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof i?Promise.resolve(null):i}))}function Cd(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(Ed(t,[n]),!1))))}}function Id(t,e){t.isEnabled()&&(null!==e&&(Pr(e.name,qt())||t.addUpdate((()=>(Ed(t,[e]),!0)))))}function Td(t){if(!t)return;const e=new TextEncoder;try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=Wi(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function Md(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function Rd(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function Ad(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:o,data:ut({method:s,statusCode:i,request:a,response:c})}}function Od(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Ld(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:o,warnings:s}=function(t){if(!t||"string"!=typeof t)return{body:t};const e=t.length>sc,n=function(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t);if(e){const e=t.slice(0,sc);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${e}
3…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch{}return{body:t}}(n);return r.body=o,s?.length&&(r._meta={warnings:s}),r}function Dd(t,e){return Object.entries(t).reduce(((n,[r,o])=>{const s=r.toLowerCase();return e.includes(s)&&t[r]&&(n[s]=o),n}),{})}function Nd(t,e){const n=function(t,e=nc.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(nc.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;if(!t.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(t);return tt(n,e)}async function Pd(t,e,n){try{const r=await async function(t,e,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=e,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=t.data,d=Nd(i,n.networkDetailAllowUrls)&&!Nd(i,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const o=n?function(t,e){if(1===t.length&&"string"!=typeof t[0])return Bd(t[0],e);if(2===t.length)return Bd(t[1],e);return{}}(n,e):{};if(!t)return Ld(o,r,void 0);const s=Vi(n),[i,a]=qi(s,Kl),c=Ld(o,r,i);if(a)return Rd(c,a);return c}(n,e.input,u):Od(u),h=await async function(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,o){if(!t&&void 0!==o)return Od(o);const s=r?Fd(r.headers,n):{};if(!r||!e&&void 0!==o)return Ld(s,o,void 0);const[i,a]=await async function(t){const e=function(t){try{return t.clone()}catch(t){}}(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{const t=await function(t){return new Promise(((e,n)=>{const r=Ui((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(t){return await t.text()})(t).then((t=>e(t)),(t=>n(t))).finally((()=>clearTimeout(r)))}))}(e);return[t]}catch(t){return t instanceof Error&&t.message.indexOf("Timeout")>-1?[void 0,"BODY_PARSE_TIMEOUT"]:[void 0,"BODY_PARSE_ERROR"]}}(r),c=function(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:o}){try{const s=t?.length&&void 0===n?Td(t):n;return r?Ld(o,s,e?t:void 0):Od(s)}catch(t){return Ld(o,n,void 0)}}(i,{networkCaptureBodies:e,responseBodySize:o,captureDetails:t,headers:s});if(a)return Rd(c,a);return c}(d,n,e.response,l);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:c,request:p,response:h}}(t,e,n),o=Ad("resource.fetch",r);Id(n.replay,o)}catch(t){}}function Fd(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function Bd(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?Fd(n,e):Array.isArray(n)?{}:Dd(n,e):{}}async function $d(t,e,n){try{const r=function(t,e,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:a}=e,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=t.data;if(!c)return null;if(!a||!Nd(c,n.networkDetailAllowUrls)||Nd(c,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:s,url:c,method:u,statusCode:l,request:Od(d),response:Od(p)}}const h=a[Hi],f=h?Dd(h.request_headers,n.networkRequestHeaders):{},m=Dd(function(t){const e=t.getAllResponseHeaders();if(!e)return{};return e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return r&&(t[n.toLowerCase()]=r),t}),{})}(a),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?qi(i,Kl):[void 0],[y,v]=n.networkCaptureBodies?function(t){const e=[];try{return[t.responseText]}catch(t){e.push(t)}try{return function(t,e){try{if("string"==typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"==typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(t.response,t.responseType)}catch(t){e.push(t)}return[void 0]}(a):[void 0],b=Ld(f,d,g),S=Ld(m,p,y);return{startTimestamp:o,endTimestamp:s,url:c,method:u,statusCode:l,request:_?Rd(b,_):b,response:v?Rd(S,v):S}}(t,e,n),o=Ad("resource.xhr",r);Id(n.replay,o)}catch(t){}}function Ud(t,e){const{xhr:n,input:r}=e;if(!n)return;const o=Td(r),s=n.getResponseHeader("content-length")?Md(n.getResponseHeader("content-length")):function(t,e){try{return Td("json"===e&&t&&"object"==typeof t?JSON.stringify(t):t)}catch{return}}(n.response,n.responseType);void 0!==o&&(t.data.request_body_size=o),void 0!==s&&(t.data.response_body_size=s)}function Hd(t){const e=qt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i};e&&e.on("beforeAddBreadcrumb",((t,e)=>function(t,e,n){if(!e.data)return;try{(function(t){return"xhr"===t.category})(e)&&function(t){return t?.xhr}(n)&&(Ud(e,n),$d(e,n,t)),function(t){return"fetch"===t.category}(e)&&function(t){return t?.response}(n)&&(!function(t,e){const{input:n,response:r}=e,o=Td(n?Vi(n):void 0),s=r?Md(r.headers.get("content-length")):void 0;void 0!==o&&(t.data.request_body_size=o),void 0!==s&&(t.data.response_body_size=s)}(e,n),Pd(e,n,t))}catch(t){}}(a,t,e)))}catch{}}
3function jd(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}const zd=o.navigator;function Wd(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return;const o=r||!e;e=!0,t.clickDetector&&Al(t.clickDetector,n),t.addUpdate((()=>{if("buffer"===t.recordingMode&&o&&t.setInitialState(),!hd(t,n,o))return!0;if(!o)return!1;const e=t.session;if(function(t,e){if(!e||!t.session||0!==t.session.segmentId)return;hd(t,function(t){const e=t.getOptions();return{type:Cu.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1)}(t,o),"buffer"===t.recordingMode&&e&&t.eventBuffer){const n=t.eventBuffer.getEarliestTimestamp();n&&(e.started=n,t.getOptions().stickySession&&ad(e))}return e?.previousSessionId||"session"===t.recordingMode&&t.flush(),!0}))}}async function qd({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=function({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${r}${t}`;else{const e=(new TextEncoder).encode(r);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=qt(),p=Ut(),h=d?.getTransport(),f=d?.getDsn();if(!(d&&h&&f&&s.sampled))return kt({});const m={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:e,segment_id:n,replay_type:s.sampled},g=await async function({client:t,scope:e,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",r,o);const s=await Yn(t.getOptions(),r,o,e,t,Ht());if(!s)return null;t.emit("postprocessEvent",s,o),s.platform=s.platform||"javascript";const i=t.getSdkMetadata(),{name:a,version:c}=i?.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},s}({scope:p,client:d,replayId:e,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay"),kt({});delete g.sdkProcessingMetadata;const _=function(t,e,n,r){return on(_n(t,gn(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}(g,i,f,d.getOptions().tunnel);let y;try{y=await h.send(_)}catch(t){const e=new Error(oc);try{e.cause=t}catch{}throw e}if("number"==typeof y.statusCode&&(y.statusCode<200||y.statusCode>=300))throw new Vd(y.statusCode);const v=Rr({},y);if(Mr(v,"replay"))throw new Yd(v);return y}class Vd extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Yd extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Xd(t,e={count:0,interval:5e3}){const{recordingData:n,onError:r}=t;if(n.length)try{return await qd(t),!0}catch(n){if(n instanceof Vd||n instanceof Yd)throw n;if(Qn("Replays",{_retryCount:e.count}),r&&r(n),e.count>=3){const t=new Error(`${oc} - max retries exceeded`);try{t.cause=n}catch{}throw t}return e.interval*=++e.count,new Promise(((n,r)=>{Ui((async()=>{try{await Xd(t,e),n(!0)}catch(t){r(t)}}),e.interval)}))}}const Gd="__THROTTLED";function Kd(t,e,n){const r=new Map;let o=!1;return(...s)=>{const i=Math.floor(Date.now()/1e3);if((t=>{const e=t-n;r.forEach(((t,n)=>{n<e&&r.delete(n)}))})(i),[...r.values()].reduce(((t,e)=>t+e),0)>=e){const t=o;return o=!0,t?"__SKIPPED":Gd}o=!1;const a=r.get(i)||0;return r.set(i,a+1),t(...s)}}class Jd{constructor({options:t,recordingOptions:e}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},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=e,this._options=t,this._debouncedFlush=function(t,e,n){let r,o,s;const i=n?.maxWait?Math.max(n.maxWait,e):0;function a(){return c(),r=t(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function u(){return o&&clearTimeout(o),o=Ui(a,e),i&&void 0===s&&(s=Ui(a,i)),r}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==s?a():r},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Kd(((t,e)=>function(t,e,n){return md(t,e)?fd(t,e,n):Promise.resolve(null)}(this,t,e)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;o&&(this.clickDetector=new Tl(this,o)),this._handleVisibilityChange=()=>{"visible"===nc.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
3dTasks()},this._handleWindowBlur=()=>{const t=Ol({category:"ui.blur"});this._doChangeToBackgroundTasks(t)},this._handleWindowFocus=()=>{const t=Ol({category:"ui.focus"});this._doChangeToForegroundTasks(t)},this._handleKeyboardEvent=t=>{Bl(this,t)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(t){this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:e,sessionSampleRate:n}=this._options,r=e<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(t),this.session&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording()))}start(){if(this._isEnabled&&"session"===this.recordingMode)return;if(this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();const t=pd({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)return;const t=pd({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=gl({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Wd(this),.../iPhone|iPad|iPod/i.test(zd?.userAgent??"")||/Macintosh/i.test(zd?.userAgent??"")&&zd?.maxTouchPoints&&zd?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:e}={}){if(this._isEnabled){this._isEnabled=!1;try{wd(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,od(this)}catch(t){this.handleException(t)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();await this.flushImmediate();const n=this.stopRecording();t&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(e),this._updateSessionActivity(e),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&ud(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const t=`${nc.location.pathname}${nc.location.hash}${nc.location.search}`,e=`${nc.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.
3initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){const n=this._throttledAddEvent(t,e);if(n===Gd){const t=Ol({category:"replay.throttled"});this.addUpdate((()=>!hd(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}})))}return n}getCurrentRoute(){const t=this.lastActiveSpan||De(),e=t&&Le(t),n=(e&&Ce(e).data||{})[Yt];if(e&&n&&["route","custom"].includes(n))return Ce(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=nd({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const e=this._options.errorSampleRate>0,n=pd({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:e});this.session=n}_checkSession(){if(!this.session)return!1;const t=this.session;return!dd(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{nc.document.addEventListener("visibilitychange",this._handleVisibilityChange),nc.addEventListener("blur",this._handleWindowBlur),nc.addEventListener("focus",this._handleWindowFocus),nc.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(t,{autoFlushOnFeedback:e}){const n=qt();Oi(Pl(t)),Ni(Cd(t)),Sd(t),Hd(t),ur(xd(t)),n&&(n.on("beforeSendEvent",bd(t)),n.on("afterSendEvent",vd(t)),n.on("createDsc",(e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&t.checkAndHandleExpiredSession()&&(e.replay_id=n)})),n.on("spanStart",(e=>{t.lastActiveSpan=e})),n.on("spanEnd",(e=>{t.lastActiveSpan=e})),n.on("beforeSendFeedback",(async(n,r)=>{const o=t.getSessionId();r?.includeReplay&&t.isEnabled()&&o&&n.contexts?.feedback&&("api"===n.contexts.feedback.source&&e&&await t.flush(),n.contexts.feedback.replay_id=o)})),e&&n.on("openFeedbackWidget",(async()=>{await t.flush()})))}(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=function(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n({entries:t}){t.forEach(e)}const r=[];return["navigation","paint","resource"].forEach((t=>{r.push(ri(t,n))})),r.push(ti(Ul(zl,t)),Qs(Ul(ql,t)),ei(Ul(Vl,t)),ni(Ul(Yl,t))),()=>{r.forEach((t=>t()))}}(this)}_removeListeners(){try{nc.document.removeEventListener("visibilitychange",this._handleVisibilityChange),nc.removeEventListener("blur",this._handleWindowBlur),nc.removeEventListener("focus",this._handleWindowFocus),nc.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;ld(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;this.checkAndHandleExpiredSession()&&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:Cu.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){let t=(e=this.performanceEntries,e.map(Hl).filter(
3Boolean)).concat(this.replayPerformanceEntries);var e;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const e=this._context.initialTimestamp/1e3;t=t.filter((t=>t.start>=e))}return Promise.all(Ed(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e||this._requiresManualStart)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(this.session&&this.eventBuffer&&t&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(t){try{return Promise.all(Ed(t,[jd(nc.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer&&t===this.getSessionId())))try{this._updateInitialTimestampFromEventBuffer();const e=Date.now();if(e-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await Xd({replayId:t,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:e,onError:t=>this.handleException(t)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});const e=qt();if(e){const n=t instanceof Yd?"ratelimit_backoff":"send_error";e.recordDroppedEvent(n,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession())return;if(!this.session)return;const e=this.session.started,n=Date.now()-e;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return void(r&&this._debouncedFlush());const s=this.eventBuffer;s&&0===this.session.segmentId&&s.hasCheckout;const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(t){this.handleException(t)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&ad(this.session)}_onMutationHandler(t){const e=t.length,n=this._options.mutationLimit,r=n&&e>n;if(e>this._options.mutationBreadcrumbLimit||r){const t=Ol({category:"replay.mutations",data:{count:e,limit:r}});this._createCustomBreadcrumb(t)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function Zd(t,e){return[...t,...e].join(",")}const Qd='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',tp=["content-length","content-type","accept"];let ep=!1;const np=t=>new rp(t);class rp{constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:s=!0,workerUrl:i,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder"],unmask:k=[],block:w=[],unblock:x=[],ignore:E=[],maskFn:C,beforeAddRecordingEvent:I,beforeErrorSampling:T,onError:M}={}){this.name="Replay";const R=function({mask:t,unmask:e,block:n,unblock:r,ignore:o}){return{maskTextSelector:Zd(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Zd(e,[]),blockSelector:Zd(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Zd(r,[]),ignoreSelector:Zd(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:k,block:w,unblock:x,ignore:E});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(t,e,n)=>function({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return r?o.unmaskTextSelector&&t.matches(o.unmaskTextSelector)?s:n.includes(e)||"value"===e&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s:s}({maskAttributes:S,maskAllText:c,privacyOptions:R,key:t,value:e,el:n}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch(t){}},recordCrossOriginIframes:Boolean(a.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,cc),stickySession:o,useCompression:s,workerUrl:i,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,
3networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:op(y),networkResponseHeaders:op(v),beforeAddRecordingEvent:I,beforeErrorSampling:T,onError:M,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Qd}`:Qd),this._isInitialized&&Vo())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ep}set _isInitialized(t){ep=t}afterAllSetup(t){Vo()&&!this._replay&&(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const e=function(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...ut(t)},o=le(n.replaysSessionSampleRate),s=le(n.replaysOnErrorSampleRate);null==o&&null==s&&d((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=o&&(r.sessionSampleRate=o);null!=s&&(r.errorSampleRate=s);return r}(this._initialOptions,t);this._replay=new Jd({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const e=t.getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch{}}}function op(t){return[...tp,...t.map((t=>t.toLowerCase()))]}function sp(){return qt()?.getIntegrationByName("Replay")}var ip=Object.defineProperty,ap=(t,e,n)=>((t,e,n)=>e in t?ip(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class cp{constructor(){ap(this,"idNodeMap",new Map),ap(this,"nodeMetaMap",new WeakMap)}getId(t){if(!t)return-1;const e=this.getMeta(t)?.id;return e??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function up(t,e,n=1/0,r=0){return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:up(t.parentNode,e,n,r+1):-1}function lp(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"==typeof t){if(r.matches(`.${t}`))return!0}else if(function(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}(r,t))return!0;return!(!e||!r.matches(e))}catch{return!1}}}const dp="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let pp={map:{},getId(){return console.error(dp),-1},getNode(){return console.error(dp),null},removeNodeFromMap(){console.error(dp)},has(){return console.error(dp),!1},reset(){console.error(dp)}};function hp(t,e,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,r?n:{set(t){vp((()=>{n.set.call(this,t)}),0),s&&s.set&&s.set.call(this,t)}}),()=>hp(t,e,s||{},!0)}function fp(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=o,()=>{t[e]=r}}catch{return()=>{}}}function mp(t,e,n,r,o){if(!t)return!1;const s=function(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}(t);if(!s)return!1;const i=lp(e,n);if(!o){const t=r&&s.matches(r);return i(s)&&!t}const a=up(s,i);let c=-1;return!(a<0)&&(r&&(c=up(s,lp(null,r))),a>-1&&c<0||a<c)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(pp=new Proxy(pp,{get(t,e,n){return"map"===e&&console.error(dp),Reflect.get(t,e,n)}})),Date.now().toString();const gp={};function _p(t){const e=gp[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch(t){}return gp[t]=r.bind(window)}function yp(...t){return _p("requestAnimationFrame")(...t)}function vp(...t){return _p("setTimeout")(...t)}var bp=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(bp||{});let Sp;const kp=t=>{if(!Sp)return t;return(...e)=>{try{return t(...e)}catch(t){if(Sp&&!0===Sp(t))return()=>{};throw t}}};for(var wp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
3+/",xp="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ep=0;Ep<wp.length;Ep++)xp[wp.charCodeAt(Ep)]=Ep;const Cp=new Map;const Ip=(t,e,n)=>{if(!t||!Rp(t,e)&&"object"!=typeof t)return;const r=function(t,e){let n=Cp.get(t);return n||(n=new Map,Cp.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name);let o=r.indexOf(t);return-1===o&&(o=r.length,r.push(t)),o};function Tp(t,e,n){if(t instanceof Array)return t.map((t=>Tp(t,e,n)));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){return{rr_type:t.constructor.name,args:[Object.values(t)]}}if(t instanceof ArrayBuffer){return{rr_type:t.constructor.name,base64:function(t){var e,n=new Uint8Array(t),r=n.length,o="";for(e=0;e<r;e+=3)o+=wp[n[e]>>2],o+=wp[(3&n[e])<<4|n[e+1]>>4],o+=wp[(15&n[e+1])<<2|n[e+2]>>6],o+=wp[63&n[e+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(t)}}if(t instanceof DataView){return{rr_type:t.constructor.name,args:[Tp(t.buffer,e,n),t.byteOffset,t.byteLength]}}if(t instanceof HTMLImageElement){const e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}if(t instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:t.toDataURL()}}if(t instanceof ImageData){return{rr_type:t.constructor.name,args:[Tp(t.data,e,n),t.width,t.height]}}if(Rp(t,e)||"object"==typeof t){return{rr_type:t.constructor.name,index:Ip(t,e,n)}}return t}const Mp=(t,e,n)=>t.map((t=>Tp(t,e,n))),Rp=(t,e)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((t=>"function"==typeof e[t]));return Boolean(n.find((n=>t instanceof e[n])))};function Ap(t,e,n,r,o){const s=[];try{const i=fp(t.HTMLCanvasElement.prototype,"getContext",(function(t){return function(s,...i){if(!mp(this,e,n,r,!0)){const t=function(t){return"experimental-webgl"===t?"webgl":t}(s);if("__context"in this||(this.__context=t),o&&["webgl","webgl2"].includes(t))if(i[0]&&"object"==typeof i[0]){const t=i[0];t.preserveDrawingBuffer||(t.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return t.apply(this,[s,...i])}}));s.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach((t=>t()))}}function Op(t,e,n,r,o,s,i,a){const c=[],u=Object.getOwnPropertyNames(t);for(const i of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof t[i])continue;const u=fp(t,i,(function(t){return function(...c){const u=t.apply(this,c);if(Ip(u,a,this),"tagName"in this.canvas&&!mp(this.canvas,r,o,s,!0)){const t=Mp(c,a,this),r={type:e,property:i,args:t};n(this.canvas,r)}return u}}));c.push(u)}catch{const r=hp(t,i,{set(t){n(this.canvas,{type:e,property:i,args:[t],setter:!0})}});c.push(r)}return c}class Lp{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(t,e)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)};const{sampling:e="all",win:n,blockClass:r,blockSelector:o,unblockSelector:s,maxCanvasSize:i,recordCanvas:a,dataURLOptions:c,errorHandler:u}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,u&&(Sp=u),(a&&"number"==typeof e||t.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t.enableManualSnapshot||kp((()=>{a&&"all"===e&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof e&&this.initCanvasFPSObserver(e,r,o,s,i,{dataURLOptions:c})}))()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEac
3h((t=>{try{t()}catch(t){}})),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:e="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:s,enableManualSnapshot:i}=this.options;if(!this.windowsSet.has(t)){if(i)return this.windowsSet.add(t),void this.windows.push(new WeakRef(t));kp((()=>{if(s&&"all"===e&&this.initCanvasMutationObserver(t,n,r,o),s&&"number"==typeof e){const e=Ap(t,n,r,o,!0);this.restoreHandlers.push((()=>{e()}))}}))(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){const t=new Worker(function(){const t=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(t)}());return t.onmessage=t=>{const e=t.data,{id:n}=e;if(this.snapshotInProgressMap.set(n,!1),!("base64"in e))return;const{base64:r,type:o,width:s,height:i}=e;this.mutationCb({id:n,type:bp["2D"],commands:[{property:"clearRect",args:[0,0,s,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,s,i]}]})},t}initCanvasFPSObserver(t,e,n,r,o,s){const i=this.takeSnapshot(!1,t,e,n,r,o,s.dataURLOptions);this.restoreHandlers.push((()=>{cancelAnimationFrame(i)}))}initCanvasMutationObserver(t,e,n,r){const o=Ap(t,e,n,r,!1),s=function(t,e,n,r,o){const s=[],i=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const a of i)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[a])continue;const i=fp(e.CanvasRenderingContext2D.prototype,a,(function(s){return function(...i){return mp(this.canvas,n,r,o,!0)||vp((()=>{const n=Mp(i,e,this);t(this.canvas,{type:bp["2D"],property:a,args:n})}),0),s.apply(this,i)}}));s.push(i)}catch{const n=hp(e.CanvasRenderingContext2D.prototype,a,{set(e){t(this.canvas,{type:bp["2D"],property:a,args:[e],setter:!0})}});s.push(n)}return()=>{s.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,n,r),i=function(t,e,n,r,o,s){const i=[];return i.push(...Op(e.WebGLRenderingContext.prototype,bp.WebGL,t,n,r,o,0,e)),void 0!==e.WebGL2RenderingContext&&i.push(...Op(e.WebGL2RenderingContext.prototype,bp.WebGL2,t,n,r,o,0,e)),()=>{i.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,n,r,this.mirror);this.restoreHandlers.push((()=>{o(),s(),i()}))}snapshot(t){const{options:e}=this,n=this.takeSnapshot(!0,"all"===e.sampling?2:e.sampling||2,e.blockClass,e.blockSelector,e.unblockSelector,e.maxCanvasSize,e.dataURLOptions,t);this.restoreHandlers.push((()=>{cancelAnimationFrame(n)}))}takeSnapshot(t,e,n,r,o,s,i,a){const c=1e3/e;let u;const l=t=>{if(t)return[t];const e=[],s=t=>{t.querySelectorAll("canvas").forEach((t=>{mp(t,n,r,o,!0)||e.push(t)}))};for(const t of this.windows){const e=t.deref();let n;try{n=e&&e.document}catch{}n&&s(n)}for(const t of this.shadowDoms){const e=t.deref();e&&s(e)}return e},d=e=>{this.windows.length&&(this.lastSnapshotTime&&e-this.lastSnapshotTime<c?u=yp(d):(this.lastSnapshotTime=e,l(a).forEac
3h((e=>{if(!this.mirror.hasNode(e))return;const n=this.mirror.getId(e);if(!this.snapshotInProgressMap.get(n)&&e.width&&e.height){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){const t=e.getContext(e.__context);!1===t?.getContextAttributes()?.preserveDrawingBuffer&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then((t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:i,maxCanvasSize:s},[t])})).catch((t=>{kp((()=>{throw t}))()}))}})),t||(u=yp(d))))};return u=yp(d),u}startPendingCanvasMutationFlusher(){yp((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,yp(t)};yp(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((t,e)=>{const n=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,n)})),yp((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||-1===e)return;const r=n.map((t=>{const{type:e,...n}=t;return n})),{type:o}=n[0];this.mutationCb({id:e,type:o,commands:r}),this.pendingCanvasMutations.delete(t)}}try{if(2!==Array.from([1],(t=>2*t))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=t.contentWindow?.Array.from||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}var Dp;new cp,function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(Dp||(Dp={}));const Np={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},Pp=1280,Fp=(t={})=>{const[e,n]=t.maxCanvasSize||[],r={quality:t.quality||"medium",enableManualSnapshot:t.enableManualSnapshot,maxCanvasSize:[e?Math.min(e,Pp):Pp,n?Math.min(n,Pp):Pp]};let o;const s=new Promise((t=>o=t));return{name:"ReplayCanvas",getOptions(){const{quality:t,enableManualSnapshot:e,maxCanvasSize:n}=r;return{enableManualSnapshot:e,recordCanvas:!0,getCanvasManager:t=>{const r=new Lp({...t,enableManualSnapshot:e,maxCanvasSize:n,errorHandler:t=>{try{"object"==typeof t&&(t.__rrweb__=!0)}catch(t){}}});return o(r),r},...Np[t||"medium"]||Np.medium}},async snapshot(t){(await s).snapshot(t)}}},Bp=o,$p=Bp.document,Up=Bp.navigator,Hp="Report a Bug",jp=(t,e={includeReplay:!0})=>{if(!t.message)throw new Error("Unable to submit feedback with empty message");const n=qt();if(!n)throw new Error("No client setup, cannot send feedback.");t.tags&&Object.keys(t.tags).length&&Ut().setTags(t.tags);const r=Do({source:"api",url:X(),...t},e);return new Promise(((t,e)=>{const o=setTimeout((()=>e("Unable to determine if Feedback was correctly sent.")),5e3),s=n.on("afterSendEvent",((n,i)=>{if(n.event_id===r)return clearTimeout(o),s(),i&&"number"==typeof i.statusCode&&i.statusCode>=200&&i.statusCode<300?t(r):i&&"number"==typeof i.statusCode&&0===i.statusCode?e("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):i&&"number"==typeof i.statusCode&&403===i.statusCode?e("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):e("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")}))}))};function zp(t,e){return{...t,...e,tags:{...t.tags,...e.tags},onFormOpen:()=>{e.onFormOpen?.(),t.onFormOpen?.()},onFormClose:()=>{e.onFormClose?.(),t.onFormClose?.()},onSubmitSuccess:n=>{e.onSubmitSuccess?.(n),t.onSubmitSuccess?.(n)},onSubmitError:n=>{e.onSubmitError?.(n),t.onSubmitError?.(n)},onFormSubmitted:()=>{e.onFormSubmitted?.(),t.onFormSubmitted?.()},themeDark:{...t.themeDark,...e.themeDark},themeLight:{...t.themeLight,...e.themeLight}}}function Wp(t,e){return Object.entries(e).forEach((([e,n])=>{t.setAttributeNS(null,e,n)})),t}function qp({triggerLabel:t,triggerAriaLabel:e,shadow:n,styleNonce:r}){const o=$p.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=e||t||Hp,o.appendChild(function(){const t=t=>Bp.document.createElementNS("http://www.w3.org/2000/svg",t),e=Wp(t("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=Wp(t("g"),{clipPath:"url(#clip0_57_80)"}),r=Wp(t("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.45
356 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});e.appendChild(n).appendChild(r);const o=t("defs"),s=Wp(t("clipPath"),{id:"clip0_57_80"}),i=Wp(t("rect"),{width:"20",height:"20",fill:"white"});return s.appendChild(i),o.appendChild(s),e.appendChild(o).appendChild(s).appendChild(i),e}()),t){const e=$p.createElement("span");e.appendChild($p.createTextNode(t)),o.appendChild(e)}const s=function(t){const e=$p.createElement("style");return e.textContent='\n.widget__actor {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: var(--page-margin);\n  inset: var(--actor-inset);\n\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  padding: 16px;\n\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  line-height: 1.14em;\n  text-decoration: none;\n\n  background: var(--actor-background, var(--background));\n  border-radius: var(--actor-border-radius, 1.7em/50%);\n  border: var(--actor-border, var(--border));
3\n  box-shadow: var(--actor-box-shadow, var(--box-shadow));\n  color: var(--actor-color, var(--foreground));\n  fill: var(--actor-color, var(--foreground));\n  cursor: pointer;\n  opacity: 1;\n  transition: transform 0.2s ease-in-out;\n  transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n  transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n  background: var(--actor-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n  width: 1.14em;\n  height: 1.14em;\n}\n\n@media (max-width: 600px) {\n  .widget__actor span {\n    display: none;\n  }\n}\n',t&&e.setAttribute("nonce",t),e}(r);return{el:o,appendToDom(){n.appendChild(s),n.appendChild(o)},removeFromDom(){n.removeChild(o),n.removeChild(s)},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const Vp="rgba(88, 74, 192, 1)",Yp={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:Vp,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},Xp={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:Vp,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function Gp(t){return`\n  --foreground: ${t.foreground};\n  --background: ${t.background};\n  --accent-foreground: ${t.accentForeground};\n  --accent-background: ${t.accentBackground};\n  --success-color: ${t.successColor};\n  --error-color: ${t.errorColor};\n  --border: ${t.border};\n  --box-shadow: ${t.boxShadow};\n  --outline: ${t.outline};\n  --interactive-filter: ${t.interactiveFilter};\n  `}const Kp=({lazyLoadIntegration:t,getModalIntegration:e,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:o=!0,showBranding:s=!0,isEmailRequired:i=!1,isNameRequired:a=!1,showEmail:c=!0,showName:u=!0,enableScreenshot:l=!0,useSentryUser:d={email:"email",name:"username"},_experiments:p={},tags:h,styleNonce:f,scriptNonce:m,colorScheme:g="system",themeLight:_={},themeDark:y={},addScreenshotButtonLabel:v="Add a screenshot",cancelButtonLabel:b="Cancel",confirmButtonLabel:S="Confirm",emailLabel:k="Email",emailPlaceholder:w="[email protected]",formTitle:x="Report a Bug",isRequiredLabel:E="(required)",messageLabel:C="Description",messagePlaceholder:I="What's the bug? What did you expect?",nameLabel:T="Name",namePlaceholder:M="Your Name",removeScreenshotButtonLabel:R="Remove screenshot",submitButtonLabel:A="Send Bug Report",successMessageText:O="Thank you for your report!",triggerLabel:L=Hp,triggerAriaLabel:D="",onFormOpen:N,onFormClose:P,onSubmitSuccess:F,onSubmitError:B,onFormSubmitted:$}={})=>{const U={id:r,autoInject:o,showBranding:s,isEmailRequired:i,isNameRequired:a,showEmail:c,showName:u,enableScreenshot:l,useSentryUser:d,tags:h,styleNonce:f,scriptNonce:m,colorScheme:g,themeDark:y,themeLight:_,triggerLabel:L,triggerAriaLabel:D,cancelButtonLabel:b,submitButtonLabel:A,confirmButtonLabel:S,formTitle:x,emailLabel:k,emailPlaceholder:w,messageLabel:C,messagePlaceholder:I,nameLabel:T,namePlaceholder:M,successMessageText:O,isRequiredLabel:E,addScreenshotButtonLabel:v,removeScreenshotButtonLabel:R,onFormClose:P,onFormOpen:N,onSubmitError:B,onSubmitSuccess:F,onFormSubmitted:$,_experiments:p};let H=null,j=[];const z=t=>{if(!H){const e=$p.createElement("div");e.id=String(t.id),$p.body.appendChild(e),H=e.attachShadow({mode:"open"}),H.appendChild(function({colorScheme:t,themeDark:e,themeLight:n,styleNonce:r}){const o=$p.createElement("style");return o.textContent=`\n:host {\n  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n  --font-size: 14px;\n  --z-index: 100000;\n\n  --page-margin: 16px;\n  --inset: auto 0 0 auto;\n  --actor-inset: var(--inset);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ${"system"!==t?"color-scheme: only light;":""}\n\n  ${Gp("dark"===t?{...Xp,...e}:{...Yp,...n})}\n}\n\n${"system"===t?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    ${Gp({...Xp,...e})}\n  }\n}`:""}\n}\n`,r&&o.setAttribute("nonce",r),o}(t))}return H},W=async r=>{const o=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Up.userAgent)||/Macintosh/i.test(Up.userAgent)&&Up.maxTouchPoints&&Up.maxTouchPoints>1||!isSecureContext);let s,i;try{s=(e?e():await t("feedbackModalIntegration",m))(),br(s)}catch{throw new Error("[Feedback] Missing feedback modal integration!")}try{const e=o?n?n():await t("feedbackScreenshotIntegration",m):void 0;e&&(i=e(),br(i))}catch{}const a=s.createDialog({options:{...r,onFormClose:()=>{a?.close(),r.onFormClose?.()},onFormSubmitted:()=>{a?.close(),r.onFormSubmitted?.()}},screenshotIntegration:i,sendFeedback:jp,shadow:z(r)});return a},q=(t,e={})=>{const n=zp(U,e),r="string"==typeof t?$p.querySelector(t):"function"==typeof t.addEventListener?t:null;if(!r)throw new Error("Unable to attach to target element");let o=null;const s=async()=>{o||(o=await W({...n,onFormSubmitted:()=>{o?.removeFromDom(),n.onFormSubmitted?.()}})),o.appendToDom(),o.open()};
3r.addEventListener("click",s);const i=()=>{j=j.filter((t=>t!==i)),o?.removeFromDom(),o=null,r.removeEventListener("click",s)};return j.push(i),i},V=(t={})=>{const e=zp(U,t),n=z(e),r=qp({triggerLabel:e.triggerLabel,triggerAriaLabel:e.triggerAriaLabel,shadow:n,styleNonce:f});return q(r.el,{...e,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){Vo()&&U.autoInject&&("loading"===$p.readyState?$p.addEventListener("DOMContentLoaded",(()=>V().appendToDom())):V().appendToDom())},attachTo:q,createWidget(t={}){const e=V(zp(U,t));return e.appendToDom(),e},async createForm(t={}){return W(zp(U,t))},remove(){H&&(H.parentElement?.remove(),H=null),j.forEach((t=>t())),j=[]}}};function Jp(){return qt()?.getIntegrationByName("Feedback")}var Zp,Qp,th,eh,nh,rh,oh,sh={},ih=[],ah=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ch=Array.isArray;function uh(t,e){for(var n in e)t[n]=e[n];return t}function lh(t){var e=t.parentNode;e&&e.removeChild(t)}function dh(t,e,n){var r,o,s,i={};for(s in e)"key"==s?r=e[s]:"ref"==s?o=e[s]:i[s]=e[s];if(arguments.length>2&&(i.children=arguments.length>3?Zp.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===i[s]&&(i[s]=t.defaultProps[s]);return ph(t,i,r,o,null)}function ph(t,e,n,r,o){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++th:o,__i:-1,__u:0};return null==o&&null!=Qp.vnode&&Qp.vnode(s),s}function hh(t){return t.children}function fh(t,e){this.props=t,this.context=e}function mh(t,e){if(null==e)return t.__?mh(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?mh(t):null}function gh(t,e,n){var r,o=t.__v,s=o.__e,i=t.__P;if(i)return(r=uh({},o)).__v=o.__v+1,Qp.vnode&&Qp.vnode(r),Ih(i,r,o,t.__n,void 0!==i.ownerSVGElement,32&o.__u?[s]:null,e,null==s?mh(o):s,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=s&&_h(r),r}function _h(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return _h(t)}}function yh(t){(!t.__d&&(t.__d=!0)&&eh.push(t)&&!vh.__r++||nh!==Qp.debounceRendering)&&((nh=Qp.debounceRendering)||rh)(vh)}function vh(){var t,e,n,r=[],o=[];for(eh.sort(oh);t=eh.shift();)t.__d&&(n=eh.length,e=gh(t,r,o)||e,0===n||eh.length>n?(Th(r,e,o),o.length=r.length=0,e=void 0,eh.sort(oh)):e&&Qp.__c&&Qp.__c(e,ih));e&&Th(r,e,o),vh.__r=0}function bh(t,e,n,r,o,s,i,a,c,u,l){var d,p,h,f,m,g=r&&r.__k||ih,_=e.length;for(n.__d=c,function(t,e,n){var r,o,s,i,a,c=e.length,u=n.length,l=u,d=0;for(t.__k=[],r=0;r<c;r++)null!=(o=t.__k[r]=null==(o=e[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?ph(null,o,null,null,o):ch(o)?ph(hh,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?ph(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,a=kh(o,n,i=r+d,l),o.__i=a,s=null,-1!==a&&(l--,(s=n[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&d--,"function"!=typeof o.type&&(o.__u|=65536)):a!==i&&(a===i+1?d++:a>i?l>c-i?d+=a-i:d--:d=a<i&&a==i-1?a-i:0,a!==r+d&&(o.__u|=65536))):(s=n[r])&&null==s.key&&s.__e&&(s.__e==t.__d&&(t.__d=mh(s)),Rh(s,s,!1),n[r]=null,l--);if(l)for(r=0;r<u;r++)null!=(s=n[r])&&0==(131072&s.__u)&&(s.__e==t.__d&&(t.__d=mh(s)),Rh(s,s))}(n,e,g),c=n.__d,d=0;d<_;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(p=-1===h.__i?sh:g[h.__i]||sh,h.__i=d,Ih(t,h,p,o,s,i,a,c,u,l),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Mh(p.ref,null,h),l.push(h.ref,h.__c||f,h)),null==m&&null!=f&&(m=f),65536&h.__u||p.__k===h.__k?c=Sh(h,c,t):"function"==typeof h.type&&void 0!==h.__d?c=h.__d:f&&(c=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function Sh(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=Sh(r[o],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}
vendor: 5,322 bytes, line 3
3while(null!=e&&8===e.nodeType);return e}function kh(t,e,n,r){var o=t.key,s=t.type,i=n-1,a=n+1,c=e[n];if(null===c||c&&o==c.key&&s===c.type)return n;if(r>(null!=c&&0==(131072&c.__u)?1:0))for(;i>=0||a<e.length;){if(i>=0){if((c=e[i])&&0==(131072&c.__u)&&o==c.key&&s===c.type)return i;i--}if(a<e.length){if((c=e[a])&&0==(131072&c.__u)&&o==c.key&&s===c.type)return a;a++}}return-1}function wh(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||ah.test(e)?n:n+"px"}function xh(t,e,n,r,o){var s;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||wh(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||wh(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])s=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r?n.u=r.u:(n.u=Date.now(),t.addEventListener(e,s?Ch:Eh,s)):t.removeEventListener(e,s?Ch:Eh,s);else{if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function Eh(t){if(this.l){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(Qp.event?Qp.event(t):t)}}function Ch(t){if(this.l)return this.l[t.type+!0](Qp.event?Qp.event(t):t)}function Ih(t,e,n,r,o,s,i,a,c,u){var l,d,p,h,f,m,g,_,y,v,b,S,k,w,x,E=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=e.__e=n.__e]),(l=Qp.__b)&&l(e);t:if("function"==typeof E)try{if(_=e.props,y=(l=E.contextType)&&r[l.__c],v=l?y?y.props.value:l.__:r,n.__c?g=(d=e.__c=n.__c).__=d.__E:("prototype"in E&&E.prototype.render?e.__c=d=new E(_,v):(e.__c=d=new fh(_,v),d.constructor=E,d.render=Ah),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=v,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=uh({},d.__s)),uh(d.__s,E.getDerivedStateFromProps(_,d.__s))),h=d.props,f=d.state,d.__v=e,p)null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==E.getDerivedStateFromProps&&_!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,v)||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&i.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,v),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,m)}))}if(d.context=v,d.props=_,d.__P=t,d.__e=!1,S=Qp.__r,k=0,"prototype"in E&&E.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(e),l=d.render(d.props,d.state,d.context),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[]}else do{d.__d=!1,S&&S(e),l=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=uh(uh({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,f)),bh(t,ch(x=null!=l&&l.type===hh&&null==l.key?l.props.children:l)?x:[x],e,n,r,o,s,i,a,c,u),d.base=e.__e,e.__u&=-161,d.__h.length&&i.push(d),g&&(d.__E=d.__=null)}catch(t){e.__v=null,c||null!=s?(e.__e=a,e.__u|=c?160:32,s[s.indexOf(a)]=null):(e.__e=n.__e,e.__k=n.__k),Qp.__e(t,e,n)}else null==s&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=function(t,e,n,r,o,s,i,a,c){var u,l,d,p,h,f,m,g=n.props,_=e.props,y=e.type;if("svg"===y&&(o=!0),null!=s)for(u=0;u<s.length;u++)if((h=s[u])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){t=h,s[u]=null;break}if(null==t){if(null===y)return document.createTextNode(_);t=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),s=null,a=!1}if(null===y)g===_||a&&t.data===_||(t.data=_);else{if(s=s&&Zp.call(t.childNodes),g=n.props||sh,!a&&null!=s)for(g={},u=0;u<t.attributes.length;u++)g[(h=t.attributes[u]).name]=h.value;for(u in g)h=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=h:"key"===u||u in _||xh(t,u,null,h,o));for(u in _)h=_[u],"children"==u?p=h:"dangerouslySetInnerHTML"==u?l=h:"value"==u?f=h:"checked"==u?m=h:"key"===u||a&&"function"!=typeof h||g[u]===h||xh(t,u,h,g[u],o);if(l)a||d&&(l.__html===d.__html||l.__html===t.innerHTML)||(t.innerHTML=l.__html),e.__k=[];else if(d&&(t.innerHTML=""),bh(t,ch(p)?p:[p],e,n,r,o&&"foreignObject"!==y,s,i,s?s[0]:n.__k&&mh(n,0),a,c),null!=s)for(u=s.length;u--;)null!=s[u]&&lh(s[u]);a||(u="value",void 0!==f&&(f!==t[u]||"progress"===y&&!f||"option"===y&&f!==g[u])&&xh(t,u,f,g[u],!1),u="checked",void 0!==m&&m!==t[u]&&xh(t,u,m,g[u],!1))}return t}(n.__e,e,n,r,o,s,i,c,u);(l=Qp.diffed)&&l(e)}function Th(t,e,n){for(var r=0;r<n.length;r++)Mh(n[r],n[++r],n[++r]);Qp.__c&&Qp.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){Qp.__e(t,e.__v)}}))}function Mh(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){Qp.__e(t,n)}}function Rh(t,e,n){var r,o;
vendor: 1,101 bytes, line 3
3if(Qp.unmount&&Qp.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Mh(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){Qp.__e(t,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&Rh(r[o],e,n||"function"!=typeof t.type);n||null==t.__e||lh(t.__e),t.__=t.__e=t.__d=void 0}function Ah(t,e,n){return this.constructor(t,n)}Zp=ih.slice,Qp={__e:function(t,e,n,r){for(var o,s,i;e=e.__;)if((o=e.__c)&&!o.__)try{if((s=o.constructor)&&null!=s.getDerivedStateFromError&&(o.setState(s.getDerivedStateFromError(t)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),i=o.__d),i)return o.__E=o}catch(e){t=e}throw t}},th=0,fh.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=uh({},this.state),"function"==typeof t&&(t=t(uh({},n),this.props)),t&&uh(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),yh(this))},fh.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),yh(this))},fh.prototype.render=hh,eh=[],rh="function"==typeof Promise?Promise.prototype.then.bind(Prom
3ise.resolve()):setTimeout,oh=function(t,e){return t.__v.__b-e.__v.__b},vh.__r=0;var Oh,Lh,Dh,Nh,Ph=0,Fh=[],Bh=[],$h=Qp,Uh=$h.__b,Hh=$h.__r,jh=$h.diffed,zh=$h.__c,Wh=$h.unmount,qh=$h.__;function Vh(t,e){$h.__h&&$h.__h(Lh,t,Ph||e),Ph=0;var n=Lh.__H||(Lh.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:Bh}),n.__[t]}function Yh(t){return Ph=1,Xh(of,t)}function Xh(t,e,n){var r=Vh(Oh++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):of(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Lh,!Lh.u)){var o=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!s||s.call(this,t,e,n);var i=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),!(!i&&r.__c.props===t)&&(!s||s.call(this,t,e,n))};Lh.u=!0;var s=Lh.shouldComponentUpdate,i=Lh.componentWillUpdate;Lh.componentWillUpdate=function(t,e,n){if(this.__e){var r=s;s=void 0,o(t,e,n),s=r}i&&i.call(this,t,e,n)},Lh.shouldComponentUpdate=o}return r.__N||r.__}function Gh(t,e){var n=Vh(Oh++,4);!$h.__s&&rf(n.__H,e)&&(n.__=t,n.i=e,Lh.__h.push(n))}function Kh(t,e){var n=Vh(Oh++,7);return rf(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function Jh(t,e){return Ph=8,Kh((function(){return t}),e)}function Zh(){for(var t;t=Fh.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ef),t.__H.__h.forEach(nf),t.__H.__h=[]}catch(e){t.__H.__h=[],$h.__e(e,t.__v)}}$h.__b=function(t){Lh=null,Uh&&Uh(t)},$h.__=function(t,e){e.__k&&e.__k.__m&&(t.__m=e.__k.__m),qh&&qh(t,e)},$h.__r=function(t){Hh&&Hh(t),Oh=0;var e=(Lh=t.__c).__H;e&&(Dh===Lh?(e.__h=[],Lh.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=Bh,t.__N=t.i=void 0}))):(e.__h.forEach(ef),e.__h.forEach(nf),e.__h=[],Oh=0)),Dh=Lh},$h.diffed=function(t){jh&&jh(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==Fh.push(e)&&Nh===$h.requestAnimationFrame||((Nh=$h.requestAnimationFrame)||tf)(Zh)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==Bh&&(t.__=t.__V),t.i=void 0,t.__V=Bh}))),Dh=Lh=null},$h.__c=function(t,e){e.some((function(t){try{t.__h.forEach(ef),t.__h=t.__h.filter((function(t){return!t.__||nf(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],$h.__e(n,t.__v)}})),zh&&zh(t,e)},$h.unmount=function(t){Wh&&Wh(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{ef(t)}catch(t){e=t}})),n.__H=void 0,e&&$h.__e(e,n.__v))};var Qh="function"==typeof requestAnimationFrame;function tf(t){var e,n=function(){clearTimeout(r),Qh&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Qh&&(e=requestAnimationFrame(n))}function ef(t){var e=Lh,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),Lh=e}function nf(t){var e=Lh;t.__c=t.__(),Lh=e}function rf(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function of(t,e){return"function"==typeof e?e(t):e}const sf=Object.defineProperty({__proto__:null,useCallback:Jh,useContext:function(t){var e=Lh.context[t.__c],n=Vh(Oh++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(Lh)),e.props.value):t.__},useDebugValue:function(t,e){$h.useDebugValue&&$h.useDebugValue(e?e(t):t)},useEffect:function(t,e){var n=Vh(Oh++,3);!$h.__s&&rf(n.__H,e)&&(n.__=t,n.i=e,Lh.__H.__h.push(n))},useErrorBoundary:function(t){var e=Vh(Oh++,10),n=Yh();return e.__=t,Lh.componentDidCatch||(Lh.componentDidCatch=function(t,r){e.__&&e.__(t,r),n[1](t)}),[n[0],function(){n[1](void 0)}]},useId:function(){var t=Vh(Oh++,11);if(!t.__){for(var e=Lh.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__},useImperativeHandle:function(t,e,n){Ph=6,Gh((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))},useLayoutEffect:Gh,useMemo:Kh,useReducer:Xh,useRef:function(t){return Ph=5,Kh((function(){return{current:t}}),[])},useState:Yh},Symbol.toStringTag,{value:"Module"});function af(){const t=t=>$p.createElementNS("http://www.w3.org/2000/svg",t),e=Wp(t("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Wp(t("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return e.appendChild(n),e}function cf({options:t}){const e=Kh((()=>({__html:af().outerHTML})),[]);return dh("h2",{class:"dialog__header"},dh("span",{class:"dialog__title"},t.formTitle),t.showBranding?dh("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:e}):null)}function uf(t,e){const n=t.get(e);return"string"==typeof n?n.trim():""}function lf({options:t,defaultEmail:e,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:s,onSubmitError:i,showEmail
3:a,showName:c,screenshotInput:u}){const{tags:l,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:h,emailLabel:f,emailPlaceholder:m,isEmailRequired:g,isNameRequired:_,messageLabel:y,messagePlaceholder:v,nameLabel:b,namePlaceholder:S,submitButtonLabel:k,isRequiredLabel:w}=t,[x,E]=Yh(!1),[C,I]=Yh(null),[T,M]=Yh(!1),R=u?.input,[A,O]=Yh(null),L=Jh((t=>{O(t),M(!1)}),[]),D=Jh((t=>{const e=function(t,e){const n=[];return e.isNameRequired&&!t.name&&n.push(e.nameLabel),e.isEmailRequired&&!t.email&&n.push(e.emailLabel),t.message||n.push(e.messageLabel),n}(t,{emailLabel:f,isEmailRequired:g,isNameRequired:_,messageLabel:y,nameLabel:b});return e.length>0?I(`Please enter in the following required fields: ${e.join(", ")}`):I(null),0===e.length}),[f,g,_,y,b]),N=Jh((async t=>{E(!0);try{if(t.preventDefault(),!(t.target instanceof HTMLFormElement))return;const e=new FormData(t.target),n=await(u&&T?u.value():void 0),r={name:uf(e,"name"),email:uf(e,"email"),message:uf(e,"message"),attachments:n?[n]:void 0};if(!D(r))return;try{await o({name:r.name,email:r.email,message:r.message,source:"widget",tags:l},{attachments:r.attachments}),s(r)}catch(t){I(t),i(t)}}finally{E(!1)}}),[u&&T,s,i]);return dh("form",{class:"form",onSubmit:N},R&&T?dh(R,{onError:L}):null,dh("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:x},dh("div",{class:"form__top"},C?dh("div",{class:"form__error-container"}
3,C):null,c?dh("label",{for:"name",class:"form__label"},dh(df,{label:b,isRequiredLabel:w,isRequired:_}),dh("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:_,type:"text"})):dh("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?dh("label",{for:"email",class:"form__label"},dh(df,{label:f,isRequiredLabel:w,isRequired:g}),dh("input",{class:"form__input",defaultValue:e,id:"email",name:"email",placeholder:m,required:g,type:"email"})):dh("input",{"aria-hidden":!0,value:e,name:"email",type:"hidden"}),dh("label",{for:"message",class:"form__label"},dh(df,{label:y,isRequiredLabel:w,isRequired:!0}),dh("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5})),R?dh("label",{for:"screenshot",class:"form__label"},dh("button",{class:"btn btn--default",disabled:x,type:"button",onClick:()=>{O(null),M((t=>!t))}},T?p:d),A?dh("div",{class:"form__error-container"},A.message):null):null),dh("div",{class:"btn-group"},dh("button",{class:"btn btn--primary",disabled:x,type:"submit"},k),dh("button",{class:"btn btn--default",disabled:x,type:"button",onClick:r},h))))}function df({label:t,isRequired:e,isRequiredLabel:n}){return dh("span",{class:"form__label__text"},t,e&&dh("span",{class:"form__label__text--required"},n))}function pf(){const t=t=>Bp.document.createElementNS("http://www.w3.org/2000/svg",t),e=Wp(t("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=Wp(t("g"),{clipPath:"url(#clip0_57_156)"}),r=Wp(t("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Wp(t("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});e.appendChild(n).append(o,r);const s=t("defs"),i=Wp(t("clipPath"),{id:"clip0_57_156"}),a=Wp(t("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),s.appendChild(i),e.appendChild(s).appendChild(i).appendChild(a),e}function hf({open:t,onFormSubmitted:e,...n}){const r=n.options,o=Kh((()=>({__html:pf().outerHTML})),[]),[s,i]=Yh(null),a=Jh((()=>{s&&(clearTimeout(s),i(null)),e()}),[s]),c=Jh((t=>{n.onSubmitSuccess(t),i(setTimeout((()=>{e(),i(null)}),5e3))}),[e]);return dh(hh,null,s?dh("div",{class:"success__position",onClick:a},dh("div",{class:"success__content"},r.successMessageText,dh("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):dh("dialog",{class:"dialog",onClick:r.onFormClose,open:t},dh("div",{class:"dialog__position"},dh("div",{class:"dialog__content",onClick:t=>{t.stopPropagation()}},dh(cf,{options:r}),dh(lf,{...n,onSubmitSuccess:c})))))}const ff=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:t,screenshotIntegration:e,sendFeedback:n,shadow:r})=>{const o=r,s=t.useSentryUser,i=function(){const t=Ut().getUser(),e=Ht().getUser(),n=jt().getUser();return t&&Object.keys(t).length?t:e&&Object.keys(e).length?e:n}(),a=$p.createElement("div"),c=function(t){const e=$p.createElement("style");return e.textContent="\n:host {\n  --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: 0;\n  inset: 0;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0;\n  height: 100vh;\n  width: 100vw;\n\n  color: var(--dialog-color, var(--foreground));\n  fill: var(--dialog-color, var(--foreground));\n  line-height: 1.75em;\n\n  background-color: rgba(0, 0, 0, 0.05);\n  border: none;\n  inset: 0;\n  opacity: 1;\n  transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n  position: fixed;\n  z-index: var(--z-index);\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  display: flex;\n  max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n  .dialog__position {\n    inset: var(--page-margin);\n    padding: 0;\n  }\n}\n\n.dialog__position:has(.editor) {\n  inset: var(--page-margin);\n  padding: 0;\n}\n\n.dialog:not([open]) {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n  transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  padding: var(--dialog-padding, 24px);\n  max-width: 100%;\n  width: 100%;\n  max-height: 100%;\n  overflow: auto;\n\n  background: var(--dialog-background, var(--background));\n  border-radius: var(--dialog-border-radius, 20px);\n  border: var(--dialog-border, var(--border));
3\n  box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n  transform: translate(0, 0) scale(1);\n  transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\n}\n.dialog__title {\n  align-self: center;\n  width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n  .dialog__title {\n    width: auto;\n  }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n  width: auto;\n}\n\n\n.brand-link {\n  display: inline-flex;\n}\n.brand-link:focus-visible {\n  outline: var(--outline);\n}\n\n\n.form {\n  display: flex;\n  overflow: auto;\n  flex-direction: row;\n  gap: 16px;\n  flex: 1 0;\n}\n\n.form fieldset {\n  border: none;\n  margin: 0;\n  padding: 0;\n}\n\n.form__right {\n  flex: 0 0 auto;\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n  width: var(--form-width, 272px);\n}\n\n.form__top {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.form__error-container {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: flex;\n  gap: 4px;\n  align-items: center;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  font-family: inherit;\n  line-height: inherit;\n  background: transparent;\n  box-sizing: border-box;\n  border: var(--input-border, var(--border));\n  border-radius: var(--input-border-radius, 6px);\n  color: var(--input-color, inherit);\n  fill: var(--input-color, inherit);\n  font-size: var(--input-font-size, inherit);\n  font-weight: var(--input-font-weight, 500);\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  opacity: 0.65;\n  color: var(--input-placeholder-color, inherit);\n  filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n  outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.error {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n\n.btn-group {\n  display: grid;\n  gap: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--button-font-size, inherit);\n  font-weight: var(--button-font-weight, 600);\n  padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  color: var(--button-primary-color, var(--accent-foreground));\n  fill: var(--button-primary-color, var(--accent-foreground));\n  background: var(--button-primary-background, var(--accent-background));\n  border: var(--button-primary-border, var(--border));\n  border-radius: var(--button-primary-border-radius, 6px);\n  font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n  color: var(--button-primary-hover-color, var(--accent-foreground));\n  fill: var(--button-primary-hover-color, var(--accent-foreground));\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n  outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-background, var(--background));\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n  outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n  position: fixed;\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  z-index: var(--z-index);\n}\n.success__content {\n  background: var(--success-background, var(--background));\n  border: var(--success-border, var(--border));\n  border-radius: var(--success-border-radius, 1.7em/50%);
3\n  box-shadow: var(--success-box-shadow, var(--box-shadow));\n  font-weight: var(--success-font-weight, 600);\n  color: var(--success-color);\n  fill: var(--success-color);\n  padding: 12px 24px;\n  line-height: 1.75em;\n\n  display: grid;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 6px;\n  cursor: default;\n}\n\n.success__icon {\n  display: flex;\n}\n\n",t&&e.setAttribute("nonce",t),e}(t.styleNonce);let u="";const l={get el(){return a},appendToDom(){o.contains(c)||o.contains(a)||(o.appendChild(c),o.appendChild(a))},removeFromDom(){o.removeChild(a),o.removeChild(c),$p.body.style.overflow=u},open(){p(!0),t.onFormOpen?.(),qt()?.emit("openFeedbackWidget"),u=$p.body.style.overflow,$p.body.style.overflow="hidden"},close(){p(!1),$p.body.style.overflow=u}},d=e?.createInput({h:dh,hooks:sf,dialog:l,options:t}),p=e=>{!function(t,e,n){var r,o,s;Qp.__&&Qp.__(t,e),r=e.__k,o=[],s=[],Ih(e,t=e.__k=dh(hh,null,[t]),r||sh,sh,void 0!==e.ownerSVGElement,r?null:e.firstChild?Zp.call(e.childNodes):null,o,r?r.__e:e.firstChild,!1,s),t.__d=void 0,Th(o,t,s)}(dh(hf,{options:t,screenshotInput:d,showName:t.showName||t.isNameRequired,showEmail:t.showEmail||t.isEmailRequired,defaultName:s&&i&&i[s.name]||"",defaultEmail:s&&i&&i[s.email]||"",onFormClose:()=>{p(!1),t.onFormClose?.()},onSubmit:n,onSubmitSuccess:e=>{p(!1),t.onSubmitSuccess?.(e)},onSubmitError:e=>{t.onSubmitError?.(e)},onFormSubmitted:()=>{t.onFormSubmitted?.()},open:e}),a)};return l}});const mf=33,gf=Bp.devicePixelRatio,_f=t=>({x:Math.min(t.startX,t.endX),y:Math.min(t.startY,t.endY),width:Math.abs(t.startX-t.endX),height:Math.abs(t.startY-t.endY)}),yf=t=>{const e=t.clientHeight,n=t.clientWidth,r=t.width/t.height;let o=e*r,s=e;o>n&&(o=n,s=n/r);return{x:(n-o)/2,y:(e-s)/2,width:o,height:s}};function vf({h:t,hooks:e,options:n}){const r=function({h:t}){return function({top:e,left:n,corner:r,onGrabButton:o}){return t("button",{class:`editor__crop-corner editor__crop-corner--${r} `,style:{top:e,left:n},onMouseDown:t=>{t.preventDefault(),o(t,r)},onClick:t=>{t.preventDefault()}})}}({h:t});return function({action:o,imageBuffer:s,croppingRef:i,cropContainerRef:a,croppingRect:c,setCroppingRect:u,resize:l}){const d=e.useRef({initialX:0,initialY:0}),[p,h]=e.useState(!1),[f,m]=e.useState(!1);e.useEffect((()=>{const t=i.current;if(!t)return;const e=t.getContext("2d");if(!e)return;const n=yf(s),r=_f(c);e.clearRect(0,0,n.width,n.height),"crop"===o&&(e.fillStyle="rgba(0, 0, 0, 0.5)",e.fillRect(0,0,n.width,n.height),e.clearRect(r.x,r.y,r.width,r.height),e.strokeStyle="#ffffff",e.lineWidth=3,e.strokeRect(r.x+1,r.y+1,r.width-2,r.height-2),e.strokeStyle="#000000",e.lineWidth=1,e.strokeRect(r.x+3,r.y+3,r.width-6,r.height-6))}),[c,o]);const g=e.useCallback((t=>e=>{if(!i.current)return;const n=i.current,r=n.getBoundingClientRect(),o=e.clientX-r.x,s=e.clientY-r.y;switch(t){case"top-left":u((t=>({...t,startX:Math.min(Math.max(0,o),t.endX-mf),startY:Math.min(Math.max(0,s),t.endY-mf)})));break;case"top-right":u((t=>({...t,endX:Math.max(Math.min(o,n.width/gf),t.startX+mf),startY:Math.min(Math.max(0,s),t.endY-mf)})));break;case"bottom-left":u((t=>({...t,startX:Math.min(Math.max(0,o),t.endX-mf),endY:Math.max(Math.min(s,n.height/gf),t.startY+mf)})));break;case"bottom-right":u((t=>({...t,endX:Math.max(Math.min(o,n.width/gf),t.startX+mf),endY:Math.max(Math.min(s,n.height/gf),t.startY+mf)})))}}),[]),_=(t,e)=>{h(!0);const n=g(e),r=()=>{$p.removeEventListener("mousemove",n),$p.removeEventListener("mouseup",r),m(!0),h(!1)};$p.addEventListener("mouseup",r),$p.addEventListener("mousemove",n)};return t("div",{class:`editor__crop-container ${"crop"===o?"":"editor__crop-container--inactive"}\n              ${f?"editor__crop-container--move":""}`,ref:a},t("canvas",{onMouseDown:t=>{if(p)return;d.current={initialX:t.clientX,initialY:t.clientY};const e=t=>{const e=i.current;if(!e)return;const n=t.clientX-d.current.initialX,r=t.clientY-d.current.initialY;u((o=>{const s=Math.max(0,Math.min(o.startX+n,e.width/gf-(o.endX-o.startX))),i=Math.max(0,Math.min(o.startY+r,e.height/gf-(o.endY-o.startY))),a=s+(o.endX-o.startX),c=i+(o.endY-o.startY);return d.current.initialX=t.clientX,d.current.initialY=t.clientY,{startX:s,startY:i,endX:a,endY:c}}))},n=()=>{$p.removeEventListener("mousemove",e),$p.removeEventListener("mouseup",n)};$p.addEventListener("mousemove",e),$p.addEventListener("mouseup",n)},ref:i}),"crop"===o&&t("div",null,t(r,{left:c.startX-3,top:c.startY-3,onGrabButton:_,corner:"top-left"}),t(r,{left:c.endX-30+3,top:c.startY-3,onGrabButton:_,corner:"top-right"}),t(r,{left:c.startX-3,top:c.endY-30+3,onGrabButton:_,corner:"bottom-left"}),t(r,{left:c.endX-30+3,top:c.endY-30+3,onGrabButton:_,corner:"bottom-right"})),"crop"===o&&t("div",{style:{left:Math.max(0,c.endX-191),top:Math.max(0,c.endY+8)},class:"editor__crop-btn-group "+(f?"editor__crop-btn-group--active":"")},t("button",{onClick:t=>{t.preventDefault(),i.current&&u({startX:0,startY:0,endX:i.current.width/gf,endY:i.current.height/gf}),m(!1)},class:"btn btn--default"},n.cancelButtonLabel),t("button",{onClick:t=>{t.preventDefault(),function(){const t=$p.createElement("canvas"),e=yf(s),n=_f(c);t.width=n.width*gf,t.height=n.height*gf;const r=t.getContext("2d");r&&s&&r.drawImage(s,n.x/e.width*s.width,n.y/e.height*s.height,n.width/e.width*s.width,n.height/e.he
3ight*s.height,0,0,t.width,t.height);const o=s.getContext("2d");o&&(o.clearRect(0,0,s.width,s.height),s.width=t.width,s.height=t.height,s.style.width=`${n.width}px`,s.style.height=`${n.height}px`,o.drawImage(t,0,0),l())}(),m(!1)},class:"btn btn--primary"},n.confirmButtonLabel)))}}function bf(t){const e=$p.createElement("style"),n="#1A141F",r="#302735";return e.textContent=`\n.editor {\n  display: flex;\n  flex-grow: 1;\n  flex-direction: column;\n}\n.editor__image-container {\n  padding: 10px;\n  padding-top: 65px;\n  padding-bottom: 65px;\n  position: relative;\n  height: 100%;\n  border-radius: var(--menu-border-radius, 6px);\n\n  background-color: ${n};\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ${n} 8px,\n      ${n} 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ${r} 15px,\n      ${r} 16px\n    );\n}\n\n.editor__annotation {\n  z-index: 1;\n}\n.editor__annotation--active {\n  z-index: 2;\n}\n\n.editor__canvas-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.editor__canvas-container canvas {\n  object-fit: contain;\n  position: absolute;\n}\n\n.editor__crop-container {\n  custor: auto;\n  position: absolute;\n  z-index: 2;\n}\n.editor__crop-container--inactive {\n  z-index: 1;\n}\n.editor__crop-container--move {\n  cursor: move;\n}\n\n.editor__crop-btn-group {\n  padding: 8px;\n  gap: 8px;\n  border-radius: var(--menu-border-radius, 6px);\n  background: var(--button-background, var(--background));\n  width: 175px;\n  position: absolute;\n  display: none;\n}\n.editor__crop-btn-group--active {\n  display: flex;\n}\n\n.editor__crop-corner {\n  width: 30px;\n  height: 30px;\n  position: absolute;\n  background: none;\n  border: 3px solid #ffffff;\n}\n\n.editor__crop-corner--top-left {\n  cursor: nwse-resize;\n  border-right: none;\n  border-bottom: none;\n}\n.editor__crop-corner--top-right {\n  cursor: nesw-resize;\n  border-left: none;\n  border-bottom: none;\n}\n.editor__crop-corner--bottom-left {\n  cursor: nesw-resize;\n  border-right: none;\n  border-top: none;\n}\n.editor__crop-corner--bottom-right {\n  cursor: nwse-resize;\n  border-left: none;\n  border-top: none;\n}\n.editor__tool-container {\n  padding-top: 8px;\n  display: flex;\n  justify-content: space-between;\n}\n.editor__tool-bar {\n  display: flex;\n  gap: 8px;\n}\n.editor__tool {\n  display: flex;\n  padding: 8px 12px;\n  justify-content: center;\n  align-items: center;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  background: var(--button-background, var(--background));\n  color: var(--button-foreground, var(--foreground));\n}\n\n.editor__tool--active {\n  background: var(--button-primary-background, var(--accent-background));\n  color: var(--button-primary-foreground, var(--accent-foreground));\n}\n`,t&&e.setAttribute("nonce",t),e}const Sf=Bp.devicePixelRatio;function kf({h:t,hooks:e,imageBuffer:n,dialog:r,options:o}){const s=function({hooks:t}){return function({onBeforeScreenshot:e,onScreenshot:n,onAfterScreenshot:r,onError:o}){t.useEffect((()=>{(async()=>{e();const t=await Up.mediaDevices.getDisplayMedia({video:{width:Bp.innerWidth*Bp.devicePixelRatio,height:Bp.innerHeight*Bp.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=$p.createElement("video");await new Promise(((e,r)=>{o.srcObject=t,o.onloadedmetadata=()=>{n(o),t.getTracks().forEach((t=>t.stop())),e()},o.play().catch(r)})),r()})().catch(o)}),[])}}({hooks:e}),i=function({h:t}){return function({action:e,setAction:n}){const r=function({h:t}){return function(){return t("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M8.5 12L12 8.5L14 11L11 14L8.5 12Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M12 8.5L11 3.5L2 2L3.5 11L8.5 12L12 8.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M2 2L7.5 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))}}({h:t}),o=function({h:t}){return function(){return t("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M15.25 12.5H12.5M12.5 12.5H4.50001C3.94773 12.5 3.50001 12.0523 3.50001 11.5V3.50002M12.5 12.5L12.5 4.50002C12.5 3.94773 12.0523 3.50002 11.5 3.50002H3.50001M12.5 12.5L12.5 15.25M3.50001 3.50002V0.750031M3.50001 3.50002H0.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))}}({h:t});return t("div",{class:"editor__tool-container"},t("div",null),t("div",{class:"editor__tool-bar"},t("button",{type:"button",class:"editor__tool "+("crop"===e?"editor__tool--active":""),onClick:()=>{n("crop"===e?"":"crop")}},t(o,null)),t("button",{type:"button",class:"editor__tool "+("annotate"===e?"editor__tool--active":""),onClick:()=>{n("annotate"===e?"":"annotate")}},t(r,null))),t("div",null))}}({h:t}),a=function({h:t}){return function({action:e,imageBuffer:n,annotatingRef:r}){const o=()=>{const t=n.getContext("2d"),e=r.current;if(t&&e){t.drawImage(e,0,0,e.width,e.height,0,0,n.width,n.height);const r=e.getContext("2d");r&&r.clearRect(0,0,e.width,e.height)}};return t("canvas",{class:"editor__annotation "+("annotate"===e?"editor__annotation--active":""),onMouseDown:()=>
3{if("annotate"!==e)return;const t=t=>{const e=r.current;if(e){const n=e.getBoundingClientRect(),r=t.clientX-n.x,o=t.clientY-n.y,s=e.getContext("2d");s&&(s.lineTo(r,o),s.stroke(),s.beginPath(),s.moveTo(r,o))}},n=()=>{const e=r.current?.getContext("2d");e&&e.beginPath(),o(),$p.removeEventListener("mousemove",t),$p.removeEventListener("mouseup",n)};$p.addEventListener("mousemove",t),$p.addEventListener("mouseup",n)},ref:r})}}({h:t}),c=vf({h:t,hooks:e,options:o});return function({onError:u}){const l=e.useMemo((()=>({__html:bf(o.styleNonce).innerText})),[]),d=e.useRef(null),p=e.useRef(null),h=e.useRef(null),f=e.useRef(null),[m,g]=e.useState("crop"),[_,y]=e.useState({startX:0,startY:0,endX:0,endY:0});function v(t,e){const n=t.current;if(!n)return;n.width=e.width*Sf,n.height=e.height*Sf,n.style.width=`${e.width}px`,n.style.height=`${e.height}px`;const r=n.getContext("2d");r&&r.scale(Sf,Sf)}function b(){const t=(t=>{const e=t.clientHeight,n=t.clientWidth,r=t.width/t.height;let o=e*r,s=e;return o>n&&(o=n,s=n/r),{x:(n-o)/2,y:(e-s)/2,width:o,height:s}})(n);v(f,t),v(h,t);const e=p.current;e&&(e.style.width=`${t.width}px`,e.style.height=`${t.height}px`),y({startX:0,startY:0,endX:t.width,endY:t.height})}return e.useEffect((()=>(Bp.addEventListener("resize",b),()=>{Bp.removeEventListener("resize",b)})),[]),s({onBeforeScreenshot:e.useCallback((()=>{r.el.style.display="none"}),[]),onScreenshot:e.useCallback((t=>{const e=n.getContext("2d");if(!e)throw new Error("Could not get canvas context");n.width=t.videoWidth,n.height=t.videoHeight,n.style.width="100%",n.style.height="100%",e.drawImage(t,0,0)}),[n]),onAfterScreenshot:e.useCallback((()=>{r.el.style.display="block";d.current?.appendChild(n),b()}),[]),onError:e.useCallback((t=>{r.el.style.display="block",u(t)}),[])}),t("div",{class:"editor"},t("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:l}),t("div",{class:"editor__image-container"},t("div",{class:"editor__canvas-container",ref:d},t(c,{action:m,imageBuffer:n,croppingRef:f,cropContainerRef:p,croppingRect:_,setCroppingRect:y,resize:b}),t(a,{action:m,imageBuffer:n,annotatingRef:h}))),o._experiments.annotations&&t(i,{action:m,setAction:g}))}}const wf=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:t,hooks:e,dialog:n,options:r})=>{const o=$p.createElement("canvas");return{input:kf({h:t,hooks:e,imageBuffer:o,dialog:n,options:r}),value:async()=>{const t=await new Promise((t=>{o.toBlob(t,"image/png")}));if(t){return{data:new Uint8Array(await t.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}}),xf=Kp({lazyLoadIntegration:$a}),Ef=Kp({getModalIntegration:()=>ff,getScreenshotIntegration:()=>wf}),Cf=new WeakMap,If=new Map,Tf={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Mf(t,e){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:s,enableHTTPTimings:i,tracePropagationTargets:a}={traceFetch:Tf.traceFetch,traceXHR:Tf.traceXHR,trackFetchStreamPerformance:Tf.trackFetchStreamPerformance,...e},c="function"==typeof s?s:t=>!0,u=t=>function(t,e){const n=X();if(n){let r,o;try{r=new URL(t,n),o=new URL(n).origin}catch(t){return!1}const s=r.origin===o;return e?tt(r.toString(),e)||s&&tt(r.pathname,e):s}{const n=!!t.match(/^\/(?!\/)/);return e?tt(t,e):n}}(t,a),l={};n&&(t.addEventProcessor((t=>("transaction"===t.type&&t.spans&&t.spans.forEach((t=>{if("http.client"===t.op){const e=If.get(t.span_id);e&&(t.timestamp=e/1e3,If.delete(t.span_id))}})),t))),o&&function(t){const e="fetch-body-resolved";w(e,t),x(e,(()=>Ho(jo)))}((t=>{if(t.response){const e=Cf.get(t.response);e&&t.endTimestamp&&If.set(e,t.endTimestamp)}})),Uo((t=>{const e=Oo(t,c,u,l);if(t.response&&t.fetchData.__span&&Cf.set(t.response,t.fetchData.__span),e){const n=Of(t.fetchData.url),r=n?Ro(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}i&&e&&Rf(e)}))),r&&ji((t=>{const e=function(t,e,n,r){const o=t.xhr,s=o?.[Hi];if(!o||o.__sentry_own_request__||!s)return;const{url:i,method:a}=s,c=Ue()&&e(i);if(t.endTimestamp&&c){const t=o.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&void 0!==s.status_code&&(ie(e,s.status_code),e.end(),delete r[t]))}const u=Of(i),l=Ro(u||i),d=Ao(i),p=!!De(),h=c&&p?Cn({name:`${a} ${d}`,attributes:{url:i,type:"xhr","http.method":a,"http.url":u,"server.address":l?.host,[Kt]:"auto.http.browser",[Gt]:"http.client",...l?.search&&{"http.query":l?.search},...l?.hash&&{"http.fragment":l?.hash}}}):new Xe;o.__sentry_xhr_span_id__=h.spanContext().spanId,r[o.__sentry_xhr_span_id__]=h,n(i)&&function(t,e){const{"sentry-trace":n,baggage:r}=jr({span:e});n&&function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader("baggage",n)}catch(t){}}(t,n,r)}(o,Ue()&&p?h:void 0);const f=qt();f&&f.emit("beforeOutgoingRequestSpan",h,t);return h}(t,c,u,l);i&&e&&Rf(e)}))}function Rf(t){const{url:e}=Ce(t).data;if(!e||"string"!=typeof e)return;const n=ri("resource",(({entries:r})=>{r.forEach((r=>{if(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}(r)&&r.name.endsWith(e)){(function(t){const{name:e,version:n}=yi(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",e]),!ft())return r;return[...r,["http.request.redirect_start",Af(t.redirectStart)],["http.request.fetch_start",Af(t.fetchStart)],["http.request.domain_lookup_start",Af(t.domainLookupStart)],["http.request.domain_lookup_end",Af(t.domainLookupEnd)],["http.request.connect_start",Af(t.connectStart)],["http.request.secure_connection_start",Af(t.secureConnectionStart)],["http.request.connection_end",Af(t.connectEnd)],["http.request.request_start",Af(t.requestStart)],["http.request.response_start",Af(t.responseStart)],["http.request.response_end",Af(t.responseEnd)]]})(r).forEach((e=>t.setAttribute(...e))),setTimeout(n)}}))}))}function Af(t=0){return((ft()||performance.timeOrigin)+t)/1e3}function Of(t){try{return new URL(t,Yo.location.origin).href}catch{return}}const Lf={...Fn,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
3dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Tf},Df=(t={})=>{const e=Yo.document;Be();const{enableInp:n,enableLongTask:r,enableLongAnimationFrame:s,_experiments:{enableInteractions:i,enableStandaloneClsSpans:a},beforeStartSpan:c,idleTimeout:u,finalTimeout:l,childSpanTimeout:d,markBackgroundSpan:p,traceFetch:h,traceXHR:f,trackFetchStreamPerformance:m,shouldCreateSpanForRequest:g,enableHTTPTimings:_,instrumentPageLoad:y,instrumentNavigation:v}={...Lf,...t},b=xi({recordClsStandaloneSpans:a||!1});n&&Gi(),s&&o.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver((t=>{const e=De();if(e)for(const n of t.getEntries()){if(!n.scripts[0])continue;const t=_i(ft()+n.startTime),{start_timestamp:r,op:o}=Ce(e);if("navigation"===o&&r&&t<r)continue;const s=_i(n.duration),i={[Kt]:"auto.ui.browser.metrics"},a=n.scripts[0],{invoker:c,invokerType:u,sourceURL:l,sourceFunctionName:d,sourceCharPosition:p}=a;i["browser.script.invoker"]=c,i["browser.script.invoker_type"]=u,l&&(i["code.filepath"]=l),d&&(i["code.function"]=d),-1!==p&&(i["browser.script.source_char_position"]=p),fi(e,t,t+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:i})}})).observe({type:"long-animation-frame",buffered:!0}):r&&ri("longtask",(({entries:t})=>{const e=De();if(!e)return;const{op:n,start_timestamp:r}=Ce(e);for(const o of t){const t=_i(ft()+o.startTime),s=_i(o.duration);"navigation"===n&&r&&t<r||fi(e,t,t+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Kt]:"auto.ui.browser.metrics"}})}})),i&&ri("event",(({entries:t})=>{const e=De();if(e)for(const n of t)if("click"===n.name){const t=_i(ft()+n.startTime),r=_i(n.duration),o={name:V(n.target),op:`ui.interaction.${n.name}`,startTime:t,attributes:{[Kt]:"auto.ui.browser.metrics"}},s=G(n.target);s&&(o.attributes["ui.component_name"]=s),fi(e,t,t+r,o)}}));const S={name:void 0,source:void 0};function k(t,n){const r="pageload"===n.op,o=c?c(n):n,s=o.attributes||{};n.name!==o.name&&(s[Yt]="custom",o.attributes=s),S.name=o.name,S.source=s[Yt];const i=Bn(o,{idleTimeout:u,finalTimeout:l,childSpanTimeout:d,disableAutoFinish:r,beforeSpanEnd:e=>{b(),Ei(e,{recordClsOnPageloadSpan:!a}),Uf(t,void 0);const n=Ut(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:i.spanContext().traceId,sampled:Ie(i),dsc:Ve(e)})}});function p(){e&&["interactive","complete"].includes(e.readyState)&&t.emit("idleSpanEnableAutoFinish",i)}Uf(t,i),r&&e&&(e.addEventListener("readystatechange",(()=>{p()})),p())}return{name:"BrowserTracing",afterAllSetup(t){let e=X();function r(){const e=$f(t);e&&!Ce(e).timestamp&&e.end()}if(t.on("startNavigationSpan",(e=>{qt()===t&&(r(),Ht().setPropagationContext({traceId:It(),sampleRand:Math.random()}),Ut().setPropagationContext({traceId:It(),sampleRand:Math.random()}),k(t,{op:"navigation",...e}))})),t.on("startPageLoadSpan",((e,n={})=>{if(qt()!==t)return;r();const o=_e(n.sentryTrace||Ff("sentry-trace"),n.baggage||Ff("baggage"));Ut().setPropagationContext(o),k(t,{op:"pageload",...e})})),Yo.location){if(y){const e=ft();Nf(t,{name:Yo.location.pathname,startTime:e?e/1e3:void 0,attributes:{[Yt]:"url",[Kt]:"auto.pageload.browser"}})}v&&Ni((({to:n,from:r})=>{void 0!==r||-1===e?.indexOf(n)?r!==n&&(e=void 0,Pf(t,{name:Yo.location.pathname,attributes:{[Yt]:"url",[Kt]:"auto.navigation.browser"}})):e=void 0}))}p&&Yo.document&&Yo.document.addEventListener("visibilitychange",(()=>{const t=De();if(!t)return;const e=Le(t);if(Yo.document.hidden&&e){const t="cancelled",{op:n,status:r}=Ce(e);r||e.setStatus({code:2,message:t}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}})),i&&function(t,e,n,r,o){const s=Yo.document;let i;const a=()=>{const s="ui.action.click",a=$f(t);if(a){const t=Ce(a).op;if(["navigation","pageload"].includes(t))return}i&&(i.setAttribute(Jt,"interactionInterrupted"),i.end(),i=void 0),o.name&&(i=Bn({name:o.name,op:s,attributes:{[Yt]:o.source||"url"}},{idleTimeout:e,finalTimeout:n,childSpanTimeout:r}))};s&&addEventListener("click",a,{once:!1,capture:!0})}(t,u,l,d,S),n&&function(){const t=({entries:t})=>{const e=De(),n=e&&Le(e);t.forEach((t=>{if(!function(t){return"duration"in t}(t)||!n)return;const e=t.interactionId;
3if(null!=e&&!Xi.has(e)){if(Yi.length>10){const t=Yi.shift();Xi.delete(t)}Yi.push(e),Xi.set(e,n)}}))};ri("event",t),ri("first-input",t)}(),Mf(t,{traceFetch:h,traceXHR:f,trackFetchStreamPerformance:m,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:g,enableHTTPTimings:_})}}};function Nf(t,e,n){return t.emit("startPageLoadSpan",e,n),Ut().setTransactionName(e.name),$f(t)}function Pf(t,e){return t.emit("startNavigationSpan",e),Ut().setTransactionName(e.name),$f(t)}function Ff(t){const e=Yo.document?.querySelector(`meta[name=${t}]`);return e?.getAttribute("content")||void 0}const Bf="_sentry_idleSpan";function $f(t){return t[Bf]}function Uf(t,e){nt(t,Bf,e)}function Hf(t){return new Promise(((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)}))}function jf(t){return Hf(t.getAllKeys())}function zf(t){let e;function n(){return null==e&&(e=function(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=Hf(n);return t=>r.then((n=>t(n.transaction(e,"readwrite").objectStore(e))))}(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{push:async e=>{try{const r=await ln(e);await function(t,e,n){return t((t=>jf(t).then((r=>{if(!(r.length>=n))return t.put(e,Math.max(...r,0)+1),Hf(t.transaction)}))))}(n(),r,t.maxQueueSize||30)}catch(t){}},unshift:async e=>{try{const r=await ln(e);await function(t,e,n){return t((t=>jf(t).then((r=>{if(!(r.length>=n))return t.put(e,Math.min(...r,0)-1),Hf(t.transaction)}))))}(n(),r,t.maxQueueSize||30)}catch(t){}},shift:async()=>{try{const t=await function(t){return t((t=>jf(t).then((e=>{const n=e[0];if(null!=n)return Hf(t.get(n)).then((e=>(t.delete(n),Hf(t.transaction).then((()=>e)))))}))))}(n());if(t)return dn(t)}catch(t){}}}}function Wf(t=Ji){return function(t){return e=>{const n=t({...e,createStore:zf});return Yo.addEventListener("online",(async t=>{await n.flush()})),n}}(Lr(t))}const qf=1e6,Vf=String(0),Yf="main",Xf=Yo.navigator;let Gf="",Kf="",Jf="",Zf=Xf?.userAgent||"",Qf="";const tm=Xf?.language||Xf?.languages?.[0]||"";const em=Xf?.userAgentData;var nm;function rm(t){return function(t){return!("thread_metadata"in t)}(t)?function(t){let e,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Vf]:{name:Yf}}},o=t.samples[0];if(!o)return r;const s=o.timestamp,i=ft(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:i||0,c=a-(i||a);return t.samples.forEach(((o,i)=>{if(void 0===o.stackId)return void 0===e&&(e=n,r.stacks[e]=[],n++),void(r.samples[i]={elapsed_since_start_ns:((o.timestamp+c-s)*qf).toFixed(0),stack_id:e,thread_id:Vf});let a=t.stacks[o.stackId];const u=[];for(;a;){u.push(a.frameId);const e=t.frames[a.frameId];e&&void 0===r.frames[a.frameId]&&(r.frames[a.frameId]={function:e.name,abs_path:"number"==typeof e.resourceId?t.resources[e.resourceId]:void 0,lineno:e.line,colno:e.column}),a=void 0===a.parentId?void 0:t.stacks[a.parentId]}const l={elapsed_since_start_ns:((o.timestamp+c-s)*qf).toFixed(0),stack_id:n,thread_id:Vf};r.stacks[n]=u,r.samples[i]=l,n++})),r}(t):t}function om(t){return"pageload"===Ce(t).op}function sm(t){const e=qt()?.getOptions(),n=e?.stackParser;return n?function(t,e){const n=zn(t);if(!n)return[];const r=[];for(const t of e)t&&n[t]&&r.push({type:"sourcemap",code_file:t,debug_id:n[t]});return r}(n,t):[]}"object"==typeof(nm=em)&&null!==nm&&"getHighEntropyValues"in nm&&em.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((t=>{if(Gf=t.platform||"",Jf=t.architecture||"",Qf=t.model||"",Kf=t.platformVersion||"",t.fullVersionList?.length){const e=t.fullVersionList[t.fullVersionList.length-1];Zf=`${e.brand} ${e.version}`}})).catch((t=>{}));let im=!1;function am(t){if(im)return!1;if(!t.isRecording())return!1;const e=qt()?.getOptions();if(!e)return!1;const n=e.profilesSampleRate;if("number"!=typeof(r=n)&&"boolean"!=typeof r||"number"==typeof r&&isNaN(r)||!0!==r&&!1!==r&&(r<0||r>1))return!1;var r;if(!n)return!1;return!!(!0===n||Math.random()<n)}function cm(t,e,n,r){return function(t){return!(t.samples.length<2||!t.frames.length)}(n)?function(t,e,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=function(t){const e=t.contexts?.trace?.trace_id;return"string"==typeof e&&e.length,"string"!=typeof e?"":e}(r),s=rm(n),i=e||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*pt()),a="number"==typeof r.timestamp?1e3*r.timestamp:1e3*pt();return{event_id:t,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||He,runtime:{name:"javascript",version:Yo.navigator.userAgent},os:{name:Gf,version:Kf,build_number:Zf},device:{locale:tm,model:Qf,manufacturer:Zf,architecture:Jf,is_emulator:!1},debug_meta:{images:sm(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||mt(),trace_id:o,active_thread_id:Vf,relative_start_ns:"0",relative_end_ns:(1e6*(a-i)).toFixed(0)}]}}(t,e,n,r):null}const um=new Map;function lm(t){const e=um.get(t);return e&&um.delete(t),e}function dm(t){let e;om(t)&&(e=1e3*pt());const n=function(){const t=Yo.Profiler;if("function"!=typeof t)return;const e=Math.floor(3e3);try{return new t({sampleInterval:10,maxBufferSize:e})}catch(t){im=!0}}();if(!n)return;const r=mt();async function o(){if(t&&n)return n.stop().then((t=>
3{s&&(Yo.clearTimeout(s),s=void 0),t&&function(t,e){if(um.set(t,e),um.size>30){const t=um.keys().next().value;um.delete(t)}}(r,t)})).catch((t=>{ga}))}Ut().setContext("profile",{profile_id:r,start_timestamp:e});let s=Yo.setTimeout((()=>{o()}),3e4);const i=t.end.bind(t);t.end=function(){return t?(o().then((()=>{i()}),(()=>{i()})),t):i()}}const pm=()=>({name:"BrowserProfiling",setup(t){const e=De(),n=e&&Le(e);n&&om(n)&&am(n)&&dm(n),t.on("spanStart",(t=>{t===Le(t)&&am(t)&&dm(t)})),t.on("beforeEnvelope",(t=>{if(!um.size)return;const e=function(t){const e=[];return an(t,((t,n)=>{if("transaction"===n)for(let n=1;n<t.length;n++){const r=t[n];r?.contexts&&r.contexts.profile&&r.contexts.profile.profile_id&&e.push(t[n])}})),e}(t);if(!e.length)return;const n=[];for(const t of e){const e=t?.contexts,r=e?.profile?.profile_id,o=e?.profile?.start_timestamp;if("string"!=typeof r)continue;if(!r)continue;e?.profile&&delete e.profile;const s=lm(r);if(!s)continue;const i=cm(r,o,s,t);i&&n.push(i)}!function(t,e){if(!e.length)return t;for(const n of e)t[1].push([{type:"profile"},n])}(t,n)}))}});const hm=(t={})=>{const e=t.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{},processEvent:t=>function(t){return Boolean("transaction"===t.type&&t.spans&&t.contexts&&t.contexts.trace&&"ui.action.click"===t.contexts.trace.op&&t.spans.some((({description:t})=>t?.includes("#sentry-spotlight"))))}(t)?null:t,afterAllSetup:t=>{!function(t,e){const n=Bi("fetch");let r=0;t.on("beforeEnvelope",(t=>{r>3?p.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r):n(e,{method:"POST",body:ln(t),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then((t=>{t.status>=200&&t.status<400&&(r=0)}),(t=>{r++,p.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",t)}))}))}(t,e)}}};function fm(t){const e=Ut().getScopeData().contexts.flags,n=e?e.values:[];return n.length?(void 0===t.contexts&&(t.contexts={}),t.contexts.flags={values:[...n]},t):t}function mm(t,e,n=100){const r=Ut().getScopeData().contexts;r.flags||(r.flags={values:[]});!function(t,e,n,r){if("boolean"!=typeof n)return;if(t.length>r)return;const o=t.findIndex((t=>t.flag===e));-1!==o&&t.splice(o,1);t.length===r&&t.shift();t.push({flag:e,result:n})}(r.flags.values,t,e,n)}const gm=()=>({name:"FeatureFlags",processEvent(t,e,n){return fm(t)},addFeatureFlag(t,e){mm(t,e)}}),_m=()=>({name:"LaunchDarkly",processEvent(t,e,n){return fm(t)}});function ym(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(t,e,n)=>{mm(t,e.value)}}}const vm=()=>({name:"OpenFeature",processEvent(t,e,n){return fm(t)}});class bm{after(t,e){mm(e.flagKey,e.value)}error(t,e,n){mm(t.flagKey,t.defaultValue)}}const Sm=({featureFlagClientClass:t})=>({name:"Unleash",processEvent(t,e,n){return fm(t)},setupOnce(){et(t.prototype,"isEnabled",km)}});function km(t){return function(...e){const n=e[0],r=t.apply(this,e);return"string"==typeof n&&"boolean"==typeof r&&mm(n,r),r}}const wm=({featureFlagClient:t})=>({name:"Statsig",processEvent(t,e,n){return fm(t)},setup(){t.on("gate_evaluation",(t=>{mm(t.gate.name,t.gate.value)}))}});var xm=n(91880);function Em(t){const e={...t};return Hr(e,"react"),Qn("react",{version:xm.version}),La(e)}function Cm(t,{componentStack:e},n){if(function(t){const e=t.match(/^([^.]+)/);return null!==e&&parseInt(e[0])>=17}(xm.version)&&L(t)&&e){const n=new Error(t.message);n.name=`React ErrorBoundary ${t.name}`,n.stack=e,function(t,e){const n=new WeakSet;!function t(e,r){if(!n.has(e))return e.cause?(n.add(e),t(e.cause,r)):void(e.cause=r)}(t,e)}(t,n)}return Kn(t,{...n,captureContext:{contexts:{react:{componentStack:e}}}})}function Im(t){return(e,n)=>{const r=Cm(e,n);t&&t(e,n,r)}}const Tm="ui.react.render",Mm="ui.react.mount";var Rm=n(71034);const Am=Rm||n.t(Rm,2);class Om extends xm.Component{constructor(t){super(t);const{name:e,disabled:n=!1}=this.props;n||(this._mountSpan=Cn({name:`<${e}>`,onlyIfParent:!0,op:Mm,attributes:{[Kt]:"auto.ui.react.profiler","ui.component_name":e}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:e=!0}){if(e&&this._mountSpan&&t!==this.props.updateProps){const e=Object.keys(t).filter((e=>t[e]!==this.props.updateProps[e]));if(e.length>0){const t=pt();this._updateSpan=Tn(this._mountSpan,(()=>Cn({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:t,attributes:{[Kt]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":e}})))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=pt(),{name:e,includeRender:n=!0}
3=this.props;if(this._mountSpan&&n){const n=Ce(this._mountSpan).timestamp;Tn(this._mountSpan,(()=>{const r=Cn({onlyIfParent:!0,name:`<${e}>`,op:Tm,startTime:n,attributes:{[Kt]:"auto.ui.react.profiler","ui.component_name":e}});r&&r.end(t)}))}}render(){return this.props.children}}function Lm(t,e){const n=e?.name||t.displayName||t.name||"unknown",r=r=>xm.createElement(Om,{...e,name:n,updateProps:r},xm.createElement(t,{...r}));return r.displayName=`profiler(${n})`,Am(r,t),r}function Dm(t,e={disabled:!1,hasRenderSpan:!0}){const[n]=xm.useState((()=>{if(!e?.disabled)return Cn({name:`<${t}>`,onlyIfParent:!0,op:Mm,attributes:{[Kt]:"auto.ui.react.profiler","ui.component_name":t}})}));xm.useEffect((()=>(n&&n.end(),()=>{if(n&&e.hasRenderSpan){const e=Ce(n).timestamp,r=pt(),o=Cn({name:`<${t}>`,onlyIfParent:!0,op:Tm,startTime:e,attributes:{[Kt]:"auto.ui.react.profiler","ui.component_name":t}});o&&o.end(r)}})),[])}Object.assign(Om,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});const Nm={componentStack:null,error:null,eventId:null};class Pm extends xm.Component{constructor(t){super(t),this.state=Nm,this._openFallbackReportDialog=!0;const e=qt();e&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=e.on("afterSendEvent",(e=>{!e.type&&this._lastEventId&&e.event_id===this._lastEventId&&Da({...t.dialogOptions,eventId:this._lastEventId})})))}componentDidCatch(t,e){const{componentStack:n}=e,{beforeCapture:r,onError:o,showDialog:s,dialogOptions:i}=this.props;zt((a=>{r&&r(a,t,n);const c=null!=this.props.handled?this.props.handled:!!this.props.fallback,u=Cm(t,e,{mechanism:{handled:c}});o&&o(t,n,u),s&&(this._lastEventId=u,this._openFallbackReportDialog&&Da({...i,eventId:u})),this.setState({error:t,componentStack:n,eventId:u})}))}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:e,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===Nm?r(null,null,null):r(t,e,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:e,componentStack:n,eventId:r}=this.state;t&&t(e,n,r),this.setState(Nm)}render(){const{fallback:t,children:e}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof e?e():e;const r="function"==typeof t?xm.createElement(t,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):t;return xm.isValidElement(r)?r:null}}function Fm(t,e){const n=t.displayName||t.name||"unknown",r=n=>xm.createElement(Pm,{...e},xm.createElement(t,{...n}));return r.displayName=`errorBoundary(${n})`,Am(r,t),r}const Bm={attachReduxState:!0,actionTransformer:t=>t,stateTransformer:t=>t||null};function $m(t){const e={...Bm,...t};return t=>(n,r)=>{e.attachReduxState&&jt().addEventProcessor(((t,e)=>{try{void 0===t.type&&"redux"===t.contexts.state.state.type&&(e.attachments=[...e.attachments||[],{filename:"redux_state.json",data:JSON.stringify(t.contexts.state.state.value)}])}catch(t){}return t}));return t(((t,r)=>{const o=n(t,r),s=Ut(),i=e.actionTransformer(r);null!=i&&Wr({category:"redux.action",data:i,type:"info"});const a=e.stateTransformer(o);if(null!=a){const t=qt()?.getOptions(),e={state:{type:"redux",value:a}};nt(e,"__sentry_override_normalization_depth__",3+(t?.normalizeDepth||3)),s.setContext("state",e)}else s.setContext("state",null);const{configureScopeWithState:c}=e;return"function"==typeof c&&c(s,o),o}),r)}}function Um(t){const e=Df({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t),s&&Yo.location&&Hm(r,Yo.location,o,((e,n="url")=>{Nf(t,{name:e,attributes:{[Gt]:"pageload",[Kt]:"auto.pageload.react.reactrouter_v3",[Yt]:n}})})),i&&n.listen&&n.listen((e=>{"PUSH"!==e.action&&"POP"!==e.action||Hm(r,e,o,((e,n="url")=>{Pf(t,{name:e,attributes:{[Gt]:"navigation",[Kt]:"auto.navigation.react.reactrouter_v3",[Yt]:n}})}))}))}}}function Hm(t,e,n,r){let o=e.pathname;n({location:e,routes:t},((t,e,n)=>{if(t||!n)return r(o);const s=function(t){if(!Array.isArray(t)||0===t.length)return"";const e=t.filter((t=>!!t.path));let n=-1;for(let t=e.length-1;t>=0;t--){if(e[t].path?.startsWith("/")){n=t;break}}return e.slice(n).filter((({path:t})=>!!t)).map((({path:t})=>t)).join("")}(n.routes||[]);return 0===s.length||"/*"===s?r(o):(o=s,r(o,"route"))}))}function jm(t,e={}){const n=t,r=Df({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:o=!0,instrumentNavigation:s=!0}=e;return{...r,afterAllSetup(t){r.afterAllSetup(t);const e=Yo.location;if(o&&e){const r=n.matchRoutes(e.pathname,n.options.parseSearch(e.search),{preload:!1,throwOnError:!1}),o=r[r.length-1];Nf(t,{name:o?o.routeId:e.pathname,attributes:{[Gt]:"pageload",[Kt]:"auto.pageload.react.tanstack_router",[Yt]:o?"route":"url",...zm(o)}})}s&&n.subscribe("onBeforeNavigate",(e=>{if(e.toLocation.state===e.fromLocation?.state)return;const r=n.matchRoutes(e.toLocation.pathname,e.toLocation.search,{preload:!1,throwOnError:!1}),o=r[r.length-1],s=Yo.location,i=Pf(t,{name:o?o.routeId:s.pathname,attributes:{[Gt]:"navigation",[Kt]:"auto.navigation.react.tanstack_router",[Yt]:o?"route":"url"}}),a=n.subscribe("onResolved",(t=>{if(a(),i){const e=n.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),r=e[e.length-1];r&&(i.updateName(r.routeId),i.setAttribute(Yt,"route"),i.setAttributes(zm(r)))}}))}))}}}function zm(t){if(!t)return{};const e={};
3return Object.entries(t.params).forEach((([t,n])=>{e[`url.path.params.${t}`]=n})),e}function Wm(t){const e=Df({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t),Vm(t,s,i,n,"reactrouter_v4",r,o)}}}function qm(t){const e=Df({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t),Vm(t,s,i,n,"reactrouter_v5",r,o)}}}function Vm(t,e,n,r,o,s=[],i){function a(t){if(0===s.length||!i)return[t,"url"];const e=Ym(s,t,i);for(const t of e)if(t.match.isExact)return[t.match.path,"route"];return[t,"url"]}if(e){const e=r.location?r.location.pathname:Yo.location?Yo.location.pathname:void 0;if(e){const[n,r]=a(e);Nf(t,{name:n,attributes:{[Gt]:"pageload",[Kt]:`auto.pageload.react.${o}`,[Yt]:r}})}}n&&r.listen&&r.listen(((e,n)=>{if(n&&("PUSH"===n||"POP"===n)){const[n,r]=a(e.pathname);Pf(t,{name:n,attributes:{[Gt]:"navigation",[Kt]:`auto.navigation.react.${o}`,[Yt]:r}})}}))}function Ym(t,e,n,r=[]){return t.some((t=>{const o=t.path?n(e,t):r.length?r[r.length-1].match:function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}}(e);return o&&(r.push({route:t,match:o}),t.routes&&Ym(t.routes,e,n,r)),!!o})),r}function Xm(t){const e=t.displayName||t.name,n=e=>{if(e?.computedMatch?.isExact){const t=e.computedMatch.path,n=function(){const t=De(),e=t&&Le(t);if(!e)return;const n=Ce(e).op;return"navigation"===n||"pageload"===n?e:void 0}();Ut().setTransactionName(t),n&&(n.updateName(t),n.setAttribute(Yt,"route"))}return xm.createElement(t,{...e})};return n.displayName=`sentryRoute(${e})`,Am(n,t),n}let Gm,Km,Jm,Zm,Qm,tg=!1;const eg=new WeakSet,ng=new Set;function rg(t,e){return Gm&&Km&&Jm&&Qm?function(n,r){hg(n);const o=t(n,r),s=r?.basename,i=wg();return"POP"===o.state.historyAction&&i&&Sg(i,o.state.location,n,void 0,s,Array.from(ng)),o.subscribe((t=>{"PUSH"!==t.historyAction&&"POP"!==t.historyAction||("idle"!==t.navigation.state?requestAnimationFrame((()=>{ag({location:t.location,routes:n,navigationType:t.historyAction,version:e,basename:s,allRoutes:Array.from(ng)})})):ag({location:t.location,routes:n,navigationType:t.historyAction,version:e,basename:s,allRoutes:Array.from(ng)}))})),o}:t}function og(t,e){return Gm&&Km&&Jm&&Qm?function(n,r){hg(n);const o=t(n,r),s=r?.basename,i=wg();let a;const c=r?.initialEntries,u=r?.initialIndex,l=c&&1===c.length,d=void 0!==u&&c&&c[u];a=l?c[0]:d?c[u]:void 0;const p=a?"string"==typeof a?{pathname:a}:a:o.state.location;return"POP"===o.state.historyAction&&i&&Sg(i,p,n,void 0,s,Array.from(ng)),o.subscribe((t=>{const r=t.location;"PUSH"!==t.historyAction&&"POP"!==t.historyAction||ag({location:r,routes:n,navigationType:t.historyAction,version:e,basename:s,allRoutes:Array.from(ng)})})),o}:t}function sg(t,e){const n=Df({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:o,useNavigationType:s,createRoutesFromChildren:i,matchRoutes:a,stripBasename:c,instrumentPageLoad:u=!0,instrumentNavigation:l=!0}=t;return{...n,setup(){Gm=r,Km=o,Jm=s,Qm=a,Zm=i,tg=c||!1},afterAllSetup(t){n.afterAllSetup(t);const r=Yo.location?.pathname;u&&r&&Nf(t,{name:r,attributes:{[Yt]:"url",[Gt]:"pageload",[Kt]:`auto.pageload.react.reactrouter_v${e}`}}),l&&eg.add(t)}}}function ig(t,e){if(!(Gm&&Km&&Jm&&Qm))return t;const n=n=>{const r=xm.useRef(!0),{routes:o,locationArg:s}=n,i=t(o,s),a=Km(),c=Jm(),u="string"==typeof s||s?.pathname?s:a;return Gm((()=>{const t="string"==typeof u?{pathname:u}:u;r.current?(hg(o),Sg(wg(),t,o,void 0,void 0,Array.from(ng)),r.current=!1):ag({location:t,routes:o,navigationType:c,version:e,allRoutes:Array.from(ng)})}),[c,u]),i};return(t,e)=>xm.createElement(n,{routes:t,locationArg:e})}function ag(t){const{location:e,routes:n,navigationType:r,version:o,matches:s,basename:i,allRoutes:a}=t,c=Array.isArray(s)?s:Qm(n,e,i),u=qt();if(u&&eg.has(u)&&("PUSH"===r||"POP"===r)&&c){let t,r="url";const s=pg(e,a||n);s&&(t=yg(vg(a||n,e)),r="route"),s&&t||([t,r]=bg(n,e,c,i));const l=De();l&&"navigation"===Ce(l).op?(l?.updateName(t),l?.setAttribute(Yt,r)):Pf(u,{name:t,attributes:{[Yt]:r,[Gt]:"navigation",[Kt]:`auto.navigation.react.reactrouter_v${o}`}})}}function cg(t,e){if(!e||"/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return t;const n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&"/"!==r?t:t.slice(n)||"/"}function ug(t,e,n){const r=t||tg?cg(e,n):e;return["/"===r[r.length-1]||"/*"===r.slice(-2)?r.slice(0,-1):r,"route"]}function lg(t){return t.endsWith("*")}function dg(t,e){return lg(t)&&!!e.route.children?.length||!1}function pg(t,e){const n=Qm(e,t);if(n)for(const t of n)if(!(r=t.route).children&&r.element&&r.path?.endsWith("/*")&&gg(t))return!0;var r;return!1}function hg(t){t.forEach((t=>{fg(t).forEach((t=>{ng.add(t)}))}))}
3function fg(t,e=new Set){return e.has(t)||(e.add(t),t.children&&!t.index&&t.children.forEach((t=>{fg(t,e).forEach((t=>{e.add(t)}))}))),e}function mg(t){return"*"===(e=t.route.path||"")[e.length-1]?e.slice(0,-1):e;var e}function gg(t){return t.params["*"]||""}function _g(t){return"/"===t[t.length-1]?t.slice(0,-1):t}function yg(t){return"/"===t[0]?t:`/${t}`}function vg(t,e){const n=Qm(t,e);if(!n||0===n.length)return"";for(const r of n)if(r.route.path&&"*"!==r.route.path){const n=mg(r),o=cg(e.pathname,yg(r.pathnameBase));return e.pathname===o?_g(o):_g(_g(n||"")+yg(vg(t.filter((t=>t!==r.route)),{pathname:o})))}return""}function bg(t,e,n,r=""){if(!t||0===t.length)return[tg?cg(e.pathname,r):e.pathname,"url"];let o="";if(n)for(const t of n){const n=t.route;if(n){if(n.index)return ug(o,t.pathname,r);const s=n.path;if(s&&!dg(s,t)){const n="/"===s[0]||"/"===o[o.length-1]?s:`/${s}`;if(o=_g(o)+yg(n),_g(e.pathname)===_g(r+t.pathname))return xg(o)===xg(t.pathname)||lg(o)?(dg(o,t)&&(o=o.slice(0,-1)),[(tg?"":r)+o,"route"]):[(tg?"":r)+n,"route"]}}}return[tg?cg(e.pathname,r):e.pathname||"/","url"]}function Sg(t,e,n,r,o,s){const i=Array.isArray(r)?r:Qm(s||n,e,o);if(i){let r,a="url";const c=pg(e,s||n);c&&(r=yg(vg(s||n,e)),a="route"),c&&r||([r,a]=bg(n,e,i,o)),Ut().setTransactionName(r||"/"),t&&(t.updateName(r),t.setAttribute(Yt,a))}}function kg(t,e){if(!(Gm&&Km&&Jm&&Zm&&Qm))return t;const n=n=>{const r=xm.useRef(!0),o=Km(),s=Jm();return Gm((()=>{const t=Zm(n.children);r.current?(hg(t),Sg(wg(),o,t,void 0,void 0,Array.from(ng)),r.current=!1):ag({location:o,routes:t,navigationType:s,version:e,allRoutes:Array.from(ng)})}),[o,s]),xm.createElement(t,{...n})};return Am(n,t),n}function wg(){const t=De(),e=t?Le(t):void 0;if(!e)return;const n=Ce(e).op;return"navigation"===n||"pageload"===n?e:void 0}function xg(t){return t.split(/\\?\//).filter((t=>t.length>0&&","!==t)).length}function Eg(t){return sg(t,"6")}function Cg(t){return ig(t,"6")}function Ig(t){return rg(t,"6")}function Tg(t){return og(t,"6")}function Mg(t){return kg(t,"6")}function Rg(t){return sg(t,"7")}function Ag(t){return kg(t,"7")}function Og(t){return rg(t,"7")}function Lg(t){return og(t,"7")}function Dg(t){return ig(t,"7")}}}]);
4//# sourceMappingURL=sentry.modern.c5231166.js.map
5//# debugId=ce656a57-a8b1-5624-a4be-f5fe627d4de4

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.