PageSourceSearch

https://www.consumeraffairs.com/static/js/sentry-replay.98f8d83b19236742284a.js

js consumeraffairs.com collected 2026-10-01 06:42:15 UTC 272,703 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_consumeraffairs_ca_styleguide=self.webpackChunk_consumeraffairs_ca_styleguide||[]).push([[5334],{4181:(e,t,n)=>{n.r(t),n.d(t,{BrowserClient:()=>hr.y,OpenFeatureIntegrationHook:()=>xd,SDK_VERSION:()=>Xe.M,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>St.uT,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>St.JD,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>St.sy,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>St.i_,Scope:()=>ar.H,WINDOW:()=>Ze.jf,addBreadcrumb:()=>vn.Z,addEventProcessor:()=>ft.SA,addIntegration:()=>c.Q8,breadcrumbsIntegration:()=>Sr.F,browserApiErrorsIntegration:()=>Cr.G,browserProfilingIntegration:()=>bd,browserSessionIntegration:()=>kd.p,browserTracingIntegration:()=>Du,buildLaunchDarklyFlagUsedHandler:()=>Td,captureConsoleIntegration:()=>vt,captureEvent:()=>ft.r,captureException:()=>ft.Cp,captureFeedback:()=>i,captureMessage:()=>ft.wd,captureSession:()=>ft.J5,chromeStackLineParser:()=>mr.Yj,close:()=>ft.VN,consoleLoggingIntegration:()=>Ct,contextLinesIntegration:()=>jr,continueTrace:()=>Xt,createTransport:()=>cr.o,createUserFeedbackEnvelope:()=>yr,dedupeIntegration:()=>lr.s,defaultRequestInstrumentationOptions:()=>au,defaultStackLineParsers:()=>mr.c9,defaultStackParser:()=>mr.lG,diagnoseSdkConnectivity:()=>Rd,endSession:()=>ft.ky,eventFiltersIntegration:()=>ur.A,eventFromException:()=>gr.u,eventFromMessage:()=>gr.qv,exceptionFromError:()=>gr.K8,extraErrorDataIntegration:()=>ln,featureFlagsIntegration:()=>gn,feedbackAsyncIntegration:()=>nt,feedbackIntegration:()=>rt,feedbackSyncIntegration:()=>rt,flush:()=>ft.bX,forceLoad:()=>_r.w7,functionToStringIntegration:()=>dr.Z,geckoStackLineParser:()=>mr.dY,getActiveSpan:()=>Dt.Bk,getClient:()=>s.KU,getCurrentScope:()=>s.o5,getDefaultIntegrations:()=>_r.nI,getFeedback:()=>x,getGlobalScope:()=>s.m6,getIsolationScope:()=>s.rm,getReplay:()=>fl,getRootSpan:()=>Dt.zU,getSpanDescendants:()=>Dt.xO,getSpanStatusFromHttpCode:()=>Yt.AJ,getTraceData:()=>_n,globalHandlersIntegration:()=>kr.L,graphqlClientIntegration:()=>Xr,httpClientIntegration:()=>Dr,httpContextIntegration:()=>wr.M,inboundFiltersIntegration:()=>ur.D,init:()=>_r.Ts,instrumentOutgoingRequests:()=>cu,instrumentSupabaseClient:()=>Rn,isEnabled:()=>ft.Ol,isInitialized:()=>ft.Dp,lastEventId:()=>ft.Q,launchDarklyIntegration:()=>wd,lazyLoadIntegration:()=>tt,linkedErrorsIntegration:()=>Tr.p,logger:()=>r,makeBrowserOfflineTransport:()=>Vu,makeFetchTransport:()=>fr._,makeMultiplexedTransport:()=>Pn,moduleMetadataIntegration:()=>Hn,onLoad:()=>_r.kF,openFeatureIntegration:()=>Cd,opera10StackLineParser:()=>mr.Q_,opera11StackLineParser:()=>mr.Vv,parameterize:()=>st,registerSpanErrorInstrumentation:()=>Yn,registerWebWorker:()=>Od,replayCanvasIntegration:()=>Yl,replayIntegration:()=>dl,reportingObserverIntegration:()=>Mr,rewriteFramesIntegration:()=>Zn,sendFeedback:()=>g,setContext:()=>ft.o,setCurrentClient:()=>pr.B,setExtra:()=>ft.l7,setExtras:()=>ft.cx,setHttpStatus:()=>Yt.N8,setMeasurement:()=>Bt,setTag:()=>ft.NA,setTags:()=>ft.Wt,setUser:()=>ft.gV,showReportDialog:()=>br,spanToBaggageHeader:()=>Pt.HW,spanToJSON:()=>Dt.et,spanToTraceHeader:()=>Dt.Qh,spotlightBrowserIntegration:()=>Sd,startBrowserTracingNavigationSpan:()=>Pu,startBrowserTracingPageLoadSpan:()=>Nu,startInactiveSpan:()=>Gt,startNewTrace:()=>en,startSession:()=>ft.J0,startSpan:()=>Jt,startSpanManual:()=>Vt,statsigIntegration:()=>Md,supabaseIntegration:()=>An,suppressTracing:()=>Qt,thirdPartyErrorFilterIntegration:()=>er,unleashIntegration:()=>Ed,updateSpanName:()=>Dt.zQ,webWorkerIntegration:()=>Ad,winjsStackLineParser:()=>mr.$2,withActiveSpan:()=>Zt,withIsolationScope:()=>s.rB,withScope:()=>s.v4,zodErrorsIntegration:()=>ir});var r={};n.r(r),n.d(r,{debug:()=>lt,error:()=>pt,fatal:()=>ht,fmt:()=>it,info:()=>ut,trace:()=>ct,warn:()=>dt});var o=n(8845),s=n(7968);function i(e,t={},n=(0,s.o5)()){const{message:r,name:o,email:i,url:a,source:c,associatedEventId:l,tags:u}=e,d={contexts:{feedback:{contact_email:i,name:o,message:r,url:a,source:c,associated_event_id:l}},type:"feedback",level:"info",tags:u},p=n?.getClient()||(0,s.KU)();p&&p.emit("beforeSendFeedback",d,t);return n.captureEvent(d,t)}var a=n(7726),c=n(8826),l=n(9282),u=n(925);function d(){return"undefined"!=typeof window&&(!(!(0,u.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0))||function(){const e=o.O.process;return"renderer"===e?.type}())}const p=o.O,h=p.document,f=p.navigator,m="Report a Bug",g=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=(0,s.KU)();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&(0,s.o5)().setTags(e.tags);const r=i({source:"api",url:(0,a.$N)(),...e},t);return new Promise((e,t)=>
1{const o=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),3e4),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")})})},y="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function _(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function v(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}function b({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const o=h.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||m,o.appendChild(function(){const e=e=>p.document.createElementNS("http://www.w3.org/2000/svg",e),t=v(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=v(e("g"),{clipPath:"url(#clip0_57_80)"}),r=v(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const o=e("defs"),s=v(e("clipPath"),{id:"clip0_57_80"}),i=v(e("rect"),{width:"20",height:"20",fill:"white"});return s.appendChild(i),o.appendChild(s),t.appendChild(o).appendChild(s).appendChild(i),t}()),e){const t=h.createElement("span");t.appendChild(h.createTextNode(e)),o.appendChild(t)}const s=function(e){const t=h.createElement("style");return 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));
1\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);return{el:o,appendToDom(){n.appendChild(s),n.appendChild(o)},removeFromDom(){o.remove(),s.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const S="rgba(88, 74, 192, 1)",k={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:S,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%)"},w={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:S,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function T(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 C=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:o=!0,showBranding:s=!0,isEmailRequired:i=!1,isNameRequired:a=!1,showEmail:u=!0,showName:p=!0,enableScreenshot:v=!0,useSentryUser:S={email:"email",name:"username"},tags:C,styleNonce:x,scriptNonce:E,colorScheme:I="system",themeLight:M={},themeDark:R={},addScreenshotButtonLabel:A="Add a screenshot",cancelButtonLabel:L="Cancel",confirmButtonLabel:O="Confirm",emailLabel:D="Email",emailPlaceholder:N="[email protected]",formTitle:P="Report a Bug",isRequiredLabel:F="(required)",messageLabel:z="Description",messagePlaceholder:U="What's the bug? What did you expect?",nameLabel:B="Name",namePlaceholder:$="Your Name",removeScreenshotButtonLabel:H="Remove screenshot",submitButtonLabel:j="Send Bug Report",successMessageText:W="Thank you for your report!",triggerLabel:q=m,triggerAriaLabel:Y="",onFormOpen:K,onFormClose:J,onSubmitSuccess:V,onSubmitError:G,onFormSubmitted:X}={})=>{const Z={id:r,autoInject:o,showBranding:s,isEmailRequired:i,isNameRequired:a,showEmail:u,showName:p,enableScreenshot:v,useSentryUser:S,tags:C,styleNonce:x,scriptNonce:E,colorScheme:I,themeDark:R,themeLight:M,triggerLabel:q,triggerAriaLabel:Y,cancelButtonLabel:L,submitButtonLabel:j,confirmButtonLabel:O,formTitle:P,emailLabel:D,emailPlaceholder:N,messageLabel:z,messagePlaceholder:U,nameLabel:B,namePlaceholder:$,successMessageText:W,isRequiredLabel:F,addScreenshotButtonLabel:A,removeScreenshotButtonLabel:H,onFormClose:J,onFormOpen:K,onSubmitError:G,onSubmitSuccess:V,onFormSubmitted:X};let Q=null,ee=[];const te=e=>{if(!Q){const t=h.createElement("div");t.id=String(e.id),h.body.appendChild(t),Q=t.attachShadow({mode:"open"}),Q.appendChild(function({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=h.createElement("style");return o.textContent=`\n:host {\n  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n  --font-size: 14px;\n  --z-index: 100000;\n\n  --page-margin: 16px;\n  --inset: auto 0 0 auto;\n  --actor-inset: var(--inset);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ${"system"!==e?"color-scheme: only light;":""}\n\n  ${T("dark"===e?{...w,...t}:{...k,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    ${T({...w,...t})}\n  }\n}`:""}\n}\n`,r&&o.setAttribute("nonce",r),o}(e))}return Q},ne=async r=>{const o=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(f.userAgent)||/Macintosh/i.test(f.userAgent)&&f.maxTouchPoints&&f.maxTouchPoints>1||!isSecureContext);let s,i;try{s=(t?t():await e("feedbackModalIntegration",E))(),(0,c.Q8)(s)}catch{throw y&&l.Yz.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const t=o?n?n():await e("feedbackScreenshotIntegration",E):void 0;t&&(i=t(),(0,c.Q8)(i))}catch{y&&l.Yz.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const a=s.createDialog({options:{...r,onFormClose:()=>{a?.close(),r.onFormClose?.()},onFormSubmitted:()=>{a?.close(),r.onFormSubmitted?.()}},screenshotIntegration:i,sendFeedback:g,shadow:te(r)});return a},re=(e,t={})=>{const n=_(Z,t),r="string"==typeof e?h.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw y&&l.Yz.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let o=null;const s=async()=>{o||(o=await ne({...n,onFormSubmitted:()=>{o?.removeFromDom(),n.onFormSubmitted?.()}})),o.appendToDom(),o.open()};
1r.addEventListener("click",s);const i=()=>{ee=ee.filter(e=>e!==i),o?.removeFromDom(),o=null,r.removeEventListener("click",s)};return ee.push(i),i},oe=(e={})=>{const t=_(Z,e),n=te(t),r=b({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:x});return re(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){d()&&Z.autoInject&&("loading"===h.readyState?h.addEventListener("DOMContentLoaded",()=>oe().appendToDom()):oe().appendToDom())},attachTo:re,createWidget(e={}){const t=oe(_(Z,e));return t.appendToDom(),t},createForm:async(e={})=>ne(_(Z,e)),remove(){Q&&(Q.parentElement?.remove(),Q=null),ee.forEach(e=>e()),ee=[]}}};function x(){const e=(0,s.KU)();return e?.getIntegrationByName("Feedback")}var E,I,M,R,A,L,O,D={},N=[],P=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,F=Array.isArray;function z(e,t){for(var n in t)e[n]=t[n];return e}function U(e){var t=e.parentNode;t&&t.removeChild(e)}function B(e,t,n){var r,o,s,i={};for(s in t)"key"==s?r=t[s]:"ref"==s?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?E.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===i[s]&&(i[s]=e.defaultProps[s]);return $(e,i,r,o,null)}function $(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?++M:o,__i:-1,__u:0};return null==o&&null!=I.vnode&&I.vnode(s),s}function H(e){return e.children}function j(e,t){this.props=e,this.context=t}function W(e,t){if(null==t)return e.__?W(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?W(e):null}function q(e,t,n){var r,o=e.__v,s=o.__e,i=e.__P;if(i)return(r=z({},o)).__v=o.__v+1,I.vnode&&I.vnode(r),ne(i,r,o,e.__n,void 0!==i.ownerSVGElement,32&o.__u?[s]:null,t,null==s?W(o):s,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=s&&Y(r),r}function Y(e){var t,n;if(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;break}return Y(e)}}function K(e){(!e.__d&&(e.__d=!0)&&R.push(e)&&!J.__r++||A!==I.debounceRendering)&&((A=I.debounceRendering)||L)(J)}function J(){var e,t,n,r=[],o=[];for(R.sort(O);e=R.shift();)e.__d&&(n=R.length,t=q(e,r,o)||t,0===n||R.length>n?(re(r,t,o),o.length=r.length=0,t=void 0,R.sort(O)):t&&I.__c&&I.__c(t,N));t&&re(r,t,o),J.__r=0}function V(e,t,n,r,o,s,i,a,c,l,u){var d,p,h,f,m,g=r&&r.__k||N,y=t.length;for(n.__d=c,function(e,t,n){var r,o,s,i,a,c=t.length,l=n.length,u=l,d=0;for(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?$(null,o,null,null,o):F(o)?$(H,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?$(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=X(o,n,i=r+d,u),o.__i=a,s=null,-1!==a&&(u--,(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?u>c-i?d+=a-i:d--:d=a<i&&a==i-1?a-i:0,a!==r+d&&(o.__u|=65536))):(s=n[r])&&null==s.key&&s.__e&&(s.__e==e.__d&&(e.__d=W(s)),ie(s,s,!1),n[r]=null,u--);if(u)for(r=0;r<l;r++)null!=(s=n[r])&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=W(s)),ie(s,s))}(n,t,g),c=n.__d,d=0;d<y;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(p=-1===h.__i?D:g[h.__i]||D,h.__i=d,ne(e,h,p,o,s,i,a,c,l,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&se(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==m&&null!=f&&(m=f),65536&h.__u||p.__k===h.__k?c=G(h,c,e):"function"==typeof h.type&&void 0!==h.__d?c=h.__d:f&&(c=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function G(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=G(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function X(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,c=t[n];if(null===c||c&&o==c.key&&s===c.type)return n;if(r>(null==c||131072&c.__u?0:1))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&!(131072&c.__u)&&o==c.key&&s===c.type)return i;i--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&s===c.type)return a;a++}}return-1}function Z(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||P.test(t)?n:n+"px"}function Q(e,t,n,r,o){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Z(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Z(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?te:ee,s)):e.removeEventListener(t,s?te:ee,s);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else 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;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function ee(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(I.event?I.event(e):e)}}function te(e){if(this.l)return this.l[e.type+!0](I.event?I.event(e):e)}function ne(e,t,n,r,o,s,i,a,c,l){var u,d,p,h,f,m,g,y,_,v,b,S,k,w,T,C=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=t.__e=n.__e]),(u=I.__b)&&u(t);
vendor: 4,659 bytes, line 1
1e:if("function"==typeof C)try{if(y=t.props,_=(u=C.contextType)&&r[u.__c],v=u?_?_.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in C&&C.prototype.render?t.__c=d=new C(y,v):(t.__c=d=new j(y,v),d.constructor=C,d.render=ae),_&&_.sub(d),d.props=y,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!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=z({},d.__s)),z(d.__s,C.getDerivedStateFromProps(y,d.__s))),h=d.props,f=d.state,d.__v=t,p)null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==C.getDerivedStateFromProps&&y!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,v)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,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]);d._sb=[],d.__h.length&&i.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,v),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,f,m)})}if(d.context=v,d.props=y,d.__P=e,d.__e=!1,S=I.__r,k=0,"prototype"in C&&C.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[]}else do{d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=z(z({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,f)),V(e,F(T=null!=u&&u.type===H&&null==u.key?u.props.children:u)?T:[T],t,n,r,o,s,i,a,c,l),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),I.__e(e,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=oe(n.__e,t,n,r,o,s,i,c,l);(u=I.diffed)&&u(t)}function re(e,t,n){for(var r=0;r<n.length;r++)se(n[r],n[++r],n[++r]);I.__c&&I.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){I.__e(e,t.__v)}})}function oe(e,t,n,r,o,s,i,a,c){var l,u,d,p,h,f,m,g=n.props,y=t.props,_=t.type;if("svg"===_&&(o=!0),null!=s)for(l=0;l<s.length;l++)if((h=s[l])&&"setAttribute"in h==!!_&&(_?h.localName===_:3===h.nodeType)){e=h,s[l]=null;break}if(null==e){if(null===_)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,y.is&&y),s=null,a=!1}if(null===_)g===y||a&&e.data===y||(e.data=y);else{if(s=s&&E.call(e.childNodes),g=n.props||D,!a&&null!=s)for(g={},l=0;l<e.attributes.length;l++)g[(h=e.attributes[l]).name]=h.value;for(l in g)h=g[l],"children"==l||("dangerouslySetInnerHTML"==l?d=h:"key"===l||l in y||Q(e,l,null,h,o));for(l in y)h=y[l],"children"==l?p=h:"dangerouslySetInnerHTML"==l?u=h:"value"==l?f=h:"checked"==l?m=h:"key"===l||a&&"function"!=typeof h||g[l]===h||Q(e,l,h,g[l],o);if(u)a||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),V(e,F(p)?p:[p],t,n,r,o&&"foreignObject"!==_,s,i,s?s[0]:n.__k&&W(n,0),a,c),null!=s)for(l=s.length;l--;)null!=s[l]&&U(s[l]);a||(l="value",void 0!==f&&(f!==e[l]||"progress"===_&&!f||"option"===_&&f!==g[l])&&Q(e,l,f,g[l],!1),l="checked",void 0!==m&&m!==e[l]&&Q(e,l,m,g[l],!1))}return e}function se(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){I.__e(e,n)}}function ie(e,t,n){var r,o;if(I.unmount&&I.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||se(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){I.__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]&&ie(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||U(e.__e),e.__=e.__e=e.__d=void 0}function ae(e,t,n){return this.constructor(e,n)}E=N.slice,I={__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}},M=0,j.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=z({},this.state),"function"==typeof e&&(e=e(z({},n),this.props)),e&&z(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),K(this))},j.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),K(this))},j.prototype.render=H,R=[],L="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,O=function(e,t){return e.__v.__b-t.__v.__b},J.__r=0;var ce,le,ue,de,pe=0,he=[],fe=[],me=I,ge=me.__b,ye=me.__r,_e=me.diffed,ve=me.__c,be=me.unmount,Se=me.__;function ke(e,t){me.__h&&me.__h(le,e,pe||t),pe=0;var n=le.__H||(le.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:fe}),n.__[e]}function we(e){return pe=1,Te(De,e)}function Te(e,t,n){var r=ke(ce++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):De(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=le,!le.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var i=!1;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),!(!i&&r.__c.props===e)&&(!s||s.call(this,e,t,n))};le.u=!0;var s=le.shouldComponentUpdate,i=le.componentWillUpdate;le.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,o(e,t,n),s=r}i&&i.call(this,e,t,n)},le.shouldComponentUpdate=o}return r.__N||r.__}function Ce(e,t){var n=ke(ce++,4);!me.__s&&Oe(n.__H,t)&&(n.__=e,n.i=t,le.__h.push(n))}function xe(e,t){var n=ke(ce++,7);return Oe(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ee(e,t){return pe=8,xe(function(){return e},t)}function Ie(){for(var e;e=he.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ae),e.__H.__h.forEach(Le),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}me.__b=function(e){le=null,ge&&ge(e)},me.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Se&&Se(e,t)},me.__r=function(e){ye&&ye(e),ce=0;var t=(le=e.__c).__H;t&&(ue===le?(t.__h=[],le.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=fe,e.__N=e.i=void 0})):(t.__h.forEach(Ae),t.__h.forEach(Le),t.__h=[],ce=0)),ue=le},me.diffed=function(e){_e&&_e(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==he.push(t)&&de===me.requestAnimationFrame||((de=me.requestAnimationFrame)||Re)(Ie)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==fe&&(e.__=e.__V),e.i=void 0,e.__V=fe})),ue=le=null},me.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Ae),e.__h=e.__h.filter(function(e){return!e.__||Le(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],me.__e(n,e.__v)}}),ve&&ve(e,t)},me.unmount=function(e){be&&be(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Ae(e)}catch(e){t=e}}),n.__H=void 0,t&&me.__e(t,n.__v))};var Me="function"==typeof requestAnimationFrame;function Re(e){var t,n=function(){clearTimeout(r),Me&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Me&&(t=requestAnimationFrame(n))}function Ae(e){var t=le,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),le=t}function Le(e){var t=le;e.__c=e.__(),le=t}function Oe(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function De(e,t){return"function"==typeof t?t(e):t}const Ne=Object.defineProperty({__proto__:null,useCallback:Ee,useContext:function(e){var t=le.context[e.__c],n=ke(ce++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(le)),t.props.value):e.__},useDebugValue:function(e,t){me.useDebugValue&&me.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=ke(ce++,3);!me.__s&&Oe(n.__H,t)&&(n.__=e,n.i=t,le.__H.__h.push(n))},useErrorBoundary:function(e){var t=ke(ce++,10),n=we();return t.__=e,le.componentDidCatch||(le.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=ke(ce++,11);if(!e.__){for(var t=le.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){pe=6,Ce(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:Ce,useMemo:xe,useReducer:Te,useRef:function(e){return pe=5,xe(function(){return{current:e}},[])},useState:we},Symbol.toStringTag,{value:"Module"});function Pe(){const e=e=>h.createElementNS("http://www.w3.org/2000/svg",e),t=v(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=v(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function Fe({options:e}){const t=xe(()=>({__html:Pe().outerHTML}),[]);return B("h2",{class:"dialog__header"},B("span",{class:"dialog__title"},e.formTitle),e.showBranding?B("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function ze(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function Ue({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:s,onSubmitError:i,showEmail
1:a,showName:c,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:h,cancelButtonLabel:f,emailLabel:m,emailPlaceholder:g,isEmailRequired:_,isNameRequired:v,messageLabel:b,messagePlaceholder:S,nameLabel:k,namePlaceholder:w,submitButtonLabel:T,isRequiredLabel:C}=e,[x,E]=we(!1),[I,M]=we(null),[R,A]=we(!1),L=u?.input,[O,D]=we(null),N=Ee(e=>{D(e),A(!1)},[]),P=Ee(e=>{const t=function(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:m,isEmailRequired:_,isNameRequired:v,messageLabel:b,nameLabel:k});return t.length>0?M(`Please enter in the following required fields: ${t.join(", ")}`):M(null),0===t.length},[m,_,v,b,k]),F=Ee(async e=>{E(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),n=await(u&&R?u.value():void 0),r={name:ze(t,"name"),email:ze(t,"email"),message:ze(t,"message"),attachments:n?[n]:void 0};if(!P(r))return;try{const e=await o({name:r.name,email:r.email,message:r.message,source:"widget",tags:d},{attachments:r.attachments});s(r,e)}catch(e){y&&l.Yz.error(e),M(e),i(e)}}finally{E(!1)}},[u&&R,s,i]);return B("form",{class:"form",onSubmit:F},L&&R?B(L,{onError:N}):null,B("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:x},B("div",{class:"form__top"},I?B("div",{class:"form__error-container"},I):null,c?B("label",{for:"name",class:"form__label"},B(Be,{label:k,isRequiredLabel:C,isRequired:v}),B("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:w,required:v,type:"text"})):B("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?B("label",{for:"email",class:"form__label"},B(Be,{label:m,isRequiredLabel:C,isRequired:_}),B("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:_,type:"email"})):B("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),B("label",{for:"message",class:"form__label"},B(Be,{label:b,isRequiredLabel:C,isRequired:!0}),B("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:S,required:!0,rows:5})),L?B("label",{for:"screenshot",class:"form__label"},B("button",{class:"btn btn--default",disabled:x,type:"button",onClick:()=>{D(null),A(e=>!e)}},R?h:p),O?B("div",{class:"form__error-container"},O.message):null):null),B("div",{class:"btn-group"},B("button",{class:"btn btn--primary",disabled:x,type:"submit"},T),B("button",{class:"btn btn--default",disabled:x,type:"button",onClick:r},f))))}function Be({label:e,isRequired:t,isRequiredLabel:n}){return B("span",{class:"form__label__text"},e,t&&B("span",{class:"form__label__text--required"},n))}function $e(){const e=e=>p.document.createElementNS("http://www.w3.org/2000/svg",e),t=v(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=v(e("g"),{clipPath:"url(#clip0_57_156)"}),r=v(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=v(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 
110.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);const s=e("defs"),i=v(e("clipPath"),{id:"clip0_57_156"}),a=v(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(a),t}function He({open:e,onFormSubmitted:t,...n}){const r=n.options,o=xe(()=>({__html:$e().outerHTML}),[]),[s,i]=we(null),a=Ee(()=>{s&&(clearTimeout(s),i(null)),t()},[s]),c=Ee((e,r)=>{n.onSubmitSuccess(e,r),i(setTimeout(()=>{t(),i(null)},5e3))},[t]);return B(H,null,s?B("div",{class:"success__position",onClick:a},B("div",{class:"success__content"},r.successMessageText,B("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):B("dialog",{class:"dialog",onClick:r.onFormClose,open:e},B("div",{class:"dialog__position"},B("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},B(Fe,{options:r}),B(Ue,{...n,onSubmitSuccess:c})))))}const je=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const o=r,i=e.useSentryUser,a=function(){const e=(0,s.o5)().getUser(),t=(0,s.rm)().getUser(),n=(0,s.m6)().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),c=h.createElement("div"),l=function(e){const t=h.createElement("style");return 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));
1\n  box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n  transform: translate(0, 0) scale(1);\n  transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\n}\n.dialog__title {\n  align-self: center;\n  width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n  .dialog__title {\n    width: auto;\n  }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n  width: auto;\n}\n\n\n.brand-link {\n  display: inline-flex;\n}\n.brand-link:focus-visible {\n  outline: var(--outline);\n}\n\n\n.form {\n  display: flex;\n  overflow: auto;\n  flex-direction: row;\n  gap: 16px;\n  flex: 1 0;\n}\n\n.form fieldset {\n  border: none;\n  margin: 0;\n  padding: 0;\n}\n\n.form__right {\n  flex: 0 0 auto;\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n  width: var(--form-width, 272px);\n}\n\n.form__top {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.form__error-container {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: flex;\n  gap: 4px;\n  align-items: center;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  font-family: inherit;\n  line-height: inherit;\n  background: transparent;\n  box-sizing: border-box;\n  border: var(--input-border, var(--border));\n  border-radius: var(--input-border-radius, 6px);\n  color: var(--input-color, inherit);\n  fill: var(--input-color, inherit);\n  font-size: var(--input-font-size, inherit);\n  font-weight: var(--input-font-weight, 500);\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  opacity: 0.65;\n  color: var(--input-placeholder-color, inherit);\n  filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n  outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.error {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n\n.btn-group {\n  display: grid;\n  gap: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--button-font-size, inherit);\n  font-weight: var(--button-font-weight, 600);\n  padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  color: var(--button-primary-color, var(--accent-foreground));\n  fill: var(--button-primary-color, var(--accent-foreground));\n  background: var(--button-primary-background, var(--accent-background));\n  border: var(--button-primary-border, var(--border));\n  border-radius: var(--button-primary-border-radius, 6px);\n  font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n  color: var(--button-primary-hover-color, var(--accent-foreground));\n  fill: var(--button-primary-hover-color, var(--accent-foreground));\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n  outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-background, var(--background));\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n  outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n  position: fixed;\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  z-index: var(--z-index);\n}\n.success__content {\n  background: var(--success-background, var(--background));\n  border: var(--success-border, var(--border));\n  border-radius: var(--success-border-radius, 1.7em/50%);
1\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);let u="";const d={get el(){return c},appendToDom(){o.contains(l)||o.contains(c)||(o.appendChild(l),o.appendChild(c))},removeFromDom(){c.remove(),l.remove(),h.body.style.overflow=u},open(){f(!0),e.onFormOpen?.(),(0,s.KU)()?.emit("openFeedbackWidget"),u=h.body.style.overflow,h.body.style.overflow="hidden"},close(){f(!1),h.body.style.overflow=u}},p=t?.createInput({h:B,hooks:Ne,dialog:d,options:e}),f=t=>{!function(e,t){var n,r,o;I.__&&I.__(e,t),n=t.__k,r=[],o=[],ne(t,e=t.__k=B(H,null,[e]),n||D,D,void 0!==t.ownerSVGElement,n?null:t.firstChild?E.call(t.childNodes):null,r,n?n.__e:t.firstChild,!1,o),e.__d=void 0,re(r,e,o)}(B(He,{options:e,screenshotInput:p,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:i&&a?.[i.name]||"",defaultEmail:i&&a?.[i.email]||"",onFormClose:()=>{f(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{f(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),c)};return d}});function We(e){const t=h.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`\n.editor {\n  display: flex;\n  flex-grow: 1;\n  flex-direction: column;\n}\n\n.editor__image-container {\n  justify-items: center;\n  padding: 15px;\n  position: relative;\n  height: 100%;\n  border-radius: var(--menu-border-radius, 6px);\n\n  background-color: ${n};\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ${n} 8px,\n      ${n} 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ${r} 15px,\n      ${r} 16px\n    );\n}\n\n.editor__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 > * {\n  object-fit: contain;\n  position: absolute;\n}\n\n.editor__tool-container {\n  padding-top: 8px;\n  display: flex;\n  justify-content: center;\n}\n\n.editor__tool-bar {\n  display: flex;\n  gap: 8px;\n}\n\n.editor__tool {\n  display: flex;\n  padding: 8px 12px;\n  justify-content: center;\n  align-items: center;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  background: var(--button-background, var(--background));\n  color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n  background: var(--button-primary-background, var(--accent-background));\n  color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n  position: absolute;\n  z-index: 2;\n}\n\n.editor__rect button {\n  opacity: 0;\n  position: absolute;\n  top: -12px;\n  right: -12px;\n  cursor: pointer;\n  padding: 0;\n  z-index: 3;\n  border: none;\n  background: none;\n}\n\n.editor__rect:hover button {\n  opacity: 1;\n}\n`,e&&t.setAttribute("nonce",e),t}function qe({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:o}){const s=function(){const[t,n]=e.useState(p.devicePixelRatio??1);return e.useEffect(()=>{const e=()=>{n(p.devicePixelRatio)},t=matchMedia(`(resolution: ${p.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();const e=await f.mediaDevices.getDisplayMedia({video:{width:p.innerWidth*s,height:p.innerHeight*s},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=h.createElement("video");await new Promise((t,r)=>{o.srcObject=e,o.onloadedmetadata=()=>{n(o,s),e.getTracks().forEach(e=>e.stop()),t()},o.play().catch(r)}),r()})().catch(o)},[])}}function Ye(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function Ke(e,t){Ye(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function Je(e,t,n){Ye(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEac
1h(e=>{!function(e,t,n){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h)}}(e,r,t)})})}function Ve({h:e,hooks:t,outputBuffer:n,dialog:r,options:o}){const s=qe({hooks:t}),i=function({h:e}){return function({action:t,setAction:n}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:"editor__tool "+("highlight"===t?"editor__tool--active":""),onClick:()=>{n("highlight"===t?"":"highlight")}},"Highlight"),e("button",{type:"button",class:"editor__tool "+("hide"===t?"editor__tool--active":""),onClick:()=>{n("hide"===t?"":"hide")}},"Hide")))}}({h:e}),a=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),c={__html:We(o.styleNonce).innerText},l=r.el.style,u=({screenshot:r})=>{const[s,l]=t.useState("highlight"),[u,d]=t.useState([]),f=t.useRef(null),m=t.useRef(null),g=t.useRef(null),y=t.useRef(null),[_,v]=t.useState(1),b=t.useMemo(()=>{const e=h.getElementById(o.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[o.id]);t.useLayoutEffect(()=>{const e=()=>{const t=f.current;t&&(Ye(r.canvas,{alpha:!1},e=>{const n=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);v(n)}),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),p.addEventListener("resize",e),()=>{p.removeEventListener("resize",e)}},[r]);const S=t.useCallback((e,t)=>{Ye(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{S(m.current,r.dpi),Ke(m.current,r.canvas)},[r]),t.useEffect(()=>{S(g.current,r.dpi),Ye(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Je(g.current,b,u)},[u,b]),t.useEffect(()=>{S(n,r.dpi),Ke(n,r.canvas),Ye(h.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,Je(e,b,u),Ke(n,e)})},[u,r,b]);const k=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),d(t=>{const n=[...t];return n.splice(e,1),n})},[]),w={width:r.canvas.width*_+"px",height:r.canvas.height*_+"px"},T=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:f},e("canvas",{ref:m,id:"background",style:w}),e("canvas",{ref:g,id:"foreground",style:w}),e("div",{ref:y,onMouseDown:e=>{if(!s||!y.current)return;const t=y.current.getBoundingClientRect(),n={type:s,x:e.offsetX/_,y:e.offsetY/_},r=(e,n)=>{const r=(n.clientX-t.x)/_,o=(n.clientY-t.y)/_;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,o),w:Math.abs(r-e.x),h:Math.abs(o-e.y)}},o=e=>{Ye(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Je(g.current,b,[...u,r(n,e)])},i=e=>{const t=r(n,e);t.w*_>=1&&t.h*_>=1&&d(e=>[...e,t]),h.removeEventListener("mousemove",o),h.removeEventListener("mouseup",i)};h.addEventListener("mousemove",o),h.addEventListener("mouseup",i)},style:w},u.map((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:t.y*_+"px",left:t.x*_+"px",width:t.w*_+"px",height:t.h*_+"px"}},e("button",{"aria-label":"Remove",onClick:k(n),onMouseDown:T,onMouseUp:T,type:"button"},e(a,null))))))),e(i,{action:s,setAction:l}))};return function({onError:r}){const[o,i]=t.useState();return s({onBeforeScreenshot:t.useCallback(()=>{l.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{Ye(h.createElement("canvas"),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),i({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{l.display="block"},[]),onError:t.useCallback(e=>{l.display="block",r(e)},[])}),o?e(u,{screenshot:o}):e("div",null)}}const Ge=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=h.createElement("canvas");return{input:Ve({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{const e=await new Promise(e=>
1{o.toBlob(e,"image/png")});if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}});var Xe=n(3674),Ze=n(452);const Qe={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},et=Ze.jf;async function tt(e,t){const n=Qe[e],r=et.Sentry=et.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const o=r[e];if("function"==typeof o&&!("_isShim"in o))return o;const i=function(e){const t=(0,s.KU)(),n=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${Xe.M}/${e}.min.js`,n).toString()}(n),a=Ze.jf.document.createElement("script");a.src=i,a.crossOrigin="anonymous",a.referrerPolicy="strict-origin",t&&a.setAttribute("nonce",t);const c=new Promise((e,t)=>{a.addEventListener("load",()=>e()),a.addEventListener("error",t)}),l=Ze.jf.document.currentScript,u=Ze.jf.document.body||Ze.jf.document.head||l?.parentElement;if(!u)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);u.appendChild(a);try{await c}catch{throw new Error(`Error when loading integration: ${e}`)}const d=r[e];if("function"!=typeof d)throw new Error(`Could not load integration: ${e}`);return d}const nt=C({lazyLoadIntegration:tt}),rt=C({getModalIntegration:()=>je,getScreenshotIntegration:()=>Ge});var ot=n(7868);function st(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const it=st;function at(e,t,n,r){(0,ot.KG)({level:e,message:t,attributes:n,severityNumber:r})}function ct(e,t){at("trace",e,t)}function lt(e,t){at("debug",e,t)}function ut(e,t){at("info",e,t)}function dt(e,t){at("warn",e,t)}function pt(e,t){at("error",e,t)}function ht(e,t){at("fatal",e,t)}var ft=n(4251),mt=n(8673),gt=n(9600),yt=n(7879),_t=n(125);const vt=(0,c._C)((e={})=>{const t=e.levels||l.Ow,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in o.O&&(0,mt.P)(({args:r,level:o})=>{(0,s.KU)()===e&&t.includes(o)&&function(e,t,n){const r={level:(0,yt.t)(t),extra:{arguments:e}};(0,s.v4)(o=>{if(o.addEventProcessor(e=>(e.logger="console",(0,gt.M6)(e,{handled:n,type:"console"}),e)),"assert"===t){if(!e[0]){const t=`Assertion failed: ${(0,_t.gt)(e.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",e.slice(1)),(0,ft.wd)(t,r)}return}const s=e.find(e=>e instanceof Error);if(s)return void(0,ft.Cp)(s,r);const i=(0,_t.gt)(e," ");(0,ft.wd)(i,r)})}(r,o,n)})}}});
1var bt=n(6674),St=n(4611),kt=n(4208),wt=n(4837);const Tt={[St.JD]:"auto.console.logging"},Ct=(0,c._C)((e={})=>{const t=e.levels||l.Ow;return{name:"ConsoleLogs",setup(e){const{_experiments:n,normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=e.getOptions();n?.enableLogs?(0,mt.P)(({args:n,level:i})=>{if((0,s.KU)()!==e||!t.includes(i))return;if("assert"===i){if(!n[0]){const e=n.slice(1),t=e.length>0?`Assertion failed: ${xt(e,r,o)}`:"Assertion failed";(0,ot.KG)({level:"error",message:t,attributes:Tt})}return}const a="log"===i;(0,ot.KG)({level:a?"info":i,message:xt(n,r,o),severityNumber:a?10:void 0,attributes:Tt})}):bt.T&&l.Yz.warn("`_experiments.enableLogs` is not enabled, ConsoleLogs integration disabled")}}});function xt(e,t,n){return"util"in o.O&&"function"==typeof o.O.util.format?o.O.util.format(...e):function(e,t,n){return e.map(e=>(0,kt.sO)(e)?String(e):JSON.stringify((0,wt.S8)(e,t,n))).join(" ")}(e,t,n)}var Et=n(2328),It=n(5200);function Mt(e,t,n=()=>{}){let r;try{r=e()}catch(e){throw t(e),n(),e}return function(e,t,n){if((0,kt.Qg)(e))return e.then(e=>(n(),e),e=>{throw t(e),n(),e});return n(),e}(r,t,n)}var Rt=n(4704),At=n(1773),Lt=n(4733),Ot=n(333),Dt=n(5915),Nt=n(3908),Pt=n(1158);class Ft{constructor(e={}){this._traceId=e.traceId||(0,Lt.e)(),this._spanId=e.spanId||(0,Lt.Z)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Dt.CC}}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){}}var zt=n(5330),Ut=n(3177);function Bt(e,t,n,r=(0,Dt.Bk)()){const o=r&&(0,Dt.zU)(r);o&&(bt.T&&l.Yz.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[St.xc]:t,[St.Sn]:n}))}function $t(e){if(!e||0===e.length)return;const t={};return e.forEach(e=>{const n=e.attributes||{},r=n[St.Sn],o=n[St.xc];"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})}),t}var Ht=n(8728);class jt{constructor(e={}){this._traceId=e.traceId||(0,Lt.e)(),this._spanId=e.spanId||(0,Lt.Z)(),this._startTime=e.startTimestamp||(0,Ut.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[St.JD]:"manual",[St.uT]: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()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Dt.aO:Dt.CC}}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=(0,Dt.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(St.i_,"custom"),this}end(e){this._endTime||(this._endTime=(0,Dt.cI)(e),function(e){if(!bt.T)return;const{description:t="< unknown name >",op:n="< unknown op >"}=(0,Dt.et)(e),{spanId:r}=e.spanContext(),o=`[Tracing] Finishing "${n}" ${(0,Dt.zU)(e)===e?"root ":""}span "${t}" with ID ${r}`;l.Yz.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[St.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,Dt.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[St.JD],profile_id:this._attributes[St.E1],exclusive_time:this._attributes[St.jG],measurements:$t(this._events),is_segment:this._isStandaloneSpan&&(0,Dt.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,Dt.zU)(this).spanContext().spanId:void 0,links:(0,Dt.uU)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){bt.T&&l.Yz.log("[Tracing] Adding an event to span:",e);const r=Wt(t)?t:n||(0,Ut.zf)(),o=Wt(t)?{}:t||{}
1,s={name:e,time:(0,Dt.cI)(r),attributes:o};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,s.KU)();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===(0,Dt.zU)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,s.KU)();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}((0,zt.lu)([this],e)):(bt.T&&l.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){((0,Ht.L)(this).scope||(0,s.o5)()).captureEvent(t)}}_convertSpanToTransaction(){if(!qt((0,Dt.et)(this)))return;this._name||(bt.T&&l.Yz.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=(0,Ht.L)(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=(0,Dt.xO)(this).filter(e=>e!==this&&!function(e){return e instanceof jt&&e.isStandaloneSpan()}(e)).map(e=>(0,Dt.et)(e)).filter(qt),o=this._attributes[St.i_];delete this._attributes[St.Le],r.forEach(e=>{delete e.data[St.Le]});const s={contexts:{trace:(0,Dt.Ck)(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,dynamicSamplingContext:(0,Pt.k1)(this)},request:n,...o&&{transaction_info:{source:o}}},i=$t(this._events);return i&&Object.keys(i).length&&(bt.T&&l.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(i,void 0,2)),s.measurements=i),s}}function Wt(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function qt(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}var Yt=n(1135);const Kt="__SENTRY_SUPPRESS_TRACING__";function Jt(e,t){const n=rn();if(n.startSpan)return n.startSpan(e,t);const r=nn(e),{forceTransaction:o,parentSpan:i,scope:a}=e,c=a?.clone();return(0,s.v4)(c,()=>an(i)(()=>{const n=(0,s.o5)(),a=sn(n,i),c=e.onlyIfParent&&!a?new Ft:tn({parentSpan:a,spanArguments:r,forceTransaction:o,scope:n});return(0,Ot.r)(n,c),Mt(()=>t(c),()=>{const{status:e}=(0,Dt.et)(c);!c.isRecording()||e&&"ok"!==e||c.setStatus({code:Yt.TJ,message:"internal_error"})},()=>{c.end()})}))}function Vt(e,t){const n=rn();if(n.startSpanManual)return n.startSpanManual(e,t);const r=nn(e),{forceTransaction:o,parentSpan:i,scope:a}=e,c=a?.clone();return(0,s.v4)(c,()=>an(i)(()=>{const n=(0,s.o5)(),a=sn(n,i),c=e.onlyIfParent&&!a?new Ft:tn({parentSpan:a,spanArguments:r,forceTransaction:o,scope:n});return(0,Ot.r)(n,c),Mt(()=>t(c,()=>c.end()),()=>{const{status:e}=(0,Dt.et)(c);!c.isRecording()||e&&"ok"!==e||c.setStatus({code:Yt.TJ,message:"internal_error"})})}))}function Gt(e){const t=rn();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=nn(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>(0,s.v4)(e.scope,t):void 0!==o?e=>Zt(o,e):e=>e())(()=>{const t=(0,s.o5)(),i=sn(t,o);return e.onlyIfParent&&!i?new Ft:tn({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})})}const Xt=(e,t)=>{const n=(0,It.EU)(),r=(0,Et.h)(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:o,baggage:i}=e;return(0,s.v4)(e=>{const n=(0,Nt.kM)(o,i);return e.setPropagationContext(n),t()})};function Zt(e,t){const n=rn();return n.withActiveSpan?n.withActiveSpan(e,t):(0,s.v4)(n=>((0,Ot.r)(n,e||void 0),t(n)))}function Qt(e){const t=rn();return t.suppressTracing?t.suppressTracing(e):(0,s.v4)(t=>{t.setSDKProcessingMetadata({[Kt]:!0});const n=e();return t.setSDKProcessingMetadata({[Kt]:void 0}),n})}function en(e){return(0,s.v4)(t=>(t.setPropagationContext({traceId:(0,Lt.e)(),sampleRand:Math.random()}),bt.T&&l.Yz.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),Zt(null,e)))}function tn({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!(0,Rt.f)()){const r=new Ft;if(n||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,Pt.k1)(r)};(0,Pt.LZ)(r,e)}return r}const o=(0,s.rm)();let i;if(e&&!n)i=function(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=!t.getScopeData().sdkProcessingMetadata[Kt]&&(0,Dt.pK)(e),a=i?new jt({...n,parentSpanId:r,traceId:o,sampled:i}):new Ft({traceId:o});(0,Dt.Hu)(e,a);const c=(0,s.KU)();
1c&&(c.emit("spanStart",a),n.endTimestamp&&c.emit("spanEnd",a));return a}(e,r,t),(0,Dt.Hu)(e,i);else if(e){const n=(0,Pt.k1)(e),{traceId:o,spanId:s}=e.spanContext(),a=(0,Dt.pK)(e);i=on({traceId:o,parentSpanId:s,...t},r,a),(0,Pt.LZ)(i,n)}else{const{traceId:e,dsc:n,parentSpanId:s,sampled:a}={...o.getPropagationContext(),...r.getPropagationContext()};i=on({traceId:e,parentSpanId:s,...t},r,a),n&&(0,Pt.LZ)(i,n)}return function(e){if(!bt.T)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,Dt.et)(e),{spanId:o}=e.spanContext(),s=(0,Dt.pK)(e),i=(0,Dt.zU)(e),a=i===e,c=`[Tracing] Starting ${s?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:e,description:t}=(0,Dt.et)(i);u.push(`root ID: ${i.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}l.Yz.log(`${c}\n  ${u.join("\n  ")}`)}(i),(0,Ht.d)(i,r,o),i}function nn(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=(0,Dt.cI)(e.startTime),delete n.startTime,n}return t}function rn(){const e=(0,It.EU)();return(0,Et.h)(e)}function on(e,t,n){const r=(0,s.KU)(),o=r?.getOptions()||{},{name:i=""}=e,a={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});const c=a.parentSampled??n,u=a.spanAttributes,d=t.getPropagationContext(),[p,h,f]=t.getScopeData().sdkProcessingMetadata[Kt]?[!1]:function(e,t,n){if(!(0,Rt.f)(e))return[!1];let r,o;"function"==typeof e.tracesSampler?(o=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),r=!0):void 0!==t.parentSampled?o=t.parentSampled:void 0!==e.tracesSampleRate&&(o=e.tracesSampleRate,r=!0);const s=(0,At.i)(o);if(void 0===s)return bt.T&&l.Yz.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!s)return bt.T&&l.Yz.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,s,r];const i=n<s;return i||bt.T&&l.Yz.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[i,s,r]}(o,{name:i,parentSampled:c,attributes:u,parentSampleRate:(0,At.i)(d.dsc?.sample_rate)},d.sampleRand),m=new jt({...e,attributes:{[St.i_]:"custom",[St.sy]:void 0!==h&&f?h:void 0,...u},sampled:p});return!p&&r&&(bt.T&&l.Yz.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",m),m}function sn(e,t){if(t)return t;if(null===t)return;const n=(0,Ot.f)(e);if(!n)return;const r=(0,s.KU)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,Dt.zU)(n):n}function an(e){return void 0!==e?t=>Zt(e,t):e=>e()}var cn=n(6403);const ln=(0,c._C)((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:s=250}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!(0,kt.bJ)(t.originalException))return e;const 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={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const s=e[t];o[t]=(0,kt.bJ)(s)||"string"==typeof s?(0,_t.xv)(`${s}`,n):s}if(t&&void 0!==e.cause&&(o.cause=(0,kt.bJ)(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=(0,kt.bJ)(n)?n.toString():n}}return o}catch(e){bt.T&&l.Yz.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r,o);if(i){const t={...e.contexts},r=(0,wt.S8)(i,n);return(0,kt.Qd)(r)&&((0,cn.my)(r,"__sentry_skip_normalization__",!0),t[s]=r),{...e,contexts:t}}return e}(e,r,t,n,s)}}});const un=100,dn=10,pn="flag.evaluation.";function hn(e){const t=(0,s.o5)().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e}function fn(e,t,n=un){const r=(0,s.o5)().getScopeData().contexts;r.flags||(r.flags={values:[]});!function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>
1r)return void(bt.T&&l.Yz.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`));const o=e.findIndex(e=>e.flag===t);-1!==o&&e.splice(o,1);e.length===r&&e.shift();e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function mn(e,t,n=dn){if("boolean"!=typeof t)return;const r=(0,Dt.Bk)();if(!r)return;const o=(0,Dt.et)(r).data;if(`${pn}${e}`in o)return void r.setAttribute(`${pn}${e}`,t);Object.keys(o).filter(e=>e.startsWith(pn)).length<n&&r.setAttribute(`${pn}${e}`,t)}const gn=(0,c._C)(()=>({name:"FeatureFlags",processEvent:(e,t,n)=>hn(e),addFeatureFlag(e,t){fn(e,t),mn(e,t)}}));var yn=n(3944);function _n(e={}){const t=e.client||(0,s.KU)();if(!(0,ft.Ol)()||!t)return{};const n=(0,It.EU)(),r=(0,Et.h)(n);if(r.getTraceData)return r.getTraceData(e);const o=e.scope||(0,s.o5)(),i=e.span||(0,Dt.Bk)(),a=i?(0,Dt.Qh)(i):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,Nt.TC)(t,r,n)}(o),c=i?(0,Pt.k1)(i):(0,Pt.ao)(t,o),u=(0,yn.De)(c);return Nt.MI.test(a)?{"sentry-trace":a,baggage:u}:(l.Yz.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}var vn=n(6810);const bn=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],Sn=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],kn={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},wn=["select","insert","upsert","update","delete"];function Tn(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function Cn(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function xn(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let o;return o=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&kn[n]||"filter",`${o}(${e}, ${r.join(".")})`}function En(e,t=!1){return new Proxy(e,{apply:(n,r,o)=>Jt({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[St.JD]:"auto.db.supabase",[St.uT]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,o).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:Yt.TJ}),(0,ft.Cp)(t.error,{mechanism:{handled:!1}})):e.setStatus({code:Yt.F3}),e.end(),t)).catch(t=>{throw e.setStatus({code:Yt.TJ}),e.end(),(0,ft.Cp)(t,{mechanism:{handled:!1}}),t}).then(...o))})}function In(e){Cn(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,t,n){const r=Reflect.apply(e,t,n);return function(e){for(const t of wn)Cn(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,n,r){const o=Reflect.apply(e,n,r),s=o.constructor;return bt.T&&l.Yz.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),Mn(s),o}}),Tn(e.prototype[t]))}(r.constructor),r}}),Tn(e.prototype.from))}function Mn(e){Cn(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,t,n){const r=wn,o=t,s=function(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(o.method,o.headers);if(!r.includes(s))return Reflect.apply(e,t,n);if(!o?.url?.pathname||"string"!=typeof o.url.pathname)return Reflect.apply(e,t,n);const i=o.url.pathname.split("/"),a=i.length>0?i[i.length-1]:"",c=[];for(const[e,t]of o.url.searchParams.entries())c.push(xn(e,t));const l=Object.create(null);if((0,kt.Qd)(o.body))for(const[e,t]of Object.entries(o.body))l[e]=t;const u=`${"select"===s?"":`${s}${l?"(...) ":""}`}${c.join(" ")} from(${a})`,d={"db.table":a,"db.schema":o.schema,"db.url":o.url.origin,"db.sdk":o.headers["X-Client-Info"],"db.system":"postgresql","db.operation":s,[St.JD]:"auto.db.supabase",[St.uT]:"db"};return c.length&&(d["db.query"]=c),Object.keys(l).length&&(d["db.body"]=l),Jt({name:u,attributes:d},r=>Reflect.apply(e,t,[]).then(e=>{if(r&&(e&&"object"==typeof e&&"status"in e&&(0,Yt.N8)(r,e.status||500),r.end()),e.error){const t=new Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);const n={};c.length&&(n.query=c),Object.keys(l).length&&(n.body=l),(0,ft.Cp)(t,{contexts:{supabase:n}})}const t={type:"supabase",category:`db.${s}`,message:u},n={};return c.length&&(n.query=c),Object.keys(l).length&&(n.body=l),Object.keys(n).length&&(t.data=n),(0,vn.Z)(t),e},e=>{throw r&&((0,Yt.N8)(r,500),r.end()),e}).then(...n))}}),Tn(e.prototype.then))}const Rn=e=>{if(!e)return void(bt.T&&l.Yz.warn("Supabase integration was not installed because no Supabase client was provided."));In(e.constructor===Function?e:e.constructor),function(e){const t=e.auth;if(t&&!Cn(e.auth)){for(const n of bn){const r=t[n];r&&"function"==typeof e.auth[n]&&(e.auth[n]=En(r))}for(const n of Sn){const r=t.admin[n];r&&"function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=En(r,!0))}Tn(e.auth)}}(e)},An=(0,c._C)(e=>{return t=e.supabaseClient,{setupOnce(){Rn(t)},name:"Supabase"};var t});var Ln=n(144),On=n(1111),Dn=n(2808);function Nn(e,t){let n;return(0,Dn.yH)(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function Pn(e,t){return n=>{const r=e(n),o=new Map;function s(t,r){const s=r?`${t}:${r}`:t;let i=o.get(s);if(!i){const a=(0,On.hH)(t);if(!a)return;const c=(0,Ln.Z)(a,n.tunnel);i=r?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=Nn(e,["event","transaction","profile","replay_event"]);return 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){return Nn(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?s(e,void 0):s(e.dsn,e.release)).filter(e=>!!e),o=n.length?n:[["",r]],i=await Promise.all(o.map(([t,n])=>n.send(function(e,t){return(0,Dn.h4)(t?{...e[0],dsn:t}:e[0],e[1])}(e,t))));return i[0]},flush:async function(e){const t=[...o.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}const Fn=new Map,zn=new Set;function Un(e,t){return function(e){if(o.O._sentryModuleMetadata)for(const t of Object.keys(o.O._sentryModuleMetadata)){const n=o.O._sentryModuleMetadata[t];if(zn.has(t))continue;zn.add(t);const r=e(t);for(const e of r.reverse())if(e.filename){Fn.set(e.filename,n);break}}}(e),Fn.get(t)}
1function Bn(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;const t=Un(e,n.filename);t&&(n.module_metadata=t)}})}catch{}}function $n(e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(const t of e.stacktrace.frames||[])delete t.module_metadata})}catch{}}const Hn=(0,c._C)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,Dn.yH)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&($n(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;Bn(e.getOptions().stackParser,t)})}}));var jn=n(491),Wn=n(9411);let qn=!1;function Yn(){function e(){const e=(0,Dt.Bk)(),t=e&&(0,Dt.zU)(e);if(t){const e="internal_error";bt.T&&l.Yz.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:Yt.TJ,message:e})}}qn||(e.tag="sentry_tracingErrorCallback",qn=!0,(0,jn.L)(e),(0,Wn.r)(e))}function Kn(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const Jn=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Vn(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Jn.exec(t);return n?n.slice(1):[]}function Gn(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n="/"===o.charAt(0))}return t=Kn(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function Xn(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}const Zn=(0,c._C)((e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in o.O&&!!o.O.window,s=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename);if(e){if(t){const e=r.filename;0===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=Gn(e).slice(1),t=Gn(t).slice(1);const n=Xn(e.split("/")),r=Xn(t.split("/")),o=Math.min(n.length,r.length);let s=o;for(let e=0;e<o;e++)if(n[e]!==r[e]){s=e;break}let i=[];for(let e=s;e<n.length;e++)i.push("..");return i=i.concat(r.slice(s)),i.join("/")}(t,e):function(e,t){let n=Vn(e)[2]||"";return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n}(e);r.filename=`${n}${s}`}return r}}({isBrowser:r,root:t,prefix:n});function i(e){return{...e,frames:e?.frames?.map(e=>s(e))}}return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:i(e.stacktrace)}}))}}}catch{return e}}(t)),t}}});var Qn=n(1685);const er=(0,c._C)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,Dn.yH)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&($n(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;Bn(e.getOptions().stackParser,t)})},processEvent(t){const n=function(e){const t=(0,Qn.RV)(e);if(!t)return;return t.filter(e=>!!e.filename).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(tr)).map(e=>e.slice(tr.length)):[])}(t);if(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)));if(r){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}}return t}}));const tr="_sentryBundlerPluginAppKey:";function 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 rr(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function or(e){const t=new Set;for(const n of e.issues){const e=rr(n.path);e.length>0&&t.add(e)}const n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,_t.xv)(n.join(", "),100)}`}function sr(e,t=!1,n,r){if(!(n.exception?.values&&r.originalException&&(o=r.originalException,(0,kt.bJ)(o)&&"ZodError"===o.name&&Array.isArray(o.issues))&&0!==r.originalException.issues.length))return n;var o;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(nr);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({f
1ilename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:or(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const ir=(0,c._C)((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>sr(t,e.saveZodIssuesAsAttachment,n,r)}});var ar=n(4988),cr=n(5840),lr=n(5083),ur=n(6279),dr=n(2324),pr=n(7468),hr=n(5201),fr=n(7980),mr=n(4720),gr=n(1738);function yr(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,On.SB)(r)}},s=function(e){return[{type:"user_report"},e]}(e);return(0,Dn.h4)(o,[s])}var _r=n(8361),vr=n(9431);function br(e={}){const t=Ze.jf.document,n=t?.head||t?.body;if(!n)return void(vr.T&&l.Yz.error("[showReportDialog] Global document not defined"));const r=(0,s.o5)(),o=(0,s.KU)(),i=o?.getDsn();if(!i)return void(vr.T&&l.Yz.error("[showReportDialog] DSN not configured"));const a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||(0,ft.Q)()},c=Ze.jf.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=(0,Ln.k)(i,a);const{onLoad:u,onClose:d}=a;if(u&&(c.onload=u),d){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{d()}finally{Ze.jf.removeEventListener("message",e)}};Ze.jf.addEventListener("message",e)}n.appendChild(c)}var Sr=n(7666),kr=n(4283),wr=n(9274),Tr=n(6327),Cr=n(2522),xr=n(7040);const Er=o.O,Ir=new WeakMap,Mr=(0,c._C)((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(Ir.has((0,s.KU)()))for(const t of e)(0,s.v4)(e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let r="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else{r=t.body.message||r}}(0,ft.wd)(`${n}: ${r}`)})}return{name:"ReportingObserver",setupOnce(){if(!(0,xr.vQ)())return;new Er.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){Ir.set(e,!0)}}});var Rr=n(1564);function Ar(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return Lr(e)===Lr(t)}(e,r)}function Lr(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var Or=n(5947);const Dr=(0,c._C)((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!(0,xr.m7)())return;(0,Rr.ur)(n=>{if((0,s.KU)()!==e)return;const{response:r,args:o,error:i,virtualError:a}=n,[c,l]=o;r&&function(e,t,n,r,o){if(zr(e,n.status,n.url)){const e=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;return new Request(e,t)}(t,r);let s,i,a,c;Br()&&([s,a]=Nr("Cookie",e),[i,c]=Nr("Set-Cookie",n));const l=Ur({url:e.url,method:e.method,status:n.status,requestHeaders:s,responseHeaders:i,requestCookies:a,responseCookies:c,error:o});(0,ft.r)(l)}}(t,c,r,l,i||a)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in o.O))return;(0,Or.Mn)(n=>{if((0,s.KU)()!==e)return;const{error:r,virtualError:o}=n,i=n.xhr,a=i[Or.Er];if(!a)return;const{method:c,request_headers:u}=a;try{!function(e,t,n,r,o){if(zr(e,t.status,t.responseURL)){let e,s,i;if(Br()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(s=Fr(e))}catch{}try{i=function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{})}(t)}catch{}e=r}const a=Ur({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:i,responseCookies:s,error:o});(0,ft.r)(a)}}(t,i,c,u,r||o)}catch(e){vr.T&&l.Yz.warn("Error while extracting response event form XHR response",e)}})}(e,t)}}});function Nr(e,t){const n=function(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=Fr(t))}catch{}return[n,r]}function Pr(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Fr(e){return e.split("; ").reduce((e,t)=>
1{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function zr(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)))&&!Ar(n,(0,s.KU)());var r,o}function Ur(e){const t=(0,s.KU)(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:Pr(e.responseHeaders)}}};return(0,gt.M6)(i,{type:"http.client",handled:!1}),i}function Br(){const e=(0,s.KU)();return!!e&&Boolean(e.getOptions().sendDefaultPii)}var $r=n(7607);const Hr=o.O,jr=(0,c._C)((e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>function(e,t){const n=Hr.document,r=Hr.location&&(0,$r.f)(Hr.location.href);if(!n||!r)return e;const o=e.exception?.values;if(!o?.length)return e;const s=n.documentElement.innerHTML;if(!s)return e;const i=["<!DOCTYPE html>","<html>",...s.split("\n"),"</html>"];return o.forEach(e=>{const n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>function(e,t,n,r){if(e.filename!==n||!e.lineno||!t.length)return e;return(0,gt.db)(t,e,r),e}(e,i,r,t)))}),e}(e,t)}});var Wr=n(4693);function qr(e){return new URLSearchParams(e).toString()}function Yr(e,t=l.Yz){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[qr(e)];if(!e)return[void 0]}catch(n){return Wr.T&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Wr.T&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Kr(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Jr(e){const{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=function(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const o=e.match(n);if(o)return{operationType:o[1],operationName:void 0};return{operationType:void 0,operationName:void 0}}(t);return r?`${o} ${r}`:`${o}`}function Vr(e){let t;if("xhr"in e){const n=e.xhr[Or.Er];t=n&&Yr(n.body)[0]}else{t=Yr(Kr(e.input))[0]}return t}function Gr(e){let t;try{const n=JSON.parse(e);!!n.query&&(t=n)}finally{return t}}const Xr=(0,c._C)(e=>({name:"GraphQLClient",setup(t){!function(e,t){e.on("beforeOutgoingRequestSpan",(e,n)=>{const r=(0,Dt.et)(e).data||{};if(!("http.client"===r[St.uT]))return;const o=r[St.c9]||r["http.url"],s=r[St.Ts]||r["http.method"];if(!(0,kt.Kg)(o)||!(0,kt.Kg)(s))return;const{endpoints:i}=t,a=(0,_t.Xr)(o,i),c=Vr(n);if(a&&c){const t=Gr(c);if(t){const n=Jr(t);e.updateName(`${s} ${o} (${n})`),e.setAttribute("graphql.document",c)}}})}(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",(e,n)=>{const{category:r,type:o,data:s}=e;if("http"===o&&("fetch"===r||"xhr"===r)){const e=s?.url,{endpoints:r}=t,o=(0,_t.Xr)(e,r),i=Vr(n);if(o&&s&&i){const e=Gr(i);if(!s.graphql&&e){const t=Jr(e);s["graphql.document"]=e.query,s["graphql.operation"]=t}}}})}(t,e)}}));var Zr=n(946),Qr=n(7786),eo=n(6227),to=n(3594),no=n(4910);const ro=(e,t,n,r)=>{let o,s;return 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)))}},oo=(e=!0)=>{const t=no.j.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},so=()=>{const e=oo();return e?.activationStart??0},io=(e,t=-1)=>{const n=oo();let r="navigate";n&&(no.j.document?.prerendering||so()>0?r="prerender":no.j.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},ao=new WeakMap;function co(e,t){return ao.get(e)||ao.set(e,new t),ao.get(e)}class lo{constructor(){lo.prototype.__init.call(this),lo.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}const uo=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},po=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let ho=-1;const fo=e=>{"hidden"===no.j.document.visibilityState&&ho>-1&&(ho="visibilitychange"===e.type?e.timeStamp:0,mo())},mo=()=>{removeEventListener("visibilitychange",fo,!0),removeEventListener("prerenderingchange",fo,!0)},go=()=>
1{if(no.j.document&&ho<0){const e=so(),t=no.j.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;ho=t??("hidden"!==no.j.document?.visibilityState||no.j.document?.prerendering?1/0:0),addEventListener("visibilitychange",fo,!0),addEventListener("prerenderingchange",fo,!0)}return{get firstHiddenTime(){return ho}}},yo=e=>{no.j.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},_o=[1800,3e3],vo=[.1,.25],bo=(e,t={})=>{((e,t={})=>{yo(()=>{const n=go(),r=io("FCP");let o;const s=uo("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-so(),0),r.entries.push(t),o(!0)))});s&&(o=ro(e,r,_o,t.reportAllChanges))})})(po(()=>{const n=io("CLS",0);let r;const o=co(t,lo),s=e=>{for(const t of e)o._processEntry(t);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},i=uo("layout-shift",s);i&&(r=ro(e,n,vo,t.reportAllChanges),no.j.document?.addEventListener("visibilitychange",()=>{"hidden"===no.j.document?.visibilityState&&(s(i.takeRecords()),r(!0))}),no.j?.setTimeout?.(r))}))},So=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==no.j.document?.visibilityState||e(t)};no.j.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ko=[100,300];let wo=0,To=1/0,Co=0;const xo=e=>{e.forEach(e=>{e.interactionId&&(To=Math.min(To,e.interactionId),Co=Math.max(Co,e.interactionId),wo=Co?(Co-To)/7+1:0)})};let Eo;const Io=()=>Eo?wo:performance.interactionCount||0,Mo=()=>{"interactionCount"in performance||Eo||(Eo=uo("event",xo,{type:"event",buffered:!0,durationThreshold:0}))};let Ro=0;class Ao{constructor(){Ao.prototype.__init.call(this),Ao.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Ro=Io(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor((Io()-Ro)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}}const Lo=e=>{const t=no.j.requestIdleCallback||no.j.setTimeout;"hidden"===no.j.document?.visibilityState?e():(t(e=po(e)),So(e))},Oo=[200,500];class Do{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}const No=[2500,4e3],Po=[800,1800],Fo=e=>{no.j.document?.prerendering?yo(()=>Fo(e)):"complete"!==no.j.document?.readyState?addEventListener("load",()=>Fo(e),!0):setTimeout(e)},zo={},Uo={};let Bo,$o,Ho,jo,Wo;function qo(e,t=!1){return ns("cls",e,Xo,Bo,t)}function Yo(e,t=!1){return ns("lcp",e,Qo,Ho,t)}function Ko(e){return ns("fid",e,Zo,$o)}function Jo(e){return ns("inp",e,ts,Wo)}function Vo(e,t){return rs(e,t),Uo[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);uo(e,t=>{Go(e,{entries:t})},t)}(e),Uo[e]=!0),os(e,t)}function Go(e,t){const n=zo[e];if(n?.length)for(const r of n)try{r(t)}catch(t){Wr.T&&l.Yz.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,Qn.qQ)(r)}\nError:`,t)}}function Xo(){return bo(e=>{Go("cls",{metric:e}),Bo=e},{reportAllChanges:!0})}function Zo(){return((e,t={})=>{yo(()=>{const n=go(),r=io("FID");let o;const s=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),o(!0))},i=e=>{e.forEach(s)},a=uo("first-input",i);o=ro(e,r,ko,t.reportAllChanges),a&&So(po(()=>{i(a.takeRecords()),a.disconnect()}))})})(e=>{Go("fid",{metric:e}),$o=e})}function Qo(){return((e,t={})=>{yo(()=>{const n=go(),r=io("LCP");let o;const s=co(t,Do),i=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)s._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-so(),0),r.entries=[t],o())},a=uo("largest-contentful-paint",i);if(a){o=ro(e,r,No,t.reportAllChanges);const n=po(()=>{i(a.takeRecords()),a.disconnect(),o(!0)});for(const e of["keydown","click","visibilitychange"])no.j.document&&addEventListener(e,()=>Lo(n),{capture:!0,once:!0})}})})(e=>{Go("lcp",{metric:e}),Ho=e},{reportAllChanges:!0})}function es(){return((e,t={})=>{const n=io("TTFB"),r=ro(e,n,Po,t.reportAllChanges);Fo(()=>{const e=oo();e&&(n.value=Math.max(e.responseStart-so(),0),n.entries=[e],r(!0))})})(e=>{Go("ttfb",{metric:e}),jo=e})}function ts(){return((e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&yo(()=>{Mo();const n=io("INP");let r;const o=co(t,Ao),s=e=>{Lo(()=>{for(const t of e)o._processEntry(t);const t=o._estimateP98LongestInteraction();t&&t._latency!==n.value&&(n.value=t._latency,n.entries=t.entries,r())})},i=uo("event",s,{durationThreshold:t.durationThreshold??40});r=ro(e,n,Oo,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),So(()=>{s(i.takeRecords()),r(!0)}))})})(e=>{Go("inp",{metric:e}),Wo=e})}function ns(e,t,n,r,o=!1){let s;return rs(e,t),Uo[e]||(s=n(),Uo[e]=!0),r&&t({metric:r}),os(e,t,o?s:void 0)}function rs(e,t){zo[e]=zo[e]||[],zo[e].push(t)}function os(e,t,n){return()=>{n&&n();const r=zo[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}var ss=n(1221),is=n(5761);const as=o.O,cs="sentryReplaySession",ls="Unable to send Replay",us=15e4,ds=5e3,ps=2e7,hs=36e5;var fs=Object.defineProperty,ms=(e,t,n)=>((e,t,n)=>t in e?fs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),gs=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(gs||{});function ys(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function _s(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function vs(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,bs).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 bs(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=vs(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],s=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),n||r)return t}return t||e.cssText}class Ss{constructor(){ms(this,"idNodeMap",new Map),ms(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-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);
1this.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;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ks({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 ws({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Ts(e){return e.toLowerCase()}function Cs(e){return e.toUpperCase()}const xs="__rrweb_original__";function Es(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ts(t):null}function Is(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function Ms(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const Rs={};function As(e){const t=Rs[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Rs[e]=r.bind(window)}function Ls(...e){return As("setTimeout")(...e)}function Os(...e){return As("clearTimeout")(...e)}function Ds(e){try{return e.contentDocument}catch(e){}}let Ns=1;const Ps=new RegExp("[^a-z0-9-_:]");function Fs(){return Ns++}let zs,Us;const Bs=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,$s=/^(?:[a-z+]+:)?\/\//i,Hs=/^www\..*/i,js=/^(data:)([^,]*),(.*)/i;function Ws(e,t){return(e||"").replace(Bs,(e,n,r,o,s,i)=>{const a=r||s||i,c=n||o||"";if(!a)return e;if($s.test(a)||Hs.test(a))return`url(${c}${a}${c})`;if(js.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`})}const qs=/^[^ \t\n\r\u000c]+/,Ys=/^[, \t\n\r\u000c]+/;const Ks=new WeakMap;function Js(e,t){return t&&""!==t.trim()?Gs(e,t):t}function Vs(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Gs(e,t){let n=Ks.get(e);if(n||(n=e.createElement("a"),Ks.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Xs(e,t,n,r,o,s){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Js(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Ys),!(n>=t.length);){let s=r(qs);if(","===s.slice(-1))s=Js(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=Js(e,s);let i=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?Ws(r,Gs(e)):"object"===t&&"data"===n?Js(e,r):"function"==typeof s?s(n,r,o):r:Js(e,r):r}function Zs(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Qs(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}function ei(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ei(e.parentNode,t,n,r+1):-1}function ti(e,t){return n=>{const r=n;if(null===r)return!1;try{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];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function ni(e,t,n,r,o,s){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["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;if(s){if(c=ei(i,ti(r,o)),c<0)return!0;a=ei(i,ti(t,n),c>=0?c:1/0)}else{if(a=ei(i,ti(t,n)),a<0)return!1;c=ei(i,ti(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!s}catch(e){}return!!s}function ri(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={}
1,inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1}=t,k=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:gs.Document,childNodes:[],compatMode:e.compatMode}:{type:gs.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:gs.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskTextClass:g,unmaskTextClass:y,maskTextSelector:_,unmaskTextSelector:v}=t,b=Qs(e,r,o,s),S=function(e){if(e instanceof HTMLFormElement)return"form";const t=Ts(e.tagName);return Ps.test(t)?"div":t}(e);let k={};const w=e.attributes.length;for(let t=0;t<w;t++){const r=e.attributes[t];r.name&&!Zs(S,r.name,r.value)&&(k[r.name]=Xs(n,S,Ts(r.name),r.value,e,c))}if("link"===S&&i){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let r=null;t&&(r=vs(t)),r&&(k.rel=null,k.href=null,k.crossorigin=null,k._cssText=Ws(r,t.href))}if("style"===S&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=vs(e.sheet);t&&(k._cssText=Ws(t,Gs(n)))}if("input"===S||"textarea"===S||"select"===S||"option"===S){const t=e,n=Es(t),r=Is(t,Cs(S),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=ni(t,g,_,y,v,ks({type:n,tagName:Cs(S),maskInputOptions:a}));k.value=ws({isMasked:e,element:t,value:r,maskInputFn:l})}o&&(k.checked=o)}"option"===S&&(e.selected&&!a.select?k.selected=!0:delete k.selected);if("canvas"===S&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,s=xs in o?o[xs]:o;if(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(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(k.rr_dataURL=t)}if("img"===S&&d){zs||(zs=n.createElement("canvas"),Us=zs.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,s=()=>{t.removeEventListener("load",s);try{zs.width=t.naturalWidth,zs.height=t.naturalHeight,Us.drawImage(t,0,0),k.rr_dataURL=zs.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?k.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}"audio"!==S&&"video"!==S||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime);f||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop));if(b){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==S||h(k.src)||(b||Ds(e)||(k.rr_src=k.src),delete k.src);let T;try{customElements.get(S)&&(T=!0)}catch(e){}return{type:gs.Element,tagName:S,attributes:k,childNodes:[],isSVG:Vs(e)||void 0,needBlock:b,rootId:m,isCustom:T}}(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:k,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=vs(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Ws(p,Gs(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");const g=ni(e,r,s,o,i,n);h||f||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||g)&&(p=l?l(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=ws({isMasked:ni(e,r,s,o,i,ks({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:l})}return{type:gs.Text,textContent:p||"",isStyle:h,rootId:u}}(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:k});case e.CDATA_SECTION_NODE:return{type:gs.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:gs.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function oi(e){return null==e?"":e.toLowerCase()}function si(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:p=!1,inl
1ineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:T=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:E=()=>!1,newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:M=!0}=t;const R=ri(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:I});if(!R)return console.warn(e,"not serialized"),null;let A;A=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===gs.Comment)return!0;if(e.type===gs.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Ms(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(oi(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===oi(e.attributes.name)||"icon"===oi(e.attributes.rel)||"apple-touch-icon"===oi(e.attributes.rel)||"shortcut icon"===oi(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&oi(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(oi(e.attributes.property).match(/^(og|twitter|fb):/)||oi(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===oi(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===oi(e.attributes.name)||"googlebot"===oi(e.attributes.name)||"bingbot"===oi(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===oi(e.attributes.name)||"generator"===oi(e.attributes.name)||"framework"===oi(e.attributes.name)||"publisher"===oi(e.attributes.name)||"progid"===oi(e.attributes.name)||oi(e.attributes.property).match(/^article:/)||oi(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===oi(e.attributes.name)||"yandex-verification"===oi(e.attributes.name)||"csrf-token"===oi(e.attributes.name)||"p:domain_verify"===oi(e.attributes.name)||"verify-v1"===oi(e.attributes.name)||"verification"===oi(e.attributes.name)||"shopify-checkout-api-token"===oi(e.attributes.name)))return!0}}return!1}(R,_)&&(M||R.type!==gs.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?Fs():-2;const L=Object.assign(R,{id:A});if(r.add(e,L),-2===A)return null;k&&k(e);let O=!p;if(L.type===gs.Element){O=O&&!L.needBlock,delete L.needBlock;const t=e.shadowRoot;t&&_s(t)&&(L.isShadowHost=!0)}if((L.type===gs.Document||L.type===gs.Element)&&O){_.headWhitespace&&L.type===gs.Element&&"head"===L.tagName&&(M=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:x,keepIframeSrcFn:E};for(const n of Array.from(e.childNodes)){const e=si(n,t);e&&L.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=si(n,t);r&&(_s(e.shadowRoot)&&(r.isShadow=!0),L.childNodes.push(r))}}return e.parentNode&&ys(e.parentNode)&&_s(e.parentNode)&&(L.isShadow=!0),L.type!==gs.Element||"iframe"!==L.tagName||Qs(e,o,s,i)||function(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=Ls(()=>{s||(t(),s=!0)},n);return void e.addEventListener("load",()=>{Os(r),s=!0,t()})}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return Ls(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=Ds(e);if(t&&w){const n=si(t,{doc:t,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:x,keepIframeSrcFn:E});n&&w(e,n)}},T),L.type===gs.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===Ms(L.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const s=Ls(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{Os(s),o=!0,t()})}(e,()=>{if(C){const t=si(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:x,keepIframeSrcFn:E});t&&C(e,t)}},x),L}function ii(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const ai="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let ci={map:{},getId:()=>(console.error(ai),-1),getNode:()=>(console.error(ai),null),removeNodeFromMap(){console.error(ai)},has:()=>(console.error(ai),!1),reset(){console.error(ai)}};function li(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=t-(i-o),c=this;a<=0||a>t?(r&&(!function(...e){Mi("clearTimeout")(...e)}
1(r),r=null),o=i,e.apply(c,s)):r||!1===n.trailing||(r=Ri(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,s)},a))}}function ui(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){Ri(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>ui(e,t,s||{},!0)}function di(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ci=new Proxy(ci,{get:(e,t,n)=>("map"===t&&console.error(ai),Reflect.get(e,t,n))}));let pi=Date.now;function hi(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function fi(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function mi(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function gi(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function yi(e,t,n,r,o){if(!e)return!1;const s=gi(e);if(!s)return!1;const i=ti(t,n);if(!o){const e=r&&s.matches(r);return i(s)&&!e}const a=ei(s,i);let c=-1;return!(a<0)&&(r&&(c=ei(s,ti(null,r))),a>-1&&c<0||a<c)}function _i(e,t){return-2===t.getId(e)}function vi(e,t){if(ys(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||vi(e.parentNode,t))}function bi(e){return Boolean(e.changedTouches)}function Si(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ki(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function wi(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(pi=()=>(new Date).getTime());class Ti{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return 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 Ci(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function xi(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Ci(n);)n=t;return n}(e);return t.contains(n)}function Ei(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||xi(e))}const Ii={};function Mi(e){const t=Ii[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Ii[e]=r.bind(window)}function Ri(...e){return Mi("setTimeout")(...e)}var Ai=(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))(Ai||{}),Li=(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))(Li||{}),Oi=(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))(Oi||{}),Di=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Di||{}),Ni=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Ni||{});function Pi(e){try{return e.contentDocument}catch(e){}}function Fi(e){return"__ln"in e}class zi{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Fi(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
1(n.previous=t)}else if(e.nextSibling&&Fi(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.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;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.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 Ui=(e,t)=>`${e}@${t}`;class Bi{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;const e=[],t=new Set,n=new zi,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Ei(o))return;const s=ys(o.parentNode)?this.mirror.getId(Ci(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=si(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=>{Si(e,this.mirror)&&!yi(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),ki(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),wi(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{yi(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)}});a&&(e.push({parentId:s,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Hi(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)ji(this.droppedSet,e)||Hi(this.removes,e,this.mirror)?ji(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let s=null;for(;n.length;){let e=null;if(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;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}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;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.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(!_i(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;yi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ni(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,gi(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Es(t),o=t.tagName;r=Is(t,o,n);const s=ks({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=ws({isMasked:ni(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(yi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);
1if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Pi(t))return;n="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"),!Zs(t.tagName,n)&&(o.attributes[n]=Xs(this.doc,Ts(t.tagName),Ts(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");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);r!==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(yi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),r=ys(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);yi(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||_i(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?($i(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||vi(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Ui(n,r)]?$i(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!ys(e.target)||!_s(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(_i(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Ui(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);yi(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),wi(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 $i(e,t){e.delete(t),t.childNodes.forEach(t=>$i(e,t))}function Hi(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function ji(e,t){return 0!==e.size&&Wi(e,t)}function Wi(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Wi(e,n))}let qi;const Yi=e=>{if(!qi)return e;return(...t)=>{try{return e(...t)}catch(e){if(qi&&!0===qi(e))return()=>{};throw e}}},Ki=[];function Ji(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Vi(e,t){const n=new Bi;Ki.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);const s=new r(Yi(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function Gi({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(Oi).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEac
1h(i=>{let a=Ts(i);const u=(t=>i=>{const a=Ji(i);if(yi(a,r,o,s,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=Di.Mouse;break;case"touch":c=Di.Touch;break;case"pen":c=Di.Pen}c===Di.Touch?Oi[t]===Oi.MouseDown?u="TouchStart":Oi[t]===Oi.MouseUp&&(u="TouchEnd"):Di.Pen}else bi(i)&&(c=Di.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===Di.Touch||u.startsWith("Mouse")&&c===Di.Mouse)&&(c=null)):Oi[t]===Oi.Click&&(c=l,l=null);const d=bi(i)?i.changedTouches[0]:i;if(!d)return;const p=n.getId(a),{clientX:h,clientY:f}=d;Yi(e)({type:Oi[u],id:p,x:h,y:f,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(Oi[i]){case Oi.MouseDown:case Oi.MouseUp:a=a.replace("mouse","pointer");break;case Oi.TouchStart:case Oi.TouchEnd:return}c.push(ii(a,u,t))}),Yi(()=>{c.forEach(e=>e())})}function Xi({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){return ii("scroll",Yi(li(Yi(i=>{const a=Ji(i);if(!a||yi(a,r,o,s,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=hi(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})}),i.scroll||100)),t)}const Zi=["INPUT","TEXTAREA","SELECT"],Qi=new WeakMap;function ea({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=Ji(e);const u=e.isTrusted,g=n&&Cs(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Zi.indexOf(g)<0||yi(n,r,o,s,!0))return;const _=n;if(_.classList.contains(i)||a&&_.matches(a))return;const v=Es(n);let b=Is(_,g,v),S=!1;const k=ks({maskInputOptions:c,tagName:g,type:v}),w=ni(n,p,f,h,m,k);"radio"!==v&&"checkbox"!==v||(S=n.checked),b=ws({isMasked:w,element:n,value:b,maskInputFn:l}),y(n,d?{text:b,isChecked:S,userTriggered:u}:{text:b,isChecked:S});const T=n.name;"radio"===v&&T&&S&&t.querySelectorAll(`input[type="radio"][name="${T}"]`).forEach(e=>{if(e!==n){const t=ws({isMasked:w,element:e,value:Is(e,g,v),maskInputFn:l});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,r){const o=Qi.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Qi.set(t,r);const o=n.getId(t);Yi(e)({...r,id:o})}}const _=("last"===u.input?["change"]:["input","change"]).map(e=>ii(e,Yi(g),t)),v=t.defaultView;if(!v)return()=>{_.forEach(e=>e())};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...S.map(e=>ui(e[0],e[1],{set(){Yi(g)({target:this,isTrusted:!1})}},!1,v))),Yi(()=>{_.forEach(e=>e())})}function ta(e){return function(e,t){if(sa("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||sa("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||sa("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||sa("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function na(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function ra({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,s=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(e){const n=s.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Yi(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function oa(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Vi(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=li(Yi(t=>{const n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),s),l=Yi(li(Yi(e=>{const t=Ji(e),{clientX:n,clientY:o}=bi(e)?e.changedTouches[0]:e;i||(i=pi()),a.push({x:n,y:o,id:r.getId(t),timeOffset:pi()-i}
vendor: 4,860 bytes, line 1
1),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Li.Drag:e instanceof MouseEvent?Li.MouseMove:Li.TouchMove)}),o,{trailing:!1})),u=[ii("mousemove",l,n),ii("touchmove",l,n),ii("drag",l,n)];return Yi(()=>{u.forEach(e=>e())})}(e),s=Gi(e),i=Xi(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ii("resize",Yi(li(Yi(()=>{const t=fi(),o=mi();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)}),200)),t)}(e,{win:n}),c=ea(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=Yi(i=>li(Yi(s=>{const a=Ji(s);if(!a||yi(a,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=a;e({type:i,id:o.getId(a),currentTime:c,volume:l,muted:u,playbackRate:d})}),s.media||500)),c=[ii("play",a(Ni.Play),i),ii("pause",a(Ni.Pause),i),ii("seeked",a(Ni.Seeked),i),ii("volumechange",a(Ni.VolumeChange),i),ii("ratechange",a(Ni.RateChange),i)];return Yi(()=>{c.forEach(e=>e())})}(e);let u=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Yi((r,o,s)=>{const[i,a]=s,{id:c,styleId:l}=na(o,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:a}]}),r.apply(o,s)})});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:Yi((r,o,s)=>{const[i]=s,{id:a,styleId:c}=na(o,t,n.styleMirror);return(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:Yi((r,o,s)=>{const[i]=s,{id:a,styleId:c}=na(o,t,n.styleMirror);return(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:Yi((r,o,s)=>{const[i]=s,{id:a,styleId:c}=na(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(o,s)})}));const c={};ia("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(ia("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),ia("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),ia("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([r,o])=>{l[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(l[r].insertRule,{apply:Yi((r,o,s)=>{const[i,a]=s,{id:c,styleId:l}=na(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...ta(o),a||0]}]}),r.apply(o,s)})}),o.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:Yi((r,o,s)=>{const[i]=s,{id:a,styleId:c}=na(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...ta(o),i]}]}),r.apply(o,s)})})}),Yi(()=>{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=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}(e,{win:n}),d=ra(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Yi((o,i,a)=>{const[c,l,u]=a;if(n.has(c))return s.apply(i,[c,l,u]);const{id:d,styleId:p}=na(i.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:l,priority:u},index:ta(i.parentRule)}),o.apply(i,a)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Yi((o,s,a)=>{const[c]=a;if(n.has(c))return i.apply(s,[c]);const{id:l,styleId:u}=na(s.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:ta(s.parentRule)}),o.apply(s,a)})}),Yi(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),e.collectFonts&&(h=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=di(t.fonts,"add",function(t){return function(n){return Ri(Yi(()=>{const t=o.get(n);t&&(e(t),o.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(i),Yi(()=>
1{r.forEach(e=>e())})}(e)));const f=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e;let a=!0;const c=Yi(()=>{const e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:u,endOffset:d}=i;yi(a,r,o,s,!0)||yi(u,r,o,s,!0)||c.push({start:n.getId(a),startOffset:l,end:n.getId(u),endOffset:d})}i({ranges:c})});return c(),ii("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?di(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=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Yi(()=>{Ki.forEach(e=>e.reset()),r?.disconnect(),o(),s(),i(),a(),c(),l(),u(),d(),p(),h(),f(),m(),g.forEach(e=>e())})}function sa(e){return void 0!==window[e]}function ia(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class aa{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);let i=o.get(t);return 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);return t.map(t=>this.getId(e,t,n,r))}
1getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=r.get(t);return o||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class ca{constructor(){this.crossOriginIframeMirror=new aa(Fs),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class la{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new aa(Fs),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new aa(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}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const n=Pi(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Ai.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Ai.IncrementalSnapshot,data:{source:Li.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ai.Meta:case Ai.Load:case Ai.DomContentLoaded:return!1;case Ai.Plugin:return t;case Ai.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Ai.IncrementalSnapshot:switch(t.data.source){case Li.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),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;case Li.Drag:case Li.TouchMove:case Li.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Li.ViewportResize:return!1;case Li.MediaInteraction:case Li.MouseInteraction:case Li.Scroll:case Li.CanvasMutation:case Li.Input:return this.replaceIds(t.data,e,["id"]),t;case Li.StyleSheetRule:case Li.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Li.Font:return t;case Li.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case Li.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(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]));return 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.forEac
1h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===gs.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ua{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class da{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(!_s(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=Vi({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Xi({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Ri(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(ra({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=Pi(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(di(e.prototype,"attachShadow",function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&Ei(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()}}for(var pa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ha="undefined"==typeof Uint8Array?[]:new Uint8Array(256),fa=0;fa<64;fa++)ha[pa.charCodeAt(fa)]=fa;class ma{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class ga{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ti,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;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:bs(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 ya{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){Mi("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let _a,va;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ba=new Ss;function Sa(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:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,maxCanvasSize:S=null,packFn:k,sampling:w={},dataURLOptions:T={},mousemoveWait:C,recordDOM:x=!0,recordCanvas:E=!1,recordCrossOriginIframes:I=!1,recordAfter:M=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:A=!1,inlineImages:L=!1,plugins:O,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:P,onMutation:F,getCanvasManager:z}=e;qi=P;const U=!I||window.parent===window;let B=!1;if(!U)try{window.parent.document&&(B=!1)}catch(e){B=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!B)return()=>{};void 0!==C&&void 0===w.mousemove&&(w.mousemove=C),ba.reset();const $=!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===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let j;!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];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let W=0;const q=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!B&&(e=k(e)),e};_a=(e,o)=>{const s=e;if(s.timestamp=pi(),!Ki[0]?.isFrozen()||s.type===Ai.FullSnapshot||s.type===Ai.IncrementalSnapshot&&s.data.source===Li.Mutation||Ki.forEach(e
1=>e.unfreeze()),U)t?.(q(s),o);else if(B){const e={type:"rrweb",event:q(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(s.type===Ai.FullSnapshot)j=s,W=0;else if(s.type===Ai.IncrementalSnapshot){if(s.data.source===Li.Mutation&&s.data.isAttachIframe)return;W++;const e=r&&W>=r,t=n&&j&&s.timestamp-j.timestamp>n;(e||t)&&ee(!0)}};const Y=e=>{_a({type:Ai.IncrementalSnapshot,data:{source:Li.Mutation,...e}})},K=e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.Scroll,...e}}),J=e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.CanvasMutation,...e}}),V=new ga({mutationCb:Y,adoptedStyleSheetCb:e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.AdoptedStyleSheet,...e}})}),G="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ca:new la({mirror:ba,mutationCb:Y,stylesheetManager:V,recordCrossOriginIframes:I,wrappedEmit:_a});for(const e of O||[])e.getMirror&&e.getMirror({nodeMirror:ba,crossOriginIframeMirror:G.crossOriginIframeMirror,crossOriginIframeStyleMirror:G.crossOriginIframeStyleMirror});const X=new ya,Z=function(e,t){try{return e?e(t):new ma}catch{return console.warn("Unable to initialize CanvasManager"),new ma}}(z,{mirror:ba,win:window,mutationCb:e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.CanvasMutation,...e}}),recordCanvas:E,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:S,sampling:w.canvas,dataURLOptions:T,errorHandler:P}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ua:new da({mutationCb:Y,scrollCb:K,bypassOptions:{onMutation:F,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:$,dataURLOptions:T,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,recordCanvas:E,inlineImages:L,sampling:w,slimDOMOptions:H,iframeManager:G,stylesheetManager:V,canvasManager:Z,keepIframeSrcFn:D,processedNodeManager:X},mirror:ba}),ee=(e=!1)=>{if(!x)return;_a({type:Ai.Meta,data:{href:window.location.href,width:mi(),height:fi()}},e),V.reset(),Q.init(),Ki.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new Ss,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:C,keepIframeSrcFn:x=()=>!1}=t||{};return si(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:C,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:ba,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:$,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,slimDOM:H,dataURLOptions:T,recordCanvas:E,inlineImages:L,onSerialize:e=>{Si(e,ba)&&G.addIframe(e),ki(e,ba)&&V.trackLinkElement(e),wi(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{G.attachIframe(e,t),e.contentWindow&&Z.addWindow(e.contentWindow),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{V.attachLinkElement(e,t)},keepIframeSrcFn:D});if(!t)return console.warn("Failed to snapshot the document");_a({type:Ai.FullSnapshot,data:{node:t,initialOffset:hi(window)}}
1),Ki.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,ba.getId(document))};va=ee;try{const e=[],t=e=>Yi(oa)({onMutation:F,mutationCb:Y,mousemoveCb:(e,t)=>_a({type:Ai.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.ViewportResize,...e}}),inputCb:e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.Input,...e}}),mediaInteractionCb:e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.MediaInteraction,...e}}),styleSheetRuleCb:e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.StyleSheetRule,...e}}),styleDeclarationCb:e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.StyleDeclaration,...e}}),canvasMutationCb:J,fontCb:e=>_a({type:Ai.IncrementalSnapshot,data:{source:Li.Font,...e}}),selectionCb:e=>{_a({type:Ai.IncrementalSnapshot,data:{source:Li.Selection,...e}})},customElementCb:e=>{_a({type:Ai.IncrementalSnapshot,data:{source:Li.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:$,inlineStylesheet:f,sampling:w,recordDOM:x,recordCanvas:E,inlineImages:L,userTriggeredOnInput:R,collectFonts:A,doc:e,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:D,blockSelector:s,unblockSelector:i,slimDOMOptions:H,dataURLOptions:T,mirror:ba,iframeManager:G,stylesheetManager:V,shadowDomManager:Q,processedNodeManager:X,canvasManager:Z,ignoreCSSAttributes:N,plugins:O?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>_a({type:Ai.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});G.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ii("DOMContentLoaded",()=>{_a({type:Ai.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()})),e.push(ii("load",()=>{_a({type:Ai.Load,data:{}}),"load"===M&&n()},window))),()=>{e.forEach(e=>e()),X.destroy(),va=void 0,qi=void 0}}catch(e){console.warn(e)}}var ka,wa;Sa.mirror=ba,Sa.takeFullSnapshot=function(e){if(!va)throw new Error("please take full snapshot after start recording");va(e)},(wa=ka||(ka={}))[wa.NotStarted=0]="NotStarted",wa[wa.Running=1]="Running",wa[wa.Stopped=2]="Stopped";function Ta(e){return e>9999999999?e:1e3*e}function Ca(e){return e>9999999999?e/1e3:e}function xa(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ai.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,wt.S8)(t,10,1e3)}}),"console"===t.category)))}function Ea(e){return e.closest("button,a")||e}function Ia(e){const t=Ma(e);return t&&t instanceof Element?Ea(t):t}function Ma(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Ra;function Aa(e){return Ra||(Ra=[],(0,cn.GS)(as,"open",function(e){return function(...t){if(Ra)try{Ra.forEach(e=>e())}catch{}return e.apply(as,t)}})),Ra.push(e),()=>{const t=Ra?Ra.indexOf(e):-1;t>-1&&Ra.splice(t,1)}}const La=new Set([Li.Mutation,Li.StyleSheetRule,Li.StyleDeclaration,Li.AdoptedStyleSheet,Li.CanvasMutation,Li.Selection,Li.MediaInteraction]);class Oa{constructor(e,t,n=xa){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=Aa(()=>{this._lastMutation=Na()});this._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){if(!Da.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;
1if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:Ca(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._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=Ca(e)}registerScroll(e=Date.now()){this._lastScroll=Ca(e)}registerClick(e){const t=Ea(e);this._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=Na();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),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;if(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:as.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}};return void this._addBreadcrumbEvent(t,o)}if(s>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:as.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,to.wg)(()=>this._checkClicks(),1e3)}}const Da=["A","BUTTON","INPUT"];function Na(){return Date.now()/1e3}function Pa(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(La.has(n)&&e.registerMutation(t.timestamp),n===Li.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Li.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=Sa.mirror.getNode(r);o instanceof HTMLElement&&n===Oi.Click&&e.registerClick(o)}}catch{}}function Fa(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var za=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(za||{});const Ua=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Ba(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Ua.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const $a=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Ia(e.event):Ma(e.event),n=(0,a.Hd)(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}(e);return Fa({category:`ui.${e.name}`,...Ha(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;var s,i,c;!(r&&e.clickDetector&&o?.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(s=e.clickDetector,i=n,c=Ia(t.event),s.handleClick(i,c)),xa(e,n)};function Ha(e,t){const n=Sa.mirror.getId(e),r=n&&Sa.mirror.getNode(n),o=r&&Sa.mirror.getMeta(r),s=o&&function(e){return e.type===za.Element}(o)?o:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>
1e.type===za.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:Ba(s.attributes)}}:{}}}function ja(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=e;if(!i||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(i)||!s)return null;const c=t||r||o,l=1===s.length;if(!c&&l)return null;const u=(0,a.Hd)(i,{maxStringLength:200})||"<unknown>",d=Ha(i,u);return Fa({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}(t);n&&xa(e,n)}const Wa={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:Ka(s),end:Ka(o),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,s=Ka(o);return{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:l,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;if(0===o)return null;return{type:`${t}.${m}`,start:Ka(h),end:Ka(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:p}}}};function qa(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Ya(e){const t=Wa[e.entryType];return t?t(e):null}function Ka(e){return(((0,Ut.k3)()||as.performance.timeOrigin)+e)/1e3}function Ja(e){const t=e.entries[e.entries.length-1];return Qa(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Va(e){return void 0!==e.sources}function Ga(e){const t=[],n=[];for(const r of e.entries)if(Va(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=Sa.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Qa(e,"cumulative-layout-shift",n,t)}function Xa(e){const t=e.entries[e.entries.length-1];return Qa(e,"first-input-delay",t?.target?[t.target]:void 0)}function Za(e){const t=e.entries[e.entries.length-1];return Qa(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function Qa(e,t,n,r){const o=e.value,s=e.rating,i=Ka(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map(e=>Sa.mirror.getId(e)):void 0,attributions:r}}}const ec="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const tc=["log","warn","error"],nc="[Replay] ";function rc(e,t="info"){(0,vn.Z)({category:"console",data:{logger:"replay"},level:t,message:`${nc}${e}`},{level:t})}const oc=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return ec?(tc.forEach(e=>{n[e]=(...n)=>{l.Yz[e](nc,...n),t&&rc(n.join(""),(0,yt.t)(e))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),l.Yz.error(nc,r),e?(0,ft.Cp)(r):t&&rc(r,"error")},n.infoTick=(...e)=>{l.Yz.log(nc,...e),t&&setTimeout(()=>rc(e[0]),0)}):tc.forEach(e=>{n[e]=()=>{}}),n}();class sc extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class ic{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>ps)throw new sc;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.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];return e?Ta(e):null}}class ac{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>
1{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){ec&&oc.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise((r,o)=>{const s=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",s),!i.success)return ec&&oc.error("Error in compression worker: ",i.response),void o(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class cc{constructor(e){this._worker=new ac(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Ta(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>ps?Promise.reject(new sc):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{ec&&oc.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");return this._earliestTimestamp=null,this._totalSize=0,e}}class lc{constructor(e){this._fallback=new ic,this._compression=new cc(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=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(ec&&oc.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){ec&&oc.exception(e,"Failed to add events when switching buffers.")}}}function uc({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['
vendor: 10,329 bytes, line 1
1var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
1']);return URL.createObjectURL(e)}();return""}();if(!t)return;ec&&oc.log("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new lc(n)}catch(e){ec&&oc.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return ec&&oc.log("Using simple buffer"),new ic}function dc(){try{return"sessionStorage"in as&&!!as.sessionStorage}catch{return!1}}function pc(e){!function(){if(!dc())return;try{as.sessionStorage.removeItem(cs)}catch{}}(),e.session=void 0}function hc(e){return void 0!==e&&Math.random()<e}function fc(e){if(dc())try{as.sessionStorage.setItem(cs,JSON.stringify(e))}catch{}}function mc(e){const t=Date.now();return{id:e.id||(0,gt.eJ)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function gc({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return hc(e)?"session":!!t&&"buffer"}(e,t),s=mc({sampled:o,previousSessionId:r});return n&&fc(s),s}function yc(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function _c(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return yc(e.started,t,r)||yc(e.lastActivity,n,r)}function vc(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!_c(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function bc({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&function(){if(!dc())return null;try{const e=as.sessionStorage.getItem(cs);if(!e)return null;const t=JSON.parse(e);return ec&&oc.infoTick("Loading existing session"),mc(t)}catch{return null}}();return o?vc(o,{sessionIdleExpire:e,maxReplayDuration:t})?(ec&&oc.infoTick("Session in sessionStorage is expired, creating new one..."),gc(r,{previousSessionId:o.id})):o:(ec&&oc.infoTick("Creating new session"),gc(r,{previousSessionId:n}))}function Sc(e,t,n){return!!wc(e,t)&&(kc(e,t,n),!0)}async function kc(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Ai.Custom}(e))return t(e)}catch(e){return ec&&oc.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!s)return;return await r.addEvent(s)}catch(t){const n=t&&t instanceof sc,i=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:i});const a=(0,s.KU)();a&&a.recordDroppedEvent("internal_sdk_error","replay")}}function wc(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Ta(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(ec&&oc.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function Tc(e){return!e.type}function Cc(e){return"transaction"===e.type}function xc(e){return"feedback"===e.type}function Ec(e){return(t,n)=>{if(!e.isEnabled()||!Tc(t)&&!Cc(t))return;const r=n?.statusCode;!r||r<200||r>=300||(Cc(t)?function(e,t){const n=e.getContext();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();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;(0,to.wg)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t))}}function Ic(e){return t=>{e.isEnabled()&&Tc(t)&&function(e,t){const n=t.exception?.values?.[0]?.value;if("string"!=typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){xa(e,Fa({category:"replay.hydrate-error",data:{url:(0,a.$N)()}}))}}(e,t)}}function Mc(e){const t=(0,s.KU)();t&&t.on("beforeAddBreadcrumb",t=>function(e,t){if(!e.isEnabled()||!Rc(t))return;const n=function(e){if(!Rc(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return Fa(e);let n=!1;const r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>ds?(n=!0,`${e.slice(0,ds)}…`):e;if("object"==typeof e)try{const t=(0,wt.S8)(e,7);return JSON.stringify(t).length>ds?(n=!0,`${JSON.stringify(t,null,2).slice(0,ds)}…`):t}catch{}return e});return Fa({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return Fa(e)}(t);n&&xa(e,n)}(e,t))}function Rc(e){return!!e.category}function Ac(){const e=(0,s.o5)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,Dt.Bk)();if(t){delete(0,Pt.k1)(t).replay_id}}function Lc(e){return Object.assign((t,n)=>
1{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Tc(t)&&!Cc(t)&&!xc(t))return t;if(!e.checkAndHandleExpiredSession())return Ac(),t;if(xc(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:Ai.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;if(function(e,t){return!(e.type||!e.exception?.values?.length||!t.originalException?.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return ec&&oc.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==ls&&!(!t.exception||t.type)&&hc(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t},{id:"Replay"})}function Oc(e,t){return t.map(({type:t,start:n,end:r,name:o,data:s})=>{const i=e.throttledAddEvent({type:Ai.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof i?Promise.resolve(null):i})}function Dc(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Oc(e,[n]),!1)))}}function Nc(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!ec||!e.getOptions()._experiments.traceInternals)&&Ar(t,(0,s.KU)())}(e,t.name)||e.addUpdate(()=>(Oc(e,[t]),!0)))}function Pc(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=qr(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Fc(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function zc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Uc(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:s,statusCode:i,request:a,response:c}}}function Bc(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function $c(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>us,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,us);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=o,s?.length&&(r._meta={warnings:s}),r}function Hc(e,t){return Object.entries(e).reduce((n,[r,o])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=o),n},{})}function jc(e,t){const n=function(e,t=as.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(as.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return(0,_t.Xr)(n,t)}async function Wc(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:l,response_body_size:u}=e.data,d=jc(i,n.networkDetailAllowUrls)&&!jc(i,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return Yc(e[0],t);if(2===e.length)return Yc(e[1],t);return{}}(n,t):{};if(!e)return $c(o,r,void 0);const s=Kr(n),[i,a]=Yr(s,oc),c=$c(o,r,i);if(a)return zc(c,a);return c}(n,t.input,l):Bc(l),h=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return Bc(o);const s=r?qc(r.headers,n):{};if(!r||!t&&void 0!==o)return $c(s,o,void 0);const[i,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){ec&&oc.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise((t,n)=>{const r=(0,to.wg)(()=>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);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(ec&&oc.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(ec&&oc.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?.length&&void 0===n?Pc(e):n;return r?$c(o,s,t?e:void 0):Bc(s)}catch(e){return ec&&oc.exception(e,"Failed to serialize response body"),$c(o,n,void 0)}}(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:s});if(a)return zc(c,a);return c}(d,n,t.response,u);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:c,request:p,response:h}}
1(e,t,n),o=Uc("resource.fetch",r);Nc(n.replay,o)}catch(e){ec&&oc.exception(e,"Failed to capture fetch breadcrumb")}}function qc(e,t){const n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function Yc(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?qc(n,t):Array.isArray(n)?{}:Hc(n,t):{}}async function Kc(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:l,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!a||!jc(c,n.networkDetailAllowUrls)||jc(c,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:s,url:c,method:l,statusCode:u,request:Bc(d),response:Bc(p)}}const h=a[Or.Er],f=h?Hc(h.request_headers,n.networkRequestHeaders):{},m=Hc(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{})}(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?Yr(i,oc):[void 0],[_,v]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return ec&&oc.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ec&&oc.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return ec&&oc.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=$c(f,d,g),S=$c(m,p,_);return{startTimestamp:o,endTimestamp:s,url:c,method:l,statusCode:u,request:y?zc(b,y):b,response:v?zc(S,v):S}}(e,t,n),o=Uc("resource.xhr",r);Nc(n.replay,o)}catch(e){ec&&oc.exception(e,"Failed to capture xhr breadcrumb")}}function Jc(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=Pc(r),s=n.getResponseHeader("content-length")?Fc(n.getResponseHeader("content-length")):function(e,t){try{return Pc("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}function Vc(e){const t=(0,s.KU)();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(n)&&(Jc(t,n),Kc(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e?.response}(n)&&(!function(e,t){const{input:n,response:r}=t,o=Pc(n?Kr(n):void 0),s=r?Fc(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}(t,n),Wc(t,n,e))}catch(e){ec&&oc.exception(e,"Error when enriching network breadcrumb")}}(a,e,t))}catch{}}function Gc(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Xc(e,t,n){return function(e,t,n){let r,o,s;const i=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function u(){return o&&clearTimeout(o),o=a(c,t),i&&void 0===s&&(s=a(c,i)),r}return u.cancel=l,u.flush=function(){return void 0!==o||void 0!==s?c():r},u}(e,t,{...n,setTimeoutImpl:to.wg})}const Zc=o.O.navigator;function Qc(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(ec&&oc.warn("Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&Pa(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!Sc(e,n,o))return!0;if(!o)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Sc(e,function(e){const t=e.getOptions();return{type:Ai.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();n&&(ec&&oc.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&fc(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}}async function el({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const a=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:l,traceIds:u,initialTimestamp:d}=r,p=(0,s.KU)(),h=(0,s.o5)(),f=p?.getTransport(),m=p?.getDsn();if(!(p&&f&&m&&i.sampled))return(0,Qr.XW)({});const g={type:"replay_event",replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:l,trace_ids:u,urls:c,replay_id:t,segment_id:n,replay_type:i.sampled},y=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)};e.emit("preprocessEvent",r,o);const i=await(0,Zr.mG)(e.getOptions(),r,o,t,e,(0,s.rm)());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";
1const a=e.getSdkMetadata(),{name:c,version:l}=a?.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0"},i}({scope:h,client:p,replayId:t,event:g});if(!y)return p.recordDroppedEvent("event_processor","replay"),ec&&oc.log("An event processor returned `null`, will not send event."),(0,Qr.XW)({});delete y.sdkProcessingMetadata;const _=function(e,t,n,r){return(0,Dn.h4)((0,Dn.n2)(e,(0,Dn.Cj)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(y,a,m,p.getOptions().tunnel);let v;try{v=await f.send(_)}catch(e){const t=new Error(ls);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new tl(v.statusCode);const b=(0,eo.wq)({},v);if((0,eo.Jz)(b,"replay"))throw new nl(b);return v}class tl extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class nl extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function rl(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await el(e),!0}catch(n){if(n instanceof tl||n instanceof nl)throw n;if((0,ft.o)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${ls} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{(0,to.wg)(async()=>{try{await rl(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}const ol="__THROTTLED";function sl(e,t,n){const r=new Map;let o=!1;return(...s)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})})(i),[...r.values()].reduce((e,t)=>e+t,0)>=t){const e=o;return o=!0,e?"__SKIPPED":ol}o=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...s)}}class il{constructor({options:e,recordingOptions:t}){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=Xc(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=sl((e,t)=>function(e,t,n){return wc(e,t)?kc(e,t,n):Promise.resolve(null)}(this,e,t),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new Oa(this,o)),ec){const t=e._experiments;oc.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===as.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=Fa({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=Fa({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{ja(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){ec&&oc.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",ec&&oc.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):ec&&oc.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(ec&&oc.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(ec&&oc.log("Buffering is in progress, call `flush()` to save the replay"));ec&&oc.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=bc({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}
1startBuffering(){if(this._isEnabled)return void(ec&&oc.log("Buffering is in progress, call `flush()` to save the replay"));ec&&oc.infoTick("Starting replay in buffer mode");const e=bc({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Sa({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Qc(this),.../iPhone|iPad|iPod/i.test(Zc?.userAgent??"")||/Macintosh/i.test(Zc?.userAgent??"")&&Zc?.maxTouchPoints&&Zc?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...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;try{ec&&oc.log("Stopping Replay"+(t?` triggered by ${t}`:"")),Ac(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,pc(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),ec&&oc.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),ec&&oc.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();ec&&oc.log("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&yc(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${as.location.pathname}${as.location.hash}${as.location.search}`,t=`${as.location.origin}${e}`;this.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);if(n===ol){const e=Fa({category:"replay.throttled"});this.addUpdate(()=>!Sc(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastActiveSpan||(0,Dt.Bk)(),t=e&&(0,Dt.zU)(e),n=(t&&(0,Dt.et)(t).data||{})[St.i_];if(t&&n&&["route","custom"].includes(n))return(0,Dt.et)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=uc({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=bc({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!vc(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{as.document.addEventListener("visibilitychange",this._handleVisibilityChange),as.addEventListener("blur",this._handleWindowBlur),as.addEventListener("focus",this._handleWindowFocus),as.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e,{autoFlushOnFeedback:t}){const n=(0,s.KU)();(0,ss.i)($a(e)),(0,is._)(Dc(e)),Mc(e),Vc(e);const r=Lc(e);(0,ft.SA)(r),n&&(n.on("beforeSendEvent",Ic(e)),n.on("afterSendEvent",Ec(e)),n.on("createDsc",t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),n.on("spanStart",t=>{e.lastActiveSpan=t}),n.on("spanEnd",t=>{e.lastActiveSpan=t}),n.on("beforeSendFeedback",async(n,r)=>{const o=e.getSessionId();
1r?.includeReplay&&e.isEnabled()&&o&&n.contexts?.feedback&&("api"===n.contexts.feedback.source&&t&&await e.flush(),n.contexts.feedback.replay_id=o)}),t&&n.on("openFeedbackWidget",async()=>{await e.flush()}))}(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),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=[];return["navigation","paint","resource"].forEach(e=>{r.push(Vo(e,n))}),r.push(Yo(qa(Ja,e)),qo(qa(Ga,e)),Ko(qa(Xa,e)),Jo(qa(Za,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{as.document.removeEventListener("visibilitychange",this._handleVisibilityChange),as.removeEventListener("blur",this._handleWindowBlur),as.removeEventListener("focus",this._handleWindowFocus),as.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;_c(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):ec&&oc.log("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:Ai.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(Ya).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(Oc(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&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};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(Oc(e,[Gc(as.performance.memory)]))}catch{return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await rl({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"});const t=(0,s.KU)();if(t){const n=e instanceof nl?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else ec&&oc.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(ec&&oc.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return ec&&oc.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&ec&&oc.log("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&fc(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{const n=function(e){if(!e)return null;
1try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return n?.matches(r)}))return!1;const n=e.length,r=this._options.mutationLimit,o=r&&n>r;if(n>this._options.mutationBreadcrumbLimit||o){const e=Fa({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(e)}return!o||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function al(e,t){return[...e,...t].join(",")}const cl='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ll=["content-length","content-type","accept"];let ul=!1;const dl=e=>new pl(e);class pl{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:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:p=750,mutationLimit:h=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:y=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:S=[],maskAttributes:k=["title","placeholder","aria-label"],unmask:w=[],block:T=[],unblock:C=[],ignore:x=[],maskFn:E,beforeAddRecordingEvent:I,beforeErrorSampling:M,onError:R}={}){this.name="Replay";const A=function({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:al(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:al(t,[]),blockSelector:al(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:al(r,[]),ignoreSelector:al(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:S,unmask:w,block:T,unblock:C,ignore:x});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,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:k,maskAllText:c,privacyOptions:A,key:e,value:t,el:n}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(a.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,hs),stickySession:o,useCompression:s,workerUrl:i,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:p,mutationLimit:h,slowClickTimeout:f,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:y,networkCaptureBodies:_,networkRequestHeaders:hl(v),networkResponseHeaders:hl(b),beforeAddRecordingEvent:I,beforeErrorSampling:M,onError:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${cl}`:cl),this._isInitialized&&d())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ul}set _isInitialized(e){ul=e}afterAllSetup(e){d()&&!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?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(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,...e},o=(0,At.i)(n.replaysSessionSampleRate),s=(0,At.i)(n.replaysOnErrorSampleRate);null==o&&null==s&&(0,l.pq)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")});null!=o&&(r.sessionSampleRate=o);null!=s&&(r.errorSampleRate=s);return r}(this._initialOptions,e);this._replay=new il({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function hl(e){return[...ll,...e.map(e=>e.toLowerCase())]}function fl(){const e=(0,s.KU)();return e?.getIntegrationByName("Replay")}
1var ml=Object.defineProperty,gl=(e,t,n)=>((e,t,n)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class yl{constructor(){gl(this,"idNodeMap",new Map),gl(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-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);this.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;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function _l(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:_l(e.parentNode,t,n,r+1):-1}function vl(e,t){return n=>{const r=n;if(null===r)return!1;try{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];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}const bl="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Sl={map:{},getId:()=>(console.error(bl),-1),getNode:()=>(console.error(bl),null),removeNodeFromMap(){console.error(bl)},has:()=>(console.error(bl),!1),reset(){console.error(bl)}};function kl(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){Il(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>kl(e,t,s||{},!0)}function wl(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}function Tl(e,t,n,r,o){if(!e)return!1;const s=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!s)return!1;const i=vl(t,n);if(!o){const e=r&&s.matches(r);return i(s)&&!e}const a=_l(s,i);let c=-1;return!(a<0)&&(r&&(c=_l(s,vl(null,r))),a>-1&&c<0||a<c)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Sl=new Proxy(Sl,{get:(e,t,n)=>("map"===t&&console.error(bl),Reflect.get(e,t,n))})),Date.now().toString();const Cl={};function xl(e){const t=Cl[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Cl[e]=r.bind(window)}function El(...e){return xl("requestAnimationFrame")(...e)}function Il(...e){return xl("setTimeout")(...e)}var Ml=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ml||{});let Rl;const Al=e=>{if(!Rl)return e;return(...t)=>{try{return e(...t)}catch(e){if(Rl&&!0===Rl(e))return()=>{};throw e}}};for(var Ll="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ol="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Dl=0;Dl<64;Dl++)Ol[Ll.charCodeAt(Dl)]=Dl;const Nl=new Map;const Pl=(e,t,n)=>{if(!e||!Ul(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=Nl.get(e);return n||(n=new Map,Nl.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};function Fl(e,t,n){if(e instanceof Array)return e.map(e=>Fl(e,t,n));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){return{rr_type:e.constructor.name,base64:function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=Ll[n[t]>>2],o+=Ll[(3&n[t])<<4|n[t+1]>>4],o+=Ll[(15&n[t+1])<<2|n[t+2]>>
16],o+=Ll[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e)}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[Fl(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[Fl(e.data,t,n),e.width,e.height]}}if(Ul(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:Pl(e,t,n)}}return e}const zl=(e,t,n)=>e.map(e=>Fl(e,t,n)),Ul=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(n.find(n=>e instanceof t[n]))};function Bl(e,t,n,r,o){const s=[];try{const i=wl(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(s,...i){if(!Tl(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(s);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[s,...i])}});s.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(e=>e())}}function $l(e,t,n,r,o,s,i,a){const c=[],l=Object.getOwnPropertyNames(e);for(const i of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof e[i])continue;const l=wl(e,i,function(e){return function(...c){const l=e.apply(this,c);if(Pl(l,a,this),"tagName"in this.canvas&&!Tl(this.canvas,r,o,s,!0)){const e=zl(c,a,this),r={type:t,property:i,args:e};n(this.canvas,r)}return l}});c.push(l)}catch{const r=kl(e,i,{set(e){n(this.canvas,{type:t,property:i,args:[e],setter:!0})}});c.push(r)}return c}class Hl{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.lastSnapshotTime=0,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)};const{sampling:t="all",win:n,blockClass:r,blockSelector:o,unblockSelector:s,maxCanvasSize:i,recordCanvas:a,dataURLOptions:c,errorHandler:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,l&&(Rl=l),(a&&"number"==typeof t||e.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(n),e.enableManualSnapshot||Al(()=>{a&&"all"===t&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,o,s,i,{dataURLOptions:c})})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){const{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:s,enableManualSnapshot:i}=this.options;if(!this.windowsSet.has(e)){if(i)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));Al(()=>{if(s&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),s&&"number"==typeof t){const t=Bl(e,n,r,o,!0);this.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
1+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{const t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;const{base64:r,type:o,width:s,height:i}=t;this.mutationCb({id:n,type:Ml["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);this.restoreHandlers.push(()=>{cancelAnimationFrame(i)})}initCanvasMutationObserver(e,t,n,r){const o=Bl(e,t,n,r,!1),s=function(e,t,n,r,o){const s=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const i=wl(t.CanvasRenderingContext2D.prototype,a,function(s){return function(...i){return Tl(this.canvas,n,r,o,!0)||Il(()=>{const n=zl(i,t,this);e(this.canvas,{type:Ml["2D"],property:a,args:n})},0),s.apply(this,i)}});s.push(i)}catch{const n=kl(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:Ml["2D"],property:a,args:[t],setter:!0})}});s.push(n)}return()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),i=function(e,t,n,r,o){const s=[];return s.push(...$l(t.WebGLRenderingContext.prototype,Ml.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&s.push(...$l(t.WebGL2RenderingContext.prototype,Ml.WebGL2,e,n,r,o,0,t)),()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.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);this.restoreHandlers.push(()=>{cancelAnimationFrame(n)})}takeSnapshot(e,t,n,r,o,s,i,a){const c=1e3/t;let l;const u=e=>{if(e)return[e];const t=[],s=e=>{e.querySelectorAll("canvas").forEach(e=>{Tl(e,n,r,o,!0)||t.push(e)})};for(const e of this.windows){const t=e.deref();let n;try{n=t&&t.document}catch{}n&&s(n)}for(const e of this.shadowDoms){const t=e.deref();t&&s(t)}return t},d=t=>{this.windows.length&&(this.lastSnapshotTime&&t-this.lastSnapshotTime<c?l=El(d):(this.lastSnapshotTime=t,u(a).forEach(t=>{if(!this.mirror.hasNode(t))return;const n=this.mirror.getId(t);if(!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);!1===e?.getContextAttributes()?.preserveDrawingBuffer&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then(e=>{this.worker?.postMessage({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:i,maxCanvasSize:s},[e])}).catch(e=>{Al(()=>{throw e})()})}}),e||(l=El(d))))};return l=El(d),l}startPendingCanvasMutationFlusher(){El(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,El(e)};El(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),El(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map(e=>{const{type:t,...n}=e;return n}),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var jl;new yl,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(jl||(jl={}));const Wl={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}}},ql=1280,Yl=(0,c._C)((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,ql):ql,n?Math.min(n,ql):ql]};let o;const s=new Promise(e=>o=e);return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new Hl({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return o(r),r},...Wl[e]||Wl.medium}},async snapshot(e){(await s).snapshot(e)}}});function Kl(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return;const{method:i,url:a}=e.fetchData,c=(0,Rt.f)()&&t(a);if(e.endTimestamp&&c){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(!function(e,t){if(t.response){(0,Yt.N8)(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:Yt.TJ,message:"internal_error"});e.end()}(n,e),delete r[t]))}const l=!!(0,Dt.Bk)(),u=c&&l?Gt(function(e,t,n){const r=(0,$r.kg)(e);return{name:r?`${t} ${(0,$r.CH)(r)}`:t,attributes:Vl(e,r,t,n)}}(a,i,o)):new Ft;if(e.fetchData.__span=u.spanContext().spanId,r[u.spanContext().spanId]=u,n(e.fetchData.url)){const t=e.args[0],n=e.args[1]||{},r=function(e,t,n){const r=_n({span:n}),o=r["sentry-trace"],s=r.baggage;if(!o)return;const i=t.headers||((0,kt.ks)(e)?e.headers:void 0);if(i){if(function(e){return"undefined"!=typeof Headers&&(0,kt.tH)(e,Headers)}(i)){const e=new Headers(i);if(e.get("sentry-trace")||e.set("sentry-trace",o),s){const t=e.get("baggage");t?Jl(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(i)){const e=[...i];i.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]);const t=i.find(e=>"baggage"===e[0]&&Jl(e[1]));return s&&!t&&e.push(["baggage",s]),e}{const e="sentry-trace"in i?i["sentry-trace"]:void 0,t="baggage"in i?i.baggage:void 0,n=t?Array.isArray(t)?[...t]:[t]:[],r=t&&(Array.isArray(t)?t.find(e=>
1Jl(e)):Jl(t));return s&&!r&&n.push(s),{...i,"sentry-trace":e??o,baggage:n.length>0?n.join(","):void 0}}}return{...r}}(t,n,(0,Rt.f)()&&l?u:void 0);r&&(e.args[1]=n,n.headers=r)}const d=(0,s.KU)();if(d){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",u,t)}return u}function Jl(e){return e.split(",").some(e=>e.trim().startsWith(yn.sv))}function Vl(e,t,n,r){const o={url:e,type:"fetch","http.method":n,[St.JD]:r,[St.uT]:"http.client"};return t&&((0,$r.nt)(t)||(o["http.url"]=t.href,o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function Gl(e){return"number"==typeof e&&isFinite(e)}function Xl(e,t,n,{...r}){const o=(0,Dt.et)(e).start_timestamp;return o&&o>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),Zt(e,()=>{const e=Gt({startTime:t,...r});return e&&e.end(n),e})}function Zl(e){const t=(0,s.KU)();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:i}=e,{release:a,environment:c,sendDefaultPii:l}=t.getOptions(),u=t.getIntegrationByName("Replay"),d=u?.getReplayId(),p=(0,s.o5)(),h=p.getUser(),f=void 0!==h?h.email||h.id||h.ip_address:void 0;let m;try{m=p.getScopeData().contexts.profile.profile_id}catch{}return Gt({name:n,attributes:{release:a,environment:c,user:f||void 0,profile_id:m||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":no.j.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...o},startTime:i,experimental:{standalone:!0}})}function Ql(){return no.j.addEventListener&&no.j.performance}function eu(e){return e/1e3}function tu(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function nu(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function ru(e,t){let n,r=!1;function o(e){!r&&n&&t(e,n),r=!0}So(()=>{o("pagehide")});const s=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(o("navigation"),s?.(),i?.())}),i=e.on("afterStartPageLoadSpan",e=>{n=e.spanContext().spanId,i?.()})}function ou(e=0){return(((0,Ut.k3)()||performance.timeOrigin)+e)/1e3}const su=new WeakMap,iu=new Map,au={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function cu(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:c,tracePropagationTargets:l,onRequestSpanStart:u}={...au,...t},d="function"==typeof i?i:e=>!0,p=e=>function(e,t){const n=(0,a.$N)();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const s=r.origin===o;return t?(0,_t.Xr)(r.toString(),t)||s&&(0,_t.Xr)(r.pathname,t):s}{const n=!!e.match(/^\/(?!\/)/);return t?(0,_t.Xr)(e,t):n}}(e,l),h={};n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){const t=iu.get(e.span_id);t&&(e.timestamp=t/1e3,iu.delete(e.span_id))}}),e)),o&&(0,Rr.B$)(e=>{if(e.response){const t=su.get(e.response);t&&e.endTimestamp&&iu.set(t,e.endTimestamp)}}),(0,Rr.ur)(e=>{const t=Kl(e,d,p,h);if(e.response&&e.fetchData.__span&&su.set(e.response,e.fetchData.__span),t){const n=uu(e.fetchData.url),r=n?(0,$r.Dl)(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r}),c&&lu(t),u?.(t,{headers:e.headers})}})),r&&(0,Or.Mn)(e=>{const t=function(e,t,n,r){const o=e.xhr,i=o?.[Or.Er];if(!o||o.__sentry_own_request__||!i)return;const{url:a,method:c}=i,l=(0,Rt.f)()&&t(a);if(e.endTimestamp&&l){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==i.status_code&&((0,Yt.N8)(t,i.status_code),t.end(),delete r[e]))}const u=uu(a),d=u?(0,$r.Dl)(u):(0,$r.Dl)(a),p=(0,$r.f)(a),h=!!(0,Dt.Bk)(),f=l&&h?Gt({name:`${c} ${p}`,attributes:{url:a,type:"xhr","http.method":c,"http.url":u,"server.address":d?.host,[St.JD]:"auto.http.browser",[St.uT]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new Ft;o.__sentry_xhr_span_id__=f.spanContext().spanId,r[o.__sentry_xhr_span_id__]=f,n(a)&&function(e,t){const{"sentry-trace":n,baggage:r}=_n({span:t});n&&function(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(r?.["sentry-trace"])return;try{if(e.setRequestHeader("sentry-trace",t),n){const t=r?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,n,r)}(o,(0,Rt.f)()&&h?f:void 0);const m=(0,s.KU)();m&&m.emit("beforeOutgoingRequestSpan",f,e);return f}(e,d,p,h);if(t){let n;c&&lu(t);try{n=new Headers(e.xhr.__sentry_xhr_v3__?.request_headers)}catch{}u?.(t,{headers:n})}})}function lu(e){const{url:t}=(0,Dt.et)(e).data;if(!t||"string"!=typeof t)return;const n=Vo("resource",({entries:r})=>{r.forEach(r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){const t=function(e){const t=[];if(null!=e.nextHopProtocol){const{name:n,version:r}=tu(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return(0,Ut.k3)()?[...t,["http.request.redirect_start",ou(e.redirectStart)],["http.request.fetch_start",ou(e.fetchStart)],["http.request.domain_lookup_start",ou(e.domainLookupStart)],["http.request.domain_lookup_end",ou(e.domainLookupEnd)],["http.request.connect_start",ou(e.connectStart)],["http.request.secure_connection_start",ou(e.secureConnectionStart)],["http.request.connection_end",ou(e.connectEnd)],["http.request.request_start",ou(e.requestStart)],["http.request.response_start",ou(e.responseStart)],["http.request.response_end",ou(e.responseEnd)]]:t}(r);t.forEach(t=>e.setAttribute(...t)),setTimeout(n)}})})}function uu(e){try{return new URL(e,Ze.jf.location.origin).href}catch{return}}const du={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function pu(e,t={}){const n=new Map;let r,o=!1,i="externalFinish",a=!t.disableAutoFinish;const c=[],{idleTimeout:u=du.idleTimeout,finalTimeout:d=du.finalTimeout,childSpanTimeout:p=du.childSpanTimeout,beforeSpanEnd:h}=t,f=(0,s.KU)();
1if(!f||!(0,Rt.f)()){const e=new Ft,t={sample_rate:"0",sampled:"false",...(0,Pt.k1)(e)};return(0,Pt.LZ)(e,t),e}const m=(0,s.o5)(),g=(0,Dt.Bk)(),y=function(e){const t=Gt(e);return(0,Ot.r)((0,s.o5)(),t),bt.T&&l.Yz.log("[Tracing] Started span is an idle span"),t}(e);function _(){r&&(clearTimeout(r),r=void 0)}function v(e){_(),r=setTimeout(()=>{!o&&0===n.size&&a&&(i="idleTimeout",y.end(e))},u)}function b(e){r=setTimeout(()=>{!o&&a&&(i="heartbeatFailed",y.end(e))},p)}function S(e){o=!0,n.clear(),c.forEach(e=>e()),(0,Ot.r)(m,g);const t=(0,Dt.et)(y),{start_timestamp:r}=t;if(!r)return;t.data[St.fs]||y.setAttribute(St.fs,i),l.Yz.log(`[Tracing] Idle span "${t.op}" finished`);const s=(0,Dt.xO)(y).filter(e=>e!==y);let a=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:Yt.TJ,message:"cancelled"}),t.end(e),bt.T&&l.Yz.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=(0,Dt.et)(t),{timestamp:r=0,start_timestamp:o=0}=n,s=o<=e,i=r-o<=(d+u)/1e3;if(bt.T){const e=JSON.stringify(t,void 0,2);s?i||l.Yz.log("[Tracing] Discarding span since it finished after idle span final timeout",e):l.Yz.log("[Tracing] Discarding span since it happened after idle span was finished",e)}i&&s||((0,Dt.VS)(y,t),a++)}),a>0&&y.setAttribute("sentry.idle_span_discarded_spans",a)}return y.end=new Proxy(y.end,{apply(e,t,n){if(h&&h(y),t instanceof Ft)return;const[r,...o]=n,s=r||(0,Ut.zf)(),i=(0,Dt.cI)(s),a=(0,Dt.xO)(y).filter(e=>e!==y);if(!a.length)return S(i),Reflect.apply(e,t,[i,...o]);const c=a.map(e=>(0,Dt.et)(e).timestamp).filter(e=>!!e),l=c.length?Math.max(...c):void 0,u=(0,Dt.et)(y).start_timestamp,p=Math.min(u?u+d/1e3:1/0,Math.max(u||-1/0,Math.min(i,l||1/0)));
1return S(p),Reflect.apply(e,t,[p,...o])}}),c.push(f.on("spanStart",e=>{if(o||e===y||(0,Dt.et)(e).timestamp||e instanceof jt&&e.isStandaloneSpan())return;var t;(0,Dt.xO)(y).includes(e)&&(t=e.spanContext().spanId,_(),n.set(t,!0),b((0,Ut.zf)()+p/1e3))})),c.push(f.on("spanEnd",e=>{var t;o||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&v((0,Ut.zf)()+u/1e3))})),c.push(f.on("idleSpanEnableAutoFinish",e=>{e===y&&(a=!0,v(),n.size&&b())})),t.disableAutoFinish||v(),setTimeout(()=>{o||(y.setStatus({code:Yt.TJ,message:"deadline_exceeded"}),i="finalTimeout",y.end())},d),y}function hu(e){let t,n=0;if(!nu("layout-shift"))return;const r=qo(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);ru(e,(e,o)=>{!function(e,t,n,r){Wr.T&&l.Yz.log(`Sending CLS span (${e})`);const o=eu(((0,Ut.k3)()||0)+(t?.startTime||0)),i=(0,s.o5)().getScopeData().transactionName,c=t?(0,a.Hd)(t.sources[0]?.node):"Layout shift",u={[St.JD]:"auto.http.browser.cls",[St.uT]:"ui.webvital.cls",[St.jG]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{u[`cls.source.${t+1}`]=(0,a.Hd)(e.node)});const d=Zl({name:c,transaction:i,attributes:u,startTime:o});d&&(d.addEvent("cls",{[St.Sn]:"",[St.xc]:e}),d.end(o))}(n,t,o,e),r()})}function fu(e){let t,n=0;if(!nu("largest-contentful-paint"))return;const r=Yo(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);ru(e,(e,o)=>{!function(e,t,n,r){Wr.T&&l.Yz.log(`Sending LCP span (${e})`);const o=eu(((0,Ut.k3)()||0)+(t?.startTime||0)),i=(0,s.o5)().getScopeData().transactionName,c=t?(0,a.Hd)(t.element):"Largest contentful paint",u={[St.JD]:"auto.http.browser.lcp",[St.uT]:"ui.webvital.lcp",[St.jG]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(u["lcp.element"]=(0,a.Hd)(t.element)),t.id&&(u["lcp.id"]=t.id),t.url&&(u["lcp.url"]=t.url.trim().slice(0,200)),null!=t.loadTime&&(u["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(u["lcp.renderTime"]=t.renderTime),null!=t.size&&(u["lcp.size"]=t.size));const d=Zl({name:c,transaction:i,attributes:u,startTime:o});d&&(d.addEvent("lcp",{[St.Sn]:"millisecond",[St.xc]:e}),d.end(o))}(n,t,o,e),r()})}let mu,gu,yu=0,_u={};function vu({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Ql();if(r&&(0,Ut.k3)()){r.mark&&no.j.performance.mark("sentry-tracing-init");const o=Ko(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=eu((0,Ut.k3)()),r=eu(t.startTime);_u.fid={value:e.value,unit:"millisecond"},_u["mark.fid"]={value:n+r,unit:"second"}}),s=t?fu(n):Yo(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(_u.lcp={value:e.value,unit:"millisecond"},mu=t)},!0),i=ns("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(_u.ttfb={value:e.value,unit:"millisecond"})},es,jo),a=e?hu(n):qo(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(_u.cls={value:e.value,unit:""},gu=t)},!0);return()=>{o(),s?.(),i(),a?.()}}return()=>{}}function bu(e,t){const n=Ql(),r=(0,Ut.k3)();if(!n?.getEntries||!r)return;const o=eu(r),s=n.getEntries(),{op:i,start_timestamp:c}=(0,Dt.et)(e);if(s.slice(yu).forEach(n=>{const r=eu(n.startTime),s=eu(Math.max(0,n.duration));if(!("navigation"===i&&c&&o+r<c))switch(n.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Su(e,t,r,n)}),Su(e,t,"secureConnection",n,"TLS/SSL"),Su(e,t,"fetch",n,"cache"),Su(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+eu(t.requestStart),o=n+eu(t.responseEnd),s=n+eu(t.responseStart);t.responseEnd&&(Xl(e,r,o,{op:"browser.request",name:t.name,attributes:{[St.JD]:"auto.ui.browser.metrics"}}),Xl(e,s,o,{op:"browser.response",name:t.name,attributes:{[St.JD]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,n,o);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o,s){if(["mark","measure"].includes(t.entryType)&&(0,_t.Xr)(t.name,s))return;const i=oo(!1),a=eu(i?i.requestStart:0),c=o+Math.max(n,a),l=o+n,u=l+r,d={[St.JD]:"auto.resource.browser.metrics"};c!==l&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=c);(function(e,t){try{const n=t.detail;if(!n)return;if("object"==typeof n){for(const[t,r]of Object.entries(n))if(r&&(0,kt.sO)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,kt.sO)(n))return void(e["sentry.browser.measure.detail"]=n);try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}})(d,t),c<=u&&Xl(e,c,u,{name:t.name,op:t.entryType,attributes:d})}(e,n,r,s,o,t.ignorePerformanceApiSpans);const i=go(),a=n.startTime<i.firstHiddenTime;"first-paint"===n.name&&a&&(_u.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&a&&(_u.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,o,s,i){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(i?.includes(a))return;const c=(0,$r.Dl)(n),l={[St.JD]:"auto.resource.browser.metrics"};ku(l,t,"transferSize","http.response_transfer_size"),ku(l,t,"encodedBodySize","http.response_content_length"),ku(l,t,"decodedBodySize","http.decoded_response_content_length");const u=t.deliveryType;null!=u&&(l["http.response_delivery_type"]=u);const d=t.renderBlockingStatus;d&&(l["resource.render_blocking_status"]=d);c.protocol&&(l["url.scheme"]=c.protocol.split(":").pop());c.host&&(l["server.address"]=c.host);if(l["url.same_origin"]=n.includes(no.j.location.origin),null!=t.nextHopProtocol){const{name:e,version:n}=tu(t.nextHopProtocol);l["network.protocol.name"]=e,l["network.protocol.version"]=n}const p=s+r,h=p+o;Xl(e,p,h,{name:n.replace(no.j.location.origin,""),op:a,attributes:l})}(e,n,n.name,r,s,o,t.ignoreResourceSpans)}}),yu=Math.max(s.length-1,0),function(e){const t=no.j.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Gl(n.rtt)&&(_u["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Gl(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);Gl(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===i){!function(e){const t=oo(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(_u);const n=_u["mark.fid"];n&&_u.fid&&(Xl(e,n.value,n.value+eu(_u.fid.value),{name:"first input delay",op:"ui.action",attributes:{[St.JD]:"auto.ui.browser.metrics"}}),delete _u["mark.fid"]),"fcp"in _u&&t.recordClsOnPageloadSpan||delete _u.cls,t.recordLcpOnPageloadSpan||delete _u.lcp,Object.entries(_u).forEach(([e,t])=>{Bt(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",so()),function(e,t){mu&&t.recordLcpOnPageloadSpan&&(mu.element&&e.setAttribute("lcp.element",(0,a.Hd)(mu.element)),mu.id&&e.setAttribute("lcp.id",mu.id),mu.url&&e.setAttribute("lcp.url",mu.url.trim().slice(0,200)),null!=mu.loadTime&&e.setAttribute("lcp.loadTime",mu.loadTime),null!=mu.renderTime&&e.setAttribute("lcp.renderTime",mu.renderTime),e.setAttribute("lcp.size",mu.size));
1gu?.sources&&t.recordClsOnPageloadSpan&&gu.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,a.Hd)(t.node)))}(e,t)}mu=void 0,gu=void 0,_u={}}function Su(e,t,n,r,o=n){const s=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(n),i=t[s],a=t[`${n}Start`];a&&i&&Xl(e,r+eu(a),r+eu(i),{op:`browser.${o}`,name:t.name,attributes:{[St.JD]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function ku(e,t,n,r){const o=t[n];null!=o&&o<2147483647&&(e[r]=o)}const wu=[],Tu=new Map;function Cu(){if(Ql()&&(0,Ut.k3)()){const e=Jo(Eu);return()=>{e()}}return()=>{}}const xu={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"};const Eu=({metric:e})=>{if(null==e.value)return;const t=eu(e.value);if(t>60)return;const n=e.entries.find(t=>t.duration===e.value&&xu[t.name]);if(!n)return;const{interactionId:r}=n,o=xu[n.name],i=eu((0,Ut.k3)()+n.startTime),c=(0,Dt.Bk)(),l=c?(0,Dt.zU)(c):void 0,u=(null!=r?Tu.get(r):void 0)||l,d=u?(0,Dt.et)(u).description:(0,s.o5)().getScopeData().transactionName,p=Zl({name:(0,a.Hd)(n.target),transaction:d,attributes:{[St.JD]:"auto.http.browser.inp",[St.uT]:`ui.interaction.${o}`,[St.jG]:n.duration},startTime:i});p&&(p.addEvent("inp",{[St.Sn]:"millisecond",[St.xc]:e.value}),p.end(i+t))};const Iu=({entries:e})=>{const t=(0,Dt.Bk)(),n=t?(0,Dt.zU)(t):void 0,r=n?(0,Dt.et)(n).description:(0,s.o5)().getScopeData().transactionName;e.forEach(e=>{const t=e;if(!t.identifier)return;const n=t.name,o=t.renderTime,s=t.loadTime,[i,a]=s?[eu(s),"load-time"]:o?[eu(o),"render-time"]:[(0,Ut.zf)(),"entry-emission"],c="image-paint"===n?eu(Math.max(0,(o??0)-(s??0))):0,l={[St.JD]:"auto.ui.browser.elementtiming",[St.uT]:"ui.elementtiming",[St.i_]:"component","sentry.span_start_time_source":a,"sentry.transaction_name":r,"element.id":t.id,"element.type":t.element?.tagName?.toLowerCase()||"unknown","element.size":t.naturalWidth&&t.naturalHeight?`${t.naturalWidth}x${t.naturalHeight}`:void 0,"element.render_time":o,"element.load_time":s,"element.url":t.url||void 0,"element.identifier":t.identifier,"element.paint_type":n};Jt({name:`element[${t.identifier}]`,attributes:l,startTime:i,onlyIfParent:!0},e=>{e.end(i+c)})})};const Mu="sentry_previous_trace",Ru="sentry.previous_trace";function Au(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r="session-storage"===t;let o=r?function(){try{const e=Ze.jf.sessionStorage?.getItem(Mu);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,Dt.zU)(e)!==e)return;const t=(0,s.o5)().getPropagationContext();o=function(e,t,n){const r=(0,Dt.et)(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[St.sy])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return s;const i=e.spanContext;if(i.traceId===r.trace_id)return e;Date.now()/1e3-e.startTimestamp<=3600&&(vr.T&&l.Yz.log(`Adding previous_trace ${i} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:i,attributes:{[St.Lc]:"previous_trace"}}),t.setAttribute(Ru,`${i.traceId}-${i.spanId}-${Lu(i)?1:0}`));return s}(o,e,t),r&&function(e){try{Ze.jf.sessionStorage.setItem(Mu,JSON.stringify(e))}catch(e){vr.T&&l.Yz.warn("Could not store previous trace in sessionStorage",e)}}(o)});let i=!0;n&&e.on("beforeSampling",e=>{if(!o)return;const t=(0,s.o5)(),n=t.getPropagationContext();i&&n.parentSpanId?i=!1:(t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(o.sampleRate),sampled:String(Lu(o.spanContext))},sampleRand:o.sampleRand}),e.parentSampled=Lu(o.spanContext),e.parentSampleRate=o.sampleRate,e.spanAttributes={...e.spanAttributes,[St.Ef]:o.sampleRate})})}function Lu(e){return 1===e.traceFlags}const Ou={...du,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
1dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...au},Du=(e={})=>{const t={name:void 0,source:void 0},n=Ze.jf.document,{enableInp:r,enableElementTiming:i,enableLongTask:c,enableLongAnimationFrame:u,_experiments:{enableInteractions:d,enableStandaloneClsSpans:p,enableStandaloneLcpSpans:h},beforeStartSpan:f,idleTimeout:m,finalTimeout:g,childSpanTimeout:y,markBackgroundSpan:_,traceFetch:v,traceXHR:b,trackFetchStreamPerformance:S,shouldCreateSpanForRequest:k,enableHTTPTimings:w,ignoreResourceSpans:T,ignorePerformanceApiSpans:C,instrumentPageLoad:x,instrumentNavigation:E,detectRedirects:I,linkPreviousTrace:M,consistentTraceSampling:R,onRequestSpanStart:A}={...Ou,...e};let L,O;function D(e,r,o=!0){const i="pageload"===r.op,a=f?f(r):r,c=a.attributes||{};if(r.name!==a.name&&(c[St.i_]="custom",a.attributes=c),!o){const e=(0,Ut.lu)();return void Gt({...a,startTime:e}).end(e)}t.name=a.name,t.source=c[St.i_];const l=pu(a,{idleTimeout:m,finalTimeout:g,childSpanTimeout:y,disableAutoFinish:i,beforeSpanEnd:t=>{L?.(),bu(t,{recordClsOnPageloadSpan:!p,recordLcpOnPageloadSpan:!h,ignoreResourceSpans:T,ignorePerformanceApiSpans:C}),Bu(e,void 0);const n=(0,s.o5)(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:l.spanContext().traceId,sampled:(0,Dt.pK)(l),dsc:(0,Pt.k1)(t)})}});function u(){n&&["interactive","complete"].includes(n.readyState)&&e.emit("idleSpanEnableAutoFinish",l)}Bu(e,l),i&&n&&(n.addEventListener("readystatechange",()=>{u()}),u())}return{name:"BrowserTracing",setup(e){if(Yn(),L=vu({recordClsStandaloneSpans:p||!1,recordLcpStandaloneSpans:h||!1,client:e}),r&&Cu(),i&&Ql()&&(0,Ut.k3)()&&Vo("element",Iu),u&&o.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{const t=(0,Dt.Bk)();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=eu((0,Ut.k3)()+n.startTime),{start_timestamp:r,op:o}=(0,Dt.et)(t);if("navigation"===o&&r&&e<r)continue;const s=eu(n.duration),i={[St.JD]:"auto.ui.browser.metrics"},a=n.scripts[0],{invoker:c,invokerType:l,sourceURL:u,sourceFunctionName:d,sourceCharPosition:p}=a;i["browser.script.invoker"]=c,i["browser.script.invoker_type"]=l,u&&(i["code.filepath"]=u),d&&(i["code.function"]=d),-1!==p&&(i["browser.script.source_char_position"]=p),Xl(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:i})}}).observe({type:"long-animation-frame",buffered:!0}):c&&Vo("longtask",({entries:e})=>{const t=(0,Dt.Bk)();if(!t)return;const{op:n,start_timestamp:r}=(0,Dt.et)(t);for(const o of e){const e=eu((0,Ut.k3)()+o.startTime),s=eu(o.duration);"navigation"===n&&r&&e<r||Xl(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[St.JD]:"auto.ui.browser.metrics"}})}}),d&&Vo("event",({entries:e})=>{const t=(0,Dt.Bk)();if(t)for(const n of e)if("click"===n.name){const e=eu((0,Ut.k3)()+n.startTime),r=eu(n.duration),o={name:(0,a.Hd)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[St.JD]:"auto.ui.browser.metrics"}},s=(0,a.xE)(n.target);s&&(o.attributes["ui.component_name"]=s),Xl(t,e,e+r,o)}}),I&&n){const e=()=>{O=(0,Ut.zf)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function t(){const t=Uu(e);t&&!(0,Dt.et)(t).timestamp&&(vr.T&&l.Yz.log(`[Tracing] Finishing current active span with op: ${(0,Dt.et)(t).op}`),t.setAttribute(St.fs,"cancelled"),t.end())}e.on("startNavigationSpan",(n,r)=>{if((0,s.KU)()!==e)return;if(r?.isRedirect)return vr.T&&l.Yz.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void D(e,{op:"navigation.redirect",...n},!1);t(),(0,s.rm)().setPropagationContext({traceId:(0,Lt.e)(),sampleRand:Math.random()});const o=(0,s.o5)();o.setPropagationContext({traceId:(0,Lt.e)(),sampleRand:Math.random()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),D(e,{op:"navigation",...n})}),e.on("startPageLoadSpan",(n,r={})=>
1{if((0,s.KU)()!==e)return;t();const o=r.sentryTrace||Fu("sentry-trace"),i=r.baggage||Fu("baggage"),a=(0,Nt.kM)(o,i),c=(0,s.o5)();c.setPropagationContext(a),c.setSDKProcessingMetadata({normalizedRequest:(0,Ze.AP)()}),D(e,{op:"pageload",...n})})},afterAllSetup(e){let n=(0,a.$N)();if("off"!==M&&Au(e,{linkPreviousTrace:M,consistentTraceSampling:R}),Ze.jf.location){if(x){const t=(0,Ut.k3)();Nu(e,{name:Ze.jf.location.pathname,startTime:t?t/1e3:void 0,attributes:{[St.i_]:"url",[St.JD]:"auto.pageload.browser"}})}E&&(0,is._)(({to:t,from:r})=>{if(void 0===r&&-1!==n?.indexOf(t))return void(n=void 0);n=void 0;const o=(0,$r.kg)(t),s=Uu(e),i=s&&I&&function(e,t){const n=(0,Dt.et)(e),r=(0,Ut.lu)(),o=n.start_timestamp;if(r-o>$u)return!1;if(t&&r-t<=$u)return!1;return!0}(s,O);Pu(e,{name:o?.pathname||Ze.jf.location.pathname,attributes:{[St.i_]:"url",[St.JD]:"auto.navigation.browser"}},{url:t,isRedirect:i})})}_&&(Ze.jf.document?Ze.jf.document.addEventListener("visibilitychange",()=>{const e=(0,Dt.Bk)();if(!e)return;const t=(0,Dt.zU)(e);if(Ze.jf.document.hidden&&t){const e="cancelled",{op:n,status:r}=(0,Dt.et)(t);vr.T&&l.Yz.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:Yt.TJ,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):vr.T&&l.Yz.warn("[Tracing] Could not set up background tab detection due to lack of global document")),d&&function(e,t,n,r,o){const s=Ze.jf.document;let i;const a=()=>{const s="ui.action.click",a=Uu(e);if(a){const e=(0,Dt.et)(a).op;if(["navigation","pageload"].includes(e))return void(vr.T&&l.Yz.warn(`[Tracing] Did not create ${s} span because a pageload or navigation span is in progress.`))}i&&(i.setAttribute(St.fs,"interactionInterrupted"),i.end(),i=void 0),o.name?i=pu({name:o.name,op:s,attributes:{[St.i_]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}):vr.T&&l.Yz.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`)};s&&addEventListener("click",a,{capture:!0})}(e,m,g,y,t),r&&function(){const e=({entries:e})=>{const t=(0,Dt.Bk)(),n=t&&(0,Dt.zU)(t);e.forEach(e=>{if(!function(e){return"duration"in e}(e)||!n)return;const t=e.interactionId;if(null!=t&&!Tu.has(t)){if(wu.length>10){const e=wu.shift();Tu.delete(e)}wu.push(t),Tu.set(t,n)}})};Vo("event",e),Vo("first-input",e)}(),cu(e,{traceFetch:v,traceXHR:b,trackFetchStreamPerformance:S,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:k,enableHTTPTimings:w,onRequestSpanStart:A})}}};function Nu(e,t,n){e.emit("startPageLoadSpan",t,n),(0,s.o5)().setTransactionName(t.name);const r=Uu(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Pu(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=(0,s.o5)();return i.setTransactionName(t.name),r&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...(0,Ze.AP)(),url:r}}),Uu(e)}function Fu(e){const t=Ze.jf.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}const zu="_sentry_idleSpan";function Uu(e){return e[zu]}function Bu(e,t){(0,cn.my)(e,zu,t)}const $u=.3;const Hu=100,ju=5e3,Wu=36e5;function qu(e){function t(...e){bt.T&&l.Yz.log("[Offline]:",...e)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let s,i=ju;function a(e){s&&clearTimeout(s),s=setTimeout(async()=>{s=void 0;const e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),l(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,Wu))}async function l(e,s=!1){if(!s&&(0,Dn.hP)(e,["replay_event","replay_recording"]))return await o.push(e),a(Hu),{};try{if(n.shouldSend&&!1===await n.shouldSend(e))throw new Error("Envelope not sent because `shouldSend` callback returned false");const t=await r.send(e);let o=Hu;if(t)if(t.headers?.["retry-after"])o=(0,eo.FA)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])o=6e4;else if((t.statusCode||0)>=400)return t;return a(o),i=ju,t}catch(r){if(await function(e,t,r){return!(0,Dn.hP)(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),{};throw r}}return n.flushAtStartup&&c(),{send:l,flush:e=>(void 0===e&&(i=ju,a(Hu)),r.flush(e))}}}function Yu(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Ku(e){return Yu(e.getAllKeys())}function Ju(e){let t;function n(){return null==t&&(t=function(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Yu(n);return 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(0,Dn.bN)(t);await function(e,t,n){return e(e=>Ku(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),Yu(e.transaction)}))}(n(),r,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{const r=await(0,Dn.bN)(t);await function(e,t,n){return e(e=>Ku(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),Yu(e.transaction)}))}(n(),r,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const e=await function(e){return e(e=>Ku(e).then(t=>{const n=t[0];if(null!=n)return Yu(e.get(n)).then(t=>(e.delete(n),Yu(e.transaction).then(()=>t)))}))}(n());if(e)return(0,Dn.mE)(e)}catch{}}}}function Vu(e=fr._){return function(e){return t=>{const n=e({...t,createStore:Ju});return Ze.jf.addEventListener("online",async e=>{await n.flush()}),n}}
1(qu(e))}var Gu=n(7313),Xu=n(4270);const Zu=1e6,Qu=String(0),ed="main",td=Ze.jf.navigator;let nd="",rd="",od="",sd=td?.userAgent||"",id="";const ad=td?.language||td?.languages?.[0]||"";const cd=td?.userAgentData;var ld;function ud(e){return function(e){return!("thread_metadata"in e)}(e)?function(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Qu]:{name:ed}}},o=e.samples[0];if(!o)return r;const s=o.timestamp,i=(0,Ut.k3)(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:i||0,c=a-(i||a);return 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+c-s)*Zu).toFixed(0),stack_id:t,thread_id:Qu});let a=e.stacks[o.stackId];const l=[];for(;a;){l.push(a.frameId);const t=e.frames[a.frameId];t&&void 0===r.frames[a.frameId]&&(r.frames[a.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),a=void 0===a.parentId?void 0:e.stacks[a.parentId]}const u={elapsed_since_start_ns:((o.timestamp+c-s)*Zu).toFixed(0),stack_id:n,thread_id:Qu};r.stacks[n]=l,r.samples[i]=u,n++}),r}(e):e}function dd(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=function(e){const t=e.contexts?.trace?.trace_id;return"string"==typeof t&&32!==t.length&&vr.T&&l.Yz.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(r),s=ud(n),i=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,Ut.zf)()),a="number"==typeof r.timestamp?1e3*r.timestamp:1e3*(0,Ut.zf)();return{event_id:e,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Gu.U,runtime:{name:"javascript",version:Ze.jf.navigator.userAgent},os:{name:nd,version:rd,build_number:sd},device:{locale:ad,model:id,manufacturer:sd,architecture:od,is_emulator:!1},debug_meta:{images:hd(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||(0,gt.eJ)(),trace_id:o,active_thread_id:Qu,relative_start_ns:"0",relative_end_ns:(1e6*(a-i)).toFixed(0)}]}}function pd(e){return"pageload"===(0,Dt.et)(e).op}function hd(e){const t=(0,s.KU)(),n=t?.getOptions(),r=n?.stackParser;return r?(0,Xu.i)(r,e):[]}"object"==typeof(ld=cd)&&null!==ld&&"getHighEntropyValues"in ld&&cd.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(nd=e.platform||"",od=e.architecture||"",id=e.model||"",rd=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];sd=`${t.brand} ${t.version}`}}).catch(e=>{});let fd=!1;function md(e){if(fd)return vr.T&&l.Yz.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return vr.T&&l.Yz.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=(0,s.KU)(),n=t?.getOptions();if(!n)return vr.T&&l.Yz.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;if(!("number"!=typeof(o=r)&&"boolean"!=typeof o||"number"==typeof o&&isNaN(o)?(vr.T&&l.Yz.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)||(vr.T&&l.Yz.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${o}.`),0)))return vr.T&&l.Yz.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;var o;if(!r)return vr.T&&l.Yz.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===r||Math.random()<r)||(vr.T&&l.Yz.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1)}function gd(e,t,n,r){return function(e){return e.samples.length<2?(vr.T&&l.Yz.log("[Profiling] Discarding profile because it c
1ontains less than 2 samples"),!1):!!e.frames.length||(vr.T&&l.Yz.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?dd(e,t,n,r):null}const yd=new Map;function _d(e){const t=yd.get(e);return t&&yd.delete(e),t}function vd(e){let t;pd(e)&&(t=1e3*(0,Ut.zf)());const n=function(){const e=Ze.jf.Profiler;if("function"!=typeof e)return void(vr.T&&l.Yz.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){vr.T&&(l.Yz.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),l.Yz.log("[Profiling] Disabling profiling for current user session.")),fd=!0}}();if(!n)return;vr.T&&l.Yz.log(`[Profiling] started profiling span: ${(0,Dt.et)(e).description}`);const r=(0,gt.eJ)();async function o(){if(e&&n)return n.stop().then(t=>{i&&(Ze.jf.clearTimeout(i),i=void 0),vr.T&&l.Yz.log(`[Profiling] stopped profiling of span: ${(0,Dt.et)(e).description}`),t?function(e,t){if(yd.set(e,t),yd.size>30){const e=yd.keys().next().value;yd.delete(e)}}(r,t):vr.T&&l.Yz.log(`[Profiling] profiler returned null profile for: ${(0,Dt.et)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}).catch(e=>{vr.T&&l.Yz.log("[Profiling] error while stopping profiler:",e)})}(0,s.o5)().setContext("profile",{profile_id:r,start_timestamp:t});let i=Ze.jf.setTimeout(()=>{vr.T&&l.Yz.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,Dt.et)(e).description),o()},3e4);const a=e.end.bind(e);e.end=function(){return e?(o().then(()=>{a()},()=>{a()}),e):a()}}const bd=(0,c._C)(()=>({name:"BrowserProfiling",setup(e){const t=(0,Dt.Bk)(),n=t&&(0,Dt.zU)(t);n&&pd(n)&&md(n)&&vd(n),e.on("spanStart",e=>{e===(0,Dt.zU)(e)&&md(e)&&vd(e)}),e.on("beforeEnvelope",e=>{if(!yd.size)return;const t=function(e){const t=[];return(0,Dn.yH)(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){const r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t}(e);if(!t.length)return;const n=[];for(const e of t){const t=e?.contexts,r=t?.profile?.profile_id,o=t?.profile?.start_timestamp;if("string"!=typeof r){vr.T&&l.Yz.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!r){vr.T&&l.Yz.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;const s=_d(r);if(!s){vr.T&&l.Yz.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}const i=gd(r,o,s,e);i&&n.push(i)}!function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n])}(e,n)})}}));const Sd=(0,c._C)((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{vr.T&&l.Yz.log("Using Sidecar URL",t)},processEvent:e=>function(e){return Boolean("transaction"===e.type&&e.spans&&e.contexts?.trace&&"ui.action.click"===e.contexts.trace.op&&e.spans.some(({description:e})=>e?.includes("#sentry-spotlight")))}(e)?null:e,afterAllSetup:e=>{!function(e,t){const n=(0,to.qd)("fetch");let r=0;e.on("beforeEnvelope",e=>{r>3?l.Yz.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r):n(t,{method:"POST",body:(0,Dn.bN)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(r=0)},e=>{r++,l.Yz.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}});var kd=n(3457);const wd=(0,c._C)(()=>
1({name:"LaunchDarkly",processEvent:(e,t,n)=>hn(e)}));function Td(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{fn(e,t.value),mn(e,t.value)}}}const Cd=(0,c._C)(()=>({name:"OpenFeature",processEvent:(e,t,n)=>hn(e)}));class xd{after(e,t){fn(t.flagKey,t.value),mn(t.flagKey,t.value)}error(e,t,n){fn(e.flagKey,e.defaultValue),mn(e.flagKey,e.defaultValue)}}const Ed=(0,c._C)(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;(0,cn.GS)(t,"isEnabled",Id)},processEvent:(e,t,n)=>hn(e)}));function Id(e){return function(...t){const n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r?(fn(n,r),mn(n,r)):vr.T&&l.Yz.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const Md=(0,c._C)(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{fn(e.gate.name,e.gate.value),mn(e.gate.name,e.gate.value)})},processEvent:(e,t,n)=>hn(e)}));async function Rd(){const e=(0,s.KU)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}const Ad=(0,c._C)(({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>Ld(e))},addWorker:e=>Ld(e)}));function Ld(e){e.addEventListener("message",e=>{var t;t=e.data,(0,kt.Qd)(t)&&!0===t._sentryMessage&&"_sentryDebugIds"in t&&((0,kt.Qd)(t._sentryDebugIds)||void 0===t._sentryDebugIds)&&(e.stopImmediatePropagation(),vr.T&&l.Yz.log("Sentry debugId web worker message received",e.data),Ze.jf._sentryDebugIds={...e.data._sentryDebugIds,...Ze.jf._sentryDebugIds})})}function Od({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}}}]);

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.