PageSourceSearch

https://tarheelblue.com/_next/static/chunks/bce72d85-cdda9fa51e9efea3.js

js tarheelblue.com collected 2026-10-02 12:56:51 UTC 123,686 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cc5b7338-b155-4e2e-99d9-783387e7639f",e._sentryDebugIdIdentifier="sentry-dbid-cc5b7338-b155-4e2e-99d9-783387e7639f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3629],{83123:(e,t,r)=>{r.d(t,{w:()=>r0});var n,i,a,s,o,l=r(61971),u=r(45493),c=r(19954),d=r(23858),h=r(78316),p=r(43261),f=r(40618),m=r(92953),v=r(36493),y=(r(29700),r(51516)),g=r(3475),S=r(31847),_=r(37244),b=r(58637),w=r(21262),k=r(80982),E=r(29588),M=r(77671),I=r(49710),C=r(58804),R=r(24468),T=r(13920),x=r(59898),O=r(39378),A=r(84858),D=r(30518),N=r(96621),L=r(21879),P=r(1259);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach(function(t){(0,u.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var U=c.O,z="sentryReplaySession",W="Unable to send Replay",j=Object.defineProperty,H=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?j(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},q=((tk=q||{})[tk.Document=0]="Document",tk[tk.DocumentType=1]="DocumentType",tk[tk.Element=2]="Element",tk[tk.Text=3]="Text",tk[tk.CDATA=4]="CDATA",tk[tk.Comment=5]="Comment",tk);function K(e){var t=null==e?void 0:e.host;return(null==t?void 0:t.shadowRoot)===e}function V(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function J(e){try{var t,r=e.rules||e.cssRules;return r?((t=Array.from(r,G).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 G(e){var t;if("styleSheet"in e)try{t=J(e.styleSheet)||function(e){var{cssText:t}=e;if(t.split('"').length<3)return t;var r=["@import","url(".concat(JSON.stringify(e.href),")")];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer(".concat(e.layerName,")")),e.supportsText&&r.push("supports(".concat(e.supportsText,")")),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){var r=e.cssText,n=e.selectorText.includes(":"),i="string"==typeof e.style.all&&e.style.all;if(i&&(r=function(e){for(var t="",r=0;r<e.style.length;r++){var n=e.style,i=n[r],a=n.getPropertyPriority(i);t+="".concat(i,":").concat(n.getPropertyValue(i)).concat(a?" !important":"",";")}return"".concat(e.selectorText," { ").concat(t," }")}(e)),n&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||i)return r}return t||e.cssText}class Y{constructor(){H(this,"idNodeMap",new Map),H(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-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){var t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function X(e){var{maskInputOptions:t,tagName:r,type:n}=e;return"OPTION"===r&&(r="SELECT"),!!(t[r.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===r&&!n&&t.text)}function $(e){var{isMasked:t,element:r,value:n,maskInputFn:i}=e,a=n||"";return t?(i&&(a=i(a,r)),"*".repeat(a.length)):a}function Q(e){return e.toLowerCase()}function Z(e){return e.toUpperCase()}var ee="__rrweb_original__";function et(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Q(t):null}function er(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function en(e,t){try{n=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,n,i=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(r=null==i?void 0:i[1])?r:null}var ei={};function ea(e){var t=ei[e];if(t)return t;var r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);var a=i.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(i)}catch(e){}return ei[e]=n.bind(window)}function es(){return ea("setTimeout")(...arguments)}function eo(){return ea("clearTimeout")(...arguments)}function el(e){try{return e.contentDocument}catch(e){}}var eu=1,ec=RegExp("[^a-z0-9-_:]");function ed(){return eu++}var eh=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ep=/^(?:[a-z+]+:)?\/\//i,ef=/^www\..*/i,em=/^(data:)([^,]*),(.*)/i;function ev(e,t){return(e||"").replace(eh,(e,r,n,i,a,s)=>{var o=n||a||s,l=r||i||"";if(!o)return e;
1if(ep.test(o)||ef.test(o)||em.test(o))return"url(".concat(l).concat(o).concat(l,")");if("/"===o[0])return"url(".concat(l).concat((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o).concat(l,")");var u=t.split("/"),c=o.split("/");for(var d of(u.pop(),c))if("."===d)continue;else".."===d?u.pop():u.push(d);return"url(".concat(l).concat(u.join("/")).concat(l,")")})}var ey=/^[^ \t\n\r\u000c]+/,eg=/^[, \t\n\r\u000c]+/,eS=new WeakMap;function e_(e,t){return t&&""!==t.trim()?eb(e,t):t}function eb(e,t){var r=eS.get(e);if(r||(r=e.createElement("a"),eS.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ew(e,t,r,n,i,a,s){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return e_(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return e_(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(eg),!(r>=t.length);){var a=n(ey);if(","===a.slice(-1))a=e_(e,a.substring(0,a.length-1)),i.push(a);else{var s="";a=e_(e,a);for(var o=!1;;){var l=t.charAt(r);if(""===l){i.push((a+s).trim());break}if(o)")"===l&&(o=!1);else if(","===l){r+=1,i.push((a+s).trim());break}else"("===l&&(o=!0);s+=l,r+=1}}}return i.join(", ")}(e,n);if("style"===r){var o=ev(n,eb(e));return s&&s.size>0&&(o=function(e,t){if(!e||0===t.size)return e;try{var r=e.split(";"),n=[];for(var i of r)if(i=i.trim()){var a=i.indexOf(":");if(-1===a){n.push(i);continue}var s=i.slice(0,a).trim();t.has(s)||n.push(i)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(o,s)),o}else if("object"===t&&"data"===r)return e_(e,n);return"function"==typeof a?a(r,n,i):n}function ek(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eE(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:eE(e.parentNode,t,r,n+1)}function eM(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(".".concat(e)))return!0}else if(function(e,t){for(var r=e.classList.length;r--;){var n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch(e){return!1}}}function eI(e,t,r,n,i,a){try{var s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){var o=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(o))return!0}var l=-1,u=-1;if(a){if((u=eE(s,eM(n,i)))<0)return!0;l=eE(s,eM(t,r),u>=0?u:1/0)}else{if((l=eE(s,eM(t,r)))<0)return!1;u=eE(s,eM(n,i),l>=0?l:1/0)}return l>=0?!(u>=0)||l<=u:!(u>=0)&&!!a}catch(e){}return!!a}function eC(e){return null==e?"":e.toLowerCase()}function eR(e,t){var r,{doc:n,mirror:i,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:v,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:E,iframeLoadTimeout:M=5e3,onBlockedImageLoad:I,onStylesheetLoad:C,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:x=!1,ignoreCSSAttributes:O}=t,{preserveWhiteSpace:A=!0}=t,D=function(e,t){var{doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:m,maskInputFn:v,dataURLOptions:y={},inlineImages:g,recordCanvas:S,keepIframeSrcFn:_,newlyAddedElement:b=!1,ignoreCSSAttributes:w}=t,k=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:q.Document,childNodes:[],compatMode:e.compatMode};return{type:q.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:q.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,{doc:n,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:o,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:v,maskTextClass:y,unmaskTextClass:g,maskTextSelector:S,unmaskTextSelector:_,ignoreCSSAttributes:b}=t,w=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var i=e.classList.length;i--;){var a=e.classList[i];if(t.test(a))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,a,s),k=function(e){if(e instanceof HTMLFormElement)return"form";var t=Q(e.tagName);return ec.test(t)?"div":t}(e),E={},M=e.attributes.length,I=0;I<M;I++){var C=e.attributes[I];C.name&&!ek(k,C.name,C.value)&&(E[C.name]=ew(n,k,Q(C.name),C.value,e,u,b))}if("link"===k&&o){var R=Array.from(n.styleSheets).find(t=>t.href===e.href),T=null;R&&(T=J(R)),T&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=ev(T,R.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var x=J(e.sheet);x&&(E._cssText=ev(x,eb(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){var O=et(e),A=er(e,Z(k),O),D=e.checked;if("submit"!==O&&"button"!==O&&A){var N=eI(e,y,S,g,_,X({type:O,tagName:Z(k),maskInputOptions:l}));E.value=$({isMasked:N,element:e,value:A,maskInputFn:c})}D&&(E.checked=D)}if("option"===k&&(e.selected&&!l.select?E.selected=!0:delete E.selected),"canvas"===k&&p){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData;
1if(new Uint32Array((ee in i?i[ee]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(E.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){var L=e.toDataURL(d.type,d.quality),P=n.createElement("canvas");P.width=e.width,P.height=e.height,L!==P.toDataURL(d.type,d.quality)&&(E.rr_dataURL=L)}}if("img"===k&&h){tT||(tx=(tT=n.createElement("canvas")).getContext("2d"));var F=e.currentSrc||e.getAttribute("src")||"<unknown-src>",B=e.crossOrigin,U=()=>{e.removeEventListener("load",U);try{tT.width=e.naturalWidth,tT.height=e.naturalHeight,tx.drawImage(e,0,0),E.rr_dataURL=tT.toDataURL(d.type,d.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?U():e.addEventListener("load",U);return}console.warn("Cannot inline img src=".concat(F,"! Error: ").concat(t))}"anonymous"===e.crossOrigin&&(B?E.crossOrigin=B:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?U():e.addEventListener("load",U)}if(("audio"===k||"video"===k)&&(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),w){var{width:z,height:W}=e.getBoundingClientRect();E={class:E.class,rr_width:"".concat(z,"px"),rr_height:"".concat(W,"px")}}"iframe"!==k||f(E.src)||(w||el(e)||(E.rr_src=E.src),delete E.src);try{customElements.get(k)&&(r=!0)}catch(e){}return{type:q.Element,tagName:k,attributes:E,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:v,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:f,maskInputFn:v,dataURLOptions:y,inlineImages:g,recordCanvas:S,keepIframeSrcFn:_,newlyAddedElement:b,rootId:k,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,ignoreCSSAttributes:w});case e.TEXT_NODE:return function(e,t){var r,{maskAllText:n,maskTextClass:i,unmaskTextClass:a,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:l,maskInputOptions:u,maskInputFn:c,rootId:d}=t,h=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===h||void 0,m="SCRIPT"===h||void 0,v="TEXTAREA"===h||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||null!=(r=e.parentNode.sheet)&&r.cssRules&&(p=J(e.parentNode.sheet))}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(t),e)}p=ev(p,eb(t.doc))}m&&(p="SCRIPT_PLACEHOLDER");var y=eI(e,i,s,a,o,n);return f||m||v||!p||!y||(p=l?l(p,e.parentElement):p.replace(/[\S]/g,"*")),v&&p&&(u.textarea||y)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===h&&p&&(p=$({isMasked:eI(e,i,s,a,o,X({type:null,tagName:h,maskInputOptions:u})),element:e,value:p,maskInputFn:c})),{type:q.Text,textContent:p||"",isStyle:f,rootId:d}}(e,{doc:r,maskAllText:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:m,maskInputOptions:f,maskInputFn:v,rootId:k});case e.CDATA_SECTION_NODE:return{type:q.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:q.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:n,mirror:i,blockClass:a,blockSelector:s,maskAllText:l,unblockSelector:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:v,maskTextFn:y,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:w,keepIframeSrcFn:T,newlyAddedElement:x,ignoreCSSAttributes:O});if(!D)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===q.Comment)return!0;if(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"===en(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eC(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eC(e.attributes.name)||"icon"===eC(e.attributes.rel)||"apple-touch-icon"===eC(e.attributes.rel)||"shortcut icon"===eC(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eC(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eC(e.attributes.property).match(/^(og|twitter|fb):/)||eC(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eC(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eC(e.attributes.name)||"googlebot"===eC(e.attributes.name)||"bingbot"===eC(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eC(e.attributes.name)||"generator"===eC(e.attributes.name)||"framework"===eC(e.attributes.name)||"publisher"===eC(e.attributes.name)||"progid"===eC(e.attributes.name)||eC(e.attributes.property).match(/^article:/)||eC(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eC(e.attributes.name)||"yandex-verification"===eC(e.attributes.name)||"csrf-token"===eC(e.attributes.name)||"p:domain_verify"===eC(e.attributes.name)||"verify-v1"===eC(e.attributes.name)||"verification"===eC(e.attributes.name)||"shopify-checkout-api-token"===eC(e.attributes.name)))return!0}}return!1}(D,S)&&(A||D.type!==q.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?ed():-2;var N=Object.assign(D,{id:r});if(i.add(e,N),-2===r)return null;
1k&&k(e);var L=!p;if(N.type===q.Element){L=L&&!N.needBlock;var P=e.shadowRoot;P&&V(P)&&(N.isShadowHost=!0)}if((N.type===q.Document||N.type===q.Element)&&L){S.headWhitespace&&N.type===q.Element&&"head"===N.tagName&&(A=!1);var F={doc:n,mirror:i,blockClass:a,blockSelector:s,maskAllText:l,unblockSelector:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,skipChild:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:v,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:A,onSerialize:k,onIframeLoad:E,iframeLoadTimeout:M,onBlockedImageLoad:I,onStylesheetLoad:C,stylesheetLoadTimeout:R,keepIframeSrcFn:T,ignoreCSSAttributes:O};for(var B of e.childNodes?Array.from(e.childNodes):[]){var U=eR(B,F);U&&N.childNodes.push(U)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(var z of Array.from(e.shadowRoot.childNodes)){var W=eR(z,F);W&&(V(e.shadowRoot)&&(W.isShadow=!0),N.childNodes.push(W))}}if(e.parentNode&&K(e.parentNode)&&V(e.parentNode)&&(N.isShadow=!0),N.type!==q.Element||"iframe"!==N.tagName||N.needBlock||function(e,t,r){var n,i=e.contentWindow;if(i){var a=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){var s=es(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{eo(s),a=!0,t()});return}var o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return es(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,()=>{var t=el(e);if(t&&E){var r=eR(t,{doc:t,mirror:i,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:v,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:A,onSerialize:k,onIframeLoad:E,iframeLoadTimeout:M,onStylesheetLoad:C,stylesheetLoadTimeout:R,keepIframeSrcFn:T,ignoreCSSAttributes:O});r&&E(e,r)}},M),N.type===q.Element&&"img"===N.tagName&&!e.complete&&N.needBlock){var j=()=>{if(e.isConnected&&!e.complete&&I)try{var t=e.getBoundingClientRect();t.width>0&&t.height>0&&I(e,N,t)}catch(e){}e.removeEventListener("load",j)};e.isConnected&&e.addEventListener("load",j)}return N.type===q.Element&&"link"===N.tagName&&"string"==typeof N.attributes.rel&&("stylesheet"===N.attributes.rel||"preload"===N.attributes.rel&&"string"==typeof N.attributes.href&&"css"===en(N.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var a=es(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{eo(a),i=!0,t()})}}(e,()=>{if(C){var t=eR(e,{doc:n,mirror:i,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:v,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:A,onSerialize:k,onIframeLoad:E,iframeLoadTimeout:M,onStylesheetLoad:C,stylesheetLoadTimeout:R,keepIframeSrcFn:T,ignoreCSSAttributes:O});t&&C(e,t)}},R),N.type===q.Element&&delete N.needBlock,N}function eT(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}var ex="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.",eO={map:{},getId:()=>(console.error(ex),-1),getNode:()=>(console.error(ex),null),removeNodeFromMap(){console.error(ex)},has:()=>(console.error(ex),!1),reset(){console.error(ex)}};function eA(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,i=0;return function(){for(var a=arguments.length,s=Array(a),o=0;o<a;o++)s[o]=arguments[o];var l=Date.now();i||!1!==r.leading||(i=l);var u=t-(l-i),c=this;u<=0||u>t?(n&&(function(){eY("clearTimeout")(...arguments)}(n),n=null),i=l,e.apply(c,s)):n||!1===r.trailing||(n=eX(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(c,s)},u))}}function eD(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}window.Proxy&&window.Reflect&&(eO=new Proxy(eO,{get:(e,t,r)=>("map"===t&&console.error(ex),Reflect.get(e,t,r))}));var eN=Date.now;function eL(e){var t,r,n,i,a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null==a||null==(t=a.body)||null==(t=t.parentElement)?void 0:t.scrollLeft)||(null==a||null==(r=a.body)?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==a||null==(n=a.body)||null==(n=n.parentElement)?void 0:n.scrollTop)||(null==a||null==(i=a.body)?void 0:i.scrollTop)||0}}function eP(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function eF(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function eB(e){if(!e)return null;
1try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function eU(e,t,r,n,i){if(!e)return!1;var a=eB(e);if(!a)return!1;var s=eM(t,r);if(!i){var o=n&&a.matches(n);return s(a)&&!o}var l=eE(a,s),u=-1;return!(l<0)&&(n&&(u=eE(a,eM(null,n))),l>-1&&u<0||l<u)}function ez(e,t){return -2===t.getId(e)}function eW(e){return!!e.changedTouches}function ej(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eH(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function eq(e){return!!(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(eN=()=>new Date().getTime());class eK{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){var r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function eV(e){var t,r=null;return(null==(t=e.getRootNode)||null==(t=t.call(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function eJ(e){var t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=eV(r);)r=t;return r}(e);return t.contains(r)}(e))}var eG={};function eY(e){var t=eG[e];if(t)return t;var r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);var a=i.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(i)}catch(e){}return eG[e]=n.bind(window)}function eX(){return eY("setTimeout")(...arguments)}var e$=((tE=e$||{})[tE.DomContentLoaded=0]="DomContentLoaded",tE[tE.Load=1]="Load",tE[tE.FullSnapshot=2]="FullSnapshot",tE[tE.IncrementalSnapshot=3]="IncrementalSnapshot",tE[tE.Meta=4]="Meta",tE[tE.Custom=5]="Custom",tE[tE.Plugin=6]="Plugin",tE),eQ=((tM=eQ||{})[tM.Mutation=0]="Mutation",tM[tM.MouseMove=1]="MouseMove",tM[tM.MouseInteraction=2]="MouseInteraction",tM[tM.Scroll=3]="Scroll",tM[tM.ViewportResize=4]="ViewportResize",tM[tM.Input=5]="Input",tM[tM.TouchMove=6]="TouchMove",tM[tM.MediaInteraction=7]="MediaInteraction",tM[tM.StyleSheetRule=8]="StyleSheetRule",tM[tM.CanvasMutation=9]="CanvasMutation",tM[tM.Font=10]="Font",tM[tM.Log=11]="Log",tM[tM.Drag=12]="Drag",tM[tM.StyleDeclaration=13]="StyleDeclaration",tM[tM.Selection=14]="Selection",tM[tM.AdoptedStyleSheet=15]="AdoptedStyleSheet",tM[tM.CustomElement=16]="CustomElement",tM),eZ=((tI=eZ||{})[tI.MouseUp=0]="MouseUp",tI[tI.MouseDown=1]="MouseDown",tI[tI.Click=2]="Click",tI[tI.ContextMenu=3]="ContextMenu",tI[tI.DblClick=4]="DblClick",tI[tI.Focus=5]="Focus",tI[tI.Blur=6]="Blur",tI[tI.TouchStart=7]="TouchStart",tI[tI.TouchMove_Departed=8]="TouchMove_Departed",tI[tI.TouchEnd=9]="TouchEnd",tI[tI.TouchCancel=10]="TouchCancel",tI),e0=((tC=e0||{})[tC.Mouse=0]="Mouse",tC[tC.Pen=1]="Pen",tC[tC.Touch=2]="Touch",tC),e1=((tR=e1||{})[tR.Play=0]="Play",tR[tR.Pause=1]="Pause",tR[tR.Seeked=2]="Seeked",tR[tR.VolumeChange=3]="VolumeChange",tR[tR.RateChange=4]="RateChange",tR);function e2(e){try{return e.contentDocument}catch(e){}}class e3{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");for(var t,r=this.head,n=0;n<e;n++)r=(null==(t=r)?void 0:t.next)||null;return r}addNode(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var 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){var t=e.__ln;
1this.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--)}}var e5=(e,t)=>"".concat(e,"@").concat(t);class e8{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){for(var e=[],t=new Set,r=new e3,n=e=>{for(var t=e,r=-2;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(i.parentNode&&eJ(i)){var a=K(i.parentNode)?this.mirror.getId(eV(i)):this.mirror.getId(i.parentNode),s=n(i);if(-1===a||-1===s)return r.addNode(i);var o=eR(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=>{ej(e,this.mirror)&&!eU(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),eH(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),eq(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{eU(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,r)=>{var{width:n,height:i}=r;this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:"".concat(n,"px"),height:"".concat(i,"px")}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});o&&(e.push({parentId:a,nextId:s,node:o}),t.add(o.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(var a of this.movedSet)(!e4(this.removes,a,this.mirror)||this.movedSet.has(a.parentNode))&&i(a);for(var s of this.addedSet)e7(this.droppedSet,s)||e4(this.removes,s,this.mirror)?e7(this.movedSet,s)?i(s):this.droppedSet.add(s):i(s);for(var o=null;r.length;){var l=null;if(o){var u=this.mirror.getId(o.value.parentNode),c=n(o.value);-1!==u&&-1!==c&&(l=o)}if(!l)for(var d=r.tail;d;){var h=d;if(d=d.previous,h){var p=this.mirror.getId(h.value.parentNode);if(-1===n(h.value))continue;if(-1!==p){l=h;break}var f=h.value;if(f.parentNode&&f.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var m=f.parentNode.host;if(-1!==this.mirror.getId(m)){l=h;break}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}o=l.previous,r.removeNode(l.value),i(l.value)}var v={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=>{var{attributes:t}=e;if("string"==typeof t.style){var r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(v.texts.length||v.attributes.length||v.removes.length||v.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(v))}},this.processMutation=e=>{if(!ez(e.target,this.mirror))switch(e.type){case"characterData":var t=e.target.textContent;eU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:eI(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,eB(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break;
1case"attributes":var r=e.target,n=e.attributeName,i=e.target.getAttribute(n);if("value"===n){var a=et(r),s=r.tagName;i=er(r,s,a);var o=X({maskInputOptions:this.maskInputOptions,tagName:s,type:a});i=$({isMasked:eI(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:r,value:i,maskInputFn:this.maskInputFn})}if(eU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===e.oldValue)return;var l=this.attributeMap.get(e.target);if("IFRAME"===r.tagName&&"src"===n&&!this.keepIframeSrcFn(i)){if(e2(r))return;n="rr_src"}if(l||(l={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(l),this.attributeMap.set(e.target,l)),"type"===n&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!ek(r.tagName,n)&&(l.attributes[n]=ew(this.doc,Q(r.tagName),Q(n),i,r,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}var u=this.unattachedDoc.createElement("span");for(var c of(e.oldValue&&u.setAttribute("style",e.oldValue),Array.from(r.style))){var d=r.style.getPropertyValue(c),h=r.style.getPropertyPriority(c);d!==u.style.getPropertyValue(c)||h!==u.style.getPropertyPriority(c)?""===h?l.styleDiff[c]=d:l.styleDiff[c]=[d,h]:l._unchangedStyles[c]=[d,h]}for(var p of Array.from(u.style))""===r.style.getPropertyValue(p)&&(l.styleDiff[p]=!1)}break;case"childList":if(eU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{var r=this.mirror.getId(t),n=K(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);eU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ez(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(e6(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(K(t))return!1;var n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[e5(r,n)]?e6(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(K(e.target)&&V(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(ez(e,this.mirror))return;this.movedSet.add(e);var r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[e5(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!eU(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),eq(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function e6(e,t){var r;e.delete(t),null==(r=t.childNodes)||r.forEach(t=>e6(e,t))}function e4(e,t,r){return 0!==e.length&&function(e,t,r){for(var n,i=t.parentNode;i;)if(n=function(){var t=r.getId(i);if(e.some(e=>e.id===t))return{v:!0};i=i.parentNode}())return n.v;return!1}(e,t,r)}function e7(e,t){return 0!==e.size&&function e(t,r){var{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var e9=e=>tO?function(){try{return e(...arguments)}catch(e){if(tO&&!0===tO(e))return()=>{};throw e}}:e,te=[];function tt(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function tr(e,t){var r,n,i=new e8;te.push(i),i.init(e);var a=window.MutationObserver||window.__rrMutationObserver,s=null==(r=window)||null==(r=r.Zone)||null==(n=r.__symbol__)?void 0:n.call(r,"MutationObserver");s&&window[s]&&(a=window[s]);var o=new a(e9(t=>{e.onMutation&&!1===e.onMutation(t)||i.processMutations.bind(i)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function tn(e){var{scrollCb:t,doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,sampling:o}=e;return eT("scroll",e9(eA(e9(e=>{var o=tt(e);if(!(!o||eU(o,i,a,s,!0))){var l=n.getId(o);if(o===r&&r.defaultView){var u=eL(r.defaultView);t({id:l,x:u.left,y:u.top})}else t({id:l,x:o.scrollLeft,y:o.scrollTop})}}),o.scroll||100)),r)}var ti=["INPUT","TEXTAREA","SELECT"],ta=new WeakMap;function ts(e){var t=[];if(tc("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||tc("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||tc("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||tc("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function to(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function tl(e,t){var r,n,{mirror:i,stylesheetManager:a}=e,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(t.host);var o="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(n=t.ownerDocument)||null==(n=n.defaultView)?void 0:n.ShadowRoot,l=null!=o&&o.prototype?Object.getOwnPropertyDescriptor(null==o?void 0:o.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&o&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var t,r=null==(t=l.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{a.adoptStyleSheets(e,s)}catch(e){}return r}}),e9(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function tu(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var t,r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(t=tr(e,e.doc));var n=function(e){var t,{mousemoveCb:r,sampling:n,doc:i,mirror:a}=e;if(!1===n.mousemove)return()=>{};var s="number"==typeof n.mousemove?n.mousemove:50,o="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,l=[],u=eA(e9(e=>{var n=Date.now()-t;r(l.map(e=>(e.timeOffset-=n,e)),e),l=[],t=null}),o),c=e9(eA(e9(e=>{var r=tt(e),{clientX:n,clientY:i}=eW(e)?e.changedTouches[0]:e;t||(t=eN()),l.push({x:n,y:i,id:a.getId(r),timeOffset:eN()-t}),u("u">typeof DragEvent&&e instanceof DragEvent?eQ.Drag:e instanceof MouseEvent?eQ.MouseMove:eQ.TouchMove)}),s,{trailing:!1})),d=[eT("mousemove",c,i),eT("touchmove",c,i),eT("drag",c,i)];return e9(()=>
1{d.forEach(e=>e())})}(e),i=function(e){var{mouseInteractionCb:t,doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,sampling:o}=e;if(!1===o.mouseInteraction)return()=>{};var l=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,u=[],c=null;return Object.keys(eZ).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==l[e]).forEach(e=>{var o=Q(e),l=r=>{var o=tt(r);if(!eU(o,i,a,s,!0)){var l=null,u=e;if("pointerType"in r){switch(r.pointerType){case"mouse":l=e0.Mouse;break;case"touch":l=e0.Touch;break;case"pen":l=e0.Pen}l===e0.Touch?eZ[e]===eZ.MouseDown?u="TouchStart":eZ[e]===eZ.MouseUp&&(u="TouchEnd"):e0.Pen}else eW(r)&&(l=e0.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===e0.Touch||u.startsWith("Mouse")&&l===e0.Mouse)&&(l=null)):eZ[e]===eZ.Click&&(l=c,c=null);var d=eW(r)?r.changedTouches[0]:r;if(d){var h=n.getId(o),{clientX:p,clientY:f}=d;e9(t)(B({type:eZ[u],id:h,x:p,y:f},null!==l&&{pointerType:l}))}}};if(window.PointerEvent)switch(eZ[e]){case eZ.MouseDown:case eZ.MouseUp:o=o.replace("mouse","pointer");break;case eZ.TouchStart:case eZ.TouchEnd:return}u.push(eT(o,l,r))}),e9(()=>{u.forEach(e=>e())})}(e),a=tn(e),s=function(e,t){var{viewportResizeCb:r}=e,{win:n}=t,i=-1,a=-1;return eT("resize",e9(eA(e9(()=>{var e=eP(),t=eF();(i!==e||a!==t)&&(r({width:Number(t),height:Number(e)}),i=e,a=t)}),200)),n)}(e,{win:r}),o=function(e){var{inputCb:t,doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,ignoreClass:o,ignoreSelector:l,maskInputOptions:u,maskInputFn:c,sampling:d,userTriggeredOnInput:h,maskTextClass:p,unmaskTextClass:f,maskTextSelector:m,unmaskTextSelector:v}=e;function y(e){var t=tt(e),n=e.isTrusted,d=t&&Z(t.tagName);if("OPTION"===d&&(t=t.parentElement),!(!t||!d||0>ti.indexOf(d)||eU(t,i,a,s,!0))){var y=t;if(!(y.classList.contains(o)||l&&y.matches(l))){var S=et(t),_=er(y,d,S),b=!1,w=X({maskInputOptions:u,tagName:d,type:S}),k=eI(t,p,m,f,v,w);("radio"===S||"checkbox"===S)&&(b=t.checked),_=$({isMasked:k,element:t,value:_,maskInputFn:c}),g(t,h?{text:_,isChecked:b,userTriggered:n}:{text:_,isChecked:b});var E=t.name;"radio"===S&&E&&b&&r.querySelectorAll('input[type="radio"][name="'.concat(E,'"]')).forEach(e=>{if(e!==t){var r=$({isMasked:k,element:e,value:er(e,d,S),maskInputFn:c});g(e,h?{text:r,isChecked:!b,userTriggered:!1}:{text:r,isChecked:!b})}})}}}function g(e,r){var i=ta.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){ta.set(e,r);var a=n.getId(e);e9(t)(B(B({},r),{},{id:a}))}}var S=("last"===d.input?["change"]:["input","change"]).map(e=>eT(e,e9(y),r)),_=r.defaultView;if(!_)return()=>{S.forEach(e=>e())};var b=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),w=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&S.push(...w.map(e=>(function e(t,r,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,s=a.Object.getOwnPropertyDescriptor(t,r);return a.Object.defineProperty(t,r,i?n:{set(e){eX(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,r,s||{},!0)})(e[0],e[1],{set(){e9(y)({target:this,isTrusted:!1})}},!1,_))),e9(()=>{S.forEach(e=>e())})}(e),l=function(e){var{mediaInteractionCb:t,blockClass:r,blockSelector:n,unblockSelector:i,mirror:a,sampling:s,doc:o}=e,l=e9(e=>eA(e9(s=>{var o=tt(s);if(!(!o||eU(o,r,n,i,!0))){var{currentTime:l,volume:u,muted:c,playbackRate:d}=o;t({type:e,id:a.getId(o),currentTime:l,volume:u,muted:c,playbackRate:d})}}),s.media||500)),u=[eT("play",l(e1.Play),o),eT("pause",l(e1.Pause),o),eT("seeked",l(e1.Seeked),o),eT("volumechange",l(e1.VolumeChange),o),eT("ratechange",l(e1.RateChange),o)];return e9(()=>{u.forEach(e=>e())})}(e),u=()=>{},c=()=>{},d=()=>{},h=()=>{};e.recordDOM&&(u=function(e,t){var r,n,{styleSheetRuleCb:i,mirror:a,stylesheetManager:s}=e,{win:o}=t;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};var l=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(l,{apply:e9((e,t,r)=>{var[n,o]=r,{id:l,styleId:u}=to(t,a,s.styleMirror);return(l&&-1!==l||u&&-1!==u)&&i({id:l,styleId:u,adds:[{rule:n,index:o}]}),e.apply(t,r)}
1)});var u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:e9((e,t,r)=>{var[n]=r,{id:o,styleId:l}=to(t,a,s.styleMirror);return(o&&-1!==o||l&&-1!==l)&&i({id:o,styleId:l,removes:[{index:n}]}),e.apply(t,r)})}),o.CSSStyleSheet.prototype.replace&&(r=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:e9((e,t,r)=>{var[n]=r,{id:o,styleId:l}=to(t,a,s.styleMirror);return(o&&-1!==o||l&&-1!==l)&&i({id:o,styleId:l,replace:n}),e.apply(t,r)})})),o.CSSStyleSheet.prototype.replaceSync&&(n=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:e9((e,t,r)=>{var[n]=r,{id:o,styleId:l}=to(t,a,s.styleMirror);return(o&&-1!==o||l&&-1!==l)&&i({id:o,styleId:l,replaceSync:n}),e.apply(t,r)})}));var c={};td("CSSGroupingRule")?c.CSSGroupingRule=o.CSSGroupingRule:(td("CSSMediaRule")&&(c.CSSMediaRule=o.CSSMediaRule),td("CSSConditionRule")&&(c.CSSConditionRule=o.CSSConditionRule),td("CSSSupportsRule")&&(c.CSSSupportsRule=o.CSSSupportsRule));var d={};return Object.entries(c).forEach(e=>{var[t,r]=e;d[t]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(d[t].insertRule,{apply:e9((e,t,r)=>{var[n,o]=r,{id:l,styleId:u}=to(t.parentStyleSheet,a,s.styleMirror);return(l&&-1!==l||u&&-1!==u)&&i({id:l,styleId:u,adds:[{rule:n,index:[...ts(t),o||0]}]}),e.apply(t,r)})}),r.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:e9((e,t,r)=>{var[n]=r,{id:o,styleId:l}=to(t.parentStyleSheet,a,s.styleMirror);return(o&&-1!==o||l&&-1!==l)&&i({id:o,styleId:l,removes:[{index:[...ts(t),n]}]}),e.apply(t,r)})})}),e9(()=>{o.CSSStyleSheet.prototype.insertRule=l,o.CSSStyleSheet.prototype.deleteRule=u,r&&(o.CSSStyleSheet.prototype.replace=r),n&&(o.CSSStyleSheet.prototype.replaceSync=n),Object.entries(c).forEach(e=>{var[t,r]=e;r.prototype.insertRule=d[t].insertRule,r.prototype.deleteRule=d[t].deleteRule})})}(e,{win:r}),c=tl(e,e.doc),d=function(e,t){var{styleDeclarationCb:r,mirror:n,ignoreCSSAttributes:i,stylesheetManager:a}=e,{win:s}=t,o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:e9((e,t,s)=>{var l,[u,c,d]=s;if(i.has(u))return o.apply(t,[u,c,d]);var{id:h,styleId:p}=to(null==(l=t.parentRule)?void 0:l.parentStyleSheet,n,a.styleMirror);return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,set:{property:u,value:c,priority:d},index:ts(t.parentRule)}),e.apply(t,s)})});var l=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:e9((e,t,s)=>{var o,[u]=s;if(i.has(u))return l.apply(t,[u]);var{id:c,styleId:d}=to(null==(o=t.parentRule)?void 0:o.parentStyleSheet,n,a.styleMirror);return(c&&-1!==c||d&&-1!==d)&&r({id:c,styleId:d,remove:{property:u},index:ts(t.parentRule)}),e.apply(t,s)})}),e9(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=l})}(e,{win:r}),e.collectFonts&&(h=function(e){var{fontCb:t,doc:r}=e,n=r.defaultView;if(!n)return()=>{};var i=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return a.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var o=eD(r.fonts,"add",function(e){return function(r){return eX(e9(()=>{var e=a.get(r);e&&(t(e),a.delete(r))}),0),e.apply(this,[r])}});return i.push(()=>{n.FontFace=s}),i.push(o),e9(()=>{i.forEach(e=>e())})}(e)));var p=function(e){var{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,selectionCb:s}=e,o=!0,l=e9(()=>{var e=t.getSelection();if(e&&(!o||null==e||!e.isCollapsed)){o=e.isCollapsed||!1;for(var l=[],u=e.rangeCount||0,c=0;c<u;c++){var{startContainer:d,startOffset:h,endContainer:p,endOffset:f}=e.getRangeAt(c);eU(d,n,i,a,!0)||eU(p,n,i,a,!0)||l.push({start:r.getId(d),startOffset:h,end:r.getId(p),endOffset:f})}s({ranges:l})}});return l(),eT("selectionchange",l)}(e),f=function(e){var{doc:t,customElementCb:r}=e,n=t.defaultView;return n&&n.customElements?eD(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){}return e.apply(this,[t,n,i])}}):()=>{}}(e),m=[];for(var v of e.plugins)m.push(v.observer(v.callback,r,v.options));return e9(()=>{var e;
1te.forEach(e=>e.reset()),null==(e=t)||e.disconnect(),n(),i(),a(),s(),o(),l(),u(),c(),d(),h(),p(),f(),m.forEach(e=>e())})}function tc(e){return void 0!==window[e]}function td(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class th{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),a.set(s,t)),s}getIds(e,t){var r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1}getRemoteIds(e,t){var r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class tp{constructor(){this.crossOriginIframeMirror=new th(ed),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class tf{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new th(ed),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new th(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e);var r,n,i=e2(e);i&&i.adoptedStyleSheets&&i.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(i.adoptedStyleSheets,this.mirror.getId(i))}handleMessage(e){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}}transformCrossOriginEvent(e,t){switch(t.type){case e$.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var r,n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:e$.IncrementalSnapshot,data:{source:eQ.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case e$.Meta:case e$.Load:case e$.DomContentLoaded:break;case e$.Plugin:return t;case e$.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case e$.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);var r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),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;
1case 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"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(var i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===q.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class tm{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tv{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(V(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);var r=tr(B(B({},this.bypassOptions),{},{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(tn(B(B({},this.bypassOptions),{},{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),eX(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(tl({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){var t=e2(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){var r=this;this.restoreHandlers.push(eD(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n);return this.shadowRoot&&eJ(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var ty="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tg="u"<typeof Uint8Array?[]:new Uint8Array(256),tS=0;tS<ty.length;tS++)tg[ty.charCodeAt(tS)]=tS;class t_{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class tb{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new eK,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){var r={id:t,styleIds:[]},n=[];for(var i of e){var a=void 0;this.styleMirror.has(i)?a=this.styleMirror.getId(i):(a=this.styleMirror.add(i),n.push({styleId:a,rules:Array.from(i.rules||CSSRule,(e,t)=>({rule:G(e),index:t}))})),r.styleIds.push(a)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class tw{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(){eY("requestAnimationFrame")(...arguments)}(()=>{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]){var tk,tE,tM,tI,tC,tR,tT,tx,tO,tA,tD,tN,tL=document.createElement("iframe");document.body.appendChild(tL),Array.from=(null==(tN=tL.contentWindow)?void 0:tN.Array.from)||Array.from,document.body.removeChild(tL)}}catch(e){console.debug("Unable to override Array.from",e)}var tP=new Y;function tF(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:a="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:v,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:S,maskInputFn:_,maskTextFn:b,maxCanvasSize:w=null,packFn:k,sampling:E={},dataURLOptions:M={},mousemoveWait:I,recordDOM:C=!0,recordCanvas:R=!1,recordCrossOriginIframes:T=!1,recordAfter:x="DOMContentLoaded"===t.recordAfter?t.recordAfter:"load",userTriggeredOnInput:O=!1,collectFonts:A=!1,inlineImages:D=!1,plugins:N,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:F,onMutation:U,getCanvasManager:z}=t;tO=F;var W=!T||window.parent===window,j=!1;if(!W)try{window.parent.document&&(j=!1)}catch(e){j=!0}if(W&&!r)throw Error("emit function is required");if(!W&&!j)return()=>{};void 0!==I&&void 0===E.mousemove&&(E.mousemove=I),tP.reset();var 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!==y?y:{},q=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};!function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;
1"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(!(0 in r))throw TypeError("1 argument is required");do if(e===i)return!0;while(i=i&&i.parentNode);return!1})}();var K=0,V=e=>{for(var t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!j&&(e=k(e)),e};tA=(t,a)=>{var s;if(t.timestamp=eN(),null!=(s=te[0])&&s.isFrozen()&&t.type!==e$.FullSnapshot&&(t.type!==e$.IncrementalSnapshot||t.data.source!==eQ.Mutation)&&te.forEach(e=>e.unfreeze()),W)null==r||r(V(t),a);else if(j){var o={type:"rrweb",event:V(t),origin:window.location.origin,isCheckout:a};window.parent.postMessage(o,"*")}if(t.type===e$.FullSnapshot)e=t,K=0;else if(t.type===e$.IncrementalSnapshot){if(t.data.source===eQ.Mutation&&t.data.isAttachIframe)return;K++;var l=i&&K>=i,u=n&&e&&t.timestamp-e.timestamp>n;(l||u)&&en(!0)}};var J=e=>{tA({type:e$.IncrementalSnapshot,data:B({source:eQ.Mutation},e)})},G=e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.Scroll},e)}),X=e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.CanvasMutation},e)}),$=new tb({mutationCb:J,adoptedStyleSheetCb:e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.AdoptedStyleSheet},e)})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new tp:new tf({mirror:tP,mutationCb:J,stylesheetManager:$,recordCrossOriginIframes:T,wrappedEmit:tA});for(var Z of N||[])Z.getMirror&&Z.getMirror({nodeMirror:tP,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});var ee=new tw,et=function(e,t){try{return e?e(t):new t_}catch(e){return console.warn("Unable to initialize CanvasManager"),new t_}}(z,{mirror:tP,win:window,mutationCb:e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.CanvasMutation},e)}),recordCanvas:R,blockClass:a,blockSelector:s,unblockSelector:o,maxCanvasSize:w,sampling:E.canvas,dataURLOptions:M,errorHandler:F}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new tm:new tv({mutationCb:J,scrollCb:G,bypassOptions:{onMutation:U,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:H,dataURLOptions:M,maskAttributeFn:S,maskTextFn:b,maskInputFn:_,recordCanvas:R,inlineImages:D,sampling:E,slimDOMOptions:q,iframeManager:Q,stylesheetManager:$,canvasManager:et,keepIframeSrcFn:L,processedNodeManager:ee,ignoreCSSAttributes:P},mirror:tP}),en=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(C){tA({type:e$.Meta,data:{href:window.location.href,width:eF(),height:eP()}},e),$.reset(),er.init(),te.forEach(e=>e.lock());var t=function(e,t){var{mirror:r=new Y,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:s=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:v,maskInputFn:y,slimDOM:g=!1,dataURLOptions:S,preserveWhiteSpace:_,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:E,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:C=()=>!1,ignoreCSSAttributes:R=new Set([])}=t||{};return eR(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,maskAllText:s,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:v,maskInputFn:y,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
1:!1===g?{}:g,dataURLOptions:S,inlineImages:h,recordCanvas:p,preserveWhiteSpace:_,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:E,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:C,newlyAddedElement:!1,ignoreCSSAttributes:R})}(document,{mirror:tP,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:H,maskAttributeFn:S,maskInputFn:_,maskTextFn:b,slimDOM:q,dataURLOptions:M,recordCanvas:R,inlineImages:D,onSerialize:e=>{ej(e,tP)&&Q.addIframe(e),eH(e,tP)&&$.trackLinkElement(e),eq(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{$.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,r)=>{var{width:n,height:i}=r;J({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:"".concat(n,"px"),height:"".concat(i,"px")}}}]})},keepIframeSrcFn:L,ignoreCSSAttributes:P});if(!t)return console.warn("Failed to snapshot the document");tA({type:e$.FullSnapshot,data:{node:t,initialOffset:eL(window)}}),te.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&$.adoptStyleSheets(document.adoptedStyleSheets,tP.getId(document))}};tD=en;try{var ei=[],ea=e=>{var t;return e9(tu)({onMutation:U,mutationCb:J,mousemoveCb:(e,t)=>tA({type:e$.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.MouseInteraction},e)}),scrollCb:G,viewportResizeCb:e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.ViewportResize},e)}),inputCb:e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.Input},e)}),mediaInteractionCb:e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.MediaInteraction},e)}),styleSheetRuleCb:e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.StyleSheetRule},e)}),styleDeclarationCb:e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.StyleDeclaration},e)}),canvasMutationCb:X,fontCb:e=>tA({type:e$.IncrementalSnapshot,data:B({source:eQ.Font},e)}),selectionCb:e=>{tA({type:e$.IncrementalSnapshot,data:B({source:eQ.Selection},e)})},customElementCb:e=>{tA({type:e$.IncrementalSnapshot,data:B({source:eQ.CustomElement},e)})},blockClass:a,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:H,inlineStylesheet:m,sampling:E,recordDOM:C,recordCanvas:R,inlineImages:D,userTriggeredOnInput:O,collectFonts:A,doc:e,maskAttributeFn:S,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:L,blockSelector:s,unblockSelector:o,slimDOMOptions:q,dataURLOptions:M,mirror:tP,iframeManager:Q,stylesheetManager:$,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:P,plugins:(null==N||null==(t=N.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>tA({type:e$.Plugin,data:{plugin:e.name,payload:t}})})))||[]},{})};Q.addLoadListener(e=>{try{ei.push(ea(e.contentDocument))}catch(e){console.warn(e)}});var es=()=>{en(),ei.push(ea(document))};return"interactive"===document.readyState||"complete"===document.readyState?es():(ei.push(eT("DOMContentLoaded",()=>{tA({type:e$.DomContentLoaded,data:{}}),"DOMContentLoaded"===x&&es()})),ei.push(eT("load",()=>{tA({type:e$.Load,data:{}}),"load"===x&&es()},window))),()=>{ei.forEach(e=>e()),ee.destroy(),tD=void 0,tO=void 0}}catch(e){console.warn(e)}}function tB(e){return e>0x2540be3ff?e:1e3*e}function tU(e){return e>0x2540be3ff?e/1e3:e}function tz(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:e$.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,d.S8)(t,10,1e3)}}),"console"===t.category)))}function tW(e){return e.closest("button,a")||e}function tj(e){var t=tH(e);return t&&t instanceof Element?tW(t):t}function tH(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}tF.mirror=tP,tF.takeFullSnapshot=function(e){if(!tD)throw Error("please take full snapshot after start recording");tD(e)},(n=s||(s={}))[n.NotStarted=0]="NotStarted",n[n.Running=1]="Running",n[n.Stopped=2]="Stopped";var tq=new Set([eQ.Mutation,eQ.StyleSheetRule,eQ.StyleDeclaration,eQ.AdoptedStyleSheet,eQ.CanvasMutation,eQ.Selection,eQ.MediaInteraction]);class tK{constructor(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tz;this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e,t=(e=()=>{this._lastMutation=tJ()},o||(o=[],(0,h.GS)(U,"open",function(e){return function(){if(o)try{o.forEach(e
1=>e())}catch(e){}for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(U,r)}})),o.push(e),()=>{var t=o?o.indexOf(e):-1;t>-1&&o.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(r=t,n=this._ignoreSelector,!(!tV.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n))&&(i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp){var r,n,i,a={timestamp:tU(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===a.node&&1>Math.abs(e.timestamp-a.timestamp))||(this._clicks.push(a),1===this._clicks.length&&this._scheduleCheckClicks())}}registerMutation(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=tU(e)}registerScroll(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=tU(e)}registerClick(e){var t=tW(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){var e=[],t=tJ();for(var r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){var n=this._clicks.indexOf(r);n>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(n,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){var t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:a}=e;if(!r&&!n){var s=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),o=s<1e3*this._timeout?"mutation":"timeout",l={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:B(B({},a.data),{},{url:U.location.href,route:t.getCurrentRoute(),timeAfterClickMs:s,endReason:o,clickCount:i||1})};this._addBreadcrumbEvent(t,l);return}if(i>1){var u={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:B(B({},a.data),{},{url:U.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0})};this._addBreadcrumbEvent(t,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,O.wg)(()=>this._checkClicks(),1e3)}}var tV=["A","BUTTON","INPUT"];function tJ(){return Date.now()/1e3}function tG(e){return B({timestamp:Date.now()/1e3,type:"default"},e)}var tY=((i=tY||{})[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i),tX=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function t$(e,t){var r=tF.mirror.getId(e),n=r&&tF.mirror.getNode(r),i=n&&tF.mirror.getMeta(n),a=i&&i.type===tY.Element?i:null;return{message:t,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===tY.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){var t={};for(var r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(tX.has(r)){var n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(a.attributes)}}:{}}}var tQ={resource:function(e){var{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:a,decodedBodySize:s,encodedBodySize:o,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:"".concat(t,".").concat(r),start:t1(a),end:t1(i),name:n,data:{size:u,statusCode:l,decodedBodySize:s,encodedBodySize:o}}},paint:function(e){var{duration:t,entryType:r,name:n,startTime:i}=e,a=t1(i);return{type:r,name:n,start:a,end:a+t,data:void 0}},navigation:function(e){var{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:a,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:"".concat(t,".").concat(m),start:t1(p),end:t1(a),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:a,redirectCount:h}}}};function tZ(e,t){return r=>{var{metric:n}=r;t.replayPerformanceEntries.push(e(n))}}function t0(e){var t=tQ[e.entryType];return t?t(e):null}function t1(e){return(((0,f.k3)()||U.performance.timeOrigin)+e)/1e3}function t2(e){var t=e.entries[e.entries.length-1];return t8(e,"largest-contentful-paint",null!=t&&t.element?[t.element]:void 0)}function t3(e){var t=[],r=[];for(var n of e.entries)if(void 0!==n.sources){var i=[];
1for(var a of n.sources)if(a.node){r.push(a.node);var s=tF.mirror.getId(a.node);s&&i.push(s)}t.push({value:n.value,nodeIds:i.length?i:void 0})}return t8(e,"cumulative-layout-shift",r,t)}function t5(e){var t=e.entries[e.entries.length-1];return t8(e,"interaction-to-next-paint",null!=t&&t.target?[t.target]:void 0)}function t8(e,t,r,n){var i=e.value,a=e.rating,s=t1(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:a,nodeIds:r?r.map(e=>tF.mirror.getId(e)):void 0,attributions:n}}}var t6=(a={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}},["log","warn","error"].forEach(e=>{a[e]=()=>void 0}),a);class t4 extends Error{constructor(){super("Event buffer exceeded maximum size of ".concat(2e7,"."))}}class t7{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}addEvent(e){var t=this;return(0,l.A)(function*(){var r=JSON.stringify(e).length;if(t._totalSize+=r,t._totalSize>2e7)throw new t4;t.events.push(e)})()}finish(){return new Promise(e=>{var t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){var e=this.events.map(e=>e.timestamp).sort()[0];return e?tB(e):null}}class t9{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",r=>{var{data:n}=r;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: ".concat(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.terminate()}postMessage(e,t){var r=this._getAndIncrementId();return new Promise((n,i)=>{var a=t=>{var{data:s}=t;if(s.method===e&&s.id===r){if(this._worker.removeEventListener("message",a),!s.success)return void i(Error("Error in compression worker"));n(s.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class re{constructor(e){this._worker=new t9(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){var t=tB(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);var r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new t4):this._sendEventToWorker(r)}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)}_finishRequest(){var e=this;return(0,l.A)(function*(){var t=yield e._worker.postMessage("finish");return e._earliestTimestamp=null,e._totalSize=0,t})()}}class rt{constructor(e){this._fallback=new t7,this._compression=new re(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)}finish(){var e=this;return(0,l.A)(function*(){return yield e.ensureWorkerIsLoaded(),e._used.finish()})()}
1ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}_ensureWorkerIsLoaded(){var e=this;return(0,l.A)(function*(){try{yield e._compression.ensureReady()}catch(e){return}yield e._switchToCompressionWorker()})()}_switchToCompressionWorker(){var e=this;return(0,l.A)(function*(){var{events:t,hasCheckout:r,waitForCheckout:n}=e._fallback,i=[];for(var a of t)i.push(e._compression.addEvent(a));e._compression.hasCheckout=r,e._compression.waitForCheckout=n,e._used=e._compression;try{yield Promise.all(i),e._fallback.clear()}catch(e){}})()}}function rr(){try{return"sessionStorage"in U&&!!U.sessionStorage}catch(e){return!1}}function rn(e){return void 0!==e&&Math.random()<e}function ri(e){if(rr())try{U.sessionStorage.setItem(z,JSON.stringify(e))}catch(e){}}function ra(e){var t=Date.now(),r=e.id||(0,g.eJ)(),n=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,s=e.sampled;return{id:r,started:n,lastActivity:i,segmentId:a,sampled:s,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function rs(e){var{sessionSampleRate:t,allowBuffering:r,stickySession:n=!1}=e,{previousSessionId:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=ra({sampled:rn(t)?"session":!!r&&"buffer",previousSessionId:i});return n&&ri(a),a}function ro(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=r}function rl(e,t){var{maxReplayDuration:r,sessionIdleExpire:n,targetTime:i=Date.now()}=t;return ro(e.started,r,i)||ro(e.lastActivity,n,i)}function ru(e,t){var{sessionIdleExpire:r,maxReplayDuration:n}=t;return!!rl(e,{sessionIdleExpire:r,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function rc(e,t){var{sessionIdleExpire:r,maxReplayDuration:n,previousSessionId:i}=e,a=t.stickySession&&function(){if(!rr())return null;try{var e=U.sessionStorage.getItem(z);if(!e)return null;var t=JSON.parse(e);return ra(t)}catch(e){return null}}();return a?ru(a,{sessionIdleExpire:r,maxReplayDuration:n})?rs(t,{previousSessionId:a.id}):a:rs(t,{previousSessionId:i})}function rd(e,t,r){return!!rf(e,t)&&(rh(e,t,r),!0)}function rh(e,t,r){return rp.apply(this,arguments)}function rp(){return(rp=(0,l.A)(function*(e,t,r){var{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;var i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);var a=e.getOptions(),s=function(e,t){try{if("function"==typeof t&&e.type===e$.Custom)return t(e)}catch(e){return null}return e}(t,a.beforeAddRecordingEvent);if(!s)return;return yield n.addEvent(s)}catch(t){var o=t&&t instanceof t4,l=(0,S.KU)();if(l&&l.recordDroppedEvent(o?"buffer_overflow":"internal_sdk_error","replay"),o&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(t),yield e.stop({reason:o?"addEventSizeExceeded":"addEvent"})}})).apply(this,arguments)}function rf(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;var r=tB(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function rm(e){return"transaction"===e.type}function rv(e){return"feedback"===e.type}function ry(e){return!!e.category}function rg(){var e=(0,S.o5)().getPropagationContext().dsc;e&&delete e.replay_id;var t=(0,_.Bk)();if(t){var r=(0,b.k1)(t);delete r.replay_id}}function rS(e,t){return t.map(t=>{var{type:r,start:n,end:i,name:a,data:s}=t,o=e.throttledAddEvent({type:e$.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:r,description:a,startTimestamp:n,endTimestamp:i,data:s}}});return"string"==typeof o?Promise.resolve(null):o})}function r_(e,t){var r;e.isEnabled()&&null!==t&&(r=t.name,(0,w.A)(r,(0,S.KU)())||e.addUpdate(()=>(rS(e,[t]),!0)))}function rb(e){if(e){var 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){var r=(0,D.P4)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}}function rw(e){if(e){var t=parseInt(e,10);return isNaN(t)?void 0:t}}function rk(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};var r=B({},e._meta),n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function rE(e,t){if(!t)return null;var{startTimestamp:r,endTimestamp:n,url:i,method:a,statusCode:s,request:o,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:a,statusCode:s,request:o,response:l}}}function rM(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function rI(e,t,r){if(t||0!==Object.keys(e).length){if(!t)return{headers:e};if(!r)return{headers:e,size:t};var n={headers:e,size:t},{body:i,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e};var t,r,n,i=e.length>15e4,a=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(i){var s=e.slice(0,15e4);return a?{body:s,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(s,"…"),warnings:["TEXT_TRUNCATED"]}}if(a)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(r);return n.body=i,null!=a&&a.length&&(n._meta={warnings:a}),n}}function rC(e,t){return Object.entries(e).reduce((r,n)=>{var[i,a]=n,s=i.toLowerCase();return t.includes(s)&&e[i]&&(r[s]=a),r},{})}function rR(e,t){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.document.baseURI;if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(U.location.origin))return e;
1var r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;var n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,k.Xr)(r,t)}function rT(){return(rT=(0,l.A)(function*(e,t,r){try{var n=yield function(e,t,r){return rx.apply(this,arguments)}(e,t,r),i=rE("resource.fetch",n);r_(r.replay,i)}catch(e){}})).apply(this,arguments)}function rx(){return(rx=(0,l.A)(function*(e,t,r){var n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n}=t,{url:s,method:o,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=rR(s,r.networkDetailAllowUrls)&&!rR(s,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:s,method:o,statusCode:l,request:d?function(e,t,r){var n,i,{networkCaptureBodies:a,networkRequestHeaders:s}=e,o=t?(n=t,i=s,1===n.length&&"string"!=typeof n[0]?rN(n[0],i):2===n.length?rN(n[1],i):{}):{};if(!a)return rI(o,r,void 0);var l=(0,D.Gv)(t),[u,c]=(0,D.sY)(l,t6),d=rI(o,r,u);return c?rk(d,c):d}(r,t.input,u):rM(u),response:yield function(e,t,r,n){return rO.apply(this,arguments)}(d,r,t.response,c)}})).apply(this,arguments)}function rO(){return(rO=(0,l.A)(function*(e,t,r,n){var{networkCaptureBodies:i,networkResponseHeaders:a}=t;if(!e&&void 0!==n)return rM(n);var s=r?rD(r.headers,a):{};if(!r||!i&&void 0!==n)return rI(s,n,void 0);var[o,l]=yield function(e){return rA.apply(this,arguments)}(r),u=function(e,t){var{networkCaptureBodies:r,responseBodySize:n,captureDetails:i,headers:a}=t;try{var s=null!=e&&e.length&&void 0===n?rb(e):n;if(!i)return rM(s);if(r)return rI(a,s,e);return rI(a,s,void 0)}catch(e){return rI(a,n,void 0)}}(o,{networkCaptureBodies:i,responseBodySize:n,captureDetails:e,headers:s});return l?rk(u,l):u})).apply(this,arguments)}function rA(){return(rA=(0,l.A)(function*(e){var t,r=function(e){try{return e.clone()}catch(e){}}(e);if(!r)return[void 0,"BODY_PARSE_ERROR"];try{return[(yield(t=r,new Promise((e,r)=>{var n=(0,O.wg)(()=>r(Error("Timeout while trying to read response body")),500);(function(e){return rL.apply(this,arguments)})(t).then(t=>e(t),e=>r(e)).finally(()=>clearTimeout(n))})))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}})).apply(this,arguments)}function rD(e,t){var r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function rN(e,t){if(!e)return{};var r=e.headers;return r?r instanceof Headers?rD(r,t):Array.isArray(r)?{}:rC(r,t):{}}function rL(){return(rL=(0,l.A)(function*(e){return yield e.text()})).apply(this,arguments)}function rP(){return(rP=(0,l.A)(function*(e,t,r){try{var n=function(e,t,r){var n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n,input:s,xhr:o}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:h}=e.data;if(!l)return null;if(!o||!rR(l,r.networkDetailAllowUrls)||rR(l,r.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:rM(d),response:rM(h)};var p=o[N.Er],f=p?rC(p.request_headers,r.networkRequestHeaders):{},m=rC((0,D.ti)(o),r.networkResponseHeaders),[v,y]=r.networkCaptureBodies?(0,D.sY)(s,t6):[void 0],[g,S]=r.networkCaptureBodies?function(e){var t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return[void 0]}(o):[void 0],_=rI(f,d,v),b=rI(m,h,g);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:y?rk(_,y):_,response:S?rk(b,S):b}}(e,t,r),i=rE("resource.xhr",n);r_(r.replay,i)}catch(e){}})).apply(this,arguments)}function rF(){return(rF=(0,l.A)(function*(e){try{return Promise.all(rS(e,[function(e){var{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(U.performance.memory)]))}catch(e){return[]}})).apply(this,arguments)}var rB=c.O.navigator;function rU(){return(rU=(0,l.A)(function*(e){var{client:t,scope:r,replayId:n,event:i}=e,a={event_id:n,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",i,a);var s=yield(0,I.mG)(t.getOptions(),i,a,r,t,(0,S.rm)());if(!s)return null;t.emit("postprocessEvent",s,a),s.platform=s.platform||"javascript";var o=t.getSdkMetadata(),{name:l,version:u,settings:c}=(null==o?void 0:o.sdk)||{};return s.sdk=B(B({},s.sdk),{},{name:l||"sentry.javascript.unknown",version:u||"0.0.0",settings:c}),s})).apply(this,arguments)}function rz(){return(rz=(0,l.A)(function*(e){var t,r,{recordingData:n,replayId:i,segmentId:a,eventContext:s,timestamp:o,session:l}=e,u=function(e){var t,{recordingData:r,headers:n}=e,i="".concat(JSON.stringify(n),"\n");
1if("string"==typeof r)t="".concat(i).concat(r);else{var a=new TextEncoder().encode(i);(t=new Uint8Array(a.length+r.length)).set(a),t.set(r,a.length)}return t}({recordingData:n,headers:{segment_id:a}}),{urls:c,errorIds:d,traceIds:h,initialTimestamp:p}=s,f=(0,S.KU)(),m=(0,S.o5)(),v=null==f?void 0:f.getTransport(),y=null==f?void 0:f.getDsn();if(!f||!v||!y||!l.sampled)return Promise.resolve({});var g={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:o/1e3,error_ids:d,trace_ids:h,urls:c,replay_id:i,segment_id:a,replay_type:l.sampled},_=yield function(e){return rU.apply(this,arguments)}({scope:m,client:f,replayId:i,event:g});if(!_)return f.recordDroppedEvent("event_processor","replay"),Promise.resolve({});delete _.sdkProcessingMetadata;var b=(t=f.getOptions().tunnel,(0,M.h4)((0,M.n2)(_,(0,M.Cj)(_),t,y),[[{type:"replay_event"},_],[{type:"replay_recording",length:"string"==typeof u?new TextEncoder().encode(u).length:u.length},u]]));try{r=yield v.send(b)}catch(e){var w=Error(W);try{w.cause=e}catch(e){}throw w}var k=(0,C.wq)({},r);if((0,C.Jz)(k,"replay"))throw new rj(k);if("number"==typeof r.statusCode&&(r.statusCode<200||r.statusCode>=300))throw new rW(r.statusCode);return r})).apply(this,arguments)}class rW extends Error{constructor(e){super("Transport returned status code ".concat(e))}}class rj extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class rH extends Error{constructor(){super("Session is too long, not sending replay")}}function rq(e){return rK.apply(this,arguments)}function rK(){return(rK=(0,l.A)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{count:0,interval:5e3},{recordingData:r,onError:n}=e;if(r.length)try{return yield function(e){return rz.apply(this,arguments)}(e),!0}catch(r){if(r instanceof rW||r instanceof rj)throw r;if((0,y.o)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){var i=Error("".concat(W," - max retries exceeded"));
1try{i.cause=r}catch(e){}throw i}return t.interval*=++t.count,new Promise((r,n)=>{(0,O.wg)((0,l.A)(function*(){try{yield rq(e,t),r(!0)}catch(e){n(e)}}),t.interval)})}})).apply(this,arguments)}var rV="__THROTTLED";class rJ{constructor(e){var{options:t,recordingOptions:r}=e;this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=r,this._options=t,this._debouncedFlush=function(e,t,r){return(0,E.s)(e,t,B(B({},r),{},{setTimeoutImpl:O.wg}))}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){var t=new Map,r=!1;return function(){var n,i=Math.floor(Date.now()/1e3);if(n=i-5,t.forEach((e,r)=>{r<n&&t.delete(r)}),[...t.values()].reduce((e,t)=>e+t,0)>=300){var a=r;return r=!0,a?"__SKIPPED":rV}r=!1;var s=t.get(i)||0;return t.set(i,s+1),e(...arguments)}}((e,t)=>rf(this,e)?rh(this,e,t):Promise.resolve(null));var{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),a=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;a&&(this.clickDetector=new tK(this,a)),this._handleVisibilityChange=()=>{"visible"===U.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{var e=tG({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{var e=tG({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{var t=this,r=e;if(t.isEnabled()){t.updateUserActivity();var n=function(e){var t,{metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:s,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;var l=r||i||a,u=1===s.length;if(!l&&u)return null;var c=(0,p.Hd)(o,{maxStringLength:200})||"<unknown>",d=t$(o,c);return tG({category:"ui.keyDown",message:c,data:B(B({},d.data),{},{metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:s})})}(r);n&&tz(t,n)}}}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){var{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,n||(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){if(!this._isEnabled||"buffer"!==this.recordingMode){this._updateUserActivity();var e=rc({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){var e=rc({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,t,r,n,i=this._canvas;this._stopRecording=tF(B(B(B(B({},this._recordingOptions),"buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)}),{},{emit:(e=this,t=!1,(r,n)=>{if(e.checkAndHandleExpiredSession()){var i=n||!t;t=!0,e.clickDetector&&function(e,t){try{if(r=t,3!==r.type)return;var r,{source:n}=t.data;if(tq.has(n)&&e.registerMutation(t.timestamp),n===eQ.Scroll&&e.registerScroll(t.timestamp),t.data.source===eQ.MouseInteraction){var{type:i,id:a}=t.data,s=tF.mirror.getNode(a);s instanceof HTMLElement&&i===eZ.Click&&e.registerClick(s)}}catch(e){}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!rd(e,r,i))return!0;
1if(!i)return!1;var t=e.session;if(function(e,t){var r,n;t&&(null==(r=e.session)?void 0:r.segmentId)===0&&rd(e,(n=e.getOptions(),{type:e$.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:n.sessionSampleRate,errorSampleRate:n.errorSampleRate,useCompressionOption:n.useCompression,blockAllMedia:n.blockAllMedia,maskAllText:n.maskAllText,maskAllInputs:n.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:n.networkDetailAllowUrls.length>0,networkCaptureBodies:n.networkCaptureBodies,networkRequestHasHeaders:n.networkRequestHeaders.length>0,networkResponseHasHeaders:n.networkResponseHeaders.length>0}}}),!1)}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){var n=e.eventBuffer.getEarliestTimestamp();n&&(t.started=n,e.getOptions().stickySession&&ri(t))}return null!=t&&!!t.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}})},/iPhone|iPad|iPod/i.test(null!=(r=null==rB?void 0:rB.userAgent)?r:"")||/Macintosh/i.test(null!=(n=null==rB?void 0:rB.userAgent)?n:"")&&null!=rB&&rB.maxTouchPoints&&(null==rB?void 0:rB.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}),{},{onMutation:this._onMutationHandler.bind(this)},i?{recordCanvas:i.recordCanvas,getCanvasManager:i.getCanvasManager,sampling:i.sampling,dataURLOptions:i.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}}stop(){var e=arguments,t=this;return(0,l.A)(function*(){var r,{forceFlush:n=!1,reason:i}=e.length>0&&void 0!==e[0]?e[0]:{};if(t._isEnabled){t._isEnabled=!1,t.recordingMode="buffer";try{rg(),t._removeListeners(),t.stopRecording(),t._debouncedFlush.cancel(),n&&(yield t._flush({force:!0})),null==(r=t.eventBuffer)||r.destroy(),t.eventBuffer=null,function(){if(rr())try{U.sessionStorage.removeItem(z)}catch(e){}}(),t.session=void 0}catch(e){t.handleException(e)}}})()}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}sendBufferedReplayOrFlush(){var e=arguments,t=this;return(0,l.A)(function*(){var{continueRecording:r=!0}=e.length>0&&void 0!==e[0]?e[0]:{};if("session"===t.recordingMode)return t.flushImmediate();var n=Date.now();yield t.flushImmediate();var i=t.stopRecording();r&&i&&"session"!==t.recordingMode&&(t.recordingMode="session",t.session&&(t.session.dirty=!1,t._updateUserActivity(n),t._updateSessionActivity(n),t._maybeSaveSession()),t.startRecording())})()}addUpdate(e){var 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){var t,r;if(!e||(null==(t=this.session)?void 0:t.sampled)!==!1)return null==(r=this.session)?void 0:r.id}checkAndHandleExpiredSession(){var e;return this._lastActivity&&ro(this._lastActivity,this.timeouts.sessionIdlePause)&&(null==(e=this.session)?void 0:e.sampled)==="session"?void this.pause():!!this._checkSession()}setInitialState(){var e="".concat(U.location.pathname).concat(U.location.hash).concat(U.location.search),t="".concat(U.location.origin).concat(e);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){var r=this._throttledAddEvent(e,t);if(r===rV){var n=tG({category:"replay.throttled"});this.addUpdate(()=>!rd(this,{type:5,timestamp:n.timestamp||0,data:{tag:"breadcrumb",payload:n,metric:!0}}))}return r}getCurrentRoute(){var e=this.lastActiveSpan||(0,_.Bk)(),t=e&&(0,_.zU)(e),r=(t&&(0,_.et)(t).data||{})[R.i_];if(t&&r&&["route","custom"].includes(r))return(0,_.et)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function(e){var{useCompression:t,workerUrl:r}=e;if(t&&window.Worker){var n=function(e){try{var t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){var e;return e=new Blob(['
vendor: 10,329 bytes, line 1
1var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
1']),URL.createObjectURL(e)}return""}();if(!t)return;var r=new Worker(t);return new rt(r)}catch(e){}}(r);if(n)return n}return new t7}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){var t=this._options.errorSampleRate>0,r=rc({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;var e=this.session;return!ru(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}_refreshSession(e){var t=this;return(0,l.A)(function*(){t._isEnabled&&(yield t.stop({reason:"refresh session"}),t.initializeSampling(e.id))})()}_addListeners(){try{U.document.addEventListener("visibilitychange",this._handleVisibilityChange),U.addEventListener("blur",this._handleWindowBlur),U.addEventListener("focus",this._handleWindowFocus),U.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){var t,r,n=(0,S.KU)();(0,L.i)(t=>{if(e.isEnabled()){var r=function(e){var{target:t,message:r}=function(e){var t,r="click"===e.name,n=null;try{n=r?tj(e.event):tH(e.event),t=(0,p.Hd)(n,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:n,message:t}}(e);return tG(B({category:"ui.".concat(e.name)},t$(t,r)))}(t);if(r){var n,i,a="click"===t.name,s=a?t.event:void 0;!a||!e.clickDetector||null==s||!s.target||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(n=e.clickDetector,i=tj(t.event),n.handleClick(r,i)),tz(e,r)}}}),(0,P._)(t=>{if(e.isEnabled()){var r=function(e){var{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(rS(e,[r]),!1)))}}),(t=(0,S.KU)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(e.isEnabled()&&ry(t)){var r,n=(r=t,!ry(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){var t,r=null==(t=e.data)?void 0:t.arguments;if(!Array.isArray(r)||0===r.length)return tG(e);var n=!1,i=r.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,"".concat(e.slice(0,5e3),"…")):e;if("object"==typeof e)try{var t=(0,d.S8)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,"".concat(JSON.stringify(t,null,2).slice(0,5e3),"…");return t}catch(e){}return e});return tG(B(B({},e),{},{data:B(B({},e.data),{},{arguments:i},n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}(r):tG(r));n&&tz(e,n)}})(e,t));var i=(0,S.KU)();try{var{networkDetailAllowUrls:a,networkDetailDenyUrls:s,networkCaptureBodies:o,networkRequestHeaders:u,networkResponseHeaders:c}=e.getOptions(),h={replay:e,networkDetailAllowUrls:a,networkDetailDenyUrls:s,networkCaptureBodies:o,networkRequestHeaders:u,networkResponseHeaders:c};i&&i.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i,a,s;n=t,"xhr"===n.category&&(i=r,null==i?void 0:i.xhr)&&(!function(e,t){var{xhr:r,input:n}=t;if(r){var i=rb(n),a=r.getResponseHeader("content-length")?rw(r.getResponseHeader("content-length")):function(e,t){try{var r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return rb(r)}catch(e){return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}}(t,r),function(e,t,r){rP.apply(this,arguments)}(t,r,e)),a=t,"fetch"===a.category&&(s=r,null==s?void 0:s.response)&&(!function(e,t){var{input:r,response:n}=t,i=rb(r?(0,D.Gv)(r):void 0),a=n?rw(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,r),function(e,t,r){rT.apply(this,arguments)}(t,r,e))}catch(e){}})(h,e,t))}catch(e){}var f=Object.assign((t,r)=>
1{if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!rm(t)&&!rv(t))return t;if(!e.checkAndHandleExpiredSession())return rg(),t;if(rv(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:e$.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&&null!=(i=t.exception)&&null!=(i=i.values)&&i.length&&null!=(a=r.originalException)&&a.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;var n,i,a,s="buffer"===e.recordingMode&&t.message!==W&&!!t.exception&&!t.type&&rn(e.getOptions().errorSampleRate);if((s||"session"===e.recordingMode)&&(t.tags=B(B({},t.tags),{},{replayId:e.getSessionId()})),s&&"buffer"===e.recordingMode&&(null==(n=e.session)?void 0:n.sampled)==="buffer"){var o=e.session;o.dirty=!0,e.getOptions().stickySession&&ri(o)}return t},{id:"Replay"});(0,y.SA)(f),n&&(n.on("beforeSendEvent",t=>{var r,n,i,a;e.isEnabled()&&!t.type&&(r=e,n=t,a=null==(i=n.exception)||null==(i=i.values)||null==(i=i[0])?void 0:i.value,"string"==typeof a&&(a.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||a.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&tz(r,tG({category:"replay.hydrate-error",data:{url:(0,p.$N)()}})))}),n.on("afterSendEvent",(t,r)=>{if(e.isEnabled()&&(!t.type||rm(t))){var n,i,a,s,o=r.statusCode;if(o&&!(o<200)&&!(o>=300)){if(rm(t)){return void(n=e,i=t,s=n.getContext(),null!=(a=i.contexts)&&null!=(a=a.trace)&&a.trace_id&&s.traceIds.size<100&&s.traceIds.add(i.contexts.trace.trace_id))}!function(e,t){var r,n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"===e.recordingMode&&null!=(r=t.tags)&&r.replayId){var{beforeErrorSampling:i}=e.getOptions();("function"!=typeof i||i(t))&&(0,O.wg)((0,l.A)(function*(){try{yield e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}}(e,t)}}}),n.on("createDsc",t=>{var r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),n.on("spanStart",t=>{e.lastActiveSpan=t}),n.on("spanEnd",t=>{e.lastActiveSpan=t}),n.on("beforeSendFeedback",(r=(0,l.A)(function*(t,r){var n,i=e.getSessionId();null!=r&&r.includeReplay&&e.isEnabled()&&i&&null!=(n=t.contexts)&&n.feedback&&("api"===t.contexts.feedback.source&&(yield e.sendBufferedReplayOrFlush()),t.contexts.feedback.replay_id=i)}),function(e,t){return r.apply(this,arguments)})),n.on("openFeedbackWidget",(0,l.A)(function*(){yield e.sendBufferedReplayOrFlush()})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r(e){var{entries:r}=e;r.forEach(t)}var n=[];return["navigation","paint","resource"].forEach(e=>{n.push((0,A.wv)(e,r))}),n.push((0,A.Pt)(tZ(t2,e)),(0,A.a9)(tZ(t3,e)),(0,A.hT)(tZ(t5,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{U.document.removeEventListener("visibilitychange",this._handleVisibilityChange),U.removeEventListener("blur",this._handleWindowBlur),U.removeEventListener("focus",this._handleWindowFocus),U.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||rl(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}_updateSessionActivity(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:e$.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){var e=this.performanceEntries.map(t0).filter(
1Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){var t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(rS(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){var{session:e,eventBuffer:t}=this;if(e&&t&&!this._requiresManualStart&&!e.segmentId){var r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}}_popEventContext(){var 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}_runFlush(){var e=this;return(0,l.A)(function*(){var t=e.getSessionId();if(e.session&&e.eventBuffer&&t&&(yield e._addPerformanceEntries(),null!=(s=e.eventBuffer)&&s.hasEvents)){if((yield function(e){return rF.apply(this,arguments)}(e),e.eventBuffer)&&t===e.getSessionId())try{e._updateInitialTimestampFromEventBuffer();var r=Date.now();if(r-e._context.initialTimestamp>e._options.maxReplayDuration+3e4)throw new rH;var n=e._popEventContext(),i=e.session.segmentId++;e._maybeSaveSession();var a=yield e.eventBuffer.finish();yield rq({replayId:t,recordingData:a,segmentId:i,eventContext:n,session:e.session,timestamp:r,onError:t=>e.handleException(t)})}catch(t){e.handleException(t),e.stop({reason:"sendReplay"});var s,o=(0,S.KU)();o&&o.recordDroppedEvent(t instanceof rj?"ratelimit_backoff":t instanceof rH?"invalid":"send_error","replay")}}})()}_flush(){var e=arguments,t=this;return(0,l.A)(function*(){var{force:r=!1}=e.length>0&&void 0!==e[0]?e[0]:{};if(t._isEnabled||r){if(t.checkAndHandleExpiredSession()&&t.session){var n=t.session.started,i=Date.now()-n;t._debouncedFlush.cancel();var a=i<t._options.minReplayDuration,s=i>t._options.maxReplayDuration+5e3;if(a||s){a&&t._debouncedFlush();return}var o=t.eventBuffer;o&&0===t.session.segmentId&&o.hasCheckout;var l=!!t._flushLock;t._flushLock||(t._flushLock=t._runFlush());try{yield t._flushLock}catch(e){t.handleException(e)}finally{t._flushLock=void 0,l&&t._debouncedFlush()}}}})()}_maybeSaveSession(){this.session&&this._options.stickySession&&ri(this.session)}_onMutationHandler(e){var{ignoreMutations:t}=this._options._experiments;if(null!=t&&t.length&&e.some(e=>{var r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e.target),n=t.join(",");return null==r?void 0:r.matches(n)}))return!1;var r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=n&&r>n;if(r>i||a){var s=tG({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(s)}return!a||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function rG(e,t){return[...e,...t].join(",")}var rY='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',rX=["content-length","content-type","accept"],r$=Symbol.for("sentry__originalRequestBody"),rQ=!1,rZ=!1,r0=e=>new r1(e);class r1{constructor(){var{flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:a=!0,workerUrl:s,_experiments:o={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:v=[],networkCaptureBodies:y=!0,networkRequestHeaders:g=[],networkResponseHeaders:S=[],mask:_=[],maskAttributes:b=["title","placeholder","aria-label"],unmask:w=[],block:k=[],unblock:E=[],ignore:M=[],maskFn:I,beforeAddRecordingEvent:C,beforeErrorSampling:R,onError:x,attachRawBodyFromRequest:O=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name="Replay";var A=function(e){var{mask:t,unmask:r,block:n,unblock:i,ignore:a}=e;return{maskTextSelector:rG(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:rG(r,[]),blockSelector:rG(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
1([src])"]),unblockSelector:rG(i,[]),ignoreSelector:rG(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:_,unmask:w,block:k,unblock:E,ignore:M});if(this._recordingOptions=B(B({maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,r)=>(function(e){var{el:t,key:r,maskAttributes:n,maskAllText:i,privacyOptions:a,value:s}=e;return!i||a.unmaskTextSelector&&t.matches(a.unmaskTextSelector)?s:n.includes(r)||"value"===r&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s})({maskAttributes:b,maskAllText:l,privacyOptions:A,key:e,value:t,el:r})},A),{},{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}},recordCrossOriginIframes:!!o.recordCrossOriginIframes}),this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:a,workerUrl:s,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:v,networkCaptureBodies:y,networkRequestHeaders:r2(g),networkResponseHeaders:r2(S),beforeAddRecordingEvent:C,beforeErrorSampling:R,onError:x,attachRawBodyFromRequest:O,_experiments:o},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(rY):rY,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,T.B)())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return rQ}set _isInitialized(e){rQ=e}afterAllSetup(e){(0,T.B)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u">typeof Request&&!rZ){var e=Request;try{var t=function(t,r){var n=new e(t,r);return(null==r?void 0:r.body)!=null&&(n[r$]=r.body),n};t.prototype=e.prototype,c.O.Request=t,rZ=!0}catch(e){}}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){var t;if(null!=(t=this._replay)&&t.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){var e;if(null!=(e=this._replay)&&e.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t,r,n,i,a,s=(t=this._initialOptions,r=e.getOptions(),n=B({sessionSampleRate:0,errorSampleRate:0},t),i=(0,x.i)(r.replaysSessionSampleRate),a=(0,x.i)(r.replaysOnErrorSampleRate),null==i&&null==a&&(0,v.pq)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=a&&(n.errorSampleRate=a),n);this._replay=new rJ({options:s,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{var t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function r2(e){return[...rX,...e.map(e=>e.toLowerCase())]}}}]);

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.