"use strict";(()=>{var Rr=Object.defineProperty,Mr=Object.defineProperties;var _r=Object.getOwnPropertyDescriptors;var pn=Object.getOwnPropertySymbols;var Lr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable;var mn=(e,t,n)=>t in e?Rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ve=(e,t)=>{for(var n in t||(t={}))Lr.call(t,n)&&mn(e,n,t[n]);if(pn)for(var n of pn(t))Pr.call(t,n)&&mn(e,n,t[n]);return e},Mt=(e,t)=>Mr(e,_r(t));var _t=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,n)=>(typeof require!="undefined"?require:t)[n]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var oe;(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"})(oe||(oe={}));function Nr(e){return e.nodeType===e.ELEMENT_NODE}function Te(e){var t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function ke(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Or(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function Lt(e){try{var t=e.rules||e.cssRules;return t?Or(Array.from(t).map(Pt).join("")):null}catch(n){return null}}function Pt(e){var t=e.cssText;if(Dr(e))try{t=Lt(e.styleSheet)||t}catch(n){}return t}function Dr(e){return"styleSheet"in e}var hn=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(t){var n;if(!t)return-1;var r=(n=this.getMeta(t))===null||n===void 0?void 0:n.id;return r!=null?r:-1},e.prototype.getNode=function(t){return this.idNodeMap.get(t)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.prototype.removeNodeFromMap=function(t){var n=this,r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(function(o){return n.removeNodeFromMap(o)})},e.prototype.has=function(t){return this.idNodeMap.has(t)},e.prototype.hasNode=function(t){return this.nodeMetaMap.has(t)},e.prototype.add=function(t,n){var r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)},e.prototype.replace=function(t,n){var r=this.getNode(t);if(r){var o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function bn(){return new hn}function Ze(e){var t=e.maskInputOptions,n=e.tagName,r=e.type,o=e.value,s=e.maskInputFn,d=o||"";return(t[n.toLowerCase()]||t[r])&&(s?d=s(d):d="*".repeat(d.length)),d}var gn="__rrweb_original__";function Fr(e){var t=e.getContext("2d");if(!t)return!0;for(var n=50,r=0;r<e.width;r+=n)for(var o=0;o<e.height;o+=n){var s=t.getImageData,d=gn in s?s[gn]:s,a=new Uint32Array(d.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer);if(a.some(function(c){return c!==0}))return!1}return!0}var Hr=1,Gr=new RegExp("[^a-z0-9-_:]"),Ee=-2;function Nt(){return Hr++}function Br(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return Gr.test(t)?"div":t}function Ur(e){return e.cssRules?Array.from(e.cssRules).map(function(t){return t.cssText||""}).join(""):""}function Wr(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Ne,fn,Vr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Kr=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Zr=/^(data:)([^,]*),(.*)/i;function rt(e,t){return(e||"").replace(Vr,function(n,r,o,s,d,a){var c=o||d||a,l=r||s||"";if(!c)return n;if(!Kr.test(c)||Zr.test(c))return"url(".concat(l).concat(c).concat(l,")");if(c[0]==="/")return"url(".concat(l).concat(Wr(t)+c).concat(l,")");var p=t.split("/"),g=c.split("/");p.pop();for(var b=0,v=g;b<v.length;b++){var f=v[b];f!=="."&&(f===".."?p.pop():p.push(f))}return"url(".concat(l).concat(p.join("/")).concat(l,")")})}var Yr=/^[^ \t\n\r\u000c]+/,zr=/^[, \t\n\r\u000c]+/;function Xr(e,t){if(t.trim()==="")return t;var n=0;function r(l){var p,g=l.exec(t.substring(n));return g?(p=g[0],n+=p.length,p):""}for(var o=[];r(zr),!(n>=t.length);){var s=r(Yr);if(s.slice(-1)===",")s=Oe(e,s.substring(0,s.length-1)),o.push(s);else{var d="";s=Oe(e,s);for(var a=!1;;){var c=t.charAt(n);if(c===""){o.push((s+d).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,o.push((s+d).trim());break}else c==="("&&(a=!0);d+=c,n+=1}}}return o.join(", ")}function Oe(e,t){if(!t||t.trim()==="")return t;var n=e.createElement("a");return n.href=t,n.href}function qr(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ot(){var e=document.createElement("a");return e.href="",e.href}function Dt(e,t,n,r){return n==="src"||n==="href"&&r&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r&&r[0]!=="#"||n==="background"&&r&&(t==="table"||t==="td"||t==="th")?Oe(e,r):n==="srcset"&&r?Xr(e,r):n==="style"&&r?rt(r,Ot()):t==="object"&&n==="data"&&r?Oe(e,r):r}function jr(e,t,n){if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var o=e.classList[r];if(t.test(o))return!0}return n?e.matches(n):!1}function Ke(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?Ke(e.parentNode,t,n):!1;for(var r=e.classList.length;r--;){var o=e.classList[r];if(t.test(o))return!0}return n?Ke(e.parentNode,t,n):!1}function Ft(e,t,n){var r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(r===null)return!1;if(typeof t=="string"){if(r.classList.contains(t)||r.closest(".".concat(t)))return!0}else if(Ke(r,t,!0))return!0;return!!(n&&(r.matches(n)||r.closest(n)))}function Jr(e,t,n){var r=e.contentWindow;if(r){var o=!1,s;try{s=r.document.readyState}catch(c){return}if(s!=="complete"){var d=setTimeout(function(){o||(t(),o=!0)},n);e.addEventListener("load",function(){clearTimeout(d),o=!0,t()});return}var a="about:blank";if(r.location.href!==a||e.src===a||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function Qr(e,t,n){var r=!1,o;try{o=e.sheet}catch(d){return}if(!o){var s=setTimeout(function(){r||(t(),r=!0)},n);e.addEventListener("load",function(){clearTimeout(s),r=!0,t()})}}function $r(e,t){var n=t.doc,r=t.mirror,o=t.blockClass,s=t.blockSelector,d=t.maskTextClass,a=t.maskTextSelector,c=t.inlineStylesheet,l=t.maskInputOptions,p=l===void 0?{}:l,g=t.maskTextFn,b=t.maskInputFn,v=t.dataURLOptions,f=v===void 0?{}:v,C=t.inlineImages,R=t.recordCanvas,w=t.keepIframeSrcFn,I=t.newlyAddedElement,S=I===void 0?!1:I,E=eo(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:oe.Document,childNodes:[],compatMode:e.compatMode}:{type:oe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:oe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return no(e,{doc:n,blockClass:o,blockSelector:s,inlineStylesheet:c,maskInputOptions:p,maskInputFn:b,dataURLOptions:f,inlineImages:C,recordCanvas:R,keepIframeSrcFn:w,newlyAddedElement:S,rootId:E});case e.TEXT_NODE:return to(e,{maskTextClass:d,maskTextSelector:a,maskTextFn:g,rootId:E});case e.CDATA_SECTION_NODE:return{type:oe.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:oe.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function eo(e,t){if(t.hasNode(e)){var n=t.getId(e);return n===1?void 0:n}}function to(e,t){var n,r=t.maskTextClass,o=t.maskTextSelector,s=t.maskTextFn,d=t.rootId,a=e.parentNode&&e.parentNode.tagName,c=e.textContent,l=a==="STYLE"?!0:void 0,p=a==="SCRIPT"?!0:void 0;if(l&&c){try{e.nextSibling||e.previousSibling||!((n=e.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(c=Ur(e.parentNode.sheet))}catch(g){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(g),e)}c=rt(c,Ot())}return p&&(c="SCRIPT_PLACEHOLDER"),!l&&!p&&c&&Ft(e,r,o)&&(c=s?s(c):c.replace(/[\S]/g,"*")),{type:oe.Text,textContent:c||"",isStyle:l,rootId:d}}function no(e,t){for(var n=t.doc,r=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,d=t.maskInputOptions,a=d===void 0?{}:d,c=t.maskInputFn,l=t.dataURLOptions,p=l===void 0?{}:l,g=t.inlineImages,b=t.recordCanvas,v=t.keepIframeSrcFn,f=t.newlyAddedElement,C=f===void 0?!1:f,R=t.rootId,w=jr(e,r,o),I=Br(e),S={},E=e.attributes.length,M=0;M<E;M++){var G=e.attributes[M];S[G.name]=Dt(n,I,G.name,G.value)}if(I==="link"&&s){var z=Array.from(n.styleSheets).find(function(_){return _.href===e.href}),O=null;z&&(O=Lt(z)),O&&(delete S.rel,delete S.href,S._cssText=rt(O,z.href))}if(I==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var O=Lt(e.sheet);O&&(S._cssText=rt(O,Ot()))}if(I==="input"||I==="textarea"||I==="select"){var X=e.value,ne=e.checked;S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&X?S.value=Ze({type:S.type,tagName:I,value:X,maskInputOptions:a,maskInputFn:c}):ne&&(S.checked=ne)}if(I==="option"&&(e.selected&&!a.select?S.selected=!0:delete S.selected),I==="canvas"&&b){if(e.__context==="2d")Fr(e)||(S.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){var J=e.toDataURL(p.type,p.quality),ie=document.createElement("canvas");ie.width=e.width,ie.height=e.height;var se=ie.toDataURL(p.type,p.quality);J!==se&&(S.rr_dataURL=J)}}if(I==="img"&&g){Ne||(Ne=n.createElement("canvas"),fn=Ne.getContext("2d"));var U=e,B=U.crossOrigin;U.crossOrigin="anonymous";var Q=function(){try{Ne.width=U.naturalWidth,Ne.height=U.naturalHeight,fn.drawImage(U,0,0),S.rr_dataURL=Ne.toDataURL(p.type,p.quality)}catch(_){console.warn("Cannot inline img src=".concat(U.currentSrc,"! Error: ").concat(_))}B?S.crossOrigin=B:U.removeAttribute("crossorigin")};U.complete&&U.naturalWidth!==0?Q():U.onload=Q}if((I==="audio"||I==="video")&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),C||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),w){var re=e.getBoundingClientRect(),T=re.width,A=re.height;S={class:S.class,rr_width:"".concat(T,"px"),rr_height:"".concat(A,"px")}}return I==="iframe"&&!v(S.src)&&(e.contentDocument||(S.rr_src=S.src),delete S.src),{type:oe.Element,tagName:I,attributes:S,childNodes:[],isSVG:qr(e)||void 0,needBlock:w,rootId:R}}function K(e){return e===void 0?"":e.toLowerCase()}function ro(e,t){if(t.comment&&e.type===oe.Comment)return!0;if(e.type===oe.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&e.attributes.rel==="preload"&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(K(e.attributes.name).match(/^msapplication-tile(image|color)$/)||K(e.attributes.name)==="application-name"||K(e.attributes.rel)==="icon"||K(e.attributes.rel)==="apple-touch-icon"||K(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&K(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(K(e.attributes.property).match(/^(og|twitter|fb):/)||K(e.attributes.name).match(/^(og|twitter):/)||K(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(K(e.attributes.name)==="robots"||K(e.attributes.name)==="googlebot"||K(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(K(e.attributes.name)==="author"||K(e.attributes.name)==="generator"||K(e.attributes.name)==="framework"||K(e.attributes.name)==="publisher"||K(e.attributes.name)==="progid"||K(e.attributes.property).match(/^article:/)||K(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(K(e.attributes.name)==="google-site-verification"||K(e.attributes.name)==="yandex-verification"||K(e.attributes.name)==="csrf-token"||K(e.attributes.name)==="p:domain_verify"||K(e.attributes.name)==="verify-v1"||K(e.attributes.name)==="verification"||K(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ae(e,t){var n=t.doc,r=t.mirror,o=t.blockClass,s=t.blockSelector,d=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,l=c===void 0?!1:c,p=t.inlineStylesheet,g=p===void 0?!0:p,b=t.maskInputOptions,v=b===void 0?{}:b,f=t.maskTextFn,C=t.maskInputFn,R=t.slimDOMOptions,w=t.dataURLOptions,I=w===void 0?{}:w,S=t.inlineImages,E=S===void 0?!1:S,M=t.recordCanvas,G=M===void 0?!1:M,z=t.onSerialize,O=t.onIframeLoad,X=t.iframeLoadTimeout,ne=X===void 0?5e3:X,J=t.onStylesheetLoad,ie=t.stylesheetLoadTimeout,se=ie===void 0?5e3:ie,U=t.keepIframeSrcFn,B=U===void 0?function(){return!1}:U,Q=t.newlyAddedElement,re=Q===void 0?!1:Q,T=t.preserveWhiteSpace,A=T===void 0?!0:T,_=$r(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskTextClass:d,maskTextSelector:a,inlineStylesheet:g,maskInputOptions:v,maskTextFn:f,maskInputFn:C,dataURLOptions:I,inlineImages:E,recordCanvas:G,keepIframeSrcFn:B,newlyAddedElement:re});if(!_)return console.warn(e,"not serialized"),null;var H;r.hasNode(e)?H=r.getId(e):ro(_,R)||!A&&_.type===oe.Text&&!_.isStyle&&!_.textContent.replace(/^\s+|\s+$/gm,"").length?H=Ee:H=Nt();var P=Object.assign(_,{id:H});if(r.add(e,P),H===Ee)return null;z&&z(e);var Z=!l;if(P.type===oe.Element){Z=Z&&!P.needBlock,delete P.needBlock;var W=e.shadowRoot;W&&ke(W)&&(P.isShadowHost=!0)}if((P.type===oe.Document||P.type===oe.Element)&&Z){R.headWhitespace&&P.type===oe.Element&&P.tagName==="head"&&(A=!1);for(var le={doc:n,mirror:r,blockClass:o,blockSelector:s,maskTextClass:d,maskTextSelector:a,skipChild:l,inlineStylesheet:g,maskInputOptions:v,maskTextFn:f,maskInputFn:C,slimDOMOptions:R,dataURLOptions:I,inlineImages:E,recordCanvas:G,preserveWhiteSpace:A,onSerialize:z,onIframeLoad:O,iframeLoadTimeout:ne,onStylesheetLoad:J,stylesheetLoadTimeout:se,keepIframeSrcFn:B},x=0,ae=Array.from(e.childNodes);x<ae.length;x++){var ue=ae[x],V=Ae(ue,le);V&&P.childNodes.push(V)}if(Nr(e)&&e.shadowRoot)for(var de=0,D=Array.from(e.shadowRoot.childNodes);de<D.length;de++){var ue=D[de],V=Ae(ue,le);V&&(ke(e.shadowRoot)&&(V.isShadow=!0),P.childNodes.push(V))}}return e.parentNode&&Te(e.parentNode)&&ke(e.parentNode)&&(P.isShadow=!0),P.type===oe.Element&&P.tagName==="iframe"&&Jr(e,function(){var $=e.contentDocument;if($&&O){var he=Ae($,{doc:$,mirror:r,blockClass:o,blockSelector:s,maskTextClass:d,maskTextSelector:a,skipChild:!1,inlineStylesheet:g,maskInputOptions:v,maskTextFn:f,maskInputFn:C,slimDOMOptions:R,dataURLOptions:I,inlineImages:E,recordCanvas:G,preserveWhiteSpace:A,onSerialize:z,onIframeLoad:O,iframeLoadTimeout:ne,onStylesheetLoad:J,stylesheetLoadTimeout:se,keepIframeSrcFn:B});he&&O(e,he)}},ne),P.type===oe.Element&&P.tagName==="link"&&P.attributes.rel==="stylesheet"&&Qr(e,function(){if(J){var $=Ae(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskTextClass:d,maskTextSelector:a,skipChild:!1,inlineStylesheet:g,maskInputOptions:v,maskTextFn:f,maskInputFn:C,slimDOMOptions:R,dataURLOptions:I,inlineImages:E,recordCanvas:G,preserveWhiteSpace:A,onSerialize:z,onIframeLoad:O,iframeLoadTimeout:ne,onStylesheetLoad:J,stylesheetLoadTimeout:se,keepIframeSrcFn:B});$&&J(e,$)}},se),P}function yn(e,t){var n=t||{},r=n.mirror,o=r===void 0?new hn:r,s=n.blockClass,d=s===void 0?"rr-block":s,a=n.blockSelector,c=a===void 0?null:a,l=n.maskTextClass,p=l===void 0?"rr-mask":l,g=n.maskTextSelector,b=g===void 0?null:g,v=n.inlineStylesheet,f=v===void 0?!0:v,C=n.inlineImages,R=C===void 0?!1:C,w=n.recordCanvas,I=w===void 0?!1:w,S=n.maskAllInputs,E=S===void 0?!1:S,M=n.maskTextFn,G=n.maskInputFn,z=n.slimDOM,O=z===void 0?!1:z,X=n.dataURLOptions,ne=n.preserveWhiteSpace,J=n.onSerialize,ie=n.onIframeLoad,se=n.iframeLoadTimeout,U=n.onStylesheetLoad,B=n.stylesheetLoadTimeout,Q=n.keepIframeSrcFn,re=Q===void 0?function(){return!1}:Q,T=E===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:E===!1?{password:!0}:E,A=O===!0||O==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:O==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:O===!1?{}:O;return Ae(e,{doc:e,mirror:o,blockClass:d,blockSelector:c,maskTextClass:p,maskTextSelector:b,skipChild:!1,inlineStylesheet:f,maskInputOptions:T,maskTextFn:M,maskInputFn:G,slimDOMOptions:A,dataURLOptions:X,inlineImages:R,recordCanvas:I,preserveWhiteSpace:ne,onSerialize:J,onIframeLoad:ie,iframeLoadTimeout:se,onStylesheetLoad:U,stylesheetLoadTimeout:B,keepIframeSrcFn:re,newlyAddedElement:!1})}var oo=/([^\\]):hover/,zo=new RegExp(oo.source,"g");function ce(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var De=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`,vn={map:{},getId(){return console.error(De),-1},getNode(){return console.error(De),null},removeNodeFromMap(){console.error(De)},has(){return console.error(De),!1},reset(){console.error(De)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(vn=new Proxy(vn,{get(e,t,n){return t==="map"&&console.error(De),Reflect.get(e,t,n)}}));function Fe(e,t,n={}){let r=null,o=0;return function(...s){let d=Date.now();!o&&n.leading===!1&&(o=d);let a=t-(d-o),c=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=d,e.apply(c,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,s)},a))}}function xe(e,t,n,r,o=window){let s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(d){setTimeout(()=>{n.set.call(this,d)},0),s&&s.set&&s.set.call(this,d)}}),()=>xe(e,t,s||{},!0)}function me(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(r){return()=>{}}}function it(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function st(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function q(e,t,n,r){if(!e)return!1;let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!o)return!1;if(typeof t=="string"){if(o.classList.contains(t)||r&&o.closest("."+t)!==null)return!0}else if(Ke(o,t,r))return!0;return!!(n&&(e.matches(n)||r&&o.closest(n)!==null))}function In(e,t){return t.getId(e)!==-1}function at(e,t){return t.getId(e)===Ee}function Ht(e,t){if(Te(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Ht(e.parentNode,t):!0:!0}function Gt(e){return!!e.changedTouches}function Sn(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function ut(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ct(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function lt(e){return!!(e!=null&&e.shadowRoot)}var ot=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var n;return(n=this.styleIDMap.get(t))!==null&&n!==void 0?n:-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};var N=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(N||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e))(L||{}),dt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(dt||{}),be=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(be||{});function Cn(e){return"__ln"in e}var Bt=class{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){let n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Cn(t.previousSibling)){let r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Cn(t.nextSibling)&&t.nextSibling.__ln.previous){let r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;this.length++}removeNode(t){let n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next&&(n.next.previous=n.previous)):(this.head=n.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}},wn=(e,t)=>`${e}@${t}`,pt=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],n=new Bt,r=a=>{let c=a,l=Ee;for(;l===Ee;)c=c&&c.nextSibling,l=c&&this.mirror.getId(c);return l},o=a=>{var c,l,p,g;let b=null;((l=(c=a.getRootNode)===null||c===void 0?void 0:c.call(a))===null||l===void 0?void 0:l.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&a.getRootNode().host&&(b=a.getRootNode().host);let v=b;for(;((g=(p=v==null?void 0:v.getRootNode)===null||p===void 0?void 0:p.call(v))===null||g===void 0?void 0:g.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&v.getRootNode().host;)v=v.getRootNode().host;let f=!this.doc.contains(a)&&(!v||!this.doc.contains(v));if(!a.parentNode||f)return;let C=Te(a.parentNode)?this.mirror.getId(b):this.mirror.getId(a.parentNode),R=r(a);if(C===-1||R===-1)return n.addNode(a);let w=Ae(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:I=>{ut(I,this.mirror)&&this.iframeManager.addIframe(I),ct(I,this.mirror)&&this.stylesheetManager.trackLinkElement(I),lt(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(I,S)=>{this.iframeManager.attachIframe(I,S),this.shadowDomManager.observeAttachShadow(I)},onStylesheetLoad:(I,S)=>{this.stylesheetManager.attachLinkElement(I,S)}});w&&t.push({parentId:C,nextId:R,node:w})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of Array.from(this.movedSet.values()))An(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||o(a);for(let a of Array.from(this.addedSet.values()))!kn(this.droppedSet,a)&&!An(this.removes,a,this.mirror)||kn(this.movedSet,a)?o(a):this.droppedSet.add(a);let s=null;for(;n.length;){let a=null;if(s){let c=this.mirror.getId(s.value.parentNode),l=r(s.value);c!==-1&&l!==-1&&(a=s)}if(!a)for(let c=n.length-1;c>=0;c--){let l=n.get(c);if(l){let p=this.mirror.getId(l.value.parentNode);if(r(l.value)===-1)continue;if(p!==-1){a=l;break}else{let b=l.value;if(b.parentNode&&b.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let v=b.parentNode.host;if(this.mirror.getId(v)!==-1){a=l;break}}}}}if(!a){for(;n.head;)n.removeNode(n.head.value);break}s=a.previous,n.removeNode(a.value),o(a.value)}let d={texts:this.texts.map(a=>({id:this.mirror.getId(a.node),value:a.value})).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>({id:this.mirror.getId(a.node),attributes:a.attributes})).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(d))},this.processMutation=t=>{if(!at(t.target,this.mirror))switch(t.type){case"characterData":{let n=t.target.textContent;!q(t.target,this.blockClass,this.blockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Ft(t.target,this.maskTextClass,this.maskTextSelector)&&n?this.maskTextFn?this.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{let n=t.target,r=t.target.getAttribute(t.attributeName);if(t.attributeName==="value"&&(r=Ze({maskInputOptions:this.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:r,maskInputFn:this.maskInputFn})),q(t.target,this.blockClass,this.blockSelector,!1)||r===t.oldValue)return;let o=this.attributes.find(s=>s.node===t.target);if(n.tagName==="IFRAME"&&t.attributeName==="src"&&!this.keepIframeSrcFn(r))if(!n.contentDocument)t.attributeName="rr_src";else return;if(o||(o={node:t.target,attributes:{}},this.attributes.push(o)),t.attributeName==="style"){let s=this.doc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue),(o.attributes.style===void 0||o.attributes.style===null)&&(o.attributes.style={});let d=o.attributes.style;for(let a of Array.from(n.style)){let c=n.style.getPropertyValue(a),l=n.style.getPropertyPriority(a);(c!==s.style.getPropertyValue(a)||l!==s.style.getPropertyPriority(a))&&(l===""?d[a]=c:d[a]=[c,l])}for(let a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(d[a]=!1)}else o.attributes[t.attributeName]=Dt(this.doc,n.tagName,t.attributeName,r);break}case"childList":{if(q(t.target,this.blockClass,this.blockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{let r=this.mirror.getId(n),o=Te(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);q(t.target,this.blockClass,this.blockSelector,!1)||at(n,this.mirror)||!In(n,this.mirror)||(this.addedSet.has(n)?(Ut(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Ht(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[wn(r,o)]?Ut(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:Te(t.target)&&ke(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(this.mirror.hasNode(t)){if(at(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[wn(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);q(t,this.blockClass,this.blockSelector,!1)||t.childNodes.forEach(r=>this.genAdds(r))}}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function Ut(e,t){e.delete(t),t.childNodes.forEach(n=>Ut(e,n))}function An(e,t,n){return e.length===0?!1:En(e,t,n)}function En(e,t,n){let{parentNode:r}=t;if(!r)return!1;let o=n.getId(r);return e.some(s=>s.id===o)?!0:En(e,r,n)}function kn(e,t){return e.size===0?!1:Tn(e,t)}function Tn(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:Tn(e,n):!1}var ve=[],Mn=typeof CSSGroupingRule!="undefined",_n=typeof CSSMediaRule!="undefined",Ln=typeof CSSSupportsRule!="undefined",Pn=typeof CSSConditionRule!="undefined";function Ye(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function Wt(e,t){var n,r;let o=new pt;ve.push(o),o.init(e);let s=window.MutationObserver||window.__rrMutationObserver,d=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");d&&window[d]&&(s=window[d]);let a=new s(o.processMutations.bind(o));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function io({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let o=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,d=[],a,c=Fe(g=>{let b=Date.now()-a;e(d.map(v=>(v.timeOffset-=b,v)),g),d=[],a=null},s),l=Fe(g=>{let b=Ye(g),{clientX:v,clientY:f}=Gt(g)?g.changedTouches[0]:g;a||(a=Date.now()),d.push({x:v,y:f,id:r.getId(b),timeOffset:Date.now()-a}),c(typeof DragEvent!="undefined"&&g instanceof DragEvent?L.Drag:g instanceof MouseEvent?L.MouseMove:L.TouchMove)},o,{trailing:!1}),p=[ce("mousemove",l,n),ce("touchmove",l,n),ce("drag",l,n)];return()=>{p.forEach(g=>g())}}function so({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,sampling:s}){if(s.mouseInteraction===!1)return()=>{};let d=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,a=[],c=l=>p=>{let g=Ye(p);if(q(g,r,o,!0))return;let b=Gt(p)?p.changedTouches[0]:p;if(!b)return;let v=n.getId(g),{clientX:f,clientY:C}=b;e({type:dt[l],id:v,x:f,y:C})};return Object.keys(dt).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&d[l]!==!1).forEach(l=>{let p=l.toLowerCase(),g=c(l);a.push(ce(p,g,t))}),()=>{a.forEach(l=>l())}}function Vt({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,sampling:s}){let d=Fe(a=>{let c=Ye(a);if(!c||q(c,r,o,!0))return;let l=n.getId(c);if(c===t){let p=t.scrollingElement||t.documentElement;e({id:l,x:p.scrollLeft,y:p.scrollTop})}else e({id:l,x:c.scrollLeft,y:c.scrollTop})},s.scroll||100);return ce("scroll",d,t)}function ao({viewportResizeCb:e}){let t=-1,n=-1,r=Fe(()=>{let o=it(),s=st();(t!==o||n!==s)&&(e({width:Number(s),height:Number(o)}),t=o,n=s)},200);return ce("resize",r,window)}function xn(e,t){let n=Object.assign({},e);return t||delete n.userTriggered,n}var uo=["INPUT","TEXTAREA","SELECT"],Rn=new WeakMap;function co({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,ignoreClass:s,maskInputOptions:d,maskInputFn:a,sampling:c,userTriggeredOnInput:l}){function p(w){let I=Ye(w),S=w.isTrusted;if(I&&I.tagName==="OPTION"&&(I=I.parentElement),!I||!I.tagName||uo.indexOf(I.tagName)<0||q(I,r,o,!0))return;let E=I.type;if(I.classList.contains(s))return;let M=I.value,G=!1;E==="radio"||E==="checkbox"?G=I.checked:(d[I.tagName.toLowerCase()]||d[E])&&(M=Ze({maskInputOptions:d,tagName:I.tagName,type:E,value:M,maskInputFn:a})),g(I,xn({text:M,isChecked:G,userTriggered:S},l));let z=I.name;E==="radio"&&z&&G&&t.querySelectorAll(`input[type="radio"][name="${z}"]`).forEach(O=>{O!==I&&g(O,xn({text:O.value,isChecked:!G,userTriggered:!1},l))})}function g(w,I){let S=Rn.get(w);if(!S||S.text!==I.text||S.isChecked!==I.isChecked){Rn.set(w,I);let E=n.getId(w);e(Object.assign(Object.assign({},I),{id:E}))}}let v=(c.input==="last"?["change"]:["input","change"]).map(w=>ce(w,p,t)),f=t.defaultView;if(!f)return()=>{v.forEach(w=>w())};let C=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),R=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return C&&C.set&&v.push(...R.map(w=>xe(w[0],w[1],{set(){p({target:this})}},!1,f))),()=>{v.forEach(w=>w())}}function mt(e){let t=[];function n(r,o){if(Mn&&r.parentRule instanceof CSSGroupingRule||_n&&r.parentRule instanceof CSSMediaRule||Ln&&r.parentRule instanceof CSSSupportsRule||Pn&&r.parentRule instanceof CSSConditionRule){let d=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(d)}else if(r.parentStyleSheet){let d=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(d)}return o}return n(e,t)}function ye(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function lo({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=function(p,g){let{id:b,styleId:v}=ye(this,t,n.styleMirror);return(b&&b!==-1||v&&v!==-1)&&e({id:b,styleId:v,adds:[{rule:p,index:g}]}),o.apply(this,[p,g])};let s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=function(p){let{id:g,styleId:b}=ye(this,t,n.styleMirror);return(g&&g!==-1||b&&b!==-1)&&e({id:g,styleId:b,removes:[{index:p}]}),s.apply(this,[p])};let d;r.CSSStyleSheet.prototype.replace&&(d=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=function(p){let{id:g,styleId:b}=ye(this,t,n.styleMirror);return(g&&g!==-1||b&&b!==-1)&&e({id:g,styleId:b,replace:p}),d.apply(this,[p])});let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=function(p){let{id:g,styleId:b}=ye(this,t,n.styleMirror);return(g&&g!==-1||b&&b!==-1)&&e({id:g,styleId:b,replaceSync:p}),a.apply(this,[p])});let c={};Mn?c.CSSGroupingRule=r.CSSGroupingRule:(_n&&(c.CSSMediaRule=r.CSSMediaRule),Pn&&(c.CSSConditionRule=r.CSSConditionRule),Ln&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([p,g])=>{l[p]={insertRule:g.prototype.insertRule,deleteRule:g.prototype.deleteRule},g.prototype.insertRule=function(b,v){let{id:f,styleId:C}=ye(this.parentStyleSheet,t,n.styleMirror);return(f&&f!==-1||C&&C!==-1)&&e({id:f,styleId:C,adds:[{rule:b,index:[...mt(this),v||0]}]}),l[p].insertRule.apply(this,[b,v])},g.prototype.deleteRule=function(b){let{id:v,styleId:f}=ye(this.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||f&&f!==-1)&&e({id:v,styleId:f,removes:[{index:[...mt(this),b]}]}),l[p].deleteRule.apply(this,[b])}}),()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,d&&(r.CSSStyleSheet.prototype.replace=d),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([p,g])=>{g.prototype.insertRule=l[p].insertRule,g.prototype.deleteRule=l[p].deleteRule})}}function Kt({mirror:e,stylesheetManager:t},n){var r,o,s;let d=null;n.nodeName==="#document"?d=e.getId(n):d=e.getId(n.host);let a=n.nodeName==="#document"?(r=n.defaultView)===null||r===void 0?void 0:r.Document:(s=(o=n.ownerDocument)===null||o===void 0?void 0:o.defaultView)===null||s===void 0?void 0:s.ShadowRoot,c=Object.getOwnPropertyDescriptor(a==null?void 0:a.prototype,"adoptedStyleSheets");return d===null||d===-1||!a||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var l;return(l=c.get)===null||l===void 0?void 0:l.call(this)},set(l){var p;let g=(p=c.set)===null||p===void 0?void 0:p.call(this,l);if(d!==null&&d!==-1)try{t.adoptStyleSheets(l,d)}catch(b){}return g}}),()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})}function po({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){let s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=function(a,c,l){var p;if(n.has(a))return s.apply(this,[a,c,l]);let{id:g,styleId:b}=ye((p=this.parentRule)===null||p===void 0?void 0:p.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||b&&b!==-1)&&e({id:g,styleId:b,set:{property:a,value:c,priority:l},index:mt(this.parentRule)}),s.apply(this,[a,c,l])};let d=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=function(a){var c;if(n.has(a))return d.apply(this,[a]);let{id:l,styleId:p}=ye((c=this.parentRule)===null||c===void 0?void 0:c.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||p&&p!==-1)&&e({id:l,styleId:p,remove:{property:a},index:mt(this.parentRule)}),d.apply(this,[a])},()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=d}}function mo({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:r,sampling:o}){let s=a=>Fe(c=>{let l=Ye(c);if(!l||q(l,t,n,!0))return;let{currentTime:p,volume:g,muted:b,playbackRate:v}=l;e({type:a,id:r.getId(l),currentTime:p,volume:g,muted:b,playbackRate:v})},o.media||500),d=[ce("play",s(0)),ce("pause",s(1)),ce("seeked",s(2)),ce("volumechange",s(3)),ce("ratechange",s(4))];return()=>{d.forEach(a=>a())}}function go({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(c,l,p){let g=new s(c,l,p);return o.set(g,{family:c,buffer:typeof l!="string",descriptors:p,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),g};let d=me(t.fonts,"add",function(a){return function(c){return setTimeout(()=>{let l=o.get(c);l&&(e(l),o.delete(c))},0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(d),()=>{r.forEach(a=>a())}}function fo(e){let{doc:t,mirror:n,blockClass:r,blockSelector:o,selectionCb:s}=e,d=!0,a=()=>{let c=t.getSelection();if(!c||d&&(c!=null&&c.isCollapsed))return;d=c.isCollapsed||!1;let l=[],p=c.rangeCount||0;for(let g=0;g<p;g++){let b=c.getRangeAt(g),{startContainer:v,startOffset:f,endContainer:C,endOffset:R}=b;q(v,r,o,!0)||q(C,r,o,!0)||l.push({start:n.getId(v),startOffset:f,end:n.getId(C),endOffset:R})}s({ranges:l})};return a(),ce("selectionchange",a)}function ho(e,t){let{mutationCb:n,mousemoveCb:r,mouseInteractionCb:o,scrollCb:s,viewportResizeCb:d,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:p,canvasMutationCb:g,fontCb:b,selectionCb:v}=e;e.mutationCb=(...f)=>{t.mutation&&t.mutation(...f),n(...f)},e.mousemoveCb=(...f)=>{t.mousemove&&t.mousemove(...f),r(...f)},e.mouseInteractionCb=(...f)=>{t.mouseInteraction&&t.mouseInteraction(...f),o(...f)},e.scrollCb=(...f)=>{t.scroll&&t.scroll(...f),s(...f)},e.viewportResizeCb=(...f)=>{t.viewportResize&&t.viewportResize(...f),d(...f)},e.inputCb=(...f)=>{t.input&&t.input(...f),a(...f)},e.mediaInteractionCb=(...f)=>{t.mediaInteaction&&t.mediaInteaction(...f),c(...f)},e.styleSheetRuleCb=(...f)=>{t.styleSheetRule&&t.styleSheetRule(...f),l(...f)},e.styleDeclarationCb=(...f)=>{t.styleDeclaration&&t.styleDeclaration(...f),p(...f)},e.canvasMutationCb=(...f)=>{t.canvasMutation&&t.canvasMutation(...f),g(...f)},e.fontCb=(...f)=>{t.font&&t.font(...f),b(...f)},e.selectionCb=(...f)=>{t.selection&&t.selection(...f),v(...f)}}function Nn(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};ho(e,t);let r=Wt(e,e.doc),o=io(e),s=so(e),d=Vt(e),a=ao(e),c=co(e),l=mo(e),p=lo(e,{win:n}),g=Kt(e,e.doc),b=po(e,{win:n}),v=e.collectFonts?go(e):()=>{},f=fo(e),C=[];for(let R of e.plugins)C.push(R.observer(R.callback,n,R.options));return()=>{ve.forEach(R=>R.reset()),r.disconnect(),o(),s(),d(),a(),c(),l(),p(),g(),b(),v(),f(),C.forEach(R=>R())}}var ze=class{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){let s=r||this.getIdToRemoteIdMap(t),d=o||this.getRemoteIdToIdMap(t),a=s.get(n);return a||(a=this.generateIdFn(),s.set(n,a),d.set(a,n)),a}getIds(t,n){let r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,o))}getRemoteId(t,n,r){let o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;let s=o.get(n);return s||-1}getRemoteIds(t,n){let r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}};var gt=class{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ze(Nt),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ze(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){if(t.data.type==="rrweb"){if(!t.source)return;let r=this.crossOriginIframeMap.get(t.source);if(!r)return;let o=this.transformCrossOriginEvent(r,t.data.event);o&&this.wrappedEmit(o,t.data.isCheckout)}}transformCrossOriginEvent(t,n){var r;switch(n.type){case N.FullSnapshot:return this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t),{timestamp:n.timestamp,type:N.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case N.Meta:case N.Load:case N.DomContentLoaded:return!1;case N.Plugin:return n;case N.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case N.IncrementalSnapshot:switch(n.data.source){case L.Mutation:return n.data.adds.forEach(o=>{this.replaceIds(o,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(o.node,t)}),n.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),n.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),n.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case L.Drag:case L.TouchMove:case L.MouseMove:return n.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(n.data,t,["id"]),n;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case L.Font:return n;case L.Selection:return n.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),n;case L.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)===null||r===void 0||r.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),n}}}replace(t,n,r,o){for(let s of o)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}};var ft=class{constructor(t){this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;let n=this;this.restorePatches.push(me(Element.prototype,"attachShadow",function(r){return function(o){let s=r.call(this,o);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),s}}))}addShadowRoot(t,n){ke(t)&&(this.shadowDoms.has(t)||(this.shadowDoms.add(t),Wt(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),Vt(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),Kt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t)},0)))}observeAttachShadow(t){if(t.contentWindow){let n=this;this.restorePatches.push(me(t.contentWindow.HTMLElement.prototype,"attachShadow",function(r){return function(o){let s=r.call(this,o);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,t.contentDocument),s}}))}}reset(){this.restorePatches.forEach(t=>t()),this.shadowDoms=new WeakSet}};function On(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Dn(e,t,n,r){function o(s){return s instanceof n?s:new n(function(d){d(s)})}return new(n||(n=Promise))(function(s,d){function a(p){try{l(r.next(p))}catch(g){d(g)}}function c(p){try{l(r.throw(p))}catch(g){d(g)}}function l(p){p.done?s(p.value):o(p.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}var He="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bo=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(Xe=0;Xe<He.length;Xe++)bo[He.charCodeAt(Xe)]=Xe;var Xe,Fn=function(e){var t=new Uint8Array(e),n,r=t.length,o="";for(n=0;n<r;n+=3)o+=He[t[n]>>2],o+=He[(t[n]&3)<<4|t[n+1]>>4],o+=He[(t[n+1]&15)<<2|t[n+2]>>6],o+=He[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o};var Hn=new Map;function yo(e,t){let n=Hn.get(e);return n||(n=new Map,Hn.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var Zt=(e,t,n)=>{if(!e||!(Gn(e,t)||typeof e=="object"))return;let r=e.constructor.name,o=yo(n,r),s=o.indexOf(e);return s===-1&&(s=o.length,o.push(e)),s};function ht(e,t,n){if(e instanceof Array)return e.map(r=>ht(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let r=e.constructor.name,o=Fn(e);return{rr_type:r,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[ht(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let r=e.constructor.name,{src:o}=e;return{rr_type:r,src:o}}else if(e instanceof HTMLCanvasElement){let r="HTMLImageElement",o=e.toDataURL();return{rr_type:r,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[ht(e.data,t,n),e.width,e.height]};if(Gn(e,t)||typeof e=="object"){let r=e.constructor.name,o=Zt(e,t,n);return{rr_type:r,index:o}}}}return e}var bt=(e,t,n)=>[...e].map(r=>ht(r,t,n)),Gn=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof t[o]=="function").find(o=>e instanceof t[o]);function Bn(e,t,n,r){let o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let d of s)try{if(typeof t.CanvasRenderingContext2D.prototype[d]!="function")continue;let a=me(t.CanvasRenderingContext2D.prototype,d,function(c){return function(...l){return q(this.canvas,n,r,!0)||setTimeout(()=>{let p=bt([...l],t,this);e(this.canvas,{type:be["2D"],property:d,args:p})},0),c.apply(this,l)}});o.push(a)}catch(a){let c=xe(t.CanvasRenderingContext2D.prototype,d,{set(l){e(this.canvas,{type:be["2D"],property:d,args:[l],setter:!0})}});o.push(c)}return()=>{o.forEach(d=>d())}}function Yt(e,t,n){let r=[];try{let o=me(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(d,...a){return q(this,t,n,!0)||"__context"in this||(this.__context=d),s.apply(this,[d,...a])}});r.push(o)}catch(o){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach(o=>o())}}function Un(e,t,n,r,o,s,d){let a=[],c=Object.getOwnPropertyNames(e);for(let l of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let p=me(e,l,function(g){return function(...b){let v=g.apply(this,b);if(Zt(v,d,this),!q(this.canvas,r,o,!0)){let f=bt([...b],d,this),C={type:t,property:l,args:f};n(this.canvas,C)}return v}});a.push(p)}catch(p){let g=xe(e,l,{set(b){n(this.canvas,{type:t,property:l,args:[b],setter:!0})}});a.push(g)}return a}function Wn(e,t,n,r,o){let s=[];return s.push(...Un(t.WebGLRenderingContext.prototype,be.WebGL,e,n,r,o,t)),typeof t.WebGL2RenderingContext!="undefined"&&s.push(...Un(t.WebGL2RenderingContext.prototype,be.WebGL2,e,n,r,o,t)),()=>{s.forEach(d=>d())}}var zt=null;try{Vn=typeof module!="undefined"&&typeof module.require=="function"&&module.require("worker_threads")||typeof __non_webpack_require__=="function"&&__non_webpack_require__("worker_threads")||typeof _t=="function"&&_t("worker_threads"),zt=Vn.Worker}catch(e){}var Vn;function vo(e,t){return Buffer.from(e,"base64").toString(t?"utf16":"utf8")}function Kn(e,t,n){var r=t===void 0?null:t,o=n===void 0?!1:n,s=vo(e,o),d=s.indexOf(`
`,10)+1,a=s.substring(d)+(r?"//# sourceMappingURL="+r:"");return function(l){return new zt(a,Object.assign({},l,{eval:!0}))}}function Io(e,t){var n=atob(e);if(t){for(var r=new Uint8Array(n.length),o=0,s=n.length;o<s;++o)r[o]=n.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}function So(e,t,n){var r=t===void 0?null:t,o=n===void 0?!1:n,s=Io(e,o),d=s.indexOf(`
`,10)+1,a=s.substring(d)+(r?"//# sourceMappingURL="+r:""),c=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(c)}function Zn(e,t,n){var r;return function(s){return r=r||So(e,t,n),new Worker(r,s)}}var Co=Object.prototype.toString.call(typeof process!="undefined"?process:0)==="[object process]";function Yn(){return Co}function zn(e,t,n){return Yn()?Kn(e,t,n):Zn(e,t,n)}var Xn=zn("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NDQogICAgTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIE5FR0xJR0VOQ0UgT1INCiAgICBPVEhFUiBUT1JUSU9VUyBBQ1RJT04sIEFSSVNJTkcgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgVVNFIE9SDQogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4NCiAgICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiAqLw0KDQogICAgZnVuY3Rpb24gX19hd2FpdGVyKHRoaXNBcmcsIF9hcmd1bWVudHMsIFAsIGdlbmVyYXRvcikgew0KICAgICAgICBmdW5jdGlvbiBhZG9wdCh2YWx1ZSkgeyByZXR1cm4gdmFsdWUgaW5zdGFuY2VvZiBQID8gdmFsdWUgOiBuZXcgUChmdW5jdGlvbiAocmVzb2x2ZSkgeyByZXNvbHZlKHZhbHVlKTsgfSk7IH0NCiAgICAgICAgcmV0dXJuIG5ldyAoUCB8fCAoUCA9IFByb21pc2UpKShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7DQogICAgICAgICAgICBmdW5jdGlvbiBmdWxmaWxsZWQodmFsdWUpIHsgdHJ5IHsgc3RlcChnZW5lcmF0b3IubmV4dCh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiByZWplY3RlZCh2YWx1ZSkgeyB0cnkgeyBzdGVwKGdlbmVyYXRvclsidGhyb3ciXSh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiBzdGVwKHJlc3VsdCkgeyByZXN1bHQuZG9uZSA/IHJlc29sdmUocmVzdWx0LnZhbHVlKSA6IGFkb3B0KHJlc3VsdC52YWx1ZSkudGhlbihmdWxmaWxsZWQsIHJlamVjdGVkKTsgfQ0KICAgICAgICAgICAgc3RlcCgoZ2VuZXJhdG9yID0gZ2VuZXJhdG9yLmFwcGx5KHRoaXNBcmcsIF9hcmd1bWVudHMgfHwgW10pKS5uZXh0KCkpOw0KICAgICAgICB9KTsNCiAgICB9CgogICAgLyoKICAgICAqIGJhc2U2NC1hcnJheWJ1ZmZlciAxLjAuMSA8aHR0cHM6Ly9naXRodWIuY29tL25pa2xhc3ZoL2Jhc2U2NC1hcnJheWJ1ZmZlcj4KICAgICAqIENvcHlyaWdodCAoYykgMjAyMSBOaWtsYXMgdm9uIEhlcnR6ZW4gPGh0dHBzOi8vaGVydHplbi5jb20+CiAgICAgKiBSZWxlYXNlZCB1bmRlciBNSVQgTGljZW5zZQogICAgICovCiAgICB2YXIgY2hhcnMgPSAnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyc7CiAgICAvLyBVc2UgYSBsb29rdXAgdGFibGUgdG8gZmluZCB0aGUgaW5kZXguCiAgICB2YXIgbG9va3VwID0gdHlwZW9mIFVpbnQ4QXJyYXkgPT09ICd1bmRlZmluZWQnID8gW10gOiBuZXcgVWludDhBcnJheSgyNTYpOwogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGFycy5sZW5ndGg7IGkrKykgewogICAgICAgIGxvb2t1cFtjaGFycy5jaGFyQ29kZUF0KGkpXSA9IGk7CiAgICB9CiAgICB2YXIgZW5jb2RlID0gZnVuY3Rpb24gKGFycmF5YnVmZmVyKSB7CiAgICAgICAgdmFyIGJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoYXJyYXlidWZmZXIpLCBpLCBsZW4gPSBieXRlcy5sZW5ndGgsIGJhc2U2NCA9ICcnOwogICAgICAgIGZvciAoaSA9IDA7IGkgPCBsZW47IGkgKz0gMykgewogICAgICAgICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaV0gPj4gMl07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1soKGJ5dGVzW2ldICYgMykgPDwgNCkgfCAoYnl0ZXNbaSArIDFdID4+IDQpXTsKICAgICAgICAgICAgYmFzZTY0ICs9IGNoYXJzWygoYnl0ZXNbaSArIDFdICYgMTUpIDw8IDIpIHwgKGJ5dGVzW2kgKyAyXSA+PiA2KV07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1tieXRlc1tpICsgMl0gJiA2M107CiAgICAgICAgfQogICAgICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgJz0nOwogICAgICAgIH0KICAgICAgICBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgJz09JzsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGJhc2U2NDsKICAgIH07CgogICAgY29uc3QgbGFzdEJsb2JNYXAgPSBuZXcgTWFwKCk7DQogICAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gbmV3IE1hcCgpOw0KICAgIGZ1bmN0aW9uIGdldFRyYW5zcGFyZW50QmxvYkZvcih3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucykgew0KICAgICAgICByZXR1cm4gX19hd2FpdGVyKHRoaXMsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiogKCkgew0KICAgICAgICAgICAgY29uc3QgaWQgPSBgJHt3aWR0aH0tJHtoZWlnaHR9YDsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgaWYgKHRyYW5zcGFyZW50QmxvYk1hcC5oYXMoaWQpKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNwYXJlbnRCbG9iTWFwLmdldChpZCk7DQogICAgICAgICAgICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsNCiAgICAgICAgICAgICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgnMmQnKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0geWllbGQgYmxvYi5hcnJheUJ1ZmZlcigpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7DQogICAgICAgICAgICAgICAgdHJhbnNwYXJlbnRCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICByZXR1cm4gYmFzZTY0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICcnOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICB9DQogICAgY29uc3Qgd29ya2VyID0gc2VsZjsNCiAgICB3b3JrZXIub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsNCiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgY29uc3QgeyBpZCwgYml0bWFwLCB3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucyB9ID0gZS5kYXRhOw0KICAgICAgICAgICAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zKTsNCiAgICAgICAgICAgICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCcyZCcpOw0KICAgICAgICAgICAgICAgIGN0eC5kcmF3SW1hZ2UoYml0bWFwLCAwLCAwKTsNCiAgICAgICAgICAgICAgICBiaXRtYXAuY2xvc2UoKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IHR5cGUgPSBibG9iLnR5cGU7DQogICAgICAgICAgICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSB5aWVsZCBibG9iLmFycmF5QnVmZmVyKCk7DQogICAgICAgICAgICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsNCiAgICAgICAgICAgICAgICBpZiAoIWxhc3RCbG9iTWFwLmhhcyhpZCkgJiYgKHlpZWxkIHRyYW5zcGFyZW50QmFzZTY0KSA9PT0gYmFzZTY0KSB7DQogICAgICAgICAgICAgICAgICAgIGxhc3RCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7DQogICAgICAgICAgICAgICAgd29ya2VyLnBvc3RNZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgaWQsDQogICAgICAgICAgICAgICAgICAgIHR5cGUsDQogICAgICAgICAgICAgICAgICAgIGJhc2U2NCwNCiAgICAgICAgICAgICAgICAgICAgd2lkdGgsDQogICAgICAgICAgICAgICAgICAgIGhlaWdodCwNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfSk7DQogICAgfTsKCn0pKCk7Cgo=",null,!1);var yt=class{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(c,l)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(l)};let{sampling:n="all",win:r,blockClass:o,blockSelector:s,recordCanvas:d,dataURLOptions:a}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,d&&n==="all"&&this.initCanvasMutationObserver(r,o,s),d&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,o,s,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,n,r,o,s){let d=Yt(n,r,o),a=new Map,c=new Xn;c.onmessage=f=>{let{id:C}=f.data;if(a.set(C,!1),!("base64"in f.data))return;let{base64:R,type:w,width:I,height:S}=f.data;this.mutationCb({id:C,type:be["2D"],commands:[{property:"clearRect",args:[0,0,I,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:R}],type:w}]},0,0]}]})};let l=1e3/t,p=0,g,b=()=>{let f=[];return n.document.querySelectorAll("canvas").forEach(C=>{q(C,r,o,!0)||f.push(C)}),f},v=f=>{if(p&&f-p<l){g=requestAnimationFrame(v);return}p=f,b().forEach(C=>Dn(this,void 0,void 0,function*(){var R;let w=this.mirror.getId(C);if(a.get(w))return;if(a.set(w,!0),["webgl","webgl2"].includes(C.__context)){let S=C.getContext(C.__context);((R=S==null?void 0:S.getContextAttributes())===null||R===void 0?void 0:R.preserveDrawingBuffer)===!1&&(S==null||S.clear(S.COLOR_BUFFER_BIT))}let I=yield createImageBitmap(C);c.postMessage({id:w,bitmap:I,width:C.width,height:C.height,dataURLOptions:s.dataURLOptions},[I])})),g=requestAnimationFrame(v)};g=requestAnimationFrame(v),this.resetObservers=()=>{d(),cancelAnimationFrame(g)}}initCanvasMutationObserver(t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let o=Yt(t,n,r),s=Bn(this.processMutation.bind(this),t,n,r),d=Wn(this.processMutation.bind(this),t,n,r,this.mirror);this.resetObservers=()=>{o(),s(),d()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=n=>{this.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{let r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;let o=r.map(d=>On(d,["type"])),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:o}),this.pendingCanvasMutations.delete(t)}};var vt=class{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new ot,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;let r={id:n,styleIds:[]},o=[];for(let s of t){let d;if(this.styleMirror.has(s))d=this.styleMirror.getId(s);else{d=this.styleMirror.add(s);let a=Array.from(s.rules||CSSRule);o.push({styleId:d,rules:a.map((c,l)=>({rule:Pt(c),index:l}))})}r.styleIds.push(d)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}};function te(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}var j,It,Xt,St=!1,ge=bn();function Ie(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,ignoreClass:d="rr-ignore",maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:l=!0,maskAllInputs:p,maskInputOptions:g,slimDOMOptions:b,maskInputFn:v,maskTextFn:f,hooks:C,packFn:R,sampling:w={},dataURLOptions:I={},mousemoveWait:S,recordCanvas:E=!1,recordCrossOriginIframes:M=!1,userTriggeredOnInput:G=!1,collectFonts:z=!1,inlineImages:O=!1,plugins:X,keepIframeSrcFn:ne=()=>!1,ignoreCSSAttributes:J=new Set([])}=e,ie=M?window.parent===window:!0,se=!1;if(!ie)try{window.parent.document,se=!1}catch(x){se=!0}if(ie&&!t)throw new Error("emit function is required");S!==void 0&&w.mousemove===void 0&&(w.mousemove=S),ge.reset();let U=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:g!==void 0?g:{password:!0},B=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all"}:b||{};Sn();let Q,re=0,T=x=>{for(let ae of X||[])ae.eventProcessor&&(x=ae.eventProcessor(x));return R&&(x=R(x)),x};j=(x,ae)=>{var ue;if(!((ue=ve[0])===null||ue===void 0)&&ue.isFrozen()&&x.type!==N.FullSnapshot&&!(x.type===N.IncrementalSnapshot&&x.data.source===L.Mutation)&&ve.forEach(V=>V.unfreeze()),ie)t==null||t(T(x),ae);else if(se){let V={type:"rrweb",event:T(x),isCheckout:ae};window.parent.postMessage(V,"*")}if(x.type===N.FullSnapshot)Q=x,re=0;else if(x.type===N.IncrementalSnapshot){if(x.data.source===L.Mutation&&x.data.isAttachIframe)return;re++;let V=r&&re>=r,de=n&&x.timestamp-Q.timestamp>n;(V||de)&&It(!0)}};let A=x=>{j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.Mutation},x)}))},_=x=>j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.Scroll},x)})),H=x=>j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.CanvasMutation},x)})),P=x=>j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.AdoptedStyleSheet},x)})),Z=new vt({mutationCb:A,adoptedStyleSheetCb:P}),W=new gt({mirror:ge,mutationCb:A,stylesheetManager:Z,recordCrossOriginIframes:M,wrappedEmit:j});for(let x of X||[])x.getMirror&&x.getMirror({nodeMirror:ge,crossOriginIframeMirror:W.crossOriginIframeMirror,crossOriginIframeStyleMirror:W.crossOriginIframeStyleMirror});Xt=new yt({recordCanvas:E,mutationCb:H,win:window,blockClass:o,blockSelector:s,mirror:ge,sampling:w.canvas,dataURLOptions:I});let le=new ft({mutationCb:A,scrollCb:_,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:l,maskInputOptions:U,dataURLOptions:I,maskTextFn:f,maskInputFn:v,recordCanvas:E,inlineImages:O,sampling:w,slimDOMOptions:B,iframeManager:W,stylesheetManager:Z,canvasManager:Xt,keepIframeSrcFn:ne},mirror:ge});It=(x=!1)=>{var ae,ue,V,de,D,$;j(te({type:N.Meta,data:{href:window.location.href,width:st(),height:it()}}),x),Z.reset(),ve.forEach(ee=>ee.lock());let he=yn(document,{mirror:ge,blockClass:o,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:l,maskAllInputs:U,maskTextFn:f,slimDOM:B,dataURLOptions:I,recordCanvas:E,inlineImages:O,onSerialize:ee=>{ut(ee,ge)&&W.addIframe(ee),ct(ee,ge)&&Z.trackLinkElement(ee),lt(ee)&&le.addShadowRoot(ee.shadowRoot,document)},onIframeLoad:(ee,Me)=>{W.attachIframe(ee,Me),le.observeAttachShadow(ee)},onStylesheetLoad:(ee,Me)=>{Z.attachLinkElement(ee,Me)},keepIframeSrcFn:ne});if(!he)return console.warn("Failed to snapshot the document");j(te({type:N.FullSnapshot,data:{node:he,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:(document==null?void 0:document.documentElement.scrollLeft)||((ue=(ae=document==null?void 0:document.body)===null||ae===void 0?void 0:ae.parentElement)===null||ue===void 0?void 0:ue.scrollLeft)||((V=document==null?void 0:document.body)===null||V===void 0?void 0:V.scrollLeft)||0,top:window.pageYOffset!==void 0?window.pageYOffset:(document==null?void 0:document.documentElement.scrollTop)||((D=(de=document==null?void 0:document.body)===null||de===void 0?void 0:de.parentElement)===null||D===void 0?void 0:D.scrollTop)||(($=document==null?void 0:document.body)===null||$===void 0?void 0:$.scrollTop)||0}}})),ve.forEach(ee=>ee.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Z.adoptStyleSheets(document.adoptedStyleSheets,ge.getId(document))};try{let x=[];x.push(ce("DOMContentLoaded",()=>{j(te({type:N.DomContentLoaded,data:{}}))}));let ae=V=>{var de;return Nn({mutationCb:A,mousemoveCb:(D,$)=>j(te({type:N.IncrementalSnapshot,data:{source:$,positions:D}})),mouseInteractionCb:D=>j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.MouseInteraction},D)})),scrollCb:_,viewportResizeCb:D=>j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.ViewportResize},D)})),inputCb:D=>j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.Input},D)})),mediaInteractionCb:D=>j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.MediaInteraction},D)})),styleSheetRuleCb:D=>j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.StyleSheetRule},D)})),styleDeclarationCb:D=>j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.StyleDeclaration},D)})),canvasMutationCb:H,fontCb:D=>j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.Font},D)})),selectionCb:D=>{j(te({type:N.IncrementalSnapshot,data:Object.assign({source:L.Selection},D)}))},blockClass:o,ignoreClass:d,maskTextClass:a,maskTextSelector:c,maskInputOptions:U,inlineStylesheet:l,sampling:w,recordCanvas:E,inlineImages:O,userTriggeredOnInput:G,collectFonts:z,doc:V,maskInputFn:v,maskTextFn:f,keepIframeSrcFn:ne,blockSelector:s,slimDOMOptions:B,dataURLOptions:I,mirror:ge,iframeManager:W,stylesheetManager:Z,shadowDomManager:le,canvasManager:Xt,ignoreCSSAttributes:J,plugins:((de=X==null?void 0:X.filter(D=>D.observer))===null||de===void 0?void 0:de.map(D=>({observer:D.observer,options:D.options,callback:$=>j(te({type:N.Plugin,data:{plugin:D.name,payload:$}}))})))||[]},C)};W.addLoadListener(V=>{x.push(ae(V.contentDocument))});let ue=()=>{It(),x.push(ae(document)),St=!0};return document.readyState==="interactive"||document.readyState==="complete"?ue():x.push(ce("load",()=>{j(te({type:N.Load,data:{}})),ue()},window)),()=>{x.forEach(V=>V()),St=!1}}catch(x){console.warn(x)}}Ie.addCustomEvent=(e,t)=>{if(!St)throw new Error("please add custom event after start recording");j(te({type:N.Custom,data:{tag:e,payload:t}}))};Ie.freezePage=()=>{ve.forEach(e=>e.freeze())};Ie.takeFullSnapshot=e=>{if(!St)throw new Error("please take full snapshot after start recording");It(e)};Ie.mirror=ge;var wo=new Set(["html","body","main","section"]),Ao=new Set(["input","select","textarea","label","option"]);function ko(e){return()=>Date.now()-e}function qn(e){let t=e.id;if(t)return`#${t}`.slice(0,60);let n=e.tagName.toLowerCase(),r=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean).slice(0,2).join("."),o=e.parentElement,s=o?o.tagName.toLowerCase():"",d=r?`${n}.${r}`:n;return s?`${s}>${d}`:d}function jn(e){let t=e.innerText;if(t)return t.trim().replace(/\s+/g," ").slice(0,40)||void 0}function Jn(e,t){let n=ko(e),r=null,o;function s(){r=null,o!==void 0&&(clearTimeout(o),o=void 0)}function d(){if(!r||r.count<3){s();return}t({t:"rage",ts:r.startTs,endTs:r.lastTs,count:r.count,x:Math.round(r.sx/r.count),y:Math.round(r.sy/r.count),tag:r.tag,sel:r.sel,txt:r.txt}),s()}function a(c,l,p,g){let b=c.tagName.toLowerCase();if(wo.has(b)||Ao.has(b))return;let v=!1;function f(w){v||(v=!0,R.disconnect(),window.removeEventListener("hashchange",C),window.removeEventListener("popstate",C),window.removeEventListener("beforeunload",C),document.removeEventListener("focusin",C),w||t({t:"dead",ts:l,x:p,y:g,tag:b,sel:qn(c),txt:jn(c)}))}let C=()=>f(!0),R=new MutationObserver(()=>f(!0));R.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("hashchange",C),window.addEventListener("popstate",C),window.addEventListener("beforeunload",C),document.addEventListener("focusin",C),setTimeout(()=>f(!1),1500)}document.addEventListener("click",c=>{let l=c.target;if(!l)return;let p=n(),g=c.clientX+window.scrollX,b=c.clientY+window.scrollY,v=r&&(r.target&&r.target===l||Math.hypot(r.sx/r.count-g,r.sy/r.count-b)<24);r&&v&&p-r.lastTs<1e3?(r.lastTs=p,r.count+=1,r.sx+=g,r.sy+=b):(r&&d(),r={startTs:p,lastTs:p,count:1,sx:g,sy:b,tag:l.tagName.toLowerCase(),sel:qn(l),txt:jn(l),target:l}),o!==void 0&&clearTimeout(o),o=window.setTimeout(d,1e3),a(l,p,g,b)},{capture:!0,passive:!0})}function $n(e,t,n){let r=50,o=a=>{try{return!!n&&n(a)}catch(c){return!1}};function s(){return Date.now()-e}function d(){return r<=0?!1:(r--,!0)}if(window.addEventListener("error",a=>{var c,l;d()&&t({t:"err",ts:s(),kind:"error",message:Re(String((c=a.message)!=null?c:"Error"),500),stack:(l=a.error)!=null&&l.stack?Re(String(a.error.stack),2e3):void 0,source:a.filename?Re(a.filename,300):void 0,line:typeof a.lineno=="number"?a.lineno:void 0,col:typeof a.colno=="number"?a.colno:void 0})}),window.addEventListener("unhandledrejection",a=>{var g;if(!d())return;let c=(g=a.reason)!=null?g:"rejection",l,p;if(c instanceof Error)l=c.message,p=c.stack;else try{l=typeof c=="string"?c:JSON.stringify(c)}catch(b){l="unhandled rejection"}t({t:"err",ts:s(),kind:"unhandledrejection",message:Re(l,500),stack:p?Re(p,2e3):void 0})}),typeof window.fetch=="function"){let a=window.fetch.bind(window);window.fetch=async function(c,l){var v;let p=Date.now(),g=((l==null?void 0:l.method)||"GET").toUpperCase(),b=Qn(typeof c=="string"?c:(v=c.url)!=null?v:c.toString());try{let f=await a(c,l);return f.status>=400&&!o(b)&&d()&&t({t:"net",ts:Date.now()-e,method:g,url:b,status:f.status,durationMs:Date.now()-p,kind:"fetch"}),f}catch(f){throw!o(b)&&d()&&t({t:"net",ts:Date.now()-e,method:g,url:b,status:0,durationMs:Date.now()-p,kind:"fetch"}),f}}}if(typeof XMLHttpRequest!="undefined"){let a=XMLHttpRequest.prototype.open,c=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(l,p){return this.__hm_method=l.toUpperCase(),this.__hm_url=Qn(p),a.apply(this,arguments)},XMLHttpRequest.prototype.send=function(l){return this.__hm_started=Date.now(),this.addEventListener("loadend",()=>{var g,b,v,f;!(this.status===0||this.status>=400)||o((g=this.__hm_url)!=null?g:"")||!d()||t({t:"net",ts:Date.now()-e,method:(b=this.__hm_method)!=null?b:"GET",url:(v=this.__hm_url)!=null?v:"",status:this.status,durationMs:Date.now()-((f=this.__hm_started)!=null?f:Date.now()),kind:"xhr"})}),c.apply(this,arguments)}}}function Re(e,t){return e.length>t?e.slice(0,t)+"\u2026":e}function Qn(e){try{let t=new URL(e,location.origin),n=[];return t.searchParams.forEach((r,o)=>n.push(o+"=*")),t.search=n.length?"?"+n.join("&"):"",Re(t.toString(),300)}catch(t){return Re(e.replace(/\?.*$/,"?\u2026"),300)}}var Eo=["[hotmaps]","[hm-loader]","[nagisot]"],To=["log","info","warn"];function er(e,t){let n=200,r=!1;for(let o of To){let s=console[o];if(typeof s!="function")continue;let d=s.bind(console);console[o]=function(...a){if(d(...a),!(r||n<=0)){r=!0;try{let c=Ro(a);c&&!xo(c)&&(n--,t({t:"con",ts:Date.now()-e,level:o,message:c}))}catch(c){}finally{r=!1}}}}}function xo(e){for(let t of Eo)if(e.startsWith(t))return!0;return!1}function Ro(e){let t=[],n=0;for(let o of e){if(n>=500)break;let s=Mo(o);t.push(s),n+=s.length+1}let r=t.join(" ");return r.length>500?r.slice(0,500)+"\u2026":r}function Mo(e){if(typeof e=="string")return e;if(e==null||typeof e=="number"||typeof e=="boolean")return String(e);if(e instanceof Error)return e.name+": "+e.message;try{let t=JSON.stringify(e,_o());return t==null?Object.prototype.toString.call(e):t.slice(0,200)}catch(t){return Object.prototype.toString.call(e)}}function _o(){let e=new WeakSet;return(t,n)=>{var r,o;if(typeof n=="function")return"[fn]";if(n&&typeof n=="object"){if(e.has(n))return"[circular]";if(e.add(n),typeof Node!="undefined"&&n instanceof Node)return"<"+((o=(r=n.nodeName)==null?void 0:r.toLowerCase)==null?void 0:o.call(r))+">"}return n}}var Lo=[{kind:"auth",re:/(^|\/)(login|signin|sign-in|sign_in|log-in|logout|signup|sign-up|register|registration|auth|sso|oauth|password|forgot|reset-password|verify|otp|מתחבר|הרשמה|התחברות|כניסה|تسجيل|دخول)(\/|$)/},{kind:"checkout",re:/(^|\/)(checkout|cart|carts|basket|bag|payment|pay|billing|order\/(confirm|review|complete)|thank-?you|order-confirmation|תשלום|עגלה|סל|קופה|הזמנה|الدفع|السلة|عربة)(\/|$)/},{kind:"account",re:/(^|\/)(account|accounts|profile|profiles|dashboard|settings|preferences|my-?account|orders|order-history|wishlist|favorites|subscriptions|membership|inbox|messages|notifications|חשבון|הגדרות|הזמנות|פרופיל|الحساب|الملف|الطلبات)(\/|$)/},{kind:"product",re:/(^|\/)(product|products|prod|p|item|items|sku|shop|store|catalog|catalogue|collection|collections|category|categories|buy|deal|deals|מוצר|מוצרים|חנות|קטלוג|קטגוריה|منتج|منتجات|متجر|تسوق)(\/|$)/},{kind:"service",re:/(^|\/)(service|services|pricing|prices|price|plan|plans|packages?|tariffs?|quote|booking|book|appointment|reserve|reservation|שירות|שירותים|תמחור|מחירון|מחירים|חבילות|הזמנת-תור|خدمة|خدمات|الأسعار|باقات|حجز)(\/|$)/},{kind:"content",re:/(^|\/)(blog|blogs|article|articles|news|press|post|posts|story|stories|guide|guides|docs?|documentation|help|support|faq|faqs|about|about-us|contact|contact-us|terms|privacy|policy|legal|resources?|tutorial|tutorials|case-stud|בלוג|מאמר|חדשות|מדריך|עזרה|אודות|צור-קשר|תקנון|פרטיות|مدونة|مقال|أخبار|مساعدة|دعم|من-نحن|اتصل)(\/|$)/}];function tr(e){if(!e)return"other";let t=e.split("?")[0].split("#")[0].toLowerCase();t.startsWith("/")||(t="/"+t);try{t=decodeURIComponent(t)}catch(r){}if(t==="/"||t===""||/^\/(index|home|דף-הבית|الرئيسية)(\.\w+)?\/?$/.test(t))return"home";for(let{kind:r,re:o}of Lo)if(o.test(t))return r;if(/^\/((19|20)\d{2}\/\d{1,2}\/\d{1,2}|:id\/:id\/:id)\//.test(t))return"content";let n=t.split(/[/\-_+.]+/).filter(Boolean);for(let r of n){let o=Po[r];if(o)return o}return"other"}var Po={\u05E2\u05D2\u05DC\u05D4:"checkout",\u05E7\u05D5\u05E4\u05D4:"checkout",\u05EA\u05E9\u05DC\u05D5\u05DD:"checkout",checkout:"checkout",\u05DE\u05D5\u05E6\u05E8:"product",\u05DE\u05D5\u05E6\u05E8\u05D9\u05DD:"product",\u05D7\u05E0\u05D5\u05EA:"product",\u05E7\u05D8\u05DC\u05D5\u05D2:"product",\u05E7\u05D8\u05D2\u05D5\u05E8\u05D9\u05D4:"product",\u05E7\u05D5\u05E8\u05E1:"product",\u05E7\u05D5\u05E8\u05E1\u05D9\u05DD:"product",\u05EA\u05D5\u05E1\u05E4\u05D9\u05DD:"product",course:"product",courses:"product",category:"product",shop:"product",\u05E9\u05D9\u05E8\u05D5\u05EA:"service",\u05E9\u05D9\u05E8\u05D5\u05EA\u05D9\u05DD:"service",\u05EA\u05D5\u05DB\u05E0\u05D9\u05EA:"service",\u05EA\u05DB\u05E0\u05D9\u05EA:"service",\u05EA\u05D5\u05DB\u05E0\u05D9\u05D5\u05EA:"service",\u05DC\u05D9\u05D5\u05D5\u05D9:"service",\u05E1\u05D3\u05E0\u05D4:"service",\u05E1\u05D3\u05E0\u05D0\u05D5\u05EA:"service",\u05D0\u05D9\u05DE\u05D5\u05DF:"service",\u05D9\u05D9\u05E2\u05D5\u05E5:"service",\u05D8\u05D9\u05E4\u05D5\u05DC:"service",\u05D8\u05D9\u05E4\u05D5\u05DC\u05D9\u05DD:"service",\u05D1\u05D3\u05D9\u05E7\u05D5\u05EA:"service",\u05D1\u05D3\u05D9\u05E7\u05D4:"service",\u05D0\u05EA\u05D2\u05E8:"service",\u05DE\u05D7\u05D9\u05E8\u05D5\u05DF:"service",workshop:"service",webinar:"service",program:"service",pricing:"service",\u05D1\u05DC\u05D5\u05D2:"content",\u05DE\u05D0\u05DE\u05E8:"content",\u05DE\u05D0\u05DE\u05E8\u05D9\u05DD:"content",\u05DE\u05D3\u05E8\u05D9\u05DA:"content",\u05DE\u05D3\u05E8\u05D9\u05DB\u05D9\u05DD:"content",\u05D7\u05D3\u05E9\u05D5\u05EA:"content",\u05D0\u05D5\u05D3\u05D5\u05EA:"content",\u05E7\u05D4\u05D9\u05DC\u05D4:"content",\u05E4\u05D5\u05D3\u05E7\u05D0\u05E1\u05D8:"content",\u05D5\u05D9\u05D3\u05D0\u05D5:"content",\u05E1\u05E8\u05D8\u05D5\u05DF:"content",\u05D4\u05DE\u05DC\u05E6\u05D5\u05EA:"content",blog:"content",podcast:"content",community:"content",faq:"content",tag:"content"};var nr=9e3,No=1e3,Oo=11e3,Do=30,Fo=20,Ho=4e3,Go=18,Bo=1.5,qt={exit_velocity:34,scroll_reversal:22,idle:14,rage:30,dead:16,error:10,network:10,field_abandon:26,engagement_decay:12,rapid_back:18,coupon_hunt:24,payment_hesitation:22},rr=/(coupon|promo|discount|voucher|code|rebate|gift.?card|קופון|הנחה|מבצע|קוד.?הנחה|שובר|قسيمة|كوبون|خصم|رمز)/i,or=/(card.?number|cardnumber|cc-?number|cvv|cvc|csc|security.?code|expir|exp-?date|credit.?card|אשראי|כרטיס.?אשראי|מספר.?כרטיס|תוקף|cvv|بطاقة|رقم.?البطاقة|الأمان|انتهاء)/i;function ir(e){let t=e;return[t.name,t.id,t.placeholder,t.getAttribute("aria-label"),t.getAttribute("autocomplete")].filter(Boolean).join(" ")}function Uo(e){return e>=85?"critical":e>=60?"high":e>=35?"medium":"low"}function sr(e,t){let n=()=>Date.now()-e,r=[],o=0,s=0,d="low",a=Date.now(),c=!1,l=!1,p=!1,g=0,b=!1,v=0,f={exit_velocity:1500,scroll_reversal:1200},C=new Map;function R(){return tr(location.pathname)==="checkout"}function w(T,A){var Z;let _=A!=null?A:qt[T];if(_<=0)return;let H=Date.now(),P=f[T];if(P!==void 0){let W=(Z=C.get(T))!=null?Z:0;if(H-W<P)return;C.set(T,H)}R()&&(_*=Bo),r.push({factor:T,points:_,ts:H}),r.length>64&&(r=r.slice(-48))}function I(T){var Z;let A=new Map,_=0;for(let W of r){let le=T-W.ts;if(le>nr*6)continue;let x=W.points*Math.exp(-le/nr);_+=x,A.set(W.factor,((Z=A.get(W.factor))!=null?Z:0)+x)}let H=Math.max(0,Math.min(100,Math.round(_))),P=Array.from(A.entries()).sort((W,le)=>le[1]-W[1]).slice(0,3).map(([W])=>W);return{score:H,top:P}}function S(T){let{score:A,top:_}=I(T),H=Uo(A),P=H!==d,Z=A>=(R()?Fo:Do),W=A-s>=Go,le=T-o>=Ho;if(M(A,H),P||Z&&(W||le)){if(H==="low"&&d==="low")return;o=T,s=A,d=H,t({t:"risk",ts:n(),score:A,level:H,factors:_,url:location.pathname||"/"})}}let E=[];function M(T,A){let _=window;_.__hmRisk?(_.__hmRisk.score=T,_.__hmRisk.level=A):_.__hmRisk={score:T,level:A,subscribe:H=>E.push(H)};for(let H of E)try{H(T,A)}catch(P){}}M(0,"low");let G=0,z=0;document.addEventListener("mousemove",T=>{ie();let A=performance.now(),_=T.clientY-G,H=A-z;if(G=T.clientY,z=A,T.clientY>80||H<=0||_>=0)return;let P=-_/H;if(P<.5)return;let Z=T.clientY<30?1.3:1;w("exit_velocity",Math.min(qt.exit_velocity,P*22*Z))},{capture:!0,passive:!0});let O=0,X=0;document.addEventListener("scroll",()=>{J();let T=window.scrollY||document.documentElement.scrollTop||0;T>X&&(X=T);let A=T-O;O=T,A<-180&&X>window.innerHeight*1.2&&w("scroll_reversal",Math.min(qt.scroll_reversal,-A/14))},{capture:!0,passive:!0}),document.addEventListener("click",J,{capture:!0,passive:!0}),document.addEventListener("keydown",J,{capture:!0,passive:!0}),document.addEventListener("touchstart",J,{capture:!0,passive:!0});let ne=0;window.addEventListener("popstate",()=>{let T=Date.now();T-ne<1500&&w("rapid_back"),ne=T});function J(){a=Date.now(),c=!0,l=!1,p=!1,g++}function ie(){a=Date.now(),c=!0,l=!1,p=!1,b||(g++,b=!0)}function se(){O=0,X=0,C.clear(),v=0}let U=0,B;document.addEventListener("focusin",T=>{let A=T.target;if(!A||!(A instanceof HTMLInputElement||A instanceof HTMLTextAreaElement)||!R())return;let _=ir(A);rr.test(_)?w("coupon_hunt"):or.test(_)&&(U=Date.now(),B&&window.clearTimeout(B),B=window.setTimeout(()=>{document.activeElement===A&&w("payment_hesitation")},7e3))},{capture:!0,passive:!0}),document.addEventListener("focusout",T=>{let A=T.target;if(!A||!(A instanceof HTMLInputElement||A instanceof HTMLTextAreaElement)||(B&&(window.clearTimeout(B),B=void 0),!R()))return;let _=ir(A);rr.test(_)&&!A.value&&w("coupon_hunt",14),or.test(_)&&U&&Date.now()-U<2e3&&w("payment_hesitation",12)},{capture:!0,passive:!0});let Q=()=>{let T=Date.now();c&&!l&&T-a>Oo&&(w("idle"),l=!0);let A=g;v>=3&&A===0&&!l&&!p&&(w("engagement_decay"),p=!0),v=v*.6+A*.4,g=0,b=!1,S(T)},re=window.setInterval(Q,No);return document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(w("exit_velocity",12),S(Date.now()))}),window.addEventListener("pagehide",()=>{try{clearInterval(re)}catch(T){}}),{notify:w,activity:J,resetPage:se,getScore:()=>I(Date.now()).score}}var Ge=window;if(!Ge.__hotmapsLoaded)if(Ge.__hotmapsLoaded=!0,Vo()&&!ar()){let e=()=>{ar()&&(window.removeEventListener("hm:consent",e),window.removeEventListener("storage",e),ur())};window.addEventListener("hm:consent",e),window.addEventListener("storage",e)}else ur();function Vo(){var e;try{let t=document.currentScript;if((t==null?void 0:t.dataset.consent)==="1")return!0;let n=document.querySelectorAll('script[data-consent="1"]');for(let r=0;r<n.length;r++)if(/\/t\.js/.test(((e=n[r])==null?void 0:e.src)||""))return!0}catch(t){}return!1}function ar(){try{let e=localStorage.getItem("hm_consent_v1");if(!e)return!1;let t=JSON.parse(e);return!!(t&&t.v===1&&t.cats&&t.cats.statistics===!0)}catch(e){return!1}}function ur(){var dn;let e=document.currentScript,n=(e==null?void 0:e.dataset.siteDomain)||location.hostname,r=Sr(e),o=wr(),{id:s}=Cr(),d=Date.now(),a=Pe(),c=d,l=100,p=150,g=5e3,b=48*1024,v=2e3,f=80*1024*1024,C,R=0,w=[],I=0,S;function E(){return Date.now()-d}function M(i){w.push(i),I+=ln(i),I>=b&&G("budget")}function G(i){if(w.length===0)return;nt(s,Date.now());let u=r?Mt(Ve({v:3,s:r,d:n,sid:s,vid:o},C?{uid:C}:{}),{pid:a,pageHash:cn(location.pathname),pathname:location.pathname,start:d,events:w}):{v:1,d:n,sid:s,vid:o,pid:a,pageHash:cn(location.pathname),pathname:location.pathname,start:d,events:w};w=[],I=0;let m=JSON.stringify(u),h="https://ingest.hotmaps.doogree.co.il/e";if(i==="unload"&&navigator.sendBeacon){let y=new Blob([m],{type:"application/json"});navigator.sendBeacon(h,y);return}try{fetch(h,{method:"POST",body:m,headers:{"content-type":"application/json"},credentials:"omit",mode:"cors"}).then(y=>{try{let k=y.headers.get("x-hm-rev");k!==null&&window.dispatchEvent(new CustomEvent("hm:rev",{detail:Number(k)}))}catch(k){}}).catch(()=>{})}catch(y){}}function z(){S===void 0&&(S=window.setTimeout(()=>{S=void 0,G("timer"),z()},g))}z();let O=!0;function X(){let i={t:"pv",ts:E(),url:location.pathname+location.search,title:document.title,ref:document.referrer||void 0,vw:window.innerWidth,vh:window.innerHeight,dw:un(),dh:Rt(),ua:navigator.userAgent};if(O){i.first=!0;let u=J();u&&(i.utm=u),i.cl=ne(),O=!1}M(i)}X();function ne(){var u,m;let i={};try{let h=navigator;typeof screen!="undefined"&&(screen.width&&(i.sw=screen.width),screen.height&&(i.sh=screen.height)),window.devicePixelRatio&&(i.dpr=Math.round(window.devicePixelRatio*100)/100),h.language&&(i.lang=h.language),h.languages&&h.languages.length&&(i.langs=h.languages.slice(0,5).join(","));try{i.tz=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(y){}i.plat=((u=h.userAgentData)==null?void 0:u.platform)||h.platform||void 0,typeof h.hardwareConcurrency=="number"&&(i.cores=h.hardwareConcurrency),typeof h.deviceMemory=="number"&&(i.mem=h.deviceMemory),(m=h.connection)!=null&&m.effectiveType&&(i.conn=h.connection.effectiveType),typeof h.maxTouchPoints=="number"&&(i.touch=h.maxTouchPoints)}catch(h){}return i}function J(){try{let i=new URLSearchParams(location.search),u={},m=[["utm_source","source"],["utm_medium","medium"],["utm_campaign","campaign"],["utm_term","term"],["utm_content","content"]],h=!1;for(let[y,k]of m){let F=i.get(y);F&&F.length<=200&&(u[k]=F,h=!0)}return h?u:null}catch(i){return null}}kr(()=>{G("nav"),a=Pe(),c=Date.now(),R=0;try{_e.resetPage()}catch(i){}X()}),document.addEventListener("click",i=>{let u=i.target,m={t:"c",ts:E(),x:i.clientX,y:i.clientY,px:i.clientX+window.scrollX,py:i.clientY+window.scrollY,vw:window.innerWidth,vh:window.innerHeight,dw:un(),dh:Rt(),tag:u==null?void 0:u.tagName.toLowerCase(),sel:u?we(u):void 0,txt:u?Ar(u):void 0};M(m)},{capture:!0,passive:!0});let ie=0;document.addEventListener("mousemove",i=>{let u=Date.now();if(u-ie<l)return;ie=u;let m={t:"m",ts:E(),x:i.clientX,y:i.clientY,px:i.clientX+window.scrollX,py:i.clientY+window.scrollY};M(m)},{capture:!0,passive:!0});let se=0;window.addEventListener("scroll",()=>{let i=Date.now(),u=Rt(),m=window.scrollY+window.innerHeight,h=u>0?Math.min(100,Math.round(m/u*100)):0;if(h>R&&(R=h),i-se<p)return;se=i;let y={t:"s",ts:E(),py:window.scrollY,vh:window.innerHeight,dh:u};M(y)},{capture:!0,passive:!0});let U;window.addEventListener("resize",()=>{U!==void 0&&clearTimeout(U),U=window.setTimeout(()=>{let i={t:"rs",ts:E(),vw:window.innerWidth,vh:window.innerHeight};M(i)},200)});let B=[],Q=!1,re=[],T=15*60*1e3,A=null,_=!1,H=Date.now(),P=0,Z=!1,W=()=>{var i;if(!Z)try{A=(i=Ie({emit(u){B.push(u),Q&&re.push(u)},maskAllInputs:!1,maskInputOptions:{password:!0},inlineStylesheet:!0,collectFonts:!0,checkoutEveryNms:3e5,sampling:{mousemove:50,scroll:150,input:"last"}}))!=null?i:null}catch(u){}};W();let le=()=>{H=Date.now(),_&&(_=!1,W())};["mousemove","mousedown","click","dblclick","auxclick","contextmenu","pointerdown","pointerup","pointermove","wheel","scroll","touchstart","touchmove","touchend","keydown","keypress","keyup","input","change","copy","cut","paste","select","focusin"].forEach(i=>window.addEventListener(i,le,{passive:!0,capture:!0})),document.addEventListener("visibilitychange",()=>{document.hidden||le()}),setInterval(()=>{if(!_&&Date.now()-H>=T){_=!0;try{A&&A()}catch(i){}finally{A=null}G("nav")}},6e4);let x=5*60*1e3,ae=48*60/5,ue=0;setInterval(()=>{!_||ue>=ae||(ue++,M({t:"hb",ts:E(),idle:Date.now()-H}),G("nav"))},x),setInterval(()=>{if(Z||B.length===0)return;let i={t:"rr",ts:E(),events:B};if(B=[],P+=ln(i),M(i),P>=f){Z=!0;try{A&&A()}catch(u){}finally{A=null}}},v);let V=(()=>{try{return"https://ingest.hotmaps.doogree.co.il".replace("://ingest.","://live.")}catch(i){return""}})();if(V&&V!=="https://ingest.hotmaps.doogree.co.il"){let i=V+"/sites/"+encodeURIComponent(r!=null?r:"")+"/sessions/"+encodeURIComponent(s!=null?s:"")+"/live";setInterval(()=>{fetch(i+"/status").then(m=>m.json()).then(m=>{var y,k;let h=!!m&&typeof m.viewers=="number"&&m.viewers>0;if(h&&!Q){Q=!0;try{(k=(y=Ie).takeFullSnapshot)==null||k.call(y,!0)}catch(F){}}else!h&&Q&&(Q=!1,re=[])}).catch(()=>{})},3e3),setInterval(()=>{if(!Q||re.length===0)return;let m=re;re=[],fetch(i+"/publish",{method:"POST",body:JSON.stringify({events:m})}).catch(()=>{})},1e3)}let de=1e3,D=500,$=120,he=new WeakMap,ee=new WeakMap,Me="_hm_fs",Ct=300,Se=[];try{let i=JSON.parse(sessionStorage.getItem(Me)||"null");i&&i.s===s&&Array.isArray(i.h)&&(Se=i.h.slice(-Ct))}catch(i){}function cr(i,u){let m=5381,h=i+"\0"+u;for(let y=0;y<h.length;y++)m=(m<<5)+m+h.charCodeAt(y)|0;return(m>>>0).toString(36)}function lr(i){return Se.includes(i)}function dr(i){Se.push(i),Se.length>Ct&&(Se=Se.slice(-Ct));try{sessionStorage.setItem(Me,JSON.stringify({s,h:Se}))}catch(u){}}function qe(i){if(!(i instanceof HTMLInputElement)&&!(i instanceof HTMLTextAreaElement)&&!(i instanceof HTMLSelectElement))return!1;if(i instanceof HTMLInputElement){let u=(i.type||"text").toLowerCase();if(u==="password"||(i.autocomplete||"").toLowerCase().includes("cc-")||u==="hidden"||u==="file"||pr.test(mr(i)))return!1}return!0}let pr=/(card.?number|cardnum|ccnum|cc-?num|pan\b|creditcard|credit.?card|cvv|cvc|csc|cvn|security.?code|card.?code|expir|exp.?date|exp.?month|exp.?year|אשראי|כרטיס.?אשראי|מספר.?כרטיס|תוקף|קוד.?אבטחה|بطاقة|رقم.?البطاقة|الأمان|انتهاء|رمز.?التحقق)/i;function mr(i){return[i.name,i.id,i.placeholder,i.getAttribute("aria-label"),i.autocomplete,i.getAttribute("inputmode")].filter(Boolean).join(" ")}function gr(i){let u=i.replace(/[\s-]/g,"");if(!/^\d{13,19}$/.test(u))return!1;let m=0,h=!1;for(let y=u.length-1;y>=0;y--){let k=u.charCodeAt(y)-48;h&&(k*=2,k>9&&(k-=9)),m+=k,h=!h}return m%10===0}function fr(i){let u=i.getAttribute("aria-label");if(u)return Be(u,$);let m=i.id;if(m)try{let y=document.querySelector(`label[for="${CSS.escape(m)}"]`);if(y!=null&&y.textContent)return Be(y.textContent.trim(),$)}catch(y){}let h=i.closest("label");return h!=null&&h.textContent?Be(h.textContent.trim(),$):null}function Be(i,u){return i.length>u?i.slice(0,u):i}function hr(i){let u=i.getAttribute("name")||"",m=i.id||"",h=i instanceof HTMLInputElement?(i.type||"text").toLowerCase():i instanceof HTMLTextAreaElement?"textarea":"select",y=i.placeholder||"",k=location.pathname||"/";return[u,m,h,y,k].join("\u241F")}function je(i){var pe;let u=(pe=i.value)!=null?pe:"",m=Be(u,D);if(!m||gr(m)||ee.get(i)===m)return;ee.set(i,m);let h=hr(i),y=cr(h,m);if(lr(y))return;dr(y);let k=i instanceof HTMLInputElement?(i.type||"text").toLowerCase():i instanceof HTMLTextAreaElement?"textarea":"select",F={t:"fi",ts:E(),nm:i.getAttribute("name")||null,fid:i.id||null,ty:k,ph:i.placeholder?Be(i.placeholder,$):null,lb:fr(i),url:location.pathname||"/",sig:h,v:m};M(F)}function br(i){if(!qe(i))return;let u=he.get(i);u&&window.clearTimeout(u);let m=window.setTimeout(()=>je(i),de);he.set(i,m)}document.addEventListener("input",i=>{let u=i.target;u&&br(u)},!0),window.setInterval(()=>{if(document.hidden)return;let i=document.querySelectorAll("input, textarea, select");for(let u=0;u<i.length;u++){let m=i[u];m&&qe(m)&&(m instanceof HTMLSelectElement||m.value&&ee.get(m)!==m.value&&je(m))}},5e3),document.addEventListener("blur",i=>{let u=i.target;if(!u||!qe(u))return;let m=he.get(u);m&&window.clearTimeout(m),je(u)},!0),document.addEventListener("change",i=>{let u=i.target;!u||!qe(u)||je(u)},!0);let Je=[],wt=!1,At=!1;function jt(){var u;if(wt||!Je.length)return;At=!1;let i=(((u=document.body)==null?void 0:u.innerText)||"").toLowerCase();if(i)for(let m of Je){let h=i.indexOf(m.toLowerCase());if(h>=0){wt=!0;let y=i.slice(Math.max(0,h-20),h+m.length+20),k={t:"cv",ts:E(),pattern:m,url:location.pathname||"/",snippet:y};M(k);try{Ue==null||Ue.disconnect()}catch(F){}return}}}function Jt(){if(wt||At)return;At=!0;let i=window.requestIdleCallback;typeof i=="function"?i(jt,{timeout:400}):window.setTimeout(jt,250)}let Ue=null;(async()=>{if(r)try{let i=await fetch("https://ingest.hotmaps.doogree.co.il/c/"+encodeURIComponent(r),{credentials:"omit"});if(!i.ok)return;let u=await i.json();if(Array.isArray(u.popups)&&u.popups.length&&yr(u.popups),Array.isArray(u.successPatterns)&&(Je=u.successPatterns.filter(m=>typeof m=="string").map(m=>m.trim()).filter(m=>m.length>=2&&m.length<=80).slice(0,20)),!Je.length)return;Jt(),Ue=new MutationObserver(()=>Jt()),Ue.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}catch(i){}})();function yr(i){var u;try{let m=window;if(m.__hmPopupLoaded)return;m.__hmPopupLoaded=!0,m.__HM_POPUPS__=i;let h="";try{let k=e&&e.src||((u=document.querySelector('script[src*="/t.js"]'))==null?void 0:u.src)||"";k&&(h=new URL(k,location.href).origin)}catch(k){}if(!h)try{h=new URL("https://ingest.hotmaps.doogree.co.il").origin.replace("ingest.","cdn.")}catch(k){}if(!h)return;let y=document.createElement("script");y.src=h+"/popup.js",y.async=!0,(document.body||document.head||document.documentElement).appendChild(y)}catch(m){}}let _e=sr(d,i=>M(i));Jn(d,i=>{M(i),i.t==="rage"?_e.notify("rage"):i.t==="dead"&&_e.notify("dead")});let We="",Qe=[];try{We=new URL("https://ingest.hotmaps.doogree.co.il").host;let i=We.replace(/^ingest\./,"");Qe.push(We,"cdn."+i,"live."+i,"api."+i),Qe.push("api.nagis.doogree.co.il","widget.nagis.doogree.co.il")}catch(i){}$n(d,i=>{M(i),i.t==="err"?_e.notify("error"):i.t==="net"&&(We&&typeof i.url=="string"&&i.url.indexOf(We)>=0||_e.notify("network"))},i=>{try{return Qe.indexOf(new URL(i,location.href).host)>=0}catch(u){return Qe.some(m=>m&&i.indexOf(m)>=0)}});let Qt=(dn=e==null?void 0:e.dataset.console)!=null?dn:(()=>{var i;try{return(i=document.querySelector("script[data-site][data-console]"))==null?void 0:i.dataset.console}catch(u){return}})();(Qt==="1"||Qt==="true")&&er(d,i=>M(i));let Y=null,Le,kt=600,vr=30;function $t(i,u){let m=i.clientX-u.clientX,h=i.clientY-u.clientY;return Math.sqrt(m*m+h*h)}document.addEventListener("touchstart",i=>{if(i.touches.length===2){let k=i.touches[0],F=i.touches[1];Y={t:Date.now(),x:(k.clientX+F.clientX)/2,y:(k.clientY+F.clientY)/2,dist:$t(k,F)};return}let u=i.touches[0];if(!u)return;Y={t:Date.now(),x:u.clientX,y:u.clientY,dist:0},Le!==void 0&&clearTimeout(Le);let m=u.clientX,h=u.clientY,y=i.target;Le=window.setTimeout(()=>{let k={t:"tch",ts:E(),kind:"long",x:m,y:h,px:m+window.scrollX,py:h+window.scrollY,dur:kt,tag:y==null?void 0:y.tagName.toLowerCase(),sel:y?we(y):void 0};M(k)},kt)},{capture:!0,passive:!0}),document.addEventListener("touchend",i=>{if(Le!==void 0&&(clearTimeout(Le),Le=void 0),!Y)return;let u=Date.now()-Y.t;if(i.changedTouches.length===2&&Y.dist>0){let pe=i.changedTouches[0],Er=i.changedTouches[1],Tr=$t(pe,Er),xr={t:"tch",ts:E(),kind:"pinch",x:Y.x,y:Y.y,px:Y.x+window.scrollX,py:Y.y+window.scrollY,dur:u,scale:Y.dist>0?Tr/Y.dist:1};M(xr),Y=null;return}let m=i.changedTouches[0];if(!m){Y=null;return}let h=m.clientX-Y.x,y=m.clientY-Y.y,k=Math.sqrt(h*h+y*y),F=i.target;if(k>=vr){let pe={t:"tch",ts:E(),kind:"swipe",x:Y.x,y:Y.y,px:Y.x+window.scrollX,py:Y.y+window.scrollY,dx:h,dy:y,dur:u,tag:F==null?void 0:F.tagName.toLowerCase(),sel:F?we(F):void 0};M(pe)}else if(u<kt){let pe={t:"tch",ts:E(),kind:"tap",x:Y.x,y:Y.y,px:Y.x+window.scrollX,py:Y.y+window.scrollY,dur:u,tag:F==null?void 0:F.tagName.toLowerCase(),sel:F?we(F):void 0};M(pe)}Y=null},{capture:!0,passive:!0});let en=new WeakMap,$e=new WeakMap;function Et(i){if(!i)return!1;let u=i.tagName;if(u==="INPUT"){let m=i.type;return!["hidden","submit","reset","button"].includes(m)}return u==="TEXTAREA"||u==="SELECT"}function Tt(i){let u=i.closest("form");if(!u)return;let m=u.getAttribute("id");if(m)return`form#${m}`;let h=u.getAttribute("name");return h?`form[name=${h}]`:"form"}document.addEventListener("focusin",i=>{let u=i.target;if(!Et(u))return;en.set(u,Date.now()),$e.set(u,!1);let m={t:"form",ts:E(),kind:"focus",field:we(u),form:Tt(u),inputType:u instanceof HTMLInputElement?u.type:u.tagName.toLowerCase()};M(m)},{capture:!0,passive:!0}),document.addEventListener("input",i=>{let u=i.target;if(!Et(u)||$e.get(u))return;$e.set(u,!0);let m={t:"form",ts:E(),kind:"first_type",field:we(u),form:Tt(u)};M(m)},{capture:!0,passive:!0}),document.addEventListener("focusout",i=>{let u=i.target;if(!Et(u))return;let m=en.get(u),h=!!$e.get(u),y=m?Date.now()-m:void 0,k={t:"form",ts:E(),kind:h?"blur":"abandon",field:we(u),form:Tt(u),focusMs:y,typed:h,inputType:u instanceof HTMLInputElement?u.type:u.tagName.toLowerCase()};M(k),h&&_e.notify("field_abandon")},{capture:!0,passive:!0}),document.addEventListener("submit",i=>{var y,k;let u=i.target;if(!u||u.tagName!=="FORM")return;let m=(k=(y=u.checkValidity)==null?void 0:y.call(u))!=null?k:!0,h={t:"form",ts:E(),kind:m?"submit":"submit_fail",form:u.id?`form#${u.id}`:u.getAttribute("name")?`form[name=${u.getAttribute("name")}]`:"form"};M(h)},{capture:!0,passive:!0});let fe={t:"perf",ts:E()},Ce=!1;function et(i){!Ce&&!i||(Ce=!1,M(Ve(Mt(Ve({},fe),{ts:E()}),i?{final:!0}:{})))}try{new PerformanceObserver(m=>{var F,pe;let h=m.getEntries(),y=h[h.length-1],k=(pe=(F=y==null?void 0:y.renderTime)!=null?F:y==null?void 0:y.loadTime)!=null?pe:y==null?void 0:y.startTime;typeof k=="number"&&(fe.lcp=Math.round(k),Ce=!0)}).observe({type:"largest-contentful-paint",buffered:!0}),new PerformanceObserver(m=>{for(let h of m.getEntries()){let y=h.duration;typeof y=="number"&&(fe.inp===void 0||y>fe.inp)&&(fe.inp=Math.round(y),Ce=!0)}}).observe({type:"event",buffered:!0,durationThreshold:16});let i=0;new PerformanceObserver(m=>{for(let y of m.getEntries())y.hadRecentInput||(i+=y.value);let h=Math.round(i*1e3);(fe.cls===void 0||h!==fe.cls)&&(fe.cls=h,Ce=!0)}).observe({type:"layout-shift",buffered:!0});let u=performance.getEntriesByType("navigation")[0];u&&typeof u.responseStart=="number"&&(fe.ttfb=Math.round(u.responseStart),Ce=!0),new PerformanceObserver(m=>{for(let h of m.getEntries())h.name==="first-contentful-paint"&&(fe.fcp=Math.round(h.startTime),Ce=!0)}).observe({type:"paint",buffered:!0})}catch(i){}setTimeout(()=>et(!1),3e3),setInterval(()=>et(!1),1e4);function xt(i,u){if(typeof i!="string"||i.length===0||i.length>100){console.warn("[hotmaps] track: event name must be a 1-100 char string");return}if(i==="__hm_popup_event"&&u&&typeof u.popupId=="string"&&typeof u.kind=="string"){let y={t:"pe",ts:E(),popupId:String(u.popupId),kind:String(u.kind),trigger:typeof u.trigger=="string"?String(u.trigger):void 0,path:typeof u.path=="string"?String(u.path):void 0};M(y);return}let m=u?on(u):void 0,h={t:"ev",ts:E(),name:i,props:m};M(h)}function tn(i,u){if(typeof i!="string"||i.length===0||i.length>200){console.warn("[hotmaps] identify: uid must be a 1-200 char string");return}C=i;let m={t:"id",ts:E(),uid:i,traits:u?on(u):void 0};M(m)}let nn=["visitor","interested","cart","checkout","purchase","returning"];function rn(i){let u=typeof i=="string"?i.toLowerCase():"";if(!nn.includes(u)){console.warn("[hotmaps] stage: must be one of "+nn.join(", "));return}xt("__hm_stage",{stage:u})}function on(i){let u={},m=0,h=0;for(let y of Object.keys(i)){if(m>=8)break;let k=i[y];if(typeof k=="string"){let F=k.slice(0,200);if(h+F.length>1500)continue;h+=F.length,u[y]=F}else if(typeof k=="number"&&Number.isFinite(k))u[y]=k;else if(typeof k=="boolean")u[y]=k;else continue;m++}return u}function Ir(){try{B.length&&(M({t:"rr",ts:E(),events:B}),B=[]),G("timer")}catch(i){}}if(Ge.hotmaps={track:xt,stage:rn,identify:tn,ready:()=>!0,flush:Ir,getSessionId:()=>s,getVisitorId:()=>o},Array.isArray(Ge.__hotmapsQueue)){for(let i of Ge.__hotmapsQueue)try{i.m==="track"?xt(i.a[0],i.a[1]):i.m==="stage"?rn(i.a[0]):i.m==="identify"&&tn(i.a[0],i.a[1])}catch(u){}Ge.__hotmapsQueue=[]}document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&(et(!0),G("unload"))}),window.addEventListener("pagehide",()=>{et(!0),G("unload")});function Sr(i){var m;let u=i==null?void 0:i.dataset.site;if(u&&/^[a-z0-9_]{8,40}$/.test(u))return u;try{let h=document.querySelectorAll("script[data-site]");for(let y=0;y<h.length;y++){let k=(m=h[y])==null?void 0:m.dataset.site;if(k&&/^[a-z0-9_]{8,40}$/.test(k))return k}}catch(h){}}function Pe(){if(typeof crypto!="undefined"&&crypto.randomUUID)return crypto.randomUUID();let i=u=>Math.floor(Math.random()*u).toString(16);return`${i(4294967295)}-${i(65535)}-${i(65535)}-${i(65535)}-${i(4294967295)}${i(65535)}`}let tt="_hm_sid",sn="_hm_sid_ts",an=30*60*1e3;function Cr(){let i=Date.now();try{let u=sessionStorage.getItem(tt),m=parseInt(localStorage.getItem(sn)||"0",10)||0,h=i-m;if(u&&h<an)return nt(u,i),{id:u,isNew:!1};let y=localStorage.getItem(tt);if(!u&&y&&h<an)return nt(y,i),{id:y,isNew:!1};let k=Pe();return nt(k,i),{id:k,isNew:!0}}catch(u){return{id:Pe(),isNew:!0}}}function nt(i,u){try{sessionStorage.setItem(tt,i),localStorage.setItem(tt,i),localStorage.setItem(sn,String(u))}catch(m){}}function wr(){let i="_hm_vid";try{let u=localStorage.getItem(i);if(u)return u;let m=Pe();return localStorage.setItem(i,m),m}catch(u){return Pe()}}function un(){var i;return Math.max(document.documentElement.scrollWidth,((i=document.body)==null?void 0:i.scrollWidth)||0,document.documentElement.clientWidth)}function Rt(){var i;return Math.max(document.documentElement.scrollHeight,((i=document.body)==null?void 0:i.scrollHeight)||0,document.documentElement.clientHeight)}function cn(i){let u=2166136261;for(let m=0;m<i.length;m++)u^=i.charCodeAt(m),u=Math.imul(u,16777619);return(u>>>0).toString(16).padStart(8,"0")}function we(i){let u=i.id;if(u)return`#${u}`.slice(0,60);let m=i.tagName.toLowerCase(),h=(i.getAttribute("class")||"").split(/\s+/).filter(Boolean).slice(0,2).join("."),y=i.parentElement,k=y?y.tagName.toLowerCase():"",F=h?`${m}.${h}`:m;return k?`${k}>${F}`:F}function Ar(i){let u=i.innerText;if(u)return u.trim().replace(/\s+/g," ").slice(0,40)||void 0}function ln(i){if(i.t==="rr")try{return JSON.stringify(i).length}catch(u){return 1024}return 80}function kr(i){let u=history.pushState,m=history.replaceState;history.pushState=function(...h){let y=u.apply(this,h);return i(),y},history.replaceState=function(...h){let y=m.apply(this,h);return i(),y},window.addEventListener("popstate",i)}}})();
//# sourceMappingURL=t.js.map
