mixpanel-browser 2.67.0 → 2.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(){"use strict";var E;if(typeof window=="undefined"){var fs={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:fs,referrer:""},screen:{width:0,height:0},location:fs,addEventListener:function(){},removeEventListener:function(){}}}else E=window;function hs(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i<n;i++)t[i]=e[i];return t}function ps(e,n,i,t,r,o,s){try{var a=e[o](s),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(t,r)}function ri(e){return function(){var n=this,i=arguments;return new Promise(function(t,r){var o=e.apply(n,i);function s(u){ps(o,t,r,s,a,"next",u)}function a(u){ps(o,t,r,s,a,"throw",u)}s(void 0)})}}function Ur(e,n,i){return ds()?Ur=Reflect.construct:Ur=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&ir(c,s.prototype),c},Ur.apply(null,arguments)}function yl(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function de(e,n,i){return n&&yl(e.prototype,n),e}function q(){return q=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},q.apply(this,arguments)}function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},ni(e)}function ye(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&ir(e,n)}function $(e,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function _l(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function nr(e,n){if(e==null)return{};var i={},t=Object.keys(e),r,o;for(o=0;o<t.length;o++)r=t[o],!(n.indexOf(r)>=0)&&(i[r]=e[r]);return i}function ir(e,n){return ir=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},ir(e,n)}function F(e){"@swc/helpers - typeof";return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function bl(e,n){if(e){if(typeof e=="string")return hs(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return hs(e,n)}}function Br(e){var n=typeof Map=="function"?new Map:void 0;return Br=function(t){if(t===null||!_l(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return Ur(t,arguments,ni(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ir(r,t)},Br(e)}function ds(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(ds=function(){return!!e})()}function x(e,n){var i=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=bl(e))||n){i&&(e=i);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function or(e,n){var i,t,r,o,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,t&&(r=c[0]&2?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,t=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(c[0]===6&&s.label<r[1]){s.label=r[1],r=c;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(c);break}r[2]&&s.ops.pop(),s.trys.pop();continue}c=n.call(e,s)}catch(l){c=[6,l],t=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function vs(e){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&e[n],t=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var wl=Object.defineProperty,Sl=function(e,n,i){return n in e?wl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},I=function(e,n,i){return Sl(e,(typeof n=="undefined"?"undefined":F(n))!=="symbol"?n+"":n,i)},gs,Cl=Object.defineProperty,Il=function(e,n,i){return n in e?Cl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},ms=function(e,n,i){return Il(e,(typeof n=="undefined"?"undefined":F(n))!=="symbol"?n+"":n,i)},pe=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(pe||{}),ys={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_s={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},zr={},El=function(){return!!globalThis.Zone};function ii(e){if(zr[e])return zr[e];var n=globalThis[e],i=n.prototype,t=e in ys?ys[e]:void 0,r=!!(t&&t.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),o=e in _s?_s[e]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!El())return zr[e]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?zr[e]=c:i}catch(l){return i}}var oi={};function Qe(e,n,i){var t,r=e+"."+String(i);if(oi[r])return oi[r].call(n);var o=ii(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(oi[r]=s,s.call(n)):n[i]}var si={};function bs(e,n,i){var t=e+"."+String(i);if(si[t])return si[t].bind(n);var r=ii(e),o=r[i];return typeof o!="function"?n[i]:(si[t]=o,o.bind(n))}function xl(e){return Qe("Node",e,"childNodes")}function Ol(e){return Qe("Node",e,"parentNode")}function kl(e){return Qe("Node",e,"parentElement")}function Rl(e){return Qe("Node",e,"textContent")}function Al(e,n){return bs("Node",e,"contains")(n)}function Ml(e){return bs("Node",e,"getRootNode")()}function Tl(e){return!e||!("host"in e)?null:Qe("ShadowRoot",e,"host")}function Pl(e){return e.styleSheets}function Nl(e){return!e||!("shadowRoot"in e)?null:Qe("Element",e,"shadowRoot")}function $l(e,n){return Qe("Element",e,"querySelector")(n)}function Dl(e,n){return Qe("Element",e,"querySelectorAll")(n)}function Ll(){return ii("MutationObserver").constructor}var _e={childNodes:xl,parentNode:Ol,parentElement:kl,textContent:Rl,contains:Al,getRootNode:Ml,host:Tl,styleSheets:Pl,shadowRoot:Nl,querySelector:$l,querySelectorAll:Dl,mutationObserver:Ll};function ws(e){return e.nodeType===e.ELEMENT_NODE}function sr(e){var n=e&&"host"in e&&"mode"in e&&_e.host(e)||null;return!!(n&&"shadowRoot"in n&&_e.shadowRoot(n)===e)}function ar(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Fl(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Ul(e){var n=e.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?i.push("layer"):e.layerName&&i.push("layer("+e.layerName+")"),e.supportsText&&i.push("supports("+e.supportsText+")"),e.media.length&&i.push(e.media.mediaText),i.join(" ")+";"}function ai(e){try{var n=e.rules||e.cssRules;if(!n)return null;var i=e.href;!i&&e.ownerNode&&e.ownerNode.ownerDocument&&(i=e.ownerNode.ownerDocument.location.href);var t=Array.from(n,function(r){return Ss(r,i)}).join("");return Fl(t)}catch(r){return null}}function Ss(e,n){if(zl(e)){var i;try{i=ai(e.styleSheet)||Ul(e)}catch(r){i=e.cssText}return e.styleSheet.href?Wr(i,e.styleSheet.href):i}else{var t=e.cssText;return Wl(e)&&e.selectorText.includes(":")&&(t=Bl(t)),n?Wr(t,n):t}}function Bl(e){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(n,"$1\\$2")}function zl(e){return"styleSheet"in e}function Wl(e){return"selectorText"in e}var Cs=function(){function e(){ms(this,"idNodeMap",new Map),ms(this,"nodeMetaMap",new WeakMap)}var n=e.prototype;return n.getId=function(t){var r;if(!t)return-1;var o=(r=this.getMeta(t))==null?void 0:r.id;return o!=null?o:-1},n.getNode=function(t){return this.idNodeMap.get(t)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(t){return this.nodeMetaMap.get(t)||null},n.removeNodeFromMap=function(t){var r=this,o=this.getId(t);this.idNodeMap.delete(o),t.childNodes&&t.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},n.has=function(t){return this.idNodeMap.has(t)},n.hasNode=function(t){return this.nodeMetaMap.has(t)},n.add=function(t,r){var o=r.id;this.idNodeMap.set(o,t),this.nodeMetaMap.set(t,r)},n.replace=function(t,r){var o=this.getNode(t);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function ql(){return new Cs}function ui(e){var n=e.element,i=e.maskInputOptions,t=e.tagName,r=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=r&&vt(r);return(i[t.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function vt(e){return e.toLowerCase()}var Is="__rrweb_original__";function Gl(e){var n=e.getContext("2d");if(!n)return!0;for(var i=50,t=0;t<e.width;t+=i)for(var r=0;r<e.height;r+=i){var o=n.getImageData,s=Is in o?o[Is]:o,a=new Uint32Array(s.call(n,t,r,Math.min(i,e.width-t),Math.min(i,e.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function ci(e){var n=e.type;return e.hasAttribute("data-rr-is-password")?"password":n?vt(n):null}function Es(e,n){var i;try{i=new URL(e,n!=null?n:window.location.href)}catch(s){return null}var t=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(t),o;return(o=r==null?void 0:r[1])!=null?o:null}function Vl(e){var n="";return e.indexOf("//")>-1?n=e.split("/").slice(0,3).join("/"):n=e.split("/")[0],n=n.split("?")[0],n}var jl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Yl=/^(?:[a-z+]+:)?\/\//i,Hl=/^www\..*/i,Kl=/^(data:)([^,]*),(.*)/i;function Wr(e,n){return(e||"").replace(jl,function(i,t,r,o,s,a){var u=r||s||a,c=t||o||"";if(!u)return i;if(Yl.test(u)||Hl.test(u)||Kl.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(Vl(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var p=x(f),g;!(g=p()).done;){var v=g.value;v!=="."&&(v===".."?l.pop():l.push(v))}return"url("+c+l.join("/")+c+")"})}function li(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function Jl(e,n){var i=Array.from(n.childNodes),t=[];if(i.length>1&&e&&typeof e=="string"){for(var r=li(e),o=1;o<i.length;o++)if(i[o].textContent&&typeof i[o].textContent=="string")for(var s=li(i[o].textContent),a=3;a<s.length;a++){var u=s.substring(0,a);if(r.split(u).length===2){for(var c=r.indexOf(u),l=c;l<e.length;l++)if(li(e.substring(0,l)).length===c){t.push(e.substring(0,l)),e=e.substring(l);break}break}}}return t.push(e),t}function Xl(e,n){return Jl(e,n).join("/* rr_split */")}var Zl=1,Ql=new RegExp("[^a-z0-9-_:]"),ur=-2;function xs(){return Zl++}function ef(e){if($(e,HTMLFormElement))return"form";var n=vt(e.tagName);return Ql.test(n)?"div":n}var Mt,Os,tf=/^[^ \t\n\r\u000c]+/,rf=/^[, \t\n\r\u000c]+/;function nf(e,n){if(n.trim()==="")return n;var i=0;function t(c){var l,f=c.exec(n.substring(i));return f?(l=f[0],i+=l.length,l):""}for(var r=[];t(rf),!(i>=n.length);){var o=t(tf);if(o.slice(-1)===",")o=Tt(e,o.substring(0,o.length-1)),r.push(o);else{var s="";o=Tt(e,o);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,i+=1}}}return r.join(", ")}var ks=new WeakMap;function Tt(e,n){return!n||n.trim()===""?n:fi(e,n)}function of(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function fi(e,n){var i=ks.get(e);if(i||(i=e.createElement("a"),ks.set(e,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function Rs(e,n,i,t){return t&&(i==="src"||i==="href"&&!(n==="use"&&t[0]==="#")||i==="xlink:href"&&t[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?Tt(e,t):i==="srcset"?nf(e,t):i==="style"?Wr(t,fi(e)):n==="object"&&i==="data"?Tt(e,t):t)}function As(e,n,i){return(e==="video"||e==="audio")&&n==="autoplay"}function sf(e,n,i){try{if(typeof n=="string"){if(e.classList.contains(n))return!0}else for(var t=e.classList.length;t--;){var r=e.classList[t];if(n.test(r))return!0}if(i)return e.matches(i)}catch(o){}return!1}function qr(e,n,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return i?qr(_e.parentNode(e),n,i):!1;for(var t=e.classList.length;t--;){var r=e.classList[t];if(n.test(r))return!0}return i?qr(_e.parentNode(e),n,i):!1}function Ms(e,n,i,t){var r;if(ws(e)){if(r=e,!_e.childNodes(r).length)return!1}else{if(_e.parentElement(e)===null)return!1;r=_e.parentElement(e)}try{if(typeof n=="string"){if(t){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(qr(r,n,t))return!0;if(i){if(t){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(o){}return!1}function af(e,n,i){var t=e.contentWindow;if(t){var r=!1,o;try{o=t.document.readyState}catch(u){return}if(o!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},i);e.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var a="about:blank";if(t.location.href!==a||e.src===a||e.src==="")return setTimeout(n,0),e.addEventListener("load",n);e.addEventListener("load",n)}}function uf(e,n,i){var t=!1,r;try{r=e.sheet}catch(s){return}if(!r){var o=setTimeout(function(){t||(n(),t=!0)},i);e.addEventListener("load",function(){clearTimeout(o),t=!0,n()})}}function cf(e,n){var i=n.doc,t=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,p=n.dataURLOptions,g=p===void 0?{}:p,v=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,w=n.cssCaptured,S=w===void 0?!1:w,C=lf(i,t);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pe.Document,childNodes:[],compatMode:e.compatMode}:{type:pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return hf(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:v,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:_,rootId:C});case e.TEXT_NODE:return ff(e,{doc:i,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:S});case e.CDATA_SECTION_NODE:return{type:pe.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:pe.Comment,textContent:_e.textContent(e)||"",rootId:C};default:return!1}}function lf(e,n){if(n.hasNode(e)){var i=n.getId(e);return i===1?void 0:i}}function ff(e,n){var i=n.needsMask,t=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=_e.parentNode(e),a=s&&s.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":o||(u=_e.textContent(e),c&&u&&(u=Wr(u,fi(n.doc)))),!c&&!l&&u&&i&&(u=t?t(u,_e.parentElement(e)):u.replace(/[\S]/g,"*")),{type:pe.Text,textContent:u||"",rootId:r}}function hf(e,n){for(var i=n.doc,t=n.blockClass,r=n.blockSelector,o=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,p=n.recordCanvas,g=n.keepIframeSrcFn,v=n.newlyAddedElement,y=v===void 0?!1:v,d=n.rootId,m=sf(e,t,r),_=ef(e),w={},S=e.attributes.length,C=0;C<S;C++){var O=e.attributes[C];As(_,O.name,O.value)||(w[O.name]=Rs(i,_,vt(O.name),O.value))}if(_==="link"&&o){var R=Array.from(i.styleSheets).find(function(Me){return Me.href===e.href}),k=null;R&&(k=ai(R)),k&&(delete w.rel,delete w.href,w._cssText=k)}if(_==="style"&&e.sheet){var P=ai(e.sheet);P&&(e.childNodes.length>1&&(P=Xl(P,e)),w._cssText=P)}if(_==="input"||_==="textarea"||_==="select"){var V=e.value,M=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&V?w.value=ui({element:e,type:ci(e),tagName:_,value:V,maskInputOptions:a,maskInputFn:u}):M&&(w.checked=M)}if(_==="option"&&(e.selected&&!a.select?w.selected=!0:delete w.selected),_==="dialog"&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&p){if(e.__context==="2d")Gl(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var L=e.toDataURL(l.type,l.quality),K=i.createElement("canvas");K.width=e.width,K.height=e.height;var xe=K.toDataURL(l.type,l.quality);L!==xe&&(w.rr_dataURL=L)}}if(_==="img"&&f){Mt||(Mt=i.createElement("canvas"),Os=Mt.getContext("2d"));var J=e,Re=J.currentSrc||J.getAttribute("src")||"<unknown-src>",Se=J.crossOrigin,se=function(){J.removeEventListener("load",se);try{Mt.width=J.naturalWidth,Mt.height=J.naturalHeight,Os.drawImage(J,0,0),w.rr_dataURL=Mt.toDataURL(l.type,l.quality)}catch(Me){if(J.crossOrigin!=="anonymous"){J.crossOrigin="anonymous",J.complete&&J.naturalWidth!==0?se():J.addEventListener("load",se);return}else console.warn("Cannot inline img src="+Re+"! Error: "+Me)}J.crossOrigin==="anonymous"&&(Se?w.crossOrigin=Se:J.removeAttribute("crossorigin"))};J.complete&&J.naturalWidth!==0?se():J.addEventListener("load",se)}if(_==="audio"||_==="video"){var me=w;me.rr_mediaState=e.paused?"paused":"played",me.rr_mediaCurrentTime=e.currentTime,me.rr_mediaPlaybackRate=e.playbackRate,me.rr_mediaMuted=e.muted,me.rr_mediaLoop=e.loop,me.rr_mediaVolume=e.volume}if(y||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),m){var Ae=e.getBoundingClientRect(),St=Ae.width,Ge=Ae.height;w={class:w.class,rr_width:""+St+"px",rr_height:""+Ge+"px"}}_==="iframe"&&!g(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);var Qt;try{customElements.get(_)&&(Qt=!0)}catch(Me){}return{type:pe.Element,tagName:_,attributes:w,childNodes:[],isSVG:of(e)||void 0,needBlock:m,rootId:d,isCustom:Qt}}function ee(e){return e==null?"":e.toLowerCase()}function pf(e,n){if(n.comment&&e.type===pe.Comment)return!0;if(e.type===pe.Element){if(n.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"&&Es(e.attributes.href)==="js"))return!0;if(n.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ee(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(e.attributes.name)==="application-name"||ee(e.attributes.rel)==="icon"||ee(e.attributes.rel)==="apple-touch-icon"||ee(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(n.headMetaDescKeywords&&ee(e.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(e.attributes.property).match(/^(og|twitter|fb):/)||ee(e.attributes.name).match(/^(og|twitter):/)||ee(e.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(ee(e.attributes.name)==="robots"||ee(e.attributes.name)==="googlebot"||ee(e.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(ee(e.attributes.name)==="author"||ee(e.attributes.name)==="generator"||ee(e.attributes.name)==="framework"||ee(e.attributes.name)==="publisher"||ee(e.attributes.name)==="progid"||ee(e.attributes.property).match(/^article:/)||ee(e.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(ee(e.attributes.name)==="google-site-verification"||ee(e.attributes.name)==="yandex-verification"||ee(e.attributes.name)==="csrf-token"||ee(e.attributes.name)==="p:domain_verify"||ee(e.attributes.name)==="verify-v1"||ee(e.attributes.name)==="verification"||ee(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Pt(e,n){var i=n.doc,t=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,p=n.maskInputOptions,g=p===void 0?{}:p,v=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,w=n.inlineImages,S=w===void 0?!1:w,C=n.recordCanvas,O=C===void 0?!1:C,R=n.onSerialize,k=n.onIframeLoad,P=n.iframeLoadTimeout,V=P===void 0?5e3:P,M=n.onStylesheetLoad,L=n.stylesheetLoadTimeout,K=L===void 0?5e3:L,xe=n.keepIframeSrcFn,J=xe===void 0?function(){return!1}:xe,Re=n.newlyAddedElement,Se=Re===void 0?!1:Re,se=n.cssCaptured,me=se===void 0?!1:se,Ae=n.needsMask,St=n.preserveWhiteSpace,Ge=St===void 0?!0:St;if(!Ae){var Qt=Ae===void 0;Ae=Ms(e,s,a,Qt)}var Me=cf(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Ae,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,dataURLOptions:_,inlineImages:S,recordCanvas:O,keepIframeSrcFn:J,newlyAddedElement:Se,cssCaptured:me});if(!Me)return console.warn(e,"not serialized"),null;var Ct;t.hasNode(e)?Ct=t.getId(e):pf(Me,d)||!Ge&&Me.type===pe.Text&&!Me.textContent.replace(/^\s+|\s+$/gm,"").length?Ct=ur:Ct=xs();var H=Object.assign(Me,{id:Ct});if(t.add(e,H),Ct===ur)return null;R&&R(e);var It=!c;if(H.type===pe.Element){It=It&&!H.needBlock,delete H.needBlock;var Et=_e.shadowRoot(e);Et&&ar(Et)&&(H.isShadowHost=!0)}if((H.type===pe.Document||H.type===pe.Element)&&It){d.headWhitespace&&H.type===pe.Element&&H.tagName==="head"&&(Ge=!1);var er={doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Ae,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ge,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:V,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J,cssCaptured:!1};if(!(H.type===pe.Element&&H.tagName==="textarea"&&H.attributes.value!==void 0)){H.type===pe.Element&&H.attributes._cssText!==void 0&&typeof H.attributes._cssText=="string"&&(er.cssCaptured=!0);for(var $r=x(Array.from(_e.childNodes(e))),Dr;!(Dr=$r()).done;){var us=Dr.value,ei=Pt(us,er);ei&&H.childNodes.push(ei)}}var dt=null;if(ws(e)&&(dt=_e.shadowRoot(e)))for(var xt=x(Array.from(_e.childNodes(dt))),tr;!(tr=xt()).done;){var Lr=tr.value,rr=Pt(Lr,er);rr&&(ar(dt)&&(rr.isShadow=!0),H.childNodes.push(rr))}}var Ot=_e.parentNode(e);return Ot&&sr(Ot)&&ar(Ot)&&(H.isShadow=!0),H.type===pe.Element&&H.tagName==="iframe"&&af(e,function(){var Ze=e.contentDocument;if(Ze&&k){var kt=Pt(Ze,{doc:Ze,mirror:t,blockClass:r,blockSelector:o,needsMask:Ae,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ge,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:V,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J});kt&&k(e,kt)}},V),H.type===pe.Element&&H.tagName==="link"&&typeof H.attributes.rel=="string"&&(H.attributes.rel==="stylesheet"||H.attributes.rel==="preload"&&typeof H.attributes.href=="string"&&Es(H.attributes.href)==="css")&&uf(e,function(){if(M){var Ze=Pt(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Ae,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ge,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:V,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J});Ze&&M(e,Ze)}},K),H}function df(e,n){var i=n||{},t=i.mirror,r=t===void 0?new Cs:t,o=i.blockClass,s=o===void 0?"rr-block":o,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,p=f===void 0?null:f,g=i.inlineStylesheet,v=g===void 0?!0:g,y=i.inlineImages,d=y===void 0?!1:y,m=i.recordCanvas,_=m===void 0?!1:m,w=i.maskAllInputs,S=w===void 0?!1:w,C=i.maskTextFn,O=i.maskInputFn,R=i.slimDOM,k=R===void 0?!1:R,P=i.dataURLOptions,V=i.preserveWhiteSpace,M=i.onSerialize,L=i.onIframeLoad,K=i.iframeLoadTimeout,xe=i.onStylesheetLoad,J=i.stylesheetLoadTimeout,Re=i.keepIframeSrcFn,Se=Re===void 0?function(){return!1}:Re,se=S===!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}:S===!1?{password:!0}:S,me=k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:k==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:k===!1?{}:k;return Pt(e,{doc:e,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:se,maskTextFn:C,maskInputFn:O,slimDOMOptions:me,dataURLOptions:P,inlineImages:d,recordCanvas:_,preserveWhiteSpace:V,onSerialize:M,onIframeLoad:L,iframeLoadTimeout:K,onStylesheetLoad:xe,stylesheetLoadTimeout:J,keepIframeSrcFn:Se,newlyAddedElement:!1})}function vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gf(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return $(this,t)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),i}var hi={exports:{}},te=String,Ts=function(){return{isColorSupported:!1,reset:te,bold:te,dim:te,italic:te,underline:te,inverse:te,hidden:te,strikethrough:te,black:te,red:te,green:te,yellow:te,blue:te,magenta:te,cyan:te,white:te,gray:te,bgBlack:te,bgRed:te,bgGreen:te,bgYellow:te,bgBlue:te,bgMagenta:te,bgCyan:te,bgWhite:te}};hi.exports=Ts(),hi.exports.createColors=Ts;var mf=hi.exports,yf={},_f=Object.freeze(Object.defineProperty({__proto__:null,default:yf},Symbol.toStringTag,{value:"Module"})),ce=gf(_f),Ps=mf,Ns=ce,pi=function(e){ye(n,e);function n(t,r,o,s,a,u){var c;return c=e.call(this,t)||this,c.name="CssSyntaxError",c.reason=t,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Ps.isColorSupported),Ns&&r&&(s=Ns(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Ps.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+m+"\n "+C+f("^")}return" "+p(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Br(Error)),di=pi;pi.default=pi;var et={};et.isClean=Symbol("isClean"),et.my=Symbol("my");var $s={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function bf(e){return e[0].toUpperCase()+e.slice(1)}var vi=function(){function e(i){this.builder=i}var n=e.prototype;return n.atrule=function(t,r){var o="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?o+=t.raws.afterName:s&&(o+=" "),t.nodes)this.block(t,o+s);else{var a=(t.raws.between||"")+(r?";":"");this.builder(o+s+a,t)}},n.beforeAfter=function(t,r){var o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):r==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");for(var s=t.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(t,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(t,r){var o=this.raw(t,"between","beforeOpen");this.builder(r+o+"{",t,"start");var s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")},n.body=function(t){for(var r=t.nodes.length-1;r>0&&t.nodes[r].type==="comment";)r-=1;for(var o=this.raw(t,"semicolon"),s=0;s<t.nodes.length;s++){var a=t.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(t){var r=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+o+"*/",t)},n.decl=function(t,r){var o=this.raw(t,"between","colon"),s=t.prop+o+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),r&&(s+=";"),this.builder(s,t)},n.document=function(t){this.body(t)},n.raw=function(t,r,o){var s;if(o||(o=r),r&&(s=t.raws[r],typeof s!="undefined"))return s;var a=t.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return $s[o];var u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);var c="raw"+bf(o);return this[c]?s=this[c](u,t):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=$s[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(t,r){var o;return t.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(t,r){var o;return t.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(t){var r;return t.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(t){var r;return t.walk(function(o){if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(t){var r;return t.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(t){if(t.raws.indent)return t.raws.indent;var r;return t.walk(function(o){var s=o.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(t,r){var o=t[r],s=t.raws[r];return s&&s.value===o?s.raw:o},n.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},n.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},n.stringify=function(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)},e}(),Ds=vi;vi.default=vi;var wf=Ds;function gi(e,n){var i=new wf(n);i.stringify(e)}var Gr=gi;gi.default=gi;var Vr=et.isClean,Sf=et.my,Cf=di,If=Ds,Ef=Gr;function mi(e,n){var i=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t!=="proxyCache"){var r=e[t],o=typeof r=="undefined"?"undefined":F(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return mi(s,i)}):(o==="object"&&r!==null&&(r=mi(r)),i[t]=r)}return i}var yi=function(){function e(i){i===void 0&&(i={}),this.raws={},this[Vr]=!1,this[Sf]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=x(i[t]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[t]=i[t]}var n=e.prototype;return n.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return t},n.after=function(t){return this.parent.insertAfter(this,t),this},n.assign=function(t){t===void 0&&(t={});for(var r in t)this[r]=t[r];return this},n.before=function(t){return this.parent.insertBefore(this,t),this},n.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},n.clone=function(t){t===void 0&&(t={});var r=mi(this);for(var o in t)r[o]=t[o];return r},n.cloneAfter=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertBefore(this,r),r},n.error=function(t,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Cf(t)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Vr]){this[Vr]=!1;for(var t=this;t=t.parent;)t[Vr]=!1}},n.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},n.positionBy=function(t,r){var o=this.source.start;if(t.index)o=this.positionInside(t.index,r);else if(t.word){r=this.toString();var s=r.indexOf(t.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(t,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<t;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},n.rangeBy=function(t){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){var s=this.toString(),a=s.indexOf(t.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+t.word.length,s))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(t,r){var o=new If;return o.raw(this,t,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=x(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var t=this;t.parent&&t.parent.type!=="document";)t=t.parent;return t},n.toJSON=function(t,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":F(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":F(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(t){t===void 0&&(t=Ef),t.stringify&&(t=t.stringify);var r="";return t(this,function(o){r+=o}),r},n.warn=function(t,r,o){var s={node:this};for(var a in o)s[a]=o[a];return t.warn(r,s)},de(e,[{key:"proxyOf",get:function(){return this}}]),e}(),jr=yi;yi.default=yi;var xf=jr,_i=function(e){ye(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=q({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return de(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(xf),Yr=_i;_i.default=_i;var Of="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",kf=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=Of[Math.random()*64|0];return n},Rf={nanoid:kf},Ls=ce.SourceMapConsumer,Fs=ce.SourceMapGenerator,Af=ce.existsSync,Mf=ce.readFileSync,bi=ce.dirname,Tf=ce.join;function Pf(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var wi=function(){function e(i,t){if(t.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,o=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=bi(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ls(this.text)),this.consumerCache},n.decodeInline=function(t){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(t)||a.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||o.test(t))return Pf(t.substr(RegExp.lastMatch.length));var u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(t){return(typeof t=="undefined"?"undefined":F(t))!=="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)},n.loadAnnotation=function(t){var r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=t.lastIndexOf(r.pop()),s=t.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,s)))}},n.loadFile=function(t){if(this.root=bi(t),Af(t))return this.mapFile=t,Mf(t,"utf-8").toString().trim()},n.loadMap=function(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(t);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if($(r,Ls))return Fs.fromSourceMap(r).toString();if($(r,Fs))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return t&&(a=Tf(bi(t),a)),this.loadFile(a)}}},n.startWith=function(t,r){return t?t.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Us=wi;wi.default=wi;var Nf=ce.SourceMapConsumer,$f=ce.SourceMapGenerator,Bs=ce.fileURLToPath,Hr=ce.pathToFileURL,Si=ce.isAbsolute,Ci=ce.resolve,Df=Rf.nanoid,Ii=ce,zs=di,Lf=Us,Ei=Symbol("fromOffsetCache"),Ff=!!(Nf&&$f),Ws=!!(Ci&&Si),Kr=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":F(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Ws||/^\w+:\/\//.test(t.from)||Si(t.from)?this.file=t.from:this.file=Ci(t.from)),Ws&&Ff){var r=new Lf(this.css,t);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Df(6)+">"),this.map&&(this.map.file=this.from)}var n=e.prototype;return n.error=function(t,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":F(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,o=p.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var y=this.origin(r,o,u,c);return y?a=new zs(t,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new zs(t,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Hr&&(a.input.url=Hr(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[Ei])o=this[Ei];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[Ei]=o}r=o[o.length-1];var l=0;if(t>=r)l=o.length-1;else for(var f=o.length-2,p;l<f;)if(p=l+(f-l>>1),t<o[p])f=p-1;else if(t>=o[p+1])l=p+1;else{l=p;break}return{col:t-o[l]+1,line:l+1}},n.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:Ci(this.map.consumer().sourceRoot||this.map.root||".",t)},n.origin=function(t,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:t});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Si(u.source)?l=Hr(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Hr(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Bs)f.file=Bs(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var t={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(t[s]=this[s])}return this.map&&(t.map=q({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},de(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Jr=Kr;Kr.default=Kr,Ii&&Ii.registerInput&&Ii.registerInput(Kr);var qs=ce.SourceMapConsumer,Xr=ce.SourceMapGenerator,Zr=ce.dirname,Gs=ce.relative,Vs=ce.resolve,js=ce.sep,Ys=ce.pathToFileURL,Uf=Jr,Bf=!!(qs&&Xr),zf=!!(Zr&&Vs&&Gs&&js),Wf=function(){function e(i,t,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+t+" */"},n.applyPrevMaps=function(){for(var t=x(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Zr(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new qs(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var t,r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),zf&&Bf&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(r){t+=r}),[t]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Xr.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Xr({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},n.generateString=function(){var t=this;this.css="",this.map=new Xr({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(t.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=t.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,t.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=t.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,t.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(t){return t.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var t=this.mapOpts.annotation;return typeof t!="undefined"&&t!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(t){return t.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;var r=this.memoizedPaths.get(t);if(r)return r;var o=this.opts.to?Zr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Zr(Vs(o,this.mapOpts.annotation)));var s=Gs(o,t);return this.memoizedPaths.set(t,s),s},n.previous=function(){var t=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;t.previousMaps.includes(s)||t.previousMaps.push(s)}});else{var r=new Uf(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var t=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=t.usesFileUrls?t.toFileUrl(a):t.toUrl(t.path(a));t.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},n.toBase64=function(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},n.toFileUrl=function(t){var r=this.memoizedFileURLs.get(t);if(r)return r;if(Ys){var o=Ys(t).toString();return this.memoizedFileURLs.set(t,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(t){var r=this.memoizedURLs.get(t);if(r)return r;js==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),Hs=Wf,qf=jr,xi=function(e){ye(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(qf),Qr=xi;xi.default=xi;var Ks=et.isClean,Js=et.my,Xs=Yr,Zs=Qr,Gf=jr,Qs,Oi,ki,ea;function ta(e){return e.map(function(n){return n.nodes&&(n.nodes=ta(n.nodes)),delete n.source,n})}function ra(e){if(e[Ks]=!1,e.proxyOf.nodes)for(var n=x(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;ra(t)}}var Ve=function(e){ye(n,e);function n(){return e.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=x(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=x(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=x(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=x(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],s<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=x(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],s<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=ta(Qs(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=x(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=x(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Xs(r)]}else if(r.selector)r=[new Oi(r)];else if(r.name)r=[new ki(r)];else if(r.text)r=[new Zs(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Js]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Ks]&&ra(v),typeof v.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=x(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=x(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=x(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},de(n,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),n}(Gf);Ve.registerParse=function(e){Qs=e},Ve.registerRule=function(e){Oi=e},Ve.registerAtRule=function(e){ki=e},Ve.registerRoot=function(e){ea=e};var gt=Ve;Ve.default=Ve,Ve.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,ki.prototype):e.type==="rule"?Object.setPrototypeOf(e,Oi.prototype):e.type==="decl"?Object.setPrototypeOf(e,Xs.prototype):e.type==="comment"?Object.setPrototypeOf(e,Zs.prototype):e.type==="root"&&Object.setPrototypeOf(e,ea.prototype),e[Js]=!0,e.nodes&&e.nodes.forEach(function(n){Ve.rebuild(n)})};var Vf=gt,na,ia,cr=function(e){ye(n,e);function n(t){var r;return r=e.call(this,q({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new na(new ia,this,r);return o.stringify()},n}(Vf);cr.registerLazyResult=function(e){na=e},cr.registerProcessor=function(e){ia=e};var Ri=cr;cr.default=cr;var oa={},sa=function(n){oa[n]||(oa[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Ai=function(){function e(i,t){if(t===void 0&&(t={}),this.type="warning",this.text=i,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in t)this[o]=t[o]}var n=e.prototype;return n.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),aa=Ai;Ai.default=Ai;var jf=aa,Mi=function(){function e(i,t,r){this.processor=i,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var n=e.prototype;return n.toString=function(){return this.css},n.warn=function(t,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new jf(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},de(e,[{key:"content",get:function(){return this.css}}]),e}(),Ti=Mi;Mi.default=Mi;var Pi=39,ua=34,en=92,ca=47,tn=10,lr=32,rn=12,nn=9,on=13,Yf=91,Hf=93,Kf=40,Jf=41,Xf=123,Zf=125,Qf=59,eh=42,th=58,rh=64,sn=/[\t\n\f\r "#'()/;[\\\]{}]/g,an=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,nh=/.[\r\n"'(/\\]/,la=/[\da-f]/i,ih=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,v,y=t.length,d=0,m=[],_=[];function w(){return d}function S(k){throw n.error("Unclosed "+k,d)}function C(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var P=k?k.ignoreUnclosed:!1;switch(o=t.charCodeAt(d),o){case tn:case lr:case nn:case on:case rn:{s=d;do s+=1,o=t.charCodeAt(s);while(o===lr||o===tn||o===nn||o===on||o===rn);v=["space",t.slice(d,s)],d=s-1;break}case Yf:case Hf:case Xf:case Zf:case th:case Qf:case Jf:{var V=String.fromCharCode(o);v=[V,V,d];break}case Kf:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(d+1),p==="url"&&g!==Pi&&g!==ua&&g!==lr&&g!==tn&&g!==nn&&g!==rn&&g!==on){s=d;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||P){s=d;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===en;)f-=1,l=!l}while(l);v=["brackets",t.slice(d,s+1),d,s],d=s}else s=t.indexOf(")",d+1),u=t.slice(d,s+1),s===-1||nh.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case Pi:case ua:{a=o===Pi?"'":'"',s=d;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||P){s=d+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===en;)f-=1,l=!l}while(l);v=["string",t.slice(d,s+1),d,s],d=s;break}case rh:{sn.lastIndex=d+1,sn.test(t),sn.lastIndex===0?s=t.length-1:s=sn.lastIndex-2,v=["at-word",t.slice(d,s+1),d,s],d=s;break}case en:{for(s=d,c=!0;t.charCodeAt(s+1)===en;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==ca&&o!==lr&&o!==tn&&o!==nn&&o!==on&&o!==rn&&(s+=1,la.test(t.charAt(s)))){for(;la.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===lr&&(s+=1)}v=["word",t.slice(d,s+1),d,s],d=s;break}default:{o===ca&&t.charCodeAt(d+1)===eh?(s=t.indexOf("*/",d+2)+1,s===0&&(r||P?s=t.length:S("comment")),v=["comment",t.slice(d,s+1),d,s],d=s):(an.lastIndex=d+1,an.test(t),an.lastIndex===0?s=t.length-1:s=an.lastIndex-2,v=["word",t.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function R(k){_.push(k)}return{back:R,endOfFile:C,nextToken:O,position:w}},fa=gt,un=function(e){ye(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],o))},n}(fa),Ni=un;un.default=un,fa.registerAtRule(un);var ha=gt,pa,da,Nt=function(e){ye(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=e.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=x(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),e.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new pa(new da,this,r);return o.stringify()},n}(ha);Nt.registerLazyResult=function(e){pa=e},Nt.registerProcessor=function(e){da=e};var fr=Nt;Nt.default=Nt,ha.registerRoot(Nt);var hr={comma:function(n){return hr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return hr.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=x(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(t||o!=="")&&r.push(o.trim()),r}},va=hr;hr.default=hr;var ga=gt,oh=va,cn=function(e){ye(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return de(n,[{key:"selectors",get:function(){return oh.comma(this.selector)},set:function(t){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}]),n}(ga),$i=cn;cn.default=cn,ga.registerRule(cn);var sh=Yr,ah=ih,uh=Qr,ch=Ni,lh=fr,ma=$i,ya={empty:!0,space:!0};function fh(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var hh=function(){function e(i){this.input=i,this.root=new lh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=e.prototype;return n.atrule=function(t){var r=new ch;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(t){var r=this.colon(t);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=t[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(t){for(var r=0,o,s,a,u=x(t.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(o=p,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(t){var r=new uh;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;var o=t[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=ah(this.input)},n.decl=function(t,r){var o=new sh;this.init(o,t[0][2]);var s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||fh(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){var a=t[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";for(var u;t.length;)if(u=t.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(var f=t.length-1;f>=0;f--){if(u=t[f],u[1].toLowerCase()==="!important"){o.important=!0;var p=this.stringFrom(t,f);p=this.spacesFromEnd(t)+p,p!==" !important"&&(o.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=t.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(t),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(t)},n.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},n.emptyRule=function(t){var r=new ma;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},n.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},n.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(t){var r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}},n.init=function(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)},n.other=function(t){for(var r=!1,o=null,s=!1,a=null,u=[],c=t[1].startsWith("--"),l=[],f=t;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(t,r,o,s){for(var a,u,c=o.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?f=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",p=o[v+1]?o[v+1][0]:"empty",!ya[g]&&!ya[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,m){return d+m[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new ma;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r},n.spacesAndCommentsFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)o=t.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(t){for(var r,o="";t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)o+=t.shift()[1];return o},n.spacesFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],r==="space");)o=t.pop()[1]+o;return o},n.stringFrom=function(t,r){for(var o="",s=r;s<t.length;s++)o+=t[s][1];return t.splice(r,t.length-r),o},n.unclosedBlock=function(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)},n.unclosedBracket=function(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})},n.unexpectedClose=function(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})},n.unknownWord=function(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})},n.unnamedAtrule=function(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},e}(),ph=hh,dh=gt,vh=ph,gh=Jr;function ln(e,n){var i=new gh(e,n),t=new vh(i);try{t.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return t.root}var Di=ln;ln.default=ln,dh.registerParse(ln);var Fe=et.isClean,mh=et.my,yh=Hs,_h=Gr,bh=gt,wh=Ri,Sh=sa,_a=Ti,Ch=Di,Ih=fr,Eh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},xh={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Oh={Once:!0,postcssPlugin:!0,prepare:!0},$t=0;function pr(e){return(typeof e=="undefined"?"undefined":F(e))==="object"&&typeof e.then=="function"}function ba(e){var n=!1,i=Eh[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,$t,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,$t,i+"Exit"]:[i,i+"Exit"]}function wa(e){var n;return e.type==="document"?n=["Document",$t,"DocumentExit"]:e.type==="root"?n=["Root",$t,"RootExit"]:n=ba(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Li(e){return e[Fe]=!1,e.nodes&&e.nodes.forEach(function(n){return Li(n)}),e}var Fi={},Dt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":F(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Li(t);else if($(t,e)||$(t,_a))s=Li(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{var a=Ch;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(t,r)}catch(u){this.processed=!0,this.error=u}s&&!s[mh]&&bh.rebuild(s)}this.result=new _a(i,s,r),this.helpers=q({},Fi,{postcss:Fi,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":F(u))==="object"&&u.prepare?q({},u,u.prepare(o.result)):u})}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(t,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return t},n.prepareVisitors=function(){var t=this;this.listeners={};for(var r=function(l,f,p){t.listeners[f]||(t.listeners[f]=[]),t.listeners[f].push([l,p])},o=x(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":F(a))==="object")for(var u in a){if(!xh[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Oh[u])if(F(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var t=this;return ri(function(){var r,o,s,a,u,c,l,f,p,g,v,y;return or(this,function(d){switch(d.label){case 0:t.plugin=0,r=0,d.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!pr(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,d.label=7;case 7:if(u[Fe])return[3,14];u[Fe]=!0,c=[wa(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!pr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),p=c[c.length-1].node,t.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];g=function(){var m,_,w,S,C;return or(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],w=m[1],t.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(R){return w(R,t.helpers)}),[4,Promise.all(S)]);case 2:return O.sent(),[3,5];case 3:return[4,w(u,t.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw C=O.sent(),t.handleError(C);case 7:return[2]}})},v=x(t.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,vs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},n.runOnRoot=function(t){var r=this;this.result.lastPlugin=t;try{if((typeof t=="undefined"?"undefined":F(t))==="object"&&t.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return t.Once(s,r.helpers)});return pr(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,r=_h;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new yh(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t=x(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(pr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Fe];)a[Fe]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=x(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Sh("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this.css},n.visitSync=function(t,r){for(var o=x(t),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(pr(l))throw this.getAsyncError()}},n.visitTick=function(t){var r=t[t.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Fe]){f[Fe]=!0,t.push(wa(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===$t){o.nodes&&o.nodes.length&&(o[Fe]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}t.pop()},n.walkSync=function(t){var r=this;t[Fe]=!0;for(var o=ba(t),s=x(o),a;!(a=s()).done;){var u=a.value;if(u===$t)t.nodes&&t.each(function(l){l[Fe]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},de(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Dt.registerPostcss=function(e){Fi=e};var Sa=Dt;Dt.default=Dt,Ih.registerLazyResult(Dt),wh.registerLazyResult(Dt);var kh=Hs,Rh=Gr,Ah=sa,Mh=Di,Th=Ti,Ui=function(){function e(i,t,r){t=t.toString(),this.stringified=!1,this._processor=i,this._css=t,this._opts=r,this._map=void 0;var o,s=Rh;this.result=new Th(this._processor,o,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new kh(s,o,this._opts,t);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Ah("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},de(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var t,r=Mh;try{t=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Ph=Ui;Ui.default=Ui;var Nh=Ph,$h=Sa,Dh=Ri,Lh=fr,dr=function(){function e(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=e.prototype;return n.normalize=function(t){for(var r=[],o=x(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":F(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":F(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":F(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(t,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Nh(this,t,r):new $h(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),Fh=dr;dr.default=dr,Lh.registerProcessor(dr),Dh.registerProcessor(dr);var Uh=Yr,Bh=Us,zh=Qr,Wh=Ni,qh=Jr,Gh=fr,Vh=$i;function vr(e,n){if(Array.isArray(e))return e.map(function(f){return vr(f)});var i=e.inputs,t=nr(e,["inputs"]);if(i){n=[];for(var r=x(i),o;!(o=r()).done;){var s=o.value,a=q({},s,{__proto__:qh.prototype});a.map&&(a.map=q({},a.map,{__proto__:Bh.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return vr(f,n)})),t.source){var u=t.source,c=u.inputId,l=nr(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new Gh(t);if(t.type==="decl")return new Uh(t);if(t.type==="rule")return new Vh(t);if(t.type==="comment")return new zh(t);if(t.type==="atrule")return new Wh(t);throw new Error("Unknown node type: "+e.type)}var jh=vr;vr.default=vr;var Yh=di,Ca=Yr,Hh=Sa,Kh=gt,Bi=Fh,Jh=Gr,Xh=jh,Ia=Ri,Zh=aa,Ea=Qr,xa=Ni,Qh=Ti,ep=Jr,tp=Di,rp=va,Oa=$i,ka=fr,np=jr;function X(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Bi(n)}X.plugin=function(n,i){var t=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!t&&(t=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Bi().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return X([r(u)]).process(s,a)},r},X.stringify=Jh,X.parse=tp,X.fromJSON=Xh,X.list=rp,X.comment=function(e){return new Ea(e)},X.atRule=function(e){return new xa(e)},X.decl=function(e){return new Ca(e)},X.rule=function(e){return new Oa(e)},X.root=function(e){return new ka(e)},X.document=function(e){return new Ia(e)},X.CssSyntaxError=Yh,X.Declaration=Ca,X.Container=Kh,X.Processor=Bi,X.Document=Ia,X.Comment=Ea,X.Warning=Zh,X.AtRule=xa,X.Result=Qh,X.Input=ep,X.Rule=Oa,X.Root=ka,X.Node=np,Hh.registerPostcss(X);var ip=X;X.default=X;var ie=vf(ip);ie.stringify,ie.fromJSON,ie.plugin,ie.parse,ie.list,ie.document,ie.comment,ie.atRule,ie.rule,ie.decl,ie.root,ie.CssSyntaxError,ie.Declaration,ie.Container,ie.Processor,ie.Document,ie.Comment,ie.Warning,ie.AtRule,ie.Result,ie.Input,ie.Rule,ie.Root,ie.Node;var op=Object.defineProperty,sp=function(e,n,i){return n in e?op(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},Te=function(e,n,i){return sp(e,(typeof n=="undefined"?"undefined":F(n))!=="symbol"?n+"":n,i)};function ap(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function up(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return $(this,t)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),i}var zi={exports:{}},re=String,Ra=function(){return{isColorSupported:!1,reset:re,bold:re,dim:re,italic:re,underline:re,inverse:re,hidden:re,strikethrough:re,black:re,red:re,green:re,yellow:re,blue:re,magenta:re,cyan:re,white:re,gray:re,bgBlack:re,bgRed:re,bgGreen:re,bgYellow:re,bgBlue:re,bgMagenta:re,bgCyan:re,bgWhite:re}};zi.exports=Ra(),zi.exports.createColors=Ra;var cp=zi.exports,lp={},fp=Object.freeze(Object.defineProperty({__proto__:null,default:lp},Symbol.toStringTag,{value:"Module"})),le=up(fp),Aa=cp,Ma=le,Wi=function(e){ye(n,e);function n(t,r,o,s,a,u){var c;return c=e.call(this,t)||this,c.name="CssSyntaxError",c.reason=t,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Aa.isColorSupported),Ma&&r&&(s=Ma(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Aa.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+m+"\n "+C+f("^")}return" "+p(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Br(Error)),qi=Wi;Wi.default=Wi;var tt={};tt.isClean=Symbol("isClean"),tt.my=Symbol("my");var Ta={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function hp(e){return e[0].toUpperCase()+e.slice(1)}var Gi=function(){function e(i){this.builder=i}var n=e.prototype;return n.atrule=function(t,r){var o="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?o+=t.raws.afterName:s&&(o+=" "),t.nodes)this.block(t,o+s);else{var a=(t.raws.between||"")+(r?";":"");this.builder(o+s+a,t)}},n.beforeAfter=function(t,r){var o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):r==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");for(var s=t.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(t,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(t,r){var o=this.raw(t,"between","beforeOpen");this.builder(r+o+"{",t,"start");var s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")},n.body=function(t){for(var r=t.nodes.length-1;r>0&&t.nodes[r].type==="comment";)r-=1;for(var o=this.raw(t,"semicolon"),s=0;s<t.nodes.length;s++){var a=t.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(t){var r=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+o+"*/",t)},n.decl=function(t,r){var o=this.raw(t,"between","colon"),s=t.prop+o+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),r&&(s+=";"),this.builder(s,t)},n.document=function(t){this.body(t)},n.raw=function(t,r,o){var s;if(o||(o=r),r&&(s=t.raws[r],typeof s!="undefined"))return s;var a=t.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return Ta[o];var u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);var c="raw"+hp(o);return this[c]?s=this[c](u,t):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Ta[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(t,r){var o;return t.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(t,r){var o;return t.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(t){var r;return t.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(t){var r;return t.walk(function(o){if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(t){var r;return t.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(t){if(t.raws.indent)return t.raws.indent;var r;return t.walk(function(o){var s=o.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(t,r){var o=t[r],s=t.raws[r];return s&&s.value===o?s.raw:o},n.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},n.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},n.stringify=function(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)},e}(),Pa=Gi;Gi.default=Gi;var pp=Pa;function Vi(e,n){var i=new pp(n);i.stringify(e)}var fn=Vi;Vi.default=Vi;var hn=tt.isClean,dp=tt.my,vp=qi,gp=Pa,mp=fn;function ji(e,n){var i=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t!=="proxyCache"){var r=e[t],o=typeof r=="undefined"?"undefined":F(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return ji(s,i)}):(o==="object"&&r!==null&&(r=ji(r)),i[t]=r)}return i}var Yi=function(){function e(i){i===void 0&&(i={}),this.raws={},this[hn]=!1,this[dp]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=x(i[t]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[t]=i[t]}var n=e.prototype;return n.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return t},n.after=function(t){return this.parent.insertAfter(this,t),this},n.assign=function(t){t===void 0&&(t={});for(var r in t)this[r]=t[r];return this},n.before=function(t){return this.parent.insertBefore(this,t),this},n.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},n.clone=function(t){t===void 0&&(t={});var r=ji(this);for(var o in t)r[o]=t[o];return r},n.cloneAfter=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertBefore(this,r),r},n.error=function(t,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new vp(t)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[hn]){this[hn]=!1;for(var t=this;t=t.parent;)t[hn]=!1}},n.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},n.positionBy=function(t,r){var o=this.source.start;if(t.index)o=this.positionInside(t.index,r);else if(t.word){r=this.toString();var s=r.indexOf(t.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(t,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<t;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},n.rangeBy=function(t){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){var s=this.toString(),a=s.indexOf(t.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+t.word.length,s))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(t,r){var o=new gp;return o.raw(this,t,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=x(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var t=this;t.parent&&t.parent.type!=="document";)t=t.parent;return t},n.toJSON=function(t,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":F(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":F(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(t){t===void 0&&(t=mp),t.stringify&&(t=t.stringify);var r="";return t(this,function(o){r+=o}),r},n.warn=function(t,r,o){var s={node:this};for(var a in o)s[a]=o[a];return t.warn(r,s)},de(e,[{key:"proxyOf",get:function(){return this}}]),e}(),pn=Yi;Yi.default=Yi;var yp=pn,Hi=function(e){ye(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=q({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return de(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(yp),dn=Hi;Hi.default=Hi;var _p="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",bp=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=_p[Math.random()*64|0];return n},wp={nanoid:bp},Na=le.SourceMapConsumer,$a=le.SourceMapGenerator,Sp=le.existsSync,Cp=le.readFileSync,Ki=le.dirname,Ip=le.join;function Ep(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Ji=function(){function e(i,t){if(t.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,o=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ki(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Na(this.text)),this.consumerCache},n.decodeInline=function(t){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(t)||a.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||o.test(t))return Ep(t.substr(RegExp.lastMatch.length));var u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(t){return(typeof t=="undefined"?"undefined":F(t))!=="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)},n.loadAnnotation=function(t){var r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=t.lastIndexOf(r.pop()),s=t.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,s)))}},n.loadFile=function(t){if(this.root=Ki(t),Sp(t))return this.mapFile=t,Cp(t,"utf-8").toString().trim()},n.loadMap=function(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(t);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if($(r,Na))return $a.fromSourceMap(r).toString();if($(r,$a))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return t&&(a=Ip(Ki(t),a)),this.loadFile(a)}}},n.startWith=function(t,r){return t?t.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Da=Ji;Ji.default=Ji;var xp=le.SourceMapConsumer,Op=le.SourceMapGenerator,La=le.fileURLToPath,vn=le.pathToFileURL,Xi=le.isAbsolute,Zi=le.resolve,kp=wp.nanoid,Qi=le,Fa=qi,Rp=Da,eo=Symbol("fromOffsetCache"),Ap=!!(xp&&Op),Ua=!!(Zi&&Xi),gn=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":F(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Ua||/^\w+:\/\//.test(t.from)||Xi(t.from)?this.file=t.from:this.file=Zi(t.from)),Ua&&Ap){var r=new Rp(this.css,t);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+kp(6)+">"),this.map&&(this.map.file=this.from)}var n=e.prototype;return n.error=function(t,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":F(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,o=p.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var y=this.origin(r,o,u,c);return y?a=new Fa(t,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Fa(t,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(vn&&(a.input.url=vn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[eo])o=this[eo];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[eo]=o}r=o[o.length-1];var l=0;if(t>=r)l=o.length-1;else for(var f=o.length-2,p;l<f;)if(p=l+(f-l>>1),t<o[p])f=p-1;else if(t>=o[p+1])l=p+1;else{l=p;break}return{col:t-o[l]+1,line:l+1}},n.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:Zi(this.map.consumer().sourceRoot||this.map.root||".",t)},n.origin=function(t,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:t});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Xi(u.source)?l=vn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||vn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(La)f.file=La(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var t={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(t[s]=this[s])}return this.map&&(t.map=q({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},de(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),mn=gn;gn.default=gn,Qi&&Qi.registerInput&&Qi.registerInput(gn);var Ba=le.SourceMapConsumer,yn=le.SourceMapGenerator,_n=le.dirname,za=le.relative,Wa=le.resolve,qa=le.sep,Ga=le.pathToFileURL,Mp=mn,Tp=!!(Ba&&yn),Pp=!!(_n&&Wa&&za&&qa),Np=function(){function e(i,t,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+t+" */"},n.applyPrevMaps=function(){for(var t=x(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||_n(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Ba(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var t,r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Pp&&Tp&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(r){t+=r}),[t]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=yn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new yn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},n.generateString=function(){var t=this;this.css="",this.map=new yn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(t.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=t.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,t.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=t.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,t.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(t){return t.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var t=this.mapOpts.annotation;return typeof t!="undefined"&&t!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(t){return t.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;var r=this.memoizedPaths.get(t);if(r)return r;var o=this.opts.to?_n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=_n(Wa(o,this.mapOpts.annotation)));var s=za(o,t);return this.memoizedPaths.set(t,s),s},n.previous=function(){var t=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;t.previousMaps.includes(s)||t.previousMaps.push(s)}});else{var r=new Mp(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var t=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=t.usesFileUrls?t.toFileUrl(a):t.toUrl(t.path(a));t.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},n.toBase64=function(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},n.toFileUrl=function(t){var r=this.memoizedFileURLs.get(t);if(r)return r;if(Ga){var o=Ga(t).toString();return this.memoizedFileURLs.set(t,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(t){var r=this.memoizedURLs.get(t);if(r)return r;qa==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),Va=Np,$p=pn,to=function(e){ye(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}($p),bn=to;to.default=to;var ja=tt.isClean,Ya=tt.my,Ha=dn,Ka=bn,Dp=pn,Ja,ro,no,Xa;function Za(e){return e.map(function(n){return n.nodes&&(n.nodes=Za(n.nodes)),delete n.source,n})}function Qa(e){if(e[ja]=!1,e.proxyOf.nodes)for(var n=x(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;Qa(t)}}var je=function(e){ye(n,e);function n(){return e.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=x(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=x(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=x(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=x(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],s<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=x(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],s<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=Za(Ja(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=x(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=x(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Ha(r)]}else if(r.selector)r=[new ro(r)];else if(r.name)r=[new no(r)];else if(r.text)r=[new Ka(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Ya]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[ja]&&Qa(v),typeof v.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=x(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=x(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=x(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},de(n,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),n}(Dp);je.registerParse=function(e){Ja=e},je.registerRule=function(e){ro=e},je.registerAtRule=function(e){no=e},je.registerRoot=function(e){Xa=e};var mt=je;je.default=je,je.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,no.prototype):e.type==="rule"?Object.setPrototypeOf(e,ro.prototype):e.type==="decl"?Object.setPrototypeOf(e,Ha.prototype):e.type==="comment"?Object.setPrototypeOf(e,Ka.prototype):e.type==="root"&&Object.setPrototypeOf(e,Xa.prototype),e[Ya]=!0,e.nodes&&e.nodes.forEach(function(n){je.rebuild(n)})};var Lp=mt,eu,tu,gr=function(e){ye(n,e);function n(t){var r;return r=e.call(this,q({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new eu(new tu,this,r);return o.stringify()},n}(Lp);gr.registerLazyResult=function(e){eu=e},gr.registerProcessor=function(e){tu=e};var io=gr;gr.default=gr;var ru={},nu=function(n){ru[n]||(ru[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},oo=function(){function e(i,t){if(t===void 0&&(t={}),this.type="warning",this.text=i,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in t)this[o]=t[o]}var n=e.prototype;return n.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),iu=oo;oo.default=oo;var Fp=iu,so=function(){function e(i,t,r){this.processor=i,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var n=e.prototype;return n.toString=function(){return this.css},n.warn=function(t,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new Fp(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},de(e,[{key:"content",get:function(){return this.css}}]),e}(),ao=so;so.default=so;var uo=39,ou=34,wn=92,su=47,Sn=10,mr=32,Cn=12,In=9,En=13,Up=91,Bp=93,zp=40,Wp=41,qp=123,Gp=125,Vp=59,jp=42,Yp=58,Hp=64,xn=/[\t\n\f\r "#'()/;[\\\]{}]/g,On=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Kp=/.[\r\n"'(/\\]/,au=/[\da-f]/i,Jp=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,v,y=t.length,d=0,m=[],_=[];function w(){return d}function S(k){throw n.error("Unclosed "+k,d)}function C(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var P=k?k.ignoreUnclosed:!1;switch(o=t.charCodeAt(d),o){case Sn:case mr:case In:case En:case Cn:{s=d;do s+=1,o=t.charCodeAt(s);while(o===mr||o===Sn||o===In||o===En||o===Cn);v=["space",t.slice(d,s)],d=s-1;break}case Up:case Bp:case qp:case Gp:case Yp:case Vp:case Wp:{var V=String.fromCharCode(o);v=[V,V,d];break}case zp:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(d+1),p==="url"&&g!==uo&&g!==ou&&g!==mr&&g!==Sn&&g!==In&&g!==Cn&&g!==En){s=d;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||P){s=d;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===wn;)f-=1,l=!l}while(l);v=["brackets",t.slice(d,s+1),d,s],d=s}else s=t.indexOf(")",d+1),u=t.slice(d,s+1),s===-1||Kp.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case uo:case ou:{a=o===uo?"'":'"',s=d;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||P){s=d+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===wn;)f-=1,l=!l}while(l);v=["string",t.slice(d,s+1),d,s],d=s;break}case Hp:{xn.lastIndex=d+1,xn.test(t),xn.lastIndex===0?s=t.length-1:s=xn.lastIndex-2,v=["at-word",t.slice(d,s+1),d,s],d=s;break}case wn:{for(s=d,c=!0;t.charCodeAt(s+1)===wn;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==su&&o!==mr&&o!==Sn&&o!==In&&o!==En&&o!==Cn&&(s+=1,au.test(t.charAt(s)))){for(;au.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===mr&&(s+=1)}v=["word",t.slice(d,s+1),d,s],d=s;break}default:{o===su&&t.charCodeAt(d+1)===jp?(s=t.indexOf("*/",d+2)+1,s===0&&(r||P?s=t.length:S("comment")),v=["comment",t.slice(d,s+1),d,s],d=s):(On.lastIndex=d+1,On.test(t),On.lastIndex===0?s=t.length-1:s=On.lastIndex-2,v=["word",t.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function R(k){_.push(k)}return{back:R,endOfFile:C,nextToken:O,position:w}},uu=mt,kn=function(e){ye(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],o))},n}(uu),co=kn;kn.default=kn,uu.registerAtRule(kn);var cu=mt,lu,fu,Lt=function(e){ye(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=e.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=x(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),e.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new lu(new fu,this,r);return o.stringify()},n}(cu);Lt.registerLazyResult=function(e){lu=e},Lt.registerProcessor=function(e){fu=e};var yr=Lt;Lt.default=Lt,cu.registerRoot(Lt);var _r={comma:function(n){return _r.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return _r.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=x(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(t||o!=="")&&r.push(o.trim()),r}},hu=_r;_r.default=_r;var pu=mt,Xp=hu,Rn=function(e){ye(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return de(n,[{key:"selectors",get:function(){return Xp.comma(this.selector)},set:function(t){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}]),n}(pu),lo=Rn;Rn.default=Rn,pu.registerRule(Rn);var Zp=dn,Qp=Jp,ed=bn,td=co,rd=yr,du=lo,vu={empty:!0,space:!0};function nd(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var id=function(){function e(i){this.input=i,this.root=new rd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=e.prototype;return n.atrule=function(t){var r=new td;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(t){var r=this.colon(t);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=t[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(t){for(var r=0,o,s,a,u=x(t.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(o=p,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(t){var r=new ed;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;var o=t[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Qp(this.input)},n.decl=function(t,r){var o=new Zp;this.init(o,t[0][2]);var s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||nd(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){var a=t[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";for(var u;t.length;)if(u=t.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(var f=t.length-1;f>=0;f--){if(u=t[f],u[1].toLowerCase()==="!important"){o.important=!0;var p=this.stringFrom(t,f);p=this.spacesFromEnd(t)+p,p!==" !important"&&(o.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=t.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(t),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(t)},n.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},n.emptyRule=function(t){var r=new du;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},n.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},n.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(t){var r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}},n.init=function(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)},n.other=function(t){for(var r=!1,o=null,s=!1,a=null,u=[],c=t[1].startsWith("--"),l=[],f=t;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(t,r,o,s){for(var a,u,c=o.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?f=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",p=o[v+1]?o[v+1][0]:"empty",!vu[g]&&!vu[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,m){return d+m[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new du;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r},n.spacesAndCommentsFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)o=t.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(t){for(var r,o="";t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)o+=t.shift()[1];return o},n.spacesFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],r==="space");)o=t.pop()[1]+o;return o},n.stringFrom=function(t,r){for(var o="",s=r;s<t.length;s++)o+=t[s][1];return t.splice(r,t.length-r),o},n.unclosedBlock=function(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)},n.unclosedBracket=function(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})},n.unexpectedClose=function(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})},n.unknownWord=function(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})},n.unnamedAtrule=function(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},e}(),od=id,sd=mt,ad=od,ud=mn;function An(e,n){var i=new ud(e,n),t=new ad(i);try{t.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return t.root}var fo=An;An.default=An,sd.registerParse(An);var Ue=tt.isClean,cd=tt.my,ld=Va,fd=fn,hd=mt,pd=io,dd=nu,gu=ao,vd=fo,gd=yr,md={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},yd={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},_d={Once:!0,postcssPlugin:!0,prepare:!0},Ft=0;function br(e){return(typeof e=="undefined"?"undefined":F(e))==="object"&&typeof e.then=="function"}function mu(e){var n=!1,i=md[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,Ft,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,Ft,i+"Exit"]:[i,i+"Exit"]}function yu(e){var n;return e.type==="document"?n=["Document",Ft,"DocumentExit"]:e.type==="root"?n=["Root",Ft,"RootExit"]:n=mu(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function ho(e){return e[Ue]=!1,e.nodes&&e.nodes.forEach(function(n){return ho(n)}),e}var po={},Ut=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":F(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=ho(t);else if($(t,e)||$(t,gu))s=ho(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{var a=vd;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(t,r)}catch(u){this.processed=!0,this.error=u}s&&!s[cd]&&hd.rebuild(s)}this.result=new gu(i,s,r),this.helpers=q({},po,{postcss:po,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":F(u))==="object"&&u.prepare?q({},u,u.prepare(o.result)):u})}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(t,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return t},n.prepareVisitors=function(){var t=this;this.listeners={};for(var r=function(l,f,p){t.listeners[f]||(t.listeners[f]=[]),t.listeners[f].push([l,p])},o=x(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":F(a))==="object")for(var u in a){if(!yd[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!_d[u])if(F(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var t=this;return ri(function(){var r,o,s,a,u,c,l,f,p,g,v,y;return or(this,function(d){switch(d.label){case 0:t.plugin=0,r=0,d.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!br(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,d.label=7;case 7:if(u[Ue])return[3,14];u[Ue]=!0,c=[yu(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!br(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),p=c[c.length-1].node,t.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];g=function(){var m,_,w,S,C;return or(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],w=m[1],t.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(R){return w(R,t.helpers)}),[4,Promise.all(S)]);case 2:return O.sent(),[3,5];case 3:return[4,w(u,t.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw C=O.sent(),t.handleError(C);case 7:return[2]}})},v=x(t.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,vs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},n.runOnRoot=function(t){var r=this;this.result.lastPlugin=t;try{if((typeof t=="undefined"?"undefined":F(t))==="object"&&t.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return t.Once(s,r.helpers)});return br(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,r=fd;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new ld(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t=x(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(br(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ue];)a[Ue]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=x(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||dd("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this.css},n.visitSync=function(t,r){for(var o=x(t),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(br(l))throw this.getAsyncError()}},n.visitTick=function(t){var r=t[t.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Ue]){f[Ue]=!0,t.push(yu(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===Ft){o.nodes&&o.nodes.length&&(o[Ue]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}t.pop()},n.walkSync=function(t){var r=this;t[Ue]=!0;for(var o=mu(t),s=x(o),a;!(a=s()).done;){var u=a.value;if(u===Ft)t.nodes&&t.each(function(l){l[Ue]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},de(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Ut.registerPostcss=function(e){po=e};var _u=Ut;Ut.default=Ut,gd.registerLazyResult(Ut),pd.registerLazyResult(Ut);var bd=Va,wd=fn,Sd=nu,Cd=fo,Id=ao,vo=function(){function e(i,t,r){t=t.toString(),this.stringified=!1,this._processor=i,this._css=t,this._opts=r,this._map=void 0;var o,s=wd;this.result=new Id(this._processor,o,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new bd(s,o,this._opts,t);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Sd("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},de(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var t,r=Cd;try{t=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Ed=vo;vo.default=vo;var xd=Ed,Od=_u,kd=io,Rd=yr,wr=function(){function e(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=e.prototype;return n.normalize=function(t){for(var r=[],o=x(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":F(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":F(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":F(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(t,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new xd(this,t,r):new Od(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),Ad=wr;wr.default=wr,Rd.registerProcessor(wr),kd.registerProcessor(wr);var Md=dn,Td=Da,Pd=bn,Nd=co,$d=mn,Dd=yr,Ld=lo;function Sr(e,n){if(Array.isArray(e))return e.map(function(f){return Sr(f)});var i=e.inputs,t=nr(e,["inputs"]);if(i){n=[];for(var r=x(i),o;!(o=r()).done;){var s=o.value,a=q({},s,{__proto__:$d.prototype});a.map&&(a.map=q({},a.map,{__proto__:Td.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return Sr(f,n)})),t.source){var u=t.source,c=u.inputId,l=nr(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new Dd(t);if(t.type==="decl")return new Md(t);if(t.type==="rule")return new Ld(t);if(t.type==="comment")return new Pd(t);if(t.type==="atrule")return new Nd(t);throw new Error("Unknown node type: "+e.type)}var Fd=Sr;Sr.default=Sr;var Ud=qi,bu=dn,Bd=_u,zd=mt,go=Ad,Wd=fn,qd=Fd,wu=io,Gd=iu,Su=bn,Cu=co,Vd=ao,jd=mn,Yd=fo,Hd=hu,Iu=lo,Eu=yr,Kd=pn;function Z(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new go(n)}Z.plugin=function(n,i){var t=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!t&&(t=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new go().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Z([r(u)]).process(s,a)},r},Z.stringify=Wd,Z.parse=Yd,Z.fromJSON=qd,Z.list=Hd,Z.comment=function(e){return new Su(e)},Z.atRule=function(e){return new Cu(e)},Z.decl=function(e){return new bu(e)},Z.rule=function(e){return new Iu(e)},Z.root=function(e){return new Eu(e)},Z.document=function(e){return new wu(e)},Z.CssSyntaxError=Ud,Z.Declaration=bu,Z.Container=zd,Z.Processor=go,Z.Document=wu,Z.Comment=Su,Z.Warning=Gd,Z.AtRule=Cu,Z.Result=Vd,Z.Input=jd,Z.Rule=Iu,Z.Root=Eu,Z.Node=Kd,Bd.registerPostcss(Z);var Jd=Z;Z.default=Z;var oe=ap(Jd);oe.stringify,oe.fromJSON,oe.plugin,oe.parse,oe.list,oe.document,oe.comment,oe.atRule,oe.rule,oe.decl,oe.root,oe.CssSyntaxError,oe.Declaration,oe.Container,oe.Processor,oe.Document,oe.Comment,oe.Warning,oe.AtRule,oe.Result,oe.Input,oe.Rule,oe.Root,oe.Node;var Xd=function(){function e(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];Te(this,"parentElement",null),Te(this,"parentNode",null),Te(this,"ownerDocument"),Te(this,"firstChild",null),Te(this,"lastChild",null),Te(this,"previousSibling",null),Te(this,"nextSibling",null),Te(this,"ELEMENT_NODE",1),Te(this,"TEXT_NODE",3),Te(this,"nodeType"),Te(this,"nodeName"),Te(this,"RRNodeType")}var n=e.prototype;return n.contains=function(t){if($(t,e)){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},n.appendChild=function(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},de(e,[{key:"childNodes",get:function(){for(var t=[],r=this.firstChild;r;)t.push(r),r=r.nextSibling;return t}}]),e}(),xu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ou={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mn={},Zd=function(){return!!globalThis.Zone};function mo(e){if(Mn[e])return Mn[e];var n=globalThis[e],i=n.prototype,t=e in xu?xu[e]:void 0,r=!!(t&&t.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),o=e in Ou?Ou[e]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Zd())return Mn[e]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Mn[e]=c:i}catch(l){return i}}var yo={};function rt(e,n,i){var t,r=e+"."+String(i);if(yo[r])return yo[r].call(n);var o=mo(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(yo[r]=s,s.call(n)):n[i]}var _o={};function ku(e,n,i){var t=e+"."+String(i);if(_o[t])return _o[t].bind(n);var r=mo(e),o=r[i];return typeof o!="function"?n[i]:(_o[t]=o,o.bind(n))}function Qd(e){return rt("Node",e,"childNodes")}function ev(e){return rt("Node",e,"parentNode")}function tv(e){return rt("Node",e,"parentElement")}function rv(e){return rt("Node",e,"textContent")}function nv(e,n){return ku("Node",e,"contains")(n)}function iv(e){return ku("Node",e,"getRootNode")()}function ov(e){return!e||!("host"in e)?null:rt("ShadowRoot",e,"host")}function sv(e){return e.styleSheets}function av(e){return!e||!("shadowRoot"in e)?null:rt("Element",e,"shadowRoot")}function uv(e,n){return rt("Element",e,"querySelector")(n)}function cv(e,n){return rt("Element",e,"querySelectorAll")(n)}function Ru(){return mo("MutationObserver").constructor}var U={childNodes:Qd,parentNode:ev,parentElement:tv,textContent:rv,contains:nv,getRootNode:iv,host:ov,styleSheets:sv,shadowRoot:av,querySelector:uv,querySelectorAll:cv,mutationObserver:Ru};function be(e,n,i){i===void 0&&(i=document);var t={capture:!0,passive:!0};return i.addEventListener(e,n,t),function(){return i.removeEventListener(e,n,t)}}var Bt="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Au={map:{},getId:function(){return console.error(Bt),-1},getNode:function(){return console.error(Bt),null},removeNodeFromMap:function(){console.error(Bt)},has:function(){return console.error(Bt),!1},reset:function(){console.error(Bt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Au=new Proxy(Au,{get:function(n,i,t){return i==="map"&&console.error(Bt),Reflect.get(n,i,t)}}));function Cr(e,n,i){i===void 0&&(i={});var t=null,r=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),l=this;c<=0||c>n?(t&&(clearTimeout(t),t=null),r=u,e.apply(l,s)):!t&&i.trailing!==!1&&(t=setTimeout(function(){r=i.leading===!1?0:Date.now(),t=null,e.apply(l,s)},c))}}function Tn(e,n,i,t,r){r===void 0&&(r=window);var o=r.Object.getOwnPropertyDescriptor(e,n);return r.Object.defineProperty(e,n,t?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),o&&o.set&&o.set.call(this,a)}}),function(){return Tn(e,n,o||{},!0)}}function zt(e,n,i){try{if(!(n in e))return function(){};var t=e[n],r=i(t);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:t}})),e[n]=r,function(){e[n]=t}}catch(o){return function(){}}}var Pn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Pn=function(){return new Date().getTime()});function Mu(e){var n,i,t,r,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((n=U.parentElement(o.body))==null?void 0:n.scrollLeft)||((i=o==null?void 0:o.body)==null?void 0:i.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((t=U.parentElement(o.body))==null?void 0:t.scrollTop)||((r=o==null?void 0:o.body)==null?void 0:r.scrollTop)||0}}function Tu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Pu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nu(e){if(!e)return null;var n=e.nodeType===e.ELEMENT_NODE?e:U.parentElement(e);return n}function we(e,n,i,t){if(!e)return!1;var r=Nu(e);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||t&&r.closest("."+n)!==null)return!0}else if(qr(r,n,t))return!0}catch(o){}return!!(i&&(r.matches(i)||t&&r.closest(i)!==null))}function lv(e,n){return n.getId(e)!==-1}function bo(e,n,i){return e.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(e)===ur}function $u(e,n){if(sr(e))return!1;var i=n.getId(e);if(!n.has(i))return!0;var t=U.parentNode(e);return t&&t.nodeType===e.DOCUMENT_NODE?!1:t?$u(t,n):!0}function wo(e){return!!e.changedTouches}function fv(e){e===void 0&&(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)}function Du(e,n){return!!(e.nodeName==="IFRAME"&&n.getMeta(e))}function Lu(e,n){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&n.getMeta(e))}function So(e){return e?$(e,Xd)&&"shadowRoot"in e?!!e.shadowRoot:!!U.shadowRoot(e):!1}var hv=function(){function e(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}var n=e.prototype;return n.getId=function(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1},n.has=function(t){return this.styleIDMap.has(t)},n.add=function(t,r){if(this.has(t))return this.getId(t);var o;return r===void 0?o=this.id++:o=r,this.styleIDMap.set(t,o),this.idStyleMap.set(o,t),o},n.getStyle=function(t){return this.idStyleMap.get(t)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},e}();function Fu(e){var n,i=null;return"getRootNode"in e&&((n=U.getRootNode(e))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&U.host(U.getRootNode(e))&&(i=U.host(U.getRootNode(e))),i}function pv(e){for(var n=e,i;i=Fu(n);)n=i;return n}function dv(e){var n=e.ownerDocument;if(!n)return!1;var i=pv(e);return U.contains(n,i)}function Uu(e){var n=e.ownerDocument;return n?U.contains(n,e)||dv(e):!1}var B=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(B||{}),T=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(T||{}),Ce=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(Ce||{}),Ye=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Ye||{}),Wt=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Wt||{}),qt=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(qt||{}),Bu=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Bu||{});function zu(e){return"__ln"in e}var vv=function(){function e(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}var n=e.prototype;return n.get=function(t){if(t>=this.length)throw new Error("Position outside of list range");for(var r=this.head,o=0;o<t;o++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(t){var r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&zu(t.previousSibling)){var o=t.previousSibling.__ln.next;r.next=o,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,o&&(o.previous=r)}else if(t.nextSibling&&zu(t.nextSibling)&&t.nextSibling.__ln.previous){var s=t.nextSibling.__ln.previous;r.previous=s,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(t){var 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--)},e}(),Wu=function(e,n){return e+"@"+n},gv=function(){function e(){var i=this;I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",function(t){t.forEach(i.processMutation),i.emit()}),I(this,"emit",function(){if(!(i.frozen||i.locked)){for(var t=[],r=new Set,o=new vv,s=function(M){for(var L=M,K=ur;K===ur;)L=L&&L.nextSibling,K=L&&i.mirror.getId(L);return K},a=function(M){var L=U.parentNode(M);if(!(!L||!Uu(M))){var K=!1;if(M.nodeType===Node.TEXT_NODE){var xe=L.tagName;if(xe==="TEXTAREA")return;xe==="STYLE"&&i.addedSet.has(L)&&(K=!0)}var J=sr(L)?i.mirror.getId(Fu(M)):i.mirror.getId(L),Re=s(M);if(J===-1||Re===-1)return o.addNode(M);var Se=Pt(M,{doc:i.doc,mirror:i.mirror,blockClass:i.blockClass,blockSelector:i.blockSelector,maskTextClass:i.maskTextClass,maskTextSelector:i.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:i.inlineStylesheet,maskInputOptions:i.maskInputOptions,maskTextFn:i.maskTextFn,maskInputFn:i.maskInputFn,slimDOMOptions:i.slimDOMOptions,dataURLOptions:i.dataURLOptions,recordCanvas:i.recordCanvas,inlineImages:i.inlineImages,onSerialize:function(se){Du(se,i.mirror)&&i.iframeManager.addIframe(se),Lu(se,i.mirror)&&i.stylesheetManager.trackLinkElement(se),So(M)&&i.shadowDomManager.addShadowRoot(U.shadowRoot(M),i.doc)},onIframeLoad:function(se,me){i.iframeManager.attachIframe(se,me),i.shadowDomManager.observeAttachShadow(se)},onStylesheetLoad:function(se,me){i.stylesheetManager.attachLinkElement(se,me)},cssCaptured:K});Se&&(t.push({parentId:J,nextId:Re,node:Se}),r.add(Se.id))}};i.mapRemoves.length;)i.mirror.removeNodeFromMap(i.mapRemoves.shift());for(var u=x(i.movedSet),c;!(c=u()).done;){var l=c.value;qu(i.removesSubTreeCache,l,i.mirror)&&!i.movedSet.has(U.parentNode(l))||a(l)}for(var f=x(i.addedSet),p;!(p=f()).done;){var g=p.value;!Gu(i.droppedSet,g)&&!qu(i.removesSubTreeCache,g,i.mirror)||Gu(i.movedSet,g)?a(g):i.droppedSet.add(g)}for(var v=null;o.length;){var y=null;if(v){var d=i.mirror.getId(U.parentNode(v.value)),m=s(v.value);d!==-1&&m!==-1&&(y=v)}if(!y)for(var _=o.tail;_;){var w=_;if(_=_.previous,w){var S=i.mirror.getId(U.parentNode(w.value)),C=s(w.value);if(C===-1)continue;if(S!==-1){y=w;break}else{var O=w.value,R=U.parentNode(O);if(R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=U.host(R),P=i.mirror.getId(k);if(P!==-1){y=w;break}}}}}if(!y){for(;o.head;)o.removeNode(o.head.value);break}v=y.previous,o.removeNode(y.value),a(y.value)}var V={texts:i.texts.map(function(M){var L=M.node,K=U.parentNode(L);return K&&K.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(K),{id:i.mirror.getId(L),value:M.value}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return i.mirror.has(M.id)}),attributes:i.attributes.map(function(M){var L=M.attributes;if(typeof L.style=="string"){var K=JSON.stringify(M.styleDiff),xe=JSON.stringify(M._unchangedStyles);K.length<L.style.length&&(K+xe).split("var(").length===L.style.split("var(").length&&(L.style=M.styleDiff)}return{id:i.mirror.getId(M.node),attributes:L}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return i.mirror.has(M.id)}),removes:i.removes,adds:t};!V.texts.length&&!V.attributes.length&&!V.removes.length&&!V.adds.length||(i.texts=[],i.attributes=[],i.attributeMap=new WeakMap,i.removes=[],i.addedSet=new Set,i.movedSet=new Set,i.droppedSet=new Set,i.removesSubTreeCache=new Set,i.movedMap={},i.mutationCb(V))}}),I(this,"genTextAreaValueMutation",function(t){var r=i.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(t,r)),r.attributes.value=Array.from(U.childNodes(t),function(o){return U.textContent(o)||""}).join("")}),I(this,"processMutation",function(t){if(!bo(t.target,i.mirror,i.slimDOMOptions))switch(t.type){case"characterData":{var r=U.textContent(t.target);!we(t.target,i.blockClass,i.blockSelector,!1)&&r!==t.oldValue&&i.texts.push({value:Ms(t.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Nu(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{var o=t.target,s=t.attributeName,a=t.target.getAttribute(s);if(s==="value"){var u=ci(o);a=ui({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(we(t.target,i.blockClass,i.blockSelector,!1)||a===t.oldValue)return;var c=i.attributeMap.get(t.target);if(o.tagName==="IFRAME"&&s==="src"&&!i.keepIframeSrcFn(a))if(!o.contentDocument)s="rr_src";else return;if(c||(c={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(t.target,c)),s==="type"&&o.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&o.setAttribute("data-rr-is-password","true"),!As(o.tagName,s))if(c.attributes[s]=Rs(i.doc,vt(o.tagName),vt(s),a),s==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch(w){i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(var f=x(Array.from(o.style)),p;!(p=f()).done;){var g=p.value,v=o.style.getPropertyValue(g),y=o.style.getPropertyPriority(g);v!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=v:c.styleDiff[g]=[v,y]:c._unchangedStyles[g]=[v,y]}for(var d=x(Array.from(l.style)),m;!(m=d()).done;){var _=m.value;o.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else s==="open"&&o.tagName==="DIALOG"&&(o.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(we(t.target,i.blockClass,i.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(function(w){return i.genAdds(w,t.target)}),t.removedNodes.forEach(function(w){var S=i.mirror.getId(w),C=sr(t.target)?i.mirror.getId(U.host(t.target)):i.mirror.getId(t.target);we(t.target,i.blockClass,i.blockSelector,!1)||bo(w,i.mirror,i.slimDOMOptions)||!lv(w,i.mirror)||(i.addedSet.has(w)?(Co(i.addedSet,w),i.droppedSet.add(w)):i.addedSet.has(t.target)&&S===-1||$u(t.target,i.mirror)||(i.movedSet.has(w)&&i.movedMap[Wu(S,C)]?Co(i.movedSet,w):(i.removes.push({parentId:C,id:S,isShadow:sr(t.target)&&ar(t.target)?!0:void 0}),mv(w,i.removesSubTreeCache))),i.mapRemoves.push(w))});break}}}),I(this,"genAdds",function(t,r){if(!i.processedNodeManager.inOtherBuffer(t,i)&&!(i.addedSet.has(t)||i.movedSet.has(t))){if(i.mirror.hasNode(t)){if(bo(t,i.mirror,i.slimDOMOptions))return;i.movedSet.add(t);var o=null;r&&i.mirror.hasNode(r)&&(o=i.mirror.getId(r)),o&&o!==-1&&(i.movedMap[Wu(i.mirror.getId(t),o)]=!0)}else i.addedSet.add(t),i.droppedSet.delete(t);we(t,i.blockClass,i.blockSelector,!1)||(U.childNodes(t).forEach(function(s){return i.genAdds(s)}),So(t)&&U.childNodes(U.shadowRoot(t)).forEach(function(s){i.processedNodeManager.add(s,i),i.genAdds(s,t)}))}})}var n=e.prototype;return n.init=function(t){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(o){r[o]=t[o]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function Co(e,n){e.delete(n),U.childNodes(n).forEach(function(i){return Co(e,i)})}function mv(e,n){for(var i=[e];i.length;){var t=i.pop();n.has(t)||(n.add(t),U.childNodes(t).forEach(function(r){return i.push(r)}))}}function qu(e,n,i){return e.size===0?!1:yv(e,n)}function yv(e,n,i){var t=U.parentNode(n);return t?e.has(t):!1}function Gu(e,n){return e.size===0?!1:Vu(e,n)}function Vu(e,n){var i=U.parentNode(n);return i?e.has(i)?!0:Vu(e,i):!1}var Ir;function _v(e){Ir=e}function bv(){Ir=void 0}var W=function(e){if(!Ir)return e;var n=function(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];try{return e.apply(void 0,[].concat(t))}catch(o){if(Ir&&Ir(o)===!0)return;throw o}};return n},yt=[];function Er(e){try{if("composedPath"in e){var n=e.composedPath();if(n.length)return n[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(i){}return e&&e.target}function ju(e,n){var i=new gv;yt.push(i),i.init(e);var t=new(Ru())(W(i.processMutations.bind(i)));return t.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),t}function wv(e){var n=e.mousemoveCb,i=e.sampling,t=e.doc,r=e.mirror;if(i.mousemove===!1)return function(){};var o=typeof i.mousemove=="number"?i.mousemove:50,s=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=Cr(W(function(p){var g=Date.now()-u;n(a.map(function(v){return v.timeOffset-=g,v}),p),a=[],u=null}),s),l=W(Cr(W(function(p){var g=Er(p),v=wo(p)?p.changedTouches[0]:p,y=v.clientX,d=v.clientY;u||(u=Pn()),a.push({x:y,y:d,id:r.getId(g),timeOffset:Pn()-u}),c(typeof DragEvent!="undefined"&&$(p,DragEvent)?T.Drag:$(p,MouseEvent)?T.MouseMove:T.TouchMove)}),o,{trailing:!1})),f=[be("mousemove",l,t),be("touchmove",l,t),be("drag",l,t)];return W(function(){f.forEach(function(p){return p()})})}function Sv(e){var n=e.mouseInteractionCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],c=null,l=function(f){return function(p){var g=Er(p);if(!we(g,r,o,!0)){var v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=Ye.Mouse;break;case"touch":v=Ye.Touch;break;case"pen":v=Ye.Pen;break}v===Ye.Touch?Ce[f]===Ce.MouseDown?y="TouchStart":Ce[f]===Ce.MouseUp&&(y="TouchEnd"):Ye.Pen}else wo(p)&&(v=Ye.Touch);v!==null?(c=v,(y.startsWith("Touch")&&v===Ye.Touch||y.startsWith("Mouse")&&v===Ye.Mouse)&&(v=null)):Ce[f]===Ce.Click&&(v=c,c=null);var d=wo(p)?p.changedTouches[0]:p;if(d){var m=t.getId(g),_=d.clientX,w=d.clientY;W(n)(q({type:Ce[y],id:m,x:_,y:w},v!==null&&{pointerType:v}))}}}};return Object.keys(Ce).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var p=vt(f),g=l(f);if(window.PointerEvent)switch(Ce[f]){case Ce.MouseDown:case Ce.MouseUp:p=p.replace("mouse","pointer");break;case Ce.TouchStart:case Ce.TouchEnd:return}u.push(be(p,g,i))}),W(function(){u.forEach(function(f){return f()})})}function Yu(e){var n=e.scrollCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling,a=W(Cr(W(function(u){var c=Er(u);if(!(!c||we(c,r,o,!0))){var l=t.getId(c);if(c===i&&i.defaultView){var f=Mu(i.defaultView);n({id:l,x:f.left,y:f.top})}else n({id:l,x:c.scrollLeft,y:c.scrollTop})}}),s.scroll||100));return be("scroll",a,i)}function Cv(e,n){var i=e.viewportResizeCb,t=n.win,r=-1,o=-1,s=W(Cr(W(function(){var a=Tu(),u=Pu();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return be("resize",s,t)}var Iv=["INPUT","TEXTAREA","SELECT"],Hu=new WeakMap;function Ev(e){var n=e.inputCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,u=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,f=e.userTriggeredOnInput;function p(S){var C=Er(S),O=S.isTrusted,R=C&&C.tagName;if(C&&R==="OPTION"&&(C=U.parentElement(C)),!(!C||!R||Iv.indexOf(R)<0||we(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var k=C.value,P=!1,V=ci(C)||"";V==="radio"||V==="checkbox"?P=C.checked:(u[R.toLowerCase()]||u[V])&&(k=ui({element:C,maskInputOptions:u,tagName:R,type:V,value:k,maskInputFn:c})),g(C,f?{text:k,isChecked:P,userTriggered:O}:{text:k,isChecked:P});var M=C.name;V==="radio"&&M&&P&&i.querySelectorAll('input[type="radio"][name="'+M+'"]').forEach(function(L){if(L!==C){var K=L.value;g(L,f?{text:K,isChecked:!P,userTriggered:!1}:{text:K,isChecked:!P})}})}}function g(S,C){var O=Hu.get(S);if(!O||O.text!==C.text||O.isChecked!==C.isChecked){Hu.set(S,C);var R=t.getId(S);W(n)(q({},C,{id:R}))}}var v=l.input==="last"?["change"]:["input","change"],y=v.map(function(S){return be(S,W(p),i)}),d=i.defaultView;if(!d)return function(){y.forEach(function(S){return S()})};var m=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),_=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];if(m&&m.set){var w;(w=y).push.apply(w,[].concat(_.map(function(S){return Tn(S[0],S[1],{set:function(){W(p)({target:this,isTrusted:!1})}},!1,d)})))}return W(function(){y.forEach(function(S){return S()})})}function Nn(e){var n=[];function i(t,r){if($n("CSSGroupingRule")&&$(t.parentRule,CSSGroupingRule)||$n("CSSMediaRule")&&$(t.parentRule,CSSMediaRule)||$n("CSSSupportsRule")&&$(t.parentRule,CSSSupportsRule)||$n("CSSConditionRule")&&$(t.parentRule,CSSConditionRule)){var o=Array.from(t.parentRule.cssRules),s=o.indexOf(t);r.unshift(s)}else if(t.parentStyleSheet){var a=Array.from(t.parentStyleSheet.cssRules),u=a.indexOf(t);r.unshift(u)}return r}return i(e,n)}function nt(e,n,i){var t,r;return e?(e.ownerNode?t=n.getId(e.ownerNode):r=i.getId(e),{styleId:r,id:t}):{}}function xv(e,n){var i=e.styleSheetRuleCb,t=e.mirror,r=e.stylesheetManager,o=n.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:W(function(p,g,v){var y=v[0],d=v[1],m=nt(g,t,r.styleMirror),_=m.id,w=m.styleId;return(_&&_!==-1||w&&w!==-1)&&i({id:_,styleId:w,adds:[{rule:y,index:d}]}),p.apply(g,v)})}),o.CSSStyleSheet.prototype.addRule=function(p,g,v){v===void 0&&(v=this.cssRules.length);var y=p+" { "+g+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[y,v])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:W(function(p,g,v){var y=v[0],d=nt(g,t,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),p.apply(g,v)})}),o.CSSStyleSheet.prototype.removeRule=function(p){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[p])};var u;o.CSSStyleSheet.prototype.replace&&(u=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:W(function(p,g,v){var y=v[0],d=nt(g,t,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),p.apply(g,v)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:W(function(p,g,v){var y=v[0],d=nt(g,t,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),p.apply(g,v)})}));var l={};Dn("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Dn("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Dn("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Dn("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(p){var g=p[0],v=p[1];f[g]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(f[g].insertRule,{apply:W(function(y,d,m){var _=m[0],w=m[1],S=nt(d.parentStyleSheet,t,r.styleMirror),C=S.id,O=S.styleId;return(C&&C!==-1||O&&O!==-1)&&i({id:C,styleId:O,adds:[{rule:_,index:[].concat(Nn(d),[w||0])}]}),y.apply(d,m)})}),v.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:W(function(y,d,m){var _=m[0],w=nt(d.parentStyleSheet,t,r.styleMirror),S=w.id,C=w.styleId;return(S&&S!==-1||C&&C!==-1)&&i({id:S,styleId:C,removes:[{index:[].concat(Nn(d),[_])}]}),y.apply(d,m)})})}),W(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,u&&(o.CSSStyleSheet.prototype.replace=u),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(p){var g=p[0],v=p[1];v.prototype.insertRule=f[g].insertRule,v.prototype.deleteRule=f[g].deleteRule})})}function Ku(e,n){var i=e.mirror,t=e.stylesheetManager,r,o,s,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(U.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(o=n.ownerDocument)==null?void 0:o.defaultView)==null?void 0:s.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var f;return(f=c.get)==null?void 0:f.call(this)},set:function(f){var p,g=(p=c.set)==null?void 0:p.call(this,f);if(a!==null&&a!==-1)try{t.adoptStyleSheets(f,a)}catch(v){}return g}}),W(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function Ov(e,n){var i=e.styleDeclarationCb,t=e.mirror,r=e.ignoreCSSAttributes,o=e.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:W(function(c,l,f){var p,g=f[0],v=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,v,y]);var d=nt((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:v,priority:y},index:Nn(l.parentRule)}),c.apply(l,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:W(function(c,l,f){var p,g=f[0];if(r.has(g))return u.apply(l,[g]);var v=nt((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),y=v.id,d=v.styleId;return(y&&y!==-1||d&&d!==-1)&&i({id:y,styleId:d,remove:{property:g},index:Nn(l.parentRule)}),c.apply(l,f)})}),W(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function kv(e){var n=e.mediaInteractionCb,i=e.blockClass,t=e.blockSelector,r=e.mirror,o=e.sampling,s=e.doc,a=W(function(c){return Cr(W(function(l){var f=Er(l);if(!(!f||we(f,i,t,!0))){var p=f.currentTime,g=f.volume,v=f.muted,y=f.playbackRate,d=f.loop;n({type:c,id:r.getId(f),currentTime:p,volume:g,muted:v,playbackRate:y,loop:d})}}),o.media||500)}),u=[be("play",a(qt.Play),s),be("pause",a(qt.Pause),s),be("seeked",a(qt.Seeked),s),be("volumechange",a(qt.VolumeChange),s),be("ratechange",a(qt.RateChange),s)];return W(function(){u.forEach(function(c){return c()})})}function Rv(e){var n=e.fontCb,i=e.doc,t=i.defaultView;if(!t)return function(){};var r=[],o=new WeakMap,s=t.FontFace;t.FontFace=function(c,l,f){var p=new s(c,l,f);return o.set(p,{family:c,buffer:typeof l!="string",descriptors:f,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),p};var a=zt(i.fonts,"add",function(u){return function(c){return setTimeout(W(function(){var l=o.get(c);l&&(n(l),o.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){t.FontFace=s}),r.push(a),W(function(){r.forEach(function(u){return u()})})}function Av(e){var n=e.doc,i=e.mirror,t=e.blockClass,r=e.blockSelector,o=e.selectionCb,s=!0,a=W(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var c=[],l=u.rangeCount||0,f=0;f<l;f++){var p=u.getRangeAt(f),g=p.startContainer,v=p.startOffset,y=p.endContainer,d=p.endOffset,m=we(g,t,r,!0)||we(y,t,r,!0);m||c.push({start:i.getId(g),startOffset:v,end:i.getId(y),endOffset:d})}o({ranges:c})}});return a(),be("selectionchange",a)}function Mv(e){var n=e.doc,i=e.customElementCb,t=n.defaultView;if(!t||!t.customElements)return function(){};var r=zt(t.customElements,"define",function(o){return function(s,a,u){try{i({define:{name:s}})}catch(c){console.warn("Custom element callback failed for "+s)}return o.apply(this,[s,a,u])}});return r}function Tv(e,n){var i=e.mutationCb,t=e.mousemoveCb,r=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,f=e.canvasMutationCb,p=e.fontCb,g=e.selectionCb,v=e.customElementCb;e.mutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(d))}i.apply(void 0,[].concat(d))},e.mousemoveCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(d))}t.apply(void 0,[].concat(d))},e.mouseInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(d))}r.apply(void 0,[].concat(d))},e.scrollCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(d))}o.apply(void 0,[].concat(d))},e.viewportResizeCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(d))}s.apply(void 0,[].concat(d))},e.inputCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(d))}a.apply(void 0,[].concat(d))},e.mediaInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(d))}u.apply(void 0,[].concat(d))},e.styleSheetRuleCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(d))}c.apply(void 0,[].concat(d))},e.styleDeclarationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(d))}l.apply(void 0,[].concat(d))},e.canvasMutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(d))}f.apply(void 0,[].concat(d))},e.fontCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(d))}p.apply(void 0,[].concat(d))},e.selectionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(d))}g.apply(void 0,[].concat(d))},e.customElementCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(d))}v.apply(void 0,[].concat(d))}}function Pv(e,n){n===void 0&&(n={});var i=e.doc.defaultView;if(!i)return function(){};Tv(e,n);var t;e.recordDOM&&(t=ju(e,e.doc));var r=wv(e),o=Sv(e),s=Yu(e),a=Cv(e,{win:i}),u=Ev(e),c=kv(e),l=function(){},f=function(){},p=function(){},g=function(){};e.recordDOM&&(l=xv(e,{win:i}),f=Ku(e,e.doc),p=Ov(e,{win:i}),e.collectFonts&&(g=Rv(e)));for(var v=Av(e),y=Mv(e),d=[],m=x(e.plugins),_;!(_=m()).done;){var w=_.value;d.push(w.observer(w.callback,i,w.options))}return W(function(){yt.forEach(function(S){return S.reset()}),t==null||t.disconnect(),r(),o(),s(),a(),u(),c(),l(),f(),p(),g(),v(),y(),d.forEach(function(S){return S()})})}function $n(e){return typeof window[e]!="undefined"}function Dn(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var Ju=function(){function e(i){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=e.prototype;return n.getId=function(t,r,o,s){var a=o||this.getIdToRemoteIdMap(t),u=s||this.getRemoteIdToIdMap(t),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(t,r){var o=this,s=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return r.map(function(u){return o.getId(t,u,s,a)})},n.getRemoteId=function(t,r,o){var s=o||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(t,r){var o=this,s=this.getRemoteIdToIdMap(t);return r.map(function(a){return o.getRemoteId(t,a,s)})},n.reset=function(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)},n.getIdToRemoteIdMap=function(t){var r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r},n.getRemoteIdToIdMap=function(t){var r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r},e}(),Nv=function(){function e(i){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new Ju(xs)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ju(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=e.prototype;return n.addIframe=function(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)},n.addLoadListener=function(t){this.loadListener=t},n.attachIframe=function(t,r){var o,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=t.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))},n.handleMessage=function(t){var r=t;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var o=t.source;if(o){var s=this.crossOriginIframeMap.get(t.source);if(s){var a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(t,r){var o=this,s;switch(r.type){case B.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:B.IncrementalSnapshot,data:{source:T.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case B.Meta:case B.Load:case B.DomContentLoaded:return!1;case B.Plugin:return r;case B.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case B.IncrementalSnapshot:switch(r.data.source){case T.Mutation:return r.data.adds.forEach(function(u){o.replaceIds(u,t,["parentId","nextId","previousId"]),o.replaceIdOnNode(u.node,t);var c=o.crossOriginIframeRootIdMap.get(t);c&&o.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){o.replaceIds(u,t,["parentId","id"])}),r.data.attributes.forEach(function(u){o.replaceIds(u,t,["id"])}),r.data.texts.forEach(function(u){o.replaceIds(u,t,["id"])}),r;case T.Drag:case T.TouchMove:case T.MouseMove:return r.data.positions.forEach(function(u){o.replaceIds(u,t,["id"])}),r;case T.ViewportResize:return!1;case T.MediaInteraction:case T.MouseInteraction:case T.Scroll:case T.CanvasMutation:case T.Input:return this.replaceIds(r.data,t,["id"]),r;case T.StyleSheetRule:case T.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case T.Font:return r;case T.Selection:return r.data.ranges.forEach(function(u){o.replaceIds(u,t,["start","end"])}),r;case T.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){o.replaceStyleIds(u,t,["styleId"])}),r}}return!1},n.replace=function(t,r,o,s){for(var a=x(s),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=t.getIds(o,r[c]):r[c]=t.getId(o,r[c]))}return r},n.replaceIds=function(t,r,o){return this.replace(this.crossOriginIframeMirror,t,r,o)},n.replaceStyleIds=function(t,r,o){return this.replace(this.crossOriginIframeStyleMirror,t,r,o)},n.replaceIdOnNode=function(t,r){var o=this;this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(function(s){o.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(t,r){var o=this;t.type!==Bu.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},e}(),$v=function(){function e(i){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=e.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(t,r){var o=this;if(ar(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var s=ju(q({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Yu(q({},this.bypassOptions,{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(function(){t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,o.mirror.getId(U.host(t))),o.restoreHandlers.push(Ku({mirror:o.mirror,stylesheetManager:o.bypassOptions.stylesheetManager},t))},0)}},n.observeAttachShadow=function(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)},n.patchAttachShadow=function(t,r){var o=this;this.restoreHandlers.push(zt(t.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=U.shadowRoot(this);return c&&Uu(this)&&o.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(t){try{t()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),Gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Dv=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ln=0;Ln<Gt.length;Ln++)Dv[Gt.charCodeAt(Ln)]=Ln;var Lv=function(n){var i=new Uint8Array(n),t,r=i.length,o="";for(t=0;t<r;t+=3)o+=Gt[i[t]>>2],o+=Gt[(i[t]&3)<<4|i[t+1]>>4],o+=Gt[(i[t+1]&15)<<2|i[t+2]>>6],o+=Gt[i[t+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},Xu=new Map;function Fv(e,n){var i=Xu.get(e);return i||(i=new Map,Xu.set(e,i)),i.has(n)||i.set(n,[]),i.get(n)}var Zu=function(e,n,i){if(!(!e||!(ec(e,n)||(typeof e=="undefined"?"undefined":F(e))==="object"))){var t=e.constructor.name,r=Fv(i,t),o=r.indexOf(e);return o===-1&&(o=r.length,r.push(e)),o}};function Fn(e,n,i){if($(e,Array))return e.map(function(v){return Fn(v,n,i)});if(e===null)return e;if($(e,Float32Array)||$(e,Float64Array)||$(e,Int32Array)||$(e,Uint32Array)||$(e,Uint8Array)||$(e,Uint16Array)||$(e,Int16Array)||$(e,Int8Array)||$(e,Uint8ClampedArray)){var t=e.constructor.name;return{rr_type:t,args:[Object.values(e)]}}else if($(e,ArrayBuffer)){var r=e.constructor.name,o=Lv(e);return{rr_type:r,base64:o}}else if($(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[Fn(e.buffer,n,i),e.byteOffset,e.byteLength]}}else if($(e,HTMLImageElement)){var a=e.constructor.name,u=e.src;return{rr_type:a,src:u}}else if($(e,HTMLCanvasElement)){var c="HTMLImageElement",l=e.toDataURL();return{rr_type:c,src:l}}else if($(e,ImageData)){var f=e.constructor.name;return{rr_type:f,args:[Fn(e.data,n,i),e.width,e.height]}}else if(ec(e,n)||(typeof e=="undefined"?"undefined":F(e))==="object"){var p=e.constructor.name,g=Zu(e,n,i);return{rr_type:p,index:g}}return e}var Qu=function(e,n,i){return e.map(function(t){return Fn(t,n,i)})},ec=function(e,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],t=i.filter(function(r){return typeof n[r]=="function"});return!!t.find(function(r){return $(e,n[r])})};function Uv(e,n,i,t){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=zt(n.CanvasRenderingContext2D.prototype,c,function(p){return function(){for(var g=this,v=arguments.length,y=new Array(v),d=0;d<v;d++)y[d]=arguments[d];return we(this.canvas,i,t,!0)||setTimeout(function(){var m=Qu(y,n,g);e(g.canvas,{type:Wt["2D"],property:c,args:m})},0),p.apply(this,y)}});o.push(l)}catch(p){var f=Tn(n.CanvasRenderingContext2D.prototype,c,{set:function(v){e(this.canvas,{type:Wt["2D"],property:c,args:[v],setter:!0})}});o.push(f)}},o=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=x(s),u;!(u=a()).done;)r();return function(){o.forEach(function(c){return c()})}}function Bv(e){return e==="experimental-webgl"?"webgl":e}function tc(e,n,i,t){var r=[];try{var o=zt(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];if(!we(this,n,i,!0)){var f=Bv(a);if("__context"in this||(this.__context=f),t&&["webgl","webgl2"].includes(f))if(c[0]&&F(c[0])==="object"){var p=c[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],c))}});r.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function rc(e,n,i,t,r,o){for(var s=function(){var f=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof e[f]!="function")return"continue";var p=zt(e,f,function(v){return function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];var _=v.apply(this,d);if(Zu(_,o,this),"tagName"in this.canvas&&!we(this.canvas,t,r,!0)){var w=Qu(d,o,this),S={type:n,property:f,args:w};i(this.canvas,S)}return _}});a.push(p)}catch(v){var g=Tn(e,f,{set:function(d){i(this.canvas,{type:n,property:f,args:[d],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(e),c=x(u),l;!(l=c()).done;)s();return a}function zv(e,n,i,t){var r,o=[];if((r=o).push.apply(r,[].concat(rc(n.WebGLRenderingContext.prototype,Wt.WebGL,e,i,t,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=o).push.apply(s,[].concat(rc(n.WebGL2RenderingContext.prototype,Wt.WebGL2,e,i,t,n)))}return function(){o.forEach(function(a){return a()})}}var nc="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Wv=function(e){return Uint8Array.from(atob(e),function(n){return n.charCodeAt(0)})},ic=typeof window!="undefined"&&window.Blob&&new Blob([Wv(nc)],{type:"text/javascript;charset=utf-8"});function qv(e){var n;try{if(n=ic&&(window.URL||window.webkitURL).createObjectURL(ic),!n)throw"";var i=new Worker(n,{name:e==null?void 0:e.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch(t){return new Worker("data:text/javascript;base64,"+nc,{name:e==null?void 0:e.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var Gv=function(){function e(i){var t=this;I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",function(f,p){var g=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;(g||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(f)||t.pendingCanvasMutations.set(f,[]),t.pendingCanvasMutations.get(f).push(p)});var r=i.sampling,o=r===void 0?"all":r,s=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,l=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&o==="all"&&this.initCanvasMutationObserver(s,a,u),c&&typeof o=="number"&&this.initCanvasFPSObserver(o,s,a,u,{dataURLOptions:l})}var n=e.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(t,r,o,s,a){var u=this,c=tc(r,o,s,!0),l=new Map,f=new qv;f.onmessage=function(m){var _=m.data.id;if(l.set(_,!1),"base64"in m.data){var w=m.data,S=w.base64,C=w.type,O=w.width,R=w.height;u.mutationCb({id:_,type:Wt["2D"],commands:[{property:"clearRect",args:[0,0,O,R]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var p=1e3/t,g=0,v,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){we(_,o,s,!0)||m.push(_)}),m},d=function(m){if(g&&m-g<p){v=requestAnimationFrame(d);return}g=m;var _=u;y().forEach(ri(function(w){var S,C,O,R;return or(this,function(k){switch(k.label){case 0:return C=_.mirror.getId(w),l.get(C)?[2]:w.width===0||w.height===0?[2]:(l.set(C,!0),["webgl","webgl2"].includes(w.__context)&&(O=w.getContext(w.__context),((S=O==null?void 0:O.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&O.clear(O.COLOR_BUFFER_BIT)),[4,createImageBitmap(w)]);case 1:return R=k.sent(),f.postMessage({id:C,bitmap:R,width:w.width,height:w.height,dataURLOptions:a.dataURLOptions},[R]),[2]}})})),v=requestAnimationFrame(d)};v=requestAnimationFrame(d),this.resetObservers=function(){c(),cancelAnimationFrame(v)}},n.initCanvasMutationObserver=function(t,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=tc(t,r,o,!1),a=Uv(this.processMutation.bind(this),t,r,o),u=zv(this.processMutation.bind(this),t,r,o);this.resetObservers=function(){s(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var t=this;requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var t=this,r=function(o){t.rafStamps.latestId=o,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var t=this;this.pendingCanvasMutations.forEach(function(r,o){var s=t.mirror.getId(o);t.flushPendingCanvasMutationFor(o,s)}),requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(t,r){if(!(this.frozen||this.locked)){var o=this.pendingCanvasMutations.get(t);if(!(!o||r===-1)){var s=o.map(function(u){u.type;var c=nr(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(t)}}},e}(),Vv=function(){function e(i){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new hv),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.adoptedStyleSheetCb}var n=e.prototype;return n.attachLinkElement=function(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)},n.trackLinkElement=function(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))},n.adoptStyleSheets=function(t,r){var o,s=function(){var f=l.value,p=void 0;o.styleMirror.has(f)?p=o.styleMirror.getId(f):(p=o.styleMirror.add(f),u.push({styleId:p,rules:Array.from(f.rules||CSSRule,function(g,v){return{rule:Ss(g,f.href),index:v}})})),a.styleIds.push(p)};if(t.length!==0){for(var a={id:r,styleIds:[]},u=[],c=x(t),l;!(l=c()).done;)o=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(t){},e}(),jv=function(){function e(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}var n=e.prototype;return n.inOtherBuffer=function(t,r){var o=this.nodeMap.get(t);return o&&Array.from(o).some(function(s){return s!==r})},n.add=function(t,r){var o=this;this.active||(this.active=!0,requestAnimationFrame(function(){o.nodeMap=new WeakMap,o.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))},n.destroy=function(){},e}(),ue,Un,Io,Bn=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var Eo=document.createElement("iframe");document.body.appendChild(Eo),Array.from=((gs=Eo.contentWindow)==null?void 0:gs.Array.from)||Array.from,document.body.removeChild(Eo)}}catch(e){console.debug("Unable to override Array.from",e)}var $e=ql();function it(e){e===void 0&&(e={});var n=e.emit,i=e.checkoutEveryNms,t=e.checkoutEveryNth,r=e.blockClass,o=r===void 0?"rr-block":r,s=e.blockSelector,a=s===void 0?null:s,u=e.ignoreClass,c=u===void 0?"rr-ignore":u,l=e.ignoreSelector,f=l===void 0?null:l,p=e.maskTextClass,g=p===void 0?"rr-mask":p,v=e.maskTextSelector,y=v===void 0?null:v,d=e.inlineStylesheet,m=d===void 0?!0:d,_=e.maskAllInputs,w=e.maskInputOptions,S=e.slimDOMOptions,C=e.maskInputFn,O=e.maskTextFn,R=e.hooks,k=e.packFn,P=e.sampling,V=P===void 0?{}:P,M=e.dataURLOptions,L=M===void 0?{}:M,K=e.mousemoveWait,xe=e.recordDOM,J=xe===void 0?!0:xe,Re=e.recordCanvas,Se=Re===void 0?!1:Re,se=e.recordCrossOriginIframes,me=se===void 0?!1:se,Ae=e.recordAfter,St=Ae===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":Ae,Ge=e.userTriggeredOnInput,Qt=Ge===void 0?!1:Ge,Me=e.collectFonts,Ct=Me===void 0?!1:Me,H=e.inlineImages,It=H===void 0?!1:H,Et=e.plugins,er=e.keepIframeSrcFn,$r=er===void 0?function(){return!1}:er,Dr=e.ignoreCSSAttributes,us=Dr===void 0?new Set([]):Dr,ei=e.errorHandler;_v(ei);var dt=me?window.parent===window:!0,xt=!1;if(!dt)try{window.parent.document&&(xt=!1)}catch(Q){xt=!0}if(dt&&!n)throw new Error("emit function is required");if(!dt&&!xt)return function(){};K!==void 0&&V.mousemove===void 0&&(V.mousemove=K),$e.reset();var tr=_===!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}:w!==void 0?w:{password:!0},Lr=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all",headTitleMutations:S==="all"}:S||{};fv();var rr,Ot=0,Ze=function(Q){for(var Ne=x(Et||[]),A;!(A=Ne()).done;){var ae=A.value;ae.eventProcessor&&(Q=ae.eventProcessor(Q))}return k&&!xt&&(Q=k(Q)),Q};ue=function(Q,Ne){var A,ae=Q;if(ae.timestamp=Pn(),(A=yt[0])!=null&&A.isFrozen()&&ae.type!==B.FullSnapshot&&!(ae.type===B.IncrementalSnapshot&&ae.data.source===T.Mutation)&&yt.forEach(function(Qg){return Qg.unfreeze()}),dt)n==null||n(Ze(ae),Ne);else if(xt){var Jg={type:"rrweb",event:Ze(ae),origin:window.location.origin,isCheckout:Ne};window.parent.postMessage(Jg,"*")}if(ae.type===B.FullSnapshot)rr=ae,Ot=0;else if(ae.type===B.IncrementalSnapshot){if(ae.data.source===T.Mutation&&ae.data.isAttachIframe)return;Ot++;var Xg=t&&Ot>=t,Zg=i&&ae.timestamp-rr.timestamp>i;(Xg||Zg)&&Un(!0)}};for(var kt=function(Q){ue({type:B.IncrementalSnapshot,data:q({source:T.Mutation},Q)})},pl=function(Q){return ue({type:B.IncrementalSnapshot,data:q({source:T.Scroll},Q)})},dl=function(Q){return ue({type:B.IncrementalSnapshot,data:q({source:T.CanvasMutation},Q)})},Hg=function(Q){return ue({type:B.IncrementalSnapshot,data:q({source:T.AdoptedStyleSheet},Q)})},Rt=new Vv({mutationCb:kt,adoptedStyleSheetCb:Hg}),At=new Nv({mirror:$e,mutationCb:kt,stylesheetManager:Rt,recordCrossOriginIframes:me,wrappedEmit:ue}),Kg=x(Et||[]),vl;!(vl=Kg()).done;){var gl=vl.value;gl.getMirror&&gl.getMirror({nodeMirror:$e,crossOriginIframeMirror:At.crossOriginIframeMirror,crossOriginIframeStyleMirror:At.crossOriginIframeStyleMirror})}var cs=new jv;Io=new Gv({recordCanvas:Se,mutationCb:dl,win:window,blockClass:o,blockSelector:a,mirror:$e,sampling:V.canvas,dataURLOptions:L});var ti=new $v({mutationCb:kt,scrollCb:pl,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:tr,dataURLOptions:L,maskTextFn:O,maskInputFn:C,recordCanvas:Se,inlineImages:It,sampling:V,slimDOMOptions:Lr,iframeManager:At,stylesheetManager:Rt,canvasManager:Io,keepIframeSrcFn:$r,processedNodeManager:cs},mirror:$e});Un=function(Q){if(Q===void 0&&(Q=!1),!!J){ue({type:B.Meta,data:{href:window.location.href,width:Pu(),height:Tu()}},Q),Rt.reset(),ti.init(),yt.forEach(function(A){return A.lock()});var Ne=df(document,{mirror:$e,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:tr,maskTextFn:O,maskInputFn:C,slimDOM:Lr,dataURLOptions:L,recordCanvas:Se,inlineImages:It,onSerialize:function(A){Du(A,$e)&&At.addIframe(A),Lu(A,$e)&&Rt.trackLinkElement(A),So(A)&&ti.addShadowRoot(U.shadowRoot(A),document)},onIframeLoad:function(A,ae){At.attachIframe(A,ae),ti.observeAttachShadow(A)},onStylesheetLoad:function(A,ae){Rt.attachLinkElement(A,ae)},keepIframeSrcFn:$r});if(!Ne)return console.warn("Failed to snapshot the document");ue({type:B.FullSnapshot,data:{node:Ne,initialOffset:Mu(window)}},Q),yt.forEach(function(A){return A.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Rt.adoptStyleSheets(document.adoptedStyleSheets,$e.getId(document))}};try{var Fr=[],ml=function(Q){var Ne;return W(Pv)({mutationCb:kt,mousemoveCb:function(A,ae){return ue({type:B.IncrementalSnapshot,data:{source:ae,positions:A}})},mouseInteractionCb:function(A){return ue({type:B.IncrementalSnapshot,data:q({source:T.MouseInteraction},A)})},scrollCb:pl,viewportResizeCb:function(A){return ue({type:B.IncrementalSnapshot,data:q({source:T.ViewportResize},A)})},inputCb:function(A){return ue({type:B.IncrementalSnapshot,data:q({source:T.Input},A)})},mediaInteractionCb:function(A){return ue({type:B.IncrementalSnapshot,data:q({source:T.MediaInteraction},A)})},styleSheetRuleCb:function(A){return ue({type:B.IncrementalSnapshot,data:q({source:T.StyleSheetRule},A)})},styleDeclarationCb:function(A){return ue({type:B.IncrementalSnapshot,data:q({source:T.StyleDeclaration},A)})},canvasMutationCb:dl,fontCb:function(A){return ue({type:B.IncrementalSnapshot,data:q({source:T.Font},A)})},selectionCb:function(A){ue({type:B.IncrementalSnapshot,data:q({source:T.Selection},A)})},customElementCb:function(A){ue({type:B.IncrementalSnapshot,data:q({source:T.CustomElement},A)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:tr,inlineStylesheet:m,sampling:V,recordDOM:J,recordCanvas:Se,inlineImages:It,userTriggeredOnInput:Qt,collectFonts:Ct,doc:Q,maskInputFn:C,maskTextFn:O,keepIframeSrcFn:$r,blockSelector:a,slimDOMOptions:Lr,dataURLOptions:L,mirror:$e,iframeManager:At,stylesheetManager:Rt,shadowDomManager:ti,processedNodeManager:cs,canvasManager:Io,ignoreCSSAttributes:us,plugins:((Ne=Et==null?void 0:Et.filter(function(A){return A.observer}))==null?void 0:Ne.map(function(A){return{observer:A.observer,options:A.options,callback:function(ae){return ue({type:B.Plugin,data:{plugin:A.name,payload:ae}})}}}))||[]},R)};At.addLoadListener(function(Q){try{Fr.push(ml(Q.contentDocument))}catch(Ne){console.warn(Ne)}});var ls=function(){Un(),Fr.push(ml(document)),Bn=!0};return document.readyState==="interactive"||document.readyState==="complete"?ls():(Fr.push(be("DOMContentLoaded",function(){ue({type:B.DomContentLoaded,data:{}}),St==="DOMContentLoaded"&&ls()})),Fr.push(be("load",function(){ue({type:B.Load,data:{}}),St==="load"&&ls()},window))),function(){Fr.forEach(function(Q){return Q()}),cs.destroy(),Bn=!1,bv()}}catch(Q){console.warn(Q)}}it.addCustomEvent=function(e,n){if(!Bn)throw new Error("please add custom event after start recording");ue({type:B.Custom,data:{tag:e,payload:n}})},it.freezePage=function(){yt.forEach(function(e){return e.freeze()})},it.takeFullSnapshot=function(e){if(!Bn)throw new Error("please take full snapshot after start recording");Un(e)},it.mirror=$e;var oc;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(oc||(oc={})),it.addCustomEvent,it.freezePage,it.takeFullSnapshot;var sc=E.setImmediate,ot,xo,Oo,ac=Object.prototype.toString,Yv=typeof sc!="undefined"?function(n){return sc(n)}:setTimeout;try{Object.defineProperty({},"x",{}),ot=function(n,i,t,r){return Object.defineProperty(n,i,{value:t,writable:!0,configurable:r!==!1})}}catch(e){ot=function(i,t,r){return i[t]=r,i}}Oo=function(){var n,i,t;function r(o,s){this.fn=o,this.self=s,this.next=void 0}return{add:function(s,a){t=new r(s,a),i?i.next=t:n=t,i=t,t=void 0},drain:function(){var s=n;for(n=i=xo=void 0;s;)s.fn.call(s.self),s=s.next}}}();function zn(e,n){Oo.add(e,n),xo||(xo=Yv(Oo.drain))}function uc(e){var n,i=typeof e;return e!==null&&(i==="object"||i==="function")&&(n=e.then),typeof n=="function"?n:!1}function ko(){for(var e=0;e<this.chain.length;e++)Hv(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Hv(e,n,i){var t,r;try{n===!1?i.reject(e.msg):(n===!0?t=e.msg:t=n.call(void 0,e.msg),t===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=uc(t))?r.call(t,i.resolve,i.reject):i.resolve(t))}catch(o){i.reject(o)}}function cc(e){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=uc(e))?zn(function(){var t=new fc(i);try{n.call(e,function(){cc.apply(t,arguments)},function(){xr.apply(t,arguments)})}catch(r){xr.call(t,r)}}):(i.msg=e,i.state=1,i.chain.length>0&&zn(ko,i))}catch(t){xr.call(new fc(i),t)}}}function xr(e){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=e,n.state=2,n.chain.length>0&&zn(ko,n))}function lc(e,n,i,t){for(var r=0;r<n.length;r++)(function(s){e.resolve(n[s]).then(function(u){i(s,u)},t)})(r)}function fc(e){this.def=e,this.triggered=!1}function Kv(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function st(e){if(typeof e!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new Kv(this);this.then=function(t,r){var o={success:typeof t=="function"?t:!0,failure:typeof r=="function"?r:!1};return o.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");o.resolve=a,o.reject=u}),n.chain.push(o),n.state!==0&&zn(ko,n),o.promise},this.catch=function(t){return this.then(void 0,t)};try{e.call(void 0,function(t){cc.call(n,t)},function(t){xr.call(n,t)})}catch(i){xr.call(n,i)}}var hc=ot({},"constructor",st,!1);st.prototype=hc,ot(hc,"__NPO__",0,!1),ot(st,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");r(n)})}),ot(st,"reject",function(n){return new this(function(t,r){if(typeof t!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),ot(st,"all",function(n){var i=this;return ac.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;lc(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})}),ot(st,"race",function(n){var i=this;return ac.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");lc(i,n,function(a,u){r(u)},o)})});var Y;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?Y=Promise:Y=st;var De={DEBUG:!1,LIB_VERSION:"2.67.0"},Or=24*60*60*1e3,Ro=8*1e3,Wn=Array.prototype,Jv=Function.prototype,pc=Object.prototype,at=Wn.slice,kr=pc.toString,qn=pc.hasOwnProperty,he=E.console,ut=E.navigator,j=E.document,Gn=E.opera,dc=E.screen,He=ut.userAgent,Ao=Jv.bind,vc=Wn.forEach,gc=Wn.indexOf,mc=Wn.map,Xv=Array.isArray,Mo={},h={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},z={log:function(){if(De.DEBUG&&!h.isUndefined(he)&&he)try{he.log.apply(he,arguments)}catch(e){h.each(arguments,function(n){he.log(n)})}},warn:function(){if(De.DEBUG&&!h.isUndefined(he)&&he){var e=["Mixpanel warning:"].concat(h.toArray(arguments));try{he.warn.apply(he,e)}catch(n){h.each(e,function(i){he.warn(i)})}}},error:function(){if(De.DEBUG&&!h.isUndefined(he)&&he){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,e)}catch(n){h.each(e,function(i){he.error(i)})}}},critical:function(){if(!h.isUndefined(he)&&he){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,e)}catch(n){h.each(e,function(i){he.error(i)})}}}},To=function(e,n){return function(){return arguments[0]="["+n+"] "+arguments[0],e.apply(z,arguments)}},_t=function(e){return{log:To(z.log,e),error:To(z.error,e),critical:To(z.critical,e)}},Po=function(e){return function(){try{return e.apply(this,arguments)}catch(n){z.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),De.DEBUG&&z.critical(n)}}},yc=function(e){var n=e.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Po(n[i]))};h.bind=function(e,n){var i,t;if(Ao&&e.bind===Ao)return Ao.apply(e,at.call(arguments,1));if(!h.isFunction(e))throw new TypeError;return i=at.call(arguments,2),t=function(){if(!(this instanceof t))return e.apply(n,i.concat(at.call(arguments)));var r={};r.prototype=e.prototype;var o=new r;r.prototype=null;var s=e.apply(o,i.concat(at.call(arguments)));return Object(s)===s?s:o},t},h.each=function(e,n,i){if(e!=null){if(vc&&e.forEach===vc)e.forEach(n,i);else if(e.length===+e.length){for(var t=0,r=e.length;t<r;t++)if(t in e&&n.call(i,e[t],t,e)===Mo)return}else for(var o in e)if(qn.call(e,o)&&n.call(i,e[o],o,e)===Mo)return}},h.extend=function(e){return h.each(at.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(e[i]=n[i])}),e},h.isArray=Xv||function(e){return kr.call(e)==="[object Array]"},h.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(n){return!1}},h.isArguments=function(e){return!!(e&&qn.call(e,"callee"))},h.toArray=function(e){return e?e.toArray?e.toArray():h.isArray(e)||h.isArguments(e)?at.call(e):h.values(e):[]},h.map=function(e,n,i){if(mc&&e.map===mc)return e.map(n,i);var t=[];return h.each(e,function(r){t.push(n.call(i,r))}),t},h.keys=function(e){var n=[];return e===null||h.each(e,function(i,t){n[n.length]=t}),n},h.values=function(e){var n=[];return e===null||h.each(e,function(i){n[n.length]=i}),n},h.include=function(e,n){var i=!1;return e===null?i:gc&&e.indexOf===gc?e.indexOf(n)!=-1:(h.each(e,function(t){if(i||(i=t===n))return Mo}),i)},h.includes=function(e,n){return e.indexOf(n)!==-1},h.inherit=function(e,n){return e.prototype=new n,e.prototype.constructor=e,e.superclass=n.prototype,e},h.isObject=function(e){return e===Object(e)&&!h.isArray(e)},h.isEmptyObject=function(e){if(h.isObject(e)){for(var n in e)if(qn.call(e,n))return!1;return!0}return!1},h.isUndefined=function(e){return e===void 0},h.isString=function(e){return kr.call(e)=="[object String]"},h.isDate=function(e){return kr.call(e)=="[object Date]"},h.isNumber=function(e){return kr.call(e)=="[object Number]"},h.isElement=function(e){return!!(e&&e.nodeType===1)},h.encodeDates=function(e){return h.each(e,function(n,i){h.isDate(n)?e[i]=h.formatDate(n):h.isObject(n)&&(e[i]=h.encodeDates(n))}),e},h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},h.formatDate=function(e){function n(i){return i<10?"0"+i:i}return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())},h.strip_empty_properties=function(e){var n={};return h.each(e,function(i,t){h.isString(i)&&i.length>0&&(n[t]=i)}),n},h.truncate=function(e,n){var i;return typeof e=="string"?i=e.slice(0,n):h.isArray(e)?(i=[],h.each(e,function(t){i.push(h.truncate(t,n))})):h.isObject(e)?(i={},h.each(e,function(t,r){i[r]=h.truncate(t,n)})):i=e,i},h.JSONEncode=function(){return function(e){var n=e,i=function(r){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(r)?'"'+r.replace(o,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},t=function(r,o){var s="",a=" ",u=0,c="",l="",f=0,p=s,g=[],v=o[r];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(r)),typeof v){case"string":return i(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(s+=a,g=[],kr.apply(v)==="[object Array]"){for(f=v.length,u=0;u<f;u+=1)g[u]=t(u,v)||"null";return l=g.length===0?"[]":s?"[\n"+s+g.join(",\n"+s)+"\n"+p+"]":"["+g.join(",")+"]",s=p,l}for(c in v)qn.call(v,c)&&(l=t(c,v),l&&g.push(i(c)+(s?": ":":")+l));return l=g.length===0?"{}":s?"{"+g.join(",")+p+"}":"{"+g.join(",")+"}",s=p,l}};return t("",{"":n})}}(),h.JSONDecode=function(){var e,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},t,r=function(g){var v=new SyntaxError(g);throw v.at=e,v.text=t,v},o=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=t.charAt(e),e+=1,n},s=function(){var g,v="";for(n==="-"&&(v="-",o("-"));n>="0"&&n<="9";)v+=n,o();if(n===".")for(v+=".";o()&&n>="0"&&n<="9";)v+=n;if(n==="e"||n==="E")for(v+=n,o(),(n==="-"||n==="+")&&(v+=n,o());n>="0"&&n<="9";)v+=n,o();if(g=+v,!isFinite(g))r("Bad number");else return g},a=function(){var g,v,y="",d;if(n==='"')for(;o();){if(n==='"')return o(),y;if(n==="\\")if(o(),n==="u"){for(d=0,v=0;v<4&&(g=parseInt(o(),16),!!isFinite(g));v+=1)d=d*16+g;y+=String.fromCharCode(d)}else if(typeof i[n]=="string")y+=i[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)o()},c=function(){switch(n){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}r('Unexpected "'+n+'"')},l,f=function(){var g=[];if(n==="["){if(o("["),u(),n==="]")return o("]"),g;for(;n;){if(g.push(l()),u(),n==="]")return o("]"),g;o(","),u()}}r("Bad array")},p=function(){var g,v={};if(n==="{"){if(o("{"),u(),n==="}")return o("}"),v;for(;n;){if(g=a(),u(),o(":"),Object.hasOwnProperty.call(v,g)&&r('Duplicate key "'+g+'"'),v[g]=l(),u(),n==="}")return o("}"),v;o(","),u()}}r("Bad object")};return l=function(){switch(u(),n){case"{":return p();case"[":return f();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():c()}},function(g){var v;return t=g,e=0,n=" ",v=l(),u(),n&&r("Syntax error"),v}}(),h.base64Encode=function(e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,t,r,o,s,a,u,c,l=0,f=0,p="",g=[];if(!e)return e;e=h.utf8Encode(e);do i=e.charCodeAt(l++),t=e.charCodeAt(l++),r=e.charCodeAt(l++),c=i<<16|t<<8|r,o=c>>18&63,s=c>>12&63,a=c>>6&63,u=c&63,g[f++]=n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(l<e.length);switch(p=g.join(""),e.length%3){case 1:p=p.slice(0,-2)+"==";break;case 2:p=p.slice(0,-1)+"=";break}return p},h.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",i,t,r=0,o;for(i=t=0,r=e.length,o=0;o<r;o++){var s=e.charCodeAt(o),a=null;s<128?t++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(t>i&&(n+=e.substring(i,t)),n+=a,i=t=o+1)}return t>i&&(n+=e.substring(i,e.length)),n},h.UUID=function(){try{return E.crypto.randomUUID()}catch(i){for(var e=new Array(36),n=0;n<36;n++)e[n]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",h.map(e,function(t){return t.toString(16)}).join("")}};var _c=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];h.isBlockedUA=function(e){var n;for(e=e.toLowerCase(),n=0;n<_c.length;n++)if(e.indexOf(_c[n])!==-1)return!0;return!1},h.HTTPBuildQuery=function(e,n){var i,t,r=[];return h.isUndefined(n)&&(n="&"),h.each(e,function(o,s){i=encodeURIComponent(o.toString()),t=encodeURIComponent(s),r[r.length]=t+"="+i}),r.join(n)},h.getQueryParam=function(e,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+n+"=([^&#]*)",t=new RegExp(i),r=t.exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(s){z.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},h.cookie={get:function(e){for(var n=e+"=",i=j.cookie.split(";"),t=0;t<i.length;t++){for(var r=i[t];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(e){var n;try{n=h.JSONDecode(h.cookie.get(e))||{}}catch(i){}return n},set_seconds:function(e,n,i,t,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(t){var l=Sc(j.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),j.cookie=e+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(e,n,i,t,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(t){var l=Sc(j.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*24*60*60*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var p=e+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return j.cookie=p,p},remove:function(e,n,i){h.cookie.set(e,"",-1,n,!1,!1,i)}};var bc=function(e){var n=!0;try{var i="__mplss_"+Do(8),t="xyz";e.setItem(i,t),e.getItem(i)!==t&&(n=!1),e.removeItem(i)}catch(r){n=!1}return n},No=null,Rr=function(e,n){return No!==null&&!n?No:No=bc(e||E.localStorage)},$o=null,Zv=function(e,n){return $o!==null&&!n?$o:$o=bc(e||E.sessionStorage)};function wc(e,n,i){var t=function(r){z.error(n+" error: "+r)};return{is_supported:function(r){var o=i(e,r);return o||z.error(n+" unsupported"),o},error:t,get:function(r){try{return e.getItem(r)}catch(o){t(o)}return null},parse:function(r){try{return h.JSONDecode(e.getItem(r))||{}}catch(o){}return null},set:function(r,o){try{e.setItem(r,o)}catch(s){t(s)}},remove:function(r){try{e.removeItem(r)}catch(o){t(o)}}}}h.localStorage=wc(E.localStorage,"localStorage",Rr),h.sessionStorage=wc(E.sessionStorage,"sessionStorage",Zv),h.register_event=function(){var e=function(t,r,o,s,a){if(!t){z.error("No valid element provided to register_event");return}if(t.addEventListener&&!s)t.addEventListener(r,o,!!a);else{var u="on"+r,c=t[u];t[u]=n(t,o,c)}};function n(t,r,o){var s=function(a){if(a=a||i(E.event),!!a){var u=!0,c,l;return h.isFunction(o)&&(c=o(a)),l=r.call(t,a),(c===!1||l===!1)&&(u=!1),u}};return s}function i(t){return t&&(t.preventDefault=i.preventDefault,t.stopPropagation=i.stopPropagation),t}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},e}();var Qv=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=function(){function e(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,o){var s=" "+o+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function t(r){if(!j.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,p,g,v,y,d=[j];for(f=0;f<o.length;f++){if(s=o[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var m=a[1],_=j.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];d=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var w=a[1];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=e(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];for(d=[],y=0,p=0;p<c.length;p++)c[p].className&&h.isString(c[p].className)&&i(c[p],w)&&(d[y++]=c[p]);continue}var S=s.match(Qv);if(S){u=S[1];var C=S[2],O=S[3],R=S[4];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=e(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=[],y=0;var k;switch(O){case"=":k=function(P){return P.getAttribute(C)==R};break;case"~":k=function(P){return P.getAttribute(C).match(new RegExp("\\b"+R+"\\b"))};break;case"|":k=function(P){return P.getAttribute(C).match(new RegExp("^"+R+"-?"))};break;case"^":k=function(P){return P.getAttribute(C).indexOf(R)===0};break;case"$":k=function(P){return P.getAttribute(C).lastIndexOf(R)==P.getAttribute(C).length-R.length};break;case"*":k=function(P){return P.getAttribute(C).indexOf(R)>-1};break;default:k=function(P){return P.getAttribute(C)}}for(d=[],y=0,p=0;p<c.length;p++)k(c[p])&&(d[y++]=c[p]);continue}for(u=s,c=[],l=0,p=0;p<d.length;p++)for(v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=c}return d}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:t.call(this,r)}}();var eg=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],tg=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(e){var n="",i={};return h.each(eg,function(t){n=h.getQueryParam(j.URL,t),n.length?i[t]=n:e!==void 0&&(i[t]=e)}),i},clickParams:function(){var e="",n={};return h.each(tg,function(i){e=h.getQueryParam(j.URL,i),e.length&&(n[i]=e)}),n},marketingParams:function(){return h.extend(h.info.campaignParams(),h.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 n=h.info.searchEngine(e),i=n!="yahoo"?"q":"p",t={};if(n!==null){t.$search_engine=n;var r=h.getQueryParam(e,i);r.length&&(t.mp_keyword=r)}return t},browser:function(e,n,i){return n=n||"",i||h.includes(e," OPR/")?h.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":h.includes(e,"IEMobile")||h.includes(e,"WPDesktop")?"Internet Explorer Mobile":h.includes(e,"SamsungBrowser/")?"Samsung Internet":h.includes(e,"Edge")||h.includes(e,"Edg/")?"Microsoft Edge":h.includes(e,"FBIOS")?"Facebook Mobile":h.includes(e,"Whale/")?"Whale Browser":h.includes(e,"Chrome")?"Chrome":h.includes(e,"CriOS")?"Chrome iOS":h.includes(e,"UCWEB")||h.includes(e,"UCBrowser")?"UC Browser":h.includes(e,"FxiOS")?"Firefox iOS":h.includes(n,"Apple")?h.includes(e,"Mobile")?"Mobile Safari":"Safari":h.includes(e,"Android")?"Android Mobile":h.includes(e,"Konqueror")?"Konqueror":h.includes(e,"Firefox")?"Firefox":h.includes(e,"MSIE")||h.includes(e,"Trident/")?"Internet Explorer":h.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,n,i){var t=h.info.browser(e,n,i),r={"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+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=r[t];if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=He;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 n=e.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return E.location.href},properties:function(e){return typeof e!="object"&&(e={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(He,ut.vendor,Gn),$referrer:j.referrer,$referring_domain:h.info.referringDomain(j.referrer),$device:h.info.device(He)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(He,ut.vendor,Gn),$screen_height:dc.height,$screen_width:dc.width,mp_lib:"web",$lib_version:De.LIB_VERSION,$insert_id:Do(),time:h.timestamp()/1e3},h.strip_empty_properties(e))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(He,ut.vendor,Gn)}),{$browser_version:h.info.browserVersion(He,ut.vendor,Gn)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:j.title,current_domain:E.location.hostname,current_url_path:E.location.pathname,current_url_protocol:E.location.protocol,current_url_search:E.location.search})}};var rg=function(e,n){var i=null,t=[];return function(r){var o=this;return t.push(r),i||(i=new Y(function(s){setTimeout(function(){var a=e.apply(o,[t]);i=null,t=[],s(a)},n)})),i}},Do=function(e){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?n.substring(0,e):n},ng=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,ig=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Sc=function(e){var n=ig,i=e.split("."),t=i[i.length-1];(t.length>4||t==="com"||t==="org")&&(n=ng);var r=e.match(n);return r?r[0]:""},og=function(){var e=E.navigator.onLine;return h.isUndefined(e)||e},ct=function(){},Vt=null,Vn=null;typeof JSON!="undefined"&&(Vt=JSON.stringify,Vn=JSON.parse),Vt=Vt||h.JSONEncode,Vn=Vn||h.JSONDecode,h.info=h.info,h.info.browser=h.info.browser,h.info.browserVersion=h.info.browserVersion,h.info.device=h.info.device,h.info.properties=h.info.properties,h.isBlockedUA=h.isBlockedUA,h.isEmptyObject=h.isEmptyObject,h.isObject=h.isObject,h.JSONDecode=h.JSONDecode,h.JSONEncode=h.JSONEncode,h.toArray=h.toArray,h.NPO=st;var sg="mixpanelBrowserDb",Cc="mixpanelRecordingEvents",Lo="mixpanelRecordingRegistry",ag=1,ug=[Cc,Lo],Be=function(e){this.dbPromise=null,this.storeName=e};Be.prototype._openDb=function(){return new Y(function(e,n){var i=E.indexedDB.open(sg,ag);i.onerror=function(){n(i.error)},i.onsuccess=function(){e(i.result)},i.onupgradeneeded=function(t){var r=t.target.result;ug.forEach(function(o){r.createObjectStore(o)})}})},Be.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof E.IDBDatabase?Y.resolve():Y.reject(e)})):Y.reject("indexedDB is not supported in this browser")},Be.prototype.makeTransaction=function(e,n){var i=this.storeName,t=function(r){return new Y(function(o,s){var a=r.transaction(i,e);a.oncomplete=function(){o(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(t).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(t)):Y.reject(r)}.bind(this))},Be.prototype.setItem=function(e,n){return this.makeTransaction("readwrite",function(i){i.put(n,e)})},Be.prototype.getItem=function(e){var n;return this.makeTransaction("readonly",function(i){n=i.get(e)}).then(function(){return n.result})},Be.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(n){n.delete(e)})},Be.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(n){e=n.getAll()}).then(function(){return e.result})};var cg="__mp_opt_in_out_";function lg(e,n){xc(!0,e,n)}function fg(e,n){xc(!1,e,n)}function hg(e,n){return Ec(e,n)==="1"}function Ic(e,n){if(dg(n))return z.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 i=Ec(e,n)==="0";return i&&z.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function lt(e){return Bo(e,function(n){return this.get_config(n)})}function ft(e){return Bo(e,function(n){return this._get_config(n)})}function jt(e){return Bo(e,function(n){return this._get_config(n)})}function pg(e,n){n=n||{},Fo(n).remove(Uo(e,n),!!n.crossSubdomainCookie,n.cookieDomain)}function Fo(e){return e=e||{},e.persistenceType==="localStorage"?h.localStorage:h.cookie}function Uo(e,n){return n=n||{},(n.persistencePrefix||cg)+e}function Ec(e,n){return Fo(n).get(Uo(e,n))}function dg(e){if(e&&e.ignoreDnt)return!1;var n=e&&e.window||E,i=n.navigator||{},t=!1;return h.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){h.includes([!0,1,"1","yes"],r)&&(t=!0)}),t}function xc(e,n,i){if(!h.isString(n)||!n.length){z.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}i=i||{},Fo(i).set(Uo(n,i),e?1:0,h.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&e&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function Bo(e,n){return function(){var i=!1;try{var t=n.call(this,"token"),r=n.call(this,"ignore_dnt"),o=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");t&&(i=Ic(t,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){z.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return e.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var vg=_t("lock"),Oc=function(e,n){n=n||{},this.storageKey=e,this.storage=n.storage||E.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||Y};Oc.prototype.withLock=function(e,n){var i=this.promiseImpl;return new i(h.bind(function(t,r){var o=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,f=a+":X",p=a+":Y",g=a+":Z",v=function(w){if(new Date().getTime()-s>c){vg.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+o+"]"),l.removeItem(g),l.removeItem(p),m();return}setTimeout(function(){try{w()}catch(S){r(S)}},u*(Math.random()+.1))},y=function(w,S){w()?S():v(function(){y(w,S)})},d=function(){var w=l.getItem(p);return w&&w!==o?!1:(l.setItem(p,o),l.getItem(p)===o?!0:(Rr(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,o),y(d,function(){if(l.getItem(f)===o){_();return}v(function(){if(l.getItem(p)!==o){m();return}y(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var w=function(){l.removeItem(g),l.getItem(p)===o&&l.removeItem(p),l.getItem(f)===o&&l.removeItem(f)};e().then(function(S){w(),t(S)}).catch(function(S){w(),r(S)})};try{if(Rr(l,!0))m();else throw new Error("localStorage support check failed")}catch(w){r(w)}},this))};var Ar=function(e){this.storage=e||E.localStorage};Ar.prototype.init=function(){return Y.resolve()},Ar.prototype.setItem=function(e,n){return new Y(h.bind(function(i,t){try{this.storage.setItem(e,Vt(n))}catch(r){t(r)}i()},this))},Ar.prototype.getItem=function(e){return new Y(h.bind(function(n,i){var t;try{t=Vn(this.storage.getItem(e))}catch(r){i(r)}n(t)},this))},Ar.prototype.removeItem=function(e){return new Y(h.bind(function(n,i){try{this.storage.removeItem(e)}catch(t){i(t)}n()},this))};var kc=_t("batch"),ze=function(e,n){n=n||{},this.storageKey=e,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Ar,this.lock=new Oc(e,{storage:n.sharedLockStorage||E.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||h.bind(kc.error,kc),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=rg(h.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(i){return this._enqueuePersisted([i])},this)};ze.prototype.ensureInit=function(){return this.initialized?Y.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},ze.prototype.enqueue=function(e,n){var i={id:Do(),flushAfter:new Date().getTime()+n*2,payload:e};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),Y.resolve(!0))},ze.prototype._enqueuePersisted=function(e){var n=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return this.saveToStorage(i.concat(e))},this)).then(h.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(e)),i},this)).catch(h.bind(function(i){return this.reportError("Error enqueueing items",i,e),!1},this))},this);return this.lock.withLock(n,this.pid).catch(h.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},ze.prototype.fillBatch=function(e){var n=this.memQueue.slice(0,e);return this.usePersistence&&n.length<e?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){if(i.length){var t={};h.each(n,function(s){t[s.id]=!0});for(var r=0;r<i.length;r++){var o=i[r];if(new Date().getTime()>o.flushAfter&&!t[o.id]&&(o.orphaned=!0,n.push(o),n.length>=e))break}}return n},this)):Y.resolve(n)};var Rc=function(e,n){var i=[];return h.each(e,function(t){t.id&&!n[t.id]&&i.push(t)}),i};ze.prototype.removeItemsByID=function(e){var n={};if(h.each(e,function(t){n[t]=!0}),this.memQueue=Rc(this.memQueue,n),this.usePersistence){var i=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(t){return t=Rc(t,n),this.saveToStorage(t)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(t){for(var r=0;r<t.length;r++){var o=t[r];if(o.id&&n[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(i,this.pid).catch(h.bind(function(t){return this.reportError("Error acquiring storage lock",t),Rr(this.lock.storage,!0)?!1:i().then(h.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(h.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return Y.resolve(!0)};var Ac=function(e,n){var i=[];return h.each(e,function(t){var r=t.id;if(r in n){var o=n[r];o!==null&&(t.payload=o,i.push(t))}else i.push(t)}),i};ze.prototype.updatePayloads=function(e){return this.memQueue=Ac(this.memQueue,e),this.usePersistence?this.lock.withLock(h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return i=Ac(i,e),this.saveToStorage(i)},this)).catch(h.bind(function(i){return this.reportError("Error updating items",e,i),!1},this))},this),this.pid).catch(h.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):Y.resolve(!0)},ze.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(e){return e&&(h.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(h.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},ze.prototype.saveToStorage=function(e){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(h.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},ze.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Y.resolve()};var gg=10*60*1e3,Mr=_t("batch"),Pe=function(e,n){this.errorReporter=n.errorReporter,this.queue=new ze(e,{errorReporter:h.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.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=n.flushOnlyOnInterval||!1,this._flushPromise=null};Pe.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Pe.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Pe.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Pe.prototype.clear=function(){return this.queue.clear()},Pe.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Pe.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Pe.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Pe.prototype.sendRequestPromise=function(e,n){return new Y(h.bind(function(i){this.sendRequest(e,n,i)},this))},Pe.prototype.flush=function(e){if(this.requestInProgress)return Mr.log("Flush: Request already in progress"),Y.resolve();this.requestInProgress=!0,e=e||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),t=this.batchSize;return this.queue.fillBatch(t).then(h.bind(function(r){var o=r.length===t,s=[],a={};if(h.each(r,function(f){var p=f.payload;if(this.beforeSendHook&&!f.orphaned&&(p=this.beforeSendHook(p)),p){p.event&&p.properties&&(p.properties=h.extend({},p.properties,{mp_sent_by_lib_version:De.LIB_VERSION}));var g=!0,v=f.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]}),g=!1):this.reportError("[dupe] found item with no ID",{item:f}),g&&s.push(p)}a[f.id]=p},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),Y.resolve();var u=h.bind(function(){return this.queue.removeItemsByID(h.map(r,function(f){return f.id})).then(h.bind(function(f){return h.each(r,h.bind(function(p){var g=p.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:p,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:p})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),Y.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Y.resolve())},this))},this),c=h.bind(function(f){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(h.isObject(f)&&f.error==="timeout"&&new Date().getTime()-i>=n)return this.reportError("Network timeout; retrying"),this.flush();if(h.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!og()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(gg,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),Y.resolve()}else if(h.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(t/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Y.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return e.unloading&&(l.transport="sendBeacon"),Mr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(h.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Pe.prototype.reportError=function(e,n){if(Mr.error.apply(Mr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(e)),this.errorReporter(e,n)}catch(i){Mr.error(i)}};var zo=function(e){var n=Date.now();return!e||n>e.maxExpires||n>e.idleExpires},mg=250,Yt=_t("recorder"),Mc=E.CompressionStream,yg={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},_g=new Set([T.MouseMove,T.MouseInteraction,T.Scroll,T.ViewportResize,T.Input,T.TouchMove,T.MediaInteraction,T.Drag,T.Selection]);function bg(e){return e.type===B.IncrementalSnapshot&&_g.has(e.data.source)}var ve=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||ct,this._onMaxLengthReached=e.onMaxLengthReached||ct,this._onBatchSent=e.onBatchSent||ct,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Or,this.recordMinMs=0;var n=Rr(e.sharedLockStorage,!0);this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Be(Cc),this.batcher=new Pe(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:yg,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:mg,sharedLockTimeoutMS:10*1e3})};ve.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(e.$device_id=n);var i=this._mixpanel.get_property("$user_id");return i&&(e.$user_id=i),e},ve.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},ve.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},ve.prototype.get_config=function(e){return this.getConfig(e)},ve.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Yt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Or&&(this.recordMaxMs=Or,Yt.critical("record_max_ms cannot be greater than "+Or+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>Ro&&(this.recordMinMs=Ro,Yt.critical("record_min_ms cannot be greater than "+Ro+"ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var r=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,r),this.idleExpires=new Date().getTime()+r}.bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(r){if(this.idleExpires&&this.idleExpires<r.timestamp){this._onIdleTimeout();return}bg(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(r)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,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}})}catch(r){this.reportError("Unexpected error when starting rrweb recording.",r)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var t=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),t)},ve.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():e||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},ve.prototype.isRrwebStopped=function(){return this._stopRecording===null},ve.prototype.flushEventsWithOptOut=function(e,n,i){var t=function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,n,i,t)},ve.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},ve.deserialize=function(e,n){var i=new ve(h.extend({},n,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:n.sharedLockStorage}));return i},ve.prototype._sendRequest=function(e,n,i,t){var r=function(s,a){s.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),t({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");E.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:i}).then(function(s){s.json().then(function(a){r(s,a)}).catch(function(a){t({error:a})})}).catch(function(s){t({error:s,httpStatusCode:0})})},ve.prototype._flushEvents=lt(function(e,n,i){var t=e.length;if(t>0){for(var r=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<t;u++)o=Math.min(o,e[u].timestamp),s=Math.max(s,e[u].timestamp),e[u].type===B.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){i({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:De.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Mc){var p=new Blob([f],{type:"application/json"}).stream(),g=p.pipeThrough(new Mc("gzip"));new Response(g).blob().then(function(v){l.format="gzip",this._sendRequest(r,l,v,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),ve.prototype.reportError=function(e,n){Yt.error.apply(Yt.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,n)}catch(i){Yt.error(i)}};var Ht=function(e){this.idb=new Be(Lo),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Ht.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Ht.prototype.setActiveRecording=function(e){var n=e.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),Y.resolve())},Ht.prototype.getActiveRecording=function(){return this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return zo(e)?null:e}.bind(this)).catch(this.handleError.bind(this))},Ht.prototype.clearActiveRecording=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Ht.prototype.flushInactiveRecordings=function(){return this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var n=e.filter(function(i){return zo(i)}).map(function(i){var t=ve.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(i.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return Y.all(n)}.bind(this)).catch(this.handleError.bind(this))};var Tr=_t("recorder"),Ke=function(e,n,i){this.mixpanelInstance=e,this.rrwebRecord=n||it,this.sharedLockStorage=i,this.recordingRegistry=new Ht({mixpanelInstance:this.mixpanelInstance,errorReporter:Tr.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Ke.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Tr.log("Recording already in progress, skipping startRecording.");return}var n=function(){Tr.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){Tr.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),t=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:t,onIdleTimeout:n,onMaxLengthReached:i,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=ve.deserialize(e.activeSerializedRecording,r):this.activeRecording=new ve(r),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Ke.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Ke.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ke.prototype._stopCurrentRecording=function(e,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(e);return n&&(this.activeRecording=null),i}return Y.resolve()},Ke.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Y.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):e?this.startRecording({shouldStopBatcher:!1}):(Tr.log("No resumable recording found."),null)}.bind(this))},Ke.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ke.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ke.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),E.__mp_recorder=Ke;var jn="change",Pr="click",Tc="hashchange",Kt="mp_locationchange",Pc="popstate",Nc="scrollend",Wo="submit",wg=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],$c=["mp-include"],qo=["mp-no-track"],Dc=qo.concat(["mp-sensitive"]),Sg=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Ie=_t("autocapture");function Go(e){for(var n={},i=Lc(e).split(" "),t=0;t<i.length;t++){var r=i[t];r&&(n[r]=!0)}return n}function Lc(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Cg(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!Bc(e));return e}function Fc(e,n,i,t,r,o){var s={$classes:Lc(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),Yo(e,n,r,o)&&h.each(Sg.concat(t),function(f){if(e.hasAttribute(f)&&!i[f]){var p=e.getAttribute(f);Yn(p)&&(s["$attr-"+f]=p)}});for(var u=1,c=1,l=e;l=Cg(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function Ig(e,n){var i=n.allowElementCallback,t=n.allowSelectors||[],r=n.blockAttrs||[],o=n.blockElementCallback,s=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,l={};h.each(r,function(C){l[C]=!0});var f=null,p=typeof e.target=="undefined"?e.srcElement:e.target;if(zc(p)&&(p=p.parentNode),Og(p,e)&&Vo(p,e,i,t)&&!jo(p,e,o,s)){for(var g=[p],v=p;v.parentNode&&!We(v,"body");)g.push(v.parentNode),v=v.parentNode;var y=[],d,m=!1;if(h.each(g,function(C){var O=Yo(C,e,i,t);!l.href&&C.tagName.toLowerCase()==="a"&&(d=C.getAttribute("href"),d=O&&Yn(d)&&d),jo(C,e,o,s)&&(m=!0),y.push(Fc(C,e,l,u,i,t))},this),!m){var _=j.documentElement;if(f={$event_type:e.type,$host:E.location.host,$pathname:E.location.pathname,$elements:y,$el_attr__href:d,$viewportHeight:Math.max(_.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,E.innerWidth||0),$pageHeight:j.body.offsetHeight||0,$pageWidth:j.body.offsetWidth||0},h.each(u,function(C){if(!l[C]&&p.hasAttribute(C)){var O=p.getAttribute(C);Yn(O)&&(f["$el_attr__"+C]=O)}}),a&&(w=Uc(p,e,i,t),w&&w.length&&(f.$el_text=w)),e.type===Pr&&(h.each(wg,function(C){C in e&&(f["$"+C]=e[C])}),c&&(f.$captured_for_heatmap=!0),p=Eg(e)),a){var w=Uc(p,e,i,t);w&&w.length&&(f.$el_text=w)}if(p){if(!Vo(p,e,i,t)||jo(p,e,o,s))return null;var S=Fc(p,e,l,u,i,t);f.$target=S,f.$el_classes=S.$classes,h.extend(f,h.strip_empty_properties({$el_id:S.$id,$el_tag_name:S.$tag_name}))}}}return f}function Uc(e,n,i,t){var r="";return Yo(e,n,i,t)&&e.childNodes&&e.childNodes.length&&h.each(e.childNodes,function(o){zc(o)&&o.textContent&&(r+=h.trim(o.textContent).split(/(\s+)/).filter(Yn).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function Eg(e){for(var n=e.target,i=e.composedPath(),t=0;t<i.length;t++){var r=i[t];if(We(r,"a")||We(r,"button")||We(r,"input")||We(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function Vo(e,n,i,t){if(i)try{if(!i(e,n))return!1}catch(s){return Ie.critical("Error while checking element in allowElementCallback",s),!1}if(!t.length)return!0;for(var r=0;r<t.length;r++){var o=t[r];try{if(e.matches(o))return!0}catch(s){Ie.critical("Error while checking selector: "+o,s)}}return!1}function jo(e,n,i,t){var r;if(i)try{if(i(e,n))return!0}catch(a){return Ie.critical("Error while checking element in blockElementCallback",a),!0}if(t&&t.length)for(r=0;r<t.length;r++){var o=t[r];try{if(e.matches(o))return!0}catch(a){Ie.critical("Error while checking selector: "+o,a)}}var s=Go(e);for(r=0;r<qo.length;r++)if(s[qo[r]])return!0;return!1}function Bc(e){return e&&e.nodeType===1}function We(e,n){return e&&e.tagName&&e.tagName.toLowerCase()===n.toLowerCase()}function zc(e){return e&&e.nodeType===3}function xg(){try{var e=j.createElement("div");return!!e.matches}catch(n){return!1}}function Og(e,n){if(!e||We(e,"html")||!Bc(e))return!1;var i=e.tagName.toLowerCase();switch(i){case"form":return n.type===Wo;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?n.type===jn:n.type===Pr;case"select":case"textarea":return n.type===jn;default:return n.type===Pr}}function Yo(e,n,i,t){var r;if(!Vo(e,n,i,t))return!1;for(var o=e;o.parentNode&&!We(o,"body");o=o.parentNode){var s=Go(o);for(r=0;r<Dc.length;r++)if(s[Dc[r]])return!1}var a=Go(e);for(r=0;r<$c.length;r++)if(a[$c[r]])return!0;if(We(e,"input")||We(e,"select")||We(e,"textarea")||e.getAttribute("contenteditable")==="true")return!1;var u=e.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}var c=e.name||e.id||"";if(typeof c=="string"){var l=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(l.test(c.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function Yn(e){if(e===null||h.isUndefined(e))return!1;if(typeof e=="string"){e=h.trim(e);var n=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(n.test((e||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(e))return!1}return!0}var Wc="autocapture",kg="track_pageview",qc="full-url",Rg="url-with-path-and-query-string",Ag="url-with-path",Mg="allow_element_callback",Gc="allow_selectors",Vc="allow_url_regexes",jc="block_attrs",Yc="block_element_callback",Hc="block_selectors",Kc="block_url_regexes",Jc="capture_extra_attrs",Xc="capture_text_content",Zc="scroll_capture_all",Qc="scroll_depth_percent_checkpoints",Hn="click",Ho="input",el="pageview",Ko="scroll",Jo="submit",ge={};ge[Gc]=[],ge[Vc]=[],ge[jc]=[],ge[Yc]=null,ge[Hc]=[],ge[Kc]=[],ge[Jc]=[],ge[Xc]=!1,ge[Zc]=!1,ge[Qc]=[25,50,75,100],ge[Hn]=!0,ge[Ho]=!0,ge[el]=qc,ge[Ko]=!0,ge[Jo]=!0;var Kn={$mp_autocapture:!0},tl="$mp_click",Tg="$mp_input_change",Pg="$mp_scroll",Ng="$mp_submit",Oe=function(e){this.mp=e};Oe.prototype.init=function(){if(!xg()){Ie.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageviewTracking(),this.initClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking()},Oe.prototype.getFullConfig=function(){var e=this.mp.get_config(Wc);return e?h.isObject(e)?h.extend({},ge,e):ge:{}},Oe.prototype.getConfig=function(e){return this.getFullConfig()[e]},Oe.prototype.currentUrlBlocked=function(){var e,n=h.info.currentUrl(),i=this.getConfig(Vc)||[];if(i.length){var t=!1;for(e=0;e<i.length;e++){var r=i[e];try{if(n.match(r)){t=!0;break}}catch(s){return Ie.critical("Error while checking block URL regex: "+r,s),!0}}if(!t)return!0}var o=this.getConfig(Kc)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(n.match(o[e]))return!0}catch(s){return Ie.critical("Error while checking block URL regex: "+o[e],s),!0}return!1},Oe.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Wc)?this.getConfig(el):this.mp.get_config(kg)},Oe.prototype.trackDomEvent=function(e,n){if(!this.currentUrlBlocked()){var i=Ig(e,{allowElementCallback:this.getConfig(Mg),allowSelectors:this.getConfig(Gc),blockAttrs:this.getConfig(jc),blockElementCallback:this.getConfig(Yc),blockSelectors:this.getConfig(Hc),captureExtraAttrs:this.getConfig(Jc),captureTextContent:this.getConfig(Xc),capturedForHeatMap:n===tl&&!this.getConfig(Hn)&&this.mp.is_recording_heatmap_data()});i&&(h.extend(i,Kn),this.mp.track(n,i))}},Oe.prototype.initClickTracking=function(){E.removeEventListener(Pr,this.listenerClick),!(!this.getConfig(Hn)&&!this.mp.get_config("record_heatmap_data"))&&(Ie.log("Initializing click tracking"),this.listenerClick=E.addEventListener(Pr,function(e){!this.getConfig(Hn)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,tl)}.bind(this)))},Oe.prototype.initInputTracking=function(){E.removeEventListener(jn,this.listenerChange),this.getConfig(Ho)&&(Ie.log("Initializing input tracking"),this.listenerChange=E.addEventListener(jn,function(e){this.getConfig(Ho)&&this.trackDomEvent(e,Tg)}.bind(this)))},Oe.prototype.initPageviewTracking=function(){if(E.removeEventListener(Pc,this.listenerPopstate),E.removeEventListener(Tc,this.listenerHashchange),E.removeEventListener(Kt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){Ie.log("Initializing pageview tracking");var e="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(Kn)),n&&(e=h.info.currentUrl()),this.listenerPopstate=E.addEventListener(Pc,function(){E.dispatchEvent(new Event(Kt))}),this.listenerHashchange=E.addEventListener(Tc,function(){E.dispatchEvent(new Event(Kt))});var i=E.history.pushState;typeof i=="function"&&(E.history.pushState=function(r,o,s){i.call(E.history,r,o,s),E.dispatchEvent(new Event(Kt))});var t=E.history.replaceState;typeof t=="function"&&(E.history.replaceState=function(r,o,s){t.call(E.history,r,o,s),E.dispatchEvent(new Event(Kt))}),this.listenerLocationchange=E.addEventListener(Kt,Po(function(){if(!this.currentUrlBlocked()){var r=h.info.currentUrl(),o=!1,s=r.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],a=this.pageviewTrackingConfig();if(a===qc?o=r!==e:a===Rg?o=r.split("#")[0]!==e.split("#")[0]:a===Ag&&(o=s),o){var u=this.mp.track_pageview(Kn);u&&(e=r),s&&(this.lastScrollCheckpoint=0,Ie.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)))}},Oe.prototype.initScrollTracking=function(){E.removeEventListener(Nc,this.listenerScroll),this.getConfig(Ko)&&(Ie.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0,this.listenerScroll=E.addEventListener(Nc,Po(function(){if(this.getConfig(Ko)&&!this.currentUrlBlocked()){var e=this.getConfig(Zc),n=(this.getConfig(Qc)||[]).slice().sort(function(u,c){return u-c}),i=E.scrollY,t=h.extend({$scroll_top:i},Kn);try{var r=j.body.scrollHeight,o=Math.round(i/(r-E.innerHeight)*100);if(t.$scroll_height=r,t.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<n.length;s++){var a=n[s];o>=a&&this.lastScrollCheckpoint<a&&(t.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(u){Ie.critical("Error while calculating scroll percentage",u)}e&&this.mp.track(Pg,t)}}.bind(this))))},Oe.prototype.initSubmitTracking=function(){E.removeEventListener(Wo,this.listenerSubmit),this.getConfig(Jo)&&(Ie.log("Initializing submit tracking"),this.listenerSubmit=E.addEventListener(Wo,function(e){this.getConfig(Jo)&&this.trackDomEvent(e,Ng)}.bind(this)))},yc(Oe);var $g=E.fetch,Ee=_t("flags"),rl="flags",nl="context",Xo={};Xo[nl]={};var G=function(e){this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};G.prototype.init=function(){if(!Dg()){Ee.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},G.prototype.getFullConfig=function(){var e=this.getMpConfig(rl);return e?h.isObject(e)?h.extend({},Xo,e):Xo:{}},G.prototype.getConfig=function(e){return this.getFullConfig()[e]},G.prototype.isSystemEnabled=function(){return!!this.getMpConfig(rl)},G.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ee.error("Feature Flags not enabled"),!!this.flags},G.prototype.fetchFlags=function(){if(this.isSystemEnabled()){var e=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id");Ee.log("Fetching flags for distinct ID: "+e);var i={context:h.extend({distinct_id:e,device_id:n},this.getConfig(nl))};this._fetchInProgressStartTime=Date.now(),this.fetchPromise=E.fetch(this.getFullApiRoute(),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),"Content-Type":"application/octet-stream"},body:JSON.stringify(i)}).then(function(t){return this.markFetchComplete(),t.json().then(function(r){var o=r.flags;if(!o)throw new Error("No flags in API response");var s=new Map;h.each(o,function(a,u){s.set(u,{key:a.variant_key,value:a.variant_value})}),this.flags=s}.bind(this)).catch(function(r){this.markFetchComplete(),Ee.error(r)}.bind(this))}.bind(this)).catch(function(t){this.markFetchComplete(),Ee.error(t)}.bind(this))}},G.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){Ee.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},G.prototype.getVariant=function(e,n){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,n)}.bind(this)).catch(function(i){return Ee.error(i),n}):new Promise(function(i){Ee.critical("Feature Flags not initialized"),i(n)})},G.prototype.getVariantSync=function(e,n){if(!this.areFlagsReady())return Ee.log("Flags not loaded yet"),n;var i=this.flags.get(e);return i?(this.trackFeatureCheck(e,i),i):(Ee.log('No flag found: "'+e+'"'),n)},G.prototype.getVariantValue=function(e,n){return this.getVariant(e,{value:n}).then(function(i){return i.value}).catch(function(i){return Ee.error(i),n})},G.prototype.getFeatureData=function(e,n){return Ee.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,n)},G.prototype.getVariantValueSync=function(e,n){return this.getVariantSync(e,{value:n}).value},G.prototype.isEnabled=function(e,n){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,n)}.bind(this)).catch(function(i){return Ee.error(i),n})},G.prototype.isEnabledSync=function(e,n){n=n||!1;var i=this.getVariantValueSync(e,n);return i!==!0&&i!==!1&&(Ee.error('Feature flag "'+e+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i},G.prototype.trackFeatureCheck=function(e,n){this.trackedFeatures.has(e)||(this.trackedFeatures.add(e),this.track("$experiment_started",{"Experiment name":e,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency}))};function Dg(){return!!$g&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"}yc(G),G.prototype.are_flags_ready=G.prototype.areFlagsReady,G.prototype.get_variant=G.prototype.getVariant,G.prototype.get_variant_sync=G.prototype.getVariantSync,G.prototype.get_variant_value=G.prototype.getVariantValue,G.prototype.get_variant_value_sync=G.prototype.getVariantValueSync,G.prototype.is_enabled=G.prototype.isEnabled,G.prototype.is_enabled_sync=G.prototype.isEnabledSync,G.prototype.get_feature_data=G.prototype.getFeatureData;var Je=function(){};Je.prototype.create_properties=function(){},Je.prototype.event_handler=function(){},Je.prototype.after_track_handler=function(){},Je.prototype.init=function(e){return this.mp=e,this},Je.prototype.track=function(e,n,i,t){var r=this,o=h.dom_query(e);if(o.length===0){z.error("The DOM query ("+e+") returned 0 elements");return}return h.each(o,function(s){h.register_event(s,this.override_event,function(a){var u={},c=r.create_properties(i,this),l=r.mp.get_config("track_links_timeout");r.event_handler(a,this,u),window.setTimeout(r.track_callback(t,c,u,!0),l),r.mp.track(n,c,r.track_callback(t,c,u))})},this),!0},Je.prototype.track_callback=function(e,n,i,t){t=t||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(e&&e(t,n)===!1)&&r.after_track_handler(n,i,t))}},Je.prototype.create_properties=function(e,n){var i;return typeof e=="function"?i=e(n):i=h.extend({},e),i};var Jt=function(){this.override_event="click"};h.inherit(Jt,Je),Jt.prototype.create_properties=function(e,n){var i=Jt.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},Jt.prototype.event_handler=function(e,n,i){i.new_tab=e.which===2||e.metaKey||e.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||e.preventDefault()},Jt.prototype.after_track_handler=function(e,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var Jn=function(){this.override_event="submit"};h.inherit(Jn,Je),Jn.prototype.event_handler=function(e,n,i){i.element=n,e.preventDefault()},Jn.prototype.after_track_handler=function(e,n){setTimeout(function(){n.element.submit()},0)};var ht="$set",Xt="$set_once",Le="$unset",bt="$add",qe="$append",wt="$union",Xe="$remove",Lg="$delete",il={set_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[ht]=t,i},unset_action:function(e){var n={},i=[];return h.isArray(e)||(e=[e]),h.each(e,function(t){this._is_reserved_property(t)||i.push(t)},this),n[Le]=i,n},set_once_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[Xt]=t,i},union_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=h.isArray(r)?r:[r])},this):t[e]=h.isArray(n)?n:[n],i[wt]=t,i},append_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[qe]=t,i},remove_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[Xe]=t,i},delete_action:function(){var e={};return e[Lg]="",e}},ne=function(){};h.extend(ne.prototype,il),ne.prototype._init=function(e,n,i){this._mixpanel=e,this._group_key=n,this._group_id=i},ne.prototype.set=jt(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),ne.prototype.set_once=jt(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),ne.prototype.unset=jt(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),ne.prototype.union=jt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),ne.prototype.delete=jt(function(e){var n=this.delete_action();return this._send_request(n,e)}),ne.prototype.remove=jt(function(e,n,i){var t=this.remove_action(e,n);return this._send_request(t,i)}),ne.prototype._send_request=function(e,n){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var i=h.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},ne.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"},ne.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ne.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ne.prototype.remove=ne.prototype.remove,ne.prototype.set=ne.prototype.set,ne.prototype.set_once=ne.prototype.set_once,ne.prototype.union=ne.prototype.union,ne.prototype.unset=ne.prototype.unset,ne.prototype.toString=ne.prototype.toString;var N=function(){};h.extend(N.prototype,il),N.prototype._init=function(e){this._mixpanel=e},N.prototype.set=ft(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),t[ht]=h.extend({},h.info.people_properties(),t[ht]),this._send_request(t,i)}),N.prototype.set_once=ft(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),N.prototype.unset=ft(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),N.prototype.increment=ft(function(e,n,i){var t={},r={};return h.isObject(e)?(h.each(e,function(o,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(o))){z.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[s]=o},this),i=n):(h.isUndefined(n)&&(n=1),r[e]=n),t[bt]=r,this._send_request(t,i)}),N.prototype.append=ft(function(e,n,i){h.isObject(e)&&(i=n);var t=this.append_action(e,n);return this._send_request(t,i)}),N.prototype.remove=ft(function(e,n,i){h.isObject(e)&&(i=n);var t=this.remove_action(e,n);return this._send_request(t,i)}),N.prototype.union=ft(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),N.prototype.track_charge=ft(function(){z.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),N.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},N.prototype.delete_user=function(){if(!this._identify_called()){z.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)},N.prototype.toString=function(){return this._mixpanel.toString()+".people"},N.prototype._send_request=function(e,n){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),t=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(e.$device_id=i),t&&(e.$user_id=t),r&&(e.$had_persisted_distinct_id=r);var o=h.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},n):(this._enqueue(e),h.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),h.truncate(o,255))},N.prototype._get_config=function(e){return this._mixpanel.get_config(e)},N.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},N.prototype._enqueue=function(e){ht in e?this._mixpanel.persistence._add_to_people_queue(ht,e):Xt in e?this._mixpanel.persistence._add_to_people_queue(Xt,e):Le in e?this._mixpanel.persistence._add_to_people_queue(Le,e):bt in e?this._mixpanel.persistence._add_to_people_queue(bt,e):qe in e?this._mixpanel.persistence._add_to_people_queue(qe,e):Xe in e?this._mixpanel.persistence._add_to_people_queue(Xe,e):wt in e?this._mixpanel.persistence._add_to_people_queue(wt,e):z.error("Invalid call to _enqueue():",e)},N.prototype._flush_one_queue=function(e,n,i,t){var r=this,o=h.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!h.isUndefined(o)&&h.isObject(o)&&!h.isEmptyObject(o)&&(r._mixpanel.persistence._pop_from_people_queue(e,o),r._mixpanel.persistence.save(),t&&(s=t(o)),n.call(r,s,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(e,o),h.isUndefined(i)||i(a,u)}))},N.prototype._flush=function(e,n,i,t,r,o,s){var a=this;this._flush_one_queue(ht,this.set,e),this._flush_one_queue(Xt,this.set_once,t),this._flush_one_queue(Le,this.unset,o,function(d){return h.keys(d)}),this._flush_one_queue(bt,this.increment,n),this._flush_one_queue(wt,this.union,r);var u=this._mixpanel.persistence.load_queue(qe);if(!h.isUndefined(u)&&h.isArray(u)&&u.length)for(var c,l=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(qe,c),h.isUndefined(i)||i(d,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(qe),c=u.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(Xe);if(!h.isUndefined(p)&&h.isArray(p)&&p.length)for(var g,v=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(Xe,g),h.isUndefined(s)||s(d,m)},y=p.length-1;y>=0;y--)p=this._mixpanel.persistence.load_queue(Xe),g=p.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(g)||a.remove(g,v)},N.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"},N.prototype.set=N.prototype.set,N.prototype.set_once=N.prototype.set_once,N.prototype.unset=N.prototype.unset,N.prototype.increment=N.prototype.increment,N.prototype.append=N.prototype.append,N.prototype.remove=N.prototype.remove,N.prototype.union=N.prototype.union,N.prototype.track_charge=N.prototype.track_charge,N.prototype.clear_charges=N.prototype.clear_charges,N.prototype.delete_user=N.prototype.delete_user,N.prototype.toString=N.prototype.toString;var Zo="__mps",Qo="__mpso",es="__mpus",ts="__mpa",rs="__mpap",ns="__mpr",is="__mpu",ol="$people_distinct_id",Xn="__alias",Nr="__timers",Fg=[Zo,Qo,es,ts,rs,ns,is,ol,Xn,Nr],D=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 n=e.persistence;n!=="cookie"&&n!=="localStorage"&&(z.critical("Unknown persistence type "+n+"; falling back to cookie"),n=e.persistence="cookie"),n==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};D.prototype.properties=function(){var e={};return this.load(),h.each(this.props,function(n,i){h.include(Fg,i)||(e[i]=n)}),e},D.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=h.extend({},e))}},D.prototype.upgrade=function(){var e,n;this.storage===h.localStorage?(e=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===h.cookie&&(n=h.localStorage.parse(this.name),h.localStorage.remove(this.name),n&&this.register_once(n))},D.prototype.save=function(){this.disabled||this.storage.set(this.name,Vt(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},D.prototype.load_prop=function(e){return this.load(),this.props[e]},D.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},D.prototype.clear=function(){this.remove(),this.props={}},D.prototype.register_once=function(e,n,i){return h.isObject(e)?(typeof n=="undefined"&&(n="None"),this.expire_days=typeof i=="undefined"?this.default_expiry:i,this.load(),h.each(e,function(t,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=t)},this),this.save(),!0):!1},D.prototype.register=function(e,n){return h.isObject(e)?(this.expire_days=typeof n=="undefined"?this.default_expiry:n,this.load(),h.extend(this.props,e),this.save(),!0):!1},D.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},D.prototype.update_search_keyword=function(e){this.register(h.info.searchInfo(e))},D.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:h.info.referringDomain(e)||"$direct"},"")},D.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},D.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)},D.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},D.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},D.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},D.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},D.prototype.get_cross_subdomain=function(){return this.cross_subdomain},D.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},D.prototype._add_to_people_queue=function(e,n){var i=this._get_queue_key(e),t=n[e],r=this._get_or_create_queue(ht),o=this._get_or_create_queue(Xt),s=this._get_or_create_queue(Le),a=this._get_or_create_queue(bt),u=this._get_or_create_queue(wt),c=this._get_or_create_queue(Xe,[]),l=this._get_or_create_queue(qe,[]);i===Zo?(h.extend(r,t),this._pop_from_people_queue(bt,t),this._pop_from_people_queue(wt,t),this._pop_from_people_queue(Le,t)):i===Qo?(h.each(t,function(f,p){p in o||(o[p]=f)}),this._pop_from_people_queue(Le,t)):i===es?h.each(t,function(f){h.each([r,o,a,u],function(p){f in p&&delete p[f]}),h.each(l,function(p){f in p&&delete p[f]}),s[f]=!0}):i===ts?(h.each(t,function(f,p){p in r?r[p]+=f:(p in a||(a[p]=0),a[p]+=f)},this),this._pop_from_people_queue(Le,t)):i===is?(h.each(t,function(f,p){h.isArray(f)&&(p in u||(u[p]=[]),h.each(f,function(g){h.include(u[p],g)||u[p].push(g)}))}),this._pop_from_people_queue(Le,t)):i===ns?(c.push(t),this._pop_from_people_queue(qe,t)):i===rs&&(l.push(t),this._pop_from_people_queue(Le,t)),z.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),z.log(n),this.save()},D.prototype._pop_from_people_queue=function(e,n){var i=this.props[this._get_queue_key(e)];h.isUndefined(i)||h.each(n,function(t,r){e===qe||e===Xe?h.each(i,function(o){o[r]===t&&delete o[r]}):delete i[r]},this)},D.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},D.prototype._get_queue_key=function(e){if(e===ht)return Zo;if(e===Xt)return Qo;if(e===Le)return es;if(e===bt)return ts;if(e===qe)return rs;if(e===Xe)return ns;if(e===wt)return is;z.error("Invalid queue:",e)},D.prototype._get_or_create_queue=function(e,n){var i=this._get_queue_key(e);return n=h.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)},D.prototype.set_event_timer=function(e,n){var i=this.load_prop(Nr)||{};i[e]=n,this.props[Nr]=i,this.save()},D.prototype.remove_event_timer=function(e){var n=this.load_prop(Nr)||{},i=n[e];return h.isUndefined(i)||(delete this.props[Nr][e],this.save()),i};var os,sl=function(e,n){throw new Error(e+" not available in this build.")},fe,Ug=0,al=1,Bg=function(e){return e},ke="mixpanel",ul="base64",zg="json",ss="$device:",Zt=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,cl=!Zt&&He.indexOf("MSIE")===-1&&He.indexOf("Mozilla")===-1,Zn=null;ut.sendBeacon&&(Zn=function(){return ut.sendBeacon.apply(ut,arguments)});var ll={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},fl={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:ll,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:ul,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ct,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ct,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_heatmap_data:!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:Or,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},hl=!1,b=function(){},Qn=function(e,n,i){var t,r=i===ke?fe:fe[i];if(r&&os===Ug)t=r;else{if(r&&!h.isArray(r)){z.error("You have already initialized "+i);return}t=new b}if(t._cached_groups={},t._init(e,n,i),t.people=new N,t.people._init(t),!t.get_config("skip_first_touch_marketing")){var o=h.info.campaignParams(null),s={},a=!1;h.each(o,function(u,c){s["initial_"+c]=u,u&&(a=!0)}),a&&t.people.set_once(s)}return De.DEBUG=De.DEBUG||t.get_config("debug"),!h.isUndefined(r)&&h.isArray(r)&&(t._execute_array.call(t.people,r.people),t._execute_array(r)),t};b.prototype.init=function(e,n,i){if(h.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===ke){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var t=Qn(e,n,i);return fe[i]=t,t._loaded(),t},b.prototype._init=function(e,n,i){n=n||{},this.__loaded=!0,this.config={};var t={};if(!("api_payload_format"in n)){var r=n.api_host||fl.api_host;r.match(/\.mixpanel\.com/)&&(t.api_payload_format=zg)}if(this.set_config(h.extend({},fl,t,n,{name:i,token:e,callback_fn:(i===ke?i:ke+"."+i)+"._jsc"})),this._jsc=ct,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(!h.localStorage.is_supported(!0)||!Zt)this._batch_requests=!1,z.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(a){z.log("Clearing batch queue "+a.queue_key),h.localStorage.remove(a.queue_key)});else if(this.init_batchers(),Zn&&E.addEventListener){var o=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);E.addEventListener("pagehide",function(a){a.persisted&&o()}),E.addEventListener("visibilitychange",function(){j.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new D(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:ss+s,$device_id:s},""),this.flags=new G({getFullApiRoute:h.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:h.bind(this.get_config,this),getPropertyFunc:h.bind(this.get_property,this),trackingFunc:h.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Oe(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},b.prototype._init_tab_id=function(){if(h.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+e,i="mp_gen_new_tab_id_"+e;(h.sessionStorage.get(i)||!h.sessionStorage.get(n))&&h.sessionStorage.set(n,"$tab-"+h.UUID()),h.sessionStorage.set(i,"1"),this.tab_id=h.sessionStorage.get(n),E.addEventListener("beforeunload",function(){h.sessionStorage.remove(i)})}catch(t){this.report_error("Error initializing tab id",t)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},b.prototype.get_tab_id=function(){return this.tab_id||null},b.prototype._should_load_recorder=function(){var e=new Be(Lo),n=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(i){for(var t=0;t<i.length;t++)if(zo(i[t])||i[t].tabId===n)return!0;return!1}).catch(h.bind(function(i){this.report_error("Error checking recording registry",i)},this))},b.prototype._check_and_start_session_recording=lt(function(e){if(!E.MutationObserver){z.critical("Browser does not support MutationObserver; skipping session recording");return}var n=h.bind(function(t){var r=h.bind(function(){this._recorder=this._recorder||new E.__mp_recorder(this),this._recorder.resumeRecording(t)},this);h.isUndefined(E.__mp_recorder)?sl(this.get_config("recorder_src"),r):r()},this),i=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");e||i?n(!0):this._should_load_recorder().then(function(t){t&&n(!1)})}),b.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},b.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},b.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},b.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},b.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},b.prototype.get_session_recording_properties=function(){var e={},n=this._get_session_replay_id();return n&&(e.$mp_replay_id=n),e},b.prototype.get_session_replay_url=function(){var e=null,n=this._get_session_replay_id();if(n){var i=h.HTTPBuildQuery({replay_id:n,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+i}return e},b.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},b.prototype.__get_recorder=function(){return this._recorder},b.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=h.info.campaignParams(null);h.each(e,function(n,i){this.unregister(i)}.bind(this))}},b.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(j.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(h.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(j.referrer)},b.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},b.prototype._track_dom=function(e,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!hl)return this.__dom_loaded_queue.push([e,n]),!1;var i=new e().init(this);return i.track.apply(i,n)},b.prototype._prepare_callback=function(e,n){if(h.isUndefined(e))return null;if(Zt){var i=function(s){e(s,n)};return i}else{var t=this._jsc,r=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+r+"]";return t[r]=function(s){delete t[r],e(s,n)},o}},b.prototype._send_request=function(e,n,i,t){var r=!0;if(cl)return this.__request_queue.push(arguments),r;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!t&&(h.isFunction(i)||typeof i=="string")&&(t=i,i=null),i=h.extend(o,i||{}),Zt||(i.method="GET");var a=i.method==="POST",u=Zn&&a&&i.transport.toLowerCase()==="sendbeacon",c=i.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),Zt||(t?n.callback=t:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(n.data),delete n.data),h.extend(n,this.get_config("api_extra_query_params")),e+="?"+h.HTTPBuildQuery(n);var l=this;if("img"in n){var f=j.createElement("img");f.src=e,j.body.appendChild(f)}else if(u){try{r=Zn(e,s)}catch(m){l.report_error(m),r=!1}try{t&&t(r?1:0)}catch(m){l.report_error(m)}}else if(Zt)try{var p=new XMLHttpRequest;p.open(i.method,e,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),h.each(g,function(m,_){p.setRequestHeader(_,m)}),i.timeout_ms&&typeof p.timeout!="undefined"){p.timeout=i.timeout_ms;var v=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){if(t)if(c){var m;try{m=h.JSONDecode(p.responseText)}catch(S){if(l.report_error(S),i.ignore_json_errors)m=p.responseText;else return}t(m)}else t(Number(p.responseText))}else{var _;if(p.timeout&&!p.status&&new Date().getTime()-v>=p.timeout?_="timeout":_="Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(_),t)if(c){var w=p.responseHeaders||{};t({status:0,httpStatusCode:p.status,error:_,retryAfter:w["Retry-After"]})}else t(0)}},p.send(s)}catch(m){l.report_error(m),r=!1}else{var y=j.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=e;var d=j.getElementsByTagName("script")[0];d.parentNode.insertBefore(y,d)}return r},b.prototype._execute_array=function(e){var n,i=[],t=[],r=[];h.each(e,function(s){s&&(n=s[0],h.isArray(n)?r.push(s):typeof s=="function"?s.call(this):h.isArray(s)&&n==="alias"?i.push(s):h.isArray(s)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(s):t.push(s))},this);var o=function(s,a){h.each(s,function(u){if(h.isArray(u[0])){var c=a;h.each(u,function(l){c=c[l[0]].apply(c,l.slice(1))})}else this[u[0]].apply(this,u.slice(1))},a)};o(i,this),o(t,this),o(r,this)},b.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},b.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},b.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=h.bind(function(i){return new Pe(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(t,r,o){var s=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+s[i.api_name],this._encode_data_for_request(t),r,this._prepare_callback(o,t))},this),beforeSendHook:h.bind(function(t){return this._run_hook("before_send_"+i.type,t)},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:e(n.events),people:e(n.people),groups:e(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},b.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(e){e.start()}))},b.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(e){e.stop(),e.clear()})},b.prototype.push=function(e){this._execute_array([e])},b.prototype.disable=function(e){typeof e=="undefined"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},b.prototype._encode_data_for_request=function(e){var n=Vt(e);return this.get_config("api_payload_format")===ul&&(n=h.base64Encode(n)),{data:n}},b.prototype._track_or_batch=function(e,n){var i=h.truncate(e.data,255),t=e.endpoint,r=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};n=n||ct;var a=!0,u=h.bind(function(){return s.skip_hooks||(i=this._run_hook("before_send_"+e.type,i)),i?(z.log("MIXPANEL REQUEST:"),z.log(i),this._send_request(t,this._encode_data_for_request(i),s,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!o?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i},b.prototype.track=lt(function(e,n,i,t){!t&&typeof i=="function"&&(t=i,i=null),i=i||{};var r=i.transport;r&&(i.transport=r);var o=i.send_immediately;if(typeof t!="function"&&(t=ct),h.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){t(0);return}n=h.extend({},n),n.token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!h.isUndefined(s)){var a=new Date().getTime()-s;n.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?h.info.marketingParams():{};n=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var c=this.get_config("property_blacklist");h.isArray(c)?h.each(c,function(p){delete n[p]}):this.report_error("Invalid value for property_blacklist config: "+c);var l={event:e,properties:n},f=this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:i},t);return f}),b.prototype.set_group=lt(function(e,n,i){h.isArray(n)||(n=[n]);var t={};return t[e]=n,this.register(t),this.people.set(e,n,i)}),b.prototype.add_group=lt(function(e,n,i){var t=this.get_property(e),r={};return t===void 0?(r[e]=[n],this.register(r)):t.indexOf(n)===-1&&(t.push(n),r[e]=t,this.register(r)),this.people.union(e,n,i)}),b.prototype.remove_group=lt(function(e,n,i){var t=this.get_property(e);if(t!==void 0){var r=t.indexOf(n);r>-1&&(t.splice(r,1),this.register({group_key:t})),t.length===0&&this.unregister(e)}return this.people.remove(e,n,i)}),b.prototype.track_with_groups=lt(function(e,n,i,t){var r=h.extend({},n||{});return h.each(i,function(o,s){o!=null&&(r[s]=o)}),this.track(e,r,t)}),b.prototype._create_map_key=function(e,n){return e+"_"+JSON.stringify(n)},b.prototype._remove_group_from_cache=function(e,n){delete this._cached_groups[this._create_map_key(e,n)]},b.prototype.get_group=function(e,n){var i=this._create_map_key(e,n),t=this._cached_groups[i];return(t===void 0||t._group_key!==e||t._group_id!==n)&&(t=new ne,t._init(this,e,n),this._cached_groups[i]=t),t},b.prototype.track_pageview=lt(function(e,n){typeof e!="object"&&(e={}),n=n||{};var i=n.event_name||"$mp_web_page_view",t=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),r=h.extend({},t,e);return this.track(i,r)}),b.prototype.track_links=function(){return this._track_dom.call(this,Jt,arguments)},b.prototype.track_forms=function(){return this._track_dom.call(this,Jn,arguments)},b.prototype.time_event=function(e){if(h.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 Wg={persistent:!0},as=function(e){var n;return h.isObject(e)?n=e:h.isUndefined(e)?n={}:n={days:e},h.extend({},Wg,n)};b.prototype.register=function(e,n){var i=as(n);i.persistent?this.persistence.register(e,i.days):h.extend(this.unpersisted_superprops,e)},b.prototype.register_once=function(e,n,i){var t=as(i);t.persistent?this.persistence.register_once(e,n,t.days):(typeof n=="undefined"&&(n="None"),h.each(e,function(r,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===n)&&(this.unpersisted_superprops[o]=r)},this))},b.prototype.unregister=function(e,n){n=as(n),n.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},b.prototype._register_single=function(e,n){var i={};i[e]=n,this.register(i)},b.prototype.identify=function(e,n,i,t,r,o,s,a){var u=this.get_distinct_id();if(e&&u!==e){if(typeof e=="string"&&e.indexOf(ss)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==u&&e!==this.get_property(Xn)&&(this.unregister(Xn),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(n,i,t,r,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},b.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=h.UUID();this.register_once({distinct_id:ss+e,$device_id:e},""),this._check_and_start_session_recording()},b.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},b.prototype.alias=function(e,n){if(e===this.get_property(ol))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var i=this;return h.isUndefined(n)&&(n=this.get_distinct_id()),e!==n?(this._register_single(Xn,e),this.track("$create_alias",{alias:e,distinct_id:n},{skip_hooks:!0},function(){i.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},b.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},b.prototype.set_config=function(e){if(h.isObject(e)){h.extend(this.config,e);var n=e.batch_size;n&&h.each(this.request_batchers,function(i){i.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),De.DEBUG=De.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init()}},b.prototype.get_config=function(e){return this.config[e]},b.prototype._run_hook=function(e){var n=(this.config.hooks[e]||Bg).apply(this,at.call(arguments,1));return typeof n=="undefined"&&(this.report_error(e+" hook did not return a value"),n=null),n},b.prototype.get_property=function(e){return this.persistence.load_prop([e])},b.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},b.prototype.toString=function(){var e=this.get_config("name");return e!==ke&&(e=ke+"."+e),e},b.prototype._event_is_disabled=function(e){return h.isBlockedUA(He)||this._flags.disable_all_events||h.include(this.__disabled_events,e)},b.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&h.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")||h.cookie.get("mp_optout"))&&(h.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},b.prototype._gdpr_update_persistence=function(e){var n;if(e&&e.clear_persistence)n=!0;else if(e&&e.enable_persistence)n=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==n&&this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},b.prototype._gdpr_call_func=function(e,n){return n=h.extend({track:h.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")},n),h.localStorage.is_supported()||(n.persistence_type="cookie"),e(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.ignore_dnt})},b.prototype.opt_in_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(lg,e),this._gdpr_update_persistence(e)},b.prototype.opt_out_tracking=function(e){e=h.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(fg,e),this._gdpr_update_persistence(e)},b.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(hg,e)},b.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Ic,e)},b.prototype.clear_opt_in_out_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(pg,e),this._gdpr_update_persistence(e)},b.prototype.report_error=function(e,n){z.error.apply(z.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,n)}catch(i){z.error(i)}},b.prototype.init=b.prototype.init,b.prototype.reset=b.prototype.reset,b.prototype.disable=b.prototype.disable,b.prototype.time_event=b.prototype.time_event,b.prototype.track=b.prototype.track,b.prototype.track_links=b.prototype.track_links,b.prototype.track_forms=b.prototype.track_forms,b.prototype.track_pageview=b.prototype.track_pageview,b.prototype.register=b.prototype.register,b.prototype.register_once=b.prototype.register_once,b.prototype.unregister=b.prototype.unregister,b.prototype.identify=b.prototype.identify,b.prototype.alias=b.prototype.alias,b.prototype.name_tag=b.prototype.name_tag,b.prototype.set_config=b.prototype.set_config,b.prototype.get_config=b.prototype.get_config,b.prototype.get_api_host=b.prototype.get_api_host,b.prototype.get_property=b.prototype.get_property,b.prototype.get_distinct_id=b.prototype.get_distinct_id,b.prototype.toString=b.prototype.toString,b.prototype.opt_out_tracking=b.prototype.opt_out_tracking,b.prototype.opt_in_tracking=b.prototype.opt_in_tracking,b.prototype.has_opted_out_tracking=b.prototype.has_opted_out_tracking,b.prototype.has_opted_in_tracking=b.prototype.has_opted_in_tracking,b.prototype.clear_opt_in_out_tracking=b.prototype.clear_opt_in_out_tracking,b.prototype.get_group=b.prototype.get_group,b.prototype.set_group=b.prototype.set_group,b.prototype.add_group=b.prototype.add_group,b.prototype.remove_group=b.prototype.remove_group,b.prototype.track_with_groups=b.prototype.track_with_groups,b.prototype.start_batch_senders=b.prototype.start_batch_senders,b.prototype.stop_batch_senders=b.prototype.stop_batch_senders,b.prototype.start_session_recording=b.prototype.start_session_recording,b.prototype.stop_session_recording=b.prototype.stop_session_recording,b.prototype.pause_session_recording=b.prototype.pause_session_recording,b.prototype.resume_session_recording=b.prototype.resume_session_recording,b.prototype.get_session_recording_properties=b.prototype.get_session_recording_properties,b.prototype.get_session_replay_url=b.prototype.get_session_replay_url,b.prototype.get_tab_id=b.prototype.get_tab_id,b.prototype.DEFAULT_API_ROUTES=ll,b.prototype.__get_recorder=b.prototype.__get_recorder,D.prototype.properties=D.prototype.properties,D.prototype.update_search_keyword=D.prototype.update_search_keyword,D.prototype.update_referrer_info=D.prototype.update_referrer_info,D.prototype.get_cross_subdomain=D.prototype.get_cross_subdomain,D.prototype.clear=D.prototype.clear;var pt={},qg=function(){h.each(pt,function(e,n){n!==ke&&(fe[n]=e)}),fe._=h},Gg=function(){fe.init=function(e,n,i){if(i)return fe[i]||(fe[i]=pt[i]=Qn(e,n,i),fe[i]._loaded()),fe[i];var t=fe;pt[ke]?t=pt[ke]:e&&(t=Qn(e,n,ke),t._loaded(),pt[ke]=t),fe=t,os===al&&(E[ke]=fe),qg()}},Vg=function(){function e(){e.done||(e.done=!0,hl=!0,cl=!1,h.each(pt,function(t){t._dom_loaded()}))}function n(){try{j.documentElement.doScroll("left")}catch(t){setTimeout(n,1);return}e()}if(j.addEventListener)j.readyState==="complete"?e():j.addEventListener("DOMContentLoaded",e,!1);else if(j.attachEvent){j.attachEvent("onreadystatechange",e);var i=!1;try{i=E.frameElement===null}catch(t){}j.documentElement.doScroll&&i&&n()}h.register_event(E,"load",e,!0)};function jg(e){if(sl=e,os=al,fe=E[ke],h.isUndefined(fe)){z.critical('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.');return}if(fe.__loaded||fe.config&&fe.persistence){z.critical("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors.");return}var n=fe.__SV||0;if(n<1.1){z.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}h.each(fe._i,function(i){i&&h.isArray(i)&&(pt[i[i.length-1]]=Qn.apply(this,i))}),Gg(),fe.init(),h.each(pt,function(i){i._loaded()}),Vg()}function Yg(e,n){n()}jg(Yg)})();
1
+ (function(){"use strict";var E;if(typeof window=="undefined"){var ps={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:ps,referrer:""},screen:{width:0,height:0},location:ps,addEventListener:function(){},removeEventListener:function(){}}}else E=window;function ds(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i<n;i++)t[i]=e[i];return t}function vs(e,n,i,t,r,o,s){try{var a=e[o](s),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(t,r)}function ii(e){return function(){var n=this,i=arguments;return new Promise(function(t,r){var o=e.apply(n,i);function s(u){vs(o,t,r,s,a,"next",u)}function a(u){vs(o,t,r,s,a,"throw",u)}s(void 0)})}}function Ur(e,n,i){return gs()?Ur=Reflect.construct:Ur=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&or(c,s.prototype),c},Ur.apply(null,arguments)}function wl(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function ve(e,n,i){return n&&wl(e.prototype,n),e}function G(){return G=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},G.apply(this,arguments)}function oi(e){return oi=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},oi(e)}function ye(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&or(e,n)}function $(e,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function Sl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ir(e,n){if(e==null)return{};var i={},t=Object.keys(e),r,o;for(o=0;o<t.length;o++)r=t[o],!(n.indexOf(r)>=0)&&(i[r]=e[r]);return i}function or(e,n){return or=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},or(e,n)}function F(e){"@swc/helpers - typeof";return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Cl(e,n){if(e){if(typeof e=="string")return ds(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return ds(e,n)}}function Br(e){var n=typeof Map=="function"?new Map:void 0;return Br=function(t){if(t===null||!Sl(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return Ur(t,arguments,oi(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),or(r,t)},Br(e)}function gs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(gs=function(){return!!e})()}function x(e,n){var i=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=Cl(e))||n){i&&(e=i);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sr(e,n){var i,t,r,o,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,t&&(r=c[0]&2?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,t=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(c[0]===6&&s.label<r[1]){s.label=r[1],r=c;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(c);break}r[2]&&s.ops.pop(),s.trys.pop();continue}c=n.call(e,s)}catch(l){c=[6,l],t=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ms(e){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&e[n],t=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var Il=Object.defineProperty,El=function(e,n,i){return n in e?Il(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},I=function(e,n,i){return El(e,(typeof n=="undefined"?"undefined":F(n))!=="symbol"?n+"":n,i)},ys,xl=Object.defineProperty,Ol=function(e,n,i){return n in e?xl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},_s=function(e,n,i){return Ol(e,(typeof n=="undefined"?"undefined":F(n))!=="symbol"?n+"":n,i)},pe=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(pe||{}),bs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ws={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},zr={},kl=function(){return!!globalThis.Zone};function si(e){if(zr[e])return zr[e];var n=globalThis[e],i=n.prototype,t=e in bs?bs[e]:void 0,r=!!(t&&t.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),o=e in ws?ws[e]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!kl())return zr[e]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?zr[e]=c:i}catch(l){return i}}var ai={};function Qe(e,n,i){var t,r=e+"."+String(i);if(ai[r])return ai[r].call(n);var o=si(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(ai[r]=s,s.call(n)):n[i]}var ui={};function Ss(e,n,i){var t=e+"."+String(i);if(ui[t])return ui[t].bind(n);var r=si(e),o=r[i];return typeof o!="function"?n[i]:(ui[t]=o,o.bind(n))}function Rl(e){return Qe("Node",e,"childNodes")}function Al(e){return Qe("Node",e,"parentNode")}function Ml(e){return Qe("Node",e,"parentElement")}function Tl(e){return Qe("Node",e,"textContent")}function Pl(e,n){return Ss("Node",e,"contains")(n)}function Nl(e){return Ss("Node",e,"getRootNode")()}function $l(e){return!e||!("host"in e)?null:Qe("ShadowRoot",e,"host")}function Ll(e){return e.styleSheets}function Dl(e){return!e||!("shadowRoot"in e)?null:Qe("Element",e,"shadowRoot")}function Fl(e,n){return Qe("Element",e,"querySelector")(n)}function Ul(e,n){return Qe("Element",e,"querySelectorAll")(n)}function Bl(){return si("MutationObserver").constructor}var _e={childNodes:Rl,parentNode:Al,parentElement:Ml,textContent:Tl,contains:Pl,getRootNode:Nl,host:$l,styleSheets:Ll,shadowRoot:Dl,querySelector:Fl,querySelectorAll:Ul,mutationObserver:Bl};function Cs(e){return e.nodeType===e.ELEMENT_NODE}function ar(e){var n=e&&"host"in e&&"mode"in e&&_e.host(e)||null;return!!(n&&"shadowRoot"in n&&_e.shadowRoot(n)===e)}function ur(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function zl(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Wl(e){var n=e.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?i.push("layer"):e.layerName&&i.push("layer("+e.layerName+")"),e.supportsText&&i.push("supports("+e.supportsText+")"),e.media.length&&i.push(e.media.mediaText),i.join(" ")+";"}function ci(e){try{var n=e.rules||e.cssRules;if(!n)return null;var i=e.href;!i&&e.ownerNode&&e.ownerNode.ownerDocument&&(i=e.ownerNode.ownerDocument.location.href);var t=Array.from(n,function(r){return Is(r,i)}).join("");return zl(t)}catch(r){return null}}function Is(e,n){if(Gl(e)){var i;try{i=ci(e.styleSheet)||Wl(e)}catch(r){i=e.cssText}return e.styleSheet.href?Wr(i,e.styleSheet.href):i}else{var t=e.cssText;return jl(e)&&e.selectorText.includes(":")&&(t=ql(t)),n?Wr(t,n):t}}function ql(e){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(n,"$1\\$2")}function Gl(e){return"styleSheet"in e}function jl(e){return"selectorText"in e}var Es=function(){function e(){_s(this,"idNodeMap",new Map),_s(this,"nodeMetaMap",new WeakMap)}var n=e.prototype;return n.getId=function(t){var r;if(!t)return-1;var o=(r=this.getMeta(t))==null?void 0:r.id;return o!=null?o:-1},n.getNode=function(t){return this.idNodeMap.get(t)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(t){return this.nodeMetaMap.get(t)||null},n.removeNodeFromMap=function(t){var r=this,o=this.getId(t);this.idNodeMap.delete(o),t.childNodes&&t.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},n.has=function(t){return this.idNodeMap.has(t)},n.hasNode=function(t){return this.nodeMetaMap.has(t)},n.add=function(t,r){var o=r.id;this.idNodeMap.set(o,t),this.nodeMetaMap.set(t,r)},n.replace=function(t,r){var o=this.getNode(t);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Vl(){return new Es}function li(e){var n=e.element,i=e.maskInputOptions,t=e.tagName,r=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=r&&vt(r);return(i[t.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function vt(e){return e.toLowerCase()}var xs="__rrweb_original__";function Yl(e){var n=e.getContext("2d");if(!n)return!0;for(var i=50,t=0;t<e.width;t+=i)for(var r=0;r<e.height;r+=i){var o=n.getImageData,s=xs in o?o[xs]:o,a=new Uint32Array(s.call(n,t,r,Math.min(i,e.width-t),Math.min(i,e.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function fi(e){var n=e.type;return e.hasAttribute("data-rr-is-password")?"password":n?vt(n):null}function Os(e,n){var i;try{i=new URL(e,n!=null?n:window.location.href)}catch(s){return null}var t=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(t),o;return(o=r==null?void 0:r[1])!=null?o:null}function Hl(e){var n="";return e.indexOf("//")>-1?n=e.split("/").slice(0,3).join("/"):n=e.split("/")[0],n=n.split("?")[0],n}var Kl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Jl=/^(?:[a-z+]+:)?\/\//i,Xl=/^www\..*/i,Zl=/^(data:)([^,]*),(.*)/i;function Wr(e,n){return(e||"").replace(Kl,function(i,t,r,o,s,a){var u=r||s||a,c=t||o||"";if(!u)return i;if(Jl.test(u)||Xl.test(u)||Zl.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(Hl(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var p=x(f),g;!(g=p()).done;){var v=g.value;v!=="."&&(v===".."?l.pop():l.push(v))}return"url("+c+l.join("/")+c+")"})}function hi(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function Ql(e,n){var i=Array.from(n.childNodes),t=[];if(i.length>1&&e&&typeof e=="string"){for(var r=hi(e),o=1;o<i.length;o++)if(i[o].textContent&&typeof i[o].textContent=="string")for(var s=hi(i[o].textContent),a=3;a<s.length;a++){var u=s.substring(0,a);if(r.split(u).length===2){for(var c=r.indexOf(u),l=c;l<e.length;l++)if(hi(e.substring(0,l)).length===c){t.push(e.substring(0,l)),e=e.substring(l);break}break}}}return t.push(e),t}function ef(e,n){return Ql(e,n).join("/* rr_split */")}var tf=1,rf=new RegExp("[^a-z0-9-_:]"),cr=-2;function ks(){return tf++}function nf(e){if($(e,HTMLFormElement))return"form";var n=vt(e.tagName);return rf.test(n)?"div":n}var Tt,Rs,of=/^[^ \t\n\r\u000c]+/,sf=/^[, \t\n\r\u000c]+/;function af(e,n){if(n.trim()==="")return n;var i=0;function t(c){var l,f=c.exec(n.substring(i));return f?(l=f[0],i+=l.length,l):""}for(var r=[];t(sf),!(i>=n.length);){var o=t(of);if(o.slice(-1)===",")o=Pt(e,o.substring(0,o.length-1)),r.push(o);else{var s="";o=Pt(e,o);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,i+=1}}}return r.join(", ")}var As=new WeakMap;function Pt(e,n){return!n||n.trim()===""?n:pi(e,n)}function uf(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function pi(e,n){var i=As.get(e);if(i||(i=e.createElement("a"),As.set(e,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function Ms(e,n,i,t){return t&&(i==="src"||i==="href"&&!(n==="use"&&t[0]==="#")||i==="xlink:href"&&t[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?Pt(e,t):i==="srcset"?af(e,t):i==="style"?Wr(t,pi(e)):n==="object"&&i==="data"?Pt(e,t):t)}function Ts(e,n,i){return(e==="video"||e==="audio")&&n==="autoplay"}function cf(e,n,i){try{if(typeof n=="string"){if(e.classList.contains(n))return!0}else for(var t=e.classList.length;t--;){var r=e.classList[t];if(n.test(r))return!0}if(i)return e.matches(i)}catch(o){}return!1}function qr(e,n,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return i?qr(_e.parentNode(e),n,i):!1;for(var t=e.classList.length;t--;){var r=e.classList[t];if(n.test(r))return!0}return i?qr(_e.parentNode(e),n,i):!1}function Ps(e,n,i,t){var r;if(Cs(e)){if(r=e,!_e.childNodes(r).length)return!1}else{if(_e.parentElement(e)===null)return!1;r=_e.parentElement(e)}try{if(typeof n=="string"){if(t){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(qr(r,n,t))return!0;if(i){if(t){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(o){}return!1}function lf(e,n,i){var t=e.contentWindow;if(t){var r=!1,o;try{o=t.document.readyState}catch(u){return}if(o!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},i);e.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var a="about:blank";if(t.location.href!==a||e.src===a||e.src==="")return setTimeout(n,0),e.addEventListener("load",n);e.addEventListener("load",n)}}function ff(e,n,i){var t=!1,r;try{r=e.sheet}catch(s){return}if(!r){var o=setTimeout(function(){t||(n(),t=!0)},i);e.addEventListener("load",function(){clearTimeout(o),t=!0,n()})}}function hf(e,n){var i=n.doc,t=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,p=n.dataURLOptions,g=p===void 0?{}:p,v=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,w=n.cssCaptured,S=w===void 0?!1:w,C=pf(i,t);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pe.Document,childNodes:[],compatMode:e.compatMode}:{type:pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return vf(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:v,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:_,rootId:C});case e.TEXT_NODE:return df(e,{doc:i,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:S});case e.CDATA_SECTION_NODE:return{type:pe.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:pe.Comment,textContent:_e.textContent(e)||"",rootId:C};default:return!1}}function pf(e,n){if(n.hasNode(e)){var i=n.getId(e);return i===1?void 0:i}}function df(e,n){var i=n.needsMask,t=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=_e.parentNode(e),a=s&&s.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":o||(u=_e.textContent(e),c&&u&&(u=Wr(u,pi(n.doc)))),!c&&!l&&u&&i&&(u=t?t(u,_e.parentElement(e)):u.replace(/[\S]/g,"*")),{type:pe.Text,textContent:u||"",rootId:r}}function vf(e,n){for(var i=n.doc,t=n.blockClass,r=n.blockSelector,o=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,p=n.recordCanvas,g=n.keepIframeSrcFn,v=n.newlyAddedElement,y=v===void 0?!1:v,d=n.rootId,m=cf(e,t,r),_=nf(e),w={},S=e.attributes.length,C=0;C<S;C++){var O=e.attributes[C];Ts(_,O.name,O.value)||(w[O.name]=Ms(i,_,vt(O.name),O.value))}if(_==="link"&&o){var R=Array.from(i.styleSheets).find(function(Me){return Me.href===e.href}),k=null;R&&(k=ci(R)),k&&(delete w.rel,delete w.href,w._cssText=k)}if(_==="style"&&e.sheet){var P=ci(e.sheet);P&&(e.childNodes.length>1&&(P=ef(P,e)),w._cssText=P)}if(_==="input"||_==="textarea"||_==="select"){var j=e.value,M=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&j?w.value=li({element:e,type:fi(e),tagName:_,value:j,maskInputOptions:a,maskInputFn:u}):M&&(w.checked=M)}if(_==="option"&&(e.selected&&!a.select?w.selected=!0:delete w.selected),_==="dialog"&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&p){if(e.__context==="2d")Yl(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var D=e.toDataURL(l.type,l.quality),K=i.createElement("canvas");K.width=e.width,K.height=e.height;var Oe=K.toDataURL(l.type,l.quality);D!==Oe&&(w.rr_dataURL=D)}}if(_==="img"&&f){Tt||(Tt=i.createElement("canvas"),Rs=Tt.getContext("2d"));var J=e,Re=J.currentSrc||J.getAttribute("src")||"<unknown-src>",Ee=J.crossOrigin,se=function(){J.removeEventListener("load",se);try{Tt.width=J.naturalWidth,Tt.height=J.naturalHeight,Rs.drawImage(J,0,0),w.rr_dataURL=Tt.toDataURL(l.type,l.quality)}catch(Me){if(J.crossOrigin!=="anonymous"){J.crossOrigin="anonymous",J.complete&&J.naturalWidth!==0?se():J.addEventListener("load",se);return}else console.warn("Cannot inline img src="+Re+"! Error: "+Me)}J.crossOrigin==="anonymous"&&(Ee?w.crossOrigin=Ee:J.removeAttribute("crossorigin"))};J.complete&&J.naturalWidth!==0?se():J.addEventListener("load",se)}if(_==="audio"||_==="video"){var me=w;me.rr_mediaState=e.paused?"paused":"played",me.rr_mediaCurrentTime=e.currentTime,me.rr_mediaPlaybackRate=e.playbackRate,me.rr_mediaMuted=e.muted,me.rr_mediaLoop=e.loop,me.rr_mediaVolume=e.volume}if(y||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),m){var Ae=e.getBoundingClientRect(),Ct=Ae.width,Ge=Ae.height;w={class:w.class,rr_width:""+Ct+"px",rr_height:""+Ge+"px"}}_==="iframe"&&!g(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);var er;try{customElements.get(_)&&(er=!0)}catch(Me){}return{type:pe.Element,tagName:_,attributes:w,childNodes:[],isSVG:uf(e)||void 0,needBlock:m,rootId:d,isCustom:er}}function ee(e){return e==null?"":e.toLowerCase()}function gf(e,n){if(n.comment&&e.type===pe.Comment)return!0;if(e.type===pe.Element){if(n.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"&&Os(e.attributes.href)==="js"))return!0;if(n.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ee(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(e.attributes.name)==="application-name"||ee(e.attributes.rel)==="icon"||ee(e.attributes.rel)==="apple-touch-icon"||ee(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(n.headMetaDescKeywords&&ee(e.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(e.attributes.property).match(/^(og|twitter|fb):/)||ee(e.attributes.name).match(/^(og|twitter):/)||ee(e.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(ee(e.attributes.name)==="robots"||ee(e.attributes.name)==="googlebot"||ee(e.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(ee(e.attributes.name)==="author"||ee(e.attributes.name)==="generator"||ee(e.attributes.name)==="framework"||ee(e.attributes.name)==="publisher"||ee(e.attributes.name)==="progid"||ee(e.attributes.property).match(/^article:/)||ee(e.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(ee(e.attributes.name)==="google-site-verification"||ee(e.attributes.name)==="yandex-verification"||ee(e.attributes.name)==="csrf-token"||ee(e.attributes.name)==="p:domain_verify"||ee(e.attributes.name)==="verify-v1"||ee(e.attributes.name)==="verification"||ee(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Nt(e,n){var i=n.doc,t=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,p=n.maskInputOptions,g=p===void 0?{}:p,v=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,w=n.inlineImages,S=w===void 0?!1:w,C=n.recordCanvas,O=C===void 0?!1:C,R=n.onSerialize,k=n.onIframeLoad,P=n.iframeLoadTimeout,j=P===void 0?5e3:P,M=n.onStylesheetLoad,D=n.stylesheetLoadTimeout,K=D===void 0?5e3:D,Oe=n.keepIframeSrcFn,J=Oe===void 0?function(){return!1}:Oe,Re=n.newlyAddedElement,Ee=Re===void 0?!1:Re,se=n.cssCaptured,me=se===void 0?!1:se,Ae=n.needsMask,Ct=n.preserveWhiteSpace,Ge=Ct===void 0?!0:Ct;if(!Ae){var er=Ae===void 0;Ae=Ps(e,s,a,er)}var Me=hf(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Ae,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,dataURLOptions:_,inlineImages:S,recordCanvas:O,keepIframeSrcFn:J,newlyAddedElement:Ee,cssCaptured:me});if(!Me)return console.warn(e,"not serialized"),null;var It;t.hasNode(e)?It=t.getId(e):gf(Me,d)||!Ge&&Me.type===pe.Text&&!Me.textContent.replace(/^\s+|\s+$/gm,"").length?It=cr:It=ks();var H=Object.assign(Me,{id:It});if(t.add(e,H),It===cr)return null;R&&R(e);var Et=!c;if(H.type===pe.Element){Et=Et&&!H.needBlock,delete H.needBlock;var xt=_e.shadowRoot(e);xt&&ur(xt)&&(H.isShadowHost=!0)}if((H.type===pe.Document||H.type===pe.Element)&&Et){d.headWhitespace&&H.type===pe.Element&&H.tagName==="head"&&(Ge=!1);var tr={doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Ae,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ge,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:j,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J,cssCaptured:!1};if(!(H.type===pe.Element&&H.tagName==="textarea"&&H.attributes.value!==void 0)){H.type===pe.Element&&H.attributes._cssText!==void 0&&typeof H.attributes._cssText=="string"&&(tr.cssCaptured=!0);for(var $r=x(Array.from(_e.childNodes(e))),Lr;!(Lr=$r()).done;){var ls=Lr.value,ri=Nt(ls,tr);ri&&H.childNodes.push(ri)}}var dt=null;if(Cs(e)&&(dt=_e.shadowRoot(e)))for(var Ot=x(Array.from(_e.childNodes(dt))),rr;!(rr=Ot()).done;){var Dr=rr.value,nr=Nt(Dr,tr);nr&&(ur(dt)&&(nr.isShadow=!0),H.childNodes.push(nr))}}var kt=_e.parentNode(e);return kt&&ar(kt)&&ur(kt)&&(H.isShadow=!0),H.type===pe.Element&&H.tagName==="iframe"&&lf(e,function(){var Ze=e.contentDocument;if(Ze&&k){var Rt=Nt(Ze,{doc:Ze,mirror:t,blockClass:r,blockSelector:o,needsMask:Ae,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ge,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:j,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J});Rt&&k(e,Rt)}},j),H.type===pe.Element&&H.tagName==="link"&&typeof H.attributes.rel=="string"&&(H.attributes.rel==="stylesheet"||H.attributes.rel==="preload"&&typeof H.attributes.href=="string"&&Os(H.attributes.href)==="css")&&ff(e,function(){if(M){var Ze=Nt(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Ae,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ge,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:j,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J});Ze&&M(e,Ze)}},K),H}function mf(e,n){var i=n||{},t=i.mirror,r=t===void 0?new Es:t,o=i.blockClass,s=o===void 0?"rr-block":o,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,p=f===void 0?null:f,g=i.inlineStylesheet,v=g===void 0?!0:g,y=i.inlineImages,d=y===void 0?!1:y,m=i.recordCanvas,_=m===void 0?!1:m,w=i.maskAllInputs,S=w===void 0?!1:w,C=i.maskTextFn,O=i.maskInputFn,R=i.slimDOM,k=R===void 0?!1:R,P=i.dataURLOptions,j=i.preserveWhiteSpace,M=i.onSerialize,D=i.onIframeLoad,K=i.iframeLoadTimeout,Oe=i.onStylesheetLoad,J=i.stylesheetLoadTimeout,Re=i.keepIframeSrcFn,Ee=Re===void 0?function(){return!1}:Re,se=S===!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}:S===!1?{password:!0}:S,me=k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:k==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:k===!1?{}:k;return Nt(e,{doc:e,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:se,maskTextFn:C,maskInputFn:O,slimDOMOptions:me,dataURLOptions:P,inlineImages:d,recordCanvas:_,preserveWhiteSpace:j,onSerialize:M,onIframeLoad:D,iframeLoadTimeout:K,onStylesheetLoad:Oe,stylesheetLoadTimeout:J,keepIframeSrcFn:Ee,newlyAddedElement:!1})}function yf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _f(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return $(this,t)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),i}var di={exports:{}},te=String,Ns=function(){return{isColorSupported:!1,reset:te,bold:te,dim:te,italic:te,underline:te,inverse:te,hidden:te,strikethrough:te,black:te,red:te,green:te,yellow:te,blue:te,magenta:te,cyan:te,white:te,gray:te,bgBlack:te,bgRed:te,bgGreen:te,bgYellow:te,bgBlue:te,bgMagenta:te,bgCyan:te,bgWhite:te}};di.exports=Ns(),di.exports.createColors=Ns;var bf=di.exports,wf={},Sf=Object.freeze(Object.defineProperty({__proto__:null,default:wf},Symbol.toStringTag,{value:"Module"})),ce=_f(Sf),$s=bf,Ls=ce,vi=function(e){ye(n,e);function n(t,r,o,s,a,u){var c;return c=e.call(this,t)||this,c.name="CssSyntaxError",c.reason=t,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=$s.isColorSupported),Ls&&r&&(s=Ls(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=$s.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+m+"\n "+C+f("^")}return" "+p(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Br(Error)),gi=vi;vi.default=vi;var et={};et.isClean=Symbol("isClean"),et.my=Symbol("my");var Ds={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Cf(e){return e[0].toUpperCase()+e.slice(1)}var mi=function(){function e(i){this.builder=i}var n=e.prototype;return n.atrule=function(t,r){var o="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?o+=t.raws.afterName:s&&(o+=" "),t.nodes)this.block(t,o+s);else{var a=(t.raws.between||"")+(r?";":"");this.builder(o+s+a,t)}},n.beforeAfter=function(t,r){var o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):r==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");for(var s=t.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(t,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(t,r){var o=this.raw(t,"between","beforeOpen");this.builder(r+o+"{",t,"start");var s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")},n.body=function(t){for(var r=t.nodes.length-1;r>0&&t.nodes[r].type==="comment";)r-=1;for(var o=this.raw(t,"semicolon"),s=0;s<t.nodes.length;s++){var a=t.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(t){var r=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+o+"*/",t)},n.decl=function(t,r){var o=this.raw(t,"between","colon"),s=t.prop+o+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),r&&(s+=";"),this.builder(s,t)},n.document=function(t){this.body(t)},n.raw=function(t,r,o){var s;if(o||(o=r),r&&(s=t.raws[r],typeof s!="undefined"))return s;var a=t.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return Ds[o];var u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);var c="raw"+Cf(o);return this[c]?s=this[c](u,t):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Ds[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(t,r){var o;return t.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(t,r){var o;return t.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(t){var r;return t.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(t){var r;return t.walk(function(o){if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(t){var r;return t.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(t){if(t.raws.indent)return t.raws.indent;var r;return t.walk(function(o){var s=o.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(t,r){var o=t[r],s=t.raws[r];return s&&s.value===o?s.raw:o},n.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},n.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},n.stringify=function(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)},e}(),Fs=mi;mi.default=mi;var If=Fs;function yi(e,n){var i=new If(n);i.stringify(e)}var Gr=yi;yi.default=yi;var jr=et.isClean,Ef=et.my,xf=gi,Of=Fs,kf=Gr;function _i(e,n){var i=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t!=="proxyCache"){var r=e[t],o=typeof r=="undefined"?"undefined":F(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return _i(s,i)}):(o==="object"&&r!==null&&(r=_i(r)),i[t]=r)}return i}var bi=function(){function e(i){i===void 0&&(i={}),this.raws={},this[jr]=!1,this[Ef]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=x(i[t]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[t]=i[t]}var n=e.prototype;return n.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return t},n.after=function(t){return this.parent.insertAfter(this,t),this},n.assign=function(t){t===void 0&&(t={});for(var r in t)this[r]=t[r];return this},n.before=function(t){return this.parent.insertBefore(this,t),this},n.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},n.clone=function(t){t===void 0&&(t={});var r=_i(this);for(var o in t)r[o]=t[o];return r},n.cloneAfter=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertBefore(this,r),r},n.error=function(t,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new xf(t)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[jr]){this[jr]=!1;for(var t=this;t=t.parent;)t[jr]=!1}},n.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},n.positionBy=function(t,r){var o=this.source.start;if(t.index)o=this.positionInside(t.index,r);else if(t.word){r=this.toString();var s=r.indexOf(t.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(t,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<t;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},n.rangeBy=function(t){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){var s=this.toString(),a=s.indexOf(t.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+t.word.length,s))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(t,r){var o=new Of;return o.raw(this,t,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=x(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var t=this;t.parent&&t.parent.type!=="document";)t=t.parent;return t},n.toJSON=function(t,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":F(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":F(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(t){t===void 0&&(t=kf),t.stringify&&(t=t.stringify);var r="";return t(this,function(o){r+=o}),r},n.warn=function(t,r,o){var s={node:this};for(var a in o)s[a]=o[a];return t.warn(r,s)},ve(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Vr=bi;bi.default=bi;var Rf=Vr,wi=function(e){ye(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=G({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return ve(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Rf),Yr=wi;wi.default=wi;var Af="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Mf=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=Af[Math.random()*64|0];return n},Tf={nanoid:Mf},Us=ce.SourceMapConsumer,Bs=ce.SourceMapGenerator,Pf=ce.existsSync,Nf=ce.readFileSync,Si=ce.dirname,$f=ce.join;function Lf(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Ci=function(){function e(i,t){if(t.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,o=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Si(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Us(this.text)),this.consumerCache},n.decodeInline=function(t){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(t)||a.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||o.test(t))return Lf(t.substr(RegExp.lastMatch.length));var u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(t){return(typeof t=="undefined"?"undefined":F(t))!=="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)},n.loadAnnotation=function(t){var r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=t.lastIndexOf(r.pop()),s=t.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,s)))}},n.loadFile=function(t){if(this.root=Si(t),Pf(t))return this.mapFile=t,Nf(t,"utf-8").toString().trim()},n.loadMap=function(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(t);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if($(r,Us))return Bs.fromSourceMap(r).toString();if($(r,Bs))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return t&&(a=$f(Si(t),a)),this.loadFile(a)}}},n.startWith=function(t,r){return t?t.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),zs=Ci;Ci.default=Ci;var Df=ce.SourceMapConsumer,Ff=ce.SourceMapGenerator,Ws=ce.fileURLToPath,Hr=ce.pathToFileURL,Ii=ce.isAbsolute,Ei=ce.resolve,Uf=Tf.nanoid,xi=ce,qs=gi,Bf=zs,Oi=Symbol("fromOffsetCache"),zf=!!(Df&&Ff),Gs=!!(Ei&&Ii),Kr=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":F(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Gs||/^\w+:\/\//.test(t.from)||Ii(t.from)?this.file=t.from:this.file=Ei(t.from)),Gs&&zf){var r=new Bf(this.css,t);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Uf(6)+">"),this.map&&(this.map.file=this.from)}var n=e.prototype;return n.error=function(t,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":F(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,o=p.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var y=this.origin(r,o,u,c);return y?a=new qs(t,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new qs(t,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Hr&&(a.input.url=Hr(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[Oi])o=this[Oi];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[Oi]=o}r=o[o.length-1];var l=0;if(t>=r)l=o.length-1;else for(var f=o.length-2,p;l<f;)if(p=l+(f-l>>1),t<o[p])f=p-1;else if(t>=o[p+1])l=p+1;else{l=p;break}return{col:t-o[l]+1,line:l+1}},n.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:Ei(this.map.consumer().sourceRoot||this.map.root||".",t)},n.origin=function(t,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:t});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Ii(u.source)?l=Hr(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Hr(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Ws)f.file=Ws(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var t={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(t[s]=this[s])}return this.map&&(t.map=G({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},ve(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Jr=Kr;Kr.default=Kr,xi&&xi.registerInput&&xi.registerInput(Kr);var js=ce.SourceMapConsumer,Xr=ce.SourceMapGenerator,Zr=ce.dirname,Vs=ce.relative,Ys=ce.resolve,Hs=ce.sep,Ks=ce.pathToFileURL,Wf=Jr,qf=!!(js&&Xr),Gf=!!(Zr&&Ys&&Vs&&Hs),jf=function(){function e(i,t,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+t+" */"},n.applyPrevMaps=function(){for(var t=x(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Zr(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new js(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var t,r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Gf&&qf&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(r){t+=r}),[t]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Xr.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Xr({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},n.generateString=function(){var t=this;this.css="",this.map=new Xr({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(t.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=t.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,t.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=t.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,t.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(t){return t.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var t=this.mapOpts.annotation;return typeof t!="undefined"&&t!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(t){return t.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;var r=this.memoizedPaths.get(t);if(r)return r;var o=this.opts.to?Zr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Zr(Ys(o,this.mapOpts.annotation)));var s=Vs(o,t);return this.memoizedPaths.set(t,s),s},n.previous=function(){var t=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;t.previousMaps.includes(s)||t.previousMaps.push(s)}});else{var r=new Wf(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var t=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=t.usesFileUrls?t.toFileUrl(a):t.toUrl(t.path(a));t.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},n.toBase64=function(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},n.toFileUrl=function(t){var r=this.memoizedFileURLs.get(t);if(r)return r;if(Ks){var o=Ks(t).toString();return this.memoizedFileURLs.set(t,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(t){var r=this.memoizedURLs.get(t);if(r)return r;Hs==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),Js=jf,Vf=Vr,ki=function(e){ye(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(Vf),Qr=ki;ki.default=ki;var Xs=et.isClean,Zs=et.my,Qs=Yr,ea=Qr,Yf=Vr,ta,Ri,Ai,ra;function na(e){return e.map(function(n){return n.nodes&&(n.nodes=na(n.nodes)),delete n.source,n})}function ia(e){if(e[Xs]=!1,e.proxyOf.nodes)for(var n=x(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;ia(t)}}var je=function(e){ye(n,e);function n(){return e.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=x(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=x(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=x(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=x(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],s<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=x(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],s<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=na(ta(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=x(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=x(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Qs(r)]}else if(r.selector)r=[new Ri(r)];else if(r.name)r=[new Ai(r)];else if(r.text)r=[new ea(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Zs]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Xs]&&ia(v),typeof v.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=x(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=x(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=x(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ve(n,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),n}(Yf);je.registerParse=function(e){ta=e},je.registerRule=function(e){Ri=e},je.registerAtRule=function(e){Ai=e},je.registerRoot=function(e){ra=e};var gt=je;je.default=je,je.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,Ai.prototype):e.type==="rule"?Object.setPrototypeOf(e,Ri.prototype):e.type==="decl"?Object.setPrototypeOf(e,Qs.prototype):e.type==="comment"?Object.setPrototypeOf(e,ea.prototype):e.type==="root"&&Object.setPrototypeOf(e,ra.prototype),e[Zs]=!0,e.nodes&&e.nodes.forEach(function(n){je.rebuild(n)})};var Hf=gt,oa,sa,lr=function(e){ye(n,e);function n(t){var r;return r=e.call(this,G({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new oa(new sa,this,r);return o.stringify()},n}(Hf);lr.registerLazyResult=function(e){oa=e},lr.registerProcessor=function(e){sa=e};var Mi=lr;lr.default=lr;var aa={},ua=function(n){aa[n]||(aa[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Ti=function(){function e(i,t){if(t===void 0&&(t={}),this.type="warning",this.text=i,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in t)this[o]=t[o]}var n=e.prototype;return n.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),ca=Ti;Ti.default=Ti;var Kf=ca,Pi=function(){function e(i,t,r){this.processor=i,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var n=e.prototype;return n.toString=function(){return this.css},n.warn=function(t,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new Kf(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},ve(e,[{key:"content",get:function(){return this.css}}]),e}(),Ni=Pi;Pi.default=Pi;var $i=39,la=34,en=92,fa=47,tn=10,fr=32,rn=12,nn=9,on=13,Jf=91,Xf=93,Zf=40,Qf=41,eh=123,th=125,rh=59,nh=42,ih=58,oh=64,sn=/[\t\n\f\r "#'()/;[\\\]{}]/g,an=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,sh=/.[\r\n"'(/\\]/,ha=/[\da-f]/i,ah=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,v,y=t.length,d=0,m=[],_=[];function w(){return d}function S(k){throw n.error("Unclosed "+k,d)}function C(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var P=k?k.ignoreUnclosed:!1;switch(o=t.charCodeAt(d),o){case tn:case fr:case nn:case on:case rn:{s=d;do s+=1,o=t.charCodeAt(s);while(o===fr||o===tn||o===nn||o===on||o===rn);v=["space",t.slice(d,s)],d=s-1;break}case Jf:case Xf:case eh:case th:case ih:case rh:case Qf:{var j=String.fromCharCode(o);v=[j,j,d];break}case Zf:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(d+1),p==="url"&&g!==$i&&g!==la&&g!==fr&&g!==tn&&g!==nn&&g!==rn&&g!==on){s=d;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||P){s=d;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===en;)f-=1,l=!l}while(l);v=["brackets",t.slice(d,s+1),d,s],d=s}else s=t.indexOf(")",d+1),u=t.slice(d,s+1),s===-1||sh.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case $i:case la:{a=o===$i?"'":'"',s=d;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||P){s=d+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===en;)f-=1,l=!l}while(l);v=["string",t.slice(d,s+1),d,s],d=s;break}case oh:{sn.lastIndex=d+1,sn.test(t),sn.lastIndex===0?s=t.length-1:s=sn.lastIndex-2,v=["at-word",t.slice(d,s+1),d,s],d=s;break}case en:{for(s=d,c=!0;t.charCodeAt(s+1)===en;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==fa&&o!==fr&&o!==tn&&o!==nn&&o!==on&&o!==rn&&(s+=1,ha.test(t.charAt(s)))){for(;ha.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===fr&&(s+=1)}v=["word",t.slice(d,s+1),d,s],d=s;break}default:{o===fa&&t.charCodeAt(d+1)===nh?(s=t.indexOf("*/",d+2)+1,s===0&&(r||P?s=t.length:S("comment")),v=["comment",t.slice(d,s+1),d,s],d=s):(an.lastIndex=d+1,an.test(t),an.lastIndex===0?s=t.length-1:s=an.lastIndex-2,v=["word",t.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function R(k){_.push(k)}return{back:R,endOfFile:C,nextToken:O,position:w}},pa=gt,un=function(e){ye(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],o))},n}(pa),Li=un;un.default=un,pa.registerAtRule(un);var da=gt,va,ga,$t=function(e){ye(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=e.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=x(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),e.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new va(new ga,this,r);return o.stringify()},n}(da);$t.registerLazyResult=function(e){va=e},$t.registerProcessor=function(e){ga=e};var hr=$t;$t.default=$t,da.registerRoot($t);var pr={comma:function(n){return pr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return pr.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=x(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(t||o!=="")&&r.push(o.trim()),r}},ma=pr;pr.default=pr;var ya=gt,uh=ma,cn=function(e){ye(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return ve(n,[{key:"selectors",get:function(){return uh.comma(this.selector)},set:function(t){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}]),n}(ya),Di=cn;cn.default=cn,ya.registerRule(cn);var ch=Yr,lh=ah,fh=Qr,hh=Li,ph=hr,_a=Di,ba={empty:!0,space:!0};function dh(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var vh=function(){function e(i){this.input=i,this.root=new ph,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=e.prototype;return n.atrule=function(t){var r=new hh;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(t){var r=this.colon(t);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=t[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(t){for(var r=0,o,s,a,u=x(t.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(o=p,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(t){var r=new fh;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;var o=t[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=lh(this.input)},n.decl=function(t,r){var o=new ch;this.init(o,t[0][2]);var s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||dh(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){var a=t[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";for(var u;t.length;)if(u=t.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(var f=t.length-1;f>=0;f--){if(u=t[f],u[1].toLowerCase()==="!important"){o.important=!0;var p=this.stringFrom(t,f);p=this.spacesFromEnd(t)+p,p!==" !important"&&(o.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=t.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(t),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(t)},n.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},n.emptyRule=function(t){var r=new _a;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},n.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},n.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(t){var r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}},n.init=function(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)},n.other=function(t){for(var r=!1,o=null,s=!1,a=null,u=[],c=t[1].startsWith("--"),l=[],f=t;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(t,r,o,s){for(var a,u,c=o.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?f=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",p=o[v+1]?o[v+1][0]:"empty",!ba[g]&&!ba[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,m){return d+m[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new _a;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r},n.spacesAndCommentsFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)o=t.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(t){for(var r,o="";t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)o+=t.shift()[1];return o},n.spacesFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],r==="space");)o=t.pop()[1]+o;return o},n.stringFrom=function(t,r){for(var o="",s=r;s<t.length;s++)o+=t[s][1];return t.splice(r,t.length-r),o},n.unclosedBlock=function(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)},n.unclosedBracket=function(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})},n.unexpectedClose=function(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})},n.unknownWord=function(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})},n.unnamedAtrule=function(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},e}(),gh=vh,mh=gt,yh=gh,_h=Jr;function ln(e,n){var i=new _h(e,n),t=new yh(i);try{t.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return t.root}var Fi=ln;ln.default=ln,mh.registerParse(ln);var Fe=et.isClean,bh=et.my,wh=Js,Sh=Gr,Ch=gt,Ih=Mi,Eh=ua,wa=Ni,xh=Fi,Oh=hr,kh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Rh={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Ah={Once:!0,postcssPlugin:!0,prepare:!0},Lt=0;function dr(e){return(typeof e=="undefined"?"undefined":F(e))==="object"&&typeof e.then=="function"}function Sa(e){var n=!1,i=kh[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,Lt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,Lt,i+"Exit"]:[i,i+"Exit"]}function Ca(e){var n;return e.type==="document"?n=["Document",Lt,"DocumentExit"]:e.type==="root"?n=["Root",Lt,"RootExit"]:n=Sa(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ui(e){return e[Fe]=!1,e.nodes&&e.nodes.forEach(function(n){return Ui(n)}),e}var Bi={},Dt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":F(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Ui(t);else if($(t,e)||$(t,wa))s=Ui(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{var a=xh;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(t,r)}catch(u){this.processed=!0,this.error=u}s&&!s[bh]&&Ch.rebuild(s)}this.result=new wa(i,s,r),this.helpers=G({},Bi,{postcss:Bi,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":F(u))==="object"&&u.prepare?G({},u,u.prepare(o.result)):u})}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(t,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return t},n.prepareVisitors=function(){var t=this;this.listeners={};for(var r=function(l,f,p){t.listeners[f]||(t.listeners[f]=[]),t.listeners[f].push([l,p])},o=x(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":F(a))==="object")for(var u in a){if(!Rh[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ah[u])if(F(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var t=this;return ii(function(){var r,o,s,a,u,c,l,f,p,g,v,y;return sr(this,function(d){switch(d.label){case 0:t.plugin=0,r=0,d.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!dr(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,d.label=7;case 7:if(u[Fe])return[3,14];u[Fe]=!0,c=[Ca(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!dr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),p=c[c.length-1].node,t.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];g=function(){var m,_,w,S,C;return sr(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],w=m[1],t.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(R){return w(R,t.helpers)}),[4,Promise.all(S)]);case 2:return O.sent(),[3,5];case 3:return[4,w(u,t.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw C=O.sent(),t.handleError(C);case 7:return[2]}})},v=x(t.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,ms(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},n.runOnRoot=function(t){var r=this;this.result.lastPlugin=t;try{if((typeof t=="undefined"?"undefined":F(t))==="object"&&t.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return t.Once(s,r.helpers)});return dr(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,r=Sh;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new wh(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t=x(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(dr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Fe];)a[Fe]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=x(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Eh("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this.css},n.visitSync=function(t,r){for(var o=x(t),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(dr(l))throw this.getAsyncError()}},n.visitTick=function(t){var r=t[t.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Fe]){f[Fe]=!0,t.push(Ca(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===Lt){o.nodes&&o.nodes.length&&(o[Fe]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}t.pop()},n.walkSync=function(t){var r=this;t[Fe]=!0;for(var o=Sa(t),s=x(o),a;!(a=s()).done;){var u=a.value;if(u===Lt)t.nodes&&t.each(function(l){l[Fe]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ve(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Dt.registerPostcss=function(e){Bi=e};var Ia=Dt;Dt.default=Dt,Oh.registerLazyResult(Dt),Ih.registerLazyResult(Dt);var Mh=Js,Th=Gr,Ph=ua,Nh=Fi,$h=Ni,zi=function(){function e(i,t,r){t=t.toString(),this.stringified=!1,this._processor=i,this._css=t,this._opts=r,this._map=void 0;var o,s=Th;this.result=new $h(this._processor,o,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Mh(s,o,this._opts,t);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Ph("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ve(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var t,r=Nh;try{t=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Lh=zi;zi.default=zi;var Dh=Lh,Fh=Ia,Uh=Mi,Bh=hr,vr=function(){function e(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=e.prototype;return n.normalize=function(t){for(var r=[],o=x(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":F(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":F(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":F(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(t,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Dh(this,t,r):new Fh(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),zh=vr;vr.default=vr,Bh.registerProcessor(vr),Uh.registerProcessor(vr);var Wh=Yr,qh=zs,Gh=Qr,jh=Li,Vh=Jr,Yh=hr,Hh=Di;function gr(e,n){if(Array.isArray(e))return e.map(function(f){return gr(f)});var i=e.inputs,t=ir(e,["inputs"]);if(i){n=[];for(var r=x(i),o;!(o=r()).done;){var s=o.value,a=G({},s,{__proto__:Vh.prototype});a.map&&(a.map=G({},a.map,{__proto__:qh.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return gr(f,n)})),t.source){var u=t.source,c=u.inputId,l=ir(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new Yh(t);if(t.type==="decl")return new Wh(t);if(t.type==="rule")return new Hh(t);if(t.type==="comment")return new Gh(t);if(t.type==="atrule")return new jh(t);throw new Error("Unknown node type: "+e.type)}var Kh=gr;gr.default=gr;var Jh=gi,Ea=Yr,Xh=Ia,Zh=gt,Wi=zh,Qh=Gr,ep=Kh,xa=Mi,tp=ca,Oa=Qr,ka=Li,rp=Ni,np=Jr,ip=Fi,op=ma,Ra=Di,Aa=hr,sp=Vr;function X(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Wi(n)}X.plugin=function(n,i){var t=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!t&&(t=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Wi().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return X([r(u)]).process(s,a)},r},X.stringify=Qh,X.parse=ip,X.fromJSON=ep,X.list=op,X.comment=function(e){return new Oa(e)},X.atRule=function(e){return new ka(e)},X.decl=function(e){return new Ea(e)},X.rule=function(e){return new Ra(e)},X.root=function(e){return new Aa(e)},X.document=function(e){return new xa(e)},X.CssSyntaxError=Jh,X.Declaration=Ea,X.Container=Zh,X.Processor=Wi,X.Document=xa,X.Comment=Oa,X.Warning=tp,X.AtRule=ka,X.Result=rp,X.Input=np,X.Rule=Ra,X.Root=Aa,X.Node=sp,Xh.registerPostcss(X);var ap=X;X.default=X;var ie=yf(ap);ie.stringify,ie.fromJSON,ie.plugin,ie.parse,ie.list,ie.document,ie.comment,ie.atRule,ie.rule,ie.decl,ie.root,ie.CssSyntaxError,ie.Declaration,ie.Container,ie.Processor,ie.Document,ie.Comment,ie.Warning,ie.AtRule,ie.Result,ie.Input,ie.Rule,ie.Root,ie.Node;var up=Object.defineProperty,cp=function(e,n,i){return n in e?up(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},Te=function(e,n,i){return cp(e,(typeof n=="undefined"?"undefined":F(n))!=="symbol"?n+"":n,i)};function lp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fp(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return $(this,t)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),i}var qi={exports:{}},re=String,Ma=function(){return{isColorSupported:!1,reset:re,bold:re,dim:re,italic:re,underline:re,inverse:re,hidden:re,strikethrough:re,black:re,red:re,green:re,yellow:re,blue:re,magenta:re,cyan:re,white:re,gray:re,bgBlack:re,bgRed:re,bgGreen:re,bgYellow:re,bgBlue:re,bgMagenta:re,bgCyan:re,bgWhite:re}};qi.exports=Ma(),qi.exports.createColors=Ma;var hp=qi.exports,pp={},dp=Object.freeze(Object.defineProperty({__proto__:null,default:pp},Symbol.toStringTag,{value:"Module"})),le=fp(dp),Ta=hp,Pa=le,Gi=function(e){ye(n,e);function n(t,r,o,s,a,u){var c;return c=e.call(this,t)||this,c.name="CssSyntaxError",c.reason=t,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Ta.isColorSupported),Pa&&r&&(s=Pa(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Ta.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+m+"\n "+C+f("^")}return" "+p(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Br(Error)),ji=Gi;Gi.default=Gi;var tt={};tt.isClean=Symbol("isClean"),tt.my=Symbol("my");var Na={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function vp(e){return e[0].toUpperCase()+e.slice(1)}var Vi=function(){function e(i){this.builder=i}var n=e.prototype;return n.atrule=function(t,r){var o="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?o+=t.raws.afterName:s&&(o+=" "),t.nodes)this.block(t,o+s);else{var a=(t.raws.between||"")+(r?";":"");this.builder(o+s+a,t)}},n.beforeAfter=function(t,r){var o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):r==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");for(var s=t.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(t,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(t,r){var o=this.raw(t,"between","beforeOpen");this.builder(r+o+"{",t,"start");var s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")},n.body=function(t){for(var r=t.nodes.length-1;r>0&&t.nodes[r].type==="comment";)r-=1;for(var o=this.raw(t,"semicolon"),s=0;s<t.nodes.length;s++){var a=t.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(t){var r=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+o+"*/",t)},n.decl=function(t,r){var o=this.raw(t,"between","colon"),s=t.prop+o+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),r&&(s+=";"),this.builder(s,t)},n.document=function(t){this.body(t)},n.raw=function(t,r,o){var s;if(o||(o=r),r&&(s=t.raws[r],typeof s!="undefined"))return s;var a=t.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return Na[o];var u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);var c="raw"+vp(o);return this[c]?s=this[c](u,t):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Na[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(t,r){var o;return t.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(t,r){var o;return t.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(t){var r;return t.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(t){var r;return t.walk(function(o){if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(t){var r;return t.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(t){if(t.raws.indent)return t.raws.indent;var r;return t.walk(function(o){var s=o.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(t,r){var o=t[r],s=t.raws[r];return s&&s.value===o?s.raw:o},n.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},n.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},n.stringify=function(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)},e}(),$a=Vi;Vi.default=Vi;var gp=$a;function Yi(e,n){var i=new gp(n);i.stringify(e)}var fn=Yi;Yi.default=Yi;var hn=tt.isClean,mp=tt.my,yp=ji,_p=$a,bp=fn;function Hi(e,n){var i=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t!=="proxyCache"){var r=e[t],o=typeof r=="undefined"?"undefined":F(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return Hi(s,i)}):(o==="object"&&r!==null&&(r=Hi(r)),i[t]=r)}return i}var Ki=function(){function e(i){i===void 0&&(i={}),this.raws={},this[hn]=!1,this[mp]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=x(i[t]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[t]=i[t]}var n=e.prototype;return n.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return t},n.after=function(t){return this.parent.insertAfter(this,t),this},n.assign=function(t){t===void 0&&(t={});for(var r in t)this[r]=t[r];return this},n.before=function(t){return this.parent.insertBefore(this,t),this},n.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},n.clone=function(t){t===void 0&&(t={});var r=Hi(this);for(var o in t)r[o]=t[o];return r},n.cloneAfter=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertBefore(this,r),r},n.error=function(t,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new yp(t)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[hn]){this[hn]=!1;for(var t=this;t=t.parent;)t[hn]=!1}},n.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},n.positionBy=function(t,r){var o=this.source.start;if(t.index)o=this.positionInside(t.index,r);else if(t.word){r=this.toString();var s=r.indexOf(t.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(t,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<t;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},n.rangeBy=function(t){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){var s=this.toString(),a=s.indexOf(t.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+t.word.length,s))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(t,r){var o=new _p;return o.raw(this,t,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=x(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var t=this;t.parent&&t.parent.type!=="document";)t=t.parent;return t},n.toJSON=function(t,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":F(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":F(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(t){t===void 0&&(t=bp),t.stringify&&(t=t.stringify);var r="";return t(this,function(o){r+=o}),r},n.warn=function(t,r,o){var s={node:this};for(var a in o)s[a]=o[a];return t.warn(r,s)},ve(e,[{key:"proxyOf",get:function(){return this}}]),e}(),pn=Ki;Ki.default=Ki;var wp=pn,Ji=function(e){ye(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=G({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return ve(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(wp),dn=Ji;Ji.default=Ji;var Sp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Cp=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=Sp[Math.random()*64|0];return n},Ip={nanoid:Cp},La=le.SourceMapConsumer,Da=le.SourceMapGenerator,Ep=le.existsSync,xp=le.readFileSync,Xi=le.dirname,Op=le.join;function kp(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Zi=function(){function e(i,t){if(t.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,o=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Xi(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new La(this.text)),this.consumerCache},n.decodeInline=function(t){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(t)||a.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||o.test(t))return kp(t.substr(RegExp.lastMatch.length));var u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(t){return(typeof t=="undefined"?"undefined":F(t))!=="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)},n.loadAnnotation=function(t){var r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=t.lastIndexOf(r.pop()),s=t.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,s)))}},n.loadFile=function(t){if(this.root=Xi(t),Ep(t))return this.mapFile=t,xp(t,"utf-8").toString().trim()},n.loadMap=function(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(t);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if($(r,La))return Da.fromSourceMap(r).toString();if($(r,Da))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return t&&(a=Op(Xi(t),a)),this.loadFile(a)}}},n.startWith=function(t,r){return t?t.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Fa=Zi;Zi.default=Zi;var Rp=le.SourceMapConsumer,Ap=le.SourceMapGenerator,Ua=le.fileURLToPath,vn=le.pathToFileURL,Qi=le.isAbsolute,eo=le.resolve,Mp=Ip.nanoid,to=le,Ba=ji,Tp=Fa,ro=Symbol("fromOffsetCache"),Pp=!!(Rp&&Ap),za=!!(eo&&Qi),gn=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":F(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!za||/^\w+:\/\//.test(t.from)||Qi(t.from)?this.file=t.from:this.file=eo(t.from)),za&&Pp){var r=new Tp(this.css,t);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Mp(6)+">"),this.map&&(this.map.file=this.from)}var n=e.prototype;return n.error=function(t,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":F(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,o=p.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var y=this.origin(r,o,u,c);return y?a=new Ba(t,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Ba(t,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(vn&&(a.input.url=vn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[ro])o=this[ro];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[ro]=o}r=o[o.length-1];var l=0;if(t>=r)l=o.length-1;else for(var f=o.length-2,p;l<f;)if(p=l+(f-l>>1),t<o[p])f=p-1;else if(t>=o[p+1])l=p+1;else{l=p;break}return{col:t-o[l]+1,line:l+1}},n.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:eo(this.map.consumer().sourceRoot||this.map.root||".",t)},n.origin=function(t,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:t});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Qi(u.source)?l=vn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||vn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Ua)f.file=Ua(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var t={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(t[s]=this[s])}return this.map&&(t.map=G({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},ve(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),mn=gn;gn.default=gn,to&&to.registerInput&&to.registerInput(gn);var Wa=le.SourceMapConsumer,yn=le.SourceMapGenerator,_n=le.dirname,qa=le.relative,Ga=le.resolve,ja=le.sep,Va=le.pathToFileURL,Np=mn,$p=!!(Wa&&yn),Lp=!!(_n&&Ga&&qa&&ja),Dp=function(){function e(i,t,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+t+" */"},n.applyPrevMaps=function(){for(var t=x(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||_n(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Wa(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var t,r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Lp&&$p&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(r){t+=r}),[t]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=yn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new yn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},n.generateString=function(){var t=this;this.css="",this.map=new yn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(t.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=t.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,t.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=t.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,t.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(t){return t.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var t=this.mapOpts.annotation;return typeof t!="undefined"&&t!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(t){return t.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;var r=this.memoizedPaths.get(t);if(r)return r;var o=this.opts.to?_n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=_n(Ga(o,this.mapOpts.annotation)));var s=qa(o,t);return this.memoizedPaths.set(t,s),s},n.previous=function(){var t=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;t.previousMaps.includes(s)||t.previousMaps.push(s)}});else{var r=new Np(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var t=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=t.usesFileUrls?t.toFileUrl(a):t.toUrl(t.path(a));t.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},n.toBase64=function(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},n.toFileUrl=function(t){var r=this.memoizedFileURLs.get(t);if(r)return r;if(Va){var o=Va(t).toString();return this.memoizedFileURLs.set(t,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(t){var r=this.memoizedURLs.get(t);if(r)return r;ja==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),Ya=Dp,Fp=pn,no=function(e){ye(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(Fp),bn=no;no.default=no;var Ha=tt.isClean,Ka=tt.my,Ja=dn,Xa=bn,Up=pn,Za,io,oo,Qa;function eu(e){return e.map(function(n){return n.nodes&&(n.nodes=eu(n.nodes)),delete n.source,n})}function tu(e){if(e[Ha]=!1,e.proxyOf.nodes)for(var n=x(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;tu(t)}}var Ve=function(e){ye(n,e);function n(){return e.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=x(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=x(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=x(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=x(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],s<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=x(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],s<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=eu(Za(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=x(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=x(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Ja(r)]}else if(r.selector)r=[new io(r)];else if(r.name)r=[new oo(r)];else if(r.text)r=[new Xa(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Ka]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Ha]&&tu(v),typeof v.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=x(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=x(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=x(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?$(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ve(n,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),n}(Up);Ve.registerParse=function(e){Za=e},Ve.registerRule=function(e){io=e},Ve.registerAtRule=function(e){oo=e},Ve.registerRoot=function(e){Qa=e};var mt=Ve;Ve.default=Ve,Ve.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,oo.prototype):e.type==="rule"?Object.setPrototypeOf(e,io.prototype):e.type==="decl"?Object.setPrototypeOf(e,Ja.prototype):e.type==="comment"?Object.setPrototypeOf(e,Xa.prototype):e.type==="root"&&Object.setPrototypeOf(e,Qa.prototype),e[Ka]=!0,e.nodes&&e.nodes.forEach(function(n){Ve.rebuild(n)})};var Bp=mt,ru,nu,mr=function(e){ye(n,e);function n(t){var r;return r=e.call(this,G({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new ru(new nu,this,r);return o.stringify()},n}(Bp);mr.registerLazyResult=function(e){ru=e},mr.registerProcessor=function(e){nu=e};var so=mr;mr.default=mr;var iu={},ou=function(n){iu[n]||(iu[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},ao=function(){function e(i,t){if(t===void 0&&(t={}),this.type="warning",this.text=i,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in t)this[o]=t[o]}var n=e.prototype;return n.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),su=ao;ao.default=ao;var zp=su,uo=function(){function e(i,t,r){this.processor=i,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var n=e.prototype;return n.toString=function(){return this.css},n.warn=function(t,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new zp(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},ve(e,[{key:"content",get:function(){return this.css}}]),e}(),co=uo;uo.default=uo;var lo=39,au=34,wn=92,uu=47,Sn=10,yr=32,Cn=12,In=9,En=13,Wp=91,qp=93,Gp=40,jp=41,Vp=123,Yp=125,Hp=59,Kp=42,Jp=58,Xp=64,xn=/[\t\n\f\r "#'()/;[\\\]{}]/g,On=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Zp=/.[\r\n"'(/\\]/,cu=/[\da-f]/i,Qp=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,v,y=t.length,d=0,m=[],_=[];function w(){return d}function S(k){throw n.error("Unclosed "+k,d)}function C(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var P=k?k.ignoreUnclosed:!1;switch(o=t.charCodeAt(d),o){case Sn:case yr:case In:case En:case Cn:{s=d;do s+=1,o=t.charCodeAt(s);while(o===yr||o===Sn||o===In||o===En||o===Cn);v=["space",t.slice(d,s)],d=s-1;break}case Wp:case qp:case Vp:case Yp:case Jp:case Hp:case jp:{var j=String.fromCharCode(o);v=[j,j,d];break}case Gp:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(d+1),p==="url"&&g!==lo&&g!==au&&g!==yr&&g!==Sn&&g!==In&&g!==Cn&&g!==En){s=d;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||P){s=d;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===wn;)f-=1,l=!l}while(l);v=["brackets",t.slice(d,s+1),d,s],d=s}else s=t.indexOf(")",d+1),u=t.slice(d,s+1),s===-1||Zp.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case lo:case au:{a=o===lo?"'":'"',s=d;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||P){s=d+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===wn;)f-=1,l=!l}while(l);v=["string",t.slice(d,s+1),d,s],d=s;break}case Xp:{xn.lastIndex=d+1,xn.test(t),xn.lastIndex===0?s=t.length-1:s=xn.lastIndex-2,v=["at-word",t.slice(d,s+1),d,s],d=s;break}case wn:{for(s=d,c=!0;t.charCodeAt(s+1)===wn;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==uu&&o!==yr&&o!==Sn&&o!==In&&o!==En&&o!==Cn&&(s+=1,cu.test(t.charAt(s)))){for(;cu.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===yr&&(s+=1)}v=["word",t.slice(d,s+1),d,s],d=s;break}default:{o===uu&&t.charCodeAt(d+1)===Kp?(s=t.indexOf("*/",d+2)+1,s===0&&(r||P?s=t.length:S("comment")),v=["comment",t.slice(d,s+1),d,s],d=s):(On.lastIndex=d+1,On.test(t),On.lastIndex===0?s=t.length-1:s=On.lastIndex-2,v=["word",t.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function R(k){_.push(k)}return{back:R,endOfFile:C,nextToken:O,position:w}},lu=mt,kn=function(e){ye(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],o))},n}(lu),fo=kn;kn.default=kn,lu.registerAtRule(kn);var fu=mt,hu,pu,Ft=function(e){ye(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=e.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=x(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),e.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new hu(new pu,this,r);return o.stringify()},n}(fu);Ft.registerLazyResult=function(e){hu=e},Ft.registerProcessor=function(e){pu=e};var _r=Ft;Ft.default=Ft,fu.registerRoot(Ft);var br={comma:function(n){return br.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return br.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=x(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(t||o!=="")&&r.push(o.trim()),r}},du=br;br.default=br;var vu=mt,ed=du,Rn=function(e){ye(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return ve(n,[{key:"selectors",get:function(){return ed.comma(this.selector)},set:function(t){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}]),n}(vu),ho=Rn;Rn.default=Rn,vu.registerRule(Rn);var td=dn,rd=Qp,nd=bn,id=fo,od=_r,gu=ho,mu={empty:!0,space:!0};function sd(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var ad=function(){function e(i){this.input=i,this.root=new od,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=e.prototype;return n.atrule=function(t){var r=new id;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(t){var r=this.colon(t);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=t[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(t){for(var r=0,o,s,a,u=x(t.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(o=p,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(t){var r=new nd;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;var o=t[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=rd(this.input)},n.decl=function(t,r){var o=new td;this.init(o,t[0][2]);var s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||sd(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){var a=t[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";for(var u;t.length;)if(u=t.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(var f=t.length-1;f>=0;f--){if(u=t[f],u[1].toLowerCase()==="!important"){o.important=!0;var p=this.stringFrom(t,f);p=this.spacesFromEnd(t)+p,p!==" !important"&&(o.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=t.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(t),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(t)},n.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},n.emptyRule=function(t){var r=new gu;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},n.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},n.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(t){var r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}},n.init=function(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)},n.other=function(t){for(var r=!1,o=null,s=!1,a=null,u=[],c=t[1].startsWith("--"),l=[],f=t;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(t,r,o,s){for(var a,u,c=o.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?f=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",p=o[v+1]?o[v+1][0]:"empty",!mu[g]&&!mu[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,m){return d+m[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new gu;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r},n.spacesAndCommentsFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)o=t.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(t){for(var r,o="";t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)o+=t.shift()[1];return o},n.spacesFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],r==="space");)o=t.pop()[1]+o;return o},n.stringFrom=function(t,r){for(var o="",s=r;s<t.length;s++)o+=t[s][1];return t.splice(r,t.length-r),o},n.unclosedBlock=function(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)},n.unclosedBracket=function(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})},n.unexpectedClose=function(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})},n.unknownWord=function(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})},n.unnamedAtrule=function(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},e}(),ud=ad,cd=mt,ld=ud,fd=mn;function An(e,n){var i=new fd(e,n),t=new ld(i);try{t.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return t.root}var po=An;An.default=An,cd.registerParse(An);var Ue=tt.isClean,hd=tt.my,pd=Ya,dd=fn,vd=mt,gd=so,md=ou,yu=co,yd=po,_d=_r,bd={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},wd={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Sd={Once:!0,postcssPlugin:!0,prepare:!0},Ut=0;function wr(e){return(typeof e=="undefined"?"undefined":F(e))==="object"&&typeof e.then=="function"}function _u(e){var n=!1,i=bd[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,Ut,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,Ut,i+"Exit"]:[i,i+"Exit"]}function bu(e){var n;return e.type==="document"?n=["Document",Ut,"DocumentExit"]:e.type==="root"?n=["Root",Ut,"RootExit"]:n=_u(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function vo(e){return e[Ue]=!1,e.nodes&&e.nodes.forEach(function(n){return vo(n)}),e}var go={},Bt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":F(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=vo(t);else if($(t,e)||$(t,yu))s=vo(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{var a=yd;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(t,r)}catch(u){this.processed=!0,this.error=u}s&&!s[hd]&&vd.rebuild(s)}this.result=new yu(i,s,r),this.helpers=G({},go,{postcss:go,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":F(u))==="object"&&u.prepare?G({},u,u.prepare(o.result)):u})}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(t,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return t},n.prepareVisitors=function(){var t=this;this.listeners={};for(var r=function(l,f,p){t.listeners[f]||(t.listeners[f]=[]),t.listeners[f].push([l,p])},o=x(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":F(a))==="object")for(var u in a){if(!wd[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Sd[u])if(F(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var t=this;return ii(function(){var r,o,s,a,u,c,l,f,p,g,v,y;return sr(this,function(d){switch(d.label){case 0:t.plugin=0,r=0,d.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!wr(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,d.label=7;case 7:if(u[Ue])return[3,14];u[Ue]=!0,c=[bu(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!wr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),p=c[c.length-1].node,t.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];g=function(){var m,_,w,S,C;return sr(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],w=m[1],t.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(R){return w(R,t.helpers)}),[4,Promise.all(S)]);case 2:return O.sent(),[3,5];case 3:return[4,w(u,t.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw C=O.sent(),t.handleError(C);case 7:return[2]}})},v=x(t.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,ms(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},n.runOnRoot=function(t){var r=this;this.result.lastPlugin=t;try{if((typeof t=="undefined"?"undefined":F(t))==="object"&&t.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return t.Once(s,r.helpers)});return wr(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,r=dd;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new pd(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t=x(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(wr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ue];)a[Ue]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=x(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||md("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this.css},n.visitSync=function(t,r){for(var o=x(t),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(wr(l))throw this.getAsyncError()}},n.visitTick=function(t){var r=t[t.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Ue]){f[Ue]=!0,t.push(bu(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===Ut){o.nodes&&o.nodes.length&&(o[Ue]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}t.pop()},n.walkSync=function(t){var r=this;t[Ue]=!0;for(var o=_u(t),s=x(o),a;!(a=s()).done;){var u=a.value;if(u===Ut)t.nodes&&t.each(function(l){l[Ue]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ve(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Bt.registerPostcss=function(e){go=e};var wu=Bt;Bt.default=Bt,_d.registerLazyResult(Bt),gd.registerLazyResult(Bt);var Cd=Ya,Id=fn,Ed=ou,xd=po,Od=co,mo=function(){function e(i,t,r){t=t.toString(),this.stringified=!1,this._processor=i,this._css=t,this._opts=r,this._map=void 0;var o,s=Id;this.result=new Od(this._processor,o,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Cd(s,o,this._opts,t);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Ed("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ve(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var t,r=xd;try{t=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),kd=mo;mo.default=mo;var Rd=kd,Ad=wu,Md=so,Td=_r,Sr=function(){function e(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=e.prototype;return n.normalize=function(t){for(var r=[],o=x(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":F(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":F(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":F(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(t,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Rd(this,t,r):new Ad(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),Pd=Sr;Sr.default=Sr,Td.registerProcessor(Sr),Md.registerProcessor(Sr);var Nd=dn,$d=Fa,Ld=bn,Dd=fo,Fd=mn,Ud=_r,Bd=ho;function Cr(e,n){if(Array.isArray(e))return e.map(function(f){return Cr(f)});var i=e.inputs,t=ir(e,["inputs"]);if(i){n=[];for(var r=x(i),o;!(o=r()).done;){var s=o.value,a=G({},s,{__proto__:Fd.prototype});a.map&&(a.map=G({},a.map,{__proto__:$d.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return Cr(f,n)})),t.source){var u=t.source,c=u.inputId,l=ir(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new Ud(t);if(t.type==="decl")return new Nd(t);if(t.type==="rule")return new Bd(t);if(t.type==="comment")return new Ld(t);if(t.type==="atrule")return new Dd(t);throw new Error("Unknown node type: "+e.type)}var zd=Cr;Cr.default=Cr;var Wd=ji,Su=dn,qd=wu,Gd=mt,yo=Pd,jd=fn,Vd=zd,Cu=so,Yd=su,Iu=bn,Eu=fo,Hd=co,Kd=mn,Jd=po,Xd=du,xu=ho,Ou=_r,Zd=pn;function Z(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new yo(n)}Z.plugin=function(n,i){var t=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!t&&(t=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new yo().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Z([r(u)]).process(s,a)},r},Z.stringify=jd,Z.parse=Jd,Z.fromJSON=Vd,Z.list=Xd,Z.comment=function(e){return new Iu(e)},Z.atRule=function(e){return new Eu(e)},Z.decl=function(e){return new Su(e)},Z.rule=function(e){return new xu(e)},Z.root=function(e){return new Ou(e)},Z.document=function(e){return new Cu(e)},Z.CssSyntaxError=Wd,Z.Declaration=Su,Z.Container=Gd,Z.Processor=yo,Z.Document=Cu,Z.Comment=Iu,Z.Warning=Yd,Z.AtRule=Eu,Z.Result=Hd,Z.Input=Kd,Z.Rule=xu,Z.Root=Ou,Z.Node=Zd,qd.registerPostcss(Z);var Qd=Z;Z.default=Z;var oe=lp(Qd);oe.stringify,oe.fromJSON,oe.plugin,oe.parse,oe.list,oe.document,oe.comment,oe.atRule,oe.rule,oe.decl,oe.root,oe.CssSyntaxError,oe.Declaration,oe.Container,oe.Processor,oe.Document,oe.Comment,oe.Warning,oe.AtRule,oe.Result,oe.Input,oe.Rule,oe.Root,oe.Node;var ev=function(){function e(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];Te(this,"parentElement",null),Te(this,"parentNode",null),Te(this,"ownerDocument"),Te(this,"firstChild",null),Te(this,"lastChild",null),Te(this,"previousSibling",null),Te(this,"nextSibling",null),Te(this,"ELEMENT_NODE",1),Te(this,"TEXT_NODE",3),Te(this,"nodeType"),Te(this,"nodeName"),Te(this,"RRNodeType")}var n=e.prototype;return n.contains=function(t){if($(t,e)){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},n.appendChild=function(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},ve(e,[{key:"childNodes",get:function(){for(var t=[],r=this.firstChild;r;)t.push(r),r=r.nextSibling;return t}}]),e}(),ku={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ru={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mn={},tv=function(){return!!globalThis.Zone};function _o(e){if(Mn[e])return Mn[e];var n=globalThis[e],i=n.prototype,t=e in ku?ku[e]:void 0,r=!!(t&&t.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),o=e in Ru?Ru[e]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!tv())return Mn[e]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Mn[e]=c:i}catch(l){return i}}var bo={};function rt(e,n,i){var t,r=e+"."+String(i);if(bo[r])return bo[r].call(n);var o=_o(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(bo[r]=s,s.call(n)):n[i]}var wo={};function Au(e,n,i){var t=e+"."+String(i);if(wo[t])return wo[t].bind(n);var r=_o(e),o=r[i];return typeof o!="function"?n[i]:(wo[t]=o,o.bind(n))}function rv(e){return rt("Node",e,"childNodes")}function nv(e){return rt("Node",e,"parentNode")}function iv(e){return rt("Node",e,"parentElement")}function ov(e){return rt("Node",e,"textContent")}function sv(e,n){return Au("Node",e,"contains")(n)}function av(e){return Au("Node",e,"getRootNode")()}function uv(e){return!e||!("host"in e)?null:rt("ShadowRoot",e,"host")}function cv(e){return e.styleSheets}function lv(e){return!e||!("shadowRoot"in e)?null:rt("Element",e,"shadowRoot")}function fv(e,n){return rt("Element",e,"querySelector")(n)}function hv(e,n){return rt("Element",e,"querySelectorAll")(n)}function Mu(){return _o("MutationObserver").constructor}var U={childNodes:rv,parentNode:nv,parentElement:iv,textContent:ov,contains:sv,getRootNode:av,host:uv,styleSheets:cv,shadowRoot:lv,querySelector:fv,querySelectorAll:hv,mutationObserver:Mu};function be(e,n,i){i===void 0&&(i=document);var t={capture:!0,passive:!0};return i.addEventListener(e,n,t),function(){return i.removeEventListener(e,n,t)}}var zt="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Tu={map:{},getId:function(){return console.error(zt),-1},getNode:function(){return console.error(zt),null},removeNodeFromMap:function(){console.error(zt)},has:function(){return console.error(zt),!1},reset:function(){console.error(zt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Tu=new Proxy(Tu,{get:function(n,i,t){return i==="map"&&console.error(zt),Reflect.get(n,i,t)}}));function Ir(e,n,i){i===void 0&&(i={});var t=null,r=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),l=this;c<=0||c>n?(t&&(clearTimeout(t),t=null),r=u,e.apply(l,s)):!t&&i.trailing!==!1&&(t=setTimeout(function(){r=i.leading===!1?0:Date.now(),t=null,e.apply(l,s)},c))}}function Tn(e,n,i,t,r){r===void 0&&(r=window);var o=r.Object.getOwnPropertyDescriptor(e,n);return r.Object.defineProperty(e,n,t?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),o&&o.set&&o.set.call(this,a)}}),function(){return Tn(e,n,o||{},!0)}}function Wt(e,n,i){try{if(!(n in e))return function(){};var t=e[n],r=i(t);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:t}})),e[n]=r,function(){e[n]=t}}catch(o){return function(){}}}var Pn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Pn=function(){return new Date().getTime()});function Pu(e){var n,i,t,r,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((n=U.parentElement(o.body))==null?void 0:n.scrollLeft)||((i=o==null?void 0:o.body)==null?void 0:i.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((t=U.parentElement(o.body))==null?void 0:t.scrollTop)||((r=o==null?void 0:o.body)==null?void 0:r.scrollTop)||0}}function Nu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function $u(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Lu(e){if(!e)return null;var n=e.nodeType===e.ELEMENT_NODE?e:U.parentElement(e);return n}function we(e,n,i,t){if(!e)return!1;var r=Lu(e);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||t&&r.closest("."+n)!==null)return!0}else if(qr(r,n,t))return!0}catch(o){}return!!(i&&(r.matches(i)||t&&r.closest(i)!==null))}function pv(e,n){return n.getId(e)!==-1}function So(e,n,i){return e.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(e)===cr}function Du(e,n){if(ar(e))return!1;var i=n.getId(e);if(!n.has(i))return!0;var t=U.parentNode(e);return t&&t.nodeType===e.DOCUMENT_NODE?!1:t?Du(t,n):!0}function Co(e){return!!e.changedTouches}function dv(e){e===void 0&&(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)}function Fu(e,n){return!!(e.nodeName==="IFRAME"&&n.getMeta(e))}function Uu(e,n){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&n.getMeta(e))}function Io(e){return e?$(e,ev)&&"shadowRoot"in e?!!e.shadowRoot:!!U.shadowRoot(e):!1}var vv=function(){function e(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}var n=e.prototype;return n.getId=function(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1},n.has=function(t){return this.styleIDMap.has(t)},n.add=function(t,r){if(this.has(t))return this.getId(t);var o;return r===void 0?o=this.id++:o=r,this.styleIDMap.set(t,o),this.idStyleMap.set(o,t),o},n.getStyle=function(t){return this.idStyleMap.get(t)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},e}();function Bu(e){var n,i=null;return"getRootNode"in e&&((n=U.getRootNode(e))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&U.host(U.getRootNode(e))&&(i=U.host(U.getRootNode(e))),i}function gv(e){for(var n=e,i;i=Bu(n);)n=i;return n}function mv(e){var n=e.ownerDocument;if(!n)return!1;var i=gv(e);return U.contains(n,i)}function zu(e){var n=e.ownerDocument;return n?U.contains(n,e)||mv(e):!1}var z=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(z||{}),T=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(T||{}),xe=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(xe||{}),Ye=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Ye||{}),qt=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(qt||{}),Gt=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Gt||{}),Wu=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Wu||{});function qu(e){return"__ln"in e}var yv=function(){function e(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}var n=e.prototype;return n.get=function(t){if(t>=this.length)throw new Error("Position outside of list range");for(var r=this.head,o=0;o<t;o++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(t){var r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&qu(t.previousSibling)){var o=t.previousSibling.__ln.next;r.next=o,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,o&&(o.previous=r)}else if(t.nextSibling&&qu(t.nextSibling)&&t.nextSibling.__ln.previous){var s=t.nextSibling.__ln.previous;r.previous=s,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(t){var 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--)},e}(),Gu=function(e,n){return e+"@"+n},_v=function(){function e(){var i=this;I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",function(t){t.forEach(i.processMutation),i.emit()}),I(this,"emit",function(){if(!(i.frozen||i.locked)){for(var t=[],r=new Set,o=new yv,s=function(M){for(var D=M,K=cr;K===cr;)D=D&&D.nextSibling,K=D&&i.mirror.getId(D);return K},a=function(M){var D=U.parentNode(M);if(!(!D||!zu(M))){var K=!1;if(M.nodeType===Node.TEXT_NODE){var Oe=D.tagName;if(Oe==="TEXTAREA")return;Oe==="STYLE"&&i.addedSet.has(D)&&(K=!0)}var J=ar(D)?i.mirror.getId(Bu(M)):i.mirror.getId(D),Re=s(M);if(J===-1||Re===-1)return o.addNode(M);var Ee=Nt(M,{doc:i.doc,mirror:i.mirror,blockClass:i.blockClass,blockSelector:i.blockSelector,maskTextClass:i.maskTextClass,maskTextSelector:i.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:i.inlineStylesheet,maskInputOptions:i.maskInputOptions,maskTextFn:i.maskTextFn,maskInputFn:i.maskInputFn,slimDOMOptions:i.slimDOMOptions,dataURLOptions:i.dataURLOptions,recordCanvas:i.recordCanvas,inlineImages:i.inlineImages,onSerialize:function(se){Fu(se,i.mirror)&&i.iframeManager.addIframe(se),Uu(se,i.mirror)&&i.stylesheetManager.trackLinkElement(se),Io(M)&&i.shadowDomManager.addShadowRoot(U.shadowRoot(M),i.doc)},onIframeLoad:function(se,me){i.iframeManager.attachIframe(se,me),i.shadowDomManager.observeAttachShadow(se)},onStylesheetLoad:function(se,me){i.stylesheetManager.attachLinkElement(se,me)},cssCaptured:K});Ee&&(t.push({parentId:J,nextId:Re,node:Ee}),r.add(Ee.id))}};i.mapRemoves.length;)i.mirror.removeNodeFromMap(i.mapRemoves.shift());for(var u=x(i.movedSet),c;!(c=u()).done;){var l=c.value;ju(i.removesSubTreeCache,l,i.mirror)&&!i.movedSet.has(U.parentNode(l))||a(l)}for(var f=x(i.addedSet),p;!(p=f()).done;){var g=p.value;!Vu(i.droppedSet,g)&&!ju(i.removesSubTreeCache,g,i.mirror)||Vu(i.movedSet,g)?a(g):i.droppedSet.add(g)}for(var v=null;o.length;){var y=null;if(v){var d=i.mirror.getId(U.parentNode(v.value)),m=s(v.value);d!==-1&&m!==-1&&(y=v)}if(!y)for(var _=o.tail;_;){var w=_;if(_=_.previous,w){var S=i.mirror.getId(U.parentNode(w.value)),C=s(w.value);if(C===-1)continue;if(S!==-1){y=w;break}else{var O=w.value,R=U.parentNode(O);if(R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=U.host(R),P=i.mirror.getId(k);if(P!==-1){y=w;break}}}}}if(!y){for(;o.head;)o.removeNode(o.head.value);break}v=y.previous,o.removeNode(y.value),a(y.value)}var j={texts:i.texts.map(function(M){var D=M.node,K=U.parentNode(D);return K&&K.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(K),{id:i.mirror.getId(D),value:M.value}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return i.mirror.has(M.id)}),attributes:i.attributes.map(function(M){var D=M.attributes;if(typeof D.style=="string"){var K=JSON.stringify(M.styleDiff),Oe=JSON.stringify(M._unchangedStyles);K.length<D.style.length&&(K+Oe).split("var(").length===D.style.split("var(").length&&(D.style=M.styleDiff)}return{id:i.mirror.getId(M.node),attributes:D}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return i.mirror.has(M.id)}),removes:i.removes,adds:t};!j.texts.length&&!j.attributes.length&&!j.removes.length&&!j.adds.length||(i.texts=[],i.attributes=[],i.attributeMap=new WeakMap,i.removes=[],i.addedSet=new Set,i.movedSet=new Set,i.droppedSet=new Set,i.removesSubTreeCache=new Set,i.movedMap={},i.mutationCb(j))}}),I(this,"genTextAreaValueMutation",function(t){var r=i.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(t,r)),r.attributes.value=Array.from(U.childNodes(t),function(o){return U.textContent(o)||""}).join("")}),I(this,"processMutation",function(t){if(!So(t.target,i.mirror,i.slimDOMOptions))switch(t.type){case"characterData":{var r=U.textContent(t.target);!we(t.target,i.blockClass,i.blockSelector,!1)&&r!==t.oldValue&&i.texts.push({value:Ps(t.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Lu(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{var o=t.target,s=t.attributeName,a=t.target.getAttribute(s);if(s==="value"){var u=fi(o);a=li({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(we(t.target,i.blockClass,i.blockSelector,!1)||a===t.oldValue)return;var c=i.attributeMap.get(t.target);if(o.tagName==="IFRAME"&&s==="src"&&!i.keepIframeSrcFn(a))if(!o.contentDocument)s="rr_src";else return;if(c||(c={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(t.target,c)),s==="type"&&o.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&o.setAttribute("data-rr-is-password","true"),!Ts(o.tagName,s))if(c.attributes[s]=Ms(i.doc,vt(o.tagName),vt(s),a),s==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch(w){i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(var f=x(Array.from(o.style)),p;!(p=f()).done;){var g=p.value,v=o.style.getPropertyValue(g),y=o.style.getPropertyPriority(g);v!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=v:c.styleDiff[g]=[v,y]:c._unchangedStyles[g]=[v,y]}for(var d=x(Array.from(l.style)),m;!(m=d()).done;){var _=m.value;o.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else s==="open"&&o.tagName==="DIALOG"&&(o.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(we(t.target,i.blockClass,i.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(function(w){return i.genAdds(w,t.target)}),t.removedNodes.forEach(function(w){var S=i.mirror.getId(w),C=ar(t.target)?i.mirror.getId(U.host(t.target)):i.mirror.getId(t.target);we(t.target,i.blockClass,i.blockSelector,!1)||So(w,i.mirror,i.slimDOMOptions)||!pv(w,i.mirror)||(i.addedSet.has(w)?(Eo(i.addedSet,w),i.droppedSet.add(w)):i.addedSet.has(t.target)&&S===-1||Du(t.target,i.mirror)||(i.movedSet.has(w)&&i.movedMap[Gu(S,C)]?Eo(i.movedSet,w):(i.removes.push({parentId:C,id:S,isShadow:ar(t.target)&&ur(t.target)?!0:void 0}),bv(w,i.removesSubTreeCache))),i.mapRemoves.push(w))});break}}}),I(this,"genAdds",function(t,r){if(!i.processedNodeManager.inOtherBuffer(t,i)&&!(i.addedSet.has(t)||i.movedSet.has(t))){if(i.mirror.hasNode(t)){if(So(t,i.mirror,i.slimDOMOptions))return;i.movedSet.add(t);var o=null;r&&i.mirror.hasNode(r)&&(o=i.mirror.getId(r)),o&&o!==-1&&(i.movedMap[Gu(i.mirror.getId(t),o)]=!0)}else i.addedSet.add(t),i.droppedSet.delete(t);we(t,i.blockClass,i.blockSelector,!1)||(U.childNodes(t).forEach(function(s){return i.genAdds(s)}),Io(t)&&U.childNodes(U.shadowRoot(t)).forEach(function(s){i.processedNodeManager.add(s,i),i.genAdds(s,t)}))}})}var n=e.prototype;return n.init=function(t){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(o){r[o]=t[o]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function Eo(e,n){e.delete(n),U.childNodes(n).forEach(function(i){return Eo(e,i)})}function bv(e,n){for(var i=[e];i.length;){var t=i.pop();n.has(t)||(n.add(t),U.childNodes(t).forEach(function(r){return i.push(r)}))}}function ju(e,n,i){return e.size===0?!1:wv(e,n)}function wv(e,n,i){var t=U.parentNode(n);return t?e.has(t):!1}function Vu(e,n){return e.size===0?!1:Yu(e,n)}function Yu(e,n){var i=U.parentNode(n);return i?e.has(i)?!0:Yu(e,i):!1}var Er;function Sv(e){Er=e}function Cv(){Er=void 0}var q=function(e){if(!Er)return e;var n=function(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];try{return e.apply(void 0,[].concat(t))}catch(o){if(Er&&Er(o)===!0)return;throw o}};return n},yt=[];function xr(e){try{if("composedPath"in e){var n=e.composedPath();if(n.length)return n[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(i){}return e&&e.target}function Hu(e,n){var i=new _v;yt.push(i),i.init(e);var t=new(Mu())(q(i.processMutations.bind(i)));return t.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),t}function Iv(e){var n=e.mousemoveCb,i=e.sampling,t=e.doc,r=e.mirror;if(i.mousemove===!1)return function(){};var o=typeof i.mousemove=="number"?i.mousemove:50,s=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=Ir(q(function(p){var g=Date.now()-u;n(a.map(function(v){return v.timeOffset-=g,v}),p),a=[],u=null}),s),l=q(Ir(q(function(p){var g=xr(p),v=Co(p)?p.changedTouches[0]:p,y=v.clientX,d=v.clientY;u||(u=Pn()),a.push({x:y,y:d,id:r.getId(g),timeOffset:Pn()-u}),c(typeof DragEvent!="undefined"&&$(p,DragEvent)?T.Drag:$(p,MouseEvent)?T.MouseMove:T.TouchMove)}),o,{trailing:!1})),f=[be("mousemove",l,t),be("touchmove",l,t),be("drag",l,t)];return q(function(){f.forEach(function(p){return p()})})}function Ev(e){var n=e.mouseInteractionCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],c=null,l=function(f){return function(p){var g=xr(p);if(!we(g,r,o,!0)){var v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=Ye.Mouse;break;case"touch":v=Ye.Touch;break;case"pen":v=Ye.Pen;break}v===Ye.Touch?xe[f]===xe.MouseDown?y="TouchStart":xe[f]===xe.MouseUp&&(y="TouchEnd"):Ye.Pen}else Co(p)&&(v=Ye.Touch);v!==null?(c=v,(y.startsWith("Touch")&&v===Ye.Touch||y.startsWith("Mouse")&&v===Ye.Mouse)&&(v=null)):xe[f]===xe.Click&&(v=c,c=null);var d=Co(p)?p.changedTouches[0]:p;if(d){var m=t.getId(g),_=d.clientX,w=d.clientY;q(n)(G({type:xe[y],id:m,x:_,y:w},v!==null&&{pointerType:v}))}}}};return Object.keys(xe).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var p=vt(f),g=l(f);if(window.PointerEvent)switch(xe[f]){case xe.MouseDown:case xe.MouseUp:p=p.replace("mouse","pointer");break;case xe.TouchStart:case xe.TouchEnd:return}u.push(be(p,g,i))}),q(function(){u.forEach(function(f){return f()})})}function Ku(e){var n=e.scrollCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling,a=q(Ir(q(function(u){var c=xr(u);if(!(!c||we(c,r,o,!0))){var l=t.getId(c);if(c===i&&i.defaultView){var f=Pu(i.defaultView);n({id:l,x:f.left,y:f.top})}else n({id:l,x:c.scrollLeft,y:c.scrollTop})}}),s.scroll||100));return be("scroll",a,i)}function xv(e,n){var i=e.viewportResizeCb,t=n.win,r=-1,o=-1,s=q(Ir(q(function(){var a=Nu(),u=$u();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return be("resize",s,t)}var Ov=["INPUT","TEXTAREA","SELECT"],Ju=new WeakMap;function kv(e){var n=e.inputCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,u=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,f=e.userTriggeredOnInput;function p(S){var C=xr(S),O=S.isTrusted,R=C&&C.tagName;if(C&&R==="OPTION"&&(C=U.parentElement(C)),!(!C||!R||Ov.indexOf(R)<0||we(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var k=C.value,P=!1,j=fi(C)||"";j==="radio"||j==="checkbox"?P=C.checked:(u[R.toLowerCase()]||u[j])&&(k=li({element:C,maskInputOptions:u,tagName:R,type:j,value:k,maskInputFn:c})),g(C,f?{text:k,isChecked:P,userTriggered:O}:{text:k,isChecked:P});var M=C.name;j==="radio"&&M&&P&&i.querySelectorAll('input[type="radio"][name="'+M+'"]').forEach(function(D){if(D!==C){var K=D.value;g(D,f?{text:K,isChecked:!P,userTriggered:!1}:{text:K,isChecked:!P})}})}}function g(S,C){var O=Ju.get(S);if(!O||O.text!==C.text||O.isChecked!==C.isChecked){Ju.set(S,C);var R=t.getId(S);q(n)(G({},C,{id:R}))}}var v=l.input==="last"?["change"]:["input","change"],y=v.map(function(S){return be(S,q(p),i)}),d=i.defaultView;if(!d)return function(){y.forEach(function(S){return S()})};var m=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),_=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];if(m&&m.set){var w;(w=y).push.apply(w,[].concat(_.map(function(S){return Tn(S[0],S[1],{set:function(){q(p)({target:this,isTrusted:!1})}},!1,d)})))}return q(function(){y.forEach(function(S){return S()})})}function Nn(e){var n=[];function i(t,r){if($n("CSSGroupingRule")&&$(t.parentRule,CSSGroupingRule)||$n("CSSMediaRule")&&$(t.parentRule,CSSMediaRule)||$n("CSSSupportsRule")&&$(t.parentRule,CSSSupportsRule)||$n("CSSConditionRule")&&$(t.parentRule,CSSConditionRule)){var o=Array.from(t.parentRule.cssRules),s=o.indexOf(t);r.unshift(s)}else if(t.parentStyleSheet){var a=Array.from(t.parentStyleSheet.cssRules),u=a.indexOf(t);r.unshift(u)}return r}return i(e,n)}function nt(e,n,i){var t,r;return e?(e.ownerNode?t=n.getId(e.ownerNode):r=i.getId(e),{styleId:r,id:t}):{}}function Rv(e,n){var i=e.styleSheetRuleCb,t=e.mirror,r=e.stylesheetManager,o=n.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:q(function(p,g,v){var y=v[0],d=v[1],m=nt(g,t,r.styleMirror),_=m.id,w=m.styleId;return(_&&_!==-1||w&&w!==-1)&&i({id:_,styleId:w,adds:[{rule:y,index:d}]}),p.apply(g,v)})}),o.CSSStyleSheet.prototype.addRule=function(p,g,v){v===void 0&&(v=this.cssRules.length);var y=p+" { "+g+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[y,v])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:q(function(p,g,v){var y=v[0],d=nt(g,t,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),p.apply(g,v)})}),o.CSSStyleSheet.prototype.removeRule=function(p){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[p])};var u;o.CSSStyleSheet.prototype.replace&&(u=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:q(function(p,g,v){var y=v[0],d=nt(g,t,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),p.apply(g,v)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:q(function(p,g,v){var y=v[0],d=nt(g,t,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),p.apply(g,v)})}));var l={};Ln("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Ln("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Ln("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Ln("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(p){var g=p[0],v=p[1];f[g]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(f[g].insertRule,{apply:q(function(y,d,m){var _=m[0],w=m[1],S=nt(d.parentStyleSheet,t,r.styleMirror),C=S.id,O=S.styleId;return(C&&C!==-1||O&&O!==-1)&&i({id:C,styleId:O,adds:[{rule:_,index:[].concat(Nn(d),[w||0])}]}),y.apply(d,m)})}),v.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:q(function(y,d,m){var _=m[0],w=nt(d.parentStyleSheet,t,r.styleMirror),S=w.id,C=w.styleId;return(S&&S!==-1||C&&C!==-1)&&i({id:S,styleId:C,removes:[{index:[].concat(Nn(d),[_])}]}),y.apply(d,m)})})}),q(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,u&&(o.CSSStyleSheet.prototype.replace=u),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(p){var g=p[0],v=p[1];v.prototype.insertRule=f[g].insertRule,v.prototype.deleteRule=f[g].deleteRule})})}function Xu(e,n){var i=e.mirror,t=e.stylesheetManager,r,o,s,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(U.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(o=n.ownerDocument)==null?void 0:o.defaultView)==null?void 0:s.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var f;return(f=c.get)==null?void 0:f.call(this)},set:function(f){var p,g=(p=c.set)==null?void 0:p.call(this,f);if(a!==null&&a!==-1)try{t.adoptStyleSheets(f,a)}catch(v){}return g}}),q(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function Av(e,n){var i=e.styleDeclarationCb,t=e.mirror,r=e.ignoreCSSAttributes,o=e.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:q(function(c,l,f){var p,g=f[0],v=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,v,y]);var d=nt((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:v,priority:y},index:Nn(l.parentRule)}),c.apply(l,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:q(function(c,l,f){var p,g=f[0];if(r.has(g))return u.apply(l,[g]);var v=nt((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),y=v.id,d=v.styleId;return(y&&y!==-1||d&&d!==-1)&&i({id:y,styleId:d,remove:{property:g},index:Nn(l.parentRule)}),c.apply(l,f)})}),q(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function Mv(e){var n=e.mediaInteractionCb,i=e.blockClass,t=e.blockSelector,r=e.mirror,o=e.sampling,s=e.doc,a=q(function(c){return Ir(q(function(l){var f=xr(l);if(!(!f||we(f,i,t,!0))){var p=f.currentTime,g=f.volume,v=f.muted,y=f.playbackRate,d=f.loop;n({type:c,id:r.getId(f),currentTime:p,volume:g,muted:v,playbackRate:y,loop:d})}}),o.media||500)}),u=[be("play",a(Gt.Play),s),be("pause",a(Gt.Pause),s),be("seeked",a(Gt.Seeked),s),be("volumechange",a(Gt.VolumeChange),s),be("ratechange",a(Gt.RateChange),s)];return q(function(){u.forEach(function(c){return c()})})}function Tv(e){var n=e.fontCb,i=e.doc,t=i.defaultView;if(!t)return function(){};var r=[],o=new WeakMap,s=t.FontFace;t.FontFace=function(c,l,f){var p=new s(c,l,f);return o.set(p,{family:c,buffer:typeof l!="string",descriptors:f,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),p};var a=Wt(i.fonts,"add",function(u){return function(c){return setTimeout(q(function(){var l=o.get(c);l&&(n(l),o.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){t.FontFace=s}),r.push(a),q(function(){r.forEach(function(u){return u()})})}function Pv(e){var n=e.doc,i=e.mirror,t=e.blockClass,r=e.blockSelector,o=e.selectionCb,s=!0,a=q(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var c=[],l=u.rangeCount||0,f=0;f<l;f++){var p=u.getRangeAt(f),g=p.startContainer,v=p.startOffset,y=p.endContainer,d=p.endOffset,m=we(g,t,r,!0)||we(y,t,r,!0);m||c.push({start:i.getId(g),startOffset:v,end:i.getId(y),endOffset:d})}o({ranges:c})}});return a(),be("selectionchange",a)}function Nv(e){var n=e.doc,i=e.customElementCb,t=n.defaultView;if(!t||!t.customElements)return function(){};var r=Wt(t.customElements,"define",function(o){return function(s,a,u){try{i({define:{name:s}})}catch(c){console.warn("Custom element callback failed for "+s)}return o.apply(this,[s,a,u])}});return r}function $v(e,n){var i=e.mutationCb,t=e.mousemoveCb,r=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,f=e.canvasMutationCb,p=e.fontCb,g=e.selectionCb,v=e.customElementCb;e.mutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(d))}i.apply(void 0,[].concat(d))},e.mousemoveCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(d))}t.apply(void 0,[].concat(d))},e.mouseInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(d))}r.apply(void 0,[].concat(d))},e.scrollCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(d))}o.apply(void 0,[].concat(d))},e.viewportResizeCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(d))}s.apply(void 0,[].concat(d))},e.inputCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(d))}a.apply(void 0,[].concat(d))},e.mediaInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(d))}u.apply(void 0,[].concat(d))},e.styleSheetRuleCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(d))}c.apply(void 0,[].concat(d))},e.styleDeclarationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(d))}l.apply(void 0,[].concat(d))},e.canvasMutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(d))}f.apply(void 0,[].concat(d))},e.fontCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(d))}p.apply(void 0,[].concat(d))},e.selectionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(d))}g.apply(void 0,[].concat(d))},e.customElementCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(d))}v.apply(void 0,[].concat(d))}}function Lv(e,n){n===void 0&&(n={});var i=e.doc.defaultView;if(!i)return function(){};$v(e,n);var t;e.recordDOM&&(t=Hu(e,e.doc));var r=Iv(e),o=Ev(e),s=Ku(e),a=xv(e,{win:i}),u=kv(e),c=Mv(e),l=function(){},f=function(){},p=function(){},g=function(){};e.recordDOM&&(l=Rv(e,{win:i}),f=Xu(e,e.doc),p=Av(e,{win:i}),e.collectFonts&&(g=Tv(e)));for(var v=Pv(e),y=Nv(e),d=[],m=x(e.plugins),_;!(_=m()).done;){var w=_.value;d.push(w.observer(w.callback,i,w.options))}return q(function(){yt.forEach(function(S){return S.reset()}),t==null||t.disconnect(),r(),o(),s(),a(),u(),c(),l(),f(),p(),g(),v(),y(),d.forEach(function(S){return S()})})}function $n(e){return typeof window[e]!="undefined"}function Ln(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var Zu=function(){function e(i){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=e.prototype;return n.getId=function(t,r,o,s){var a=o||this.getIdToRemoteIdMap(t),u=s||this.getRemoteIdToIdMap(t),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(t,r){var o=this,s=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return r.map(function(u){return o.getId(t,u,s,a)})},n.getRemoteId=function(t,r,o){var s=o||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(t,r){var o=this,s=this.getRemoteIdToIdMap(t);return r.map(function(a){return o.getRemoteId(t,a,s)})},n.reset=function(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)},n.getIdToRemoteIdMap=function(t){var r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r},n.getRemoteIdToIdMap=function(t){var r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r},e}(),Dv=function(){function e(i){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new Zu(ks)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Zu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=e.prototype;return n.addIframe=function(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)},n.addLoadListener=function(t){this.loadListener=t},n.attachIframe=function(t,r){var o,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=t.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))},n.handleMessage=function(t){var r=t;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var o=t.source;if(o){var s=this.crossOriginIframeMap.get(t.source);if(s){var a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(t,r){var o=this,s;switch(r.type){case z.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:z.IncrementalSnapshot,data:{source:T.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case z.Meta:case z.Load:case z.DomContentLoaded:return!1;case z.Plugin:return r;case z.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case z.IncrementalSnapshot:switch(r.data.source){case T.Mutation:return r.data.adds.forEach(function(u){o.replaceIds(u,t,["parentId","nextId","previousId"]),o.replaceIdOnNode(u.node,t);var c=o.crossOriginIframeRootIdMap.get(t);c&&o.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){o.replaceIds(u,t,["parentId","id"])}),r.data.attributes.forEach(function(u){o.replaceIds(u,t,["id"])}),r.data.texts.forEach(function(u){o.replaceIds(u,t,["id"])}),r;case T.Drag:case T.TouchMove:case T.MouseMove:return r.data.positions.forEach(function(u){o.replaceIds(u,t,["id"])}),r;case T.ViewportResize:return!1;case T.MediaInteraction:case T.MouseInteraction:case T.Scroll:case T.CanvasMutation:case T.Input:return this.replaceIds(r.data,t,["id"]),r;case T.StyleSheetRule:case T.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case T.Font:return r;case T.Selection:return r.data.ranges.forEach(function(u){o.replaceIds(u,t,["start","end"])}),r;case T.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){o.replaceStyleIds(u,t,["styleId"])}),r}}return!1},n.replace=function(t,r,o,s){for(var a=x(s),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=t.getIds(o,r[c]):r[c]=t.getId(o,r[c]))}return r},n.replaceIds=function(t,r,o){return this.replace(this.crossOriginIframeMirror,t,r,o)},n.replaceStyleIds=function(t,r,o){return this.replace(this.crossOriginIframeStyleMirror,t,r,o)},n.replaceIdOnNode=function(t,r){var o=this;this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(function(s){o.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(t,r){var o=this;t.type!==Wu.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},e}(),Fv=function(){function e(i){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=e.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(t,r){var o=this;if(ur(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var s=Hu(G({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Ku(G({},this.bypassOptions,{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(function(){t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,o.mirror.getId(U.host(t))),o.restoreHandlers.push(Xu({mirror:o.mirror,stylesheetManager:o.bypassOptions.stylesheetManager},t))},0)}},n.observeAttachShadow=function(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)},n.patchAttachShadow=function(t,r){var o=this;this.restoreHandlers.push(Wt(t.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=U.shadowRoot(this);return c&&zu(this)&&o.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(t){try{t()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uv=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Dn=0;Dn<jt.length;Dn++)Uv[jt.charCodeAt(Dn)]=Dn;var Bv=function(n){var i=new Uint8Array(n),t,r=i.length,o="";for(t=0;t<r;t+=3)o+=jt[i[t]>>2],o+=jt[(i[t]&3)<<4|i[t+1]>>4],o+=jt[(i[t+1]&15)<<2|i[t+2]>>6],o+=jt[i[t+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},Qu=new Map;function zv(e,n){var i=Qu.get(e);return i||(i=new Map,Qu.set(e,i)),i.has(n)||i.set(n,[]),i.get(n)}var ec=function(e,n,i){if(!(!e||!(rc(e,n)||(typeof e=="undefined"?"undefined":F(e))==="object"))){var t=e.constructor.name,r=zv(i,t),o=r.indexOf(e);return o===-1&&(o=r.length,r.push(e)),o}};function Fn(e,n,i){if($(e,Array))return e.map(function(v){return Fn(v,n,i)});if(e===null)return e;if($(e,Float32Array)||$(e,Float64Array)||$(e,Int32Array)||$(e,Uint32Array)||$(e,Uint8Array)||$(e,Uint16Array)||$(e,Int16Array)||$(e,Int8Array)||$(e,Uint8ClampedArray)){var t=e.constructor.name;return{rr_type:t,args:[Object.values(e)]}}else if($(e,ArrayBuffer)){var r=e.constructor.name,o=Bv(e);return{rr_type:r,base64:o}}else if($(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[Fn(e.buffer,n,i),e.byteOffset,e.byteLength]}}else if($(e,HTMLImageElement)){var a=e.constructor.name,u=e.src;return{rr_type:a,src:u}}else if($(e,HTMLCanvasElement)){var c="HTMLImageElement",l=e.toDataURL();return{rr_type:c,src:l}}else if($(e,ImageData)){var f=e.constructor.name;return{rr_type:f,args:[Fn(e.data,n,i),e.width,e.height]}}else if(rc(e,n)||(typeof e=="undefined"?"undefined":F(e))==="object"){var p=e.constructor.name,g=ec(e,n,i);return{rr_type:p,index:g}}return e}var tc=function(e,n,i){return e.map(function(t){return Fn(t,n,i)})},rc=function(e,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],t=i.filter(function(r){return typeof n[r]=="function"});return!!t.find(function(r){return $(e,n[r])})};function Wv(e,n,i,t){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=Wt(n.CanvasRenderingContext2D.prototype,c,function(p){return function(){for(var g=this,v=arguments.length,y=new Array(v),d=0;d<v;d++)y[d]=arguments[d];return we(this.canvas,i,t,!0)||setTimeout(function(){var m=tc(y,n,g);e(g.canvas,{type:qt["2D"],property:c,args:m})},0),p.apply(this,y)}});o.push(l)}catch(p){var f=Tn(n.CanvasRenderingContext2D.prototype,c,{set:function(v){e(this.canvas,{type:qt["2D"],property:c,args:[v],setter:!0})}});o.push(f)}},o=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=x(s),u;!(u=a()).done;)r();return function(){o.forEach(function(c){return c()})}}function qv(e){return e==="experimental-webgl"?"webgl":e}function nc(e,n,i,t){var r=[];try{var o=Wt(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];if(!we(this,n,i,!0)){var f=qv(a);if("__context"in this||(this.__context=f),t&&["webgl","webgl2"].includes(f))if(c[0]&&F(c[0])==="object"){var p=c[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],c))}});r.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function ic(e,n,i,t,r,o){for(var s=function(){var f=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof e[f]!="function")return"continue";var p=Wt(e,f,function(v){return function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];var _=v.apply(this,d);if(ec(_,o,this),"tagName"in this.canvas&&!we(this.canvas,t,r,!0)){var w=tc(d,o,this),S={type:n,property:f,args:w};i(this.canvas,S)}return _}});a.push(p)}catch(v){var g=Tn(e,f,{set:function(d){i(this.canvas,{type:n,property:f,args:[d],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(e),c=x(u),l;!(l=c()).done;)s();return a}function Gv(e,n,i,t){var r,o=[];if((r=o).push.apply(r,[].concat(ic(n.WebGLRenderingContext.prototype,qt.WebGL,e,i,t,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=o).push.apply(s,[].concat(ic(n.WebGL2RenderingContext.prototype,qt.WebGL2,e,i,t,n)))}return function(){o.forEach(function(a){return a()})}}var oc="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",jv=function(e){return Uint8Array.from(atob(e),function(n){return n.charCodeAt(0)})},sc=typeof window!="undefined"&&window.Blob&&new Blob([jv(oc)],{type:"text/javascript;charset=utf-8"});function Vv(e){var n;try{if(n=sc&&(window.URL||window.webkitURL).createObjectURL(sc),!n)throw"";var i=new Worker(n,{name:e==null?void 0:e.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch(t){return new Worker("data:text/javascript;base64,"+oc,{name:e==null?void 0:e.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var Yv=function(){function e(i){var t=this;I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",function(f,p){var g=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;(g||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(f)||t.pendingCanvasMutations.set(f,[]),t.pendingCanvasMutations.get(f).push(p)});var r=i.sampling,o=r===void 0?"all":r,s=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,l=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&o==="all"&&this.initCanvasMutationObserver(s,a,u),c&&typeof o=="number"&&this.initCanvasFPSObserver(o,s,a,u,{dataURLOptions:l})}var n=e.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(t,r,o,s,a){var u=this,c=nc(r,o,s,!0),l=new Map,f=new Vv;f.onmessage=function(m){var _=m.data.id;if(l.set(_,!1),"base64"in m.data){var w=m.data,S=w.base64,C=w.type,O=w.width,R=w.height;u.mutationCb({id:_,type:qt["2D"],commands:[{property:"clearRect",args:[0,0,O,R]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var p=1e3/t,g=0,v,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){we(_,o,s,!0)||m.push(_)}),m},d=function(m){if(g&&m-g<p){v=requestAnimationFrame(d);return}g=m;var _=u;y().forEach(ii(function(w){var S,C,O,R;return sr(this,function(k){switch(k.label){case 0:return C=_.mirror.getId(w),l.get(C)?[2]:w.width===0||w.height===0?[2]:(l.set(C,!0),["webgl","webgl2"].includes(w.__context)&&(O=w.getContext(w.__context),((S=O==null?void 0:O.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&O.clear(O.COLOR_BUFFER_BIT)),[4,createImageBitmap(w)]);case 1:return R=k.sent(),f.postMessage({id:C,bitmap:R,width:w.width,height:w.height,dataURLOptions:a.dataURLOptions},[R]),[2]}})})),v=requestAnimationFrame(d)};v=requestAnimationFrame(d),this.resetObservers=function(){c(),cancelAnimationFrame(v)}},n.initCanvasMutationObserver=function(t,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=nc(t,r,o,!1),a=Wv(this.processMutation.bind(this),t,r,o),u=Gv(this.processMutation.bind(this),t,r,o);this.resetObservers=function(){s(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var t=this;requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var t=this,r=function(o){t.rafStamps.latestId=o,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var t=this;this.pendingCanvasMutations.forEach(function(r,o){var s=t.mirror.getId(o);t.flushPendingCanvasMutationFor(o,s)}),requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(t,r){if(!(this.frozen||this.locked)){var o=this.pendingCanvasMutations.get(t);if(!(!o||r===-1)){var s=o.map(function(u){u.type;var c=ir(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(t)}}},e}(),Hv=function(){function e(i){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new vv),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.adoptedStyleSheetCb}var n=e.prototype;return n.attachLinkElement=function(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)},n.trackLinkElement=function(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))},n.adoptStyleSheets=function(t,r){var o,s=function(){var f=l.value,p=void 0;o.styleMirror.has(f)?p=o.styleMirror.getId(f):(p=o.styleMirror.add(f),u.push({styleId:p,rules:Array.from(f.rules||CSSRule,function(g,v){return{rule:Is(g,f.href),index:v}})})),a.styleIds.push(p)};if(t.length!==0){for(var a={id:r,styleIds:[]},u=[],c=x(t),l;!(l=c()).done;)o=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(t){},e}(),Kv=function(){function e(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}var n=e.prototype;return n.inOtherBuffer=function(t,r){var o=this.nodeMap.get(t);return o&&Array.from(o).some(function(s){return s!==r})},n.add=function(t,r){var o=this;this.active||(this.active=!0,requestAnimationFrame(function(){o.nodeMap=new WeakMap,o.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))},n.destroy=function(){},e}(),ue,Un,xo,Bn=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var Oo=document.createElement("iframe");document.body.appendChild(Oo),Array.from=((ys=Oo.contentWindow)==null?void 0:ys.Array.from)||Array.from,document.body.removeChild(Oo)}}catch(e){console.debug("Unable to override Array.from",e)}var $e=Vl();function it(e){e===void 0&&(e={});var n=e.emit,i=e.checkoutEveryNms,t=e.checkoutEveryNth,r=e.blockClass,o=r===void 0?"rr-block":r,s=e.blockSelector,a=s===void 0?null:s,u=e.ignoreClass,c=u===void 0?"rr-ignore":u,l=e.ignoreSelector,f=l===void 0?null:l,p=e.maskTextClass,g=p===void 0?"rr-mask":p,v=e.maskTextSelector,y=v===void 0?null:v,d=e.inlineStylesheet,m=d===void 0?!0:d,_=e.maskAllInputs,w=e.maskInputOptions,S=e.slimDOMOptions,C=e.maskInputFn,O=e.maskTextFn,R=e.hooks,k=e.packFn,P=e.sampling,j=P===void 0?{}:P,M=e.dataURLOptions,D=M===void 0?{}:M,K=e.mousemoveWait,Oe=e.recordDOM,J=Oe===void 0?!0:Oe,Re=e.recordCanvas,Ee=Re===void 0?!1:Re,se=e.recordCrossOriginIframes,me=se===void 0?!1:se,Ae=e.recordAfter,Ct=Ae===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":Ae,Ge=e.userTriggeredOnInput,er=Ge===void 0?!1:Ge,Me=e.collectFonts,It=Me===void 0?!1:Me,H=e.inlineImages,Et=H===void 0?!1:H,xt=e.plugins,tr=e.keepIframeSrcFn,$r=tr===void 0?function(){return!1}:tr,Lr=e.ignoreCSSAttributes,ls=Lr===void 0?new Set([]):Lr,ri=e.errorHandler;Sv(ri);var dt=me?window.parent===window:!0,Ot=!1;if(!dt)try{window.parent.document&&(Ot=!1)}catch(Q){Ot=!0}if(dt&&!n)throw new Error("emit function is required");if(!dt&&!Ot)return function(){};K!==void 0&&j.mousemove===void 0&&(j.mousemove=K),$e.reset();var rr=_===!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}:w!==void 0?w:{password:!0},Dr=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all",headTitleMutations:S==="all"}:S||{};dv();var nr,kt=0,Ze=function(Q){for(var Ne=x(xt||[]),A;!(A=Ne()).done;){var ae=A.value;ae.eventProcessor&&(Q=ae.eventProcessor(Q))}return k&&!Ot&&(Q=k(Q)),Q};ue=function(Q,Ne){var A,ae=Q;if(ae.timestamp=Pn(),(A=yt[0])!=null&&A.isFrozen()&&ae.type!==z.FullSnapshot&&!(ae.type===z.IncrementalSnapshot&&ae.data.source===T.Mutation)&&yt.forEach(function(om){return om.unfreeze()}),dt)n==null||n(Ze(ae),Ne);else if(Ot){var rm={type:"rrweb",event:Ze(ae),origin:window.location.origin,isCheckout:Ne};window.parent.postMessage(rm,"*")}if(ae.type===z.FullSnapshot)nr=ae,kt=0;else if(ae.type===z.IncrementalSnapshot){if(ae.data.source===T.Mutation&&ae.data.isAttachIframe)return;kt++;var nm=t&&kt>=t,im=i&&ae.timestamp-nr.timestamp>i;(nm||im)&&Un(!0)}};for(var Rt=function(Q){ue({type:z.IncrementalSnapshot,data:G({source:T.Mutation},Q)})},gl=function(Q){return ue({type:z.IncrementalSnapshot,data:G({source:T.Scroll},Q)})},ml=function(Q){return ue({type:z.IncrementalSnapshot,data:G({source:T.CanvasMutation},Q)})},em=function(Q){return ue({type:z.IncrementalSnapshot,data:G({source:T.AdoptedStyleSheet},Q)})},At=new Hv({mutationCb:Rt,adoptedStyleSheetCb:em}),Mt=new Dv({mirror:$e,mutationCb:Rt,stylesheetManager:At,recordCrossOriginIframes:me,wrappedEmit:ue}),tm=x(xt||[]),yl;!(yl=tm()).done;){var _l=yl.value;_l.getMirror&&_l.getMirror({nodeMirror:$e,crossOriginIframeMirror:Mt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Mt.crossOriginIframeStyleMirror})}var fs=new Kv;xo=new Yv({recordCanvas:Ee,mutationCb:ml,win:window,blockClass:o,blockSelector:a,mirror:$e,sampling:j.canvas,dataURLOptions:D});var ni=new Fv({mutationCb:Rt,scrollCb:gl,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:rr,dataURLOptions:D,maskTextFn:O,maskInputFn:C,recordCanvas:Ee,inlineImages:Et,sampling:j,slimDOMOptions:Dr,iframeManager:Mt,stylesheetManager:At,canvasManager:xo,keepIframeSrcFn:$r,processedNodeManager:fs},mirror:$e});Un=function(Q){if(Q===void 0&&(Q=!1),!!J){ue({type:z.Meta,data:{href:window.location.href,width:$u(),height:Nu()}},Q),At.reset(),ni.init(),yt.forEach(function(A){return A.lock()});var Ne=mf(document,{mirror:$e,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:rr,maskTextFn:O,maskInputFn:C,slimDOM:Dr,dataURLOptions:D,recordCanvas:Ee,inlineImages:Et,onSerialize:function(A){Fu(A,$e)&&Mt.addIframe(A),Uu(A,$e)&&At.trackLinkElement(A),Io(A)&&ni.addShadowRoot(U.shadowRoot(A),document)},onIframeLoad:function(A,ae){Mt.attachIframe(A,ae),ni.observeAttachShadow(A)},onStylesheetLoad:function(A,ae){At.attachLinkElement(A,ae)},keepIframeSrcFn:$r});if(!Ne)return console.warn("Failed to snapshot the document");ue({type:z.FullSnapshot,data:{node:Ne,initialOffset:Pu(window)}},Q),yt.forEach(function(A){return A.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&At.adoptStyleSheets(document.adoptedStyleSheets,$e.getId(document))}};try{var Fr=[],bl=function(Q){var Ne;return q(Lv)({mutationCb:Rt,mousemoveCb:function(A,ae){return ue({type:z.IncrementalSnapshot,data:{source:ae,positions:A}})},mouseInteractionCb:function(A){return ue({type:z.IncrementalSnapshot,data:G({source:T.MouseInteraction},A)})},scrollCb:gl,viewportResizeCb:function(A){return ue({type:z.IncrementalSnapshot,data:G({source:T.ViewportResize},A)})},inputCb:function(A){return ue({type:z.IncrementalSnapshot,data:G({source:T.Input},A)})},mediaInteractionCb:function(A){return ue({type:z.IncrementalSnapshot,data:G({source:T.MediaInteraction},A)})},styleSheetRuleCb:function(A){return ue({type:z.IncrementalSnapshot,data:G({source:T.StyleSheetRule},A)})},styleDeclarationCb:function(A){return ue({type:z.IncrementalSnapshot,data:G({source:T.StyleDeclaration},A)})},canvasMutationCb:ml,fontCb:function(A){return ue({type:z.IncrementalSnapshot,data:G({source:T.Font},A)})},selectionCb:function(A){ue({type:z.IncrementalSnapshot,data:G({source:T.Selection},A)})},customElementCb:function(A){ue({type:z.IncrementalSnapshot,data:G({source:T.CustomElement},A)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:rr,inlineStylesheet:m,sampling:j,recordDOM:J,recordCanvas:Ee,inlineImages:Et,userTriggeredOnInput:er,collectFonts:It,doc:Q,maskInputFn:C,maskTextFn:O,keepIframeSrcFn:$r,blockSelector:a,slimDOMOptions:Dr,dataURLOptions:D,mirror:$e,iframeManager:Mt,stylesheetManager:At,shadowDomManager:ni,processedNodeManager:fs,canvasManager:xo,ignoreCSSAttributes:ls,plugins:((Ne=xt==null?void 0:xt.filter(function(A){return A.observer}))==null?void 0:Ne.map(function(A){return{observer:A.observer,options:A.options,callback:function(ae){return ue({type:z.Plugin,data:{plugin:A.name,payload:ae}})}}}))||[]},R)};Mt.addLoadListener(function(Q){try{Fr.push(bl(Q.contentDocument))}catch(Ne){console.warn(Ne)}});var hs=function(){Un(),Fr.push(bl(document)),Bn=!0};return document.readyState==="interactive"||document.readyState==="complete"?hs():(Fr.push(be("DOMContentLoaded",function(){ue({type:z.DomContentLoaded,data:{}}),Ct==="DOMContentLoaded"&&hs()})),Fr.push(be("load",function(){ue({type:z.Load,data:{}}),Ct==="load"&&hs()},window))),function(){Fr.forEach(function(Q){return Q()}),fs.destroy(),Bn=!1,Cv()}}catch(Q){console.warn(Q)}}it.addCustomEvent=function(e,n){if(!Bn)throw new Error("please add custom event after start recording");ue({type:z.Custom,data:{tag:e,payload:n}})},it.freezePage=function(){yt.forEach(function(e){return e.freeze()})},it.takeFullSnapshot=function(e){if(!Bn)throw new Error("please take full snapshot after start recording");Un(e)},it.mirror=$e;var ac;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ac||(ac={})),it.addCustomEvent,it.freezePage,it.takeFullSnapshot;var uc=E.setImmediate,ot,ko,Ro,cc=Object.prototype.toString,Jv=typeof uc!="undefined"?function(n){return uc(n)}:setTimeout;try{Object.defineProperty({},"x",{}),ot=function(n,i,t,r){return Object.defineProperty(n,i,{value:t,writable:!0,configurable:r!==!1})}}catch(e){ot=function(i,t,r){return i[t]=r,i}}Ro=function(){var n,i,t;function r(o,s){this.fn=o,this.self=s,this.next=void 0}return{add:function(s,a){t=new r(s,a),i?i.next=t:n=t,i=t,t=void 0},drain:function(){var s=n;for(n=i=ko=void 0;s;)s.fn.call(s.self),s=s.next}}}();function zn(e,n){Ro.add(e,n),ko||(ko=Jv(Ro.drain))}function lc(e){var n,i=typeof e;return e!==null&&(i==="object"||i==="function")&&(n=e.then),typeof n=="function"?n:!1}function Ao(){for(var e=0;e<this.chain.length;e++)Xv(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Xv(e,n,i){var t,r;try{n===!1?i.reject(e.msg):(n===!0?t=e.msg:t=n.call(void 0,e.msg),t===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=lc(t))?r.call(t,i.resolve,i.reject):i.resolve(t))}catch(o){i.reject(o)}}function fc(e){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=lc(e))?zn(function(){var t=new pc(i);try{n.call(e,function(){fc.apply(t,arguments)},function(){Or.apply(t,arguments)})}catch(r){Or.call(t,r)}}):(i.msg=e,i.state=1,i.chain.length>0&&zn(Ao,i))}catch(t){Or.call(new pc(i),t)}}}function Or(e){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=e,n.state=2,n.chain.length>0&&zn(Ao,n))}function hc(e,n,i,t){for(var r=0;r<n.length;r++)(function(s){e.resolve(n[s]).then(function(u){i(s,u)},t)})(r)}function pc(e){this.def=e,this.triggered=!1}function Zv(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function st(e){if(typeof e!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new Zv(this);this.then=function(t,r){var o={success:typeof t=="function"?t:!0,failure:typeof r=="function"?r:!1};return o.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");o.resolve=a,o.reject=u}),n.chain.push(o),n.state!==0&&zn(Ao,n),o.promise},this.catch=function(t){return this.then(void 0,t)};try{e.call(void 0,function(t){fc.call(n,t)},function(t){Or.call(n,t)})}catch(i){Or.call(n,i)}}var dc=ot({},"constructor",st,!1);st.prototype=dc,ot(dc,"__NPO__",0,!1),ot(st,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");r(n)})}),ot(st,"reject",function(n){return new this(function(t,r){if(typeof t!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),ot(st,"all",function(n){var i=this;return cc.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;hc(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})}),ot(st,"race",function(n){var i=this;return cc.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");hc(i,n,function(a,u){r(u)},o)})});var Y;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?Y=Promise:Y=st;var Le={DEBUG:!1,LIB_VERSION:"2.68.0"},kr=24*60*60*1e3,Mo=8*1e3,Wn=Array.prototype,Qv=Function.prototype,vc=Object.prototype,at=Wn.slice,Rr=vc.toString,qn=vc.hasOwnProperty,he=E.console,ut=E.navigator,V=E.document,Gn=E.opera,gc=E.screen,He=ut.userAgent,To=Qv.bind,mc=Wn.forEach,yc=Wn.indexOf,_c=Wn.map,eg=Array.isArray,Po={},h={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},W={log:function(){if(Le.DEBUG&&!h.isUndefined(he)&&he)try{he.log.apply(he,arguments)}catch(e){h.each(arguments,function(n){he.log(n)})}},warn:function(){if(Le.DEBUG&&!h.isUndefined(he)&&he){var e=["Mixpanel warning:"].concat(h.toArray(arguments));try{he.warn.apply(he,e)}catch(n){h.each(e,function(i){he.warn(i)})}}},error:function(){if(Le.DEBUG&&!h.isUndefined(he)&&he){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,e)}catch(n){h.each(e,function(i){he.error(i)})}}},critical:function(){if(!h.isUndefined(he)&&he){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,e)}catch(n){h.each(e,function(i){he.error(i)})}}}},No=function(e,n){return function(){return arguments[0]="["+n+"] "+arguments[0],e.apply(W,arguments)}},_t=function(e){return{log:No(W.log,e),error:No(W.error,e),critical:No(W.critical,e)}},$o=function(e){return function(){try{return e.apply(this,arguments)}catch(n){W.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Le.DEBUG&&W.critical(n)}}},bc=function(e){var n=e.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=$o(n[i]))};h.bind=function(e,n){var i,t;if(To&&e.bind===To)return To.apply(e,at.call(arguments,1));if(!h.isFunction(e))throw new TypeError;return i=at.call(arguments,2),t=function(){if(!(this instanceof t))return e.apply(n,i.concat(at.call(arguments)));var r={};r.prototype=e.prototype;var o=new r;r.prototype=null;var s=e.apply(o,i.concat(at.call(arguments)));return Object(s)===s?s:o},t},h.each=function(e,n,i){if(e!=null){if(mc&&e.forEach===mc)e.forEach(n,i);else if(e.length===+e.length){for(var t=0,r=e.length;t<r;t++)if(t in e&&n.call(i,e[t],t,e)===Po)return}else for(var o in e)if(qn.call(e,o)&&n.call(i,e[o],o,e)===Po)return}},h.extend=function(e){return h.each(at.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(e[i]=n[i])}),e},h.isArray=eg||function(e){return Rr.call(e)==="[object Array]"},h.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(n){return!1}},h.isArguments=function(e){return!!(e&&qn.call(e,"callee"))},h.toArray=function(e){return e?e.toArray?e.toArray():h.isArray(e)||h.isArguments(e)?at.call(e):h.values(e):[]},h.map=function(e,n,i){if(_c&&e.map===_c)return e.map(n,i);var t=[];return h.each(e,function(r){t.push(n.call(i,r))}),t},h.keys=function(e){var n=[];return e===null||h.each(e,function(i,t){n[n.length]=t}),n},h.values=function(e){var n=[];return e===null||h.each(e,function(i){n[n.length]=i}),n},h.include=function(e,n){var i=!1;return e===null?i:yc&&e.indexOf===yc?e.indexOf(n)!=-1:(h.each(e,function(t){if(i||(i=t===n))return Po}),i)},h.includes=function(e,n){return e.indexOf(n)!==-1},h.inherit=function(e,n){return e.prototype=new n,e.prototype.constructor=e,e.superclass=n.prototype,e},h.isObject=function(e){return e===Object(e)&&!h.isArray(e)},h.isEmptyObject=function(e){if(h.isObject(e)){for(var n in e)if(qn.call(e,n))return!1;return!0}return!1},h.isUndefined=function(e){return e===void 0},h.isString=function(e){return Rr.call(e)=="[object String]"},h.isDate=function(e){return Rr.call(e)=="[object Date]"},h.isNumber=function(e){return Rr.call(e)=="[object Number]"},h.isElement=function(e){return!!(e&&e.nodeType===1)},h.encodeDates=function(e){return h.each(e,function(n,i){h.isDate(n)?e[i]=h.formatDate(n):h.isObject(n)&&(e[i]=h.encodeDates(n))}),e},h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},h.formatDate=function(e){function n(i){return i<10?"0"+i:i}return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())},h.strip_empty_properties=function(e){var n={};return h.each(e,function(i,t){h.isString(i)&&i.length>0&&(n[t]=i)}),n},h.truncate=function(e,n){var i;return typeof e=="string"?i=e.slice(0,n):h.isArray(e)?(i=[],h.each(e,function(t){i.push(h.truncate(t,n))})):h.isObject(e)?(i={},h.each(e,function(t,r){i[r]=h.truncate(t,n)})):i=e,i},h.JSONEncode=function(){return function(e){var n=e,i=function(r){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(r)?'"'+r.replace(o,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},t=function(r,o){var s="",a=" ",u=0,c="",l="",f=0,p=s,g=[],v=o[r];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(r)),typeof v){case"string":return i(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(s+=a,g=[],Rr.apply(v)==="[object Array]"){for(f=v.length,u=0;u<f;u+=1)g[u]=t(u,v)||"null";return l=g.length===0?"[]":s?"[\n"+s+g.join(",\n"+s)+"\n"+p+"]":"["+g.join(",")+"]",s=p,l}for(c in v)qn.call(v,c)&&(l=t(c,v),l&&g.push(i(c)+(s?": ":":")+l));return l=g.length===0?"{}":s?"{"+g.join(",")+p+"}":"{"+g.join(",")+"}",s=p,l}};return t("",{"":n})}}(),h.JSONDecode=function(){var e,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},t,r=function(g){var v=new SyntaxError(g);throw v.at=e,v.text=t,v},o=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=t.charAt(e),e+=1,n},s=function(){var g,v="";for(n==="-"&&(v="-",o("-"));n>="0"&&n<="9";)v+=n,o();if(n===".")for(v+=".";o()&&n>="0"&&n<="9";)v+=n;if(n==="e"||n==="E")for(v+=n,o(),(n==="-"||n==="+")&&(v+=n,o());n>="0"&&n<="9";)v+=n,o();if(g=+v,!isFinite(g))r("Bad number");else return g},a=function(){var g,v,y="",d;if(n==='"')for(;o();){if(n==='"')return o(),y;if(n==="\\")if(o(),n==="u"){for(d=0,v=0;v<4&&(g=parseInt(o(),16),!!isFinite(g));v+=1)d=d*16+g;y+=String.fromCharCode(d)}else if(typeof i[n]=="string")y+=i[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)o()},c=function(){switch(n){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}r('Unexpected "'+n+'"')},l,f=function(){var g=[];if(n==="["){if(o("["),u(),n==="]")return o("]"),g;for(;n;){if(g.push(l()),u(),n==="]")return o("]"),g;o(","),u()}}r("Bad array")},p=function(){var g,v={};if(n==="{"){if(o("{"),u(),n==="}")return o("}"),v;for(;n;){if(g=a(),u(),o(":"),Object.hasOwnProperty.call(v,g)&&r('Duplicate key "'+g+'"'),v[g]=l(),u(),n==="}")return o("}"),v;o(","),u()}}r("Bad object")};return l=function(){switch(u(),n){case"{":return p();case"[":return f();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():c()}},function(g){var v;return t=g,e=0,n=" ",v=l(),u(),n&&r("Syntax error"),v}}(),h.base64Encode=function(e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,t,r,o,s,a,u,c,l=0,f=0,p="",g=[];if(!e)return e;e=h.utf8Encode(e);do i=e.charCodeAt(l++),t=e.charCodeAt(l++),r=e.charCodeAt(l++),c=i<<16|t<<8|r,o=c>>18&63,s=c>>12&63,a=c>>6&63,u=c&63,g[f++]=n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(l<e.length);switch(p=g.join(""),e.length%3){case 1:p=p.slice(0,-2)+"==";break;case 2:p=p.slice(0,-1)+"=";break}return p},h.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",i,t,r=0,o;for(i=t=0,r=e.length,o=0;o<r;o++){var s=e.charCodeAt(o),a=null;s<128?t++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(t>i&&(n+=e.substring(i,t)),n+=a,i=t=o+1)}return t>i&&(n+=e.substring(i,e.length)),n},h.UUID=function(){try{return E.crypto.randomUUID()}catch(i){for(var e=new Array(36),n=0;n<36;n++)e[n]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",h.map(e,function(t){return t.toString(16)}).join("")}};var wc=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];h.isBlockedUA=function(e){var n;for(e=e.toLowerCase(),n=0;n<wc.length;n++)if(e.indexOf(wc[n])!==-1)return!0;return!1},h.HTTPBuildQuery=function(e,n){var i,t,r=[];return h.isUndefined(n)&&(n="&"),h.each(e,function(o,s){i=encodeURIComponent(o.toString()),t=encodeURIComponent(s),r[r.length]=t+"="+i}),r.join(n)},h.getQueryParam=function(e,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+n+"=([^&#]*)",t=new RegExp(i),r=t.exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(s){W.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},h.cookie={get:function(e){for(var n=e+"=",i=V.cookie.split(";"),t=0;t<i.length;t++){for(var r=i[t];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(e){var n;try{n=h.JSONDecode(h.cookie.get(e))||{}}catch(i){}return n},set_seconds:function(e,n,i,t,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(t){var l=Ic(V.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),V.cookie=e+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(e,n,i,t,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(t){var l=Ic(V.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*24*60*60*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var p=e+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return V.cookie=p,p},remove:function(e,n,i){h.cookie.set(e,"",-1,n,!1,!1,i)}};var Sc=function(e){var n=!0;try{var i="__mplss_"+Fo(8),t="xyz";e.setItem(i,t),e.getItem(i)!==t&&(n=!1),e.removeItem(i)}catch(r){n=!1}return n},Lo=null,Ar=function(e,n){return Lo!==null&&!n?Lo:Lo=Sc(e||E.localStorage)},Do=null,tg=function(e,n){return Do!==null&&!n?Do:Do=Sc(e||E.sessionStorage)};function Cc(e,n,i){var t=function(r){W.error(n+" error: "+r)};return{is_supported:function(r){var o=i(e,r);return o||W.error(n+" unsupported"),o},error:t,get:function(r){try{return e.getItem(r)}catch(o){t(o)}return null},parse:function(r){try{return h.JSONDecode(e.getItem(r))||{}}catch(o){}return null},set:function(r,o){try{e.setItem(r,o)}catch(s){t(s)}},remove:function(r){try{e.removeItem(r)}catch(o){t(o)}}}}h.localStorage=Cc(E.localStorage,"localStorage",Ar),h.sessionStorage=Cc(E.sessionStorage,"sessionStorage",tg),h.register_event=function(){var e=function(t,r,o,s,a){if(!t){W.error("No valid element provided to register_event");return}if(t.addEventListener&&!s)t.addEventListener(r,o,!!a);else{var u="on"+r,c=t[u];t[u]=n(t,o,c)}};function n(t,r,o){var s=function(a){if(a=a||i(E.event),!!a){var u=!0,c,l;return h.isFunction(o)&&(c=o(a)),l=r.call(t,a),(c===!1||l===!1)&&(u=!1),u}};return s}function i(t){return t&&(t.preventDefault=i.preventDefault,t.stopPropagation=i.stopPropagation),t}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},e}();var rg=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=function(){function e(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,o){var s=" "+o+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function t(r){if(!V.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,p,g,v,y,d=[V];for(f=0;f<o.length;f++){if(s=o[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var m=a[1],_=V.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];d=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var w=a[1];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=e(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];for(d=[],y=0,p=0;p<c.length;p++)c[p].className&&h.isString(c[p].className)&&i(c[p],w)&&(d[y++]=c[p]);continue}var S=s.match(rg);if(S){u=S[1];var C=S[2],O=S[3],R=S[4];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=e(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=[],y=0;var k;switch(O){case"=":k=function(P){return P.getAttribute(C)==R};break;case"~":k=function(P){return P.getAttribute(C).match(new RegExp("\\b"+R+"\\b"))};break;case"|":k=function(P){return P.getAttribute(C).match(new RegExp("^"+R+"-?"))};break;case"^":k=function(P){return P.getAttribute(C).indexOf(R)===0};break;case"$":k=function(P){return P.getAttribute(C).lastIndexOf(R)==P.getAttribute(C).length-R.length};break;case"*":k=function(P){return P.getAttribute(C).indexOf(R)>-1};break;default:k=function(P){return P.getAttribute(C)}}for(d=[],y=0,p=0;p<c.length;p++)k(c[p])&&(d[y++]=c[p]);continue}for(u=s,c=[],l=0,p=0;p<d.length;p++)for(v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=c}return d}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:t.call(this,r)}}();var ng=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],ig=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(e){var n="",i={};return h.each(ng,function(t){n=h.getQueryParam(V.URL,t),n.length?i[t]=n:e!==void 0&&(i[t]=e)}),i},clickParams:function(){var e="",n={};return h.each(ig,function(i){e=h.getQueryParam(V.URL,i),e.length&&(n[i]=e)}),n},marketingParams:function(){return h.extend(h.info.campaignParams(),h.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 n=h.info.searchEngine(e),i=n!="yahoo"?"q":"p",t={};if(n!==null){t.$search_engine=n;var r=h.getQueryParam(e,i);r.length&&(t.mp_keyword=r)}return t},browser:function(e,n,i){return n=n||"",i||h.includes(e," OPR/")?h.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":h.includes(e,"IEMobile")||h.includes(e,"WPDesktop")?"Internet Explorer Mobile":h.includes(e,"SamsungBrowser/")?"Samsung Internet":h.includes(e,"Edge")||h.includes(e,"Edg/")?"Microsoft Edge":h.includes(e,"FBIOS")?"Facebook Mobile":h.includes(e,"Whale/")?"Whale Browser":h.includes(e,"Chrome")?"Chrome":h.includes(e,"CriOS")?"Chrome iOS":h.includes(e,"UCWEB")||h.includes(e,"UCBrowser")?"UC Browser":h.includes(e,"FxiOS")?"Firefox iOS":h.includes(n,"Apple")?h.includes(e,"Mobile")?"Mobile Safari":"Safari":h.includes(e,"Android")?"Android Mobile":h.includes(e,"Konqueror")?"Konqueror":h.includes(e,"Firefox")?"Firefox":h.includes(e,"MSIE")||h.includes(e,"Trident/")?"Internet Explorer":h.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,n,i){var t=h.info.browser(e,n,i),r={"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+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=r[t];if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=He;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 n=e.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return E.location.href},properties:function(e){return typeof e!="object"&&(e={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(He,ut.vendor,Gn),$referrer:V.referrer,$referring_domain:h.info.referringDomain(V.referrer),$device:h.info.device(He)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(He,ut.vendor,Gn),$screen_height:gc.height,$screen_width:gc.width,mp_lib:"web",$lib_version:Le.LIB_VERSION,$insert_id:Fo(),time:h.timestamp()/1e3},h.strip_empty_properties(e))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(He,ut.vendor,Gn)}),{$browser_version:h.info.browserVersion(He,ut.vendor,Gn)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:V.title,current_domain:E.location.hostname,current_url_path:E.location.pathname,current_url_protocol:E.location.protocol,current_url_search:E.location.search})}};var og=function(e,n){var i=null,t=[];return function(r){var o=this;return t.push(r),i||(i=new Y(function(s){setTimeout(function(){var a=e.apply(o,[t]);i=null,t=[],s(a)},n)})),i}},Fo=function(e){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?n.substring(0,e):n},sg=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,ag=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Ic=function(e){var n=ag,i=e.split("."),t=i[i.length-1];(t.length>4||t==="com"||t==="org")&&(n=sg);var r=e.match(n);return r?r[0]:""},ug=function(){var e=E.navigator.onLine;return h.isUndefined(e)||e},ct=function(){},Vt=null,jn=null;typeof JSON!="undefined"&&(Vt=JSON.stringify,jn=JSON.parse),Vt=Vt||h.JSONEncode,jn=jn||h.JSONDecode,h.info=h.info,h.info.browser=h.info.browser,h.info.browserVersion=h.info.browserVersion,h.info.device=h.info.device,h.info.properties=h.info.properties,h.isBlockedUA=h.isBlockedUA,h.isEmptyObject=h.isEmptyObject,h.isObject=h.isObject,h.JSONDecode=h.JSONDecode,h.JSONEncode=h.JSONEncode,h.toArray=h.toArray,h.NPO=st;var cg="mixpanelBrowserDb",Ec="mixpanelRecordingEvents",Uo="mixpanelRecordingRegistry",lg=1,fg=[Ec,Uo],Be=function(e){this.dbPromise=null,this.storeName=e};Be.prototype._openDb=function(){return new Y(function(e,n){var i=E.indexedDB.open(cg,lg);i.onerror=function(){n(i.error)},i.onsuccess=function(){e(i.result)},i.onupgradeneeded=function(t){var r=t.target.result;fg.forEach(function(o){r.createObjectStore(o)})}})},Be.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof E.IDBDatabase?Y.resolve():Y.reject(e)})):Y.reject("indexedDB is not supported in this browser")},Be.prototype.makeTransaction=function(e,n){var i=this.storeName,t=function(r){return new Y(function(o,s){var a=r.transaction(i,e);a.oncomplete=function(){o(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(t).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(t)):Y.reject(r)}.bind(this))},Be.prototype.setItem=function(e,n){return this.makeTransaction("readwrite",function(i){i.put(n,e)})},Be.prototype.getItem=function(e){var n;return this.makeTransaction("readonly",function(i){n=i.get(e)}).then(function(){return n.result})},Be.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(n){n.delete(e)})},Be.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(n){e=n.getAll()}).then(function(){return e.result})};var hg="__mp_opt_in_out_";function pg(e,n){kc(!0,e,n)}function dg(e,n){kc(!1,e,n)}function vg(e,n){return Oc(e,n)==="1"}function xc(e,n){if(mg(n))return W.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 i=Oc(e,n)==="0";return i&&W.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function lt(e){return Wo(e,function(n){return this.get_config(n)})}function ft(e){return Wo(e,function(n){return this._get_config(n)})}function Yt(e){return Wo(e,function(n){return this._get_config(n)})}function gg(e,n){n=n||{},Bo(n).remove(zo(e,n),!!n.crossSubdomainCookie,n.cookieDomain)}function Bo(e){return e=e||{},e.persistenceType==="localStorage"?h.localStorage:h.cookie}function zo(e,n){return n=n||{},(n.persistencePrefix||hg)+e}function Oc(e,n){return Bo(n).get(zo(e,n))}function mg(e){if(e&&e.ignoreDnt)return!1;var n=e&&e.window||E,i=n.navigator||{},t=!1;return h.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){h.includes([!0,1,"1","yes"],r)&&(t=!0)}),t}function kc(e,n,i){if(!h.isString(n)||!n.length){W.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}i=i||{},Bo(i).set(zo(n,i),e?1:0,h.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&e&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function Wo(e,n){return function(){var i=!1;try{var t=n.call(this,"token"),r=n.call(this,"ignore_dnt"),o=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");t&&(i=xc(t,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){W.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return e.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var yg=_t("lock"),Rc=function(e,n){n=n||{},this.storageKey=e,this.storage=n.storage||E.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||Y};Rc.prototype.withLock=function(e,n){var i=this.promiseImpl;return new i(h.bind(function(t,r){var o=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,f=a+":X",p=a+":Y",g=a+":Z",v=function(w){if(new Date().getTime()-s>c){yg.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+o+"]"),l.removeItem(g),l.removeItem(p),m();return}setTimeout(function(){try{w()}catch(S){r(S)}},u*(Math.random()+.1))},y=function(w,S){w()?S():v(function(){y(w,S)})},d=function(){var w=l.getItem(p);return w&&w!==o?!1:(l.setItem(p,o),l.getItem(p)===o?!0:(Ar(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,o),y(d,function(){if(l.getItem(f)===o){_();return}v(function(){if(l.getItem(p)!==o){m();return}y(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var w=function(){l.removeItem(g),l.getItem(p)===o&&l.removeItem(p),l.getItem(f)===o&&l.removeItem(f)};e().then(function(S){w(),t(S)}).catch(function(S){w(),r(S)})};try{if(Ar(l,!0))m();else throw new Error("localStorage support check failed")}catch(w){r(w)}},this))};var Mr=function(e){this.storage=e||E.localStorage};Mr.prototype.init=function(){return Y.resolve()},Mr.prototype.setItem=function(e,n){return new Y(h.bind(function(i,t){try{this.storage.setItem(e,Vt(n))}catch(r){t(r)}i()},this))},Mr.prototype.getItem=function(e){return new Y(h.bind(function(n,i){var t;try{t=jn(this.storage.getItem(e))}catch(r){i(r)}n(t)},this))},Mr.prototype.removeItem=function(e){return new Y(h.bind(function(n,i){try{this.storage.removeItem(e)}catch(t){i(t)}n()},this))};var Ac=_t("batch"),ze=function(e,n){n=n||{},this.storageKey=e,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Mr,this.lock=new Rc(e,{storage:n.sharedLockStorage||E.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||h.bind(Ac.error,Ac),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=og(h.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(i){return this._enqueuePersisted([i])},this)};ze.prototype.ensureInit=function(){return this.initialized?Y.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},ze.prototype.enqueue=function(e,n){var i={id:Fo(),flushAfter:new Date().getTime()+n*2,payload:e};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),Y.resolve(!0))},ze.prototype._enqueuePersisted=function(e){var n=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return this.saveToStorage(i.concat(e))},this)).then(h.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(e)),i},this)).catch(h.bind(function(i){return this.reportError("Error enqueueing items",i,e),!1},this))},this);return this.lock.withLock(n,this.pid).catch(h.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},ze.prototype.fillBatch=function(e){var n=this.memQueue.slice(0,e);return this.usePersistence&&n.length<e?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){if(i.length){var t={};h.each(n,function(s){t[s.id]=!0});for(var r=0;r<i.length;r++){var o=i[r];if(new Date().getTime()>o.flushAfter&&!t[o.id]&&(o.orphaned=!0,n.push(o),n.length>=e))break}}return n},this)):Y.resolve(n)};var Mc=function(e,n){var i=[];return h.each(e,function(t){t.id&&!n[t.id]&&i.push(t)}),i};ze.prototype.removeItemsByID=function(e){var n={};if(h.each(e,function(t){n[t]=!0}),this.memQueue=Mc(this.memQueue,n),this.usePersistence){var i=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(t){return t=Mc(t,n),this.saveToStorage(t)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(t){for(var r=0;r<t.length;r++){var o=t[r];if(o.id&&n[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(i,this.pid).catch(h.bind(function(t){return this.reportError("Error acquiring storage lock",t),Ar(this.lock.storage,!0)?!1:i().then(h.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(h.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return Y.resolve(!0)};var Tc=function(e,n){var i=[];return h.each(e,function(t){var r=t.id;if(r in n){var o=n[r];o!==null&&(t.payload=o,i.push(t))}else i.push(t)}),i};ze.prototype.updatePayloads=function(e){return this.memQueue=Tc(this.memQueue,e),this.usePersistence?this.lock.withLock(h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return i=Tc(i,e),this.saveToStorage(i)},this)).catch(h.bind(function(i){return this.reportError("Error updating items",e,i),!1},this))},this),this.pid).catch(h.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):Y.resolve(!0)},ze.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(e){return e&&(h.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(h.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},ze.prototype.saveToStorage=function(e){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(h.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},ze.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Y.resolve()};var _g=10*60*1e3,Tr=_t("batch"),Pe=function(e,n){this.errorReporter=n.errorReporter,this.queue=new ze(e,{errorReporter:h.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.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=n.flushOnlyOnInterval||!1,this._flushPromise=null};Pe.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Pe.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Pe.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Pe.prototype.clear=function(){return this.queue.clear()},Pe.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Pe.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Pe.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Pe.prototype.sendRequestPromise=function(e,n){return new Y(h.bind(function(i){this.sendRequest(e,n,i)},this))},Pe.prototype.flush=function(e){if(this.requestInProgress)return Tr.log("Flush: Request already in progress"),Y.resolve();this.requestInProgress=!0,e=e||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),t=this.batchSize;return this.queue.fillBatch(t).then(h.bind(function(r){var o=r.length===t,s=[],a={};if(h.each(r,function(f){var p=f.payload;if(this.beforeSendHook&&!f.orphaned&&(p=this.beforeSendHook(p)),p){p.event&&p.properties&&(p.properties=h.extend({},p.properties,{mp_sent_by_lib_version:Le.LIB_VERSION}));var g=!0,v=f.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]}),g=!1):this.reportError("[dupe] found item with no ID",{item:f}),g&&s.push(p)}a[f.id]=p},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),Y.resolve();var u=h.bind(function(){return this.queue.removeItemsByID(h.map(r,function(f){return f.id})).then(h.bind(function(f){return h.each(r,h.bind(function(p){var g=p.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:p,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:p})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),Y.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Y.resolve())},this))},this),c=h.bind(function(f){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(h.isObject(f)&&f.error==="timeout"&&new Date().getTime()-i>=n)return this.reportError("Network timeout; retrying"),this.flush();if(h.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!ug()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(_g,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),Y.resolve()}else if(h.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(t/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Y.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return e.unloading&&(l.transport="sendBeacon"),Tr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(h.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Pe.prototype.reportError=function(e,n){if(Tr.error.apply(Tr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(e)),this.errorReporter(e,n)}catch(i){Tr.error(i)}};var qo=function(e){var n=Date.now();return!e||n>e.maxExpires||n>e.idleExpires},bg=250,Ht=_t("recorder"),Pc=E.CompressionStream,wg={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Sg=new Set([T.MouseMove,T.MouseInteraction,T.Scroll,T.ViewportResize,T.Input,T.TouchMove,T.MediaInteraction,T.Drag,T.Selection]);function Cg(e){return e.type===z.IncrementalSnapshot&&Sg.has(e.data.source)}var ge=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||ct,this._onMaxLengthReached=e.onMaxLengthReached||ct,this._onBatchSent=e.onBatchSent||ct,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=kr,this.recordMinMs=0;var n=Ar(e.sharedLockStorage,!0);this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Be(Ec),this.batcher=new Pe(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:wg,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:bg,sharedLockTimeoutMS:10*1e3})};ge.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(e.$device_id=n);var i=this._mixpanel.get_property("$user_id");return i&&(e.$user_id=i),e},ge.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},ge.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},ge.prototype.get_config=function(e){return this.getConfig(e)},ge.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Ht.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>kr&&(this.recordMaxMs=kr,Ht.critical("record_max_ms cannot be greater than "+kr+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>Mo&&(this.recordMinMs=Mo,Ht.critical("record_min_ms cannot be greater than "+Mo+"ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var r=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,r),this.idleExpires=new Date().getTime()+r}.bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(r){if(this.idleExpires&&this.idleExpires<r.timestamp){this._onIdleTimeout();return}Cg(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(r)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,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}})}catch(r){this.reportError("Unexpected error when starting rrweb recording.",r)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var t=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),t)},ge.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():e||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},ge.prototype.isRrwebStopped=function(){return this._stopRecording===null},ge.prototype.flushEventsWithOptOut=function(e,n,i){var t=function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,n,i,t)},ge.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},ge.deserialize=function(e,n){var i=new ge(h.extend({},n,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:n.sharedLockStorage}));return i},ge.prototype._sendRequest=function(e,n,i,t){var r=function(s,a){s.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),t({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");E.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:i}).then(function(s){s.json().then(function(a){r(s,a)}).catch(function(a){t({error:a})})}).catch(function(s){t({error:s,httpStatusCode:0})})},ge.prototype._flushEvents=lt(function(e,n,i){var t=e.length;if(t>0){for(var r=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<t;u++)o=Math.min(o,e[u].timestamp),s=Math.max(s,e[u].timestamp),e[u].type===z.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){i({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Le.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Pc){var p=new Blob([f],{type:"application/json"}).stream(),g=p.pipeThrough(new Pc("gzip"));new Response(g).blob().then(function(v){l.format="gzip",this._sendRequest(r,l,v,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),ge.prototype.reportError=function(e,n){Ht.error.apply(Ht.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,n)}catch(i){Ht.error(i)}};var Kt=function(e){this.idb=new Be(Uo),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Kt.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Kt.prototype.setActiveRecording=function(e){var n=e.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),Y.resolve())},Kt.prototype.getActiveRecording=function(){return this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return qo(e)?null:e}.bind(this)).catch(this.handleError.bind(this))},Kt.prototype.clearActiveRecording=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Kt.prototype.flushInactiveRecordings=function(){return this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var n=e.filter(function(i){return qo(i)}).map(function(i){var t=ge.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(i.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return Y.all(n)}.bind(this)).catch(this.handleError.bind(this))};var Pr=_t("recorder"),Ke=function(e,n,i){this.mixpanelInstance=e,this.rrwebRecord=n||it,this.sharedLockStorage=i,this.recordingRegistry=new Kt({mixpanelInstance:this.mixpanelInstance,errorReporter:Pr.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Ke.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Pr.log("Recording already in progress, skipping startRecording.");return}var n=function(){Pr.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){Pr.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),t=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:t,onIdleTimeout:n,onMaxLengthReached:i,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=ge.deserialize(e.activeSerializedRecording,r):this.activeRecording=new ge(r),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Ke.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Ke.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ke.prototype._stopCurrentRecording=function(e,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(e);return n&&(this.activeRecording=null),i}return Y.resolve()},Ke.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Y.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):e?this.startRecording({shouldStopBatcher:!1}):(Pr.log("No resumable recording found."),null)}.bind(this))},Ke.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ke.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ke.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),E.__mp_recorder=Ke;var Vn="change",bt="click",Nc="hashchange",Jt="mp_locationchange",$c="popstate",Lc="scrollend",Go="submit",Ig=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Dc=["mp-include"],jo=["mp-no-track"],Fc=jo.concat(["mp-sensitive"]),Eg=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Se=_t("autocapture");function Vo(e){for(var n={},i=Uc(e).split(" "),t=0;t<i.length;t++){var r=i[t];r&&(n[r]=!0)}return n}function Uc(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function xg(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!Wc(e));return e}function Bc(e,n,i,t,r,o){var s={$classes:Uc(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),Ko(e,n,r,o)&&h.each(Eg.concat(t),function(f){if(e.hasAttribute(f)&&!i[f]){var p=e.getAttribute(f);Yn(p)&&(s["$attr-"+f]=p)}});for(var u=1,c=1,l=e;l=xg(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function Og(e,n){var i=n.allowElementCallback,t=n.allowSelectors||[],r=n.blockAttrs||[],o=n.blockElementCallback,s=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,l={};h.each(r,function(C){l[C]=!0});var f=null,p=typeof e.target=="undefined"?e.srcElement:e.target;if(qc(p)&&(p=p.parentNode),Ag(p,e)&&Yo(p,e,i,t)&&!Ho(p,e,o,s)){for(var g=[p],v=p;v.parentNode&&!We(v,"body");)g.push(v.parentNode),v=v.parentNode;var y=[],d,m=!1;if(h.each(g,function(C){var O=Ko(C,e,i,t);!l.href&&C.tagName.toLowerCase()==="a"&&(d=C.getAttribute("href"),d=O&&Yn(d)&&d),Ho(C,e,o,s)&&(m=!0),y.push(Bc(C,e,l,u,i,t))},this),!m){var _=V.documentElement;if(f={$event_type:e.type,$host:E.location.host,$pathname:E.location.pathname,$elements:y,$el_attr__href:d,$viewportHeight:Math.max(_.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,E.innerWidth||0),$pageHeight:V.body.offsetHeight||0,$pageWidth:V.body.offsetWidth||0},h.each(u,function(C){if(!l[C]&&p.hasAttribute(C)){var O=p.getAttribute(C);Yn(O)&&(f["$el_attr__"+C]=O)}}),a&&(w=zc(p,e,i,t),w&&w.length&&(f.$el_text=w)),e.type===bt&&(h.each(Ig,function(C){C in e&&(f["$"+C]=e[C])}),c&&(f.$captured_for_heatmap=!0),p=kg(e)),a){var w=zc(p,e,i,t);w&&w.length&&(f.$el_text=w)}if(p){if(!Yo(p,e,i,t)||Ho(p,e,o,s))return null;var S=Bc(p,e,l,u,i,t);f.$target=S,f.$el_classes=S.$classes,h.extend(f,h.strip_empty_properties({$el_id:S.$id,$el_tag_name:S.$tag_name}))}}}return f}function zc(e,n,i,t){var r="";return Ko(e,n,i,t)&&e.childNodes&&e.childNodes.length&&h.each(e.childNodes,function(o){qc(o)&&o.textContent&&(r+=h.trim(o.textContent).split(/(\s+)/).filter(Yn).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function kg(e){for(var n=e.target,i=e.composedPath(),t=0;t<i.length;t++){var r=i[t];if(We(r,"a")||We(r,"button")||We(r,"input")||We(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function Yo(e,n,i,t){if(i)try{if(!i(e,n))return!1}catch(s){return Se.critical("Error while checking element in allowElementCallback",s),!1}if(!t.length)return!0;for(var r=0;r<t.length;r++){var o=t[r];try{if(e.matches(o))return!0}catch(s){Se.critical("Error while checking selector: "+o,s)}}return!1}function Ho(e,n,i,t){var r;if(i)try{if(i(e,n))return!0}catch(a){return Se.critical("Error while checking element in blockElementCallback",a),!0}if(t&&t.length)for(r=0;r<t.length;r++){var o=t[r];try{if(e.matches(o))return!0}catch(a){Se.critical("Error while checking selector: "+o,a)}}var s=Vo(e);for(r=0;r<jo.length;r++)if(s[jo[r]])return!0;return!1}function Wc(e){return e&&e.nodeType===1}function We(e,n){return e&&e.tagName&&e.tagName.toLowerCase()===n.toLowerCase()}function qc(e){return e&&e.nodeType===3}function Rg(){try{var e=V.createElement("div");return!!e.matches}catch(n){return!1}}function Ag(e,n){if(!e||We(e,"html")||!Wc(e))return!1;var i=e.tagName.toLowerCase();switch(i){case"form":return n.type===Go;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?n.type===Vn:n.type===bt;case"select":case"textarea":return n.type===Vn;default:return n.type===bt}}function Ko(e,n,i,t){var r;if(!Yo(e,n,i,t))return!1;for(var o=e;o.parentNode&&!We(o,"body");o=o.parentNode){var s=Vo(o);for(r=0;r<Fc.length;r++)if(s[Fc[r]])return!1}var a=Vo(e);for(r=0;r<Dc.length;r++)if(a[Dc[r]])return!0;if(We(e,"input")||We(e,"select")||We(e,"textarea")||e.getAttribute("contenteditable")==="true")return!1;var u=e.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}var c=e.name||e.id||"";if(typeof c=="string"){var l=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(l.test(c.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function Yn(e){if(e===null||h.isUndefined(e))return!1;if(typeof e=="string"){e=h.trim(e);var n=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(n.test((e||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(e))return!1}return!0}var Mg=30,Tg=1e3,Pg=4;function Gc(){this.clicks=[]}Gc.prototype.isRageClick=function(e,n,i){i=i||{};var t=i.threshold_px||Mg,r=i.timeout_ms||Tg,o=i.click_count||Pg,s=Date.now(),a=this.clicks[this.clicks.length-1];if(a&&s-a.timestamp<r&&Math.sqrt(Math.pow(e-a.x,2)+Math.pow(n-a.y,2))<t){if(this.clicks.push({x:e,y:n,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:n,timestamp:s}];return!1};var jc="autocapture",Ng="track_pageview",Vc="full-url",$g="url-with-path-and-query-string",Lg="url-with-path",Dg="allow_element_callback",Yc="allow_selectors",Hc="allow_url_regexes",Kc="block_attrs",Jc="block_element_callback",Xc="block_selectors",Zc="block_url_regexes",Qc="capture_extra_attrs",el="capture_text_content",tl="scroll_capture_all",rl="scroll_depth_percent_checkpoints",Hn="click",Jo="input",nl="pageview",il="rage_click",Xo="scroll",Zo="submit",de={};de[Yc]=[],de[Hc]=[],de[Kc]=[],de[Jc]=null,de[Xc]=[],de[Zc]=[],de[Qc]=[],de[el]=!1,de[tl]=!1,de[rl]=[25,50,75,100],de[Hn]=!0,de[Jo]=!0,de[nl]=Vc,de[il]=!0,de[Xo]=!0,de[Zo]=!0;var Kn={$mp_autocapture:!0},ol="$mp_click",Fg="$mp_input_change",sl="$mp_rage_click",Ug="$mp_scroll",Bg="$mp_submit",Ce=function(e){this.mp=e};Ce.prototype.init=function(){if(!Rg()){Se.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageviewTracking(),this.initClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking()},Ce.prototype.getFullConfig=function(){var e=this.mp.get_config(jc);return e?h.isObject(e)?h.extend({},de,e):de:{}},Ce.prototype.getConfig=function(e){return this.getFullConfig()[e]},Ce.prototype.currentUrlBlocked=function(){var e,n=h.info.currentUrl(),i=this.getConfig(Hc)||[];if(i.length){var t=!1;for(e=0;e<i.length;e++){var r=i[e];try{if(n.match(r)){t=!0;break}}catch(s){return Se.critical("Error while checking block URL regex: "+r,s),!0}}if(!t)return!0}var o=this.getConfig(Zc)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(n.match(o[e]))return!0}catch(s){return Se.critical("Error while checking block URL regex: "+o[e],s),!0}return!1},Ce.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(jc)?this.getConfig(nl):this.mp.get_config(Ng)},Ce.prototype.trackDomEvent=function(e,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===ol&&!this.getConfig(Hn)||n===sl&&!this._getRageClickConfig()),t=Og(e,{allowElementCallback:this.getConfig(Dg),allowSelectors:this.getConfig(Yc),blockAttrs:this.getConfig(Kc),blockElementCallback:this.getConfig(Jc),blockSelectors:this.getConfig(Xc),captureExtraAttrs:this.getConfig(Qc),captureTextContent:this.getConfig(el),capturedForHeatMap:i});t&&(h.extend(t,Kn),this.mp.track(n,t))}},Ce.prototype._getRageClickConfig=function(){var e=this.getConfig(il);return e?e===!0?{}:typeof e=="object"?e:{}:null},Ce.prototype.initClickTracking=function(){E.removeEventListener(bt,this.listenerClick),!(!this.getConfig(Hn)&&!this.mp.get_config("record_heatmap_data"))&&(Se.log("Initializing click tracking"),this.listenerClick=E.addEventListener(bt,function(e){!this.getConfig(Hn)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,ol)}.bind(this)))},Ce.prototype.initInputTracking=function(){E.removeEventListener(Vn,this.listenerChange),this.getConfig(Jo)&&(Se.log("Initializing input tracking"),this.listenerChange=E.addEventListener(Vn,function(e){this.getConfig(Jo)&&this.trackDomEvent(e,Fg)}.bind(this)))},Ce.prototype.initPageviewTracking=function(){if(E.removeEventListener($c,this.listenerPopstate),E.removeEventListener(Nc,this.listenerHashchange),E.removeEventListener(Jt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){Se.log("Initializing pageview tracking");var e="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(Kn)),n&&(e=h.info.currentUrl()),this.listenerPopstate=E.addEventListener($c,function(){E.dispatchEvent(new Event(Jt))}),this.listenerHashchange=E.addEventListener(Nc,function(){E.dispatchEvent(new Event(Jt))});var i=E.history.pushState;typeof i=="function"&&(E.history.pushState=function(r,o,s){i.call(E.history,r,o,s),E.dispatchEvent(new Event(Jt))});var t=E.history.replaceState;typeof t=="function"&&(E.history.replaceState=function(r,o,s){t.call(E.history,r,o,s),E.dispatchEvent(new Event(Jt))}),this.listenerLocationchange=E.addEventListener(Jt,$o(function(){if(!this.currentUrlBlocked()){var r=h.info.currentUrl(),o=!1,s=r.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],a=this.pageviewTrackingConfig();if(a===Vc?o=r!==e:a===$g?o=r.split("#")[0]!==e.split("#")[0]:a===Lg&&(o=s),o){var u=this.mp.track_pageview(Kn);u&&(e=r),s&&(this.lastScrollCheckpoint=0,Se.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)))}},Ce.prototype.initRageClickTracking=function(){E.removeEventListener(bt,this.listenerRageClick);var e=this._getRageClickConfig();!e&&!this.mp.get_config("record_heatmap_data")||(Se.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Gc),this.listenerRageClick=function(n){var i=this._getRageClickConfig();!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n.pageX,n.pageY,i)&&this.trackDomEvent(n,sl)}.bind(this),E.addEventListener(bt,this.listenerRageClick))},Ce.prototype.initScrollTracking=function(){E.removeEventListener(Lc,this.listenerScroll),this.getConfig(Xo)&&(Se.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0,this.listenerScroll=E.addEventListener(Lc,$o(function(){if(this.getConfig(Xo)&&!this.currentUrlBlocked()){var e=this.getConfig(tl),n=(this.getConfig(rl)||[]).slice().sort(function(u,c){return u-c}),i=E.scrollY,t=h.extend({$scroll_top:i},Kn);try{var r=V.body.scrollHeight,o=Math.round(i/(r-E.innerHeight)*100);if(t.$scroll_height=r,t.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<n.length;s++){var a=n[s];o>=a&&this.lastScrollCheckpoint<a&&(t.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(u){Se.critical("Error while calculating scroll percentage",u)}e&&this.mp.track(Ug,t)}}.bind(this))))},Ce.prototype.initSubmitTracking=function(){E.removeEventListener(Go,this.listenerSubmit),this.getConfig(Zo)&&(Se.log("Initializing submit tracking"),this.listenerSubmit=E.addEventListener(Go,function(e){this.getConfig(Zo)&&this.trackDomEvent(e,Bg)}.bind(this)))},bc(Ce);var zg=E.fetch,Ie=_t("flags"),Jn="flags",Xn="context",Qo={};Qo[Xn]={};var B=function(e){this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};B.prototype.init=function(){if(!Wg()){Ie.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},B.prototype.getFullConfig=function(){var e=this.getMpConfig(Jn);return e?h.isObject(e)?h.extend({},Qo,e):Qo:{}},B.prototype.getConfig=function(e){return this.getFullConfig()[e]},B.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Jn)},B.prototype.updateContext=function(e,n){if(!this.isSystemEnabled())return Ie.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(Jn);h.isObject(i)||(i={});var t=n&&n.replace?{}:this.getConfig(Xn);return i[Xn]=h.extend({},t,e),this.setMpConfig(Jn,i),this.fetchFlags()},B.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ie.error("Feature Flags not enabled"),!!this.flags},B.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id");Ie.log("Fetching flags for distinct ID: "+e);var i={context:h.extend({distinct_id:e,device_id:n},this.getConfig(Xn))};return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=E.fetch(this.getFullApiRoute(),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),"Content-Type":"application/octet-stream"},body:JSON.stringify(i)}).then(function(t){return this.markFetchComplete(),t.json().then(function(r){var o=r.flags;if(!o)throw new Error("No flags in API response");var s=new Map;h.each(o,function(a,u){s.set(u,{key:a.variant_key,value:a.variant_value})}),this.flags=s}.bind(this)).catch(function(r){this.markFetchComplete(),Ie.error(r)}.bind(this))}.bind(this)).catch(function(t){this.markFetchComplete(),Ie.error(t)}.bind(this)),this.fetchPromise},B.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){Ie.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},B.prototype.getVariant=function(e,n){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,n)}.bind(this)).catch(function(i){return Ie.error(i),n}):new Promise(function(i){Ie.critical("Feature Flags not initialized"),i(n)})},B.prototype.getVariantSync=function(e,n){if(!this.areFlagsReady())return Ie.log("Flags not loaded yet"),n;var i=this.flags.get(e);return i?(this.trackFeatureCheck(e,i),i):(Ie.log('No flag found: "'+e+'"'),n)},B.prototype.getVariantValue=function(e,n){return this.getVariant(e,{value:n}).then(function(i){return i.value}).catch(function(i){return Ie.error(i),n})},B.prototype.getFeatureData=function(e,n){return Ie.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,n)},B.prototype.getVariantValueSync=function(e,n){return this.getVariantSync(e,{value:n}).value},B.prototype.isEnabled=function(e,n){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,n)}.bind(this)).catch(function(i){return Ie.error(i),n})},B.prototype.isEnabledSync=function(e,n){n=n||!1;var i=this.getVariantValueSync(e,n);return i!==!0&&i!==!1&&(Ie.error('Feature flag "'+e+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i},B.prototype.trackFeatureCheck=function(e,n){this.trackedFeatures.has(e)||(this.trackedFeatures.add(e),this.track("$experiment_started",{"Experiment name":e,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency}))};function Wg(){return!!zg&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"}bc(B),B.prototype.are_flags_ready=B.prototype.areFlagsReady,B.prototype.get_variant=B.prototype.getVariant,B.prototype.get_variant_sync=B.prototype.getVariantSync,B.prototype.get_variant_value=B.prototype.getVariantValue,B.prototype.get_variant_value_sync=B.prototype.getVariantValueSync,B.prototype.is_enabled=B.prototype.isEnabled,B.prototype.is_enabled_sync=B.prototype.isEnabledSync,B.prototype.update_context=B.prototype.updateContext,B.prototype.get_feature_data=B.prototype.getFeatureData;var Je=function(){};Je.prototype.create_properties=function(){},Je.prototype.event_handler=function(){},Je.prototype.after_track_handler=function(){},Je.prototype.init=function(e){return this.mp=e,this},Je.prototype.track=function(e,n,i,t){var r=this,o=h.dom_query(e);if(o.length===0){W.error("The DOM query ("+e+") returned 0 elements");return}return h.each(o,function(s){h.register_event(s,this.override_event,function(a){var u={},c=r.create_properties(i,this),l=r.mp.get_config("track_links_timeout");r.event_handler(a,this,u),window.setTimeout(r.track_callback(t,c,u,!0),l),r.mp.track(n,c,r.track_callback(t,c,u))})},this),!0},Je.prototype.track_callback=function(e,n,i,t){t=t||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(e&&e(t,n)===!1)&&r.after_track_handler(n,i,t))}},Je.prototype.create_properties=function(e,n){var i;return typeof e=="function"?i=e(n):i=h.extend({},e),i};var Xt=function(){this.override_event="click"};h.inherit(Xt,Je),Xt.prototype.create_properties=function(e,n){var i=Xt.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},Xt.prototype.event_handler=function(e,n,i){i.new_tab=e.which===2||e.metaKey||e.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||e.preventDefault()},Xt.prototype.after_track_handler=function(e,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var Zn=function(){this.override_event="submit"};h.inherit(Zn,Je),Zn.prototype.event_handler=function(e,n,i){i.element=n,e.preventDefault()},Zn.prototype.after_track_handler=function(e,n){setTimeout(function(){n.element.submit()},0)};var ht="$set",Zt="$set_once",De="$unset",wt="$add",qe="$append",St="$union",Xe="$remove",qg="$delete",al={set_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[ht]=t,i},unset_action:function(e){var n={},i=[];return h.isArray(e)||(e=[e]),h.each(e,function(t){this._is_reserved_property(t)||i.push(t)},this),n[De]=i,n},set_once_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[Zt]=t,i},union_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=h.isArray(r)?r:[r])},this):t[e]=h.isArray(n)?n:[n],i[St]=t,i},append_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[qe]=t,i},remove_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[Xe]=t,i},delete_action:function(){var e={};return e[qg]="",e}},ne=function(){};h.extend(ne.prototype,al),ne.prototype._init=function(e,n,i){this._mixpanel=e,this._group_key=n,this._group_id=i},ne.prototype.set=Yt(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),ne.prototype.set_once=Yt(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),ne.prototype.unset=Yt(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),ne.prototype.union=Yt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),ne.prototype.delete=Yt(function(e){var n=this.delete_action();return this._send_request(n,e)}),ne.prototype.remove=Yt(function(e,n,i){var t=this.remove_action(e,n);return this._send_request(t,i)}),ne.prototype._send_request=function(e,n){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var i=h.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},ne.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"},ne.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ne.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ne.prototype.remove=ne.prototype.remove,ne.prototype.set=ne.prototype.set,ne.prototype.set_once=ne.prototype.set_once,ne.prototype.union=ne.prototype.union,ne.prototype.unset=ne.prototype.unset,ne.prototype.toString=ne.prototype.toString;var N=function(){};h.extend(N.prototype,al),N.prototype._init=function(e){this._mixpanel=e},N.prototype.set=ft(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),t[ht]=h.extend({},h.info.people_properties(),t[ht]),this._send_request(t,i)}),N.prototype.set_once=ft(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),N.prototype.unset=ft(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),N.prototype.increment=ft(function(e,n,i){var t={},r={};return h.isObject(e)?(h.each(e,function(o,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(o))){W.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[s]=o},this),i=n):(h.isUndefined(n)&&(n=1),r[e]=n),t[wt]=r,this._send_request(t,i)}),N.prototype.append=ft(function(e,n,i){h.isObject(e)&&(i=n);var t=this.append_action(e,n);return this._send_request(t,i)}),N.prototype.remove=ft(function(e,n,i){h.isObject(e)&&(i=n);var t=this.remove_action(e,n);return this._send_request(t,i)}),N.prototype.union=ft(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),N.prototype.track_charge=ft(function(){W.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),N.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},N.prototype.delete_user=function(){if(!this._identify_called()){W.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)},N.prototype.toString=function(){return this._mixpanel.toString()+".people"},N.prototype._send_request=function(e,n){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),t=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(e.$device_id=i),t&&(e.$user_id=t),r&&(e.$had_persisted_distinct_id=r);var o=h.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},n):(this._enqueue(e),h.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),h.truncate(o,255))},N.prototype._get_config=function(e){return this._mixpanel.get_config(e)},N.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},N.prototype._enqueue=function(e){ht in e?this._mixpanel.persistence._add_to_people_queue(ht,e):Zt in e?this._mixpanel.persistence._add_to_people_queue(Zt,e):De in e?this._mixpanel.persistence._add_to_people_queue(De,e):wt in e?this._mixpanel.persistence._add_to_people_queue(wt,e):qe in e?this._mixpanel.persistence._add_to_people_queue(qe,e):Xe in e?this._mixpanel.persistence._add_to_people_queue(Xe,e):St in e?this._mixpanel.persistence._add_to_people_queue(St,e):W.error("Invalid call to _enqueue():",e)},N.prototype._flush_one_queue=function(e,n,i,t){var r=this,o=h.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!h.isUndefined(o)&&h.isObject(o)&&!h.isEmptyObject(o)&&(r._mixpanel.persistence._pop_from_people_queue(e,o),r._mixpanel.persistence.save(),t&&(s=t(o)),n.call(r,s,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(e,o),h.isUndefined(i)||i(a,u)}))},N.prototype._flush=function(e,n,i,t,r,o,s){var a=this;this._flush_one_queue(ht,this.set,e),this._flush_one_queue(Zt,this.set_once,t),this._flush_one_queue(De,this.unset,o,function(d){return h.keys(d)}),this._flush_one_queue(wt,this.increment,n),this._flush_one_queue(St,this.union,r);var u=this._mixpanel.persistence.load_queue(qe);if(!h.isUndefined(u)&&h.isArray(u)&&u.length)for(var c,l=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(qe,c),h.isUndefined(i)||i(d,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(qe),c=u.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(Xe);if(!h.isUndefined(p)&&h.isArray(p)&&p.length)for(var g,v=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(Xe,g),h.isUndefined(s)||s(d,m)},y=p.length-1;y>=0;y--)p=this._mixpanel.persistence.load_queue(Xe),g=p.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(g)||a.remove(g,v)},N.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"},N.prototype.set=N.prototype.set,N.prototype.set_once=N.prototype.set_once,N.prototype.unset=N.prototype.unset,N.prototype.increment=N.prototype.increment,N.prototype.append=N.prototype.append,N.prototype.remove=N.prototype.remove,N.prototype.union=N.prototype.union,N.prototype.track_charge=N.prototype.track_charge,N.prototype.clear_charges=N.prototype.clear_charges,N.prototype.delete_user=N.prototype.delete_user,N.prototype.toString=N.prototype.toString;var es="__mps",ts="__mpso",rs="__mpus",ns="__mpa",is="__mpap",os="__mpr",ss="__mpu",ul="$people_distinct_id",Qn="__alias",Nr="__timers",Gg=[es,ts,rs,ns,is,os,ss,ul,Qn,Nr],L=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 n=e.persistence;n!=="cookie"&&n!=="localStorage"&&(W.critical("Unknown persistence type "+n+"; falling back to cookie"),n=e.persistence="cookie"),n==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};L.prototype.properties=function(){var e={};return this.load(),h.each(this.props,function(n,i){h.include(Gg,i)||(e[i]=n)}),e},L.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=h.extend({},e))}},L.prototype.upgrade=function(){var e,n;this.storage===h.localStorage?(e=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===h.cookie&&(n=h.localStorage.parse(this.name),h.localStorage.remove(this.name),n&&this.register_once(n))},L.prototype.save=function(){this.disabled||this.storage.set(this.name,Vt(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},L.prototype.load_prop=function(e){return this.load(),this.props[e]},L.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},L.prototype.clear=function(){this.remove(),this.props={}},L.prototype.register_once=function(e,n,i){return h.isObject(e)?(typeof n=="undefined"&&(n="None"),this.expire_days=typeof i=="undefined"?this.default_expiry:i,this.load(),h.each(e,function(t,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=t)},this),this.save(),!0):!1},L.prototype.register=function(e,n){return h.isObject(e)?(this.expire_days=typeof n=="undefined"?this.default_expiry:n,this.load(),h.extend(this.props,e),this.save(),!0):!1},L.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},L.prototype.update_search_keyword=function(e){this.register(h.info.searchInfo(e))},L.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:h.info.referringDomain(e)||"$direct"},"")},L.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},L.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)},L.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},L.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},L.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},L.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},L.prototype.get_cross_subdomain=function(){return this.cross_subdomain},L.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},L.prototype._add_to_people_queue=function(e,n){var i=this._get_queue_key(e),t=n[e],r=this._get_or_create_queue(ht),o=this._get_or_create_queue(Zt),s=this._get_or_create_queue(De),a=this._get_or_create_queue(wt),u=this._get_or_create_queue(St),c=this._get_or_create_queue(Xe,[]),l=this._get_or_create_queue(qe,[]);i===es?(h.extend(r,t),this._pop_from_people_queue(wt,t),this._pop_from_people_queue(St,t),this._pop_from_people_queue(De,t)):i===ts?(h.each(t,function(f,p){p in o||(o[p]=f)}),this._pop_from_people_queue(De,t)):i===rs?h.each(t,function(f){h.each([r,o,a,u],function(p){f in p&&delete p[f]}),h.each(l,function(p){f in p&&delete p[f]}),s[f]=!0}):i===ns?(h.each(t,function(f,p){p in r?r[p]+=f:(p in a||(a[p]=0),a[p]+=f)},this),this._pop_from_people_queue(De,t)):i===ss?(h.each(t,function(f,p){h.isArray(f)&&(p in u||(u[p]=[]),h.each(f,function(g){h.include(u[p],g)||u[p].push(g)}))}),this._pop_from_people_queue(De,t)):i===os?(c.push(t),this._pop_from_people_queue(qe,t)):i===is&&(l.push(t),this._pop_from_people_queue(De,t)),W.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),W.log(n),this.save()},L.prototype._pop_from_people_queue=function(e,n){var i=this.props[this._get_queue_key(e)];h.isUndefined(i)||h.each(n,function(t,r){e===qe||e===Xe?h.each(i,function(o){o[r]===t&&delete o[r]}):delete i[r]},this)},L.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},L.prototype._get_queue_key=function(e){if(e===ht)return es;if(e===Zt)return ts;if(e===De)return rs;if(e===wt)return ns;if(e===qe)return is;if(e===Xe)return os;if(e===St)return ss;W.error("Invalid queue:",e)},L.prototype._get_or_create_queue=function(e,n){var i=this._get_queue_key(e);return n=h.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)},L.prototype.set_event_timer=function(e,n){var i=this.load_prop(Nr)||{};i[e]=n,this.props[Nr]=i,this.save()},L.prototype.remove_event_timer=function(e){var n=this.load_prop(Nr)||{},i=n[e];return h.isUndefined(i)||(delete this.props[Nr][e],this.save()),i};var as,cl=function(e,n){throw new Error(e+" not available in this build.")},fe,jg=0,ll=1,Vg=function(e){return e},ke="mixpanel",fl="base64",Yg="json",us="$device:",Qt=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,hl=!Qt&&He.indexOf("MSIE")===-1&&He.indexOf("Mozilla")===-1,ei=null;ut.sendBeacon&&(ei=function(){return ut.sendBeacon.apply(ut,arguments)});var pl={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},dl={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:pl,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:fl,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ct,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ct,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, audio",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!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:kr,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},vl=!1,b=function(){},ti=function(e,n,i){var t,r=i===ke?fe:fe[i];if(r&&as===jg)t=r;else{if(r&&!h.isArray(r)){W.error("You have already initialized "+i);return}t=new b}if(t._cached_groups={},t._init(e,n,i),t.people=new N,t.people._init(t),!t.get_config("skip_first_touch_marketing")){var o=h.info.campaignParams(null),s={},a=!1;h.each(o,function(u,c){s["initial_"+c]=u,u&&(a=!0)}),a&&t.people.set_once(s)}return Le.DEBUG=Le.DEBUG||t.get_config("debug"),!h.isUndefined(r)&&h.isArray(r)&&(t._execute_array.call(t.people,r.people),t._execute_array(r)),t};b.prototype.init=function(e,n,i){if(h.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===ke){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var t=ti(e,n,i);return fe[i]=t,t._loaded(),t},b.prototype._init=function(e,n,i){n=n||{},this.__loaded=!0,this.config={};var t={};if(!("api_payload_format"in n)){var r=n.api_host||dl.api_host;r.match(/\.mixpanel\.com/)&&(t.api_payload_format=Yg)}if(this.set_config(h.extend({},dl,t,n,{name:i,token:e,callback_fn:(i===ke?i:ke+"."+i)+"._jsc"})),this._jsc=ct,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(!h.localStorage.is_supported(!0)||!Qt)this._batch_requests=!1,W.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(a){W.log("Clearing batch queue "+a.queue_key),h.localStorage.remove(a.queue_key)});else if(this.init_batchers(),ei&&E.addEventListener){var o=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);E.addEventListener("pagehide",function(a){a.persisted&&o()}),E.addEventListener("visibilitychange",function(){V.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new L(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:us+s,$device_id:s},""),this.flags=new B({getFullApiRoute:h.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getPropertyFunc:h.bind(this.get_property,this),trackingFunc:h.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Ce(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},b.prototype._init_tab_id=function(){if(h.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+e,i="mp_gen_new_tab_id_"+e;(h.sessionStorage.get(i)||!h.sessionStorage.get(n))&&h.sessionStorage.set(n,"$tab-"+h.UUID()),h.sessionStorage.set(i,"1"),this.tab_id=h.sessionStorage.get(n),E.addEventListener("beforeunload",function(){h.sessionStorage.remove(i)})}catch(t){this.report_error("Error initializing tab id",t)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},b.prototype.get_tab_id=function(){return this.tab_id||null},b.prototype._should_load_recorder=function(){var e=new Be(Uo),n=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(i){for(var t=0;t<i.length;t++)if(qo(i[t])||i[t].tabId===n)return!0;return!1}).catch(h.bind(function(i){this.report_error("Error checking recording registry",i)},this))},b.prototype._check_and_start_session_recording=lt(function(e){if(!E.MutationObserver){W.critical("Browser does not support MutationObserver; skipping session recording");return}var n=h.bind(function(t){var r=h.bind(function(){this._recorder=this._recorder||new E.__mp_recorder(this),this._recorder.resumeRecording(t)},this);h.isUndefined(E.__mp_recorder)?cl(this.get_config("recorder_src"),r):r()},this),i=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");e||i?n(!0):this._should_load_recorder().then(function(t){t&&n(!1)})}),b.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},b.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},b.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},b.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},b.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},b.prototype.get_session_recording_properties=function(){var e={},n=this._get_session_replay_id();return n&&(e.$mp_replay_id=n),e},b.prototype.get_session_replay_url=function(){var e=null,n=this._get_session_replay_id();if(n){var i=h.HTTPBuildQuery({replay_id:n,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+i}return e},b.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},b.prototype.__get_recorder=function(){return this._recorder},b.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=h.info.campaignParams(null);h.each(e,function(n,i){this.unregister(i)}.bind(this))}},b.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(V.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(h.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(V.referrer)},b.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},b.prototype._track_dom=function(e,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!vl)return this.__dom_loaded_queue.push([e,n]),!1;var i=new e().init(this);return i.track.apply(i,n)},b.prototype._prepare_callback=function(e,n){if(h.isUndefined(e))return null;if(Qt){var i=function(s){e(s,n)};return i}else{var t=this._jsc,r=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+r+"]";return t[r]=function(s){delete t[r],e(s,n)},o}},b.prototype._send_request=function(e,n,i,t){var r=!0;if(hl)return this.__request_queue.push(arguments),r;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!t&&(h.isFunction(i)||typeof i=="string")&&(t=i,i=null),i=h.extend(o,i||{}),Qt||(i.method="GET");var a=i.method==="POST",u=ei&&a&&i.transport.toLowerCase()==="sendbeacon",c=i.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),Qt||(t?n.callback=t:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(n.data),delete n.data),h.extend(n,this.get_config("api_extra_query_params")),e+="?"+h.HTTPBuildQuery(n);var l=this;if("img"in n){var f=V.createElement("img");f.src=e,V.body.appendChild(f)}else if(u){try{r=ei(e,s)}catch(m){l.report_error(m),r=!1}try{t&&t(r?1:0)}catch(m){l.report_error(m)}}else if(Qt)try{var p=new XMLHttpRequest;p.open(i.method,e,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),h.each(g,function(m,_){p.setRequestHeader(_,m)}),i.timeout_ms&&typeof p.timeout!="undefined"){p.timeout=i.timeout_ms;var v=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){if(t)if(c){var m;try{m=h.JSONDecode(p.responseText)}catch(S){if(l.report_error(S),i.ignore_json_errors)m=p.responseText;else return}t(m)}else t(Number(p.responseText))}else{var _;if(p.timeout&&!p.status&&new Date().getTime()-v>=p.timeout?_="timeout":_="Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(_),t)if(c){var w=p.responseHeaders||{};t({status:0,httpStatusCode:p.status,error:_,retryAfter:w["Retry-After"]})}else t(0)}},p.send(s)}catch(m){l.report_error(m),r=!1}else{var y=V.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=e;var d=V.getElementsByTagName("script")[0];d.parentNode.insertBefore(y,d)}return r},b.prototype._execute_array=function(e){var n,i=[],t=[],r=[];h.each(e,function(s){s&&(n=s[0],h.isArray(n)?r.push(s):typeof s=="function"?s.call(this):h.isArray(s)&&n==="alias"?i.push(s):h.isArray(s)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(s):t.push(s))},this);var o=function(s,a){h.each(s,function(u){if(h.isArray(u[0])){var c=a;h.each(u,function(l){c=c[l[0]].apply(c,l.slice(1))})}else this[u[0]].apply(this,u.slice(1))},a)};o(i,this),o(t,this),o(r,this)},b.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},b.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},b.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=h.bind(function(i){return new Pe(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(t,r,o){var s=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+s[i.api_name],this._encode_data_for_request(t),r,this._prepare_callback(o,t))},this),beforeSendHook:h.bind(function(t){return this._run_hook("before_send_"+i.type,t)},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:e(n.events),people:e(n.people),groups:e(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},b.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(e){e.start()}))},b.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(e){e.stop(),e.clear()})},b.prototype.push=function(e){this._execute_array([e])},b.prototype.disable=function(e){typeof e=="undefined"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},b.prototype._encode_data_for_request=function(e){var n=Vt(e);return this.get_config("api_payload_format")===fl&&(n=h.base64Encode(n)),{data:n}},b.prototype._track_or_batch=function(e,n){var i=h.truncate(e.data,255),t=e.endpoint,r=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};n=n||ct;var a=!0,u=h.bind(function(){return s.skip_hooks||(i=this._run_hook("before_send_"+e.type,i)),i?(W.log("MIXPANEL REQUEST:"),W.log(i),this._send_request(t,this._encode_data_for_request(i),s,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!o?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i},b.prototype.track=lt(function(e,n,i,t){!t&&typeof i=="function"&&(t=i,i=null),i=i||{};var r=i.transport;r&&(i.transport=r);var o=i.send_immediately;if(typeof t!="function"&&(t=ct),h.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){t(0);return}n=h.extend({},n),n.token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!h.isUndefined(s)){var a=new Date().getTime()-s;n.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?h.info.marketingParams():{};n=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var c=this.get_config("property_blacklist");h.isArray(c)?h.each(c,function(p){delete n[p]}):this.report_error("Invalid value for property_blacklist config: "+c);var l={event:e,properties:n},f=this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:i},t);return f}),b.prototype.set_group=lt(function(e,n,i){h.isArray(n)||(n=[n]);var t={};return t[e]=n,this.register(t),this.people.set(e,n,i)}),b.prototype.add_group=lt(function(e,n,i){var t=this.get_property(e),r={};return t===void 0?(r[e]=[n],this.register(r)):t.indexOf(n)===-1&&(t.push(n),r[e]=t,this.register(r)),this.people.union(e,n,i)}),b.prototype.remove_group=lt(function(e,n,i){var t=this.get_property(e);if(t!==void 0){var r=t.indexOf(n);r>-1&&(t.splice(r,1),this.register({group_key:t})),t.length===0&&this.unregister(e)}return this.people.remove(e,n,i)}),b.prototype.track_with_groups=lt(function(e,n,i,t){var r=h.extend({},n||{});return h.each(i,function(o,s){o!=null&&(r[s]=o)}),this.track(e,r,t)}),b.prototype._create_map_key=function(e,n){return e+"_"+JSON.stringify(n)},b.prototype._remove_group_from_cache=function(e,n){delete this._cached_groups[this._create_map_key(e,n)]},b.prototype.get_group=function(e,n){var i=this._create_map_key(e,n),t=this._cached_groups[i];return(t===void 0||t._group_key!==e||t._group_id!==n)&&(t=new ne,t._init(this,e,n),this._cached_groups[i]=t),t},b.prototype.track_pageview=lt(function(e,n){typeof e!="object"&&(e={}),n=n||{};var i=n.event_name||"$mp_web_page_view",t=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),r=h.extend({},t,e);return this.track(i,r)}),b.prototype.track_links=function(){return this._track_dom.call(this,Xt,arguments)},b.prototype.track_forms=function(){return this._track_dom.call(this,Zn,arguments)},b.prototype.time_event=function(e){if(h.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 Hg={persistent:!0},cs=function(e){var n;return h.isObject(e)?n=e:h.isUndefined(e)?n={}:n={days:e},h.extend({},Hg,n)};b.prototype.register=function(e,n){var i=cs(n);i.persistent?this.persistence.register(e,i.days):h.extend(this.unpersisted_superprops,e)},b.prototype.register_once=function(e,n,i){var t=cs(i);t.persistent?this.persistence.register_once(e,n,t.days):(typeof n=="undefined"&&(n="None"),h.each(e,function(r,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===n)&&(this.unpersisted_superprops[o]=r)},this))},b.prototype.unregister=function(e,n){n=cs(n),n.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},b.prototype._register_single=function(e,n){var i={};i[e]=n,this.register(i)},b.prototype.identify=function(e,n,i,t,r,o,s,a){var u=this.get_distinct_id();if(e&&u!==e){if(typeof e=="string"&&e.indexOf(us)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==u&&e!==this.get_property(Qn)&&(this.unregister(Qn),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(n,i,t,r,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},b.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=h.UUID();this.register_once({distinct_id:us+e,$device_id:e},""),this._check_and_start_session_recording()},b.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},b.prototype.alias=function(e,n){if(e===this.get_property(ul))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var i=this;return h.isUndefined(n)&&(n=this.get_distinct_id()),e!==n?(this._register_single(Qn,e),this.track("$create_alias",{alias:e,distinct_id:n},{skip_hooks:!0},function(){i.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},b.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},b.prototype.set_config=function(e){if(h.isObject(e)){h.extend(this.config,e);var n=e.batch_size;n&&h.each(this.request_batchers,function(i){i.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"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init()}},b.prototype.get_config=function(e){return this.config[e]},b.prototype._run_hook=function(e){var n=(this.config.hooks[e]||Vg).apply(this,at.call(arguments,1));return typeof n=="undefined"&&(this.report_error(e+" hook did not return a value"),n=null),n},b.prototype.get_property=function(e){return this.persistence.load_prop([e])},b.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},b.prototype.toString=function(){var e=this.get_config("name");return e!==ke&&(e=ke+"."+e),e},b.prototype._event_is_disabled=function(e){return h.isBlockedUA(He)||this._flags.disable_all_events||h.include(this.__disabled_events,e)},b.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&h.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")||h.cookie.get("mp_optout"))&&(h.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},b.prototype._gdpr_update_persistence=function(e){var n;if(e&&e.clear_persistence)n=!0;else if(e&&e.enable_persistence)n=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==n&&this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},b.prototype._gdpr_call_func=function(e,n){return n=h.extend({track:h.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")},n),h.localStorage.is_supported()||(n.persistence_type="cookie"),e(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.ignore_dnt})},b.prototype.opt_in_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(pg,e),this._gdpr_update_persistence(e)},b.prototype.opt_out_tracking=function(e){e=h.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(dg,e),this._gdpr_update_persistence(e)},b.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(vg,e)},b.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(xc,e)},b.prototype.clear_opt_in_out_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(gg,e),this._gdpr_update_persistence(e)},b.prototype.report_error=function(e,n){W.error.apply(W.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,n)}catch(i){W.error(i)}},b.prototype.init=b.prototype.init,b.prototype.reset=b.prototype.reset,b.prototype.disable=b.prototype.disable,b.prototype.time_event=b.prototype.time_event,b.prototype.track=b.prototype.track,b.prototype.track_links=b.prototype.track_links,b.prototype.track_forms=b.prototype.track_forms,b.prototype.track_pageview=b.prototype.track_pageview,b.prototype.register=b.prototype.register,b.prototype.register_once=b.prototype.register_once,b.prototype.unregister=b.prototype.unregister,b.prototype.identify=b.prototype.identify,b.prototype.alias=b.prototype.alias,b.prototype.name_tag=b.prototype.name_tag,b.prototype.set_config=b.prototype.set_config,b.prototype.get_config=b.prototype.get_config,b.prototype.get_api_host=b.prototype.get_api_host,b.prototype.get_property=b.prototype.get_property,b.prototype.get_distinct_id=b.prototype.get_distinct_id,b.prototype.toString=b.prototype.toString,b.prototype.opt_out_tracking=b.prototype.opt_out_tracking,b.prototype.opt_in_tracking=b.prototype.opt_in_tracking,b.prototype.has_opted_out_tracking=b.prototype.has_opted_out_tracking,b.prototype.has_opted_in_tracking=b.prototype.has_opted_in_tracking,b.prototype.clear_opt_in_out_tracking=b.prototype.clear_opt_in_out_tracking,b.prototype.get_group=b.prototype.get_group,b.prototype.set_group=b.prototype.set_group,b.prototype.add_group=b.prototype.add_group,b.prototype.remove_group=b.prototype.remove_group,b.prototype.track_with_groups=b.prototype.track_with_groups,b.prototype.start_batch_senders=b.prototype.start_batch_senders,b.prototype.stop_batch_senders=b.prototype.stop_batch_senders,b.prototype.start_session_recording=b.prototype.start_session_recording,b.prototype.stop_session_recording=b.prototype.stop_session_recording,b.prototype.pause_session_recording=b.prototype.pause_session_recording,b.prototype.resume_session_recording=b.prototype.resume_session_recording,b.prototype.get_session_recording_properties=b.prototype.get_session_recording_properties,b.prototype.get_session_replay_url=b.prototype.get_session_replay_url,b.prototype.get_tab_id=b.prototype.get_tab_id,b.prototype.DEFAULT_API_ROUTES=pl,b.prototype.__get_recorder=b.prototype.__get_recorder,L.prototype.properties=L.prototype.properties,L.prototype.update_search_keyword=L.prototype.update_search_keyword,L.prototype.update_referrer_info=L.prototype.update_referrer_info,L.prototype.get_cross_subdomain=L.prototype.get_cross_subdomain,L.prototype.clear=L.prototype.clear;var pt={},Kg=function(){h.each(pt,function(e,n){n!==ke&&(fe[n]=e)}),fe._=h},Jg=function(){fe.init=function(e,n,i){if(i)return fe[i]||(fe[i]=pt[i]=ti(e,n,i),fe[i]._loaded()),fe[i];var t=fe;pt[ke]?t=pt[ke]:e&&(t=ti(e,n,ke),t._loaded(),pt[ke]=t),fe=t,as===ll&&(E[ke]=fe),Kg()}},Xg=function(){function e(){e.done||(e.done=!0,vl=!0,hl=!1,h.each(pt,function(t){t._dom_loaded()}))}function n(){try{V.documentElement.doScroll("left")}catch(t){setTimeout(n,1);return}e()}if(V.addEventListener)V.readyState==="complete"?e():V.addEventListener("DOMContentLoaded",e,!1);else if(V.attachEvent){V.attachEvent("onreadystatechange",e);var i=!1;try{i=E.frameElement===null}catch(t){}V.documentElement.doScroll&&i&&n()}h.register_event(E,"load",e,!0)};function Zg(e){if(cl=e,as=ll,fe=E[ke],h.isUndefined(fe)){W.critical('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.');return}if(fe.__loaded||fe.config&&fe.persistence){W.critical("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors.");return}var n=fe.__SV||0;if(n<1.1){W.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}h.each(fe._i,function(i){i&&h.isArray(i)&&(pt[i[i.length-1]]=ti.apply(this,i))}),Jg(),fe.init(),h.each(pt,function(i){i._loaded()}),Xg()}function Qg(e,n){n()}Zg(Qg)})();