try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ccbc269c-163b-49ad-b8cc-2a3c92006560",e._sentryDebugIdIdentifier="sentry-dbid-ccbc269c-163b-49ad-b8cc-2a3c92006560")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9933],{8390:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ag});var n,i,o,s=r(44134).hp,a=r(87358);if("undefined"==typeof window){var c={hostname:""};n9={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:c,referrer:""},screen:{width:0,height:0},location:c,addEventListener:function(){},removeEventListener:function(){}}}else n9=window;function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(i[r]=e[r]);return i}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_(r,e)})(e)}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}function S(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,void 0)}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){var c=[o,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,n=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var x=Object.defineProperty,E=function(e,t,r){var n;return n=(void 0===t?"undefined":b(t))!=="symbol"?t+"":t,n in e?x(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},O=Object.defineProperty,M=function(e,t,r){var n;return n=(void 0===t?"undefined":b(t))!=="symbol"?t+"":t,n in e?O(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},R=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}(R||{}),A={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},T={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},N={};function P(e){if(N[e])return N[e];var t=globalThis[e],r=t.prototype,n=e in A?A[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in T?T[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return N[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return N[e]=u}catch(e){return r}}var D={};function L(e,t,r){var n,i=e+"."+String(r);if(D[i])return D[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(P(e),r))?void 0:n.get;return o?(D[i]=o,o.call(t)):t[r]}var F={childNodes:function(e){return L("Node",e,"childNodes")},parentNode:function(e){return L("Node",e,"parentNode")},parentElement:function(e){return L("Node",e,"parentElement")},textContent:function(e){return L("Node",e,"textContent")},host:function(e){return e&&"host"in e?L("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?L("Element",e,"shadowRoot"):null}};function U(e){return e.nodeType===e.ELEMENT_NODE}function B(e){var t=e&&"host"in e&&"mode"in e&&F.host(e)||null;return!!(t&&"shadowRoot"in t&&F.shadowRoot(t)===e)}function j(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function q(e){try{var t,r=e.rules||e.cssRules;if(!r)return null;var n=e.href;return!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href),(t=Array.from(r,function(e){return z(e,n)}).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function z(e,t){if("styleSheet"in e){var r;try{r=q(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?Q(r,e.styleSheet.href):r}var n=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?Q(n,t):n}var W=function(){function e(){M(this,"idNodeMap",new Map),M(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function V(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&$(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function $(e){return e.toLowerCase()}var G="__rrweb_original__";function Y(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?$(t):null}function Z(e,t){try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var J=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,H=/^(?:[a-z+]+:)?\/\//i,X=/^www\..*/i,K=/^(data:)([^,]*),(.*)/i;function Q(e,t){return(e||"").replace(J,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(H.test(a)||X.test(a)||K.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var p,h,f=S(l);!(h=f()).done;){var d=h.value;"."!==d&&(".."===d?u.pop():u.push(d))}return"url("+c+u.join("/")+c+")"})}function ee(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}var et=1,er=RegExp("[^a-z0-9-_:]");function en(){return et++}var ei=/^[^ \t\n\r\u000c]+/,eo=/^[, \t\n\r\u000c]+/,es=new WeakMap;function ea(e,t){return t&&""!==t.trim()?ec(e,t):t}function ec(e,t){var r=es.get(e);if(r||(r=e.createElement("a"),es.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eu(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return ea(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return ea(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(eo),!(r>=t.length);){var o=n(ei);if(","===o.slice(-1))o=ea(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=ea(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else if(","===c){r+=1,i.push((o+s).trim());break}else"("===c&&(a=!0);s+=c,r+=1}}}return i.join(", ")}(e,n);if("style"===r)return Q(n,ec(e));else if("object"===t&&"data"===r)return ea(e,n);return n}function el(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ep(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ep(F.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ep(F.parentNode(e),t,r)}function eh(e,t,r,n){var i;if(U(e)){if(i=e,!F.childNodes(i).length)return!1}else{if(null===F.parentElement(e))return!1;i=F.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(ep(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function ef(e){return null==e?"":e.toLowerCase()}function ed(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,p=void 0===l||l,h=t.maskInputOptions,f=void 0===h?{}:h,d=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,y=t.dataURLOptions,_=void 0===y?{}:y,b=t.inlineImages,w=void 0!==b&&b,k=t.recordCanvas,C=void 0!==k&&k,I=t.onSerialize,x=t.onIframeLoad,E=t.iframeLoadTimeout,O=void 0===E?5e3:E,M=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,T=void 0===A?5e3:A,N=t.keepIframeSrcFn,P=void 0===N?function(){return!1}:N,D=t.newlyAddedElement,L=t.cssCaptured,z=t.needsMask,W=t.preserveWhiteSpace,J=void 0===W||W;z||(z=eh(e,s,a,void 0===z));var H=function(e,t){var r,n,i,o,s,a,c,u,l,p,h,f=t.doc,d=t.mirror,m=t.blockClass,g=t.blockSelector,y=t.needsMask,_=t.inlineStylesheet,b=t.maskInputOptions,w=t.maskTextFn,k=t.maskInputFn,S=t.dataURLOptions,C=t.inlineImages,I=t.recordCanvas,x=t.keepIframeSrcFn,E=t.newlyAddedElement,O=t.cssCaptured,M=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(f,d);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:R.Document,childNodes:[],compatMode:e.compatMode};return{type:R.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:R.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:M};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,p=void 0===l?{}:l,h=t.inlineImages,f=t.recordCanvas,d=t.keepIframeSrcFn,m=t.newlyAddedElement,g=t.rootId,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,o),_=function(e){if(v(e,HTMLFormElement))return"form";var t=$(e.tagName);return er.test(t)?"div":t}(e),b={},w=e.attributes.length,k=0;k1&&(x=(function(e,t){var r=Array.from(t.childNodes),n=[];if(r.length>1&&e&&"string"==typeof e){for(var i=ee(e),o=1;o",N=e.crossOrigin,P=function(){e.removeEventListener("load",P);try{n5.width=e.naturalWidth,n5.height=e.naturalHeight,n6.drawImage(e,0,0),b.rr_dataURL=n5.toDataURL(p.type,p.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?P():e.addEventListener("load",P);return}console.warn("Cannot inline img src="+T+"! Error: "+t)}"anonymous"===e.crossOrigin&&(N?b.crossOrigin=N:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?P():e.addEventListener("load",P)}if("audio"===_||"video"===_){var D=b;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}if(!(void 0!==m&&m)&&(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var L=e.getBoundingClientRect(),F=L.width,U=L.height;b={class:b.class,rr_width:""+F+"px",rr_height:""+U+"px"}}"iframe"!==_||d(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(_)&&(r=!0)}catch(e){}return{type:R.Element,tagName:_,attributes:b,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:y,rootId:g,isCustom:r}}(e,{doc:f,blockClass:m,blockSelector:g,inlineStylesheet:_,maskInputOptions:void 0===b?{}:b,maskInputFn:k,dataURLOptions:void 0===S?{}:S,inlineImages:C,recordCanvas:I,keepIframeSrcFn:x,newlyAddedElement:void 0!==E&&E,rootId:M});case e.TEXT_NODE:return r=e,i=(n={doc:f,needsMask:y,maskTextFn:w,rootId:M,cssCaptured:void 0!==O&&O}).needsMask,o=n.maskTextFn,s=n.rootId,a=n.cssCaptured,u=(c=F.parentNode(r))&&c.tagName,l="",p="STYLE"===u||void 0,(h="SCRIPT"===u||void 0)?l="SCRIPT_PLACEHOLDER":!a&&(l=F.textContent(r),p&&l&&(l=Q(l,ec(n.doc)))),!p&&!h&&l&&i&&(l=o?o(l,F.parentElement(r)):l.replace(/[\S]/g,"*")),{type:R.Text,textContent:l||"",rootId:s};case e.CDATA_SECTION_NODE:return{type:R.CDATA,textContent:"",rootId:M};case e.COMMENT_NODE:return{type:R.Comment,textContent:F.textContent(e)||"",rootId:M};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:m,dataURLOptions:_,inlineImages:w,recordCanvas:C,keepIframeSrcFn:P,newlyAddedElement:void 0!==D&&D,cssCaptured:void 0!==L&&L});if(!H)return console.warn(e,"not serialized"),null;eo=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===R.Comment)return!0;if(e.type===R.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Z(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ef(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ef(e.attributes.name)||"icon"===ef(e.attributes.rel)||"apple-touch-icon"===ef(e.attributes.rel)||"shortcut icon"===ef(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&ef(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(ef(e.attributes.property).match(/^(og|twitter|fb):/)||ef(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ef(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===ef(e.attributes.name)||"googlebot"===ef(e.attributes.name)||"bingbot"===ef(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ef(e.attributes.name)||"generator"===ef(e.attributes.name)||"framework"===ef(e.attributes.name)||"publisher"===ef(e.attributes.name)||"progid"===ef(e.attributes.name)||ef(e.attributes.property).match(/^article:/)||ef(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ef(e.attributes.name)||"yandex-verification"===ef(e.attributes.name)||"csrf-token"===ef(e.attributes.name)||"p:domain_verify"===ef(e.attributes.name)||"verify-v1"===ef(e.attributes.name)||"verification"===ef(e.attributes.name)||"shopify-checkout-api-token"===ef(e.attributes.name)))return!0}}return!1}(H,g)&&(J||H.type!==R.Text||H.textContent.replace(/^\s+|\s+$/gm,"").length)?en():-2;var X=Object.assign(H,{id:eo});if(n.add(e,X),-2===eo)return null;I&&I(e);var K=!u;if(X.type===R.Element){K=K&&!X.needBlock,delete X.needBlock;var et=F.shadowRoot(e);et&&j(et)&&(X.isShadowHost=!0)}if((X.type===R.Document||X.type===R.Element)&&K){g.headWhitespace&&X.type===R.Element&&"head"===X.tagName&&(J=!1);var ei={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:m,slimDOMOptions:g,dataURLOptions:_,inlineImages:w,recordCanvas:C,preserveWhiteSpace:J,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:P,cssCaptured:!1};if(X.type===R.Element&&"textarea"===X.tagName&&void 0!==X.attributes.value);else{X.type===R.Element&&void 0!==X.attributes._cssText&&"string"==typeof X.attributes._cssText&&(ei.cssCaptured=!0);for(var eo,es,ea=S(Array.from(F.childNodes(e)));!(es=ea()).done;){var ep=ed(es.value,ei);ep&&X.childNodes.push(ep)}}var em=null;if(U(e)&&(em=F.shadowRoot(e)))for(var eg,ev=S(Array.from(F.childNodes(em)));!(eg=ev()).done;){var ey=ed(eg.value,ei);ey&&(j(em)&&(ey.isShadow=!0),X.childNodes.push(ey))}}var e_=F.parentNode(e);return e_&&B(e_)&&j(e_)&&(X.isShadow=!0),X.type===R.Element&&"iframe"===X.tagName&&function(e,t,r){var n,i=e.contentWindow;if(i){var o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){var s=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(s),o=!0,t()});return}var a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,function(){var t=e.contentDocument;if(t&&x){var r=ed(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:z,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:m,slimDOMOptions:g,dataURLOptions:_,inlineImages:w,recordCanvas:C,preserveWhiteSpace:J,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:P});r&&x(e,r)}},O),X.type===R.Element&&"link"===X.tagName&&"string"==typeof X.attributes.rel&&("stylesheet"===X.attributes.rel||"preload"===X.attributes.rel&&"string"==typeof X.attributes.href&&"css"===Z(X.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(M){var t=ed(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskTextFn:d,maskInputFn:m,slimDOMOptions:g,dataURLOptions:_,inlineImages:w,recordCanvas:C,preserveWhiteSpace:J,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:P});t&&M(e,t)}},T),X}var em={exports:{}},eg=String,ev=function(){return{isColorSupported:!1,reset:eg,bold:eg,dim:eg,italic:eg,underline:eg,inverse:eg,hidden:eg,strikethrough:eg,black:eg,red:eg,green:eg,yellow:eg,blue:eg,magenta:eg,cyan:eg,white:eg,gray:eg,bgBlack:eg,bgRed:eg,bgGreen:eg,bgYellow:eg,bgBlue:eg,bgMagenta:eg,bgCyan:eg,bgWhite:eg}};em.exports=ev(),em.exports.createColors=ev;var ey=em.exports,e_=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eb=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}g(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=ey.isColorSupported),e_&&e&&(i=e_(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=ey.createColors(!0),l=u.bold,p=u.gray,h=u.red;t=function(e){return l(h(e))},r=function(e){return p(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error));eb.default=eb;var ew={};ew.isClean=Symbol("isClean"),ew.my=Symbol("my");var ek={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},eS=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function eC(e,t){new eS(t).stringify(e)}eS.default=eS,eC.default=eC;var eI=ew.isClean,ex=ew.my,eE=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[eI]=!1,this[ex]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":b(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new eb(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[eI]){this[eI]=!1;for(var e=this;e=e.parent;)e[eI]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=eN(e),eA(e))return this.mapFile=e,eT(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(v(t,eM))return eR.fromSourceMap(t).toString();else if(v(t,eR))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=eP(eN(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();eD.default=eD;var eL=e_.SourceMapConsumer,eF=e_.SourceMapGenerator,eU=e_.fileURLToPath,eB=e_.pathToFileURL,ej=e_.isAbsolute,eq=e_.resolve,ez=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},eW=Symbol("fromOffsetCache"),eV=!!(eL&&eF),e$=!!(eq&&ej),eG=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":b(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!e$||/^\w+:\/\//.test(t.from)||ej(t.from)?this.file=t.from:this.file=eq(t.from)),e$&&eV){var r=new eD(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":b(t))==="object"){var i,o,s,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new eb(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new eb(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(eB&&(i.input.url=eB(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[eW])a=this[eW];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o>1)])u=c-1;else if(e>=a[c+1])o=c+1;else{o=c;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:eq(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=ej(a.source)?eB(a.source):new URL(a.source,this.map.consumer().sourceRoot||eB(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(eU)c.file=eU(o);else throw Error("file: protocol is not available in this PostCSS build");var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),e1&&e0&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=eZ.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new eZ({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)):""});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]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new eZ({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=r.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(s.source=r.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?eJ(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=eJ(eX(r,this.mapOpts.annotation)));var n=eH(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new eG(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return s?s.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(eQ){var r=eQ(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===eK&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),e3=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return g(t,e),t}(eE);e3.default=e3;var e9=ew.isClean,e4=ew.my,e5=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r1?t-1:0),i=1;i=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){(!t.props||t.props.includes(n.prop))&&(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},f(t,[{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]}}]),t}(eE);e5.registerParse=function(e){n8=e},e5.registerRule=function(e){n7=e},e5.registerAtRule=function(e){ie=e},e5.registerRoot=function(e){it=e},e5.default=e5,e5.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ie.prototype):"rule"===e.type?Object.setPrototypeOf(e,n7.prototype):"decl"===e.type?Object.setPrototypeOf(e,eO.prototype):"comment"===e.type?Object.setPrototypeOf(e,e3.prototype):"root"===e.type&&Object.setPrototypeOf(e,it.prototype),e[e4]=!0,e.nodes&&e.nodes.forEach(function(e){e5.rebuild(e)})};var e6=function(e){function t(t){var r;return(r=e.call(this,d({type:"document"},t))||this).nodes||(r.nodes=[]),r}return g(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new ir(new ii,this,e).stringify()},t}(e5);e6.registerLazyResult=function(e){ir=e},e6.registerProcessor=function(e){ii=e},e6.default=e6;var e8=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,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 n in t)this[n]=t[n]}return e.prototype.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}();e8.default=e8;var e7=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new e8(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},f(e,[{key:"content",get:function(){return this.css}}]),e}();e7.default=e7;var te=/[\t\n\f\r "#'()/;[\\\]{}]/g,tt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tr=/.[\r\n"'(/\\]/,tn=/[\da-f]/i,ti=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}g(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new io(new is,this,e).stringify()},t}(e5);to.registerLazyResult=function(e){io=e},to.registerProcessor=function(e){is=e},to.default=to,e5.registerRoot(to);var ts={comma:function(e){return ts.split(e,[","],!0)},space:function(e){return ts.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,p=S(e);!(n=p()).done;){var h=n.value;l?l=!1:"\\"===h?l=!0:c?h===u&&(c=!1):'"'===h||"'"===h?(c=!0,u=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}};ts.default=ts;var ta=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return g(t,e),f(t,[{key:"selectors",get:function(){return ts.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(e5);ta.default=ta,e5.registerRule(ta);var tc=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,p,h=e.css.valueOf(),f=t.ignoreErrors,d=h.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=d},nextToken:function(e){if(v.length)return v.pop();if(!(m>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,r=h.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);p=["space",h.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);p=[_,_,m];break;case 40:if(u=g.length?g.pop()[1]:"",l=h.charCodeAt(m+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=m;do{if(a=!1,-1===(n=h.indexOf(")",n+1)))if(f||t){n=m;break}else y("bracket");for(c=n;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["brackets",h.slice(m,n+1),m,n],m=n}else n=h.indexOf(")",m+1),o=h.slice(m,n+1),-1===n||tr.test(o)?p=["(","(",m]:(p=["brackets",o,m,n],m=n);break;case 39:case 34:i=39===r?"'":'"',n=m;do{if(a=!1,-1===(n=h.indexOf(i,n+1)))if(f||t){n=m+1;break}else y("string");for(c=n;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["string",h.slice(m,n+1),m,n],m=n;break;case 64:te.lastIndex=m+1,te.test(h),n=0===te.lastIndex?h.length-1:te.lastIndex-2,p=["at-word",h.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,s=!0;92===h.charCodeAt(n+1);)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,tn.test(h.charAt(n)))){for(;tn.test(h.charAt(n+1));)n+=1;32===h.charCodeAt(n+1)&&(n+=1)}p=["word",h.slice(m,n+1),m,n],m=n;break;default:47===r&&42===h.charCodeAt(m+1)?(0===(n=h.indexOf("*/",m+2)+1)&&(f||t?n=h.length:y("comment")),p=["comment",h.slice(m,n+1),m,n]):(tt.lastIndex=m+1,tt.test(h),n=0===tt.lastIndex?h.length-1:tt.lastIndex-2,p=["word",h.slice(m,n+1),m,n],g.push(p)),m=n}return m++,p}},position:function(){return m}}},tu={empty:!0,space:!0},tl=function(){function e(e){this.input=e,this.root=new to,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new ti;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=S(e.entries());!(n=o()).done;){var s=n.value,a=s[0],c=s[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new e3;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=tc(this.input)},t.decl=function(e,t){var r,n,i=new eO;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),p="",h=c;h>0;h--){var f=l[h][0];if(0===p.trim().indexOf("!")&&"space"!==f)break;p=l.pop()[1]+p}0===p.trim().indexOf("!")&&(i.important=!0,i.raws.important=p,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new ta;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,p=0;p0},t.runAsync=function(){var e=this;return p(function(){var t,r,n,i,o,s,a,c,u,l,p,h;return C(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t0))return[3,13];if(!tv(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return C(this,function(s){switch(s.label){case 0:r=(t=h.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},p=S(e.listeners.OnceExit),f.label=15;case 15:if((h=p()).done)return[3,18];return[5,I(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":b(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(tv(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=eC;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new e2(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.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 e,t=S(this.plugins);!(e=t()).done;){var r=e.value;if(tv(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[th];)n[th]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=S(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(tv(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=tN.isColorSupported),tP&&e&&(i=tP(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=tN.createColors(!0),l=u.bold,p=u.gray,h=u.red;t=function(e){return l(h(e))},r=function(e){return p(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error));tD.default=tD;var tL={};tL.isClean=Symbol("isClean"),tL.my=Symbol("my");var tF={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},tU=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function tB(e,t){new tU(t).stringify(e)}tU.default=tU,tB.default=tB;var tj=tL.isClean,tq=tL.my,tz=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[tj]=!1,this[tq]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":b(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new tD(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[tj]){this[tj]=!1;for(var e=this;e=e.parent;)e[tj]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=tZ(e),tG(e))return this.mapFile=e,tY(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(v(t,tV))return t$.fromSourceMap(t).toString();else if(v(t,t$))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=tJ(tZ(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();tH.default=tH;var tX=tP.SourceMapConsumer,tK=tP.SourceMapGenerator,tQ=tP.fileURLToPath,t0=tP.pathToFileURL,t1=tP.isAbsolute,t2=tP.resolve,t3=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},t9=Symbol("fromOffsetCache"),t4=!!(tX&&tK),t5=!!(t2&&t1),t6=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":b(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!t5||/^\w+:\/\//.test(t.from)||t1(t.from)?this.file=t.from:this.file=t2(t.from)),t5&&t4){var r=new tH(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":b(t))==="object"){var i,o,s,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var h=this.origin(t,r,o,s);return(i=h?new tD(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,n.plugin):new tD(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(t0&&(i.input.url=t0(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[t9])a=this[t9];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o>1)])u=c-1;else if(e>=a[c+1])o=c+1;else{o=c;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:t2(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=t1(a.source)?t0(a.source):new URL(a.source,this.map.consumer().sourceRoot||t0(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(tQ)c.file=tQ(o);else throw Error("file: protocol is not available in this PostCSS build");var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),rs&&ro&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t7.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new t7({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)):""});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]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new t7({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=r.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(s.source=r.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?re(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=re(rr(r,this.mapOpts.annotation)));var n=rt(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new t6(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return s?s.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(ri){var r=ri(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===rn&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),rc=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return g(t,e),t}(tz);rc.default=rc;var ru=tL.isClean,rl=tL.my,rp=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r1?t-1:0),i=1;i=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){(!t.props||t.props.includes(n.prop))&&(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},f(t,[{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]}}]),t}(tz);rp.registerParse=function(e){ia=e},rp.registerRule=function(e){ic=e},rp.registerAtRule=function(e){iu=e},rp.registerRoot=function(e){il=e},rp.default=rp,rp.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,iu.prototype):"rule"===e.type?Object.setPrototypeOf(e,ic.prototype):"decl"===e.type?Object.setPrototypeOf(e,tW.prototype):"comment"===e.type?Object.setPrototypeOf(e,rc.prototype):"root"===e.type&&Object.setPrototypeOf(e,il.prototype),e[rl]=!0,e.nodes&&e.nodes.forEach(function(e){rp.rebuild(e)})};var rh=function(e){function t(t){var r;return(r=e.call(this,d({type:"document"},t))||this).nodes||(r.nodes=[]),r}return g(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new ip(new ih,this,e).stringify()},t}(rp);rh.registerLazyResult=function(e){ip=e},rh.registerProcessor=function(e){ih=e},rh.default=rh;var rf=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,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 n in t)this[n]=t[n]}return e.prototype.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}();rf.default=rf;var rd=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new rf(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},f(e,[{key:"content",get:function(){return this.css}}]),e}();rd.default=rd;var rm=/[\t\n\f\r "#'()/;[\\\]{}]/g,rg=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rv=/.[\r\n"'(/\\]/,ry=/[\da-f]/i,r_=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}g(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new id(new im,this,e).stringify()},t}(rp);rb.registerLazyResult=function(e){id=e},rb.registerProcessor=function(e){im=e},rb.default=rb,rp.registerRoot(rb);var rw={comma:function(e){return rw.split(e,[","],!0)},space:function(e){return rw.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,p=S(e);!(n=p()).done;){var h=n.value;l?l=!1:"\\"===h?l=!0:c?h===u&&(c=!1):'"'===h||"'"===h?(c=!0,u=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&t.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(r||""!==o)&&i.push(o.trim()),i}};rw.default=rw;var rk=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return g(t,e),f(t,[{key:"selectors",get:function(){return rw.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(rp);rk.default=rk,rp.registerRule(rk);var rS=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,p,h=e.css.valueOf(),f=t.ignoreErrors,d=h.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=d},nextToken:function(e){if(v.length)return v.pop();if(!(m>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,r=h.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);p=["space",h.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);p=[_,_,m];break;case 40:if(u=g.length?g.pop()[1]:"",l=h.charCodeAt(m+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=m;do{if(a=!1,-1===(n=h.indexOf(")",n+1)))if(f||t){n=m;break}else y("bracket");for(c=n;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["brackets",h.slice(m,n+1),m,n],m=n}else n=h.indexOf(")",m+1),o=h.slice(m,n+1),-1===n||rv.test(o)?p=["(","(",m]:(p=["brackets",o,m,n],m=n);break;case 39:case 34:i=39===r?"'":'"',n=m;do{if(a=!1,-1===(n=h.indexOf(i,n+1)))if(f||t){n=m+1;break}else y("string");for(c=n;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["string",h.slice(m,n+1),m,n],m=n;break;case 64:rm.lastIndex=m+1,rm.test(h),n=0===rm.lastIndex?h.length-1:rm.lastIndex-2,p=["at-word",h.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,s=!0;92===h.charCodeAt(n+1);)n+=1,s=!s;if(r=h.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,ry.test(h.charAt(n)))){for(;ry.test(h.charAt(n+1));)n+=1;32===h.charCodeAt(n+1)&&(n+=1)}p=["word",h.slice(m,n+1),m,n],m=n;break;default:47===r&&42===h.charCodeAt(m+1)?(0===(n=h.indexOf("*/",m+2)+1)&&(f||t?n=h.length:y("comment")),p=["comment",h.slice(m,n+1),m,n]):(rg.lastIndex=m+1,rg.test(h),n=0===rg.lastIndex?h.length-1:rg.lastIndex-2,p=["word",h.slice(m,n+1),m,n],g.push(p)),m=n}return m++,p}},position:function(){return m}}},rC={empty:!0,space:!0},rI=function(){function e(e){this.input=e,this.root=new rb,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new r_;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=S(e.entries());!(n=o()).done;){var s=n.value,a=s[0],c=s[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new rc;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=rS(this.input)},t.decl=function(e,t){var r,n,i=new tW;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),p="",h=c;h>0;h--){var f=l[h][0];if(0===p.trim().indexOf("!")&&"space"!==f)break;p=l.pop()[1]+p}0===p.trim().indexOf("!")&&(i.important=!0,i.raws.important=p,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new rk;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,p=0;p0},t.runAsync=function(){var e=this;return p(function(){var t,r,n,i,o,s,a,c,u,l,p,h;return C(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t0))return[3,13];if(!rT(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return C(this,function(s){switch(s.label){case 0:r=(t=h.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},p=S(e.listeners.OnceExit),f.label=15;case 15:if((h=p()).done)return[3,18];return[5,I(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":b(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(rT(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=tB;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new ra(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.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 e,t=S(this.plugins);!(e=t()).done;){var r=e.value;if(rT(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[rE];)n[rE]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=S(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(rT(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndext?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function r3(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return r3(e,t,o||{},!0)}}function r9(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(r1=new Proxy(r1,{get:function(e,t,r){return"map"===t&&console.error(r0),Reflect.get(e,t,r)}}));var r4=Date.now;function r5(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=rK.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=rK.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function r6(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function r8(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function r7(e){return e?e.nodeType===e.ELEMENT_NODE?e:rK.parentElement(e):null}function ne(e,t,r,n){if(!e)return!1;var i=r7(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(ep(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function nt(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function nr(e){return!!e.changedTouches}function nn(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function ni(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function no(e){return!!e&&(v(e,rW)&&"shadowRoot"in e?!!e.shadowRoot:!!rK.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(r4=function(){return new Date().getTime()});var ns=function(){function e(){E(this,"id",1),E(this,"styleIDMap",new WeakMap),E(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){var r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e}();function na(e){var t,r=null;return"getRootNode"in e&&(null==(t=rK.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&rK.host(rK.getRootNode(e))&&(r=rK.host(rK.getRootNode(e))),r}function nc(e){var t=e.ownerDocument;return!!t&&(rK.contains(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=na(r);)r=t;return r}(e);return rK.contains(t,r)}(e))}var nu=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}(nu||{}),nl=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}(nl||{}),np=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}(np||{}),nh=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(nh||{}),nf=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(nf||{}),nd=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}(nd||{}),nm=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}(nm||{}),ng=function(){function e(){E(this,"length",0),E(this,"head",null),E(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;rnE.indexOf(l)||ne(t,i,o,!0)))&&!(t.classList.contains(s)||a&&t.matches(a))){var h=t.value,d=!1,m=Y(t)||"";"radio"===m||"checkbox"===m?d=t.checked:(c[l.toLowerCase()]||c[m])&&(h=V({element:t,maskInputOptions:c,tagName:l,type:m,value:h,maskInputFn:u})),f(t,p?{text:h,isChecked:d,userTriggered:n}:{text:h,isChecked:d});var g=t.name;"radio"===m&&g&&d&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,p?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function f(e,r){var i=nO.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){nO.set(e,r);var o=n.getId(e);nk(t)(d({},r,{id:o}))}}var m=("last"===l.input?["change"]:["input","change"]).map(function(e){return rQ(e,nk(h),r)}),g=r.defaultView;if(!g)return function(){m.forEach(function(e){return e()})};var v=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),y=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&m.push.apply(m,[].concat(y.map(function(e){return r3(e[0],e[1],{set:function(){nk(h)({target:this,isTrusted:!1})}},!1,g)}))),nk(function(){m.forEach(function(e){return e()})})}(e),c=(D=e.mediaInteractionCb,L=e.blockClass,F=e.blockSelector,U=e.mirror,B=e.sampling,j=e.doc,z=[rQ("play",(q=nk(function(e){return r2(nk(function(t){var r=nC(t);if(!(!r||ne(r,L,F,!0))){var n=r.currentTime,i=r.volume,o=r.muted,s=r.playbackRate,a=r.loop;D({type:e,id:U.getId(r),currentTime:n,volume:i,muted:o,playbackRate:s,loop:a})}}),B.media||500)}))(nd.Play),j),rQ("pause",q(nd.Pause),j),rQ("seeked",q(nd.Seeked),j),rQ("volumechange",q(nd.VolumeChange),j),rQ("ratechange",q(nd.RateChange),j)],nk(function(){z.forEach(function(e){return e()})})),u=function(){},l=function(){},p=function(){},h=function(){};e.recordDOM&&(u=function(e,t){var r,n,i=e.styleSheetRuleCb,o=e.mirror,s=e.stylesheetManager,a=t.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};var c=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(c,{apply:nk(function(e,t,r){var n=r[0],a=r[1],c=nR(t,o,s.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:n,index:a}]}),e.apply(t,r)})}),a.CSSStyleSheet.prototype.addRule=function(e,t,r){return void 0===r&&(r=this.cssRules.length),a.CSSStyleSheet.prototype.insertRule.apply(this,[e+" { "+t+" }",r])};var u=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:nk(function(e,t,r){var n=r[0],a=nR(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:n}]}),e.apply(t,r)})}),a.CSSStyleSheet.prototype.removeRule=function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},a.CSSStyleSheet.prototype.replace&&(r=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:nk(function(e,t,r){var n=r[0],a=nR(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replace:n}),e.apply(t,r)})})),a.CSSStyleSheet.prototype.replaceSync&&(n=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:nk(function(e,t,r){var n=r[0],a=nR(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replaceSync:n}),e.apply(t,r)})}));var l={};nP("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(nP("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),nP("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),nP("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));var p={};return Object.entries(l).forEach(function(e){var t=e[0],r=e[1];p[t]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(p[t].insertRule,{apply:nk(function(e,t,r){var n=r[0],a=r[1],c=nR(t.parentStyleSheet,o,s.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:n,index:[].concat(nM(t),[a||0])}]}),e.apply(t,r)})}),r.prototype.deleteRule=new Proxy(p[t].deleteRule,{apply:nk(function(e,t,r){var n=r[0],a=nR(t.parentStyleSheet,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:[].concat(nM(t),[n])}]}),e.apply(t,r)})})}),nk(function(){a.CSSStyleSheet.prototype.insertRule=c,a.CSSStyleSheet.prototype.deleteRule=u,r&&(a.CSSStyleSheet.prototype.replace=r),n&&(a.CSSStyleSheet.prototype.replaceSync=n),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=p[t].insertRule,r.prototype.deleteRule=p[t].deleteRule})})}(e,{win:r}),l=nA(e,e.doc),W=e.styleDeclarationCb,G=e.mirror,Z=e.ignoreCSSAttributes,J=e.stylesheetManager,X=(H=({win:r}).win).CSSStyleDeclaration.prototype.setProperty,H.CSSStyleDeclaration.prototype.setProperty=new Proxy(X,{apply:nk(function(e,t,r){var n,i=r[0],o=r[1],s=r[2];if(Z.has(i))return X.apply(t,[i,o,s]);var a=nR(null==(n=t.parentRule)?void 0:n.parentStyleSheet,G,J.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&W({id:c,styleId:u,set:{property:i,value:o,priority:s},index:nM(t.parentRule)}),e.apply(t,r)})}),K=H.CSSStyleDeclaration.prototype.removeProperty,H.CSSStyleDeclaration.prototype.removeProperty=new Proxy(K,{apply:nk(function(e,t,r){var n,i=r[0];if(Z.has(i))return K.apply(t,[i]);var o=nR(null==(n=t.parentRule)?void 0:n.parentStyleSheet,G,J.styleMirror),s=o.id,a=o.styleId;return(s&&-1!==s||a&&-1!==a)&&W({id:s,styleId:a,remove:{property:i},index:nM(t.parentRule)}),e.apply(t,r)})}),p=nk(function(){H.CSSStyleDeclaration.prototype.setProperty=X,H.CSSStyleDeclaration.prototype.removeProperty=K}),e.collectFonts&&(h=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=r9(r.fonts,"add",function(e){return function(r){return setTimeout(nk(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),nk(function(){i.forEach(function(e){return e()})})}(e)));for(var f,m,g,y,_,b,w,k,C,I,x,E,O,M,R,A,T,N,P,D,L,F,U,B,j,q,z,W,G,Z,J,H,X,K,Q,ee,et,er,en,ei,eo,es,ea,ec,eu,el,ep=(Q=e.doc,ee=e.mirror,et=e.blockClass,er=e.blockSelector,en=e.selectionCb,ei=!0,(eo=nk(function(){var e=Q.getSelection();if(e&&(!ei||null==e||!e.isCollapsed)){ei=e.isCollapsed||!1;for(var t=[],r=e.rangeCount||0,n=0;n0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case nu.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:nu.IncrementalSnapshot,data:{source:nl.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case nu.Meta:case nu.Load:case nu.DomContentLoaded:break;case nu.Plugin:return t;case nu.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case nu.IncrementalSnapshot:switch(t.data.source){case nl.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nl.Drag:case nl.TouchMove:case nl.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nl.ViewportResize:return!1;case nl.MediaInteraction:case nl.MouseInteraction:case nl.Scroll:case nl.CanvasMutation:case nl.Input:return this.replaceIds(t.data,e,["id"]),t;case nl.StyleSheetRule:case nl.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nl.Font:return t;case nl.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case nl.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=S(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===nm.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),nF=function(){function e(e){E(this,"shadowDoms",new WeakSet),E(this,"mutationCb"),E(this,"scrollCb"),E(this,"bypassOptions"),E(this,"mirror"),E(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(j(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=nI(d({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(nx(d({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(rK.host(e))),r.restoreHandlers.push(nA({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(r9(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=rK.shadowRoot(this);return o&&nc(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),nU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),nj=0;nj>2],i+=nU[(3&r[t])<<4|r[t+1]>>4],i+=nU[(15&r[t+1])<<2|r[t+2]>>6],i+=nU[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},nz=new Map,nW=function(e,t,r){if(e&&(n$(e,t)||(void 0===e?"undefined":b(e))==="object")){var n,i=e.constructor.name,o=((n=nz.get(r))||(n=new Map,nz.set(r,n)),n.has(i)||n.set(i,[]),n.get(i)),s=o.indexOf(e);return -1===s&&(s=o.length,o.push(e)),s}},nV=function(e,t,r){return e.map(function(e){return function e(t,r,n){if(v(t,Array))return t.map(function(t){return e(t,r,n)});if(null===t);else if(v(t,Float32Array)||v(t,Float64Array)||v(t,Int32Array)||v(t,Uint32Array)||v(t,Uint8Array)||v(t,Uint16Array)||v(t,Int16Array)||v(t,Int8Array)||v(t,Uint8ClampedArray))return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(v(t,ArrayBuffer))return{rr_type:t.constructor.name,base64:nq(t)};else if(v(t,DataView))return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(v(t,HTMLImageElement))return{rr_type:t.constructor.name,src:t.src};else if(v(t,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(v(t,ImageData))return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(n$(t,r)||(void 0===t?"undefined":b(t))==="object")return{rr_type:t.constructor.name,index:nW(t,r,n)};return t}(e,t,r)})},n$=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(r){return v(e,t[r])})};function nG(e,t,r,n){var i=[];try{var o=r9(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a0&&(i.styles=o),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),nQ=function(){function e(){E(this,"nodeMap",new WeakMap),E(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),n0=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var n1=document.createElement("iframe");document.body.appendChild(n1),Array.from=(null==(n4=n1.contentWindow)?void 0:n4.Array.from)||Array.from,document.body.removeChild(n1)}}catch(e){console.debug("Unable to override Array.from",e)}var n2=new W;function n3(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,p=void 0===l?null:l,h=e.maskTextClass,f=void 0===h?"rr-mask":h,m=e.maskTextSelector,g=void 0===m?null:m,v=e.inlineStylesheet,y=void 0===v||v,_=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,k=e.maskInputFn,C=e.maskTextFn,I=e.hooks,x=e.packFn,E=e.sampling,O=void 0===E?{}:E,M=e.dataURLOptions,R=void 0===M?{}:M,A=e.mousemoveWait,T=e.recordDOM,N=void 0===T||T,P=e.recordCanvas,D=void 0!==P&&P,L=e.recordCrossOriginIframes,F=void 0!==L&&L,U=e.recordAfter,B=void 0===U?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":U,j=e.userTriggeredOnInput,q=void 0!==j&&j,z=e.collectFonts,V=void 0!==z&&z,$=e.inlineImages,G=void 0!==$&&$,Y=e.plugins,Z=e.keepIframeSrcFn,J=void 0===Z?function(){return!1}:Z,H=e.ignoreCSSAttributes,X=void 0===H?new Set([]):H;ig=e.errorHandler;var K=!F||window.parent===window,Q=!1;if(!K)try{window.parent.document&&(Q=!1)}catch(e){Q=!0}if(K&&!t)throw Error("emit function is required");if(!K&&!Q)return function(){};void 0!==A&&void 0===O.mousemove&&(O.mousemove=A),n2.reset();var ee=!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}:void 0!==b?b:{password:!0},et=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{};void 0===ei&&(ei=window),"NodeList"in ei&&!ei.NodeList.prototype.forEach&&(ei.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in ei&&!ei.DOMTokenList.prototype.forEach&&(ei.DOMTokenList.prototype.forEach=Array.prototype.forEach);var er=0,en=function(e){for(var t,r=S(Y||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!Q&&(e=x(e)),e};iv=function(e,i){var o;if(e.timestamp=r4(),(null==(o=nS[0])?void 0:o.isFrozen())&&e.type!==nu.FullSnapshot&&(e.type!==nu.IncrementalSnapshot||e.data.source!==nl.Mutation)&&nS.forEach(function(e){return e.unfreeze()}),K)null==t||t(en(e),i);else if(Q){var s={type:"rrweb",event:en(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(s,"*")}if(e.type===nu.FullSnapshot)eo=e,er=0;else if(e.type===nu.IncrementalSnapshot){if(e.data.source===nl.Mutation&&e.data.isAttachIframe)return;er++;var a=n&&er>=n,c=r&&e.timestamp-eo.timestamp>r;(a||c)&&iy(!0)}};for(var ei,eo,es,ea=function(e){iv({type:nu.IncrementalSnapshot,data:d({source:nl.Mutation},e)})},ec=function(e){return iv({type:nu.IncrementalSnapshot,data:d({source:nl.Scroll},e)})},eu=function(e){return iv({type:nu.IncrementalSnapshot,data:d({source:nl.CanvasMutation},e)})},el=new nK({mutationCb:ea,adoptedStyleSheetCb:function(e){return iv({type:nu.IncrementalSnapshot,data:d({source:nl.AdoptedStyleSheet},e)})}}),ep=new nL({mirror:n2,mutationCb:ea,stylesheetManager:el,recordCrossOriginIframes:F,wrappedEmit:iv}),eh=S(Y||[]);!(es=eh()).done;){var ef=es.value;ef.getMirror&&ef.getMirror({nodeMirror:n2,crossOriginIframeMirror:ep.crossOriginIframeMirror,crossOriginIframeStyleMirror:ep.crossOriginIframeStyleMirror})}var em=new nQ;i_=new nX({recordCanvas:D,mutationCb:eu,win:window,blockClass:o,blockSelector:a,mirror:n2,sampling:O.canvas,dataURLOptions:R});var eg=new nF({mutationCb:ea,scrollCb:ec,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskInputOptions:ee,dataURLOptions:R,maskTextFn:C,maskInputFn:k,recordCanvas:D,inlineImages:G,sampling:O,slimDOMOptions:et,iframeManager:ep,stylesheetManager:el,canvasManager:i_,keepIframeSrcFn:J,processedNodeManager:em},mirror:n2});iy=function(e){if(void 0===e&&(e=!1),N){iv({type:nu.Meta,data:{href:window.location.href,width:r8(),height:r6()}},e),el.reset(),eg.init(),nS.forEach(function(e){return e.lock()});var t,r,n,i,s,c,u,l,p,h,d,m,v,_,b,w,S,I,x,E,O,M,A,T,P=(t=document,i=void 0===(n=(r={mirror:n2,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskAllInputs:ee,maskTextFn:C,maskInputFn:k,slimDOM:et,dataURLOptions:R,recordCanvas:D,inlineImages:G,onSerialize:function(e){nn(e,n2)&&ep.addIframe(e),ni(e,n2)&&el.trackLinkElement(e),no(e)&&eg.addShadowRoot(rK.shadowRoot(e),document)},onIframeLoad:function(e,t){ep.attachIframe(e,t),eg.observeAttachShadow(e)},onStylesheetLoad:function(e,t){el.attachLinkElement(e,t)},keepIframeSrcFn:J}).mirror)?new W:n,s=r.blockClass,c=r.blockSelector,u=r.maskTextClass,l=r.maskTextSelector,p=r.inlineStylesheet,h=r.inlineImages,d=r.recordCanvas,v=void 0!==(m=r.maskAllInputs)&&m,_=r.maskTextFn,b=r.maskInputFn,S=void 0!==(w=r.slimDOM)&&w,I=r.dataURLOptions,x=r.preserveWhiteSpace,E=r.onSerialize,O=r.onIframeLoad,M=r.iframeLoadTimeout,A=r.onStylesheetLoad,ed(t,{doc:t,mirror:i,blockClass:void 0===s?"rr-block":s,blockSelector:void 0===c?null:c,maskTextClass:void 0===u?"rr-mask":u,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===p||p,maskInputOptions:!0===v?{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}:!1===v?{password:!0}:v,maskTextFn:_,maskInputFn:b,slimDOMOptions:!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S,dataURLOptions:I,inlineImages:void 0!==h&&h,recordCanvas:void 0!==d&&d,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(T=r.keepIframeSrcFn)?function(){return!1}:T,newlyAddedElement:!1}));if(!P)return console.warn("Failed to snapshot the document");iv({type:nu.FullSnapshot,data:{node:P,initialOffset:r5(window)}},e),nS.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&el.adoptStyleSheets(document.adoptedStyleSheets,n2.getId(document))}};try{var ev=[],ey=function(e){var t;return nk(nT)({mutationCb:ea,mousemoveCb:function(e,t){return iv({type:nu.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return iv({type:nu.IncrementalSnapshot,data:d({source:nl.MouseInteraction},e)})},scrollCb:ec,viewportResizeCb:function(e){return iv({type:nu.IncrementalSnapshot,data:d({source:nl.ViewportResize},e)})},inputCb:function(e){return iv({type:nu.IncrementalSnapshot,data:d({source:nl.Input},e)})},mediaInteractionCb:function(e){return iv({type:nu.IncrementalSnapshot,data:d({source:nl.MediaInteraction},e)})},styleSheetRuleCb:function(e){return iv({type:nu.IncrementalSnapshot,data:d({source:nl.StyleSheetRule},e)})},styleDeclarationCb:function(e){return iv({type:nu.IncrementalSnapshot,data:d({source:nl.StyleDeclaration},e)})},canvasMutationCb:eu,fontCb:function(e){return iv({type:nu.IncrementalSnapshot,data:d({source:nl.Font},e)})},selectionCb:function(e){iv({type:nu.IncrementalSnapshot,data:d({source:nl.Selection},e)})},customElementCb:function(e){iv({type:nu.IncrementalSnapshot,data:d({source:nl.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:p,maskTextClass:f,maskTextSelector:g,maskInputOptions:ee,inlineStylesheet:y,sampling:O,recordDOM:N,recordCanvas:D,inlineImages:G,userTriggeredOnInput:q,collectFonts:V,doc:e,maskInputFn:k,maskTextFn:C,keepIframeSrcFn:J,blockSelector:a,slimDOMOptions:et,dataURLOptions:R,mirror:n2,iframeManager:ep,stylesheetManager:el,shadowDomManager:eg,processedNodeManager:em,canvasManager:i_,ignoreCSSAttributes:X,plugins:(null==(t=null==Y?void 0:Y.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return iv({type:nu.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},I)};ep.addLoadListener(function(e){try{ev.push(ey(e.contentDocument))}catch(e){console.warn(e)}});var e_=function(){iy(),ev.push(ey(document)),n0=!0};return"interactive"===document.readyState||"complete"===document.readyState?e_():(ev.push(rQ("DOMContentLoaded",function(){iv({type:nu.DomContentLoaded,data:{}}),"DOMContentLoaded"===B&&e_()})),ev.push(rQ("load",function(){iv({type:nu.Load,data:{}}),"load"===B&&e_()},window))),function(){ev.forEach(function(e){return e()}),em.destroy(),n0=!1,ig=void 0}}catch(e){console.warn(e)}}n3.addCustomEvent=function(e,t){if(!n0)throw Error("please add custom event after start recording");iv({type:nu.Custom,data:{tag:e,payload:t}})},n3.freezePage=function(){nS.forEach(function(e){return e.freeze()})},n3.takeFullSnapshot=function(e){if(!n0)throw Error("please take full snapshot after start recording");iy(e)},n3.mirror=n2,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(ib||(ib={})),n3.addCustomEvent,n3.freezePage,n3.takeFullSnapshot;var n9,n4,n5,n6,n8,n7,ie,it,ir,ii,io,is,ia,ic,iu,il,ip,ih,id,im,ig,iv,iy,i_,ib,iw,ik,iS,iC=n9.setImmediate,iI=Object.prototype.toString,ix=void 0!==iC?function(e){return iC(e)}:setTimeout;try{Object.defineProperty({},"x",{}),iw=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){iw=function(e,t,r){return e[t]=r,e}}function iE(e,t){iS.add(e,t),ik||(ik=ix(iS.drain))}function iO(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function iM(){for(var e=0;e0&&iE(iM,r))}catch(e){iA.call(new iN(r),e)}}}function iA(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&iE(iM,t))}function iT(e,t,r,n){for(var i=0;i0&&(t[r]=e)}),t},i2.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):i2.isArray(e)?(r=[],i2.each(e,function(e){r.push(i2.truncate(e,t))})):i2.isObject(e)?(r={},i2.each(e,function(e,n){r[n]=i2.truncate(e,t)})):r=e,r},i2.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,u=i,l=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(i+=" ",l=[],"[object Array]"===iz.apply(p)){for(o=0,c=p.length;o="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),("-"===t||"+"===t)&&(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(isFinite(e=+r))return e;o("Bad number")},c=function(){var e,r,n,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(r=0,n=0;r<4&&isFinite(e=parseInt(s(),16));r+=1)n=16*n+e;a+=String.fromCharCode(n)}else if("string"==typeof i[t])a+=i[t];else break;else a+=t}o("Bad string")},u=function(){for(;t&&t<=" ";)s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},p=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;for(;t;){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},h=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;for(;t;){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return h();case"[":return p();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),i2.base64Encode=function(e){var t,r,n,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,l="",p=[];if(!e)return e;e=i2.utf8Encode(e);do t=e.charCodeAt(c++),r=(s=t<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,n=s>>12&63,i=s>>6&63,o=63&s,p[u++]=a.charAt(r)+a.charAt(n)+a.charAt(i)+a.charAt(o);while(c127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},i2.UUID=function(){try{return n9.crypto.randomUUID()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",i2.map(e,function(e){return e.toString(16)}).join("")}};var i8=["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"];i2.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t-1){b=(p=l.split("#"))[0];var o=p[1],s=iG.getElementById(o);if(!s||b&&s.nodeName.toLowerCase()!=b)return[];i=[s];continue}if(l.indexOf(".")>-1){b=(p=l.split("."))[0];var a,c=p[1];for(b||(b="*"),h=[],f=0,m=0;m=0)&&(i[y++]=h[m]);continue}var u=l.match(oi);if(u){var l,p,h,f,d,m,g,v,y,_,b=u[1],w=u[2],k=u[3],S=u[4];for(b||(b="*"),h=[],f=0,m=0;m-1};break;default:_=function(e){return e.getAttribute(w)}}for(m=0,i=[],y=0;m=3?t[2]:""},currentUrl:function(){return n9.location.href},properties:function(e){return"object"!=typeof e&&(e={}),i2.extend(i2.strip_empty_properties({$os:i2.info.os(),$browser:i2.info.browser(iJ,i$.vendor,iY),$referrer:iG.referrer,$referring_domain:i2.info.referringDomain(iG.referrer),$device:i2.info.device(iJ)}),{$current_url:i2.info.currentUrl(),$browser_version:i2.info.browserVersion(iJ,i$.vendor,iY),$screen_height:iZ.height,$screen_width:iZ.width,mp_lib:"web",$lib_version:iF.LIB_VERSION,$insert_id:oc(),time:i2.timestamp()/1e3},i2.strip_empty_properties(e))},people_properties:function(){return i2.extend(i2.strip_empty_properties({$os:i2.info.os(),$browser:i2.info.browser(iJ,i$.vendor,iY)}),{$browser_version:i2.info.browserVersion(iJ,i$.vendor,iY)})},mpPageViewProperties:function(){return i2.strip_empty_properties({current_page_title:iG.title,current_domain:n9.location.hostname,current_url_path:n9.location.pathname,current_url_protocol:n9.location.protocol,current_url_search:n9.location.search})}};var oa=function(e,t){var r=null,i=[];return function(o){var s=this;return i.push(o),r||(r=new n(function(n){setTimeout(function(){var t=e.apply(s,[i]);r=null,i=[],n(t)},t)})),r}},oc=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},ou=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,ol=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,op=function(e){var t=ol,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=ou);var i=e.match(t);return i?i[0]:""},oh=function(){var e=n9.navigator.onLine;return i2.isUndefined(e)||e},of=function(){},od=null,om=null;"undefined"!=typeof JSON&&(od=JSON.stringify,om=JSON.parse),od=od||i2.JSONEncode,om=om||i2.JSONDecode,i2.info=i2.info,i2.info.browser=i2.info.browser,i2.info.browserVersion=i2.info.browserVersion,i2.info.device=i2.info.device,i2.info.properties=i2.info.properties,i2.isBlockedUA=i2.isBlockedUA,i2.isEmptyObject=i2.isEmptyObject,i2.isObject=i2.isObject,i2.JSONDecode=i2.JSONDecode,i2.JSONEncode=i2.JSONEncode,i2.toArray=i2.toArray,i2.NPO=iD;var og="mixpanelRecordingEvents",ov="mixpanelRecordingRegistry",oy=[og,ov],o_=function(e){this.dbPromise=null,this.storeName=e};function ob(e,t){oA(!0,e,t)}function ow(e,t){oA(!1,e,t)}function ok(e,t){return"1"===oR(e,t)}function oS(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||n9,r=t.navigator||{},n=!1;return i2.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){i2.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return i3.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===oR(e,t);return r&&i3.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function oC(e){return oT(e,function(e){return this.get_config(e)})}function oI(e){return oT(e,function(e){return this._get_config(e)})}function ox(e){return oT(e,function(e){return this._get_config(e)})}function oE(e,t){oO(t=t||{}).remove(oM(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function oO(e){return"localStorage"===(e=e||{}).persistenceType?i2.localStorage:i2.cookie}function oM(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function oR(e,t){return oO(t).get(oM(e,t))}function oA(e,t,r){if(!i2.isString(t)||!t.length)return void i3.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");oO(r=r||{}).set(oM(t,r),+!!e,i2.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function oT(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=oS(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){i3.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}o_.prototype._openDb=function(){return new n(function(e,t){var r=n9.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;oy.forEach(function(e){t.createObjectStore(e)})}})},o_.prototype.init=function(){return n9.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof n9.IDBDatabase?n.resolve():n.reject(e)})):n.reject("indexedDB is not supported in this browser")},o_.prototype.makeTransaction=function(e,t){var r=this.storeName,i=function(i){return new n(function(n,o){var s=i.transaction(r,e);s.oncomplete=function(){n(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(i).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(i)):n.reject(e)}).bind(this))},o_.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},o_.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},o_.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},o_.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var oN=i4("lock"),oP=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||n9.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||n};oP.prototype.withLock=function(e,t){return new this.promiseImpl(i2.bind(function(r,n){var i=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",p=s+":Y",h=s+":Z",f=function(e){if(new Date().getTime()-o>c){oN.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(h),u.removeItem(p),g();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},d=function(e,t){e()?t():f(function(){d(e,t)})},m=function(){var e=u.getItem(p);return(!e||e===i)&&(u.setItem(p,i),u.getItem(p)===i||(ot(u,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(l,i),d(m,function(){if(u.getItem(l)===i)return void v();f(function(){if(u.getItem(p)!==i)return void g();d(function(){return!u.getItem(h)},v)})})},v=function(){u.setItem(h,"1");var t=function(){u.removeItem(h),u.getItem(p)===i&&u.removeItem(p),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(ot(u,!0))g();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var oD=function(e){this.storage=e||n9.localStorage};oD.prototype.init=function(){return n.resolve()},oD.prototype.setItem=function(e,t){return new n(i2.bind(function(r,n){try{this.storage.setItem(e,od(t))}catch(e){n(e)}r()},this))},oD.prototype.getItem=function(e){return new n(i2.bind(function(t,r){var n;try{n=om(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},oD.prototype.removeItem=function(e){return new n(i2.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var oL=i4("batch"),oF=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new oD,this.lock=new oP(e,{storage:t.sharedLockStorage||n9.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||i2.bind(oL.error,oL),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=oa(i2.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=i2.bind(function(e){return this._enqueuePersisted([e])},this)};oF.prototype.ensureInit=function(){return this.initialized?n.resolve():this.queueStorage.init().then(i2.bind(function(){this.initialized=!0},this)).catch(i2.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},oF.prototype.enqueue=function(e,t){var r={id:oc(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),n.resolve(!0))},oF.prototype._enqueuePersisted=function(e){var t=i2.bind(function(){return this.ensureInit().then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(i2.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(i2.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(i2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},oF.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.lengtho.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):n.resolve(t)};var oU=function(e,t){var r=[];return i2.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};oF.prototype.removeItemsByID=function(e){var t={};if(i2.each(e,function(e){t[e]=!0}),this.memQueue=oU(this.memQueue,t),!this.usePersistence)return n.resolve(!0);var r=i2.bind(function(){return this.ensureInit().then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(e){return e=oU(e,t),this.saveToStorage(e)},this)).then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(e){for(var r=0;r5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}c[e.id]=t},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),n.resolve();var u=i2.bind(function(){return this.queue.removeItemsByID(i2.map(o,function(e){return e.id})).then(i2.bind(function(e){return(i2.each(o,i2.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s)?(this.resetFlush(),n.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),n.resolve())},this))},this),l=i2.bind(function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(i2.isObject(s)&&"timeout"===s.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(i2.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&!oh()||"timeout"===s.error)){var a=2*this.flushInterval;return s.retryAfter&&(a=1e3*parseInt(s.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),n.resolve()}else{if(!i2.isObject(s)||413!==s.httpStatusCode)return u();if(!(o.length>1))return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),u();var l=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),n.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),p={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(p.transport="sendBeacon"),oj.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,p).then(l)},this)).catch(i2.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},oq.prototype.reportError=function(e,t){if(oj.error.apply(oj.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){oj.error(e)}};var oz=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},oW=i4("recorder"),oV=n9.CompressionStream,o$={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},oG=new Set([nl.MouseMove,nl.MouseInteraction,nl.Scroll,nl.ViewportResize,nl.Input,nl.TouchMove,nl.MediaInteraction,nl.Drag,nl.Selection]),oY=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||of,this._onMaxLengthReached=e.onMaxLengthReached||of,this._onBatchSent=e.onBatchSent||of,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=864e5,this.recordMinMs=0;var t=ot(e.sharedLockStorage,!0);this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new o_(og),this.batcher=new oq(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:o$,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};oY.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))},oY.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},oY.prototype.get_config=function(e){return this.getConfig(e)},oY.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void oW.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,oW.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,oW.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=i2.info.currentUrl(),this.replayStartUrl=i2.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(e){if(this.idleExpires&&this.idleExpires=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e)}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var n=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)},oY.prototype.stopRecording=function(e){var t;if(!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},oY.prototype.isRrwebStopped=function(){return null===this._stopRecording},oY.prototype.flushEventsWithOptOut=function(e,t,r){var n=(function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,n)},oY.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),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}},oY.deserialize=function(e,t){return new oY(i2.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},oY.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=i2.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");n9.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},oY.prototype._flushEvents=oC(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;cthis.lastScrollCheckpoint)for(var s=0;s=a&&this.lastScrollCheckpoint=0;p--)u=(c=this._mixpanel.persistence.load_queue(s$)).pop(),a._mixpanel.persistence.save(),i2.isEmptyObject(u)||a.append(u,l);var h=this._mixpanel.persistence.load_queue(sY);if(!i2.isUndefined(h)&&i2.isArray(h)&&h.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(sY,f),i2.isUndefined(s)||s(e,t)},m=h.length-1;m>=0;m--)f=(h=this._mixpanel.persistence.load_queue(sY)).pop(),a._mixpanel.persistence.save(),i2.isEmptyObject(f)||a.remove(f,d)},sH.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},sH.prototype.set=sH.prototype.set,sH.prototype.set_once=sH.prototype.set_once,sH.prototype.unset=sH.prototype.unset,sH.prototype.increment=sH.prototype.increment,sH.prototype.append=sH.prototype.append,sH.prototype.remove=sH.prototype.remove,sH.prototype.union=sH.prototype.union,sH.prototype.track_charge=sH.prototype.track_charge,sH.prototype.clear_charges=sH.prototype.clear_charges,sH.prototype.delete_user=sH.prototype.delete_user,sH.prototype.toString=sH.prototype.toString;var sX="__mps",sK="__mpso",sQ="__mpus",s0="__mpa",s1="__mpap",s2="__mpr",s3="__mpu",s9="$people_distinct_id",s4="__alias",s5="__timers",s6=[sX,sK,sQ,s0,s1,s2,s3,s9,s4,s5],s8=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(i3.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&i2.localStorage.is_supported()?this.storage=i2.localStorage:this.storage=i2.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};s8.prototype.properties=function(){var e={};return this.load(),i2.each(this.props,function(t,r){i2.include(s6,r)||(e[r]=t)}),e},s8.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=i2.extend({},e))}},s8.prototype.upgrade=function(){var e,t;this.storage===i2.localStorage?(e=i2.cookie.parse(this.name),i2.cookie.remove(this.name),i2.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===i2.cookie&&(t=i2.localStorage.parse(this.name),i2.localStorage.remove(this.name),t&&this.register_once(t))},s8.prototype.save=function(){this.disabled||this.storage.set(this.name,od(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},s8.prototype.load_prop=function(e){return this.load(),this.props[e]},s8.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},s8.prototype.clear=function(){this.remove(),this.props={}},s8.prototype.register_once=function(e,t,r){return!!i2.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),i2.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},s8.prototype.register=function(e,t){return!!i2.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),i2.extend(this.props,e),this.save(),!0)},s8.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},s8.prototype.update_search_keyword=function(e){this.register(i2.info.searchInfo(e))},s8.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:i2.info.referringDomain(e)||"$direct"},"")},s8.prototype.get_referrer_info=function(){return i2.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},s8.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)},s8.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},s8.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},s8.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},s8.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},s8.prototype.get_cross_subdomain=function(){return this.cross_subdomain},s8.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},s8.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(sq),o=this._get_or_create_queue(sz),s=this._get_or_create_queue(sW),a=this._get_or_create_queue(sV),c=this._get_or_create_queue(sG),u=this._get_or_create_queue(sY,[]),l=this._get_or_create_queue(s$,[]);r===sX?(i2.extend(i,n),this._pop_from_people_queue(sV,n),this._pop_from_people_queue(sG,n),this._pop_from_people_queue(sW,n)):r===sK?(i2.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(sW,n)):r===sQ?i2.each(n,function(e){i2.each([i,o,a,c],function(t){e in t&&delete t[e]}),i2.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===s0?(i2.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(sW,n)):r===s3?(i2.each(n,function(e,t){i2.isArray(e)&&(t in c||(c[t]=[]),i2.each(e,function(e){i2.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(sW,n)):r===s2?(u.push(n),this._pop_from_people_queue(s$,n)):r===s1&&(l.push(n),this._pop_from_people_queue(sW,n)),i3.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),i3.log(t),this.save()},s8.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];i2.isUndefined(r)||i2.each(t,function(t,n){e===s$||e===sY?i2.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},s8.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},s8.prototype._get_queue_key=function(e){return e===sq?sX:e===sz?sK:e===sW?sQ:e===sV?s0:e===s$?s1:e===sY?s2:e===sG?s3:void i3.error("Invalid queue:",e)},s8.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=i2.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},s8.prototype.set_event_timer=function(e,t){var r=this.load_prop(s5)||{};r[e]=t,this.props[s5]=r,this.save()},s8.prototype.remove_event_timer=function(e){var t=(this.load_prop(s5)||{})[e];return i2.isUndefined(t)||(delete this.props[s5][e],this.save()),t};var s7=function(e,t){throw Error(e+" not available in this build.")},ae=function(e){return e},at="mixpanel",ar="base64",an="$device:",ai=n9.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ao=!ai&&-1===iJ.indexOf("MSIE")&&-1===iJ.indexOf("Mozilla"),as=null;i$.sendBeacon&&(as=function(){return i$.sendBeacon.apply(i$,arguments)});var aa={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},ac={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:aa,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:ar,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:of,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:of,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:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},au=!1,al=function(){},ap=function(e,t,r){var n,s=r===at?o:o[r];if(s&&0===i)n=s;else{if(s&&!i2.isArray(s))return void i3.error("You have already initialized "+r);n=new al}if(n._cached_groups={},n._init(e,t,r),n.people=new sH,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var a=i2.info.campaignParams(null),c={},u=!1;i2.each(a,function(e,t){c["initial_"+t]=e,e&&(u=!0)}),u&&n.people.set_once(c)}return iF.DEBUG=iF.DEBUG||n.get_config("debug"),!i2.isUndefined(s)&&i2.isArray(s)&&(n._execute_array.call(n.people,s.people),n._execute_array(s)),n};al.prototype.init=function(e,t,r){if(i2.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===at)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=ap(e,t,r);return o[r]=n,n._loaded(),n},al.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||ac.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.set_config(i2.extend({},ac,n,t,{name:r,token:e,callback_fn:(r===at?r:at+"."+r)+"._jsc"})),this._jsc=of,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(i2.localStorage.is_supported(!0)&&ai){if(this.init_batchers(),as&&n9.addEventListener){var i=i2.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);n9.addEventListener("pagehide",function(e){e.persisted&&i()}),n9.addEventListener("visibilitychange",function(){"hidden"===iG.visibilityState&&i()})}}else this._batch_requests=!1,i3.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),i2.each(this.get_batcher_configs(),function(e){i3.log("Clearing batch queue "+e.queue_key),i2.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new s8(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=i2.UUID();this.get_distinct_id()||this.register_once({distinct_id:an+o,$device_id:o},""),this.flags=new sF({getConfigFunc:i2.bind(this.get_config,this),getDistinctIdFunc:i2.bind(this.get_distinct_id,this),trackingFunc:i2.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new sA(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},al.prototype._init_tab_id=function(){if(i2.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(i2.sessionStorage.get(r)||!i2.sessionStorage.get(t))&&i2.sessionStorage.set(t,"$tab-"+i2.UUID()),i2.sessionStorage.set(r,"1"),this.tab_id=i2.sessionStorage.get(t),n9.addEventListener("beforeunload",function(){i2.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},al.prototype.get_tab_id=function(){return this.tab_id||null},al.prototype._should_load_recorder=function(){var e=new o_(ov),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}),al.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},al.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},al.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},al.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},al.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},al.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},al.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+i2.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},al.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},al.prototype.__get_recorder=function(){return this._recorder},al.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=i2.info.campaignParams(null);i2.each(e,(function(e,t){this.unregister(t)}).bind(this))}},al.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(iG.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(i2.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(iG.referrer)},al.prototype._dom_loaded=function(){i2.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||i2.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},al.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!au)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},al.prototype._prepare_callback=function(e,t){if(i2.isUndefined(e))return null;if(ai)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},al.prototype._send_request=function(e,t,r,n){var i=!0;if(ao)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!n&&(i2.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=i2.extend(o,r||{}),ai||(r.method="GET");var a="POST"===r.method,c=as&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),!ai&&(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=+!!this.get_config("ip"),t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),i2.extend(t,this.get_config("api_extra_query_params")),e+="?"+i2.HTTPBuildQuery(t);var l=this;if("img"in t){var p=iG.createElement("img");p.src=e,iG.body.appendChild(p)}else if(c){try{i=as(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(ai)try{var h=new XMLHttpRequest;h.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),i2.each(f,function(e,t){h.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==h.timeout){h.timeout=r.timeout_ms;var d=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(4===h.readyState){if(200===h.status){if(n)if(u){try{e=i2.JSONDecode(h.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=h.responseText}n(e)}else n(Number(h.responseText))}else if(t=h.timeout&&!h.status&&new Date().getTime()-d>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,l.report_error(t),n)if(u){var e,t,i=h.responseHeaders||{};n({status:0,httpStatusCode:h.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}},h.send(s)}catch(e){l.report_error(e),i=!1}else{var m=iG.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=iG.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},al.prototype._execute_array=function(e){var t,r=[],n=[],i=[];i2.each(e,function(e){e&&(t=e[0],i2.isArray(t)?i.push(e):"function"==typeof e?e.call(this):i2.isArray(e)&&"alias"===t?r.push(e):i2.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){i2.each(e,function(e){if(i2.isArray(e[0])){var r=t;i2.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},al.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},al.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},al.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=i2.bind(function(e){return new oq(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:i2.bind(function(t,r,n){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:i2.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:i2.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},al.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,i2.each(this.request_batchers,function(e){e.start()}))},al.prototype.stop_batch_senders=function(){this._batch_requests=!1,i2.each(this.request_batchers,function(e){e.stop(),e.clear()})},al.prototype.push=function(e){this._execute_array([e])},al.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},al.prototype._encode_data_for_request=function(e){var t=od(e);return this.get_config("api_payload_format")===ar&&(t=i2.base64Encode(t)),{data:t}},al.prototype._track_or_batch=function(e,t){var r=i2.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||of;var a=!0,c=i2.bind(function(){return(s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r)?(i3.log("MIXPANEL REQUEST:"),i3.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},al.prototype.track=oC(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=of),i2.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void n(0);(t=i2.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!i2.isUndefined(s)){var a=new Date().getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?i2.info.marketingParams():{};t=i2.extend({},i2.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");i2.isArray(u)?i2.each(u,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+u);var l={event:e,properties:t};return 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:r},n)}),al.prototype.set_group=oC(function(e,t,r){i2.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),al.prototype.add_group=oC(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),al.prototype.remove_group=oC(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),al.prototype.track_with_groups=oC(function(e,t,r,n){var i=i2.extend({},t||{});return i2.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),al.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},al.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},al.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new sJ)._init(this,e,t),this._cached_groups[r]=n),n},al.prototype.track_pageview=oC(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=i2.extend(i2.info.mpPageViewProperties(),i2.info.campaignParams(),i2.info.clickParams()),i=i2.extend({},n,e);return this.track(r,i)}),al.prototype.track_links=function(){return this._track_dom.call(this,sB,arguments)},al.prototype.track_forms=function(){return this._track_dom.call(this,sj,arguments)},al.prototype.time_event=function(e){if(i2.isUndefined(e))return void this.report_error("No event name provided to mixpanel.time_event");this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var ah={persistent:!0},af=function(e){var t;return t=i2.isObject(e)?e:i2.isUndefined(e)?{}:{days:e},i2.extend({},ah,t)};al.prototype.register=function(e,t){var r=af(t);r.persistent?this.persistence.register(e,r.days):i2.extend(this.unpersisted_superprops,e)},al.prototype.register_once=function(e,t,r){var n=af(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),i2.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},al.prototype.unregister=function(e,t){(t=af(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},al.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},al.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(an))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:c},""),e!==c&&e!==this.get_property(s4)&&(this.unregister(s4),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},al.prototype.reset=function(){var e=this,t=function(){e.persistence.clear(),e._flags.identify_called=!1;var t=i2.UUID();e.register_once({distinct_id:an+t,$device_id:t},"")};e._recorder?e.stop_session_recording().then(function(){t(),e._check_and_start_session_recording()}).catch(i2.bind(function(e){t(),this.report_error("Error restarting recording session",e)},this)):t()},al.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},al.prototype.alias=function(e,t){if(e===this.get_property(s9))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(i2.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(s4,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},al.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},al.prototype.set_config=function(e){i2.isObject(e)&&(i2.extend(this.config,e),e.batch_size&&i2.each(this.request_batchers,function(e){e.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),iF.DEBUG=iF.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},al.prototype.get_config=function(e){return this.config[e]},al.prototype._run_hook=function(e){var t=(this.config.hooks[e]||ae).apply(this,iq.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},al.prototype.get_property=function(e){return this.persistence.load_prop([e])},al.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},al.prototype.toString=function(){var e=this.get_config("name");return e!==at&&(e=at+"."+e),e},al.prototype._event_is_disabled=function(e){return i2.isBlockedUA(iJ)||this._flags.disable_all_events||i2.include(this.__disabled_events,e)},al.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&i2.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")||i2.cookie.get("mp_optout"))&&(i2.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},al.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},al.prototype._gdpr_call_func=function(e,t){return t=i2.extend({track:i2.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),i2.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},al.prototype.opt_in_tracking=function(e){e=i2.extend({enable_persistence:!0},e),this._gdpr_call_func(ob,e),this._gdpr_update_persistence(e)},al.prototype.opt_out_tracking=function(e){(e=i2.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ow,e),this._gdpr_update_persistence(e)},al.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ok,e)},al.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(oS,e)},al.prototype.clear_opt_in_out_tracking=function(e){e=i2.extend({enable_persistence:!0},e),this._gdpr_call_func(oE,e),this._gdpr_update_persistence(e)},al.prototype.report_error=function(e,t){i3.error.apply(i3.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){i3.error(e)}},al.prototype.init=al.prototype.init,al.prototype.reset=al.prototype.reset,al.prototype.disable=al.prototype.disable,al.prototype.time_event=al.prototype.time_event,al.prototype.track=al.prototype.track,al.prototype.track_links=al.prototype.track_links,al.prototype.track_forms=al.prototype.track_forms,al.prototype.track_pageview=al.prototype.track_pageview,al.prototype.register=al.prototype.register,al.prototype.register_once=al.prototype.register_once,al.prototype.unregister=al.prototype.unregister,al.prototype.identify=al.prototype.identify,al.prototype.alias=al.prototype.alias,al.prototype.name_tag=al.prototype.name_tag,al.prototype.set_config=al.prototype.set_config,al.prototype.get_config=al.prototype.get_config,al.prototype.get_api_host=al.prototype.get_api_host,al.prototype.get_property=al.prototype.get_property,al.prototype.get_distinct_id=al.prototype.get_distinct_id,al.prototype.toString=al.prototype.toString,al.prototype.opt_out_tracking=al.prototype.opt_out_tracking,al.prototype.opt_in_tracking=al.prototype.opt_in_tracking,al.prototype.has_opted_out_tracking=al.prototype.has_opted_out_tracking,al.prototype.has_opted_in_tracking=al.prototype.has_opted_in_tracking,al.prototype.clear_opt_in_out_tracking=al.prototype.clear_opt_in_out_tracking,al.prototype.get_group=al.prototype.get_group,al.prototype.set_group=al.prototype.set_group,al.prototype.add_group=al.prototype.add_group,al.prototype.remove_group=al.prototype.remove_group,al.prototype.track_with_groups=al.prototype.track_with_groups,al.prototype.start_batch_senders=al.prototype.start_batch_senders,al.prototype.stop_batch_senders=al.prototype.stop_batch_senders,al.prototype.start_session_recording=al.prototype.start_session_recording,al.prototype.stop_session_recording=al.prototype.stop_session_recording,al.prototype.pause_session_recording=al.prototype.pause_session_recording,al.prototype.resume_session_recording=al.prototype.resume_session_recording,al.prototype.get_session_recording_properties=al.prototype.get_session_recording_properties,al.prototype.get_session_replay_url=al.prototype.get_session_replay_url,al.prototype.get_tab_id=al.prototype.get_tab_id,al.prototype.DEFAULT_API_ROUTES=aa,al.prototype.__get_recorder=al.prototype.__get_recorder,s8.prototype.properties=s8.prototype.properties,s8.prototype.update_search_keyword=s8.prototype.update_search_keyword,s8.prototype.update_referrer_info=s8.prototype.update_referrer_info,s8.prototype.get_cross_subdomain=s8.prototype.get_cross_subdomain,s8.prototype.clear=s8.prototype.clear;var ad={},am=function(){i2.each(ad,function(e,t){t!==at&&(o[t]=e)}),o._=i2},ag=(s7=function(e,t){t()},i=0,(o=new al).init=function(e,t,r){if(r)return o[r]||(o[r]=ad[r]=ap(e,t,r),o[r]._loaded()),o[r];var n=o;ad[at]?n=ad[at]:e&&((n=ap(e,t,at))._loaded(),ad[at]=n),o=n,1===i&&(n9[at]=o),am()},o.init(),function(){function e(){e.done||(e.done=!0,au=!0,ao=!1,i2.each(ad,function(e){e._dom_loaded()}))}if(iG.addEventListener)"complete"===iG.readyState?e():iG.addEventListener("DOMContentLoaded",e,!1);else if(iG.attachEvent){iG.attachEvent("onreadystatechange",e);var t=!1;try{t=null===n9.frameElement}catch(e){}iG.documentElement.doScroll&&t&&function t(){try{iG.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}i2.register_event(n9,"load",e,!0)}(),o)}}]);