PageSourceSearch

https://embracingthemadness.com/_next/static/immutable/chunks/3sm0ne-a8z-q5.js

js embracingthemadness.com collected 2026-09-27 11:49:14 UTC 196,454 bytes, 19 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f8ca5bb3-1e4a-9702-ce6d-1544b5bbd3dc")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,820715,e=>{"use strict";var t=e.i(894460),r=e.i(474305),n=e.i(813594),i=e.i(898732),s=e.i(899182),o=e.i(997532),a=e.i(128767),l=e.i(177291);class u extends t.Client{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:l.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e),a=l.WINDOW.SENTRY_SDK_SOURCE||(0,r.getSDKSource)();(0,n.applySdkMetadata)(t,"browser",["browser"],a),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:u,sendClientReports:c,enableLogs:d,_experiments:h,enableMetrics:p}=this._options,f=p??h?.enableMetrics??!0;l.WINDOW.document&&(c||d||f)&&l.WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===l.WINDOW.document.visibilityState&&(c&&this._flushOutcomes(),d&&(0,i._INTERNAL_flushLogsBuffer)(this),f&&(0,s._INTERNAL_flushMetricsBuffer)(this))}),u&&this.on("beforeSendSession",o.addAutoIpAddressToSession)}eventFromException(e,t){return(0,a.eventFromException)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,a.eventFromMessage)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}e.s(["BrowserClient",0,u])},937161,e=>{"use strict";let t="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;e.s(["DEBUG_BUILD",0,t])},177291,e=>{"use strict";var t=e.i(265040),r=e.i(534403),n=e.i(616124),i=e.i(943175),s=e.i(300650),o=e.i(552479);let a=t.GLOBAL_OBJ,l=0;e.s(["WINDOW",0,a,"getHttpRequestData",0,function(){let e=(0,o.getLocationHref)(),{referrer:t}=a.document||{},{userAgent:r}=a.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}},"shouldIgnoreOnError",0,function(){return l>0},"wrap",0,function e(t,o={}){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)if("function"==typeof e)return e;else return t;if((0,r.getOriginalFunction)(t))return t}catch{return t}let a=function(...r){try{let n=r.map(t=>e(t,o));return t.apply(this,n)}catch(e){throw l++,setTimeout(()=>{l--}),(0,n.withScope)(t=>{t.addEventProcessor(e=>(o.mechanism&&((0,i.addExceptionTypeValue)(e,void 0,void 0),(0,i.addExceptionMechanism)(e,o.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,s.captureException)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(a[e]=t[e])}catch{}(0,r.markFunctionWrapped)(a,t),(0,r.addNonEnumerableProperty)(t,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get:()=>t.name})}catch{}return a}])},884828,670342,852630,142597,e=>{"use strict";var t=e.i(428185),r=e.i(775478),n=e.i(710151),i=e.i(616124),s=e.i(115356),o=e.i(147464),a=e.i(771045),l=e.i(351784),u=e.i(552479),c=e.i(972415),d=e.i(160663),h=e.i(943175),p=e.i(418453),f=e.i(957433),m=e.i(474665),g=e.i(937161),y=e.i(177291);let v=(0,t.defineIntegration)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var v,_,b,S,E,w,I;t.console&&(0,r.addConsoleInstrumentationHandler)((v=e,function(e){if((0,i.getClient)()!==v)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:(0,o.severityLevelFromString)(e.level),message:(0,s.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,s.safeJoin)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);(0,a.addBreadcrumb)(t,{input:e.args,level:e.level})})),t.dom&&(0,p.addClickKeypressInstrumentationHandler)((_=e,b=t.dom,function(e){let t,r;if((0,i.getClient)()!==_)return;let n="object"==typeof b?b.serializeAttribute:void 0,s="object"==typeof b&&"number"==typeof b.maxStringLength?b.maxStringLength:void 0;s&&s>1024&&(g.DEBUG_BUILD&&l.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof n&&(n=[n]);try{var o;let i=e.event,a=(o=i)&&o.target?i.target:i;t=(0,u.htmlTreeAsString)(a,{keyAttrs:n,maxStringLength:s}),r=(0,u.getComponentName)(a)}catch{t="<unknown>"}if(0===t.length)return;let c={category:`ui.${e.name}`,message:t};r&&(c.data={"ui.component_name":r}),(0,a.addBreadcrumb)(c,{event:e.event,name:e.name,global:e.global})})),t.xhr&&(0,f.addXhrInstrumentationHandler)((S=e,function(e){if((0,i.getClient)()!==S)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[f.SENTRY_XHR_DATA_KEY];if(!t||!r||!n)return;let{method:s,url:o,status_code:l,body:u}
2=n,d={xhr:e.xhr,input:u,startTimestamp:t,endTimestamp:r},h={category:"xhr",data:{method:s,url:o,status_code:l},type:"http",level:(0,c.getBreadcrumbLogLevelFromHttpStatusCode)(l)};S.emit("beforeOutgoingRequestBreadcrumb",h,d),(0,a.addBreadcrumb)(h,d)})),t.fetch&&(0,n.addFetchInstrumentationHandler)((E=e,function(e){if((0,i.getClient)()!==E)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let n={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};E.emit("beforeOutgoingRequestBreadcrumb",i,n),(0,a.addBreadcrumb)(i,n)}else{let n=e.response,i={...e.fetchData,status_code:n?.status},s={input:e.args,response:n,startTimestamp:t,endTimestamp:r},o={category:"fetch",data:i,type:"http",level:(0,c.getBreadcrumbLogLevelFromHttpStatusCode)(i.status_code)};E.emit("beforeOutgoingRequestBreadcrumb",o,s),(0,a.addBreadcrumb)(o,s)}})),t.history&&(0,m.addHistoryInstrumentationHandler)((w=e,function(e){if((0,i.getClient)()!==w)return;let t=e.from,r=e.to,n=(0,d.parseUrl)(y.WINDOW.location.href),s=t?(0,d.parseUrl)(t):void 0,o=(0,d.parseUrl)(r);s?.path||(s=n),n.protocol===o.protocol&&n.host===o.host&&(r=o.relative),n.protocol===s.protocol&&n.host===s.host&&(t=s.relative),(0,a.addBreadcrumb)({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(I=e,function(e){(0,i.getClient)()===I&&(0,a.addBreadcrumb)({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,h.getEventDescription)(e)},{event:e})}))}}});e.s(["breadcrumbsIntegration",0,v],884828);var _=e.i(534403),b=e.i(647495);let S="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),E=(0,t.defineIntegration)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,_.fill)(y.WINDOW,"setTimeout",w),t.setInterval&&(0,_.fill)(y.WINDOW,"setInterval",w),t.requestAnimationFrame&&(0,_.fill)(y.WINDOW,"requestAnimationFrame",I),t.XMLHttpRequest&&"XMLHttpRequest"in y.WINDOW&&(0,_.fill)(XMLHttpRequest.prototype,"send",k);let e=t.eventTarget;e&&(Array.isArray(e)?e:S).forEach(e=>{var r,n;let i,s;return r=e,n=t,i=y.WINDOW,s=i[r]?.prototype,void(s?.hasOwnProperty?.("addEventListener")&&((0,_.fill)(s,"addEventListener",function(e){return function(t,i,s){var o,a,l,u;try{o=i,"function"==typeof o.handleEvent&&(i.handleEvent=(0,y.wrap)(i.handleEvent,{mechanism:{data:{handler:(0,b.getFunctionName)(i),target:r},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return n.unregisterOriginalCallbacks&&(a=this,l=t,u=i,a&&"object"==typeof a&&"removeEventListener"in a&&"function"==typeof a.removeEventListener&&a.removeEventListener(l,u)),e.apply(this,[t,(0,y.wrap)(i,{mechanism:{data:{handler:(0,b.getFunctionName)(i),target:r},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),(0,_.fill)(s,"removeEventListener",function(e){return function(t,r,n){try{let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}})))})}}});function w(e){return function(...t){let r=t[0];return t[0]=(0,y.wrap)(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,b.getFunctionName)(e)}`}}),e.apply(this,t)}}function I(e){return function(t){return e.apply(this,[(0,y.wrap)(t,{mechanism:{data:{handler:(0,b.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function k(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,_.fill)(r,e,function(t){let r={mechanism:{data:{handler:(0,b.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,_.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,b.getFunctionName)(n)),(0,y.wrap)(t,r)}
2)}),e.apply(this,t)}}e.s(["browserApiErrorsIntegration",0,E],670342);var C=e.i(300650);let T=(0,t.defineIntegration)((e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===y.WINDOW.document){g.DEBUG_BUILD&&l.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,C.startSession)({ignoreDuration:!0}),(0,C.captureSession)();let e=(0,i.getIsolationScope)(),r=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(r?.id!==t?.id||r?.ip_address!==t?.ip_address)&&((0,C.captureSession)(),r=t)}),"route"===t&&(0,m.addHistoryInstrumentationHandler)(({from:e,to:t})=>{e!==t&&((0,C.startSession)({ignoreDuration:!0}),(0,C.captureSession)())})}}});e.s(["browserSessionIntegration",0,T],852630);let M=(0,t.defineIntegration)(()=>({name:"CultureContext",preprocessEvent(e){let t=function(){try{let e=y.WINDOW.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}}));e.s(["cultureContextIntegration",0,M],142597)},956724,680816,40015,e=>{"use strict";var t=e.i(428185),r=e.i(656637),n=e.i(616124),i=e.i(300650),s=e.i(351784),o=e.i(275332),a=e.i(120605),l=e.i(647495),u=e.i(552479),c=e.i(160663),d=e.i(937161),h=e.i(128767),p=e.i(177291);let f=(0,t.defineIntegration)((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var s,d;t.onerror&&(s=e,(0,r.addGlobalErrorInstrumentationHandler)(e=>{var t,r,o,d;let f,m,g,y,_,{stackParser:b,attachStacktrace:S}=v();if((0,n.getClient)()!==s||(0,p.shouldIgnoreOnError)())return;let{msg:E,url:w,line:I,column:k,error:C}=e,T=(t=(0,h.eventFromUnknownInput)(b,C||E,void 0,S,!1),r=w,o=I,d=k,0===(_=(y=(g=(m=(f=t.exception=t.exception||{}).values=f.values||[])[0]=m[0]||{}).stacktrace=g.stacktrace||{}).frames=y.frames||[]).length&&_.push({colno:d,lineno:o,filename:function(e){if((0,a.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${(0,c.stripDataUrlContent)(e,!1)}>`:e}(r)??(0,u.getLocationHref)(),function:l.UNKNOWN_FUNCTION,in_app:!0}),t);T.level="error",(0,i.captureEvent)(T,{originalException:C,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),y("onerror")),t.onunhandledrejection&&(d=e,(0,o.addGlobalUnhandledRejectionInstrumentationHandler)(e=>{let{stackParser:t,attachStacktrace:r}=v();if((0,n.getClient)()!==d||(0,p.shouldIgnoreOnError)())return;let s=m(e),o=(0,a.isPrimitive)(s)?g(s):(0,h.eventFromUnknownInput)(t,s,void 0,r,!0);o.level="error",(0,i.captureEvent)(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),y("onunhandledrejection"))}}});function m(e){if((0,a.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function g(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function y(e){d.DEBUG_BUILD&&s.debug.log(`Global Handler attached: ${e}`)}function v(){let e=(0,n.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}e.s(["_eventFromRejectionWithPrimitive",0,g,"_getUnhandledRejectionError",0,m,"globalHandlersIntegration",0,f],956724);let _=(0,t.defineIntegration)(()=>({name:"HttpContext",preprocessEvent(e){if(!p.WINDOW.navigator&&!p.WINDOW.location&&!p.WINDOW.document)return;let t=(0,p.getHttpRequestData)(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}}));function b(e){return Array.isArray(e.errors)}function S(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...b(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function E(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}e.s(["httpContextIntegration",0,_],680816);let w=(0,t.defineIntegration)((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){let s=i.getOptions();!function(e,t,r,n,i,s){if(!i.exception?.values||!s||!(0,a.isInstanceOf)(s.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=function e(t,r,n,i,s,o,l,u){if(o.length>=n+1)return o;let c=[...o];if((0,a.isInstanceOf)(i[s],Error)){S(l,u,i);let o=t(r,i[s]),a=c.length;E(o,s,a,u),c=e(t,r,n,i[s],s,[o,...c],o,a)}
2return b(i)&&i.errors.forEach((o,d)=>{if((0,a.isInstanceOf)(o,Error)){S(l,u,i);let a=t(r,o),h=c.length;E(a,`errors[${d}]`,h,u),c=e(t,r,n,o,s,[a,...c],a,h)}}),c}(e,t,n,s.originalException,r,i.exception.values,o,0))}(h.exceptionFromError,s.stackParser,r,t,e,n)}}});e.s(["linkedErrorsIntegration",0,w],40015)},18410,61371,e=>{"use strict";var t=e.i(512030),r=e.i(152718),n=e.i(725469),i=e.i(372181),s=e.i(428185),o=e.i(647495),a=e.i(860782),l=e.i(820715),u=e.i(884828),c=e.i(670342),d=e.i(852630),h=e.i(142597),p=e.i(956724),f=e.i(680816),m=e.i(40015),g=e.i(439916),y=e.i(546806),v=e.i(351784),_=e.i(552479),b=e.i(937161),S=e.i(177291);function E(e){return[(0,t.inboundFiltersIntegration)(),(0,r.functionToStringIntegration)(),(0,n.conversationIdIntegration)(),(0,c.browserApiErrorsIntegration)(),(0,u.breadcrumbsIntegration)(),(0,p.globalHandlersIntegration)(),(0,m.linkedErrorsIntegration)(),(0,i.dedupeIntegration)(),(0,f.httpContextIntegration)(),(0,h.cultureContextIntegration)(),(0,d.browserSessionIntegration)()]}e.s(["forceLoad",0,function(){},"getDefaultIntegrations",0,E,"init",0,function(e={}){let t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===S.WINDOW.window)return!1;let e=S.WINDOW;if(e.nw)return!1;let t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;let r=(0,_.getLocationHref)();return!(S.WINDOW===S.WINDOW.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}()&&(b.DEBUG_BUILD&&(0,v.consoleSandbox)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),r=null==e.defaultIntegrations?E():e.defaultIntegrations,n={...e,enabled:!t&&e.enabled,stackParser:(0,o.stackParserFromStackParserOptions)(e.stackParser||g.defaultStackParser),integrations:(0,s.getIntegrationsToSetup)({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||y.makeFetchTransport};return(0,a.initAndBind)(l.BrowserClient,n)},"onLoad",0,function(e){e()}],18410);var w=e.i(160663);function I(e){return"/"===e[e.length-1]?e.slice(0,-1):e}e.s(["isSentryRequestUrl",0,function(e,t){var r,n,i,s;let o,a=t?.getDsn(),l=t?.getOptions().tunnel;return r=e,n=a,!(!(o=(0,w.parseStringToURLObject)(r))||(0,w.isURLObjectRelative)(o))&&!!n&&o.host.includes(n.host)&&/(^|&|\?)sentry_key=/.test(o.search)||(i=e,!!(s=l)&&I(i)===I(s))}],61371)},439916,e=>{"use strict";var t=e.i(647495);function r(e,r,n,i){let s={filename:e,function:"<anonymous>"===r?t.UNKNOWN_FUNCTION:r,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==i&&(s.colno=i),s}let n=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,i=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,o=/at (.+?) ?\(data:(.+?),/,a=[30,e=>{let a=e.match(o);if(a)return{filename:`<data:${a[2]}>`,function:a[1]};let l=n.exec(e);if(l){let[,e,n,i]=l;return r(e,t.UNKNOWN_FUNCTION,+n,+i)}let u=i.exec(e);if(u){if(u[2]?.indexOf("eval")===0){let e=s.exec(u[2]);e&&(u[2]=e[1],u[3]=e[2],u[4]=e[3])}let[e,n]=_(u[1]||t.UNKNOWN_FUNCTION,u[2]);return r(n,e,u[3]?+u[3]:void 0,u[4]?+u[4]:void 0)}}],l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=[50,e=>{let n=l.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){let e=u.exec(n[3]);e&&(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]="")}let e=n[3],i=n[1]||t.UNKNOWN_FUNCTION;return[i,e]=_(i,e),r(e,i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,h=[40,e=>{let n=d.exec(e);return n?r(n[2],n[1]||t.UNKNOWN_FUNCTION,+n[3],n[4]?+n[4]:void 0):void 0}],p=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,f=[10,e=>{let n=p.exec(e);return n?r(n[2],n[3]||t.UNKNOWN_FUNCTION,+n[1]):void 0}],m=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,g=[20,e=>{let n=m.exec(e);return n?r(n[5],n[3]||n[4]||t.UNKNOWN_FUNCTION,+n[1],+n[2]):void 0}],y=[a,c],v=(0,t.createStackParser)(...y),_=(e,r)=>{let n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:t.UNKNOWN_FUNCTION,n?`safari-extension:${r}
2`:`safari-web-extension:${r}`]:[e,r]};e.s(["chromeStackLineParser",0,a,"defaultStackLineParsers",0,y,"defaultStackParser",0,v,"geckoStackLineParser",0,c,"opera10StackLineParser",0,f,"opera11StackLineParser",0,g,"winjsStackLineParser",0,h])},546806,635426,e=>{"use strict";var t=e.i(208996),r=e.i(317013),n=e.i(38967),i=e.i(351784),s=e.i(195666),o=e.i(645002);let a={};function l(e){let t=a[e];if(t)return t;let r=o.WINDOW[e];if((0,n.isNativeFunction)(r))return a[e]=r.bind(o.WINDOW);let l=o.WINDOW.document;if(l&&"function"==typeof l.createElement)try{let t=l.createElement("iframe");t.hidden=!0,l.head.appendChild(t);let n=t.contentWindow;n?.[e]&&(r=n[e]),l.head.removeChild(t)}catch(t){s.DEBUG_BUILD&&i.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?a[e]=r.bind(o.WINDOW):r}function u(e){a[e]=void 0}e.s(["clearCachedImplementation",0,u,"getNativeImplementation",0,l,"setTimeout",0,function(...e){return l("setTimeout")(...e)}],635426),e.s(["makeFetchTransport",0,function(e,n=l("fetch")){let i=0,s=0;async function o(t){let r=t.body.length;i+=r,s++;let o={body:t.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:i<=6e4&&s<15,...e.fetchOptions};try{let t=await n(e.url,o);return{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}}catch(e){throw u("fetch"),e}finally{i-=r,s--}}return(0,t.createTransport)(e,o,(0,r.makePromiseBuffer)(e.bufferSize||40))}],546806)},623425,e=>{"use strict";var t=e.i(296183);function r(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}e.s(["getEnvelopeEndpointWithUrlEncodedAuth",0,function(e,t,n){let i;return t||`${r(e)}${e.projectId}/envelope/?${i={sentry_version:"7"},e.publicKey&&(i.sentry_key=e.publicKey),n&&(i.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(i).toString()}`},"getReportDialogEndpoint",0,function(e,n){let i=(0,t.makeDsn)(e);if(!i)return"";let s=`${r(i)}embed/error-page/`,o=`dsn=${(0,t.dsnToString)(i)}`;for(let e in n)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=n.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`;return`${s}?${o}`}])},771045,e=>{"use strict";var t=e.i(616124),r=e.i(351784),n=e.i(436972);e.s(["addBreadcrumb",0,function(e,i){let s=(0,t.getClient)(),o=(0,t.getIsolationScope)();if(!s)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:l=100}=s.getOptions();if(l<=0)return;let u={timestamp:(0,n.dateTimestampInSeconds)(),...e},c=a?(0,r.consoleSandbox)(()=>a(u,i)):u;null!==c&&(s.emit&&s.emit("beforeAddBreadcrumb",c,i),o.addBreadcrumb(c,l))}])},894460,e=>{"use strict";var t=e.i(623425),r=e.i(803488),n=e.i(616124),i=e.i(66797),s=e.i(184201),o=e.i(428185),a=e.i(898732),l=e.i(899182),u=e.i(650026),c=e.i(571205),d=e.i(208996),h=e.i(38875),p=e.i(436972),f=e.i(351784),m=e.i(296183),g=e.i(190362),y=e.i(120605),v=e.i(614409),_=e.i(943175),b=e.i(913681),S=e.i(645025),E=e.i(317013),w=e.i(211228),I=e.i(18375),k=e.i(234719),C=e.i(611930),T=e.i(964710),M=e.i(88071);let D="Not capturing exception because it's already been captured.",x="Discarded session because of missing or non-string release",R=Symbol.for("SentryInternalError"),O=Symbol.for("SentryDoNotSendEventError");function N(e){return{message:e,[R]:!0}}function L(e){return{message:e,[O]:!0}}function A(e){return!!e&&"object"==typeof e&&R in e}function B(e){return!!e&&"object"==typeof e&&O in e}function U(e,t,r,n,i){let s,o=0,a=!1;e.on(r,()=>{o=0,clearTimeout(s),a=!1}),e.on(t,t=>{(o+=n(t))>=8e5?i(e):a||(a=!0,s=(0,T.safeUnref)(setTimeout(()=>{i(e)},5e3)))}),e.on("flush",()=>{i(e)})}function P(e){return"replay_event"===e?"replay":e||"error"}function W(e){return void 0===e.type}function F(e){return"transaction"===e.type}function $(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+j(e.attributes)}function H(e){let t=0;return e.message&&(t+=2*e.message.length),t+j(e.attributes)}function j(e){if(!e)return 0;let t=0;
2return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*z(e[0]):(0,y.isPrimitive)(e)?t+=z(e):t+=100}),t}function z(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}e.s(["Client",0,class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=(0,E.makePromiseBuffer)(e.transportOptions?.bufferSize??d.DEFAULT_TRANSPORT_BUFFER_SIZE),e.dsn?this._dsn=(0,m.makeDsn)(e.dsn):i.DEBUG_BUILD&&f.debug.warn("No DSN provided, client will not send events."),this._dsn){const r=(0,t.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&U(this,"afterCaptureLog","flushLogs",H,a._INTERNAL_flushLogsBuffer),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&U(this,"afterCaptureMetric","flushMetrics",$,l._INTERNAL_flushMetricsBuffer)}captureException(e,t,r){let n=(0,_.uuid4)();if((0,_.checkOrSetAlreadyCaught)(e))return i.DEBUG_BUILD&&f.debug.log(D),n;let s={event_id:n,...t};return this._process(()=>this.eventFromException(e,s).then(e=>this._captureEvent(e,s,r)).then(e=>e),"error"),s.event_id}captureMessage(e,t,r,n){let i={event_id:(0,_.uuid4)(),...r},s=(0,y.isParameterizedString)(e)?e:String(e),o=(0,y.isPrimitive)(e),a=o?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(()=>a.then(e=>this._captureEvent(e,i,n)),o?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=(0,_.uuid4)();if(t?.originalException&&(0,_.checkOrSetAlreadyCaught)(t.originalException))return i.DEBUG_BUILD&&f.debug.log(D),n;let s={event_id:n,...t},o=e.sdkProcessingMetadata||{},a=o.capturedSpanScope,l=o.capturedSpanIsolationScope,u=P(e.type);return this._process(()=>this._captureEvent(e,s,a||r,l),u),s.event_id}captureSession(e){this.sendSession(e),(0,u.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit("flush");let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){(0,a._INTERNAL_flushLogsBuffer)(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];(0,o.setupIntegration)(this,e,this._integrations),t||(0,o.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=(0,s.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=(0,h.addItemToEnvelope)(r,(0,h.createAttachmentEnvelopeItem)(e));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:n=r.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let r=e.attrs||{};if(!r.release&&!t){i.DEBUG_BUILD&&f.debug.warn(x);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){i.DEBUG_BUILD&&f.debug.warn(x);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);let o=(0,s.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;i.DEBUG_BUILD&&f.debug.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];
2r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return i.DEBUG_BUILD&&f.debug.error("Error while sending envelope:",e),{}}return i.DEBUG_BUILD&&f.debug.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,o.setupIntegrations)(this,e),(0,o.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i){for(let e of(n=!0,r=!1,i))if(e.mechanism?.handled===!1){r=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&r)&&((0,u.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,i){let s=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),(0,S.prepareEvent)(s,e,t,r,this,i).then(e=>
2(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,n.getTraceContextFromScope)(r)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,c.getDynamicSamplingContextFromScope)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,n.getCurrentScope)(),s=(0,n.getIsolationScope)()){return i.DEBUG_BUILD&&W(e)&&f.debug.log(`Captured error event \`${(0,g.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,s).then(e=>e.event_id,e=>{i.DEBUG_BUILD&&(B(e)?f.debug.log(e.message):A(e)?f.debug.warn(e.message):f.debug.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:s}=i,o=F(e),a=W(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===s?void 0:(0,b.parseSampleRate)(s);if(a&&"number"==typeof c&&(0,w.safeMathRandom)()>c)return this.recordDroppedEvent("sample_rate","error"),(0,C.rejectedSyncPromise)(L(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let d=P(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),L("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,y.isThenable)(e))return e.then(e=>{if(!(0,y.isPlainObject)(e)&&null!==e)throw N(r);return e},e=>{throw N(`${t} rejected with ${e}`)});if(!(0,y.isPlainObject)(e)&&null!==e)throw N(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:o,ignoreSpans:a}=t,l=r;if(W(l)&&i)return i(l,n);if(F(l)){if(o||a){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:s,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:o?.[M.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:o?.[M.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}(l);if(a?.length&&(0,I.shouldIgnoreSpan)(t,a))return null;if(o){let e=o(t);if(e)l=(0,v.merge)(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[M.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[M.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements});else(0,k.showSpanDropWarning)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(a?.length&&(0,I.shouldIgnoreSpan)(e,a)){(0,I.reparentChildSpans)(r,e);continue}if(o){let r=o(e);r?t.push(r):((0,k.showSpanDropWarning)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(s){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(l,n)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw L(`${u} returned \`null\`, will not send event.`)}let s=r.getSession()||n.getSession();if(a&&s&&this._updateSessionFromEvent(s,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(B(e)||A(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),N(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
3Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===E.SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;let t;i.DEBUG_BUILD&&f.debug.log("Flushing outcomes...");let r=this._clearOutcomes();if(0===r.length){i.DEBUG_BUILD&&f.debug.log("No outcomes to send");return}if(!this._dsn){i.DEBUG_BUILD&&f.debug.log("No dsn provided, will not send outcomes");return}i.DEBUG_BUILD&&f.debug.log("Sending outcomes:",r);let n=(e=this._options.tunnel&&(0,m.dsnToString)(this._dsn),t=[{type:"client_report"},{timestamp:(0,p.dateTimestampInSeconds)(),discarded_events:r}],(0,h.createEnvelope)(e?{dsn:e}:{},[t]));this.sendEnvelope(n)}}],894460)},775478,423703,e=>{"use strict";var t=e.i(351784),r=e.i(534403),n=e.i(265040),i=e.i(66797),s=e.i(647495);let o={},a={};function l(e,t){o[e]=o[e]||[],o[e].push(t)}function u(e,r){if(!a[e]){a[e]=!0;try{r()}catch(r){i.DEBUG_BUILD&&t.debug.error(`Error while instrumenting ${e}`,r)}}}function c(e,r){let n=e&&o[e];if(n)for(let o of n)try{o(r)}catch(r){i.DEBUG_BUILD&&t.debug.error(`Error while triggering instrumentation handler.
4Type: ${e}
5Name: ${(0,s.getFunctionName)(o)}
6Error:`,r)}}function d(){"console"in n.GLOBAL_OBJ&&t.CONSOLE_LEVELS.forEach(function(e){e in n.GLOBAL_OBJ.console&&(0,r.fill)(n.GLOBAL_OBJ.console,e,function(r){return t.originalConsoleMethods[e]=r,function(...r){c("console",{args:r,level:e});let i=t.originalConsoleMethods[e];i?.apply(n.GLOBAL_OBJ.console,r)}})})}e.s(["addHandler",0,l,"maybeInstrument",0,u,"triggerHandlers",0,c],423703),e.s(["addConsoleInstrumentationHandler",0,function(e){let t="console";l(t,e),u(t,d)}],775478)},710151,e=>{"use strict";var t=e.i(616124),r=e.i(120605),n=e.i(534403),i=e.i(38967),s=e.i(436972),o=e.i(265040),a=e.i(423703);function l(e,u=!1){(!u||(0,i.supportsNativeFetch)())&&(0,n.fill)(o.GLOBAL_OBJ,"fetch",function(i){return function(...l){let u=Error(),{method:c,url:p}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:h(t),method:d(n,"method")?String(n.method).toUpperCase():(0,r.isRequest)(t)&&d(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:h(t),method:d(t,"method")?String(t.method).toUpperCase():"GET"}}(l),f={args:l,fetchData:{method:c,url:p},startTimestamp:1e3*(0,s.timestampInSeconds)(),virtualError:u,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,r.isRequest)(t))return new Headers(t.headers)}catch{}}(l)};return e||(0,a.triggerHandlers)("fetch",{...f}),i.apply(o.GLOBAL_OBJ,l).then(async t=>(e?e(t):(0,a.triggerHandlers)("fetch",{...f,endTimestamp:1e3*(0,s.timestampInSeconds)(),response:t}),t),e=>{(0,a.triggerHandlers)("fetch",{...f,endTimestamp:1e3*(0,s.timestampInSeconds)(),error:e}),(0,r.isError)(e)&&void 0===e.stack&&(e.stack=u.stack,(0,n.addNonEnumerableProperty)(e,"framesToPop",1));let i=(0,t.getClient)(),o=i?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==o&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(f.fetchData.url).host;"always"===o?e.message=`${e.message} (${t})`:(0,n.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function u(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),s=!0;for(;s;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function c(e){let t;try{t=e.clone()}catch{return}u(t,()=>{(0,a.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,s.timestampInSeconds)(),response:e})})}function d(e,t){return!!e&&"object"==typeof e&&!!e[t]}function h(e){return"string"==typeof e?e:e?d(e,"url")?e.url:e.toString?e.toString():"":""}e.s(["addFetchEndInstrumentationHandler",0,function(e){let t="fetch-body-resolved";(0,a.addHandler)(t,e),(0,a.maybeInstrument)(t,()=>l(c))},"addFetchInstrumentationHandler",0,function(e,t){let r="fetch";(0,a.addHandler)(r,e),(0,a.maybeInstrument)(r,()=>l(void 0,t))}])},656637,275332,e=>{"use strict";var t=e.i(265040),r=e.i(423703);let n=null;function i(){n=t.GLOBAL_OBJ.onerror,t.GLOBAL_OBJ.onerror=function(e,t,i,s,o){return(0,r.triggerHandlers)("error",{column:s,error:o,line:i,msg:e,url:t}),!!n&&n.apply(this,arguments)},t.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}e.s(["addGlobalErrorInstrumentationHandler",0,function(e){let t="error";(0,r.addHandler)(t,e),(0,r.maybeInstrument)(t,i)}],656637);let s=null;function o(){s=t.GLOBAL_OBJ.onunhandledrejection,t.GLOBAL_OBJ.onunhandledrejection=function(e){return(0,r.triggerHandlers)("unhandledrejection",e),!s||s.apply(this,arguments)},t.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}e.s(["addGlobalUnhandledRejectionInstrumentationHandler",0,function(e){let t="unhandledrejection";(0,r.addHandler)(t,e),(0,r.maybeInstrument)(t,o)}],275332)}
6,428185,e=>{"use strict";var t=e.i(616124),r=e.i(66797),n=e.i(351784);let i=[];function s(e,t,s){if(s[t.name]){r.DEBUG_BUILD&&n.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(s[t.name]=t,i.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),i.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}r.DEBUG_BUILD&&n.debug.log(`Integration installed: ${t.name}`)}e.s(["addIntegration",0,function(e){let i=(0,t.getClient)();if(!i){r.DEBUG_BUILD&&n.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}i.addIntegration(e)},"afterSetupIntegrations",0,function(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)},"defineIntegration",0,function(e){return e},"getIntegrationsToSetup",0,function(e){let t,r,n=e.defaultIntegrations||[],i=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...n,...i];else if("function"==typeof i){let e=i(n);t=Array.isArray(e)?e:[e]}else t=n;return r={},t.forEach(e=>{let{name:t}=e,n=r[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(r[t]=e)}),Object.values(r)},"setupIntegration",0,s,"setupIntegrations",0,function(e,t){let r={};return t.forEach(t=>{t&&s(e,t,r)}),r}])},725469,e=>{"use strict";var t=e.i(616124),r=e.i(428185),n=e.i(88071);let i=(0,r.defineIntegration)(()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{let r=(0,t.getCurrentScope)().getScopeData(),i=(0,t.getIsolationScope)().getScopeData(),s=r.conversationId||i.conversationId;s&&e.setAttribute(n.GEN_AI_CONVERSATION_ID_ATTRIBUTE,s)})}}));e.s(["conversationIdIntegration",0,i])},372181,e=>{"use strict";var t=e.i(66797),r=e.i(428185),n=e.i(351784),i=e.i(647495);let s=(0,r.defineIntegration)(()=>{let e;return{name:"Dedupe",processEvent(r){if(r.type)return r;try{var i,s,u,c,d,h;let p,f,m,g;if(i=r,(s=e)&&(u=i,c=s,p=u.message,f=c.message,(p||f)&&(!p||f)&&(p||!f)&&p===f&&a(u,c)&&o(u,c)&&1||(d=i,h=s,m=l(h),g=l(d),m&&g&&m.type===g.type&&m.value===g.value&&a(d,h)&&o(d,h))))return t.DEBUG_BUILD&&n.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=r}}});function o(e,t){let r=(0,i.getFramesFromEvent)(e),n=(0,i.getFramesFromEvent)(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function a(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch{return!1}}function l(e){return e.exception?.values?.[0]}e.s(["dedupeIntegration",0,s])},512030,190362,152718,e=>{"use strict";let t;var r=e.i(66797),n=e.i(428185),i=e.i(351784);function s(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}e.s(["getPossibleEventMessages",0,s],190362);var o=e.i(943175),a=e.i(115356);let l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],u=(0,n.defineIntegration)((e={})=>{let t;return{name:"EventFilters",setup(r){t=d(e,r.getOptions())},processEvent:(n,l,u)=>(t||(t=d(e,u.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,a.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
7Event: ${(0,o.getEventDescription)(e)}`),!0}else{var n,l,u;if(n=e,l=t.ignoreErrors,l?.length&&s(n).some(e=>(0,a.stringMatchesSomePattern)(e,l)))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
8Event: ${(0,o.getEventDescription)(e)}`),!0;if(u=e,u.exception?.values?.length&&!u.message&&!u.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.
9Event: ${(0,o.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=h(e);return!!r&&(0,a.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.
10Event: ${(0,o.getEventDescription)(e)}.
11Url: ${h(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=h(e);return!r||(0,a.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.
12Event: ${(0,o.getEventDescription)(e)}.
13Url: ${h(e)}`),!0}return!1}(n,t)?n:null)}}),c=(0,n.defineIntegration)((e={})=>({...u(e),name:"InboundFilters"}));function d(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:l],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function h(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return r.DEBUG_BUILD&&i.debug.error(`Cannot extract url for event ${(0,o.getEventDescription)(e)}`),null}}
13e.s(["eventFiltersIntegration",0,u,"inboundFiltersIntegration",0,c],512030);var p=e.i(616124),f=e.i(534403);let m=new WeakMap,g=(0,n.defineIntegration)(()=>({name:"FunctionToString",setupOnce(){t=Function.prototype.toString;try{Function.prototype.toString=function(...e){let r=(0,f.getOriginalFunction)(this),n=m.has((0,p.getClient)())&&void 0!==r?r:this;return t.apply(n,e)}}catch{}},setup(e){m.set(e,!0)}}));e.s(["functionToStringIntegration",0,g],152718)},898732,31809,435878,974417,e=>{"use strict";let t;function r(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=function(e,t){let{value:r,unit:n}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(r),s=n&&"string"==typeof n?{unit:n}:{};if(i)return{...i,...s};if(!t||"skip-undefined"===t&&void 0===r)return;let o="";try{o=JSON.stringify(r)??""}catch{}return{value:o,type:"string",...s}}(i,t);e&&(n[r]=e)}return n}e.s(["serializeAttributes",0,r],31809);var n=e.i(148641),i=e.i(616124),s=e.i(66797),o=e.i(351784),a=e.i(120605),l=e.i(531465),u=e.i(836810),c=e.i(436972);let d=0;function h(e){let r=Math.floor(1e3*e);void 0!==t&&r!==t&&(d=0);let n=d;return d++,t=r,{key:"sentry.timestamp.sequence",value:{value:n,type:"integer"}}}e.s(["getSequenceAttribute",0,h],435878);var p=e.i(571205),f=e.i(234719);function m(e,t){return t?(0,i.withScope)(t,()=>{let r=(0,f.getActiveSpan)(),n=r?(0,f.spanToTraceContext)(r):(0,i.getTraceContextFromScope)(t);return[r?(0,p.getDynamicSamplingContextFromSpan)(r):(0,p.getDynamicSamplingContextFromScope)(e,t),n]}):[void 0,void 0]}e.s(["_getTraceInfoFromScope",0,m],974417);let g={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var y=e.i(296183),v=e.i(38875);function _(e,t,r,n=!0){r&&(!e[t]||n)&&(e[t]=r)}function b(e,t){var r;let n=E(),i=(r=e,E().get(r));void 0===i?n.set(e,[t]):i.length>=100?(S(e,i),n.set(e,[t])):n.set(e,[...i,t])}function S(e,t){var r,n,i,s;let o,a=t??(s=e,E().get(s))??[];if(0===a.length)return;let l=e.getOptions(),u=(r=l._metadata,n=l.tunnel,i=e.getDsn(),o={},r?.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(o.dsn=(0,y.dsnToString)(i)),(0,v.createEnvelope)(o,[[{type:"log",item_count:a.length,content_type:"application/vnd.sentry.items.log+json"},{items:a}]]));E().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(u)}function E(){return(0,n.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}e.s(["_INTERNAL_captureLog",0,function(e,t=(0,i.getCurrentScope)(),n=b){let d=t?.getClient()??(0,i.getClient)();if(!d){s.DEBUG_BUILD&&o.debug.warn("No client available to capture log.");return}let{release:p,environment:f,enableLogs:y=!1,beforeSendLog:v}=d.getOptions();if(!y){s.DEBUG_BUILD&&o.debug.warn("logging option not enabled, log will not be captured.");return}let[,S]=m(d,t),E={...e.attributes},{user:{id:w,email:I,username:k},attributes:C={}}=(0,l.getCombinedScopeData)((0,i.getIsolationScope)(),t);_(E,"user.id",w,!1),_(E,"user.email",I,!1),_(E,"user.name",k,!1),_(E,"sentry.release",p),_(E,"sentry.environment",f);let{name:T,version:M}=d.getSdkMetadata()?.sdk??{};_(E,"sentry.sdk.name",T),_(E,"sentry.sdk.version",M);let D=d.getIntegrationByName("Replay"),x=D?.getReplayId(!0);_(E,"sentry.replay_id",x),x&&D?.getRecordingMode()==="buffer"&&_(E,"sentry._internal.replay_is_buffering",!0);let R=e.message;if((0,a.isParameterizedString)(R)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=R;t?.length&&(E["sentry.message.template"]=e),t.forEach((e,t)=>{E[`sentry.message.parameter.${t}`]=e})}let O=(0,u._getSpanForScope)(t);_(E,"sentry.trace.parent_span_id",O?.spanContext().spanId);let N={...e,attributes:E};d.emit("beforeCaptureLog",N);let L=v?(0,o.consoleSandbox)(()=>v(N)):N;if(!L){d.recordDroppedEvent("before_send","log_item",1),s.DEBUG_BUILD&&o.debug.warn("beforeSendLog returned null, log will not be captured.");return}let{level:A,message:B,attributes:U={},severityNumber:P}=L,W=(0,c.timestampInSeconds)(),F=h(W);n(d,{timestamp:W,level:A,body:B,trace_id:S?.trace_id,severity_number:P??g[A],attributes:{...r(C),...r(U,!0),[F.key]:F.value}}),d.emit("afterCaptureLog",L)},"_INTERNAL_flushLogsBuffer",0,S],898732)},899182,e=>{"use strict";var t=e.i(31809),r=e.i(148641),n=e.i(616124),i=e.i(66797),s=e.i(351784),o=e.i(531465),a=e.i(836810),l=e.i(436972),u=e.i(435878),c=e.i(974417),d=e.i(296183),h=e.i(38875);function p(e,t,r,n=!0){!r||!n&&t in e||(e[t]=r)}function f(e,t){var r;let n=g(),i=(r=e,g().get(r));void 0===i?n.set(e,[t]):i.length>=1e3?(m(e,i),n.set(e,[t])):n.set(e,[...i,t])}function m(e,t){var r,n,i,s;let o,a=t??(s=e,g().get(s))??[];if(0===a.length)return;let l=e.getOptions(),u=(r=l._metadata,n=l.tunnel,i=e.getDsn(),o={},r?.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(o.dsn=(0,d.dsnToString)(i)),(0,h.createEnvelope)(o,[[{type:"trace_metric",item_count:a.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:a}]]));g().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(u)}function g(){return(0,r.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}e.s(["_INTERNAL_captureMetric",0,function(e,r){let d=r?.scope??(0,n.getCurrentScope)(),h=r?.captureSerializedMetric??f,m=d?.getClient()??(0,n.getClient)();if(!m){i.DEBUG_BUILD&&s.debug.warn("No client available to capture metric.");return}let{_experiments:g,enableMetrics:y,beforeSendMetric:v}=m.getOptions();if(!(y??g?.enableMetrics??!0)){i.DEBUG_BUILD&&s.debug.warn("metrics option not enabled, metric will not be captured.");return}let{user:_,attributes:b}=(0,o.getCombinedScopeData)((0,n.getIsolationScope)(),d),S=function(e,t,r){let{release:n,environment:i}=t.getOptions(),s={...e.attributes};p(s,"user.id",r.id,!1),p(s,"user.email",r.email,!1),p(s,"user.name",r.username,!1),p(s,"sentry.release",n),p(s,"sentry.environment",i);let{name:o,version:a}=t.getSdkMetadata()?.sdk??{};p(s,"sentry.sdk.name",o),p(s,"sentry.sdk.version",a);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return p(s,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&p(s,"sentry._internal.replay_is_buffering",!0),{...e,attributes:s}}(e,m,_);m.emit("processMetric",S);let E=v||g?.beforeSendMetric,w=E?E(S):S;if(!w){i.DEBUG_BUILD&&s.debug.log("`beforeSendMetric` returned `null`, will not send metric.");return}let I=function(e,r,n,i){let[,s]=(0,c._getTraceInfoFromScope)(r,n),o=(0,a._getSpanForScope)(n),d=o?o.spanContext().traceId:s?.trace_id,h=o?o.spanContext().spanId:void 0,p=(0,l.timestampInSeconds)(),f=(0,u.getSequenceAttribute)(p);return{timestamp:p,trace_id:d??"",span_id:h,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...(0,t.serializeAttributes)(i),...(0,t.serializeAttributes)(e.attributes,"skip-undefined"),[f.key]:f.value}}}(w,m,d,b);i.DEBUG_BUILD&&s.debug.log("[Metric]",I),h(m,I),m.emit("afterCaptureMetric",w)},"_INTERNAL_flushMetricsBuffer",0,m],899182)},860782,e=>{"use strict";var t=e.i(616124),r=e.i(66797),n=e.i(351784);function i(e){(0,t.getCurrentScope)().setClient(e)}e.s(["initAndBind",0,function(e,s){!0===s.debug&&(r.DEBUG_BUILD?n.debug.enable():(0,n.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,t.getCurrentScope)().update(s.initialScope);let o=new e(s);return i(o),o.init(),o},"setCurrentClient",0,i])},208996,964710,317013,436946,e=>{"use strict";
13var t=e.i(66797),r=e.i(351784),n=e.i(38875),i=e.i(611930);function s(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}e.s(["safeUnref",0,s],964710);let o=Symbol.for("SentryBufferFullError");function a(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,i.rejectedSyncPromise)(o);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,i.resolvedSyncPromise)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>s(setTimeout(()=>t(!1),e)))]):r}}}e.s(["SENTRY_BUFFER_FULL_ERROR",0,o,"makePromiseBuffer",0,a],317013);var l=e.i(211228);function u(e,t=(0,l.safeDateNow)()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}function c(e,t,r=(0,l.safeDateNow)()){return(e[t]||e.all||0)>r}function d(e,{statusCode:t,headers:r},n=(0,l.safeDateNow)()){let i={...e},s=r?.["x-sentry-rate-limits"],o=r?.["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,r,,,s]=e.split(":",5),o=parseInt(t,10),a=(isNaN(o)?60:o)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(i[e]=n+a):i[e]=n+a;else i.all=n+a}else o?i.all=n+u(o,n):429===t&&(i.all=n+6e4);return i}e.s(["isRateLimited",0,c,"parseRetryAfterHeader",0,u,"updateRateLimits",0,d],436946),e.s(["DEFAULT_TRANSPORT_BUFFER_SIZE",0,64,"createTransport",0,function(e,i,s=a(e.bufferSize||64)){let l={};return{send:function(a){let u=[];if((0,n.forEachEnvelopeItem)(a,(t,r)=>{let i=(0,n.envelopeItemTypeToDataCategory)(r);c(l,i)?e.recordDroppedEvent("ratelimit_backoff",i):u.push(t)}),0===u.length)return Promise.resolve({});let h=(0,n.createEnvelope)(a[0],u),p=i=>{if((0,n.envelopeContainsItemType)(h,["client_report"])){t.DEBUG_BUILD&&r.debug.warn(`Dropping client report. Will not send outcomes (reason: ${i}).`);return}(0,n.forEachEnvelopeItem)(h,(t,r)=>{e.recordDroppedEvent(i,(0,n.envelopeItemTypeToDataCategory)(r))})};return s.add(()=>i({body:(0,n.serializeEnvelope)(h)}).then(e=>(413===e.statusCode?(t.DEBUG_BUILD&&r.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),p("send_error")):(t.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&r.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),l=d(l,e)),e),e=>{throw p("network_error"),t.DEBUG_BUILD&&r.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===o)return t.DEBUG_BUILD&&r.debug.error("Skipped sending event because buffer is full."),p("queue_overflow"),Promise.resolve({});throw e})},flush:e=>s.drain(e)}}],208996)},972415,160663,e=>{"use strict";function t(e){return"isRelative"in e}e.s(["getBreadcrumbLogLevelFromHttpStatusCode",0,function(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}],972415),e.i(88071),e.s(["getSanitizedUrlStringFromUrlObject",0,function(e){if(t(e))return e.pathname;let r=new URL(e);return r.search="",r.hash="",["80","443"].includes(r.port)&&(r.port=""),r.password&&(r.password="%filtered%"),r.username&&(r.username="%filtered%"),r.toString()},"isURLObjectRelative",0,t,"parseStringToURLObject",0,function(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}},"parseUrl",0,function(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}},"stripDataUrlContent",0,function(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(","),o="";if(t&&-1!==s){let t=e.slice(s+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${i?",base64":""}${o?`,${o}`:""}`}return e},"stripUrlQueryAndFragment",0,function(e){return e.split(/[?#]/,1)[0]}],160663)},492076,e=>{"use strict";e.s(["debounce",0,function(e,t,r){let n,i,s,o=r?.maxWait?Math.max(r.maxWait,t):0,a=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function c(){return i&&clearTimeout(i),i=a(l,t),o&&void 0===s&&(s=a(l,o)),n}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==s?l():n},c}])},474305,e=>{"use strict";e.s(["getSDKSource",0,function(){return"npm"}
13,"isBrowserBundle",0,function(){return"u">typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}])},17570,e=>{"use strict";var t=e.i(707212),r=e.i(474305),n=e.i(265040);e.s(["isBrowser",0,function(){let e;return"u">typeof window&&(!(!(0,r.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call(void 0!==t.default?t.default:0))||(e=n.GLOBAL_OBJ.process,e?.type==="renderer"))}],17570)},813594,997532,128767,e=>{"use strict";var t=e.i(360353);e.s(["applySdkMetadata",0,function(e,r,n=[r],i="npm"){let s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${r}`,s.packages=n.map(e=>({name:`${i}:@sentry/${e}`,version:t.SDK_VERSION})),s.version=t.SDK_VERSION)}],813594),e.s(["addAutoIpAddressToSession",0,function(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}],997532);var r=e.i(120605),n=e.i(943175),i=e.i(616124),s=e.i(216149),o=e.i(534403);function a(e){return(0,r.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var l=e.i(611930);function u(e,t){var r,n;let i,s,o=d(e,t),l={type:(r=t,!(i=r?.name)&&p(r)?r.message&&Array.isArray(r.message)&&2==r.message.length?r.message[0]:"WebAssembly.Exception":i),value:(n=t,s=n?.message,p(n)?Array.isArray(n.message)&&2==n.message.length?n.message[1]:"wasm exception":s?s.error&&"string"==typeof s.error.message?a(s.error):a(n):"No error message")};return o.length&&(l.stacktrace={frames:o}),void 0===l.type&&""===l.value&&(l.value="Unrecoverable error caught"),l}function c(e,t){return{exception:{values:[u(e,t)]}}}function d(e,t){var r,n;let i=t.stacktrace||t.stack||"",s=(r=t)&&h.test(r.message)?1:0,o="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,s,o)}catch{}return[]}let h=/Minified React error #\d+;/i;function p(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function f(e,t,a,l,h){let p;if((0,r.isErrorEvent)(t)&&t.error)return c(e,t.error);if((0,r.isDOMError)(t)||(0,r.isDOMException)(t)){if("stack"in t)p=c(e,t);else{let i=t.name||((0,r.isDOMError)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;p=m(e,s,a,l),(0,n.addExceptionTypeValue)(p,s)}return"code"in t&&(p.tags={...p.tags,"DOMException.code":`${t.code}`}),p}return(0,r.isError)(t)?c(e,t):((0,r.isPlainObject)(t)||(0,r.isEvent)(t)?p=function(e,t,n,a){let l=(0,i.getClient)(),c=l?.getOptions().normalizeDepth,h=Object.values(t).find(e=>e instanceof Error),p={__serialized__:(0,s.normalizeToSize)(t,c)};if(h)return{exception:{values:[u(e,h)]},extra:p};let f={exception:{values:[{type:(0,r.isEvent)(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,o.extractExceptionKeysForMessage)(e),i=t?"promise rejection":"exception";if((0,r.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if((0,r.isEvent)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}(t,{isUnhandledRejection:a})}]},extra:p};if(n){let t=d(e,n);t.length&&(f.exception.values[0].stacktrace={frames:t})}return f}(e,t,a,h):(p=m(e,t,a,l),(0,n.addExceptionTypeValue)(p,`${t}`,void 0)),(0,n.addExceptionMechanism)(p,{synthetic:!0}),p)}function m(e,t,i,s){let o={};if(s&&i){let r=d(e,i);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,n.addExceptionMechanism)(o,{synthetic:!0})}if((0,r.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return o.logentry={message:e,params:r},o}return o.message=t,o}e.s(["eventFromException",0,function(e,t,r,i){let s=f(e,t,r?.syntheticException||void 0,i);return(0,n.addExceptionMechanism)(s),s.level="error",r?.event_id&&(s.event_id=r.event_id),(0,l.resolvedSyncPromise)(s)},"eventFromMessage",0,function(e,t,r="info",n,i){let s=m(e,t,n?.syntheticException||void 0,i);return s.level=r,n?.event_id&&(s.event_id=n.event_id),(0,l.resolvedSyncPromise)(s)},"eventFromUnknownInput",0,f,"exceptionFromError",0,u],128767)},147464,e=>{"use strict";e.s(["severityLevelFromString",0,function(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}])},38967,e=>{"use strict";var t=e.i(66797),r=e.i(351784);let n=e.i(265040).GLOBAL_OBJ;function i(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}e.s(["isNativeFunction",0,i,"supportsHistory",0,function(){return"history"in n&&!!n.history},"supportsNativeFetch",0,function(){if("string"==typeof EdgeRuntime)return!0;
13if(!function(){if(!("fetch"in n))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(i(n.fetch))return!0;let e=!1,s=n.document;if(s&&"function"==typeof s.createElement)try{let t=s.createElement("iframe");t.hidden=!0,s.head.appendChild(t),t.contentWindow?.fetch&&(e=i(t.contentWindow.fetch)),s.head.removeChild(t)}catch(e){t.DEBUG_BUILD&&r.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e},"supportsReportingObserver",0,function(){return"ReportingObserver"in n}])},195666,e=>{"use strict";let t="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;e.s(["DEBUG_BUILD",0,t])},418453,957433,474665,e=>{"use strict";let t,r,n,i;var s=e.i(423703),o=e.i(534403),a=e.i(943175),l=e.i(645002);function u(){if(!l.WINDOW.document)return;let e=s.triggerHandlers.bind(null,"dom"),t=c(e,!0);l.WINDOW.document.addEventListener("click",t,!1),l.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=l.WINDOW,n=r[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,o.fill)(n,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=n[r]=n[r]||{refCount:0};if(!s.handler){let n=c(e);s.handler=n,t.call(this,r,n,i)}s.refCount++}catch{}return t.call(this,r,n,i)}}),(0,o.fill)(n,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function c(e,i=!1){return s=>{var u;if(!s||s._sentryCaptured)return;let c=function(e){try{return e.target}catch{return null}}(s);if(u=s.type,"keypress"===u&&(!c?.tagName||"INPUT"!==c.tagName&&"TEXTAREA"!==c.tagName&&!c.isContentEditable&&1))return;(0,o.addNonEnumerableProperty)(s,"_sentryCaptured",!0),c&&!c._sentryId&&(0,o.addNonEnumerableProperty)(c,"_sentryId",(0,a.uuid4)());let d="keypress"===s.type?"input":s.type;!function(e){if(e.type!==r)return!1;try{if(!e.target||e.target._sentryId!==n)return!1}catch{}return!0}(s)&&(e({event:s,name:d,global:i}),r=s.type,n=c?c._sentryId:void 0),clearTimeout(t),t=l.WINDOW.setTimeout(()=>{n=void 0,r=void 0},1e3)}}e.s(["addClickKeypressInstrumentationHandler",0,function(e){(0,s.addHandler)("dom",e),(0,s.maybeInstrument)("dom",u)}],418453);var d=e.i(436972),h=e.i(120605);let p="__sentry_xhr_v3__";function f(){if(!l.WINDOW.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,d.timestampInSeconds)(),o=(0,h.isString)(r[0])?r[0].toUpperCase():void 0,a=function(e){if((0,h.isString)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!o||!a)return e.apply(t,r);t[p]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let l=()=>{let e=t[p];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}let r={endTimestamp:1e3*(0,d.timestampInSeconds)(),startTimestamp:i,xhr:t,virtualError:n};(0,s.triggerHandlers)("xhr",r)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(l(),e.apply(t,r))}):t.addEventListener("readystatechange",l),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,s=t[p];return s&&(0,h.isString)(n)&&(0,h.isString)(i)&&(s.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[p];if(!n)return e.apply(t,r);void 0!==r[0]&&(n.body=r[0]);let i={startTimestamp:1e3*(0,d.timestampInSeconds)(),xhr:t};return(0,s.triggerHandlers)("xhr",i),e.apply(t,r)}})}e.s(["SENTRY_XHR_DATA_KEY",0,p,"addXhrInstrumentationHandler",0,function(e){(0,s.addHandler)("xhr",e),(0,s.maybeInstrument)("xhr",f)}],957433);var m=e.i(38967);function g(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=i,o=function(e){try{return new URL(e,l.WINDOW.location.origin).toString()}catch{return e}}(String(r));if(i=o,n===o)return e.apply(this,t);(0,s.triggerHandlers)("history",{from:n,to:o})}return e.apply(this,t)}}l.WINDOW.addEventListener("popstate",()=>{let e=l.WINDOW.location.href,t=i;i=e,t===e||(0,s.triggerHandlers)("history",{from:t,to:e})}),(0,m.supportsHistory)()&&((0,o.fill)(l.WINDOW.history,"pushState",e),(0,o.fill)(l.WINDOW.history,"replaceState",e))}e.s(["addHistoryInstrumentationHandler",0,function(e){let t="history";(0,s.addHandler)(t,e),(0,s.maybeInstrument)(t,g)}],474665)},987636,314137,113028,236080,584787,e=>{"use strict";let t,r,n,i,s;var o=e.i(351784),a=e.i(647495),l=e.i(195666),u=e.i(645002);let c=(e,t,r,n)=>{let i,s;return o=>{if(t.value>=0&&(o||n)&&((s=t.value-(i??0))||void 0===i)){var a;i=t.value,t.delta=s,a=t.value,t.rating=a>r[1]?"poor":a>r[0]?"needs-improvement":"good",e(t)}}},d=(e=!0)=>{let t=u.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t};
13e.s(["getNavigationEntry",0,d],314137);let h=()=>{let e=d();return e?.activationStart??0};function p(e,t,r){u.WINDOW.document&&u.WINDOW.addEventListener(e,t,r)}function f(e,t,r){u.WINDOW.document&&u.WINDOW.removeEventListener(e,t,r)}e.s(["getActivationStart",0,h],113028),e.s(["addPageListener",0,p,"removePageListener",0,f],236080);let m=-1,g=new Set,y=e=>{if(("pagehide"===e.type||u.WINDOW.document?.visibilityState==="hidden")&&m>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of g)e();isFinite(m)||(m="visibilitychange"===e.type?e.timeStamp:0,f("prerenderingchange",y,!0))}},v=()=>{if(u.WINDOW.document&&m<0){let e=h();m=(u.WINDOW.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(u.WINDOW.document?.visibilityState!=="hidden"||u.WINDOW.document?.prerendering?1/0:0),p("visibilitychange",y,!0),p("pagehide",y,!0),p("prerenderingchange",y,!0)}return{get firstHiddenTime(){return m},onHidden(e){g.add(e)}}};e.s(["getVisibilityWatcher",0,v],584787);let _=(e,t=-1)=>{let r=d(),n="navigate";return r&&(u.WINDOW.document?.prerendering||h()>0?n="prerender":u.WINDOW.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:n}},b=new WeakMap;function S(e,t){try{return b.get(e)||b.set(e,new t),b.get(e)}catch(e){return new t}}class E{constructor(){E.prototype.__init.call(this),E.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.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)}}let w=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},I=e=>{let t=!1;return()=>{t||(e(),t=!0)}},k=e=>{u.WINDOW.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},C=[1800,3e3],T=[.1,.25],M=0,D=1/0,x=0,R=e=>{e.forEach(e=>{e.interactionId&&(D=Math.min(D,e.interactionId),M=(x=Math.max(x,e.interactionId))?(x-D)/7+1:0)})},O=()=>t?M:performance.interactionCount||0,N=0;class L{constructor(){L.prototype.__init.call(this),L.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){N=O(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((O()-N)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let A=e=>{let t=u.WINDOW.requestIdleCallback||u.WINDOW.setTimeout;u.WINDOW.document?.visibilityState==="hidden"?e():(p("visibilitychange",e=I(e),{once:!0,capture:!0}),p("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),f("visibilitychange",e,{capture:!0}),f("pagehide",e,{capture:!0})}))},B=[200,500];class U{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let P=[2500,4e3],W=[800,1800],F=e=>{u.WINDOW.document?.prerendering?k(()=>F(e)):u.WINDOW.document?.readyState!=="complete"?addEventListener("load",()=>F(e),!0):setTimeout(e)},$={},H={};function j(e,t){let r=$[e];if(r?.length)for(let n of r)try{n(t)}catch(t){l.DEBUG_BUILD&&o.debug.error(`Error while triggering instrumentation handler.
14Type: ${e}
15Name: ${(0,a.getFunctionName)(n)}
16Error:`,t)}}function z(){return((e,t={})=>{((e,t={})=>{k(()=>{let r,n=v(),i=_("FCP"),s=w("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-h(),0),i.entries.push(t),r(!0)))});s&&(r=c(e,i,C,t.reportAllChanges))})})(I(()=>{let r,n=_("CLS",0),i=v(),s=S(t,E),o=e=>{for(let t of e)s._processEntry(t);s._sessionValue>
16n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},a=w("layout-shift",o);a&&(r=c(e,n,T,t.reportAllChanges),i.onHidden(()=>{o(a.takeRecords()),r(!0)}),u.WINDOW?.setTimeout?.(r))}))})(e=>{j("cls",{metric:e}),r=e},{reportAllChanges:!0})}function G(){return((e,t={})=>{k(()=>{let r,n=v(),i=_("LCP"),s=S(t,U),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))s._processEntry(o),o.startTime<n.firstHiddenTime&&(i.value=Math.max(o.startTime-h(),0),i.entries=[o],r())},a=w("largest-contentful-paint",o);if(a){r=c(e,i,P,t.reportAllChanges);let n=I(()=>{o(a.takeRecords()),a.disconnect(),r(!0)}),s=e=>{e.isTrusted&&(A(n),f(e.type,s,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])p(e,s,{capture:!0})}})})(e=>{j("lcp",{metric:e}),n=e},{reportAllChanges:!0})}function q(){return((e,t={})=>{let r=_("TTFB"),n=c(e,r,W,t.reportAllChanges);F(()=>{let e=d();e&&(r.value=Math.max(e.responseStart-h(),0),r.entries=[e],n(!0))})})(e=>{j("ttfb",{metric:e}),i=e})}function K(){return((e,r={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=v();k(()=>{let i;"interactionCount"in performance||t||(t=w("event",R,{type:"event",buffered:!0,durationThreshold:0}));let s=_("INP"),o=S(r,L),a=e=>{A(()=>{for(let t of e)o._processEntry(t);let t=o._estimateP98LongestInteraction();t&&t._latency!==s.value&&(s.value=t._latency,s.entries=t.entries,i())})},l=w("event",a,{durationThreshold:r.durationThreshold??40});i=c(e,s,B,r.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{a(l.takeRecords()),i(!0)}))})})(e=>{j("inp",{metric:e}),s=e})}function V(e,t,r,n,i=!1){let s;return J(e,t),H[e]||(s=r(),H[e]=!0),n&&t({metric:n}),Y(e,t,i?s:void 0)}function J(e,t){$[e]=$[e]||[],$[e].push(t)}function Y(e,t,r){return()=>{r&&r();let n=$[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}e.s(["addClsInstrumentationHandler",0,function(e,t=!1){return V("cls",e,z,r,t)},"addInpInstrumentationHandler",0,function(e){return V("inp",e,K,s)},"addLcpInstrumentationHandler",0,function(e,t=!1){return V("lcp",e,G,n,t)},"addPerformanceInstrumentationHandler",0,function(e,t){var r;let n;return J(e,t),H[e]||(n={},"event"===(r=e)&&(n.durationThreshold=0),w(r,e=>{j(r,{entries:e})},n),H[e]=!0),Y(e,t)},"addTtfbInstrumentationHandler",0,function(e){return V("ttfb",e,q,i)},"isPerformanceEventTiming",0,function(e){return"duration"in e}],987636)},637016,e=>{"use strict";var t=e.i(351784),r=e.i(195666);let n=Symbol.for("sentry__originalRequestBody");function i(e){return new URLSearchParams(e).toString()}e.s(["getBodyString",0,function(e,n=t.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[i(e)];if(!e)return[void 0]}catch(t){return r.DEBUG_BUILD&&n.error(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return r.DEBUG_BUILD&&n.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]},"getFetchRequestArgBody",0,function(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][n];if(void 0!==t)return t}},"parseXhrResponseHeaders",0,function(e){let n;try{n=e.getAllResponseHeaders()}catch(n){return r.DEBUG_BUILD&&t.debug.error(n,"Failed to get xhr response headers",e),{}}return n?n.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}},"serializeFormData",0,i])},645002,e=>{"use strict";let t=e.i(265040).GLOBAL_OBJ;e.s(["WINDOW",0,t])},894489,e=>{"use strict";let t,r,n,i,s,o,a,l,u;var c,d,h,p,f,m,g,y,v,_=e.i(265040),b=e.i(216149),S=e.i(534403),E=e.i(552479),w=e.i(436972),I=e.i(351784),k=e.i(147464),C=e.i(300650),T=e.i(771045),M=e.i(943175),D=e.i(616124),x=e.i(234719),R=e.i(571205),O=e.i(61371),N=e.i(115356),L=e.i(492076),A=e.i(38875),B=e.i(645025),U=e.i(436946),P=e.i(88071),W=e.i(17570),F=e.i(913681),$=e.i(635426),H=e.i(987636),j=e.i(637016),z=e.i(957433),G=e.i(418453),q=e.i(474665);let K=_.GLOBAL_OBJ,V="sentryReplaySession",J="Unable to send Replay";var Y=Object.defineProperty,X=(e,t,r)=>{let n;
16return(n="symbol"!=typeof t?t+"":t)in e?Y(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},Q=((c=Q||{})[c.Document=0]="Document",c[c.DocumentType=1]="DocumentType",c[c.Element=2]="Element",c[c.Text=3]="Text",c[c.CDATA=4]="CDATA",c[c.Comment=5]="Comment",c);function Z(e){let t=e?.host;return t?.shadowRoot===e}function ee(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function et(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,er).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}}function er(e){let t;if("styleSheet"in e)try{t=et(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,i=n[r],s=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class en{constructor(){X(this,"idNodeMap",new Map),X(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let 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){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ei({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function es({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function eo(e){return e.toLowerCase()}function ea(e){return e.toUpperCase()}let el="__rrweb_original__";function eu(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?eo(t):null}function ec(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function ed(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let eh={};function ep(e){let t=eh[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return eh[e]=n.bind(window)}function ef(...e){return ep("setTimeout")(...e)}function em(...e){return ep("clearTimeout")(...e)}function eg(e){try{return e.contentDocument}catch(e){}}let ey=1,ev=RegExp("[^a-z0-9-_:]");function e_(){return ey++}let eb=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,eS=/^(?:[a-z+]+:)?\/\//i,eE=/^www\..*/i,ew=/^(data:)([^,]*),(.*)/i;function eI(e,t){return(e||"").replace(eb,(e,r,n,i,s,o)=>{let a=n||s||o,l=r||i||"";if(!a)return e;if(eS.test(a)||eE.test(a)||ew.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let u=t.split("/"),c=a.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let ek=/^[^ \t\n\r\u000c]+/,eC=/^[, \t\n\r\u000c]+/,eT=new WeakMap;function eM(e,t){return t&&""!==t.trim()?eD(e,t):t}function eD(e,t){let r=eT.get(e);if(r||(r=e.createElement("a"),eT.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ex(e,t,r,n,i,s,o){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return eM(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return eM(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(eC),!(r>=t.length);){let s=n(ek);if(","===s.slice(-1))s=eM(e,s.substring(0,s.length-1)),i.push(s);else{let n="";s=eM(e,s);let o=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((s+n).trim());break}if(o)")"===e&&(o=!1);else if(","===e){r+=1,i.push((s+n).trim());break}else"("===e&&(o=!0);n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r){let t=eI(n,eD(e));return o&&o.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,o)),t}else if("object"===t&&"data"===r)return eM(e,n);return"function"==typeof s?s(r,n,i):n}function eR(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eO(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:eO(e.parentNode,t,r,n+1)}function eN(e,t){return r=>{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 r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function eL(e,t,r,n,i,s){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.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,l=-1;if(s){if((l=eO(o,eN(n,i)))<0)return!0;a=eO(o,eN(t,r),l>=0?l:1/0)}else{if((a=eO(o,eN(t,r)))<0)return!1;l=eO(o,eN(n,i),a>=0?a:1/0)}return a>=0?!(l>=0)||a<=l:!(l>=0)&&!!s}catch(e){}return!!s}function eA(e){return null==e?"":e.toLowerCase()}function eB(e,n){let i,{doc:s,mirror:o,blockClass:a,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:m=!1,inlineStylesheet:g=!0,maskInputOptions:y={},maskAttributeFn:v,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E={}
16,inlineImages:w=!1,recordCanvas:I=!1,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:T=5e3,onBlockedImageLoad:M,onStylesheetLoad:D,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:O=!1,ignoreCSSAttributes:N}=n,{preserveWhiteSpace:L=!0}=n,A=function(e,n){let{doc:i,mirror:s,blockClass:o,blockSelector:a,unblockSelector:l,maskAllText:u,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:g={},maskTextFn:y,maskInputFn:v,dataURLOptions:_={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:w=!1,ignoreCSSAttributes:I}=n,k=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(i,s);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:Q.Document,childNodes:[],compatMode:e.compatMode};return{type:Q.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Q.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,n){let i,{doc:s,blockClass:o,blockSelector:a,unblockSelector:l,inlineStylesheet:u,maskInputOptions:c={},maskAttributeFn:d,maskInputFn:h,dataURLOptions:p={},inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y=!1,rootId:v,maskTextClass:_,unmaskTextClass:b,maskTextSelector:S,unmaskTextSelector:E,ignoreCSSAttributes:w}=n,I=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,o,a,l),k=function(e){if(e instanceof HTMLFormElement)return"form";let t=eo(e.tagName);return ev.test(t)?"div":t}(e),C={},T=e.attributes.length;for(let t=0;t<T;t++){let r=e.attributes[t];r.name&&!eR(k,r.name,r.value)&&(C[r.name]=ex(s,k,eo(r.name),r.value,e,d,w))}if("link"===k&&u){let t=Array.from(s.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=et(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=eI(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=et(e.sheet);t&&(C._cssText=eI(t,eD(s)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){let t=eu(e),r=ec(e,ea(k),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=eL(e,_,S,b,E,ei({type:t,tagName:ea(k),maskInputOptions:c}));C.value=es({isMasked:n,element:e,value:r,maskInputFn:h})}n&&(C.checked=n)}if("option"===k&&(e.selected&&!c.select?C.selected=!0:delete C.selected),"canvas"===k&&m){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let i=t.getImageData;if(new Uint32Array((el in i?i[el]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(C.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){let t=e.toDataURL(p.type,p.quality),r=s.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(p.type,p.quality)&&(C.rr_dataURL=t)}}if("img"===k&&f){t||(r=(t=s.createElement("canvas")).getContext("2d"));let n=e.currentSrc||e.getAttribute("src")||"<unknown-src>",i=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{t.width=e.naturalWidth,t.height=e.naturalHeight,r.drawImage(e,0,0),C.rr_dataURL=t.toDataURL(p.type,p.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o);return}console.warn(`Cannot inline img src=${n}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(i?C.crossOrigin=i:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if(("audio"===k||"video"===k)&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),!y&&(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),I){let{width:t,height:r}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==k||g(C.src)||(I||eg(e)||(C.rr_src=C.src),delete C.src);try{customElements.get(k)&&(i=!0)}catch(e){}return{type:Q.Element,tagName:k,attributes:C,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:I,rootId:v,isCustom:i}}(e,{doc:i,blockClass:o,blockSelector:a,unblockSelector:l,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:g,maskInputFn:v,dataURLOptions:_,inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:w,rootId:k,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,ignoreCSSAttributes:I});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,h=e.textContent,p="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(h=et(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=eI(h,eD(t.doc))}f&&(h="SCRIPT_PLACEHOLDER");let g=eL(e,n,s,i,o,r);return p||f||m||!h||!g||(h=a?a(h,e.parentElement):h.replace(/[\S]/g,"*")),m&&h&&(l.textarea||g)&&(h=u?u(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h&&(h=es({isMasked:eL(e,n,s,i,o,ei({type:null,tagName:d,maskInputOptions:l})),element:e,value:h,maskInputFn:u})),{type:Q.Text,textContent:h||"",isStyle:p,rootId:c}}(e,{doc:i,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,maskTextFn:y,maskInputOptions:g,maskInputFn:v,rootId:k});case e.CDATA_SECTION_NODE:return{type:Q.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:Q.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:s,mirror:o,blockClass:a,blockSelector:l,maskAllText:c,unblockSelector:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,dataURLOptions:E,inlineImages:w,recordCanvas:I,keepIframeSrcFn:R,newlyAddedElement:O,ignoreCSSAttributes:N});if(!A)return console.warn(e,"not serialized"),null;i=o.hasNode(e)?o.getId(e):!function(e,t){if(t.comment&&e.type===Q.Comment)return!0;
16if(e.type===Q.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"===ed(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eA(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eA(e.attributes.name)||"icon"===eA(e.attributes.rel)||"apple-touch-icon"===eA(e.attributes.rel)||"shortcut icon"===eA(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eA(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eA(e.attributes.property).match(/^(og|twitter|fb):/)||eA(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eA(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eA(e.attributes.name)||"googlebot"===eA(e.attributes.name)||"bingbot"===eA(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eA(e.attributes.name)||"generator"===eA(e.attributes.name)||"framework"===eA(e.attributes.name)||"publisher"===eA(e.attributes.name)||"progid"===eA(e.attributes.name)||eA(e.attributes.property).match(/^article:/)||eA(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eA(e.attributes.name)||"yandex-verification"===eA(e.attributes.name)||"csrf-token"===eA(e.attributes.name)||"p:domain_verify"===eA(e.attributes.name)||"verify-v1"===eA(e.attributes.name)||"verification"===eA(e.attributes.name)||"shopify-checkout-api-token"===eA(e.attributes.name)))return!0}}return!1}(A,S)&&(L||A.type!==Q.Text||A.isStyle||A.textContent.replace(/^\s+|\s+$/gm,"").length)?e_():-2;let B=Object.assign(A,{id:i});if(o.add(e,B),-2===i)return null;k&&k(e);let U=!m;if(B.type===Q.Element){U=U&&!B.needBlock;let t=e.shadowRoot;t&&ee(t)&&(B.isShadowHost=!0)}if((B.type===Q.Document||B.type===Q.Element)&&U){S.headWhitespace&&B.type===Q.Element&&"head"===B.tagName&&(L=!1);let t={doc:s,mirror:o,blockClass:a,blockSelector:l,maskAllText:c,unblockSelector:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:m,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:w,recordCanvas:I,preserveWhiteSpace:L,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:T,onBlockedImageLoad:M,onStylesheetLoad:D,stylesheetLoadTimeout:x,keepIframeSrcFn:R,ignoreCSSAttributes:N};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=eB(r,t);e&&B.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=eB(r,t);n&&(ee(e.shadowRoot)&&(n.isShadow=!0),B.childNodes.push(n))}}if(e.parentNode&&Z(e.parentNode)&&ee(e.parentNode)&&(B.isShadow=!0),B.type!==Q.Element||"iframe"!==B.tagName||B.needBlock||function(e,t,r){let n,i=e.contentWindow;if(!i)return;let s=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=ef(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{em(n),s=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return ef(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=eg(e);if(t&&C){let r=eB(t,{doc:t,mirror:o,blockClass:a,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:w,recordCanvas:I,preserveWhiteSpace:L,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:T,onStylesheetLoad:D,stylesheetLoadTimeout:x,keepIframeSrcFn:R,ignoreCSSAttributes:N});r&&C(e,r)}},T),B.type===Q.Element&&"img"===B.tagName&&!e.complete&&B.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&M)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&M(e,B,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return B.type===Q.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===ed(B.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let s=ef(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{em(s),i=!0,t()})}(e,()=>{if(D){let t=eB(e,{doc:s,mirror:o,blockClass:a,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:w,recordCanvas:I,preserveWhiteSpace:L,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:T,onStylesheetLoad:D,stylesheetLoadTimeout:x,keepIframeSrcFn:R,ignoreCSSAttributes:N});t&&D(e,t)}},x),B.type===Q.Element&&delete B.needBlock,B}function eU(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let eP="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.",eW={map:{},getId:()=>(console.error(eP),-1),getNode:()=>(console.error(eP),null),removeNodeFromMap(){console.error(eP)},has:()=>
16(console.error(eP),!1),reset(){console.error(eP)}};function eF(e,t,r={}){let n=null,i=0;return function(...s){let o=Date.now();i||!1!==r.leading||(i=o);let a=t-(o-i),l=this;a<=0||a>t?(n&&(function(...e){e2("clearTimeout")(...e)}(n),n=null),i=o,e.apply(l,s)):n||!1===r.trailing||(n=e5(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},a))}}function e$(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(eW=new Proxy(eW,{get:(e,t,r)=>("map"===t&&console.error(eP),Reflect.get(e,t,r))}));let eH=Date.now;function ej(e){let 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 ez(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function eG(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function eq(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function eK(e,t,r,n,i){if(!e)return!1;let s=eq(e);if(!s)return!1;let o=eN(t,r);if(!i){let e=n&&s.matches(n);return o(s)&&!e}let a=eO(s,o),l=-1;return!(a<0)&&(n&&(l=eO(s,eN(null,n))),a>-1&&l<0||a<l)}function eV(e,t){return -2===t.getId(e)}function eJ(e){return!!e.changedTouches}function eY(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eX(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function eQ(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(eH=()=>new Date().getTime());class eZ{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){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}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 e0(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function e1(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=e0(r);)r=t;return r}(e);return t.contains(r)}(e))}let e3={};function e2(e){let t=e3[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return e3[e]=n.bind(window)}function e5(...e){return e2("setTimeout")(...e)}var e4=((d=e4||{})[d.DomContentLoaded=0]="DomContentLoaded",d[d.Load=1]="Load",d[d.FullSnapshot=2]="FullSnapshot",d[d.IncrementalSnapshot=3]="IncrementalSnapshot",d[d.Meta=4]="Meta",d[d.Custom=5]="Custom",d[d.Plugin=6]="Plugin",d),e6=((h=e6||{})[h.Mutation=0]="Mutation",h[h.MouseMove=1]="MouseMove",h[h.MouseInteraction=2]="MouseInteraction",h[h.Scroll=3]="Scroll",h[h.ViewportResize=4]="ViewportResize",h[h.Input=5]="Input",h[h.TouchMove=6]="TouchMove",h[h.MediaInteraction=7]="MediaInteraction",h[h.StyleSheetRule=8]="StyleSheetRule",h[h.CanvasMutation=9]="CanvasMutation",h[h.Font=10]="Font",h[h.Log=11]="Log",h[h.Drag=12]="Drag",h[h.StyleDeclaration=13]="StyleDeclaration",h[h.Selection=14]="Selection",h[h.AdoptedStyleSheet=15]="AdoptedStyleSheet",h[h.CustomElement=16]="CustomElement",h),e7=((p=e7||{})[p.MouseUp=0]="MouseUp",p[p.MouseDown=1]="MouseDown",p[p.Click=2]="Click",p[p.ContextMenu=3]="ContextMenu",p[p.DblClick=4]="DblClick",p[p.Focus=5]="Focus",p[p.Blur=6]="Blur",p[p.TouchStart=7]="TouchStart",p[p.TouchMove_Departed=8]="TouchMove_Departed",p[p.TouchEnd=9]="TouchEnd",p[p.TouchCancel=10]="TouchCancel",p),e8=((f=e8||{})[f.Mouse=0]="Mouse",f[f.Pen=1]="Pen",f[f.Touch=2]="Touch",f),e9=((m=e9||{})[m.Play=0]="Play",m[m.Pause=1]="Pause",m[m.Seeked=2]="Seeked",m[m.VolumeChange=3]="VolumeChange",m[m.RateChange=4]="RateChange",m);function te(e){try{return e.contentDocument}catch(e){}}class tt{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.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){let t=e.__ln;
16this.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--)}}let tr=(e,t)=>`${e}@${t}`;class tn{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;let e=[],t=new Set,r=new tt,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!e1(i))return;let s=Z(i.parentNode)?this.mirror.getId(e0(i)):this.mirror.getId(i.parentNode),o=n(i);if(-1===s||-1===o)return r.addNode(i);let a=eB(i,{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=>{eY(e,this.mirror)&&!eK(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),eX(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),eQ(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{eK(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)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});a&&(e.push({parentId:s,nextId:o,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!ts(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)to(this.droppedSet,e)||ts(this.removes,e,this.mirror)?to(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;r.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),r=n(s.value);-1!==t&&-1!==r&&(e=s)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}s=e.previous,r.removeNode(e.value),i(e.value)}let o={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=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).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};(o.texts.length||o.attributes.length||o.removes.length||o.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(o))},this.processMutation=e=>{if(!eV(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;eK(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:eL(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,eq(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=eu(t),i=t.tagName;n=ec(t,i,r);let s=ei({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=es({isMasked:eL(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:n,maskInputFn:this.maskInputFn})}if(eK(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);
16if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(te(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!eR(t.tagName,r)&&(i.attributes[r]=ex(this.doc,eo(t.tagName),eo(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),s=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||s!==r.style.getPropertyPriority(n)?""===s?i.styleDiff[n]=e:i.styleDiff[n]=[e,s]:i._unchangedStyles[n]=[e,s]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(eK(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=Z(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);eK(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||eV(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(ti(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(Z(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[tr(r,n)]?ti(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(Z(e.target)&&ee(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(eV(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[tr(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!eK(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),eQ(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","ignoreCSSAttributes"].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 ti(e,t){e.delete(t),t.childNodes?.forEach(t=>ti(e,t))}function ts(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function to(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let ta=e=>n?(...t)=>{try{return e(...t)}catch(e){if(n&&!0===n(e))return()=>{};throw e}}:e,tl=[];function tu(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function tc(e,t){let r=new tn;tl.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let s=new n(ta(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function td({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,sampling:o}){return eU("scroll",ta(eF(ta(o=>{let a=tu(o);if(!a||eK(a,n,i,s,!0))return;let l=r.getId(a);if(a===t&&t.defaultView){let r=ej(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:a.scrollLeft,y:a.scrollTop})}),o.scroll||100)),t)}let th=["INPUT","TEXTAREA","SELECT"],tp=new WeakMap;function tf(e){var t=[];if(tv("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||tv("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||tv("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||tv("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function tm(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function tg({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,s=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&s?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(e){let r=s.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),ta(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function ty(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=tc(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=eF(ta(t=>{let r=Date.now()-i;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],i=null}),o),u=ta(eF(ta(e=>{let t=tu(e),{clientX:r,clientY:s}=eJ(e)?e.changedTouches[0]:e;i||(i=eH()),a.push({x:r,y:s,id:n.getId(t),timeOffset:eH()-i}
16),l("u">typeof DragEvent&&e instanceof DragEvent?e6.Drag:e instanceof MouseEvent?e6.MouseMove:e6.TouchMove)}),s,{trailing:!1})),c=[eU("mousemove",u,r),eU("touchmove",u,r),eU("drag",u,r)];return ta(()=>{c.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],u=null;return Object.keys(e7).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(o=>{let a=eo(o),c=t=>{let a=tu(t);if(eK(a,n,i,s,!0))return;let l=null,c=o;if("pointerType"in t){switch(t.pointerType){case"mouse":l=e8.Mouse;break;case"touch":l=e8.Touch;break;case"pen":l=e8.Pen}l===e8.Touch?e7[o]===e7.MouseDown?c="TouchStart":e7[o]===e7.MouseUp&&(c="TouchEnd"):e8.Pen}else eJ(t)&&(l=e8.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===e8.Touch||c.startsWith("Mouse")&&l===e8.Mouse)&&(l=null)):e7[o]===e7.Click&&(l=u,u=null);let d=eJ(t)?t.changedTouches[0]:t;if(!d)return;let h=r.getId(a),{clientX:p,clientY:f}=d;ta(e)({type:e7[c],id:h,x:p,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(e7[o]){case e7.MouseDown:case e7.MouseUp:a=a.replace("mouse","pointer");break;case e7.TouchStart:case e7.TouchEnd:return}l.push(eU(a,c,t))}),ta(()=>{l.forEach(e=>e())})}(e),o=td(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return eU("resize",ta(eF(ta(()=>{let t=ez(),i=eG();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,ignoreClass:o,ignoreSelector:a,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=tu(e),c=e.isTrusted,g=r&&ea(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>th.indexOf(g)||eK(r,n,i,s,!0))return;let v=r;if(v.classList.contains(o)||a&&v.matches(a))return;let _=eu(r),b=ec(v,g,_),S=!1,E=ei({maskInputOptions:l,tagName:g,type:_}),w=eL(r,h,f,p,m,E);("radio"===_||"checkbox"===_)&&(S=r.checked),b=es({isMasked:w,element:r,value:b,maskInputFn:u}),y(r,d?{text:b,isChecked:S,userTriggered:c}:{text:b,isChecked:S});let I=r.name;"radio"===_&&I&&S&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(e=>{if(e!==r){let t=es({isMasked:w,element:e,value:ec(e,g,_),maskInputFn:u});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,n){let i=tp.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){tp.set(t,n);let i=r.getId(t);ta(e)({...n,id:i})}}let v=("last"===c.input?["change"]:["input","change"]).map(e=>eU(e,ta(g),t)),_=t.defaultView;if(!_)return()=>{v.forEach(e=>e())};let b=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),S=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(...S.map(e=>(function e(t,r,n,i,s=window){let o=s.Object.getOwnPropertyDescriptor(t,r);return s.Object.defineProperty(t,r,i?n:{set(e){e5(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)})(e[0],e[1],{set(){ta(g)({target:this,isTrusted:!1})}},!1,_))),ta(()=>{v.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:s,doc:o}){let a=ta(o=>eF(ta(s=>{let a=tu(s);if(!a||eK(a,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=a;e({type:o,id:i.getId(a),currentTime:l,volume:u,muted:c,playbackRate:d})}),s.media||500)),l=[eU("play",a(e9.Play),o),eU("pause",a(e9.Pause),o),eU("seeked",a(e9.Seeked),o),eU("volumechange",a(e9.VolumeChange),o),eU("ratechange",a(e9.RateChange),o)];return ta(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,s;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:ta((n,i,s)=>{let[o,a]=s,{id:l,styleId:u}=tm(i,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:a}]}),n.apply(i,s)})});let a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:ta((n,i,s)=>{let[o]=s,{id:a,styleId:l}=tm(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),n.apply(i,s)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:ta((n,i,s)=>{let[o]=s,{id:a,styleId:l}=tm(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),n.apply(i,s)})})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:ta((n,i,s)=>{let[o]=s,{id:a,styleId:l}=tm(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),n.apply(i,s)})}));let l={};t_("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(t_("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),t_("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),t_("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,i])=>{u[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[n].insertRule,{apply:ta((n,i,s)=>{let[o,a]=s,{id:l,styleId:u}=tm(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:[...tf(i),a||0]}]}),n.apply(i,s)})}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:ta((n,i,s)=>{let[o]=s,{id:a,styleId:l}=tm(i.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...tf(i),o]}]}),n.apply(i,s)})})}),ta(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=a,i&&(n.CSSStyleSheet.prototype.replace=i),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=tg(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:ta((i,o,a)=>{let[l,u,c]=a;if(r.has(l))return s.apply(o,[l,u,c]);let{id:d,styleId:h}=tm(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:l,value:u,priority:c},index:tf(o.parentRule)}),i.apply(o,a)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:ta((i,s,a)=>{let[l]=a;if(r.has(l))return o.apply(s,[l]);let{id:u,styleId:c}=tm(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:tf(s.parentRule)}),i.apply(s,a)})}),ta(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,s=r.FontFace;r.FontFace=function(e,t,r){let n=new s(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let o=e$(t.fonts,"add",function(t){return function(r){return e5(ta(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=s}),n.push(o),ta(()=>
16{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,selectionCb:o}=e,a=!0,l=ta(()=>{let e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:o,startOffset:a,endContainer:u,endOffset:c}=e.getRangeAt(t);eK(o,n,i,s,!0)||eK(u,n,i,s,!0)||l.push({start:r.getId(o),startOffset:a,end:r.getId(u),endOffset:c})}o({ranges:l})});return l(),eU("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?e$(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return ta(()=>{tl.forEach(e=>e.reset()),r?.disconnect(),i(),s(),o(),a(),l(),u(),c(),d(),h(),p(),f(),m(),g.forEach(e=>e())})}function tv(e){return void 0!==window[e]}function t_(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class tb{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),s=n||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),s.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=n.get(t);return i||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}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 tS{constructor(){this.crossOriginIframeMirror=new tb(e_),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class tE{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new tb(e_),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new tb(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);let r=te(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case e4.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:e4.IncrementalSnapshot,data:{source:e6.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case e4.Meta:case e4.Load:case e4.DomContentLoaded:break;case e4.Plugin:return t;case e4.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case e4.IncrementalSnapshot:switch(t.data.source){case e6.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
16),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 e6.Drag:case e6.TouchMove:case e6.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case e6.ViewportResize:return!1;case e6.MediaInteraction:case e6.MouseInteraction:case e6.Scroll:case e6.CanvasMutation:case e6.Input:return this.replaceIds(t.data,e,["id"]),t;case e6.StyleSheetRule:case e6.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case e6.Font:return t;case e6.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case e6.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,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===Q.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class tw{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tI{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(!ee(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=tc({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(td({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),e5(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(tg({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=te(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(e$(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&e1(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var tk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tC="u"<typeof Uint8Array?[]:new Uint8Array(256),tT=0;tT<tk.length;tT++)tC[tk.charCodeAt(tT)]=tT;class tM{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class tD{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new eZ,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;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:er(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class tx{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){e2("requestAnimationFrame")(...e)}
16(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let tR=new en;function tO(e={}){let t,{emit:r,checkoutEveryNms:o,checkoutEveryNth:a,blockClass:l="rr-block",blockSelector:u=null,unblockSelector:c=null,ignoreClass:d="rr-ignore",ignoreSelector:h=null,maskAllText:p=!1,maskTextClass:f="rr-mask",unmaskTextClass:m=null,maskTextSelector:g=null,unmaskTextSelector:y=null,inlineStylesheet:v=!0,maskAllInputs:_,maskInputOptions:b,slimDOMOptions:S,maskAttributeFn:E,maskInputFn:w,maskTextFn:I,maxCanvasSize:k=null,packFn:C,sampling:T={},dataURLOptions:M={},mousemoveWait:D,recordDOM:x=!0,recordCanvas:R=!1,recordCrossOriginIframes:O=!1,recordAfter:N="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:L=!1,collectFonts:A=!1,inlineImages:B=!1,plugins:U,keepIframeSrcFn:P=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:F,onMutation:$,getCanvasManager:H}=e;n=F;let j=!O||window.parent===window,z=!1;if(!j)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(j&&!r)throw Error("emit function is required");if(!j&&!z)return()=>{};void 0!==D&&void 0===T.mousemove&&(T.mousemove=D),tR.reset();let G=!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==b?b:{},q=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!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 TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode)return!1})}();let K=0,V=e=>{for(let t of U||[])t.eventProcessor&&(e=t.eventProcessor(e));return C&&!z&&(e=C(e)),e};i=(e,n)=>{if(e.timestamp=eH(),tl[0]?.isFrozen()&&e.type!==e4.FullSnapshot&&(e.type!==e4.IncrementalSnapshot||e.data.source!==e6.Mutation)&&tl.forEach(e=>e.unfreeze()),j)r?.(V(e),n);else if(z){let t={type:"rrweb",event:V(e),origin:window.location.origin,isCheckout:n};window.parent.postMessage(t,"*")}if(e.type===e4.FullSnapshot)t=e,K=0;else if(e.type===e4.IncrementalSnapshot){if(e.data.source===e6.Mutation&&e.data.isAttachIframe)return;K++;let r=a&&K>=a,n=o&&t&&e.timestamp-t.timestamp>o;(r||n)&&ei(!0)}};let J=e=>{i({type:e4.IncrementalSnapshot,data:{source:e6.Mutation,...e}})},Y=e=>i({type:e4.IncrementalSnapshot,data:{source:e6.Scroll,...e}}),X=e=>i({type:e4.IncrementalSnapshot,data:{source:e6.CanvasMutation,...e}}),Q=new tD({mutationCb:J,adoptedStyleSheetCb:e=>i({type:e4.IncrementalSnapshot,data:{source:e6.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new tS:new tE({mirror:tR,mutationCb:J,stylesheetManager:Q,recordCrossOriginIframes:O,wrappedEmit:i});for(let e of U||[])e.getMirror&&e.getMirror({nodeMirror:tR,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new tx,et=function(e,t){try{return e?e(t):new tM}catch{return console.warn("Unable to initialize CanvasManager"),new tM}}(H,{mirror:tR,win:window,mutationCb:e=>i({type:e4.IncrementalSnapshot,data:{source:e6.CanvasMutation,...e}}),recordCanvas:R,blockClass:l,blockSelector:u,unblockSelector:c,maxCanvasSize:k,sampling:T.canvas,dataURLOptions:M,errorHandler:F}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new tw:new tI({mutationCb:J,scrollCb:Y,bypassOptions:{onMutation:$,blockClass:l,blockSelector:u,unblockSelector:c,maskAllText:p,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,inl
16ineStylesheet:v,maskInputOptions:G,dataURLOptions:M,maskAttributeFn:E,maskTextFn:I,maskInputFn:w,recordCanvas:R,inlineImages:B,sampling:T,slimDOMOptions:q,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:P,processedNodeManager:ee,ignoreCSSAttributes:W},mirror:tR}),ei=(e=!1)=>{if(!x)return;i({type:e4.Meta,data:{href:window.location.href,width:eG(),height:ez()}},e),Q.reset(),er.init(),tl.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new en,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:w,onBlockedImageLoad:I,onStylesheetLoad:k,stylesheetLoadTimeout:C,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:M=new Set([])}=t||{};return eB(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,maskAllText:o,maskTextClass:a,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,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===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:_,inlineImages:h,recordCanvas:p,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:w,onBlockedImageLoad:I,onStylesheetLoad:k,stylesheetLoadTimeout:C,keepIframeSrcFn:T,newlyAddedElement:!1,ignoreCSSAttributes:M})}(document,{mirror:tR,blockClass:l,blockSelector:u,unblockSelector:c,maskAllText:p,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,inlineStylesheet:v,maskAllInputs:G,maskAttributeFn:E,maskInputFn:w,maskTextFn:I,slimDOM:q,dataURLOptions:M,recordCanvas:R,inlineImages:B,onSerialize:e=>{eY(e,tR)&&Z.addIframe(e),eX(e,tR)&&Q.trackLinkElement(e),eQ(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{J({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:P,ignoreCSSAttributes:W});if(!t)return console.warn("Failed to snapshot the document");i({type:e4.FullSnapshot,data:{node:t,initialOffset:ej(window)}}),tl.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,tR.getId(document))};s=ei;try{let e=[],t=e=>ta(ty)({onMutation:$,mutationCb:J,mousemoveCb:(e,t)=>i({type:e4.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>i({type:e4.IncrementalSnapshot,data:{source:e6.MouseInteraction,...e}}),scrollCb:Y,viewportResizeCb:e=>i({type:e4.IncrementalSnapshot,data:{source:e6.ViewportResize,...e}}),inputCb:e=>i({type:e4.IncrementalSnapshot,data:{source:e6.Input,...e}}),mediaInteractionCb:e=>i({type:e4.IncrementalSnapshot,data:{source:e6.MediaInteraction,...e}}),styleSheetRuleCb:e=>i({type:e4.IncrementalSnapshot,data:{source:e6.StyleSheetRule,...e}}),styleDeclarationCb:e=>i({type:e4.IncrementalSnapshot,data:{source:e6.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>i({type:e4.IncrementalSnapshot,data:{source:e6.Font,...e}}),selectionCb:e=>{i({type:e4.IncrementalSnapshot,data:{source:e6.Selection,...e}})},customElementCb:e=>{i({type:e4.IncrementalSnapshot,data:{source:e6.CustomElement,...e}})},blockClass:l,ignoreClass:d,ignoreSelector:h,maskAllText:p,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,maskInputOptions:G,inlineStylesheet:v,sampling:T,recordDOM:x,recordCanvas:R,inlineImages:B,userTr
16iggeredOnInput:L,collectFonts:A,doc:e,maskAttributeFn:E,maskInputFn:w,maskTextFn:I,keepIframeSrcFn:P,blockSelector:u,unblockSelector:c,slimDOMOptions:q,dataURLOptions:M,mirror:tR,iframeManager:Z,stylesheetManager:Q,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:W,plugins:U?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>i({type:e4.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});Z.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{ei(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(eU("DOMContentLoaded",()=>{i({type:e4.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&r()})),e.push(eU("load",()=>{i({type:e4.Load,data:{}}),"load"===N&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),s=void 0,n=void 0}}catch(e){console.warn(e)}}function tN(e){return e>0x2540be3ff?e:1e3*e}function tL(e){return e>0x2540be3ff?e/1e3:e}function tA(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:e4.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,b.normalize)(t,10,1e3)}}),"console"===t.category)))}function tB(e){return e.closest("button,a")||e}function tU(e){let t=tP(e);return t&&t instanceof Element?tB(t):t}function tP(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}tO.mirror=tR,tO.takeFullSnapshot=function(e){if(!s)throw Error("please take full snapshot after start recording");s(e)},(g=v||(v={}))[g.NotStarted=0]="NotStarted",g[g.Running=1]="Running",g[g.Stopped=2]="Stopped";let tW=new Set([e6.Mutation,e6.StyleSheetRule,e6.StyleDeclaration,e6.AdoptedStyleSheet,e6.CanvasMutation,e6.Selection,e6.MediaInteraction]);class tF{constructor(e,t,r=tA){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=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=tH()},o||(o=[],(0,S.fill)(K,"open",function(e){return function(...t){if(o)try{o.forEach(e=>e())}catch{}return e.apply(K,t)}})),o.push(e),()=>{let t=o?o.indexOf(e):-1;t>-1&&o.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r,n,i;if(r=t,n=this._ignoreSelector,!t$.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let s={timestamp:tL(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===s.node&&1>Math.abs(e.timestamp-s.timestamp))||(this._clicks.push(s),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=tL(e)}registerScroll(e=Date.now()){this._lastScroll=tL(e)}registerClick(e){let t=tB(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=tH();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:s}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:K.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,o);return}if(i>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:K.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,$.setTimeout)(()=>this._checkClicks(),1e3)}}
16let t$=["A","BUTTON","INPUT"];function tH(){return Date.now()/1e3}function tj(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var tz=((y=tz||{})[y.Document=0]="Document",y[y.DocumentType=1]="DocumentType",y[y.Element=2]="Element",y[y.Text=3]="Text",y[y.CDATA=4]="CDATA",y[y.Comment=5]="Comment",y);let tG=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function tq(e,t){let r=tO.mirror.getId(e),n=r&&tO.mirror.getNode(r),i=n&&tO.mirror.getMeta(n),s=i&&i.type===tz.Element?i:null;return{message:t,data:s?{nodeId:r,node:{id:r,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===tz.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(tG.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(s.attributes)}}:{}}}let tK={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:s,decodedBodySize:o,encodedBodySize:a,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:tY(s),end:tY(i),name:n,data:{size:u,statusCode:l,decodedBodySize:o,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,s=tY(i);return{type:r,name:n,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:tY(p),end:tY(s),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:o,duration:i,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:s,redirectCount:h}}}};function tV(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function tJ(e){let t=tK[e.entryType];return t?t(e):null}function tY(e){return(((0,w.browserPerformanceTimeOrigin)()||K.performance.timeOrigin)+e)/1e3}function tX(e){let t=e.entries[e.entries.length-1];return t0(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function tQ(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=tO.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return t0(e,"cumulative-layout-shift",r,t)}function tZ(e){let t=e.entries[e.entries.length-1];return t0(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function t0(e,t,r,n){let i=e.value,s=e.rating,o=tY(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:s,nodeIds:r?r.map(e=>tO.mirror.getId(e)):void 0,attributions:n}}}let t1="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,t3=["log","warn","error"],t2="[Replay] ";function t5(e,t="info"){(0,T.addBreadcrumb)({category:"console",data:{logger:"replay"},level:t,message:`${t2}${e}`},{level:t})}let t4=(a=!1,l=!1,u={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{a=!!e.captureExceptions,l=!!e.traceInternals}},t1?(t3.forEach(e=>{u[e]=(...t)=>{I.debug[e](t2,...t),l&&t5(t.join(""),(0,k.severityLevelFromString)(e))}}),u.exception=(e,...t)=>{t.length&&u.error&&u.error(...t),I.debug.error(t2,e),a?(0,C.captureException)(e,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):l&&t5(e,"error")},u.infoTick=(...e)=>{I.debug.log(t2,...e),l&&setTimeout(()=>t5(e[0]),0)}):t3.forEach(e=>{u[e]=()=>void 0}),u);class t6 extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class t7{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){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new t6;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:tN(e)}}class t8{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>
16{this._worker.addEventListener("message",({data:r})=>{r.success?e():(t1&&t4.warn("Received worker message with unsuccessful status",r),t(Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{t1&&t4.warn("Failed to load Replay compression worker",e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){t1&&t4.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{let s=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",s),!t.success){t1&&t4.error("Error in compression worker: ",t.response),i(Error("Error in compression worker"));return}n(t.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class t9{constructor(e){this._worker=new t8(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){let t=tN(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new t6):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{t1&&t4.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class re{constructor(e){this._fallback=new t7,this._compression=new t9(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){t1&&t4.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){t1&&t4.exception(e,"Failed to add events when switching buffers.")}}}function rt(){try{return"sessionStorage"in K&&!!K.sessionStorage}catch{return!1}}function rr(e){return void 0!==e&&Math.random()<e}function rn(e){if(rt())try{K.sessionStorage.setItem(V,JSON.stringify(e))}catch{}}function ri(e){let t=Date.now(),r=e.id||(0,M.uuid4)(),n=e.started||t,i=e.lastActivity||t,s=e.segmentId||0,o=e.sampled;return{id:r,started:n,lastActivity:i,segmentId:s,sampled:o,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function rs({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=ri({sampled:rr(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&rn(i),i}function ro(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function ra(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return ro(e.started,t,n)||ro(e.lastActivity,r,n)}function rl(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!ra(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function ru({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!rt())return null;try{let e=K.sessionStorage.getItem(V);if(!e)return null;let t=JSON.parse(e);return t1&&t4.infoTick("Loading existing session"),ri(t)}catch{return null}}();return i?rl(i,{sessionIdleExpire:e,maxReplayDuration:t})?(t1&&t4.infoTick("Session in sessionStorage is expired, creating new one..."),rs(n,{previousSessionId:i.id})):i:(t1&&t4.infoTick("Creating new session"),rs(n,{previousSessionId:r}))}function rc(e,t,r){return!!rh(e,t)&&(rd(e,t,r),!0)}async function rd(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let s=e.getOptions(),o=function(e,t){try{if("function"==typeof t&&e.type===e4.Custom)return t(e)}catch(e){return t1&&t4.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,s.beforeAddRecordingEvent);if(!o)return;return await n.addEvent(o)}catch(s){let t=s&&s instanceof t6,r=(0,D.getClient)();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(s),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"})}}
16function rh(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=tN(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(t1&&t4.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function rp(e){return"transaction"===e.type}function rf(e){return"feedback"===e.type}function rm(e){return!!e.category}function rg(){let e=(0,D.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,x.getActiveSpan)();if(t){let e=(0,R.getDynamicSamplingContextFromSpan)(t);delete e.replay_id}}function ry(e,t){return t.map(({type:t,start:r,end:n,name:i,data:s})=>{let o=e.throttledAddEvent({type:e4.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:s}}});return"string"==typeof o?Promise.resolve(null):o})}function rv(e,t){var r;e.isEnabled()&&null!==t&&(r=t.name,(!t1||!e.getOptions()._experiments.traceInternals)&&(0,O.isSentryRequestUrl)(r,(0,D.getClient)())||e.addUpdate(()=>(ry(e,[t]),!0)))}function r_(e){if(!e)return;let 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){let r=(0,j.serializeFormData)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function rb(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function rS(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function rE(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:s,statusCode:o,request:a,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:s,statusCode:o,request:a,response:l}}}function rw(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function rI(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:s}=function(e){var t;let r,n;if(!e||"string"!=typeof e)return{body:e};let i=e.length>15e4,s=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(i){let t=e.slice(0,15e4);return s?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(s)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,s?.length&&(n._meta={warnings:s}),n}function rk(e,t){return Object.entries(e).reduce((r,[n,i])=>{let s=n.toLowerCase();return t.includes(s)&&e[n]&&(r[s]=i),r},{})}function rC(e,t){let r=function(e,t=K.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(K.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,N.stringMatchesSomePattern)(r,t)}async function rT(e,t,r){try{let n=await rM(e,t,r),i=rE("resource.fetch",n);rv(r.replay,i)}catch(e){t1&&t4.exception(e,"Failed to capture fetch breadcrumb")}}async function rM(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:s=n}=t,{url:o,method:a,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=rC(o,r.networkDetailAllowUrls)&&!rC(o,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:s,url:o,method:a,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var i,s;let o=r?(i=r,s=t,1===i.length&&"string"!=typeof i[0]?rO(i[0],s):2===i.length?rO(i[1],s):{}):{};if(!e)return rI(o,n,void 0);let a=(0,j.getFetchRequestArgBody)(r),[l,u]=(0,j.getBodyString)(a,t4),c=rI(o,n,l);return u?rS(c,u):c}(r,t.input,u):rw(u),response:await rD(d,r,t.response,c)}}async function rD(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return rw(i);let s=n?rR(n.headers,r):{};if(!n||!t&&void 0!==i)return rI(s,i,void 0);let[o,a]=await rx(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let s=e?.length&&void 0===r?r_(e):r;if(!n)return rw(s);if(t)return rI(i,s,e);return rI(i,s,void 0)}catch(e){return t1&&t4.exception(e,"Failed to serialize response body"),rI(i,r,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return a?rS(l,a):l}async function rx(e){let t=function(e){try{return e.clone()}catch(e){t1&&t4.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>
16{let n=(0,$.setTimeout)(()=>t(Error("Timeout while trying to read response body")),500);rN(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return t1&&t4.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return t1&&t4.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function rR(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function rO(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?rR(r,t):Array.isArray(r)?{}:rk(r,t):{}}async function rN(e){return await e.text()}async function rL(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:s=n,input:o,xhr:a}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:h}=e.data;if(!l)return null;if(!a||!rC(l,r.networkDetailAllowUrls)||rC(l,r.networkDetailDenyUrls)){let e=rw(d);return{startTimestamp:i,endTimestamp:s,url:l,method:u,statusCode:c,request:e,response:rw(h)}}let p=a[z.SENTRY_XHR_DATA_KEY],f=p?rk(p.request_headers,r.networkRequestHeaders):{},m=rk((0,j.parseXhrResponseHeaders)(a),r.networkResponseHeaders),[g,y]=r.networkCaptureBodies?(0,j.getBodyString)(o,t4):[void 0],[v,_]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return t1&&t4.exception(e,"Failed to serialize body",r),[void 0,"BODY_PARSE_ERROR"]}return t1&&t4.log("Skipping network body because of body type",r),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return t1&&t4.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=rI(f,d,g),S=rI(m,h,v);return{startTimestamp:i,endTimestamp:s,url:l,method:u,statusCode:c,request:y?rS(b,y):b,response:_?rS(S,_):S}}(e,t,r),i=rE("resource.xhr",n);rv(r.replay,i)}catch(e){t1&&t4.exception(e,"Failed to capture xhr breadcrumb")}}async function rA(e){try{return Promise.all(ry(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(K.performance.memory)]))}catch{return[]}}let rB=_.GLOBAL_OBJ.navigator;async function rU({client:e,scope:t,replayId:r,event:n}){let i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);let s=await (0,B.prepareEvent)(e.getOptions(),n,i,t,e,(0,D.getIsolationScope)());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";let o=e.getSdkMetadata(),{name:a,version:l,settings:u}=o?.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},s}async function rP({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:s}){var o;let a,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
17`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:h}=n,p=(0,D.getClient)(),f=(0,D.getCurrentScope)(),m=p?.getTransport(),g=p?.getDsn();if(!p||!m||!g||!s.sampled)return Promise.resolve({});let y={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:r,replay_type:s.sampled},v=await rU({scope:f,client:p,replayId:t,event:y});if(!v)return p.recordDroppedEvent("event_processor","replay"),t1&&t4.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete v.sdkProcessingMetadata;let _=(o=p.getOptions().tunnel,(0,A.createEnvelope)((0,A.createEventEnvelopeHeaders)(v,(0,A.getSdkMetadataForEnvelopeHeader)(v),o,g),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{a=await m.send(_)}catch(t){let e=Error(J);try{e.cause=t}catch{}throw e}let b=(0,U.updateRateLimits)({},a);if((0,U.isRateLimited)(b,"replay"))throw new rF(b);if("number"==typeof a.statusCode&&(a.statusCode<200||a.statusCode>=300))throw new rW(a.statusCode);return a}
17class rW extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class rF extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class r$ extends Error{constructor(){super("Session is too long, not sending replay")}}async function rH(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await rP(e),!0}catch(r){if(r instanceof rW||r instanceof rF)throw r;if((0,C.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${J} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{(0,$.setTimeout)(async()=>{try{await rH(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let rj="__THROTTLED";class rz{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=function(e,t,r){return(0,L.debounce)(e,t,{...r,setTimeoutImpl:$.setTimeout})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,r=!1;return(...n)=>{let i,s=Math.floor(Date.now()/1e3);if(i=s-5,t.forEach((e,r)=>{r<i&&t.delete(r)}),[...t.values()].reduce((e,t)=>e+t,0)>=300){let e=r;return r=!0,e?"__SKIPPED":rj}r=!1;let o=t.get(s)||0;return t.set(s,o+1),e(...n)}}((e,t)=>rh(this,e)?rd(this,e,t):Promise.resolve(null));const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(i&&(this.clickDetector=new tF(this,i)),t1){const t=e._experiments;t4.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===K.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=tj({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=tj({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:s,key:o,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=r||i||s,u=1===o.length;if(!l&&u)return null;let c=(0,E.htmlTreeAsString)(a,{maxStringLength:200})||"<unknown>",d=tq(a,c);return tj({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:s,key:o}})}(t);r&&tA(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){t1&&t4.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;if(this._requiresManualStart=n,!n){if(this._initializeSessionForSampling(e),!this.session){t1&&t4.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",t1&&t4.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){t1&&t4.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){t1&&t4.log("Buffering is in progress, call `flush()` to save the replay");return}t1&&t4.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=ru({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
17startBuffering(){if(this._isEnabled){t1&&t4.log("Buffering is in progress, call `flush()` to save the replay");return}t1&&t4.infoTick("Starting replay in buffer mode");let e=ru({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{var e;let t,r=this._canvas;this._stopRecording=tO({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession()){t1&&t4.warn("Received replay event after session expired.");return}let i=n||!t;t=!0,e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(tW.has(n)&&e.registerMutation(t.timestamp),n===e6.Scroll&&e.registerScroll(t.timestamp),t.data.source===e6.MouseInteraction){let{type:r,id:n}=t.data,i=tO.mirror.getNode(n);i instanceof HTMLElement&&r===e7.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!rc(e,r,i))return!0;if(!i)return!1;let t=e.session;if(function(e,t){if(t&&e.session?.segmentId===0){let t;rc(e,(t=e.getOptions(),{type:e4.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}}}),!1)}}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(t1&&t4.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&rn(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(rB?.userAgent??"")||/Macintosh/i.test(rB?.userAgent??"")&&rB?.maxTouchPoints&&rB?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.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,this.recordingMode="buffer";try{t1&&t4.log(`Stopping Replay${t?` triggered by ${t}`:""}`),rg(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(rt())try{K.sessionStorage.removeItem(V)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),t1&&t4.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),t1&&t4.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();t1&&t4.log("Converting buffer to session"),await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}
17checkAndHandleExpiredSession(){return this._lastActivity&&ro(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"?void this.pause():!!this._checkSession()}setInitialState(){let e=`${K.location.pathname}${K.location.hash}${K.location.search}`,t=`${K.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){let r=this._throttledAddEvent(e,t);if(r===rj){let e=tj({category:"replay.throttled"});this.addUpdate(()=>!rc(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,x.getActiveSpan)(),t=e&&(0,x.getRootSpan)(e),r=(t&&(0,x.spanToJSON)(t).data||{})[P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,x.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['
vendor: 10,329 bytes, line 17
17var 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});
17']),URL.createObjectURL(e)}return""}();if(!t)return;t1&&t4.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new re(r)}catch(e){t1&&t4.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return t1&&t4.log("Using simple buffer"),new t7}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=ru({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!rl(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{K.document.addEventListener("visibilitychange",this._handleVisibilityChange),K.addEventListener("blur",this._handleWindowBlur),K.addEventListener("focus",this._handleWindowFocus),K.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,r=(0,D.getClient)();(0,G.addClickKeypressInstrumentationHandler)(t=>{var r,n;if(!e.isEnabled())return;let i=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?tU(e.event):tP(e.event),t=(0,E.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return tj({category:`ui.${e.name}`,...tq(t,r)})}(t);if(!i)return;let s="click"===t.name,o=s?t.event:void 0;s&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&(r=e.clickDetector,n=tU(t.event),r.handleClick(i,n)),tA(e,i)}),(0,q.addHistoryInstrumentationHandler)(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(ry(e,[r]),!1)))}),(t=(0,D.getClient)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!rm(t))return;let n=(r=t,!rm(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return tj(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,b.normalize)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return tj({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):tj(r));n&&tA(e,n)})(e,t));let n=(0,D.getClient)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i,s,o;n=t,"xhr"===n.category&&(i=r,i?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=r_(n),s=r.getResponseHeader("content-length")?rb(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return r_(r)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,r),rL(t,r,e)),s=t,"fetch"===s.category&&(o=r,o?.response)&&(!function(e,t){let{input:r,response:n}=t,i=r_(r?(0,j.getFetchRequestArgBody)(r):void 0),s=n?rb(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,r),rT(t,r,e))}
17catch(e){t1&&t4.exception(e,"Error when enriching network breadcrumb")}})(a,e,t))}catch{}let i=Object.assign((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!rp(t)&&!rf(t))return t;if(!e.checkAndHandleExpiredSession())return rg(),t;if(rf(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:e4.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return t1&&t4.log("Ignoring error from rrweb internals",t),null;let n="buffer"===e.recordingMode&&t.message!==J&&!!t.exception&&!t.type&&rr(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&rn(t)}return t},{id:"Replay"});(0,C.addEventProcessor)(i),r&&(r.on("beforeSendEvent",t=>{var r,n;let i;e.isEnabled()&&!t.type&&(r=e,n=t,i=n.exception?.values?.[0]?.value,"string"==typeof i&&(i.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||i.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&tA(r,tj({category:"replay.hydrate-error",data:{url:(0,E.getLocationHref)()}})))}),r.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!rp(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(rp(t)){var i,s;let r;return void(i=e,s=t,r=i.getContext(),s.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(s.contexts.trace.trace_id))}!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags?.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&(0,$.setTimeout)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push((0,H.addPerformanceInstrumentationHandler)(e,r))}),n.push((0,H.addLcpInstrumentationHandler)(tV(tX,e)),(0,H.addClsInstrumentationHandler)(tV(tQ,e)),(0,H.addInpInstrumentationHandler)(tV(tZ,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{K.document.removeEventListener("visibilitychange",this._handleVisibilityChange),K.removeEventListener("blur",this._handleWindowBlur),K.removeEventListener("focus",this._handleWindowFocus),K.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||ra(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){t1&&t4.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_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:e4.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(tJ).filter(
17Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(ry(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let 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(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){t1&&t4.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await rA(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new r$;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await rH({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,D.getClient)();e&&e.recordDroppedEvent(t instanceof rF?"ratelimit_backoff":t instanceof r$?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){t1&&t4.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i){t1&&t4.log(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),n&&this._debouncedFlush();return}let s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&t1&&t4.log("Flushing initial segment without checkout.");let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&rn(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=n&&r>n;if(r>i||s){let e=tj({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(e)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function rG(e,t){return[...e,...t].join(",")}let rq='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',rK=["content-length","content-type","accept"],rV=Symbol.for("sentry__originalRequestBody"),rJ=!1,rY=!1;class rX{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:o,_experiments:a={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:_=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:E=[],block:w=[],unblock:I=[],ignore:k=[],maskFn:C,beforeAddRecordingEvent:T,beforeErrorSampling:M,onError:D,attachRawBodyFromRequest:x=!1}={}){this.name="Replay";const R=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:rG(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:rG(t,[]),blockSelector:rG(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
17([src])"]),unblockSelector:rG(n,[]),ignoreSelector:rG(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:E,block:w,unblock:I,ignore:k});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:s}){return!n||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s})({maskAttributes:S,maskAllText:l,privacyOptions:R,key:e,value:t,el:r}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:s,workerUrl:o,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:rQ(v),networkResponseHeaders:rQ(_),beforeAddRecordingEvent:T,beforeErrorSampling:M,onError:D,attachRawBodyFromRequest:x,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${rq}`:rq,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,W.isBrowser)())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return rJ}set _isInitialized(e){rJ=e}afterAllSetup(e){(0,W.isBrowser)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||rY)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[rV]=r.body),n};t.prototype=e.prototype,_.GLOBAL_OBJ.Request=t,rY=!0}catch{}}(),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(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let r,n,i,s,o=(t=this._initialOptions,r=e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...t},i=(0,F.parseSampleRate)(r.replaysSessionSampleRate),s=(0,F.parseSampleRate)(r.replaysOnErrorSampleRate),null==i&&null==s&&(0,I.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=s&&(n.errorSampleRate=s),n);this._replay=new rz({options:o,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function rQ(e){return[...rK,...e.map(e=>e.toLowerCase())]}e.s(["getReplay",0,function(){let e=(0,D.getClient)();return e?.getIntegrationByName("Replay")},"replayIntegration",0,e=>new rX(e)])}]);
18
19//# debugId=f8ca5bb3-1e4a-9702-ce6d-1544b5bbd3dc

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.