PageSourceSearch

https://peekaboo-nannies.com/assets/mixpanel.module-D4DGxKPM.js

js peekaboo-nannies.com collected 2026-10-08 17:11:22 UTC 151,789 bytes, 37 lines download raw bytes

vendor: 4,601 bytes, line 1
1var H;(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"})(H||(H={}));function Pi(e){return e.nodeType===e.ELEMENT_NODE}function Ve(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function Ye(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function qi(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 Ui(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function mt(e){try{const t=e.rules||e.cssRules;return t?qi(Array.from(t,Gr).join("")):null}catch{return null}}function Gr(e){let t;if(Bi(e))try{t=mt(e.styleSheet)||Ui(e)}catch{}else if($i(e)&&e.selectorText.includes(":"))return Fi(e.cssText);return t||e.cssText}function Fi(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Bi(e){return"styleSheet"in e}function $i(e){return"selectorText"in e}class Vr{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return i??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const n=this.nodeMetaMap.get(i);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Wi(){return new Vr}function Zt({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:o}){let a=n||"";const u=i&&Te(i);return(t[r.toLowerCase()]||u&&t[u])&&(o?a=o(a,e):a="*".repeat(a.length)),a}function Te(e){return e.toLowerCase()}const Sr="__rrweb_original__";function zi(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let i=0;i<e.width;i+=r)for(let n=0;n<e.height;n+=r){const o=t.getImageData,a=Sr in o?o[Sr]:o;if(new Uint32Array(a.call(t,i,n,Math.min(r,e.width-i),Math.min(r,e.height-n)).data.buffer).some(c=>c!==0))return!1}return!0}function er(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Te(t):null}function Yr(e,t){var r;let i;try{i=new URL(e,t??window.location.href)}catch{return null}const n=/\.([0-9a-z]+)(?:$)/i,o=i.pathname.match(n);return(r=o==null?void 0:o[1])!==null&&r!==void 0?r:null}let ji=1;const Hi=new RegExp("[^a-z0-9-_:]"),Ze=-2;function Xr(){return ji++}function Gi(e){if(e instanceof HTMLFormElement)return"form";const t=Te(e.tagName);return Hi.test(t)?"div":t}function Vi(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let De,wr;const Yi=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Xi=/^(?:[a-z+]+:)?\/\//i,Ki=/^www\..*/i,Qi=/^(data:)([^,]*),(.*)/i;function yt(e,t){return(e||"").replace(Yi,(r,i,n,o,a,u)=>{const c=n||a||u,d=i||o||"";if(!c)return r;if(Xi.test(c)||Ki.test(c))return`url(${d}${c}${d})`;if(Qi.test(c))return`url(${d}${c}${d})`;if(c[0]==="/")return`url(${d}${Vi(t)+c}${d})`;const l=t.split("/"),f=c.split("/");l.pop();for(const p of f)p!=="."&&(p===".."?l.pop():l.push(p));return`url(${d}${l.join("/")}${d})`})}const Ji=/^[^ \t\n\r\u000c]+/,Zi=/^[, \t\n\r\u000c]+/;function en(e,t){if(t.trim()==="")return t;let r=0;function i(o){let a;const u=o.exec(t.substring(r));return u?(a=u[0],r+=a.length,a):""}const n=[];for(;i(Zi),!(r>=t.length);){let o=i(Ji);if(o.slice(-1)===",")o=Le(e,o.substring(0,o.length-1)),n.push(o);else{let a="";o=Le(e,o);let u=!1;for(;;){const c=t.charAt(r);if(c===""){n.push((o+a).trim());break}else if(u)c===")"&&(u=!1);else if(c===","){r+=1,n.push((o+a).trim());break}else c==="("&&(u=!0);a+=c,r+=1}}}return n.join(", ")}function Le(e,t){if(!t||t.trim()==="")return t;const r=e.createElement("a");return r.href=t,r.href}function tn(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function tr(){const e=document.createElement("a");return e.href="",e.href}
vendor: 4,671 bytes, line 1
1function Kr(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?Le(e,i):r==="srcset"?en(e,i):r==="style"?yt(i,tr()):t==="object"&&r==="data"?Le(e,i):i)}function Qr(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function rn(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const n=e.classList[i];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function vt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?vt(e.parentNode,t,r):!1;for(let i=e.classList.length;i--;){const n=e.classList[i];if(t.test(n))return!0}return r?vt(e.parentNode,t,r):!1}function Jr(e,t,r,i){try{const n=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(n===null)return!1;if(typeof t=="string"){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(vt(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function nn(e,t,r){const i=e.contentWindow;if(!i)return;let n=!1,o;try{o=i.document.readyState}catch{return}if(o!=="complete"){const u=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(u),n=!0,t()});return}const a="about:blank";if(i.location.href!==a||e.src===a||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function on(e,t,r){let i=!1,n;try{n=e.sheet}catch{return}if(n)return;const o=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),i=!0,t()})}function sn(e,t){const{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:a,inlineStylesheet:u,maskInputOptions:c={},maskTextFn:d,maskInputFn:l,dataURLOptions:f={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:g,newlyAddedElement:_=!1}=t,y=an(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:H.Document,childNodes:[],compatMode:e.compatMode}:{type:H.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:H.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return un(e,{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:u,maskInputOptions:c,maskInputFn:l,dataURLOptions:f,inlineImages:p,recordCanvas:h,keepIframeSrcFn:g,newlyAddedElement:_,rootId:y});case e.TEXT_NODE:return cn(e,{needsMask:a,maskTextFn:d,rootId:y});case e.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:H.Comment,textContent:e.textContent||"",rootId:y};default:return!1}}function an(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function cn(e,t){var r;const{needsMask:i,maskTextFn:n,rootId:o}=t,a=e.parentNode&&e.parentNode.tagName;let u=e.textContent;const c=a==="STYLE"?!0:void 0,d=a==="SCRIPT"?!0:void 0;if(c&&u){try{e.nextSibling||e.previousSibling||!((r=e.parentNode.sheet)===null||r===void 0)&&r.cssRules&&(u=mt(e.parentNode.sheet))}catch(l){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${l}`,e)}u=yt(u,tr())}return d&&(u="SCRIPT_PLACEHOLDER"),!c&&!d&&u&&i&&(u=n?n(u,e.parentElement):u.replace(/[\S]/g,"*")),{type:H.Text,textContent:u||"",isStyle:c,rootId:o}}function un(e,t){const{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:u,dataURLOptions:c={},inlineImages:d,recordCanvas:l,keepIframeSrcFn:f,newlyAddedElement:p=!1,rootId:h}=t,g=rn(e,i,n),_=Gi(e);let y={};const b=e.attributes.length;for(let v=0;v<b;v++){const w=e.attributes[v];Qr(_,w.name,w.value)||(y[w.name]=Kr(r,_,Te(w.name),w.value))}if(_==="link"&&o){const v=Array.from(r.styleSheets).find(M=>M.href===e.href);let w=null;v&&(w=mt(v)),w&&(delete y.rel,delete y.href,y._cssText=yt(w,v.href))}if(_==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const v=mt(e.sheet);v&&(y._cssText=yt(v,tr()))}if(_==="input"||_==="textarea"||_==="select"){const v=e.value,w=e.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&v?y.value=Zt({element:e,type:er(e),tagName:_,value:v,maskInputOptions:a,maskInputFn:u}):w&&(y.checked=w)}if(_==="option"&&(e.selected&&!a.select?y.selected=!0:delete y.selected),_==="canvas"&&l){if(e.__context==="2d")zi(e)||(y.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const v=e.toDataURL(c.type,c.quality),w=document.createElement("canvas");w.width=e.width,w.height=e.height;const M=w.toDataURL(c.type,c.quality);v!==M&&(y.rr_dataURL=v)}}if(_==="img"&&d){De||(De=r.createElement("canvas"),wr=De.getContext("2d"));const v=e,w=v.crossOrigin;v.crossOrigin="anonymous";const M=()=>{v.removeEventListener("load",M);
1try{De.width=v.naturalWidth,De.height=v.naturalHeight,wr.drawImage(v,0,0),y.rr_dataURL=De.toDataURL(c.type,c.quality)}catch(G){console.warn(`Cannot inline img src=${v.currentSrc}! Error: ${G}`)}w?y.crossOrigin=w:v.removeAttribute("crossorigin")};v.complete&&v.naturalWidth!==0?M():v.addEventListener("load",M)}if(_==="audio"||_==="video"){const v=y;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(p||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),g){const{width:v,height:w}=e.getBoundingClientRect();y={class:y.class,rr_width:`${v}px`,rr_height:`${w}px`}}_==="iframe"&&!f(y.src)&&(e.contentDocument||(y.rr_src=y.src),delete y.src);let S;try{customElements.get(_)&&(S=!0)}catch{}return{type:H.Element,tagName:_,attributes:y,childNodes:[],isSVG:tn(e)||void 0,needBlock:g,rootId:h,isCustom:S}}function A(e){return e==null?"":e.toLowerCase()}function ln(e,t){if(t.comment&&e.type===H.Comment)return!0;if(e.type===H.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Yr(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(A(e.attributes.name).match(/^msapplication-tile(image|color)$/)||A(e.attributes.name)==="application-name"||A(e.attributes.rel)==="icon"||A(e.attributes.rel)==="apple-touch-icon"||A(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&A(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(A(e.attributes.property).match(/^(og|twitter|fb):/)||A(e.attributes.name).match(/^(og|twitter):/)||A(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(A(e.attributes.name)==="robots"||A(e.attributes.name)==="googlebot"||A(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(A(e.attributes.name)==="author"||A(e.attributes.name)==="generator"||A(e.attributes.name)==="framework"||A(e.attributes.name)==="publisher"||A(e.attributes.name)==="progid"||A(e.attributes.property).match(/^article:/)||A(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(A(e.attributes.name)==="google-site-verification"||A(e.attributes.name)==="yandex-verification"||A(e.attributes.name)==="csrf-token"||A(e.attributes.name)==="p:domain_verify"||A(e.attributes.name)==="verify-v1"||A(e.attributes.name)==="verification"||A(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Pe(e,t){const{doc:r,mirror:i,blockClass:n,blockSelector:o,maskTextClass:a,maskTextSelector:u,skipChild:c=!1,inlineStylesheet:d=!0,maskInputOptions:l={},maskTextFn:f,maskInputFn:p,slimDOMOptions:h,dataURLOptions:g={},inlineImages:_=!1,recordCanvas:y=!1,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:v=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:G=()=>!1,newlyAddedElement:W=!1}=t;let{needsMask:L}=t,{preserveWhiteSpace:P=!0}=t;!L&&e.childNodes&&(L=Jr(e,a,u,L===void 0));const Z=sn(e,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:L,inlineStylesheet:d,maskInputOptions:l,maskTextFn:f,maskInputFn:p,dataURLOptions:g,inlineImages:_,recordCanvas:y,keepIframeSrcFn:G,newlyAddedElement:W});if(!Z)return console.warn(e,"not serialized"),null;let ee;i.hasNode(e)?ee=i.getId(e):ln(Z,h)||!P&&Z.type===H.Text&&!Z.isStyle&&!Z.textContent.replace(/^\s+|\s+$/gm,"").length?ee=Ze:ee=Xr();const R=Object.assign(Z,{id:ee});if(i.add(e,R),ee===Ze)return null;b&&b(e);let Me=!c;if(R.type===H.Element){Me=Me&&!R.needBlock,delete R.needBlock;const Y=e.shadowRoot;Y&&Ye(Y)&&(R.isShadowHost=!0)}if((R.type===H.Document||R.type===H.Element)&&Me){h.headWhitespace&&R.type===H.Element&&R.tagName==="head"&&(P=!1);const Y={doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:L,maskTextClass:a,maskTextSelector:u,skipChild:c,inlineStylesheet:d,maskInputOptions:l,maskTextFn:f,maskInputFn:p,slimDOMOptions:h,dataURLOptions:g,inlineImages:_,recordCanvas:y,preserveWhiteSpace:P,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:v,onStylesheetLoad:w,stylesheetLoadTimeout:M,keepIframeSrcFn:G};if(!(R.type===H.Element&&R.tagName==="textarea"&&R.attributes.value!==void 0))for(const ge of Array.from(e.childNodes)){const ae=Pe(ge,Y);ae&&R.childNodes.push(ae)}if(Pi(e)&&e.shadowRoot)for(const ge of Array.from(e.shadowRoot.childNodes)){const ae=Pe(ge,Y);ae&&(Ye(e.shadowRoot)&&(ae.isShadow=!0),R.childNodes.push(ae))}}return e.parentNode&&Ve(e.parentNode)&&Ye(e.parentNode)&&(R.isShadow=!0),R.type===H.Element&&R.tagName==="iframe"&&nn(e,()=>{const Y=e.contentDocument;if(Y&&S){const ge=Pe(Y,{doc:Y,mirror:i,blockClass:n,blockSelector:o,needsMask:L,maskTextClass:a,maskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:l,maskTextFn:f,maskInputFn:p,slimDOMOptions:h,dataURLOptions:g,inlineImages:_,recordCanvas:y,preserveWhiteSpace:P,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:v,onStylesheetLoad:w,stylesheetLoadTimeout:M,keepIframeSrcFn:G});ge&&S(e,ge)}},v),R.type===H.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&Yr(R.attributes.href)==="css")&&on(e,()=>{if(w){const Y=Pe(e,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:L,maskTextClass:a,maskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:l,maskTextFn:f,maskInputFn:p,slimDOMOptions:h,dataURLOptions:g,inlineImages:_,recordCanvas:y,preserveWhiteSpace:P,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:v,onStylesheetLoad:w,stylesheetLoadTimeout:M,keepIframeSrcFn:G});Y&&w(e,Y)}},M),R}function dn(e,t){const{mirror:r=new Vr,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:o="rr-mask",maskTextSelector:a=null,inlineStylesheet:u=!0,inlineImages:c=!1,recordCanvas:d=!1,maskAllInputs:l=!1,maskTextFn:f,maskInputFn:p,slimDOM:h=!1,dataURLOptions:g,preserveWhiteSpace:_,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:v,stylesheetLoadTimeout:w,keepIframeSrcFn:M=()=>!1}=t||{};return Pe(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:l===!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}:l===!1?{password:!0}:l,maskTextFn:f,maskInputFn:p,slimDOMOptions:h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:h==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
vendor: 18,219 bytes, lines 1-3
1:h===!1?{}:h,dataURLOptions:g,inlineImages:c,recordCanvas:d,preserveWhiteSpace:_,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:v,stylesheetLoadTimeout:w,keepIframeSrcFn:M,newlyAddedElement:!1})}function K(e,t,r=document){const i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}const Ae=`Please stop import mirror directly. Instead of that,\r
2now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
3or you can use record.mirror to access the mirror instance during recording.`;let Ir={map:{},getId(){return console.error(Ae),-1},getNode(){return console.error(Ae),null},removeNodeFromMap(){console.error(Ae)},has(){return console.error(Ae),!1},reset(){console.error(Ae)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ir=new Proxy(Ir,{get(e,t,r){return t==="map"&&console.error(Ae),Reflect.get(e,t,r)}}));function et(e,t,r={}){let i=null,n=0;return function(...o){const a=Date.now();!n&&r.leading===!1&&(n=a);const u=t-(a-n),c=this;u<=0||u>t?(i&&(clearTimeout(i),i=null),n=a,e.apply(c,o)):!i&&r.trailing!==!1&&(i=setTimeout(()=>{n=r.leading===!1?0:Date.now(),i=null,e.apply(c,o)},u))}}function Tt(e,t,r,i,n=window){const o=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(a){setTimeout(()=>{r.set.call(this,a)},0),o&&o.set&&o.set.call(this,a)}}),()=>Tt(e,t,o||{},!0)}function je(e,t,r){try{if(!(t in e))return()=>{};const i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}let bt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(bt=()=>new Date().getTime());function Zr(e){var t,r,i,n,o,a;const u=e.document;return{left:u.scrollingElement?u.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(u==null?void 0:u.documentElement.scrollLeft)||((r=(t=u==null?void 0:u.body)===null||t===void 0?void 0:t.parentElement)===null||r===void 0?void 0:r.scrollLeft)||((i=u==null?void 0:u.body)===null||i===void 0?void 0:i.scrollLeft)||0,top:u.scrollingElement?u.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(u==null?void 0:u.documentElement.scrollTop)||((o=(n=u==null?void 0:u.body)===null||n===void 0?void 0:n.parentElement)===null||o===void 0?void 0:o.scrollTop)||((a=u==null?void 0:u.body)===null||a===void 0?void 0:a.scrollTop)||0}}function ei(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ti(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ri(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Q(e,t,r,i){if(!e)return!1;const n=ri(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||i&&n.closest("."+t)!==null)return!0}else if(vt(n,t,i))return!0}catch{}return!!(r&&(n.matches(r)||i&&n.closest(r)!==null))}function pn(e,t){return t.getId(e)!==-1}function Ft(e,t){return t.getId(e)===Ze}function ii(e,t){if(Ve(e))return!1;const r=t.getId(e);return t.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?ii(e.parentNode,t):!0:!0}function Gt(e){return!!e.changedTouches}function fn(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 r=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function ni(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function oi(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Vt(e){return!!(e!=null&&e.shadowRoot)}class hn{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var r;return(r=this.styleIDMap.get(t))!==null&&r!==void 0?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function si(e){var t,r;let i=null;return((r=(t=e.getRootNode)===null||t===void 0?void 0:t.call(e))===null||r===void 0?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(i=e.getRootNode().host),i}function _n(e){let t=e,r;for(;r=si(t);)t=r;return t}function gn(e){const t=e.ownerDocument;if(!t)return!1;const r=_n(e);return t.contains(r)}function ai(e){const t=e.ownerDocument;return t?t.contains(e)||gn(e):!1}var T=(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))(T||{}),x=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(x||{}),J=(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))(J||{}),pe=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(pe||{}),$e=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))($e||{});function kr(e){return"__ln"in e}class mn{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let i=0;i<t;i++)r=(r==null?void 0:r.next)||null;return r}addNode(t){const r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&kr(t.previousSibling)){const i=t.previousSibling.__ln.next;r.next=i,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,i&&(i.previous=r)}else if(t.nextSibling&&kr(t.nextSibling)&&t.nextSibling.__ln.previous){const i=t.nextSibling.__ln.previous;r.previous=i,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,i&&(i.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){const r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Mr=(e,t)=>`${e}@${t}`;class yn{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],r=new Set,i=new mn,n=c=>{let d=c,l=Ze;for(;l===Ze;)d=d&&d.nextSibling,l=d&&this.mirror.getId(d);return l},o=c=>{if(!c.parentNode||!ai(c)||c.parentNode.tagName==="TEXTAREA")return;const d=Ve(c.parentNode)?this.mirror.getId(si(c)):this.mirror.getId(c.parentNode),l=n(c);if(d===-1||l===-1)return i.addNode(c);const f=Pe(c,{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:p=>{ni(p,this.mirror)&&this.iframeManager.addIframe(p),oi(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Vt(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,h)=>{this.iframeManager.attachIframe(p,h),this.shadowDomManager.observeAttachShadow(p)},onStylesheetLoad:(p,h)=>{this.stylesheetManager.attachLinkElement(p,h)}});f&&(t.push({parentId:d,nextId:l,node:f}),r.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Er(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!Cr(this.droppedSet,c)&&!Er(this.removes,c,this.mirror)||Cr(this.movedSet,c)?o(c):this.droppedSet.add(c);let a=null;for(;i.length;){let c=null;if(a){const d=this.mirror.getId(a.value.parentNode),l=n(a.value);d!==-1&&l!==-1&&(c=a)}if(!c){let d=i.tail;for(;d;){const l=d;if(d=d.previous,l){const f=this.mirror.getId(l.value.parentNode);if(n(l.value)===-1)continue;if(f!==-1){c=l;break}else{const h=l.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=h.parentNode.host;if(this.mirror.getId(g)!==-1){c=l;break}}}}}}if(!c){for(;i.head;)i.removeNode(i.head.value);break}a=c.previous,i.removeNode(c.value),o(c.value)}const u={texts:this.texts.map(c=>{const d=c.node;return d.parentNode&&d.parentNode.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(d.parentNode),{id:this.mirror.getId(d),value:c.value}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:d}=c;if(typeof d.style=="string"){const l=JSON.stringify(c.styleDiff),f=JSON.stringify(c._unchangedStyles);l.length<d.style.length&&(l+f).split("var(").length===d.style.split("var(").length&&(d.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:d}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!u.texts.length&&!u.attributes.length&&!u.removes.length&&!u.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(u))},this.genTextAreaValueMutation=t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r)),r.attributes.value=Array.from(t.childNodes,i=>i.textContent||"").join("")},this.processMutation=t=>{if(!Ft(t.target,this.mirror))switch(t.type){case"characterData":{const r=t.target.textContent;!Q(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Jr(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,ri(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let i=t.attributeName,n=t.target.getAttribute(i);if(i==="value"){const a=er(r);n=Zt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:a,value:n,maskInputFn:this.maskInputFn})}if(Q(t.target,this.blockClass,this.blockSelector,!1)||n===t.oldValue)return;let o=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&i==="src"&&!this.keepIframeSrcFn(n))if(!r.contentDocument)i="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),i==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Qr(r.tagName,i)&&(o.attributes[i]=Kr(this.doc,Te(r.tagName),Te(i),n),i==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const a=this.unattachedDoc.createElement("span");t.oldValue&&a.setAttribute("style",t.oldValue);for(const u of Array.from(r.style)){const c=r.style.getPropertyValue(u),d=r.style.getPropertyPriority(u);c!==a.style.getPropertyValue(u)||d!==a.style.getPropertyPriority(u)?d===""?o.styleDiff[u]=c:o.styleDiff[u]=[c,d]:o._unchangedStyles[u]=[c,d]}for(const u of Array.from(a.style))r.style.getPropertyValue(u)===""&&(o.styleDiff[u]=!1)}break}case"childList":{if(Q(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const i=this.mirror.getId(r),n=Ve(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Q(t.target,this.blockClass,this.blockSelector,!1)||Ft(r,this.mirror)||!pn(r,this.mirror)||(this.addedSet.has(r)?(Yt(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||ii(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Mr(i,n)]?Yt(this.movedSet,r):this.removes.push({parentId:n,id:i,isShadow:Ve(t.target)&&Ye(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Ft(t,this.mirror))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[Mr(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Q(t,this.blockClass,this.blockSelector,!1)||(t.childNodes.forEach(i=>this.genAdds(i)),Vt(t)&&t.shadowRoot.childNodes.forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}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 Yt(e,t){e.delete(t),t.childNodes.forEach(r=>Yt(e,r))}function Er(e,t,r){return e.length===0?!1:ci(e,t,r)}function ci(e,t,r){const{parentNode:i}=t;if(!i)return!1;const n=r.getId(i);return e.some(o=>o.id===n)?!0:ci(e,i,r)}function Cr(e,t){return e.size===0?!1:ui(e,t)}function ui(e,t){const{parentNode:r}=t;return r?e.has(r)?!0:ui(e,r):!1}let Xe;function vn(e){Xe=e}function bn(){Xe=void 0}const O=e=>Xe?(...r)=>{try{return e(...r)}catch(i){if(Xe&&Xe(i)===!0)return;throw i}}:e,Oe=[];function it(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function li(e,t){var r,i;const n=new yn;Oe.push(n),n.init(e);let o=window.MutationObserver||window.__rrMutationObserver;const a=(i=(r=window==null?void 0:window.Zone)===null||r===void 0?void 0:r.__symbol__)===null||i===void 0?void 0:i.call(r,"MutationObserver");a&&window[a]&&(o=window[a]);const u=new o(O(n.processMutations.bind(n)));return u.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),u}function Sn({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===!1)return()=>{};const n=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let a=[],u;const c=et(O(f=>{const p=Date.now()-u;e(a.map(h=>(h.timeOffset-=p,h)),f),a=[],u=null}),o),d=O(et(O(f=>{const p=it(f),{clientX:h,clientY:g}=Gt(f)?f.changedTouches[0]:f;u||(u=bt()),a.push({x:h,y:g,id:i.getId(p),timeOffset:bt()-u}),c(typeof DragEvent<"u"&&f instanceof DragEvent?x.Drag:f instanceof MouseEvent?x.MouseMove:x.TouchMove)}),n,{trailing:!1})),l=[K("mousemove",d,r),K("touchmove",d,r),K("drag",d,r)];return O(()=>{l.forEach(f=>f())})}function wn({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,u=[];let c=null;const d=l=>f=>{const p=it(f);if(Q(p,i,n,!0))return;let h=null,g=l;if("pointerType"in f){switch(f.pointerType){case"mouse":h=pe.Mouse;break;case"touch":h=pe.Touch;break;case"pen":h=pe.Pen;break}h===pe.Touch?J[l]===J.MouseDown?g="TouchStart":J[l]===J.MouseUp&&(g="TouchEnd"):pe.Pen}else Gt(f)&&(h=pe.Touch);h!==null?(c=h,(g.startsWith("Touch")&&h===pe.Touch||g.startsWith("Mouse")&&h===pe.Mouse)&&(h=null)):J[l]===J.Click&&(h=c,c=null);const _=Gt(f)?f.changedTouches[0]:f;if(!_)return;const y=r.getId(p),{clientX:b,clientY:S}=_;O(e)(Object.assign({type:J[g],id:y,x:b,y:S},h!==null&&{pointerType:h}))};return Object.keys(J).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEach(l=>{let f=Te(l);const p=d(l);if(window.PointerEvent)switch(J[l]){case J.MouseDown:case J.MouseUp:f=f.replace("mouse","pointer");break;case J.TouchStart:case J.TouchEnd:return}u.push(K(f,p,t))}),O(()=>{u.forEach(l=>l())})}function di({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:o}){const a=O(et(O(u=>{const c=it(u);if(!c||Q(c,i,n,!0))return;const d=r.getId(c);if(c===t&&t.defaultView){const l=Zr(t.defaultView);e({id:d,x:l.left,y:l.top})}else e({id:d,x:c.scrollLeft,y:c.scrollTop})}),o.scroll||100));return K("scroll",a,t)}function In({viewportResizeCb:e},{win:t}){let r=-1,i=-1;const n=O(et(O(()=>{const o=ei(),a=ti();(r!==o||i!==a)&&(e({width:Number(a),height:Number(o)}),r=o,i=a)}),200));return K("resize",n,t)}const kn=["INPUT","TEXTAREA","SELECT"],xr=new WeakMap;function Mn({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:o,ignoreSelector:a,maskInputOptions:u,maskInputFn:c,sampling:d,userTr
vendor: 4,249 bytes, line 3
3iggeredOnInput:l}){function f(S){let v=it(S);const w=S.isTrusted,M=v&&v.tagName;if(v&&M==="OPTION"&&(v=v.parentElement),!v||!M||kn.indexOf(M)<0||Q(v,i,n,!0)||v.classList.contains(o)||a&&v.matches(a))return;let G=v.value,W=!1;const L=er(v)||"";L==="radio"||L==="checkbox"?W=v.checked:(u[M.toLowerCase()]||u[L])&&(G=Zt({element:v,maskInputOptions:u,tagName:M,type:L,value:G,maskInputFn:c})),p(v,l?{text:G,isChecked:W,userTriggered:w}:{text:G,isChecked:W});const P=v.name;L==="radio"&&P&&W&&t.querySelectorAll(`input[type="radio"][name="${P}"]`).forEach(Z=>{if(Z!==v){const ee=Z.value;p(Z,l?{text:ee,isChecked:!W,userTriggered:!1}:{text:ee,isChecked:!W})}})}function p(S,v){const w=xr.get(S);if(!w||w.text!==v.text||w.isChecked!==v.isChecked){xr.set(S,v);const M=r.getId(S);O(e)(Object.assign(Object.assign({},v),{id:M}))}}const g=(d.input==="last"?["change"]:["input","change"]).map(S=>K(S,O(f),t)),_=t.defaultView;if(!_)return()=>{g.forEach(S=>S())};const y=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),b=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&g.push(...b.map(S=>Tt(S[0],S[1],{set(){O(f)({target:this,isTrusted:!1})}},!1,_))),O(()=>{g.forEach(S=>S())})}function St(e){const t=[];function r(i,n){if(dt("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||dt("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||dt("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||dt("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){const a=Array.from(i.parentRule.cssRules).indexOf(i);n.unshift(a)}else if(i.parentStyleSheet){const a=Array.from(i.parentStyleSheet.cssRules).indexOf(i);n.unshift(a)}return n}return r(e,t)}function me(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function En({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const n=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:O((l,f,p)=>{const[h,g]=p,{id:_,styleId:y}=me(f,t,r.styleMirror);return(_&&_!==-1||y&&y!==-1)&&e({id:_,styleId:y,adds:[{rule:h,index:g}]}),l.apply(f,p)})});const o=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:O((l,f,p)=>{const[h]=p,{id:g,styleId:_}=me(f,t,r.styleMirror);return(g&&g!==-1||_&&_!==-1)&&e({id:g,styleId:_,removes:[{index:h}]}),l.apply(f,p)})});let a;i.CSSStyleSheet.prototype.replace&&(a=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:O((l,f,p)=>{const[h]=p,{id:g,styleId:_}=me(f,t,r.styleMirror);return(g&&g!==-1||_&&_!==-1)&&e({id:g,styleId:_,replace:h}),l.apply(f,p)})}));let u;i.CSSStyleSheet.prototype.replaceSync&&(u=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:O((l,f,p)=>{const[h]=p,{id:g,styleId:_}=me(f,t,r.styleMirror);return(g&&g!==-1||_&&_!==-1)&&e({id:g,styleId:_,replaceSync:h}),l.apply(f,p)})}));const c={};pt("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(pt("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),pt("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),pt("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));const d={};return Object.entries(c).forEach(([l,f])=>{d[l]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(d[l].insertRule,{apply:O((p,h,g)=>{const[_,y]=g,{id:b,styleId:S}=me(h.parentStyleSheet,t,r.styleMirror);return(b&&b!==-1||S&&S!==-1)&&e({id:b,styleId:S,adds:[{rule:_,index:[...St(h),y||0]}]}),p.apply(h,g)})}),f.prototype.deleteRule=new Proxy(d[l].deleteRule,{apply:O((p,h,g)=>{const[_]=g,{id:y,styleId:b}=me(h.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||b&&b!==-1)&&e({id:y,styleId:b,removes:[{index:[...St(h),_]}]}),p.apply(h,g)})})}),O(()=>{i.CSSStyleSheet.prototype.insertRule=n,i.CSSStyleSheet.prototype.deleteRule=o,a&&(i.CSSStyleSheet.prototype.replace=a),u&&(i.CSSStyleSheet.prototype.replaceSync=u),Object.entries(c).forEac
vendor: 8,940 bytes, line 3
3h(([l,f])=>{f.prototype.insertRule=d[l].insertRule,f.prototype.deleteRule=d[l].deleteRule})})}function pi({mirror:e,stylesheetManager:t},r){var i,n,o;let a=null;r.nodeName==="#document"?a=e.getId(r):a=e.getId(r.host);const u=r.nodeName==="#document"?(i=r.defaultView)===null||i===void 0?void 0:i.Document:(o=(n=r.ownerDocument)===null||n===void 0?void 0:n.defaultView)===null||o===void 0?void 0:o.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var d;return(d=c.get)===null||d===void 0?void 0:d.call(this)},set(d){var l;const f=(l=c.set)===null||l===void 0?void 0:l.call(this,d);if(a!==null&&a!==-1)try{t.adoptStyleSheets(d,a)}catch{}return f}}),O(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function Cn({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){const o=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:O((u,c,d)=>{var l;const[f,p,h]=d;if(r.has(f))return o.apply(c,[f,p,h]);const{id:g,styleId:_}=me((l=c.parentRule)===null||l===void 0?void 0:l.parentStyleSheet,t,i.styleMirror);return(g&&g!==-1||_&&_!==-1)&&e({id:g,styleId:_,set:{property:f,value:p,priority:h},index:St(c.parentRule)}),u.apply(c,d)})});const a=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:O((u,c,d)=>{var l;const[f]=d;if(r.has(f))return a.apply(c,[f]);const{id:p,styleId:h}=me((l=c.parentRule)===null||l===void 0?void 0:l.parentStyleSheet,t,i.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,remove:{property:f},index:St(c.parentRule)}),u.apply(c,d)})}),O(()=>{n.CSSStyleDeclaration.prototype.setProperty=o,n.CSSStyleDeclaration.prototype.removeProperty=a})}function xn({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:o}){const a=O(c=>et(O(d=>{const l=it(d);if(!l||Q(l,t,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:g,loop:_}=l;e({type:c,id:i.getId(l),currentTime:f,volume:p,muted:h,playbackRate:g,loop:_})}),n.media||500)),u=[K("play",a(0),o),K("pause",a(1),o),K("seeked",a(2),o),K("volumechange",a(3),o),K("ratechange",a(4),o)];return O(()=>{u.forEach(c=>c())})}function On({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const i=[],n=new WeakMap,o=r.FontFace;r.FontFace=function(c,d,l){const f=new o(c,d,l);return n.set(f,{family:c,buffer:typeof d!="string",descriptors:l,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),f};const a=je(t.fonts,"add",function(u){return function(c){return setTimeout(O(()=>{const d=n.get(c);d&&(e(d),n.delete(c))}),0),u.apply(this,[c])}});return i.push(()=>{r.FontFace=o}),i.push(a),O(()=>{i.forEach(u=>u())})}function Tn(e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:o}=e;let a=!0;const u=O(()=>{const c=t.getSelection();if(!c||a&&(c!=null&&c.isCollapsed))return;a=c.isCollapsed||!1;const d=[],l=c.rangeCount||0;for(let f=0;f<l;f++){const p=c.getRangeAt(f),{startContainer:h,startOffset:g,endContainer:_,endOffset:y}=p;Q(h,i,n,!0)||Q(_,i,n,!0)||d.push({start:r.getId(h),startOffset:g,end:r.getId(_),endOffset:y})}o({ranges:d})});return u(),K("selectionchange",u)}function Rn({doc:e,customElementCb:t}){const r=e.defaultView;return!r||!r.customElements?()=>{}:je(r.customElements,"define",function(n){return function(o,a,u){try{t({define:{name:o}})}catch{console.warn(`Custom element callback failed for ${o}`)}return n.apply(this,[o,a,u])}})}function Nn(e,t){const{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:o,viewportResizeCb:a,inputCb:u,mediaInteractionCb:c,styleSheetRuleCb:d,styleDeclarationCb:l,canvasMutationCb:f,fontCb:p,selectionCb:h,customElementCb:g}=e;e.mutationCb=(..._)=>{t.mutation&&t.mutation(..._),r(..._)},e.mousemoveCb=(..._)=>{t.mousemove&&t.mousemove(..._),i(..._)},e.mouseInteractionCb=(..._)=>{t.mouseInteraction&&t.mouseInteraction(..._),n(..._)},e.scrollCb=(..._)=>{t.scroll&&t.scroll(..._),o(..._)},e.viewportResizeCb=(..._)=>{t.viewportResize&&t.viewportResize(..._),a(..._)},e.inputCb=(..._)=>{t.input&&t.input(..._),u(..._)},e.mediaInteractionCb=(..._)=>{t.mediaInteaction&&t.mediaInteaction(..._),c(..._)},e.styleSheetRuleCb=(..._)=>{t.styleSheetRule&&t.styleSheetRule(..._),d(..._)},e.styleDeclarationCb=(..._)=>{t.styleDeclaration&&t.styleDeclaration(..._),l(..._)},e.canvasMutationCb=(..._)=>{t.canvasMutation&&t.canvasMutation(..._),f(..._)},e.fontCb=(..._)=>{t.font&&t.font(..._),p(..._)},e.selectionCb=(..._)=>{t.selection&&t.selection(..._),h(..._)},e.customElementCb=(..._)=>{t.customElement&&t.customElement(..._),g(..._)}}function Dn(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};Nn(e,t);let i;e.recordDOM&&(i=li(e,e.doc));const n=Sn(e),o=wn(e),a=di(e),u=In(e,{win:r}),c=Mn(e),d=xn(e);let l=()=>{},f=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(l=En(e,{win:r}),f=pi(e,e.doc),p=Cn(e,{win:r}),e.collectFonts&&(h=On(e)));const g=Tn(e),_=Rn(e),y=[];for(const b of e.plugins)y.push(b.observer(b.callback,r,b.options));return O(()=>{Oe.forEach(b=>b.reset()),i==null||i.disconnect(),n(),o(),a(),u(),c(),d(),l(),f(),p(),h(),g(),_(),y.forEach(b=>b())})}function dt(e){return typeof window[e]<"u"}function pt(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Or{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,r,i,n){const o=i||this.getIdToRemoteIdMap(t),a=n||this.getRemoteIdToIdMap(t);let u=o.get(r);return u||(u=this.generateIdFn(),o.set(r,u),a.set(u,r)),u}getIds(t,r){const i=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(o=>this.getId(t,o,i,n))}getRemoteId(t,r,i){const n=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;const o=n.get(r);return o||-1}getRemoteIds(t,r){const i=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,i))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}}class An{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Or(Xr),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Or(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,r){var i;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(i=this.loadListener)===null||i===void 0||i.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){const r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const o=this.transformCrossOriginEvent(n,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout)}transformCrossOriginEvent(t,r){var i;switch(r.type){case T.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);const n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:T.IncrementalSnapshot,data:{source:x.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case T.Meta:case T.Load:case T.DomContentLoaded:return!1;case T.Plugin:return r;case T.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case T.IncrementalSnapshot:switch(r.data.source){case x.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(n.node,o)}
3),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case x.Drag:case x.TouchMove:case x.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case x.ViewportResize:return!1;case x.MediaInteraction:case x.MouseInteraction:case x.Scroll:case x.CanvasMutation:case x.Input:return this.replaceIds(r.data,t,["id"]),r;case x.StyleSheetRule:case x.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case x.Font:return r;case x.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case x.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)===null||i===void 0||i.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,i,n){for(const o of n)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=t.getIds(i,r[o]):r[o]=t.getId(i,r[o]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r)})}patchRootIdOnNode(t,r){t.type!==H.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r)})}}class Ln{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!Ye(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const i=li(Object.assign(Object.assign({},this.bypassOptions),{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(di(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)),this.restoreHandlers.push(pi({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){const i=this;this.restoreHandlers.push(je(t.prototype,"attachShadow",function(n){return function(o){const a=n.call(this,o);return this.shadowRoot&&ai(this)&&i.addShadowRoot(this.shadowRoot,r),a}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}/*! *****************************************************************************
4Copyright (c) Microsoft Corporation.
5
6Permission to use, copy, modify, and/or distribute this software for any
7purpose with or without fee is hereby granted.
8
9THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15PERFORMANCE OF THIS SOFTWARE.
16***************************************************************************** */function Pn(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function qn(e,t,r,i){function n(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(l){try{d(i.next(l))}catch(f){a(f)}}function c(l){try{d(i.throw(l))}catch(f){a(f)}}function d(l){l.done?o(l.value):n(l.value).then(u,c)}d((i=i.apply(e,[])).next())})}var qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
16+/",Un=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ft=0;ft<qe.length;ft++)Un[qe.charCodeAt(ft)]=ft;var Fn=function(e){var t=new Uint8Array(e),r,i=t.length,n="";for(r=0;r<i;r+=3)n+=qe[t[r]>>2],n+=qe[(t[r]&3)<<4|t[r+1]>>4],n+=qe[(t[r+1]&15)<<2|t[r+2]>>6],n+=qe[t[r+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n};const Tr=new Map;function Bn(e,t){let r=Tr.get(e);return r||(r=new Map,Tr.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const fi=(e,t,r)=>{if(!e||!(_i(e,t)||typeof e=="object"))return;const i=e.constructor.name,n=Bn(r,i);let o=n.indexOf(e);return o===-1&&(o=n.length,n.push(e)),o};function _t(e,t,r){if(e instanceof Array)return e.map(i=>_t(i,t,r));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){const i=e.constructor.name,n=Fn(e);return{rr_type:i,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[_t(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const i=e.constructor.name,{src:n}=e;return{rr_type:i,src:n}}else if(e instanceof HTMLCanvasElement){const i="HTMLImageElement",n=e.toDataURL();return{rr_type:i,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[_t(e.data,t,r),e.width,e.height]};if(_i(e,t)||typeof e=="object"){const i=e.constructor.name,n=fi(e,t,r);return{rr_type:i,index:n}}}}return e}const hi=(e,t,r)=>e.map(i=>_t(i,t,r)),_i=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function $n(e,t,r,i){const n=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of o)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const u=je(t.CanvasRenderingContext2D.prototype,a,function(c){return function(...d){return Q(this.canvas,r,i,!0)||setTimeout(()=>{const l=hi(d,t,this);e(this.canvas,{type:$e["2D"],property:a,args:l})},0),c.apply(this,d)}});n.push(u)}catch{const c=Tt(t.CanvasRenderingContext2D.prototype,a,{set(d){e(this.canvas,{type:$e["2D"],property:a,args:[d],setter:!0})}});n.push(c)}return()=>{n.forEach(a=>a())}}function Wn(e){return e==="experimental-webgl"?"webgl":e}function Rr(e,t,r,i){const n=[];try{const o=je(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(u,...c){if(!Q(this,t,r,!0)){const d=Wn(u);if("__context"in this||(this.__context=d),i&&["webgl","webgl2"].includes(d))if(c[0]&&typeof c[0]=="object"){const l=c[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[u,...c])}});n.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(o=>o())}}function Nr(e,t,r,i,n,o,a){const u=[],c=Object.getOwnPropertyNames(e);for(const d of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const l=je(e,d,function(f){return function(...p){const h=f.apply(this,p);if(fi(h,a,this),"tagName"in this.canvas&&!Q(this.canvas,i,n,!0)){const g=hi(p,a,this),_={type:t,property:d,args:g};r(this.canvas,_)}return h}});u.push(l)}catch{const f=Tt(e,d,{set(p){r(this.canvas,{type:t,property:d,args:[p],setter:!0})}});u.push(f)}return u}function zn(e,t,r,i,n){const o=[];return o.push(...Nr(t.WebGLRenderingContext.prototype,$e.WebGL,e,r,i,n,t)),typeof t.WebGL2RenderingContext<"u"&&o.push(...Nr(t.WebGL2RenderingContext.prototype,$e.WebGL2,e,r,i,n,t)),()=>{o.forEach(a=>a())}}function jn(e,t){var r=e.toString(),i=r.split(`
17`);i.pop(),i.shift();for(var n=i[0].search(/\S/),o=/(['"])__worker_loader_strict__(['"])/g,a=0,u=i.length;a<u;++a)i[a]=i[a].substring(n).replace(o,"$1use strict$2")+`
18`;return i}function Hn(e,t){var r=jn(e),i=new Blob(r,{type:"application/javascript"});return URL.createObjectURL(i)}function Gn(e,t){var r;return function(n){return r=r||Hn(e),new Worker(r,n)}}var Vn=Gn(function(){(function(){"__worker_loader_strict__";/*! *****************************************************************************
19    Copyright (c) Microsoft Corporation.
20
21    Permission to use, copy, modify, and/or distribute this software for any
22    purpose with or without fee is hereby granted.
23
24    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
25    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
26    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
27    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
28    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
29    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
30    PERFORMANCE OF THIS SOFTWARE.
31    ***************************************************************************** */function e(d,l,f,p){function h(g){return g instanceof f?g:new f(function(_){_(g)})}return new(f||(f=Promise))(function(g,_){function y(v){try{S(p.next(v))}catch(w){_(w)}}function b(v){try{S(p.throw(v))}catch(w){_(w)}}function S(v){v.done?g(v.value):h(v.value).then(y,b)}S((p=p.apply(d,[])).next())})}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 4,339 bytes, line 31
31+/",r=typeof Uint8Array>"u"?[]:new Uint8Array(256),i=0;i<t.length;i++)r[t.charCodeAt(i)]=i;var n=function(d){var l=new Uint8Array(d),f,p=l.length,h="";for(f=0;f<p;f+=3)h+=t[l[f]>>2],h+=t[(l[f]&3)<<4|l[f+1]>>4],h+=t[(l[f+1]&15)<<2|l[f+2]>>6],h+=t[l[f+2]&63];return p%3===2?h=h.substring(0,h.length-1)+"=":p%3===1&&(h=h.substring(0,h.length-2)+"=="),h};const o=new Map,a=new Map;function u(d,l,f){return e(this,void 0,void 0,function*(){const p=`${d}-${l}`;if("OffscreenCanvas"in globalThis){if(a.has(p))return a.get(p);const h=new OffscreenCanvas(d,l);h.getContext("2d");const _=yield(yield h.convertToBlob(f)).arrayBuffer(),y=n(_);return a.set(p,y),y}else return""})}const c=self;c.onmessage=function(d){return e(this,void 0,void 0,function*(){if("OffscreenCanvas"in globalThis){const{id:l,bitmap:f,width:p,height:h,dataURLOptions:g}=d.data,_=u(p,h,g),y=new OffscreenCanvas(p,h);y.getContext("2d").drawImage(f,0,0),f.close();const S=yield y.convertToBlob(g),v=S.type,w=yield S.arrayBuffer(),M=n(w);if(!o.has(l)&&(yield _)===M)return o.set(l,M),c.postMessage({id:l});if(o.get(l)===M)return c.postMessage({id:l});c.postMessage({id:l,type:v,base64:M,width:p,height:h}),o.set(l,M)}else return c.postMessage({id:d.data.id})})}})()});class Yn{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(c,d)=>{(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(d)};const{sampling:r="all",win:i,blockClass:n,blockSelector:o,recordCanvas:a,dataURLOptions:u}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,a&&r==="all"&&this.initCanvasMutationObserver(i,n,o),a&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,o,{dataURLOptions:u})}initCanvasFPSObserver(t,r,i,n,o){const a=Rr(r,i,n,!0),u=new Map,c=new Vn;c.onmessage=g=>{const{id:_}=g.data;if(u.set(_,!1),!("base64"in g.data))return;const{base64:y,type:b,width:S,height:v}=g.data;this.mutationCb({id:_,type:$e["2D"],commands:[{property:"clearRect",args:[0,0,S,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:y}],type:b}]},0,0]}]})};const d=1e3/t;let l=0,f;const p=()=>{const g=[];return r.document.querySelectorAll("canvas").forEach(_=>{Q(_,i,n,!0)||g.push(_)}),g},h=g=>{if(l&&g-l<d){f=requestAnimationFrame(h);return}l=g,p().forEach(_=>qn(this,void 0,void 0,function*(){var y;const b=this.mirror.getId(_);if(u.get(b)||_.width===0||_.height===0)return;if(u.set(b,!0),["webgl","webgl2"].includes(_.__context)){const v=_.getContext(_.__context);((y=v==null?void 0:v.getContextAttributes())===null||y===void 0?void 0:y.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}const S=yield createImageBitmap(_);c.postMessage({id:b,bitmap:S,width:_.width,height:_.height,dataURLOptions:o.dataURLOptions},[S])})),f=requestAnimationFrame(h)};f=requestAnimationFrame(h),this.resetObservers=()=>{a(),cancelAnimationFrame(f)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Rr(t,r,i,!1),o=$n(this.processMutation.bind(this),t,r,i),a=zn(this.processMutation.bind(this),t,r,i,this.mirror);this.resetObservers=()=>{n(),o(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;const n=i.map(a=>Pn(a,["type"])),{type:o}=i[0];this.mutationCb({id:r,type:o,commands:n}),this.pendingCanvasMutations.delete(t)}}class Xn{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=ne
31w hn,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;const i={id:r,styleIds:[]},n=[];for(const o of t){let a;this.styleMirror.has(o)?a=this.styleMirror.getId(o):(a=this.styleMirror.add(o),n.push({styleId:a,rules:Array.from(o.rules||CSSRule,(u,c)=>({rule:Gr(u),index:c}))})),i.styleIds.push(a)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Kn{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,r){const i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==r)}add(t,r){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function j(e){return Object.assign(Object.assign({},e),{timestamp:bt()})}let B,gt,Bt,wt=!1;const ne=Wi();function nt(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:u=null,maskTextClass:c="rr-mask",maskTextSelector:d=null,inlineStylesheet:l=!0,maskAllInputs:f,maskInputOptions:p,slimDOMOptions:h,maskInputFn:g,maskTextFn:_,hooks:y,packFn:b,sampling:S={},dataURLOptions:v={},mousemoveWait:w,recordDOM:M=!0,recordCanvas:G=!1,recordCrossOriginIframes:W=!1,recordAfter:L=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:P=!1,collectFonts:Z=!1,inlineImages:ee=!1,plugins:R,keepIframeSrcFn:Me=()=>!1,ignoreCSSAttributes:Y=new Set([]),errorHandler:ge}=e;vn(ge);const ae=W?window.parent===window:!0;let ct=!1;if(!ae)try{window.parent.document&&(ct=!1)}catch{ct=!0}if(ae&&!t)throw new Error("emit function is required");w!==void 0&&S.mousemove===void 0&&(S.mousemove=w),ne.reset();const At=f===!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}:p!==void 0?p:{password:!0},Lt=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all"}:h||{};fn();let mr,Pt=0;const yr=E=>{for(const ie of R||[])ie.eventProcessor&&(E=ie.eventProcessor(E));return b&&!ct&&(E=b(E)),E};B=(E,ie)=>{var F;if(!((F=Oe[0])===null||F===void 0)&&F.isFrozen()&&E.type!==T.FullSnapshot&&!(E.type===T.IncrementalSnapshot&&E.data.source===x.Mutation)&&Oe.forEach(X=>X.unfreeze()),ae)t==null||t(yr(E),ie);else if(ct){const X={type:"rrweb",event:yr(E),origin:window.location.origin,isCheckout:ie};window.parent.postMessage(X,"*")}if(E.type===T.FullSnapshot)mr=E,Pt=0;else if(E.type===T.IncrementalSnapshot){if(E.data.source===x.Mutation&&E.data.isAttachIframe)return;Pt++;const X=i&&Pt>=i,xe=r&&E.timestamp-mr.timestamp>r;(X||xe)&&gt(!0)}};const ut=E=>{B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.Mutation},E)}))},vr=E=>B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.Scroll},E)})),br=E=>B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.CanvasMutation},E)})),Li=E=>B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.AdoptedStyleSheet},E)})),Ee=new Xn({mutationCb:ut,adoptedStyleSheetCb:Li}),Ce=new An({mirror:ne,mutationCb:ut,stylesheetManager:Ee,recordCrossOriginIframes:W,wrappedEmit:B});for(const E of R||[])E.getMirror&&E.getMirror({nodeMirror:ne,crossOriginIframeMirror:Ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ce.crossOriginIframeStyleMirror});const qt=new Kn;Bt=new Yn({recordCanvas:G,mutationCb:br,win:window,blockClass:n,blockSelector:o,mirror:ne,sampling:S.canvas,dataURLOptions:v});const lt=new Ln({mutationCb:ut,scrollCb:vr,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:c,maskTextSelector:d,inlineStylesheet:l,maskInputOptions:At,dataURLOptions:v,maskTextFn:_,maskInputFn:g,recordCanvas:G,inlineImages:ee,sampling:S,slimDOMOptions:Lt,iframeManager:Ce,stylesheetManager:Ee,canvasManager:Bt,keepIframeSrcFn:Me,processedNodeManager:qt},mirror:ne});gt=(E=!1)=>
31{if(!M)return;B(j({type:T.Meta,data:{href:window.location.href,width:ti(),height:ei()}}),E),Ee.reset(),lt.init(),Oe.forEach(F=>F.lock());const ie=dn(document,{mirror:ne,blockClass:n,blockSelector:o,maskTextClass:c,maskTextSelector:d,inlineStylesheet:l,maskAllInputs:At,maskTextFn:_,slimDOM:Lt,dataURLOptions:v,recordCanvas:G,inlineImages:ee,onSerialize:F=>{ni(F,ne)&&Ce.addIframe(F),oi(F,ne)&&Ee.trackLinkElement(F),Vt(F)&&lt.addShadowRoot(F.shadowRoot,document)},onIframeLoad:(F,X)=>{Ce.attachIframe(F,X),lt.observeAttachShadow(F)},onStylesheetLoad:(F,X)=>{Ee.attachLinkElement(F,X)},keepIframeSrcFn:Me});if(!ie)return console.warn("Failed to snapshot the document");B(j({type:T.FullSnapshot,data:{node:ie,initialOffset:Zr(window)}}),E),Oe.forEach(F=>F.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ee.adoptStyleSheets(document.adoptedStyleSheets,ne.getId(document))};try{const E=[],ie=X=>{var xe;return O(Dn)({mutationCb:ut,mousemoveCb:(q,Ut)=>B(j({type:T.IncrementalSnapshot,data:{source:Ut,positions:q}})),mouseInteractionCb:q=>B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.MouseInteraction},q)})),scrollCb:vr,viewportResizeCb:q=>B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.ViewportResize},q)})),inputCb:q=>B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.Input},q)})),mediaInteractionCb:q=>B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.MediaInteraction},q)})),styleSheetRuleCb:q=>B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.StyleSheetRule},q)})),styleDeclarationCb:q=>B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.StyleDeclaration},q)})),canvasMutationCb:br,fontCb:q=>B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.Font},q)})),selectionCb:q=>{B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.Selection},q)}))},customElementCb:q=>{B(j({type:T.IncrementalSnapshot,data:Object.assign({source:x.CustomElement},q)}))},blockClass:n,ignoreClass:a,ignoreSelector:u,maskTextClass:c,maskTextSelector:d,maskInputOptions:At,inlineStylesheet:l,sampling:S,recordDOM:M,recordCanvas:G,inlineImages:ee,userTriggeredOnInput:P,collectFonts:Z,doc:X,maskInputFn:g,maskTextFn:_,keepIframeSrcFn:Me,blockSelector:o,slimDOMOptions:Lt,dataURLOptions:v,mirror:ne,iframeManager:Ce,stylesheetManager:Ee,shadowDomManager:lt,processedNodeManager:qt,canvasManager:Bt,ignoreCSSAttributes:Y,plugins:((xe=R==null?void 0:R.filter(q=>q.observer))===null||xe===void 0?void 0:xe.map(q=>({observer:q.observer,options:q.options,callback:Ut=>B(j({type:T.Plugin,data:{plugin:q.name,payload:Ut}}))})))||[]},y)};Ce.addLoadListener(X=>{try{E.push(ie(X.contentDocument))}catch(xe){console.warn(xe)}});const F=()=>{gt(),E.push(ie(document)),wt=!0};return document.readyState==="interactive"||document.readyState==="complete"?F():(E.push(K("DOMContentLoaded",()=>{B(j({type:T.DomContentLoaded,data:{}})),L==="DOMContentLoaded"&&F()})),E.push(K("load",()=>{B(j({type:T.Load,data:{}})),L==="load"&&F()},window))),()=>{E.forEach(X=>X()),qt.destroy(),wt=!1,bn()}}catch(E){console.warn(E)}}nt.addCustomEvent=(e,t)=>{if(!wt)throw new Error("please add custom event after start recording");B(j({type:T.Custom,data:{tag:e,payload:t}}))};nt.freezePage=()=>{Oe.forEach(e=>e.freeze())};nt.takeFullSnapshot=e=>{if(!wt)throw new Error("please take full snapshot after start recording");gt(e)};nt.mirror=ne;var gi=(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))(gi||{}),ce=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ce||{}),le={DEBUG:!1,LIB_VERSION:"2.58.0"},I;if(typeof window>"u"){var Dr={hostname:""};I={navigator:{userAgent:"",onLine:!0},document:{location:Dr,referrer:""},screen:{width:0,height:0},location:Dr}}else I=window;var Ar=I.setImmediate,be,Xt,Kt,mi=Object.prototype.toString,Qn=typeof Ar<"u"?function(t){return Ar(t)}:setTimeout;try{Object.defineProperty({},"x",{}),be=function(t,r,i,n){return Object.defineProperty(t,r,{value:i,writable:!0,configurable:n!==!1})}}catch{be=function(r,i,n){return r[i]=n,r}}Kt=function(){var t,r,i;function n(o,a){this.fn=o,this.self=a,this.next=void 0}return{add:function(a,u){i=new n(a,u),r?r.next=i:t=i,r=i,i=void 0},drain:function(){var a=t;for(t=r=Xt=void 0;a;)a.fn.call(a.self),a=a.next}}}();function It(e,t){Kt.add(e,t),Xt||(Xt=Qn(Kt.drain))}function yi(e){var t,r=typeof e;return e!==null&&(r==="object"||r==="function")&&(t=e.then),typeof t=="function"?t:!1}function rr(){for(var e=0;e<this.chain.length;e++)Jn(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Jn(e,t,r){var i,n;try{t===!1?r.reject(e.msg):(t===!0?i=e.msg:i=t.call(void 0,e.msg),i===r.promise?r.reject(TypeError("Promise-chain cycle")):(n=yi(i))?n.call(i,r.resolve,r.reject):r.resolve(i))}catch(o){r.reject(o)}}function vi(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=yi(e))?It(function(){var i=new Lr(r);try{t.call(e,function(){vi.apply(i,arguments)},function(){Ke.apply(i,arguments)})}catch(n){Ke.call(i,n)}}):(r.msg=e,r.state=1,r.chain.length>0&&It(rr,r))}catch(i){Ke.call(new Lr(r),i)}}}function Ke(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&It(rr,t))}function bi(e,t,r,i){for(var n=0;n<t.length;n++)(function(a){e.resolve(t[a]).then(function(c){r(a,c)},i)})(n)}function Lr(e){this.def=e,this.triggered=!1}function Zn(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function we(e){if(typeof e!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var t=new Zn(this);this.then=function(i,n){var o={success:typeof i=="function"?i:!0,failure:typeof n=="function"?n:!1};
vendor: 7,259 bytes, lines 31-35
31return o.promise=new this.constructor(function(u,c){if(typeof u!="function"||typeof c!="function")throw TypeError("Not a function");o.resolve=u,o.reject=c}),t.chain.push(o),t.state!==0&&It(rr,t),o.promise},this.catch=function(i){return this.then(void 0,i)};try{e.call(void 0,function(i){vi.call(t,i)},function(i){Ke.call(t,i)})}catch(r){Ke.call(t,r)}}var Si=be({},"constructor",we,!1);we.prototype=Si;be(Si,"__NPO__",0,!1);be(we,"resolve",function(t){var r=this;return t&&typeof t=="object"&&t.__NPO__===1?t:new r(function(n,o){if(typeof n!="function"||typeof o!="function")throw TypeError("Not a function");n(t)})});be(we,"reject",function(t){return new this(function(i,n){if(typeof i!="function"||typeof n!="function")throw TypeError("Not a function");n(t)})});be(we,"all",function(t){var r=this;return mi.call(t)!=="[object Array]"?r.reject(TypeError("Not an array")):t.length===0?r.resolve([]):new r(function(n,o){if(typeof n!="function"||typeof o!="function")throw TypeError("Not a function");var a=t.length,u=Array(a),c=0;bi(r,t,function(l,f){u[l]=f,++c===a&&n(u)},o)})});be(we,"race",function(t){var r=this;return mi.call(t)!=="[object Array]"?r.reject(TypeError("Not an array")):new r(function(n,o){if(typeof n!="function"||typeof o!="function")throw TypeError("Not a function");bi(r,t,function(u,c){n(c)},o)})});var $;typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?$=Promise:$=we;var Qe=24*60*60*1e3,$t=8*1e3,Rt=Array.prototype,eo=Function.prototype,wi=Object.prototype,ye=Rt.slice,ot=wi.toString,Nt=wi.hasOwnProperty,z=I.console,ve=I.navigator,D=I.document,ht=I.opera,kt=I.screen,ue=ve.userAgent,Wt=eo.bind,Pr=Rt.forEach,qr=Rt.indexOf,Ur=Rt.map,to=Array.isArray,Qt={},s={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},N={log:function(){if(le.DEBUG&&!s.isUndefined(z)&&z)try{z.log.apply(z,arguments)}catch{s.each(arguments,function(t){z.log(t)})}},warn:function(){if(le.DEBUG&&!s.isUndefined(z)&&z){var e=["Mixpanel warning:"].concat(s.toArray(arguments));try{z.warn.apply(z,e)}catch{s.each(e,function(r){z.warn(r)})}}},error:function(){if(le.DEBUG&&!s.isUndefined(z)&&z){var e=["Mixpanel error:"].concat(s.toArray(arguments));try{z.error.apply(z,e)}catch{s.each(e,function(r){z.error(r)})}}},critical:function(){if(!s.isUndefined(z)&&z){var e=["Mixpanel error:"].concat(s.toArray(arguments));try{z.error.apply(z,e)}catch{s.each(e,function(r){z.error(r)})}}}},zt=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(N,arguments)}},st=function(e){return{log:zt(N.log,e),error:zt(N.error,e),critical:zt(N.critical,e)}};s.bind=function(e,t){var r,i;if(Wt&&e.bind===Wt)return Wt.apply(e,ye.call(arguments,1));if(!s.isFunction(e))throw new TypeError;return r=ye.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,r.concat(ye.call(arguments)));var n={};n.prototype=e.prototype;var o=new n;n.prototype=null;var a=e.apply(o,r.concat(ye.call(arguments)));return Object(a)===a?a:o},i};s.each=function(e,t,r){if(e!=null){if(Pr&&e.forEach===Pr)e.forEach(t,r);else if(e.length===+e.length){for(var i=0,n=e.length;i<n;i++)if(i in e&&t.call(r,e[i],i,e)===Qt)return}else for(var o in e)if(Nt.call(e,o)&&t.call(r,e[o],o,e)===Qt)return}};s.extend=function(e){return s.each(ye.call(arguments,1),function(t){for(var r in t)t[r]!==void 0&&(e[r]=t[r])}),e};s.isArray=to||function(e){return ot.call(e)==="[object Array]"};s.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch{return!1}};s.isArguments=function(e){return!!(e&&Nt.call(e,"callee"))};s.toArray=function(e){return e?e.toArray?e.toArray():s.isArray(e)||s.isArguments(e)?ye.call(e):s.values(e):[]};s.map=function(e,t,r){if(Ur&&e.map===Ur)return e.map(t,r);var i=[];return s.each(e,function(n){i.push(t.call(r,n))}),i};s.keys=function(e){var t=[];return e===null||s.each(e,function(r,i){t[t.length]=i}),t};s.values=function(e){var t=[];return e===null||s.each(e,function(r){t[t.length]=r}),t};s.include=function(e,t){var r=!1;return e===null?r:qr&&e.indexOf===qr?e.indexOf(t)!=-1:(s.each(e,function(i){if(r||(r=i===t))return Qt}),r)};s.includes=function(e,t){return e.indexOf(t)!==-1};s.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e};s.isObject=function(e){return e===Object(e)&&!s.isArray(e)};s.isEmptyObject=function(e){if(s.isObject(e)){for(var t in e)if(Nt.call(e,t))return!1;return!0}return!1};s.isUndefined=function(e){return e===void 0};s.isString=function(e){return ot.call(e)=="[object String]"};s.isDate=function(e){return ot.call(e)=="[object Date]"};s.isNumber=function(e){return ot.call(e)=="[object Number]"};s.isElement=function(e){return!!(e&&e.nodeType===1)};s.encodeDates=function(e){return s.each(e,function(t,r){s.isDate(t)?e[r]=s.formatDate(t):s.isObject(t)&&(e[r]=s.encodeDates(t))}),e};s.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};s.formatDate=function(e){function t(r){return r<10?"0"+r:r}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())};s.strip_empty_properties=function(e){var t={};return s.each(e,function(r,i){s.isString(r)&&r.length>0&&(t[i]=r)}),t};s.truncate=function(e,t){var r;return typeof e=="string"?r=e.slice(0,t):s.isArray(e)?(r=[],s.each(e,function(i){r.push(s.truncate(i,t))})):s.isObject(e)?(r={},s.each(e,function(i,n){r[n]=s.truncate(i,t)})):r=e,r};s.JSONEncode=function(){return function(e){var t=e,r=function(n){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(u){var c=a[u];return typeof c=="string"?c:"\\u"+("0000"+u.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'},i=function(n,o){var a="",u="    ",c=0,d="",l="",f=0,p=a,h=[],g=o[n];switch(g&&typeof g=="object"&&typeof g.toJSON=="function"&&(g=g.toJSON(n)),typeof g){case"string":return r(g);case"number":return isFinite(g)?String(g):"null";case"boolean":case"null":return String(g);case"object":if(!g)return"null";if(a+=u,h=[],ot.apply(g)==="[object Array]"){for(f=g.length,c=0;c<f;c+=1)h[c]=i(c,g)||"null";return l=h.length===0?"[]":a?`[
32`+a+h.join(`,
33`+a)+`
34`+p+"]":"["+h.join(",")+"]",a=p,l}for(d in g)Nt.call(g,d)&&(l=i(d,g),l&&h.push(r(d)+(a?": ":":")+l));return l=h.length===0?"{}":a?"{"+h.join(",")+p+"}":"{"+h.join(",")+"}",a=p,l}};return i("",{"":t})}}();s.JSONDecode=function(){var e,t,r={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
35`,r:"\r",t:"	"},i,n=function(h){var g=new SyntaxError(h);throw g.at=e,g.text=i,g},o=function(h){return h&&h!==t&&n("Expected '"+h+"' instead of '"+t+"'"),t=i.charAt(e),e+=1,t},a=function(){var h,g="";for(t==="-"&&(g="-",o("-"));t>="0"&&t<="9";)g+=t,o();if(t===".")for(g+=".";o()&&t>="0"&&t<="9";)g+=t;if(t==="e"||t==="E")for(g+=t,o(),(t==="-"||t==="+")&&(g+=t,o());t>="0"&&t<="9";)g+=t,o();if(h=+g,!isFinite(h))n("Bad number");else return h},u=function(){var h,g,_="",y;if(t==='"')for(;o();){if(t==='"')return o(),_;if(t==="\\")if(o(),t==="u"){for(y=0,g=0;g<4&&(h=parseInt(o(),16),!!isFinite(h));g+=1)y=y*16+h;_+=String.fromCharCode(y)}
35else if(typeof r[t]=="string")_+=r[t];else break;else _+=t}n("Bad string")},c=function(){for(;t&&t<=" ";)o()},d=function(){switch(t){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}n('Unexpected "'+t+'"')},l,f=function(){var h=[];if(t==="["){if(o("["),c(),t==="]")return o("]"),h;for(;t;){if(h.push(l()),c(),t==="]")return o("]"),h;o(","),c()}}n("Bad array")},p=function(){var h,g={};if(t==="{"){if(o("{"),c(),t==="}")return o("}"),g;for(;t;){if(h=u(),c(),o(":"),Object.hasOwnProperty.call(g,h)&&n('Duplicate key "'+h+'"'),g[h]=l(),c(),t==="}")return o("}"),g;o(","),c()}}n("Bad object")};return l=function(){switch(c(),t){case"{":return p();case"[":return f();case'"':return u();case"-":return a();default:return t>="0"&&t<="9"?a():d()}},function(h){var g;return i=h,e=0,t=" ",g=l(),c(),t&&n("Syntax error"),g}}();s.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,i,n,o,a,u,c,d,l=0,f=0,p="",h=[];if(!e)return e;e=s.utf8Encode(e);do r=e.charCodeAt(l++),i=e.charCodeAt(l++),n=e.charCodeAt(l++),d=r<<16|i<<8|n,o=d>>18&63,a=d>>12&63,u=d>>6&63,c=d&63,h[f++]=t.charAt(o)+t.charAt(a)+t.charAt(u)+t.charAt(c);while(l<e.length);switch(p=h.join(""),e.length%3){case 1:p=p.slice(0,-2)+"==";break;case 2:p=p.slice(0,-1)+"=";break}return p};s.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,`
36`).replace(/\r/g,`
37`);var t="",r,i,n=0,o;for(r=i=0,n=e.length,o=0;o<n;o++){var a=e.charCodeAt(o),u=null;a<128?i++:a>127&&a<2048?u=String.fromCharCode(a>>6|192,a&63|128):u=String.fromCharCode(a>>12|224,a>>6&63|128,a&63|128),u!==null&&(i>r&&(t+=e.substring(r,i)),t+=u,r=i=o+1)}return i>r&&(t+=e.substring(r,e.length)),t};s.UUID=function(){var e=function(){var i=1*new Date,n;if(I.performance&&I.performance.now)n=I.performance.now();else for(n=0;i==1*new Date;)n++;return i.toString(16)+Math.floor(n).toString(16)},t=function(){return Math.random().toString(16).replace(".","")},r=function(){var i=ue,n,o,a=[],u=0;function c(d,l){var f,p=0;for(f=0;f<l.length;f++)p|=a[f]<<f*8;return d^p}for(n=0;n<i.length;n++)o=i.charCodeAt(n),a.unshift(o&255),a.length>=4&&(u=c(u,a),a=[]);return a.length>0&&(u=c(u,a)),u.toString(16)};return function(){var i=(kt.height*kt.width).toString(16);return e()+"-"+t()+"-"+r()+"-"+i+"-"+e()}}();var Fr=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];s.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Fr.length;t++)if(e.indexOf(Fr[t])!==-1)return!0;return!1};s.HTTPBuildQuery=function(e,t){var r,i,n=[];return s.isUndefined(t)&&(t="&"),s.each(e,function(o,a){r=encodeURIComponent(o.toString()),i=encodeURIComponent(a),n[n.length]=i+"="+r}),n.join(t)};s.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",i=new RegExp(r),n=i.exec(e);if(n===null||n&&typeof n[1]!="string"&&n[1].length)return"";var o=n[1];try{o=decodeURIComponent(o)}catch{N.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")};s.cookie={get:function(e){for(var t=e+"=",r=D.cookie.split(";"),i=0;i<r.length;i++){for(var n=r[i];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(t)===0)return decodeURIComponent(n.substring(t.length,n.length))}return null},parse:function(e){var t;try{t=s.JSONDecode(s.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,r,i,n,o,a){var u="",c="",d="";if(a)u="; domain="+a;else if(i){var l=Br(D.location.hostname);u=l?"; domain=."+l:""}if(r){var f=new Date;f.setTime(f.getTime()+r*1e3),c="; expires="+f.toGMTString()}o&&(n=!0,d="; SameSite=None"),n&&(d+="; secure"),D.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+u+d},set:function(e,t,r,i,n,o,a){var u="",c="",d="";if(a)u="; domain="+a;else if(i){var l=Br(D.location.hostname);u=l?"; domain=."+l:""}if(r){var f=new Date;f.setTime(f.getTime()+r*24*60*60*1e3),c="; expires="+f.toGMTString()}o&&(n=!0,d="; SameSite=None"),n&&(d+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+u+d;return D.cookie=p,p},remove:function(e,t,r){s.cookie.set(e,"",-1,t,!1,!1,r)}};var jt=null,Mt=function(e,t){if(jt!==null&&!t)return jt;var r=!0;try{e=e||I.localStorage;var i="__mplss_"+ir(8),n="xyz";e.setItem(i,n),e.getItem(i)!==n&&(r=!1),e.removeItem(i)}catch{r=!1}return jt=r,r};s.localStorage={is_supported:function(e){var t=Mt(null,e);return t||N.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){N.error("localStorage error: "+e)},get:function(e){try{return I.localStorage.getItem(e)}catch(t){s.localStorage.error(t)}return null},parse:function(e){try{return s.JSONDecode(s.localStorage.get(e))||{}}catch{}return null},set:function(e,t){try{I.localStorage.setItem(e,t)}catch(r){s.localStorage.error(r)}},remove:function(e){try{I.localStorage.removeItem(e)}catch(t){s.localStorage.error(t)}}};s.register_event=function(){var e=function(i,n,o,a,u){if(!i){N.error("No valid element provided to register_event");return}if(i.addEventListener&&!a)i.addEventListener(n,o,!!u);else{var c="on"+n,d=i[c];i[c]=t(i,o,d)}};function t(i,n,o){var a=function(u){if(u=u||r(I.event),!!u){var c=!0,d,l;return s.isFunction(o)&&(d=o(u)),l=n.call(i,u),(d===!1||l===!1)&&(c=!1),c}};return a}function r(i){return i&&(i.preventDefault=r.preventDefault,i.stopPropagation=r.stopPropagation),i}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var ro=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');s.dom_query=function(){function e(n){return n.all?n.all:n.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(n,o){var a=" "+o+" ";return(" "+n.className+" ").replace(t," ").indexOf(a)>=0}function i(n){if(!D.getElementsByTagName)return[];var o=n.split(" "),a,u,c,d,l,f,p,h,g,_,y=[D];for(f=0;f<o.length;f++){if(a=o[f].replace(/^\s+/,"").replace(/\s+$/,""),a.indexOf("#")>-1){u=a.split("#"),c=u[0];var b=u[1],S=D.getElementById(b);if(!S||c&&S.nodeName.toLowerCase()!=c)return[];y=[S];continue}if(a.indexOf(".")>-1){u=a.split("."),c=u[0];var v=u[1];for(c||(c="*"),d=[],l=0,p=0;p<y.length;p++)for(c=="*"?g=e(y[p]):g=y[p].getElementsByTagName(c),h=0;h<g.length;h++)d[l++]=g[h];for(y=[],_=0,p=0;p<d.length;
vendor: 5,629 bytes, line 37
37p++)d[p].className&&s.isString(d[p].className)&&r(d[p],v)&&(y[_++]=d[p]);continue}var w=a.match(ro);if(w){c=w[1];var M=w[2],G=w[3],W=w[4];for(c||(c="*"),d=[],l=0,p=0;p<y.length;p++)for(c=="*"?g=e(y[p]):g=y[p].getElementsByTagName(c),h=0;h<g.length;h++)d[l++]=g[h];y=[],_=0;var L;switch(G){case"=":L=function(P){return P.getAttribute(M)==W};break;case"~":L=function(P){return P.getAttribute(M).match(new RegExp("\\b"+W+"\\b"))};break;case"|":L=function(P){return P.getAttribute(M).match(new RegExp("^"+W+"-?"))};break;case"^":L=function(P){return P.getAttribute(M).indexOf(W)===0};break;case"$":L=function(P){return P.getAttribute(M).lastIndexOf(W)==P.getAttribute(M).length-W.length};break;case"*":L=function(P){return P.getAttribute(M).indexOf(W)>-1};break;default:L=function(P){return P.getAttribute(M)}}for(y=[],_=0,p=0;p<d.length;p++)L(d[p])&&(y[_++]=d[p]);continue}for(c=a,d=[],l=0,p=0;p<y.length;p++)for(g=y[p].getElementsByTagName(c),h=0;h<g.length;h++)d[l++]=g[h];y=d}return y}return function(n){return s.isElement(n)?[n]:s.isObject(n)&&!s.isUndefined(n.length)?n:i.call(this,n)}}();var io=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],no=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];s.info={campaignParams:function(e){var t="",r={};return s.each(io,function(i){t=s.getQueryParam(D.URL,i),t.length?r[i]=t:e!==void 0&&(r[i]=e)}),r},clickParams:function(){var e="",t={};return s.each(no,function(r){e=s.getQueryParam(D.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return s.extend(s.info.campaignParams(),s.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var t=s.info.searchEngine(e),r=t!="yahoo"?"q":"p",i={};if(t!==null){i.$search_engine=t;var n=s.getQueryParam(e,r);n.length&&(i.mp_keyword=n)}return i},browser:function(e,t,r){return t=t||"",r||s.includes(e," OPR/")?s.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":s.includes(e,"IEMobile")||s.includes(e,"WPDesktop")?"Internet Explorer Mobile":s.includes(e,"SamsungBrowser/")?"Samsung Internet":s.includes(e,"Edge")||s.includes(e,"Edg/")?"Microsoft Edge":s.includes(e,"FBIOS")?"Facebook Mobile":s.includes(e,"Chrome")?"Chrome":s.includes(e,"CriOS")?"Chrome iOS":s.includes(e,"UCWEB")||s.includes(e,"UCBrowser")?"UC Browser":s.includes(e,"FxiOS")?"Firefox iOS":s.includes(t,"Apple")?s.includes(e,"Mobile")?"Mobile Safari":"Safari":s.includes(e,"Android")?"Android Mobile":s.includes(e,"Konqueror")?"Konqueror":s.includes(e,"Firefox")?"Firefox":s.includes(e,"MSIE")||s.includes(e,"Trident/")?"Internet Explorer":s.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var i=s.info.browser(e,t,r),n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},o=n[i];if(o===void 0)return null;var a=e.match(o);return a?parseFloat(a[a.length-2]):null},os:function(){var e=ue;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return I.location.href},properties:function(e){return typeof e!="object"&&(e={}),s.extend(s.strip_empty_properties({$os:s.info.os(),$browser:s.info.browser(ue,ve.vendor,ht),$referrer:D.referrer,$referring_domain:s.info.referringDomain(D.referrer),$device:s.info.device(ue)}),{$current_url:s.info.currentUrl(),$browser_version:s.info.browserVersion(ue,ve.vendor,ht),$screen_height:kt.height,$screen_width:kt.width,mp_lib:"web",$lib_version:le.LIB_VERSION,$insert_id:ir(),time:s.timestamp()/1e3},s.strip_empty_properties(e))},people_properties:function(){return s.extend(s.strip_empty_properties({$os:s.info.os(),$browser:s.info.browser(ue,ve.vendor,ht)}),{$browser_version:s.info.browserVersion(ue,ve.vendor,ht)})},mpPageViewProperties:function(){return s.strip_empty_properties({current_page_title:D.title,current_domain:I.location.hostname,current_url_path:I.location.pathname,current_url_protocol:I.location.protocol,current_url_search:I.location.search})}};var ir=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},oo=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,so=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Br=function(e){var t=so,r=e.split("."),i=r[r.length-1];(i.length>
vendor: 14,442 bytes, line 37
374||i==="com"||i==="org")&&(t=oo);var n=e.match(t);return n?n[0]:""},ao=function(){var e=I.navigator.onLine;return s.isUndefined(e)||e},Et=null,Ct=null;typeof JSON<"u"&&(Et=JSON.stringify,Ct=JSON.parse);Et=Et||s.JSONEncode;Ct=Ct||s.JSONDecode;s.toArray=s.toArray;s.isObject=s.isObject;s.JSONEncode=s.JSONEncode;s.JSONDecode=s.JSONDecode;s.isBlockedUA=s.isBlockedUA;s.isEmptyObject=s.isEmptyObject;s.info=s.info;s.info.device=s.info.device;s.info.browser=s.info.browser;s.info.browserVersion=s.info.browserVersion;s.info.properties=s.info.properties;s.NPO=we;var co="__mp_opt_in_out_";function uo(e,t){Mi(!0,e,t)}function lo(e,t){Mi(!1,e,t)}function po(e,t){return ki(e,t)==="1"}function Ii(e,t){if(ho(t))return N.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r=ki(e,t)==="0";return r&&N.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Ie(e){return sr(e,function(t){return this.get_config(t)})}function ke(e){return sr(e,function(t){return this._get_config(t)})}function He(e){return sr(e,function(t){return this._get_config(t)})}function fo(e,t){t=t||{},nr(t).remove(or(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function nr(e){return e=e||{},e.persistenceType==="localStorage"?s.localStorage:s.cookie}function or(e,t){return t=t||{},(t.persistencePrefix||co)+e}function ki(e,t){return nr(t).get(or(e,t))}function ho(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||I,r=t.navigator||{},i=!1;return s.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(n){s.includes([!0,1,"1","yes"],n)&&(i=!0)}),i}function Mi(e,t,r){if(!s.isString(t)||!t.length){N.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}r=r||{},nr(r).set(or(t,r),e?1:0,s.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function sr(e,t){return function(){var r=!1;try{var i=t.call(this,"token"),n=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),u=t.call(this,"window");i&&(r=Ii(i,{ignoreDnt:n,persistenceType:o,persistencePrefix:a,window:u}))}catch(d){N.error("Unexpected error when checking tracking opt-out status: "+d)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];typeof c=="function"&&c(0)}}var _o=st("lock"),Ei=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||$};Ei.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(s.bind(function(i,n){var o=t||new Date().getTime()+"|"+Math.random(),a=new Date().getTime(),u=this.storageKey,c=this.pollIntervalMS,d=this.timeoutMS,l=this.storage,f=u+":X",p=u+":Y",h=u+":Z",g=function(v){if(new Date().getTime()-a>d){_o.error("Timeout waiting for mutex on "+u+"; clearing lock. ["+o+"]"),l.removeItem(h),l.removeItem(p),b();return}setTimeout(function(){try{v()}catch(w){n(w)}},c*(Math.random()+.1))},_=function(v,w){v()?w():g(function(){_(v,w)})},y=function(){var v=l.getItem(p);return v&&v!==o?!1:(l.setItem(p,o),l.getItem(p)===o?!0:(Mt(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},b=function(){l.setItem(f,o),_(y,function(){if(l.getItem(f)===o){S();return}g(function(){if(l.getItem(p)!==o){b();return}_(function(){return!l.getItem(h)},S)})})},S=function(){l.setItem(h,"1");var v=function(){l.removeItem(h),l.getItem(p)===o&&l.removeItem(p),l.getItem(f)===o&&l.removeItem(f)};e().then(function(w){v(),i(w)}).catch(function(w){v(),n(w)})};try{if(Mt(l,!0))b();else throw new Error("localStorage support check failed")}catch(v){n(v)}},this))};var at=function(e){this.storage=e||localStorage};at.prototype.init=function(){return $.resolve()};at.prototype.setItem=function(e,t){return new $(s.bind(function(r,i){try{this.storage.setItem(e,t)}catch(n){i(n)}r()},this))};at.prototype.getItem=function(e){return new $(s.bind(function(t,r){var i;try{i=this.storage.getItem(e)}catch(n){r(n)}t(i)},this))};at.prototype.removeItem=function(e){return new $(s.bind(function(t,r){try{this.storage.removeItem(e)}catch(i){r(i)}t()},this))};var $r=st("batch"),he=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new at,this.lock=new Ei(e,{storage:t.sharedLockStorage||window.localStorage}),this.queueStorage.init()),this.reportError=t.errorReporter||s.bind($r.error,$r),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1};he.prototype.ensureInit=function(){return this.initialized?$.resolve():this.queueStorage.init().then(s.bind(function(){this.initialized=!0},this)).catch(s.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))};he.prototype.enqueue=function(e,t){var r={id:ir(),flushAfter:new Date().getTime()+t*2,payload:e};if(this.usePersistence){var i=s.bind(function(){return this.ensureInit().then(s.bind(function(){return this.readFromStorage()},this)).then(s.bind(function(n){return n.push(r),this.saveToStorage(n)},this)).then(s.bind(function(n){return n&&this.memQueue.push(r),n},this)).catch(s.bind(function(n){return this.reportError("Error enqueueing item",n,e),!1},this))},this);return this.lock.withLock(i,this.pid).catch(s.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this))}else return this.memQueue.push(r),$.resolve(!0)};he.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(s.bind(function(){return this.readFromStorage()},this)).then(s.bind(function(r){if(r.length){var i={};s.each(t,function(a){i[a.id]=!0});for(var n=0;n<r.length;n++){var o=r[n];if(new Date().getTime()>o.flushAfter&&!i[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):$.resolve(t)};var Wr=function(e,t){var r=[];return s.each(e,function(i){i.id&&!t[i.id]&&r.push(i)}),r};he.prototype.removeItemsByID=function(e){var t={};if(s.each(e,function(i){t[i]=!0}),this.memQueue=Wr(this.memQueue,t),this.usePersistence){var r=s.bind(function(){return this.ensureInit().then(s.bind(function(){return this.readFromStorage()},this)).then(s.bind(function(i){return i=Wr(i,t),this.saveToStorage(i)},this)).then(s.bind(function(){return this.readFromStorage()},this)).then(s.bind(function(i){for(var n=0;n<i.length;n++){var o=i[n];if(o.id&&t[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(s.bind(function(i){return this.reportError("Error removing items",i,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(s.bind(function(i){return this.reportError("Error acquiring storage lock",i),Mt(this.queueStorage.storage,!0)?!1:r().then(s.bind(function(n){return n||this.queueStorage.removeItem(this.storageKey).then(function(){return n})},this)).catch(s.bind(function(n){return this.reportError("Error clearing queue",n),!1},this))},this))}else return $.resolve(!0)};var zr=function(e,t){var r=[];return s.each(e,function(i){var n=i.id;if(n in t){var o=t[n];o!==null&&(i.payload=o,r.push(i))}else r.push(i)}),r};he.prototype.updatePayloads=function(e){return this.memQueue=zr(this.memQueue,e),this.usePersistence?this.lock.withLock(s.bind(function(){return this.ensureInit().then(s.bind(function(){return this.readFromStorage()},this)).then(s.bind(function(r){return r=zr(r,e),this.saveToStorage(r)},this)).catch(s.bind(function(r){return this.reportError("Error updating items",e,r),!1},this))},this),this.pid).catch(s.bind(function(t){return this.reportError("Error acquiring storage lock",t),!1},this)):$.resolve(!0)};he.prototype.readFromStorage=function(){return this.ensureInit().then(s.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(s.bind(function(e){return e&&(e=Ct(e),s.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(s.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))};he.prototype.saveToStorage=function(e){try{var t=Et(e)}catch(r){return this.reportError("Error serializing queue",r),$.resolve(!1)}return this.ensureInit().then(s.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(s.bind(function(r){return this.reportError("Error saving queue",r),!1},this))};he.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(s.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):$.resolve()};var go=10*60*1e3,Je=st("batch"),re=function(e,t){this.errorReporter=t.errorReporter,this.queue=new he(e,{errorReporter:s.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:t.usePersistence}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1};re.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)};re.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};re.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};re.prototype.clear=function(){return this.queue.clear()};re.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};re.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};re.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(s.bind(function(){this.stopped||this.flush()},this),this.flushInterval))};re.prototype.sendRequestPromise=function(e,t){return new $(s.bind(function(r){this.sendRequest(e,t,r)},this))};re.prototype.flush=function(e){if(this.requestInProgress)return Je.log("Flush: Request already in progress"),$.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),i=this.batchSize;return this.queue.fillBatch(i).then(s.bind(function(n){var o=n.length===i,a=[],u={};if(s.each(n,function(f){var p=f.payload;if(this.beforeSendHook&&!f.orphaned&&(p=this.beforeSendHook(p)),p){p.event&&p.properties&&(p.properties=s.extend({},p.properties,{mp_sent_by_lib_version:le.LIB_VERSION}));var h=!0,g=f.id;g?(this.itemIdsSentSuccessfully[g]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[g]}),h=!1):this.reportError("[dupe] found item with no ID",{item:f}),h&&a.push(p)}u[f.id]=p},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),$.resolve();var c=s.bind(function(){return this.queue.removeItemsByID(s.map(n,function(f){return f.id})).then(s.bind(function(f){return s.each(n,s.bind(function(p){var h=p.id;h?(this.itemIdsSentSuccessfully[h]=this.itemIdsSentSuccessfully[h]||0,this.itemIdsSentSuccessfully[h]++,this.itemIdsSentSuccessfully[h]>5&&this.reportError("[dupe] item ID sent too many times",{item:p,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[h]})):this.reportError("[dupe] found item with no ID while removing",{item:p})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),$.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),$.resolve())},this))},this),d=s.bind(function(f){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(u);if(s.isObject(f)&&f.error==="timeout"&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(s.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!ao()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(go,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),$.resolve()}else if(s.isObject(f)&&f.httpStatusCode===413)if(n.length>1){var h=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,h,n.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),$.resolve()}else return this.reportError("Single-event request too large; dropping",n),this.resetBatchSize(),c();else return c()}catch(g){this.reportError("Error handling API response",g),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),Je.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,l).then(d)},this)).catch(s.bind(function(n){this.reportError("Error flushing request queue",n),this.resetFlush()},this))};re.prototype.reportError=function(e,t){if(Je.error.apply(Je.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(r){Je.error(r)}};var Fe=st("recorder"),jr=I.CompressionStream,mo={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},yo=new Set([ce.MouseMove,ce.MouseInteraction,ce.Scroll,ce.ViewportResize,ce.Input,ce.TouchMove,ce.MediaInteraction,ce.Drag,ce.Selection]);function vo(e){return e.type===gi.IncrementalSnapshot&&yo.has(e.data.source)}var se=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout,this._onMaxLengthReached=e.onMaxLengthReached,this._rrwebRecord=e.rrwebRecord,this.replayId=e.replayId,this._stopRecording=null,this.seqNo=0,this.replayStartTime=null,this.replayStartUrl=null,this.batchStartUrl=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Qe,this.recordMinMs=0;var t="__mprec_"+this.getConfig("token")+"_"+this.replayId;this.batcher=new re(t,{errorReporter:s.bind(this.reportError,this),flushOnlyOnInterval:!0,libConfig:mo,send
37RequestFunc:s.bind(this.flushEventsWithOptOut,this),usePersistence:!1})};se.prototype.getConfig=function(e){return this._mixpanel.get_config(e)};se.prototype.get_config=function(e){return this.getConfig(e)};se.prototype.startRecording=function(e){if(this._stopRecording!==null){Fe.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Qe&&(this.recordMaxMs=Qe,Fe.critical("record_max_ms cannot be greater than "+Qe+"ms. Capping value.")),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>$t&&(this.recordMinMs=$t,Fe.critical("record_min_ms cannot be greater than "+$t+"ms. Capping value.")),this.replayStartTime=new Date().getTime(),this.batchStartUrl=s.info.currentUrl(),this.replayStartUrl=s.info.currentUrl(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=s.bind(function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(this._onIdleTimeout,this.getConfig("record_idle_timeout_ms"))},this),r=this.getConfig("record_block_selector");if((r===""||r===null)&&(r=void 0),this._stopRecording=this._rrwebRecord({emit:s.bind(function(i){this.batcher.enqueue(i),vo(i)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())},this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}}),typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}t(),this.maxTimeoutId=setTimeout(s.bind(this._onMaxLengthReached,this),this.recordMaxMs)};se.prototype.stopRecording=function(){if(!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)};se.prototype.isRrwebStopped=function(){return this._stopRecording===null};se.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,s.bind(this._onOptOut,this))};se.prototype._onOptOut=function(e){e===0&&this.stopRecording()};se.prototype._sendRequest=function(e,t,r,i){var n=s.bind(function(o,a){o.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=s.info.currentUrl()),i({status:0,httpStatusCode:o.status,responseBody:a,retryAfter:o.headers.get("Retry-After")})},this);I.fetch(this.getConfig("api_host")+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(o){o.json().then(function(a){n(o,a)}).catch(function(a){i({error:a})})}).catch(function(o){i({error:o,httpStatusCode:0})})};se.prototype._flushEvents=Ie(function(e,t,r){const i=e.length;if(i>0){var n=this.replayId,o=e[0].timestamp;(this.seqNo===0||!this.replayStartTime)&&(this.seqNo!==0&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var a=e[i-1].timestamp-this.replayStartTime,u={$current_url:this.batchStartUrl,$lib_version:le.LIB_VERSION,batch_start_time:o/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),mp_lib:"web",replay_id:n,replay_length_ms:a,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=s.JSONEncode(e),d=this._mixpanel.get_property("$device_id");d&&(u.$device_id=d);var l=this._mixpanel.get_property("$user_id");if(l&&(u.$user_id=l),jr){var f=new Blob([c],{type:"application/json"}).stream(),p=f.pipeThrough(new jr("gzip"));new Response(p).blob().then(s.bind(function(h){u.format="gzip",this._sendRequest(n,u,h,r)},this))}else u.format="body",this._sendRequest(n,u,c,r)}});se.prototype.reportError=function(e,t){Fe.error.apply(Fe.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(r){Fe.error(r)}};var Ht=st("recorder"),Ge=function(e){this._mixpanel=e,this.activeRecording=null};Ge.prototype.startRecording=function(e){if(this.activeRecording&&!this.activeRecording.isRrwebStopped()){Ht.log("Recording already in progress, skipping startRecording.");return}var t=s.bind(function(){Ht.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),r=s.bind(function(){Ht.log("Max recording length reached, stopping recording."),this.resetRecording()},this);this.activeRecording=new se({mixpanelInstance:this._mixpanel,onIdleTimeout:t,onMaxLengthReached:r,replayId:s.UUID(),rrwebRecord:nt}),this.activeRecording.startRecording(e)};Ge.prototype.stopRecording=function(){this.activeRecording&&(this.activeRecording.stopRecording(),this.activeRecording=null)};Ge.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)};Ge.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null};Object.defineProperty(Ge.prototype,"replayId",{get:function(){return this.getActiveReplayId()}});I.__mp_recorder=Ge;var _e=function(){};_e.prototype.create_properties=function(){};_e.prototype.event_handler=function(){};_e.prototype.after_track_handler=function(){};_e.prototype.init=function(e){return this.mp=e,this};_e.prototype.track=function(e,t,r,i){var n=this,o=s.dom_query(e);if(o.length===0){N.error("The DOM query ("+e+") returned 0 elements");return}return s.each(o,function(a){s.register_event(a,this.override_event,function(u){var c={},d=n.create_properties(r,this),l=n.mp.get_config("track_links_timeout");n.event_handler(u,this,c),window.setTimeout(n.track_callback(i,d,c,!0),l),n.mp.track(t,d,n.track_callback(i,d,c))})},this),!0};_e.prototype.track_callback=function(e,t,r,i){i=i||!1;var n=this;return function(){r.callback_fired||(r.callback_fired=!0,!(e&&e(i,t)===!1)&&n.after_track_handler(t,r,i))}};_e.prototype.create_properties=function(e,t){var r;return typeof e=="function"?r=e(t):r=s.extend({},e),r};var We=function(){this.override_event="click"};s.inherit(We,_e);We.prototype.create_properties=function(e,t){var r=We.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r};We.prototype.event_handler=function(e,t,r){r.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",r.href=t.href,r.new_tab||e.preventDefault()};We.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Dt=function(){this.override_event="submit"};s.inherit(Dt,_e);Dt.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()};Dt.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Se="$set",ze="$set_once",oe="$unset",Re="$add",de="$append",Ne="$union",fe="$remove",bo="$delete",Ci={set_action:function(e,t){var r={},i={};return s.isObject(e)?s.each(e,function(n,o){this._is_reserved_property(o)||(i[o]=n)},this):i[e]=t,r[Se]=i,r},unset_action:function(e){var t={},r=[];return s.isArray(e)||(e=[e]),s.each(e,function(i){this._is_reserved_property(i)||r.push(i)},this),t[oe]=r,t},set_once_action:function(e,t){var r={},i={};return s.isObject(e)?s.each(e,function(n,o){this._is_reserved_property(o)||(i[o]=n)},this):i[e]=t,r[ze]=i,r},union_action:function(e,t){var r={},i={};return s.isObject(e)?s.each(e,function(n,o){this._is_reserved_property(o)||(i[o]=s.isArray(n)?n:[n])},this):i[e]=s.isArray(t)?t:[t],r[Ne]=i,r},append_action:function(e,t){var r={},i={};return s.isObject(e)?s.each(e,function(n,o){this._is_reserved_property(o)||(i[o]=n)},this):i[e]=t,r[de]=i,r},remove_action:function(e,t){var r={},i={};return s.isObject(e)?s.each(e,function(n,o){this._is_reserved_property(o)||(i[o]=n)},this):i[e]=t,r[fe]=i,r},delete_action:function(){var e={};return e[bo]="",e}},U=function(){};s.extend(U.prototype,Ci);U.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r};U.prototype.set=He(function(e,t,r){var i=this.set_action(e,t);return s.isObject(e)&&(r=t),this._send_request(i,r)});U.prototype.set_once=He(function(e,t,r){var i=this.set_once_action(e,t);return s.isObject(e)&&(r=t),this._send_request(i,r)});U.prototype.unset=He(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});U.prototype.union=He(function(e,t,r){s.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)});U.prototype.delete=He(function(e){var t=this.delete_action();return this._send_request(t,e)});U.prototype.remove=He(function(e,t,r){var i=this.remove_action(e,t);return this._send_request(i,r)});U.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=s.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};U.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};U.prototype._get_config=function(e){return this._mixpanel.get_config(e)};U.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};U.prototype.remove=U.prototype.remove;U.prototype.set=U.prototype.set;U.prototype.set_once=U.prototype.set_once;U.prototype.union=U.prototype.union;U.prototype.unset=U.prototype.unset;U.prototype.toString=U.prototype.toString;var k=function(){};s.extend(k.prototype,Ci);k.prototype._init=function(e){this._mixpanel=e};k.prototype.set=ke(function(e,t,r){var i=this.set_action(e,t);return s.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),i[Se]=s.extend({},s.info.people_properties(),i[Se]),this._send_request(i,r)});k.prototype.set_once=ke(function(e,t,r){var i=this.set_once_action(e,t);return s.isObject(e)&&(r=t),this._send_request(i,r)});k.prototype.unset=ke(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});k.prototype.increment=ke(function(e,t,r){var i={},n={};return s.isObject(e)?(s.each(e,function(o,a){if(!this._is_reserved_property(a))if(isNaN(parseFloat(o))){N.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else n[a]=o},this),r=t):(s.isUndefined(t)&&(t=1),n[e]=t),i[Re]=n,this._send_request(i,r)});k.prototype.append=ke(function(e,t,r){s.isObject(e)&&(r=t);var i=this.append_action(e,t);return this._send_request(i,r)});k.prototype.remove=ke(function(e,t,r){s.isObject(e)&&(r=t);var i=this.remove_action(e,t);return this._send_request(i,r)});k.prototype.union=ke(function(e,t,r){s.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)});k.prototype.track_charge=ke(function(e,t,r){if(!s.isNumber(e)&&(e=parseFloat(e),isNaN(e))){N.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",s.extend({$amount:e},t),r)});k.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};k.prototype.delete_user=function(){if(!this._identify_called()){N.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};k.prototype.toString=function(){return this._mixpanel.toString()+".people"};k.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),i=this._mixpanel.get_property("$user_id"),n=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),i&&(e.$user_id=i),n&&(e.$had_persisted_distinct_id=n);var o=s.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),s.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),s.truncate(o,255))};k.prototype._get_config=function(e){return this._mixpanel.get_config(e)};k.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};
vendor: 6,456 bytes, line 37
37k.prototype._enqueue=function(e){Se in e?this._mixpanel.persistence._add_to_people_queue(Se,e):ze in e?this._mixpanel.persistence._add_to_people_queue(ze,e):oe in e?this._mixpanel.persistence._add_to_people_queue(oe,e):Re in e?this._mixpanel.persistence._add_to_people_queue(Re,e):de in e?this._mixpanel.persistence._add_to_people_queue(de,e):fe in e?this._mixpanel.persistence._add_to_people_queue(fe,e):Ne in e?this._mixpanel.persistence._add_to_people_queue(Ne,e):N.error("Invalid call to _enqueue():",e)};k.prototype._flush_one_queue=function(e,t,r,i){var n=this,o=s.extend({},this._mixpanel.persistence.load_queue(e)),a=o;!s.isUndefined(o)&&s.isObject(o)&&!s.isEmptyObject(o)&&(n._mixpanel.persistence._pop_from_people_queue(e,o),n._mixpanel.persistence.save(),i&&(a=i(o)),t.call(n,a,function(u,c){u===0&&n._mixpanel.persistence._add_to_people_queue(e,o),s.isUndefined(r)||r(u,c)}))};k.prototype._flush=function(e,t,r,i,n,o,a){var u=this;this._flush_one_queue(Se,this.set,e),this._flush_one_queue(ze,this.set_once,i),this._flush_one_queue(oe,this.unset,o,function(y){return s.keys(y)}),this._flush_one_queue(Re,this.increment,t),this._flush_one_queue(Ne,this.union,n);var c=this._mixpanel.persistence.load_queue(de);if(!s.isUndefined(c)&&s.isArray(c)&&c.length)for(var d,l=function(y,b){y===0&&u._mixpanel.persistence._add_to_people_queue(de,d),s.isUndefined(r)||r(y,b)},f=c.length-1;f>=0;f--)c=this._mixpanel.persistence.load_queue(de),d=c.pop(),u._mixpanel.persistence.save(),s.isEmptyObject(d)||u.append(d,l);var p=this._mixpanel.persistence.load_queue(fe);if(!s.isUndefined(p)&&s.isArray(p)&&p.length)for(var h,g=function(y,b){y===0&&u._mixpanel.persistence._add_to_people_queue(fe,h),s.isUndefined(a)||a(y,b)},_=p.length-1;_>=0;_--)p=this._mixpanel.persistence.load_queue(fe),h=p.pop(),u._mixpanel.persistence.save(),s.isEmptyObject(h)||u.remove(h,g)};k.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};k.prototype.set=k.prototype.set;k.prototype.set_once=k.prototype.set_once;k.prototype.unset=k.prototype.unset;k.prototype.increment=k.prototype.increment;k.prototype.append=k.prototype.append;k.prototype.remove=k.prototype.remove;k.prototype.union=k.prototype.union;k.prototype.track_charge=k.prototype.track_charge;k.prototype.clear_charges=k.prototype.clear_charges;k.prototype.delete_user=k.prototype.delete_user;k.prototype.toString=k.prototype.toString;var ar="__mps",cr="__mpso",ur="__mpus",lr="__mpa",dr="__mpap",pr="__mpr",fr="__mpu",xi="$people_distinct_id",xt="__alias",tt="__timers",So=[ar,cr,ur,lr,dr,pr,fr,xi,xt,tt],C=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(N.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&s.localStorage.is_supported()?this.storage=s.localStorage:this.storage=s.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};C.prototype.properties=function(){var e={};return this.load(),s.each(this.props,function(t,r){s.include(So,r)||(e[r]=t)}),e};C.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=s.extend({},e))}};C.prototype.upgrade=function(){var e,t;this.storage===s.localStorage?(e=s.cookie.parse(this.name),s.cookie.remove(this.name),s.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===s.cookie&&(t=s.localStorage.parse(this.name),s.localStorage.remove(this.name),t&&this.register_once(t))};C.prototype.save=function(){this.disabled||this.storage.set(this.name,s.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};C.prototype.load_prop=function(e){return this.load(),this.props[e]};C.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};C.prototype.clear=function(){this.remove(),this.props={}};C.prototype.register_once=function(e,t,r){return s.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof r>"u"?this.default_expiry:r,this.load(),s.each(e,function(i,n){(!this.props.hasOwnProperty(n)||this.props[n]===t)&&(this.props[n]=i)},this),this.save(),!0):!1};C.prototype.register=function(e,t){return s.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),s.extend(this.props,e),this.save(),!0):!1};C.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())};C.prototype.update_search_keyword=function(e){this.register(s.info.searchInfo(e))};C.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:s.info.referringDomain(e)||"$direct"},"")};C.prototype.get_referrer_info=function(){return s.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};C.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};C.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};C.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};C.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};C.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};C.prototype.get_cross_subdomain=function(){return this.cross_subdomain};C.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};C.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),i=t[e],n=this._get_or_create_queue(Se),o=this._get_or_create_queue(ze),a=this._get_or_create_queue(oe),u=this._get_or_create_queue(Re),c=this._get_or_create_queue(Ne),d=this._get_or_create_queue(fe,[]),l=this._get_or_create_queue(de,[]);r===ar?(s.extend(n,i),this._pop_from_people_queue(Re,i),this._pop_from_people_queue(Ne,i),this._pop_from_people_queue(oe,i)):r===cr?(s.each(i,function(f,p){p in o||(o[p
37]=f)}),this._pop_from_people_queue(oe,i)):r===ur?s.each(i,function(f){s.each([n,o,u,c],function(p){f in p&&delete p[f]}),s.each(l,function(p){f in p&&delete p[f]}),a[f]=!0}):r===lr?(s.each(i,function(f,p){p in n?n[p]+=f:(p in u||(u[p]=0),u[p]+=f)},this),this._pop_from_people_queue(oe,i)):r===fr?(s.each(i,function(f,p){s.isArray(f)&&(p in c||(c[p]=[]),c[p]=c[p].concat(f))}),this._pop_from_people_queue(oe,i)):r===pr?(d.push(i),this._pop_from_people_queue(de,i)):r===dr&&(l.push(i),this._pop_from_people_queue(oe,i)),N.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),N.log(t),this.save()};C.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];s.isUndefined(r)||s.each(t,function(i,n){e===de||e===fe?s.each(r,function(o){o[n]===i&&delete o[n]}):delete r[n]},this)};C.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))};C.prototype._get_queue_key=function(e){if(e===Se)return ar;if(e===ze)return cr;if(e===oe)return ur;if(e===Re)return lr;if(e===de)return dr;if(e===fe)return pr;if(e===Ne)return fr;N.error("Invalid queue:",e)};C.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=s.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)};C.prototype.set_event_timer=function(e,t){var r=this.load_prop(tt)||{};r[e]=t,this.props[tt]=r,this.save()};C.prototype.remove_event_timer=function(e){var t=this.load_prop(tt)||{},r=t[e];return s.isUndefined(r)||(delete this.props[tt][e],this.save()),r};var hr,Oi=function(e,t){throw new Error(e+" not available in this build.")},V,Ti=0,wo=1,Io=function(e){return e},rt=function(){},te="mixpanel",Ri="base64",ko="json",_r="$device:",Be=I.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Ni=!Be&&ue.indexOf("MSIE")===-1&&ue.indexOf("Mozilla")===-1,Ot=null;ve.sendBeacon&&(Ot=function(){return ve.sendBeacon.apply(ve,arguments)});var Di={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},Hr={api_host:"https://api-js.mixpanel.com",api_routes:Di,api_method:"POST",api_transport:"XHR",api_payload_format:Ri,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:rt,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:rt,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,record_idle_timeout_ms:30*60*1e3,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Qe,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Ai=!1,m=function(){},Jt=function(e,t,r){var i,n=r===te?V:V[r];if(n&&hr===Ti)i=n;else{if(n&&!s.isArray(n)){N.error("You have already initialized "+r);return}i=new m}if(i._cached_groups={},i._init(e,t,r),i.people=new k,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var o=s.info.campaignParams(null),a={},u=!1;s.each(o,function(c,d){a["initial_"+d]=c,c&&(u=!0)}),u&&i.people.set_once(a)}return le.DEBUG=le.DEBUG||i.get_config("debug"),!s.isUndefined(n)&&s.isArray(n)&&(i._execute_array.call(i.people,n.people),i._execute_array(n)),i};m.prototype.init=function(e,t,r){if(s.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===te){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var i=Jt(e,t,r);return V[r]=i,i._loaded(),i};m.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if(!("api_payload_format"in t)){var n=t.api_host||Hr.api_host;n.match(/\.mixpanel\.com/)&&(i.api_payload_format=ko)}if(this.set_config(s.extend({},Hr,i,t,{name:r,token:e,callback_fn:(r===te?r:te+"."+r)+"._jsc"})),this._jsc=rt,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!s.localStorage.is_supported(!0)||!Be)this._batch_requests=!1,N.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),s.each(this.get_batcher_configs(),function(c){N.log("Clearing batch queue "+c.queue_key),s.localStorage.remove(c.queue_key)});else if(this.init_batchers(),Ot&&I.addEventListener){var o=s.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);I.addEventListener("pagehide",function(c){c.persisted&&o()}),I.addEventListener("visibilitychange",function(){D.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new C(this.config),this.unpersisted_superprops={},this._gdpr_init();var a=s.UUID();this.get_distinct_id()||this.register_once({distinct_id:_r+a,$device_id:a},"");var u=this.get_config("track_pageview");u&&this._init_url_change_tracking(u),this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent")&&this.start_session_recording()};m.prototype.start_session_recording=Ie(function(){if(!I.MutationObserver){N.critical("Browser does not support MutationObserver; skipping session recording");return}var e=s.bind(function(){this._recorder=this._recorder||new I.__mp_recorder(this),this._recorder.startRecording()},this);s.isUndefined(I.__mp_recorder)?Oi(this.get_config("recorder_src"),e):e()});m.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():N.critical("Session recorder module not loaded")};m.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e};m.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();if(t){var r=s.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e};m.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null};m.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=s.info.campaignParams(null);s.each(e,(function(t,r){this.unregister(r)}).bind(this))}};m.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(D.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(s.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(D.referrer)};m.prototype._dom_loaded=function(){s.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||s.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};m.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Ai)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)};m.prototype._init_url_change_tracking=function(e){var t="",r=this.track_pageview();if(r&&(t=s.info.currentUrl()),s.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){I.addEventListener("popstate",function(){I.dispatchEvent(new Event("mp_locationchange"))}),I.addEventListener("hashchange",function(){I.dispatchEvent(new Event("mp_locationchange"))});var i=I.history.pushState;typeof i=="function"&&(I.history.pushState=function(o,a,u){i.call(I.history,o,a,u),I.dispatchEvent(new Event("mp_locationchange"))});var n=I.history.replaceState;typeof n=="function"&&(I.history.replaceState=function(o,a,u){n.call(I.history,o,a,u),I.dispatchEvent(new Event("mp_locationchange"))}),I.addEventListener("mp_locationchange",(function(){var o=s.info.currentUrl(),a=!1;if(e==="full-url"?a=o!==t:e==="url-with-path-and-query-string"?a=o.split("#")[0]!==t.split("#")[0]:e==="url-with-path"&&(a=o.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),a){var u=this.track_pageview();u&&(t=o)}}).bind(this))}};m.prototype._prepare_callback=function(e,t){if(s.isUndefined(e))return null;if(Be){var r=function(a){e(a,t)};return r}else{var i=this._jsc,n=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+n+"]";return i[n]=function(a){delete i[n],e(a,t)},o}};m.prototype._send_request=function(e,t,r,i){var n=!0;if(Ni)return this.__request_queue.push(arguments),n;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
vendor: 16,592 bytes, line 37
37:this.get_config("verbose")},a=null;!i&&(s.isFunction(r)||typeof r=="string")&&(i=r,r=null),r=s.extend(o,r||{}),Be||(r.method="GET");var u=r.method==="POST",c=Ot&&u&&r.transport.toLowerCase()==="sendbeacon",d=r.verbose;t.verbose&&(d=!0),this.get_config("test")&&(t.test=1),d&&(t.verbose=1),this.get_config("img")&&(t.img=1),Be||(i?t.callback=i:(d||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),u&&(a="data="+encodeURIComponent(t.data),delete t.data),e+="?"+s.HTTPBuildQuery(t);var l=this;if("img"in t){var f=D.createElement("img");f.src=e,D.body.appendChild(f)}else if(c){try{n=Ot(e,a)}catch(b){l.report_error(b),n=!1}try{i&&i(n?1:0)}catch(b){l.report_error(b)}}else if(Be)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(u&&(h["Content-Type"]="application/x-www-form-urlencoded"),s.each(h,function(b,S){p.setRequestHeader(S,b)}),r.timeout_ms&&typeof p.timeout<"u"){p.timeout=r.timeout_ms;var g=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){if(i)if(d){var b;try{b=s.JSONDecode(p.responseText)}catch(w){if(l.report_error(w),r.ignore_json_errors)b=p.responseText;else return}i(b)}else i(Number(p.responseText))}else{var S;if(p.timeout&&!p.status&&new Date().getTime()-g>=p.timeout?S="timeout":S="Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(S),i)if(d){var v=p.responseHeaders||{};i({status:0,httpStatusCode:p.status,error:S,retryAfter:v["Retry-After"]})}else i(0)}},p.send(a)}catch(b){l.report_error(b),n=!1}else{var _=D.createElement("script");_.type="text/javascript",_.async=!0,_.defer=!0,_.src=e;var y=D.getElementsByTagName("script")[0];y.parentNode.insertBefore(_,y)}return n};m.prototype._execute_array=function(e){var t,r=[],i=[],n=[];s.each(e,function(a){a&&(t=a[0],s.isArray(t)?n.push(a):typeof a=="function"?a.call(this):s.isArray(a)&&t==="alias"?r.push(a):s.isArray(a)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?n.push(a):i.push(a))},this);var o=function(a,u){s.each(a,function(c){if(s.isArray(c[0])){var d=u;s.each(c,function(l){d=d[l[0]].apply(d,l.slice(1))})}else this[c[0]].apply(this,c.slice(1))},u)};o(r,this),o(i,this),o(n,this)};m.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};m.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs};m.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=s.bind(function(r){return new re(r.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:s.bind(function(i,n,o){this._send_request(this.get_config("api_host")+r.endpoint,this._encode_data_for_request(i),n,this._prepare_callback(o,i))},this),beforeSendHook:s.bind(function(i){return this._run_hook("before_send_"+r.type,i)},this),stopAllBatchingFunc:s.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};m.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,s.each(this.request_batchers,function(e){e.start()}))};m.prototype.stop_batch_senders=function(){this._batch_requests=!1,s.each(this.request_batchers,function(e){e.stop(),e.clear()})};m.prototype.push=function(e){this._execute_array([e])};m.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};m.prototype._encode_data_for_request=function(e){var t=s.JSONEncode(e);return this.get_config("api_payload_format")===Ri&&(t=s.base64Encode(t)),{data:t}};m.prototype._track_or_batch=function(e,t){var r=s.truncate(e.data,255),i=e.endpoint,n=e.batcher,o=e.should_send_immediately,a=e.send_request_options||{};t=t||rt;var u=!0,c=s.bind(function(){return a.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(N.log("MIXPANEL REQUEST:"),N.log(r),this._send_request(i,this._encode_data_for_request(r),a,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?n.enqueue(r).then(function(d){d?t(1,r):c()}):u=c(),u&&r};m.prototype.track=Ie(function(e,t,r,i){!i&&typeof r=="function"&&(i=r,r=null),r=r||{};var n=r.transport;n&&(r.transport=n);var o=r.send_immediately;if(typeof i!="function"&&(i=rt),s.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){i(0);return}t=s.extend({},t),t.token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!s.isUndefined(a)){var u=new Date().getTime()-a;t.$duration=parseFloat((u/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?s.info.marketingParams():{};t=s.extend({},s.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var d=this.get_config("property_blacklist");s.isArray(d)?s.each(d,function(p){delete t[p]}):this.report_error("Invalid value for property_blacklist config: "+d);var l={event:e,properties:t},f=this._track_or_batch({type:"events",data:l,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},i);return f});m.prototype.set_group=Ie(function(e,t,r){s.isArray(t)||(t=[t]);var i={};return i[e]=t,this.register(i),this.people.set(e,t,r)});m.prototype.add_group=Ie(function(e,t,r){var i=this.get_property(e),n={};return i===void 0?(n[e]=[t],this.register(n)):i.indexOf(t)===-1&&(i.push(t),n[e]=i,this.register(n)),this.people.union(e,t,r)});m.prototype.remove_group=Ie(function(e,t,r){var i=this.get_property(e);if(i!==void 0){var n=i.indexOf(t);n>-1&&(i.splice(n,1),this.register({group_key:i})),i.length===0&&this.unregister(e)}return this.people.remove(e,t,r)});m.prototype.track_with_groups=Ie(function(e,t,r,i){var n=s.extend({},t||{});return s.each(r,function(o,a){o!=null&&(n[a]=o)}),this.track(e,n,i)});m.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};m.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};m.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),i=this._cached_groups[r];return(i===void 0||i._group_key!==e||i._group_id!==t)&&(i=new U,i._init(this,e,t),this._cached_groups[r]=i),i};m.prototype.track_pageview=Ie(function(e,t){typeof e!="object"&&(e={}),t=t||{};var r=t.event_name||"$mp_web_page_view",i=s.extend(s.info.mpPageViewProperties(),s.info.campaignParams(),s.info.clickParams()),n=s.extend({},i,e);return this.track(r,n)});m.prototype.track_links=function(){return this._track_dom.call(this,We,arguments)};m.prototype.track_forms=function(){return this._track_dom.call(this,Dt,arguments)};m.prototype.time_event=function(e){if(s.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var Mo={persistent:!0},gr=function(e){var t;return s.isObject(e)?t=e:s.isUndefined(e)?t={}:t={days:e},s.extend({},Mo,t)};m.prototype.register=function(e,t){var r=gr(t);r.persistent?this.persistence.register(e,r.days):s.extend(this.unpersisted_superprops,e)};m.prototype.register_once=function(e,t,r){var i=gr(r);i.persistent?this.persistence.register_once(e,t,i.days):(typeof t>"u"&&(t="None"),s.each(e,function(n,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===t)&&(this.unpersisted_superprops[o]=n)},this))};m.prototype.unregister=function(e,t){t=gr(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};m.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)};m.prototype.identify=function(e,t,r,i,n,o,a,u){var c=this.get_distinct_id();if(e&&c!==e){if(typeof e=="string"&&e.indexOf(_r)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var d=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:d},"")}e!==c&&e!==this.get_property(xt)&&(this.unregister(xt),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,i,n,o,a,u),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})};m.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=s.UUID();this.register_once({distinct_id:_r+e,$device_id:e},"")};m.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};m.prototype.alias=function(e,t){if(e===this.get_property(xi))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return s.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(xt,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};m.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};m.prototype.set_config=function(e){if(s.isObject(e)){s.extend(this.config,e);var t=e.batch_size;t&&s.each(this.request_batchers,function(r){r.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),le.DEBUG=le.DEBUG||this.get_config("debug")}};m.prototype.get_config=function(e){return this.config[e]};m.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Io).apply(this,ye.call(arguments,1));return typeof t>"u"&&(this.report_error(e+" hook did not return a value"),t=null),t};m.prototype.get_property=function(e){return this.persistence.load_prop([e])};m.prototype.toString=function(){var e=this.get_config("name");return e!==te&&(e=te+"."+e),e};m.prototype._event_is_disabled=function(e){return s.isBlockedUA(ue)||this._flags.disable_all_events||s.include(this.__disabled_events,e)};m.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&s.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||s.cookie.get("mp_optout"))&&(s.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};m.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()};m.prototype._gdpr_call_func=function(e,t){return t=s.extend({track:s.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),s.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};m.prototype.opt_in_tracking=function(e){e=s.extend({enable_persistence:!0},e),this._gdpr_call_func(uo,e),this._gdpr_update_persistence(e)};m.prototype.opt_out_tracking=function(e){e=s.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(lo,e),this._gdpr_update_persistence(e)};m.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(po,e)};m.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Ii,e)};m.prototype.clear_opt_in_out_tracking=function(e){e=s.extend({enable_persistence:!0},e),this._gdpr_call_func(fo,e),this._gdpr_update_persistence(e)};m.prototype.report_error=function(e,t){N.error.apply(N.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(r){N.error(r)}};m.prototype.init=m.prototype.init;m.prototype.reset=m.prototype.reset;m.prototype.disable=m.prototype.disable;m.prototype.time_event=m.prototype.time_event;m.prototype.track=m.prototype.track;m.prototype.track_links=m.prototype.track_links;m.prototype.track_forms=m.prototype.track_forms;m.prototype.track_pageview=m.prototype.track_pageview;m.prototype.register=m.prototype.register;m.prototype.register_once=m.prototype.register_once;m.prototype.unregister=m.prototype.unregister;m.prototype.identify=m.prototype.identify;m.prototype.alias=m.prototype.alias;m.prototype.name_tag=m.prototype.name_tag;m.prototype.set_config=m.prototype.set_config;m.prototype.get_config=m.prototype.get_config;m.prototype.get_property=m.prototype.get_property;m.prototype.get_distinct_id=m.prototype.get_distinct_id;m.prototype.toString=m.prototype.toString;m.prototype.opt_out_tracking=m.prototype.opt_out_tracking;m.prototype.opt_in_tracking=m.prototype.opt_in_tracking;m.prototype.has_opted_out_tracking=m.prototype.has_opted_out_tracking;m.prototype.has_opted_in_tracking=m.prototype.has_opted_in_tracking;m.prototype.clear_opt_in_out_tracking=m.prototype.clear_opt_in_out_tracking;m.prototype.get_group=m.prototype.get_group;m.prototype.set_group=m.prototype.set_group;m.prototype.add_group=m.prototype.add_group;m.prototype.remove_group=m.prototype.remove_group;m.prototype.track_with_groups=m.prototype.track_with_groups;m.prototype.start_batch_senders=m.prototype.start_batch_senders;m.prototype.stop_batch_senders=m.prototype.stop_batch_senders;m.prototype.start_session_recording=m.prototype.start_session_recording;m.prototype.stop_session_recording=m.prototype.stop_session_recording;m.prototype.get_session_recording_properties=m.prototype.get_session_recording_properties;m.prototype.get_session_replay_url=m.prototype.get_session_replay_url;m.prototype.DEFAULT_API_ROUTES=Di;C.prototype.properties=C.prototype.properties;C.prototype.update_search_keyword=C.prototype.update_search_keyword;C.prototype.update_referrer_info=C.prototype.update_referrer_info;C.prototype.get_cross_subdomain=C.prototype.get_cross_subdomain;C.prototype.clear=C.prototype.clear;var Ue={},Eo=function(){s.each(Ue,function(e,t){t!==te&&(V[t]=e)}),V._=s},Co=function(){V.init=function(e,t,r){if(r)return V[r]||(V[r]=Ue[r]=Jt(e,t,r),V[r]._loaded()),V[r];var i=V;Ue[te]?i=Ue[te]:e&&(i=Jt(e,t,te),i._loaded(),Ue[te]=i),V=i,hr===wo&&(I[te]=V),Eo()}},xo=function(){function e(){e.done||(e.done=!0,Ai=!0,Ni=!1,s.each(Ue,function(i){i._dom_loaded()}))}function t(){try{D.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(D.addEventListener)D.readyState==="complete"?e():D.addEventListener("DOMContentLoaded",e,!1);else if(D.attachEvent){D.attachEvent("onreadystatechange",e);var r=!1;try{r=I.frameElement===null}catch{}D.documentElement.doScroll&&r&&t()}s.register_event(I,"load",e,!0)};function Oo(e){return Oi=e,hr=Ti,V=new m,Co(),V.init(),xo(),V}function To(e,t){t()}var Ro=Oo(To);export{Ro as m};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.