1(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+c/M":function(e,t,n){"use strict";n.r(t),n.d(t,"getReplay",(function(){return ja})),n.d(t,"replayIntegration",(function(){return Aa}));var r=n("hIC6"),a=n("cjYh"),i=n("drRF"),o=n("HbNa"),s=n("CR4f"),c=n("G4gl"),u=n("boFq"),l=n("UOES"),d=n("kP6P"),f=n("FVOd"),p=n("Aj9O"),h=n.n(p),m=(n("Sn0d"),n("Y4i6"),n("Mtrc"),n("1KqD"),n("LgnR"),n("BeuM"),n("/osc")),v=n("L/b5"),y=n("4qrM"),g=n("tZYJ"),k=n("DxwG"),b=n("y1Pb"),S=n("rIl5"),w=n("tx0l"),_=n("VkfB"),E=n("8eZ7"),x=n("KBts"),I=n("gXR+"),C=n("bfrv"),O=n("GmzD"),T=n("VOeb"),M=n("O3E1"),R=n("LCrG"),A=n("mYQj"),D=n("Jv1A"),N=n("mhLB"),j=n("OYyl"),L=n("NAoQ"),F=n("fLLH"),P=n("mS+g"),B=n("CszS"),U=n("Wj1H"),z=n("eQUw"),W=n("8Fe4"),H=n("vE/2");function q(e,t,n){return t=Object(i.a)(t),Object(a.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(i.a)(e).constructor):t.apply(e,n))}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){Object(l.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return J(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var G,X=y.a;function $(e,t){return null!=e?e:t()}function Q(e){for(var t=void 0,n=e[0],r=1;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i((function(){for(var e,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=n).call.apply(e,[t].concat(a))})),t=void 0)}return n}function Z(e){var t=Q([e,"optionalAccess",function(e){return e.host}]);return Boolean(Q([t,"optionalAccess",function(e){return e.shadowRoot}])===e)}function ee(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function te(e){try{var t=e.rules||e.cssRules;return t?((n=Array.from(t,ne).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n):null}catch(r){return null}var n}function ne(e){var t;if(function(e){return"styleSheet"in e}(e))try{t=te(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var n=["@import","url(".concat(JSON.stringify(e.href),")")];return""===e.layerName?n.push("layer"):e.layerName&&n.push("layer(".concat(e.layerName,")")),e.supportsText&&n.push("supports(".concat(e.supportsText,")")),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(i){}else if(function(e){return"selectorText"in e}(e)){var n=e.cssText,r=e.selectorText.includes(":"),a="string"==typeof e.style.all&&e.style.all;if(a&&(n=function(e){for(var t="",n=0;n<e.style.length;n++){var r=e.style,a=r[n],i=r.getPropertyPriority(a);t+="".concat(a,":").concat(r.getPropertyValue(a)).concat(i?" !important":"",";")}return"".concat(e.selectorText," { ").concat(t," }")}(e)),r&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||a)return n}return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(G||(G={}));var re=function(){return Object(f.a)((function e(){Object(d.a)(this,e),this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}),[{key:"getId",value:function(e){return e?$(Q([this,"access",function(e){return e.getMeta},"call",function(t){return t(e)},"optionalAccess",function(e){return e.id}]),(function(){return-1})):-1}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,n=this.getId(e);
1this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var n=this.getNode(e);if(n){var r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}])}();function ae(e){var t=e.maskInputOptions,n=e.tagName,r=e.type;return"OPTION"===n&&(n="SELECT"),Boolean(t[n.toLowerCase()]||r&&t[r]||"password"===r||"INPUT"===n&&!r&&t.text)}function ie(e){var t=e.isMasked,n=e.element,r=e.value,a=e.maskInputFn,i=r||"";return t?(a&&(i=a(i,n)),"*".repeat(i.length)):i}function oe(e){return e.toLowerCase()}function se(e){return e.toUpperCase()}function ce(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?oe(t):null}function ue(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function le(e,t){var n;try{n=new URL(e,$(t,(function(){return window.location.href})))}catch(r){return null}return $(Q([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",function(e){return e[1]}]),(function(){return null}))}var de={};function fe(e){var t=de[e];if(t)return t;var n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{var a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a);var i=a.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(a)}catch(o){}return de[e]=r.bind(window)}function pe(){return fe("setTimeout").apply(void 0,arguments)}function he(){return fe("clearTimeout").apply(void 0,arguments)}function me(e){try{return e.contentDocument}catch(t){}}var ve,ye,ge=1,ke=new RegExp("[^a-z0-9-_:]");function be(){return ge++}var Se=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,we=/^(?:[a-z+]+:)?\/\//i,_e=/^www\..*/i,Ee=/^(data:)([^,]*),(.*)/i;function xe(e,t){return(e||"").replace(Se,(function(e,n,r,a,i,o){var s,c=r||i||o,u=n||a||"";if(!c)return e;if(we.test(c)||_e.test(c))return"url(".concat(u).concat(c).concat(u,")");if(Ee.test(c))return"url(".concat(u).concat(c).concat(u,")");if("/"===c[0])return"url(".concat(u).concat((s=t,(s.indexOf("//")>-1?s.split("/").slice(0,3).join("/"):s.split("/")[0]).split("?")[0]+c)).concat(u,")");var l=t.split("/"),d=c.split("/");l.pop();var f,p=Y(d);try{for(p.s();!(f=p.n()).done;){var h=f.value;"."!==h&&(".."===h?l.pop():l.push(h))}}catch(m){p.e(m)}finally{p.f()}return"url(".concat(u).concat(l.join("/")).concat(u,")")}))}var Ie=/^[^ \t\n\r\u000c]+/,Ce=/^[, \t\n\r\u000c]+/;var Oe=new WeakMap;function Te(e,t){return t&&""!==t.trim()?Re(e,t):t}function Me(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Re(e,t){var n=Oe.get(e);if(n||(n=e.createElement("a"),Oe.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Ae(e,t,n,r,a,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Te(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var r,a=e.exec(t.substring(n));return a?(r=a[0],n+=r.length,r):""}for(var a=[];r(Ce),!(n>=t.length);){var i=r(Ie);if(","===i.slice(-1))i=Te(e,i.substring(0,i.length-1)),a.push(i);else{var o="";i=Te(e,i);for(var s=!1;;){var c=t.charAt(n);if(""===c){a.push((i+o).trim());break}if(s)")"===c&&(s=!1);else{if(","===c){n+=1,a.push((i+o).trim());break}"("===c&&(s=!0)}o+=c,n+=1}}}return a.join(", ")}(e,r):"style"===n?xe(r,Re(e)):"object"===t&&"data"===n?Te(e,r):"function"==typeof i?i(n,r,a):r:Te(e,r):r}function De(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ne(e.parentNode,t,n,r+1):-1}function je(e,t){return function(n){var r=n;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 n=e.classList.length;n--;){var r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(a){return!1}}}
1function Le(e,t,n,r,a,i){try{var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){var s=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(s))return!0}var c=-1,u=-1;if(i){if((u=Ne(o,je(r,a)))<0)return!0;c=Ne(o,je(t,n),u>=0?u:1/0)}else{if((c=Ne(o,je(t,n)))<0)return!1;u=Ne(o,je(r,a),c>=0?c:1/0)}return c>=0?!(u>=0)||c<=u:!(u>=0)&&!!i}catch(l){}return!!i}function Fe(e,t){var n=t.doc,r=t.mirror,a=t.blockClass,i=t.blockSelector,o=t.unblockSelector,s=t.maskAllText,c=t.maskAttributeFn,u=t.maskTextClass,l=t.unmaskTextClass,d=t.maskTextSelector,f=t.unmaskTextSelector,p=t.inlineStylesheet,h=t.maskInputOptions,m=void 0===h?{}:h,v=t.maskTextFn,y=t.maskInputFn,g=t.dataURLOptions,k=void 0===g?{}:g,b=t.inlineImages,S=t.recordCanvas,w=t.keepIframeSrcFn,_=t.newlyAddedElement,E=void 0!==_&&_,x=function(e,t){if(!t.hasNode(e))return;var n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:G.Document,childNodes:[],compatMode:e.compatMode}:{type:G.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:G.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return function(e,t){for(var n,r=t.doc,a=t.blockClass,i=t.blockSelector,o=t.unblockSelector,s=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskAttributeFn,d=t.maskInputFn,f=t.dataURLOptions,p=void 0===f?{}:f,h=t.inlineImages,m=t.recordCanvas,v=t.keepIframeSrcFn,y=t.newlyAddedElement,g=void 0!==y&&y,k=t.rootId,b=(t.maskAllText,t.maskTextClass),S=t.unmaskTextClass,w=t.maskTextSelector,_=t.unmaskTextSelector,E=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var a=e.classList.length;a--;){var i=e.classList[a];if(t.test(i))return!0}if(n)return e.matches(n)}catch(o){}return!1}(e,a,i,o),x=function(e){if(e instanceof HTMLFormElement)return"form";var t=oe(e.tagName);return ke.test(t)?"div":t}(e),I={},C=e.attributes.length,O=0;O<C;O++){var T=e.attributes[O];T.name&&!De(x,T.name,T.value)&&(I[T.name]=Ae(r,x,oe(T.name),T.value,e,l))}if("link"===x&&s){var M=Array.from(r.styleSheets).find((function(t){return t.href===e.href})),R=null;M&&(R=te(M)),R&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=xe(R,M.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var A=te(e.sheet);A&&(I._cssText=xe(A,Re(r)))}if("input"===x||"textarea"===x||"select"===x||"option"===x){var D=e,N=ce(D),j=ue(D,se(x),N),L=D.checked;if("submit"!==N&&"button"!==N&&j){var F=Le(D,b,w,S,_,ae({type:N,tagName:se(x),maskInputOptions:u}));I.value=ie({isMasked:F,element:D,value:j,maskInputFn:d})}L&&(I.checked=L)}"option"===x&&(e.selected&&!u.select?I.selected=!0:delete I.selected);if("canvas"===x&&m)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var n=0;n<e.width;n+=50)for(var r=0;r<e.height;r+=50){var a=t.getImageData,i="__rrweb_original__"in a?a.__rrweb_original__:a;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((function(e){return 0!==e})))return!1}return!0})(e)||(I.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){var P=e.toDataURL(p.type,p.quality),B=r.createElement("canvas");B.width=e.width,B.height=e.height;var U=B.toDataURL(p.type,p.quality);P!==U&&(I.rr_dataURL=P)}if("img"===x&&h){ve||(ve=r.createElement("canvas"),ye=ve.getContext("2d"));var z=e,W=z.currentSrc||z.getAttribute("src")||"<unknown-src>",H=z.crossOrigin,q=function(){z.removeEventListener("load",q);try{ve.width=z.naturalWidth,ve.height=z.naturalHeight,ye.drawImage(z,0,0),I.rr_dataURL=ve.toDataURL(p.type,p.quality)}catch(e){if("anonymous"!==z.crossOrigin)return z.crossOrigin="anonymous",void(z.complete&&0!==z.naturalWidth?q():z.addEventListener("load",q));console.warn("Cannot inline img src=".concat(W,"! Error: ").concat(e))}"anonymous"===z.crossOrigin&&(H?I.crossOrigin=H:z.removeAttribute("crossorigin"))};
1z.complete&&0!==z.naturalWidth?q():z.addEventListener("load",q)}"audio"!==x&&"video"!==x||(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime);g||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop));if(E){var V=e.getBoundingClientRect(),K=V.width,Y=V.height;I={class:I.class,rr_width:"".concat(K,"px"),rr_height:"".concat(Y,"px")}}"iframe"!==x||v(I.src)||(E||me(e)||(I.rr_src=I.src),delete I.src);try{customElements.get(x)&&(n=!0)}catch(J){}return{type:G.Element,tagName:x,attributes:I,childNodes:[],isSVG:Me(e)||void 0,needBlock:E,rootId:k,isCustom:n}}(e,{doc:n,blockClass:a,blockSelector:i,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:y,dataURLOptions:k,inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:E,rootId:x,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){var n=t.maskAllText,r=t.maskTextClass,a=t.unmaskTextClass,i=t.maskTextSelector,o=t.unmaskTextSelector,s=t.maskTextFn,c=t.maskInputOptions,u=t.maskInputFn,l=t.rootId,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||Q([e,"access",function(e){return e.parentNode},"access",function(e){return e.sheet},"optionalAccess",function(e){return e.cssRules}])&&(f=te(e.parentNode.sheet))}catch(g){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(g),e)}f=xe(f,Re(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");var v=Le(e,r,i,a,o,n);p||h||m||!f||!v||(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*"));m&&f&&(c.textarea||v)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*"));if("OPTION"===d&&f){var y=ae({type:null,tagName:d,maskInputOptions:c});f=ie({isMasked:Le(e,r,i,a,o,y),element:e,value:f,maskInputFn:u})}return{type:G.Text,textContent:f||"",isStyle:p,rootId:l}}(e,{doc:n,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:v,maskInputOptions:m,maskInputFn:y,rootId:x});case e.CDATA_SECTION_NODE:return{type:G.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:G.Comment,textContent:e.textContent||"",rootId:x};default:return!1}}function Pe(e){return null==e?"":e.toLowerCase()}function Be(e,t){var n,r=t.doc,a=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.unblockSelector,c=t.maskAllText,u=t.maskTextClass,l=t.unmaskTextClass,d=t.maskTextSelector,f=t.unmaskTextSelector,p=t.skipChild,h=void 0!==p&&p,m=t.inlineStylesheet,v=void 0===m||m,y=t.maskInputOptions,g=void 0===y?{}:y,k=t.maskAttributeFn,b=t.maskTextFn,S=t.maskInputFn,w=t.slimDOMOptions,_=t.dataURLOptions,E=void 0===_?{}:_,x=t.inlineImages,I=void 0!==x&&x,C=t.recordCanvas,O=void 0!==C&&C,T=t.onSerialize,M=t.onIframeLoad,R=t.iframeLoadTimeout,A=void 0===R?5e3:R,D=t.onStylesheetLoad,N=t.stylesheetLoadTimeout,j=void 0===N?5e3:N,L=t.keepIframeSrcFn,F=void 0===L?function(){return!1}:L,P=t.newlyAddedElement,B=void 0!==P&&P,U=t.preserveWhiteSpace,z=void 0===U||U,W=Fe(e,{doc:r,mirror:a,blockClass:i,blockSelector:o,maskAllText:c,unblockSelector:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:k,maskTextFn:b,maskInputFn:S,dataURLOptions:E,inlineImages:I,recordCanvas:O,keepIframeSrcFn:F,newlyAddedElement:B});if(!W)return console.warn(e,"not serialized"),null;n=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===G.Comment)return!0;if(e.type===G.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"===le(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Pe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Pe(e.attributes.name)||"icon"===Pe(e.attributes.rel)||"apple-touch-icon"===Pe(e.attributes.rel)||"shortcut icon"===Pe(e.attributes.rel))))return!0;
1if("meta"===e.tagName){if(t.headMetaDescKeywords&&Pe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Pe(e.attributes.property).match(/^(og|twitter|fb):/)||Pe(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Pe(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Pe(e.attributes.name)||"googlebot"===Pe(e.attributes.name)||"bingbot"===Pe(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Pe(e.attributes.name)||"generator"===Pe(e.attributes.name)||"framework"===Pe(e.attributes.name)||"publisher"===Pe(e.attributes.name)||"progid"===Pe(e.attributes.name)||Pe(e.attributes.property).match(/^article:/)||Pe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Pe(e.attributes.name)||"yandex-verification"===Pe(e.attributes.name)||"csrf-token"===Pe(e.attributes.name)||"p:domain_verify"===Pe(e.attributes.name)||"verify-v1"===Pe(e.attributes.name)||"verification"===Pe(e.attributes.name)||"shopify-checkout-api-token"===Pe(e.attributes.name)))return!0}}return!1}(W,w)&&(z||W.type!==G.Text||W.isStyle||W.textContent.replace(/^\s+|\s+$/gm,"").length)?be():-2;var H=Object.assign(W,{id:n});if(a.add(e,H),-2===n)return null;T&&T(e);var q=!h;if(H.type===G.Element){q=q&&!H.needBlock,delete H.needBlock;var V=e.shadowRoot;V&&ee(V)&&(H.isShadowHost=!0)}if((H.type===G.Document||H.type===G.Element)&&q){w.headWhitespace&&H.type===G.Element&&"head"===H.tagName&&(z=!1);for(var K={doc:r,mirror:a,blockClass:i,blockSelector:o,maskAllText:c,unblockSelector:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:h,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:k,maskTextFn:b,maskInputFn:S,slimDOMOptions:w,dataURLOptions:E,inlineImages:I,recordCanvas:O,preserveWhiteSpace:z,onSerialize:T,onIframeLoad:M,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:j,keepIframeSrcFn:F},Y=0,J=Array.from(e.childNodes);Y<J.length;Y++){var X=Be(J[Y],K);X&&H.childNodes.push(X)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(var $=0,Q=Array.from(e.shadowRoot.childNodes);$<Q.length;$++){var te=Be(Q[$],K);te&&(ee(e.shadowRoot)&&(te.isShadow=!0),H.childNodes.push(te))}}return e.parentNode&&Z(e.parentNode)&&ee(e.parentNode)&&(H.isShadow=!0),H.type===G.Element&&"iframe"===H.tagName&&function(e,t,n){var r=e.contentWindow;if(r){var a,i=!1;try{a=r.document.readyState}catch(s){return}if("complete"===a){if("about:blank"!==r.location.href||"about:blank"===e.src||""===e.src)return pe(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var o=pe((function(){i||(t(),i=!0)}),n);e.addEventListener("load",(function(){he(o),i=!0,t()}))}}}(e,(function(){var t=me(e);if(t&&M){var n=Be(t,{doc:t,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:k,maskTextFn:b,maskInputFn:S,slimDOMOptions:w,dataURLOptions:E,inlineImages:I,recordCanvas:O,preserveWhiteSpace:z,onSerialize:T,onIframeLoad:M,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:j,keepIframeSrcFn:F});n&&M(e,n)}}),A),H.type===G.Element&&"link"===H.tagName&&"string"==typeof H.attributes.rel&&("stylesheet"===H.attributes.rel||"preload"===H.attributes.rel&&"string"==typeof H.attributes.href&&"css"===le(H.attributes.href))&&function(e,t,n){var r,a=!1;try{r=e.sheet}catch(o){return}if(!r){var i=pe((function(){a||(t(),a=!0)}),n);e.addEventListener("load",(function(){he(i),a=!0,t()}))}}(e,(function(){if(D){var t=Be(e,{doc:r,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:k,maskTextFn:b,maskInputFn:S,slimDOMOptions:w,dataURLOptions:E,inlineImages:I,recordCanvas:O,preserveWhiteSpace:z,onSerialize:T,onIframeLoad:M,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:j,keepIframeSrcFn:F});t&&D(e,t)}}),j),H}function Ue(e,t){var n=t||{},r=n.mirror,a=void 0===r?new re:r,i=n.blockClass,o=void 0===i?"rr-block":i,s=n.blockSelector,c=void 0===s?null:s,u=n.unblockSelector,l=void 0===u?null:u,d=n.maskAllText,f=void 0!==d&&d,p=n.maskTextClass,h=void 0===p?"rr-mask":p,m=n.unmaskTextClass,v=void 0===m?null:m,y=n.maskTextSelector,g=void 0===y?null:y,k=n.unmaskTextSelector,b=void 0===k?null:k,S=n.inlineStylesheet,w=void 0===S||S,_=n.inlineImages,E=void 0!==_&&_,x=n.recordCanvas,I=void 0!==x&&x,C=n.maskAllInputs,O=void 0!==C&&C,T=n.maskAttributeFn,M=n.maskTextFn,R=n.maskInputFn,A=n.slimDOM,D=void 0!==A&&A,N=n.dataURLOptions,j=n.preserveWhiteSpace,L=n.onSerialize,F=n.onIframeLoad,P=n.iframeLoadTimeout,B=n.onStylesheetLoad,U=n.stylesheetLoadTimeout,z=n.keepIframeSrcFn;return Be(e,{doc:e,mirror:a,blockClass:o,blockSelector:c,unblockSelector:l,maskAllText:f,maskTextClass:h,unmaskTextClass:v,maskTextSelector:g,unmaskTextSelector:b,skipChild:!1,inlineStylesheet:w,maskInputOptions:!0===O?{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===O?{}:O,maskAttributeFn:T,maskTextFn:M,maskInputFn:R,slimDOMOptions:!0===D||"all"===D?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===D,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
1:!1===D?{}:D,dataURLOptions:N,inlineImages:E,recordCanvas:I,preserveWhiteSpace:j,onSerialize:L,onIframeLoad:F,iframeLoadTimeout:P,onStylesheetLoad:B,stylesheetLoadTimeout:U,keepIframeSrcFn:void 0===z?function(){return!1}:z,newlyAddedElement:!1})}function ze(e){for(var t=void 0,n=e[0],r=1;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i((function(){for(var e,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=n).call.apply(e,[t].concat(a))})),t=void 0)}return n}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}var He="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.",qe={map:{},getId:function(){return console.error(He),-1},getNode:function(){return console.error(He),null},removeNodeFromMap:function(){console.error(He)},has:function(){return console.error(He),!1},reset:function(){console.error(He)}};function Ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,a=0;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var c=Date.now();a||!1!==n.leading||(a=c);var u=t-(c-a),l=this;u<=0||u>t?(r&&(ft(r),r=null),a=c,e.apply(l,o)):r||!1===n.trailing||(r=dt((function(){a=!1===n.leading?0:Date.now(),r=null,e.apply(l,o)}),u))}}function Ke(e,t,n){try{if(!(t in e))return function(){};var r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,function(){e[t]=r}}catch(i){return function(){}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(qe=new Proxy(qe,{get:function(e,t,n){return"map"===t&&console.error(He),Reflect.get(e,t,n)}}));var Ye=Date.now;function Je(e){var t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:ze([t,"optionalAccess",function(e){return e.documentElement},"access",function(e){return e.scrollLeft}])||ze([t,"optionalAccess",function(e){return e.body},"optionalAccess",function(e){return e.parentElement},"optionalAccess",function(e){return e.scrollLeft}])||ze([t,"optionalAccess",function(e){return e.body},"optionalAccess",function(e){return e.scrollLeft}])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:ze([t,"optionalAccess",function(e){return e.documentElement},"access",function(e){return e.scrollTop}])||ze([t,"optionalAccess",function(e){return e.body},"optionalAccess",function(e){return e.parentElement},"optionalAccess",function(e){return e.scrollTop}])||ze([t,"optionalAccess",function(e){return e.body},"optionalAccess",function(e){return e.scrollTop}])||0}}function Ge(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function $e(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Qe(e,t,n,r,a){if(!e)return!1;var i=$e(e);if(!i)return!1;var o=je(t,n);if(!a){var s=r&&i.matches(r);return o(i)&&!s}var c=Ne(i,o),u=-1;return!(c<0)&&(r&&(u=Ne(i,je(null,r))),c>-1&&u<0||c<u)}function Ze(e,t){return-2===t.getId(e)}function et(e){return Boolean(e.changedTouches)}function tt(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"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,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(!(0 in n))throw new TypeError("1 argument is required");do{if(e===a)return!0}while(a=a&&a.parentNode);return!1})}
1function nt(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function rt(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function at(e){return Boolean(ze([e,"optionalAccess",function(e){return e.shadowRoot}]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ye=function(){return(new Date).getTime()});var it=function(){return Object(f.a)((function e(){Object(d.a)(this,e),this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}),[{key:"getId",value:function(e){return Object(m.a)(this.styleIDMap.get(e),(function(){return-1}))}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n);var n}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}])}();function ot(e){var t=null;return ze([e,"access",function(e){return e.getRootNode},"optionalCall",function(e){return e()},"optionalAccess",function(e){return e.nodeType}])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function st(e){var t=e.ownerDocument;if(!t)return!1;var n=function(e){for(var t,n=e;t=ot(n);)n=t;return n}(e);return t.contains(n)}function ct(e){var t=e.ownerDocument;return!!t&&(t.contains(e)||st(e))}var ut={};function lt(e){var t=ut[e];if(t)return t;var n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{var a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a);var i=a.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(a)}catch(o){}return ut[e]=r.bind(window)}function dt(){return lt("setTimeout").apply(void 0,arguments)}function ft(){return lt("clearTimeout").apply(void 0,arguments)}var pt,ht,mt=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(mt||{}),vt=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(vt||{}),yt=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(yt||{}),gt=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(gt||{});function kt(e){try{return e.contentDocument}catch(t){}}function bt(e){for(var t=void 0,n=e[0],r=1;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i((function(){for(var e,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=n).call.apply(e,[t].concat(a))})),t=void 0)}return n}function St(e){return"__ln"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(pt||(pt={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(ht||(ht={}));var wt,_t=function(){return Object(f.a)((function e(){Object(d.a)(this,e),this.length=0,this.head=null,this.tail=null}),[{key:"get",value:function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=bt([t,"optionalAccess",function(e){return e.next}])||null;return t}},{key:"addNode",value:function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&St(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
1(n.previous=t)}else if(e.nextSibling&&St(e.nextSibling)&&e.nextSibling.__ln.previous){var r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}},{key:"removeNode",value:function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}])}(),Et=function(e,t){return"".concat(e,"@").concat(t)},xt=function(){return Object(f.a)((function e(){var t=this;Object(d.a)(this,e),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=function(e){e.forEach(t.processMutation),t.emit()},this.emit=function(){if(!t.frozen&&!t.locked){for(var e=[],n=new Set,r=new _t,a=function(e){for(var n=e,r=-2;-2===r;)r=(n=n&&n.nextSibling)&&t.mirror.getId(n);return r},i=function(i){if(i.parentNode&&ct(i)){var o=Z(i.parentNode)?t.mirror.getId(ot(i)):t.mirror.getId(i.parentNode),s=a(i);if(-1===o||-1===s)return r.addNode(i);var c=Be(i,{doc:t.doc,mirror:t.mirror,blockClass:t.blockClass,blockSelector:t.blockSelector,maskAllText:t.maskAllText,unblockSelector:t.unblockSelector,maskTextClass:t.maskTextClass,unmaskTextClass:t.unmaskTextClass,maskTextSelector:t.maskTextSelector,unmaskTextSelector:t.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskAttributeFn:t.maskAttributeFn,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,dataURLOptions:t.dataURLOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(e){nt(e,t.mirror)&&!Qe(e,t.blockClass,t.blockSelector,t.unblockSelector,!1)&&t.iframeManager.addIframe(e),rt(e,t.mirror)&&t.stylesheetManager.trackLinkElement(e),at(i)&&t.shadowDomManager.addShadowRoot(i.shadowRoot,t.doc)},onIframeLoad:function(e,n){Qe(e,t.blockClass,t.blockSelector,t.unblockSelector,!1)||(t.iframeManager.attachIframe(e,n),e.contentWindow&&t.canvasManager.addWindow(e.contentWindow),t.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:function(e,n){t.stylesheetManager.attachLinkElement(e,n)}});c&&(e.push({parentId:o,nextId:s,node:c}),n.add(c.id))}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());var o,s=Y(t.movedSet);try{for(s.s();!(o=s.n()).done;){var c=o.value;Ct(t.removes,c,t.mirror)&&!t.movedSet.has(c.parentNode)||i(c)}}catch(w){s.e(w)}finally{s.f()}var u,l=Y(t.addedSet);try{for(l.s();!(u=l.n()).done;){var d=u.value;Ot(t.droppedSet,d)||Ct(t.removes,d,t.mirror)?Ot(t.movedSet,d)?i(d):t.droppedSet.add(d):i(d)}}catch(w){l.e(w)}finally{l.f()}for(var f=null;r.length;){var p=null;if(f){var h=t.mirror.getId(f.value.parentNode),m=a(f.value);-1!==h&&-1!==m&&(p=f)}if(!p)for(var v=r.tail;v;){var y=v;if(v=v.previous,y){var g=t.mirror.getId(y.value.parentNode);if(-1===a(y.value))continue;if(-1!==g){p=y;break}var k=y.value;if(k.parentNode&&k.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var b=k.parentNode.host;if(-1!==t.mirror.getId(b)){p=y;break}}}}if(!p){for(;r.head;)r.removeNode(r.head.value);break}f=p.previous,r.removeNode(p.value),i(p.value)}var S={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return!n.has(e.id)})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){var n=e.attributes;if("string"==typeof n.style){var r=JSON.stringify(e.styleDiff),a=JSON.stringify(e._unchangedStyles);r.length<n.style.length&&(r+a).split("var(").length===n.style.split("var(").length&&(n.style=e.styleDiff)}return{id:t.mirror.getId(e.node),attributes:n}})).filter((function(e){return!n.has(e.id)})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};(S.texts.length||S.attributes.length||S.removes.length||S.adds.length)&&(t.texts=[],t.attributes=[],t.attributeMap=new WeakMap,t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(S))}},this.processMutation=function(e){if(!Ze(e.target,t.mirror))switch(e.type){case"characterData":var n=e.target.textContent;Qe(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!1)||n===e.oldValue||t.texts.push({value:Le(e.target,t.maskTextClass,t.maskTextSelector,t.unmaskTextClass,t.unmaskTextSelector,t.maskAllText)&&n?t.maskTextFn?t.maskTextFn(n,$e(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break;
1case"attributes":var r=e.target,a=e.attributeName,i=e.target.getAttribute(a);if("value"===a){var o=ce(r),s=r.tagName;i=ue(r,s,o);var c=ae({maskInputOptions:t.maskInputOptions,tagName:s,type:o});i=ie({isMasked:Le(e.target,t.maskTextClass,t.maskTextSelector,t.unmaskTextClass,t.unmaskTextSelector,c),element:r,value:i,maskInputFn:t.maskInputFn})}if(Qe(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!1)||i===e.oldValue)return;var u=t.attributeMap.get(e.target);if("IFRAME"===r.tagName&&"src"===a&&!t.keepIframeSrcFn(i)){if(kt(r))return;a="rr_src"}if(u||(u={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(u),t.attributeMap.set(e.target,u)),"type"===a&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!De(r.tagName,a)&&(u.attributes[a]=Ae(t.doc,oe(r.tagName),oe(a),i,r,t.maskAttributeFn),"style"===a)){if(!t.unattachedDoc)try{t.unattachedDoc=document.implementation.createHTMLDocument()}catch(k){t.unattachedDoc=t.doc}var l=t.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var d=0,f=Array.from(r.style);d<f.length;d++){var p=f[d],h=r.style.getPropertyValue(p),m=r.style.getPropertyPriority(p);h!==l.style.getPropertyValue(p)||m!==l.style.getPropertyPriority(p)?u.styleDiff[p]=""===m?h:[h,m]:u._unchangedStyles[p]=[h,m]}for(var v=0,y=Array.from(l.style);v<y.length;v++){var g=y[v];""===r.style.getPropertyValue(g)&&(u.styleDiff[g]=!1)}}break;case"childList":if(Qe(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!0))return;e.addedNodes.forEach((function(n){return t.genAdds(n,e.target)})),e.removedNodes.forEach((function(n){var r=t.mirror.getId(n),a=Z(e.target)?t.mirror.getId(e.target.host):t.mirror.getId(e.target);Qe(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!1)||Ze(n,t.mirror)||!function(e,t){return-1!==t.getId(e)}(n,t.mirror)||(t.addedSet.has(n)?(It(t.addedSet,n),t.droppedSet.add(n)):t.addedSet.has(e.target)&&-1===r||function e(t,n){if(Z(t))return!1;var r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,t.mirror)||(t.movedSet.has(n)&&t.movedMap[Et(r,a)]?It(t.movedSet,n):t.removes.push({parentId:a,id:r,isShadow:!(!Z(e.target)||!ee(e.target))||void 0})),t.mapRemoves.push(n))}))}},this.genAdds=function(e,n){if(!t.processedNodeManager.inOtherBuffer(e,t)&&!t.addedSet.has(e)&&!t.movedSet.has(e)){if(t.mirror.hasNode(e)){if(Ze(e,t.mirror))return;t.movedSet.add(e);var r=null;n&&t.mirror.hasNode(n)&&(r=t.mirror.getId(n)),r&&-1!==r&&(t.movedMap[Et(t.mirror.getId(e),r)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);Qe(e,t.blockClass,t.blockSelector,t.unblockSelector,!1)||(e.childNodes.forEach((function(e){return t.genAdds(e)})),at(e)&&e.shadowRoot.childNodes.forEach((function(n){t.processedNodeManager.add(n,t),t.genAdds(n,e)})))}}}),[{key:"init",value:function(e){var t=this;["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((function(n){t[n]=e[n]}))}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}])}();function It(e,t){e.delete(t),t.childNodes.forEach((function(t){return It(e,t)}))}function Ct(e,t,n){return 0!==e.length&&function(e,t,n){var r,a=t.parentNode,i=function(){var t=n.getId(a);if(e.some((function(e){return e.id===t})))return{v:!0};a=a.parentNode};for(;a;)if(r=i())return r.v;return!1}(e,t,n)}function Ot(e,t){return 0!==e.size&&function e(t,n){var r=n.parentNode;if(!r)return!1;if(t.has(r))return!0;return e(t,r)}(e,t)}function Tt(e){wt=e}function Mt(){wt=void 0}var Rt=function(e){if(!wt)return e;return function(){try{return e.apply(void 0,arguments)}catch(t){if(wt&&!0===wt(t))return function(){};throw t}}};function At(e){for(var t=void 0,n=e[0],r=1;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i((function(){for(var e,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=n).call.apply(e,[t].concat(a))})),t=void 0)}return n}var Dt=[];function Nt(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(n){}return e&&e.target}function jt(e,t){var n=new xt;Dt.push(n),n.init(e);var r=window.MutationObserver||window.__rrMutationObserver,a=At([window,"optionalAccess",function(e){return e.Zone},"optionalAccess",function(e){return e.__symbol__},"optionalCall",function(e){return e("MutationObserver")}]);
1a&&window[a]&&(r=window[a]);var i=new r(Rt((function(t){e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Lt(e){var t=e.mousemoveCb,n=e.sampling,r=e.doc,a=e.mirror;if(!1===n.mousemove)return function(){};var i,o="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],u=Ve(Rt((function(e){var n=Date.now()-i;t(c.map((function(e){return e.timeOffset-=n,e})),e),c=[],i=null})),s),l=Rt(Ve(Rt((function(e){var t=Nt(e),n=et(e)?e.changedTouches[0]:e,r=n.clientX,o=n.clientY;i||(i=Ye()),c.push({x:r,y:o,id:a.getId(t),timeOffset:Ye()-i}),u("undefined"!=typeof DragEvent&&e instanceof DragEvent?vt.Drag:e instanceof MouseEvent?vt.MouseMove:vt.TouchMove)})),o,{trailing:!1})),d=[We("mousemove",l,r),We("touchmove",l,r),We("drag",l,r)];return Rt((function(){d.forEach((function(e){return e()}))}))}function Ft(e){var t=e.mouseInteractionCb,n=e.doc,r=e.mirror,a=e.blockClass,i=e.blockSelector,o=e.unblockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var c=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[],l=null;return Object.keys(yt).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==c[e]})).forEach((function(e){var s=oe(e),c=function(e){return function(n){var s=Nt(n);if(!Qe(s,a,i,o,!0)){var c=null,u=e;if("pointerType"in n){switch(n.pointerType){case"mouse":c=gt.Mouse;break;case"touch":c=gt.Touch;break;case"pen":c=gt.Pen}c===gt.Touch?yt[e]===yt.MouseDown?u="TouchStart":yt[e]===yt.MouseUp&&(u="TouchEnd"):gt.Pen}else et(n)&&(c=gt.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===gt.Touch||u.startsWith("Mouse")&&c===gt.Mouse)&&(c=null)):yt[e]===yt.Click&&(c=l,l=null);var d=et(n)?n.changedTouches[0]:n;if(d){var f=r.getId(s),p=d.clientX,h=d.clientY;Rt(t)(K({type:yt[u],id:f,x:p,y:h},null!==c&&{pointerType:c}))}}}}(e);if(window.PointerEvent)switch(yt[e]){case yt.MouseDown:case yt.MouseUp:s=s.replace("mouse","pointer");break;case yt.TouchStart:case yt.TouchEnd:return}u.push(We(s,c,n))})),Rt((function(){u.forEach((function(e){return e()}))}))}function Pt(e){var t=e.scrollCb,n=e.doc,r=e.mirror,a=e.blockClass,i=e.blockSelector,o=e.unblockSelector,s=e.sampling;return We("scroll",Rt(Ve(Rt((function(e){var s=Nt(e);if(s&&!Qe(s,a,i,o,!0)){var c=r.getId(s);if(s===n&&n.defaultView){var u=Je(n.defaultView);t({id:c,x:u.left,y:u.top})}else t({id:c,x:s.scrollLeft,y:s.scrollTop})}})),s.scroll||100)),n)}function Bt(e,t){var n=e.viewportResizeCb,r=t.win,a=-1,i=-1;return We("resize",Rt(Ve(Rt((function(){var e=Ge(),t=Xe();a===e&&i===t||(n({width:Number(t),height:Number(e)}),a=e,i=t)})),200)),r)}var Ut=["INPUT","TEXTAREA","SELECT"],zt=new WeakMap;function Wt(e){var t=e.inputCb,n=e.doc,r=e.mirror,a=e.blockClass,i=e.blockSelector,o=e.unblockSelector,s=e.ignoreClass,c=e.ignoreSelector,l=e.maskInputOptions,d=e.maskInputFn,f=e.sampling,p=e.userTriggeredOnInput,h=e.maskTextClass,m=e.unmaskTextClass,v=e.maskTextSelector,y=e.unmaskTextSelector;function g(e){var t=Nt(e),r=e.isTrusted,u=t&&se(t.tagName);if("OPTION"===u&&(t=t.parentElement),t&&u&&!(Ut.indexOf(u)<0)&&!Qe(t,a,i,o,!0)){var f=t;if(!(f.classList.contains(s)||c&&f.matches(c))){var g=ce(t),b=ue(f,u,g),S=!1,w=ae({maskInputOptions:l,tagName:u,type:g}),_=Le(t,h,v,m,y,w);"radio"!==g&&"checkbox"!==g||(S=t.checked),b=ie({isMasked:_,element:t,value:b,maskInputFn:d}),k(t,p?{text:b,isChecked:S,userTriggered:r}:{text:b,isChecked:S});var E=t.name;"radio"===g&&E&&S&&n.querySelectorAll('input[type="radio"][name="'.concat(E,'"]')).forEach((function(e){if(e!==t){var n=ie({isMasked:_,element:e,value:ue(e,u,g),maskInputFn:d});k(e,p?{text:n,isChecked:!S,userTriggered:!1}:{text:n,isChecked:!S})}}))}}}function k(e,n){var a=zt.get(e);if(!a||a.text!==n.text||a.isChecked!==n.isChecked){zt.set(e,n);var i=r.getId(e);Rt(t)(K(K({},n),{},{id:i}))}}var b=("last"===f.input?["change"]:["input","change"]).map((function(e){return We(e,Rt(g),n)})),S=n.defaultView;if(!S)return function(){b.forEach((function(e){return e()}))};var w=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),_=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[
1S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&b.push.apply(b,Object(u.a)(_.map((function(e){return function e(t,n,r,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,o=i.Object.getOwnPropertyDescriptor(t,n);return i.Object.defineProperty(t,n,a?r:{set:function(e){var t=this;dt((function(){r.set.call(t,e)}),0),o&&o.set&&o.set.call(this,e)}}),function(){return e(t,n,o||{},!0)}}(e[0],e[1],{set:function(){Rt(g)({target:this,isTrusted:!1})}},!1,S)})))),Rt((function(){b.forEach((function(e){return e()}))}))}function Ht(e){return function(e,t){if(Zt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Zt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Zt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Zt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function qt(e,t,n){var r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function Vt(e,t){var n=e.styleSheetRuleCb,r=e.mirror,a=e.stylesheetManager,i=t.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var o=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Rt((function(e,t,i){var o=Object(c.a)(i,2),s=o[0],u=o[1],l=qt(t,r,a.styleMirror),d=l.id,f=l.styleId;return(d&&-1!==d||f&&-1!==f)&&n({id:d,styleId:f,adds:[{rule:s,index:u}]}),e.apply(t,i)}))});var s,l,d=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(d,{apply:Rt((function(e,t,i){var o=Object(c.a)(i,1)[0],s=qt(t,r,a.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&n({id:u,styleId:l,removes:[{index:o}]}),e.apply(t,i)}))}),i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Rt((function(e,t,i){var o=Object(c.a)(i,1)[0],s=qt(t,r,a.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&n({id:u,styleId:l,replace:o}),e.apply(t,i)}))})),i.CSSStyleSheet.prototype.replaceSync&&(l=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:Rt((function(e,t,i){var o=Object(c.a)(i,1)[0],s=qt(t,r,a.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&n({id:u,styleId:l,replaceSync:o}),e.apply(t,i)}))}));var f={};en("CSSGroupingRule")?f.CSSGroupingRule=i.CSSGroupingRule:(en("CSSMediaRule")&&(f.CSSMediaRule=i.CSSMediaRule),en("CSSConditionRule")&&(f.CSSConditionRule=i.CSSConditionRule),en("CSSSupportsRule")&&(f.CSSSupportsRule=i.CSSSupportsRule));var p={};return Object.entries(f).forEach((function(e){var t=Object(c.a)(e,2),i=t[0],o=t[1];p[i]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(p[i].insertRule,{apply:Rt((function(e,t,i){var o=Object(c.a)(i,2),s=o[0],l=o[1],d=qt(t.parentStyleSheet,r,a.styleMirror),f=d.id,p=d.styleId;return(f&&-1!==f||p&&-1!==p)&&n({id:f,styleId:p,adds:[{rule:s,index:[].concat(Object(u.a)(Ht(t)),[l||0])}]}),e.apply(t,i)}))}),o.prototype.deleteRule=new Proxy(p[i].deleteRule,{apply:Rt((function(e,t,i){var o=Object(c.a)(i,1)[0],s=qt(t.parentStyleSheet,r,a.styleMirror),l=s.id,d=s.styleId;return(l&&-1!==l||d&&-1!==d)&&n({id:l,styleId:d,removes:[{index:[].concat(Object(u.a)(Ht(t)),[o])}]}),e.apply(t,i)}))})})),Rt((function(){i.CSSStyleSheet.prototype.insertRule=o,i.CSSStyleSheet.prototype.deleteRule=d,s&&(i.CSSStyleSheet.prototype.replace=s),l&&(i.CSSStyleSheet.prototype.replaceSync=l),Object.entries(f).forEach((function(e){var t=Object(c.a)(e,2),n=t[0],r=t[1];r.prototype.insertRule=p[n].insertRule,r.prototype.deleteRule=p[n].deleteRule}))}))}function Kt(e,t){var n=e.mirror,r=e.stylesheetManager,a=null;a="#document"===t.nodeName?n.getId(t):n.getId(t.host);var i="#document"===t.nodeName?At([t,"access",function(e){return e.defaultView},"optionalAccess",function(e){return e.Document}]):At([t,"access",function(e){return e.ownerDocument},"optionalAccess",function(e){return e.defaultView},"optionalAccess",function(e){return e.ShadowRoot}]),o=At([i,"optionalAccess",function(e){return e.prototype}])?Object.getOwnPropertyDescriptor(At([i,"optionalAccess",function(e){return e.prototype}]),"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&i&&o?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:function(){var e=this;return At([o,"access",function(e){return e.get},"optionalAccess",function(e){return e.call},"call",function(t){return t(e)}])},set:function(e){var t=this,n=At([o,"access",function(e){return e.set},"optionalAccess",function(e){return e.call},"call",function(n){return n(t,e)}]);if(null!==a&&-1!==a)try{r.adoptStyleSheets(e,a)}catch(i){}return n}}),Rt((function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):function(){}}function Yt(e,t){var n=e.styleDeclarationCb,r=e.mirror,a=e.ignoreCSSAttributes,i=e.stylesheetManager,o=t.win,s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Rt((function(e,t,o){var u=Object(c.a)(o,3),l=u[0],d=u[1],f=u[2];if(a.has(l))return s.apply(t,[l,d,f]);var p=qt(At([t,"access",function(e){return e.parentRule},"optionalAccess",function(e){return e.parentStyleSheet}]),r,i.styleMirror),h=p.id,m=p.styleId;
1return(h&&-1!==h||m&&-1!==m)&&n({id:h,styleId:m,set:{property:l,value:d,priority:f},index:Ht(t.parentRule)}),e.apply(t,o)}))});var u=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:Rt((function(e,t,o){var s=Object(c.a)(o,1)[0];if(a.has(s))return u.apply(t,[s]);var l=qt(At([t,"access",function(e){return e.parentRule},"optionalAccess",function(e){return e.parentStyleSheet}]),r,i.styleMirror),d=l.id,f=l.styleId;return(d&&-1!==d||f&&-1!==f)&&n({id:d,styleId:f,remove:{property:s},index:Ht(t.parentRule)}),e.apply(t,o)}))}),Rt((function(){o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=u}))}function Jt(e){var t=e.mediaInteractionCb,n=e.blockClass,r=e.blockSelector,a=e.unblockSelector,i=e.mirror,o=e.sampling,s=e.doc,c=Rt((function(e){return Ve(Rt((function(o){var s=Nt(o);if(s&&!Qe(s,n,r,a,!0)){var c=s.currentTime,u=s.volume,l=s.muted,d=s.playbackRate;t({type:e,id:i.getId(s),currentTime:c,volume:u,muted:l,playbackRate:d})}})),o.media||500)})),u=[We("play",c(0),s),We("pause",c(1),s),We("seeked",c(2),s),We("volumechange",c(3),s),We("ratechange",c(4),s)];return Rt((function(){u.forEach((function(e){return e()}))}))}function Gt(e){var t=e.fontCb,n=e.doc,r=n.defaultView;if(!r)return function(){};var a=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,n){var r=new o(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};var s=Ke(n.fonts,"add",(function(e){return function(n){return dt(Rt((function(){var e=i.get(n);e&&(t(e),i.delete(n))})),0),e.apply(this,[n])}}));return a.push((function(){r.FontFace=o})),a.push(s),Rt((function(){a.forEach((function(e){return e()}))}))}function Xt(e){var t=e.doc,n=e.mirror,r=e.blockClass,a=e.blockSelector,i=e.unblockSelector,o=e.selectionCb,s=!0,c=Rt((function(){var e=t.getSelection();if(!(!e||s&&At([e,"optionalAccess",function(e){return e.isCollapsed}]))){s=e.isCollapsed||!1;for(var c=[],u=e.rangeCount||0,l=0;l<u;l++){var d=e.getRangeAt(l),f=d.startContainer,p=d.startOffset,h=d.endContainer,m=d.endOffset;Qe(f,r,a,i,!0)||Qe(h,r,a,i,!0)||c.push({start:n.getId(f),startOffset:p,end:n.getId(h),endOffset:m})}o({ranges:c})}}));return c(),We("selectionchange",c)}function $t(e){var t=e.doc,n=e.customElementCb,r=t.defaultView;return r&&r.customElements?Ke(r.customElements,"define",(function(e){return function(t,r,a){try{n({define:{name:t}})}catch(i){}return e.apply(this,[t,r,a])}})):function(){}}function Qt(e){var t,n=e.doc.defaultView;if(!n)return function(){};e.recordDOM&&(t=jt(e,e.doc));var r=Lt(e),a=Ft(e),i=Pt(e),o=Bt(e,{win:n}),s=Wt(e),c=Jt(e),u=function(){},l=function(){},d=function(){},f=function(){};e.recordDOM&&(u=Vt(e,{win:n}),l=Kt(e,e.doc),d=Yt(e,{win:n}),e.collectFonts&&(f=Gt(e)));var p,h=Xt(e),m=$t(e),v=[],y=Y(e.plugins);try{for(y.s();!(p=y.n()).done;){var g=p.value;v.push(g.observer(g.callback,n,g.options))}}catch(k){y.e(k)}finally{y.f()}return Rt((function(){Dt.forEach((function(e){return e.reset()})),At([t,"optionalAccess",function(e){return e.disconnect},"call",function(e){return e()}]),r(),a(),i(),o(),s(),c(),u(),l(),d(),f(),h(),m(),v.forEach((function(e){return e()}))}))}function Zt(e){return void 0!==window[e]}function en(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var tn=function(){return Object(f.a)((function e(t){Object(d.a)(this,e),this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}),[{key:"getId",value:function(e,t,n,r){var a=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e),o=a.get(t);return o||(o=this.generateIdFn(),a.set(t,o),i.set(o,t)),o}},{key:"getIds",value:function(e,t){var n=this,r=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return t.map((function(t){return n.getId(e,t,r,a)}))}},{key:"getRemoteId",value:function(e,t,n){var r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var a=r.get(t);return a||-1}},{key:"getRemoteIds",value:function(e,t){var n=this,r=this.getRemoteIdToIdMap(e);return t.map((function(t){return n.getRemoteId(e,t,r)}))}},{key:"reset",value:function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}])}();function nn(e){for(var t=void 0,n=e[0],r=1;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i((function(){for(var e,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=n).call.apply(e,[t].concat(a))})),t=void 0)}return n}var rn,an,on=function(){return Object(f.a)((function e(){Object(d.a)(this,e),this.crossOriginIframeMirror=ne
1w tn(be),this.crossOriginIframeRootIdMap=new WeakMap}),[{key:"addIframe",value:function(){}},{key:"addLoadListener",value:function(){}},{key:"attachIframe",value:function(){}}])}(),sn=function(){return Object(f.a)((function e(t){Object(d.a)(this,e),this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new tn(be),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new tn(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}),[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),nn([this,"access",function(e){return e.loadListener},"optionalCall",function(t){return t(e)}]);var n=kt(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}},{key:"handleMessage",value:function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var n=this.crossOriginIframeMap.get(e.source);if(n){var r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}}}},{key:"transformCrossOriginEvent",value:function(e,t){var n=this;switch(t.type){case mt.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:mt.IncrementalSnapshot,data:{source:vt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case mt.Meta:case mt.Load:case mt.DomContentLoaded:return!1;case mt.Plugin:return t;case mt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case mt.IncrementalSnapshot:switch(t.data.source){case vt.Mutation:return t.data.adds.forEach((function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((function(t){n.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){n.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case vt.Drag:case vt.TouchMove:case vt.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case vt.ViewportResize:return!1;case vt.MediaInteraction:case vt.MouseInteraction:case vt.Scroll:case vt.CanvasMutation:case vt.Input:return this.replaceIds(t.data,e,["id"]),t;case vt.StyleSheetRule:case vt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case vt.Font:return t;case vt.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case vt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),nn([t,"access",function(e){return e.data},"access",function(e){return e.styles},"optionalAccess",function(e){return e.forEach},"call",function(t){return t((function(t){n.replaceStyleIds(t,e,["styleId"])}))}]),t}}return!1}},{key:"replace",value:function(e,t,n,r){var a,i=Y(r);try{for(i.s();!(a=i.n()).done;){var o=a.value;(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]))}}catch(s){i.e(s)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
1h((function(e){n.replaceIdOnNode(e,t)}))}},{key:"patchRootIdOnNode",value:function(e,t){var n=this;e.type===G.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((function(e){n.patchRootIdOnNode(e,t)}))}}])}(),cn=function(){return Object(f.a)((function e(){Object(d.a)(this,e)}),[{key:"init",value:function(){}},{key:"addShadowRoot",value:function(){}},{key:"observeAttachShadow",value:function(){}},{key:"reset",value:function(){}}])}(),un=function(){return Object(f.a)((function e(t){Object(d.a)(this,e),this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}),[{key:"init",value:function(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function(e,t){var n=this;if(ee(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);var r=jt(K(K({},this.bypassOptions),{},{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((function(){return r.disconnect()})),this.restoreHandlers.push(Pt(K(K({},this.bypassOptions),{},{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),dt((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(e.host)),n.restoreHandlers.push(Kt({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e))}),0)}}},{key:"observeAttachShadow",value:function(e){var t=kt(e),n=function(e){try{return e.contentWindow}catch(t){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}},{key:"patchAttachShadow",value:function(e,t){var n=this;this.restoreHandlers.push(Ke(e.prototype,"attachShadow",(function(e){return function(r){var a=e.call(this,r);return this.shadowRoot&&ct(this)&&n.addShadowRoot(this.shadowRoot,t),a}})))}},{key:"reset",value:function(){this.restoreHandlers.forEach((function(e){try{e()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}])}(),ln=function(){return Object(f.a)((function e(){Object(d.a)(this,e)}),[{key:"reset",value:function(){}},{key:"freeze",value:function(){}},{key:"unfreeze",value:function(){}},{key:"lock",value:function(){}},{key:"unlock",value:function(){}},{key:"snapshot",value:function(){}},{key:"addWindow",value:function(){}},{key:"addShadowRoot",value:function(){}},{key:"resetShadowRoots",value:function(){}}])}(),dn=function(){return Object(f.a)((function e(t){Object(d.a)(this,e),this.trackedLinkElements=new WeakSet,this.styleMirror=new it,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}),[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,t){if(0!==e.length){var n,r={id:t,styleIds:[]},a=[],i=Y(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=void 0;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),a.push({styleId:s,rules:Array.from(o.rules||CSSRule,(function(e,t){return{rule:ne(e),index:t}}))})),r.styleIds.push(s)}}catch(c){i.e(c)}finally{i.f()}a.length>0&&(r.styles=a),this.adoptedStyleSheetCb(r)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}])}(),fn=function(){return Object(f.a)((function e(){Object(d.a)(this,e),this.nodeMap=new WeakMap,this.active=!1}),[{key:"inOtherBuffer",value:function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some((function(e){return e!==t}))}},{key:"add",value:function(e,t){var n=this;this.active||(this.active=!0,function(){lt("requestAnimationFrame").apply(void 0,arguments)}((function(){n.nodeMap=new WeakMap,n.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}},{key:"destroy",value:function(){}}])}();try{if(2!==Array.from([1],(function(e){return 2*e}))[0]){var pn=document.createElement("iframe");document.body.appendChild(pn),Array.from=Object(v.a)([pn,"access",function(e){return e.contentWindow},"optionalAccess",function(e){return e.Array},"access",function(e){return e.from}])||Array.from,document.body.removeChild(pn)}}catch(La){console.debug("Unable to override Array.from",La)}var hn=new re;function mn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,n=e.checkoutEveryNms,r=e.checkoutEveryNth,a=e.blockClass,i=void 0===a?"rr-block":a,o=e.blockSelector,s=void 0===o?null:o,c=e.unblockSelector,u=void 0===c?null:c,l=e.ignoreClass,d=void 0===l?"rr-ignore":l,f=e.ignoreSelector,p=void 0===f?null:f,h=e.maskAllText,m=void 0!==h&&h,y=e.maskTextClass,g=void 0===y?"rr-mask":y,k=e.unmaskTextClass,b=void 0===k?null:k,S=e.maskTextSelector,w=void 0===S?null:S,_=e.unmaskTextSelector,E=void 0===_?null:_,x=e.inlineStylesheet,I=void 0===x||x,C=e.maskAllInputs,O=e.maskInputOptions,T=e.slimDOMOptions,M=e.maskAttributeFn,R=e.maskInputFn,A=e.maskTextFn,D=e.maxCanvasSize,N=void 0===D?null:D,j=e.packFn,L=e.sampling,F=void 0===L?{}:L,P=e.dataURLOptions,B=void 0===P?{}:P,U=e.mousemoveWait,z=e.recordDOM,W=void 0===z||z,H=e.recordCanvas,q=void 0!==H&&H,V=e.recordCrossOriginIframes,J=void 0!==V&&V,G=e.recordAfter,X=void 0===G?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":G,$=e.userTriggeredOnInput,Q=void 0!==$&&$,Z=e.collectFonts,ee=void 0!==Z&&Z,te=e.inlineImages,ne=void 0!==te&&te,re=e.plugins,ae=e.keepIframeSrcFn,ie=void 0===ae?function(){return!1}:ae,oe=e.ignoreCSSAttributes,se=void 0===oe?new Set([]):oe,ce=e.errorHandler,ue=e.onMutation,le=e.getCanvasManager;Tt(ce);var de=!J||window.parent===window,fe=!1;if(!de)try{window.parent.document&&(fe=!1)}catch(Ne){fe=!0}if(de&&!t)throw new Error("emit function is required");if(!de&&!fe)return function(){};void 0!==U&&void 0===F.mousemove&&(F.mousemove=U),hn.reset();var pe,he=!0===C?{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!==O?O:{},me=!0===T||"all"===T?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===T,headMetaDescKeywords:"all"===T}:T||{};tt();var ve=0,ye=function(e){var t,n=Y(re||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.eventProcessor&&(e=r.eventProcessor(e))}}catch(La){n.e(La)}finally{n.f()}return j&&!fe&&(e=j(e)),e};rn=function(e,a){var i=e;if(i.timestamp=Ye(),!Object(v.a)([Dt,"access",function(e){return e[0]},"optionalAccess",function(e){return e.isFrozen},"call",function(e){return e()}])||i.type===mt.FullSnapshot||i.type===mt.IncrementalSnapshot&&i.data.source===vt.Mutation||Dt.forEach((function(e){return e.unfreeze()}
1)),de)Object(v.a)([t,"optionalCall",function(e){return e(ye(i),a)}]);else if(fe){var o={type:"rrweb",event:ye(i),origin:window.location.origin,isCheckout:a};window.parent.postMessage(o,"*")}if(i.type===mt.FullSnapshot)pe=i,ve=0;else if(i.type===mt.IncrementalSnapshot){if(i.data.source===vt.Mutation&&i.data.isAttachIframe)return;ve++;var s=r&&ve>=r,c=n&&pe&&i.timestamp-pe.timestamp>n;(s||c)&&Me(!0)}};var ge,ke=function(e){rn({type:mt.IncrementalSnapshot,data:K({source:vt.Mutation},e)})},be=function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.Scroll},e)})},Se=function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.CanvasMutation},e)})},we=function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.AdoptedStyleSheet},e)})},_e=new dn({mutationCb:ke,adoptedStyleSheetCb:we}),Ee="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new on:new sn({mirror:hn,mutationCb:ke,stylesheetManager:_e,recordCrossOriginIframes:J,wrappedEmit:rn}),xe=Y(re||[]);try{for(xe.s();!(ge=xe.n()).done;){var Ie=ge.value;Ie.getMirror&&Ie.getMirror({nodeMirror:hn,crossOriginIframeMirror:Ee.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ee.crossOriginIframeStyleMirror})}}catch(La){xe.e(La)}finally{xe.f()}var Ce=new fn,Oe=vn(le,{mirror:hn,win:window,mutationCb:function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.CanvasMutation},e)})},recordCanvas:q,blockClass:i,blockSelector:s,unblockSelector:u,maxCanvasSize:N,sampling:F.canvas,dataURLOptions:B,errorHandler:ce}),Te="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new cn:new un({mutationCb:ke,scrollCb:be,bypassOptions:{onMutation:ue,blockClass:i,blockSelector:s,unblockSelector:u,maskAllText:m,maskTextClass:g,unmaskTextClass:b,maskTextSelector:w,unmaskTextSelector:E,inlineStylesheet:I,maskInputOptions:he,dataURLOptions:B,maskAttributeFn:M,maskTextFn:A,maskInputFn:R,recordCanvas:q,inlineImages:ne,sampling:F,slimDOMOptions:me,iframeManager:Ee,stylesheetManager:_e,canvasManager:Oe,keepIframeSrcFn:ie,processedNodeManager:Ce},mirror:hn}),Me=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(W){rn({type:mt.Meta,data:{href:window.location.href,width:Xe(),height:Ge()}}
1,e),_e.reset(),Te.init(),Dt.forEach((function(e){return e.lock()}));var t=Ue(document,{mirror:hn,blockClass:i,blockSelector:s,unblockSelector:u,maskAllText:m,maskTextClass:g,unmaskTextClass:b,maskTextSelector:w,unmaskTextSelector:E,inlineStylesheet:I,maskAllInputs:he,maskAttributeFn:M,maskInputFn:R,maskTextFn:A,slimDOM:me,dataURLOptions:B,recordCanvas:q,inlineImages:ne,onSerialize:function(e){nt(e,hn)&&Ee.addIframe(e),rt(e,hn)&&_e.trackLinkElement(e),at(e)&&Te.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){Ee.attachIframe(e,t),e.contentWindow&&Oe.addWindow(e.contentWindow),Te.observeAttachShadow(e)},onStylesheetLoad:function(e,t){_e.attachLinkElement(e,t)},keepIframeSrcFn:ie});if(!t)return console.warn("Failed to snapshot the document");rn({type:mt.FullSnapshot,data:{node:t,initialOffset:Je(window)}}),Dt.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&_e.adoptStyleSheets(document.adoptedStyleSheets,hn.getId(document))}};an=Me;try{var Re=[],Ae=function(e){return Rt(Qt)({onMutation:ue,mutationCb:ke,mousemoveCb:function(e,t){return rn({type:mt.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.MouseInteraction},e)})},scrollCb:be,viewportResizeCb:function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.ViewportResize},e)})},inputCb:function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.Input},e)})},mediaInteractionCb:function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.MediaInteraction},e)})},styleSheetRuleCb:function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.StyleSheetRule},e)})},styleDeclarationCb:function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.StyleDeclaration},e)})},canvasMutationCb:Se,fontCb:function(e){return rn({type:mt.IncrementalSnapshot,data:K({source:vt.Font},e)})},selectionCb:function(e){rn({type:mt.IncrementalSnapshot,data:K({source:vt.Selection},e)})},customElementCb:function(e){rn({type:mt.IncrementalSnapshot,data:K({source:vt.CustomElement},e)})},blockClass:i,ignoreClass:d,ignoreSelector:p,maskAllText:m,maskTextClass:g,unmaskTextClass:b,maskTextSelector:w,unmaskTextSelector:E,maskInputOptions:he,inlineStylesheet:I,sampling:F,recordDOM:W,recordCanvas:q,inlineImages:ne,userTriggeredOnInput:Q,collectFonts:ee,doc:e,maskAttributeFn:M,maskInputFn:R,maskTextFn:A,keepIframeSrcFn:ie,blockSelector:s,unblockSelector:u,slimDOMOptions:me,dataURLOptions:B,mirror:hn,iframeManager:Ee,stylesheetManager:_e,shadowDomManager:Te,processedNodeManager:Ce,canvasManager:Oe,ignoreCSSAttributes:se,plugins:Object(v.a)([re,"optionalAccess",function(e){return e.filter},"call",function(e){return e((function(e){return e.observer}))},"optionalAccess",function(e){return e.map},"call",function(e){return e((function(e){return{observer:e.observer,options:e.options,callback:function(t){return rn({type:mt.Plugin,data:{plugin:e.name,payload:t}})}}}))}])||[]},{})};Ee.addLoadListener((function(e){try{Re.push(Ae(e.contentDocument))}catch(t){console.warn(t)}}));var De=function(){Me(),Re.push(Ae(document))};return"interactive"===document.readyState||"complete"===document.readyState?De():(Re.push(We("DOMContentLoaded",(function(){rn({type:mt.DomContentLoaded,data:{}}),"DOMContentLoaded"===X&&De()}))),Re.push(We("load",(function(){rn({type:mt.Load,data:{}}),"load"===X&&De()}),window))),function(){Re.forEach((function(e){return e()})),Ce.destroy(),an=void 0,Mt()}}catch(je){console.warn(je)}}function vn(e,t){try{return e?e(t):new ln}catch(n){return console.warn("Unable to initialize CanvasManager"),new ln}}mn.mirror=hn,mn.takeFullSnapshot=function(e){if(!an)throw new Error("please take full snapshot after start recording");an(e)};function yn(e){return e>9999999999?e:1e3*e}function gn(e){return e>9999999999?e/1e3:e}function kn(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((function(){return e.throttledAddEvent({type:mt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:Object(g.a)(t,10,1e3)}}),"console"===t.category})))}var bn;function Sn(e){return e.closest("button,a")||e}function wn(e){var t=_n(e);return t&&t instanceof Element?Sn(t):t}function _n(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}function En(e){return bn||(bn=[],Object(k.e)(X,"open",(function(e){return function(){if(bn)try{bn.forEac
1h((function(e){return e()}))}catch(a){}for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(X,n)}}))),bn.push(e),function(){var t=bn?bn.indexOf(e):-1;t>-1&&bn.splice(t,1)}}var xn=new Set([vt.Mutation,vt.StyleSheetRule,vt.StyleDeclaration,vt.AdoptedStyleSheet,vt.CanvasMutation,vt.Selection,vt.MediaInteraction]);var In,Cn=function(){return Object(f.a)((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kn;Object(d.a)(this,e),this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}),[{key:"addListeners",value:function(){var e=this,t=En((function(){e._lastMutation=Tn()}));this._teardown=function(){t(),e._clicks=[],e._lastMutation=0,e._lastScroll=0}}},{key:"removeListeners",value:function(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}},{key:"handleClick",value:function(e,t){if(!function(e,t){if(!On.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)&&function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e)){var n={timestamp:gn(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((function(e){return e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1}))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}}},{key:"registerMutation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=gn(e)}},{key:"registerScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=gn(e)}},{key:"registerClick",value:function(e){var t=Sn(e);this._handleMultiClick(t)}},{key:"_handleMultiClick",value:function(e){this._getClicks(e).forEach((function(e){e.clickCount++}))}},{key:"_getClicks",value:function(e){return this._clicks.filter((function(t){return t.node===e}))}},{key:"_checkClicks",value:function(){var e=this,t=[],n=Tn();this._clicks.forEach((function(r){!r.mutationAfter&&e._lastMutation&&(r.mutationAfter=r.timestamp<=e._lastMutation?e._lastMutation-r.timestamp:void 0),!r.scrollAfter&&e._lastScroll&&(r.scrollAfter=r.timestamp<=e._lastScroll?e._lastScroll-r.timestamp:void 0),r.timestamp+e._timeout<=n&&t.push(r)}));for(var r=0,a=t;r<a.length;r++){var i=a[r],o=this._clicks.indexOf(i);o>-1&&(this._generateBreadcrumbs(i),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}},{key:"_generateBreadcrumbs",value:function(e){var t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!r,i=e.clickCount,o=e.clickBreadcrumb;if(a){var s=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),c=s<1e3*this._timeout?"mutation":"timeout",u={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:K(K({},o.data),{},{url:X.location.href,route:t.getCurrentRoute(),timeAfterClickMs:s,endReason:c,clickCount:i||1})};this._addBreadcrumbEvent(t,u)}else if(i>1){var l={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:K(K({},o.data),{},{url:X.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0})};this._addBreadcrumbEvent(t,l)}}},{key:"_scheduleCheckClicks",value:function(){var e=this;this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Object(B.d)((function(){return e._checkClicks()}),1e3)}}])}(),On=["A","BUTTON","INPUT"];function Tn(){return Date.now()/1e3}function Mn(e,t){try{if(!function(e){return 3===e.type}(t))return;var n=t.data.source;if(xn.has(n)&&e.registerMutation(t.timestamp),n===vt.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===vt.MouseInteraction}(t)){var r=t.data,a=r.type,i=r.id,o=mn.mirror.getNode(i);o instanceof HTMLElement&&a===yt.Click&&e.registerClick(o)}}catch(s){}}function Rn(e){return K({timestamp:Date.now()/1e3,type:"default"},e)}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(In||(In={}));var An=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Dn(e){var t={};for(var n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(An.has(n)){var r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}var Nn=function(e){return function(t){if(e.isEnabled()){var n=function(e){var t=function(e){var t,n="click"===e.name,r=null;try{r=n?wn(e.event):_n(e.event),t=Object(b.d)(r,{maxStringLength:200})||"<unknown>"}catch(a){t="<unknown>"}return{target:r,message:t}}(e),n=t.target,r=t.message;return Rn(K({category:"ui.".concat(e.name)}
1,jn(n,r)))}(t);if(n){var r,a,i,o="click"===t.name,s=o?t.event:void 0;!(o&&e.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(r=e.clickDetector,a=n,i=wn(t.event),r.handleClick(a,i)),kn(e,n)}}}};function jn(e,t){var n=mn.mirror.getId(e),r=n&&mn.mirror.getNode(n),a=r&&mn.mirror.getMeta(r),i=a&&function(e){return e.type===In.Element}(a)?a:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((function(e){return e.type===In.Text&&e.textContent})).filter(Boolean).map((function(e){return e.trim()})).join(""),attributes:Dn(i.attributes)}}:{}}}function Ln(e,t){if(e.isEnabled()){e.updateUserActivity();var n=function(e){var t=e.metaKey,n=e.shiftKey,r=e.ctrlKey,a=e.altKey,i=e.key,o=e.target;if(!o||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(o)||!i)return null;var s=t||r||a,c=1===i.length;if(!s&&c)return null;var u=Object(b.d)(o,{maxStringLength:200})||"<unknown>",l=jn(o,u);return Rn({category:"ui.keyDown",message:u,data:K(K({},l.data),{},{metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:i})})}(t);n&&kn(e,n)}}var Fn={resource:function(e){var t=e.entryType,n=e.initiatorType,r=e.name,a=e.responseEnd,i=e.startTime,o=e.decodedBodySize,s=e.encodedBodySize,c=e.responseStatus,u=e.transferSize;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:"".concat(t,".").concat(n),start:Un(i),end:Un(a),name:r,data:{size:u,statusCode:c,decodedBodySize:o,encodedBodySize:s}}},paint:function(e){var t=e.duration,n=e.entryType,r=e.name,a=Un(e.startTime);return{type:n,name:r,start:a,end:a+t,data:void 0}},navigation:function(e){var t=e.entryType,n=e.name,r=e.decodedBodySize,a=e.duration,i=e.domComplete,o=e.encodedBodySize,s=e.domContentLoadedEventStart,c=e.domContentLoadedEventEnd,u=e.domInteractive,l=e.loadEventStart,d=e.loadEventEnd,f=e.redirectCount,p=e.startTime,h=e.transferSize,m=e.type;if(0===a)return null;return{type:"".concat(t,".").concat(m),start:Un(p),end:Un(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:a,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:f}}}};function Pn(e,t){return function(n){var r=n.metric;t.replayPerformanceEntries.push(e(r))}}function Bn(e){var t=Fn[e.entryType];return t?t(e):null}function Un(e){return((S.b||X.performance.timeOrigin)+e)/1e3}function zn(e){var t=e.entries[e.entries.length-1];return Kn(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function Wn(e){return void 0!==e.sources}function Hn(e){var t,n=[],r=[],a=Y(e.entries);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(Wn(i)){var o,s=[],c=Y(i.sources);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(u.node){r.push(u.node);var l=mn.mirror.getId(u.node);l&&s.push(l)}}}catch(La){c.e(La)}finally{c.f()}n.push({value:i.value,nodeIds:s.length?s:void 0})}}}catch(La){a.e(La)}finally{a.f()}return Kn(e,"cumulative-layout-shift",r,n)}function qn(e){var t=e.entries[e.entries.length-1];return Kn(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function Vn(e){var t=e.entries[e.entries.length-1];return Kn(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Kn(e,t,n,r){var a=e.value,i=e.rating,o=Un(a);return{type:"web-vital",name:t,start:o,end:o,data:{value:a,size:a,rating:i,nodeIds:n?n.map((function(e){return mn.mirror.getId(e)})):void 0,attributions:r}}}var Yn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Jn=["info","warn","error","log"],Gn="[Replay] ";function Xn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";Object(w.a)({category:"console",data:{logger:"replay"},level:t,message:"".concat(Gn).concat(e)},{level:t})}var $n,Qn,Zn,er=($n=!1,Qn=!1,Zn={exception:function(){},infoTick:function(){},setConfig:function(e){$n=e.captureExceptions,Qn=e.traceInternals}},Yn?(Jn.forEach((function(e){Zn[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];_.c[e].apply(_.c,[Gn].concat(n)),Qn&&Xn(n.join(""),Object(E.a)(e))}})),Zn.exception=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.length&&Zn.error&&Zn.error.apply(Zn,n),_.c.error(Gn,e),$n?Object(x.d)(e):Qn&&Xn(e,"error")},Zn.infoTick=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];
1_.c.info.apply(_.c,[Gn].concat(t)),Qn&&setTimeout((function(){return Xn(t[0])}),0)}):Jn.forEach((function(e){Zn[e]=function(){}})),Zn),tr=function(e){function t(){return Object(d.a)(this,t),q(this,t,["Event buffer exceeded maximum size of ".concat(2e7,".")])}return Object(o.a)(t,e),Object(f.a)(t)}(Object(s.a)(Error)),nr=function(){return Object(f.a)((function e(){Object(d.a)(this,e),this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}),[{key:"hasEvents",get:function(){return this.events.length>0}},{key:"type",get:function(){return"sync"}},{key:"destroy",value:function(){this.events=[]}},{key:"addEvent",value:(e=Object(r.a)(h.a.mark((function e(t){var n;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=JSON.stringify(t).length,this._totalSize+=n,!(this._totalSize>2e7)){e.next=4;break}throw new tr;case 4:this.events.push(t);case 5:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"finish",value:function(){var e=this;return new Promise((function(t){var n=e.events;e.clear(),t(JSON.stringify(n))}))}},{key:"clear",value:function(){this.events=[],this._totalSize=0,this.hasCheckout=!1}},{key:"getEarliestTimestamp",value:function(){var e=this.events.map((function(e){return e.timestamp})).sort()[0];return e?yn(e):null}}]);var e}(),rr=function(){return Object(f.a)((function e(t){Object(d.a)(this,e),this._worker=t,this._id=0}),[{key:"ensureReady",value:function(){var e=this;return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((function(t,n){e._worker.addEventListener("message",(function(e){e.data.success?t():n()}),{once:!0}),e._worker.addEventListener("error",(function(e){n(e)}),{once:!0})}))),this._ensureReadyPromise}},{key:"destroy",value:function(){Yn&&er.info("Destroying compression worker"),this._worker.terminate()}},{key:"postMessage",value:function(e,t){var n=this,r=this._getAndIncrementId();return new Promise((function(a,i){var o=function(t){var s=t.data;if(s.method===e&&s.id===r){if(n._worker.removeEventListener("message",o),!s.success)return Yn&&er.error("Error in compression worker: ",s.response),void i(new Error("Error in compression worker"));a(s.response)}};n._worker.addEventListener("message",o),n._worker.postMessage({id:r,method:e,arg:t})}))}},{key:"_getAndIncrementId",value:function(){return this._id++}}])}(),ar=function(){return Object(f.a)((function e(t){Object(d.a)(this,e),this._worker=new rr(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}),[{key:"hasEvents",get:function(){return!!this._earliestTimestamp}},{key:"type",get:function(){return"worker"}},{key:"ensureReady",value:function(){return this._worker.ensureReady()}},{key:"destroy",value:function(){this._worker.destroy()}},{key:"addEvent",value:function(e){var t=yn(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);var n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>2e7?Promise.reject(new tr):this._sendEventToWorker(n)}},{key:"finish",value:function(){return this._finishRequest()}},{key:"clear",value:function(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(function(e){Yn&&er.exception(e,'Sending "clear" message to worker failed',e)}))}},{key:"getEarliestTimestamp",value:function(){return this._earliestTimestamp}},{key:"_sendEventToWorker",value:function(e){return this._worker.postMessage("addEvent",e)}},{key:"_finishRequest",value:(e=Object(r.a)(h.a.mark((function e(){var t;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._worker.postMessage("finish");case 2:return t=e.sent,this._earliestTimestamp=null,this._totalSize=0,e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e}(),ir=function(){return Object(f.a)((function e(t){Object(d.a)(this,e),this._fallback=new nr,this._compression=new ar(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}),[{key:"waitForCheckout",get:function(){return this._used.waitForCheckout},set:function(e){this._used.waitForCheckout=e}},{key:"type",get:function(){return this._used.type}},{key:"hasEvents",get:function(){return this._used.hasEvents}},{key:"hasCheckout",get:function(){return this._used.hasCheckout},set:function(e){this._used.hasCheckout=e}},{key:"destroy",value:function(){this._fallback.destroy(),this._compression.destroy()}},{key:"clear",value:function(){return this._used.clear()}},{key:"getEarliestTimestamp",value:function(){return this._used.getEarliestTimestamp()}},{key:"addEvent",value:function(e){return this._used.addEvent(e)}},{key:"finish",value:(n=Object(r.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureWorkerIsLoaded();case 2:return e.abrupt("return",this._used.finish());case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"ensureWorkerIsLoaded",value:function(){return this._ensureWorkerIsLoadedProm
1ise}},{key:"_ensureWorkerIsLoaded",value:(t=Object(r.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._compression.ensureReady();case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),Yn&&er.exception(e.t0,"Failed to load the compression worker, falling back to simple buffer"),e.abrupt("return");case 9:return e.next=11,this._switchToCompressionWorker();case 11:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return t.apply(this,arguments)})},{key:"_switchToCompressionWorker",value:(e=Object(r.a)(h.a.mark((function e(){var t,n,r,a,i,o,s,c;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this._fallback,n=t.events,r=t.hasCheckout,a=t.waitForCheckout,i=[],o=Y(n);try{for(o.s();!(s=o.n()).done;)c=s.value,i.push(this._compression.addEvent(c))}catch(La){o.e(La)}finally{o.f()}return this._compression.hasCheckout=r,this._compression.waitForCheckout=a,this._used=this._compression,e.prev=7,e.next=10,Promise.all(i);case 10:this._fallback.clear(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),Yn&&er.exception(e.t0,"Failed to add events when switching buffers.");case 16:case"end":return e.stop()}}),e,this,[[7,13]])}))),function(){return e.apply(this,arguments)})}]);var e,t,n}();function or(e){var t=e.useCompression,n=e.workerUrl;if(t&&window.Worker){var r=function(e){try{var t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){var e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,591 bytes, line 1
1,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
1++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;Yn&&er.info("Using compression worker".concat(e?" from ".concat(e):""));var n=new Worker(t);return new ir(n)}catch(r){Yn&&er.exception(r,"Failed to create compression worker")}}(n);if(r)return r}return Yn&&er.info("Using simple buffer"),new nr}function sr(){try{return"sessionStorage"in X&&!!X.sessionStorage}catch(e){return!1}}function cr(e){!function(){if(!sr())return;try{X.sessionStorage.removeItem("sentryReplaySession")}catch(e){}}(),e.session=void 0}function ur(e){return void 0!==e&&Math.random()<e}function lr(e){var t=Date.now();return{id:e.id||Object(I.h)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function dr(e){if(sr())try{X.sessionStorage.setItem("sentryReplaySession",JSON.stringify(e))}catch(t){}}function fr(e,t){return ur(e)?"session":!!t&&"buffer"}function pr(e){var t=e.sessionSampleRate,n=e.allowBuffering,r=e.stickySession,a=void 0!==r&&r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.previousSessionId,s=fr(t,n),c=lr({sampled:s,previousSessionId:o});return a&&dr(c),c}function hr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=n}function mr(e,t){var n=t.maxReplayDuration,r=t.sessionIdleExpire,a=t.targetTime,i=void 0===a?Date.now():a;
1return hr(e.started,n,i)||hr(e.lastActivity,r,i)}function vr(e,t){return!!mr(e,{sessionIdleExpire:t.sessionIdleExpire,maxReplayDuration:t.maxReplayDuration})&&("buffer"!==e.sampled||0!==e.segmentId)}function yr(e,t){var n=e.sessionIdleExpire,r=e.maxReplayDuration,a=e.previousSessionId,i=t.stickySession&&function(){if(!sr())return null;try{var e=X.sessionStorage.getItem("sentryReplaySession");if(!e)return null;var t=JSON.parse(e);return Yn&&er.infoTick("Loading existing session"),lr(t)}catch(n){return null}}();return i?vr(i,{sessionIdleExpire:n,maxReplayDuration:r})?(Yn&&er.infoTick("Session in sessionStorage is expired, creating new one..."),pr(t,{previousSessionId:i.id})):i:(Yn&&er.infoTick("Creating new session"),pr(t,{previousSessionId:a}))}function gr(e,t,n){return!!Sr(e,t)&&(kr(e,t,n),!0)}function kr(e,t,n){return br.apply(this,arguments)}function br(){return(br=Object(r.a)(h.a.mark((function e(t,n,r){var a,i,o,s,c,u,l;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((a=t.eventBuffer)&&(!a.waitForCheckout||r)){e.next=3;break}return e.abrupt("return",null);case 3:if(i="buffer"===t.recordingMode,e.prev=4,r&&i&&a.clear(),r&&(a.hasCheckout=!0,a.waitForCheckout=!1),o=t.getOptions(),s=wr(n,o.beforeAddRecordingEvent)){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,a.addEvent(s);case 13:return e.abrupt("return",e.sent);case 16:if(e.prev=16,e.t0=e.catch(4),c=e.t0&&e.t0 instanceof tr,u=c?"addEventSizeExceeded":"addEvent",!c||!i){e.next=24;break}return a.clear(),a.waitForCheckout=!0,e.abrupt("return",null);case 24:return t.handleException(e.t0),e.next=27,t.stop({reason:u});case 27:(l=Object(C.a)())&&l.recordDroppedEvent("internal_sdk_error","replay");case 29:case"end":return e.stop()}}),e,null,[[4,16]])})))).apply(this,arguments)}function Sr(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;var n=yn(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Yn&&er.infoTick("Skipping event with timestamp ".concat(n," because it is after maxReplayDuration")),!1))}function wr(e,t){try{if("function"==typeof t&&function(e){return e.type===mt.Custom}(e))return t(e)}catch(n){return Yn&&er.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function _r(e){return!e.type}function Er(e){return"transaction"===e.type}function xr(e){return"feedback"===e.type}function Ir(e){return function(t,n){if(e.isEnabled()&&(_r(t)||Er(t))){var a=n&&n.statusCode;!a||a<200||a>=300||(Er(t)?function(e,t){var n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){var n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;var a=e.getOptions().beforeErrorSampling;if("function"==typeof a&&!a(t))return;Object(B.d)(Object(r.a)(h.a.mark((function t(){return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.sendBufferedReplayOrFlush();case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),e.handleException(t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])}))))}(e,t))}}}function Cr(e){return function(t){e.isEnabled()&&_r(t)&&function(e,t){var n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){var r=Rn({category:"replay.hydrate-error",data:{url:Object(b.c)()}});kn(e,r)}}(e,t)}}function Or(e){var t=Object(C.a)();t&&t.on("beforeAddBreadcrumb",(function(t){return function(e,t){if(!e.isEnabled()||!Tr(t))return;var n=function(e){if(!Tr(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){var t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Rn(e);var n=!1,r=t.map((function(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=Object(g.a)(e,7);return JSON.stringify(t).length>5e3?(n=!0,"".concat(JSON.stringify(t,null,2).slice(0,5e3),"â¦")):t}catch(r){}return e}));return Rn(K(K({},e),{},{data:K(K({},e.data),{},{arguments:r},n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}(e);return Rn(e)}(t);n&&kn(e,n)}(e,t)}))}function Tr(e){return!!e.category}function Mr(){var e=Object(C.b)().getPropagationContext().dsc;e&&delete e.replay_id;var t=Object(O.d)();t&&delete Object(T.d)(t).replay_id}function Rr(e){return Object.assign((function(t,n){return!e.isEnabled()||e.isPau
1sed()?t:function(e){return"replay_event"===e.type}(t)?(delete t.breadcrumbs,t):_r(t)||Er(t)||xr(t)?e.checkAndHandleExpiredSession()?xr(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((function(){return!t.timestamp||(e.throttledAddEvent({type:mt.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)}))}(e,t),t):function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions?(Yn&&er.log("Ignoring error from rrweb internals",t),null):((function(e,t){return"buffer"===e.recordingMode&&("Unable to send Replay"!==t.message&&(!(!t.exception||t.type)&&ur(e.getOptions().errorSampleRate)))}(e,t)||"session"===e.recordingMode)&&(t.tags=K(K({},t.tags),{},{replayId:e.getSessionId()})),t):(Mr(),t):t}),{id:"Replay"})}function Ar(e,t){return t.map((function(t){var n=t.type,r=t.start,a=t.end,i=t.name,o=t.data,s=e.throttledAddEvent({type:mt.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:a,data:o}}});return"string"==typeof s?Promise.resolve(null):s}))}function Dr(e){return function(t){if(e.isEnabled()){var n=function(e){var t=e.from,n=e.to,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((function(){return Ar(e,[n]),!1})))}}}function Nr(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Yn||!e.getOptions()._experiments.traceInternals)&&Object(M.a)(t,Object(C.a)())}(e,t.name)||e.addUpdate((function(){return Ar(e,[t]),!0})))}function jr(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 n=Hr(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(r){}}}function Lr(e){if(e){var t=parseInt(e,10);return isNaN(t)?void 0:t}}function Fr(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Hr(e)];if(!e)return[void 0]}catch(t){return Yn&&er.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Yn&&er.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Pr(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};var n=K({},e._meta),r=n.warnings||[];return n.warnings=[].concat(Object(u.a)(r),[t]),e._meta=n,e}function Br(e,t){if(!t)return null;var n=t.startTimestamp,r=t.endTimestamp,a=t.url,i=t.method,o=t.statusCode,s=t.request,c=t.response;return{type:e,start:n/1e3,end:r/1e3,name:a,data:Object(k.c)({method:i,statusCode:o,request:s,response:c})}}function Ur(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function zr(e,t,n){if(t||0!==Object.keys(e).length){if(!t)return{headers:e};if(!n)return{headers:e,size:t};var r={headers:e,size:t},a=function(e){if(!e||"string"!=typeof e)return{body:e};var t=e.length>15e4,n=(r=e,a=r[0],i=r[r.length-1],"["===a&&"]"===i||"{"===a&&"}"===i);var r,a,i;if(t){var o=e.slice(0,15e4);return n?{body:o,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(o,"â¦"),warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(s){}return{body:e}}(n),i=a.body,o=a.warnings;return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}}function Wr(e,t){return Object.entries(e).reduce((function(n,r){var a=Object(c.a)(r,2),i=a[0],o=a[1],s=i.toLowerCase();return t.includes(s)&&e[i]&&(n[s]=o),n}),{})}function Hr(e){return new URLSearchParams(e).toString()}function qr(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X.document.baseURI;if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(X.location.origin))return e;var n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;var r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return Object(R.d)(n,t)}function Vr(){return(Vr=Object(r.a)(h.a.mark((function e(t,n,r){var a,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Kr(t,n,r);case 3:a=e.sent,i=Br("resource.fetch",a),Nr(r.replay,i),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),Yn&&er.exception(e.t0,"Failed to capture fetch breadcrumb");case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function Kr(e,t,n){return Yr.apply(this,arguments)}function Yr(){return(Yr=Object(r.a)(h.a.mark((function e(t,n,r){var a,i,o,s,c,u,l,d,f,p,m,v,y,g,k;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Date.now(),i=n.startTimestamp,o=void 0===i?a:i,s=n.endTimestamp,c=void 0===s?a:s,u=t.data,l=u.url,d=u.method,f=u.status_code,p=void 0===f?0:f,m=u.request_body_size,v=u.response_body_size,y=qr(l,r.networkDetailAllowUrls)&&!qr(l,r.networkDetailDenyUrls),g=y?Jr(r,n.input,m):Ur(m),e.next=7,Gr(y,r,n.response,v);case 7:return k=e.sent,e.abrupt("return",{startTimestamp:o,endTimestamp:c,url:l,method:d,statusCode:p,request:g,response:k});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Jr(e,t,n){var r=e.networkCaptureBodies,a=e.networkRequestHeaders,i=t?function(e,t){if(1===e.length&&"string"!=typeof e[0])return na(e[0],t);
1if(2===e.length)return na(e[1],t);return{}}(t,a):{};if(!r)return zr(i,n,void 0);var o=Fr(ea(t)),s=Object(c.a)(o,2),u=s[0],l=s[1],d=zr(i,n,u);return l?Pr(d,l):d}function Gr(e,t,n,r){return Xr.apply(this,arguments)}function Xr(){return(Xr=Object(r.a)(h.a.mark((function e(t,n,r,a){var i,o,s,u,l,d,f,p;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.networkCaptureBodies,o=n.networkResponseHeaders,t||void 0===a){e.next=3;break}return e.abrupt("return",Ur(a));case 3:if(s=r?ta(r.headers,o):{},r&&(i||void 0===a)){e.next=6;break}return e.abrupt("return",zr(s,a,void 0));case 6:return e.next=8,Qr(r);case 8:if(u=e.sent,l=Object(c.a)(u,2),d=l[0],f=l[1],p=$r(d,{networkCaptureBodies:i,responseBodySize:a,captureDetails:t,headers:s}),!f){e.next=15;break}return e.abrupt("return",Pr(p,f));case 15:return e.abrupt("return",p);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $r(e,t){var n=t.networkCaptureBodies,r=t.responseBodySize,a=t.captureDetails,i=t.headers;try{var o=e&&e.length&&void 0===r?jr(e):r;return a?zr(i,o,n?e:void 0):Ur(o)}catch(s){return Yn&&er.exception(s,"Failed to serialize response body"),zr(i,r,void 0)}}function Qr(e){return Zr.apply(this,arguments)}function Zr(){return(Zr=Object(r.a)(h.a.mark((function e(t){var n,r;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=ra(t)){e.next=3;break}return e.abrupt("return",[void 0,"BODY_PARSE_ERROR"]);case 3:return e.prev=3,e.next=6,aa(n);case 6:return r=e.sent,e.abrupt("return",[r]);case 10:if(e.prev=10,e.t0=e.catch(3),!(e.t0 instanceof Error&&e.t0.message.indexOf("Timeout")>-1)){e.next=15;break}return Yn&&er.warn("Parsing text body from response timed out"),e.abrupt("return",[void 0,"BODY_PARSE_TIMEOUT"]);case 15:return Yn&&er.exception(e.t0,"Failed to get text body from response"),e.abrupt("return",[void 0,"BODY_PARSE_ERROR"]);case 17:case"end":return e.stop()}}),e,null,[[3,10]])})))).apply(this,arguments)}function ea(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(2===e.length&&"object"==typeof e[1])return e[1].body}function ta(e,t){var n={};return t.forEach((function(t){e.get(t)&&(n[t]=e.get(t))})),n}function na(e,t){if(!e)return{};var n=e.headers;return n?n instanceof Headers?ta(n,t):Array.isArray(n)?{}:Wr(n,t):{}}function ra(e){try{return e.clone()}catch(t){Yn&&er.exception(t,"Failed to clone response body")}}function aa(e){return new Promise((function(t,n){var r=Object(B.d)((function(){return n(new Error("Timeout while trying to read response body"))}),500);(function(e){return ia.apply(this,arguments)})(e).then((function(e){return t(e)}),(function(e){return n(e)})).finally((function(){return clearTimeout(r)}))}))}function ia(){return(ia=Object(r.a)(h.a.mark((function e(t){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.text();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oa(){return(oa=Object(r.a)(h.a.mark((function e(t,n,r){var a,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{a=ca(t,n,r),i=Br("resource.xhr",a),Nr(r.replay,i)}catch(o){Yn&&er.exception(o,"Failed to capture xhr breadcrumb")}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sa(e,t){var n=t.xhr,r=t.input;if(n){var a=jr(r),i=n.getResponseHeader("content-length")?Lr(n.getResponseHeader("content-length")):function(e,t){try{return jr("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch(n){return}}(n.response,n.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}}function ca(e,t,n){var r=Date.now(),a=t.startTimestamp,i=void 0===a?r:a,o=t.endTimestamp,s=void 0===o?r:o,u=t.input,l=t.xhr,d=e.data,f=d.url,p=d.method,h=d.status_code,m=void 0===h?0:h,v=d.request_body_size,y=d.response_body_size;if(!f)return null;if(!l||!qr(f,n.networkDetailAllowUrls)||qr(f,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:s,url:f,method:p,statusCode:m,request:Ur(v),response:Ur(y)};var g=l[z.a],k=g?Wr(g.request_headers,n.networkRequestHeaders):{},b=Wr(function(e){var t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((function(e,t){var n=t.split(": "),r=Object(c.a)(n,2),a=r[0],i=r[1];return i&&(e[a.toLowerCase()]=i),e}),{})}(l),n.networkResponseHeaders),S=n.networkCaptureBodies?Fr(u):[void 0],w=Object(c.a)(S,2),_=w[0],E=w[1],x=n.networkCaptureBodies?function(e){var t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return Yn&&er.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Yn&&er.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(n){t.push(n)}return Yn&&er.warn.apply(er,["Failed to get xhr response body"].concat(t)),[void 0]}(l):[void 0],I=Object(c.a)(x,2),C=I[0],O=I[1],T=zr(k,v,_),M=zr(b,y,C);return{startTimestamp:i,endTimestamp:s,url:f,method:p,statusCode:m,request:E?Pr(T,E):T,response:O?Pr(M,O):M}}function ua(e){var t=Object(C.a)();try{var n=e.getOptions(),r={replay:e,networkDetailAllowUrls:n.networkDetailAllowUrls,networkDetailDenyUrls:n.networkDetailDenyUrls,networkCaptureBodies:n.networkCaptureBodies,networkRequestHeaders:n.networkRequestHeaders,networkResponseHeaders:n.networkResponseHeaders};t&&t.on("beforeAddBreadcrumb",(function(e,t){return function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(sa(t,n),function(e,t,n){oa.apply(this,arguments)}
1(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(function(e,t){var n=t.input,r=t.response,a=jr(n?ea(n):void 0),i=r?Lr(r.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}(t,n),function(e,t,n){Vr.apply(this,arguments)}(t,n,e))}catch(r){Yn&&er.exception(r,"Error when enriching network breadcrumb")}}(r,e,t)}))}catch(a){}}function la(e){return da.apply(this,arguments)}function da(){return(da=Object(r.a)(h.a.mark((function e(t){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",Promise.all(Ar(t,[fa(X.performance.memory)])));case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return",[]);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function fa(e){var t=e.jsHeapSizeLimit,n=e.totalJSHeapSize,r=e.usedJSHeapSize,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}var pa=y.a.navigator;function ha(e){var t=!1;return function(n,r){if(e.checkAndHandleExpiredSession()){var a=r||!t;t=!0,e.clickDetector&&Mn(e.clickDetector,n),e.addUpdate((function(){if("buffer"===e.recordingMode&&a&&e.setInitialState(),!gr(e,n,a))return!0;if(!a)return!1;var t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;gr(e,function(e){var t=e.getOptions();return{type:mt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer){var r=e.eventBuffer.getEarliestTimestamp();r&&(Yn&&er.info("Updating session start time to earliest event in buffer to ".concat(new Date(r))),t.started=r,e.getOptions().stickySession&&dr(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}else Yn&&er.warn("Received replay event after session expired.")}}function ma(e,t,n,r){return Object(A.c)(Object(A.d)(e,Object(A.i)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function va(e){var t,n=e.recordingData,r=e.headers,a="".concat(JSON.stringify(r),"\n");if("string"==typeof n)t="".concat(a).concat(n);else{var i=(new TextEncoder).encode(a);(t=new Uint8Array(i.length+n.length)).set(i),t.set(n,i.length)}return t}function ya(e){return ga.apply(this,arguments)}function ga(){return(ga=Object(r.a)(h.a.mark((function e(t){var n,r,a,i,o,s,c,u,l,d,f;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.client,r=t.scope,a=t.replayId,i=t.event,o="object"!=typeof n._integrations||null===n._integrations||Array.isArray(n._integrations)?void 0:Object.keys(n._integrations),s={event_id:a,integrations:o},n.emit("preprocessEvent",i,s),e.next=6,Object(D.b)(n.getOptions(),i,s,r,n,Object(C.d)());case 6:if(c=e.sent){e.next=9;break}return e.abrupt("return",null);case 9:return c.platform=c.platform||"javascript",u=n.getSdkMetadata(),l=u&&u.sdk||{},d=l.name,f=l.version,c.sdk=K(K({},c.sdk),{},{name:d||"sentry.javascript.unknown",version:f||"0.0.0"}),e.abrupt("return",c);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ka(e){return ba.apply(this,arguments)}function ba(){return(ba=Object(r.a)(h.a.mark((function e(t){var n,r,a,i,o,s,c,u,l,d,f,p,m,v,y,g,k,b,S,w,_;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.recordingData,r=t.replayId,a=t.segmentId,i=t.eventContext,o=t.timestamp,s=t.session,c=va({recordingData:n,headers:{segment_id:a}}),u=i.urls,l=i.errorIds,d=i.traceIds,f=i.initialTimestamp,p=Object(C.a)(),m=Object(C.b)(),v=p&&p.getTransport(),y=p&&p.getDsn(),p&&v&&y&&s.sampled){e.next=9;break}return e.abrupt("return",Object(N.c)({}));case 9:return g={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:o/1e3,error_ids:l,trace_ids:d,urls:u,replay_id:r,segment_id:a,replay_type:s.sampled},e.next=12,ya({scope:m,client:p,replayId:r,event:g});case 12:if(k=e.sent){e.next=17;break}return p.recordDroppedEvent("event_processor","replay",g),Yn&&er.info("An event processor returned `null`, will not send event."),e.abrupt("return",Object(N.c)({}));case 17:return delete k.sdkProcessingMetadata,b=ma(k,c,y,p.getOptions().tunnel),e.prev=19,e.next=22,v.send(b);case 22:S=e.sent,e.next=30;break;case 25:e.prev=25,e.t0=e.catch(19),w=new Error("Unable to send Replay");try{w.cause=e.t0}catch(h){}throw w;case 30:if("number"!=typeof S.statusCode||!(S.statusCode<200||S.statusCode>=300)){e.next=32;break}throw new Sa(S.statusCode);case 32:if(_=Object(j.e)({},S),!Object(j.c)(_,"replay")){e.next=35;break}throw new wa(_);case 35:return e.abrupt("return",S);case 36:case"end":return e.stop()}}),e,null,[[19,25]])})))).apply(this,arguments)}var Sa=function(e){function t(e){return Object(d.a)(this,t),q(this,t,["Transport returned status code ".concat(e)
1])}return Object(o.a)(t,e),Object(f.a)(t)}(Object(s.a)(Error)),wa=function(e){function t(e){var n;return Object(d.a)(this,t),(n=q(this,t,["Rate limit hit"])).rateLimits=e,n}return Object(o.a)(t,e),Object(f.a)(t)}(Object(s.a)(Error));function _a(e){return Ea.apply(this,arguments)}function Ea(){return(Ea=Object(r.a)(h.a.mark((function e(t){var n,a,i,o,s=arguments;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=s.length>1&&void 0!==s[1]?s[1]:{count:0,interval:5e3},a=t.recordingData,i=t.onError,a.length){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,ka(t);case 7:return e.abrupt("return",!0);case 10:if(e.prev=10,e.t0=e.catch(4),!(e.t0 instanceof Sa||e.t0 instanceof wa)){e.next=14;break}throw e.t0;case 14:if(Object(x.m)("Replays",{_retryCount:n.count}),i&&i(e.t0),!(n.count>=3)){e.next=20;break}o=new Error("".concat("Unable to send Replay"," - max retries exceeded"));try{o.cause=e.t0}catch(c){}throw o;case 20:return n.interval*=++n.count,e.abrupt("return",new Promise((function(e,a){Object(B.d)(Object(r.a)(h.a.mark((function r(){return h.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,_a(t,n);case 3:e(!0),r.next=9;break;case 6:r.prev=6,r.t0=r.catch(0),a(r.t0);case 9:case"end":return r.stop()}}),r,null,[[0,6]])}))),n.interval)})));case 22:case"end":return e.stop()}}),e,null,[[4,10]])})))).apply(this,arguments)}var xa=function(){return Object(f.a)((function e(t){var n,r,a,i,o,s,c,l=this,f=t.options,p=t.recordingOptions;Object(d.a)(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=p,this._options=f,this._debouncedFlush=function(e,t,n){var r,a,i,o=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e()}function c(){void 0!==a&&clearTimeout(a),void 0!==i&&clearTimeout(i),a=i=void 0}function u(){return a&&clearTimeout(a),a=Object(B.d)(s,t),o&&void 0===i&&(i=Object(B.d)(s,o)),r}return u.cancel=c,u.flush=function(){return void 0!==a||void 0!==i?s():r},u}((function(){return l._flush()}),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=(n=function(e,t){return function(e,t,n){return Sr(e,t)?kr(e,t,n):Promise.resolve(null)}(l,e,t)},r=300,a=5,i=new Map,o=function(e){var t=e-a;
1i.forEach((function(e,n){n<t&&i.delete(n)}))},s=function(){return Object(u.a)(i.values()).reduce((function(e,t){return e+t}),0)},c=!1,function(){var e=Math.floor(Date.now()/1e3);if(o(e),s()>=r){var t=c;return c=!0,t?"__SKIPPED":"__THROTTLED"}c=!1;var a=i.get(e)||0;return i.set(e,a+1),n.apply(void 0,arguments)});var h=this.getOptions(),m=h.slowClickTimeout,v=h.slowClickIgnoreSelectors,y=m?{threshold:Math.min(3e3,m),timeout:m,scrollTimeout:300,ignoreSelector:v?v.join(","):""}:void 0;if(y&&(this.clickDetector=new Cn(this,y)),Yn){var g=f._experiments;er.setConfig({captureExceptions:!!g.captureExceptions,traceInternals:!!g.traceInternals})}}),[{key:"getContext",value:function(){return this._context}},{key:"isEnabled",value:function(){return this._isEnabled}},{key:"isPaused",value:function(){return this._isPaused}},{key:"isRecordingCanvas",value:function(){return Boolean(this._canvas)}},{key:"getOptions",value:function(){return this._options}},{key:"handleException",value:function(e){Yn&&er.exception(e),this._options.onError&&this._options.onError(e)}},{key:"initializeSampling",value:function(e){var t=this._options,n=t.errorSampleRate,r=t.sessionSampleRate,a=n<=0&&r<=0;this._requiresManualStart=a,a||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Yn&&er.infoTick("Starting replay in ".concat(this.recordingMode," mode")),this._initializeRecording()):Yn&&er.exception(new Error("Unable to initialize and create session")))}},{key:"start",value:function(){if(this._isEnabled&&"session"===this.recordingMode)Yn&&er.info("Recording is already in progress");else if(this._isEnabled&&"buffer"===this.recordingMode)Yn&&er.info("Buffering is in progress, call `flush()` to save the replay");else{Yn&&er.infoTick("Starting replay in session mode"),this._updateUserActivity();var e=yr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}}},{key:"startBuffering",value:function(){if(this._isEnabled)Yn&&er.info("Buffering is in progress, call `flush()` to save the replay");else{Yn&&er.infoTick("Starting replay in buffer mode");var e=yr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}}},{key:"startRecording",value:function(){try{var e=this._canvas;this._stopRecording=mn(K(K(K(K({},this._recordingOptions),"buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)}),{},{emit:ha(this)},/iPhone|iPad|iPod/i.test(pa&&pa.userAgent||"")||/Macintosh/i.test(pa&&pa.userAgent||"")&&pa&&pa.maxTouchPoints&&pa.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}),{},{onMutation:this._onMutationHandler},e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}))}catch(La){this.handleException(La)}}},{key:"stopRecording",value:function(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(La){return this.handleException(La),!1}}},{key:"stop",value:(a=Object(r.a)(h.a.mark((function e(){var t,n,r,a,i=arguments;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.forceFlush,r=void 0!==n&&n,a=t.reason,this._isEnabled){e.next=3;break}return e.abrupt("return");case 3:if(this._isEnabled=!1,e.prev=4,Yn&&er.info("Stopping Replay".concat(a?" triggered by ".concat(a):"")),Mr(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),!r){e.next=13;break}return e.next=13,this._flush({force:!0});case 13:this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,cr(this),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),this.handleException(e.t0);case 21:case"end":return e.stop()}}),e,this,[[4,18]])}))),function(){return a.apply(this,arguments)})},{key:"pause",value:function(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Yn&&er.info("Pausing replay"))}},{key:"resume",value:function(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Yn&&er.info("Resuming replay"))}},{key:"sendBufferedReplayOrFlush",value:(n=Object(r.a)(h.a.mark((function e(){var t,n,r,a,i,o=arguments;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:{},n=t.continueRecording,r=void 0===n||n,"session"!==this.recordingMode){e.next=3;break}return e.abrupt("return",this.flushImmediate());case 3:return a=Date.now(),Yn&&er.info("Converting buffer to session"),e.next=7,this.flushImmediate();case 7:if(i=this.stopRecording(),r&&i){e.next=10;break}return e.abrupt("return");case 10:if("session"!==this.recordingMode){e.next=12;break}return e.abrupt("return");case 12:this.recordingMode="session",this.session&&(this._updateUserActivity(a),this._updateSessionActivity(a),this._maybeSaveSession()),this.startRecording();case 15:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addUpdate",value:function(e){var t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}},{key:"triggerUserActivity",value:function(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}},{key:"updateUserActivity",value:function(){this._updateUserActivity(),this._updateSessionActivity()}},{key:"conditionalFlush",value:function(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}},{key:"flush",value:function(){return this._debouncedFlush()}},{key:"flushImmediate",value:function(){return this._debouncedFlush(),this._debouncedFlush.flush()}},{key:"cancelFlush",value:function(){this._debouncedFlush.cancel()}},{key:"getSessionId",value:function(){return this.session&&this.session.id}},{key:"checkAndHandleExpiredSession",value:function(){if(!(this._lastActivity&&hr(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}},{key:"setInitialState",value:function(){var e="".concat(X.location.pathname).concat(X.location.hash).concat(X.location.search),t="".concat(X.location.origin).concat(e);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.
1initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}},{key:"throttledAddEvent",value:function(e,t){var n=this,r=this._throttledAddEvent(e,t);if("__THROTTLED"===r){var a=Rn({category:"replay.throttled"});this.addUpdate((function(){return!gr(n,{type:5,timestamp:a.timestamp||0,data:{tag:"breadcrumb",payload:a,metric:!0}})}))}return r}},{key:"getCurrentRoute",value:function(){var e=this.lastActiveSpan||Object(O.d)(),t=e&&Object(O.e)(e),n=(t&&Object(O.l)(t).data||{})[L.n];if(t&&n&&["route","custom"].includes(n))return Object(O.l)(t).description}},{key:"_initializeRecording",value:function(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=or({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}},{key:"_initializeSessionForSampling",value:function(e){var t=this._options.errorSampleRate>0,n=yr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}},{key:"_checkSession",value:function(){if(!this.session)return!1;var e=this.session;return!vr(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}},{key:"_refreshSession",value:(t=Object(r.a)(h.a.mark((function e(t){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._isEnabled){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.stop({reason:"refresh session"});case 4:this.initializeSampling(t.id);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_addListeners",value:function(){try{X.document.addEventListener("visibilitychange",this._handleVisibilityChange),X.addEventListener("blur",this._handleWindowBlur),X.addEventListener("focus",this._handleWindowFocus),X.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){var t=Object(C.a)();Object(W.a)(Nn(e)),Object(H.a)(Dr(e)),Or(e),ua(e);var n=Rr(e);Object(x.a)(n),t&&(t.on("beforeSendEvent",Cr(e)),t.on("afterSendEvent",Ir(e)),t.on("createDsc",(function(t){var n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&(e.checkAndHandleExpiredSession()&&(t.replay_id=n))})),t.on("spanStart",(function(t){e.lastActiveSpan=t})),t.on("spanEnd",(function(t){e.lastActiveSpan=t})),t.on("beforeSendFeedback",(function(t,n){var r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(La){this.handleException(La)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n(e){e.entries.forEach(t)}var r=[];return["navigation","paint","resource"].forEach((function(e){r.push(Object(U.e)(e,n))})),r.push(Object(U.d)(Pn(zn,e)),Object(U.a)(Pn(Hn,e)),Object(U.b)(Pn(qn,e)),Object(U.c)(Pn(Vn,e))),function(){r.forEach((function(e){return e()}))}}(this)}},{key:"_removeListeners",value:function(){try{X.document.removeEventListener("visibilitychange",this._handleVisibilityChange),X.removeEventListener("blur",this._handleWindowBlur),X.removeEventListener("focus",this._handleWindowFocus),X.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(La){this.handleException(La)}}},{key:"__init",value:function(){var e=this;this._handleVisibilityChange=function(){"visible"===X.document.visibilityState?e._doChangeToForegroundTasks():e._doChangeToBackgroundTasks()}}},{key:"__init2",value:function(){var e=this;this._handleWindowBlur=function(){var t=Rn({category:"ui.blur"});e._doChangeToBackgroundTasks(t)}}},{key:"__init3",value:function(){var e=this;this._handleWindowFocus=function(){var t=Rn({category:"ui.focus"});e._doChangeToForegroundTasks(t)}}},{key:"__init4",value:function(){var e=this;this._handleKeyboardEvent=function(t){Ln(e,t)}}}
1,{key:"_doChangeToBackgroundTasks",value:function(e){this.session&&(mr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}},{key:"_doChangeToForegroundTasks",value:function(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Yn&&er.info("Document has become active, but session has expired"))}},{key:"_updateUserActivity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}},{key:"_updateSessionActivity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}},{key:"_createCustomBreadcrumb",value:function(e){var t=this;this.addUpdate((function(){t.throttledAddEvent({type:mt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}},{key:"_addPerformanceEntries",value:function(){var e,t=(e=this.performanceEntries,e.map(Bn).filter(Boolean)).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){var n=this._context.initialTimestamp/1e3;t=t.filter((function(e){return e.start>=n}))}return Promise.all(Ar(this,t))}},{key:"_clearContext",value:function(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}},{key:"_updateInitialTimestampFromEventBuffer",value:function(){var e=this.session,t=this.eventBuffer;if(e&&t&&!this._requiresManualStart&&!e.segmentId){var n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}}},{key:"_popEventContext",value:function(){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}},{key:"_runFlush",value:(e=Object(r.a)(h.a.mark((function e(){var t,n,r,a,i,o,s,c=this;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getSessionId(),this.session&&this.eventBuffer&&t){e.next=4;break}return Yn&&er.error("No session or eventBuffer found to flush."),e.abrupt("return");case 4:return e.next=6,this._addPerformanceEntries();case 6:if(this.eventBuffer&&this.eventBuffer.hasEvents){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,la(this);case 10:if(this.eventBuffer){e.next=12;break}return e.abrupt("return");case 12:if(t===this.getSessionId()){e.next=14;break}return e.abrupt("return");case 14:if(e.prev=14,this._updateInitialTimestampFromEventBuffer(),!((n=Date.now())-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)){e.next=19;break}throw new Error("Session is too long, not sending replay");case 19:return r=this._popEventContext(),a=this.session.segmentId++,this._maybeSaveSession(),e.next=24,this.eventBuffer.finish();case 24:return i=e.sent,e.next=27,_a({replayId:t,recordingData:i,segmentId:a,eventContext:r,session:this.session,timestamp:n,onError:function(e){return c.handleException(e)}});case 27:e.next=35;break;case 29:e.prev=29,e.t0=e.catch(14),this.handleException(e.t0),this.stop({reason:"sendReplay"}),(o=Object(C.a)())&&(s=e.t0 instanceof wa?"ratelimit_backoff":"send_error",o.recordDroppedEvent(s,"replay"));case 35:case"end":return e.stop()}}),e,this,[[14,29]])}))),function(){return e.apply(this,arguments)})},{key:"__init5",value:function(){var e=this;this._flush=Object(r.a)(h.a.mark((function t(){var n,r,a,i,o,s,c,u,l,d,f=arguments;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=f.length>0&&void 0!==f[0]?f[0]:{},r=n.force,a=void 0!==r&&r,e._isEnabled||a){t.next=3;break}return t.abrupt("return");case 3:if(e.checkAndHandleExpiredSession()){t.next=6;break}return Yn&&er.error("Attempting to finish replay event after session expired."),t.abrupt("return");case 6:if(e.session){t.next=8;break}return t.abrupt("return");case 8:if(i=e.session.started,o=Date.now(),s=o-i,e._debouncedFlush.cancel(),c=s<e._options.minReplayDuration,u=s>e._options.maxReplayDuration+5e3,!c&&!u){t.next=18;break}return Yn&&er.info("Session duration (".concat(Math.floor(s/1e3),"s) is too ").concat(c?"short":"long",", not sending replay.")),c&&e._debouncedFlush(),t.abrupt("return");case 18:return(l=e.eventBuffer)&&0===e.session.segmentId&&!l.hasCheckout&&Yn&&er.info("Flushing initial segment without checkout."),d=!!e._flushLock,e._flushLock||(e._flushLock=e._runFlush()),t.prev=22,t.next=25,e._flushLock;case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(22),e.handleException(t.t0);case 30:return t.prev=30,e._flushLock=void 0,d&&e._debouncedFlush(),t.finish(30);case 34:case"end":return t.stop()}}),t,null,[[22,27,30,34]])})))}},{key:"_maybeSaveSession",value:function(){this.session&&this._options.stickySession&&dr(this.session)}},{key:"__init6",value:function(){var e=this;this._onMutationHandler=function(t){var n=t.length,r=e._options.mutationLimit,a=r&&n>r;if(n>e._options.mutationBreadcrumbLimit||a){var i=Rn({category:"replay.mutations",data:{count:n,limit:a}});e._createCustomBreadcrumb(i)}return!a||(e.stop({reason:"mutationLimit",forceFlush:"session"===e.recordingMode}),!1)}}}]);var e,t,n,a}();function Ia(e,t){return[].concat(Object(u.a)(e),Object(u.a)(t)).join(",")}function Ca(e){var t=e.mask,n=e.unmask,r=e.block,a=e.unblock,i=e.ignore;return{maskTextSelector:Ia(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Ia(n,[]),blockSelector:Ia(r,[".sentry-block","[data-sentry-block]"].concat(["base","iframe[srcdoc]:not
1([src])"])),unblockSelector:Ia(a,[]),ignoreSelector:Ia(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Oa(e){var t=e.el,n=e.key,r=e.maskAttributes,a=e.maskAllText,i=e.privacyOptions,o=e.value;return a?i.unmaskTextSelector&&t.matches(i.unmaskTextSelector)?o:r.includes(n)||"value"===n&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}var Ta='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Ma=["content-length","content-type","accept"],Ra=!1,Aa=function(e){return new Da(e)},Da=function(){return Object(f.a)((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.flushMinDelay,r=void 0===n?5e3:n,a=t.flushMaxDelay,i=void 0===a?5500:a,o=t.minReplayDuration,s=void 0===o?4999:o,c=t.maxReplayDuration,u=void 0===c?36e5:c,l=t.stickySession,f=void 0===l||l,p=t.useCompression,h=void 0===p||p,m=t.workerUrl,v=t._experiments,y=void 0===v?{}:v,g=t.maskAllText,k=void 0===g||g,b=t.maskAllInputs,S=void 0===b||b,w=t.blockAllMedia,_=void 0===w||w,E=t.mutationBreadcrumbLimit,x=void 0===E?750:E,I=t.mutationLimit,C=void 0===I?1e4:I,O=t.slowClickTimeout,T=void 0===O?7e3:O,M=t.slowClickIgnoreSelectors,R=void 0===M?[]:M,A=t.networkDetailAllowUrls,D=void 0===A?[]:A,N=t.networkDetailDenyUrls,j=void 0===N?[]:N,L=t.networkCaptureBodies,P=void 0===L||L,B=t.networkRequestHeaders,U=void 0===B?[]:B,z=t.networkResponseHeaders,W=void 0===z?[]:z,H=t.mask,q=void 0===H?[]:H,V=t.maskAttributes,Y=void 0===V?["title","placeholder"]:V,J=t.unmask,G=void 0===J?[]:J,X=t.block,$=void 0===X?[]:X,Q=t.unblock,Z=void 0===Q?[]:Q,ee=t.ignore,te=void 0===ee?[]:ee,ne=t.maskFn,re=t.beforeAddRecordingEvent,ae=t.beforeErrorSampling,ie=t.onError;Object(d.a)(this,e),this.name=e.id;var oe=Ca({mask:q,unmask:G,block:$,unblock:Z,ignore:te});if(this._recordingOptions=K(K({maskAllInputs:S,maskAllText:k,maskInputOptions:{password:!0},maskTextFn:ne,maskInputFn:ne,maskAttributeFn:function(e,t,n){return Oa({maskAttributes:Y,maskAllText:k,privacyOptions:oe,key:e,value:t,el:n})}},oe),{},{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:function(e){try{e.__rrweb__=!0}catch(t){}}}),this._initialOptions={flushMinDelay:r,flushMaxDelay:i,minReplayDuration:Math.min(s,15e3),maxReplayDuration:Math.min(u,36e5),stickySession:f,useCompression:h,workerUrl:m,blockAllMedia:_,maskAllInputs:S,maskAllText:k,mutationBreadcrumbLimit:x,mutationLimit:C,slowClickTimeout:T,slowClickIgnoreSelectors:R,networkDetailAllowUrls:D,networkDetailDenyUrls:j,networkCaptureBodies:P,networkRequestHeaders:Na(U),networkResponseHeaders:Na(W),beforeAddRecordingEvent:re,beforeErrorSampling:ae,onError:ie,_experiments:y},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(Ta):Ta),this._isInitialized&&Object(F.a)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}),[{key:"_isInitialized",get:function(){return Ra},set:function(e){Ra=e}},{key:"afterAllSetup",value:function(e){Object(F.a)()&&!this._replay&&(this._setup(e),this._initialize(e))}},{key:"start",value:function(){this._replay&&this._replay.start()}},{key:"startBuffering",value:function(){this._replay&&this._replay.startBuffering()}},{key:"stop",value:function(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}},{key:"flush",value:function(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}},{key:"getReplayId",value:function(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}},{key:"getRecordingMode",value:function(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}},{key:"_initialize",value:function(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}},{key:"_setup",value:function(e){var t=function(e,t){var n=t.getOptions(),r=K({sessionSampleRate:0,errorSampleRate:0},Object(k.c)(e)),a=Object(P.a)(n.replaysSessionSampleRate),i=Object(P.a)(n.replaysOnErrorSampleRate);null==a&&null==i&&Object(_.b)((function(){console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=a&&(r.sessionSampleRate=a);null!=i&&(r.errorSampleRate=i);return r}(this._initialOptions,e);this._replay=new xa({options:t,recordingOptions:this._recordingOptions})}},{key:"_maybeLoadFromReplayCanvasIntegration",value:function(e){try{var t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(n){}}}],[{key:"__initStatic",value:function(){this.id="Replay"}}])}();function Na(e){return[].concat(Ma,Object(u.a)(e.map((function(e){return e.toLowerCase()}))))}function ja(){var e=Object(C.a)();return e&&e.getIntegrationByName("Replay")}Da.__initStatic()}}]); 2//# sourceMappingURL=795305f3-849828123c7c860bd19e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.