PageSourceSearch

https://app.coaching.com/assets/chunk.7634.13fbf9e38a360148d348.js

js coaching.com collected 2026-10-04 00:21:21 UTC 362,216 bytes, 2,645 lines download raw bytes

1"use strict";(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[7634],{77634:(e,t,n)=>{n.r(t),n.d(t,{BrowserClient:()=>as,SDK_VERSION:()=>r,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>o,Scope:()=>Q,WINDOW:()=>So,addBreadcrumb:()=>he,addEventProcessor:()=>At,addIntegration:()=>Ut,addTracingExtensions:()=>Zt,breadcrumbsIntegration:()=>Fi,browserApiErrorsIntegration:()=>Ui,browserProfilingIntegration:()=>Qg,browserTracingIntegration:()=>Sg,captureConsoleIntegration:()=>rn,captureEvent:()=>bt,captureException:()=>yt,captureFeedback:()=>on,captureMessage:()=>vt,captureSession:()=>Lt,captureUserFeedback:()=>ua,chromeStackLineParser:()=>xs,close:()=>Mt,contextLinesIntegration:()=>Ca,continueTrace:()=>$n,createTransport:()=>Kn,createUserFeedbackEnvelope:()=>is,debugIntegration:()=>Zn,dedupeIntegration:()=>er,defaultRequestInstrumentationOptions:()=>Ym,defaultStackLineParsers:()=>Ls,defaultStackParser:()=>Ps,endSession:()=>Ot,eventFromException:()=>Qo,eventFromMessage:()=>Zo,exceptionFromError:()=>qo,extraErrorDataIntegration:()=>or,feedbackAsyncIntegration:()=>Em,feedbackIntegration:()=>xm,feedbackSyncIntegration:()=>xm,flush:()=>It,forceLoad:()=>aa,functionToStringIntegration:()=>ar,geckoStackLineParser:()=>Is,getActiveSpan:()=>at,getClient:()=>pe,getCurrentHub:()=>cr,getCurrentScope:()=>ae,getDefaultIntegrations:()=>oa,getFeedback:()=>Yf,getGlobalScope:()=>ue,getIsolationScope:()=>ce,getReplay:()=>Yp,getRootSpan:()=>it,getSpanDescendants:()=>st,getSpanStatusFromHttpCode:()=>qe,globalHandlersIntegration:()=>Ji,httpClientIntegration:()=>ya,httpContextIntegration:()=>Qi,inboundFiltersIntegration:()=>lr,init:()=>sa,instrumentOutgoingRequests:()=>Vm,isInitialized:()=>Rt,lastEventId:()=>Tt,lazyLoadIntegration:()=>pa,linkedErrorsIntegration:()=>ra,makeBrowserOfflineTransport:()=>Ag,makeFetchTransport:()=>bs,makeMultiplexedTransport:()=>gr,metrics:()=>Pm,moduleMetadataIntegration:()=>wr,onLoad:()=>ca,opera10StackLineParser:()=>Ns,opera11StackLineParser:()=>Ds,parameterize:()=>kr,registerSpanErrorInstrumentation:()=>Kt,replayCanvasIntegration:()=>kf,replayIntegration:()=>zp,reportingObserverIntegration:()=>ma,rewriteFramesIntegration:()=>Tr,sendFeedback:()=>$f,sessionTimingIntegration:()=>Ir,setContext:()=>St,setCurrentClient:()=>Mr,setExtra:()=>kt,setExtras:()=>wt,setHttpStatus:()=>Ye,setMeasurement:()=>xn,setTag:()=>xt,setTags:()=>Et,setUser:()=>Ct,showReportDialog:()=>ia,spanToBaggageHeader:()=>pt,spanToJSON:()=>Ze,spanToTraceHeader:()=>Xe,startBrowserTracingNavigationSpan:()=>kg,startBrowserTracingPageLoadSpan:()=>wg,startInactiveSpan:()=>Pn,startNewTrace:()=>Un,startSession:()=>Nt,startSpan:()=>Dn,startSpanManual:()=>Ln,suppressTracing:()=>jn,thirdPartyErrorFilterIntegration:()=>Rr,winjsStackLineParser:()=>Rs,withActiveSpan:()=>Fn,withIsolationScope:()=>de,withScope:()=>le,zodErrorsIntegration:()=>Dr})
2const r="8.37.1",o="sentry.source",s="sentry.sample_rate",i="sentry.op",a="sentry.origin",c="sentry.idle_span_finish_reason",u="sentry.measurement_unit",l="sentry.measurement_value",d="sentry.exclusive_time",p=Object.prototype.toString
3function f(e){switch(p.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0
4default:return v(e,Error)}}function h(e,t){return p.call(e)===`[object ${t}]`}function m(e){return h(e,"String")}function g(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function _(e){return h(e,"Object")}function y(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function v(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const S=globalThis
5function w(e,t,n){const o=n||S,s=o.__SENTRY__=o.__SENTRY__||{},i=s[r]=s[r]||{}
6return i[e]||(i[e]=t())}const k=S,E=80
7function x(e,t){const n=e,r=[]
8if(!n||!n.tagName)return""
9if(k.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent
10if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase())
11const o=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null
12if(o&&o.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}))
13else{n.id&&r.push(`#${n.id}`)
14const e=n.className
15if(e&&m(e)){const t=e.split(/\s+/)
16for(const e of t)r.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"]
17for(const i of s){const e=n.getAttribute(i)
18e&&r.push(`[${i}="${e}"]`)}return r.join("")}const C="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,T=["debug","info","warn","error","log","assert","trace"],I={}
19function M(e){if(!("console"in S))return e()
20const t=S.console,n={},r=Object.keys(I)
21r.forEach((e=>{const r=I[e]
22n[e]=t[e],t[e]=r}))
23try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const R=w("logger",(function(){let e=!1
24const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e}
25return C?T.forEach((n=>{t[n]=(...t)=>{e&&M((()=>{S.console[n](`Sentry Logger [${n}]:`,...t)}))}})):T.forEach((e=>{t[e]=()=>{}})),t}))
26function A(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){C&&R.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function N(e){try{return"undefined"!=typeof Element&&v(e,Element)?function(e,t={}){if(!e)return"<unknown>"
27try{let n=e
28const r=5,o=[]
29let s=0,i=0
30const a=" > ",c=a.length
31let u
32const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||E
33for(;n&&s++<r&&(u=x(n,l),!("html"===u||s>1&&i+o.length*c+u.length>=d));)o.push(u),i+=u.length,n=n.parentNode
34return o.reverse().join(a)}catch(e){return"<unknown>"}}(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function O(e){if("object"==typeof e&&null!==e){const t={}
35for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
36return t}return{}}function D(e){return L(e,new Map)}function L(e,t){if(function(e){if(!_(e))return!1
37try{const t=Object.getPrototypeOf(e).constructor.name
38return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e)
39if(void 0!==n)return n
40const r={}
41t.set(e,r)
42for(const o of Object.getOwnPropertyNames(e))void 0!==e[o]&&(r[o]=L(e[o],t))
43return r}if(Array.isArray(e)){const n=t.get(e)
44if(void 0!==n)return n
45const r=[]
46return t.set(e,r),e.forEach((e=>{r.push(L(e,t))})),r}return e}function P(){const e=S,t=e.crypto||e.msCrypto
47let n=()=>16*Math.random()
48try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"")
49t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1)
50return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function $(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function F(e){const{message:t,event_id:n}=e
51if(t)return t
52const r=$(e)
53return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function j(e,t){const n=$(e)
54if(!n)return
55const r=n.mechanism
56if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data}
57n.mechanism.data=e}}function U(e){if(e&&e.__sentry_captured__)return!0
58try{A(e,"__sentry_captured__",!0)}catch(e){}return!1}function B(e){return Array.isArray(e)?e:[e]}function H(){return{traceId:P(),spanId:P().substring(16)}}const z=1e3
59function W(){return Date.now()/z}const q=function(){const{performance:e}=S
60if(!e||!e.now)return W
61const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin
62return()=>(n+e.now())/z}()
63let Y
64function V(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||q(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:P()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0
65else if("number"==typeof t.duration)e.duration=t.duration
66else{const t=e.timestamp-e.started
67e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(()=>{const{performance:e}=S
68if(!e||!e.now)return void(Y="none")
69const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):t
70s||a<t?o<=a?(Y="timeOrigin",e.timeOrigin):Y="navigationStart":Y="dateNow"})()
71const G="_sentrySpan"
72function J(e,t){t?A(e,G,t):delete e[G]}function X(e){return e[G]}class K{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=H()}clone(){const e=new K
73return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,J(e,X(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&V(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this
74const t="function"==typeof e?e(this):e,[n,r]=t instanceof Q?[t.getScopeData(),t.getRequestSession()]:_(t)?[e,e.requestSession]:[],{tags:o,extra:s,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=n||{}
75return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,J(this,void 0),this._attachments=[],this._propagationContext=H(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100
76if(n<=0)return this
77const r={timestamp:W(),...e},o=this._breadcrumbs
78return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),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:X(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:P()
79if(!this._client)return R.warn("No client configured on scope - will not capture exception!"),n
80const r=new Error("Sentry syntheticException")
81return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:P()
82if(!this._client)return R.warn("No client configured on scope - will not capture message!"),r
83const o=new Error(e)
84return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:P()
85return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(R.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
85h((e=>{e(this)})),this._notifyingListeners=!1)}}const Q=K
86function Z(){return ee(S),S}function ee(e){const t=e.__SENTRY__=e.__SENTRY__||{}
87return t.version=t.version||r,t[r]=t[r]||{}}class te{constructor(e,t){let n,r
88n=e||new Q,r=t||new Q,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope()
89let n
90try{n=e(t)}catch(e){throw this._popScope(),e}return y(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(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 e=this.getScope().clone()
91return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function ne(){const e=ee(Z())
92return e.stack=e.stack||new te(w("defaultCurrentScope",(()=>new Q)),w("defaultIsolationScope",(()=>new Q)))}function re(e){return ne().withScope(e)}function oe(e,t){const n=ne()
93return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function se(e){return ne().withScope((()=>e(ne().getIsolationScope())))}function ie(e){const t=ee(e)
94return t.acs?t.acs:{withIsolationScope:se,withScope:re,withSetScope:oe,withSetIsolationScope:(e,t)=>se(t),getCurrentScope:()=>ne().getScope(),getIsolationScope:()=>ne().getIsolationScope()}}function ae(){return ie(Z()).getCurrentScope()}function ce(){return ie(Z()).getIsolationScope()}function ue(){return w("globalScope",(()=>new Q))}function le(...e){const t=ie(Z())
95if(2===e.length){const[n,r]=e
96return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function de(...e){const t=ie(Z())
97if(2===e.length){const[n,r]=e
98return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function pe(){return ae().getClient()}const fe=100
99function he(e,t){const n=pe(),r=ce()
100if(!n)return
101const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=fe}=n.getOptions()
102if(s<=0)return
103const i={timestamp:W(),...e},a=o?M((()=>o(i,t))):i
104null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,s))}const me="production",ge="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__
105function _e(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function ye(e,t){if(!Array.isArray(e))return""
106const n=[]
107for(let r=0;r<e.length;r++){const t=e[r]
108try{b(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ve(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!m(e)&&(h(t,"RegExp")?t.test(e):!!m(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}const be="<anonymous>"
109function Se(e){try{return e&&"function"==typeof e&&e.name||be}catch(e){return be}}function we(e){const t=e.exception
110if(t){const n=[]
111try{return t.values.forEach((e=>{e.stacktrace.frames&&n.push(...e.stacktrace.frames)})),n}catch(e){return}}}function ke(e,t=100,n=1/0){try{return Ee("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Ee(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[]
112return[function(n){if(e)return!!t.has(n)||(t.add(n),!1)
113for(let e=0;e<t.length;e++)if(t[e]===n)return!0
114return t.push(n),!1},function(n){if(e)t.delete(n)
115else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1)
116break}}]}()){const[s,i]=o
117if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t
118const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]"
119if("domainEmitter"===e)return"[DomainEmitter]"
120if("undefined"!=typeof global&&t===global)return"[Global]"
121if("undefined"!=typeof window&&t===window)return"[Window]"
122if("undefined"!=typeof document&&t===document)return"[Document]"
123if(b(t))return"[VueViewModel]"
124if(_(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]"
125if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`
126if("function"==typeof t)return`[Function: ${Se(t)}]`
127if("symbol"==typeof t)return`[${String(t)}]`
128if("bigint"==typeof t)return`[BigInt: ${String(t)}]`
129const r=function(e){const t=Object.getPrototypeOf(e)
130return t?t.constructor.name:"null prototype"}(t)
131return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t)
132if(!a.startsWith("[object "))return a
133if(t.__sentry_skip_normalization__)return t
134const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n
135if(0===c)return a.replace("object ","")
136if(s(t))return"[Circular ~]"
137const u=t
138if(u&&"function"==typeof u.toJSON)try{return Ee("",u.toJSON(),c-1,r,o)}catch(e){}const l=Array.isArray(t)?[]:{}
139let d=0
140const p=function(e){if(f(e))return{message:e.message,name:e.name,stack:e.stack,...O(e)}
141if("undefined"!=typeof Event&&v(e,Event)){const t={type:e.type,target:N(e.target),currentTarget:N(e.currentTarget),...O(e)}
142return"undefined"!=typeof CustomEvent&&v(e,CustomEvent)&&(t.detail=e.detail),t}return e}(t)
143for(const f in p){if(!Object.prototype.hasOwnProperty.call(p,f))continue
144if(d>=r){l[f]="[MaxProperties ~]"
145break}const e=p[f]
146l[f]=Ee(f,e,c-1,r,o),d++}return i(t),l}var xe
147function Ce(e){return new Ie((t=>{t(e)}))}function Te(e){return new Ie(((t,n)=>{n(e)}))}
147!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(xe||(xe={}))
148class Ie{constructor(e){Ie.prototype.__init.call(this),Ie.prototype.__init2.call(this),Ie.prototype.__init3.call(this),Ie.prototype.__init4.call(this),this._state=xe.PENDING,this._handlers=[]
149try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Ie(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Ie(((t,n)=>{let r,o
150return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(xe.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(xe.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===xe.PENDING&&(y(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===xe.PENDING)return
151const e=this._handlers.slice()
152this._handlers=[],e.forEach((e=>{e[0]||(this._state===xe.RESOLVED&&e[1](this._value),this._state===xe.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Me(e,t,n,r=0){return new Ie(((o,s)=>{const i=e[r]
153if(null===t||"function"!=typeof i)o(t)
154else{const a=i({...t},n)
155ge&&i.id&&null===a&&R.log(`Event processor "${i.id}" dropped event`),y(a)?a.then((t=>Me(e,t,n,r+1).then(o))).then(null,s):Me(e,a,n,r+1).then(o).then(null,s)}}))}const Re="baggage",Ae="sentry-",Ne=/^sentry-/,Oe=8192
156function De(e){const t=function(e){if(e&&(m(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Pe(t)
157return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Pe(e)}(e)
158if(!t)return
159const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Ne)&&(e[t.slice(Ae.length)]=n),e)),{})
160return Object.keys(n).length>0?n:void 0}function Le(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],r)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?o:`${e},${o}`
161return s.length>Oe?(C&&R.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${Ae}${t}`]=n),e)),{}))}function Pe(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}function $e(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1
162const t=pe(),n=e||t&&t.getOptions()
163return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const Fe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$")
164function je(e=P(),t=P().substring(16),n){let r=""
165return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const Ue="_sentryMetrics"
166function Be(e){const t=e[Ue]
167if(!t)return
168const n={}
169for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(D(o))
170return n}const He=0,ze=1,We=2
171function qe(e){if(e<400&&e>=100)return{code:ze}
172if(e>=400&&e<500)switch(e){case 401:return{code:We,message:"unauthenticated"}
173case 403:return{code:We,message:"permission_denied"}
174case 404:return{code:We,message:"not_found"}
175case 409:return{code:We,message:"already_exists"}
176case 413:return{code:We,message:"failed_precondition"}
177case 429:return{code:We,message:"resource_exhausted"}
178case 499:return{code:We,message:"cancelled"}
179default:return{code:We,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:We,message:"unimplemented"}
180case 503:return{code:We,message:"unavailable"}
181case 504:return{code:We,message:"deadline_exceeded"}
182default:return{code:We,message:"internal_error"}}return{code:We,message:"unknown_error"}}function Ye(e,t){e.setAttribute("http.response.status_code",t)
183const n=qe(t)
184"unknown_error"!==n.message&&e.setStatus(n)}const Ve=1
185function Ge(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:s,status:i,origin:a}=Ze(e)
186return D({parent_span_id:s,span_id:t,trace_id:n,data:r,op:o,status:i,origin:a})}function Je(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}
186=Ze(e)
187return D({parent_span_id:r,span_id:t,trace_id:n})}function Xe(e){const{traceId:t,spanId:n}=e.spanContext()
188return je(t,n,et(e))}function Ke(e){return"number"==typeof e?Qe(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Qe(e.getTime()):q()}function Qe(e){return e>9999999999?e/1e3:e}function Ze(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON()
189try{const{spanId:t,traceId:n}=e.spanContext()
190if(function(e){const t=e
191return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:s,endTime:c,parentSpanId:u,status:l}=e
192return D({span_id:t,trace_id:n,data:r,description:s,parent_span_id:u,start_timestamp:Ke(o),timestamp:Ke(c)||void 0,status:tt(l),op:r[i],origin:r[a],_metrics_summary:Be(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function et(e){const{traceFlags:t}=e.spanContext()
193return t===Ve}function tt(e){if(e&&e.code!==He)return e.code===ze?"ok":e.message||"unknown_error"}const nt="_sentryChildSpans",rt="_sentryRootSpan"
194function ot(e,t){const n=e[rt]||e
195A(t,rt,n),e[nt]?e[nt].add(t):A(e,nt,new Set([t]))}function st(e){const t=new Set
196return function e(n){if(!t.has(n)&&et(n)){t.add(n)
197const r=n[nt]?Array.from(n[nt]):[]
198for(const t of r)e(t)}}(e),Array.from(t)}function it(e){return e[rt]||e}function at(){const e=ie(Z())
199return e.getActiveSpan?e.getActiveSpan():X(ae())}const ct="_frozenDsc"
200function ut(e,t){A(e,ct,t)}function lt(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=D({environment:n.environment||me,release:n.release,public_key:r,trace_id:e})
201return t.emit("createDsc",o),o}function dt(e){const t=pe()
202if(!t)return{}
203const n=lt(Ze(e).trace_id||"",t),r=it(e),i=r[ct]
204if(i)return i
205const a=r.spanContext().traceState,c=a&&a.get("sentry.dsc"),u=c&&De(c)
206if(u)return u
207const l=Ze(r),d=l.data||{},p=d[s]
208null!=p&&(n.sample_rate=`${p}`)
209const f=d[o],h=l.description
210return"url"!==f&&h&&(n.transaction=h),$e()&&(n.sampled=String(et(r))),t.emit("createDsc",n,r),n}function pt(e){return Le(dt(e))}function ft(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:f,span:h}=t
211ht(e,"extra",n),ht(e,"tags",r),ht(e,"user",o),ht(e,"contexts",s),ht(e,"sdkProcessingMetadata",a),i&&(e.level=i),f&&(e.transactionName=f),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function ht(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]}
212for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function mt(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||P(),timestamp:t.timestamp||W()},u=n.integrations||e.integrations.map((e=>e.name))
213!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t
214"environment"in e||(e.environment="environment"in t?n:me),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=_e(e.message,s))
215const i=e.exception&&e.exception.values&&e.exception.values[0]
216i&&i.value&&(i.value=_e(i.value,s))
217const a=e.request
218a&&a.url&&(a.url=_e(a.url,s))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=S._sentryDebugIds
219if(!n)return
220let r
221const o=gt.get(t)
222o?r=o:(r=new Map,gt.set(t,r))
223const s=Object.entries(n).reduce(((e,[n,o])=>{let s
224const i=r.get(n)
225i?s=i:(s=t(n),r.set(n,s))
226for(let t=s.length-1;t>=0;t--){const n=s[t]
227if(n.filename){e[n.filename]=o
228break}}return e}),{})
229try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=s[e.filename])}))}))}catch(e){}}(c,e.stackParser)
230const l=function(e,t){if(!t)return e
231const n=e?e.clone():new Q
232return n.update(t),n}(r,n.captureContext)
233n.mechanism&&j(c,n.mechanism)
234const d=o?o.getEventProcessors():[],p=ue().getScopeData()
235s&&ft(p,s.getScopeData()),l&&ft(p,l.getScopeData())
236const f=[...n.attachments||[],...p.attachments]
237return f.length&&(n.attachments=f),function(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t
238!function(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=t,c=D(n)
239c&&Object.keys(c).length&&(e.extra={...c,...e.extra})
240const u=D(r)
241u&&Object.keys(u).length&&(e.tags={...u,...e.tags})
242const l=D(o)
243l&&Object.keys(l).length&&(e.user={...l,...e.user})
244const d=D(s)
245d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),i&&(e.level=i),a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Je(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:dt(t),...e.sdkProcessingMetadata}
246const n=Ze(it(t)).description
247n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?B(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t]
248e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}
248(e,s)}(c,p),Me([...d,...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={}
249try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return
250e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[]
251const n=e.debug_meta.images
252Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}(e),"number"==typeof i&&i>0?function(e,t,n){if(!e)return null
253const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:ke(e.data,t,n)}})))},...e.user&&{user:ke(e.user,t,n)},...e.contexts&&{contexts:ke(e.contexts,t,n)},...e.extra&&{extra:ke(e.extra,t,n)}}
254return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ke(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:ke(e.data,t,n)}})))),r}(e,i,a):e)))}const gt=new WeakMap,_t=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]
255function yt(e,t){return ae().captureException(e,function(e){if(e)return function(e){return e instanceof Q||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>_t.includes(e)))}(e)?{captureContext:e}:e}(t))}function vt(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0
256return ae().captureMessage(e,n,r)}function bt(e,t){return ae().captureEvent(e,t)}function St(e,t){ce().setContext(e,t)}function wt(e){ce().setExtras(e)}function kt(e,t){ce().setExtra(e,t)}function Et(e){ce().setTags(e)}function xt(e,t){ce().setTag(e,t)}function Ct(e){ce().setUser(e)}function Tt(){return ce().lastEventId()}async function It(e){const t=pe()
257return t?t.flush(e):(ge&&R.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Mt(e){const t=pe()
258return t?t.close(e):(ge&&R.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Rt(){return!!pe()}function At(e){ce().addEventProcessor(e)}function Nt(e){const t=pe(),n=ce(),r=ae(),{release:o,environment:s=me}=t&&t.getOptions()||{},{userAgent:i}=S.navigator||{},a=function(e){const t=q(),n={sid:P(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return D({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)}
259return e&&V(n,e),n}({release:o,environment:s,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession()
260return c&&"ok"===c.status&&V(c,{status:"exited"}),Ot(),n.setSession(a),r.setSession(a),a}function Ot(){const e=ce(),t=ae(),n=t.getSession()||e.getSession()
261n&&function(e,t){let n={}
262"ok"===e.status&&(n={status:"exited"}),V(e,n)}(n),Dt(),e.setSession(),t.setSession()}function Dt(){const e=ce(),t=ae(),n=pe(),r=t.getSession()||e.getSession()
263r&&n&&n.captureSession(r)}function Lt(e=!1){e?Ot():Dt()}const Pt=[]
264function $t(e){const t=e.defaultIntegrations||[],n=e.integrations
265let r
266t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?B(n(t)):t
267const o=function(e){const t={}
268return e.forEach((e=>{const{name:n}=e,r=t[n]
269r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(r),s=o.findIndex((e=>"Debug"===e.name))
270if(s>-1){const[e]=o.splice(s,1)
271o.push(e)}return o}function Ft(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function jt(e,t,n){if(n[t.name])ge&&R.log(`Integration skipped because it was already installed: ${t.name}`)
272else{if(n[t.name]=t,-1===Pt.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Pt.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t)
273e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name})
274e.addEventProcessor(r)}ge&&R.log(`Integration installed: ${t.name}`)}}function Ut(e){const t=pe()
275t?t.addIntegration(e):ge&&R.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}const Bt={},Ht={}
276function zt(e,t){Bt[e]=Bt[e]||[],Bt[e].push(t)}function Wt(e,t){if(!Ht[e]){Ht[e]=!0
277try{t()}catch(t){C&&R.error(`Error while instrumenting ${e}`,t)}}}function qt(e,t){const n=e&&Bt[e]
278if(n)for(const r of n)try{r(t)}catch(t){C&&R.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Se(r)}\nError:`,t)}}let Yt=null
279function Vt(){Yt=S.onerror,S.onerror=function(e,t,n,r,o){return qt("error",{column:r,error:o,line:n,msg:e,url:t}),!(!Yt||Yt.__SENTRY_LOADER__)&&Yt.apply(this,arguments)},S.onerror.__SENTRY_INSTRUMENTED__=!0}let Gt=null
280function Jt(){Gt=S.onunhandledrejection,S.onunhandledrejection=function(e){return qt("unhandledrejection",e),!(Gt&&!Gt.__SENTRY_LOADER__)||Gt.apply(this,arguments)},S.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let Xt=!1
281function Kt(){Xt||(Xt=!0,function(e){const t="error"
282zt(t,e),Wt(t,Vt)}(Qt),function(e){const t="unhandledrejection"
283zt(t,e),Wt(t,Jt)}(Qt))}function Qt(){const e=at(),t=e&&it(e)
284if(t){const e="internal_error"
285ge&&R.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:We,message:e})}}function Zt(){Kt()}function en(){"console"in S&&T.forEach((function(e){e in S.console&&function(e,t,n){if(!(t in e))return
286const r=e[t],o=n(r)
287"function"==typeof o&&function(e,t){try{const n=t.prototype||{}
288e.prototype=t.prototype=n,A(e,"__sentry_original__",t)}catch(e){}}(o,r),e[t]=o}(S.console,e,(function(t){return I[e]=t,function(...t){qt("console",{args:t,level:e})
289const n=I[e]
290n&&n.apply(S.console,t)}}))}))}Qt.tag="sentry_tracingErrorCallback"
291const tn=["fatal","error","warning","log","info","debug"]
292function nn(e){return"warn"===e?"warning":tn.includes(e)?e:"log"}const rn=(e={})=>{const t=e.levels||T
293return{name:"CaptureConsole",setup(e){"console"in S&&function(n){const r="console"
294zt(r,(({args:n,level:r})=>{pe()===e&&t.includes(r)&&function(e,t){const n={level:nn(t),extra:{arguments:e}}
295le((r=>{if(r.addEventProcessor((e=>(e.logger="console",j(e,{handled:!1,type:"console"}),e))),"assert"===t){if(!e[0]){const t=`Assertion failed: ${ye(e.slice(1)," ")||"console.assert"}`
296r.setExtra("arguments",e.slice(1)),vt(t,n)}return}const o=e.find((e=>e instanceof Error))
297o?yt(o,n):vt(ye(e," "),n)}))}(n,r)})),Wt(r,en)}()}}}
298function on(e,t={},n=ae()){const{message:r,name:o,email:s,url:i,source:a,associatedEventId:c,tags:u}=e,l={contexts:{feedback:D({contact_email:s,name:o,message:r,url:i,source:a,associated_event_id:c})},type:"feedback",level:"info",tags:u},d=n&&n.getClient()||pe()
299return d&&d.emit("beforeSendFeedback",l,t),n.captureEvent(l,t)}function sn(e,t,n=(()=>{})){let r
300try{r=e()}catch(e){throw t(e),n(),e}return function(e,t,n){return y(e)?e.then((e=>(n(),e)),(e=>{throw t(e),n(),e})):(n(),e)}(r,t,n)}function an(e){if("boolean"==typeof e)return Number(e)
301const t="string"==typeof e?parseFloat(e):e
302if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t
303ge&&R.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}class cn{constructor(e={}){this._traceId=e.traceId||P(),this._spanId=e.spanId||P().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}const un=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/
304function ln(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=e
305return`${a}://${c}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}function dn(e){const t=un.exec(e)
306if(!t)return void M((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}))
307const[n,r,o="",s="",i="",a=""]=t.slice(1)
308let c="",u=a
309const l=u.split("/")
310if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const e=u.match(/^\d+/)
311e&&(u=e[0])}return pn({host:s,pass:o,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function pn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function fn(e){const t="string"==typeof e?dn(e):pn(e)
312if(t&&function(e){if(!C)return!0
313const{port:t,projectId:n,protocol:r}=e
314return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(R.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(R.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(R.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(R.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function hn(e,t=[]){return[e,t]}function mn(e,t){const[n,r]=e
315return[n,[...r,t]]}function gn(e,t){const n=e[1]
316for(const r of n)if(t(r,r[0].type))return!0
317return!1}function _n(e,t){return gn(e,((e,n)=>t.includes(n)))}function yn(e){return S.__SENTRY__&&S.__SENTRY__.encodePolyfill?S.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function vn(e){const[t,n]=e
318let r=JSON.stringify(t)
319function o(e){"string"==typeof r?r="string"==typeof e?r+e:[yn(r),e]:r.push("string"==typeof e?yn(e):e)}for(const s of n){const[e,n]=s
320if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n)
321else{let e
322try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(ke(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t)
323let r=0
324for(const o of e)n.set(o,r),r+=o.length
325return n}(r)}function bn(e){return[{type:"span"},e]}function Sn(e){const t="string"==typeof e.data?yn(e.data):e.data
326return[D({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const wn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"}
327function kn(e){return wn[e]}function En(e){if(!e||!e.sdk)return
328const{name:t,version:n}=e.sdk
329return{name:t,version:n}}function xn(e,t,n,r=at()){const o=r&&it(r)
330o&&o.addEvent(e,{[l]:t,[u]:n})}function Cn(e){if(!e||0===e.length)return
331const t={}
332return e.forEach((e=>{const n=e.attributes||{},r=n[u],o=n[l]
333"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})})),t}const Tn="_sentryScope",In="_sentryIsolationScope"
334function Mn(e){return{scope:e[Tn],isolationScope:e[In]}}class Rn{constructor(e={}){this._traceId=e.traceId||P(),this._spanId=e.spanId||P().substring(16),this._startTime=e.startTimestamp||q(),this._attributes={},this.setAttributes({[a]:"manual",[i]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
334addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this
335return{spanId:e,traceId:t,traceFlags:n?Ve:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}updateStartTime(e){this._startTime=Ke(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=Ke(e),function(e){if(!ge)return
336const{description:t="< unknown name >",op:n="< unknown op >"}=Ze(e),{spanId:r}=e.spanContext(),o=`[Tracing] Finishing "${n}" ${it(e)===e?"root ":""}span "${t}" with ID ${r}`
337R.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return D({data:this._attributes,description:this._name,op:this._attributes[i],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:tt(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a],_metrics_summary:Be(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[d],measurements:Cn(this._events),is_segment:this._isStandaloneSpan&&it(this)===this||void 0,segment_id:this._isStandaloneSpan?it(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){ge&&R.log("[Tracing] Adding an event to span:",e)
338const r=An(t)?t:n||q(),o=An(t)?{}:t||{},s={name:e,time:Ke(r),attributes:o}
339return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=pe()
340if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==it(this))return
341if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=pe()
342if(!t)return
343const n=e[1]
344n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){const n=dt(e[0]),r=t&&t.getDsn(),o=t&&t.getOptions().tunnel,s={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!o&&r&&{dsn:ln(r)}},i=t&&t.getOptions().beforeSendSpan,a=i?e=>i(Ze(e)):e=>Ze(e),c=[]
345for(const u of e){const e=a(u)
346e&&c.push(bn(e))}return hn(s,c)}([this],e)):(ge&&R.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")))
347const t=this._convertSpanToTransaction()
348t&&(Mn(this).scope||ae()).captureEvent(t)}_convertSpanToTransaction(){if(!Nn(Ze(this)))return
349this._name||(ge&&R.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>")
350const{scope:e,isolationScope:t}=Mn(this),n=(e||ae()).getClient()||pe()
351if(!0!==this._sampled)return ge&&R.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"))
352const r=st(this).filter((e=>e!==this&&!function(e){return e instanceof Rn&&e.isStandaloneSpan()}(e))).map((e=>Ze(e))).filter(Nn),s=this._attributes[o],i={contexts:{trace:Ge(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...D({dynamicSamplingContext:dt(this)})},_metrics_summary:Be(this),...s&&{transaction_info:{source:s}}},a=Cn(this._events)
353return a&&Object.keys(a).length&&(ge&&R.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),i.measurements=a),i}}function An(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function Nn(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const On="__SENTRY_SUPPRESS_TRACING__"
354function Dn(e,t){const n=zn()
355if(n.startSpan)return n.startSpan(e,t)
356const r=Hn(e),{forceTransaction:o,parentSpan:s}=e
357return le(e.scope,(()=>Yn(s)((()=>{const n=ae(),s=qn(n),i=e.onlyIfParent&&!s?new cn:Bn({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n})
358return J(n,i),sn((()=>t(i)),(()=>{const{status:e}=Ze(i)
359!i.isRecording()||e&&"ok"!==e||i.setStatus({code:We,message:"internal_error"})}),(()=>i.end()))}))))}function Ln(e,t){const n=zn()
360if(n.startSpanManual)return n.startSpanManual(e,t)
361const r=Hn(e),{forceTransaction:o,parentSpan:s}=e
362return le(e.scope,(()=>Yn(s)((()=>{const n=ae(),s=qn(n),i=e.onlyIfParent&&!s?new cn:Bn({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n})
363function a(){i.end()}return J(n,i),sn((()=>t(i,a)),(()=>{const{status:e}=Ze(i)
364!i.isRecording()||e&&"ok"!==e||i.setStatus({code:We,message:"internal_error"})}))}))))}function Pn(e){const t=zn()
365if(t.startInactiveSpan)return t.startInactiveSpan(e)
366const n=Hn(e),{forceTransaction:r,parentSpan:o}=e
367return(e.scope?t=>le(e.scope,t):void 0!==o?e=>Fn(o,e):e=>e())((()=>{const t=ae(),o=qn(t)
368return e.onlyIfParent&&!o?new cn:Bn({parentSpan:o,spanArguments:n,forceTransaction:r,scope:t})}))}const $n=({sentryTrace:e,baggage:t},n)=>le((r=>{const o=function(e,t){const n=function(e){if(!e)return
369const t=e.match(Fe)
370if(!t)return
371let n
372return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),r=De(t),{traceId:o,parentSpanId:s,parentSampled:i}=n||{}
373return n?{traceId:o||P(),parentSpanId:s||P().substring(16),spanId:P().substring(16),sampled:i,dsc:r||{}}:{traceId:o||P(),spanId:P().substring(16)}}(e,t)
374return r.setPropagationContext(o),n()}))
375function Fn(e,t){const n=zn()
376return n.withActiveSpan?n.withActiveSpan(e,t):le((n=>(J(n,e||void 0),t(n))))}function jn(e){const t=zn()
377return t.suppressTracing?t.suppressTracing(e):le((t=>(t.setSDKProcessingMetadata({[On]:!0}),e())))}function Un(e){return le((t=>(t.setPropagationContext(H()),ge&&R.info(`Starting a new trace with i
377d ${t.getPropagationContext().traceId}`),Fn(null,e))))}function Bn({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!$e())return new cn
378const o=ce()
379let s
380if(e&&!n)s=function(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[On]&&et(e),i=s?new Rn({...n,parentSpanId:r,traceId:o,sampled:s}):new cn({traceId:o})
381ot(e,i)
382const a=pe()
383return a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i)),i}(e,r,t),ot(e,s)
384else if(e){const n=dt(e),{traceId:o,spanId:i}=e.spanContext(),a=et(e)
385s=Wn({traceId:o,parentSpanId:i,...t},r,a),ut(s,n)}else{const{traceId:e,dsc:n,parentSpanId:i,sampled:a}={...o.getPropagationContext(),...r.getPropagationContext()}
386s=Wn({traceId:e,parentSpanId:i,...t},r,a),n&&ut(s,n)}return function(e){if(!ge)return
387const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Ze(e),{spanId:o}=e.spanContext(),s=et(e),i=it(e),a=i===e,c=`[Tracing] Starting ${s?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${o}`]
388if(r&&u.push(`parent ID: ${r}`),!a){const{op:e,description:t}=Ze(i)
389u.push(`root ID: ${i.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}R.log(`${c}\n  ${u.join("\n  ")}`)}(s),function(e,t,n){e&&(A(e,In,n),A(e,Tn,t))}(s,r,o),s}function Hn(e){const t={isStandalone:(e.experimental||{}).standalone,...e}
390if(e.startTime){const n={...t}
391return n.startTimestamp=Ke(e.startTime),delete n.startTime,n}return t}function zn(){return ie(Z())}function Wn(e,t,n){const r=pe(),i=r&&r.getOptions()||{},{name:a="",attributes:c}=e,[u,l]=t.getScopeData().sdkProcessingMetadata[On]?[!1]:function(e,t){if(!$e(e))return[!1]
392let n
393n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1
394const r=an(n)
395return void 0===r?(ge&&R.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(ge&&R.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(ge&&R.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])}(i,{name:a,parentSampled:n,attributes:c,transactionContext:{name:a,parentSampled:n}}),d=new Rn({...e,attributes:{[o]:"custom",...e.attributes},sampled:u})
396return void 0!==l&&d.setAttribute(s,l),r&&r.emit("spanStart",d),d}function qn(e){const t=X(e)
397if(!t)return
398const n=pe()
399return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?it(t):t}function Yn(e){return void 0!==e?t=>Fn(e,t):e=>e()}class Vn extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const Gn=6e4
400function Jn(e,t=Date.now()){const n=parseInt(`${e}`,10)
401if(!isNaN(n))return 1e3*n
402const r=Date.parse(`${e}`)
403return isNaN(r)?Gn:r-t}const Xn=64
404function Kn(e,t,n=function(e){const t=[]
405function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return Te(new Vn("Not adding Promise because buffer limit was reached."))
406const o=r()
407return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new Ie(((n,r)=>{let o=t.length
408if(!o)return n(!0)
409const s=setTimeout((()=>{e&&e>0&&n(!1)}),e)
410t.forEach((e=>{Ce(e).then((()=>{--o||(clearTimeout(s),n(!0))}),r)}))}))}}}(e.bufferSize||Xn)){let r={}
411return{send:function(o){const s=[]
412if(gn(o,((t,n)=>{const o=kn(n)
413if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=Qn(t,n)
414e.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(t)})),0===s.length)return Ce({})
415const i=hn(o[0],s),a=t=>{gn(i,((n,r)=>{const o=Qn(n,r)
416e.recordDroppedEvent(t,kn(r),o)}))}
417return n.add((()=>t({body:vn(i)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&ge&&R.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"]
418if(s)for(const a of s.trim().split(",")){const[e,t,,,n]=a.split(":",5),s=parseInt(e,10),i=1e3*(isNaN(s)?60:s)
419if(t)for(const a of t.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(o[a]=r+i)
420else o.all=r+i}else i?o.all=r+Jn(i,r):429===t&&(o.all=r+6e4)
421return o}(r,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Vn)return ge&&R.error("Skipped sending event because buffer is full."),a("queue_overflow"),Ce({})
422throw e}))},flush:e=>n.drain(e)}}function Qn(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const Zn=(e={})=>{const t={debugger:!1,stringify:!1,...e}
423return{name:"Debug",setup(e){e.on("beforeSendEvent",((e,n)=>{t.debugger,M((()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))}))}))}}},er=()=>{let e
424return{name:"Dedupe",processEvent(t){if(t.type)return t
425try{if(function(e,t){return!(!t||!function(e,t){const n=e.message,r=t.message
426return!(!n&&!r||n&&!r||!n&&r||n!==r||!nr(e,t)||!tr(e,t))}(e,t)&&!function(e,t){const n=rr(t),r=rr(e)
427return!!(n&&r&&n.type===r.type&&n.value===r.value&&nr(e,t)&&tr(e,t))}(e,t))}(t,e))return ge&&R.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}}
428function tr(e,t){let n=we(e),r=we(t)
429if(!n&&!r)return!0
430if(n&&!r||!n&&r)return!1
431if(r.length!==n.length)return!1
432for(let o=0;o<r.length;
432o++){const e=r[o],t=n[o]
433if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function nr(e,t){let n=e.fingerprint,r=t.fingerprint
434if(!n&&!r)return!0
435if(n&&!r||!n&&r)return!1
436try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function rr(e){return e.exception&&e.exception.values&&e.exception.values[0]}const or=(e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e
437return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:s=250}=o.getOptions()
438return function(e,t={},n,r,o){if(!t.originalException||!f(t.originalException))return e
439const s=t.originalException.name||t.originalException.constructor.name,i=function(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={}
440for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue
441const s=e[t]
442o[t]=f(s)||"string"==typeof s?_e(`${s}`,n):s}if(t&&void 0!==e.cause&&(o.cause=f(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON()
443for(const e of Object.keys(t)){const n=t[e]
444o[e]=f(n)?n.toString():n}}return o}catch(e){ge&&R.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r,o)
445if(i){const t={...e.contexts},r=ke(i,n)
446return _(r)&&(A(r,"__sentry_skip_normalization__",!0),t[s]=r),{...e,contexts:t}}return e}(e,r,t,n,s)}}}
447let sr
448const ir=new WeakMap,ar=()=>({name:"FunctionToString",setupOnce(){sr=Function.prototype.toString
449try{Function.prototype.toString=function(...e){const t=this.__sentry_original__,n=ir.has(pe())&&void 0!==t?t:this
450return sr.apply(n,e)}}catch(e){}},setup(e){ir.set(e,!0)}}),cr=function(){return{bindClient(e){ae().setClient(e)},withScope:le,getClient:()=>pe(),getScope:ae,getIsolationScope:ce,captureException:(e,t)=>ae().captureException(e,t),captureMessage:(e,t,n)=>ae().captureMessage(e,t,n),captureEvent:bt,addBreadcrumb:he,setUser:Ct,setTags:Et,setTag:xt,setExtra:kt,setExtras:wt,setContext:St,getIntegration(e){const t=pe()
451return t&&t.getIntegrationByName(e.id)||null},startSession:Nt,endSession:Ot,captureSession(e){if(e)return Ot()
452!function(){const e=ae(),t=pe(),n=e.getSession()
453t&&n&&t.captureSession(n)}()}}},ur=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],lr=(e={})=>({name:"InboundFilters",processEvent(t,n,r){const o=r.getOptions(),s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ur],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o)
454return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(ge&&R.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${F(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[]
455let n
456e.message&&t.push(e.message)
457try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}(e).some((e=>ve(e,t)))}(e,t.ignoreErrors)?(ge&&R.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${F(e)}`),!0):function(e){return!(e.type||!e.exception||!e.exception.values||0===e.exception.values.length||e.message||e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)))}(e)?(ge&&R.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${F(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1
458const n=e.transaction
459return!!n&&ve(n,t)}(e,t.ignoreTransactions)?(ge&&R.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${F(e)}`),!0):function(e,t){if(!t||!t.length)return!1
460const n=dr(e)
461return!!n&&ve(n,t)}(e,t.denyUrls)?(ge&&R.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${F(e)}.\nUrl: ${dr(e)}`),!0):!function(e,t){if(!t||!t.length)return!0
462const n=dr(e)
463return!n||ve(n,t)}(e,t.allowUrls)&&(ge&&R.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${F(e)}.\nUrl: ${dr(e)}`),!0)}(t,s)?null:t}})
464function dr(e){try{let t
465try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t]
466if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return ge&&R.error(`Cannot extract url for event ${F(e)}`),null}}const pr="7"
467function fr(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:""
468return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function hr(e,t,n){return t||`${function(e){return`${fr(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:pr,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&")
469var n}(e,n)}`}function mr(e,t){let n
470return gn(e,((e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n))),n}function gr(e,t){return n=>{const r=e(n),o=new Map
471function s(t,r){const s=r?`${t}:${r}`:t
472let i=o.get(s)
473if(!i){const a=dn(t)
474if(!a)return
475const c=hr(a,n.tunnel)
476i=r?function(e,t){return n=>{const r=e(n)
477return{...r,send:async e=>{const n=mr(e,["event","transaction","profile","replay_event"])
478return n&&(n.release=t),r.send(e)}}}}(e,r)({...n,url:c}):e({...n,url:c}),o.set(s,i)}return[t,i]}return{send:async function(e){const n=t({envelope:e,getEvent:function(t){const n=t&&t.length?t:["event"]
479return mr(e,n)}}).map((e=>"string"==typeof e?s(e,void 0):s(e.dsn,e.release))).filter((e=>!!e)),o=n.length?n:[["",r]]
480return(await Promise.all(o.map((([t,n])=>n.send(function(e,t){return hn(t?{...e[0],dsn:t}:e[0],e[1])}(e,t))))))[0]},flush:async function(e){const t=[...o.values(),r]
481return(await Promise.all(t.map((t=>t.flush(e))))).every((e=>e))}}}}const _r=new Map,yr=new Set
482function vr(e,t){return function(e){if(S._sentryModuleMetadata)for(const t of Object.keys(S._sentryModuleMetadata)){const n=S._sentryModuleMetadata[t]
483if(yr.has(t))continue
484yr.add(t)
485const r=e(t)
486for(const e of r.reverse())if(e.filename){_r.set(e.filename,n)
487break}}}(e),_r.get(t)}function br(e,t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue
488const t=vr(e,n.filename)
489t&&(n.module_metadata=t)}}))}catch(e){}}function Sr(e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const t of e.stacktrace.frames||[])delete t.module_metadata}))}catch(e){}}const wr=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",(e=>{gn(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0
490t&&(Sr(t),e[1]=t)}}))})),e.on("applyFrameMetadata",(t=>{t.type||br(e.getOptions().stackParser,t)}))}})
491function kr(e,...t){const n=new String(String.raw(e,...t))
492return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const Er=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/
493function xr(...e){let t="",n=!1
494for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/"
495o&&(t=`${o}/${t}`,n="/"===o.charAt(0))}return t=function(e,t){let n=0
496for(let r=e.length-1;r>=0;r--){const t=e[r]
497"."===t?e.splice(r,1):".."===t?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..")
498return e}(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function Cr(e){let t=0
499for(;t<e.length&&""===e[t];t++);let n=e.length-1
500for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}const Tr=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in S&&void 0!==S.window,o=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r
501const o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename)
502if(e){if(t){const e=r.filename
5030===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(o||s){const e=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?function(e,t){e=xr(e).slice(1),t=xr(t).slice(1)
504const n=Cr(e.split("/")),r=Cr(t.split("/")),o=Math.min(n.length,r.length)
505let s=o
506for(let a=0;a<o;a++)if(n[a]!==r[a]){s=a
507break}let i=[]
508for(let a=s;a<n.length;a++)i.push("..")
509return i=i.concat(r.slice(s)),i.join("/")}(t,e):function(e,t){let n=function(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Er.exec(t)
510return n?n.slice(1):[]}(e)[2]||""
511return n}(e)
512r.filename=`${n}${s}`}return r}}({isBrowser:r,root:t,prefix:n})
513return{name:"RewriteFrames",processEvent(e){let t=e
514return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map((e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t&&t.frames&&t.frames.map((e=>o(e)))})}}
515var t}))}}}catch(t){return e}}(t)),t}}},Ir=()=>{const e=1e3*q()
516return{name:"SessionTiming",processEvent(t){const n=1e3*q()
517return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}}
518function Mr(e){ae().setClient(e)}const Rr=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",(e=>{gn(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0
519t&&(Sr(t),e[1]=t)}}
519))})),e.on("applyFrameMetadata",(t=>{t.type||br(e.getOptions().stackParser,t)}))},processEvent(t){const n=function(e){const t=we(e)
520if(t)return t.filter((e=>!!e.filename)).map((e=>e.module_metadata?Object.keys(e.module_metadata).filter((e=>e.startsWith(Ar))).map((e=>e.slice(Ar.length))):[]))}(t)
521if(n){const r=n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"]((t=>!t.some((t=>e.filterKeys.includes(t)))))
522if(r){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null
523t.tags={...t.tags,third_party_code:!0}}}return t}}),Ar="_sentryBundlerPluginAppKey:"
524function Nr(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function Or(e){const t=new Set
525for(const n of e.issues)n.path&&n.path[0]&&t.add(n.path[0])
526return`Failed to validate keys: ${_e(Array.from(t).join(", "),100)}`}const Dr=(e={})=>{const t=e.limit||10
527return{name:"ZodErrors",processEvent:(e,n)=>function(e,t,n){return t.exception&&t.exception.values&&n&&n.originalException&&f(r=n.originalException)&&"ZodError"===r.name&&Array.isArray(r.errors)&&0!==n.originalException.issues.length?{...t,exception:{...t.exception,values:[{...t.exception.values[0],value:Or(n.originalException)},...t.exception.values.slice(1)]},extra:{...t.extra,"zoderror.issues":n.originalException.errors.slice(0,e).map(Nr)}}:t
528var r}(t,e,n)}},Lr="8.37.1",Pr=globalThis,$r=Object.prototype.toString
529function Fr(e){switch($r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0
530default:return Vr(e,Error)}}function jr(e,t){return $r.call(e)===`[object ${t}]`}function Ur(e){return jr(e,"ErrorEvent")}function Br(e){return jr(e,"DOMError")}function Hr(e){return jr(e,"String")}function zr(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Wr(e){return null===e||zr(e)||"object"!=typeof e&&"function"!=typeof e}function qr(e){return jr(e,"Object")}function Yr(e){return"undefined"!=typeof Event&&Vr(e,Event)}function Vr(e,t){try{return e instanceof t}catch(e){return!1}}function Gr(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const Jr=Pr,Xr=80
531function Kr(e,t={}){if(!e)return"<unknown>"
532try{let n=e
533const r=5,o=[]
534let s=0,i=0
535const a=" > ",c=a.length
536let u
537const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Xr
538for(;n&&s++<r&&(u=Qr(n,l),!("html"===u||s>1&&i+o.length*c+u.length>=d));)o.push(u),i+=u.length,n=n.parentNode
539return o.reverse().join(a)}catch(e){return"<unknown>"}}function Qr(e,t){const n=e,r=[]
540if(!n||!n.tagName)return""
541if(Jr.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent
542if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase())
543const o=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null
544if(o&&o.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}))
545else{n.id&&r.push(`#${n.id}`)
546const e=n.className
547if(e&&Hr(e)){const t=e.split(/\s+/)
548for(const e of t)r.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"]
549for(const i of s){const e=n.getAttribute(i)
550e&&r.push(`[${i}="${e}"]`)}return r.join("")}const Zr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eo=["debug","info","warn","error","log","assert","trace"],to={}
551function no(e){if(!("console"in Pr))return e()
552const t=Pr.console,n={},r=Object.keys(to)
553r.forEach((e=>{const r=to[e]
554n[e]=t[e],t[e]=r}))
555try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const ro=function(e,t,n){const r=Pr,o=r.__SENTRY__=r.__SENTRY__||{},s=o[Lr]=o[Lr]||{}
556return s[e]||(s[e]=function(){let e=!1
557const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e}
558return Zr?eo.forEach((n=>{t[n]=(...t)=>{e&&no((()=>{Pr.console[n](`Sentry Logger [${n}]:`,...t)}))}})):eo.forEach((e=>{t[e]=()=>{}})),t}())}("logger")
559function oo(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function so(e,t){let n=e
560const r=n.length
561if(r<=150)return n
562t>r&&(t=r)
563let o=Math.max(t-60,0)
564o<5&&(o=0)
565let s=Math.min(o+140,r)
566return 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 io(e,t){if(!Array.isArray(e))return""
567const n=[]
568for(let r=0;r<e.length;r++){const t=e[r]
569try{Gr(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ao(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!Hr(e)&&(jr(t,"RegExp")?t.test(e):!!Hr(t)&&(n?e===t:e.includes(t)))}
569(e,t,n)))}function co(e,t,n){if(!(t in e))return
570const r=e[t],o=n(r)
571"function"==typeof o&&lo(o,r),e[t]=o}function uo(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){Zr&&ro.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function lo(e,t){try{const n=t.prototype||{}
572e.prototype=t.prototype=n,uo(e,"__sentry_original__",t)}catch(e){}}function po(e){return e.__sentry_original__}function fo(e){if(Fr(e))return{message:e.message,name:e.name,stack:e.stack,...mo(e)}
573if(Yr(e)){const t={type:e.type,target:ho(e.target),currentTarget:ho(e.currentTarget),...mo(e)}
574return"undefined"!=typeof CustomEvent&&Vr(e,CustomEvent)&&(t.detail=e.detail),t}return e}function ho(e){try{return"undefined"!=typeof Element&&Vr(e,Element)?Kr(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function mo(e){if("object"==typeof e&&null!==e){const t={}
575for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
576return t}return{}}function go(){const e=Pr,t=e.crypto||e.msCrypto
577let n=()=>16*Math.random()
578try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"")
579t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1)
580return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function _o(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function yo(e){const{message:t,event_id:n}=e
581if(t)return t
582const r=_o(e)
583return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function vo(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{}
584s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function bo(e,t){const n=_o(e)
585if(!n)return
586const r=n.mechanism
587if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data}
588n.mechanism.data=e}}const So=Pr
589let wo=0
590function ko(){return wo>0}function Eo(e,t={},n){if("function"!=typeof e)return e
591try{const t=e.__sentry_wrapped__
592if(t)return"function"==typeof t?t:e
593if(po(e))return e}catch(t){return e}const r=function(){const n=Array.prototype.slice.call(arguments)
594try{const r=n.map((e=>Eo(e,t)))
595return e.apply(this,r)}catch(e){throw wo++,setTimeout((()=>{wo--})),le((o=>{o.addEventProcessor((e=>(t.mechanism&&(vo(e,void 0,void 0),bo(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),yt(e)})),e}}
596try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}lo(r,e),uo(e,"__sentry_wrapped__",r)
597try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const xo="Not capturing exception because it's already been captured."
598class Co{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=fn(e.dsn):ge&&R.warn("No DSN provided, client will not send events."),this._dsn){const t=hr(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0)
599this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const r=P()
600if(U(e))return ge&&R.log(xo),r
601const o={event_id:r,...t}
602return this._process(this.eventFromException(e,o).then((e=>this._captureEvent(e,o,n)))),o.event_id}captureMessage(e,t,n,r){const o={event_id:P(),...n},s=g(e)?e:String(e),i=null===(a=e)||g(a)||"object"!=typeof a&&"function"!=typeof a?this.eventFromMessage(s,t,o):this.eventFromException(e,o)
603var a
604return this._process(i.then((e=>this._captureEvent(e,o,r)))),o.event_id}captureEvent(e,t,n){const r=P()
605if(t&&t.originalException&&U(t.originalException))return ge&&R.log(xo),r
606const o={event_id:r,...t},s=(e.sdkProcessingMetadata||{}).capturedSpanScope
607return this._process(this._captureEvent(e,o,s||n)),o.event_id}captureSession(e){"string"!=typeof e.release?ge&&R.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),V(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport
608return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):Ce(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name]
609jt(this,e,this._integrations),t||Ft(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t)
610let n=function(e,t,n,r){const o=En(n),s=e.type&&"replay_event"!==e.type?e.type:"event"
611!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk)
612const i=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext
613return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ln(r)},...o&&{trace:D({...o})}}}(e,o,r,t)
614return delete e.sdkProcessingMetadata,hn(i,[[{type:s},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel)
615for(const o of t.attachments||[])n=mn(n,Sn(o))
616const r=this.sendEnvelope(n)
617r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const o=En(n)
618return hn({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:ln(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel)
619this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`
620ge&&R.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[]
621return n.push(t),()=>{const e=n.indexOf(t)
622e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e]
623n&&n.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(ge&&R.error("Error while sending envelope:",e),e))):(ge&&R.error("Transport disabled"),Ce({}))}_setupIntegrations(){const{integrations:e}=this._options
624this._integrations=function(e,t){const n={}
625return t.forEach((t=>{t&&jt(e,t,n)})),n}(this,e),Ft(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1
626const o=t.exception&&t.exception.values
627if(o){r=!0
628for(const e of o){const t=e.mechanism
629if(t&&!1===t.handled){n=!0
630break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(V(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Ie((t=>{let n=0
631const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=ce()){const o=this.getOptions(),s=Object.keys(this._integrations)
632return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),mt(o,e,t,n,this,r).then((e=>{if(null===e)return e
633const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0}
634if((!e.contexts||!e.contexts.trace)&&t){const{traceId:n,spanId:r,parentSpanId:o,dsc:s}=t
635e.contexts={trace:D({trace_id:n,span_id:r,parent_span_id:o}),...e.contexts}
636const i=s||lt(n,this)
637e.sdkProcessingMetadata={dynamicSamplingContext:i,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(ge){const t=e
638"log"===t.logLevel?R.log(t.message):R.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,s=Io(e),i=To(e),a=e.type||"error",c=`before send for type \`${a}\``,u=void 0===o?void 0:an(o)
639if(i&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),Te(new Vn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"))
640const l="replay_event"===a?"replay":a,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope
641return this._prepareEvent(e,t,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new Vn("An event processor returned `null`, will not send event.","log")
642if(t.data&&!0===t.data.__sentry__)return n
643const o=function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:i}=t
644if(To(n)&&o)return o(n,r)
645if(Io(n)){if(n.spans&&i){const t=[]
646for(const r of n.spans){const n=i(r)
647n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(s){if(n.spans){const e=n.spans.length
648n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(n,r)}}return n}(this,r,n,t)
649return function(e,t){const n=`${t} must return \`null\` or a valid event.`
650if(y(e))return e.then((e=>{if(!_(e)&&null!==e)throw new Vn(n)
651return e}),(e=>{throw new Vn(`${t} rejected with ${e}`)}))
652if(!_(e)&&null!==e)throw new Vn(n)
653return e}(o,c)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",l,e),s){const t=1+(e.spans||[]).length
654this.recordDroppedEvent("before_send","span",t)}throw new Vn(`${c} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession()
655if(!s&&o&&this._updateSessionFromEvent(o,r),s){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0)
656e>0&&this.recordDroppedEvent("before_send","span",e)}const i=r.transaction_info
657if(s&&i&&r.transaction!==e.transaction){const e="custom"
658r.transaction_info={...i,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Vn)throw e
659throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Vn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes
660return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,r]=e.split(":")
661return{reason:n,category:r,quantity:t}}))}_flushOutcomes(){ge&&R.log("Flushing outcomes...")
662const e=this._clearOutcomes()
663if(0===e.length)return void(ge&&R.log("No outcomes to send"))
664if(!this._dsn)return void(ge&&R.log("No dsn provided, will not send outcomes"))
665ge&&R.log("Sending outcomes:",e)
666const t=(n=e,hn((r=this._options.tunnel&&ln(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:W(),discarded_events:n}]]))
667var n,r
668this.sendEnvelope(t)}}function To(e){return void 0===e.type}function Io(e){return"transaction"===e.type}const Mo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Ro=50,Ao="?",No=/\(error: (.*)\)/,Oo=/captureMessage|captureException/
669function Do(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]))
670return(e,n=0,r=0)=>{const o=[],s=e.split("\n")
671for(let i=n;i<s.length;i++){const e=s[i]
672if(e.length>1024)continue
673const n=No.test(e)?e.replace(No,"$1"):e
674if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n)
675if(t){o.push(t)
676break}}if(o.length>=Ro+r)break}}return function(e){if(!e.length)return[]
677const t=Array.from(e)
678return/sentryWrapped/.test(Lo(t).function||"")&&t.pop(),t.reverse(),Oo.test(Lo(t).function||"")&&(t.pop(),Oo.test(Lo(t).function||"")&&t.pop()),t.slice(0,Ro).map((e=>({...e,filename:e.filename||Lo(t).filename,function:e.function||Ao})))}(o.slice(r))}}function Lo(e){return e[e.length-1]||{}}const Po="<anonymous>"
679function $o(e){try{return e&&"function"==typeof e&&e.name||Po}catch(e){return Po}}function Fo(e,t=100,n=1/0){try{return Uo("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function jo(e,t=3,n=102400){const r=Fo(e,t)
680return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?jo(e,t-1,n):r
681var o}function Uo(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[]
682return[function(n){if(e)return!!t.has(n)||(t.add(n),!1)
683for(let e=0;e<t.length;e++)if(t[e]===n)return!0
684return t.push(n),!1},function(n){if(e)t.delete(n)
685else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1)
686break}}]}()){const[s,i]=o
687if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t
688const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]"
689if("domainEmitter"===e)return"[DomainEmitter]"
690if("undefined"!=typeof global&&t===global)return"[Global]"
691if("undefined"!=typeof window&&t===window)return"[Window]"
692if("undefined"!=typeof document&&t===document)return"[Document]"
693if(Gr(t))return"[VueViewModel]"
694if(qr(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]"
695if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`
696if("function"==typeof t)return`[Function: ${$o(t)}]`
697if("symbol"==typeof t)return`[${String(t)}]`
698if("bigint"==typeof t)return`[BigInt: ${String(t)}]`
699const r=function(e){const t=Object.getPrototypeOf(e)
700return t?t.constructor.name:"null prototype"}(t)
701return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t)
702if(!a.startsWith("[object "))return a
703if(t.__sentry_skip_normalization__)return t
704const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n
705if(0===c)return a.replace("object ","")
706if(s(t))return"[Circular ~]"
707const u=t
708if(u&&"function"==typeof u.toJSON)try{return Uo("",u.toJSON(),c-1,r,o)}catch(e){}const l=Array.isArray(t)?[]:{}
709let d=0
710const p=fo(t)
711for(const f in p){if(!Object.prototype.hasOwnProperty.call(p,f))continue
712if(d>=r){l[f]="[MaxProperties ~]"
713break}const e=p[f]
714l[f]=Uo(f,e,c-1,r,o),d++}return i(t),l}var Bo
715function Ho(e){return new Wo((t=>{t(e)}))}function zo(e){return new Wo(((t,n)=>{n(e)}))}
715!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(Bo||(Bo={}))
716class Wo{constructor(e){Wo.prototype.__init.call(this),Wo.prototype.__init2.call(this),Wo.prototype.__init3.call(this),Wo.prototype.__init4.call(this),this._state=Bo.PENDING,this._handlers=[]
717try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Wo(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Wo(((t,n)=>{let r,o
718return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(Bo.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Bo.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{var n
719this._state===Bo.PENDING&&(n=t,Boolean(n&&n.then&&"function"==typeof n.then)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Bo.PENDING)return
720const e=this._handlers.slice()
721this._handlers=[],e.forEach((e=>{e[0]||(this._state===Bo.RESOLVED&&e[1](this._value),this._state===Bo.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function qo(e,t){const n=Vo(e,t),r={type:Xo(t),value:Ko(t)}
722return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Yo(e,t){return{exception:{values:[qo(e,t)]}}}function Vo(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&Go.test(e.message)?1:0}(t),o=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t)
723try{return e(n,r,o)}catch(e){}return[]}const Go=/Minified React error #\d+;/i
724function Jo(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function Xo(e){const t=e&&e.name
725return!t&&Jo(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function Ko(e){const t=e&&e.message
726return t?t.error&&"string"==typeof t.error.message?t.error.message:Jo(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function Qo(e,t,n,r){const o=es(e,t,n&&n.syntheticException||void 0,r)
727return bo(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Ho(o)}function Zo(e,t,n="info",r,o){const s=ts(e,t,r&&r.syntheticException||void 0,o)
728return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Ho(s)}function es(e,t,n,r,o){let s
729if(Ur(t)&&t.error)return Yo(e,t.error)
730if(Br(t)||jr(t,"DOMException")){const o=t
731if("stack"in t)s=Yo(e,t)
732else{const t=o.name||(Br(o)?"DOMError":"DOMException"),i=o.message?`${t}: ${o.message}`:t
733s=ts(e,i,n,r),vo(s,i)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return Fr(t)?Yo(e,t):qr(t)||Yr(t)?(s=function(e,t,n,r){const o=pe(),s=o&&o.getOptions().normalizeDepth,i=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t]
734if(n instanceof Error)return n}}(t),a={__serialized__:jo(t,s)}
735if(i)return{exception:{values:[qo(e,i)]},extra:a}
736const c={exception:{values:[{type:Yr(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ns(t,{isUnhandledRejection:r})}]},extra:a}
737if(n){const t=Vo(e,n)
738t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,n,o),bo(s,{synthetic:!0}),s):(s=ts(e,t,n,r),vo(s,`${t}`,void 0),bo(s,{synthetic:!0}),s)}function ts(e,t,n,r){const o={}
739if(r&&n){const r=Vo(e,n)
740r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(zr(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t
741return o.logentry={message:e,params:n},o}return o.message=t,o}function ns(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(fo(e))
742n.sort()
743const r=n[0]
744if(!r)return"[object has no keys]"
745if(r.length>=t)return oo(r,t)
746for(let o=n.length;o>0;o--){const e=n.slice(0,o).join(", ")
747if(!(e.length>t))return o===n.length?e:oo(e,t)}return""}(e),r=t?"promise rejection":"exception"
748return Ur(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Yr(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e)
749return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function rs(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=e
750return`${a}://${c}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}function os(e){return Pr.__SENTRY__&&Pr.__SENTRY__.encodePolyfill?Pr.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function ss(e){const[t,n]=e
751let r=JSON.stringify(t)
752function o(e){"string"==typeof r?r="string"==typeof e?r+e:[os(r),e]:r.push("string"==typeof e?os(e):e)}for(const s of n){const[e,n]=s
753if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n)
754else{let e
755try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Fo(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t)
756let r=0
757for(const o of e)n.set(o,r),r+=o.length
758return n}(r)}function is(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:rs(r)}},s=function(e){return[{type:"user_report"},e]}(e)
759return function(e,t=[]){return[e,t]}(o,[s])}class as extends Co{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e}
760!function(e,t,n=[t],o="npm"){const s=e._metadata||{}
761s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${o}:@sentry/${e}`,version:r}))),version:r}),e._metadata=s}(t,"browser",["browser"],So.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&So.document&&So.document.addEventListener("visibilitychange",(()=>{"hidden"===So.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return Qo(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return Zo(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Mo&&ro.warn("SDK not enabled, will not capture user feedback."))
762const t=is(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel})
763this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}const cs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,us="8.37.1",ls=globalThis,ds=["debug","info","warn","error","log","assert","trace"],ps={},fs=function(e,t,n){const r=ls,o=r.__SENTRY__=r.__SENTRY__||{},s=o[us]=o[us]||{}
764return s[e]||(s[e]=function(){let e=!1
765const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e}
766return cs?ds.forEach((n=>{t[n]=(...t)=>{e&&function(e){if(!("console"in ls))return e()
767const t=ls.console,n={},r=Object.keys(ps)
768r.forEach((e=>{const r=ps[e]
769n[e]=t[e],t[e]=r}))
770try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}((()=>{ls.console[n](`Sentry Logger [${n}]:`,...t)}))}})):ds.forEach((e=>{t[e]=()=>{}})),t}())}("logger"),hs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ms=ls,gs={}
771function _s(e){const t=gs[e]
772if(t)return t
773let n=ms[e]
774if((r=n)&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(r.toString()))return gs[e]=n.bind(ms)
775var r
776const o=ms.document
777if(o&&"function"==typeof o.createElement)try{const t=o.createElement("iframe")
778t.hidden=!0,o.head.appendChild(t)
779const r=t.contentWindow
780r&&r[e]&&(n=r[e]),o.head.removeChild(t)}catch(t){hs&&fs.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?gs[e]=n.bind(ms):n}function ys(e){gs[e]=void 0}function vs(...e){return _s("setTimeout")(...e)}
780function bs(e,t=_s("fetch")){let n=0,r=0
781return Kn(e,(function(o){const s=o.body.length
782n+=s,r++
783const i={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions}
784if(!t)return ys("fetch"),zo("No fetch implementation available")
785try{return t(e.url,i).then((e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return ys("fetch"),n-=s,r--,zo(e)}}))}function Ss(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?Ao:t,in_app:!0}
786return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const ws=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ks=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Es=/\((\S*)(?::(\d+))(?::(\d+))\)/,xs=[30,e=>{const t=ws.exec(e)
787if(t){const[,e,n,r]=t
788return Ss(e,Ao,+n,+r)}const n=ks.exec(e)
789if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=Es.exec(n[2])
790e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=$s(n[1]||Ao,n[2])
791return Ss(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Cs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ts=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Is=[50,e=>{const t=Cs.exec(e)
792if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Ts.exec(t[3])
793e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Ao
794return[n,e]=$s(n,e),Ss(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Ms=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Rs=[40,e=>{const t=Ms.exec(e)
795return t?Ss(t[2],t[1]||Ao,+t[3],t[4]?+t[4]:void 0):void 0}],As=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Ns=[10,e=>{const t=As.exec(e)
796return t?Ss(t[2],t[3]||Ao,+t[1]):void 0}],Os=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Ds=[20,e=>{const t=Os.exec(e)
797return t?Ss(t[5],t[3]||t[4]||Ao,+t[1],+t[2]):void 0}],Ls=[xs,Is],Ps=Do(...Ls),$s=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension")
798return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ao,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Fs=Pr
799function js(){if(!("fetch"in Fs))return!1
800try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Us(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Bs(){if("string"==typeof EdgeRuntime)return!0
801if(!js())return!1
802if(Us(Fs.fetch))return!0
803let e=!1
804const t=Fs.document
805if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe")
806n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Us(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Zr&&ro.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}const Hs="<anonymous>"
807function zs(e){try{return e&&"function"==typeof e&&e.name||Hs}catch(e){return Hs}}const Ws={},qs={}
808function Ys(e,t){Ws[e]=Ws[e]||[],Ws[e].push(t)}function Vs(e,t){if(!qs[e]){qs[e]=!0
809try{t()}catch(t){cs&&fs.error(`Error while instrumenting ${e}`,t)}}}function Gs(e,t){const n=e&&Ws[e]
810if(n)for(const r of n)try{r(t)}catch(t){cs&&fs.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${zs(r)}\nError:`,t)}}const Js=ls,Xs=Object.prototype.toString
811function Ks(e,t){return Xs.call(e)===`[object ${t}]`}function Qs(e){return Ks(e,"String")}function Zs(e,t,n){if(!(t in e))return
812const r=e[t],o=n(r)
813"function"==typeof o&&function(e,t){try{const n=t.prototype||{}
814e.prototype=t.prototype=n,ei(e,"__sentry_original__",t)}catch(e){}}(o,r),e[t]=o}function ei(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){cs&&fs.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ti(e){return ni(e,new Map)}function ni(e,t){if(function(e){if(!Ks(e,"Object"))return!1
815try{const t=Object.getPrototypeOf(e).constructor.name
816return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e)
817if(void 0!==n)return n
818const r={}
819t.set(e,r)
820for(const o of Object.getOwnPropertyNames(e))void 0!==e[o]&&(r[o]=ni(e[o],t))
821return r}if(Array.isArray(e)){const n=t.get(e)
822if(void 0!==n)return n
823const r=[]
824return t.set(e,r),e.forEach((e=>{r.push(ni(e,t))})),r}return e}let ri
825function oi(e){const t="history"
826Ys(t,e),Vs(t,si)}function si(){if(!function(){const e=Js.chrome,t=e&&e.app&&e.app.runtime,n="history"in Js&&!!Js.history.pushState&&!!Js.history.replaceState
827return!t&&n}())return
828const e=ms.onpopstate
829function t(e){return function(...t){const n=t.length>2?t[2]:void 0
830if(n){const e=ri,t=String(n)
831ri=t,Gs("history",{from:e,to:t})}return e.apply(this,t)}}ms.onpopstate=function(...t){const n=ms.location.href,r=ri
832if(ri=n,Gs("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},Zs(ms.history,"pushState",t),Zs(ms.history,"replaceState",t)}const ii=1e3
833let ai,ci,ui
834function li(e){Ys("dom",e),Vs("dom",di)}function di(){if(!ms.document)return
835const e=Gs.bind(null,"dom"),t=pi(e,!0)
836ms.document.addEventListener("click",t,!1),ms.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=ms[t]&&ms[t].prototype
837n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Zs(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},i=s[n]=s[n]||{refCount:0}
838if(!i.handler){const r=pi(e)
839i.handler=r,t.call(this,n,r,o)}i.refCount++}catch(e){}return t.call(this,n,r,o)}})),Zs(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},s=o[t]
840s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function pi(e,t=!1){return n=>{if(!n||n._sentryCaptured)return
841const r=function(e){try{return e.target}catch(e){return null}}(n)
842if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return
843ei(n,"_sentryCaptured",!0),r&&!r._sentryId&&ei(r,"_sentryId",function(){const e=ls,t=e.crypto||e.msCrypto
844let n=()=>16*Math.random()
845try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"")
846t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1)
847return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}())
848const o="keypress"===n.type?"input":n.type;(function(e){if(e.type!==ci)return!1
849try{if(!e.target||e.target._sentryId!==ui)return!1}catch(e){}return!0})(n)||(e({event:n,name:o,global:t}),ci=n.type,ui=r?r._sentryId:void 0),clearTimeout(ai),ai=ms.setTimeout((()=>{ui=void 0,ci=void 0}),ii)}}function fi(){return Date.now()/1e3}const hi=function(){const{performance:e}=ls
850if(!e||!e.now)return fi
851const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin
852return()=>(n+e.now())/1e3}()
853let mi
854const gi=(()=>{const{performance:e}=ls
855if(!e||!e.now)return void(mi="none")
856const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):t
857return s||a<t?o<=a?(mi="timeOrigin",e.timeOrigin):(mi="navigationStart",i):(mi="dateNow",r)}
857)(),_i="__sentry_xhr_v3__"
858function yi(e){Ys("xhr",e),Vs("xhr",vi)}function vi(){if(!ms.XMLHttpRequest)return
859const e=XMLHttpRequest.prototype
860e.open=new Proxy(e.open,{apply(e,t,n){const r=1e3*hi(),o=Qs(n[0])?n[0].toUpperCase():void 0,s=function(e){if(Qs(e))return e
861try{return e.toString()}catch(e){}}(n[1])
862if(!o||!s)return e.apply(t,n)
863t[_i]={method:o,url:s,request_headers:{}},"POST"===o&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0)
864const i=()=>{const e=t[_i]
865if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}Gs("xhr",{endTimestamp:1e3*hi(),startTimestamp:r,xhr:t})}}
866return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(i(),e.apply(t,n))}):t.addEventListener("readystatechange",i),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,s=t[_i]
867return s&&Qs(r)&&Qs(o)&&(s.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[_i]
868return r?(void 0!==n[0]&&(r.body=n[0]),Gs("xhr",{startTimestamp:1e3*hi(),xhr:t}),e.apply(t,n)):e.apply(t,n)}})}const bi={},Si={}
869function wi(e,t){bi[e]=bi[e]||[],bi[e].push(t)}function ki(e,t){if(!Si[e]){Si[e]=!0
870try{t()}catch(t){Zr&&ro.error(`Error while instrumenting ${e}`,t)}}}function Ei(e,t){const n=e&&bi[e]
871if(n)for(const r of n)try{r(t)}catch(t){Zr&&ro.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${$o(r)}\nError:`,t)}}function xi(){"console"in Pr&&eo.forEach((function(e){e in Pr.console&&co(Pr.console,e,(function(t){return to[e]=t,function(...t){Ei("console",{args:t,level:e})
872const n=to[e]
873n&&n.apply(Pr.console,t)}}))}))}function Ci(){return Date.now()/1e3}const Ti=function(){const{performance:e}=Pr
874if(!e||!e.now)return Ci
875const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin
876return()=>(n+e.now())/1e3}()
877let Ii
878const Mi=(()=>{const{performance:e}=Pr
879if(!e||!e.now)return void(Ii="none")
880const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):t
881return s||a<t?o<=a?(Ii="timeOrigin",e.timeOrigin):(Ii="navigationStart",i):(Ii="dateNow",r)})()
882function Ri(e,t){const n="fetch"
883wi(n,e),ki(n,(()=>Ai(void 0,t)))}function Ai(e,t=!1){t&&!Bs()||co(Pr,"fetch",(function(t){return function(...n){const{method:r,url:o}=function(e){if(0===e.length)return{method:"GET",url:""}
884if(2===e.length){const[t,n]=e
885return{url:Di(t),method:Oi(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0]
886return{url:Di(t),method:Oi(t,"method")?String(t.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:r,url:o},startTimestamp:1e3*Ti()}
887e||Ei("fetch",{...s})
888const i=(new Error).stack
889return t.apply(Pr,n).then((async t=>(e?e(t):Ei("fetch",{...s,endTimestamp:1e3*Ti(),response:t}),t)),(e=>{throw Ei("fetch",{...s,endTimestamp:1e3*Ti(),error:e}),Fr(e)&&void 0===e.stack&&(e.stack=i,uo(e,"framesToPop",1)),e}))}}))}function Ni(e){let t
890try{t=e.clone()}catch(e){return}!async function(t,n){if(t&&t.body){const n=t.body,r=n.getReader(),o=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),9e4)
891let s=!0
892for(;s;){let t
893try{t=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),5e3)
894const{done:o}=await r.read()
895clearTimeout(t),o&&(Ei("fetch-body-resolved",{endTimestamp:1e3*Ti(),response:e}),s=!1)}catch(e){s=!1}finally{clearTimeout(t)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,(()=>{}))}}(t)}function Oi(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Di(e){return"string"==typeof e?e:e?Oi(e,"url")?e.url:e.toString?e.toString():"":""}const Li=["fatal","error","warning","log","info","debug"]
896function Pi(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}function $i(e){if(!e)return{}
897const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/)
898if(!t)return{}
899const n=t[6]||"",r=t[8]||""
900return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Fi=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}
901return{name:"Breadcrumbs",setup(e){t.console&&function(e){const t="console"
902wi(t,e),ki(t,xi)}(function(e){return function(t){if(pe()!==e)return
903const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":Li.includes(r)?r:"log"),message:io(t.args," ")}
904var r
905if("assert"===t.level){if(!1!==t.args[0])return
906n.message=`Assertion failed: ${io(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}he(n,{input:t.args,level:t.level})}}(e)),t.dom&&li(function(e,t){return function(n){if(pe()!==e)return
907let r,o,s="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0
908i&&i>1024&&(Mo&&ro.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof s&&(s=[s])
909try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e
910r=Kr(t,{keyAttrs:s,maxStringLength:i}),o=function(e){if(!Jr.HTMLElement)return null
911let t=e
912for(let n=0;n<5;n++){if(!t)return null
913if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent
914if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch(e){r="<unknown>"}if(0===r.length)return
915const a={category:`ui.${n.name}`,message:r}
916o&&(a.data={"ui.component_name":o}),he(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&yi(function(e){return function(t){if(pe()!==e)return
917const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[_i]
918if(!n||!r||!o)return
919const{method:s,url:i,status_code:a,body:c}=o,u={method:s,url:i,status_code:a},l={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r}
920he({category:"xhr",data:u,type:"http",level:Pi(a)},l)}}(e)),t.fetch&&Ri(function(e){return function(t){if(pe()!==e)return
921const{startTimestamp:n,endTimestamp:r}=t
922if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)he({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})
923else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},s={input:t.args,response:e,startTimestamp:n,endTimestamp:r}
924he({category:"fetch",data:o,type:"http",level:Pi(o.status_code)},s)}}}(e)),t.history&&oi(function(e){return function(t){if(pe()!==e)return
925let n=t.from,r=t.to
926const o=$i(So.location.href)
927let s=n?$i(n):void 0
928const i=$i(r)
929s&&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),he({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){pe()===e&&he({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:yo(t)},{event:t})}}(e))}}},ji=["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"],Ui=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}
930return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&co(So,"setTimeout",Bi),t.setInterval&&co(So,"setInterval",Bi),t.requestAnimationFrame&&co(So,"requestAnimationFrame",Hi),t.XMLHttpRequest&&"XMLHttpRequest"in So&&co(XMLHttpRequest.prototype,"send",zi)
931const e=t.eventTarget
932e&&(Array.isArray(e)?e:ji).forEach(Wi)}}}
933function Bi(e){return function(...t){const n=t[0]
934return t[0]=Eo(n,{mechanism:{data:{function:$o(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Hi(e){return function(t){return e.apply(this,[Eo(t,{mechanism:{data:{function:"requestAnimationFrame",handler:$o(e)},handled:!1,type:"instrument"}})])}}function zi(e){return function(...t){const n=this
935return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&co(n,e,(function(t){const n={mechanism:{data:{function:e,handler:$o(t)},handled:!1,type:"instrument"}},r=po(t)
936return r&&(n.mechanism.data.handler=$o(r)),Eo(t,n)}))})),e.apply(this,t)}}function Wi(e){const t=So,n=t[e]&&t[e].prototype
937n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(co(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Eo(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:$o(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Eo(r,{mechanism:{data:{function:"addEventListener",handler:$o(r),target:e},handled:!1,type:"instrument"}}),o])}})),co(n,"removeEventListener",(function(e){return function(t,n,r){const o=n
938try{const n=o&&o.__sentry_wrapped__
939n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,o,r)}})))}let qi=null
940function Yi(){qi=Pr.onerror,Pr.onerror=function(e,t,n,r,o){return Ei("error",{column:r,error:o,line:n,msg:e,url:t}),!(!qi||qi.__SENTRY_LOADER__)&&qi.apply(this,arguments)},Pr.onerror.__SENTRY_INSTRUMENTED__=!0}let Vi=null
941function Gi(){Vi=Pr.onunhandledrejection,Pr.onunhandledrejection=function(e){return Ei("unhandledrejection",e),!(Vi&&!Vi.__SENTRY_LOADER__)||Vi.apply(this,arguments)},Pr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Ji=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e}
942return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(t){const n="error"
943wi(n,(t=>{const{stackParser:n,attachStacktrace:r}=Ki()
944if(pe()!==e||ko())return
945const{msg:o,url:s,line:i,column:a,error:c}=t,u=function(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],i=s[0]=s[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=Hr(t)&&t.length>0?t:function(){try{return Jr.document.location.href}catch(e){return""}}()
946return 0===c.length&&c.push({colno:u,filename:d,function:Ao,in_app:!0,lineno:l}),e}(es(n,c||o,void 0,r,!1),s,i,a)
947u.level="error",bt(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})),ki(n,Yi)}()}(e),Xi("onerror")),t.onunhandledrejection&&(function(e){!function(t){const n="unhandledrejection"
948wi(n,(t=>{const{stackParser:n,attachStacktrace:r}=Ki()
949if(pe()!==e||ko())return
950const o=function(e){if(Wr(e))return e
951try{if("reason"in e)return e.reason
952if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),s=Wr(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:es(n,o,void 0,r,!0)
953s.level="error",bt(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})),ki(n,Gi)}()}(e),Xi("onunhandledrejection"))}}}
954function Xi(e){Mo&&ro.log(`Global Handler attached: ${e}`)}function Ki(){const e=pe()
955return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Qi=()=>({name:"HttpContext",preprocessEvent(e){if(!So.navigator&&!So.location&&!So.document)return
956const t=e.request&&e.request.url||So.location&&So.location.href,{referrer:n}=So.document||{},{userAgent:r}=So.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:o}
957e.request=s}})
958function Zi(e,t,n=250,r,o,s,i){if(!(s.exception&&s.exception.values&&i&&Vr(i.originalException,Error)))return
959const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0
960var c,u
961a&&(s.exception.values=(c=ea(e,t,o,i.originalException,r,s.exception.values,a,0),u=n,c.map((e=>(e.value&&(e.value=oo(e.value,u)),e)))))}function ea(e,t,n,r,o,s,i,a){if(s.length>=n+1)return s
962let c=[...s]
963if(Vr(r[o],Error)){ta(i,a)
964const s=e(t,r[o]),u=c.length
965na(s,o,u,a),c=ea(e,t,n,r[o],o,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(Vr(r,Error)){ta(i,a)
966const u=e(t,r),l=c.length
967na(u,`errors[${s}]`,l,a),c=ea(e,t,n,r,o,[u,...c],u,l)}})),c}function ta(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function na(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const ra=(e={})=>{const t=e.limit||5,n=e.key||"cause"
968return{name:"LinkedErrors",preprocessEvent(e,r,o){const s=o.getOptions()
969Zi(qo,s.stackParser,s.maxValueLength,n,t,e,r)}}}
970function oa(e){return[lr(),ar(),Ui(),Fi(),Ji(),ra(),er(),Qi()]}function sa(e={}){const t=function(e={}){const t={defaultIntegrations:oa(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:So.SENTRY_RELEASE&&So.SENTRY_RELEASE.id?So.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0}
971return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e)
972if(!t.skipBrowserExtensionCheck&&function(){const e=void 0!==So.window&&So
973if(!e)return!1
974const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=So.location&&So.location.href||"",o=!!n&&So===So.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>r.startsWith(`${e}//`))),s=void 0!==e.nw
975return!!n&&!o&&!s}())return void no((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}))
976Mo&&(js()||ro.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."))
977const n={...t,stackParser:(r=t.stackParser||Ps,Array.isArray(r)?Do(...r):r),integrations:$t(t),transport:t.transport||bs}
978var r
979const o=function(e,t){!0===t.debug&&(ge?R.enable():M((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),ae().update(t.initialScope)
980const n=new e(t)
981return Mr(n),n.init(),n}(as,n)
982return t.autoSessionTracking&&(void 0!==So.document?(Nt({ignoreDuration:!0}),Lt(),oi((({from:e,to:t})=>{void 0!==e&&e!==t&&(Nt({ignoreDuration:!0}),Lt())}))):Mo&&ro.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")),o}function ia(e={}){if(!So.document)return void(Mo&&ro.error("Global document not defined in showReportDialog call"))
983const t=ae(),n=t.getClient(),r=n&&n.getDsn()
984if(!r)return void(Mo&&ro.error("DSN not configured for showReportDialog call"))
985if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=Tt()
986t&&(e.eventId=t)}const o=So.document.createElement("script")
987o.async=!0,o.crossOrigin="anonymous",o.src=function(e,t){const n=fn(e)
988if(!n)return""
989const r=`${fr(n)}embed/error-page/`
990let o=`dsn=${ln(n)}`
991for(const s in t)if("dsn"!==s&&"onClose"!==s)if("user"===s){const e=t.user
992if(!e)continue
993e.name&&(o+=`&name=${encodeURIComponent(e.name)}
993`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`
994return`${r}?${o}`}(r,e),e.onLoad&&(o.onload=e.onLoad)
995const{onClose:s}=e
996if(s){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{s()}finally{So.removeEventListener("message",e)}}
997So.addEventListener("message",e)}const i=So.document.head||So.document.body
998i?i.appendChild(o):Mo&&ro.error("Not injecting report dialog. No injection point found in HTML")}function aa(){}function ca(e){e()}function ua(e){const t=pe()
999t&&t.captureUserFeedback(e)}const la={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling"},da=So
1000async function pa(e,t){const n=la[e],o=da.Sentry=da.Sentry||{}
1001if(!n)throw new Error(`Cannot lazy load integration: ${e}`)
1002const s=o[e]
1003if("function"==typeof s&&!("_isShim"in s))return s
1004const i=function(e){const t=pe(),n=t&&t.getOptions(),o=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com"
1005return new URL(`/${r}/${e}.min.js`,o).toString()}(n),a=So.document.createElement("script")
1006a.src=i,a.crossOrigin="anonymous",a.referrerPolicy="origin",t&&a.setAttribute("nonce",t)
1007const c=new Promise(((e,t)=>{a.addEventListener("load",(()=>e())),a.addEventListener("error",t)})),u=So.document.currentScript,l=So.document.body||So.document.head||u&&u.parentElement
1008if(!l)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`)
1009l.appendChild(a)
1010try{await c}catch(t){throw new Error(`Error when loading integration: ${e}`)}const d=o[e]
1011if("function"!=typeof d)throw new Error(`Could not load integration: ${e}`)
1012return d}const fa=Pr,ha=new WeakMap,ma=(e={})=>{const t=e.types||["crash","deprecation","intervention"]
1013function n(e){if(ha.has(pe()))for(const t of e)le((e=>{e.setExtra("url",t.url)
1014const n=`ReportingObserver [${t.type}]`
1015let r="No details available"
1016if(t.body){const n={}
1017for(const e in t.body)n[e]=t.body[e]
1018if(e.setExtra("body",n),"crash"===t.type){const e=t.body
1019r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}vt(`${n}: ${r}`)}))}return{name:"ReportingObserver",setupOnce(){"ReportingObserver"in Fs&&new fa.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){ha.set(e,!0)}}}
1020function ga(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel
1021return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){return!!t&&_a(e)===_a(t)}(e,r)}function _a(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const ya=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e}
1022return{name:"HttpClient",setup(e){!function(e,t){Bs()&&Ri((n=>{if(pe()!==e)return
1023const{response:r,args:o}=n,[s,i]=o
1024r&&function(e,t,n,r){if(wa(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,r)
1025let o,s,i,a
1026Ea()&&([o,i]=va("Cookie",e),[s,a]=va("Set-Cookie",n)),bt(ka({url:e.url,method:e.method,status:n.status,requestHeaders:o,responseHeaders:s,requestCookies:i,responseCookies:a}))}}(t,s,r,i)}))}(e,t),function(e,t){"XMLHttpRequest"in Pr&&yi((n=>{if(pe()!==e)return
1027const r=n.xhr,o=r[_i]
1028if(!o)return
1029const{method:s,request_headers:i}=o
1030try{!function(e,t,n,r){if(wa(e,t.status,t.responseURL)){let o,s,i
1031if(Ea()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0
1032e&&(s=Sa(e))}catch(e){Mo&&ro.log("Could not extract cookies from response headers")}try{i=function(e){const t=e.getAllResponseHeaders()
1033return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ")
1034return n&&r&&(e[n]=r),e}),{}):{}}(t)}catch(e){Mo&&ro.log("Could not extract headers from response")}o=r}bt(ka({url:t.responseURL,method:n,status:t.status,requestHeaders:o,responseHeaders:i,responseCookies:s}))}}(t,r,s,i)}catch(e){Mo&&ro.warn("Error while extracting response event form XHR response",e)}}))}(e,t)}}}
1035function va(e,t){const n=function(e){const t={}
1036return e.forEach(((e,n)=>{t[n]=e})),t}(t.headers)
1037let r
1038try{const t=n[e]||n[e.toLowerCase()]||void 0
1039t&&(r=Sa(t))}catch(t){Mo&&ro.log(`Could not extract cookies from header ${e}`)}return[n,r]}function ba(e){if(e){const t=e["Content-Length"]||e["content-length"]
1040if(t)return parseInt(t,10)}}function Sa(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=")
1041return n&&r&&(e[n]=r),e}),{})}function wa(e,t,n){return function(e,t){return e.some((e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1]))}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some((e=>"string"==typeof e?o.includes(e):e.test(o))))&&!ga(n,pe())
1042var r,o}function ka(e){const t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:ba(e.responseHeaders)}}}
1043return bo(n,{type:"http.client",handled:!1}),n}function Ea(){const e=pe()
1044return!!e&&Boolean(e.getOptions().sendDefaultPii)}const xa=Pr,Ca=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7
1045return{name:"ContextLines",processEvent:e=>function(e,t){const n=xa.document,r=xa.location&&xa.location.href.split(/[?#]/,1)[0]
1046if(!n||!r)return e
1047const o=e.exception&&e.exception.values
1048if(!o||!o.length)return e
1049const s=n.documentElement.innerHTML
1050if(!s)return e
1051const i=["<!DOCTYPE html>","<html>",...s.split("\n"),"</html>"]
1052return o.forEach((e=>{const n=e.stacktrace
1053n&&n.frames&&(n.frames=n.frames.map((e=>function(e,t,n,r){return e.filename===n&&e.lineno&&t.length?(function(e,t,n=5){if(void 0===t.lineno)return
1054const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0)
1055t.pre_context=e.slice(Math.max(0,o-n),o).map((e=>so(e,0)))
1056const s=Math.min(r-1,o)
1057t.context_line=so(e[s],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map((e=>so(e,0)))}(t,e,r),e):e}(e,i,r,t))))})),e}(e,t)}}
1058function Ta(e){let t,n=e[0],r=1
1059for(;r<e.length;){const o=e[r],s=e[r+1]
1060if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return
1061"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}const Ia="8.37.1",Ma=globalThis,Ra="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Aa=["debug","info","warn","error","log","assert","trace"],Na={}
1062function Oa(e){if(!("console"in Ma))return e()
1063const t=Ma.console,n={},r=Object.keys(Na)
1064r.forEach((e=>{const r=Na[e]
1065n[e]=t[e],t[e]=r}))
1066try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const Da=function(e,t,n){const r=Ma,o=r.__SENTRY__=r.__SENTRY__||{},s=o[Ia]=o[Ia]||{}
1067return s[e]||(s[e]=function(){let e=!1
1068const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e}
1069return Ra?Aa.forEach((n=>{t[n]=(...t)=>{e&&Oa((()=>{Ma.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Aa.forEach((e=>{t[e]=()=>{}})),t}())}("logger"),La=["fatal","error","warning","log","info","debug"],Pa=Object.prototype.toString
1070function $a(e,t){return Pa.call(e)===`[object ${t}]`}function Fa(e){return $a(e,"String")}function ja(e){return $a(e,"Object")}function Ua(e,t){try{return e instanceof t}catch(e){return!1}}const Ba=Ma,Ha=80
1071function za(e,t={}){if(!e)return"<unknown>"
1072try{let n=e
1073const r=5,o=[]
1074let s=0,i=0
1075const a=" > ",c=a.length
1076let u
1077const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Ha
1078for(;n&&s++<r&&(u=Wa(n,l),!("html"===u||s>1&&i+o.length*c+u.length>=d));)o.push(u),i+=u.length,n=n.parentNode
1079return o.reverse().join(a)}catch(e){return"<unknown>"}}function Wa(e,t){const n=e,r=[]
1080if(!n||!n.tagName)return""
1081if(Ba.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent
1082if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase())
1083const o=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null
1084if(o&&o.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}))
1085else{n.id&&r.push(`#${n.id}`)
1086const e=n.className
1087if(e&&Fa(e)){const t=e.split(/\s+/)
1088for(const e of t)r.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"]
1089for(const i of s){const e=n.getAttribute(i)
1090e&&r.push(`[${i}="${e}"]`)}return r.join("")}function qa(){try{return Ba.document.location.href}catch(e){return""}}function Ya(e){try{return"undefined"!=typeof Element&&Ua(e,Element)?za(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Va(e){if("object"==typeof e&&null!==e){const t={}
1091for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])
1092return t}return{}}function Ga(e){return Ja(e,new Map)}function Ja(e,t){if(function(e){if(!ja(e))return!1
1093try{const t=Object.getPrototypeOf(e).constructor.name
1094return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e)
1095if(void 0!==n)return n
1096const r={}
1097t.set(e,r)
1098for(const o of Object.getOwnPropertyNames(e))void 0!==e[o]&&(r[o]=Ja(e[o],t))
1099return r}if(Array.isArray(e)){const n=t.get(e)
1100if(void 0!==n)return n
1101const r=[]
1102return t.set(e,r),e.forEach((e=>{r.push(Ja(e,t))})),r}return e}const Xa="<anonymous>"
1103function Ka(e,t=100,n=1/0){try{return Qa("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Qa(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[]
1104return[function(n){if(e)return!!t.has(n)||(t.add(n),!1)
1105for(let e=0;e<t.length;e++)if(t[e]===n)return!0
1106return t.push(n),!1},function(n){if(e)t.delete(n)
1107else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1)
1108break}}]}()){const[s,i]=o
1109if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t
1110const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]"
1111if("domainEmitter"===e)return"[DomainEmitter]"
1112if("undefined"!=typeof global&&t===global)return"[Global]"
1113if("undefined"!=typeof window&&t===window)return"[Window]"
1114if("undefined"!=typeof document&&t===document)return"[Document]"
1115if("object"==typeof(n=t)&&null!==n&&(n.__isVue||n._isVue))return"[VueViewModel]"
1116if(function(e){return ja(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]"
1117if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`
1118if("function"==typeof t)return`[Function: ${function(e){try{return e&&"function"==typeof e&&e.name||Xa}catch(e){return Xa}}(t)}]`
1119if("symbol"==typeof t)return`[${String(t)}]`
1120if("bigint"==typeof t)return`[BigInt: ${String(t)}]`
1121const r=function(e){const t=Object.getPrototypeOf(e)
1122return t?t.constructor.name:"null prototype"}(t)
1123return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t)
1124if(!a.startsWith("[object "))return a
1125if(t.__sentry_skip_normalization__)return t
1126const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n
1127if(0===c)return a.replace("object ","")
1128if(s(t))return"[Circular ~]"
1129const u=t
1130if(u&&"function"==typeof u.toJSON)try{return Qa("",u.toJSON(),c-1,r,o)}catch(e){}const l=Array.isArray(t)?[]:{}
1131let d=0
1132const p=function(e){if(function(e){switch(Pa.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0
1133default:return Ua(e,Error)}}(e))return{message:e.message,name:e.name,stack:e.stack,...Va(e)}
1134if("undefined"!=typeof Event&&Ua(e,Event)){const t={type:e.type,target:Ya(e.target),currentTarget:Ya(e.currentTarget),...Va(e)}
1135return"undefined"!=typeof CustomEvent&&Ua(e,CustomEvent)&&(t.detail=e.detail),t}return e}(t)
1136for(const f in p){if(!Object.prototype.hasOwnProperty.call(p,f))continue
1137if(d>=r){l[f]="[MaxProperties ~]"
1138break}const e=p[f]
1139l[f]=Qa(f,e,c-1,r,o),d++}return i(t),l}function Za(){return Date.now()/1e3}let ec
1140!function(){const{performance:e}=Ma
1141if(!e||!e.now)return Za
1142Date.now(),e.now()
1143null==e.timeOrigin||e.timeOrigin}()
1144const tc=(()=>{const{performance:e}=Ma
1145if(!e||!e.now)return void(ec="none")
1146const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):t
1147return s||a<t?o<=a?(ec="timeOrigin",e.timeOrigin):(ec="navigationStart",i):(ec="dateNow",r)}
1147)()
1148function nc(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=e
1149return`${a}://${c}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}var rc
1150function oc(e){return new sc((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(rc||(rc={}))
1151class sc{constructor(e){sc.prototype.__init.call(this),sc.prototype.__init2.call(this),sc.prototype.__init3.call(this),sc.prototype.__init4.call(this),this._state=rc.PENDING,this._handlers=[]
1152try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new sc(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new sc(((t,n)=>{let r,o
1153return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(rc.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(rc.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{var n
1154this._state===rc.PENDING&&(n=t,Boolean(n&&n.then&&"function"==typeof n.then)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===rc.PENDING)return
1155const e=this._handlers.slice()
1156this._handlers=[],e.forEach((e=>{e[0]||(this._state===rc.RESOLVED&&e[1](this._value),this._state===rc.REJECTED&&e[2](this._value),e[0]=!0)}))}}}const ic=6e4
1157function ac(){return"undefined"!=typeof window&&(!(("undefined"==typeof __SENTRY_BROWSER_BUNDLE__||!__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0))||void 0!==Ma.process&&"renderer"===Ma.process.type)}const cc=(e,t,n,r)=>{let o,s
1158return i=>{t.value>=0&&(i||r)&&(s=t.value-(o||0),(s||void 0===o)&&(o=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},uc=()=>ms.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],lc=()=>{const e=uc()
1159return e&&e.activationStart||0},dc=(e,t)=>{const n=uc()
1160let r="navigate"
1161return n&&(ms.document&&ms.document.prerendering||lc()>0?r="prerender":ms.document&&ms.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},pc=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}))
1162return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},fc=e=>{const t=t=>{("pagehide"===t.type||ms.document&&"hidden"===ms.document.visibilityState)&&e(t)}
1163ms.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},hc=e=>{let t=!1
1164return n=>{t||(e(n),t=!0)}}
1165let mc=-1
1166const gc=e=>{"hidden"===ms.document.visibilityState&&mc>-1&&(mc="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",gc,!0),removeEventListener("prerenderingchange",gc,!0))},_c=()=>(ms.document&&mc<0&&(mc="hidden"!==ms.document.visibilityState||ms.document.prerendering?1/0:0,addEventListener("visibilitychange",gc,!0),addEventListener("prerenderingchange",gc,!0)),{get firstHiddenTime(){return mc}}),yc=e=>{ms.document&&ms.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},vc=[1800,3e3],bc=[.1,.25],Sc=(e,t={})=>{((e,t={})=>{yc((()=>{const n=_c(),r=dc("FCP")
1167let o
1168const s=pc("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-lc(),0),r.entries.push(e),o(!0)))}))}))
1169s&&(o=cc(e,r,vc,t.reportAllChanges))}))})(hc((()=>{const n=dc("CLS",0)
1170let r,o=0,s=[]
1171const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=s[0],n=s[s.length-1]
1172o&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e])}})),o>n.value&&(n.value=o,n.entries=s,r())},a=pc("layout-shift",i)
1173a&&(r=cc(e,n,bc,t.reportAllChanges),fc((()=>{i(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},wc=[100,300],kc=(e,t={})=>{yc((()=>{const n=_c(),r=dc("FID")
1174let o
1175const s=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),o(!0))},i=e=>{e.forEach(s)},a=pc("first-input",i)
1176o=cc(e,r,wc,t.reportAllChanges),a&&fc(hc((()=>{i(a.takeRecords()),a.disconnect()})))}))}
1177let Ec=0,xc=1/0,Cc=0
1178const Tc=e=>{e.forEach((e=>{e.interactionId&&(xc=Math.min(xc,e.interactionId),Cc=Math.max(Cc,e.interactionId),Ec=Cc?(Cc-xc)/7+1:0)}))}
1179let Ic
1180const Mc=[200,500],Rc=()=>(Ic?Ec:performance.interactionCount||0)-0,Ac=[],Nc={},Oc=e=>{const t=Ac[Ac.length-1],n=Nc[e.interactionId]
1181if(n||Ac.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration)
1182else{const t={id:e.interactionId,latency:e.duration,entries:[e]}
1183Nc[t.id]=t,Ac.push(t)}Ac.sort(((e,t)=>
1183t.latency-e.latency)),Ac.splice(10).forEach((e=>{delete Nc[e.id]}))}},Dc=(e,t={})=>{yc((()=>{"interactionCount"in performance||Ic||(Ic=pc("event",Tc,{type:"event",buffered:!0,durationThreshold:0}))
1184const n=dc("INP")
1185let r
1186const o=e=>{e.forEach((e=>{e.interactionId&&Oc(e),"first-input"===e.entryType&&!Ac.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&Oc(e)}))
1187const t=(()=>{const e=Math.min(Ac.length-1,Math.floor(Rc()/50))
1188return Ac[e]})()
1189t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},s=pc("event",o,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40})
1190r=cc(e,n,Mc,t.reportAllChanges),s&&("PerformanceEventTiming"in ms&&"interactionId"in PerformanceEventTiming.prototype&&s.observe({type:"first-input",buffered:!0}),fc((()=>{o(s.takeRecords()),n.value<0&&Rc()>0&&(n.value=0,n.entries=[]),r(!0)})))}))},Lc=[2500,4e3],Pc={},$c=(e,t={})=>{yc((()=>{const n=_c(),r=dc("LCP")
1191let o
1192const s=e=>{const t=e[e.length-1]
1193t&&t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-lc(),0),r.entries=[t],o())},i=pc("largest-contentful-paint",s)
1194if(i){o=cc(e,r,Lc,t.reportAllChanges)
1195const n=hc((()=>{Pc[r.id]||(s(i.takeRecords()),i.disconnect(),Pc[r.id]=!0,o(!0))}));["keydown","click"].forEach((e=>{ms.document&&addEventListener(e,(()=>setTimeout(n,0)),!0)})),fc(n)}}))},Fc=[800,1800],jc=e=>{ms.document&&ms.document.prerendering?yc((()=>jc(e))):ms.document&&"complete"!==ms.document.readyState?addEventListener("load",(()=>jc(e)),!0):setTimeout(e,0)},Uc=(e,t={})=>{const n=dc("TTFB"),r=cc(e,n,Fc,t.reportAllChanges)
1196jc((()=>{const e=uc()
1197if(e){const t=e.responseStart
1198if(t<=0||t>performance.now())return
1199n.value=Math.max(t-lc(),0),n.entries=[e],r(!0)}}))},Bc={},Hc={}
1200let zc,Wc,qc,Yc,Vc
1201function Gc(e,t=!1){return su("cls",e,eu,zc,t)}function Jc(e,t=!1){return su("lcp",e,nu,qc,t)}function Xc(e){return su("fid",e,tu,Wc)}function Kc(e){return su("inp",e,ou,Vc)}function Qc(e,t){return iu(e,t),Hc[e]||(function(e){const t={}
1202"event"===e&&(t.durationThreshold=0),pc(e,(t=>{Zc(e,{entries:t})}),t)}(e),Hc[e]=!0),au(e,t)}function Zc(e,t){const n=Bc[e]
1203if(n&&n.length)for(const r of n)try{r(t)}catch(t){hs&&fs.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${zs(r)}\nError:`,t)}}function eu(){return Sc((e=>{Zc("cls",{metric:e}),zc=e}),{reportAllChanges:!0})}function tu(){return kc((e=>{Zc("fid",{metric:e}),Wc=e}))}function nu(){return $c((e=>{Zc("lcp",{metric:e}),qc=e}),{reportAllChanges:!0})}function ru(){return Uc((e=>{Zc("ttfb",{metric:e}),Yc=e}))}function ou(){return Dc((e=>{Zc("inp",{metric:e}),Vc=e}))}function su(e,t,n,r,o=!1){let s
1204return iu(e,t),Hc[e]||(s=n(),Hc[e]=!0),r&&t({metric:r}),au(e,t,o?s:void 0)}function iu(e,t){Bc[e]=Bc[e]||[],Bc[e].push(t)}function au(e,t,n){return()=>{n&&n()
1205const r=Bc[e]
1206if(!r)return
1207const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}const cu=Ma,uu="sentryReplaySession",lu="replay_event",du="Unable to send Replay",pu=15e4,fu=5e3,hu=2e7
1208function mu(e,t){return null!=e?e:t()}function gu(e){let t,n=e[0],r=1
1209for(;r<e.length;){const o=e[r],s=e[r+1]
1210if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return
1211"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}var _u
1212function yu(e){const t=gu([e,"optionalAccess",e=>e.host])
1213return Boolean(gu([t,"optionalAccess",e=>e.shadowRoot])===e)}function vu(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function bu(e){try{const n=e.rules||e.cssRules
1214return n?((t=Array.from(n,Su).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function Su(e){let t
1215if(function(e){return"styleSheet"in e}(e))try{t=bu(e.styleSheet)||function(e){const{cssText:t}=e
1216if(t.split('"').length<3)return t
1217const n=["@import",`url(${JSON.stringify(e.href)})`]
1218return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")
1219return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(_u||(_u={}))
1220class wu{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){return e?mu(gu([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1)):-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e)
1221this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id
1222this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e)
1223if(n){const e=this.nodeMetaMap.get(n)
1224e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ku({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Eu({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||""
1225return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function xu(e){return e.toLowerCase()}function Cu(e){return e.toUpperCase()}const Tu="__rrweb_original__"
1226function Iu(e){const t=e.type
1227return e.hasAttribute("data-rr-is-password")?"password":t?xu(t):null}function Mu(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function Ru(e,t){let n
1228try{n=new URL(e,mu(t,(()=>window.location.href)))}catch(e){return null}return mu(gu([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const Au={}
1229function Nu(e){const t=Au[e]
1230if(t)return t
1231const n=window.document
1232let r=window[e]
1233if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe")
1234t.hidden=!0,n.head.appendChild(t)
1235const o=t.contentWindow
1236o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Au[e]=r.bind(window)}function Ou(...e){return Nu("setTimeout")(...e)}function Du(...e){return Nu("clearTimeout")(...e)}let Lu=1
1237const Pu=new RegExp("[^a-z0-9-_:]"),$u=-2
1238function Fu(){return Lu++}let ju,Uu
1239const Bu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Hu=/^(?:[a-z+]+:)?\/\//i,zu=/^www\..*/i,Wu=/^(data:)([^,]*),(.*)/i
1240function qu(e,t){return(e||"").replace(Bu,((e,n,r,o,s,i)=>{const a=r||s||i,c=n||o||""
1241if(!a)return e
1242if(Hu.test(a)||zu.test(a))return`url(${c}${a}${c})`
1243if(Wu.test(a))return`url(${c}${a}${c})`
1244if("/"===a[0])return`url(${c}${function(e){let t=""
1245return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`
1246const u=t.split("/"),l=a.split("/")
1247u.pop()
1248for(const t of l)"."!==t&&(".."===t?u.pop():u.push(t))
1249return`url(${c}${u.join("/")}${c})`}))}
1249const Yu=/^[^ \t\n\r\u000c]+/,Vu=/^[, \t\n\r\u000c]+/,Gu=new WeakMap
1250function Ju(e,t){return t&&""!==t.trim()?Xu(e,t):t}function Xu(e,t){let n=Gu.get(e)
1251if(n||(n=e.createElement("a"),Gu.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t=""
1252return n.setAttribute("href",t),n.href}function Ku(e,t,n,r,o,s){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Ju(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t
1253let n=0
1254function r(e){let r
1255const o=e.exec(t.substring(n))
1256return o?(r=o[0],n+=r.length,r):""}const o=[]
1257for(;r(Vu),!(n>=t.length);){let s=r(Yu)
1258if(","===s.slice(-1))s=Ju(e,s.substring(0,s.length-1)),o.push(s)
1259else{let r=""
1260s=Ju(e,s)
1261let i=!1
1262for(;;){const e=t.charAt(n)
1263if(""===e){o.push((s+r).trim())
1264break}if(i)")"===e&&(i=!1)
1265else{if(","===e){n+=1,o.push((s+r).trim())
1266break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?qu(r,Xu(e)):"object"===t&&"data"===n?Ju(e,r):"function"==typeof s?s(n,r,o):r:Ju(e,r):r}function Qu(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Zu(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Zu(e.parentNode,t,n,r+1):-1}function el(e,t){return n=>{const r=n
1267if(null===r)return!1
1268try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n]
1269if(t.test(r))return!0}return!1}(r,e))return!0
1270return!(!t||!r.matches(t))}catch(e){return!1}}}function tl(e,t,n,r,o,s){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement
1271if(null===i)return!1
1272if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete")
1273if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1
1274if(s){if(c=Zu(i,el(r,o)),c<0)return!0
1275a=Zu(i,el(t,n),c>=0?c:1/0)}else{if(a=Zu(i,el(t,n)),a<0)return!1
1276c=Zu(i,el(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!s)}catch(e){}return!!s}function nl(e){return null==e?"":e.toLowerCase()}function rl(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:T=(()=>!1),newlyAddedElement:I=!1}=t
1277let{preserveWhiteSpace:M=!0}=t
1278const R=function(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1}=t,w=function(e,t){if(!t.hasNode(e))return
1279const n=t.getId(e)
1280return 1===n?void 0:n}(n,r)
1281switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:_u.Document,childNodes:[],compatMode:e.compatMode}:{type:_u.Document,childNodes:[]}
1282case e.DOCUMENT_TYPE_NODE:return{type:_u.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w}
1283case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:_,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1
1284if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n]
1285if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,s),w=function(e){if(e instanceof HTMLFormElement)return"form"
1286const t=xu(e.tagName)
1287return Pu.test(t)?"div":t}(e)
1288let k={}
1289const E=e.attributes.length
1290for(let T=0;T<E;T++){const t=e.attributes[T]
1291t.name&&!Qu(w,t.name,t.value)&&(k[t.name]=Ku(n,w,xu(t.name),t.value,e,c))}if("link"===w&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href))
1292let r=null
1293t&&(r=bu(t)),r&&(delete k.rel,delete k.href,k._cssText=qu(r,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=bu(e.sheet)
1294t&&(k._cssText=qu(t,Xu(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,n=Iu(t),r=Mu(t,Cu(w),n),o=t.checked
1295if("submit"!==n&&"button"!==n&&r){const e=tl(t,_,v,y,b,ku({type:n,tagName:Cu(w),maskInputOptions:a}))
1296k.value=Eu({isMasked:e,element:t,value:r,maskInputFn:u})}o&&(k.checked=o)}if("option"===w&&(e.selected&&!a.select?k.selected=!0:delete k.selected),"canvas"===w&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d")
1297if(!t)return!0
1298for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,s=Tu in o?o[Tu]:o
1299if(new Uint32Array(s.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(l.type,l.quality))
1300else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=n.createElement("canvas")
1301r.width=e.width,r.height=e.height,t!==r.toDataURL(l.type,l.quality)&&(k.rr_dataURL=t)}if("img"===w&&d){ju||(ju=n.createElement("canvas"),Uu=ju.getContext("2d"))
1302const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,s=()=>{t.removeEventListener("load",s)
1303try{ju.width=t.naturalWidth,ju.height=t.naturalHeight,Uu.drawImage(t,0,0),k.rr_dataURL=ju.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s))
1304console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?k.crossOrigin=o:t.removeAttribute("crossorigin"))}
1305t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}if("audio"!==w&&"video"!==w||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),S){const{width:t,height:n}=e.getBoundingClientRect()
1306k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}let x
1307"iframe"!==w||f(k.src)||(S||e.contentDocument||(k.rr_src=k.src),delete k.src)
1308try{customElements.get(w)&&(x=!0)}catch(e){}return{type:_u.Element,tagName:w,attributes:k,childNodes:[],isSVG:(C=e,Boolean("svg"===C.tagName||C.ownerSVGElement)||void 0),needBlock:S,rootId:m,isCustom:x}
1309var C}(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:_,inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:w,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p})
1310case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName
1311let p=e.textContent
1312const f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0
1313if(f&&p){try{e.nextSibling||e.previousSibling||gu([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=bu(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=qu(p,Xu(t.doc))}h&&(p="SCRIPT_PLACEHOLDER")
1314const g=tl(e,r,s,o,i,n)
1315return f||h||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(c.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=Eu({isMasked:tl(e,r,s,o,i,ku({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:u})),{type:_u.Text,textContent:p||"",isStyle:f,rootId:l}}(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:w})
1316case e.CDATA_SECTION_NODE:return{type:_u.CDATA,textContent:"",rootId:w}
1317case e.COMMENT_NODE:return{type:_u.Comment,textContent:e.textContent||"",rootId:w}
1318default:return!1}}(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:I})
1319if(!R)return console.warn(e,"not serialized"),null
1320let A
1321A=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===_u.Comment)return!0
1322if(e.type===_u.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Ru(e.attributes.href)))return!0
1323if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(nl(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===nl(e.attributes.name)||"icon"===nl(e.attributes.rel)||"apple-touch-icon"===nl(e.attributes.rel)||"shortcut icon"===nl(e.attributes.rel))))return!0
1324if("meta"===e.tagName){if(t.headMetaDescKeywords&&nl(e.attributes.name).match(/^description|keywords$/))return!0
1325if(t.headMetaSocial&&(nl(e.attributes.property).match(/^(og|twitter|fb):/)||nl(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===nl(e.attributes.name)))return!0
1326if(t.headMetaRobots&&("robots"===nl(e.attributes.name)||"googlebot"===nl(e.attributes.name)||"bingbot"===nl(e.attributes.name)))return!0
1327if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0
1328if(t.headMetaAuthorship&&("author"===nl(e.attributes.name)||"generator"===nl(e.attributes.name)||"framework"===nl(e.attributes.name)||"publisher"===nl(e.attributes.name)||"progid"===nl(e.attributes.name)||nl(e.attributes.property).match(/^article:/)||nl(e.attributes.property).match(/^product:/)))return!0
1329if(t.headMetaVerification&&("google-site-verification"===nl(e.attributes.name)||"yandex-verification"===nl(e.attributes.name)||"csrf-token"===nl(e.attributes.name)||"p:domain_verify"===nl(e.attributes.name)||"verify-v1"===nl(e.attributes.name)||"verification"===nl(e.attributes.name)||"shopify-checkout-api-token"===nl(e.attributes.name)))return!0}}return!1}(R,y)&&(M||R.type!==_u.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?Fu():$u
1330const N=Object.assign(R,{id:A})
1331if(r.add(e,N),A===$u)return null
1332w&&w(e)
1333let O=!p
1334if(N.type===_u.Element){O=O&&!N.needBlock,delete N.needBlock
1335const t=e.shadowRoot
1336t&&vu(t)&&(N.isShadowHost=!0)}if((N.type===_u.Document||N.type===_u.Element)&&O){y.headWhitespace&&N.type===_u.Element&&"head"===N.tagName&&(M=!1)
1337const t={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:T}
1338for(const n of Array.from(e.childNodes)){const e=rl(n,t)
1339e&&N.childNodes.push(e)}
1339if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=rl(n,t)
1340r&&(vu(e.shadowRoot)&&(r.isShadow=!0),N.childNodes.push(r))}}return e.parentNode&&yu(e.parentNode)&&vu(e.parentNode)&&(N.isShadow=!0),N.type===_u.Element&&"iframe"===N.tagName&&function(e,t,n){const r=e.contentWindow
1341if(!r)return
1342let o,s=!1
1343try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=Ou((()=>{s||(t(),s=!0)}),n)
1344return void e.addEventListener("load",(()=>{Du(r),s=!0,t()}))}const i="about:blank"
1345if(r.location.href!==i||e.src===i||""===e.src)return Ou(t,0),e.addEventListener("load",t)
1346e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument
1347if(t&&k){const n=rl(t,{doc:t,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:T})
1348n&&k(e,n)}}),E),N.type===_u.Element&&"link"===N.tagName&&"string"==typeof N.attributes.rel&&("stylesheet"===N.attributes.rel||"preload"===N.attributes.rel&&"string"==typeof N.attributes.href&&"css"===Ru(N.attributes.href))&&function(e,t,n){let r,o=!1
1349try{r=e.sheet}catch(e){return}if(r)return
1350const s=Ou((()=>{o||(t(),o=!0)}),n)
1351e.addEventListener("load",(()=>{Du(s),o=!0,t()}))}(e,(()=>{if(x){const t=rl(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:T})
1352t&&x(e,t)}}),C),N}function ol(e){let t,n=e[0],r=1
1353for(;r<e.length;){const o=e[r],s=e[r+1]
1354if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return
1355"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function sl(e,t,n=document){const r={capture:!0,passive:!0}
1356return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const il="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."
1357let al={map:{},getId:()=>(console.error(il),-1),getNode:()=>(console.error(il),null),removeNodeFromMap(){console.error(il)},has:()=>(console.error(il),!1),reset(){console.error(il)}}
1358function cl(e,t,n={}){let r=null,o=0
1359return function(...s){const i=Date.now()
1360o||!1!==n.leading||(o=i)
1361const a=t-(i-o),c=this
1362a<=0||a>t?(r&&(function(...e){Tl("clearTimeout")(...e)}(r),r=null),o=i,e.apply(c,s)):r||!1===n.trailing||(r=Il((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,s)}),a))}}function ul(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t)
1363return o.Object.defineProperty(e,t,r?n:{set(e){Il((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>ul(e,t,s||{},!0)}function ll(e,t,n){try{if(!(t in e))return()=>{}
1364const r=e[t],o=n(r)
1365return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(al=new Proxy(al,{get:(e,t,n)=>("map"===t&&console.error(il),Reflect.get(e,t,n))}))
1366let dl=Date.now
1367function pl(e){const t=e.document
1368return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:ol([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||ol([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||ol([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:ol([t,"optionalAccess",e=>e.documentElement,"access",e=>
1368e.scrollTop])||ol([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||ol([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function fl(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function hl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ml(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function gl(e,t,n,r,o){if(!e)return!1
1369const s=ml(e)
1370if(!s)return!1
1371const i=el(t,n)
1372if(!o){const e=r&&s.matches(r)
1373return i(s)&&!e}const a=Zu(s,i)
1374let c=-1
1375return!(a<0)&&(r&&(c=Zu(s,el(null,r))),a>-1&&c<0||a<c)}function _l(e,t){return t.getId(e)===$u}function yl(e,t){if(yu(e))return!1
1376const n=t.getId(e)
1377return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||yl(e.parentNode,t))}function vl(e){return Boolean(e.changedTouches)}function bl(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Sl(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function wl(e){return Boolean(ol([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(dl=()=>(new Date).getTime())
1378class kl{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return null!=(t=this.styleIDMap.get(e))?t:-1
1379var t}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e)
1380let n
1381return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function El(e){let t=null
1382return ol([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function xl(e){const t=e.ownerDocument
1383return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument
1384if(!t)return!1
1385const n=function(e){let t,n=e
1386for(;t=El(n);)n=t
1387return n}(e)
1388return t.contains(n)}(e))}const Cl={}
1389function Tl(e){const t=Cl[e]
1390if(t)return t
1391const n=window.document
1392let r=window[e]
1393if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe")
1394t.hidden=!0,n.head.appendChild(t)
1395const o=t.contentWindow
1396o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Cl[e]=r.bind(window)}function Il(...e){return Tl("setTimeout")(...e)}var Ml=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ml||{}),Rl=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Rl||{}),Al=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Al||{}),Nl=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Nl||{})
1397function Ol(e){let t,n=e[0],r=1
1398for(;r<e.length;){const o=e[r],s=e[r+1]
1399if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return
1400"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function Dl(e){return"__ln"in e}class Ll{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range")
1401let t=this.head
1402for(let n=0;n<e;n++)t=Ol([t,"optionalAccess",e=>e.next])||null
1403return t}addNode(e){const t={value:e,previous:null,next:null}
1404if(e.__ln=t,e.previousSibling&&Dl(e.previousSibling)){const n=e.previousSibling.__ln.next
1405t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
1405(n.previous=t)}else if(e.nextSibling&&Dl(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous
1406t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t
1407null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln
1408this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Pl=(e,t)=>`${e}@${t}`
1409class $l{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=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return
1410const e=[],t=new Set,n=new Ll,r=e=>{let t=e,n=$u
1411for(;n===$u;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t)
1412return n},o=o=>{if(!o.parentNode||!xl(o))return
1413const s=yu(o.parentNode)?this.mirror.getId(El(o)):this.mirror.getId(o.parentNode),i=r(o)
1414if(-1===s||-1===i)return n.addNode(o)
1415const a=rl(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.inlineImages,onSerialize:e=>{bl(e,this.mirror)&&!gl(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Sl(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),wl(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{gl(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}})
1416a&&(e.push({parentId:s,nextId:i,node:a}),t.add(a.id))}
1417for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift())
1418for(const a of this.movedSet)jl(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||o(a)
1419for(const a of this.addedSet)Ul(this.droppedSet,a)||jl(this.removes,a,this.mirror)?Ul(this.movedSet,a)?o(a):this.droppedSet.add(a):o(a)
1420let s=null
1421for(;n.length;){let e=null
1422if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail
1423for(;t;){const n=t
1424if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode)
1425if(-1===r(n.value))continue
1426if(-1!==t){e=n
1427break}{const t=n.value
1428if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host
1429if(-1!==this.mirror.getId(r)){e=n
1430break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value)
1431break}s=e.previous,n.removeNode(e.value),o(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e
1432if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles)
1433n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(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=e=>{if(!_l(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent
1434gl(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:tl(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ml(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target})
1435break}case"attributes":{const t=e.target
1436let n=e.attributeName,r=e.target.getAttribute(n)
1437if("value"===n){const n=Iu(t),o=t.tagName
1438r=Mu(t,o,n)
1439const s=ku({maskInputOptions:this.maskInputOptions,tagName:o,type:n})
1440r=Eu({isMasked:tl(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(gl(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return
1441let o=this.attributeMap.get(e.target)
1442if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return
1443n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Qu(t.tagName,n)&&(o.attributes[n]=Ku(this.doc,xu(t.tagName),xu(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span")
1444e.oldValue&&n.setAttribute("style",e.oldValue)
1445for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e)
1446r!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?r:[r,s]:o._unchangedStyles[e]=[r,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(gl(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return
1447e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=yu(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target)
1448gl(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||_l(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Fl(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||yl(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Pl(n,r)]?Fl(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!yu(e.target)||!vu(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(_l(e,this.mirror))return
1449this.movedSet.add(e)
1450let n=null
1451t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Pl(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e)
1452gl(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),wl(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["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((t=>{this[t]=e[t]}))}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 Fl(e,t){e.delete(t),t.childNodes.forEach((t=>Fl(e,t)))}function jl(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode
1453for(;r;){const t=n.getId(r)
1454if(e.some((e=>e.id===t)))return!0
1455r=r.parentNode}return!1}(e,t,n)}function Ul(e,t){return 0!==e.size&&Bl(e,t)}function Bl(e,t){const{parentNode:n}=t
1456return!!n&&(!!e.has(n)||Bl(e,n))}let Hl
1457const zl=e=>Hl?(...t)=>{try{return e(...t)}catch(e){if(Hl&&!0===Hl(e))return()=>{}
1458throw e}}:e
1459function Wl(e){let t,n=e[0],r=1
1460for(;r<e.length;){const o=e[r],s=e[r+1]
1461if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return
1462"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}const ql=[]
1463function Yl(e){try{if("composedPath"in e){const t=e.composedPath()
1464if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Vl(e,t){const n=new $l
1465ql.push(n),n.init(e)
1466let r=window.MutationObserver||window.__rrMutationObserver
1467const o=Wl([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")])
1468o&&window[o]&&(r=window[o])
1469const s=new r(zl((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})))
1470return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function Gl({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){return sl("scroll",zl(cl(zl((i=>{const a=Yl(i)
1471if(!a||gl(a,r,o,s,!0))return
1472const c=n.getId(a)
1473if(a===t&&t.defaultView){const n=pl(t.defaultView)
1474e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}const Jl=["INPUT","TEXTAREA","SELECT"],Xl=new WeakMap
1475function Kl({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=Yl(e)
1476const l=e.isTrusted,g=n&&Cu(n.tagName)
1477if("OPTION"===g&&(n=n.parentElement),!n||!g||Jl.indexOf(g)<0||gl(n,r,o,s,!0))return
1478const y=n
1479if(y.classList.contains(i)||a&&y.matches(a))return
1480const v=Iu(n)
1481let b=Mu(y,g,v),S=!1
1482const w=ku({maskInputOptions:c,tagName:g,type:v}),k=tl(n,p,h,f,m,w)
1483"radio"!==v&&"checkbox"!==v||(S=n.checked),b=Eu({isMasked:k,element:n,value:b,maskInputFn:u}),_(n,d?{text:b,isChecked:S,userTriggered:l}:{text:b,isChecked:S})
1484const E=n.name
1485"radio"===v&&E&&S&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach((e=>{if(e!==n){const t=Eu({isMasked:k,element:e,value:Mu(e,g,v),maskInputFn:u})
1486_(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function _(t,r){const o=Xl.get(t)
1487if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Xl.set(t,r)
1488const o=n.getId(t)
1489zl(e)({...r,id:o})}}const y=("last"===l.input?["change"]:["input","change"]).map((e=>sl(e,zl(g),t))),v=t.defaultView
1490if(!v)return()=>
1490{y.forEach((e=>e()))}
1491const 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"]]
1492return b&&b.set&&y.push(...S.map((e=>ul(e[0],e[1],{set(){zl(g)({target:this,isTrusted:!1})}},!1,v)))),zl((()=>{y.forEach((e=>e()))}))}function Ql(e){return function(e,t){if(nd("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||nd("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||nd("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||nd("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e)
1493t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e)
1494t.unshift(n)}return t}(e,[])}function Zl(e,t,n){let r,o
1495return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function ed({mirror:e,stylesheetManager:t},n){let r=null
1496r="#document"===n.nodeName?e.getId(n):e.getId(n.host)
1497const o="#document"===n.nodeName?Wl([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Wl([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=Wl([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Wl([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0
1498return null!==r&&-1!==r&&o&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return Wl([s,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Wl([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)])
1499if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),zl((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))):()=>{}}function td(e,t={}){const n=e.doc.defaultView
1500if(!n)return()=>{}
1501let r
1502e.recordDOM&&(r=Vl(e,e.doc))
1503const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{}
1504const o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500
1505let i,a=[]
1506const c=cl(zl((t=>{const n=Date.now()-i
1507e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),s),u=zl(cl(zl((e=>{const t=Yl(e),{clientX:n,clientY:o}=vl(e)?e.changedTouches[0]:e
1508i||(i=dl()),a.push({x:n,y:o,id:r.getId(t),timeOffset:dl()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Rl.Drag:e instanceof MouseEvent?Rl.MouseMove:Rl.TouchMove)})),o,{trailing:!1})),l=[sl("mousemove",u,n),sl("touchmove",u,n),sl("drag",u,n)]
1509return zl((()=>{l.forEach((e=>e()))}))}(e),s=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{}
1510const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[]
1511let u=null
1512return Object.keys(Al).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=xu(i)
1513const l=(t=>i=>{const a=Yl(i)
1514if(gl(a,r,o,s,!0))return
1515let c=null,l=t
1516if("pointerType"in i){switch(i.pointerType){case"mouse":c=Nl.Mouse
1517break
1518case"touch":c=Nl.Touch
1519break
1520case"pen":c=Nl.Pen}c===Nl.Touch?Al[t]===Al.MouseDown?l="TouchStart":Al[t]===Al.MouseUp&&(l="TouchEnd"):Nl.Pen}else vl(i)&&(c=Nl.Touch)
1521null!==c?(u=c,(l.startsWith("Touch")&&c===Nl.Touch||l.startsWith("Mouse")&&c===Nl.Mouse)&&(c=null)):Al[t]===Al.Click&&(c=u,u=null)
1522const d=vl(i)?i.changedTouches[0]:i
1523if(!d)return
1524const p=n.getId(a),{clientX:f,clientY:h}=d
1525zl(e)({type:Al[l],id:p,x:f,y:h,...null!==c&&{pointerType:c}})})(i)
1526if(window.PointerEvent)switch(Al[i]){case Al.MouseDown:case Al.MouseUp:a=a.replace("mouse","pointer")
1527break
1528case Al.TouchStart:case Al.TouchEnd:return}c.push(sl(a,l,t))})),zl((()=>{c.forEach((e=>e()))}))}(e),i=Gl(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1
1529return sl("resize",zl(cl(zl((()=>{const t=fl(),o=hl()
1530n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}(e,{win:n}),c=Kl(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=zl((i=>cl(zl((s=>{const a=Yl(s)
1531if(!a||gl(a,t,n,r,!0))return
1532const{currentTime:c,volume:u,muted:l,playbackRate:d}=a
1533e({type:i,id:o.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),s.media||500))),c=[sl("play",a(0),i),sl("pause",a(1),i),sl("seeked",a(2),i),sl("volumechange",a(3),i),sl("ratechange",a(4),i)]
1534return zl((()=>
1534{c.forEach((e=>e()))}))}(e)
1535let l=()=>{},d=()=>{},p=()=>{},f=()=>{}
1536e.recordDOM&&(l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{}
1537const o=r.CSSStyleSheet.prototype.insertRule
1538r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:zl(((r,o,s)=>{const[i,a]=s,{id:c,styleId:u}=Zl(o,t,n.styleMirror)
1539return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:i,index:a}]}),r.apply(o,s)}))})
1540const s=r.CSSStyleSheet.prototype.deleteRule
1541let i,a
1542r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:zl(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Zl(o,t,n.styleMirror)
1543return(a&&-1!==a||c&&-1!==c)&&e({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:zl(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Zl(o,t,n.styleMirror)
1544return(a&&-1!==a||c&&-1!==c)&&e({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:zl(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Zl(o,t,n.styleMirror)
1545return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(o,s)}))}))
1546const c={}
1547rd("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(rd("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),rd("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),rd("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule))
1548const u={}
1549return 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:zl(((r,o,s)=>{const[i,a]=s,{id:c,styleId:u}=Zl(o.parentStyleSheet,t,n.styleMirror)
1550return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:i,index:[...Ql(o),a||0]}]}),r.apply(o,s)}))}),o.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:zl(((r,o,s)=>{const[i]=s,{id:a,styleId:c}=Zl(o.parentStyleSheet,t,n.styleMirror)
1551return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Ql(o),i]}]}),r.apply(o,s)}))})})),zl((()=>{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((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule}))}))}(e,{win:n}),d=ed(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty
1552o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:zl(((o,i,a)=>{const[c,u,l]=a
1553if(n.has(c))return s.apply(i,[c,u,l])
1554const{id:d,styleId:p}=Zl(Wl([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror)
1555return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:u,priority:l},index:Ql(i.parentRule)}),o.apply(i,a)}))})
1556const i=o.CSSStyleDeclaration.prototype.removeProperty
1557return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:zl(((o,s,a)=>{const[c]=a
1558if(n.has(c))return i.apply(s,[c])
1559const{id:u,styleId:l}=Zl(Wl([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror)
1560return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:Ql(s.parentRule)}),o.apply(s,a)}))}),zl((()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i}))}(e,{win:n}),e.collectFonts&&(f=function({fontCb:e,doc:t}){const n=t.defaultView
1561if(!n)return()=>{}
1562const r=[],o=new WeakMap,s=n.FontFace
1563n.FontFace=function(e,t,n){const r=new s(e,t,n)
1564return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r}
1565const i=ll(t.fonts,"add",(function(t){return function(n){return Il(zl((()=>{const t=o.get(n)
1566t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}))
1567return r.push((()=>{n.FontFace=s})),r.push(i),zl((()=>{r.forEach((e=>e()))}))}(e)))
1568const h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e
1569let a=!0
1570const c=zl((()=>{const e=t.getSelection()
1571if(!e||a&&Wl([e,"optionalAccess",e=>e.isCollapsed]))return
1572a=e.isCollapsed||!1
1573const c=[],u=e.rangeCount||0
1574for(let t=0;t<u;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=i
1575gl(a,r,o,s,!0)||gl(l,r,o,s,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}i({ranges:c})}))
1576return c(),sl("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView
1577return n&&n.customElements?ll(n.customElements,"define",(function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,o])}})):()=>{}}(e),g=[]
1578for(const _ of e.plugins)g.push(_.observer(_.callback,n,_.options))
1579return zl((()=>{ql.forEach((e=>e.reset())),Wl([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),o(),s(),i(),a(),c(),u(),l(),d(),p(),f(),h(),m(),g.forEach((e=>e()))}))}function nd(e){return void 0!==window[e]}function rd(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class od{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e)
1580let i=o.get(t)
1581return i||(i=this.generateIdFn(),o.set(t,i),s.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e)
1582return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e)
1583return"number"!=typeof t?t:r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e)
1584return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap)
1585this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e)
1586return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e)
1587return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function sd(e){let t,n=e[0],r=1
1588for(;r<e.length;){const o=e[r],s=e[r+1]
1589if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return
1590"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}class id{constructor(){this.crossOriginIframeMirror=new od(Fu),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ad{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new od(Fu),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new od(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),sd([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e
1591if("rrweb"!==t.data.type||t.origin!==t.data.origin)return
1592if(!e.source)return
1593const n=this.crossOriginIframeMap.get(e.source)
1594if(!n)return
1595const r=this.transformCrossOriginEvent(n,t.data.event)
1596r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Ml.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e)
1597const n=t.data.node.id
1598return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Ml.IncrementalSnapshot,data:{source:Rl.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ml.Meta:case Ml.Load:case Ml.DomContentLoaded:return!1
1599case Ml.Plugin:return t
1600case Ml.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t
1601case Ml.IncrementalSnapshot:switch(t.data.source){case Rl.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e)
1602const n=this.crossOriginIframeRootIdMap.get(e)
1603n&&this.patchRootIdOnNode(t.node,n)}
1603)),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t
1604case Rl.Drag:case Rl.TouchMove:case Rl.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t
1605case Rl.ViewportResize:return!1
1606case Rl.MediaInteraction:case Rl.MouseInteraction:case Rl.Scroll:case Rl.CanvasMutation:case Rl.Input:return this.replaceIds(t.data,e,["id"]),t
1607case Rl.StyleSheetRule:case Rl.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t
1608case Rl.Font:return t
1609case Rl.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t
1610case Rl.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),sd([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]))
1611return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===_u.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class cd{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class ud{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!vu(e))return
1612if(this.shadowDoms.has(e))return
1613this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e)
1614const n=Vl({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e)
1615this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Gl({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Il((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(ed({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this
1616this.restoreHandlers.push(ll(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r)
1617return this.shadowRoot&&xl(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class ld{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class dd{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new kl,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return
1618const n={id:t,styleIds:[]},r=[]
1619for(const o of e){let e
1620this.styleMirror.has(o)?e=this.styleMirror.getId(o):(e=this.styleMirror.add(o),r.push({styleId:e,rules:Array.from(o.rules||CSSRule,((e,t)=>({rule:Su(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class pd{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e)
1621return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,function(...e){Tl("requestAnimationFrame")(...e)}
1621((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let fd,hd
1622try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe")
1623document.body.appendChild(e),Array.from=Ta([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const md=new wu
1624function gd(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,maxCanvasSize:S=null,packFn:w,sampling:k={},dataURLOptions:E={},mousemoveWait:x,recordDOM:C=!0,recordCanvas:T=!1,recordCrossOriginIframes:I=!1,recordAfter:M=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:A=!1,inlineImages:N=!1,plugins:O,keepIframeSrcFn:D=(()=>!1),ignoreCSSAttributes:L=new Set([]),errorHandler:P,onMutation:$,getCanvasManager:F}=e;(function(e){Hl=e})(P)
1625const j=!I||window.parent===window
1626let U=!1
1627if(!j)try{window.parent.document&&(U=!1)}catch(e){U=!0}if(j&&!t)throw new Error("emit function is required")
1628if(!j&&!U)return()=>{}
1629void 0!==x&&void 0===k.mousemove&&(k.mousemove=x),md.reset()
1630const B=!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:{},H=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{}
1631let z
1632!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0]
1633if(!(0 in e))throw new TypeError("1 argument is required")
1634do{if(this===t)return!0}while(t=t&&t.parentNode)
1635return!1})}()
1636let W=0
1637const q=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e))
1638return w&&!U&&(e=w(e)),e}
1639fd=(e,o)=>{const s=e
1640if(s.timestamp=dl(),!Ta([ql,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||s.type===Ml.FullSnapshot||s.type===Ml.IncrementalSnapshot&&s.data.source===Rl.Mutation||ql.forEach((e=>e.unfreeze())),j)Ta([t,"optionalCall",e=>e(q(s),o)])
1641else if(U){const e={type:"rrweb",event:q(s),origin:window.location.origin,isCheckout:o}
1642window.parent.postMessage(e,"*")}if(s.type===Ml.FullSnapshot)z=s,W=0
1643else if(s.type===Ml.IncrementalSnapshot){if(s.data.source===Rl.Mutation&&s.data.isAttachIframe)return
1644W++
1645const e=r&&W>=r,t=n&&z&&s.timestamp-z.timestamp>n;(e||t)&&ee(!0)}}
1646const Y=e=>{fd({type:Ml.IncrementalSnapshot,data:{source:Rl.Mutation,...e}})},V=e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.Scroll,...e}}),G=e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.CanvasMutation,...e}}),J=new dd({mutationCb:Y,adoptedStyleSheetCb:e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new id:new ad({mirror:md,mutationCb:Y,stylesheetManager:J,recordCrossOriginIframes:I,wrappedEmit:fd})
1647for(const te of O||[])te.getMirror&&te.getMirror({nodeMirror:md,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror})
1648const K=new pd,Q=function(e,t){try{return e?e(t):new ld}catch(e){return console.warn("Unable to initialize CanvasManager"),new ld}}(F,{mirror:md,win:window,mutationCb:e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.CanvasMutation,...e}}),recordCanvas:T,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:S,sampling:k.canvas,dataURLOptions:E,errorHandler:P}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new cd:new ud({mutationCb:Y,scrollCb:V,bypassOptions:{onMutation:$,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:B,dataURLOptions:E,maskAttributeFn:y,maskTextFn:b,maskInputFn:v,recordCanvas:T,inlineImages:N,sampling:k,slimDOMOptions:H,iframeManager:X,stylesheetManager:J,canvasManager:Q,keepIframeSrcFn:D,processedNodeManager:K},mirror:md}),ee=(e=!1)=>
1648{if(!C)return
1649fd({type:Ml.Meta,data:{href:window.location.href,width:hl(),height:fl()}},e),J.reset(),Z.init(),ql.forEach((e=>e.lock()))
1650const t=function(e,t){const{mirror:n=new wu,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:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:C=(()=>!1)}=t||{}
1651return rl(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{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===h?{}:h,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:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:md,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:B,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,slimDOM:H,dataURLOptions:E,recordCanvas:T,inlineImages:N,onSerialize:e=>{bl(e,md)&&X.addIframe(e),Sl(e,md)&&J.trackLinkElement(e),wl(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),e.contentWindow&&Q.addWindow(e.contentWindow),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},keepIframeSrcFn:D})
1652if(!t)return console.warn("Failed to snapshot the document")
1653fd({type:Ml.FullSnapshot,data:{node:t,initialOffset:pl(window)}}),ql.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,md.getId(document))}
1654hd=ee
1655try{const e=[],t=e=>zl(td)({onMutation:$,mutationCb:Y,mousemoveCb:(e,t)=>fd({type:Ml.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.MouseInteraction,...e}}),scrollCb:V,viewportResizeCb:e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.ViewportResize,...e}}),inputCb:e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.Input,...e}}),mediaInteractionCb:e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.MediaInteraction,...e}}),styleSheetRuleCb:e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.StyleSheetRule,...e}}),styleDeclarationCb:e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>fd({type:Ml.IncrementalSnapshot,data:{source:Rl.Font,...e}}),selectionCb:e=>{fd({type:Ml.IncrementalSnapshot,data:{source:Rl.Selection,...e}})},customElementCb:e=>{fd({type:Ml.IncrementalSnapshot,data:{source:Rl.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:B,inlineStylesheet:h,sampling:k,recordDOM:C,recordCanvas:T,inlineImages:N,userTriggeredOnInput:R,collectFonts:A,doc:e,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:D,blockSelector:s,unblockSelector:i,slimDOMOptions:H,dataURLOptions:E,mirror:md,iframeManager:X,stylesheetManager:J,shadowDomManager:Z,processedNodeManager:K,canvasManager:Q,ignoreCSSAttributes:L,plugins:Ta([O,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>fd({type:Ml.Plugin,data:{plugin:e.name,payload:t}}
1655)})))])||[]},{})
1656X.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}))
1657const n=()=>{ee(),e.push(t(document))}
1658return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(sl("DOMContentLoaded",(()=>{fd({type:Ml.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()}))),e.push(sl("load",(()=>{fd({type:Ml.Load,data:{}}),"load"===M&&n()}),window))),()=>{e.forEach((e=>e())),K.destroy(),hd=void 0,Hl=void 0}}catch(e){console.warn(e)}}gd.mirror=md,gd.takeFullSnapshot=function(e){if(!hd)throw new Error("please take full snapshot after start recording")
1659hd(e)}
1660const _d="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,yd=["info","warn","error","log"],vd="[Replay] "
1661function bd(e,t="info"){he({category:"console",data:{logger:"replay"},level:t,message:`${vd}${e}`},{level:t})}const Sd=function(){let e=!1,t=!1
1662const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}}
1663return _d?(yd.forEach((e=>{n[e]=(...n)=>{var r
1664Da[e](vd,...n),t&&bd(n.join(""),"warn"===(r=e)?"warning":La.includes(r)?r:"log")}})),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),Da.error(vd,r),e?yt(r):t&&bd(r,"error")},n.infoTick=(...e)=>{Da.info(vd,...e),t&&setTimeout((()=>bd(e[0])),0)}):yd.forEach((e=>{n[e]=()=>{}})),n}()
1665function wd(e){return e>9999999999?e:1e3*e}function kd(e){return e>9999999999?e/1e3:e}function Ed(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Ml.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:Ka(t,10,1e3)}}),"console"===t.category))))}const xd="button,a"
1666function Cd(e){return e.closest(xd)||e}function Td(e){const t=Id(e)
1667return t&&t instanceof Element?Cd(t):t}function Id(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Md
1668function Rd(e){return Md||(Md=[],function(e,t,n){if(!(t in e))return
1669const r=e[t],o=function(e){return function(...t){if(Md)try{Md.forEach((e=>e()))}catch(e){}return e.apply(cu,t)}}(r)
1670"function"==typeof o&&function(e,t){try{const n=t.prototype||{}
1671e.prototype=t.prototype=n,function(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){Ra&&Da.log(`Failed to add non-enumerable property "${t}" to object`,e)}}(e,"__sentry_original__",t)}catch(e){}}(o,r),e[t]=o}(cu,"open")),Md.push(e),()=>{const t=Md?Md.indexOf(e):-1
1672t>-1&&Md.splice(t,1)}}const Ad=new Set([Rl.Mutation,Rl.StyleSheetRule,Rl.StyleDeclaration,Rl.AdoptedStyleSheet,Rl.CanvasMutation,Rl.Selection,Rl.MediaInteraction])
1673class Nd{constructor(e,t,n=Ed){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=Rd((()=>{this._lastMutation=Dd()}))
1674this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!Od.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return
1675const n={timestamp:kd(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t}
1676this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=kd(e)}registerScroll(e=Date.now()){this._lastScroll=kd(e)}registerClick(e){const t=Cd(e)
1677this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Dd()
1678this._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<=t&&e.push(n)}))
1679for(const n of e){const e=this._clicks.indexOf(n)
1680e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:s,clickBreadcrumb:i}=e
1681if(o){const n=1e3*Math.min(e.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:cu.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}}
1682this._addBreadcrumbEvent(t,o)}else if(s>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:cu.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}}
1683this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=vs((()=>this._checkClicks()),1e3)}}const Od=["A","BUTTON","INPUT"]
1684function Dd(){return Date.now()/1e3}function Ld(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Pd
1685!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Pd||(Pd={}))
1686const $d=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"])
1687function Fd(e){const t={}
1688!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"])
1689for(const n in e)if($d.has(n)){let r=n
1690"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}
1690function jd(e,t){const n=gd.mirror.getId(e),r=n&&gd.mirror.getNode(n),o=r&&gd.mirror.getMeta(r),s=o&&function(e){return e.type===Pd.Element}(o)?o:null
1691return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map((e=>e.type===Pd.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Fd(s.attributes)}}:{}}}const Ud={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=e
1692return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:zd(s),end:zd(o),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,s=zd(o)
1693return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e
1694return 0===o?null:{type:`${t}.${m}`,start:zd(f),end:zd(s),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:s,redirectCount:p}}}}
1695function Bd(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Hd(e){const t=Ud[e.entryType]
1696return t?t(e):null}function zd(e){return((tc||cu.performance.timeOrigin)+e)/1e3}function Wd(e){const t=e.entries[e.entries.length-1]
1697return Jd(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function qd(e){return void 0!==e.sources}function Yd(e){const t=[],n=[]
1698for(const r of e.entries)if(qd(r)){const e=[]
1699for(const t of r.sources)if(t.node){n.push(t.node)
1700const r=gd.mirror.getId(t.node)
1701r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Jd(e,"cumulative-layout-shift",n,t)}function Vd(e){const t=e.entries[e.entries.length-1]
1702return Jd(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function Gd(e){const t=e.entries[e.entries.length-1]
1703return Jd(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Jd(e,t,n,r){const o=e.value,s=e.rating,i=zd(o)
1704return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map((e=>gd.mirror.getId(e))):void 0,attributions:r}}}class Xd extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Kd{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length
1705if(this._totalSize+=t,this._totalSize>hu)throw new Xd
1706this.events.push(e)}finish(){return new Promise((e=>{const t=this.events
1707this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0]
1708return e?wd(e):null}}class Qd{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){_d&&Sd.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId()
1709return new Promise(((r,o)=>{const s=({data:t})=>{const i=t
1710if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",s),!i.success)return _d&&Sd.error("Error in compression worker: ",i.response),void o(new Error("Error in compression worker"))
1711r(i.response)}}
1712this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Zd{constructor(e){this._worker=new Qd(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}
1712addEvent(e){const t=wd(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t)
1713const n=JSON.stringify(e)
1714return this._totalSize+=n.length,this._totalSize>hu?Promise.reject(new Xd):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{_d&&Sd.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish")
1715return this._earliestTimestamp=null,this._totalSize=0,e}}class ep{constructor(e){this._fallback=new Kd,this._compression=new Zd(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(_d&&Sd.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[]
1716for(const r of e)n.push(this._compression.addEvent(r))
1717this._compression.hasCheckout=t,this._used=this._compression
1718try{await Promise.all(n),this._fallback.clear()}catch(e){_d&&Sd.exception(e,"Failed to add events when switching buffers.")}}}function tp(){try{return"sessionStorage"in cu&&!!cu.sessionStorage}catch(e){return!1}}function np(e){return void 0!==e&&Math.random()<e}function rp(e){const t=Date.now(),n=e.id||function(){const e=Ma,t=e.crypto||e.msCrypto
1719let n=()=>16*Math.random()
1720try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"")
1721t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1)
1722return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}()
1723return{id:n,started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function op(e){if(tp())try{cu.sessionStorage.setItem(uu,JSON.stringify(e))}catch(e){}}function sp({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return np(e)?"session":!!t&&"buffer"}(e,t),s=rp({sampled:o,previousSessionId:r})
1724return n&&op(s),s}function ip(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function ap(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return ip(e.started,t,r)||ip(e.lastActivity,n,r)}function cp(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!ap(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function up({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&function(){if(!tp())return null
1725try{const e=cu.sessionStorage.getItem(uu)
1726if(!e)return null
1727const t=JSON.parse(e)
1728return _d&&Sd.infoTick("Loading existing session"),rp(t)}catch(e){return null}}()
1729return o?cp(o,{sessionIdleExpire:e,maxReplayDuration:t})?(_d&&Sd.infoTick("Session in sessionStorage is expired, creating new one..."),sp(r,{previousSessionId:o.id})):o:(_d&&Sd.infoTick("Creating new session"),sp(r,{previousSessionId:n}))}function lp(e,t,n){return!!pp(e,t)&&(dp(e,t,n),!0)}async function dp(e,t,n){if(!e.eventBuffer)return null
1730try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0)
1731const r=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Ml.Custom}(e))return t(e)}catch(e){return _d&&Sd.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent)
1732if(!r)return
1733return await e.eventBuffer.addEvent(r)}catch(t){const n=t&&t instanceof Xd?"addEventSizeExceeded":"addEvent"
1734e.handleException(t),await e.stop({reason:n})
1735const r=pe()
1736r&&r.recordDroppedEvent("internal_sdk_error","replay")}}
1736function pp(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1
1737const n=wd(t.timestamp)
1738return!(n+e.timeouts.sessionIdlePause<Date.now()||n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(_d&&Sd.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),1))}function fp(e){return!e.type}function hp(e){return"transaction"===e.type}function mp(e){return"feedback"===e.type}function gp(e){return!!e.category}function _p(e,t){return t.map((({type:t,start:n,end:r,name:o,data:s})=>{const i=e.throttledAddEvent({type:Ml.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:s}}})
1739return"string"==typeof i?Promise.resolve(null):i}))}function yp(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!_d||!e.getOptions()._experiments.traceInternals)&&ga(t,pe())}(e,t.name)||e.addUpdate((()=>(_p(e,[t]),!0))))}function vp(e){if(!e)return
1740const t=new TextEncoder
1741try{if("string"==typeof e)return t.encode(e).length
1742if(e instanceof URLSearchParams)return t.encode(e.toString()).length
1743if(e instanceof FormData){const n=Tp(e)
1744return t.encode(n).length}if(e instanceof Blob)return e.size
1745if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function bp(e){if(!e)return
1746const t=parseInt(e,10)
1747return isNaN(t)?void 0:t}function Sp(e){try{if("string"==typeof e)return[e]
1748if(e instanceof URLSearchParams)return[e.toString()]
1749if(e instanceof FormData)return[Tp(e)]
1750if(!e)return[void 0]}catch(t){return _d&&Sd.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return _d&&Sd.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function wp(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}}
1751const n={...e._meta},r=n.warnings||[]
1752return n.warnings=[...r,t],e._meta=n,e}function kp(e,t){if(!t)return null
1753const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:c}=t
1754return{type:e,start:n/1e3,end:r/1e3,name:o,data:Ga({method:s,statusCode:i,request:a,response:c})}}function Ep(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function xp(e,t,n){if(!t&&0===Object.keys(e).length)return
1755if(!t)return{headers:e}
1756if(!n)return{headers:e,size:t}
1757const r={headers:e,size:t},{body:o,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e}
1758const t=e.length>pu,n=function(e){const t=e[0],n=e[e.length-1]
1759return"["===t&&"]"===n||"{"===t&&"}"===n}(e)
1760if(t){const t=e.slice(0,pu)
1761return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n)
1762return r.body=o,s&&s.length>0&&(r._meta={warnings:s}),r}function Cp(e,t){return Object.entries(e).reduce(((n,[r,o])=>{const s=r.toLowerCase()
1763return t.includes(s)&&e[r]&&(n[s]=o),n}),{})}function Tp(e){return new URLSearchParams(e).toString()}function Ip(e,t){const n=function(e,t=cu.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(cu.location.origin))return e
1764const n=new URL(e,t)
1765if(n.origin!==new URL(t).origin)return e
1766const r=n.href
1767return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e)
1768return function(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!Fa(e)&&($a(t,"RegExp")?t.test(e):!!Fa(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}(n,t)}function Mp(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Rp(e,t){const n={}
1769return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Ap(e,t){if(!e)return{}
1770const n=e.headers
1771return n?n instanceof Headers?Rp(n,t):Array.isArray(n)?{}:Cp(n,t):{}}function Np(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3
1772return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Op(e){let t=!1
1773return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(_d&&Sd.warn("Received replay event after session expired."))
1774const o=r||!t
1775t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return 3===e.type}(t))return
1776const{source:n}=t.data
1777if(Ad.has(n)&&e.registerMutation(t.timestamp),n===Rl.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Rl.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=gd.mirror.getNode(r)
1778o instanceof HTMLElement&&n===Al.Click&&e.registerClick(o)}}catch(e){}}(e.clickDetector,n),e.addUpdate((()=>
1778{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!lp(e,n,o))return!0
1779if(!o)return!1
1780const t=e.session
1781if(function(e,t){t&&e.session&&0===e.session.segmentId&&lp(e,function(e){const t=e.getOptions()
1782return{type:Ml.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp()
1783n&&(_d&&Sd.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&op(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}class Dp extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Lp extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Pp(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e
1784if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=function({recordingData:e,headers:t}){let n
1785const r=`${JSON.stringify(t)}\n`
1786if("string"==typeof e)n=`${r}${e}`
1787else{const t=(new TextEncoder).encode(r)
1788n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=pe(),p=ae(),f=d&&d.getTransport(),h=d&&d.getDsn()
1789if(!(d&&f&&h&&s.sampled))return oc({})
1790const m={type:lu,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)}
1791e.emit("preprocessEvent",r,o)
1792const s=await mt(e.getOptions(),r,o,t,e,ce())
1793if(!s)return null
1794s.platform=s.platform||"javascript"
1795const i=e.getSdkMetadata(),{name:a,version:c}=i&&i.sdk||{}
1796return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},s}({scope:p,client:d,replayId:t,event:m})
1797if(!g)return d.recordDroppedEvent("event_processor","replay",m),_d&&Sd.info("An event processor returned `null`, will not send event."),oc({})
1798delete g.sdkProcessingMetadata
1799const _=function(e,t,n,r){return function(e,t=[]){return[e,t]}(function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext
1800return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:nc(r)},...o&&{trace:Ga({...o})}}}(e,function(e){if(!e||!e.sdk)return
1801const{name:t,version:n}=e.sdk
1802return{name:t,version:n}}(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,i,h,d.getOptions().tunnel)
1803let y
1804try{y=await f.send(_)}catch(e){const t=new Error(du)
1805try{t.cause=e}catch(e){}throw t}if("number"==typeof y.statusCode&&(y.statusCode<200||y.statusCode>=300))throw new Dp(y.statusCode)
1806const v=function(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"]
1807if(s)for(const a of s.trim().split(",")){const[e,t,,,n]=a.split(":",5),s=parseInt(e,10),i=1e3*(isNaN(s)?60:s)
1808if(t)for(const a of t.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(o[a]=r+i)
1809else o.all=r+i}else i?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10)
1810if(!isNaN(n))return 1e3*n
1811const r=Date.parse(`${e}`)
1812return isNaN(r)?ic:r-t}(i,r):429===t&&(o.all=r+6e4)
1813return o}({},y)
1814if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(v,"replay"))throw new Lp(v)
1815return y}(e),!0}catch(n){if(n instanceof Dp||n instanceof Lp)throw n
1816if(St("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const t=new Error(`${du} - max retries exceeded`)
1817try{t.cause=n}catch(e){}throw t}return t.interval*=++t.count,new Promise(((n,r)=>{vs((async()=>{try{await Pp(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const $p="__THROTTLED"
1818class Fp{constructor({options:e,recordingOptions:t}){Fp.prototype.__init.call(this),Fp.prototype.__init2.call(this),Fp.prototype.__init3.call(this),Fp.prototype.__init4.call(this),Fp.prototype.__init5.call(this),Fp.prototype.__init6.call(this),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=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,o,s
1819const i=n&&n.maxWait?Math.max(n.maxWait,t):0
1820function a(){return c(),r=e(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function u(){return o&&clearTimeout(o),o=vs(a,t),i&&void 0===s&&(s=vs(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=function(e,t,n){const r=new Map
1821let o=!1
1822return(...t)=>{const n=Math.floor(Date.now()/1e3)
1823if((e=>{const t=e-5
1824r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(n),[...r.values()].reduce(((e,t)=>e+t),0)>=300){const e=o
1825return o=!0,e?"__SKIPPED":$p}o=!1
1826const s=r.get(n)||0
1827return r.set(n,s+1),e(...t)}}(((e,t)=>function(e,t,n){return pp(e,t)?dp(e,t,n):Promise.resolve(null)}(this,e,t)))
1828const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0
1829if(o&&(this.clickDetector=new Nd(this,o)),_d){const t=e._experiments
1830Sd.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){_d&&Sd.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0
1831this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",_d&&Sd.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):_d&&Sd.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(_d&&Sd.info("Recording is already in progress"))
1832if(this._isEnabled&&"buffer"===this.recordingMode)return void(_d&&Sd.info("Buffering is in progress, call `flush()` to save the replay"))
1833_d&&Sd.infoTick("Starting replay in session mode"),this._updateUserActivity()
1834const e=up({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1})
1835this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(_d&&Sd.info("Buffering is in progress, call `flush()` to save the replay"))
1836_d&&Sd.infoTick("Starting replay in buffer mode")
1837const e=up({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0})
1838this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas
1839this._stopRecording=gd({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Op(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1
1840try{_d&&Sd.info("Stopping Replay"+(t?` triggered by ${t}`:"")),function(){const e=ae().getPropagationContext().dsc
1841e&&delete e.replay_id
1842const t=at()
1843t&&delete dt(t).replay_id}(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this,function(){if(tp())try{cu.sessionStorage.removeItem(uu)}catch(e){}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),_d&&Sd.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),_d&&Sd.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate()
1844const t=Date.now()
1845_d&&Sd.info("Converting buffer to session"),await this.flushImmediate()
1846const n=this.stopRecording()
1847e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e()
1848"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity()
1849else{if(!this._checkSession())return
1850this.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&&this.session.id}
1850checkAndHandleExpiredSession(){if(!(this._lastActivity&&ip(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession()
1851this.pause()}setInitialState(){const e=`${cu.location.pathname}${cu.location.hash}${cu.location.search}`,t=`${cu.location.origin}${e}`
1852this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t)
1853if(n===$p){const e=Ld({category:"replay.throttled"})
1854this.addUpdate((()=>!lp(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||at(),t=e&&it(e),n=(t&&Ze(t).data||{})[o]
1855if(t&&n&&["route","custom"].includes(n))return Ze(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=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]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,591 bytes, line 1855
1855,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
1855++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});'])
1856return URL.createObjectURL(e)}())
1857if(!t)return
1858_d&&Sd.info("Using compression worker"+(e?` from ${e}`:""))
1859const n=new Worker(t)
1860return new ep(n)}catch(e){_d&&Sd.exception(e,"Failed to create compression worker")}}(t)
1861if(e)return e}return _d&&Sd.info("Using simple buffer"),new Kd}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=up({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t})
1862this.session=n}_checkSession(){if(!this.session)return!1
1863const e=this.session
1864return!cp(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{cu.document.addEventListener("visibilitychange",this._handleVisibilityChange),cu.addEventListener("blur",this._handleWindowBlur),cu.addEventListener("focus",this._handleWindowFocus),cu.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){const t=pe()
1865li((e=>t=>{if(!e.isEnabled())return
1866const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name
1867let n,r=null
1868try{r=t?Td(e.event):Id(e.event),n=za(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e)
1869return Ld({category:`ui.${e.name}`,...jd(t,n)})}(t)
1870if(!n)return
1871const r="click"===t.name,o=r?t.event:void 0
1872var s,i,a
1873!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(s=e.clickDetector,i=n,a=Td(t.event),s.handleClick(i,a)),Ed(e,n)})(e)),oi(function(e){return t=>{if(!e.isEnabled())return
1874const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3
1875return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t)
1876null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(_p(e,[n]),!1))))}}(e)),function(e){const t=pe()
1877t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!gp(t))return
1878const n=function(e){return!gp(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?function(e){const t=e.data&&e.data.arguments
1879if(!Array.isArray(t)||0===t.length)return Ld(e)
1880let n=!1
1881const r=t.map((e=>{if(!e)return e
1882if("string"==typeof e)return e.length>fu?(n=!0,`${e.slice(0,fu)}…`):e
1883if("object"==typeof e)try{const t=Ka(e,7)
1884return JSON.stringify(t).length>fu?(n=!0,`${JSON.stringify(t,null,2).slice(0,fu)}…`):t}catch(e){}return e}))
1885return Ld({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):Ld(e)}(t)
1886n&&Ed(e,n)}(e,t)))}(e),function(e){const t=pe()
1887try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}
1888t&&t.on("beforeAddBreadcrumb",((e,t)=>
1888function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(function(e,t){const{xhr:n,input:r}=t
1889if(!n)return
1890const o=vp(r),s=n.getResponseHeader("content-length")?bp(n.getResponseHeader("content-length")):function(e,t){try{return vp("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch(e){return}}(n.response,n.responseType)
1891void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}(t,n),async function(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=e.data
1892if(!c)return null
1893if(!a||!Ip(c,n.networkDetailAllowUrls)||Ip(c,n.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:s,url:c,method:u,statusCode:l,request:Ep(d),response:Ep(p)}
1894const f=a[_i],h=f?Cp(f.request_headers,n.networkRequestHeaders):{},m=Cp(function(e){const t=e.getAllResponseHeaders()
1895return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ")
1896return r&&(e[n.toLowerCase()]=r),e}),{}):{}}(a),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?Sp(i):[void 0],[y,v]=n.networkCaptureBodies?function(e){const t=[]
1897try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e]
1898if(e instanceof Document)return[e.body.outerHTML]
1899if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)]
1900if(!e)return[void 0]}catch(t){return _d&&Sd.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return _d&&Sd.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return _d&&Sd.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=xp(h,d,g),S=xp(m,p,y)
1901return{startTimestamp:o,endTimestamp:s,url:c,method:u,statusCode:l,request:_?wp(b,_):b,response:v?wp(S,v):S}}(e,t,n),o=kp("resource.xhr",r)
1902yp(n.replay,o)}catch(e){_d&&Sd.exception(e,"Failed to capture xhr breadcrumb")}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(function(e,t){const{input:n,response:r}=t,o=vp(n?Mp(n):void 0),s=r?bp(r.headers.get("content-length")):void 0
1903void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}(t,n),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=t,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=Ip(i,n.networkDetailAllowUrls)&&!Ip(i,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?(i=t,1===(s=n).length&&"string"!=typeof s[0]?Ap(s[0],i):2===s.length?Ap(s[1],i):{}):{}
1904var s,i
1905if(!e)return xp(o,r,void 0)
1906const a=Mp(n),[c,u]=Sp(a),l=xp(o,r,c)
1907return u?wp(l,u):l}(n,t.input,u):Ep(u),f=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return Ep(o)
1908const s=r?Rp(r.headers,n):{}
1909if(!r||!t&&void 0!==o)return xp(s,o,void 0)
1910const[i,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){_d&&Sd.exception(e,"Failed to clone response body")}}(e)
1911if(!t)return[void 0,"BODY_PARSE_ERROR"]
1912try{const e=await function(e){return new Promise(((t,n)=>{const r=vs((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t)
1913return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(_d&&Sd.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(_d&&Sd.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const s=e&&e.length&&void 0===n?vp(e):n
1914return r?xp(o,s,t?e:void 0):Ep(s)}catch(e){return _d&&Sd.exception(e,"Failed to serialize response body"),xp(o,n,void 0)}}(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:s})
1915return a?wp(c,a):c}(d,n,t.response,l)
1916return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:c,request:p,response:f}}(e,t,n),o=kp("resource.fetch",r)
1917yp(n.replay,o)}catch(e){_d&&Sd.exception(e,"Failed to capture fetch breadcrumb")}}
1917(t,n,e))}catch(e){_d&&Sd.exception(e,"Error when enriching network breadcrumb")}}(a,e,t)))}catch(e){}}(e),At(function(e){return Object.assign(((t,n)=>{if(!e.isEnabled()||e.isPaused())return t
1918if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t
1919if(!fp(t)&&!hp(t)&&!mp(t))return t
1920if(!e.checkAndHandleExpiredSession())return t
1921if(mp(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Ml.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t
1922if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return _d&&Sd.log("Ignoring error from rrweb internals",t),null
1923const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==du&&!(!t.exception||t.type)&&np(e.getOptions().errorSampleRate)}(e,t)
1924return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}(e)),t&&(t.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&fp(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value
1925"string"==typeof n&&(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))&&Ed(e,Ld({category:"replay.hydrate-error",data:{url:qa()}}))}(e,t)}}(e)),t.on("afterSendEvent",function(e){return(t,n)=>{if(!e.isEnabled()||!fp(t)&&!hp(t))return
1926const r=n&&n.statusCode
1927!r||r<200||r>=300||(hp(t)?function(e,t){const n=e.getContext()
1928t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext()
1929if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return
1930const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&vs((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}(e,t))}}(e)),t.on("createDsc",(t=>{const n=e.getSessionId()
1931n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId()
1932n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[]
1933return["navigation","paint","resource"].forEach((e=>{r.push(Qc(e,n))})),r.push(Jc(Bd(Wd,e)),Gc(Bd(Yd,e)),Xc(Bd(Vd,e)),Kc(Bd(Gd,e))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{cu.document.removeEventListener("visibilitychange",this._handleVisibilityChange),cu.removeEventListener("blur",this._handleWindowBlur),cu.removeEventListener("focus",this._handleWindowFocus),cu.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===cu.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ld({category:"ui.blur"})
1934this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ld({category:"ui.focus"})
1935this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return
1936e.updateUserActivity()
1937const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=e
1938if(!i||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.
1938isContentEditable}(i)||!s)return null
1939const a=t||r||o,c=1===s.length
1940if(!a&&c)return null
1941const u=za(i,{maxStringLength:200})||"<unknown>"
1942return Ld({category:"ui.keyDown",message:u,data:{...jd(i,u).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}(t)
1943n&&Ed(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(ap(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):_d&&Sd.info("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Ml.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(Hd).filter(Boolean)).concat(this.replayPerformanceEntries)
1944var t
1945if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3
1946e=e.filter((e=>e.start>=t))}return Promise.all(_p(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this
1947if(!e||!t||this._requiresManualStart)return
1948if(e.segmentId)return
1949const n=t.getEarliestTimestamp()
1950n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls}
1951return this._clearContext(),e}async _runFlush(){const e=this.getSessionId()
1952if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(_p(e,[Np(cu.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer()
1953const t=Date.now()
1954if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay")
1955const n=this._popEventContext(),r=this.session.segmentId++
1956this._maybeSaveSession()
1957const o=await this.eventBuffer.finish()
1958await Pp({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"})
1959const t=pe()
1960if(t){const n=e instanceof Lp?"ratelimit_backoff":"send_error"
1961t.recordDroppedEvent(n,"replay")}}}else _d&&Sd.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return
1962if(!this.checkAndHandleExpiredSession())return void(_d&&Sd.error("Attempting to finish replay event after session expired."))
1963if(!this.session)return
1964const t=this.session.started,n=Date.now()-t
1965this._debouncedFlush.cancel()
1966const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3
1967if(r||o)return _d&&Sd.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush())
1968const s=this.eventBuffer
1969s&&0===this.session.segmentId&&!s.hasCheckout&&_d&&Sd.info("Flushing initial segment without checkout.")
1970const i=!!this._flushLock
1971this._flushLock||(this._flushLock=this._runFlush())
1972try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&op(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n
1973if(t>this._options.mutationBreadcrumbLimit||r){const e=Ld({category:"replay.mutations",data:{count:t,limit:r}})
1974this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function jp(e,t){return[...e,...t].join(",")}const Up='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Bp=["content-length","content-type","accept"]
1975let Hp=!1
1976const zp=e=>new Wp(e)
1977class Wp{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=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:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder"],unmask:w=[],block:k=[],unblock:E=[],ignore:x=[],maskFn:C,beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:M}={}){this.name=Wp.id
1978const R=function({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:jp(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:jp(t,[]),blockSelector:jp(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:jp(r,[]),ignoreSelector:jp(o,[".sentry-ignore","[data-sentry-ignore]",'
1978input[type="file"]'])}}({mask:b,unmask:w,block:k,unblock:E,ignore:x})
1979if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s:s}({maskAttributes:S,maskAllText:c,privacyOptions:R,key:e,value:t,el:n}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:o,useCompression:s,workerUrl:i,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:qp(y),networkResponseHeaders:qp(v),beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:M,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Up}`:Up),this._isInitialized&&ac())throw new Error("Multiple Sentry Session Replay instances are not supported")
1980this._isInitialized=!0}get _isInitialized(){return Hp}set _isInitialized(e){Hp=e}afterAllSetup(e){ac()&&!this._replay&&(this._setup(e),this._initialize(e))}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(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Ga(e)},o=an(n.replaysSessionSampleRate),s=an(n.replaysOnErrorSampleRate)
1981return null==o&&null==s&&Oa((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=o&&(r.sessionSampleRate=o),null!=s&&(r.errorSampleRate=s),r}(this._initialOptions,e)
1982this._replay=new Fp({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas")
1983if(!t)return
1984this._replay._canvas=t.getOptions()}catch(e){}}}function qp(e){return[...Bp,...e.map((e=>e.toLowerCase()))]}function Yp(){const e=pe()
1985return e&&e.getIntegrationByName("Replay")}function Vp(e){let t,n=e[0],r=1
1986for(;r<e.length;){const o=e[r],s=e[r+1]
1987if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return
1988"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}var Gp
1989function Jp(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Jp(e.parentNode,t,n,r+1):-1}function Xp(e,t){return n=>{const r=n
1990if(null===r)return!1
1991try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n]
1992if(t.test(r))return!0}return!1}(r,e))return!0
1993return!(!t||!r.matches(t))}catch(e){return!1}}}Wp.__initStatic(),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Gp||(Gp={}))
1994const Kp="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."
1995let Qp={map:{},getId:()=>(console.error(Kp),-1),getNode:()=>(console.error(Kp),null),removeNodeFromMap(){console.error(Kp)},has:()=>(console.error(Kp),!1),reset(){console.error(Kp)}}
1996function Zp(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t)
1997return o.Object.defineProperty(e,t,r?n:{set(e){sf((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>Zp(e,t,s||{},!0)}function ef(e,t,n){try{if(!(t in e))return()=>{}
1998const r=e[t],o=n(r)
1999return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}function tf(e,t,n,r,o){if(!e)return!1
2000const s=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}(e)
2001if(!s)return!1
2002const i=Jp(s,Xp(t,n))
2003let a=-1
2004return!(i<0)&&(r&&(a=Jp(s,Xp(null,r))),i>-1&&a<0||i<a)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Qp=new Proxy(Qp,{get:(e,t,n)=>("map"===t&&console.error(Kp),Reflect.get(e,t,n))})),/[1-9][0-9]{12}/.test(Date.now().toString())
2005const nf={}
2006function rf(e){const t=nf[e]
2007if(t)return t
2008const n=window.document
2009let r=window[e]
2010if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe")
2011t.hidden=!0,n.head.appendChild(t)
2012const o=t.contentWindow
2013o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return nf[e]=r.bind(window)}function of(...e){return rf("requestAnimationFrame")(...e)}function sf(...e){return rf("setTimeout")(...e)}var af=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(af||{})
2014let cf
2015const uf=e=>cf?(...t)=>{try{return e(...t)}catch(e){if(cf&&!0===cf(e))return()=>{}
2016throw e}}:e
2017for(var lf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",df="undefined"==typeof Uint8Array?[]:new Uint8Array(256),pf=0;pf<64;pf++)df[lf.charCodeAt(pf)]=pf
2018const ff=new Map,hf=(e,t,n)=>{if(!e||!_f(e,t)&&"object"!=typeof e)return
2019const r=function(e,t){let n=ff.get(e)
2020return n||(n=new Map,ff.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name)
2021let o=r.indexOf(e)
2022return-1===o&&(o=r.length,r.push(e)),o}
2023function mf(e,t,n){if(e instanceof Array)return e.map((e=>mf(e,t,n)))
2024if(null===e)return e
2025if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]}
2026if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),r=n.length,o=""
2027for(t=0;t<r;t+=3)o+=lf[n[t]>>2],o+=lf[(3&n[t])<<4|n[t+1]>>4],o+=lf[(15&n[t+1])<<2|n[t+2]>>6],o+=lf[63&n[t+2]]
2028return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e)
2029return{rr_type:t,base64:n}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[mf(e.buffer,t,n),e.byteOffset,e.byteLength]}
2030if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e
2031return{rr_type:t,src:n}}return e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[mf(e.data,t,n),e.width,e.height]}:_f(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:hf(e,t,n)}:e}const gf=(e,t,n)=>e.map((e=>mf(e,t,n))),_f=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]))
2032return Boolean(n.find((n=>e instanceof t[n])))}
2033function yf(e,t,n,r,o){const s=[]
2034try{const i=ef(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(s,...i){if(!tf(this,t,n,r)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(s)
2035if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0]
2036e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[s,...i])}}))
2037s.push(i)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach((e=>e()))}}function vf(e,t,n,r,o,s,i,a){const c=[],u=Object.getOwnPropertyNames(e)
2038for(const l of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if("function"!=typeof e[l])continue
2039const i=ef(e,l,(function(e){return function(...i){const c=e.apply(this,i)
2040if(hf(c,a,this),"tagName"in this.canvas&&!tf(this.canvas,r,o,s)){const e=gf(i,a,this),r={type:t,property:l,args:e}
2041n(this.canvas,r)}return c}}))
2042c.push(i)}catch(r){const o=Zp(e,l,{set(e){n(this.canvas,{type:t,property:l,args:[e],setter:!0})}})
2043c.push(o)}return c}class bf{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,Vp([this,"access",e=>e.worker,"optionalAccess",e=>e.terminate,"call",e=>e()]),this.worker=null,this.snapshotInProgressMap=new Map,(this.options.recordCanvas&&"number"==typeof this.options.sampling||this.options.enableManualSnapshot)&&(this.worker=this.initFPSWorker())}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)}
2044const{sampling:t="all",win:n,blockClass:r,blockSelector:o,unblockSelector:s,maxCanvasSize:i,recordCanvas:a,dataURLOptions:c,errorHandler:u}=e
2045this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,u&&(cf=u),(a&&"number"==typeof t||e.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(n),e.enableManualSnapshot||uf((()=>{a&&"all"===t&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,o,s,i,{dataURLOptions:c})}))()}addWindow(e){const{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:s,enableManualSnapshot:i}=this.options
2046if(!this.windowsSet.has(e)){if(i)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e))
2047uf((()=>{if(s&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),s&&"number"==typeof t){const t=yf(e,n,r,o,!0)
2048this.restoreHandlers.push((()=>{t()}))}}))(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){const e=new Worker(function(){const e=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)}};'])
2049return URL.createObjectURL(e)}())
2050return e.onmessage=e=>{const t=e.data,{id:n}=t
2051if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return
2052const{base64:r,type:o,width:s,height:i}=t
2053this.mutationCb({id:n,type:af["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]}]})},e}initCanvasFPSObserver(e,t,n,r,o,s){const i=this.takeSnapshot(!1,e,t,n,r,o,s.dataURLOptions)
2054this.restoreHandlers.push((()=>{cancelAnimationFrame(i)}))}initCanvasMutationObserver(e,t,n,r){const o=yf(e,t,n,r,!1),s=function(e,t,n,r,o){const s=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype)
2055for(const a of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue
2056const i=ef(t.CanvasRenderingContext2D.prototype,a,(function(s){return function(...i){return tf(this.canvas,n,r,o)||sf((()=>{const n=gf(i,t,this)
2057e(this.canvas,{type:af["2D"],property:a,args:n})}),0),s.apply(this,i)}}))
2058s.push(i)}catch(n){const r=Zp(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:af["2D"],property:a,args:[t],setter:!0})}})
2059s.push(r)}return()=>{s.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r),i=function(e,t,n,r,o,s){const i=[]
2060return i.push(...vf(t.WebGLRenderingContext.prototype,af.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...vf(t.WebGL2RenderingContext.prototype,af.WebGL2,e,n,r,o,0,t)),()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r,this.mirror)
2061this.restoreHandlers.push((()=>{o(),s(),i()}))}snapshot(e){const{options:t}=this,n=this.takeSnapshot(!0,"all"===t.sampling?2:t.sampling||2,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e)
2062this.restoreHandlers.push((()=>{cancelAnimationFrame(n)}))}takeSnapshot(e,t,n,r,o,s,i,a){const c=1e3/t
2063let u,l=0
2064const d=e=>{if(e)return[e]
2065const t=[],s=e=>{e.querySelectorAll("canvas").forEach((e=>{tf(e,n,r,o)||t.push(e)}))}
2066for(const n of this.windows){const e=n.deref()
2067e&&s(e.document)}for(const n of this.shadowDoms){const e=n.deref()
2068e&&s(e)}return t},p=t=>
2068{this.windows.length&&(l&&t-l<c?u=of(p):(l=t,d(a).forEach((t=>{if(!this.mirror.hasNode(t))return
2069const n=this.mirror.getId(t)
2070if(!this.snapshotInProgressMap.get(n)&&t.width&&t.height){if(this.snapshotInProgressMap.set(n,!0),!e&&["webgl","webgl2"].includes(t.__context)){const e=t.getContext(t.__context)
2071!1===Vp([e,"optionalAccess",e=>e.getContextAttributes,"call",e=>e(),"optionalAccess",e=>e.preserveDrawingBuffer])&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then((e=>{Vp([this,"access",e=>e.worker,"optionalAccess",e=>e.postMessage,"call",r=>r({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:i,maxCanvasSize:s},[e])])})).catch((e=>{uf((()=>{throw e}))()}))}})),e||(u=of(p))))}
2072return u=of(p),u}startPendingCanvasMutationFlusher(){of((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,of(e)}
2073of(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t)
2074this.flushPendingCanvasMutationFor(t,n)})),of((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return
2075const n=this.pendingCanvasMutations.get(e)
2076if(!n||-1===t)return
2077const r=n.map((e=>{const{type:t,...n}=e
2078return n})),{type:o}=n[0]
2079this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}const Sf={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}}},wf=1280,kf=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,wf):wf,n?Math.min(n,wf):wf]}
2080let o
2081const s=new Promise((e=>o=e))
2082return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r
2083return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new bf({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch(e){}}})
2084return o(r),r},...Sf[e||"medium"]||Sf.medium}},async snapshot(e){(await s).snapshot(e)}}},Ef="8.37.1",xf=globalThis,Cf=xf
2085function Tf(){try{return Cf.document.location.href}catch(e){return""}}const If="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Mf=["debug","info","warn","error","log","assert","trace"],Rf={},Af=function(e,t,n){const r=xf,o=r.__SENTRY__=r.__SENTRY__||{},s=o[Ef]=o[Ef]||{}
2086return s[e]||(s[e]=function(){let e=!1
2087const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e}
2088return If?Mf.forEach((n=>{t[n]=(...t)=>{e&&function(e){if(!("console"in xf))return e()
2089const t=xf.console,n={},r=Object.keys(Rf)
2090r.forEach((e=>{const r=Rf[e]
2091n[e]=t[e],t[e]=r}))
2092try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}((()=>{xf.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Mf.forEach((e=>{t[e]=()=>{}})),t}())}("logger")
2093const Nf=xf,Of=Nf.document,Df=Nf.navigator,Lf="Report a Bug",Pf="widget",$f=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message")
2094const n=pe()
2095if(!n)throw new Error("No client setup, cannot send feedback.")
2096e.tags&&Object.keys(e.tags).length&&ae().setTags(e.tags)
2097const r=on({source:"api",url:Tf(),...e},t)
2098return new Promise(((e,t)=>{const o=setTimeout((()=>t("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&&e(r),i&&"number"==typeof i.statusCode&&0===i.statusCode?t("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?t("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")}))}))},Ff="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__
2099function jf(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>
2099{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:n=>{t.onSubmitSuccess&&t.onSubmitSuccess(n),e.onSubmitSuccess&&e.onSubmitSuccess(n)},onSubmitError:n=>{t.onSubmitError&&t.onSubmitError(n),e.onSubmitError&&e.onSubmitError(n)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Uf(e,t){return Object.entries(t).forEach((([t,n])=>{e.setAttributeNS(null,t,n)})),e}const Bf="rgba(88, 74, 192, 1)",Hf={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:Bf,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%)"},zf={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:Bf,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%)"}
2100function Wf(e){return`\n  --foreground: ${e.foreground};\n  --background: ${e.background};\n  --accent-foreground: ${e.accentForeground};\n  --accent-background: ${e.accentBackground};\n  --success-color: ${e.successColor};\n  --error-color: ${e.errorColor};\n  --border: ${e.border};\n  --box-shadow: ${e.boxShadow};\n  --outline: ${e.outline};\n  --interactive-filter: ${e.interactiveFilter};\n  `}const qf=({lazyLoadIntegration:e,getModalIntegration:t,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"},tags:p,styleNonce:f,scriptNonce:h,colorScheme:m="system",themeLight:g={},themeDark:_={},addScreenshotButtonLabel:y="Add a screenshot",cancelButtonLabel:v="Cancel",confirmButtonLabel:b="Confirm",emailLabel:S="Email",emailPlaceholder:w="[email protected]",formTitle:k="Report a Bug",isRequiredLabel:E="(required)",messageLabel:x="Description",messagePlaceholder:C="What's the bug? What did you expect?",nameLabel:T="Name",namePlaceholder:I="Your Name",removeScreenshotButtonLabel:M="Remove screenshot",submitButtonLabel:R="Send Bug Report",successMessageText:A="Thank you for your report!",triggerLabel:N=Lf,triggerAriaLabel:O="",onFormOpen:D,onFormClose:L,onSubmitSuccess:P,onSubmitError:$,onFormSubmitted:F}={})=>{const j={id:r,autoInject:o,showBranding:s,isEmailRequired:i,isNameRequired:a,showEmail:c,showName:u,enableScreenshot:l,useSentryUser:d,tags:p,styleNonce:f,scriptNonce:h,colorScheme:m,themeDark:_,themeLight:g,triggerLabel:N,triggerAriaLabel:O,cancelButtonLabel:v,submitButtonLabel:R,confirmButtonLabel:b,formTitle:k,emailLabel:S,emailPlaceholder:w,messageLabel:x,messagePlaceholder:C,nameLabel:T,namePlaceholder:I,successMessageText:A,isRequiredLabel:E,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:M,onFormClose:L,onFormOpen:D,onSubmitError:$,onSubmitSuccess:P,onFormSubmitted:F}
2101let U=null,B=[]
2102const H=e=>{if(!U){const t=Of.createElement("div")
2103t.id=String(e.id),Of.body.appendChild(t),U=t.attachShadow({mode:"open"}),U.appendChild(function({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=Of.createElement("style")
2104return 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"!==e?"color-scheme: only light;":""}\n\n  ${Wf("dark"===e?{...zf,...t}:{...Hf,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    ${Wf({...zf,...t})}\n  }\n}`:""}\n}\n`,r&&o.setAttribute("nonce",r),o}(e))}return U},z=async(t,n,r)=>{const o=pe(),s=o&&o.getIntegrationByName(t)
2105if(s)return s
2106const i=(n&&n()||await e(r,h))()
2107return o&&o.addIntegration(i),i},W=async e=>{const r=e.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Df.userAgent)||/Macintosh/i.test(Df.userAgent)&&Df.maxTouchPoints&&Df.maxTouchPoints>1||!isSecureContext),[o,s]=await Promise.all([z("FeedbackModal",t,"feedbackModalIntegration"),r?z("FeedbackScreenshot",n,"feedbackScreenshotIntegration"):void 0])
2108if(!o)throw Ff&&Af.error("[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")
2109r&&!s&&Ff&&Af.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")
2110const i=o.createDialog({options:{...e,onFormClose:()=>
2110{i&&i.close(),e.onFormClose&&e.onFormClose()},onFormSubmitted:()=>{i&&i.close(),e.onFormSubmitted&&e.onFormSubmitted()}},screenshotIntegration:r?s:void 0,sendFeedback:$f,shadow:H(e)})
2111return i},q=(e,t={})=>{const n=jf(j,t),r="string"==typeof e?Of.querySelector(e):"function"==typeof e.addEventListener?e:null
2112if(!r)throw Ff&&Af.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element")
2113let o=null
2114const s=async()=>{o||(o=await W({...n,onFormSubmitted:()=>{o&&o.removeFromDom(),n.onFormSubmitted&&n.onFormSubmitted()}})),o.appendToDom(),o.open()}
2115r.addEventListener("click",s)
2116const i=()=>{B=B.filter((e=>e!==i)),o&&o.removeFromDom(),o=null,r.removeEventListener("click",s)}
2117return B.push(i),i},Y=(e={})=>{const t=jf(j,e),n=H(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const o=Of.createElement("button")
2118if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||Lf,o.appendChild(function(){const e=e=>Nf.document.createElementNS("http://www.w3.org/2000/svg",e),t=Uf(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=Uf(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Uf(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"})
2119t.appendChild(n).appendChild(r)
2120const o=e("defs"),s=Uf(e("clipPath"),{id:"clip0_57_80"}),i=Uf(e("rect"),{width:"20",height:"20",fill:"white"})
2121return s.appendChild(i),o.appendChild(s),t.appendChild(o).appendChild(s).appendChild(i),t}()),e){const t=Of.createElement("span")
2122t.appendChild(Of.createTextNode(e)),o.appendChild(t)}const s=function(e){const t=Of.createElement("style")
2123return t.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));
2123\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',e&&t.setAttribute("nonce",e),t}(r)
2124return{el:o,appendToDom(){n.appendChild(s),n.appendChild(o)},removeFromDom(){n.removeChild(o),n.removeChild(s)},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:f})
2125return q(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r}
2126return{name:"Feedback",setupOnce(){"undefined"!=typeof window&&("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__||"[object process]"!==Object.prototype.toString.call("undefined"!=typeof process?process:0)||void 0!==xf.process&&"renderer"===xf.process.type)&&j.autoInject&&("loading"===Of.readyState?Of.addEventListener("DOMContentLoaded",(()=>Y().appendToDom())):Y().appendToDom())},attachTo:q,createWidget(e={}){const t=Y(jf(j,e))
2127return t.appendToDom(),t},createForm:async(e={})=>W(jf(j,e)),remove(){U&&(U.parentElement&&U.parentElement.remove(),U=null),B.forEach((e=>e())),B=[]}}}
2128function Yf(){const e=pe()
2129return e&&e.getIntegrationByName("Feedback")}var Vf,Gf,Jf,Xf,Kf,Qf,Zf,eh={},th=[],nh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,rh=Array.isArray
2130function oh(e,t){for(var n in t)e[n]=t[n]
2131return e}function sh(e){var t=e.parentNode
2132t&&t.removeChild(e)}function ih(e,t,n){var r,o,s,i={}
2133for(s in t)"key"==s?r=t[s]:"ref"==s?o=t[s]:i[s]=t[s]
2134if(arguments.length>2&&(i.children=arguments.length>3?Vf.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===i[s]&&(i[s]=e.defaultProps[s])
2135return ah(e,i,r,o,null)}function ah(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++Jf:o,__i:-1,__u:0}
2136return null==o&&null!=Gf.vnode&&Gf.vnode(s),s}function ch(e){return e.children}function uh(e,t){this.props=e,this.context=t}function lh(e,t){if(null==t)return e.__?lh(e.__,e.__i+1):null
2137for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e
2138return"function"==typeof e.type?lh(e):null}function dh(e,t,n){var r,o=e.__v,s=o.__e,i=e.__P
2139if(i)return(r=oh({},o)).__v=o.__v+1,Gf.vnode&&Gf.vnode(r),wh(i,r,o,e.__n,void 0!==i.ownerSVGElement,32&o.__u?[s]:null,t,null==s?lh(o):s,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=s&&ph(r),r}function ph(e){var t,n
2140if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e
2141break}return ph(e)}}function fh(e){(!e.__d&&(e.__d=!0)&&Xf.push(e)&&!hh.__r++||Kf!==Gf.debounceRendering)&&((Kf=Gf.debounceRendering)||Qf)(hh)}function hh(){var e,t,n,r=[],o=[]
2142for(Xf.sort(Zf);e=Xf.shift();)e.__d&&(n=Xf.length,t=dh(e,r,o)||t,0===n||Xf.length>n?(kh(r,t,o),o.length=r.length=0,t=void 0,Xf.sort(Zf)):t&&Gf.__c&&Gf.__c(t,th))
2143t&&kh(r,t,o),hh.__r=0}function mh(e,t,n,r,o,s,i,a,c,u,l){var d,p,f,h,m,g=r&&r.__k||th,_=t.length
2144for(n.__d=c,function(e,t,n){var r,o,s,i,a,c=t.length,u=n.length,l=u,d=0
2145for(e.__k=[],r=0;r<c;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?ah(null,o,null,null,o):rh(o)?ah(ch,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?ah(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=_h(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>
2145c-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==e.__d&&(e.__d=lh(s)),xh(s,s,!1),n[r]=null,l--)
2146if(l)for(r=0;r<u;r++)null!=(s=n[r])&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=lh(s)),xh(s,s))}(n,t,g),c=n.__d,d=0;d<_;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?eh:g[f.__i]||eh,f.__i=d,wh(e,f,p,o,s,i,a,c,u,l),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Eh(p.ref,null,f),l.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?c=gh(f,c,e):"function"==typeof f.type&&void 0!==f.__d?c=f.__d:h&&(c=h.nextSibling),f.__d=void 0,f.__u&=-196609)
2147n.__d=c,n.__e=m}function gh(e,t,n){var r,o
2148if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=gh(r[o],t,n))
2149return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e)
2150do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType)
2151return t}function _h(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,c=t[n]
2152if(null===c||c&&o==c.key&&s===c.type)return n
2153if(r>(null!=c&&0==(131072&c.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&0==(131072&c.__u)&&o==c.key&&s===c.type)return i
2154i--}if(a<t.length){if((c=t[a])&&0==(131072&c.__u)&&o==c.key&&s===c.type)return a
2155a++}}return-1}function yh(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||nh.test(t)?n:n+"px"}function vh(e,t,n,r,o){var s
2156e:if("style"===t)if("string"==typeof n)e.style.cssText=n
2157else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||yh(e.style,t,"")
2158if(n)for(t in n)r&&n[t]===r[t]||yh(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,s?Sh:bh,s)):e.removeEventListener(t,s?Sh:bh,s)
2159else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s")
2160else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n
2161break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function bh(e){if(this.l){var t=this.l[e.type+!1]
2162if(e.t){if(e.t<=t.u)return}else e.t=Date.now()
2163return t(Gf.event?Gf.event(e):e)}}function Sh(e){if(this.l)return this.l[e.type+!0](Gf.event?Gf.event(e):e)}function wh(e,t,n,r,o,s,i,a,c,u){var l,d,p,f,h,m,g,_,y,v,b,S,w,k,E,x=t.type
2164if(void 0!==t.constructor)return null
2165128&n.__u&&(c=!!(32&n.__u),s=[a=t.__e=n.__e]),(l=Gf.__b)&&l(t)
2166e:if("function"==typeof x)try{if(_=t.props,y=(l=x.contextType)&&r[l.__c],v=l?y?y.props.value:l.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(_,v):(t.__c=d=new uh(_,v),d.constructor=x,d.render=Ch),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!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=oh({},d.__s)),oh(d.__s,x.getDerivedStateFromProps(_,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount)
2167else{if(null==x.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,v)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b])
2168d._sb=[],d.__h.length&&i.push(d)
2169break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,v),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,h,m)}))}if(d.context=v,d.props=_,d.__P=e,d.__e=!1,S=Gf.__r,w=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),l=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k])
2170d._sb=[]}else do{d.__d=!1,S&&S(t),l=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25)
2171d.state=d.__s,null!=d.getChildContext&&(r=oh(oh({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),mh(e,rh(E=null!=l&&l.type===ch&&null==l.key?l.props.children:l)?E:[E],t,n,r,o,s,i,a,c,u),d.base=t.__e,t.__u&=-161,d.__h.length&&i.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,c||null!=s?(t.__e=a,t.__u|=c?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),Gf.__e(e,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,s,i,a,c){var u,l,d,p,f,h,m,g=n.props,_=t.props,y=t.type
2172if("svg"===y&&(o=!0),null!=s)for(u=0;
2172u<s.length;u++)if((f=s[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,s[u]=null
2173break}if(null==e){if(null===y)return document.createTextNode(_)
2174e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),s=null,a=!1}if(null===y)g===_||a&&e.data===_||(e.data=_)
2175else{if(s=s&&Vf.call(e.childNodes),g=n.props||eh,!a&&null!=s)for(g={},u=0;u<e.attributes.length;u++)g[(f=e.attributes[u]).name]=f.value
2176for(u in g)f=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=f:"key"===u||u in _||vh(e,u,null,f,o))
2177for(u in _)f=_[u],"children"==u?p=f:"dangerouslySetInnerHTML"==u?l=f:"value"==u?h=f:"checked"==u?m=f:"key"===u||a&&"function"!=typeof f||g[u]===f||vh(e,u,f,g[u],o)
2178if(l)a||d&&(l.__html===d.__html||l.__html===e.innerHTML)||(e.innerHTML=l.__html),t.__k=[]
2179else if(d&&(e.innerHTML=""),mh(e,rh(p)?p:[p],t,n,r,o&&"foreignObject"!==y,s,i,s?s[0]:n.__k&&lh(n,0),a,c),null!=s)for(u=s.length;u--;)null!=s[u]&&sh(s[u])
2180a||(u="value",void 0!==h&&(h!==e[u]||"progress"===y&&!h||"option"===y&&h!==g[u])&&vh(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&vh(e,u,m,g[u],!1))}return e}(n.__e,t,n,r,o,s,i,c,u);(l=Gf.diffed)&&l(t)}function kh(e,t,n){for(var r=0;r<n.length;r++)Eh(n[r],n[++r],n[++r])
2181Gf.__c&&Gf.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Gf.__e(e,t.__v)}}))}function Eh(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Gf.__e(e,n)}}function xh(e,t,n){var r,o
2182if(Gf.unmount&&Gf.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Eh(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Gf.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&xh(r[o],t,n||"function"!=typeof e.type)
2183n||null==e.__e||sh(e.__e),e.__=e.__e=e.__d=void 0}function Ch(e,t,n){return this.constructor(e,n)}Vf=th.slice,Gf={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&null!=s.getDerivedStateFromError&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},Jf=0,uh.prototype.setState=function(e,t){var n
2184n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=oh({},this.state),"function"==typeof e&&(e=e(oh({},n),this.props)),e&&oh(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),fh(this))},uh.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),fh(this))},uh.prototype.render=ch,Xf=[],Qf="function"==typeof Promise?Promise.prototype.then.bind(Prom
2184ise.resolve()):setTimeout,Zf=function(e,t){return e.__v.__b-t.__v.__b},hh.__r=0
2185var Th,Ih,Mh,Rh,Ah=0,Nh=[],Oh=[],Dh=Gf,Lh=Dh.__b,Ph=Dh.__r,$h=Dh.diffed,Fh=Dh.__c,jh=Dh.unmount,Uh=Dh.__
2186function Bh(e,t){Dh.__h&&Dh.__h(Ih,e,Ah||t),Ah=0
2187var n=Ih.__H||(Ih.__H={__:[],__h:[]})
2188return e>=n.__.length&&n.__.push({__V:Oh}),n.__[e]}function Hh(e){return Ah=1,zh(Zh,e)}function zh(e,t,n){var r=Bh(Th++,2)
2189if(r.t=e,!r.__c&&(r.__=[n?n(t):Zh(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e)
2190t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Ih,!Ih.u)){var o=function(e,t,n){if(!r.__c.__H)return!0
2191var o=r.__c.__H.__.filter((function(e){return!!e.__c}))
2192if(o.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n)
2193var i=!1
2194return o.forEach((function(e){if(e.__N){var t=e.__[0]
2195e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&r.__c.props===e)&&(!s||s.call(this,e,t,n))}
2196Ih.u=!0
2197var s=Ih.shouldComponentUpdate,i=Ih.componentWillUpdate
2198Ih.componentWillUpdate=function(e,t,n){if(this.__e){var r=s
2199s=void 0,o(e,t,n),s=r}i&&i.call(this,e,t,n)},Ih.shouldComponentUpdate=o}return r.__N||r.__}function Wh(e,t){var n=Bh(Th++,4)
2200!Dh.__s&&Qh(n.__H,t)&&(n.__=e,n.i=t,Ih.__h.push(n))}function qh(e,t){var n=Bh(Th++,7)
2201return Qh(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Yh(e,t){return Ah=8,qh((function(){return e}),t)}function Vh(){for(var e;e=Nh.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Xh),e.__H.__h.forEach(Kh),e.__H.__h=[]}catch(t){e.__H.__h=[],Dh.__e(t,e.__v)}}Dh.__b=function(e){Ih=null,Lh&&Lh(e)},Dh.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Uh&&Uh(e,t)},Dh.__r=function(e){Ph&&Ph(e),Th=0
2202var t=(Ih=e.__c).__H
2203t&&(Mh===Ih?(t.__h=[],Ih.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Oh,e.__N=e.i=void 0}))):(t.__h.forEach(Xh),t.__h.forEach(Kh),t.__h=[],Th=0)),Mh=Ih},Dh.diffed=function(e){$h&&$h(e)
2204var t=e.__c
2205t&&t.__H&&(t.__H.__h.length&&(1!==Nh.push(t)&&Rh===Dh.requestAnimationFrame||((Rh=Dh.requestAnimationFrame)||Jh)(Vh)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Oh&&(e.__=e.__V),e.i=void 0,e.__V=Oh}))),Mh=Ih=null},Dh.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Xh),e.__h=e.__h.filter((function(e){return!e.__||Kh(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Dh.__e(n,e.__v)}})),Fh&&Fh(e,t)},Dh.unmount=function(e){jh&&jh(e)
2206var t,n=e.__c
2207n&&n.__H&&(n.__H.__.forEach((function(e){try{Xh(e)}catch(e){t=e}})),n.__H=void 0,t&&Dh.__e(t,n.__v))}
2208var Gh="function"==typeof requestAnimationFrame
2209function Jh(e){var t,n=function(){clearTimeout(r),Gh&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100)
2210Gh&&(t=requestAnimationFrame(n))}function Xh(e){var t=Ih,n=e.__c
2211"function"==typeof n&&(e.__c=void 0,n()),Ih=t}function Kh(e){var t=Ih
2212e.__c=e.__(),Ih=t}function Qh(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Zh(e,t){return"function"==typeof t?t(e):t}const em={__proto__:null,useCallback:Yh,useContext:function(e){var t=Ih.context[e.__c],n=Bh(Th++,9)
2213return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Ih)),t.props.value):e.__},useDebugValue:function(e,t){Dh.useDebugValue&&Dh.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=Bh(Th++,3)
2214!Dh.__s&&Qh(n.__H,t)&&(n.__=e,n.i=t,Ih.__H.__h.push(n))},useErrorBoundary:function(e){var t=Bh(Th++,10),n=Hh()
2215return t.__=e,Ih.componentDidCatch||(Ih.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=Bh(Th++,11)
2216if(!e.__){for(var t=Ih.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__
2217var n=t.__m||(t.__m=[0,0])
2218e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){Ah=6,Wh((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useLayoutEffect:Wh,useMemo:qh,useReducer:zh,useRef:function(e){return Ah=5,qh((function(){return{current:e}}),[])},useState:Hh},tm="http://www.w3.org/2000/svg"
2219function nm(){const e=e=>Of.createElementNS(tm,e),t=Uf(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Uf(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"})
2220return t.appendChild(n),t}const rm="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src
2220/modal/components/DialogHeader.tsx"
2221function om({options:e}){const t=qh((()=>({__html:nm().outerHTML})),[])
2222return ih("h2",{class:"dialog__header",__self:this,__source:{fileName:rm,lineNumber:16}},e.formTitle,e.showBranding?ih("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:rm,lineNumber:19}}):null)}const sm="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx"
2223function im(e,t){const n=e.get(t)
2224return"string"==typeof n?n.trim():""}function am({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:s,onSubmitError:i,showEmail:a,showName:c,screenshotInput:u}){const{tags:l,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:_,messageLabel:y,messagePlaceholder:v,nameLabel:b,namePlaceholder:S,submitButtonLabel:w,isRequiredLabel:k}=e,[E,x]=Hh(null),[C,T]=Hh(!1),I=u&&u.input,[M,R]=Hh(null),A=Yh((e=>{R(e),T(!1)}),[]),N=Yh((e=>{const t=function(e,t){const n=[]
2225return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:h,isEmailRequired:g,isNameRequired:_,messageLabel:y,nameLabel:b})
2226return t.length>0?x(`Please enter in the following required fields: ${t.join(", ")}`):x(null),0===t.length}),[h,g,_,y,b]),O=Yh((async e=>{try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return
2227const t=new FormData(e.target),n=await(u&&C?u.value():void 0),r={name:im(t,"name"),email:im(t,"email"),message:im(t,"message"),attachments:n?[n]:void 0}
2228if(!N(r))return
2229try{await o({name:r.name,email:r.email,message:r.message,source:Pf,tags:l},{attachments:r.attachments}),s(r)}catch(e){Ff&&Af.error(e),x(e),i(e)}}catch(e){}}),[u&&C,s,i])
2230return ih("form",{class:"form",onSubmit:O,__self:this,__source:{fileName:sm,lineNumber:144}},I&&C?ih(I,{onError:A,__self:this,__source:{fileName:sm,lineNumber:146}}):null,ih("div",{class:"form__right","data-sentry-feedback":!0,__self:this,__source:{fileName:sm,lineNumber:149}},ih("div",{class:"form__top",__self:this,__source:{fileName:sm,lineNumber:150}},E?ih("div",{class:"form__error-container",__self:this,__source:{fileName:sm,lineNumber:151}},E):null,c?ih("label",{for:"name",class:"form__label",__self:this,__source:{fileName:sm,lineNumber:154}},ih(cm,{label:b,isRequiredLabel:k,isRequired:_,__self:this,__source:{fileName:sm,lineNumber:155}}),ih("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:_,type:"text",__self:this,__source:{fileName:sm,lineNumber:156}})):ih("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden",__self:this,__source:{fileName:sm,lineNumber:167}}),a?ih("label",{for:"email",class:"form__label",__self:this,__source:{fileName:sm,lineNumber:171}},ih(cm,{label:h,isRequiredLabel:k,isRequired:g,__self:this,__source:{fileName:sm,lineNumber:172}}),ih("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email",__self:this,__source:{fileName:sm,lineNumber:173}})):ih("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:sm,lineNumber:184}}),ih("label",{for:"message",class:"form__label",__self:this,__source:{fileName:sm,lineNumber:187}},ih(cm,{label:y,isRequiredLabel:k,isRequired:!0,__self:this,__source:{fileName:sm,lineNumber:188}}),ih("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5,__self:this,__source:{fileName:sm,lineNumber:189}})),I?ih("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:sm,lineNumber:201}},ih("button",{class:"btn btn--default",type:"button",onClick:()=>{R(null),T((e=>!e))},__self:this,__source:{fileName:sm,lineNumber:202}},C?p:d),M?ih("div",{class:"form__error-container",__self:this,__source:{fileName:sm,lineNumber:212}},M.message):null):null),ih("div",{class:"btn-group",__self:this,__source:{fileName:sm,lineNumber:216}},ih("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:sm,lineNumber:217}},w),ih("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:sm,lineNumber:220}},f))))}function cm({label:e,isRequired:t,isRequiredLabel:n}){return ih("span",{class:"form__label__text",__self:this,__source:{fileName:sm,lineNumber:239}},e,t&&ih("span",{class:"form__label__text--required",__self:this,__source:{fileName:sm,lineNumber:241}},n))}const um=16,lm=17,dm="http://www.w3.org/2000/svg"
2231function pm(){const e=e=>Nf.document.createElementNS(dm,e),t=Uf(e("svg"),{width:`${um}`,height:`${lm}`,viewBox:`0 0 ${um} ${lm}`,fill:"inherit"}),n=Uf(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Uf(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Uf(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
223110.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"})
2232t.appendChild(n).append(o,r)
2233const s=e("defs"),i=Uf(e("clipPath"),{id:"clip0_57_156"}),a=Uf(e("rect"),{width:`${um}`,height:`${um}`,fill:"white",transform:"translate(0 0.5)"})
2234return i.appendChild(a),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(a),t}const fm="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx"
2235function hm({open:e,onFormSubmitted:t,...n}){const r=n.options,o=qh((()=>({__html:pm().outerHTML})),[]),[s,i]=Hh(null),a=Yh((()=>{s&&(clearTimeout(s),i(null)),t()}),[s]),c=Yh((e=>{n.onSubmitSuccess(e),i(setTimeout((()=>{t(),i(null)}),5e3))}),[t])
2236return ih(ch,{__self:this,__source:{fileName:fm,lineNumber:48}},s?ih("div",{class:"success__position",onClick:a,__self:this,__source:{fileName:fm,lineNumber:50}},ih("div",{class:"success__content",__self:this,__source:{fileName:fm,lineNumber:51}},r.successMessageText,ih("span",{class:"success__icon",dangerouslySetInnerHTML:o,__self:this,__source:{fileName:fm,lineNumber:53}}))):ih("dialog",{class:"dialog",onClick:r.onFormClose,open:e,__self:this,__source:{fileName:fm,lineNumber:57}},ih("div",{class:"dialog__position",__self:this,__source:{fileName:fm,lineNumber:58}},ih("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()},__self:this,__source:{fileName:fm,lineNumber:59}},ih(om,{options:r,__self:this,__source:{fileName:fm,lineNumber:66}}),ih(am,{...n,onSubmitSuccess:c,__self:this,__source:{fileName:fm,lineNumber:67}})))))}const mm=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const o=r,s=e.useSentryUser,i=function(){const e=ae().getUser(),t=ce().getUser(),n=ue().getUser()
2237return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),a=Of.createElement("div"),c=function(e){const t=Of.createElement("style")
2238return t.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));
2238\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.dialog__header {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\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__right {\n  flex: 0 0 auto;\n  width: var(--form-width, 272px);\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n}\n\n@media (max-width: 600px) {\n  .form__right {\n    width: var(--form-width, 100%);\n  }\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%);
2238\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",e&&t.setAttribute("nonce",e),t}(e.styleNonce)
2239let u=""
2240const 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),Of.body.style.overflow=u},open(){p(!0),e.onFormOpen&&e.onFormOpen(),u=Of.body.style.overflow,Of.body.style.overflow="hidden"},close(){p(!1),Of.body.style.overflow=u}},d=t&&t.createInput({h:ih,hooks:em,dialog:l,options:e}),p=t=>{!function(e,t,n){var r,o,s
2241Gf.__&&Gf.__(e,t),r=!1?null:t.__k,o=[],s=[],wh(t,e=t.__k=ih(ch,null,[e]),r||eh,eh,void 0!==t.ownerSVGElement,r?null:t.firstChild?Vf.call(t.childNodes):null,o,r?r.__e:t.firstChild,false,s),e.__d=void 0,kh(o,e,s)}(ih(hm,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:s&&i&&i[s.name]||"",defaultEmail:s&&i&&i[s.email]||"",onFormClose:()=>{p(!1),e.onFormClose&&e.onFormClose()},onSubmit:n,onSubmitSuccess:t=>{p(!1),e.onSubmitSuccess&&e.onSubmitSuccess(t)},onSubmitError:t=>{e.onSubmitError&&e.onSubmitError(t)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:t,__self:void 0,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx",lineNumber:67}}),a)}
2242return l}})
2243function gm(e){const t=Of.createElement("style"),n="#1A141F",r="#302735"
2244return t.textContent=`\n.editor {\n  padding: 10px;\n  padding-top: 65px;\n  padding-bottom: 65px;\n  flex-grow: 1;\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__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: relative;\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-primary-background, var(--background));\n  width: 175px;\n  position: absolute;\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`,e&&t.setAttribute("nonce",e),t}const _m="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx",ym=33,vm=Nf.devicePixelRatio,bm=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),Sm=e=>{const t=e.clientHeight,n=e.clientWidth,r=e.width/e.height
2245let o=t*r,s=t
2246o>n&&(o=n,s=n/r)
2247const i=(n-o)/2,a=(t-s)/2
2248return{startX:i,startY:a,endX:o+i,endY:s+a}}
2249function wm({h:e,hooks:t,imageBuffer:n,dialog:r,options:o}){const s=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:o}){e.useEffect((()=>{(async()=>{t()
2250const e=await Df.mediaDevices.getDisplayMedia({video:{width:Nf.innerWidth*Nf.devicePixelRatio,height:Nf.innerHeight*Nf.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=Of.createElement("video")
2251await new Promise(((t,r)=>{o.srcObject=e,o.onloadedmetadata=()=>
2251{n(o),e.getTracks().forEach((e=>e.stop())),t()},o.play().catch(r)})),r()})().catch(o)}),[])}}({hooks:t})
2252return function({onError:i}){const a=t.useMemo((()=>({__html:gm(o.styleNonce).innerText})),[]),c=function({h:e}){return function({top:t,left:n,corner:r,onGrabButton:o}){return e("button",{class:`editor__crop-corner editor__crop-corner--${r} `,style:{top:t,left:n},onMouseDown:e=>{e.preventDefault(),o(e,r)},onClick:e=>{e.preventDefault()},__self:this,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx",lineNumber:22}})}}({h:e}),u=t.useRef(null),l=t.useRef(null),d=t.useRef(null),[p,f]=t.useState({startX:0,startY:0,endX:0,endY:0}),[h,m]=t.useState(!1),[g,_]=t.useState(!1)
2253function y(){const e=d.current,t=bm(Sm(n))
2254if(e){e.width=t.width*vm,e.height=t.height*vm,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`
2255const n=e.getContext("2d")
2256n&&n.scale(vm,vm)}const r=l.current
2257r&&(r.style.width=`${t.width}px`,r.style.height=`${t.height}px`),f({startX:0,startY:0,endX:t.width,endY:t.height})}function v(e,t){m(!1),_(!0)
2258const n=b(t),r=()=>{Of.removeEventListener("mousemove",n),Of.removeEventListener("mouseup",r),m(!0),_(!1)}
2259Of.addEventListener("mouseup",r),Of.addEventListener("mousemove",n)}t.useEffect((()=>{Nf.addEventListener("resize",y,!1)}),[]),t.useEffect((()=>{const e=d.current
2260if(!e)return
2261const t=e.getContext("2d")
2262if(!t)return
2263const r=bm(Sm(n)),o=bm(p)
2264t.clearRect(0,0,r.width,r.height),t.fillStyle="rgba(0, 0, 0, 0.5)",t.fillRect(0,0,r.width,r.height),t.clearRect(o.x,o.y,o.width,o.height),t.strokeStyle="#ffffff",t.lineWidth=3,t.strokeRect(o.x+1,o.y+1,o.width-2,o.height-2),t.strokeStyle="#000000",t.lineWidth=1,t.strokeRect(o.x+3,o.y+3,o.width-6,o.height-6)}),[p])
2265const b=t.useCallback((e=>function(t){if(!d.current)return
2266const n=d.current,r=n.getBoundingClientRect(),o=t.clientX-r.x,s=t.clientY-r.y
2267switch(e){case"top-left":f((e=>({...e,startX:Math.min(Math.max(0,o),e.endX-ym),startY:Math.min(Math.max(0,s),e.endY-ym)})))
2268break
2269case"top-right":f((e=>({...e,endX:Math.max(Math.min(o,n.width/vm),e.startX+ym),startY:Math.min(Math.max(0,s),e.endY-ym)})))
2270break
2271case"bottom-left":f((e=>({...e,startX:Math.min(Math.max(0,o),e.endX-ym),endY:Math.max(Math.min(s,n.height/vm),e.startY+ym)})))
2272break
2273case"bottom-right":f((e=>({...e,endX:Math.max(Math.min(o,n.width/vm),e.startX+ym),endY:Math.max(Math.min(s,n.height/vm),e.startY+ym)})))}}),[]),S=t.useRef({initialX:0,initialY:0})
2274return s({onBeforeScreenshot:t.useCallback((()=>{r.el.style.display="none"}),[]),onScreenshot:t.useCallback((e=>{const t=n.getContext("2d")
2275if(!t)throw new Error("Could not get canvas context")
2276n.width=e.videoWidth,n.height=e.videoHeight,n.style.width="100%",n.style.height="100%",t.drawImage(e,0,0)}),[n]),onAfterScreenshot:t.useCallback((()=>{r.el.style.display="block"
2277const e=u.current
2278e&&e.appendChild(n),y()}),[]),onError:t.useCallback((e=>{r.el.style.display="block",i(e)}),[])}),e("div",{class:"editor",__self:this,__source:{fileName:_m,lineNumber:315}},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:a,__self:this,__source:{fileName:_m,lineNumber:316}}),e("div",{class:"editor__canvas-container",ref:u,__self:this,__source:{fileName:_m,lineNumber:317}},e("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:l,__self:this,__source:{fileName:_m,lineNumber:318}},e("canvas",{onMouseDown:function(e){if(g)return
2279S.current={initialX:e.clientX,initialY:e.clientY}
2280const t=e=>{const t=d.current
2281if(!t)return
2282const n=e.clientX-S.current.initialX,r=e.clientY-S.current.initialY
2283f((o=>{const s=Math.max(0,Math.min(o.startX+n,t.width/vm-(o.endX-o.startX))),i=Math.max(0,Math.min(o.startY+r,t.height/vm-(o.endY-o.startY))),a=s+(o.endX-o.startX),c=i+(o.endY-o.startY)
2284return S.current.initialX=e.clientX,S.current.initialY=e.clientY,{startX:s,startY:i,endX:a,endY:c}}))},n=()=>{Of.removeEventListener("mousemove",t),Of.removeEventListener("mouseup",n)}
2285Of.addEventListener("mousemove",t),Of.addEventListener("mouseup",n)},style:{position:"absolute",cursor:h?"move":"auto"},ref:d,__self:this,__source:{fileName:_m,lineNumber:319}}),e(c,{left:p.startX-3,top:p.startY-3,onGrabButton:v,corner:"top-left",__self:this,__source:{fileName:_m,lineNumber:324}}),e(c,{left:p.endX-30+3,top:p.startY-3,onGrabButton:v,corner:"top-right",__self:this,__source:{fileName:_m,lineNumber:330}}),e(c,{left:p.startX-3,top:p.endY-30+3,onGrabButton:v,corner:"bottom-left",__self:this,__source:{fileName:_m,lineNumber:336}}),e(c,{left:p.endX-30+3,top:p.endY-30+3,onGrabButton:v,corner:"bottom-right",__self:this,__source:{fileName:_m,lineNumber:342}}),e("div",{style:{left:Math.max(0,p.endX-191),top:Math.max(0,p.endY+8),display:h?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:_m,lineNumber:348}},e("button",{onClick:e=>{e.preventDefault(),d.current&&f({startX:0,startY:0,endX:d.current.width/vm,endY:d.current.height/vm}),m(!1)},class:"btn btn--default",__self:this,__source:{fileName:_m,lineNumber:356}},o.cancelButtonLabel),e("button",{onClick:e=>{e.preventDefault(),function(){const e=Of.createElement("canvas"),t=bm(Sm(n)),r=bm(p)
2286e.width=r.width*vm,e.height=r.height*vm
2287const o=e.getContext("2d")
2288o&&n&&o.drawImage(n,r.x/t.width*n.width,r.y/t.height*n.height,r.width/t.width*n.width,r.height/t.height*n.height,0,0,e.width,e.height)
2289const s=n.getContext("2d")
2290s&&(s.clearRect(0,0,n.width,n.height),n.width=e.width,n.height=e.height,n.style.width=`${r.width}px`,n.style.height=`${r.height}px`,s.drawImage(e,0,0),y())}(),m(!1)},class:"btn btn--primary",__self:this,__source:{fileName:_m,lineNumber:373}},o.confirmButtonLabel)))))}}const km=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=Of.createElement("canvas")
2291return{input:wm({h:e,hooks:t,imageBuffer:o,dialog:n,options:r}),value:async()=>{const e=await new Promise((e=>
2291{o.toBlob(e,"image/png")}))
2292if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),Em=qf({lazyLoadIntegration:pa}),xm=qf({lazyLoadIntegration:pa,getModalIntegration:()=>mm,getScreenshotIntegration:()=>km})
2293function Cm(e,t){const n=w("globalMetricsAggregators",(()=>new WeakMap)),r=n.get(e)
2294if(r)return r
2295const o=new t(e)
2296return e.on("flush",(()=>o.flush())),e.on("close",(()=>o.close())),n.set(e,o),o}function Tm(e,t,n,r,o={}){const s=o.client||pe()
2297if(!s)return
2298const i=at(),a=i?it(i):void 0,c=a&&Ze(a).description,{unit:u,tags:l,timestamp:d}=o,{release:p,environment:f}=s.getOptions(),h={}
2299p&&(h.release=p),f&&(h.environment=f),c&&(h.transaction=c),ge&&R.log(`Adding value of ${r} to ${t} metric ${n}`),Cm(s,e).add(t,n,r,u,{...h,...l},d)}function Im(e,t,n,r){Tm(e,"d",t,Rm(n),r)}const Mm={increment:function(e,t,n=1,r){Tm(e,"c",t,Rm(n),r)},distribution:Im,set:function(e,t,n,r){Tm(e,"s",t,n,r)},gauge:function(e,t,n,r){Tm(e,"g",t,Rm(n),r)},timing:function(e,t,n,r="second",o){if("function"==typeof n){const r=q()
2300return Ln({op:"metrics.timing",name:t,startTime:r,onlyIfParent:!0},(s=>sn((()=>n()),(()=>{}),(()=>{const n=q()
2301Im(e,t,n-r,{...o,unit:"second"}),s.end(n)}))))}Im(e,t,n,{...o,unit:r})},getMetricsAggregatorForClient:Cm}
2302function Rm(e){return"string"==typeof e?parseInt(e):e}function Am(e){return e.replace(/[^\w\-./]+/gi,"")}const Nm=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]]
2303function Om(e){return[...e].reduce(((e,t)=>e+function(e){for(const[t,n]of Nm)if(e===t)return n
2304return e}(t)),"")}const Dm={c:class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},g:class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},d:class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},s:class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map((e=>"string"==typeof e?function(e){let t=0
2305for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t
2306return t>>>0}(e):e)).join(":")}}}
2307class Lm{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval((()=>this.flush()),5e3)}add(e,t,n,r="none",o={},s=q()){const i=Math.floor(s),a=t.replace(/[^\w\-.]+/gi,"_"),c=function(e){const t={}
2308for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[Am(n)]=Om(String(e[n])))
2309return t}(o),u=function(e){return e.replace(/[^\w]+/gi,"_")}(r),l=function(e,t,n,r){const o=Object.entries(D(r)).sort(((e,t)=>e[0].localeCompare(t[0])))
2310return`${e}${t}${n}${o}`}(e,a,u,c)
2311let d=this._buckets.get(l)
2312const p=d&&"s"===e?d.metric.weight:0
2313d?(d.metric.add(n),d.timestamp<i&&(d.timestamp=i)):(d={metric:new Dm[e](n),timestamp:i,metricType:e,name:a,unit:u,tags:c},this._buckets.set(l,d)),function(e,t,n,r,o,s){const i=at()
2314i&&function(e,t,n,r,o,s,i){const a=e[Ue]||(e[Ue]=new Map),c=`${t}:${n}@${o}`,u=a.get(i)
2315if(u){const[,e]=u
2316a.set(i,[c,{min:Math.min(e.min,r),max:Math.max(e.max,r),count:e.count+=1,sum:e.sum+=r,tags:e.tags}])}else a.set(i,[c,{min:r,max:r,count:1,sum:r,tags:s}])}(i,e,t,n,r,o,s)}(e,a,"string"==typeof n?d.metric.weight-p:n,u,o,l)}flush(){if(0===this._buckets.size)return
2317const e=Array.from(this._buckets.values());(function(e,t){R.log(`Flushing aggregated metrics, number of metrics: ${t.length}`)
2318const n=function(e,t,n,r){const o={sent_at:(new Date).toISOString()}
2319n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=ln(t))
2320const s=function(e){const t=function(e){let t=""
2321for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:""
2322t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e)
2323return[{type:"statsd",length:t.length},t]}(e)
2324return hn(o,[s])}(t,e.getDsn(),e.getSdkMetadata(),e.getOptions().tunnel)
2325e.sendEnvelope(n)})(this._client,e),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}}const Pm={increment:function(e,t=1,n){Mm.increment(Lm,e,t,n)},distribution:function(e,t,n){Mm.distribution(Lm,e,t,n)},set:function(e,t,n){Mm.set(Lm,e,t,n)},gauge:function(e,t,n){Mm.gauge(Lm,e,t,n)},timing:function(e,t,n="second",r){return Mm.timing(Lm,e,t,n,r)}}
2326function $m(e){return e.split(",").filter((e=>!e.split("=")[0].startsWith(Ae))).join(",")}const Fm="baggage",jm="sentry-",Um=/^sentry-/,Bm=8192
2327function Hm(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const zm=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$")
2328const Wm=new WeakMap,qm=new Map,Ym={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1}
2329function Vm(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:s,enableHTTPTimings:c,tracePropagationTargets:u}={traceFetch:Ym.traceFetch,traceXHR:Ym.traceXHR,trackFetchStreamPerformance:Ym.trackFetchStreamPerformance,...t},l="function"==typeof s?s:e=>!0,d=e=>function(e,t){const n=So.location&&So.location.href
2330if(n){let r,o
2331try{r=new URL(e,n),o=new URL(n).origin}catch(e){return!1}const s=r.origin===o
2332return t?ao(r.toString(),t)||s&&ao(r.pathname,t):s}{const n=!!e.match(/^\/(?!\/)/)
2333return t?ao(e,t):n}}(e,u),p={}
2334n&&(e.addEventProcessor((e=>("transaction"===e.type&&e.spans&&e.spans.forEach((e=>{if("http.client"===e.op){const t=qm.get(e.span_id)
2335t&&(e.timestamp=t/1e3,qm.delete(e.span_id))}})),e))),o&&function(e){const t="fetch-body-resolved"
2336wi(t,(e=>{if(e.response){const t=Wm.get(e.response)
2337t&&e.endTimestamp&&qm.set(t,e.endTimestamp)}})),ki(t,(()=>Ai(Ni)))}(),Ri((e=>{const t=function(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return
2338const s=$e()&&t(e.fetchData.url)
2339if(e.endTimestamp&&s){const t=e.fetchData.__span
2340if(!t)return
2341const n=r[t]
2342return void(n&&(function(e,t){if(t.response){Ye(e,t.response.status)
2343const n=t.response&&t.response.headers&&t.response.headers.get("content-length")
2344if(n){const t=parseInt(n)
2345t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:We,message:"internal_error"})
2346e.end()}(n,e),delete r[t]))}const c=ae(),u=pe(),{method:l,url:d}=e.fetchData,p=function(e){try{return new URL(e).href}catch(e){return}}(d),f=p?function(e){if(!e)return{}
2347const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/)
2348if(!t)return{}
2349const n=t[6]||"",r=t[8]||""
2350return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}(p).host:void 0,h=!!at(),m=s&&h?Pn({name:`${l} ${d}`,attributes:{url:d,type:"fetch","http.method":l,"http.url":p,"server.address":f,[a]:o,[i]:"http.client"}}):new cn
2351if(e.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(e.fetchData.url)&&u){const t=e.args[0]
2352e.args[1]=e.args[1]||{}
2353const n=e.args[1]
2354n.headers=function(e,t,n,r,o){const s=ce(),{traceId:i,spanId:a,sampled:c,dsc:u}={...s.getPropagationContext(),...n.getPropagationContext()},l=o?Xe(o):je(i,a,c),d=Le(u||(o?dt(o):lt(i,t))),p=r.headers||("undefined"!=typeof Request&&v(e,Request)?e.headers:void 0)
2355if(p){if("undefined"!=typeof Headers&&v(p,Headers)){const e=new Headers(p)
2356if(e.set("sentry-trace",l),d){const t=e.get(Re)
2357if(t){const n=$m(t)
2358e.set(Re,n?`${n},${d}`:d)}else e.set(Re,d)}return e}if(Array.isArray(p)){const e=[...p.filter((e=>!(Array.isArray(e)&&"sentry-trace"===e[0]))).map((e=>{if(Array.isArray(e)&&e[0]===Re&&"string"==typeof e[1]){const[t,n,...r]=e
2359return[t,$m(n),...r]}return e})),["sentry-trace",l]]
2360return d&&e.push([Re,d]),e}{const e="baggage"in p?p.baggage:void 0
2361let t=[]
2362return Array.isArray(e)?t=e.map((e=>"string"==typeof e?$m(e):e)).filter((e=>""===e)):e&&t.push($m(e)),d&&t.push(d),{...p,"sentry-trace":l,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":l,baggage:d}}(t,u,c,n,$e()&&h?m:void 0)}return m}(e,l,d,p)
2363if(e.response&&e.fetchData.__span&&Wm.set(e.response,e.fetchData.__span),t){const n=Xm(e.fetchData.url),r=n?$i(n).host:void 0
2364t.setAttributes({"http.url":n,"server.address":r})}c&&t&&Gm(t)}))),r&&yi((e=>{const t=function(e,t,n,r){const o=e.xhr,s=o&&o[_i]
2365if(!o||o.__sentry_own_request__||!s)return
2366const c=$e()&&t(s.url)
2367if(e.endTimestamp&&c){const e=o.__sentry_xhr_span_id__
2368if(!e)return
2369const t=r[e]
2370return void(t&&void 0!==s.status_code&&(Ye(t,s.status_code),t.end(),delete r[e]))}const u=Xm(s.url),l=u?$i(u).host:void 0,d=!!at(),p=c&&d?Pn({name:`${s.method} ${s.url}`,attributes:{type:"xhr","http.method":s.method,"http.url":u,url:s.url,"server.address":l,[a]:"auto.http.browser",[i]:"http.client"}}):new cn
2371o.__sentry_xhr_span_id__=p.spanContext().spanId,r[o.__sentry_xhr_span_id__]=p
2372const f=pe()
2373return o.setRequestHeader&&n(s.url)&&f&&function(e,t,n){const r=ae(),o=ce(),{traceId:s,spanId:i,sampled:a,dsc:c}={...o.getPropagationContext(),...r.getPropagationContext()},u=n&&$e()?Xe(n):function(e=go(),t=go().substring(16),n){let r=""
2374return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}(s,i,a)
2375!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Fm,n)}catch(e){}}(e,u,function(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],r)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?o:`${e},${o}`
2376return s.length>Bm?(Zr&&ro.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${jm}${t}`]=n),e)),{}))}(c||(n?dt(n):lt(s,t))))}(o,f,$e()&&d?p:void 0),p}(e,l,d,p)
2377c&&t&&Gm(t)}))}function Gm(e){const{url:t}=Ze(e).data||{}
2378if(!t||"string"!=typeof t)return
2379const n=Qc("resource",(({entries:r})=>{r.forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r=""
2380for(const o of e){if("/"===o){[t,n]=e.split("/")
2381break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1]
2382break}r+=o}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[]
2383return r.push(["network.protocol.version",n],["network.protocol.name",t]),Mi?[...r,["http.request.redirect_start",Jm(e.redirectStart)],["http.request.fetch_start",Jm(e.fetchStart)],["http.request.domain_lookup_start",Jm(e.domainLookupStart)],["http.request.domain_lookup_end",Jm(e.domainLookupEnd)],["http.request.connect_start",Jm(e.connectStart)],["http.request.secure_connection_start",Jm(e.secureConnectionStart)],["http.request.connection_end",Jm(e.connectEnd)],["http.request.request_start",Jm(e.requestStart)],["http.request.response_start",Jm(e.responseStart)],["http.request.response_end",Jm(e.responseEnd)]]:r}(r).forEach((t=>e.setAttribute(...t))),setTimeout(n))}))}))}function Jm(e=0){return((Mi||performance.timeOrigin)+e)/1e3}function Xm(e){try{return new URL(e,So.location.origin).href}catch(e){return}}const Km=ls,Qm=80
2384function Zm(e,t={}){if(!e)return"<unknown>"
2385try{let n=e
2386const r=5,o=[]
2387let s=0,i=0
2388const a=" > ",c=a.length
2389let u
2390const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Qm
2391for(;n&&s++<r&&(u=eg(n,l),!("html"===u||s>1&&i+o.length*c+u.length>=d));)o.push(u),i+=u.length,n=n.parentNode
2392return o.reverse().join(a)}catch(e){return"<unknown>"}}function eg(e,t){const n=e,r=[]
2393if(!n||!n.tagName)return""
2394if(Km.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent
2395if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase())
2396const o=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null
2397if(o&&o.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}))
2398else{n.id&&r.push(`#${n.id}`)
2399const e=n.className
2400if(e&&Qs(e)){const t=e.split(/\s+/)
2401for(const e of t)r.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"]
2402for(const i of s){const e=n.getAttribute(i)
2403e&&r.push(`[${i}="${e}"]`)}return r.join("")}function tg(e){if(!Km.HTMLElement)return null
2404let t=e
2405for(let n=0;n<5;n++){if(!t)return null
2406if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent
2407if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function ng(e){let t,n=e[0],r=1
2408for(;r<e.length;){const o=e[r],s=e[r+1]
2409if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return
2410"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function rg(e){return"number"==typeof e&&isFinite(e)}function og(e,t,n,{...r}){const o=Ze(e).start_timestamp
2411return o&&o>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),Fn(e,(()=>{const e=Pn({startTime:t,...r})
2412return e&&e.end(n),e}))}function sg(e){const t=pe()
2413if(!t)return
2414const{name:n,transaction:r,attributes:o,startTime:s}=e,{release:i,environment:a}=t.getOptions(),c=t.getIntegrationByName("Replay"),u=c&&c.getReplayId(),l=ae(),d=l.getUser(),p=void 0!==d?d.email||d.id||d.ip_address:void 0
2415let f
2416try{f=l.getScopeData().contexts.profile.profile_id}catch(e){}return Pn({name:n,attributes:{release:i,environment:a,user:p||void 0,profile_id:f||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":ms.navigator&&ms.navigator.userAgent,...o},startTime:s,experimental:{standalone:!0}})}function ig(){return ms&&ms.addEventListener&&ms.performance}function ag(e){return e/1e3}let cg,ug,lg=0,dg={}
2417function pg(e,t,n,r,o,s){const i=s?t[s]:t[`${n}End`],c=t[`${n}Start`]
2418c&&i&&og(e,r+ag(c),r+ag(i),{op:`browser.${o||n}`,name:t.name,attributes:{[a]:"auto.ui.browser.metrics"}})}function fg(e,t,n,r){const o=t[n]
2419null!=o&&o<2147483647&&(e[r]=o)}const hg=[],mg=new Map,gg={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"},_g={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3}
2420function yg(e,t={}){const n=new Map
2421let r,o=!1,s="externalFinish",i=!t.disableAutoFinish
2422const a=[],{idleTimeout:u=_g.idleTimeout,finalTimeout:l=_g.finalTimeout,childSpanTimeout:d=_g.childSpanTimeout,beforeSpanEnd:p}=t,f=pe()
2423if(!f||!$e())return new cn
2424const h=ae(),m=at(),g=function(e){const t=Pn(e)
2425return J(ae(),t),ge&&R.log("[Tracing] Started span is an idle span"),t}(e)
2426function _(){r&&(clearTimeout(r),r=void 0)}function y(e){_(),r=setTimeout((()=>{!o&&0===n.size&&i&&(s="idleTimeout",g.end(e))}),u)}function v(e){r=setTimeout((()=>{!o&&i&&(s="heartbeatFailed",g.end(e))}),d)}function b(e){o=!0,n.clear(),a.forEach((e=>e())),J(h,m)
2427const t=Ze(g),{start_timestamp:r}=t
2428if(!r)return;(t.data||{})[c]||g.setAttribute(c,s),R.log(`[Tracing] Idle span "${t.op}" finished`)
2429const i=st(g).filter((e=>e!==g))
2430let d=0
2431i.forEach((t=>{t.isRecording()&&(t.setStatus({code:We,message:"cancelled"}),t.end(e),ge&&R.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)))
2432const n=Ze(t),{timestamp:r=0,start_timestamp:o=0}=n,s=o<=e,i=r-o<=(l+u)/1e3
2433if(ge){const e=JSON.stringify(t,void 0,2)
2434s?i||R.log("[Tracing] Discarding span since it finished after idle span final timeout",e):R.log("[Tracing] Discarding span since it happened after idle span was finished",e)}i&&s||(function(e,t){e[nt]&&e[nt].delete(t)}(g,t),d++)})),d>0&&g.setAttribute("sentry.idle_span_discarded_spans",d)}return g.end=new Proxy(g.end,{apply(e,t,n){p&&p(g)
2435const[r,...o]=n,s=Ke(r||q()),i=st(g).filter((e=>e!==g))
2436if(!i.length)return b(s),Reflect.apply(e,t,[s,...o])
2437const a=i.map((e=>Ze(e).timestamp)).filter((e=>!!e)),c=a.length?Math.max(...a):void 0,u=Ze(g).start_timestamp,d=Math.min(u?u+l/1e3:1/0,Math.max(u||-1/0,Math.min(s,c||1/0)))
2438return b(d),Reflect.apply(e,t,[d,...o])}}),a.push(f.on("spanStart",(e=>{var t
2439o||e===g||Ze(e).timestamp||st(g).includes(e)&&(t=e.spanContext().spanId,_(),n.set(t,!0),v(q()+d/1e3))}))),a.push(f.on("spanEnd",(e=>{var t
2440o||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&y(q()+u/1e3))}))),a.push(f.on("idleSpanEnableAutoFinish",(e=>{e===g&&(i=!0,y(),n.size&&v())}))),t.disableAutoFinish||y(),setTimeout((()=>{o||(g.setStatus({code:We,message:"deadline_exceeded"}),s="finalTimeout",g.end())}),l),g}function vg(){return{traceId:go(),spanId:go().substring(16)}}const bg={..._g,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
2440dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Ym},Sg=(e={})=>{Kt()
2441const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:s,enableStandaloneClsSpans:p},beforeStartSpan:f,idleTimeout:h,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:_,traceFetch:y,traceXHR:v,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:S,enableHTTPTimings:w,instrumentPageLoad:k,instrumentNavigation:E}={...bg,...e},x=function({recordClsStandaloneSpans:e}){const t=ig()
2442if(t&&gi){t.mark&&ms.performance.mark("sentry-tracing-init")
2443const n=Xc((({metric:e})=>{const t=e.entries[e.entries.length-1]
2444if(!t)return
2445const n=ag(gi),r=ag(t.startTime)
2446hs&&fs.log("[Measurements] Adding FID"),dg.fid={value:e.value,unit:"millisecond"},dg["mark.fid"]={value:n+r,unit:"second"}})),r=Jc((({metric:e})=>{const t=e.entries[e.entries.length-1]
2447t&&(hs&&fs.log("[Measurements] Adding LCP"),dg.lcp={value:e.value,unit:"millisecond"},cg=t)}),!0),o=su("ttfb",(({metric:e})=>{e.entries[e.entries.length-1]&&(hs&&fs.log("[Measurements] Adding TTFB"),dg.ttfb={value:e.value,unit:"millisecond"})}),ru,Yc),s=e?function(){let e,t,n=0
2448if(!function(){try{return ng([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}())return
2449let r=!1
2450function o(){r||(r=!0,t&&function(e,t,n){hs&&fs.log(`Sending CLS span (${e})`)
2451const r=ag((gi||0)+(ng([t,"optionalAccess",e=>e.startTime])||0)),o=ae().getScopeData().transactionName,s=sg({name:t?Zm(ng([t,"access",e=>e.sources,"access",e=>e[0],"optionalAccess",e=>e.node])):"Layout shift",transaction:o,attributes:ti({[a]:"auto.http.browser.cls",[i]:"ui.webvital.cls",[d]:ng([t,"optionalAccess",e=>e.duration])||0,"sentry.pageload.span_id":n}),startTime:r})
2452ng([s,"optionalAccess",e=>e.addEvent,"call",t=>t("cls",{[u]:"",[l]:e})]),ng([s,"optionalAccess",e=>e.end,"call",e=>e(r)])}(n,e,t),s())}const s=Gc((({metric:t})=>{const r=t.entries[t.entries.length-1]
2453r&&(n=t.value,e=r)}),!0)
2454fc((()=>{o()})),setTimeout((()=>{const e=ng([pe(),"optionalAccess",e=>e.on,"call",t=>t("startNavigationSpan",(()=>{o(),e&&e()}))]),n=at(),r=n&&it(n),s=r&&Ze(r)
2455s&&"pageload"===s.op&&(t=r.spanContext().spanId)}),0)}():Gc((({metric:e})=>{const t=e.entries[e.entries.length-1]
2456t&&(hs&&fs.log(`[Measurements] Adding CLS ${e.value}`),dg.cls={value:e.value,unit:""},ug=t)}),!0)
2457return()=>{n(),r(),o(),s&&s()}}return()=>{}}({recordClsStandaloneSpans:p||!1})
2458t&&function(){if(ig()&&gi){const e=Kc((({metric:e})=>{if(null==e.value)return
2459const t=e.entries.find((t=>t.duration===e.value&&gg[t.name]))
2460if(!t)return
2461const{interactionId:n}=t,r=gg[t.name],o=ag(gi+t.startTime),s=ag(e.value),c=at(),p=c?it(c):void 0,f=(null!=n?mg.get(n):void 0)||p,h=f?Ze(f).description:ae().getScopeData().transactionName,m=sg({name:Zm(t.target),transaction:h,attributes:ti({[a]:"auto.http.browser.inp",[i]:`ui.interaction.${r}`,[d]:t.duration}),startTime:o})
2462ng([m,"optionalAccess",e=>e.addEvent,"call",t=>t("inp",{[u]:"millisecond",[l]:e.value})]),ng([m,"optionalAccess",e=>e.end,"call",e=>e(o+s)])}))}}(),r&&Pr.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver((e=>{if(at())for(const t of e.getEntries()){if(!t.scripts[0])continue
2463const e=ag(gi+t.startTime),n=ag(t.duration),r={[a]:"auto.ui.browser.metrics"},o=t.scripts[0],{invoker:s,invokerType:i,sourceURL:c,sourceFunctionName:u,sourceCharPosition:l}=o
2464r["browser.script.invoker"]=s,r["browser.script.invoker_type"]=i,c&&(r["code.filepath"]=c),u&&(r["code.function"]=u),-1!==l&&(r["browser.script.source_char_position"]=l)
2465const d=Pn({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:r})
2466d&&d.end(e+n)}})).observe({type:"long-animation-frame",buffered:!0}):n&&Qc("longtask",(({entries:e})=>{const t=at()
2467if(!t)return
2468const{op:n,start_timestamp:r}=Ze(t)
2469for(const o of e){const e=ag(gi+o.startTime),s=ag(o.duration)
2470"navigation"===n&&r&&e<r||og(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[a]:"auto.ui.browser.metrics"}})}})),s&&Qc("event",(({entries:e})=>
2470{if(at())for(const t of e)if("click"===t.name){const e=ag(gi+t.startTime),n=ag(t.duration),r={name:Zm(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[a]:"auto.ui.browser.metrics"}},o=tg(t.target)
2471o&&(r.attributes["ui.component_name"]=o)
2472const s=Pn(r)
2473s&&s.end(e+n)}}))
2474const C={name:void 0,source:void 0}
2475function T(e,t){const n="pageload"===t.op,r=f?f(t):t,s=r.attributes||{}
2476t.name!==r.name&&(s[o]="custom",r.attributes=s),C.name=r.name,C.source=s[o]
2477const i=yg(r,{idleTimeout:h,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:n,beforeSpanEnd:e=>{x(),function(e,t){const n=ig()
2478if(!n||!ms.performance.getEntries||!gi)return
2479hs&&fs.log("[Tracing] Adding & adjusting spans using Performance API")
2480const r=ag(gi),o=n.getEntries(),{op:s,start_timestamp:i}=Ze(e)
2481if(o.slice(lg).forEach((t=>{const n=ag(t.startTime),o=ag(Math.max(0,t.duration))
2482if(!("navigation"===s&&i&&r+n<i))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{pg(e,t,r,n)})),pg(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),pg(e,t,"fetch",n,"cache","domainLookupStart"),pg(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+ag(t.requestStart),o=n+ag(t.responseEnd),s=n+ag(t.responseStart)
2483t.responseEnd&&(og(e,r,o,{op:"browser.request",name:t.name,attributes:{[a]:"auto.ui.browser.metrics"}}),og(e,s,o,{op:"browser.response",name:t.name,attributes:{[a]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,r)
2484break
2485case"mark":case"paint":case"measure":{!function(e,t,n,r,o){const s=uc(),i=ag(s?s.requestStart:0),c=o+Math.max(n,i),u=o+n,l=u+r,d={[a]:"auto.resource.browser.metrics"}
2486c!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=c),og(e,c,l,{name:t.name,op:t.entryType,attributes:d})}(e,t,n,o,r)
2487const s=_c(),i=t.startTime<s.firstHiddenTime
2488"first-paint"===t.name&&i&&(hs&&fs.log("[Measurements] Adding FP"),dg.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&i&&(hs&&fs.log("[Measurements] Adding FCP"),dg.fcp={value:t.startTime,unit:"millisecond"})
2489break}case"resource":!function(e,t,n,r,o,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return
2490const i=function(e){if(!e)return{}
2491const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/)
2492if(!t)return{}
2493const n=t[6]||"",r=t[8]||""
2494return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}(n),c={[a]:"auto.resource.browser.metrics"}
2495fg(c,t,"transferSize","http.response_transfer_size"),fg(c,t,"encodedBodySize","http.response_content_length"),fg(c,t,"decodedBodySize","http.decoded_response_content_length"),null!=t.deliveryType&&(c["http.response_delivery_type"]=t.deliveryType),"renderBlockingStatus"in t&&(c["resource.render_blocking_status"]=t.renderBlockingStatus),i.protocol&&(c["url.scheme"]=i.protocol.split(":").pop()),i.host&&(c["server.address"]=i.host),c["url.same_origin"]=n.includes(ms.location.origin)
2496const u=s+r
2497og(e,u,u+o,{name:n.replace(ms.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:c})}(e,t,t.name,n,o,r)}})),lg=Math.max(o.length-1,0),function(e){const t=ms.navigator
2498if(!t)return
2499const n=t.connection
2500n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),rg(n.rtt)&&(dg["connection.rtt"]={value:n.rtt,unit:"millisecond"})),rg(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),rg(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s){!function(e){const t=uc()
2501if(!t)return
2502const{responseStart:n,requestStart:r}=t
2503r<=n&&(hs&&fs.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(dg)
2504const n=dg["mark.fid"]
2505n&&dg.fid&&(og(e,n.value,n.value+ag(dg.fid.value),{name:"first input delay",op:"ui.action",attributes:{[a]:"auto.ui.browser.metrics"}}),delete dg["mark.fid"]),"fcp"in dg&&t.recordClsOnPageloadSpan||delete dg.cls,Object.entries(dg).forEach((([e,t])=>{xn(e,t.value,t.unit)})),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",lc()),function(e){cg&&(hs&&fs.log("[Measurements] Adding LCP Data"),cg.element&&e.setAttribute("lcp.element",Zm(cg.element)),cg.id&&e.setAttribute("lcp.id",cg.id),cg.url&&e.setAttribute("lcp.url",cg.url.trim().slice(0,200)),e.setAttribute("lcp.size",cg.size)),ug&&ug.sources&&(hs&&fs.log("[Measurements] Adding CLS Data"),ug.sources.forEac
2505h(((t,n)=>e.setAttribute(`cls.source.${n+1}`,Zm(t.node)))))}(e)}cg=void 0,ug=void 0,dg={}}(e,{recordClsOnPageloadSpan:!p})}})
2506function c(){["interactive","complete"].includes(So.document.readyState)&&e.emit("idleSpanEnableAutoFinish",i)}return n&&So.document&&(So.document.addEventListener("readystatechange",(()=>{c()})),c()),i}return{name:"BrowserTracing",afterAllSetup(e){let n,r=So.location&&So.location.href
2507e.on("startNavigationSpan",(t=>{pe()===e&&(n&&!Ze(n).timestamp&&(Mo&&ro.log(`[Tracing] Finishing current root span with op: ${Ze(n).op}`),n.end()),n=T(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,r={})=>{if(pe()!==e)return
2508n&&!Ze(n).timestamp&&(Mo&&ro.log(`[Tracing] Finishing current root span with op: ${Ze(n).op}`),n.end())
2509const o=function(e,t){const n=function(e){if(!e)return
2510const t=e.match(zm)
2511if(!t)return
2512let n
2513return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),r=function(e){const t=function(e){if(e&&(Hr(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Hm(t)
2514return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Hm(e)}(e)
2515if(!t)return
2516const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Um)&&(e[t.slice(jm.length)]=n),e)),{})
2517return Object.keys(n).length>0?n:void 0}(t),{traceId:o,parentSpanId:s,parentSampled:i}=n||{}
2518return n?{traceId:o||go(),parentSpanId:s||go().substring(16),spanId:go().substring(16),sampled:i,dsc:r||{}}:{traceId:o||go(),spanId:go().substring(16)}}(r.sentryTrace||Eg("sentry-trace"),r.baggage||Eg("baggage"))
2519ae().setPropagationContext(o),n=T(e,{op:"pageload",...t})})),e.on("spanEnd",(e=>{const t=Ze(e).op
2520if(e!==it(e)||"navigation"!==t&&"pageload"!==t)return
2521const n=ae(),r=n.getPropagationContext()
2522n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:et(e),dsc:r.dsc||dt(e)})})),So.location&&(k&&wg(e,{name:So.location.pathname,startTime:Mi?Mi/1e3:void 0,attributes:{[o]:"url",[a]:"auto.pageload.browser"}}),E&&oi((({to:t,from:n})=>{void 0===n&&r&&-1!==r.indexOf(t)?r=void 0:n!==t&&(r=void 0,kg(e,{name:So.location.pathname,attributes:{[o]:"url",[a]:"auto.navigation.browser"}}))}))),_&&(So&&So.document?So.document.addEventListener("visibilitychange",(()=>{const e=at()
2523if(!e)return
2524const t=it(e)
2525if(So.document.hidden&&t){const e="cancelled",{op:n,status:r}=Ze(t)
2526Mo&&ro.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:We,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):Mo&&ro.warn("[Tracing] Could not set up background tab detection due to lack of global document")),s&&function(e,t,n,r){let s
2527So.document&&addEventListener("click",(()=>{const i="ui.action.click",a=at(),u=a&&it(a)
2528if(u){const e=Ze(u).op
2529if(["navigation","pageload"].includes(e))return void(Mo&&ro.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`))}s&&(s.setAttribute(c,"interactionInterrupted"),s.end(),s=void 0),r.name?s=yg({name:r.name,op:i,attributes:{[o]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n}):Mo&&ro.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`)}),{once:!1,capture:!0})}(h,m,g,C),t&&function(e){const t=({entries:e})=>{const t=at(),n=t&&it(t)
2530e.forEach((e=>{if(!function(e){return"duration"in e}(e)||!n)return
2531const t=e.interactionId
2532if(null!=t&&!mg.has(t)){if(hg.length>10){const e=hg.shift()
2533mg.delete(e)}hg.push(t),mg.set(t,n)}}))}
2534Qc("event",t),Qc("first-input",t)}(),Vm(e,{traceFetch:y,traceXHR:v,trackFetchStreamPerformance:b,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:S,enableHTTPTimings:w})}}}
2535function wg(e,t,n){e.emit("startPageLoadSpan",t,n),ae().setTransactionName(t.name)
2536const r=at()
2537return"pageload"===(r&&Ze(r).op)?r:void 0}function kg(e,t){ce().setPropagationContext(vg()),ae().setPropagationContext(vg()),e.emit("startNavigationSpan",t),ae().setTransactionName(t.name)
2538const n=at()
2539return"navigation"===(n&&Ze(n).op)?n:void 0}function Eg(e){const t=(n=`meta[name=${e}]`,Jr.document&&Jr.document.querySelector?Jr.document.querySelector(n):null)
2540var n
2541return t?t.getAttribute("content"):void 0}const xg=100,Cg=5e3,Tg=36e5
2542function Ig(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function Mg(e){return Ig(e.getAllKeys())}function Rg(e){let t
2543function n(){return null==t&&(t=function(e,t){const n=indexedDB.open(e)
2544n.onupgradeneeded=()=>n.result.createObjectStore(t)
2545const r=Ig(n)
2546return e=>r.then((n=>e(n.transaction(t,"readwrite").objectStore(t))))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const r=await ss(t)
2547await function(e,t,n){return e((e=>Mg(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),Ig(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(e){}},unshift:async t=>{try{const r=await ss(t)
2548await function(e,t,n){return e((e=>Mg(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),Ig(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(e){}},shift:async()=>{try{const e=await function(e){return e((e=>Mg(e).then((t=>{const n=t[0]
2549if(null!=n)return Ig(e.get(n)).then((t=>(e.delete(n),Ig(e.transaction).then((()=>t)))))}))))}(n())
2550if(e)return function(e){let t="string"==typeof e?os(e):e
2551function n(e){const n=t.subarray(0,e)
2552return t=t.subarray(e+1),n}function r(){let e=t.indexOf(10)
2553return e<0&&(e=t.length),JSON.parse((r=n(e),Pr.__SENTRY__&&Pr.__SENTRY__.decodePolyfill?Pr.__SENTRY__.decodePolyfill(r):(new TextDecoder).decode(r)))
2554var r}const o=r(),s=[]
2555for(;t.length;){const e=r(),t="number"==typeof e.length?e.length:void 0
2556s.push([e,t?n(t):r()])}return[o,s]}(e)}catch(e){}}}}function Ag(e=bs){return function(e){return t=>e({...t,createStore:Rg})}(function(e){function t(...e){ge&&R.info("[Offline]:",...e)}return n=>{const r=e(n)
2557if(!n.createStore)throw new Error("No `createStore` function was provided")
2558const o=n.createStore(n)
2559let s,i=Cg
2560function a(e){s&&clearTimeout(s),s=setTimeout((async()=>{s=void 0
2561const e=await o.shift()
2562e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),u(e,!0).catch((e=>{t("Failed to retry sending",e)})))}),e),"number"!=typeof s&&s.unref&&s.unref()}function c(){s||(a(i),i=Math.min(2*i,Tg))}async function u(e,s=!1){if(!s&&_n(e,["replay_event","replay_recording"]))return await o.push(e),a(xg),{}
2563try{const t=await r.send(e)
2564let n=xg
2565if(t)if(t.headers&&t.headers["retry-after"])n=Jn(t.headers["retry-after"])
2566else if(t.headers&&t.headers["x-sentry-rate-limits"])n=6e4
2567else if((t.statusCode||0)>=400)return t
2568return a(n),i=Cg,t}catch(r){if(await function(e,t,r){return!_n(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,t,r))}(e,r,i))return s?await o.unshift(e):await o.push(e),c(),t("Error sending. Event queued.",r),{}
2569throw r}}return n.flushAtStartup&&c(),{send:u,flush:e=>r.flush(e)}}}(e))}const Ng=1e6,Og=String(0),Dg="main"
2570let Lg="",Pg="",$g="",Fg=So.navigator&&So.navigator.userAgent||"",jg=""
2571const Ug=So.navigator&&So.navigator.language||So.navigator&&So.navigator.languages&&So.navigator.languages[0]||"",Bg=So.navigator&&So.navigator.userAgentData
2572var Hg
2573function zg(e){return"pageload"===Ze(e).op}"object"==typeof(Hg=Bg)&&null!==Hg&&"getHighEntropyValues"in Hg&&Bg.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{if(Lg=e.platform||"",$g=e.architecture||"",jg=e.model||"",Pg=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1]
2574Fg=`${t.brand} ${t.version}`}})).catch((e=>{}))
2575const Wg=new WeakMap
2576function qg(e){const t=Pr._sentryDebugIds
2577if(!t)return[]
2578const n=pe(),r=n&&n.getOptions(),o=r&&r.stackParser
2579if(!o)return[]
2580let s
2581const i=Wg.get(o)
2582i?s=i:(s=new Map,Wg.set(o,s))
2583const a=Object.keys(t).reduce(((e,n)=>{let r
2584const i=s.get(n)
2585i?r=i:(r=o(n),s.set(n,r))
2586for(let o=r.length-1;o>=0;o--){const s=r[o],i=s&&s.filename
2587if(s&&i){e[i]=t[n]
2588break}}return e}),{}),c=[]
2589for(const u of e)u&&a[u]&&c.push({type:"sourcemap",code_file:u,debug_id:a[u]})
2590return c}let Yg=!1
2591function Vg(e){if(Yg)return Mo&&ro.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1
2592if(!e.isRecording())return Mo&&ro.log("[Profiling] Discarding profile because transaction was not sampled."),!1
2593const t=pe(),n=t&&t.getOptions()
2594if(!n)return Mo&&ro.log("[Profiling] Profiling disabled, no options found."),!1
2595const r=n.profilesSampleRate
2596return("number"!=typeof(o=r)&&"boolean"!=typeof o||"number"==typeof o&&isNaN(o)?(Mo&&ro.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),0):!0===o||!1===o||!(o<0||o>1)||(Mo&&ro.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${o}.`),0))?r?!!(!0===r||Math.random()<r)||(Mo&&ro.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(Mo&&ro.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(Mo&&ro.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)
2597var o}function Gg(e,t,n,r){return function(e){return e.samples.length<2?(Mo&&ro.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(Mo&&ro.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?function(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.")
2598if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`)
2599const o=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id
2600return"string"==typeof t&&32!==t.length&&Mo&&ro.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(r),s=function(e){return!("thread_metadata"in e)}(c=n)?function(e){let t,n=0
2601const r={samples:[],stacks:[],frames:[],thread_metadata:{[Og]:{name:Dg}}},o=e.samples[0]
2602if(!o)return r
2603const s=o.timestamp,i="number"==typeof performance.timeOrigin?performance.timeOrigin:Mi||0,a=i-(Mi||i)
2604return e.samples.forEach(((o,i)=>{if(void 0===o.stackId)return void 0===t&&(t=n,r.stacks[t]=[],n++),void(r.samples[i]={elapsed_since_start_ns:((o.timestamp+a-s)*Ng).toFixed(0),stack_id:t,thread_id:Og})
2605let c=e.stacks[o.stackId]
2606const u=[]
2607for(;c;){u.push(c.frameId)
2608const t=e.frames[c.frameId]
2609t&&void 0===r.frames[c.frameId]&&(r.frames[c.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),c=void 0===c.parentId?void 0:e.stacks[c.parentId]}const l={elapsed_since_start_ns:((o.timestamp+a-s)*Ng).toFixed(0),stack_id:n,thread_id:Og}
2610r.stacks[n]=u,r.samples[i]=l,n++})),r}(c):c,i=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*Ti()),a="number"==typeof r.timestamp?1e3*r.timestamp:1e3*Ti()
2611var c
2612return{event_id:e,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||me,runtime:{name:"javascript",version:So.navigator.userAgent},os:{name:Lg,version:Pg,build_number:Fg},device:{locale:Ug,model:jg,manufacturer:Fg,architecture:$g,is_emulator:!1},debug_meta:{images:qg(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||go(),trace_id:o,active_thread_id:Og,relative_start_ns:"0",relative_end_ns:(1e6*(a-i)).toFixed(0)}]}}(e,t,n,r):null}const Jg=new Map
2613function Xg(e){const t=Jg.get(e)
2614return t&&Jg.delete(e),t}function Kg(e){let t
2615zg(e)&&(t=1e3*Ti())
2616const n=function(){const e=So.Profiler
2617if("function"!=typeof e)return void(Mo&&ro.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."))
2618const t=Math.floor(3e3)
2619try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){Mo&&(ro.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),ro.log("[Profiling] Disabling profiling for current user session.")),Yg=!0}}()
2620if(!n)return
2621Mo&&ro.log(`[Profiling] started profiling span: ${Ze(e).description}`)
2622const r=go()
2623async function o(){if(e&&n)return n.stop().then((t=>
2623{s&&(So.clearTimeout(s),s=void 0),Mo&&ro.log(`[Profiling] stopped profiling of span: ${Ze(e).description}`),t?function(e,t){if(Jg.set(e,t),Jg.size>30){const e=Jg.keys().next().value
2624Jg.delete(e)}}(r,t):Mo&&ro.log(`[Profiling] profiler returned null profile for: ${Ze(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")})).catch((e=>{Mo&&ro.log("[Profiling] error while stopping profiler:",e)}))}ae().setContext("profile",{profile_id:r,start_timestamp:t})
2625let s=So.setTimeout((()=>{Mo&&ro.log("[Profiling] max profile duration elapsed, stopping profiling for:",Ze(e).description),o()}),3e4)
2626const i=e.end.bind(e)
2627e.end=function(){return e?(o().then((()=>{i()}),(()=>{i()})),e):i()}}const Qg=()=>({name:"BrowserProfiling",setup(e){const t=at(),n=t&&it(t)
2628n&&zg(n)&&Vg(n)&&Kg(n),e.on("spanStart",(e=>{e===it(e)&&Vg(e)&&Kg(e)})),e.on("beforeEnvelope",(e=>{if(!Jg.size)return
2629const t=function(e){const t=[]
2630return function(e,t){const n=e[1]
2631for(const r of n)if(t(r,r[0].type))return!0}(e,((e,n)=>{if("transaction"===n)for(let r=1;r<e.length;r++){const n=e[r]
2632n&&n.contexts&&n.contexts.profile&&n.contexts.profile.profile_id&&t.push(e[r])}})),t}(e)
2633if(!t.length)return
2634const n=[]
2635for(const r of t){const e=r&&r.contexts,t=e&&e.profile&&e.profile.profile_id,o=e&&e.profile&&e.profile.start_timestamp
2636if("string"!=typeof t){Mo&&ro.log("[Profiling] cannot find profile for a span without a profile context")
2637continue}if(!t){Mo&&ro.log("[Profiling] cannot find profile for a span without a profile context")
2638continue}e&&e.profile&&delete e.profile
2639const s=Xg(t)
2640if(!s){Mo&&ro.log(`[Profiling] Could not retrieve profile for span: ${t}`)
2641continue}const i=Gg(t,o,s,r)
2642i&&n.push(i)}!function(e,t){if(!t.length)return e
2643for(const n of t)e[1].push([{type:"profile"},n])}(e,n)}))}})}}])
2644
2645//# sourceMappingURL=chunk.7634.13fbf9e38a360148d348.map

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