PageSourceSearch

https://notetube.ai/_next/static/chunks/3599-d20d8fa185c8e3d1.js

js notetube.ai collected 2026-10-05 14:13:42 UTC 292,558 bytes, 19 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:notetube-web":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="abcf82de-8fd9-47d4-9d00-c69b89150285",e._sentryDebugIdIdentifier="sentry-dbid-abcf82de-8fd9-47d4-9d00-c69b89150285")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3599],{1037:(e,t,n)=>{n.d(t,{F3:()=>i,N8:()=>a,TJ:()=>s,a3:()=>r});let r=0,i=1,s=2;function a(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"}}return{code:s,message:"internal_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}},2823:(e,t,n)=>{n.d(t,{Er:()=>o,Mn:()=>l});var r=n(34511),i=n(66383),s=n(73914),a=n(75532);let o="__sentry_xhr_v3__";function l(e){(0,r.s5)("xhr",e),(0,r.AS)("xhr",u)}function u(){if(!a.j.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let a=Error(),l=1e3*(0,i.zf)(),u=(0,s.Kg)(n[0])?n[0].toUpperCase():void 0,c=function(e){if((0,s.Kg)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!u||!c)return e.apply(t,n);t[o]={method:u,url:c,request_headers:{}},"POST"===u&&c.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let d=()=>{let e=t[o];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}let n={endTimestamp:1e3*(0,i.zf)(),startTimestamp:l,xhr:t,virtualError:a};(0,r.aj)("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(d(),e.apply(t,n))}):t.addEventListener("readystatechange",d),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[o];return a&&(0,s.Kg)(r)&&(0,s.Kg)(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let s=t[o];if(!s)return e.apply(t,n);void 0!==n[0]&&(s.body=n[0]);let a={startTimestamp:1e3*(0,i.zf)(),xhr:t};return(0,r.aj)("xhr",a),e.apply(t,n)}})}},3191:(e,t,n)=>{n.d(t,{Z:()=>s,e:()=>i});var r=n(95266);function i(){return(0,r.eJ)()}function s(){return(0,r.eJ)().substring(16)}},3310:(e,t,n)=>{n.d(t,{NJ:()=>a,a3:()=>o,m7:()=>l});var r=n(97810),i=n(34936);let s=n(91285).O;function a(){return"history"in s&&!!s.history}function o(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in s))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(o(s.fetch))return!0;let e=!1,t=s.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=o(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.T&&i.Yz.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},7944:(e,t,n)=>{n.d(t,{Gv:()=>l,P4:()=>a,sY:()=>o,ti:()=>u});var r=n(34936),i=n(87287);let s=Symbol.for("sentry__originalRequestBody");function a(e){return new URLSearchParams(e).toString()}function o(e,t=r.Yz){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[a(e)];if(!e)return[void 0]}catch(n){return i.T&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return i.T&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function l(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][s];if(void 0!==t)return t}}function u(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return i.T&&r.Yz.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>
1{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}},8171:(e,t,n)=>{n.d(t,{Bk:()=>W,CC:()=>g,Ck:()=>v,G_:()=>w,HQ:()=>k,Hu:()=>$,PL:()=>O,Qh:()=>S,RD:()=>C,VS:()=>z,aO:()=>y,cI:()=>T,et:()=>I,i$:()=>P,kX:()=>b,pK:()=>D,uU:()=>E,xO:()=>U,xl:()=>q,yW:()=>N,zU:()=>B});var r=n(60492),i=n(40385),s=n(94360),a=n(30020),o=n(69537),l=n(1037),u=n(78252),c=n(19057),d=n(3191),p=n(66383),h=n(23568),f=n(34936),m=n(73721);let g=0,y=1,_=!1;function v(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:l}=I(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:a,origin:o,links:l}}function b(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:I(e).parent_span_id,s=(0,u.L)(e).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||(0,d.Z)():t,trace_id:n}}function S(e){let{traceId:t,spanId:n}=e.spanContext(),r=D(e);return(0,h.TC)(t,n,r)}function w(e){let{traceId:t,spanId:n}=e.spanContext(),r=D(e);return(0,h.Iy)(t,n,r)}function E(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===y,attributes:i,...r})):void 0}function k(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===y,attributes:r})):void 0}function T(e){return"number"==typeof e?x(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?x(e.getTime()):(0,p.zf)()}function x(e){return e>0x2540be3ff?e/1e3:e}function I(e){if(A(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(R(e)){let{attributes:r,startTime:i,name:s,endTime:a,status:l,links:u}=e;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:M(e),start_timestamp:T(i),timestamp:T(a)||void 0,status:N(l),op:r[o.uT],origin:r[o.JD],links:E(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function C(e){if(A(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(R(e)){let{attributes:r,startTime:i,name:s,endTime:a,status:o,links:l}=e;return{name:s,span_id:t,trace_id:n,parent_span_id:M(e),start_timestamp:T(i),end_timestamp:T(a),is_segment:e===F(e),status:P(o),attributes:r,links:k(l)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===F(e)}}function M(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function O(e){return{...e,attributes:(0,i.SY)(e.attributes),links:e.links?.map(e=>({...e,attributes:(0,i.SY)(e.attributes)}))}}function R(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function A(e){return"function"==typeof e.getSpanJSON}function D(e){let{traceFlags:t}=e.spanContext();return t===y}function N(e){if(e&&e.code!==l.a3)return e.code===l.F3?"ok":e.message||"internal_error"}function P(e){return e&&e.code!==l.F3&&e.code!==l.a3&&"cancelled"!==e.message?"error":"ok"}let L="_sentryChildSpans",j="_sentryRootSpan";function $(e,t){let n=e[j]||e;(0,c.my)(t,j,n),e[L]?e[L].add(t):(0,c.my)(e,L,new Set([t]))}function z(e,t){e[L]&&e[L].delete(t)}function U(e){let t=new Set;return!function e(n){if(!t.has(n)&&D(n))for(let r of(t.add(n),n[L]?Array.from(n[L]):[]))e(r)}(e),Array.from(t)}let B=F;function F(e){return e[j]||e}function W(){let e=(0,s.EU)(),t=(0,r.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,m.f)((0,a.o5)())}function q(){_||((0,f.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),_=!0)}},10369:(e,t,n)=>{n.d(t,{FD:()=>r});function r(e,t){let n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}},12284:(e,t,n)=>{let r,i,s,a,o,l;n.d(t,{w:()=>nF});var u,c=n(91285),d=n(32853),p=n(19057),h=n(66383),f=n(57862),m=n(34936),g=(n(64713),n(69287)),y=n(95266),_=n(30020),v=n(39466),b=n(8171),S=n(94708),w=n(37447);function E(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var k=n(25871),T=n(83294),x=n(69779),I=n(54575),C=n(69537),M=n(78079),O=n(10369),R=n(23609),A=n(87248),D=n(29995),N=n(77327),P=n(7944),L=n(2823),j=n(18489),$=n(79045);let z=c.O,U="sentryReplaySession",B="Unable to send Replay";var F=Object.defineProperty,W=(e,t,n)=>((e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),q=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(q||{});function H(e){let t=e?.host;return t?.shadowRoot===e}function Y(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function J(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,K).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 K(e){let t;if("styleSheet"in e)try{t=J(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],s=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}class G{constructor(){W(this,"idNodeMap",new Map),W(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);
1this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function V({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function X({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function Q(e){return e.toLowerCase()}function Z(e){return e.toUpperCase()}let ee="__rrweb_original__";function et(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Q(t):null}function en(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function er(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}let r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}let ei={};function es(e){let t=ei[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return ei[e]=r.bind(window)}function ea(...e){return es("setTimeout")(...e)}function eo(...e){return es("clearTimeout")(...e)}function el(e){try{return e.contentDocument}catch{}}let eu=1,ec=RegExp("[^a-z0-9-_:]");function ed(){return eu++}let ep=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,eh=/^(?:[a-z+]+:)?\/\//i,ef=/^www\..*/i,em=/^(data:)([^,]*),(.*)/i;function eg(e,t){return(e||"").replace(ep,(e,n,r,i,s,a)=>{let o=r||s||a,l=n||i||"";if(!o)return e;if(eh.test(o)||ef.test(o)||em.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${l})`;let u=t.split("/"),c=o.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 ey=/^[^ \t\n\r\u000c]+/,e_=/^[, \t\n\r\u000c]+/,ev=new WeakMap;function eb(e,t){return t&&""!==t.trim()?eS(e,t):t}function eS(e,t){let n=ev.get(e);if(n||(n=e.createElement("a"),ev.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ew(e,t,n,r,i,s,a){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0])return eb(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return eb(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(e_),!(n>=t.length);){let s=r(ey);if(","===s.slice(-1))s=eb(e,s.substring(0,s.length-1)),i.push(s);else{let r="";s=eb(e,s);let a=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((s+r).trim());break}if(a)")"===e&&(a=!1);else if(","===e){n+=1,i.push((s+r).trim());break}else"("===e&&(a=!0);r+=e,n+=1}}}return i.join(", ")}(e,r);if("style"===n){let t=eg(r,eS(e));return a&&a.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let n=e.split(";"),r=[];for(let e of n){if(!(e=e.trim()))continue;let n=e.indexOf(":");if(-1===n){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,a)),t}else if("object"===t&&"data"===n)return eb(e,r);return"function"==typeof s?s(n,r,i):r}function eE(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function ek(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ek(e.parentNode,t,n,r+1)}function eT(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}function ex(e,t,n,r,i,s){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){let e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,l=-1;if(s){if((l=ek(a,eT(r,i)))<0)return!0;o=ek(a,eT(t,n),l>=0?l:1/0)}else{if((o=ek(a,eT(t,n)))<0)return!1;l=ek(a,eT(r,i),o>=0?o:1/0)}return o>=0?!(l>=0)||o<=l:!(l>=0)&&!!s}catch(e){}return!!s}function eI(e){return null==e?"":e.toLowerCase()}function eC(e,t){let n,{doc:s,mirror:a,blockClass:o,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,skipChild:m=!1,inlineStylesheet:g=!0,maskInputOptions:y={},maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w={}
1,inlineImages:E=!1,recordCanvas:k=!1,onSerialize:T,onIframeLoad:x,iframeLoadTimeout:I=5e3,onBlockedImageLoad:C,onStylesheetLoad:M,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:A=!1,ignoreCSSAttributes:D}=t,{preserveWhiteSpace:N=!0}=t,P=function(e,t){let{doc:n,mirror:s,blockClass:a,blockSelector:o,unblockSelector:l,maskAllText:u,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:g={},maskTextFn:y,maskInputFn:_,dataURLOptions:v={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:E=!1,ignoreCSSAttributes:k}=t,T=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,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:T};case e.ELEMENT_NODE:return function(e,t){let n,{doc:s,blockClass:a,blockSelector:o,unblockSelector:l,inlineStylesheet:u,maskInputOptions:c={},maskAttributeFn:d,maskInputFn:p,dataURLOptions:h={},inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y=!1,rootId:_,maskTextClass:v,unmaskTextClass:b,maskTextSelector:S,unmaskTextSelector:w,ignoreCSSAttributes:E}=t,k=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,a,o,l),T=function(e){if(e instanceof HTMLFormElement)return"form";let t=Q(e.tagName);return ec.test(t)?"div":t}(e),x={},I=e.attributes.length;for(let t=0;t<I;t++){let n=e.attributes[t];n.name&&!eE(T,n.name,n.value)&&(x[n.name]=ew(s,T,Q(n.name),n.value,e,d,E))}if("link"===T&&u){let t=Array.from(s.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=J(t)),n&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=eg(n,t.href))}if("style"===T&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=J(e.sheet);t&&(x._cssText=eg(t,eS(s)))}if("input"===T||"textarea"===T||"select"===T||"option"===T){let t=et(e),n=en(e,Z(T),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=ex(e,v,S,b,w,V({type:t,tagName:Z(T),maskInputOptions:c}));x.value=X({isMasked:r,element:e,value:n,maskInputFn:p})}r&&(x.checked=r)}if("option"===T&&(e.selected&&!c.select?x.selected=!0:delete x.selected),"canvas"===T&&m){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData;if(new Uint32Array((ee in i?i[ee]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(x.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){let t=e.toDataURL(h.type,h.quality),n=s.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(h.type,h.quality)&&(x.rr_dataURL=t)}}if("img"===T&&f){r||(i=(r=s.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,a=()=>{e.removeEventListener("load",a);try{r.width=e.naturalWidth,r.height=e.naturalHeight,i.drawImage(e,0,0),x.rr_dataURL=r.toDataURL(h.type,h.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?x.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a)}if(("audio"===T||"video"===T)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),!y&&(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),k){let{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==T||g(x.src)||(k||el(e)||(x.rr_src=x.src),delete x.src);try{customElements.get(T)&&(n=!0)}catch(e){}return{type:q.Element,tagName:T,attributes:x,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:k,rootId:_,isCustom:n}}(e,{doc:n,blockClass:a,blockSelector:o,unblockSelector:l,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:E,rootId:T,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,ignoreCSSAttributes:k});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:a,maskTextFn:o,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=J(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=eg(p,eS(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");let g=ex(e,r,s,i,a,n);return h||f||m||!p||!g||(p=o?o(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=X({isMasked:ex(e,r,s,i,a,V({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:q.Text,textContent:p||"",isStyle:h,rootId:c}}(e,{doc:n,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,maskTextFn:y,maskInputOptions:g,maskInputFn:_,rootId:T});case e.CDATA_SECTION_NODE:return{type:q.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:q.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}(e,{doc:s,mirror:a,blockClass:o,blockSelector:l,maskAllText:c,unblockSelector:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,dataURLOptions:w,inlineImages:E,recordCanvas:k,keepIframeSrcFn:R,newlyAddedElement:A,ignoreCSSAttributes:D});if(!P)return console.warn(e,"not serialized"),null;n=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===q.Comment)return!0;
1if(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"===er(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eI(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eI(e.attributes.name)||"icon"===eI(e.attributes.rel)||"apple-touch-icon"===eI(e.attributes.rel)||"shortcut icon"===eI(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eI(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eI(e.attributes.property).match(/^(og|twitter|fb):/)||eI(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eI(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eI(e.attributes.name)||"googlebot"===eI(e.attributes.name)||"bingbot"===eI(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eI(e.attributes.name)||"generator"===eI(e.attributes.name)||"framework"===eI(e.attributes.name)||"publisher"===eI(e.attributes.name)||"progid"===eI(e.attributes.name)||eI(e.attributes.property).match(/^article:/)||eI(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eI(e.attributes.name)||"yandex-verification"===eI(e.attributes.name)||"csrf-token"===eI(e.attributes.name)||"p:domain_verify"===eI(e.attributes.name)||"verify-v1"===eI(e.attributes.name)||"verification"===eI(e.attributes.name)||"shopify-checkout-api-token"===eI(e.attributes.name)))return!0}}return!1}(P,S)&&(N||P.type!==q.Text||P.isStyle||P.textContent.trim().length)?ed():-2;let L=Object.assign(P,{id:n});if(a.add(e,L),-2===n)return null;T&&T(e);let j=!m;if(L.type===q.Element){j=j&&!L.needBlock;let t=e.shadowRoot;t&&Y(t)&&(L.isShadowHost=!0)}if((L.type===q.Document||L.type===q.Element)&&j){S.headWhitespace&&L.type===q.Element&&"head"===L.tagName&&(N=!1);let t={doc:s,mirror:a,blockClass:o,blockSelector:l,maskAllText:c,unblockSelector:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,skipChild:m,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:k,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:x,iframeLoadTimeout:I,onBlockedImageLoad:C,onStylesheetLoad:M,stylesheetLoadTimeout:O,keepIframeSrcFn:R,ignoreCSSAttributes:D};for(let n of e.childNodes?Array.from(e.childNodes):[]){let e=eC(n,t);e&&L.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=eC(n,t);r&&(Y(e.shadowRoot)&&(r.isShadow=!0),L.childNodes.push(r))}}if(e.parentNode&&H(e.parentNode)&&Y(e.parentNode)&&(L.isShadow=!0),L.type!==q.Element||"iframe"!==L.tagName||L.needBlock||function(e,t,n){let r,i=function(e){try{return e.contentWindow}catch{}}(e);if(!i)return;let s=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=ea(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{eo(r),s=!0,t()});return}let a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return ea(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=el(e);if(t&&x){let n=eC(t,{doc:t,mirror:a,blockClass:o,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:k,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:x,iframeLoadTimeout:I,onStylesheetLoad:M,stylesheetLoadTimeout:O,keepIframeSrcFn:R,ignoreCSSAttributes:D});n&&x(e,n)}},I),L.type===q.Element&&"img"===L.tagName&&!e.complete&&L.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&C)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&C(e,L,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return L.type===q.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===er(L.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){r=null}if(r)return;let s=ea(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{eo(s),i=!0,t()})}(e,()=>{if(M){let t=eC(e,{doc:s,mirror:a,blockClass:o,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:k,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:x,iframeLoadTimeout:I,onStylesheetLoad:M,stylesheetLoadTimeout:O,keepIframeSrcFn:R,ignoreCSSAttributes:D});t&&M(e,t)}},O),L.type===q.Element&&delete L.needBlock,L}function eM(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let eO="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.",eR={map:{},getId:()=>(console.error(eO),-1),getNode:()=>(console.error(eO),null),removeNodeFromMap(){console.error(eO)},has:()=>(console.error(eO),!1),reset(){console.error(eO)}};function eA(e,t,n={}){let r=null,i=0;return function(...s){let a=Date.now();i||!1!==n.leading||(i=a);let o=t-(a-i),l=this;o<=0||o>t?(r&&(function(...e){eG("clearTimeout")(...e)}
1(r),r=null),i=a,e.apply(l,s)):r||!1===n.trailing||(r=eV(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)},o))}}function eD(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(eR=new Proxy(eR,{get:(e,t,n)=>("map"===t&&console.error(eO),Reflect.get(e,t,n))}));let eN=Date.now;function eP(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 eL(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ej(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function e$(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function ez(e,t,n,r,i){if(!e)return!1;let s=e$(e);if(!s)return!1;let a=eT(t,n);if(!i){let e=r&&s.matches(r);return a(s)&&!e}let o=ek(s,a),l=-1;return!(o<0)&&(r&&(l=ek(s,eT(null,r))),o>-1&&l<0||o<l)}function eU(e,t){return -2===t.getId(e)}function eB(e){return!!e.changedTouches}function eF(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eW(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())||(eN=()=>new Date().getTime());class eH{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 n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function eY(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function eJ(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=eY(n);)n=t;return n}(e);return t.contains(n)}(e))}let eK={};function eG(e){let t=eK[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return eK[e]=r.bind(window)}function eV(...e){return eG("setTimeout")(...e)}var eX=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(eX||{}),eQ=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(eQ||{}),eZ=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(eZ||{}),e0=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(e0||{}),e1=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(e1||{});let e3=e=>s?(...t)=>{try{return e(...t)}catch(e){if(s&&!0===s(e))return()=>{};throw e}}:e;for(var e2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",e5="undefined"==typeof Uint8Array?[]:new Uint8Array(256),e7=0;e7<e2.length;e7++)e5[e2.charCodeAt(e7)]=e7;class e8{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function e4(e){try{return e.contentDocument}catch(e){}}function e6(e){try{return e.contentWindow}catch(e){}}class e9{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("undefined"==typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let n=t.cssRules[0];if(!n||n.type!==CSSRule.STYLE_RULE)return null;return n.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}class te{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 n=0;n<e;n++)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 n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let tt=(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,n=new te,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!eJ(i))return;let s=H(i.parentNode)?this.mirror.getId(eY(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===s||-1===a)return n.addNode(i);let o=eC(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=>{eF(e,this.mirror)&&!ez(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),eW(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),eq(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(ez(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let n=e6(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});o&&(e.push({parentId:s,nextId:a,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!ti(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)ts(this.droppedSet,e)||ti(this.removes,e,this.mirror)?ts(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;n.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);
1if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),i(e.value)}let a={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 n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.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(a))},this.processMutation=e=>{if(!eU(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;ez(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ex(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,e$(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=et(t),i=t.tagName;r=en(t,i,n);let s=V({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=X({isMasked:ex(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(ez(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(e4(t))return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
1,this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!eE(t.tagName,n)&&(i.attributes[n]=ew(this.doc,Q(t.tagName),Q(n),r,t,this.maskAttributeFn),"style"===n)){let n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||"")||s!==(n?.getPropertyPriority(e)||"")?""===s?i.styleDiff[e]=r:i.styleDiff[e]=[r,s]:i._unchangedStyles[e]=[r,s]}if(n)for(let e of Array.from(n))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(ez(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=H(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ez(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||eU(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(tr(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(H(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[tt(n,r)]?tr(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(H(e.target)&&Y(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(eU(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[tt(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!ez(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]}),this.styleDeclarationParser=new e9(this.doc)}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 tr(e,t){e.delete(t),t.childNodes?.forEach(t=>tr(e,t))}function ti(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function ts(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let ta=[];function to(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 tl(e,t){let n=new tn;ta.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);let s=new r(e3(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function tu({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:a}){return eM("scroll",e3(eA(e3(a=>{let o=to(a);if(!o||ez(o,r,i,s,!0))return;let l=n.getId(o);if(o===t&&t.defaultView){let n=eP(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:o.scrollLeft,y:o.scrollTop})}),a.scroll||100)),t)}let tc=["INPUT","TEXTAREA","SELECT"],td=new WeakMap;function tp(e){var t=[];if(tg("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||tg("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||tg("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||tg("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function th(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function tf({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,s=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(e){let n=s.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),e3(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function tm(e,t={}){let n,r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=tl(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let s="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,o=[],l=eA(e3(t=>{let n=Date.now()-i;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],i=null}),a),u=e3(eA(e3(e=>{let t=to(e),{clientX:n,clientY:s}=eB(e)?e.changedTouches[0]:e;i||(i=eN()),o.push({x:n,y:s,id:r.getId(t),timeOffset:eN()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?eQ.Drag:e instanceof MouseEvent?eQ.MouseMove:eQ.TouchMove)}),s,{trailing:!1})),c=[eM("mousemove",u,n),eM("touchmove",u,n),eM("drag",u,n)];return e3(()=>
1{c.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:a}){if(!1===a.mouseInteraction)return()=>{};let o=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[],u=null;return Object.keys(eZ).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(a=>{let o=Q(a),c=t=>{let o=to(t);if(ez(o,r,i,s,!0))return;let l=null,c=a;if("pointerType"in t){switch(t.pointerType){case"mouse":l=e0.Mouse;break;case"touch":l=e0.Touch;break;case"pen":l=e0.Pen}l===e0.Touch?eZ[a]===eZ.MouseDown?c="TouchStart":eZ[a]===eZ.MouseUp&&(c="TouchEnd"):e0.Pen}else eB(t)&&(l=e0.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===e0.Touch||c.startsWith("Mouse")&&l===e0.Mouse)&&(l=null)):eZ[a]===eZ.Click&&(l=u,u=null);let d=eB(t)?t.changedTouches[0]:t;if(!d)return;let p=n.getId(o),{clientX:h,clientY:f}=d;e3(e)({type:eZ[c],id:p,x:h,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(eZ[a]){case eZ.MouseDown:case eZ.MouseUp:o=o.replace("mouse","pointer");break;case eZ.TouchStart:case eZ.TouchEnd:return}l.push(eM(o,c,t))}),e3(()=>{l.forEach(e=>e())})}(e),a=tu(e),o=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return eM("resize",e3(eA(e3(()=>{let t=eL(),i=ej();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:a,ignoreSelector:o,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=to(e),c=e.isTrusted,g=n&&Z(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>tc.indexOf(g)||ez(n,r,i,s,!0))return;let _=n;if(_.classList.contains(a)||o&&_.matches(o))return;let v=et(n),b=en(_,g,v),S=!1,w=V({maskInputOptions:l,tagName:g,type:v}),E=ex(n,p,f,h,m,w);("radio"===v||"checkbox"===v)&&(S=n.checked),b=X({isMasked:E,element:n,value:b,maskInputFn:u}),y(n,d?{text:b,isChecked:S,userTriggered:c}:{text:b,isChecked:S});let k=n.name;"radio"===v&&k&&S&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach(e=>{if(e!==n){let t=X({isMasked:E,element:e,value:en(e,g,v),maskInputFn:u});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,r){let i=td.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){td.set(t,r);let i=n.getId(t);e3(e)({...r,id:i})}}let _=("last"===c.input?["change"]:["input","change"]).map(e=>eM(e,e3(g),t)),v=t.defaultView;if(!v)return()=>{_.forEach(e=>e())};let b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...S.map(e=>(function e(t,n,r,i,s=window){let a=s.Object.getOwnPropertyDescriptor(t,n);return s.Object.defineProperty(t,n,i?r:{set(e){eV(()=>{r.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>e(t,n,a||{},!0)})(e[0],e[1],{set(){e3(g)({target:this,isTrusted:!1})}},!1,v))),e3(()=>{_.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:a}){let o=e3(a=>eA(e3(s=>{let o=to(s);if(!o||ez(o,t,n,r,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=o;e({type:a,id:i.getId(o),currentTime:l,volume:u,muted:c,playbackRate:d})}),s.media||500)),l=[eM("play",o(e1.Play),a),eM("pause",o(e1.Pause),a),eM("seeked",o(e1.Seeked),a),eM("volumechange",o(e1.VolumeChange),a),eM("ratechange",o(e1.RateChange),a)];return e3(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,s;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:e3((r,i,s)=>{let[a,o]=s,{id:l,styleId:u}=th(i,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:a,index:o}]}),r.apply(i,s)})});let o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:e3((r,i,s)=>{let[a]=s,{id:o,styleId:l}=th(i,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:a}]}),r.apply(i,s)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:e3((r,i,s)=>{let[a]=s,{id:o,styleId:l}=th(i,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replace:a}),r.apply(i,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:e3((r,i,s)=>{let[a]=s,{id:o,styleId:l}=th(i,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replaceSync:a}),r.apply(i,s)})}));let l={};ty("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(ty("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),ty("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),ty("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(l).forEach(([r,i])=>{u[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[r].insertRule,{apply:e3((r,i,s)=>{let[a,o]=s,{id:l,styleId:u}=th(i.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:a,index:[...tp(i),o||0]}]}),r.apply(i,s)})}),i.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:e3((r,i,s)=>{let[a]=s,{id:o,styleId:l}=th(i.parentStyleSheet,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:[...tp(i),a]}]}),r.apply(i,s)})})}),e3(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:r}),d=tf(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:e3((i,a,o)=>{let[l,u,c]=o;if(n.has(l))return s.apply(a,[l,u,c]);let{id:d,styleId:p}=th(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:tp(a.parentRule)}),i.apply(a,o)})});let a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:e3((i,s,o)=>{let[l]=o;if(n.has(l))return a.apply(s,[l]);let{id:u,styleId:c}=th(s.parentRule?.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:tp(s.parentRule)}),i.apply(s,o)})}),e3(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:r}),e.collectFonts&&(h=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){let r=new s(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let a=eD(t.fonts,"add",function(t){return function(n){return eV(e3(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(a),e3(()=>
1{r.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:a}=e,o=!0,l=e3(()=>{let e=t.getSelection();if(!e||o&&e?.isCollapsed)return;o=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:a,startOffset:o,endContainer:u,endOffset:c}=e.getRangeAt(t);ez(a,r,i,s,!0)||ez(u,r,i,s,!0)||l.push({start:n.getId(a),startOffset:o,end:n.getId(u),endOffset:c})}a({ranges:l})});return l(),eM("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?eD(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return e3(()=>{ta.forEach(e=>e.reset()),n?.disconnect(),i(),s(),a(),o(),l(),u(),c(),d(),p(),h(),f(),m(),g.forEach(e=>e())})}function tg(e){return void 0!==window[e]}function ty(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class t_{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),s.set(a,t)),a}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
1getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=r.get(t);return i||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}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 tv{constructor(){this.crossOriginIframeMirror=new t_(ed),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class tb{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new t_(ed),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new t_(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);let t=e6(e);t&&this.crossOriginIframeMap.set(t,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&&e6(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let n=e4(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}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 n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case eX.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:eX.IncrementalSnapshot,data:{source:eQ.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case eX.Meta:case eX.Load:case eX.DomContentLoaded:break;case eX.Plugin:return t;case eX.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case eX.IncrementalSnapshot:switch(t.data.source){case eQ.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case eQ.Drag:case eQ.TouchMove:case eQ.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case eQ.ViewportResize:return!1;case eQ.MediaInteraction:case eQ.MouseInteraction:case eQ.Scroll:case eQ.CanvasMutation:case eQ.Input:return this.replaceIds(t.data,e,["id"]),t;case eQ.StyleSheetRule:case eQ.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case eQ.Font:return t;case eQ.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case eQ.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
1h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===q.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class tS{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tw{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(!Y(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=tl({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(tu({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),eV(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(tf({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=e4(e),n=e6(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(eD(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&eJ(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class tE{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new eH,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 n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:K(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class tk{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){eG("requestAnimationFrame")(...e)}(()=>{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 tT=new G;function tx(e={}){let t,{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:l="rr-block",blockSelector:u=null,unblockSelector:c=null,ignoreClass:d="rr-ignore",ignoreSelector:p=null,maskAllText:h=!1,maskTextClass:f="rr-mask",unmaskTextClass:m=null,maskTextSelector:g=null,unmaskTextSelector:y=null,inlineStylesheet:_=!0,maskAllInputs:v,maskInputOptions:b,slimDOMOptions:S,maskAttributeFn:w,maskInputFn:E,maskTextFn:k,maxCanvasSize:T=null,packFn:x,sampling:I={},dataURLOptions:C={},mousemoveWait:M,recordDOM:O=!0,recordCanvas:R=!1,recordCrossOriginIframes:A=!1,recordAfter:D="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:P=!1,inlineImages:L=!1,plugins:j,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:z=new Set([]),errorHandler:U,onMutation:B,getCanvasManager:F}=e;s=U;let W=!A||window.parent===window,q=!1;if(!W)try{window.parent.document&&(q=!1)}catch(e){q=!0}if(W&&!n)throw Error("emit function is required");if(!W&&!q)return()=>{};void 0!==M&&void 0===I.mousemove&&(I.mousemove=M),tT.reset();let H=!0===v?{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:{},Y=!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 J=0,K=e=>{for(let t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&!q&&(e=x(e)),e};a=(e,s)=>{if(e.timestamp=eN(),ta[0]?.isFrozen()&&e.type!==eX.FullSnapshot&&(e.type!==eX.IncrementalSnapshot||e.data.source!==eQ.Mutation)&&ta.forEach(e
1=>e.unfreeze()),W)n?.(K(e),s);else if(q){let t={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===eX.FullSnapshot)t=e,J=0;else if(e.type===eX.IncrementalSnapshot){if(e.data.source===eQ.Mutation&&e.data.isAttachIframe)return;J++;let n=i&&J>=i,s=r&&t&&e.timestamp-t.timestamp>r;(n||s)&&ei(!0)}};let V=e=>{a({type:eX.IncrementalSnapshot,data:{source:eQ.Mutation,...e}})},X=e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.Scroll,...e}}),Q=e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.CanvasMutation,...e}}),Z=new tE({mutationCb:V,adoptedStyleSheetCb:e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.AdoptedStyleSheet,...e}})}),ee="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new tv:new tb({mirror:tT,mutationCb:V,stylesheetManager:Z,recordCrossOriginIframes:A,wrappedEmit:a});for(let e of j||[])e.getMirror&&e.getMirror({nodeMirror:tT,crossOriginIframeMirror:ee.crossOriginIframeMirror,crossOriginIframeStyleMirror:ee.crossOriginIframeStyleMirror});let et=new tk,en=function(e,t){try{return e?e(t):new e8}catch{return console.warn("Unable to initialize CanvasManager"),new e8}}(F,{mirror:tT,win:window,mutationCb:e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.CanvasMutation,...e}}),recordCanvas:R,blockClass:l,blockSelector:u,unblockSelector:c,maxCanvasSize:T,sampling:I.canvas,dataURLOptions:C,errorHandler:U}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new tS:new tw({mutationCb:V,scrollCb:X,bypassOptions:{onMutation:B,blockClass:l,blockSelector:u,unblockSelector:c,maskAllText:h,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,inlineStylesheet:_,maskInputOptions:H,dataURLOptions:C,maskAttributeFn:w,maskTextFn:k,maskInputFn:E,recordCanvas:R,inlineImages:L,sampling:I,slimDOMOptions:Y,iframeManager:ee,stylesheetManager:Z,canvasManager:en,keepIframeSrcFn:$,processedNodeManager:et,ignoreCSSAttributes:z},mirror:tT}),ei=(e=!1)=>{if(!O)return;a({type:eX.Meta,data:{href:window.location.href,width:ej(),height:eL()}},e),Z.reset(),er.init(),ta.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new G,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:a=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:C=new Set([])}=t||{};return eC(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:o,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===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:I,newlyAddedElement:!1,ignoreCSSAttributes:C})}(document,{mirror:tT,blockClass:l,blockSelector:u,unblockSelector:c,maskAllText:h,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,inlineStylesheet:_,maskAllInputs:H,maskAttributeFn:w,maskInputFn:E,maskTextFn:k,slimDOM:Y,dataURLOptions:C,recordCanvas:R,inlineImages:L,onSerialize:e=>{eF(e,tT)&&ee.addIframe(e),eW(e,tT)&&Z.trackLinkElement(e),eq(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ee.attachIframe(e,t);let n=e6(e);n&&en.addWindow(n),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Z.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:$,ignoreCSSAttributes:z});if(!t)return console.warn("Failed to snapshot the document");a({type:eX.FullSnapshot,data:{node:t,initialOffset:eP(window)}}
1),ta.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Z.adoptStyleSheets(document.adoptedStyleSheets,tT.getId(document))};o=ei;try{let e=[],t=e=>e3(tm)({onMutation:B,mutationCb:V,mousemoveCb:(e,t)=>a({type:eX.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.MouseInteraction,...e}}),scrollCb:X,viewportResizeCb:e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.ViewportResize,...e}}),inputCb:e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.Input,...e}}),mediaInteractionCb:e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.MediaInteraction,...e}}),styleSheetRuleCb:e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.StyleSheetRule,...e}}),styleDeclarationCb:e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>a({type:eX.IncrementalSnapshot,data:{source:eQ.Font,...e}}),selectionCb:e=>{a({type:eX.IncrementalSnapshot,data:{source:eQ.Selection,...e}})},customElementCb:e=>{a({type:eX.IncrementalSnapshot,data:{source:eQ.CustomElement,...e}})},blockClass:l,ignoreClass:d,ignoreSelector:p,maskAllText:h,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,maskInputOptions:H,inlineStylesheet:_,sampling:I,recordDOM:O,recordCanvas:R,inlineImages:L,userTriggeredOnInput:N,collectFonts:P,doc:e,maskAttributeFn:w,maskInputFn:E,maskTextFn:k,keepIframeSrcFn:$,blockSelector:u,unblockSelector:c,slimDOMOptions:Y,dataURLOptions:C,mirror:tT,iframeManager:ee,stylesheetManager:Z,shadowDomManager:er,processedNodeManager:et,canvasManager:en,ignoreCSSAttributes:z,plugins:j?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>a({type:eX.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});ee.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{ei(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(eM("DOMContentLoaded",()=>{a({type:eX.DomContentLoaded,data:{}}),"DOMContentLoaded"===D&&n()})),e.push(eM("load",()=>{a({type:eX.Load,data:{}}),"load"===D&&n()},window))),()=>{e.forEach(e=>e()),et.destroy(),o=void 0,s=void 0}}catch(e){console.warn(e)}}function tI(e){return e>0x2540be3ff?e:1e3*e}function tC(e){return e>0x2540be3ff?e/1e3:e}function tM(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:eX.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,d.S8)(t,10,1e3)}}),"console"===t.category)))}function tO(e){return e.closest("button,a")||e}function tR(e){let t=tA(e);return t&&t instanceof Element?tO(t):t}function tA(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}tx.mirror=tT,tx.takeFullSnapshot=function(e){if(!o)throw Error("please take full snapshot after start recording");o(e)},!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(u||(u={}));let tD=new Set([eQ.Mutation,eQ.StyleSheetRule,eQ.StyleDeclaration,eQ.AdoptedStyleSheet,eQ.CanvasMutation,eQ.Selection,eQ.MediaInteraction]);class tN{constructor(e,t,n=tM){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=tL()},l||(l=[],(0,p.GS)(z,"open",function(e){return function(...t){if(l)try{l.forEach(e=>e())}catch{}return e.apply(z,t)}})),l.push(e),()=>{let t=l?l.indexOf(e):-1;t>-1&&l.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 n,r,i;if(n=t,r=this._ignoreSelector,!tP.includes(n.tagName)||"INPUT"===n.tagName&&!["submit","button"].includes(n.getAttribute("type")||"")||"A"===n.tagName&&(n.hasAttribute("download")||n.hasAttribute("target")&&"_self"!==n.getAttribute("target"))||r&&n.matches(r)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let s={timestamp:tC(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===s.node&&1>
1Math.abs(e.timestamp-s.timestamp))||(this._clicks.push(s),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=tC(e)}registerScroll(e=Date.now()){this._lastScroll=tC(e)}registerClick(e){let t=tO(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=tL();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:s}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:z.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,a);return}if(i>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:z.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,A.wg)(()=>this._checkClicks(),1e3)}}let tP=["A","BUTTON","INPUT"];function tL(){return Date.now()/1e3}function tj(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var t$=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(t$||{});let tz=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function tU(e,t){let n=tx.mirror.getId(e),r=n&&tx.mirror.getNode(n),i=r&&tx.mirror.getMeta(r),s=i&&i.type===t$.Element?i:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===t$.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(tz.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(s.attributes)}}:{}}}let tB={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:a,encodedBodySize:o,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:tq(s),end:tq(i),name:r,data:{size:u,statusCode:l,decodedBodySize:a,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,s=tq(i);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:a,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:tq(h),end:tq(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:u,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:s,redirectCount:p}}}};function tF(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function tW(e){let t=tB[e.entryType];return t?t(e):null}function tq(e){return(((0,h.k3)()||z.performance.timeOrigin)+e)/1e3}function tH(e){let t=e.entries[e.entries.length-1];return tK(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function tY(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=tx.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return tK(e,"cumulative-layout-shift",n,t)}function tJ(e){let t=e.entries[e.entries.length-1];return tK(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function tK(e,t,n,r){let i=e.value,s=e.rating,a=tq(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:s,nodeIds:n?n.map(e=>tx.mirror.getId(e)):void 0,attributions:r}}}
1let tG=["log","warn","error"],tV=function(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};return tG.forEach(t=>{e[t]=()=>void 0}),e}();class tX extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class tQ{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 tX;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:tI(e)}}class tZ{constructor(e){this._onMessage=({data:e})=>{if("number"!=typeof e.id)return;let t=this._pending.get(e.id);if(t&&t.method===e.method){if(this._pending.delete(e.id),!e.success)return void t.reject(Error("Error in compression worker"));t.resolve(e.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t(Error("Received worker message with unsuccessful status"))},{once:!0}),this._worker.addEventListener("error",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(){this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{this._pending.set(n,{method:e,resolve:r,reject:i});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),i(e)}})}_getAndIncrementId(){return this._id++}}class t0{constructor(e){this._worker=new tZ(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=tI(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new tX):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,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 t1{constructor(e){this._fallback=new tQ,this._compression=new t0(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){}}}function t3(){try{return"sessionStorage"in z&&!!z.sessionStorage}catch{return!1}}function t2(e){return void 0!==e&&Math.random()<e}function t5(e){if(t3())try{z.sessionStorage.setItem(U,JSON.stringify(e))}catch{}}function t7(e){let t=Date.now(),n=e.id||(0,y.eJ)(),r=e.started||t,i=e.lastActivity||t,s=e.segmentId||0,a=e.sampled;return{id:n,started:r,lastActivity:i,segmentId:s,sampled:a,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function t8({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=t7({sampled:t2(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&t5(i),i}function t4(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function t6(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return t4(e.started,t,r)||t4(e.lastActivity,n,r)}(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function t9({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&function(){if(!t3())return null;try{let e=z.sessionStorage.getItem(U);if(!e)return null;let t=JSON.parse(e);return t7(t)}catch{return null}}();return i?t6(i,{sessionIdleExpire:e,maxReplayDuration:t})?t8(r,{previousSessionId:i.id}):i:t8(r,{previousSessionId:n})}function ne(e,t,n){return!!nn(e,t)&&(nt(e,t,n),!0)}async function nt(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i="buffer"===e.recordingMode;
1try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let s=e.getOptions(),a=function(e,t){try{if("function"==typeof t&&e.type===eX.Custom)return t(e)}catch(e){return null}return e}(t,s.beforeAddRecordingEvent);if(!a)return;return await r.addEvent(a)}catch(s){let t=s&&s instanceof tX,n=(0,_.KU)();if(n&&n.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(s),await e.stop({reason:t?"eventBufferOverflow":"eventBufferError"})}}function nn(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=tI(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function nr(e){return"transaction"===e.type}function ni(e){return"feedback"===e.type}function ns(e){return!!e.category}function na(){let e=(0,_.o5)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,b.Bk)();if(t){let e=(0,S.k1)(t);delete e.replay_id}}function no(e){let t=(0,_.o5)().getPropagationContext().dsc;t&&(t.replay_id=e);let n=(0,b.Bk)();n&&((0,S.k1)(n).replay_id=e)}function nl(e,t){return t.map(({type:t,start:n,end:r,name:i,data:s})=>{let a=e.throttledAddEvent({type:eX.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof a?Promise.resolve(null):a})}function nu(e,t){e.isEnabled()&&null!==t&&!function(e,t){var n,r,i=(0,_.KU)();let s=i?.getDsn(),a=i?.getOptions().tunnel;return function(e,t){var n,r;let i=(0,w.kg)(e);return!(!i||(0,w.nt)(i))&&!!t&&(n=i.hostname,n===(r=t.host)||r.length>0&&n.endsWith(`.${r}`))&&/(^|&|\?)sentry_key=/.test(i.search)}(t,s)||(n=t,!!(r=a)&&E(n)===E(r))}(0,t.name)&&e.addUpdate(()=>(nl(e,[t]),!0))}function nc(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 n=(0,P.P4)(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function nd(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function np(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function nh(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:a,request:o,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:s,statusCode:a,request:o,response:l}}}function nf(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function nm(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=i,s?.length&&(r._meta={warnings:s}),r}function ng(e,t){return Object.entries(e).reduce((n,[r,i])=>{let s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=i),n},{})}function ny(e,t){let n=function(e,t=z.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(z.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,k.Xr)(n,t)}async function n_(e,t,n){try{let r=await nv(e,t,n),i=nh("resource.fetch",r);nu(n.replay,i)}catch(e){}}async function nv(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=t,{url:a,method:o,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=ny(a,n.networkDetailAllowUrls)&&!ny(a,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:s,url:a,method:o,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){var i,s;let a=n?(i=n,s=t,1===i.length&&"string"!=typeof i[0]?nE(i[0],s):2===i.length?nE(i[1],s):{}):{};if(!e)return nm(a,r,void 0);let o=(0,P.Gv)(n),[l,u]=(0,P.sY)(o,tV),c=nm(a,r,l);return u?np(c,u):c}(n,t.input,u):nf(u),response:await nb(d,n,t.response,c)}}async function nb(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return nf(i);let s=r?nw(r.headers,n):{};if(!r||!t&&void 0!==i)return nm(s,i,void 0);let[a,o]=await nS(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let s=e?.length&&void 0===n?nc(e):n;if(!r)return nf(s);if(t)return nm(i,s,e);return nm(i,s,void 0)}catch(e){return nm(i,n,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return o?np(l,o):l}async function nS(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var n;return[await (n=t,new Promise((e,t)=>
1{let r=(0,A.wg)(()=>t(Error("Timeout while trying to read response body")),500);nk(n).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(r))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function nw(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function nE(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?nw(n,t):Array.isArray(n)?{}:ng(n,t):{}}async function nk(e){return await e.text()}async function nT(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:a,xhr:o}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!o||!ny(l,n.networkDetailAllowUrls)||ny(l,n.networkDetailDenyUrls)){let e=nf(d);return{startTimestamp:i,endTimestamp:s,url:l,method:u,statusCode:c,request:e,response:nf(p)}}let h=o[L.Er],f=h?ng(h.request_headers,n.networkRequestHeaders):{},m=ng((0,P.ti)(o),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?(0,P.sY)(a,tV):[void 0],[_,v]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var n=e.response,r=e.responseType;try{if("string"==typeof n)return[n];if(n instanceof Document)return[n.body.outerHTML];if("json"===r&&n&&"object"==typeof n)return[JSON.stringify(n)];if(!n)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return[void 0]}(o):[void 0],b=nm(f,d,g),S=nm(m,p,_);return{startTimestamp:i,endTimestamp:s,url:l,method:u,statusCode:c,request:y?np(b,y):b,response:v?np(S,v):S}}(e,t,n),i=nh("resource.xhr",r);nu(n.replay,i)}catch(e){}}async function nx(e){try{return Promise.all(nl(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(z.performance.memory)]))}catch{return[]}}let nI=c.O.navigator;async function nC({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);let s=await (0,x.mG)(e.getOptions(),r,i,t,e,(0,_.rm)());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";let a=e.getSdkMetadata(),{name:o,version:l,settings:u}=a?.sdk||{};return s.sdk={...s.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},s}async function nM({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:s}){var a;let o,l=function({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
2`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:p}=r,h=(0,_.KU)(),f=(0,_.o5)(),m=h?.getTransport(),g=h?.getDsn();if(!h||!m||!g||!s.sampled)return Promise.resolve({});let y={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:n,replay_type:s.sampled},v=await nC({scope:f,client:h,replayId:t,event:y});if(!v)return h.recordDroppedEvent("event_processor","replay"),Promise.resolve({});delete v.sdkProcessingMetadata;let b=(a=h.getOptions().tunnel,(0,T.h4)((0,T.n2)(v,(0,T.Cj)(v),a,g),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await m.send(b)}catch(t){let e=Error(B);try{e.cause=t}catch{}throw e}let S=(0,I.wq)({},o);if((0,I.Jz)(S,"replay"))throw new nR(S);if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new nO(o.statusCode);return o}class nO extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class nR extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class nA extends Error{constructor(){super("Session is too long, not sending replay")}}async function nD(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await nM(e),!0}catch(n){if(n instanceof nO||n instanceof nR)throw n;if((0,g.o)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${B} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{(0,A.wg)(async()=>{try{await nD(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let nN="__THROTTLED";class nP{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,n){let r,i,s,a=n?.maxWait?Math.max(n.maxWait,t):0,o=n?.setTimeoutImpl||setTimeout;function l(){return u(),r=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function c(){return i&&clearTimeout(i),i=o(l,t),a&&void 0===s&&(s=o(l,a)),r}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==s?l():r},c}(()=>this._flush(),this._options.flushMinDelay,{...{maxWait:this._options.flushMaxDelay},setTimeoutImpl:A.wg}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3),s=n-5;if(r.forEach((e,t)=>{t<s&&r.delete(t)}),[...r.values()].reduce((e,t)=>
2e+t,0)>=300){let e=i;return i=!0,e?"__SKIPPED":nN}i=!1;let a=r.get(n)||0;return r.set(n,a+1),e(...t)}}((e,t)=>(function(e,t,n){return nn(e,t)?nt(e,t,n):Promise.resolve(null)})(this,e,t),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new tN(this,i)),this._handleVisibilityChange=()=>{"visible"===z.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 n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:a,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!a)return null;let l=n||i||s,u=1===a.length;if(!l&&u)return null;let c=(0,D.H)(o,{maxStringLength:200})||"<unknown>",d=tU(o,c);return tj({category:"ui.keyDown",message:c,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:a}})}(t);n&&tM(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r)this._initializeSessionForSampling(e),this.session&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=t9({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=t9({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,n=this._canvas;this._stopRecording=tx({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,function(e){let t=e.data;if(e.type===eX.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===eQ.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=tx.mirror.getNode(e.id),n=t&&tx.mirror.getMeta(t);if(n?.type===t$.Element)for(let[t,r]of Object.entries(e.attributes))null===r?delete n.attributes[t]:n.attributes[t]=r}}(n),e.clickDetector&&function(e,t){try{var n;if(n=t,3!==n.type)return;let{source:r}=t.data;if(tD.has(r)&&e.registerMutation(t.timestamp),r===eQ.Scroll&&e.registerScroll(t.timestamp),t.data.source===eQ.MouseInteraction){let{type:n,id:r}=t.data,i=tx.mirror.getNode(r);i instanceof HTMLElement&&n===eZ.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,n),e.addUpdate(()=>{var t;if("buffer"===e.recordingMode&&i&&e.setInitialState(),!ne(e,n,i))return!0;if(!i)return!1;let r=e.session;if(t=e,i&&t.session?.segmentId===0&&ne(t,function(e){let t=e.getOptions();return{type:eX.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}}}}(t),!1),"buffer"===e.recordingMode&&r&&e.eventBuffer&&!r.dirty){let t=e.eventBuffer.getEarliestTimestamp();t&&(r.started=t,e.getOptions().stickySession&&t5(r))}
2return!!r?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(nI?.userAgent??"")||/Macintosh/i.test(nI?.userAgent??"")&&nI?.maxTouchPoints&&nI?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.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";(0,_.KU)()?.emit("replayEnd",{sessionId:this.session?.id,reason:t??"manual"});try{na(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(t3())try{z.sessionStorage.removeItem(U)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),no(this.session.id)),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}checkAndHandleExpiredSession(){return this._lastActivity&&t4(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"?void this.pause():!!this._checkSession()}setInitialState(){let e=`${z.location.pathname}${z.location.hash}${z.location.search}`,t=`${z.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 n=this._throttledAddEvent(e,t);if(n===nN){let e=tj({category:"replay.throttled"});this.addUpdate(()=>!ne(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||(0,b.Bk)(),t=e&&(0,b.zU)(e),n=(t&&(0,b.et)(t).data||{})[C.i_];if(t&&n&&["route","custom"].includes(n))return(0,b.et)(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("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e=new Blob(['
vendor: 10,329 bytes, line 2
2var 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});
2']);return URL.createObjectURL(e)}return""}();if(!t)return;let n=new Worker(t);return new t1(n)}catch(e){}}(t);if(e)return e}return new tQ}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&(0,_.KU)()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&no(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=t9({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!t6(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{z.document.addEventListener("visibilitychange",this._handleVisibilityChange),z.addEventListener("blur",this._handleWindowBlur),z.addEventListener("focus",this._handleWindowFocus),z.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t=(0,_.KU)();(0,j.i)(t=>{var n,r;if(!e.isEnabled())return;let i=function(e){let{target:t,message:n}=function(e){let t,n="click"===e.name,r=null;try{r=n?tR(e.event):tA(e.event),t=(0,D.H)(r,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:r,message:t}}(e);return tj({category:`ui.${e.name}`,...tU(t,n)})}(t);if(!i)return;let s="click"===t.name,a=s?t.event:void 0;s&&e.clickDetector&&a?.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&(n=e.clickDetector,r=tR(t.event),n.handleClick(i,r)),tM(e,i)}),(0,$._)(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(nl(e,[n]),!1)))});let n=(0,_.KU)();n&&n.on("beforeAddBreadcrumb",t=>(function(e,t){var n;if(!e.isEnabled()||!ns(t))return;let r=(n=t,!ns(n)||["fetch","xhr","sentry.event","sentry.transaction"].includes(n.category)||n.category.startsWith("ui.")?null:"console"===n.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return tj(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}\u2026`):e;if("object"==typeof e)try{let t=(0,d.S8)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}\u2026`;return t}catch{}return e});return tj({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(n):tj(n));r&&tM(e,r)})(e,t));let r=(0,_.KU)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a}=e.getOptions(),o={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a};r&&r.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i,s,a;if(r=t,"xhr"===r.category&&(i=n,i?.xhr)&&(!function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=nc(r),s=n.getResponseHeader("content-length")?nd(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return nc(n)}catch{return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n),nT(t,n,e)),s=t,"fetch"===s.category&&(a=n,a?.input!==void 0)){let{input:r,response:i}=n,s=nc(r?(0,P.Gv)(r):void 0),a=i?nd(i.headers.get("content-length")):void 0;void 0!==s&&(t.data.request_body_size=s),void 0!==a&&(t.data.response_body_size=a),n_(t,n,e)}}catch(e){}})(o,e,t))}catch{}let i=Object.assign((t,n)=>{if(e.session&&t6(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire}
2)&&na(),!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!nr(t)&&!ni(t))return t;if(!e.checkAndHandleExpiredSession())return na(),t;if(ni(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:eX.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&&n.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;let r="buffer"===e.recordingMode&&t.message!==B&&!!t.exception&&!t.type&&t2(e.getOptions().errorSampleRate);if((r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&t5(t)}return t},{id:"Replay"});(0,g.SA)(i),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception?.values?.[0]?.value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&tM(e,tj({category:"replay.hydrate-error",data:{url:(0,v.$N)()}}))}(e,t)}),t.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!nr(t))return;let r=n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(nr(t))return void function(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t);!function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&(0,A.wg)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),t.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.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 n({entries:e}){e.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push((0,N.wv)(e,n))}),r.push((0,N.Pt)(tF(tH,e)),(0,N.a9)(tF(tY,e)),(0,N.hT)(tF(tJ,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{z.document.removeEventListener("visibilitychange",this._handleVisibilityChange),z.removeEventListener("blur",this._handleWindowBlur),z.removeEventListener("focus",this._handleWindowFocus),z.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(t6(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire}))return void na();e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}_doChangeToForegroundTasks(e){if(this.session)this.checkAndHandleExpiredSession()&&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:eX.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(tW).filter(
2Boolean).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(nl(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 n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_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&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents)){if((await nx(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new nA;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await nD({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendError"});let e=(0,_.KU)();e&&e.recordDroppedEvent(t instanceof nR?"ratelimit_backoff":t instanceof nA?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){r&&this._debouncedFlush();return}let s=this.eventBuffer;s&&0===this.session.segmentId&&s.hasCheckout;let a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&t5(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=r&&n>r;if(n>i||s){let e=tj({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(e)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function nL(e,t){return[...e,...t].join(",")}let nj='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',n$=["content-length","content-type","accept"],nz=Symbol.for("sentry__originalRequestBody"),nU=!1,nB=!1,nF=e=>new nW(e);class nW{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:o={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:w=[],block:E=[],unblock:k=[],ignore:T=[],maskFn:x,beforeAddRecordingEvent:I,beforeErrorSampling:C,onError:O,attachRawBodyFromRequest:R=!1}={}){this.name="Replay";let A=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:nL(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:nL(t,[]),blockSelector:nL(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:nL(r,[]),ignoreSelector:nL(i,[".sentry-ignore","[data-sentry-ignore]",'
2input[type="file"]'])}}({mask:b,unmask:w,block:E,unblock:k,ignore:T});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return s;let a=n.includes(t),o=r&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return a||o?s.replace(/[\S]/g,"*"):s})({maskAttributes:S,maskAllText:l,privacyOptions:A,key:e,value:t,el:n}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!o.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,36e5),stickySession:i,useCompression:s,workerUrl:a,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:nq(_),networkResponseHeaders:nq(v),beforeAddRecordingEvent:I,beforeErrorSampling:C,onError:O,attachRawBodyFromRequest:R,_experiments:o},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${nj}`:nj,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,M.B)())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return nU}set _isInitialized(e){nU=e}afterAllSetup(e){(0,M.B)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"==typeof Request||nB)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[nz]=n.body),r};t.prototype=e.prototype,c.O.Request=t,nB=!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,reason:"manual"}):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}processSpan(e){let t=this.getReplayId(!0);t&&((0,O.FD)(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&(0,O.FD)(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=(0,R.i)(n.replaysSessionSampleRate),s=(0,R.i)(n.replaysOnErrorSampleRate);return null==i&&null==s&&(0,m.pq)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=s&&(r.errorSampleRate=s),r}(this._initialOptions,e);this._replay=new nP({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function nq(e){return[...n$,...e.map(e=>e.toLowerCase())]}},15221:(e,t,n)=>{n.d(t,{T:()=>r});let r=!1},16752:(e,t,n)=>{n.d(t,{D0:()=>u,De:()=>l,sv:()=>a,yD:()=>o});var r=n(97810),i=n(34936),s=n(73914);let a="sentry-";function o(e){let t=u(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(a)&&(e[t.slice(a.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function l(e){if(e){var t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${a}${t}`]=n),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,n],s)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===s?a:`${e},${a}`;return o.length>8192?(r.T&&i.Yz.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},""):void 0}}function u(e){if(e&&((0,s.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
2(Object.entries(c(t)).forEach(([t,n])=>{e[t]=n}),e),{}):c(e)}function c(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}},18489:(e,t,n)=>{let r,i,s;n.d(t,{i:()=>c});var a=n(34511),o=n(19057),l=n(95266),u=n(75532);function c(e){(0,a.s5)("dom",e),(0,a.AS)("dom",d)}function d(){if(!u.j.document)return;let e=a.aj.bind(null,"dom"),t=p(e,!0);u.j.document.addEventListener("click",t,!1),u.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=u.j,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,o.GS)(r,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){let r=p(e);s.handler=r,t.call(this,n,r,i)}s.refCount++}catch{}return t.call(this,n,r,i)}}),(0,o.GS)(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function p(e,t=!1){return n=>{var a;if(!n||n._sentryCaptured)return;let c=function(e){try{return e.target}catch{return null}}(n);if(a=n.type,"keypress"===a&&(!c?.tagName||"INPUT"!==c.tagName&&"TEXTAREA"!==c.tagName&&!c.isContentEditable&&1))return;(0,o.my)(n,"_sentryCaptured",!0),c&&!c._sentryId&&(0,o.my)(c,"_sentryId",(0,l.eJ)());let d="keypress"===n.type?"input":n.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch{}return!0}(n)&&(e({event:n,name:d,global:t}),i=n.type,s=c?c._sentryId:void 0),clearTimeout(r),r=u.j.setTimeout(()=>{s=void 0,i=void 0},1e3)}}},19057:(e,t,n)=>{n.d(t,{GS:()=>a,HF:()=>p,W4:()=>c,my:()=>o,pO:()=>l,sp:()=>u});var r=n(97810),i=n(34936),s=n(73914);function a(e,t,n){if(!(t in e))return;let s=e[t];if("function"!=typeof s)return;let a=n(s);"function"==typeof a&&l(a,s);try{e[t]=a}catch{r.T&&i.Yz.log(`Failed to replace method "${t}" in object`,e)}}function o(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.T&&i.Yz.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function l(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,o(e,"__sentry_original__",t)}catch{}}function u(e){return e.__sentry_original__}function c(e){if((0,s.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...d(e)};if((0,s.xH)(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...d(e)}}return e}function d(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}function p(e){let t=Object.keys(c(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}},20003:(e,t,n)=>{n.d(t,{d:()=>m});var r=n(91301),i=n(92134),s=n(66604),a=n(34936),o=n(16752),l=n(66383),u=n(69537),c=n(37447),d=n(21862),p=n(79519);let h=d.default.events?d.default:d.default.default,f=i.jf;function m(e={}){let t=(0,r.dp)({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[n,{headers:r}]=t;return r?.get("next-router-prefetch")&&n?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:n=!0,instrumentNavigation:d=!0}=e;return{...t,afterAllSetup(e){!(0,r.e3)()&&(d&&function(e){if(i.jf.document.getElementById("__NEXT_DATA__"))h.events.on("routeChangeStart",t=>{let n,i,s=(0,c.f)(t),a=function(e){let t=f.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(s);a?(n=a,i="route"):(n=s,i="url"),(0,r.Nt)(e,{name:n,attributes:{[u.uT]:"navigation",[u.JD]:"auto.navigation.nextjs.pages_router_instrumentation",[u.i_]:i}})});else(0,s.q3)(e)}(e),t.afterAllSetup(e),n&&function(e){if(i.jf.document.getElementById("__NEXT_DATA__")){let{route:t,params:n,sentryTrace:i,baggage:s}=function(){let e,t=f.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{p.T&&a.Yz.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:s}=e;return n.route=r,n.params=i,s?.pageProps&&(n.sentryTrace=s.pageProps._sentryTraceData,n.baggage=s.pageProps._sentryBaggage),n}(),c=(0,o.D0)(s),d=t||f.location.pathname;c?.["sentry-transaction"]&&"/_error"===d&&(d=(d=c["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let h=(0,l.k3)();(0,r.Sx)(e,{name:d,startTime:h?h/1e3:void 0,attributes:{[u.uT]:"pageload",[u.JD]:"auto.pageload.nextjs.pages_router_instrumentation",[u.i_]:t?"route":"url",...n&&{...n}}},{sentryTrace:i,baggage:s})}else(0,s.jw)(e)}(e))}}}},20200:(e,t,n)=>{n.d(t,{f:()=>i});var r=n(30020);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||(0,r.KU)()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}},23568:(e,t,n)=>{n.d(t,{Iy:()=>c,MI:()=>
2o,TC:()=>u,kM:()=>l});var r=n(16752),i=n(23609),s=n(3191),a=n(77427);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function l(e,t){let n=function(e){let t;if(!e)return;let n=e.match(o);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),l=(0,r.yD)(t);if(!n?.traceId)return{traceId:(0,s.e)(),sampleRand:(0,a.hY)()};let u=function(e,t){let n=(0,i.i)(t?.sample_rand);if(void 0!==n)return n;let r=(0,i.i)(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?(0,a.hY)()*r:r+(0,a.hY)()*(1-r):(0,a.hY)()}(n,l);l&&(l.sample_rand=u.toString());let{traceId:c,parentSpanId:d,parentSampled:p}=n;return{traceId:c,parentSpanId:d,sampled:p,dsc:l||{},sampleRand:u}}function u(e=(0,s.e)(),t=(0,s.Z)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function c(e=(0,s.e)(),t=(0,s.Z)(),n){return`00-${e}-${t}-${n?"01":"00"}`}},23609:(e,t,n)=>{n.d(t,{i:()=>r});function r(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}},23873:(e,t,n)=>{function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{Z:()=>r,e:()=>i})},24460:(e,t,n)=>{n.d(t,{H:()=>f});var r=n(97810),i=n(56196),s=n(34936),a=n(73914),o=n(99742),l=n(95266),u=n(3191),c=n(77427),d=n(73721),p=n(25871),h=n(66383);class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,u.e)(),sampleRand:(0,c.hY)()}}clone(){let e=new f;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,(0,d.r)(e,(0,d.f)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,i.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:s,contexts:o,level:l,fingerprint:u=[],propagationContext:c,conversationId:d}=(t instanceof f?t.getScopeData():(0,a.Qd)(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,d.r)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.e)(),sampleRand:(0,c.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,h.lu)(),...e,message:e.message?(0,p.xv)(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,d.f)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,o.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
2captureException(e,t){let n=t?.event_id||(0,l.eJ)();if(!this._client)return r.T&&s.Yz.warn("No client configured on scope - will not capture exception!"),n;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){let i=n?.event_id||(0,l.eJ)();if(!this._client)return r.T&&s.Yz.warn("No client configured on scope - will not capture message!"),i;let a=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:i},this),i}captureEvent(e,t){let n=e.event_id||t?.event_id||(0,l.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):r.T&&s.Yz.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},25438:(e,t,n)=>{n.d(t,{P$:()=>o,_C:()=>c,lc:()=>l,mH:()=>a,qm:()=>u});var r=n(97810),i=n(34936);let s=[];function a(e){let t,n=e.defaultIntegrations||[],r=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(r))t=[...n,...r];else if("function"==typeof r){let e=r(n);t=Array.isArray(e)?e:[e]}else t=n;let i={};return t.forEach(e=>{let{name:t}=e,n=i[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(i[t]=e)}),Object.values(i)}function o(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&u(e,t,n)}),n}function l(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function u(e,t,n){if(n[t.name]){r.T&&i.Yz.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,s.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),s.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{let r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),r.T&&i.Yz.log(`Integration installed: ${t.name}`)}function c(e){return e}},25871:(e,t,n)=>{n.d(t,{Xr:()=>l,_c:()=>o,gt:()=>a,xv:()=>s});var r=n(73914),i=n(32853);function s(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function a(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let s=e[t];(0,r.sO)(s)?n.push(String(s)):s instanceof Error?n.push(s.message?`${s.name}: ${s.message}`:s.name):n.push((0,i.ng)(void 0,s))}return n.join(t)}function o(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):(0,r.Kg)(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function l(e,t=[],n=!1){for(let r of t)if(o(e,r,n))return!0;return!1}},28768:(e,t,n)=>{n.d(t,{W:()=>g});var r=n(30020),i=n(97810),s=n(87136),a=n(69537),o=n(34936),l=n(3191),u=n(8171),c=n(66383),d=n(94708),p=n(68408),h=n(78165),f=n(61762),m=n(78252);class g{constructor(e={}){this._traceId=e.traceId||(0,l.e)(),this._spanId=e.spanId||(0,l.Z)(),this._startTime=e.startTimestamp||(0,c.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[a.JD]:"manual",[a.uT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?u.aO:u.CC}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,u.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(a.i_,"custom"),this}end(e){this._endTime||(this._endTime=(0,u.cI)(e),(0,p.U)(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[a.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,u.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.JD],profile_id:this._attributes[a.E1],exclusive_time:this._attributes[a.jG],measurements:(0,h.$)(this._events),is_segment:this._isStandaloneSpan&&(0,u.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,u.zU)(this).spanContext().spanId:void 0,links:(0,u.uU)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,u.zU)(this),status:(0,u.i$)(this._status),attributes:this._attributes,links:(0,u.HQ)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){i.T&&o.Yz.log("[Tracing] Adding an event to span:",e);let r=y(t)?t:n||(0,c.zf)(),s=y(t)?{}:t||{},a={name:e,time:(0,u.cI)(r),attributes:s};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,r.KU)();if(e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===(0,u.zU)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=(0,r.KU)();if(!t)return;let n=e[1];
2if(!n||0===n.length)return t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}((0,s.lu)([this],e)):(i.T&&o.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(e&&(0,f.K)(e))return void e.emit("afterSegmentSpanEnd",this);let t=this._convertSpanToTransaction();t&&((0,m.L)(this).scope||(0,r.o5)()).captureEvent(t)}_convertSpanToTransaction(){if(!_((0,u.et)(this)))return;this._name||(i.T&&o.Yz.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=(0,m.L)(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let r=(0,u.xO)(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof g&&t.isStandaloneSpan())}).map(e=>(0,u.et)(e)).filter(_),s=this._attributes[a.i_];delete this._attributes[a.Le];let l=!1;r.forEach(e=>{delete e.data[a.Le],e.op?.startsWith("gen_ai.")&&(l=!0)});let c={contexts:{trace:(0,u.Ck)(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,d.k1)(this),hasGenAiSpans:l},request:n,...s&&{transaction_info:{source:s}}},p=(0,h.$)(this._events);return p&&Object.keys(p).length&&(i.T&&o.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(p,void 0,2)),c.measurements=p),c}}function y(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function _(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}},29995:(e,t,n)=>{n.d(t,{H:()=>a});var r=n(73914);let i={};try{"undefined"!=typeof Node&&(i.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(i.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,i.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,i.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,i.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(i.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function s(e,t,n){let r=i[t];if(r)try{return r.call(e,n)}catch{}let s=e[t];return"function"==typeof s?s.call(e,n):s}function a(e,t={}){if(!e)return"<unknown>";try{let n,i=e,a=[],o=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&o++<5&&(n=function(e,t){let n=[],i=s(e,"tagName");if(!i)return"";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement){let t=s(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(i.toLowerCase());let a=t?.length?t.filter(t=>s(e,"getAttribute",t)).map(t=>[t,s(e,"getAttribute",t)]):null;if(a?.length)a.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=s(e,"id");t&&n.push(`#${t}`);let i=s(e,"className");if(i&&(0,r.Kg)(i))for(let e of i.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=s(e,"getAttribute",t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(i,u),"html"!==n&&(!(o>1)||!(l+3*a.length+n.length>=c)));)a.push(n),l+=n.length,i=s(i,"parentNode");return a.reverse().join(" > ")}catch{return"<unknown>"}}},30020:(e,t,n)=>{let r;n.d(t,{Bi:()=>l,KU:()=>h,m6:()=>d,o5:()=>u,rm:()=>c,v4:()=>p,vn:()=>f});var i=n(60492),s=n(94360),a=n(24460),o=n(3191);function l(){return void 0!==r}function u(){let e=(0,s.EU)();return(0,i.h)(e).getCurrentScope()}function c(){let e=(0,s.EU)();return(0,i.h)(e).getIsolationScope()}function d(){return(0,s.BY)("globalScope",()=>new a.H)}function p(...e){let t=(0,s.EU)(),n=(0,i.h)(t);if(2===e.length){let[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function h(){return u().getClient()}function f(e){let t=r?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:i,propagationSpanId:s}=e.getPropagationContext(),a={trace_id:n,span_id:s||(0,o.Z)()};return i&&(a.parent_span_id=i),a}},31246:(e,t,n)=>{n.d(t,{M:()=>r});let r="10.59.0"},32853:(e,t,n)=>{let r;n.d(t,{S8:()=>u,cd:()=>function e(t,n=3,r=102400){let i=u(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i},Ip:()=>l,ng:()=>c});let i=Symbol.for("sentry.skipNormalization"),s=Symbol.for("sentry.overrideNormalizationDepth");var a=n(19057),o=n(85127);function l(e){r=e}function u(e,t=100,n=1/0){try{return function e(t,n,r=1/0,o=1/0,l=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[u,d]=l;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let p=c(t,n);if(!p.startsWith("[object "))return p;if(n[i])return n;let h=function(e){let t=e[s];return"number"==typeof t?t:void 0}(n),f=void 0!==h?h:r;if(0===f)return p.replace("object ","");if(u(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,f-1,o,l)}catch{}let m=Array.isArray(n)?[]:{},g=0,y=(0,a.W4)(n);for(let t in y){if(!Object.prototype.hasOwnProperty.call(y,t))continue;if(g>=o){m[t]="[MaxProperties ~]";break}let n=y[t];m[t]=e(t,n,f-1,o,l),g++}return d(n),m}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,t){try{if(r){let e=r(t);if(e)return e}if("undefined"!=typeof global&&t===global)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let e=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(e){return`**non-serializable** (${e})`}}}
2,34004:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(78234);let i=()=>{let e=(0,r.z)();return e?.activationStart??0}},34511:(e,t,n)=>{n.d(t,{AS:()=>u,aj:()=>c,s5:()=>l});var r=n(97810),i=n(34936),s=n(85127);let a={},o={};function l(e,t){return a[e]=a[e]||[],a[e].push(t),()=>{let n=a[e];if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function u(e,t){if(!o[e]){o[e]=!0;try{t()}catch(t){r.T&&i.Yz.error(`Error while instrumenting ${e}`,t)}}}function c(e,t){let n=e&&a[e];if(n)for(let a of n)try{a(t)}catch(t){r.T&&i.Yz.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${(0,s.qQ)(a)}
5Error:`,t)}}},34936:(e,t,n)=>{n.d(t,{Ow:()=>a,Yz:()=>p,Z9:()=>o,pq:()=>l});var r=n(94360),i=n(97810),s=n(91285);let a=["debug","info","warn","error","log","assert","trace"],o={};function l(e){if(!("console"in s.O))return e();let t=s.O.console,n={},r=Object.keys(o);r.forEach(e=>{let r=o[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function u(){return d().enabled}function c(e,...t){i.T&&u()&&l(()=>{s.O.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return i.T?(0,r.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let p={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:u,log:function(...e){c("log",...e)},warn:function(...e){c("warn",...e)},error:function(...e){c("error",...e)}}},35550:(e,t,n)=>{n.d(t,{Om:()=>c,e2:()=>o});var r=n(30020),i=n(94708),s=n(99742),a=n(8171);function o(e,t){var n,r,s,o;let{fingerprint:l,span:u,breadcrumbs:c,sdkProcessingMetadata:d}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:o}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),a&&(e.level=a),o&&"transaction"!==e.type&&(e.transaction=o)})(e,t),u&&function(e,t){e.contexts={trace:(0,a.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,i.k1)(t),...e.sdkProcessingMetadata};let n=(0,a.zU)(t),r=(0,a.et)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,u),n=e,r=l,n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],r&&(n.fingerprint=n.fingerprint.concat(r)),n.fingerprint.length||delete n.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,c),s=e,o=d,s.sdkProcessingMetadata={...s.sdkProcessingMetadata,...o}}function l(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:l,sdkProcessingMetadata:c,breadcrumbs:d,fingerprint:p,eventProcessors:h,attachments:f,propagationContext:m,transactionName:g,span:y}=t;u(e,"extra",n),u(e,"tags",r),u(e,"attributes",i),u(e,"user",a),u(e,"contexts",o),e.sdkProcessingMetadata=(0,s.h)(e.sdkProcessingMetadata,c,2),l&&(e.level=l),g&&(e.transactionName=g),y&&(e.span=y),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),h.length&&(e.eventProcessors=[...e.eventProcessors,...h]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...m}}function u(e,t,n){e[t]=(0,s.h)(e[t],n,1)}function c(e,t){let n=(0,r.m6)().getScopeData();return e&&l(n,e.getScopeData()),t&&l(n,t.getScopeData()),n}},37085:(e,t,n)=>{n.d(t,{U:()=>r});let r="production"},37447:(e,t,n)=>{function r(e){return"isRelative"in e}function i(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function s(e){if(r(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function a(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function o(e){return e.split(/[?#]/,1)[0]}function l(e,t=!0){if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(","),a="";if(t&&-1!==s){let t=e.slice(s+1);a=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?",base64":""}${a?`,${a}`:""}`}return e}n.d(t,{CH:()=>s,Dl:()=>a,f:()=>o,kg:()=>i,nt:()=>r,zm:()=>l})}
5,38083:(e,t,n)=>{n.d(t,{y:()=>u});var r=n(25438),i=n(91285);let s=new Map,a=new Set;var o=n(83294),l=n(85127);let u=(0,r._C)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,o.yH)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(t.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})}),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{var n;t.type||(n=e.getOptions().stackParser,t.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{if(!e.filename||e.module_metadata)return;let t=function(e,t){if(i.O._sentryModuleMetadata)for(let t of Object.keys(i.O._sentryModuleMetadata)){let n=i.O._sentryModuleMetadata[t];if(!a.has(t)){for(let r of(a.add(t),e(t).reverse()))if(r.filename){s.set(r.filename,n);break}}}return s.get(t)}(n,e.filename);t&&(e.module_metadata=t)})}))})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(i.O._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){let n=!!e.ignoreSentryInternalFrames&&t.sdkProcessingMetadata?.insideSentryWrapped===!0&&t.exception?.values?.length===1,r=function(e,t,n){let r=(0,l.RV)(e);if(r)return r.filter((e,r)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,n){var r;if(0!==t)return!1;if(n&&!(r=e).context_line&&!r.pre_context&&r.function&&r.function.length<=2||"sentryWrapped"===e.function)return!0;if(!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(p))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(d))return!0}return!1}(e,r,!!n))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(c)).map(e=>e.slice(c.length)):[])}(t,e.ignoreSentryInternalFrames,n);if(r&&r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}})),c="_sentryBundlerPluginAppKey:",d="Attempt to invoke user-land function",p="fn.apply(this, wrappedArguments)"},39466:(e,t,n)=>{n.d(t,{$N:()=>i,xE:()=>s});let r=n(91285).O;function i(){try{return r.document.location.href}catch{return""}}function s(e,t=5){if(!r.HTMLElement)return null;let n=e;for(let e=0;e<t&&n;e++){if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}},39942:(e,t,n)=>{n.d(t,{B$:()=>d,ur:()=>c});var r=n(30020),i=n(73914),s=n(19057),a=n(3310),o=n(66383),l=n(91285),u=n(34511);function c(e,t){let n="fetch",r=(0,u.s5)(n,e);return(0,u.AS)(n,()=>p(void 0,t)),r}function d(e){let t="fetch-body-resolved",n=(0,u.s5)(t,e);return(0,u.AS)(t,()=>p(f)),n}function p(e,t=!1){(!t||(0,a.m7)())&&(0,s.GS)(l.O,"fetch",function(t){return function(...n){let a=Error(),{method:c,url:d}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:g(t),method:m(n,"method")?String(n.method).toUpperCase():(0,i.ks)(t)&&m(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:g(t),method:m(t,"method")?String(t.method).toUpperCase():"GET"}}(n),p={args:n,fetchData:{method:c,url:d},startTimestamp:1e3*(0,o.zf)(),virtualError:a,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,i.ks)(t))return new Headers(t.headers)}catch{}}(n)};return e||(0,u.aj)("fetch",{...p}),t.apply(l.O,n).then(async t=>(e?e(t):(0,u.aj)("fetch",{...p,endTimestamp:1e3*(0,o.zf)(),response:t}),t),e=>{(0,u.aj)("fetch",{...p,endTimestamp:1e3*(0,o.zf)(),error:e}),(0,i.bJ)(e)&&void 0===e.stack&&(e.stack=a.stack,(0,s.my)(e,"framesToPop",1));let t=(0,r.KU)(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&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(p.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:(0,s.my)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function h(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),s=!0;for(;s;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function f(e){let t;try{t=e.clone()}catch{return}h(t,()=>{(0,u.aj)("fetch-body-resolved",{endTimestamp:1e3*(0,o.zf)(),response:e})})}function m(e,t){return!!e&&"object"==typeof e&&!!e[t]}function g(e){return"string"==typeof e?e:e?m(e,"url")?e.url:e.toString?e.toString():"":""}},40385:(e,t,n)=>{n.d(t,{SY:()=>r});function r(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=function(e,t){let{value:n,unit:r}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){if(Array.isArray(e))return{value:e,type:"array"};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}}(n),s=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...s};
5if(!t||"skip-undefined"===t&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...s}}(i,t);e&&(n[r]=e)}return n}},41868:(e,t,n)=>{n.d(t,{Q:()=>s,d:()=>i});var r=n(75532);function i(e,t,n){r.j.document&&r.j.addEventListener(e,t,n)}function s(e,t,n){r.j.document&&r.j.removeEventListener(e,t,n)}},43856:(e,t,n)=>{n.d(t,{i:()=>s});let r=e=>e instanceof Promise&&!e[i],i=Symbol("chained PromiseLike"),s=(e,t,n)=>{let i=e.then(e=>(t(e),e),e=>{throw n(e),e});return r(i)&&r(e)?i:a(e,i)},a=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[i]:!0}),t}},44803:(e,t,n)=>{n.d(t,{Z:()=>i,q:()=>s});var r=n(91285);function i(e){try{let t=r.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function s(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}},52220:(e,t,n)=>{let r;n.d(t,{TsN:()=>tz});var i=n(91285),s=n(34936),a=n(31246);function o(e,t,n=[t],r="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:a.M})),i.version=a.M)}var l=n(69287),u=n(97810),c=n(25438);function d(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}var p=n(95266),h=n(25871);let f=[/^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$/],m=(0,c._C)((e={})=>{let t;return{name:"EventFilters",setup(n){t=y(e,n.getOptions())},processEvent:(n,r,i)=>(t||(t=y(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&(0,h.Xr)(n,t)}(e,t.ignoreTransactions))return u.T&&s.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
6Event: ${(0,p.$X)(e)}`),!0}else{var n,r,i;if(n=e,r=t.ignoreErrors,r?.length&&d(n).some(e=>(0,h.Xr)(e,r)))return u.T&&s.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
7Event: ${(0,p.$X)(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return u.T&&s.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace.
8Event: ${(0,p.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=_(e);return!!n&&(0,h.Xr)(n,t)}(e,t.denyUrls))return u.T&&s.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option.
9Event: ${(0,p.$X)(e)}.
10Url: ${_(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=_(e);return!n||(0,h.Xr)(n,t)}(e,t.allowUrls))return u.T&&s.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option.
11Event: ${(0,p.$X)(e)}.
12Url: ${_(e)}`),!0}return!1}(n,t)?n:null)}}),g=(0,c._C)((e={})=>({...m(e),name:"InboundFilters"}));function y(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:f],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function _(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return u.T&&s.Yz.error(`Cannot extract url for event ${(0,p.$X)(e)}`),null}}var v=n(30020),b=n(19057);let S=new WeakMap,w=(0,c._C)(()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,b.sp)(this),n=S.has((0,v.KU)())&&void 0!==t?t:this;return r.apply(n,e)}}catch{}},setup(e){S.set(e,!0)}}));var E=n(69537),k=n(8171);let T=(0,c._C)(()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,v.o5)().getScopeData(),n=(0,v.rm)().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=(0,k.et)(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute(E.Fy,r)}})}}));var x=n(85127);let I=(0,c._C)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n,r;if(n=t,(r=e)&&(function(e,t){let n=e.message,r=t.message;return(!!n||!!r)&&(!n||!!r)&&(!!n||!r)&&n===r&&!!M(e,t)&&!!C(e,t)&&!0}(n,r)||function(e,t){let n=O(t),r=O(e);return!!n&&!!r&&n.type===r.type&&n.value===r.value&&!!M(e,t)&&!!C(e,t)}(n,r)))return u.T&&s.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function C(e,t){let n=(0,x.RV)(e),r=(0,x.RV)(t);if(!n&&!r)return!0;
12if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function M(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function O(e){return e.exception?.values?.[0]}var R=n(32853),A=n(37085),D=n(87136),N=n(60742),P=n(94360),L=n(56143),j=n(83294),$=n(78079);function z(e,t){var n;let r=t??(n=e,U().get(n))??[];if(0===r.length)return;let i=e.getOptions(),s=function(e,t,n,r,i){let s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=(0,L.SB)(r)),(0,j.h4)(s,[function(e,t){let n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,$.B)()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}(e,i)])}(r,i._metadata,i.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);U().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function U(){return(0,P.BY)("clientToMetricBufferMap",()=>new WeakMap)}var B=n(56196),F=n(94708),W=n(82928),q=n(61762),H=n(58082);function Y(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let J=Symbol.for("SentryBufferFullError");function K(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return(0,H.xg)(J);let r=n();return t.add(r),r.then(()=>{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return(0,H.XW)(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>Y(setTimeout(()=>t(!1),e)))]):n}}}var G=n(54575),V=n(66383),X=n(73914),Q=n(99742),Z=n(23609),ee=n(69779),et=n(77427),en=n(75561);let er=["forwarded","-ip","remote-","via","-user"],ei={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5},es="Not capturing exception because it's already been captured.",ea="Discarded session because of missing or non-string release",eo=Symbol.for("SentryInternalError"),el=Symbol.for("SentryDoNotSendEventError");function eu(e){return{message:e,[eo]:!0}}function ec(e){return{message:e,[el]:!0}}function ed(e){return!!e&&"object"==typeof e&&eo in e}function ep(e){return!!e&&"object"==typeof e&&el in e}function eh(e,t,n,r,i){let s,a=0,o=!1;e.on(n,()=>{a=0,clearTimeout(s),o=!1}),e.on(t,t=>{if((a+=r(t))>=8e5)i(e);else if(!o){let t=e.getOptions()._flushInterval??5e3;t>0&&(o=!0,s=Y(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class ef{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=K(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?ei:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:er},httpHeaders:{request:{deny:er},response:{deny:er}},httpBodies:[],queryParams:{deny:er},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7},n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,queryParams:n.queryParams??t.queryParams,genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=(0,L.AD)(e.dsn):u.T&&s.Yz.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t,n){return t||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${function(e,t){let n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}(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:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&eh(this,"afterCaptureLog","flushLogs",ev,N.lt),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&eh(this,"afterCaptureMetric","flushMetrics",e_,z)}captureException(e,t,n){let r=(0,p.eJ)();if((0,p.GR)(e))return u.T&&s.Yz.log(es),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),"error"),i.event_id}captureMessage(e,t,n,r){let i={event_id:(0,p.eJ)(),...n},s=(0,X.NF)(e)?e:String(e),a=(0,X.sO)(e),o=a?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(()=>o.then(e=>this._captureEvent(e,i,r)),a?"unknown":"error"),i.event_id}captureEvent(e,t,n){let r=(0,p.eJ)();if(t?.originalException&&(0,p.GR)(t.originalException))return u.T&&s.Yz.log(es),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,l=a.capturedSpanIsolationScope,c=em(e.type);return this._process(()=>this._captureEvent(e,i,o||n,l),c),i.event_id}captureSession(e){this.sendSession(e),(0,B.qO)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;
12if(this.emit("flush"),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){(0,N.lt)(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]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),(0,c.qm)(this,e,this._integrations),t||(0,c.lc)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!t.getOptions().streamGenAiSpans||(0,q.K)(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?n.push(function(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return(0,k.PL)(t)}(t)):r.push(t);if(0===n.length)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,$.B)()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}(e,this),r=(0,D.V7)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=(0,j.W3)(r,(0,j.bm)(e));n&&(r=(0,j.W3)(r,n)),this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:n=A.U}=this._options;if("aggregates"in e){let r=e.attrs||{};if(!r.release&&!t){u.T&&s.Yz.warn(ea);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){u.T&&s.Yz.warn(ea);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);let r=(0,D.LE)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;u.T&&s.Yz.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.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 u.T&&s.Yz.error("Error while sending envelope:",e),{}}return u.T&&s.Yz.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,c.P$)(this,e),(0,c.lc)(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i){for(let e of(r=!0,n=!1,i))if(e.mechanism?.handled===!1){n=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&n)&&((0,B.qO)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),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,n,r){let i=this.getOptions(),s=this.getIntegrationNames();return!t.integrations&&s.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,ee.mG)(i,e,t,n,this,r).then(e=>
12(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,v.vn)(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,F.ao)(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=(0,v.o5)(),r=(0,v.rm)()){return u.T&&eg(e)&&s.Yz.log(`Captured error event \`${d(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{u.T&&(ep(e)?s.Yz.log(e.message):ed(e)?s.Yz.warn(e.message):s.Yz.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:s}=i,a=ey(e),o=eg(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===s?void 0:(0,Z.i)(s);if(o&&"number"==typeof c&&(0,et.hY)()>c)return this.recordDroppedEvent("sample_rate","error"),(0,H.xg)(ec(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let d=em(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),ec("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,X.Qg)(e))return e.then(e=>{if(!(0,X.Qd)(e)&&null!==e)throw eu(n);return e},e=>{throw eu(`${t} rejected with ${e}`)});if(!(0,X.Qd)(e)&&null!==e)throw eu(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:s,ignoreSpans:a}=t,o=!(0,W.S)(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(eg(l)&&i)return i(l,r);if(ey(l)){if(o||a){let t=function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:a,op:o}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:o,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[E.E1],exclusive_time:a?.[E.jG],measurements:e.measurements,is_segment:!0}}(l);if(a?.length&&(0,en.e)({description:t.description,op:t.op,attributes:t.data},a))return null;if(o){let e=o(t);if(e)l=(0,Q.h)(n,{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&&{[E.E1]:e.profile_id},...e.exclusive_time&&{[E.jG]:e.exclusive_time}}}},measurements:e.measurements});else(0,k.xl)()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(a?.length&&(0,en.e)({description:e.description,op:e.op,attributes:e.data},a)){(0,en.R)(n,e);continue}if(o){let n=o(e);n?t.push(n):((0,k.xl)(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(s){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(l,r)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw ec(`${u} returned \`null\`, will not send event.`)}let s=n.getSession()||r.getSession();if(o&&s&&this._updateSessionFromEvent(s,i),a){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 a&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(ep(e)||ed(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),eu(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
13Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===J&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){u.T&&s.Yz.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){u.T&&s.Yz.log("No outcomes to send");return}if(!this._dsn){u.T&&s.Yz.log("No dsn provided, will not send outcomes");return}u.T&&s.Yz.log("Sending outcomes:",e);let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,V.lu)(),discarded_events:e}];return(0,j.h4)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,L.SB)(this._dsn));this.sendEnvelope(t)}}function em(e){return"replay_event"===e?"replay":e||"error"}function eg(e){return void 0===e.type}function ey(e){return"transaction"===e.type}function e_(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+eb(e.attributes)}function ev(e){let t=0;return e.message&&(t+=2*e.message.length),t+eb(e.attributes)}function eb(e){if(!e)return 0;let t=0;
13return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*eS(e[0]):(0,X.sO)(e)?t+=eS(e):t+=100}),t}function eS(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}var ew=n(23873);function eE(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function ek(e){return(0,X.bJ)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function eT(e,t){let n=eI(e,t),r={type:function(e){let t=e?.name;return!t&&eM(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return eM(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?ek(t.error):ek(e):"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ex(e,t){return{exception:{values:[eT(e,t)]}}}function eI(e,t){var n,r;let i=t.stacktrace||t.stack||"",s=(n=t)&&eC.test(n.message)?1:0,a="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(i,s,a)}catch{}return[]}let eC=/Minified React error #\d+;/i;function eM(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function eO(e,t,n,r,i){let s;if((0,X.T2)(t)&&t.error)return ex(e,t.error);if((0,X.BD)(t)||(0,X.W6)(t)){if("stack"in t){s=ex(e,t);let i=s.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=eI(e,n);t.length&&(i.stacktrace={frames:t},(0,p.M6)(s,{synthetic:!0}))}}else{let i=t.name||((0,X.BD)(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;s=eR(e,a,n,r),(0,p.gO)(s,a)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return(0,X.bJ)(t)?ex(e,t):((0,X.Qd)(t)||(0,X.xH)(t)?s=function(e,t,n,r){let i=(0,v.KU)(),s=i?.getOptions().normalizeDepth,a=Object.values(t).find(e=>e instanceof Error),o={__serialized__:(0,R.cd)(t,s)};if(a)return{exception:{values:[eT(e,a)]},extra:o};let l={exception:{values:[{type:(0,X.xH)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,b.HF)(e),r=t?"promise rejection":"exception";if((0,X.T2)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,X.xH)(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 ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=eI(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i):(s=eR(e,t,n,r),(0,p.gO)(s,`${t}`,void 0)),(0,p.M6)(s,{synthetic:!0}),s)}function eR(e,t,n,r){let i={};if(r&&n){let r=eI(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,p.M6)(i,{synthetic:!0})}if((0,X.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}var eA=n(92134);class eD extends ef{constructor(e){var t;let n=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eA.jf.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});o(n,"browser",["browser"],eA.jf.SENTRY_SDK_SOURCE||(0,ew.e)()),super(n);let{userInfo:r}=this.getDataCollectionOptions();n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:r?"auto":"never",...n._metadata.sdk.settings});let{sendClientReports:i,enableLogs:s,_experiments:a,enableMetrics:l}=this._options,u=l??a?.enableMetrics??!0;eA.jf.document&&(i||s||u)&&eA.jf.document.addEventListener("visibilitychange",()=>{"hidden"===eA.jf.document.visibilityState&&(i&&this._flushOutcomes(),s&&(0,N.lt)(this),u&&z(this))}),r&&this.on("beforeSendSession",eE)}eventFromException(e,t){return function(e,t,n,r){let i=eO(e,t,n?.syntheticException||void 0,r);return(0,p.M6)(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),(0,H.XW)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let s=eR(e,t,r?.syntheticException||void 0,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),(0,H.XW)(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}var eN=n(34511);let eP=new Set([]);
13function eL(){"console"in i.O&&s.Ow.forEach(function(e){e in i.O.console&&(0,b.GS)(i.O.console,e,function(t){return s.Z9[e]=t,function(...t){let n=t[0],r=s.Z9[e],a=eP.size&&"string"==typeof n&&(0,h.Xr)(n,eP);a||(0,eN.aj)("console",{args:t,level:e}),(!a||u.T&&s.Yz.isEnabled())&&r?.apply(i.O.console,t)}})})}var ej=n(39942),e$=n(57862),ez=n(39466),eU=n(64713);function eB(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}var eF=n(37447),eW=n(18489),eq=n(2823),eH=n(79045),eY=n(29995),eJ=n(15221);let eK=(0,c._C)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,i,a,o,l,u;t.console&&function(e){let t="console";(0,eN.s5)(t,e),(0,eN.AS)(t,eL)}((n=e,function(e){if((0,v.KU)()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:(0,eU.t)(e.level),message:(0,h.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,h.gt)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);(0,e$.Z)(t,{input:e.args,level:e.level})})),t.dom&&(0,eW.i)((r=e,i=t.dom,function(e){let t,n;if((0,v.KU)()!==r)return;let a="object"==typeof i?i.serializeAttribute:void 0,o="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;o&&o>1024&&(eJ.T&&s.Yz.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof a&&(a=[a]);try{var l;let r=e.event,i=(l=r)&&l.target?r.target:r;t=(0,eY.H)(i,{keyAttrs:a,maxStringLength:o}),n=(0,ez.xE)(i)}catch{t="<unknown>"}if(0===t.length)return;let u={category:`ui.${e.name}`,message:t};n&&(u.data={"ui.component_name":n}),(0,e$.Z)(u,{event:e.event,name:e.name,global:e.global})})),t.xhr&&(0,eq.Mn)((a=e,function(e){if((0,v.KU)()!==a)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[eq.Er];if(!t||!n||!r)return;let{method:i,url:s,status_code:o,body:l}=r,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},c={category:"xhr",data:{method:i,url:s,status_code:o},type:"http",level:eB(o)};a.emit("beforeOutgoingRequestBreadcrumb",c,u),(0,e$.Z)(c,u)})),t.fetch&&(0,ej.ur)((o=e,function(e){if((0,v.KU)()!==o)return;let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",i,r),(0,e$.Z)(i,r)}else{let r=e.response,i={...e.fetchData,status_code:r?.status},s={input:e.args,response:r,startTimestamp:t,endTimestamp:n},a={category:"fetch",data:i,type:"http",level:eB(i.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",a,s),(0,e$.Z)(a,s)}})),t.history&&(0,eH._)((l=e,function(e){if((0,v.KU)()!==l)return;let t=e.from,n=e.to,r=(0,eF.Dl)(eA.jf.location.href),i=t?(0,eF.Dl)(t):void 0,s=(0,eF.Dl)(n);i?.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),(0,e$.Z)({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(u=e,function(e){(0,v.KU)()===u&&(0,e$.Z)({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,p.$X)(e)},{event:e})}))}}}),eG="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(","),eV=(0,c._C)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,b.GS)(eA.jf,"setTimeout",eX),t.setInterval&&(0,b.GS)(eA.jf,"setInterval",eX),t.requestAnimationFrame&&(0,b.GS
13)(eA.jf,"requestAnimationFrame",eQ),t.XMLHttpRequest&&"XMLHttpRequest"in eA.jf&&(0,b.GS)(XMLHttpRequest.prototype,"send",eZ);let e=t.eventTarget;e&&(Array.isArray(e)?e:eG).forEach(e=>(function(e,t){let n=eA.jf,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,b.GS)(r,"addEventListener",function(n){return function(r,i,s){var a,o,l,u;try{a=i,"function"==typeof a.handleEvent&&(i.handleEvent=(0,eA.LV)(i.handleEvent,{mechanism:{data:{handler:(0,x.qQ)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&(o=this,l=r,u=i,o&&"object"==typeof o&&"removeEventListener"in o&&"function"==typeof o.removeEventListener&&o.removeEventListener(l,u)),n.apply(this,[r,(0,eA.LV)(i,{mechanism:{data:{handler:(0,x.qQ)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),(0,b.GS)(r,"removeEventListener",function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))})(e,t))}}});function eX(e){return function(...t){let n=t[0];return t[0]=(0,eA.LV)(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,x.qQ)(e)}`}}),e.apply(this,t)}}function eQ(e){return function(t){return e.apply(this,[(0,eA.LV)(t,{mechanism:{data:{handler:(0,x.qQ)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function eZ(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,b.GS)(n,e,function(t){let n={mechanism:{data:{handler:(0,x.qQ)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=(0,b.sp)(t);return r&&(n.mechanism.data.handler=(0,x.qQ)(r)),(0,eA.LV)(t,n)})}),e.apply(this,t)}}let e0=(0,c._C)((e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===eA.jf.document){eJ.T&&s.Yz.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,l.J0)({ignoreDuration:!0}),(0,l.J5)();let e=(0,v.rm)(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();
13(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&((0,l.J5)(),n=t)}),"route"===t&&(0,eH._)(({from:e,to:t})=>{e!==t&&((0,l.J0)({ignoreDuration:!0}),(0,l.J5)())})}}});var e1=n(10369);let e3=(0,c._C)(()=>({name:"CultureContext",preprocessEvent(e){let t=e2();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=e2();t&&(0,e1.FD)(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}));function e2(){try{let e=eA.jf.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var e5=n(59525),e7=n(64295);let e8=(0,c._C)((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,(0,e5.L)(e=>{let{stackParser:t,attachStacktrace:r}=e6();if((0,v.KU)()!==n||(0,eA.jN)())return;let{msg:i,url:s,line:a,column:o,error:u}=e,c=function(e,t,n,r){let i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},l=o.frames=o.frames||[];return 0===l.length&&l.push({colno:r,lineno:n,filename:function(e){if((0,X.Kg)(e)&&0!==e.length)return e.startsWith("data:")?`<${(0,eF.zm)(e,!1)}>`:e}(t)??(0,ez.$N)(),function:x.yF,in_app:!0}),e}(eO(t,u||i,void 0,r,!1),s,a,o);c.level="error",(0,l.r)(c,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),e4("onerror")),t.onunhandledrejection&&(r=e,(0,e7.r)(e=>{var t;let{stackParser:n,attachStacktrace:i}=e6();if((0,v.KU)()!==r||(0,eA.jN)())return;let s=function(e){if((0,X.sO)(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}(e),a=(0,X.sO)(s)?(t=s,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):eO(n,s,void 0,i,!0);a.level="error",(0,l.r)(a,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),e4("onunhandledrejection"))}}});function e4(e){eJ.T&&s.Yz.log(`Global Handler attached: ${e}`)}function e6(){let e=(0,v.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let e9=(0,c._C)(()=>({name:"HttpContext",preprocessEvent(e){if(!eA.jf.navigator&&!eA.jf.location&&!eA.jf.document)return;let t=(0,eA.AP)(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!eA.jf.navigator&&!eA.jf.location&&!eA.jf.document)return;let t=(0,eA.AP)();(0,e1.FD)(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}}));function te(e){return Array.isArray(e.errors)}function tt(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...te(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function tn(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let tr=(0,c._C)((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){!function(e,t,n,r,i,s){if(!i.exception?.values||!s||!(0,X.tH)(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=function e(t,n,r,i,s,a,o,l){if(a.length>=r+1)return a;let u=[...a];if((0,X.tH)(i[s],Error)){tt(o,l,i);let a=t(n,i[s]),c=u.length;tn(a,s,c,l),u=e(t,n,r,i[s],s,[a,...u],a,c)}return te(i)&&i.errors.forEach((a,c)=>{if((0,X.tH)(a,Error)){tt(o,l,i);let d=t(n,a),p=u.length;tn(d,`errors[${c}]`,p,l),u=e(t,n,r,a,s,[d,...u],d,p)}}),u}(e,t,r,s.originalException,n,i.exception.values,a,0))}(eT,i.getOptions().stackParser,n,t,e,r)}}});function ti(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?x.yF:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let ts=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ta=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,to=/\((\S*)(?::(\d+))(?::(\d+))\)/,tl=/at (.+?) ?\(data:(.+?),/,tu=[30,e=>{let t=e.match(tl);
13if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=ts.exec(e);if(n){let[,e,t,r]=n;return ti(e,x.yF,+t,+r)}let r=ta.exec(e);if(r){if(r[2]?.indexOf("eval")===0){let e=to.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=tf(r[1]||x.yF,r[2]);return ti(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],tc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,td=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tp=[50,e=>{let t=tc.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=td.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||x.yF;return[n,e]=tf(n,e),ti(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],th=(0,x.gd)(tu,tp),tf=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:x.yF,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var tm=n(87248);function tg(e,t=(0,tm.qd)("fetch")){let n=0,r=0;async function i(i){let s=i.body.length;n+=s,r++;let a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,a);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw(0,tm.y7)("fetch"),e}finally{n-=s,r--}}return function(e,t,n=K(e.bufferSize||64)){let r={};return{send:function(i){let a=[];if((0,j.yH)(i,(t,n)=>{let i=(0,j.zk)(n);(0,G.Jz)(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):a.push(t)}),0===a.length)return Promise.resolve({});let o=(0,j.h4)(i[0],a),l=t=>{if((0,j.hP)(o,["client_report"])){u.T&&s.Yz.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}(0,j.yH)(o,(n,r)=>{e.recordDroppedEvent(t,(0,j.zk)(r))})};return n.add(()=>t({body:(0,j.bN)(o)}).then(e=>(413===e.statusCode?(u.T&&s.Yz.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),l("send_error")):(u.T&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&s.Yz.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=(0,G.wq)(r,e)),e),e=>{throw l("network_error"),u.T&&s.Yz.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===J)return u.T&&s.Yz.error("Skipped sending event because buffer is full."),l("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}(e,i,K(e.bufferSize||40))}let ty=/^HTML(\w*)Element$/;function t_(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(ty.test(t))return`[HTMLElement: ${(0,eY.H)(e)}]`}}function tv(e){return[g(),w(),T(),eV(),eK(),e8(),tr(),I(),e9(),e3(),e0()]}var tb=n(7620);function tS(e){return(0,X.Qd)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":t_(e)}var tw=n(79519),tE=n(77011),tk=n(20003);let tT=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function tx(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function tI(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let tC=(0,c._C)((e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in i.O&&!!i.O.window,s=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||s){let e=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?function(e,t){e=tx(e).slice(1),t=tx(t).slice(1);let n=tI(e.split("/")),r=tI(t.split("/")),i=Math.min(n.length,r.length),s=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){s=e;break}let a=[];for(let e=s;e<n.length;e++)a.push("..");return(a=a.concat(r.slice(s))).join("/")}(t,e):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=tT.exec(t);return n?n.slice(1):[]}(e)[2]||"";r.filename=`${n}${s}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>s(e))}}}})}}}catch{return e}}(t)),t}}}),tM=(0,c._C)(({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...tC({iteratee:i=>{if(r){let n="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(n)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===n&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(n,"")}catch{}return r?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}}),name:"NextjsClientStackFrameNormalization"}));var tO=n(66604);class tR{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}var tA=n(60983);let tD=new tR(100);var tN=n(77011);let tP=i.O;var tL=n(77011);let tj=!1,t$=i.O;function tz(e){tj&&(0,s.pq)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),tj=!0,!tw.T&&e.debug&&(0,s.pq)(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){eA.jf.document&&function(e){let t=(0,tA.D)(e)||e,n=tD.get(t);if(void 0!==n)return n;let r=(0,tA.c)();if(!r?.isrRoutes||!Array.isArray(r.isrRoutes)||0===r.isrRoutes.length)return tD.set(t,!1),!1;let i=r.isrRoutes.includes(t);return tD.set(t,i),i}(eA.jf.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=eA.jf.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let t={environment:e.environment||tL.env.SENTRY_ENVIRONMENT||function(e){let t=e?tE.env.NEXT_PUBLIC_VERCEL_ENV:tE.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=tv(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push((0,tk.d)());let n=t$._sentryRewriteFramesAssetPrefixPath||"",r=tL.env._sentryAssetPrefix||t$._sentryAssetPrefix,i=tL.env._sentryBasePath||t$._sentryBasePath,s="true"===tL.env._experimentalThirdPartyOriginStackFrames||"true"===t$._experimentalThirdPartyOriginStackFrames;return t.push(tM({assetPrefix:r,basePath:i,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:s})),t}(e),release:"6685d10e96dcc5e02d842e457ec466c9d56a5f87",...e};!function(e){let t=tN.env._sentryRewritesTunnelPath||tP._sentryRewritesTunnelPath;if(t&&e.dsn){let n=(0,L.hH)(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],a=r[2],o=`${t}?o=${i}&p=${n.projectId}`;a&&(o+=`&r=${a}`),e.tunnel=o,tw.T&&s.Yz.log(`Tunneling events to "${o}"`)}else tw.T&&s.Yz.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(t),o(t,"nextjs",["nextjs","react"]),t.ignoreSpans=[...t.ignoreSpans||[],/^\/404$/,new RegExp("^".concat(tO.NI,"$"))];let n=function(e){let t={...e};
13o(t,"react"),(0,l.o)("react",{version:tb.version});let n=function(e={}){var t;let n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===eA.jf.window)return!1;let e=eA.jf;if(e.nw)return!1;let t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;let n=(0,ez.$N)();return!(eA.jf===eA.jf.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}()&&(eJ.T&&(0,s.pq)(()=>{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?tv():e.defaultIntegrations,i={...e,enabled:!n&&e.enabled,stackParser:(0,x.vk)(e.stackParser||th),integrations:(0,c.mH)({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||tg};(0,R.Ip)(t_);!0===i.debug&&(u.T?s.Yz.enable():(0,s.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,v.o5)().update(i.initialScope);let a=new eD(i);return t=a,(0,v.o5)().setClient(t),a.init(),a}(t);return(0,R.Ip)(tS),n}(t),r=(e,t)=>{var n,r,i,s;return(s=null==t?void 0:t.originalException,(0,X.bJ)(s)&&"string"==typeof s.digest&&s.digest.startsWith("NEXT_REDIRECT;")||(null==(i=e.exception)||null==(r=i.values)||null==(n=r[0])?void 0:n.value)==="NEXT_REDIRECT")?null:e};return r.id="NextRedirectErrorFilter",(0,l.SA)(r),n}},54575:(e,t,n)=>{n.d(t,{Jz:()=>i,wq:()=>s});var r=n(77427);function i(e,t,n=(0,r.Wk)()){return(e[t]||e.all||0)>n}function s(e,{statusCode:t,headers:n},i=(0,r.Wk)()){let a={...e},o=n?.["x-sentry-rate-limits"],l=n?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,r]=e.split(":",5),s=parseInt(t,10),o=(isNaN(s)?60:s)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!r||r.split(";").includes("custom"))&&(a[e]=i+o):a[e]=i+o;else a.all=i+o}else l?a.all=i+function(e,t=(0,r.Wk)()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let i=Date.parse(`${e}`);return isNaN(i)?6e4:i-t}(l,i):429===t&&(a.all=i+6e4);return a}},56143:(e,t,n)=>{n.d(t,{AD:()=>d,SB:()=>o,hH:()=>l,ul:()=>c});var r=n(97810),i=n(34936);let s=/^o(\d+)\./,a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function o(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function l(e){let t=a.exec(e);if(!t)return void(0,i.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[n,r,s="",o="",l="",c=""]=t.slice(1),d="",p=c,h=p.split("/");if(h.length>1&&(d=h.slice(0,-1).join("/"),p=h.pop()),p){let e=p.match(/^\d+/);e&&(p=e[0])}return u({host:o,pass:s,path:d,projectId:p,port:l,protocol:n,publicKey:r})}function u(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};return n.orgId?t=String(n.orgId):r&&(t=function(e){let t=e.match(s);return t?.[1]}(r)),t}function d(e){let t="string"==typeof e?l(e):u(e);if(t&&function(e){if(!r.T)return!0;let{port:t,projectId:n,protocol:s}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.Yz.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"!==s&&"https"!==s?(i.Yz.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),!1):!(t&&isNaN(parseInt(t,10)))||(i.Yz.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.Yz.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}},56196:(e,t,n)=>{n.d(t,{Vu:()=>o,fj:()=>s,qO:()=>a});var r=n(95266),i=n(66383);function s(e){let t=(0,i.zf)(),n={sid:(0,r.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=n,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}};return e&&a(n,e),n}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function o(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}}
13,57862:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(30020),i=n(34936),s=n(66383);function a(e,t){let n=(0,r.KU)(),a=(0,r.rm)();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:l=100}=n.getOptions();if(l<=0)return;let u={timestamp:(0,s.lu)(),...e},c=o?(0,i.pq)(()=>o(u,t)):u;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),a.addBreadcrumb(c,l))}},58082:(e,t,n)=>{n.d(t,{XW:()=>i,xg:()=>s});var r=n(73914);function i(e){return new a(t=>{t(e)})}function s(e){return new a((t,n)=>{n(e)})}class a{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new a((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i)return void n(r);t(r)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if((0,r.Qg)(t))return void t.then(n,i);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},i=e=>{t(2,e)};try{e(n,i)}catch(e){i(e)}}}},59525:(e,t,n)=>{n.d(t,{L:()=>a});var r=n(91285),i=n(34511);let s=null;function a(e){let t="error";(0,i.s5)(t,e),(0,i.AS)(t,o)}function o(){s=r.O.onerror,r.O.onerror=function(e,t,n,r,a){return(0,i.aj)("error",{column:r,error:a,line:n,msg:e,url:t}),!!s&&s.apply(this,arguments)},r.O.onerror.__SENTRY_INSTRUMENTED__=!0}},60492:(e,t,n)=>{n.d(t,{h:()=>p});var r=n(94360),i=n(24460),s=n(43856),a=n(73914);class o{constructor(e,t){let n,r;n=e||new i.H,r=t||new i.H,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,a.Qg)(t)?(0,s.i)(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function l(){let e=(0,r.EU)(),t=(0,r.Se)(e);return t.stack=t.stack||new o((0,r.BY)("defaultCurrentScope",()=>new i.H),(0,r.BY)("defaultIsolationScope",()=>new i.H))}function u(e){return l().withScope(e)}function c(e,t){let n=l();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function d(e){return l().withScope(()=>e(l().getIsolationScope()))}function p(e){let t=(0,r.Se)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:u,withSetScope:c,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},60742:(e,t,n)=>{let r;n.d(t,{KG:()=>w,lt:()=>E});var i=n(40385),s=n(94360),a=n(30020),o=n(97810),l=n(34936),u=n(73914),c=n(35550),d=n(73721),p=n(66383);let h=0;var f=n(94708),m=n(8171);let g={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var y=n(56143),_=n(83294),v=n(78079);function b(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function S(e,t){var n;let r=k(),i=(n=e,k().get(n));void 0===i?r.set(e,[t]):i.length>=100?(E(e,i),r.set(e,[t])):r.set(e,[...i,t])}function w(e,t=(0,a.o5)(),n=S){let s=t?.getClient()??(0,a.KU)();if(!s){o.T&&l.Yz.warn("No client available to capture log.");return}let{release:y,environment:_,enableLogs:v=!1,beforeSendLog:E}=s.getOptions();if(!v){o.T&&l.Yz.warn("logging option not enabled, log will not be captured.");return}let[,k]=t?(0,a.v4)(t,()=>{let e=(0,m.Bk)(),n=e?(0,m.kX)(e):(0,a.vn)(t);return[e?(0,f.k1)(e):(0,f.ao)(s,t),n]}):[void 0,void 0],x={...e.attributes},{user:{id:I,email:C,username:M},attributes:O={}}=(0,c.Om)((0,a.rm)(),t);b(x,"user.id",I,!1),b(x,"user.email",C,!1),b(x,"user.name",M,!1),b(x,"sentry.release",y),b(x,"sentry.environment",_);let{name:R,version:A}=s.getSdkMetadata()?.sdk??{};b(x,"sentry.sdk.name",R),b(x,"sentry.sdk.version",A);let D=s.getIntegrationByName("Replay"),N=D?.getReplayId(!0);b(x,"sentry.replay_id",N),N&&D?.getRecordingMode()==="buffer"&&b(x,"sentry._internal.replay_is_buffering",!0);let P=e.message;
13if((0,u.NF)(P)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=P;t?.length&&(x["sentry.message.template"]=e),t.forEach((e,t)=>{x[`sentry.message.parameter.${t}`]=e})}let L=(0,d.f)(t);b(x,"sentry.trace.parent_span_id",L?.spanContext().spanId);let j={...e,attributes:x};s.emit("beforeCaptureLog",j);let $=E?(0,l.pq)(()=>E(j)):j;if(!$){s.recordDroppedEvent("before_send","log_item",1),o.T&&l.Yz.warn("beforeSendLog returned null, log will not be captured.");return}let{level:z,message:U,attributes:B={},severityNumber:F}=$,W=(0,p.zf)(),q=function(e){let t=Math.floor(1e3*e);void 0!==r&&t!==r&&(h=0);let n=h;return h++,r=t,{key:"sentry.timestamp.sequence",value:{value:n,type:"integer"}}}(W);n(s,{timestamp:W,level:z,body:T(String(U)),trace_id:k?.trace_id,severity_number:F??g[z],attributes:function(e){let t={};for(let[n,r]of Object.entries(e)){let e=T(n);"string"===r.type?t[e]={...r,value:T(r.value)}:t[e]=r}return t}({...(0,i.SY)(O),...(0,i.SY)(B,!0),[q.key]:q.value})}),s.emit("afterCaptureLog",$)}function E(e,t){var n;let r=t??(n=e,k().get(n))??[];if(0===r.length)return;let i=e.getOptions(),s=function(e,t,n,r,i){let s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=(0,y.SB)(r)),(0,_.h4)(s,[function(e,t){let n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,v.B)()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}(e,i)])}(r,i._metadata,i.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);k().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function k(){return(0,s.BY)("clientToLogBufferMap",()=>new WeakMap)}function T(e){let t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return"function"==typeof n&&"function"==typeof r?n.call(e)?e:r.call(e):e}},60983:(e,t,n)=>{let r;n.d(t,{D:()=>f,c:()=>h});var i=n(91285),s=n(34936),a=n(79519);let o=i.O,l=null,u=new Map,c=new Map;function d(e){let t=e.split("/").filter(Boolean),n=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?n+=1e3:t.endsWith("*")?n+=100:n+=10}return t.length>0&&(n+=1/t.length),n}function p(e){if(u.has(e))return u.get(e)??null;try{let t=new RegExp(e);return u.set(e,t),t}catch(t){return a.T&&s.Yz.warn("Could not compile regex",{regexString:e,error:t}),null}}function h(){if(!o?._sentryRouteManifest||"string"!=typeof o._sentryRouteManifest)return null;let e=o._sentryRouteManifest;if(l&&r===e)return l;u.clear(),c.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return l=t,r=e,t}catch{return a.T&&s.Yz.warn("Could not extract route manifest"),null}}let f=e=>{let t=h();if(!t)return;let n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(c.has(n))return c.get(n);let{staticRoutes:r,dynamicRoutes:i}=t;if(!Array.isArray(r)||!Array.isArray(i))return;let s=(function(e,t,n){let r=[];if(t.some(t=>t.path===e))return r;for(let t of n)if(t.regex){let n=p(t.regex);n?.test(e)&&r.push(t.path)}if(!e.startsWith("/:")){for(let t of n)if(t.hasOptionalPrefix&&t.regex){let n="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=p(t.regex);i?.test(n)&&r.push(t.path)}}return r})(n,r,i).sort((e,t)=>d(e)-d(t))[0];return c.set(n,s),s}},61762:(e,t,n)=>{n.d(t,{K:()=>r});function r(e){return"stream"===e.getOptions().traceLifecycle}},64295:(e,t,n)=>{n.d(t,{r:()=>a});var r=n(91285),i=n(34511);let s=null;function a(e){let t="unhandledrejection";(0,i.s5)(t,e),(0,i.AS)(t,o)}function o(){s=r.O.onunhandledrejection,r.O.onunhandledrejection=function(e){return(0,i.aj)("unhandledrejection",e),!s||s.apply(this,arguments)},r.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},64713:(e,t,n)=>{n.d(t,{t:()=>r});function r(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}},66383:(e,t,n)=>{let r;n.d(t,{k3:()=>u,lu:()=>a,zf:()=>o});var i=n(77427),s=n(91285);function a(){return(0,i.Wk)()/1e3}function o(){return(r??(r=function(){let{performance:e}=s.O;if(!e?.now||!e.timeOrigin)return a;let t=e.timeOrigin;return()=>(t+(0,i.Qw)(()=>e.now()))/1e3}()))()}let l=null;function u(){return null===l&&(l=function(){let{performance:e}=s.O;if(!e?.now)return;let t=(0,i.Qw)(()=>e.now()),n=(0,i.Wk)(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let a=e.timing?.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+t-n)?a:n-t}()),l}}
13,66604:(e,t,n)=>{let r;n.d(t,{NI:()=>p,Nc:()=>w,jw:()=>m,q3:()=>_});var i=n(66383),s=n(69537),a=n(91285),o=n(92134),l=n(91301),u=n(60983),c=n(77011);function d(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}let p="incomplete-app-router-transaction",h="router-patch",f={current:void 0};function m(e){let t=d(o.jf.location.pathname),n=(0,u.D)(t),r=(0,i.k3)();(0,l.Sx)(e,{name:n??t,startTime:r?r/1e3:void 0,attributes:{[s.uT]:"pageload",[s.JD]:"auto.pageload.nextjs.app_router_instrumentation",[s.i_]:n?"route":"url"}})}let g=a.O,y=a.O;function _(e){r=(t,n)=>{let r=c.env._sentryBasePath??y._sentryBasePath,i=d(new URL(r&&!t.startsWith(r)?`${r}${t}`:t,o.jf.location.href).pathname),a=(0,u.D)(i),p=a??i;"router-patch"===h&&(h="transition-start-hook");let m=f.current;m?(m.updateName(p),m.setAttributes({"navigation.type":`router.${n}`,[s.i_]:a?"route":"url"}),f.current=void 0):(0,l.Nt)(e,{name:p,attributes:{[s.uT]:"navigation",[s.JD]:"auto.navigation.nextjs.app_router_instrumentation",[s.i_]:a?"route":"url","navigation.type":`router.${n}`}})},o.jf.addEventListener("popstate",()=>{let t=d(o.jf.location.pathname),n=(0,u.D)(t);f.current?.isRecording()?(f.current.updateName(n??t),f.current.setAttribute(s.i_,n?"route":"url")):f.current=(0,l.Nt)(e,{name:n??t,attributes:{[s.JD]:"auto.navigation.nextjs.app_router_instrumentation",[s.i_]:n?"route":"url","navigation.type":"browser.popstate"}})});let t=!1,n=0,i=setInterval(()=>{n++;let r=g?.next?.router??g?.nd?.router;t||n>500?clearInterval(i):r&&(clearInterval(i),t=!0,S(e,r,f),["nd","next"].forEach(t=>{let n=g[t];n&&(g[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&S(e,r,f),t[n]=r,!0)}))}))},20)}function v(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let b=new WeakSet;function S(e,t,n){b.has(t)||(b.add(t),["back","forward","push","replace"].forEach(r=>{t?.[r]&&(t[r]=new Proxy(t[r],{apply(t,i,a){if("router-patch"!==h)return t.apply(i,a);let o=p,f={[s.uT]:"navigation",[s.JD]:"auto.navigation.nextjs.app_router_instrumentation",[s.i_]:"url"},m=a[0],g=c.env._sentryBasePath??y._sentryBasePath,_=g&&"string"==typeof m&&!m.startsWith(g)?`${g}${m}`:m;"push"===r?(o=d(v(_)),f["navigation.type"]="router.push"):"replace"===r?(o=d(v(_)),f["navigation.type"]="router.replace"):"back"===r?f["navigation.type"]="router.back":"forward"===r&&(f["navigation.type"]="router.forward");let b=(0,u.D)(o);return n.current=(0,l.Nt)(e,{name:b??o,attributes:{...f,[s.i_]:b?"route":"url"}}),t.apply(i,a)}}))}))}function w(e,t){r&&r(e,t)}},67716:(e,t,n)=>{n.d(t,{N:()=>u});var r=n(75532),i=n(34004),s=n(41868);let a=-1,o=new Set,l=e=>{if(("pagehide"===e.type||r.j.document?.visibilityState==="hidden")&&a>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of o)e();isFinite(a)||(a="visibilitychange"===e.type?e.timeStamp:0,(0,s.Q)("prerenderingchange",l,!0))}},u=()=>{if(r.j.document&&a<0){let e=(0,i.b)();a=(r.j.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(r.j.document?.visibilityState!=="hidden"||r.j.document?.prerendering?1/0:0),(0,s.d)("visibilitychange",l,!0),(0,s.d)("pagehide",l,!0),(0,s.d)("prerenderingchange",l,!0)}return{get firstHiddenTime(){return a},onHidden(e){o.add(e)}}}},68408:(e,t,n)=>{n.d(t,{U:()=>o,z:()=>a});var r=n(97810),i=n(34936),s=n(8171);function a(e){if(!r.T)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:a}=(0,s.et)(e),{spanId:o}=e.spanContext(),l=(0,s.pK)(e),u=(0,s.zU)(e),c=u===e,d=`[Tracing] Starting ${l?"sampled":"unsampled"} ${c?"root ":""}span`,p=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(a&&p.push(`parent ID: ${a}`),!c){let{op:e,description:t}=(0,s.et)(u);p.push(`root ID: ${u.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}i.Yz.log(`${d}
14  ${p.join("\n  ")}`)}function o(e){if(!r.T)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,s.et)(e),{spanId:a}=e.spanContext(),o=(0,s.zU)(e)===e,l=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${a}`;i.Yz.log(l)}},69287:(e,t,n)=>{n.d(t,{Cp:()=>l,J0:()=>h,J5:()=>g,Ol:()=>d,SA:()=>p,o:()=>c,r:()=>u});var r=n(30020),i=n(56196),s=n(69779),a=n(35550),o=n(91285);function l(e,t){return(0,r.o5)().captureException(e,(0,s.li)(t))}function u(e,t){return(0,r.o5)().captureEvent(e,t)}function c(e,t){(0,r.rm)().setContext(e,t)}function d(){let e=(0,r.KU)();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function p(e){(0,r.rm)().addEventProcessor(e)}function h(e){let t=(0,r.rm)(),{user:n}=(0,a.Om)(t,(0,r.o5)()),{userAgent:s}=o.O.navigator||{},l=(0,i.fj)({user:n,...s&&{userAgent:s},...e}),u=t.getSession();return u?.status==="ok"&&(0,i.qO)(u,{status:"exited"}),f(),t.setSession(l),l}function f(){let e=(0,r.rm)(),t=(0,r.o5)().getSession()||e.getSession();t&&(0,i.Vu)(t),m(),e.setSession()}function m(){let e=(0,r.rm)(),t=(0,r.KU)(),n=e.getSession();n&&t&&t.captureSession(n)}function g(e=!1){if(e)return void f();m()}},69537:(e,t,n)=>{n.d(t,{E1:()=>p,Ef:()=>s,Fy:()=>m,JD:()=>o,Lc:()=>f,Le:()=>d,Sn:()=>u,fs:()=>l,i_:()=>r,jG:()=>h,sy:()=>i,uT:()=>a,xc:()=>c});let r="sentry.source",i="sentry.sample_rate",s="sentry.previous_trace_sample_rate",a="sentry.op",o="sentry.origin",l="sentry.idle_span_finish_reason",u="sentry.measurement_unit",c="sentry.measurement_value",d="sentry.custom_span_name",p="sentry.profile_id",h="sentry.exclusive_time",f="sentry.link.type",m="gen_ai.conversation.id"},69779:(e,t,n)=>{let r,i,s,a;n.d(t,{li:()=>b,mG:()=>v});var o=n(37085),l=n(97810),u=n(34936),c=n(73914),d=n(58082),p=n(24460),h=n(91285),f=n(95266),m=n(32853),g=n(35550),y=n(25871),_=n(66383);function v(e,t,n,v,b,S){var w,E;let{normalizeDepth:k=3,normalizeMaxBreadth:T=1e3}
14=e,x={...t,event_id:t.event_id||n.event_id||(0,f.eJ)(),timestamp:t.timestamp||(0,_.lu)()},I=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s}=t;e.environment=e.environment||n||o.U,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let a=e.request;a?.url&&s&&(a.url=(0,y.xv)(a.url,s)),s&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,y.xv)(e.value,s))})})(x,e),w=x,(E=I).length>0&&(w.sdk=w.sdk||{},w.sdk.integrations=[...w.sdk.integrations||[],...E]),b&&b.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n=function(e){let t=h.O._sentryDebugIds,n=h.O._debugIds;if(!t&&!n)return{};let o=t?Object.keys(t):[],l=n?Object.keys(n):[];if(a&&o.length===i&&l.length===s)return a;i=o.length,s=l.length,a={},r||(r={});let u=(t,n)=>{for(let i of t){let t=n[i],s=r?.[i];if(s&&a&&t)a[s[0]]=t,r&&(r[i]=[s[0],t]);else if(t){let n=e(i);for(let e=n.length-1;e>=0;e--){let s=n[e],o=s?.filename;if(o&&a&&r){a[o]=t,r[i]=[o,t];break}}}}};return t&&u(o,t),n&&u(l,n),a}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(x,e.stackParser);let C=function(e,t){if(!t)return e;let n=e?e.clone():new p.H;return n.update(t),n}(v,n.captureContext);n.mechanism&&(0,f.M6)(x,n.mechanism);let M=b?b.getEventProcessors():[],O=(0,g.Om)(S,C),R=[...n.attachments||[],...O.attachments];R.length&&(n.attachments=R),(0,g.e2)(x,O);let A=[...M,...O.eventProcessors];return(n.data&&!0===n.data.__sentry__?(0,d.XW)(x):function(e,t,n,r=0){try{let i=function e(t,n,r,i){let s=r[i];if(!t||!s)return t;let a=s({...t},n);return(l.T&&null===a&&u.Yz.log(`Event processor "${s.id||"?"}" dropped event`),(0,c.Qg)(a))?a.then(t=>e(t,n,r,i+1)):e(a,n,r,i+1)}(t,n,e,r);return(0,c.Qg)(i)?i:(0,d.XW)(i)}catch(e){return(0,d.xg)(e)}}(A,x,n)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof k&&k>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,m.S8)(e.data,t,n)}}))},...e.user&&{user:(0,m.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,m.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,m.S8)(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,m.S8)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,m.S8)(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,m.S8)(e.contexts.flags,3,n)),r}(e,k,T):e)}function b(e){if(e){var t;return(t=e)instanceof p.H||"function"==typeof t||Object.keys(e).some(e=>S.includes(e))?{captureContext:e}:e}}let S=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},73721:(e,t,n)=>{n.d(t,{f:()=>o,r:()=>a});var r=n(19057),i=n(44803);let s="_sentrySpan";function a(e,t){t?(0,r.my)(e,s,(0,i.Z)(t)):delete e[s]}function o(e){return(0,i.q)(e[s])}},73914:(e,t,n)=>{n.d(t,{BD:()=>o,Kg:()=>u,NF:()=>c,Qd:()=>p,Qg:()=>m,T2:()=>a,W6:()=>l,bJ:()=>i,gd:()=>f,ks:()=>y,sO:()=>d,tH:()=>g,xH:()=>h});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return g(e,Error)}}function s(e,t){return r.call(e)===`[object ${t}]`}function a(e){return s(e,"ErrorEvent")}function o(e){return s(e,"DOMError")}function l(e){return s(e,"DOMException")}function u(e){return s(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return s(e,"Object")}function h(e){return"undefined"!=typeof Event&&g(e,Event)}function f(e){return s(e,"RegExp")}function m(e){return!!(e?.then&&"function"==typeof e.then)}function g(e,t){try{return e instanceof t}catch{return!1}}function y(e){return"undefined"!=typeof Request&&g(e,Request)}},75532:(e,t,n)=>{n.d(t,{j:()=>r});let r=n(91285).O},75561:(e,t,n)=>{n.d(t,{R:()=>l,e:()=>o});var r=n(97810),i=n(34936),s=n(25871);function a(e){i.Yz.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function o(e,t){if(!t?.length)return!1;for(let i of t){var n;
14if("string"==typeof(n=i)||n instanceof RegExp){if(e.description&&(0,s._c)(e.description,i))return r.T&&a(e),!0;continue}let t=!!i.attributes&&Object.keys(i.attributes).length>0;if(!i.name&&!i.op&&!t)continue;let o=!i.name||e.description&&(0,s._c)(e.description,i.name),l=!i.op||e.op&&(0,s._c)(e.op,i.op),u=!i.attributes||Object.entries(i.attributes).every(([t,n])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,s._c)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t})(e.attributes?.[t],n));if(o&&l&&u)return r.T&&a(e),!0}return!1}function l(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}},77327:(e,t,n)=>{let r,i,s,a,o;n.d(t,{a9:()=>B,hT:()=>q,Pt:()=>F,wv:()=>H,YG:()=>W,tC:()=>ee});var l=n(34936),u=n(85127),c=n(87287),d=n(75532);let p=(e,t,n,r)=>{let i,s;return a=>{t.value>=0&&(a||r)&&((s=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t))}};var h=n(67716),f=n(34004),m=n(78234);let g=(e,t=-1)=>{let n=(0,m.z)(),r="navigate";return n&&(d.j.document?.prerendering||(0,f.b)()>0?r="prerender":d.j.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:r}},y=new WeakMap;function _(e,t){try{return y.get(e)||y.set(e,new t),y.get(e)}catch(e){return new t}}class v{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let b=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},S=e=>{let t=!1;return()=>{t||(e(),t=!0)}},w=e=>{d.j.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},E=[1800,3e3],k=[.1,.25],T=0,x=1/0,I=0,C=e=>{e.forEach(e=>{e.interactionId&&(x=Math.min(x,e.interactionId),T=(I=Math.max(I,e.interactionId))?(I-x)/7+1:0)})},M=()=>r?T:performance.interactionCount||0,O=0;class R{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){O=M(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((M()-O)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}var A=n(41868);let D=e=>{let t=d.j.requestIdleCallback||d.j.setTimeout;d.j.document?.visibilityState==="hidden"?e():(e=S(e),(0,A.d)("visibilitychange",e,{once:!0,capture:!0}),(0,A.d)("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),(0,A.Q)("visibilitychange",e,{capture:!0}),(0,A.Q)("pagehide",e,{capture:!0})}))},N=[200,500];class P{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let L=[2500,4e3],j=[800,1800],$=e=>{d.j.document?.prerendering?w(()=>$(e)):d.j.document?.readyState!=="complete"?addEventListener("load",()=>$(e),!0):setTimeout(e)},z={},U={};function B(e,t=!1){return X("cls",e,J,i,t)}function F(e,t=!1){return X("lcp",e,K,s,t)}function W(e){return X("ttfb",e,G,a)}function q(e){return X("inp",e,V,o)}function H(e,t){return Q(e,t),U[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),b(e,t=>{Y(e,{entries:t})},t)}(e),U[e]=!0),Z(e,t)}function Y(e,t){let n=z[e];if(n?.length)for(let r of n)try{r(t)}catch(t){c.T&&l.Yz.error(`Error while triggering instrumentation handler.
15Type: ${e}
16Name: ${(0,u.qQ)(r)}
17Error:`,t)}}function J(){return((e,t={})=>{((e,t={})=>{w(()=>{let n,r=(0,h.N)(),i=g("FCP"),s=b("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-(0,f.b)(),0),i.entries.push(t),n(!0)))});s&&(n=p(e,i,E,t.reportAllChanges))})})(S(()=>{let n,r=g("CLS",0),i=(0,h.N)(),s=_(t,v),a=e=>{for(let t of e)s._processEntry(t);s._sessionValue>r.value&&(r.value=s._sessionValue,r.entries=s._sessionEntries,n())},o=b("layout-shift",a);o&&(n=p(e,r,k,t.reportAllChanges),i.onHidden(()=>{a(o.takeRecords()),n(!0)}),d.j?.setTimeout?.(n))}))})(e=>{Y("cls",{metric:e}),i=e},{reportAllChanges:!0})}function K(){return((e,t={})=>{w(()=>{let n,r=(0,h.N)(),i=g("LCP"),s=_(t,P),a=e=>{for(let a of(t.reportAllChanges||(e=e.slice(-1)),e))s._processEntry(a),a.startTime<r.firstHiddenTime&&(i.value=Math.max(a.startTime-(0,f.b)(),0),i.entries=[a],n())},o=b("largest-contentful-paint",a);if(o){n=p(e,i,L,t.reportAllChanges);let r=S(()=>{a(o.takeRecords()),o.disconnect(),n(!0)}),s=e=>
17{e.isTrusted&&(D(r),(0,A.Q)(e.type,s,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])(0,A.d)(e,s,{capture:!0})}})})(e=>{Y("lcp",{metric:e}),s=e},{reportAllChanges:!0})}function G(){return((e,t={})=>{let n=g("TTFB"),r=p(e,n,j,t.reportAllChanges);$(()=>{let e=(0,m.z)();e&&(n.value=Math.max(e.responseStart-(0,f.b)(),0),n.entries=[e],r(!0))})})(e=>{Y("ttfb",{metric:e}),a=e})}function V(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=(0,h.N)();w(()=>{let i;"interactionCount"in performance||r||(r=b("event",C,{type:"event",buffered:!0,durationThreshold:0}));let s=g("INP"),a=_(t,R),o=e=>{D(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==s.value&&(s.value=t._latency,s.entries=t.entries,i())})},l=b("event",o,{durationThreshold:t.durationThreshold??40});i=p(e,s,N,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(l.takeRecords()),i(!0)}))})})(e=>{Y("inp",{metric:e}),o=e})}function X(e,t,n,r,i=!1){let s;return Q(e,t),U[e]||(s=n(),U[e]=!0),r&&t({metric:r}),Z(e,t,i?s:void 0)}function Q(e,t){z[e]=z[e]||[],z[e].push(t)}function Z(e,t,n){return()=>{n&&n();let r=z[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function ee(e){return"duration"in e}},77427:(e,t,n)=>{let r;n.d(t,{Qw:()=>s,Wk:()=>o,hY:()=>a});var i=n(91285);function s(e){if(void 0!==r)return r?r(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=i.O;return t in n&&"function"==typeof n[t]?(r=n[t])(e):(r=null,e())}function a(){return s(()=>Math.random())}function o(){return s(()=>Date.now())}},78079:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(23873),i=n(77011),s=n(91285);function a(){return"undefined"!=typeof window&&(!(!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0))||function(){let e=s.O.process;return e?.type==="renderer"}())}},78165:(e,t,n)=>{n.d(t,{$:()=>l,X:()=>o});var r=n(97810),i=n(69537),s=n(34936),a=n(8171);function o(e,t,n,l=(0,a.Bk)()){let u=l&&(0,a.zU)(l);u&&(r.T&&s.Yz.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),u.addEvent(e,{[i.xc]:t,[i.Sn]:n}))}function l(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[i.Sn],s=n[i.xc];"string"==typeof r&&"number"==typeof s&&(t[e.name]={value:s,unit:r})}),t}},78234:(e,t,n)=>{n.d(t,{z:()=>i});var r=n(75532);let i=(e=!0)=>{let t=r.j.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},78252:(e,t,n)=>{n.d(t,{L:()=>l,d:()=>o});var r=n(19057),i=n(44803);let s="_sentryScope",a="_sentryIsolationScope";function o(e,t,n){e&&((0,r.my)(e,a,(0,i.Z)(n)),(0,r.my)(e,s,t))}function l(e){return{scope:e[s],isolationScope:(0,i.q)(e[a])}}},79045:(e,t,n)=>{let r;n.d(t,{_:()=>l});var i=n(34511),s=n(3310),a=n(19057),o=n(75532);function l(e){let t="history";(0,i.s5)(t,e),(0,i.AS)(t,u)}function u(){function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let s=r,a=function(e){try{return new URL(e,o.j.location.origin).toString()}catch{return e}}(String(n));if(r=a,s===a)return e.apply(this,t);(0,i.aj)("history",{from:s,to:a})}return e.apply(this,t)}}o.j.addEventListener("popstate",()=>{let e=o.j.location.href,t=r;r=e,t!==e&&(0,i.aj)("history",{from:t,to:e})}),(0,s.NJ)()&&((0,a.GS)(o.j.history,"pushState",e),(0,a.GS)(o.j.history,"replaceState",e))}},79519:(e,t,n)=>{n.d(t,{T:()=>r});let r=!1},82928:(e,t,n)=>{n.d(t,{S:()=>r});function r(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}},83294:(e,t,n)=>{n.d(t,{Cj:()=>_,W3:()=>u,bN:()=>h,bm:()=>m,h4:()=>l,hP:()=>d,n2:()=>v,y5:()=>f,yH:()=>c,zk:()=>y});var r=n(94360),i=n(56143),s=n(32853),a=n(77427),o=n(91285);function l(e,t=[]){return[e,t]}function u(e,t){let[n,r]=e;return[n,[...r,t]]}function c(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function d(e,t){return c(e,(e,n)=>t.includes(n))}function p(e){let t=(0,r.Se)(o.O);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function h(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[p(r),e]:r.push("string"==typeof e?p(e):e)}for(let e of n){let[t,n]=e;if(i(`
18${JSON.stringify(t)}
19`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify((0,s.S8)(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>
19e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}function f(e){return[{type:"span"},e]}function m(e){let t="string"==typeof e.data?p(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}let g={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function y(e){return e in g?g[e]:e}function _(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function v(e,t,n,r){let s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,a.Wk)()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,i.SB)(r)},...s&&{trace:s}}}},85127:(e,t,n)=>{n.d(t,{RV:()=>d,gd:()=>a,qQ:()=>c,vk:()=>o,yF:()=>r});let r="?",i=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,a=0)=>{let o=[],u=e.split("\n");for(let e=n;e<u.length;e++){let n=u[e];n.length>1024&&(n=n.slice(0,1024));let r=i.test(n)?n.replace(i,"$1"):n;if(!r.includes("Error: ")){for(let e of t){let t=e(r);if(t){o.push(t);break}}if(o.length>=50+a)break}}var c=o.slice(a);if(!c.length)return[];let d=Array.from(c);return/sentryWrapped/.test(l(d).function||"")&&d.pop(),d.reverse(),s.test(l(d).function||"")&&(d.pop(),s.test(l(d).function||"")&&d.pop()),d.slice(0,50).map(e=>({...e,filename:e.filename||l(d).filename,function:e.function||r}))}}function o(e){return Array.isArray(e)?a(...e):e}function l(e){return e[e.length-1]||{}}let u="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return u;return e.name||u}catch{return u}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}},87136:(e,t,n)=>{n.d(t,{LE:()=>c,V7:()=>d,lu:()=>p});var r=n(94708),i=n(82928),s=n(56143),a=n(83294),o=n(77427),l=n(75561),u=n(8171);function c(e,t,n,r){let i=(0,a.Cj)(n),l={sent_at:new Date((0,o.Wk)()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:(0,s.SB)(t)}},u="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,a.h4)(l,[u])}function d(e,t,n,r){let i=(0,a.Cj)(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk);let o=(0,a.n2)(e,i,r,t);delete e.sdkProcessingMetadata;let l=[{type:s},e];return(0,a.h4)(o,[l])}function p(e,t){let n=(0,r.k1)(e[0]),c=t?.getDsn(),d=t?.getOptions().tunnel,p={sent_at:new Date((0,o.Wk)()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!d&&c&&{dsn:(0,s.SB)(c)}},{beforeSendSpan:h,ignoreSpans:f}=t?.getOptions()||{},m=f?.length?e.filter(e=>{let t=(0,u.et)(e);return!(0,l.e)({description:t.description,op:t.op,attributes:t.data},f)}):e,g=e.length-m.length;g&&t?.recordDroppedEvent("before_send","span",g);let y=h?e=>{let t=(0,u.et)(e),n=(0,i.S)(h)?t:h(t);return n||((0,u.xl)(),t)}:u.et,_=[];for(let e of m){let t=y(e);t&&_.push((0,a.y5)(t))}return(0,a.h4)(p,_)}},87248:(e,t,n)=>{n.d(t,{qd:()=>l,wg:()=>c,y7:()=>u});var r=n(3310),i=n(34936),s=n(87287),a=n(75532);let o={};function l(e){let t=o[e];if(t)return t;let n=a.j[e];if((0,r.a3)(n))return o[e]=n.bind(a.j);let l=a.j.document;if(l&&"function"==typeof l.createElement)try{let t=l.createElement("iframe");t.hidden=!0,l.head.appendChild(t);let r=t.contentWindow;r?.[e]&&(n=r[e]),l.head.removeChild(t)}catch(t){s.T&&i.Yz.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?o[e]=n.bind(a.j):n}function u(e){o[e]=void 0}function c(...e){return l("setTimeout")(...e)}},87287:(e,t,n)=>{n.d(t,{T:()=>r});let r=!1},91285:(e,t,n)=>{n.d(t,{O:()=>r});let r=globalThis},91301:(e,t,n)=>{let r,i;n.d(t,{dp:()=>ez,e3:()=>ej,Nt:()=>eB,Sx:()=>eU});var s=n(30020),a=n(97810),o=n(69537),l=n(34936),u=n(20200),c=n(75561),d=n(73721),p=n(8171),h=n(66383),f=n(91742),m=n(28768),g=n(1037),y=n(92962),_=n(78252);let v={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function b(e,t={}){let n,r=new Map,i=!1,S="externalFinish",w=!t.disableAutoFinish,E=[],{idleTimeout:k=v.idleTimeout,finalTimeout:T=v.finalTimeout,childSpanTimeout:x=v.childSpanTimeout,beforeSpanEnd:I,trimIdleSpanEndTimestamp:C=!0}=t,M=(0,s.KU)(),O=(0,s.o5)();if(!M||!(0,u.f)()){let e=new f.w({traceId:O.getPropagationContext().traceId});return(0,_.d)(e,O,(0,s.rm)()),e}let R=(0,p.Bk)(),A=function(e){let t=(0,y.Uk)(e);return(0,d.r)((0,s.o5)(),t),a.T&&l.Yz.log("[Tracing] Started span is an i
19dle span"),t}(e);function D(){n&&(clearTimeout(n),n=void 0)}function N(e){D(),n=setTimeout(()=>{!i&&0===r.size&&w&&(S="idleTimeout",A.end(e))},k)}function P(e){n=setTimeout(()=>{!i&&w&&(S="heartbeatFailed",A.end(e))},x)}function L(e){i=!0,r.clear(),E.forEach(e=>e()),(0,d.r)(O,R);let t=(0,p.et)(A),{start_timestamp:n}=t;if(!n)return;t.data[o.fs]||A.setAttribute(o.fs,S);let s=t.status;s&&"unknown"!==s||A.setStatus({code:g.F3}),l.Yz.log(`[Tracing] Idle span "${t.op}" finished`);let u=(0,p.xO)(A).filter(e=>e!==A),c=0;u.forEach(t=>{t.isRecording()&&(t.setStatus({code:g.TJ,message:"cancelled"}),t.end(e),a.T&&l.Yz.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=(0,p.et)(t),i=r<=e,s=n-r<=(T+k)/1e3;if(a.T){let e=JSON.stringify(t,void 0,2);i?s||l.Yz.log("[Tracing] Discarding span since it finished after idle span final timeout",e):l.Yz.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!s||!i)&&((0,p.VS)(A,t),c++)}),c>0&&A.setAttribute("sentry.idle_span_discarded_spans",c)}return A.end=new Proxy(A.end,{apply(e,t,n){if(I&&I(A),(0,f.h)(t))return;let[r,...i]=n,s=r||(0,h.zf)(),a=(0,p.cI)(s),o=(0,p.xO)(A).filter(e=>e!==A),l=(0,p.et)(A);if(!o.length||!C)return L(a),Reflect.apply(e,t,[a,...i]);let u=M.getOptions().ignoreSpans,d=o?.reduce((e,t)=>{let n=(0,p.et)(t);return!n.timestamp||u&&(0,c.e)({description:n.description,op:n.op,attributes:n.data},u)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),m=l.start_timestamp,g=Math.min(m?m+T/1e3:1/0,Math.max(m||-1/0,Math.min(a,d||1/0)));return L(g),Reflect.apply(e,t,[g,...i])}}),E.push(M.on("spanStart",e=>{var t;!(i||e===A||(0,p.et)(e).timestamp||e instanceof m.W&&e.isStandaloneSpan())&&(0,p.xO)(A).includes(e)&&(t=e.spanContext().spanId,D(),r.set(t,!0),P((0,h.zf)()+x/1e3))})),E.push(M.on("spanEnd",e=>{if(!i){var t;t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&N((0,h.zf)()+k/1e3)}})),E.push(M.on("idleSpanEnableAutoFinish",e=>{e===A&&(w=!0,N(),r.size&&P())})),t.disableAutoFinish||N(),setTimeout(()=>{i||(A.setStatus({code:g.TJ,message:"deadline_exceeded"}),S="finalTimeout",A.end())},T),A}var S=n(61762),w=n(94708),E=n(59525),k=n(64295);let T=!1;var x=n(91285),I=n(3191),C=n(23568),M=n(39466),O=n(37447),R=n(19057),A=n(78165),D=n(25871),N=n(73914),P=n(29995),L=n(75532),j=n(87287),$=n(77327),z=n(41868);function U(e){return"number"==typeof e&&isFinite(e)}function B(e,t,n,{...r}){let i=(0,p.et)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,y.hb)(e,()=>{let e=(0,y.Uk)({startTime:t,...r});return e&&e.end(n),e})}function F(e){let t,n=(0,s.KU)();if(!n)return;let{name:r,transaction:i,attributes:a,startTime:o}=e,{release:l,environment:u}=n.getOptions(),{userInfo:c}=n.getDataCollectionOptions(),d=n.getIntegrationByName("Replay"),p=d?.getReplayId(),h=(0,s.o5)(),f=h.getUser(),m=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=h.getScopeData().contexts.profile.profile_id}catch{}let g={release:l,environment:u,user:m||void 0,profile_id:t||void 0,replay_id:p||void 0,transaction:i,"user_agent.original":L.j.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...a};return(0,y.Uk)({name:r,attributes:g,startTime:o,experimental:{standalone:!0}})}function W(){return L.j.addEventListener&&L.j.performance}function q(e){return e/1e3}function H(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Y(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}let s=e=>{("pagehide"===e.type||L.j.document?.visibilityState==="hidden")&&i("pagehide")};(0,z.d)("visibilitychange",s,{capture:!0,once:!0}),(0,z.d)("pagehide",s,{capture:!0,once:!0});let a=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),a(),o())}),o=e.on("afterStartPageLoadSpan",e=>{n=e,o()})}function J(e){return null!=e&&e>0&&e<=6e4}function K(e){return e?(((0,h.k3)()||performance.timeOrigin)+e)/1e3:e}function G(e){let t={};if(void 0!=e.nextHopProtocol){let{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}
19return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,h.k3)()||W()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":K(e.redirectStart),"http.request.redirect_end":K(e.redirectEnd),"http.request.worker_start":K(e.workerStart),"http.request.fetch_start":K(e.fetchStart),"http.request.domain_lookup_start":K(e.domainLookupStart),"http.request.domain_lookup_end":K(e.domainLookupEnd),"http.request.connect_start":K(e.connectStart),"http.request.secure_connection_start":K(e.secureConnectionStart),"http.request.connection_end":K(e.connectEnd),"http.request.request_start":K(e.requestStart),"http.request.response_start":K(e.responseStart),"http.request.response_end":K(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}var V=n(34004),X=n(78234),Q=n(67716);let Z=0,ee={};function et(){r=void 0,i=void 0,ee={}}function en(e,t,n,r,i=n){var s;let a=t["secureConnection"===(s=n)?"connectEnd":"fetch"===s?"domainLookupStart":`${s}End`],l=t[`${n}Start`];l&&a&&B(e,r+q(l),r+q(a),{op:`browser.${i}`,name:t.name,attributes:{[o.JD]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}var er=n(79045),ei=n(15221),es=n(92134),ea=n(25438),eo=n(39942);let el=new WeakMap,eu=new WeakMap,ec=["text/event-stream","application/x-ndjson","application/stream+json"],ed=(0,ea._C)(()=>({name:"FetchStreamPerformance",setup(){(0,eo.B$)(e=>{if(e.response){let t=el.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=eu.get(e.response);n&&clearTimeout(n)}}}),(0,eo.ur)(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!ec.some(e=>t.startsWith(e)))return;let n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",i=(0,O.kg)(n),s=n.startsWith("data:")?(0,O.zm)(n):i?(0,O.CH)(i):n,a=(0,y.Uk)({name:`${r} ${s}`,startTime:e.endTimestamp,attributes:{url:(0,O.zm)(n),"http.method":r,type:"fetch",[o.uT]:"http.client.stream",[o.JD]:"auto.http.browser.stream"}});el.set(e.response,a);let l=setTimeout(()=>{a.isRecording()&&a.end()},9e4);eu.set(e.response,l)}})}}));var ep=n(78079);let eh=[],ef=new Map,em=new Map,eg={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},ey=({metric:e})=>{if(void 0==e.value)return;let t=q(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&eg[t.name]);if(!n)return;let{interactionId:r}=n,i=eg[n.name],a=q((0,h.k3)()+n.startTime),l=(0,p.Bk)(),u=l?(0,p.zU)(l):void 0,c=null!=r?ef.get(r):void 0,d=c?.span||u,f=d?(0,p.et)(d).description:(0,s.o5)().getScopeData().transactionName,m=F({name:c?.elementName||(0,P.H)(n.target),transaction:f,attributes:{[o.JD]:"auto.http.browser.inp",[o.uT]:`ui.interaction.${i}`,[o.jG]:n.duration},startTime:a});m&&(m.addEvent("inp",{[o.Sn]:"millisecond",[o.xc]:e.value}),m.end(a+t))};function e_(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:l,parentSpan:u,reportEvent:c,startTime:d,endTime:h}=e,f=(0,s.o5)().getScopeData().transactionName,m={[o.JD]:r,[o.uT]:n,[o.jG]:0,[`browser.web_vital.${i}.value`]:a,"sentry.transaction":f,"user_agent.original":L.j.navigator?.userAgent,...l};u&&(0,p.RD)(u).attributes?.[o.uT]==="pageload"&&(m["sentry.pageload.span_id"]=u.spanContext().spanId),c&&(m[`browser.web_vital.${i}.report_event`]=c);let g=(0,y.Uk)({name:t,attributes:m,startTime:d,parentSpan:u});g&&g.end(h??d)}let ev="WebVitals",eb=(0,ea._C)((e={})=>{let t=new Set(e.ignore??[]);return{name:ev,setup(n){let a=(0,S.K)(n),{enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c}=e._experiments??{},d=a||t.has("cls")?void 0:u||!1,f=a||t.has("lcp")?void 0:c||!1,m=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let a=W();if(a&&(0,h.k3)()){a.mark&&L.j.performance.mark("sentry-tracing-init");let u=t?function(e){let t,n=0;if(!H("largest-contentful-paint"))return;let r=(0,$.Pt)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&J(e.value)&&(n=e.value,t=r)},!0);Y(e,(e,i)=>{(function(e,t,n,r){if(!J(e))return;j.T&&l.Yz.log(`Sending LCP span (${e})`);let i=q(((0,h.k3)()||0)+(t?.startTime||0)),a=(0,s.o5)().getScopeData().transactionName,u=t?(0,P.H)(t.element):"Largest contentful paint",c={[o.JD]:"auto.http.browser.lcp",[o.uT]:"ui.webvital.lcp",[o.jG]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(c["lcp.element"]=(0,P.H)(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url),null!=t.loadTime&&(c["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(c["lcp.renderTime"]=t.renderTime),null!=t.size&&(c["lcp.size"]=t.size));let d=F({name:u,transaction:a,attributes:c,startTime:i});d&&(d.addEvent("lcp",{[o.Sn]:"millisecond",[o.xc]:e}),d.end(i))})(n,t,i,e),r()})}(n):!1===t?(0,$.Pt)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&J(e.value)&&(ee.lcp={value:e.value,unit:"millisecond"},r=t)},!0):void 0,c=e?function(e){let t,n=0;if(!H("layout-shift"))return;let r=(0,$.a9)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);Y(e,(e,i)=>{(function(e,t,n,r){j.T&&l.Yz.log(`Sending CLS span (${e})`);let i=t?q(((0,h.k3)()||0)+t.startTime):(0,h.zf)(),a=(0,s.o5)().getScopeData().transactionName,u=t?(0,P.H)(t.sources[0]?.node):"Layout shift",c={[o.JD]:"auto.http.browser.cls",[o.uT]:"ui.webvital.cls",[o.jG]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};
19t?.sources&&t.sources.forEach((e,t)=>{c[`cls.source.${t+1}`]=(0,P.H)(e.node)});let d=F({name:u,transaction:a,attributes:c,startTime:i});d&&(d.addEvent("cls",{[o.Sn]:"",[o.xc]:e}),d.end(i))})(n,t,i,e),r()})}(n):!1===e?(0,$.a9)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ee.cls={value:e.value,unit:""},i=t)},!0):void 0,d=(0,$.YG)(({metric:e})=>{e.entries[e.entries.length-1]&&(ee.ttfb={value:e.value,unit:"millisecond"})}),p=(0,$.wv)("paint",({entries:e})=>{let t=(0,Q.N)();for(let n of e){let e=n.startTime<t.firstHiddenTime;"first-paint"===n.name&&e&&(ee.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&e&&(ee.fcp={value:n.startTime,unit:"millisecond"})}});return()=>{d(),p(),u?.(),c?.()}}return()=>void 0}({recordClsStandaloneSpans:d,recordLcpStandaloneSpans:f,client:n}),g=new WeakSet;n.on("afterStartPageLoadSpan",e=>{g.add(e)}),n.on("spanEnd",e=>{g.delete(e)&&(m(),function(e,t){let n=(0,h.k3)();if(!W()?.getEntries||!n)return et();let{spanStreamingEnabled:s,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:o}=t,u=q(n);if("pageload"===(0,p.et)(e).op){if(function(e){let t=(0,X.z)(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(ee),s){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),j.T&&l.Yz.log("Setting web vital attribute",{[i]:n},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{ee[e]&&t(e,ee[e].value)}),ee["ttfb.requestTime"]&&t("ttfb.requestTime",ee["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var c,d;a||delete ee.cls,o||delete ee.lcp,Object.entries(ee).forEach(([t,n])=>{(0,A.X)(t,n.value,n.unit,e)}),c=e,d=t,r&&d.recordLcpOnPageloadSpan&&(r.element&&c.setAttribute("lcp.element",(0,P.H)(r.element)),r.id&&c.setAttribute("lcp.id",r.id),r.url&&c.setAttribute("lcp.url",r.url.trim().slice(0,200)),null!=r.loadTime&&c.setAttribute("lcp.loadTime",r.loadTime),null!=r.renderTime&&c.setAttribute("lcp.renderTime",r.renderTime),c.setAttribute("lcp.size",r.size)),i?.sources&&d.recordClsOnPageloadSpan&&i.sources.forEach((e,t)=>c.setAttribute(`cls.source.${t+1}`,(0,P.H)(e.node)))}e.setAttribute(s?"browser.performance.time_origin":"performance.timeOrigin",u),e.setAttribute(s?"browser.performance.navigation.activation_start":"performance.activationStart",(0,V.b)())}et()}(e,{recordClsOnPageloadSpan:!1===d,recordLcpOnPageloadSpan:!1===f,spanStreamingEnabled:a}))}),a?(t.has("lcp")||function(e){let t,n=0;if(!H("largest-contentful-paint"))return;let r=(0,$.Pt)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&J(e.value)&&(n=e.value,t=r)},!0);Y(e,(e,i,s)=>{(function(e,t,n,r){if(!J(e))return;j.T&&l.Yz.log(`Sending LCP span (${e})`);let i=(0,h.k3)()||0,s=q(i),a=q(i+(t?.startTime||0)),o=t?(0,P.H)(t.element):"Largest contentful paint",u={};t?.element&&(u["browser.web_vital.lcp.element"]=(0,P.H)(t.element)),t?.id&&(u["browser.web_vital.lcp.id"]=t.id),t?.url&&(u["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(u["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(u["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(u["browser.web_vital.lcp.size"]=t.size),e_({name:o,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:u,parentSpan:n,reportEvent:r,startTime:s,endTime:a})})(n,t,s,e),r()})}(n),t.has("cls")||function(e){let t,n=0;if(!H("layout-shift"))return;let r=(0,$.a9)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);Y(e,(e,i,s)=>{(function(e,t,n,r){j.T&&l.Yz.log(`Sending CLS span (${e})`);let i=t?q(((0,h.k3)()||0)+t.startTime):(0,h.zf)(),s=t?(0,P.H)(t.sources[0]?.node):"Layout shift",a={};t?.sources&&t.sources.forEach((e,t)=>{a[`browser.web_vital.cls.source.${t+1}`]=(0,P.H)(e.node)}),e_({name:s,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:a,parentSpan:n,reportEvent:r,startTime:i})})(n,t,s,e),r()})}(n),t.has("inp")||W()&&(0,h.k3)()&&(0,$.hT)(({metric:e})=>{if(null==e.value||q(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&eg[t.name]);t&&function(e,t){var n;j.T&&l.Yz.log(`Sending INP span (${e})`);let r=q((0,h.k3)()+t.startTime),i=q(e),a=eg[t.name],u=null!=(n=t.interactionId)?ef.get(n):void 0,c=(0,p.Bk)(),d=c?(0,p.zU)(c):void 0,f=u?.span||d,m=f?(0,p.RD)(f).name:(0,s.o5)().getScopeData().transactionName;e_({name:u?.elementName||(0,P.H)(t.target),op:`ui.interaction.${a}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[o.jG]:t.duration,"sentry.transaction":m},startTime:r,endTime:r+i,parentSpan:f})}(e.value,t)}
19)):t.has("inp")||function(){if(W()&&(0,h.k3)()){let e=(0,$.hT)(ey);()=>{e()}}}()},afterAllSetup(){t.has("inp")||function(){let e=Object.keys(eg);function t(e){let t=e.target;if(!t)return;let n=(0,P.H)(t),r=Math.round(e.timeStamp);if(em.set(r,n),em.size>50){let e=em.keys().next().value;void 0!==e&&em.delete(e)}}(0,ep.B)()&&e.forEach(e=>{L.j.addEventListener(e,t,{capture:!0,passive:!0})});let n=({entries:e})=>{let t=(0,p.Bk)(),n=t&&(0,p.zU)(t);e.forEach(e=>{if(!(0,$.tC)(e))return;let t=e.interactionId;if(null==t||ef.has(t))return;let r=e.target?(0,P.H)(e.target):function(e){let t=Math.round(e.startTime),n=em.get(t);if(!n)for(let e=-5;e<=5;e++){let r=em.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(eh.length>10){let e=eh.shift();ef.delete(e)}eh.push(t),ef.set(t,{span:n,elementName:r})})};(0,$.wv)("event",n),(0,$.wv)("first-input",n)}()}}}),eS="sentry_previous_trace";function ew(e){return 1===e.traceFlags}var eE=n(16752),ek=n(60492),eT=n(94360),ex=n(69287);function eI(e={}){let t=e.client||(0,s.KU)();if(!(0,ex.Ol)()||!t)return{};let n=(0,eT.EU)(),r=(0,ek.h)(n);if(r.getTraceData)return r.getTraceData(e);let i=e.scope||(0,s.o5)(),a=e.span||(0,p.Bk)(),o=(0,f.h)(a)&&!(0,u.f)(t.getOptions());if(!a&&(0,s.Bi)())return{};let c=a&&!o?(0,p.Qh)(a):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,C.TC)(t,r,n)}(i),d=a?(0,w.k1)(a):(0,w.ao)(t,i),h=(0,eE.De)(d);if(!C.MI.test(c))return l.Yz.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let m={"sentry-trace":c,baggage:h};return e.propagateTraceparent&&(m.traceparent=a&&!o?(0,p.G_)(a):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,C.Iy)(t,r,n)}(i)),m}function eC(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(eE.sv))}function eM(e,t,n,r){let i={url:(0,O.zm)(e),type:"fetch","http.method":n,[o.JD]:r,[o.uT]:"http.client"};return t&&((0,O.nt)(t)||(i["http.url"]=(0,O.zm)(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}var eO=n(2823),eR=n(7944);function eA(e){try{return new URL(e,es.jf.location.origin).href}catch{return}}function eD(e){try{return new Headers(e)}catch{return}}let eN={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function eP(e,t){let{url:n}=(0,p.et)(e).data;if(!n||"string"!=typeof n)return;let r=()=>void setTimeout(i);if((0,S.K)(t)){let t=e.end.bind(e);e.end=e=>{let n=e??(0,h.zf)(),s=!1,a=()=>{s||(s=!0,setTimeout(i),t(n),clearTimeout(o))};r=a;let o=setTimeout(a,300)}}let i=(0,$.wv)("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(n)&&(e.setAttributes(G(t)),r())})})}let eL=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function ej(){let e=es.jf.navigator;return!!e?.userAgent&&eL.test(e.userAgent)}let e$={...v,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...eN},ez=(e={})=>{let t,n;"enableElementTiming"in e&&(0,l.pq)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let r={name:void 0,source:void 0},i=es.jf.document,{enableInp:c,enableLongTask:d,enableLongAnimationFrame:m,_experiments:{enableInteractions:_,enableStandaloneClsSpans:v,enableStandaloneLcpSpans:j},beforeStartSpan:z,idleTimeout:F,finalTimeout:H,childSpanTimeout:Y,markBackgroundSpan:J,traceFetch:K,traceXHR:V,trackFetchStreamPerformance:Q,shouldCreateSpanForRequest:ee,enableHTTPTimings:et,ignoreResourceSpans:ea,ignorePerformanceApiSpans:el,instrumentPageLoad:eu,instrumentNavigation:ec,detectRedirects:ep,linkPreviousTrace:eh,consistentTraceSampling:ef,enableReportPageLoaded:em,onRequestSpanStart:eg,onRequestSpanEnd:ey}={...e$,...e},e_=ej();function eE(e,t,a=!0){var l,u;let c="pageload"===t.op,d=t.name,f=z?z(t):t,m=f.attributes||{};if(d!==f.name&&(m[o.i_]="custom",f.attributes=m),!a){let e=(0,h.lu)();(0,y.Uk)({...f,startTime:e}).end(e);return}r.name=f.name,r.source=m[o.i_];let g=b(f,{idleTimeout:F,finalTimeout:H,childSpanTimeout:Y,disableAutoFinish:c,beforeSpanEnd:t=>{var r,i;!function(e,t){let n=W(),r=(0,h.k3)();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:s,ignoreResourceSpans:a}=t,l=q(r),u=n.getEntries(),{op:c,start_timestamp:d}=(0,p.et)(e);
19u.slice(Z).forEach(t=>{let n=q(t.startTime),r=q(Math.max(0,t.duration));if("navigation"!==c||!d||!(l+n<d))switch(t.entryType){case"navigation":var i,u,p;i=e,u=t,p=l,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{en(i,u,e,p)}),en(i,u,"secureConnection",p,"TLS/SSL"),en(i,u,"fetch",p,"cache"),en(i,u,"domainLookup",p,"DNS"),function(e,t,n){let r=n+q(t.requestStart),i=n+q(t.responseEnd),s=n+q(t.responseStart);t.responseEnd&&(B(e,r,i,{op:"browser.request",name:t.name,attributes:{[o.JD]:"auto.ui.browser.metrics"}}),B(e,s,i,{op:"browser.response",name:t.name,attributes:{[o.JD]:"auto.ui.browser.metrics"}}))}(i,u,p);break;case"mark":case"paint":case"measure":!function(e,t,n,r,i,s){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,D.Xr)(t.name,s))return;let a=(0,X.z)(!1),l=i+Math.max(n,q(a?a.requestStart:0)),u=i+n,c=u+r,d={[o.JD]:"auto.resource.browser.metrics"};l!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=l),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&(0,N.sO)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,N.sO)(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(d,t),l<=c&&B(e,l,c,{name:t.name,op:t.entryType,attributes:d})}(e,t,n,r,l,s);break;case"resource":!function(e,t,n,r,i,s,a){var l,u;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(c))return;let d={[o.JD]:"auto.resource.browser.metrics"},p=(0,O.Dl)(n);p.protocol&&(d["url.scheme"]=p.protocol.split(":").pop()),p.host&&(d["server.address"]=p.host),d["url.same_origin"]=n.includes(L.j.location.origin),l=t,u=d,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEach(([e,t])=>{let n=l[e];null!=n&&("number"==typeof n&&n<0x7fffffff||"string"==typeof n)&&(u[t]=n)});let h={...d,...G(t)},f=s+r;B(e,f,f+i,{name:n.replace(L.j.location.origin,""),op:c,attributes:h})}(e,t,t.name,n,r,l,a)}}),Z=Math.max(u.length-1,0),function(e,t){let n=L.j.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),U(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):"pageload"===(0,p.et)(e).op&&(0,A.X)("connection.rtt",r.rtt,"millisecond"))),U(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),U(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,i)}(t,{ignoreResourceSpans:ea,ignorePerformanceApiSpans:el,spanStreamingEnabled:(0,S.K)(e)}),r=e,i=void 0,(0,R.my)(r,eq,i);let a=(0,s.o5)(),l=a.getPropagationContext();a.setPropagationContext({...l,traceId:g.spanContext().traceId,sampled:(0,p.pK)(g),dsc:(0,w.k1)(t)}),c&&(n=void 0)},trimIdleSpanEndTimestamp:!em});function _(){i&&["interactive","complete"].includes(i.readyState)&&(e.emit("idleSpanEnableAutoFinish",g),i.removeEventListener("readystatechange",_))}c&&em&&(n=g),l=e,u=g,(0,R.my)(l,eq,u),c&&!em&&i&&(i.addEventListener("readystatechange",_),_())}return{name:"BrowserTracing",setup(e){if(e_){ei.T&&l.Yz.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}function r(){let e=(0,p.Bk)(),t=e&&(0,p.zU)(e);if(t){let e="internal_error";a.T&&l.Yz.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:g.TJ,message:e})}}if(T||(T=!0,(0,E.L)(r),(0,k.r)(r)),m&&x.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,p.Bk)();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=q((0,h.k3)()+n.startTime),{start_timestamp:r,op:i}=(0,p.et)(t);if("navigation"===i&&r&&e<r)continue;let s=q(n.duration),a={[o.JD]:"auto.ui.browser.metrics"},{invoker:l,invokerType:u,sourceURL:c,sourceFunctionName:d,sourceCharPosition:f}=n.scripts[0];a["browser.script.invoker"]=l,a["browser.script.invoker_type"]=u,c&&(a["code.filepath"]=c),d&&(a["code.function"]=d),-1!==f&&(a["browser.script.source_char_position"]=f),B(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0}):d&&(0,$.wv)("longtask",({entries:e})=>{let t=(0,p.Bk)();if(!t)return;let{op:n,start_timestamp:r}=(0,p.et)(t);for(let i of e){let e=q((0,h.k3)()+i.startTime),s=q(i.duration);"navigation"===n&&r&&e<r||B(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[o.JD]:"auto.ui.browser.metrics"}})}}),_&&(0,$.wv)("event",({entries:e})=>{let t=(0,p.Bk)();if(t){for(let n of e)if("click"===n.name){let e=q((0,h.k3)()+n.startTime),r=q(n.duration),i={name:(0,P.H)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[o.JD]:"auto.ui.browser.metrics"}},s=(0,M.xE)(n.target);s&&(i.attributes["ui.component_name"]=s),B(t,e,e+r,i)}}}),ep&&i){let e=()=>{t=(0,h.zf)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function c(){let t=e[eq];t&&!(0,p.et)(t).timestamp&&(ei.T&&l.Yz.log(`[Tracing] Finishing current active span with op: ${(0,p.et)(t).op}`),t.setAttribute(o.fs,"cancelled"),t.end())}e.on("startNavigationSpan",(n,r)=>{if((0,s.KU)()!==e)return;if(r?.isRedirect){ei.T&&l.Yz.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),eE(e,{op:"navigation.redirect",...n},!1);return}t=void 0,c(),(0,s.rm)().setPropagationContext({traceId:(0,I.e)(),sampleRand:Math.random(),propagationSpanId:(0,u.f)()?void 0:(0,I.Z)()});let i=(0,s.o5)();i.setPropagationContext({traceId:(0,I.e)(),sampleRand:Math.random(),propagationSpanId:(0,u.f)()?void 0:(0,I.Z)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),eE(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,n={})=>
19{if((0,s.KU)()!==e)return;c();let r=n.sentryTrace||eF("sentry-trace")||eW("sentry-trace"),i=n.baggage||eF("baggage")||eW("baggage"),a=(0,C.kM)(r,i),o=(0,s.o5)();o.setPropagationContext(a),(0,u.f)()||(o.getPropagationContext().propagationSpanId=(0,I.Z)()),o.setSDKProcessingMetadata({normalizedRequest:(0,es.AP)()}),eE(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{em&&n&&(n.setAttribute(o.fs,"reportPageLoaded"),n.end())})},afterAllSetup(e){var n,i,a,d,m;let w;if(e_)return;e.addIntegration&&!e.getIntegrationByName?.(ev)&&e.addIntegration(eb({ignore:c?[]:["inp"],_experiments:{enableStandaloneClsSpans:v,enableStandaloneLcpSpans:j}}));let E=(0,M.$N)();if("off"!==eh&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r="session-storage"===t,i=r?function(){try{let e=es.jf.sessionStorage?.getItem(eS);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,p.zU)(e)!==e)return;let t=(0,s.o5)().getPropagationContext();i=function(e,t,n){let r=(0,p.et)(t),i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{let e=Number(r.data?.[o.sy]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return i;let s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(ei.T&&l.Yz.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:s,attributes:{[o.Lc]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${s.traceId}-${s.spanId}-${+!!ew(s)}`)),i)}(i,e,t),r&&function(e){try{es.jf.sessionStorage.setItem(eS,JSON.stringify(e))}catch(e){ei.T&&l.Yz.warn("Could not store previous trace in sessionStorage",e)}}(i)});let a=!0;n&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,s.o5)(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(ew(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=ew(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[o.Ef]:i.sampleRate}})}(e,{linkPreviousTrace:eh,consistentTraceSampling:ef}),es.jf.location){if(eu){let t=(0,h.k3)();eU(e,{name:es.jf.location.pathname,startTime:t?t/1e3:void 0,attributes:{[o.i_]:"url",[o.JD]:"auto.pageload.browser"}})}ec&&(0,er._)(({to:n,from:r})=>{if(void 0===r&&E?.indexOf(n)!==-1){E=void 0;return}E=void 0;let i=(0,O.kg)(n),s=e[eq],a=s&&ep&&function(e,t){let n=(0,p.et)(e),r=(0,h.lu)();return!(r-n.start_timestamp>1.5)&&(!t||!(r-t<=1.5))}(s,t);eB(e,{name:i?.pathname||es.jf.location.pathname,attributes:{[o.i_]:"url",[o.JD]:"auto.navigation.browser"}},{url:n,isRedirect:a})})}J&&(es.jf.document?es.jf.document.addEventListener("visibilitychange",()=>{let e=(0,p.Bk)();if(!e)return;let t=(0,p.zU)(e);if(es.jf.document.hidden&&t){let e="cancelled",{op:n,status:r}=(0,p.et)(t);ei.T&&l.Yz.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:g.TJ,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ei.T&&l.Yz.warn("[Tracing] Could not set up background tab detection due to lack of global document")),_&&(n=e,i=F,a=H,d=Y,m=r,es.jf.document&&addEventListener("click",()=>{let e="ui.action.click",t=function(e){return e[eq]}(n);if(t&&["navigation","pageload"].includes((0,p.et)(t).op)){ei.T&&l.Yz.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(w&&(w.setAttribute(o.fs,"interactionInterrupted"),w.end(),w=void 0),!m.name){ei.T&&l.Yz.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}w=b({name:m.name,op:e,attributes:{[o.i_]:m.source||"url"}},{idleTimeout:i,finalTimeout:a,childSpanTimeout:d})},{capture:!0})),function(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:l,onRequestSpanStart:c,onRequestSpanEnd:d}={...eN,...t},h="function"==typeof i?i:e=>!0,m=e=>(function(e,t){let n=(0,M.$N)();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let s=r.origin===i;return t?(0,D.Xr)(r.toString(),t)||s&&(0,D.Xr)(r.pathname,t):s}{let n=!!e.match(/^\/(?!\/)/);return t?(0,D.Xr)(e,t):n}})(e,l),_={},v=e.getOptions().propagateTraceparent;n&&(0,eo.ur)(t=>{let n=function(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,l=(0,u.f)()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(l&&(function(e,t){if(t.response){(0,g.N8)(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:g.TJ,message:"internal_error"});e.end()}(n,e),function(e,t,n){let r="object"==typeof n&&null!==n?n.onRequestSpanEnd:void 0;r?.(e,{headers:t.response?.headers,error:t.error})}(n,e,i)),delete r[t]);return}let{spanOrigin:c="auto.http.browser",propagateTraceparent:d=!1}="object"==typeof i?i:{spanOrigin:i},h=(0,s.KU)(),m=!!(0,p.Bk)()||!!h&&(0,S.K)(h),_=l&&m?(0,y.Uk)(function(e,t,n){if(e.startsWith("data:")){let r=(0,O.zm)(e);return{name:`${t} ${r}`,attributes:eM(e,void 0,t,n)}}let r=(0,O.kg)(e),i=r?(0,O.CH)(r):e;return{name:`${t} ${i}`,attributes:eM(e,r,t,n)}}(o,a,c)):new f.w;if(l&&!m&&h?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=_.spanContext().spanId,r[_.spanContext().spanId]=_,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){var i,s;let a=eI({span:n,propagateTraceparent:r}),o=a["sentry-trace"],l=a.baggage,u=a.traceparent;if(!o)return;let c=t.headers||((0,N.ks)(e)?e.headers:void 0);if(!c)return{...a};if(i=c,"undefined"!=typeof Headers&&(0,N.tH)(i,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",o),r&&u&&!e.get("traceparent")&&e.set("traceparent",u),l){let t=e.get("baggage");t?eC(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(s=c)&&s.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),r&&u&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",u]);let t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&eC(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],s=n&&(Array.isArray(n)?n.find(e=>eC(e)):eC(n));l&&!s&&i.push(l);let a=Object.assign({},c,{"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0});return r&&u&&!t&&(a.traceparent=u),a}}(t,n,(0,u.f)()&&m?_:void 0,d);r&&(e.args[1]=n,n.headers=r)}if(h){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};h.emit("beforeOutgoingRequestSpan",_,t)}return _}(t,h,m,_,{propagateTraceparent:v,onRequestSpanEnd:d});if(n){let r=eA(t.fetchData.url),i=r?(0,O.Dl)(r).host:void 0;n.setAttributes({"http.url":r?(0,O.zm)(r):void 0,"server.address":i}),a&&eP(n,e),c?.(n,{headers:t.headers})}}),r&&(0,eO.Mn)(t=>{let n=function(e,t,n,r,i,a){let l=e.xhr,c=l?.[eO.Er];if(!l||l.__sentry_own_request__||!c)return;let{url:d,method:h}=c,m=(0,u.f)()&&t(d);if(e.endTimestamp){let t=l.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(m&&void 0!==c.status_code&&((0,g.N8)(n,c.status_code),n.end(),a?.(n,{headers:eD((0,eR.ti)(l)),error:e.error})),delete r[t]);return}let _=eA(d),v=_?(0,O.Dl)(_):(0,O.Dl)(d),b=(0,O.zm)((0,O.f)(d)),w=(0,s.KU)(),E=!!(0,p.Bk)()||!!w&&(0,S.K)(w),k=m&&E?(0,y.Uk)({name:`${h} ${b}`,attributes:{url:(0,O.zm)(d),type:"xhr","http.method":h,"http.url":_?(0,O.zm)(_):void 0,"server.address":v?.host,[o.JD]:"auto.http.browser",[o.uT]:"http.client",...v?.search&&{"http.query":v?.search},...v?.hash&&{"http.fragment":v?.hash}}}):new f.w;return m&&!E&&w?.recordDroppedEvent("no_parent_span","span"),l.__sentry_xhr_span_id__=k.spanContext().spanId,r[l.__sentry_xhr_span_id__]=k,n(d)&&function(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:s}=eI({span:t,propagateTraceparent:n});r&&function(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,i,s)}(l,(0,u.f)()&&E?k:void 0,i),w&&w.emit("beforeOutgoingRequestSpan",k,e),k}(t,h,m,_,v,d);n&&(a&&eP(n,e),c?.(n,{headers:eD(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:K,traceXHR:V,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:ee,enableHTTPTimings:et,onRequestSpanStart:eg,onRequestSpanEnd:ey}),Q&&e.addIntegration(ed())}}};
19function eU(e,t,n){e.emit("startPageLoadSpan",t,n),(0,s.o5)().setTransactionName(t.name);let r=e[eq];return r&&e.emit("afterStartPageLoadSpan",r),r}function eB(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});let a=(0,s.o5)();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...(0,es.AP)(),url:r}}),e[eq]}function eF(e){let t=es.jf.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function eW(e){let t=es.jf.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}let eq="_sentry_idleSpan"},91742:(e,t,n)=>{n.d(t,{h:()=>l,w:()=>o});var r=n(19057),i=n(3191),s=n(8171);let a=Symbol.for("sentry.nonRecordingSpan");class o{constructor(e={}){this._traceId=e.traceId||(0,i.e)(),this._spanId=e.spanId||(0,i.Z)(),this.dropReason=e.dropReason,(0,r.my)(this,a,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:s.CC}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function l(e){return!!e&&!0===e[a]}},92134:(e,t,n)=>{n.d(t,{AP:()=>p,LV:()=>function e(t,n={}){if("function"!=typeof t)return t;try{if(Object.prototype.hasOwnProperty.call(t,"__sentry_wrapped__")){let e=t.__sentry_wrapped__;if("function"==typeof e)return e;return t}if((0,i.sp)(t))return t}catch{return t}let l=function(...i){r.O._sentryWrappedDepth=(r.O._sentryWrappedDepth||0)+1;try{let r=i.map(t=>e(t,n));return t.apply(this,r)}catch(e){throw c++,setTimeout(()=>{c--}),(0,s.v4)(t=>{t.addEventProcessor(e=>(n.mechanism&&((0,a.gO)(e,void 0,void 0),(0,a.M6)(e,n.mechanism)),e.extra={...e.extra,arguments:i},e)),(0,o.Cp)(e)}),e}finally{r.O._sentryWrappedDepth=(r.O._sentryWrappedDepth||0)-1}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(l[e]=t[e])}catch{}(0,i.pO)(l,t),(0,i.my)(t,"__sentry_wrapped__",l);try{Object.getOwnPropertyDescriptor(l,"name").configurable&&Object.defineProperty(l,"name",{get:()=>t.name})}catch{}return l},jN:()=>d,jf:()=>u});var r=n(91285),i=n(19057),s=n(30020),a=n(95266),o=n(69287),l=n(39466);let u=r.O,c=0;function d(){return c>0}function p(){let e=(0,l.$N)(),{referrer:t}=u.document||{},{userAgent:n}=u.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}},92962:(e,t,n)=>{n.d(t,{Uk:()=>k,Lk:()=>E,hb:()=>T});var r=n(60492),i=n(94360),s=n(30020),a=n(97810),o=n(69537),l=n(34936),u=n(43856),c=n(73914),d=n(20200),p=n(75561),h=n(61762),f=n(23609),m=n(73721),g=n(8171),y=n(94708),_=n(68408),v=n(91742),b=n(28768),S=n(1037),w=n(78252);function E(e,t){let n=M();if(n.startSpan)return n.startSpan(e,t);let r=C(e),{forceTransaction:i,parentSpan:a,scope:o}=e,l=o?.clone();return(0,s.v4)(l,()=>{var n;return(void 0!==(n=a)?e=>T(n,e):e=>e())(()=>{var n;let o=(0,s.o5)(),l=R(o,a),d=(0,s.KU)(),p=e.onlyIfParent&&!l?x(o,d):I({parentSpan:l,spanArguments:r,forceTransaction:i,scope:o});return n=p,(0,v.h)(n)&&"ignored"===n.dropReason&&l||(0,m.r)(o,p),function(e,t,n=()=>{},r=()=>{}){var i,s,a,o;let l;try{l=e()}catch(e){throw t(e),n(),e}return i=l,s=t,a=n,o=r,(0,c.Qg)(i)?(0,u.i)(i,e=>{a(),o(e)},e=>{s(e),a()}):(a(),o(i),i)}(()=>t(p),()=>{let{status:e}=(0,g.et)(p);p.isRecording()&&(!e||"ok"===e)&&p.setStatus({code:S.TJ,message:"internal_error"})},()=>{p.end()})})})}function k(e){let t=M();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=C(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>(0,s.v4)(e.scope,t):void 0!==i?e=>T(i,e):e=>e())(()=>{let t=(0,s.o5)(),a=R(t,i),o=(0,s.KU)();return e.onlyIfParent&&!a?x(t,o):I({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function T(e,t){let n=M();return n.withActiveSpan?n.withActiveSpan(e,t):(0,s.v4)(n=>((0,m.r)(n,e||void 0),t(n)))}function x(e,t){t?.recordDroppedEvent("no_parent_span","span");let n=new v.w({traceId:e.getPropagationContext().traceId});return(0,w.d)(n,e,(0,s.rm)()),n}function I({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i,a=(0,s.rm)();if(!(0,d.f)()){let t={...a.getPropagationContext(),...r.getPropagationContext()},i=e?e.spanContext().traceId:t.traceId,s=new v.w({traceId:i});return e&&!n&&(0,g.Hu)(e,s),(0,w.d)(s,r,a),s}let l=(0,s.KU)();if(function(e,t){let n=e?.getOptions().ignoreSpans;return!!e&&!!(0,h.K)(e)&&!!n?.length&&(0,p.e)({description:t.name||"",op:t.attributes?.[o.uT]||t.op,attributes:t.attributes},n)}(l,t)){A(r)||l?.recordDroppedEvent("ignored","span");
19let t=new v.w({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return(0,w.d)(t,r,a),t}if(e&&!n)i=function(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=A(t),l=!o&&(0,g.pK)(e),u=l?new b.W({...n,parentSpanId:i,traceId:a,sampled:l}):new v.w({traceId:a});(0,g.Hu)(e,u),(0,w.d)(u,t,r);let c=(0,s.KU)();return c&&((0,h.K)(c)&&(0,v.h)(u)&&((0,v.h)(e)&&e.dropReason?(u.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,"span")):o||(u.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span"))),c.emit("spanStart",u),n.endTimestamp&&(c.emit("spanEnd",u),c.emit("afterSpanEnd",u))),u}(e,r,t,a),(0,g.Hu)(e,i);else if(e){let n=(0,y.k1)(e),{traceId:s,spanId:o}=e.spanContext(),l=(0,g.pK)(e);i=O({traceId:s,parentSpanId:o,...t},r,a,l),(0,y.LZ)(i,n)}else{let{traceId:e,dsc:n,parentSpanId:s,sampled:o}={...a.getPropagationContext(),...r.getPropagationContext()};i=O({traceId:e,parentSpanId:s,...t},r,a,o),n&&(0,y.LZ)(i,n)}return(0,_.z)(i),i}function C(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=(0,g.cI)(e.startTime),delete n.startTime,n}return t}function M(){let e=(0,i.EU)();return(0,r.h)(e)}function O(e,t,n,r){let i=(0,s.KU)(),u=i?.getOptions()||{},{name:c=""}=e,p={spanAttributes:{...e.attributes},spanName:c,parentSampled:r};i?.emit("beforeSampling",p,{decision:!1});let m=p.parentSampled??r,g=p.spanAttributes,y=t.getPropagationContext(),_=A(t),[v,S,E]=_?[!1]:function(e,t,n){let r,i;if(!(0,d.f)(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let s=(0,f.i)(r);if(void 0===s)return a.T&&l.Yz.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!s)return a.T&&l.Yz.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,i];let o=n<s;return!o&&a.T&&l.Yz.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[o,s,i]}(u,{name:c,parentSampled:m,attributes:g,parentSampleRate:(0,f.i)(y.dsc?.sample_rate)},y.sampleRand),k=new b.W({...e,attributes:{[o.i_]:"custom",[o.sy]:void 0!==S&&E?S:void 0,...g},sampled:v});return v||!i||_||(a.T&&l.Yz.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",(0,h.K)(i)?"span":"transaction")),(0,w.d)(k,t,n),i&&i.emit("spanStart",k),k}function R(e,t){if(t)return t;if(null===t)return;let n=(0,m.f)(e);if(!n)return;let r=(0,s.KU)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,g.zU)(n):n}function A(e){return!0===e.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}},94360:(e,t,n)=>{n.d(t,{BY:()=>o,EU:()=>s,Se:()=>a});var r=n(31246),i=n(91285);function s(){return a(i.O),i.O}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.M,t[r.M]=t[r.M]||{}}function o(e,t,n=i.O){let s=n.__SENTRY__=n.__SENTRY__||{},a=s[r.M]=s[r.M]||{};return a[e]||(a[e]=t())}},94708:(e,t,n)=>{n.d(t,{LZ:()=>f,ao:()=>g,k1:()=>y});var r=n(37085),i=n(30020),s=n(69537),a=n(16752),o=n(56143),l=n(20200),u=n(19057),c=n(8171),d=n(91742),p=n(78252);let h="_frozenDsc";function f(e,t){(0,u.my)(e,h,t)}function m(e,t){let n=t.getOptions(),{publicKey:i}=t.getDsn()||{},s={environment:n.environment||r.U,release:n.release,public_key:i,trace_id:e,org_id:(0,o.ul)(t)};return t.emit("createDsc",s),s}function g(e,t){let n=t.getPropagationContext();return n.dsc||m(n.traceId,e)}function y(e){let t=(0,i.KU)();if(!t)return{};let n=(0,c.zU)(e),r=(0,c.et)(n),o=r.data,u=n.spanContext().traceState,f=u?.get("sentry.sample_rate")??o[s.sy]??o[s.Ef];function y(e){return("number"==typeof f||"string"==typeof f)&&(e.sample_rate=`${f}`),e}let _=n[h];if(_)return y(_);if((0,d.h)(n)&&!(0,l.f)(t.getOptions())){let e=(0,p.L)(n).scope;if(e)return y({...g(t,e)})}let v=u?.get("sentry.dsc"),b=v&&(0,a.yD)(v);if(b)return y(b);let S=m(e.spanContext().traceId,t),w=o[s.i_]??o["sentry.span.source"],E=r.description;return"url"!==w&&E&&(S.transaction=E),(0,l.f)()&&(S.sampled=String((0,c.pK)(n)),S.sample_rand=u?.get("sentry.sample_rand")??(0,p.L)(n).scope?.getPropagationContext().sampleRand.toString()),y(S),t.emit("createDsc",S,n),S}},95266:(e,t,n)=>{let r;n.d(t,{$X:()=>u,GR:()=>p,M6:()=>d,eJ:()=>
19o,gO:()=>c});var i=n(19057),s=n(77427),a=n(91285);function o(e=function(){let e=a.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,s.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,e=>(e^(15&16*(0,s.hY)())>>e/4).toString(16))}function l(e){return e.exception?.values?.[0]}function u(e){let{message:t,event_id:n}=e;if(t)return t;let r=l(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function c(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function d(e,t){let n=l(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}function p(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,i.my)(e,"__sentry_captured__",!0)}catch{}return!1}},97810:(e,t,n)=>{n.d(t,{T:()=>r});let r=!1},99742:(e,t,n)=>{n.d(t,{h:()=>function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}})}}]);

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.