mixpanel-browser 2.68.0 → 2.69.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.
- package/dist/mixpanel-core.cjs.js +18 -3
- package/dist/mixpanel-recorder.js +186 -47
- package/dist/mixpanel-recorder.min.js +1 -1
- package/dist/mixpanel-recorder.min.js.map +1 -1
- package/dist/mixpanel-with-async-recorder.cjs.js +18 -3
- package/dist/mixpanel-with-recorder.js +194 -48
- package/dist/mixpanel-with-recorder.min.js +1 -1
- package/dist/mixpanel.amd.js +194 -48
- package/dist/mixpanel.cjs.js +194 -48
- package/dist/mixpanel.globals.js +18 -3
- package/dist/mixpanel.min.js +68 -68
- package/dist/mixpanel.module.js +194 -48
- package/dist/mixpanel.umd.js +194 -48
- package/dist/rrweb-compiled.js +190 -59
- package/package.json +14 -2
- package/rollup.config.mjs +2 -2
- package/src/config.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/mixpanel-core.js +8 -1
- package/src/recorder/recorder.js +1 -1
- package/src/recorder/recording-registry.js +37 -2
- package/src/recorder/session-recording.js +2 -3
- package/src/request-queue.js +1 -1
- package/src/storage/indexed-db.js +4 -0
- package/src/storage/local-storage.js +4 -0
- package/src/storage/wrapper.js +1 -0
|
@@ -1 +1 @@
|
|
|
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)})();
|
|
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 ai(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&&sr(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 V(){return V=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},V.apply(this,arguments)}function ui(e){return ui=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},ui(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&&sr(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 or(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 sr(e,n){return sr=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},sr(e,n)}function U(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,ui(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),sr(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 ar(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":U(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":U(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 ci(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 li={};function et(e,n,i){var t,r=e+"."+String(i);if(li[r])return li[r].call(n);var o=ci(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(li[r]=s,s.call(n)):n[i]}var fi={};function Ss(e,n,i){var t=e+"."+String(i);if(fi[t])return fi[t].bind(n);var r=ci(e),o=r[i];return typeof o!="function"?n[i]:(fi[t]=o,o.bind(n))}function Rl(e){return et("Node",e,"childNodes")}function Al(e){return et("Node",e,"parentNode")}function Ml(e){return et("Node",e,"parentElement")}function Tl(e){return et("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:et("ShadowRoot",e,"host")}function Ll(e){return e.styleSheets}function Dl(e){return!e||!("shadowRoot"in e)?null:et("Element",e,"shadowRoot")}function Fl(e,n){return et("Element",e,"querySelector")(n)}function Ul(e,n){return et("Element",e,"querySelectorAll")(n)}function Bl(){return ci("MutationObserver").constructor}function zl(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 _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,patch:zl};function Cs(e){return e.nodeType===e.ELEMENT_NODE}function ur(e){var n=e&&"host"in e&&"mode"in e&&_e.host(e)||null;return!!(n&&"shadowRoot"in n&&_e.shadowRoot(n)===e)}function cr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Wl(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 ql(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 hi(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 Wl(t)}catch(r){return null}}function Is(e,n){if(Vl(e)){var i;try{i=hi(e.styleSheet)||ql(e)}catch(r){i=e.cssText}return e.styleSheet.href?Gr(i,e.styleSheet.href):i}else{var t=e.cssText;return jl(e)&&e.selectorText.includes(":")&&(t=Gl(t)),n?Gr(t,n):t}}function Gl(e){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(n,"$1\\$2")}function Vl(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 Yl(){return new Es}function Wr(e){var n=e.element,i=e.maskInputOptions,t=e.tagName,r=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=r&>(r);return(i[t.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function gt(e){return e.toLowerCase()}var xs="__rrweb_original__";function Hl(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 qr(e){var n=e.type;return e.hasAttribute("data-rr-is-password")?"password":n?gt(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 Kl(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,Xl=/^(?:[a-z+]+:)?\/\//i,Zl=/^www\..*/i,Ql=/^(data:)([^,]*),(.*)/i;function Gr(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(Xl.test(u)||Zl.test(u)||Ql.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(Kl(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var p=x(f),g;!(g=p()).done;){var d=g.value;d!=="."&&(d===".."?l.pop():l.push(d))}return"url("+c+l.join("/")+c+")"})}function Vr(e,n){return n===void 0&&(n=!1),n?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ef(e,n,i){i===void 0&&(i=!1);var t=Array.from(n.childNodes),r=[],o=0;if(t.length>1&&e&&typeof e=="string"){for(var s=Vr(e,i),a=s.length/e.length,u=1;u<t.length;u++)if(t[u].textContent&&typeof t[u].textContent=="string"){for(var c=Vr(t[u].textContent,i),l=100,f=3;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,f),1)!==-1);f++);for(;f<c.length;f++){var p=c.substring(0,f),g=s.split(p),d=-1;if(g.length===2)d=g[0].length;else if(g.length>2&&g[0]===""&&t[u-1].textContent!=="")d=s.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=s.split(p),g.length<=1)return r.push(e),r;f=l+1}else f===c.length-1&&(d=s.indexOf(p));if(g.length>=2&&f>l){var y=t[u-1].textContent;if(y&&typeof y=="string"){var v=Vr(y).length;d=s.indexOf(p,v)}d===-1&&(d=g[0].length)}if(d!==-1){for(var m=Math.floor(d/a);m>0&&m<e.length;){if(o+=1,o>50*t.length)return r.push(e),r;var _=Vr(e.substring(0,m),i);if(_.length===d){r.push(e.substring(0,m)),e=e.substring(m),s=s.substring(d);break}else _.length<d?m+=Math.max(1,Math.floor((d-_.length)/a)):m-=Math.max(1,Math.floor((_.length-d)*a))}break}}}}return r.push(e),r}function tf(e,n){return ef(e,n).join("/* rr_split */")}var rf=1,nf=new RegExp("[^a-z0-9-_:]"),lr=-2;function ks(){return rf++}function of(e){if($(e,HTMLFormElement))return"form";var n=gt(e.tagName);return nf.test(n)?"div":n}var Nt,Rs,sf=/^[^ \t\n\r\u000c]+/,af=/^[, \t\n\r\u000c]+/;function uf(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(af),!(i>=n.length);){var o=t(sf);if(o.slice(-1)===",")o=$t(e,o.substring(0,o.length-1)),r.push(o);else{var s="";o=$t(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 $t(e,n){return!n||n.trim()===""?n:pi(e,n)}function cf(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")?$t(e,t):i==="srcset"?uf(e,t):i==="style"?Gr(t,pi(e)):n==="object"&&i==="data"?$t(e,t):t)}function Ts(e,n,i){return(e==="video"||e==="audio")&&n==="autoplay"}function lf(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 jr(e,n,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return i?jr(_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?jr(_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(jr(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 ff(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 hf(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 pf(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,d=n.inlineImages,y=n.recordCanvas,v=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,w=n.cssCaptured,S=w===void 0?!1:w,C=df(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 gf(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:d,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:_,rootId:C});case e.TEXT_NODE:return vf(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 df(e,n){if(n.hasNode(e)){var i=n.getId(e);return i===1?void 0:i}}function vf(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=Gr(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 gf(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,d=n.newlyAddedElement,y=d===void 0?!1:d,v=n.rootId,m=lf(e,t,r),_=of(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,_,gt(O.name),O.value))}if(_==="link"&&o){var A=Array.from(i.styleSheets).find(function(Te){return Te.href===e.href}),k=null;A&&(k=hi(A)),k&&(delete w.rel,delete w.href,w._cssText=k)}if(_==="style"&&e.sheet){var P=hi(e.sheet);P&&(e.childNodes.length>1&&(P=tf(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=Wr({element:e,type:qr(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")Hl(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var F=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);F!==Oe&&(w.rr_dataURL=F)}}if(_==="img"&&f){Nt||(Nt=i.createElement("canvas"),Rs=Nt.getContext("2d"));var J=e,Ae=J.currentSrc||J.getAttribute("src")||"<unknown-src>",Ee=J.crossOrigin,se=function(){J.removeEventListener("load",se);try{Nt.width=J.naturalWidth,Nt.height=J.naturalHeight,Rs.drawImage(J,0,0),w.rr_dataURL=Nt.toDataURL(l.type,l.quality)}catch(Te){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="+Ae+"! Error: "+Te)}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 Me=e.getBoundingClientRect(),Et=Me.width,Ge=Me.height;w={class:w.class,rr_width:""+Et+"px",rr_height:""+Ge+"px"}}_==="iframe"&&!g(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);var tr;try{customElements.get(_)&&(tr=!0)}catch(Te){}return{type:pe.Element,tagName:_,attributes:w,childNodes:[],isSVG:cf(e)||void 0,needBlock:m,rootId:v,isCustom:tr}}function ee(e){return e==null?"":e.toLowerCase()}function mf(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.as==="script"||e.attributes.rel==="modulepreload")||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 Lt(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,d=n.maskTextFn,y=n.maskInputFn,v=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,A=n.onSerialize,k=n.onIframeLoad,P=n.iframeLoadTimeout,j=P===void 0?5e3:P,M=n.onStylesheetLoad,F=n.stylesheetLoadTimeout,K=F===void 0?5e3:F,Oe=n.keepIframeSrcFn,J=Oe===void 0?function(){return!1}:Oe,Ae=n.newlyAddedElement,Ee=Ae===void 0?!1:Ae,se=n.cssCaptured,me=se===void 0?!1:se,Me=n.needsMask,Et=n.preserveWhiteSpace,Ge=Et===void 0?!0:Et;if(!Me){var tr=Me===void 0;Me=Ps(e,s,a,tr)}var Te=pf(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,dataURLOptions:_,inlineImages:S,recordCanvas:O,keepIframeSrcFn:J,newlyAddedElement:Ee,cssCaptured:me});if(!Te)return console.warn(e,"not serialized"),null;var xt;t.hasNode(e)?xt=t.getId(e):mf(Te,v)||!Ge&&Te.type===pe.Text&&!Te.textContent.replace(/^\s+|\s+$/gm,"").length?xt=lr:xt=ks();var H=Object.assign(Te,{id:xt});if(t.add(e,H),xt===lr)return null;A&&A(e);var Ot=!c;if(H.type===pe.Element){Ot=Ot&&!H.needBlock,delete H.needBlock;var kt=_e.shadowRoot(e);kt&&cr(kt)&&(H.isShadowHost=!0)}if((H.type===pe.Document||H.type===pe.Element)&&Ot){v.headWhitespace&&H.type===pe.Element&&H.tagName==="head"&&(Ge=!1);var rr={doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ge,onSerialize:A,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"&&(rr.cssCaptured=!0);for(var $r=x(Array.from(_e.childNodes(e))),Lr;!(Lr=$r()).done;){var ls=Lr.value,oi=Lt(ls,rr);oi&&H.childNodes.push(oi)}}var vt=null;if(Cs(e)&&(vt=_e.shadowRoot(e)))for(var Rt=x(Array.from(_e.childNodes(vt))),nr;!(nr=Rt()).done;){var Dr=nr.value,ir=Lt(Dr,rr);ir&&(cr(vt)&&(ir.isShadow=!0),H.childNodes.push(ir))}}var At=_e.parentNode(e);return At&&ur(At)&&cr(At)&&(H.isShadow=!0),H.type===pe.Element&&H.tagName==="iframe"&&ff(e,function(){var Qe=e.contentDocument;if(Qe&&k){var Mt=Lt(Qe,{doc:Qe,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ge,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:j,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J});Mt&&k(e,Mt)}},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")&&hf(e,function(){if(M){var Qe=Lt(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ge,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:j,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J});Qe&&M(e,Qe)}},K),H}function yf(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,d=g===void 0?!0:g,y=i.inlineImages,v=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,A=i.slimDOM,k=A===void 0?!1:A,P=i.dataURLOptions,j=i.preserveWhiteSpace,M=i.onSerialize,F=i.onIframeLoad,K=i.iframeLoadTimeout,Oe=i.onStylesheetLoad,J=i.stylesheetLoadTimeout,Ae=i.keepIframeSrcFn,Ee=Ae===void 0?function(){return!1}:Ae,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 Lt(e,{doc:e,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:se,maskTextFn:C,maskInputFn:O,slimDOMOptions:me,dataURLOptions:P,inlineImages:v,recordCanvas:_,preserveWhiteSpace:j,onSerialize:M,onIframeLoad:F,iframeLoadTimeout:K,onStylesheetLoad:Oe,stylesheetLoadTimeout:J,keepIframeSrcFn:Ee,newlyAddedElement:!1})}function _f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bf(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 wf=di.exports,Sf={},Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Sf},Symbol.toStringTag,{value:"Module"})),ce=bf(Cf),$s=wf,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),d=g.bold,y=g.gray,v=g.red;f=function(m){return d(v(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 tt={};tt.isClean=Symbol("isClean"),tt.my=Symbol("my");var Ds={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function If(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"+If(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 Ef=Fs;function yi(e,n){var i=new Ef(n);i.stringify(e)}var Yr=yi;yi.default=yi;var Hr=tt.isClean,xf=tt.my,Of=gi,kf=Fs,Rf=Yr;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":U(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[Hr]=!1,this[xf]=!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 Of(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[Hr]){this[Hr]=!1;for(var t=this;t=t.parent;)t[Hr]=!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 kf;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":U(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":U(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=Rf),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}(),Kr=bi;bi.default=bi;var Af=Kr,wi=function(e){ye(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=V({},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}(Af),Jr=wi;wi.default=wi;var Mf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Tf=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=Mf[Math.random()*64|0];return n},Pf={nanoid:Tf},Us=ce.SourceMapConsumer,Bs=ce.SourceMapGenerator,Nf=ce.existsSync,$f=ce.readFileSync,Si=ce.dirname,Lf=ce.join;function Df(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 Df(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":U(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),Nf(t))return this.mapFile=t,$f(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=Lf(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 Ff=ce.SourceMapConsumer,Uf=ce.SourceMapGenerator,Ws=ce.fileURLToPath,Xr=ce.pathToFileURL,Ii=ce.isAbsolute,Ei=ce.resolve,Bf=Pf.nanoid,xi=ce,qs=gi,zf=zs,Oi=Symbol("fromOffsetCache"),Wf=!!(Ff&&Uf),Gs=!!(Ei&&Ii),Zr=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":U(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&&Wf){var r=new zf(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 "+Bf(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":U(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 d=this.fromOffset(r);r=d.line,o=d.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&&(Xr&&(a.input.url=Xr(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=Xr(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Xr(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=V({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},ve(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Qr=Zr;Zr.default=Zr,xi&&xi.registerInput&&xi.registerInput(Zr);var Vs=ce.SourceMapConsumer,en=ce.SourceMapGenerator,tn=ce.dirname,js=ce.relative,Ys=ce.resolve,Hs=ce.sep,Ks=ce.pathToFileURL,qf=Qr,Gf=!!(Vs&&en),Vf=!!(tn&&Ys&&js&&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||tn(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Vs(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(),Vf&&Gf&&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=en.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new en({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 en({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:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||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?tn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=tn(Ys(o,this.mapOpts.annotation)));var s=js(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 qf(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,Yf=Kr,ki=function(e){ye(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(Yf),rn=ki;ki.default=ki;var Xs=tt.isClean,Zs=tt.my,Qs=Jr,ea=rn,Hf=Kr,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 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=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(d){return d[Zs]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Xs]&&ia(d),typeof d.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(d.raws.before=o.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});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 d in this.indexes)this.indexes[d]=this.indexes[d]+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}(Hf);Ve.registerParse=function(e){ta=e},Ve.registerRule=function(e){Ri=e},Ve.registerAtRule=function(e){Ai=e},Ve.registerRoot=function(e){ra=e};var mt=Ve;Ve.default=Ve,Ve.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){Ve.rebuild(n)})};var Kf=mt,oa,sa,fr=function(e){ye(n,e);function n(t){var r;return r=e.call(this,V({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}(Kf);fr.registerLazyResult=function(e){oa=e},fr.registerProcessor=function(e){sa=e};var Mi=fr;fr.default=fr;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 Jf=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 Jf(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,nn=92,fa=47,on=10,hr=32,sn=12,an=9,un=13,Xf=91,Zf=93,Qf=40,eh=41,th=123,rh=125,nh=59,ih=42,oh=58,sh=64,cn=/[\t\n\f\r "#'()/;[\\\]{}]/g,ln=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ah=/.[\r\n"'(/\\]/,ha=/[\da-f]/i,uh=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,d,y=t.length,v=0,m=[],_=[];function w(){return v}function S(k){throw n.error("Unclosed "+k,v)}function C(){return _.length===0&&v>=y}function O(k){if(_.length)return _.pop();if(!(v>=y)){var P=k?k.ignoreUnclosed:!1;switch(o=t.charCodeAt(v),o){case on:case hr:case an:case un:case sn:{s=v;do s+=1,o=t.charCodeAt(s);while(o===hr||o===on||o===an||o===un||o===sn);d=["space",t.slice(v,s)],v=s-1;break}case Xf:case Zf:case th:case rh:case oh:case nh:case eh:{var j=String.fromCharCode(o);d=[j,j,v];break}case Qf:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(v+1),p==="url"&&g!==$i&&g!==la&&g!==hr&&g!==on&&g!==an&&g!==sn&&g!==un){s=v;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||P){s=v;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===nn;)f-=1,l=!l}while(l);d=["brackets",t.slice(v,s+1),v,s],v=s}else s=t.indexOf(")",v+1),u=t.slice(v,s+1),s===-1||ah.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case $i:case la:{a=o===$i?"'":'"',s=v;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||P){s=v+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===nn;)f-=1,l=!l}while(l);d=["string",t.slice(v,s+1),v,s],v=s;break}case sh:{cn.lastIndex=v+1,cn.test(t),cn.lastIndex===0?s=t.length-1:s=cn.lastIndex-2,d=["at-word",t.slice(v,s+1),v,s],v=s;break}case nn:{for(s=v,c=!0;t.charCodeAt(s+1)===nn;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==fa&&o!==hr&&o!==on&&o!==an&&o!==un&&o!==sn&&(s+=1,ha.test(t.charAt(s)))){for(;ha.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===hr&&(s+=1)}d=["word",t.slice(v,s+1),v,s],v=s;break}default:{o===fa&&t.charCodeAt(v+1)===ih?(s=t.indexOf("*/",v+2)+1,s===0&&(r||P?s=t.length:S("comment")),d=["comment",t.slice(v,s+1),v,s],v=s):(ln.lastIndex=v+1,ln.test(t),ln.lastIndex===0?s=t.length-1:s=ln.lastIndex-2,d=["word",t.slice(v,s+1),v,s],m.push(d),v=s);break}}return v++,d}}function A(k){_.push(k)}return{back:A,endOfFile:C,nextToken:O,position:w}},pa=mt,fn=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=fn;fn.default=fn,pa.registerAtRule(fn);var da=mt,va,ga,Dt=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);Dt.registerLazyResult=function(e){va=e},Dt.registerProcessor=function(e){ga=e};var pr=Dt;Dt.default=Dt,da.registerRoot(Dt);var dr={comma:function(n){return dr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return dr.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=dr;dr.default=dr;var ya=mt,ch=ma,hn=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 ch.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=hn;hn.default=hn,ya.registerRule(hn);var lh=Jr,fh=uh,hh=rn,ph=Li,dh=pr,_a=Di,ba={empty:!0,space:!0};function vh(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var gh=function(){function e(i){this.input=i,this.root=new dh,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 ph;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 hh;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=fh(this.input)},n.decl=function(t,r){var o=new lh;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]||vh(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),d="",y=f;y>0;y--){var v=g[y][0];if(d.trim().indexOf("!")===0&&v!=="space")break;d=g.pop()[1]+d}d.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=d,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,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",p=o[d+1]?o[d+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(v,m){return v+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}(),mh=gh,yh=mt,_h=mh,bh=Qr;function pn(e,n){var i=new bh(e,n),t=new _h(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=pn;pn.default=pn,yh.registerParse(pn);var Ue=tt.isClean,wh=tt.my,Sh=Js,Ch=Yr,Ih=mt,Eh=Mi,xh=ua,wa=Ni,Oh=Fi,kh=pr,Rh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ah={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},Mh={Once:!0,postcssPlugin:!0,prepare:!0},Ft=0;function vr(e){return(typeof e=="undefined"?"undefined":U(e))==="object"&&typeof e.then=="function"}function Sa(e){var n=!1,i=Rh[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 Ca(e){var n;return e.type==="document"?n=["Document",Ft,"DocumentExit"]:e.type==="root"?n=["Root",Ft,"RootExit"]:n=Sa(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ui(e){return e[Ue]=!1,e.nodes&&e.nodes.forEach(function(n){return Ui(n)}),e}var Bi={},Ut=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":U(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=Oh;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[wh]&&Ih.rebuild(s)}this.result=new wa(i,s,r),this.helpers=V({},Bi,{postcss:Bi,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":U(u))==="object"&&u.prepare?V({},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":U(a))==="object")for(var u in a){if(!Ah[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Mh[u])if(U(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 ai(function(){var r,o,s,a,u,c,l,f,p,g,d,y;return ar(this,function(v){switch(v.label){case 0:t.plugin=0,r=0,v.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!vr(s))return[3,5];v.label=2;case 2:return v.trys.push([2,4,,5]),[4,s];case 3:return v.sent(),[3,5];case 4:throw a=v.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,v.label=7;case 7:if(u[Ue])return[3,14];u[Ue]=!0,c=[Ca(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!vr(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.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 ar(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(A){return w(A,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]}})},d=x(t.listeners.OnceExit),v.label=15;case 15:return(y=d()).done?[3,18]:[5,ms(g())];case 16:v.sent(),v.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":U(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 vr(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=Ch;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new Sh(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(vr(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||xh("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(vr(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(d){throw this.handleError(d,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(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===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=Sa(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()},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}();Ut.registerPostcss=function(e){Bi=e};var Ia=Ut;Ut.default=Ut,kh.registerLazyResult(Ut),Eh.registerLazyResult(Ut);var Th=Js,Ph=Yr,Nh=ua,$h=Fi,Lh=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=Ph;this.result=new Lh(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 Th(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||Nh("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=$h;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}(),Dh=zi;zi.default=zi;var Fh=Dh,Uh=Ia,Bh=Mi,zh=pr,gr=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":U(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":U(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":U(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 Fh(this,t,r):new Uh(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),Wh=gr;gr.default=gr,zh.registerProcessor(gr),Bh.registerProcessor(gr);var qh=Jr,Gh=zs,Vh=rn,jh=Li,Yh=Qr,Hh=pr,Kh=Di;function mr(e,n){if(Array.isArray(e))return e.map(function(f){return mr(f)});var i=e.inputs,t=or(e,["inputs"]);if(i){n=[];for(var r=x(i),o;!(o=r()).done;){var s=o.value,a=V({},s,{__proto__:Yh.prototype});a.map&&(a.map=V({},a.map,{__proto__:Gh.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return mr(f,n)})),t.source){var u=t.source,c=u.inputId,l=or(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new Hh(t);if(t.type==="decl")return new qh(t);if(t.type==="rule")return new Kh(t);if(t.type==="comment")return new Vh(t);if(t.type==="atrule")return new jh(t);throw new Error("Unknown node type: "+e.type)}var Jh=mr;mr.default=mr;var Xh=gi,Ea=Jr,Zh=Ia,Qh=mt,Wi=Wh,ep=Yr,tp=Jh,xa=Mi,rp=ca,Oa=rn,ka=Li,np=Ni,ip=Qr,op=Fi,sp=ma,Ra=Di,Aa=pr,ap=Kr;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=ep,X.parse=op,X.fromJSON=tp,X.list=sp,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=Xh,X.Declaration=Ea,X.Container=Qh,X.Processor=Wi,X.Document=xa,X.Comment=Oa,X.Warning=rp,X.AtRule=ka,X.Result=np,X.Input=ip,X.Rule=Ra,X.Root=Aa,X.Node=ap,Zh.registerPostcss(X);var up=X;X.default=X;var ie=_f(up);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 cp=Object.defineProperty,lp=function(e,n,i){return n in e?cp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},Pe=function(e,n,i){return lp(e,(typeof n=="undefined"?"undefined":U(n))!=="symbol"?n+"":n,i)};function fp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hp(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 pp=qi.exports,dp={},vp=Object.freeze(Object.defineProperty({__proto__:null,default:dp},Symbol.toStringTag,{value:"Module"})),le=hp(vp),Ta=pp,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),d=g.bold,y=g.gray,v=g.red;f=function(m){return d(v(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)),Vi=Gi;Gi.default=Gi;var rt={};rt.isClean=Symbol("isClean"),rt.my=Symbol("my");var Na={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function gp(e){return e[0].toUpperCase()+e.slice(1)}var ji=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"+gp(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=ji;ji.default=ji;var mp=$a;function Yi(e,n){var i=new mp(n);i.stringify(e)}var dn=Yi;Yi.default=Yi;var vn=rt.isClean,yp=rt.my,_p=Vi,bp=$a,wp=dn;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":U(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[vn]=!1,this[yp]=!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 _p(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[vn]){this[vn]=!1;for(var t=this;t=t.parent;)t[vn]=!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 bp;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":U(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":U(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=wp),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}(),gn=Ki;Ki.default=Ki;var Sp=gn,Ji=function(e){ye(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=V({},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}(Sp),mn=Ji;Ji.default=Ji;var Cp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ip=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=Cp[Math.random()*64|0];return n},Ep={nanoid:Ip},La=le.SourceMapConsumer,Da=le.SourceMapGenerator,xp=le.existsSync,Op=le.readFileSync,Xi=le.dirname,kp=le.join;function Rp(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 Rp(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":U(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),xp(t))return this.mapFile=t,Op(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=kp(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 Ap=le.SourceMapConsumer,Mp=le.SourceMapGenerator,Ua=le.fileURLToPath,yn=le.pathToFileURL,Qi=le.isAbsolute,eo=le.resolve,Tp=Ep.nanoid,to=le,Ba=Vi,Pp=Fa,ro=Symbol("fromOffsetCache"),Np=!!(Ap&&Mp),za=!!(eo&&Qi),_n=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":U(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&&Np){var r=new Pp(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 "+Tp(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":U(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 d=this.fromOffset(r);r=d.line,o=d.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&&(yn&&(a.input.url=yn(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=yn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||yn(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=V({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},ve(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),bn=_n;_n.default=_n,to&&to.registerInput&&to.registerInput(_n);var Wa=le.SourceMapConsumer,wn=le.SourceMapGenerator,Sn=le.dirname,qa=le.relative,Ga=le.resolve,Va=le.sep,ja=le.pathToFileURL,$p=bn,Lp=!!(Wa&&wn),Dp=!!(Sn&&Ga&&qa&&Va),Fp=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||Sn(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(),Dp&&Lp&&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=wn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new wn({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 wn({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:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||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?Sn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Sn(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 $p(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(ja){var o=ja(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;Va==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),Ya=Fp,Up=gn,no=function(e){ye(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(Up),Cn=no;no.default=no;var Ha=rt.isClean,Ka=rt.my,Ja=mn,Xa=Cn,Bp=gn,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 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=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(d){return d[Ka]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Ha]&&tu(d),typeof d.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(d.raws.before=o.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});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 d in this.indexes)this.indexes[d]=this.indexes[d]+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}(Bp);je.registerParse=function(e){Za=e},je.registerRule=function(e){io=e},je.registerAtRule=function(e){oo=e},je.registerRoot=function(e){Qa=e};var yt=je;je.default=je,je.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){je.rebuild(n)})};var zp=yt,ru,nu,yr=function(e){ye(n,e);function n(t){var r;return r=e.call(this,V({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}(zp);yr.registerLazyResult=function(e){ru=e},yr.registerProcessor=function(e){nu=e};var so=yr;yr.default=yr;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 Wp=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 Wp(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,In=92,uu=47,En=10,_r=32,xn=12,On=9,kn=13,qp=91,Gp=93,Vp=40,jp=41,Yp=123,Hp=125,Kp=59,Jp=42,Xp=58,Zp=64,Rn=/[\t\n\f\r "#'()/;[\\\]{}]/g,An=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Qp=/.[\r\n"'(/\\]/,cu=/[\da-f]/i,ed=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,d,y=t.length,v=0,m=[],_=[];function w(){return v}function S(k){throw n.error("Unclosed "+k,v)}function C(){return _.length===0&&v>=y}function O(k){if(_.length)return _.pop();if(!(v>=y)){var P=k?k.ignoreUnclosed:!1;switch(o=t.charCodeAt(v),o){case En:case _r:case On:case kn:case xn:{s=v;do s+=1,o=t.charCodeAt(s);while(o===_r||o===En||o===On||o===kn||o===xn);d=["space",t.slice(v,s)],v=s-1;break}case qp:case Gp:case Yp:case Hp:case Xp:case Kp:case jp:{var j=String.fromCharCode(o);d=[j,j,v];break}case Vp:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(v+1),p==="url"&&g!==lo&&g!==au&&g!==_r&&g!==En&&g!==On&&g!==xn&&g!==kn){s=v;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||P){s=v;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===In;)f-=1,l=!l}while(l);d=["brackets",t.slice(v,s+1),v,s],v=s}else s=t.indexOf(")",v+1),u=t.slice(v,s+1),s===-1||Qp.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case lo:case au:{a=o===lo?"'":'"',s=v;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||P){s=v+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===In;)f-=1,l=!l}while(l);d=["string",t.slice(v,s+1),v,s],v=s;break}case Zp:{Rn.lastIndex=v+1,Rn.test(t),Rn.lastIndex===0?s=t.length-1:s=Rn.lastIndex-2,d=["at-word",t.slice(v,s+1),v,s],v=s;break}case In:{for(s=v,c=!0;t.charCodeAt(s+1)===In;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==uu&&o!==_r&&o!==En&&o!==On&&o!==kn&&o!==xn&&(s+=1,cu.test(t.charAt(s)))){for(;cu.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===_r&&(s+=1)}d=["word",t.slice(v,s+1),v,s],v=s;break}default:{o===uu&&t.charCodeAt(v+1)===Jp?(s=t.indexOf("*/",v+2)+1,s===0&&(r||P?s=t.length:S("comment")),d=["comment",t.slice(v,s+1),v,s],v=s):(An.lastIndex=v+1,An.test(t),An.lastIndex===0?s=t.length-1:s=An.lastIndex-2,d=["word",t.slice(v,s+1),v,s],m.push(d),v=s);break}}return v++,d}}function A(k){_.push(k)}return{back:A,endOfFile:C,nextToken:O,position:w}},lu=yt,Mn=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=Mn;Mn.default=Mn,lu.registerAtRule(Mn);var fu=yt,hu,pu,Bt=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);Bt.registerLazyResult=function(e){hu=e},Bt.registerProcessor=function(e){pu=e};var br=Bt;Bt.default=Bt,fu.registerRoot(Bt);var wr={comma:function(n){return wr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return wr.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=wr;wr.default=wr;var vu=yt,td=du,Tn=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 td.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=Tn;Tn.default=Tn,vu.registerRule(Tn);var rd=mn,nd=ed,id=Cn,od=fo,sd=br,gu=ho,mu={empty:!0,space:!0};function ad(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var ud=function(){function e(i){this.input=i,this.root=new sd,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 od;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 id;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=nd(this.input)},n.decl=function(t,r){var o=new rd;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]||ad(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),d="",y=f;y>0;y--){var v=g[y][0];if(d.trim().indexOf("!")===0&&v!=="space")break;d=g.pop()[1]+d}d.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=d,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,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",p=o[d+1]?o[d+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(v,m){return v+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}(),cd=ud,ld=yt,fd=cd,hd=bn;function Pn(e,n){var i=new hd(e,n),t=new fd(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=Pn;Pn.default=Pn,ld.registerParse(Pn);var Be=rt.isClean,pd=rt.my,dd=Ya,vd=dn,gd=yt,md=so,yd=ou,yu=co,_d=po,bd=br,wd={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Sd={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},Cd={Once:!0,postcssPlugin:!0,prepare:!0},zt=0;function Sr(e){return(typeof e=="undefined"?"undefined":U(e))==="object"&&typeof e.then=="function"}function _u(e){var n=!1,i=wd[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,zt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,zt,i+"Exit"]:[i,i+"Exit"]}function bu(e){var n;return e.type==="document"?n=["Document",zt,"DocumentExit"]:e.type==="root"?n=["Root",zt,"RootExit"]:n=_u(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function vo(e){return e[Be]=!1,e.nodes&&e.nodes.forEach(function(n){return vo(n)}),e}var go={},Wt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":U(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=_d;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[pd]&&gd.rebuild(s)}this.result=new yu(i,s,r),this.helpers=V({},go,{postcss:go,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":U(u))==="object"&&u.prepare?V({},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":U(a))==="object")for(var u in a){if(!Sd[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Cd[u])if(U(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 ai(function(){var r,o,s,a,u,c,l,f,p,g,d,y;return ar(this,function(v){switch(v.label){case 0:t.plugin=0,r=0,v.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!Sr(s))return[3,5];v.label=2;case 2:return v.trys.push([2,4,,5]),[4,s];case 3:return v.sent(),[3,5];case 4:throw a=v.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,v.label=7;case 7:if(u[Be])return[3,14];u[Be]=!0,c=[bu(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!Sr(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.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 ar(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(A){return w(A,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]}})},d=x(t.listeners.OnceExit),v.label=15;case 15:return(y=d()).done?[3,18]:[5,ms(g())];case 16:v.sent(),v.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":U(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 Sr(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=vd;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new dd(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(Sr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Be];)a[Be]=!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||yd("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(Sr(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(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Be]){f[Be]=!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===zt){o.nodes&&o.nodes.length&&(o[Be]=!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[Be]=!0;for(var o=_u(t),s=x(o),a;!(a=s()).done;){var u=a.value;if(u===zt)t.nodes&&t.each(function(l){l[Be]||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}();Wt.registerPostcss=function(e){go=e};var wu=Wt;Wt.default=Wt,bd.registerLazyResult(Wt),md.registerLazyResult(Wt);var Id=Ya,Ed=dn,xd=ou,Od=po,kd=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=Ed;this.result=new kd(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 Id(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||xd("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=Od;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}(),Rd=mo;mo.default=mo;var Ad=Rd,Md=wu,Td=so,Pd=br,Cr=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":U(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":U(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":U(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 Ad(this,t,r):new Md(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),Nd=Cr;Cr.default=Cr,Pd.registerProcessor(Cr),Td.registerProcessor(Cr);var $d=mn,Ld=Fa,Dd=Cn,Fd=fo,Ud=bn,Bd=br,zd=ho;function Ir(e,n){if(Array.isArray(e))return e.map(function(f){return Ir(f)});var i=e.inputs,t=or(e,["inputs"]);if(i){n=[];for(var r=x(i),o;!(o=r()).done;){var s=o.value,a=V({},s,{__proto__:Ud.prototype});a.map&&(a.map=V({},a.map,{__proto__:Ld.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return Ir(f,n)})),t.source){var u=t.source,c=u.inputId,l=or(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new Bd(t);if(t.type==="decl")return new $d(t);if(t.type==="rule")return new zd(t);if(t.type==="comment")return new Dd(t);if(t.type==="atrule")return new Fd(t);throw new Error("Unknown node type: "+e.type)}var Wd=Ir;Ir.default=Ir;var qd=Vi,Su=mn,Gd=wu,Vd=yt,yo=Nd,jd=dn,Yd=Wd,Cu=so,Hd=su,Iu=Cn,Eu=fo,Kd=co,Jd=bn,Xd=po,Zd=du,xu=ho,Ou=br,Qd=gn;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=Xd,Z.fromJSON=Yd,Z.list=Zd,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=qd,Z.Declaration=Su,Z.Container=Vd,Z.Processor=yo,Z.Document=Cu,Z.Comment=Iu,Z.Warning=Hd,Z.AtRule=Eu,Z.Result=Kd,Z.Input=Jd,Z.Rule=xu,Z.Root=Ou,Z.Node=Qd,Gd.registerPostcss(Z);var ev=Z;Z.default=Z;var oe=fp(ev);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 tv=function(){function e(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];Pe(this,"parentElement",null),Pe(this,"parentNode",null),Pe(this,"ownerDocument"),Pe(this,"firstChild",null),Pe(this,"lastChild",null),Pe(this,"previousSibling",null),Pe(this,"nextSibling",null),Pe(this,"ELEMENT_NODE",1),Pe(this,"TEXT_NODE",3),Pe(this,"nodeType"),Pe(this,"nodeName"),Pe(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"]},Nn={},rv=function(){return!!globalThis.Zone};function _o(e){if(Nn[e])return Nn[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&&!rv())return Nn[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?Nn[e]=c:i}catch(l){return i}}var bo={};function nt(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 nv(e){return nt("Node",e,"childNodes")}function iv(e){return nt("Node",e,"parentNode")}function ov(e){return nt("Node",e,"parentElement")}function sv(e){return nt("Node",e,"textContent")}function av(e,n){return Au("Node",e,"contains")(n)}function uv(e){return Au("Node",e,"getRootNode")()}function cv(e){return!e||!("host"in e)?null:nt("ShadowRoot",e,"host")}function lv(e){return e.styleSheets}function fv(e){return!e||!("shadowRoot"in e)?null:nt("Element",e,"shadowRoot")}function hv(e,n){return nt("Element",e,"querySelector")(n)}function pv(e,n){return nt("Element",e,"querySelectorAll")(n)}function Mu(){return _o("MutationObserver").constructor}function _t(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 B={childNodes:nv,parentNode:iv,parentElement:ov,textContent:sv,contains:av,getRootNode:uv,host:cv,styleSheets:lv,shadowRoot:fv,querySelector:hv,querySelectorAll:pv,mutationObserver:Mu,patch:_t};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 qt="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(qt),-1},getNode:function(){return console.error(qt),null},removeNodeFromMap:function(){console.error(qt)},has:function(){return console.error(qt),!1},reset:function(){console.error(qt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Tu=new Proxy(Tu,{get:function(n,i,t){return i==="map"&&console.error(qt),Reflect.get(n,i,t)}}));function Er(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 $n(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 $n(e,n,o||{},!0)}}var Ln=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ln=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=B.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=B.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:B.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(jr(r,n,t))return!0}catch(o){}return!!(i&&(r.matches(i)||t&&r.closest(i)!==null))}function dv(e,n){return n.getId(e)!==-1}function So(e,n,i){return e.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(e)===lr}function Du(e,n){if(ur(e))return!1;var i=n.getId(e);if(!n.has(i))return!0;var t=B.parentNode(e);return t&&t.nodeType===e.DOCUMENT_NODE?!1:t?Du(t,n):!0}function Co(e){return!!e.changedTouches}function vv(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,tv)&&"shadowRoot"in e?!!e.shadowRoot:!!B.shadowRoot(e):!1}var gv=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=B.getRootNode(e))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&B.host(B.getRootNode(e))&&(i=B.host(B.getRootNode(e))),i}function mv(e){for(var n=e,i;i=Bu(n);)n=i;return n}function yv(e){var n=e.ownerDocument;if(!n)return!1;var i=mv(e);return B.contains(n,i)}function zu(e){var n=e.ownerDocument;return n?B.contains(n,e)||yv(e):!1}var W=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}(W||{}),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||{}),Gt=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Gt||{}),Vt=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}(Vt||{}),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 _v=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},bv=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 _v,s=function(M){for(var F=M,K=lr;K===lr;)F=F&&F.nextSibling,K=F&&i.mirror.getId(F);return K},a=function(M){var F=B.parentNode(M);if(!(!F||!zu(M))){var K=!1;if(M.nodeType===Node.TEXT_NODE){var Oe=F.tagName;if(Oe==="TEXTAREA")return;Oe==="STYLE"&&i.addedSet.has(F)&&(K=!0)}var J=ur(F)?i.mirror.getId(Bu(M)):i.mirror.getId(F),Ae=s(M);if(J===-1||Ae===-1)return o.addNode(M);var Ee=Lt(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(B.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:Ae,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;Vu(i.removesSubTreeCache,l,i.mirror)&&!i.movedSet.has(B.parentNode(l))||a(l)}for(var f=x(i.addedSet),p;!(p=f()).done;){var g=p.value;!ju(i.droppedSet,g)&&!Vu(i.removesSubTreeCache,g,i.mirror)||ju(i.movedSet,g)?a(g):i.droppedSet.add(g)}for(var d=null;o.length;){var y=null;if(d){var v=i.mirror.getId(B.parentNode(d.value)),m=s(d.value);v!==-1&&m!==-1&&(y=d)}if(!y)for(var _=o.tail;_;){var w=_;if(_=_.previous,w){var S=i.mirror.getId(B.parentNode(w.value)),C=s(w.value);if(C===-1)continue;if(S!==-1){y=w;break}else{var O=w.value,A=B.parentNode(O);if(A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=B.host(A),P=i.mirror.getId(k);if(P!==-1){y=w;break}}}}}if(!y){for(;o.head;)o.removeNode(o.head.value);break}d=y.previous,o.removeNode(y.value),a(y.value)}var j={texts:i.texts.map(function(M){var F=M.node,K=B.parentNode(F);return K&&K.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(K),{id:i.mirror.getId(F),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 F=M.attributes;if(typeof F.style=="string"){var K=JSON.stringify(M.styleDiff),Oe=JSON.stringify(M._unchangedStyles);K.length<F.style.length&&(K+Oe).split("var(").length===F.style.split("var(").length&&(F.style=M.styleDiff)}return{id:i.mirror.getId(M.node),attributes:F}}).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));var o=Array.from(B.childNodes(t),function(s){return B.textContent(s)||""}).join("");r.attributes.value=Wr({element:t,maskInputOptions:i.maskInputOptions,tagName:t.tagName,type:qr(t),value:o,maskInputFn:i.maskInputFn})}),I(this,"processMutation",function(t){if(!So(t.target,i.mirror,i.slimDOMOptions))switch(t.type){case"characterData":{var r=B.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=qr(o);a=Wr({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,gt(o.tagName),gt(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,d=o.style.getPropertyValue(g),y=o.style.getPropertyPriority(g);d!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=d:c.styleDiff[g]=[d,y]:c._unchangedStyles[g]=[d,y]}for(var v=x(Array.from(l.style)),m;!(m=v()).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=ur(t.target)?i.mirror.getId(B.host(t.target)):i.mirror.getId(t.target);we(t.target,i.blockClass,i.blockSelector,!1)||So(w,i.mirror,i.slimDOMOptions)||!dv(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:ur(t.target)&&cr(t.target)?!0:void 0}),wv(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)||(B.childNodes(t).forEach(function(s){return i.genAdds(s)}),Io(t)&&B.childNodes(B.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),B.childNodes(n).forEach(function(i){return Eo(e,i)})}function wv(e,n){for(var i=[e];i.length;){var t=i.pop();n.has(t)||(n.add(t),B.childNodes(t).forEach(function(r){return i.push(r)}))}}function Vu(e,n,i){return e.size===0?!1:Sv(e,n)}function Sv(e,n,i){var t=B.parentNode(n);return t?e.has(t):!1}function ju(e,n){return e.size===0?!1:Yu(e,n)}function Yu(e,n){var i=B.parentNode(n);return i?e.has(i)?!0:Yu(e,i):!1}var xr;function Cv(e){xr=e}function Iv(){xr=void 0}var G=function(e){if(!xr)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(xr&&xr(o)===!0)return;throw o}};return n},bt=[];function Or(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 bv;bt.push(i),i.init(e);var t=new(Mu())(G(i.processMutations.bind(i)));return t.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),t}function Ev(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=Er(G(function(p){var g=Date.now()-u;n(a.map(function(d){return d.timeOffset-=g,d}),p),a=[],u=null}),s),l=G(Er(G(function(p){var g=Or(p),d=Co(p)?p.changedTouches[0]:p,y=d.clientX,v=d.clientY;u||(u=Ln()),a.push({x:y,y:v,id:r.getId(g),timeOffset:Ln()-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 G(function(){f.forEach(function(p){return p()})})}function xv(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=Or(p);if(!we(g,r,o,!0)){var d=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":d=Ye.Mouse;break;case"touch":d=Ye.Touch;break;case"pen":d=Ye.Pen;break}d===Ye.Touch?xe[f]===xe.MouseDown?y="TouchStart":xe[f]===xe.MouseUp&&(y="TouchEnd"):Ye.Pen}else Co(p)&&(d=Ye.Touch);d!==null?(c=d,(y.startsWith("Touch")&&d===Ye.Touch||y.startsWith("Mouse")&&d===Ye.Mouse)&&(d=null)):xe[f]===xe.Click&&(d=c,c=null);var v=Co(p)?p.changedTouches[0]:p;if(v){var m=t.getId(g),_=v.clientX,w=v.clientY;G(n)(V({type:xe[y],id:m,x:_,y:w},d!==null&&{pointerType:d}))}}}};return Object.keys(xe).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var p=gt(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))}),G(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=G(Er(G(function(u){var c=Or(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 Ov(e,n){var i=e.viewportResizeCb,t=n.win,r=-1,o=-1,s=G(Er(G(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 kv=["INPUT","TEXTAREA","SELECT"],Ju=new WeakMap;function Rv(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=Or(S),O=S.isTrusted,A=C&&C.tagName;if(C&&A==="OPTION"&&(C=B.parentElement(C)),!(!C||!A||kv.indexOf(A)<0||we(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var k=C.value,P=!1,j=qr(C)||"";j==="radio"||j==="checkbox"?P=C.checked:(u[A.toLowerCase()]||u[j])&&(k=Wr({element:C,maskInputOptions:u,tagName:A,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(F){if(F!==C){var K=F.value;g(F,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 A=t.getId(S);G(n)(V({},C,{id:A}))}}var d=l.input==="last"?["change"]:["input","change"],y=d.map(function(S){return be(S,G(p),i)}),v=i.defaultView;if(!v)return function(){y.forEach(function(S){return S()})};var m=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),_=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];if(m&&m.set){var w;(w=y).push.apply(w,[].concat(_.map(function(S){return $n(S[0],S[1],{set:function(){G(p)({target:this,isTrusted:!1})}},!1,v)})))}return G(function(){y.forEach(function(S){return S()})})}function Dn(e){var n=[];function i(t,r){if(Fn("CSSGroupingRule")&&$(t.parentRule,CSSGroupingRule)||Fn("CSSMediaRule")&&$(t.parentRule,CSSMediaRule)||Fn("CSSSupportsRule")&&$(t.parentRule,CSSSupportsRule)||Fn("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 it(e,n,i){var t,r;return e?(e.ownerNode?t=n.getId(e.ownerNode):r=i.getId(e),{styleId:r,id:t}):{}}function Av(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:G(function(p,g,d){var y=d[0],v=d[1],m=it(g,t,r.styleMirror),_=m.id,w=m.styleId;return(_&&_!==-1||w&&w!==-1)&&i({id:_,styleId:w,adds:[{rule:y,index:v}]}),p.apply(g,d)})}),o.CSSStyleSheet.prototype.addRule=function(p,g,d){d===void 0&&(d=this.cssRules.length);var y=p+" { "+g+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[y,d])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:G(function(p,g,d){var y=d[0],v=it(g,t,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),p.apply(g,d)})}),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:G(function(p,g,d){var y=d[0],v=it(g,t,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),p.apply(g,d)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:G(function(p,g,d){var y=d[0],v=it(g,t,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),p.apply(g,d)})}));var l={};Un("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Un("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Un("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Un("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(p){var g=p[0],d=p[1];f[g]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(f[g].insertRule,{apply:G(function(y,v,m){var _=m[0],w=m[1],S=it(v.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(Dn(v),[w||0])}]}),y.apply(v,m)})}),d.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:G(function(y,v,m){var _=m[0],w=it(v.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(Dn(v),[_])}]}),y.apply(v,m)})})}),G(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],d=p[1];d.prototype.insertRule=f[g].insertRule,d.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(B.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(d){}return g}}),G(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function Mv(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:G(function(c,l,f){var p,g=f[0],d=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,d,y]);var v=it((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:d,priority:y},index:Dn(l.parentRule)}),c.apply(l,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:G(function(c,l,f){var p,g=f[0];if(r.has(g))return u.apply(l,[g]);var d=it((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),y=d.id,v=d.styleId;return(y&&y!==-1||v&&v!==-1)&&i({id:y,styleId:v,remove:{property:g},index:Dn(l.parentRule)}),c.apply(l,f)})}),G(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function Tv(e){var n=e.mediaInteractionCb,i=e.blockClass,t=e.blockSelector,r=e.mirror,o=e.sampling,s=e.doc,a=G(function(c){return Er(G(function(l){var f=Or(l);if(!(!f||we(f,i,t,!0))){var p=f.currentTime,g=f.volume,d=f.muted,y=f.playbackRate,v=f.loop;n({type:c,id:r.getId(f),currentTime:p,volume:g,muted:d,playbackRate:y,loop:v})}}),o.media||500)}),u=[be("play",a(Vt.Play),s),be("pause",a(Vt.Pause),s),be("seeked",a(Vt.Seeked),s),be("volumechange",a(Vt.VolumeChange),s),be("ratechange",a(Vt.RateChange),s)];return G(function(){u.forEach(function(c){return c()})})}function Pv(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=_t(i.fonts,"add",function(u){return function(c){return setTimeout(G(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),G(function(){r.forEach(function(u){return u()})})}function Nv(e){var n=e.doc,i=e.mirror,t=e.blockClass,r=e.blockSelector,o=e.selectionCb,s=!0,a=G(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,d=p.startOffset,y=p.endContainer,v=p.endOffset,m=we(g,t,r,!0)||we(y,t,r,!0);m||c.push({start:i.getId(g),startOffset:d,end:i.getId(y),endOffset:v})}o({ranges:c})}});return a(),be("selectionchange",a)}function $v(e){var n=e.doc,i=e.customElementCb,t=n.defaultView;if(!t||!t.customElements)return function(){};var r=_t(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 Lv(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,d=e.customElementCb;e.mutationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(v))}i.apply(void 0,[].concat(v))},e.mousemoveCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(v))}t.apply(void 0,[].concat(v))},e.mouseInteractionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(v))}r.apply(void 0,[].concat(v))},e.scrollCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(v))}o.apply(void 0,[].concat(v))},e.viewportResizeCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(v))}s.apply(void 0,[].concat(v))},e.inputCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(v))}a.apply(void 0,[].concat(v))},e.mediaInteractionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(v))}u.apply(void 0,[].concat(v))},e.styleSheetRuleCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(v))}c.apply(void 0,[].concat(v))},e.styleDeclarationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(v))}l.apply(void 0,[].concat(v))},e.canvasMutationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(v))}f.apply(void 0,[].concat(v))},e.fontCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(v))}p.apply(void 0,[].concat(v))},e.selectionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(v))}g.apply(void 0,[].concat(v))},e.customElementCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(v))}d.apply(void 0,[].concat(v))}}function Dv(e,n){n===void 0&&(n={});var i=e.doc.defaultView;if(!i)return function(){};Lv(e,n);var t;e.recordDOM&&(t=Hu(e,e.doc));var r=Ev(e),o=xv(e),s=Ku(e),a=Ov(e,{win:i}),u=Rv(e),c=Tv(e),l=function(){},f=function(){},p=function(){},g=function(){};e.recordDOM&&(l=Av(e,{win:i}),f=Xu(e,e.doc),p=Mv(e,{win:i}),e.collectFonts&&(g=Pv(e)));for(var d=Nv(e),y=$v(e),v=[],m=x(e.plugins),_;!(_=m()).done;){var w=_.value;v.push(w.observer(w.callback,i,w.options))}return G(function(){bt.forEach(function(S){return S.reset()}),t==null||t.disconnect(),r(),o(),s(),a(),u(),c(),l(),f(),p(),g(),d(),y(),v.forEach(function(S){return S()})})}function Fn(e){return typeof window[e]!="undefined"}function Un(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}(),Fv=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 W.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:W.IncrementalSnapshot,data:{source:T.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case W.Meta:case W.Load:case W.DomContentLoaded:return!1;case W.Plugin:return r;case W.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case W.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}(),Uv=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(cr(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var s=Hu(V({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Ku(V({},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(B.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(_t(t.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=B.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+/",Bv=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Bn=0;Bn<jt.length;Bn++)Bv[jt.charCodeAt(Bn)]=Bn;var zv=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 Wv(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":U(e))==="object"))){var t=e.constructor.name,r=Wv(i,t),o=r.indexOf(e);return o===-1&&(o=r.length,r.push(e)),o}};function zn(e,n,i){if($(e,Array))return e.map(function(d){return zn(d,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=zv(e);return{rr_type:r,base64:o}}else if($(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[zn(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:[zn(e.data,n,i),e.width,e.height]}}else if(rc(e,n)||(typeof e=="undefined"?"undefined":U(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 zn(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 qv(e,n,i,t){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=_t(n.CanvasRenderingContext2D.prototype,c,function(p){return function(){for(var g=this,d=arguments.length,y=new Array(d),v=0;v<d;v++)y[v]=arguments[v];return we(this.canvas,i,t,!0)||setTimeout(function(){var m=tc(y,n,g);e(g.canvas,{type:Gt["2D"],property:c,args:m})},0),p.apply(this,y)}});o.push(l)}catch(p){var f=$n(n.CanvasRenderingContext2D.prototype,c,{set:function(d){e(this.canvas,{type:Gt["2D"],property:c,args:[d],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 Gv(e){return e==="experimental-webgl"?"webgl":e}function nc(e,n,i,t){var r=[];try{var o=_t(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=Gv(a);if("__context"in this||(this.__context=f),t&&["webgl","webgl2"].includes(f))if(c[0]&&U(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=_t(e,f,function(d){return function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];var _=d.apply(this,v);if(ec(_,o,this),"tagName"in this.canvas&&!we(this.canvas,t,r,!0)){var w=tc(v,o,this),S={type:n,property:f,args:w};i(this.canvas,S)}return _}});a.push(p)}catch(d){var g=$n(e,f,{set:function(v){i(this.canvas,{type:n,property:f,args:[v],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(e),c=x(u),l;!(l=c()).done;)s();return a}function Vv(e,n,i,t){var r,o=[];if((r=o).push.apply(r,[].concat(ic(n.WebGLRenderingContext.prototype,Gt.WebGL,e,i,t,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=o).push.apply(s,[].concat(ic(n.WebGL2RenderingContext.prototype,Gt.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 Yv(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 Hv=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 Yv;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,A=w.height;u.mutationCb({id:_,type:Gt["2D"],commands:[{property:"clearRect",args:[0,0,O,A]},{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,d,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){we(_,o,s,!0)||m.push(_)}),m},v=function(m){if(g&&m-g<p){d=requestAnimationFrame(v);return}g=m;var _=u;y().forEach(ai(function(w){var S,C,O,A;return ar(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 A=k.sent(),f.postMessage({id:C,bitmap:A,width:w.width,height:w.height,dataURLOptions:a.dataURLOptions},[A]),[2]}})})),d=requestAnimationFrame(v)};d=requestAnimationFrame(v),this.resetObservers=function(){c(),cancelAnimationFrame(d)}},n.initCanvasMutationObserver=function(t,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=nc(t,r,o,!1),a=qv(this.processMutation.bind(this),t,r,o),u=Vv(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=or(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(t)}}},e}(),Kv=function(){function e(i){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new gv),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,d){return{rule:Is(g,f.href),index:d}})})),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,Wn,xo,qn=!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=Yl();function ot(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,d=e.maskTextSelector,y=d===void 0?null:d,v=e.inlineStylesheet,m=v===void 0?!0:v,_=e.maskAllInputs,w=e.maskInputOptions,S=e.slimDOMOptions,C=e.maskInputFn,O=e.maskTextFn,A=e.hooks,k=e.packFn,P=e.sampling,j=P===void 0?{}:P,M=e.dataURLOptions,F=M===void 0?{}:M,K=e.mousemoveWait,Oe=e.recordDOM,J=Oe===void 0?!0:Oe,Ae=e.recordCanvas,Ee=Ae===void 0?!1:Ae,se=e.recordCrossOriginIframes,me=se===void 0?!1:se,Me=e.recordAfter,Et=Me===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":Me,Ge=e.userTriggeredOnInput,tr=Ge===void 0?!1:Ge,Te=e.collectFonts,xt=Te===void 0?!1:Te,H=e.inlineImages,Ot=H===void 0?!1:H,kt=e.plugins,rr=e.keepIframeSrcFn,$r=rr===void 0?function(){return!1}:rr,Lr=e.ignoreCSSAttributes,ls=Lr===void 0?new Set([]):Lr,oi=e.errorHandler;Cv(oi);var vt=me?window.parent===window:!0,Rt=!1;if(!vt)try{window.parent.document&&(Rt=!1)}catch(Q){Rt=!0}if(vt&&!n)throw new Error("emit function is required");if(!vt&&!Rt)return function(){};K!==void 0&&j.mousemove===void 0&&(j.mousemove=K),$e.reset();var nr=_===!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||{};vv();var ir,At=0,Qe=function(Q){for(var ke=x(kt||[]),R;!(R=ke()).done;){var ae=R.value;ae.eventProcessor&&(Q=ae.eventProcessor(Q))}return k&&!Rt&&(Q=k(Q)),Q};ue=function(Q,ke){var R,ae=Q;if(ae.timestamp=Ln(),(R=bt[0])!=null&&R.isFrozen()&&ae.type!==W.FullSnapshot&&!(ae.type===W.IncrementalSnapshot&&ae.data.source===T.Mutation)&&bt.forEach(function(sm){return sm.unfreeze()}),vt)n==null||n(Qe(ae),ke);else if(Rt){var nm={type:"rrweb",event:Qe(ae),origin:window.location.origin,isCheckout:ke};window.parent.postMessage(nm,"*")}if(ae.type===W.FullSnapshot)ir=ae,At=0;else if(ae.type===W.IncrementalSnapshot){if(ae.data.source===T.Mutation&&ae.data.isAttachIframe)return;At++;var im=t&&At>=t,om=i&&ae.timestamp-ir.timestamp>i;(im||om)&&Wn(!0)}};for(var Mt=function(Q){ue({type:W.IncrementalSnapshot,data:V({source:T.Mutation},Q)})},gl=function(Q){return ue({type:W.IncrementalSnapshot,data:V({source:T.Scroll},Q)})},ml=function(Q){return ue({type:W.IncrementalSnapshot,data:V({source:T.CanvasMutation},Q)})},tm=function(Q){return ue({type:W.IncrementalSnapshot,data:V({source:T.AdoptedStyleSheet},Q)})},Tt=new Kv({mutationCb:Mt,adoptedStyleSheetCb:tm}),Pt=new Fv({mirror:$e,mutationCb:Mt,stylesheetManager:Tt,recordCrossOriginIframes:me,wrappedEmit:ue}),rm=x(kt||[]),yl;!(yl=rm()).done;){var _l=yl.value;_l.getMirror&&_l.getMirror({nodeMirror:$e,crossOriginIframeMirror:Pt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Pt.crossOriginIframeStyleMirror})}var fs=new Jv;xo=new Hv({recordCanvas:Ee,mutationCb:ml,win:window,blockClass:o,blockSelector:a,mirror:$e,sampling:j.canvas,dataURLOptions:F});var si=new Uv({mutationCb:Mt,scrollCb:gl,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:nr,dataURLOptions:F,maskTextFn:O,maskInputFn:C,recordCanvas:Ee,inlineImages:Ot,sampling:j,slimDOMOptions:Dr,iframeManager:Pt,stylesheetManager:Tt,canvasManager:xo,keepIframeSrcFn:$r,processedNodeManager:fs},mirror:$e});Wn=function(Q){if(Q===void 0&&(Q=!1),!!J){ue({type:W.Meta,data:{href:window.location.href,width:$u(),height:Nu()}},Q),Tt.reset(),si.init(),bt.forEach(function(R){return R.lock()});var ke=yf(document,{mirror:$e,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:nr,maskTextFn:O,maskInputFn:C,slimDOM:Dr,dataURLOptions:F,recordCanvas:Ee,inlineImages:Ot,onSerialize:function(R){Fu(R,$e)&&Pt.addIframe(R),Uu(R,$e)&&Tt.trackLinkElement(R),Io(R)&&si.addShadowRoot(B.shadowRoot(R),document)},onIframeLoad:function(R,ae){Pt.attachIframe(R,ae),si.observeAttachShadow(R)},onStylesheetLoad:function(R,ae){Tt.attachLinkElement(R,ae)},keepIframeSrcFn:$r});if(!ke)return console.warn("Failed to snapshot the document");ue({type:W.FullSnapshot,data:{node:ke,initialOffset:Pu(window)}},Q),bt.forEach(function(R){return R.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Tt.adoptStyleSheets(document.adoptedStyleSheets,$e.getId(document))}};try{var Fr=[],bl=function(Q){var ke;return G(Dv)({mutationCb:Mt,mousemoveCb:function(R,ae){return ue({type:W.IncrementalSnapshot,data:{source:ae,positions:R}})},mouseInteractionCb:function(R){return ue({type:W.IncrementalSnapshot,data:V({source:T.MouseInteraction},R)})},scrollCb:gl,viewportResizeCb:function(R){return ue({type:W.IncrementalSnapshot,data:V({source:T.ViewportResize},R)})},inputCb:function(R){return ue({type:W.IncrementalSnapshot,data:V({source:T.Input},R)})},mediaInteractionCb:function(R){return ue({type:W.IncrementalSnapshot,data:V({source:T.MediaInteraction},R)})},styleSheetRuleCb:function(R){return ue({type:W.IncrementalSnapshot,data:V({source:T.StyleSheetRule},R)})},styleDeclarationCb:function(R){return ue({type:W.IncrementalSnapshot,data:V({source:T.StyleDeclaration},R)})},canvasMutationCb:ml,fontCb:function(R){return ue({type:W.IncrementalSnapshot,data:V({source:T.Font},R)})},selectionCb:function(R){ue({type:W.IncrementalSnapshot,data:V({source:T.Selection},R)})},customElementCb:function(R){ue({type:W.IncrementalSnapshot,data:V({source:T.CustomElement},R)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:nr,inlineStylesheet:m,sampling:j,recordDOM:J,recordCanvas:Ee,inlineImages:Ot,userTriggeredOnInput:tr,collectFonts:xt,doc:Q,maskInputFn:C,maskTextFn:O,keepIframeSrcFn:$r,blockSelector:a,slimDOMOptions:Dr,dataURLOptions:F,mirror:$e,iframeManager:Pt,stylesheetManager:Tt,shadowDomManager:si,processedNodeManager:fs,canvasManager:xo,ignoreCSSAttributes:ls,plugins:((ke=kt==null?void 0:kt.filter(function(R){return R.observer}))==null?void 0:ke.map(function(R){return{observer:R.observer,options:R.options,callback:function(ae){return ue({type:W.Plugin,data:{plugin:R.name,payload:ae}})}}}))||[]},A)};Pt.addLoadListener(function(Q){try{Fr.push(bl(Q.contentDocument))}catch(ke){console.warn(ke)}});var hs=function(){Wn(),Fr.push(bl(document)),qn=!0};return document.readyState==="interactive"||document.readyState==="complete"?hs():(Fr.push(be("DOMContentLoaded",function(){ue({type:W.DomContentLoaded,data:{}}),Et==="DOMContentLoaded"&&hs()})),Fr.push(be("load",function(){ue({type:W.Load,data:{}}),Et==="load"&&hs()},window))),function(){Fr.forEach(function(Q){try{Q()}catch(R){var ke=String(R).toLowerCase();ke.includes("cross-origin")||console.warn(R)}}),fs.destroy(),qn=!1,Iv()}}catch(Q){console.warn(Q)}}ot.addCustomEvent=function(e,n){if(!qn)throw new Error("please add custom event after start recording");ue({type:W.Custom,data:{tag:e,payload:n}})},ot.freezePage=function(){bt.forEach(function(e){return e.freeze()})},ot.takeFullSnapshot=function(e){if(!qn)throw new Error("please take full snapshot after start recording");Wn(e)},ot.mirror=$e;var ac;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ac||(ac={})),ot.addCustomEvent,ot.freezePage,ot.takeFullSnapshot;var uc=E.setImmediate,st,ko,Ro,cc=Object.prototype.toString,Xv=typeof uc!="undefined"?function(n){return uc(n)}:setTimeout;try{Object.defineProperty({},"x",{}),st=function(n,i,t,r){return Object.defineProperty(n,i,{value:t,writable:!0,configurable:r!==!1})}}catch(e){st=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 Gn(e,n){Ro.add(e,n),ko||(ko=Xv(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++)Zv(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Zv(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))?Gn(function(){var t=new pc(i);try{n.call(e,function(){fc.apply(t,arguments)},function(){kr.apply(t,arguments)})}catch(r){kr.call(t,r)}}):(i.msg=e,i.state=1,i.chain.length>0&&Gn(Ao,i))}catch(t){kr.call(new pc(i),t)}}}function kr(e){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=e,n.state=2,n.chain.length>0&&Gn(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 Qv(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function at(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 Qv(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&&Gn(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){kr.call(n,t)})}catch(i){kr.call(n,i)}}var dc=st({},"constructor",at,!1);at.prototype=dc,st(dc,"__NPO__",0,!1),st(at,"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)})}),st(at,"reject",function(n){return new this(function(t,r){if(typeof t!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),st(at,"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)})}),st(at,"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 q;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?q=Promise:q=at;var Le={DEBUG:!1,LIB_VERSION:"2.69.0"},Rr=24*60*60*1e3,Mo=8*1e3,Vn=Array.prototype,eg=Function.prototype,vc=Object.prototype,ut=Vn.slice,Ar=vc.toString,jn=vc.hasOwnProperty,he=E.console,ct=E.navigator,Y=E.document,Yn=E.opera,gc=E.screen,He=ct.userAgent,To=eg.bind,mc=Vn.forEach,yc=Vn.indexOf,_c=Vn.map,tg=Array.isArray,Po={},h={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},D={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(D,arguments)}},wt=function(e){return{log:No(D.log,e),error:No(D.error,e),critical:No(D.critical,e)}},$o=function(e){return function(){try{return e.apply(this,arguments)}catch(n){D.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Le.DEBUG&&D.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,ut.call(arguments,1));if(!h.isFunction(e))throw new TypeError;return i=ut.call(arguments,2),t=function(){if(!(this instanceof t))return e.apply(n,i.concat(ut.call(arguments)));var r={};r.prototype=e.prototype;var o=new r;r.prototype=null;var s=e.apply(o,i.concat(ut.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(jn.call(e,o)&&n.call(i,e[o],o,e)===Po)return}},h.extend=function(e){return h.each(ut.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(e[i]=n[i])}),e},h.isArray=tg||function(e){return Ar.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&&jn.call(e,"callee"))},h.toArray=function(e){return e?e.toArray?e.toArray():h.isArray(e)||h.isArguments(e)?ut.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(jn.call(e,n))return!1;return!0}return!1},h.isUndefined=function(e){return e===void 0},h.isString=function(e){return Ar.call(e)=="[object String]"},h.isDate=function(e){return Ar.call(e)=="[object Date]"},h.isNumber=function(e){return Ar.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=[],d=o[r];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(r)),typeof d){case"string":return i(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(s+=a,g=[],Ar.apply(d)==="[object Array]"){for(f=d.length,u=0;u<f;u+=1)g[u]=t(u,d)||"null";return l=g.length===0?"[]":s?"[\n"+s+g.join(",\n"+s)+"\n"+p+"]":"["+g.join(",")+"]",s=p,l}for(c in d)jn.call(d,c)&&(l=t(c,d),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 d=new SyntaxError(g);throw d.at=e,d.text=t,d},o=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=t.charAt(e),e+=1,n},s=function(){var g,d="";for(n==="-"&&(d="-",o("-"));n>="0"&&n<="9";)d+=n,o();if(n===".")for(d+=".";o()&&n>="0"&&n<="9";)d+=n;if(n==="e"||n==="E")for(d+=n,o(),(n==="-"||n==="+")&&(d+=n,o());n>="0"&&n<="9";)d+=n,o();if(g=+d,!isFinite(g))r("Bad number");else return g},a=function(){var g,d,y="",v;if(n==='"')for(;o();){if(n==='"')return o(),y;if(n==="\\")if(o(),n==="u"){for(v=0,d=0;d<4&&(g=parseInt(o(),16),!!isFinite(g));d+=1)v=v*16+g;y+=String.fromCharCode(v)}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,d={};if(n==="{"){if(o("{"),u(),n==="}")return o("}"),d;for(;n;){if(g=a(),u(),o(":"),Object.hasOwnProperty.call(d,g)&&r('Duplicate key "'+g+'"'),d[g]=l(),u(),n==="}")return o("}"),d;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 d;return t=g,e=0,n=" ",d=l(),u(),n&&r("Syntax error"),d}}(),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){D.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},h.cookie={get:function(e){for(var n=e+"=",i=Y.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(Y.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"),Y.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(Y.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 Y.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,Mr=function(e,n){return Lo!==null&&!n?Lo:Lo=Sc(e||E.localStorage)},Do=null,rg=function(e,n){return Do!==null&&!n?Do:Do=Sc(e||E.sessionStorage)};function Cc(e,n,i){var t=function(r){D.error(n+" error: "+r)};return{is_supported:function(r){var o=i(e,r);return o||D.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",Mr),h.sessionStorage=Cc(E.sessionStorage,"sessionStorage",rg),h.register_event=function(){var e=function(t,r,o,s,a){if(!t){D.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 ng=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(!Y.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,p,g,d,y,v=[Y];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],_=Y.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];v=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var w=a[1];for(u||(u="*"),c=[],l=0,p=0;p<v.length;p++)for(u=="*"?d=e(v[p]):d=v[p].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];for(v=[],y=0,p=0;p<c.length;p++)c[p].className&&h.isString(c[p].className)&&i(c[p],w)&&(v[y++]=c[p]);continue}var S=s.match(ng);if(S){u=S[1];var C=S[2],O=S[3],A=S[4];for(u||(u="*"),c=[],l=0,p=0;p<v.length;p++)for(u=="*"?d=e(v[p]):d=v[p].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];v=[],y=0;var k;switch(O){case"=":k=function(P){return P.getAttribute(C)==A};break;case"~":k=function(P){return P.getAttribute(C).match(new RegExp("\\b"+A+"\\b"))};break;case"|":k=function(P){return P.getAttribute(C).match(new RegExp("^"+A+"-?"))};break;case"^":k=function(P){return P.getAttribute(C).indexOf(A)===0};break;case"$":k=function(P){return P.getAttribute(C).lastIndexOf(A)==P.getAttribute(C).length-A.length};break;case"*":k=function(P){return P.getAttribute(C).indexOf(A)>-1};break;default:k=function(P){return P.getAttribute(C)}}for(v=[],y=0,p=0;p<c.length;p++)k(c[p])&&(v[y++]=c[p]);continue}for(u=s,c=[],l=0,p=0;p<v.length;p++)for(d=v[p].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];v=c}return v}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:t.call(this,r)}}();var ig=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],og=["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(ig,function(t){n=h.getQueryParam(Y.URL,t),n.length?i[t]=n:e!==void 0&&(i[t]=e)}),i},clickParams:function(){var e="",n={};return h.each(og,function(i){e=h.getQueryParam(Y.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,ct.vendor,Yn),$referrer:Y.referrer,$referring_domain:h.info.referringDomain(Y.referrer),$device:h.info.device(He)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(He,ct.vendor,Yn),$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,ct.vendor,Yn)}),{$browser_version:h.info.browserVersion(He,ct.vendor,Yn)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:Y.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 sg=function(e,n){var i=null,t=[];return function(r){var o=this;return t.push(r),i||(i=new q(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},ag=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,ug=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Ic=function(e){var n=ug,i=e.split("."),t=i[i.length-1];(t.length>4||t==="com"||t==="org")&&(n=ag);var r=e.match(n);return r?r[0]:""},cg=function(){var e=E.navigator.onLine;return h.isUndefined(e)||e},lt=function(){},Yt=null,Hn=null;typeof JSON!="undefined"&&(Yt=JSON.stringify,Hn=JSON.parse),Yt=Yt||h.JSONEncode,Hn=Hn||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=at;var lg="mixpanelBrowserDb",Ec="mixpanelRecordingEvents",Uo="mixpanelRecordingRegistry",fg=1,hg=[Ec,Uo],De=function(e){this.dbPromise=null,this.storeName=e};De.prototype._openDb=function(){return new q(function(e,n){var i=E.indexedDB.open(lg,fg);i.onerror=function(){n(i.error)},i.onsuccess=function(){e(i.result)},i.onupgradeneeded=function(t){var r=t.target.result;hg.forEach(function(o){r.createObjectStore(o)})}})},De.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof E.IDBDatabase?q.resolve():q.reject(e)})):q.reject("indexedDB is not supported in this browser")},De.prototype.isInitialized=function(){return!!this.dbPromise},De.prototype.makeTransaction=function(e,n){var i=this.storeName,t=function(r){return new q(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)):q.reject(r)}.bind(this))},De.prototype.setItem=function(e,n){return this.makeTransaction("readwrite",function(i){i.put(n,e)})},De.prototype.getItem=function(e){var n;return this.makeTransaction("readonly",function(i){n=i.get(e)}).then(function(){return n.result})},De.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(n){n.delete(e)})},De.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(n){e=n.getAll()}).then(function(){return e.result})};var pg="__mp_opt_in_out_";function dg(e,n){kc(!0,e,n)}function vg(e,n){kc(!1,e,n)}function gg(e,n){return Oc(e,n)==="1"}function xc(e,n){if(yg(n))return D.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&&D.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function ft(e){return Wo(e,function(n){return this.get_config(n)})}function ht(e){return Wo(e,function(n){return this._get_config(n)})}function Ht(e){return Wo(e,function(n){return this._get_config(n)})}function mg(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||pg)+e}function Oc(e,n){return Bo(n).get(zo(e,n))}function yg(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){D.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){D.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 _g=wt("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||q};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",d=function(w){if(new Date().getTime()-s>c){_g.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():d(function(){y(w,S)})},v=function(){var w=l.getItem(p);return w&&w!==o?!1:(l.setItem(p,o),l.getItem(p)===o?!0:(Mr(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,o),y(v,function(){if(l.getItem(f)===o){_();return}d(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(Mr(l,!0))m();else throw new Error("localStorage support check failed")}catch(w){r(w)}},this))};var Kt=function(e){this.storage=e||E.localStorage};Kt.prototype.init=function(){return q.resolve()},Kt.prototype.isInitialized=function(){return!0},Kt.prototype.setItem=function(e,n){return new q(h.bind(function(i,t){try{this.storage.setItem(e,Yt(n))}catch(r){t(r)}i()},this))},Kt.prototype.getItem=function(e){return new q(h.bind(function(n,i){var t;try{t=Hn(this.storage.getItem(e))}catch(r){i(r)}n(t)},this))},Kt.prototype.removeItem=function(e){return new q(h.bind(function(n,i){try{this.storage.removeItem(e)}catch(t){i(t)}n()},this))};var Ac=wt("batch"),ze=function(e,n){n=n||{},this.storageKey=e,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Kt,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=sg(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||!this.usePersistence?q.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),q.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)):q.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),Mr(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 q.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)):q.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)):q.resolve()};var bg=10*60*1e3,Tr=wt("batch"),Ne=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};Ne.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Ne.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ne.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ne.prototype.clear=function(){return this.queue.clear()},Ne.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ne.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ne.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ne.prototype.sendRequestPromise=function(e,n){return new q(h.bind(function(i){this.sendRequest(e,n,i)},this))},Ne.prototype.flush=function(e){if(this.requestInProgress)return Tr.log("Flush: Request already in progress"),q.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,d=f.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[d]}),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(),q.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(),q.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),q.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&&!cg()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(bg,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),q.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(),q.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(d){this.reportError("Error handling API response",d),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))},Ne.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},wg=250,Jt=wt("recorder"),Pc=E.CompressionStream,Sg={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Cg=new Set([T.MouseMove,T.MouseInteraction,T.Scroll,T.ViewportResize,T.Input,T.TouchMove,T.MediaInteraction,T.Drag,T.Selection]);function Ig(e){return e.type===W.IncrementalSnapshot&&Cg.has(e.data.source)}var ge=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||lt,this._onMaxLengthReached=e.onMaxLengthReached||lt,this._onBatchSent=e.onBatchSent||lt,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=Rr,this.recordMinMs=0;var n=Mr(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new De(Ec),this.batcher=new Ne(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Sg,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:wg,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){Jt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Rr&&(this.recordMaxMs=Rr,Jt.critical("record_max_ms cannot be greater than "+Rr+"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,Jt.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}Ig(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=ft(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===W.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(d){l.format="gzip",this._sendRequest(r,l,d,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),ge.prototype.reportError=function(e,n){Jt.error.apply(Jt.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,n)}catch(i){Jt.error(i)}};var Ke=function(e){this.idb=new De(Uo),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Ke.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Ke.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Ke.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return q.resolve();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."),q.resolve())},Ke.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?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)):q.resolve(null)},Ke.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Ke.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Ke.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):q.resolve()},Ke.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?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 q.all(n)}.bind(this)).catch(this.handleError.bind(this)):q.resolve([])};var Pr=wt("recorder"),Je=function(e,n,i){this.mixpanelInstance=e,this.rrwebRecord=n||ot,this.sharedLockStorage=i,this.recordingRegistry=new Ke({mixpanelInstance:this.mixpanelInstance,errorReporter:Pr.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Je.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())},Je.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))},Je.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Je.prototype._stopCurrentRecording=function(e,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(e);return n&&(this.activeRecording=null),i}return q.resolve()},Je.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),q.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))},Je.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Je.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Je.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),E.__mp_recorder=Je;var Kn="change",St="click",Nc="hashchange",Xt="mp_locationchange",$c="popstate",Lc="scrollend",Go="submit",Eg=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Dc=["mp-include"],Vo=["mp-no-track"],Fc=Vo.concat(["mp-sensitive"]),xg=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Se=wt("autocapture");function jo(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 Og(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(xg.concat(t),function(f){if(e.hasAttribute(f)&&!i[f]){var p=e.getAttribute(f);Jn(p)&&(s["$attr-"+f]=p)}});for(var u=1,c=1,l=e;l=Og(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function kg(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),Mg(p,e)&&Yo(p,e,i,t)&&!Ho(p,e,o,s)){for(var g=[p],d=p;d.parentNode&&!We(d,"body");)g.push(d.parentNode),d=d.parentNode;var y=[],v,m=!1;if(h.each(g,function(C){var O=Ko(C,e,i,t);!l.href&&C.tagName.toLowerCase()==="a"&&(v=C.getAttribute("href"),v=O&&Jn(v)&&v),Ho(C,e,o,s)&&(m=!0),y.push(Bc(C,e,l,u,i,t))},this),!m){var _=Y.documentElement;if(f={$event_type:e.type,$host:E.location.host,$pathname:E.location.pathname,$elements:y,$el_attr__href:v,$viewportHeight:Math.max(_.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,E.innerWidth||0),$pageHeight:Y.body.offsetHeight||0,$pageWidth:Y.body.offsetWidth||0},h.each(u,function(C){if(!l[C]&&p.hasAttribute(C)){var O=p.getAttribute(C);Jn(O)&&(f["$el_attr__"+C]=O)}}),a&&(w=zc(p,e,i,t),w&&w.length&&(f.$el_text=w)),e.type===St&&(h.each(Eg,function(C){C in e&&(f["$"+C]=e[C])}),c&&(f.$captured_for_heatmap=!0),p=Rg(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(Jn).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function Rg(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=jo(e);for(r=0;r<Vo.length;r++)if(s[Vo[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 Ag(){try{var e=Y.createElement("div");return!!e.matches}catch(n){return!1}}function Mg(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===Kn:n.type===St;case"select":case"textarea":return n.type===Kn;default:return n.type===St}}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=jo(o);for(r=0;r<Fc.length;r++)if(s[Fc[r]])return!1}var a=jo(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 Jn(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 Tg=30,Pg=1e3,Ng=4;function Gc(){this.clicks=[]}Gc.prototype.isRageClick=function(e,n,i){i=i||{};var t=i.threshold_px||Tg,r=i.timeout_ms||Pg,o=i.click_count||Ng,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 Vc="autocapture",$g="track_pageview",jc="full-url",Lg="url-with-path-and-query-string",Dg="url-with-path",Fg="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",Xn="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[Xn]=!0,de[Jo]=!0,de[nl]=jc,de[il]=!0,de[Xo]=!0,de[Zo]=!0;var Zn={$mp_autocapture:!0},ol="$mp_click",Ug="$mp_input_change",sl="$mp_rage_click",Bg="$mp_scroll",zg="$mp_submit",Ce=function(e){this.mp=e};Ce.prototype.init=function(){if(!Ag()){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(Vc);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(Vc)?this.getConfig(nl):this.mp.get_config($g)},Ce.prototype.trackDomEvent=function(e,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===ol&&!this.getConfig(Xn)||n===sl&&!this._getRageClickConfig()),t=kg(e,{allowElementCallback:this.getConfig(Fg),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,Zn),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(St,this.listenerClick),!(!this.getConfig(Xn)&&!this.mp.get_config("record_heatmap_data"))&&(Se.log("Initializing click tracking"),this.listenerClick=E.addEventListener(St,function(e){!this.getConfig(Xn)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,ol)}.bind(this)))},Ce.prototype.initInputTracking=function(){E.removeEventListener(Kn,this.listenerChange),this.getConfig(Jo)&&(Se.log("Initializing input tracking"),this.listenerChange=E.addEventListener(Kn,function(e){this.getConfig(Jo)&&this.trackDomEvent(e,Ug)}.bind(this)))},Ce.prototype.initPageviewTracking=function(){if(E.removeEventListener($c,this.listenerPopstate),E.removeEventListener(Nc,this.listenerHashchange),E.removeEventListener(Xt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){Se.log("Initializing pageview tracking");var e="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(Zn)),n&&(e=h.info.currentUrl()),this.listenerPopstate=E.addEventListener($c,function(){E.dispatchEvent(new Event(Xt))}),this.listenerHashchange=E.addEventListener(Nc,function(){E.dispatchEvent(new Event(Xt))});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(Xt))});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(Xt))}),this.listenerLocationchange=E.addEventListener(Xt,$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===jc?o=r!==e:a===Lg?o=r.split("#")[0]!==e.split("#")[0]:a===Dg&&(o=s),o){var u=this.mp.track_pageview(Zn);u&&(e=r),s&&(this.lastScrollCheckpoint=0,Se.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)))}},Ce.prototype.initRageClickTracking=function(){E.removeEventListener(St,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(St,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},Zn);try{var r=Y.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(Bg,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,zg)}.bind(this)))},bc(Ce);var Wg=E.fetch,Ie=wt("flags"),Qn="flags",ei="context",Qo={};Qo[ei]={};var z=function(e){this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};z.prototype.init=function(){if(!qg()){Ie.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},z.prototype.getFullConfig=function(){var e=this.getMpConfig(Qn);return e?h.isObject(e)?h.extend({},Qo,e):Qo:{}},z.prototype.getConfig=function(e){return this.getFullConfig()[e]},z.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Qn)},z.prototype.updateContext=function(e,n){if(!this.isSystemEnabled())return Ie.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(Qn);h.isObject(i)||(i={});var t=n&&n.replace?{}:this.getConfig(ei);return i[ei]=h.extend({},t,e),this.setMpConfig(Qn,i),this.fetchFlags()},z.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ie.error("Feature Flags not enabled"),!!this.flags},z.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(ei))};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},z.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},z.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)})},z.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)},z.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})},z.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)},z.prototype.getVariantValueSync=function(e,n){return this.getVariantSync(e,{value:n}).value},z.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})},z.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},z.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 qg(){return!!Wg&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"}bc(z),z.prototype.are_flags_ready=z.prototype.areFlagsReady,z.prototype.get_variant=z.prototype.getVariant,z.prototype.get_variant_sync=z.prototype.getVariantSync,z.prototype.get_variant_value=z.prototype.getVariantValue,z.prototype.get_variant_value_sync=z.prototype.getVariantValueSync,z.prototype.is_enabled=z.prototype.isEnabled,z.prototype.is_enabled_sync=z.prototype.isEnabledSync,z.prototype.update_context=z.prototype.updateContext,z.prototype.get_feature_data=z.prototype.getFeatureData;var Xe=function(){};Xe.prototype.create_properties=function(){},Xe.prototype.event_handler=function(){},Xe.prototype.after_track_handler=function(){},Xe.prototype.init=function(e){return this.mp=e,this},Xe.prototype.track=function(e,n,i,t){var r=this,o=h.dom_query(e);if(o.length===0){D.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},Xe.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))}},Xe.prototype.create_properties=function(e,n){var i;return typeof e=="function"?i=e(n):i=h.extend({},e),i};var Zt=function(){this.override_event="click"};h.inherit(Zt,Xe),Zt.prototype.create_properties=function(e,n){var i=Zt.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},Zt.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()},Zt.prototype.after_track_handler=function(e,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var ti=function(){this.override_event="submit"};h.inherit(ti,Xe),ti.prototype.event_handler=function(e,n,i){i.element=n,e.preventDefault()},ti.prototype.after_track_handler=function(e,n){setTimeout(function(){n.element.submit()},0)};var pt="$set",Qt="$set_once",Fe="$unset",Ct="$add",qe="$append",It="$union",Ze="$remove",Gg="$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[pt]=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[Fe]=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[Qt]=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[It]=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[Ze]=t,i},delete_action:function(){var e={};return e[Gg]="",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=Ht(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=Ht(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=Ht(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),ne.prototype.union=Ht(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=Ht(function(e){var n=this.delete_action();return this._send_request(n,e)}),ne.prototype.remove=Ht(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=ht(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[pt]=h.extend({},h.info.people_properties(),t[pt]),this._send_request(t,i)}),N.prototype.set_once=ht(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=ht(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),N.prototype.increment=ht(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))){D.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[Ct]=r,this._send_request(t,i)}),N.prototype.append=ht(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=ht(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=ht(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=ht(function(){D.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()){D.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){pt in e?this._mixpanel.persistence._add_to_people_queue(pt,e):Qt in e?this._mixpanel.persistence._add_to_people_queue(Qt,e):Fe in e?this._mixpanel.persistence._add_to_people_queue(Fe,e):Ct in e?this._mixpanel.persistence._add_to_people_queue(Ct,e):qe in e?this._mixpanel.persistence._add_to_people_queue(qe,e):Ze in e?this._mixpanel.persistence._add_to_people_queue(Ze,e):It in e?this._mixpanel.persistence._add_to_people_queue(It,e):D.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(pt,this.set,e),this._flush_one_queue(Qt,this.set_once,t),this._flush_one_queue(Fe,this.unset,o,function(v){return h.keys(v)}),this._flush_one_queue(Ct,this.increment,n),this._flush_one_queue(It,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(v,m){v===0&&a._mixpanel.persistence._add_to_people_queue(qe,c),h.isUndefined(i)||i(v,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(Ze);if(!h.isUndefined(p)&&h.isArray(p)&&p.length)for(var g,d=function(v,m){v===0&&a._mixpanel.persistence._add_to_people_queue(Ze,g),h.isUndefined(s)||s(v,m)},y=p.length-1;y>=0;y--)p=this._mixpanel.persistence.load_queue(Ze),g=p.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(g)||a.remove(g,d)},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",ri="__alias",Nr="__timers",Vg=[es,ts,rs,ns,is,os,ss,ul,ri,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"&&(D.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(Vg,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,Yt(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(pt),o=this._get_or_create_queue(Qt),s=this._get_or_create_queue(Fe),a=this._get_or_create_queue(Ct),u=this._get_or_create_queue(It),c=this._get_or_create_queue(Ze,[]),l=this._get_or_create_queue(qe,[]);i===es?(h.extend(r,t),this._pop_from_people_queue(Ct,t),this._pop_from_people_queue(It,t),this._pop_from_people_queue(Fe,t)):i===ts?(h.each(t,function(f,p){p in o||(o[p]=f)}),this._pop_from_people_queue(Fe,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(Fe,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(Fe,t)):i===os?(c.push(t),this._pop_from_people_queue(qe,t)):i===is&&(l.push(t),this._pop_from_people_queue(Fe,t)),D.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),D.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===Ze?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===pt)return es;if(e===Qt)return ts;if(e===Fe)return rs;if(e===Ct)return ns;if(e===qe)return is;if(e===Ze)return os;if(e===It)return ss;D.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,Yg=function(e){return e},Re="mixpanel",fl="base64",Hg="json",us="$device:",er=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,hl=!er&&He.indexOf("MSIE")===-1&&He.indexOf("Mozilla")===-1,ni=null;ct.sendBeacon&&(ni=function(){return ct.sendBeacon.apply(ct,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:lt,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:lt,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:Rr,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},vl=!1,b=function(){},ii=function(e,n,i){var t,r=i===Re?fe:fe[i];if(r&&as===jg)t=r;else{if(r&&!h.isArray(r)){D.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===Re){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var t=ii(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=Hg)}if(this.set_config(h.extend({},dl,t,n,{name:i,token:e,callback_fn:(i===Re?i:Re+"."+i)+"._jsc"})),this._jsc=lt,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)||!er)this._batch_requests=!1,D.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(a){D.log("Clearing batch queue "+a.queue_key),h.localStorage.remove(a.queue_key)});else if(this.init_batchers(),ni&&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(){Y.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 z({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(this.get_config("disable_persistence"))D.log("Tab ID initialization skipped due to disable_persistence config");else 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(){if(this.get_config("disable_persistence"))return D.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new De(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=ft(function(e){if(!E.MutationObserver){D.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(Y.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(Y.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(er){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||{}),er||(i.method="GET");var a=i.method==="POST",u=ni&&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),er||(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=Y.createElement("img");f.src=e,Y.body.appendChild(f)}else if(u){try{r=ni(e,s)}catch(m){l.report_error(m),r=!1}try{t&&t(r?1:0)}catch(m){l.report_error(m)}}else if(er)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 d=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()-d>=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=Y.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=e;var v=Y.getElementsByTagName("script")[0];v.parentNode.insertBefore(y,v)}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 Ne(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=Yt(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||lt;var a=!0,u=h.bind(function(){return s.skip_hooks||(i=this._run_hook("before_send_"+e.type,i)),i?(D.log("MIXPANEL REQUEST:"),D.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=ft(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=lt),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=ft(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=ft(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=ft(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=ft(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=ft(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,Zt,arguments)},b.prototype.track_forms=function(){return this._track_dom.call(this,ti,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 Kg={persistent:!0},cs=function(e){var n;return h.isObject(e)?n=e:h.isUndefined(e)?n={}:n={days:e},h.extend({},Kg,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(ri)&&(this.unregister(ri),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(ri,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]||Yg).apply(this,ut.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!==Re&&(e=Re+"."+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(dg,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(vg,e),this._gdpr_update_persistence(e)},b.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(gg,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(mg,e),this._gdpr_update_persistence(e)},b.prototype.report_error=function(e,n){D.error.apply(D.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,n)}catch(i){D.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 dt={},Jg=function(){h.each(dt,function(e,n){n!==Re&&(fe[n]=e)}),fe._=h},Xg=function(){fe.init=function(e,n,i){if(i)return fe[i]||(fe[i]=dt[i]=ii(e,n,i),fe[i]._loaded()),fe[i];var t=fe;dt[Re]?t=dt[Re]:e&&(t=ii(e,n,Re),t._loaded(),dt[Re]=t),fe=t,as===ll&&(E[Re]=fe),Jg()}},Zg=function(){function e(){e.done||(e.done=!0,vl=!0,hl=!1,h.each(dt,function(t){t._dom_loaded()}))}function n(){try{Y.documentElement.doScroll("left")}catch(t){setTimeout(n,1);return}e()}if(Y.addEventListener)Y.readyState==="complete"?e():Y.addEventListener("DOMContentLoaded",e,!1);else if(Y.attachEvent){Y.attachEvent("onreadystatechange",e);var i=!1;try{i=E.frameElement===null}catch(t){}Y.documentElement.doScroll&&i&&n()}h.register_event(E,"load",e,!0)};function Qg(e){if(cl=e,as=ll,fe=E[Re],h.isUndefined(fe)){D.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){D.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){D.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)&&(dt[i[i.length-1]]=ii.apply(this,i))}),Xg(),fe.init(),h.each(dt,function(i){i._loaded()}),Zg()}function em(e,n){n()}Qg(em)})();
|