https://www.thewirechina.com/wp-content/themes/dealpro/dist/assets/js/mixpanel.js?ver=1.1.1790787577
1"use strict";!function(){var e;if("undefined"==typeof window){var t={hostname:""};e={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:t,referrer:""},screen:{width:0,height:0},location:t,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else e=window;var r="__mp_targeting",n="__mp_recorder";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function a(e){o(s,n,i,a,c,"next",e)}function c(e){o(s,n,i,a,c,"throw",e)}a(void 0)}))}}function a(e,t,r){return(a=v()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&d(i,r.prototype),i}).apply(null,arguments)}function c(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function p(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function f(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function m(e){var t="function"==typeof Map?new Map:void 0;return(m=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new 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,n)}function n(){return a(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)})(e)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function y(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 i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(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){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var w,k=Object.defineProperty,S=function(e,t,r){return function(e,t,r){return t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":g(t))?t+"":t,r)},C=Object.defineProperty,I=function(e,t,r){return function(e,t,r){return t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":g(t))?t+"":t,r)},x=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}(x||{}),A={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},O={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},E={};var M={};function R(e,t,r){var n,i=e+"."+String(r);if(M[i])return M[i].call(t);var o=function(e){if(E[e])return E[e];var t=globalThis[e],r=t.prototype,n=e in A?A[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in O?O[e]:void 0,s=Boolean(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 E[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;return document.body.removeChild(a),u?E[e]=u:r}catch(e){return r}}(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(M[i]=s,s.call(t)):t[r]}var T=function(e){return R("Node",e,"childNodes")},P=function(e){return R("Node",e,"parentNode")},N=function(e){return R("Node",e,"parentElement")},D=function(e){return R("Node",e,"textContent")},L=function(e){return e&&"shadowRoot"in e?R("Element",e,"shadowRoot"):null};function F(e){return e.nodeType===e.ELEMENT_NODE}function B(e){var t=e&&"host"in e&&"mode"in e&&function(e){return e&&"host"in e?R("ShadowRoot",e,"host"):null}(e)||null;return Boolean(t&&"shadowRoot"in t&&L(t)===e)}function U(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function j(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,(function(e){return z(e,r)})).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(e){return null}var n}function z(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=j(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?K(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?K(i,t):i}var V=function(){function e(){I(this,"idNodeMap",new Map),I(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var 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,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEac
1h((function(e){return r.removeNodeFromMap(e,t)}))},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 W(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&q(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function q(e){return e.toLowerCase()}var G="__rrweb_original__";function Z(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?q(t):null}function Y(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var 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,$=/^www\..*/i,X=/^(data:)([^,]*),(.*)/i;function K(e,t){return(e||"").replace(J,(function(e,r,n,i,o,s){var a,c=n||o||s,u=r||i||"";if(!c)return e;if(H.test(c)||$.test(c))return"url("+u+c+u+")";if(X.test(c))return"url("+u+c+u+")";if("/"===c[0])return"url("+u+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+u+")";var l=t.split("/"),h=c.split("/");l.pop();for(var p,f=y(h);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?l.pop():l.push(d))}return"url("+u+l.join("/")+u+")"}))}function Q(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var ee,te,re=1,ne=new RegExp("[^a-z0-9-_:]");function ie(){return re++}var oe=/^[^ \t\n\r\u000c]+/,se=/^[, \t\n\r\u000c]+/,ae=new WeakMap;function ce(e,t){return t&&""!==t.trim()?ue(e,t):t}function ue(e,t){var r=ae.get(e);if(r||(r=e.createElement("a"),ae.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function le(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?ce(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?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(se),!(r>=t.length);){var o=n(oe);if(","===o.slice(-1))o=ce(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=ce(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}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?K(n,ue(e)):"object"===t&&"data"===r?ce(e,n):n:ce(e,n):n}function he(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function pe(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&pe(P(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&pe(P(e),t,r)}function fe(e,t,r,n){var i;if(F(e)){if(!T(i=e).length)return!1}else{if(null===N(e))return!1;i=N(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(pe(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 de(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,f=t.dataURLOptions,d=void 0===f?{}:f,g=t.inlineImages,m=t.recordCanvas,v=t.keepIframeSrcFn,y=t.newlyAddedElement,_=void 0!==y&&y,b=t.cssCaptured,w=void 0!==b&&b,k=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:x.Document,childNodes:[],compatMode:e.compatMode}:{type:x.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:x.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.inlineStylesheet,o=t.maskInputOptions,s=void 0===o?{}:o,a=t.maskInputFn,c=t.dataURLOptions,u=void 0===c?{}:c,l=t.inlineImages,h=t.recordCanvas,f=t.keepIframeSrcFn,d=t.newlyAddedElement,g=void 0!==d&&d,m=t.rootId,v=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,t.blockClass,t.blockSelector),y=function(e){if(p(e,HTMLFormElement))return"form";var t=q(e.tagName);return ne.test(t)?"div":t}(e),_={},b=e.attributes.length,w=0;w<b;w++){var k=e.attributes[w];he(y,k.name,k.value)||(_[k.name]=le(n,y,q(k.name),k.value))}if("link"===y&&i){var S=Array.from(n.styleSheets).find((function(t){return t.href===e.href})),C=null;S&&(C=j(S)),C&&(delete _.rel,delete _.href,_._cssText=C)}if("style"===y&&e.sheet){var I=j(e.sheet);I&&(e.childNodes.length>1&&(I=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=Q(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=Q(n[c].textContent,r),l=3;l<u.length&&(u[l].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,l),1));l++);for(;l<u.length;l++){var h=u.substring(0,l),p=s.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}else l===u.length-1&&(f=s.indexOf(h));if(p.length>=2&&l>100){var d=n[c-1].textContent;if(d&&"string"==typeof d){var g=Q(d).length;f=s.indexOf(h,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var m=Math.floor(f/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=Q(e.substring(0,m),r);if(v.length===f){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(f);break}v.length<f?m+=Math.max(1,Math.floor((f-v.length)/a)):m-=Math.max(1,Math.floor((v.length-f)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")}(I,e)),_._cssText=I)}if("input"===y||"textarea"===y||"select"===y){var A=e.value,O=e.checked;"radio"!==_.type&&"checkbox"!==_.type&&"submit"!==_.type&&"button"!==_.type&&A?_.value=W({element:e,type:Z(e),tagName:y,value:A,maskInputOptions:s,maskInputFn:a}):O&&(_.checked=O)}if("option"===y&&(e.selected&&!s.select?_.selected=!0:delete _.selected),"dialog"===y&&e.open&&(_.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===y&&h)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,o=G in i?i[G]:i;
1if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((function(e){return 0!==e})))return!1}return!0})(e)||(_.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){var E=e.toDataURL(u.type,u.quality),M=n.createElement("canvas");M.width=e.width,M.height=e.height,E!==M.toDataURL(u.type,u.quality)&&(_.rr_dataURL=E)}if("img"===y&&l){ee||(ee=n.createElement("canvas"),te=ee.getContext("2d"));var R=e,T=R.currentSrc||R.getAttribute("src")||"<unknown-src>",P=R.crossOrigin,N=function(){R.removeEventListener("load",N);try{ee.width=R.naturalWidth,ee.height=R.naturalHeight,te.drawImage(R,0,0),_.rr_dataURL=ee.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?N():R.addEventListener("load",N));console.warn("Cannot inline img src="+T+"! Error: "+e)}"anonymous"===R.crossOrigin&&(P?_.crossOrigin=P:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?N():R.addEventListener("load",N)}if("audio"===y||"video"===y){var D=_;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(g||(e.scrollLeft&&(_.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(_.rr_scrollTop=e.scrollTop)),v){var L=e.getBoundingClientRect(),F=L.width,B=L.height;_={class:_.class,rr_width:F+"px",rr_height:B+"px"}}"iframe"!==y||f(_.src)||(e.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:x.Element,tagName:y,attributes:_,childNodes:[],isSVG:(U=e,Boolean("svg"===U.tagName||U.ownerSVGElement)||void 0),needBlock:v,rootId:m,isCustom:r};var U}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:d,inlineImages:g,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:_,rootId:k});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=P(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=D(e),u&&c&&(c=K(c,ue(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,N(e)):c.replace(/[\S]/g,"*")),{type:x.Text,textContent:c||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:l,rootId:k,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:x.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:x.Comment,textContent:D(e)||"",rootId:k};default:return!1}}function ge(e){return null==e?"":e.toLowerCase()}function me(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,h=void 0===l||l,p=t.maskInputOptions,f=void 0===p?{}:p,d=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,_=void 0===v?{}:v,b=t.inlineImages,w=void 0!==b&&b,k=t.recordCanvas,S=void 0!==k&&k,C=t.onSerialize,I=t.onIframeLoad,A=t.iframeLoadTimeout,O=void 0===A?5e3:A,E=t.onStylesheetLoad,M=t.stylesheetLoadTimeout,R=void 0===M?5e3:M,N=t.keepIframeSrcFn,D=void 0===N?function(){return!1}:N,j=t.newlyAddedElement,z=void 0!==j&&j,V=t.cssCaptured,W=void 0!==V&&V,q=t.needsMask,G=t.preserveWhiteSpace,Z=void 0===G||G;q||(q=fe(e,s,a,void 0===q));var J,H=de(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:q,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:_,inlineImages:w,recordCanvas:S,keepIframeSrcFn:D,newlyAddedElement:z,cssCaptured:W});if(!H)return console.warn(e,"not serialized"),null;J=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===x.Comment)return!0;if(e.type===x.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Y(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ge(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ge(e.attributes.name)||"icon"===ge(e.attributes.rel)||"apple-touch-icon"===ge(e.attributes.rel)||"shortcut icon"===ge(e.attributes.rel))))return!0;
1if("meta"===e.tagName){if(t.headMetaDescKeywords&&ge(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ge(e.attributes.property).match(/^(og|twitter|fb):/)||ge(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ge(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ge(e.attributes.name)||"googlebot"===ge(e.attributes.name)||"bingbot"===ge(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ge(e.attributes.name)||"generator"===ge(e.attributes.name)||"framework"===ge(e.attributes.name)||"publisher"===ge(e.attributes.name)||"progid"===ge(e.attributes.name)||ge(e.attributes.property).match(/^article:/)||ge(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ge(e.attributes.name)||"yandex-verification"===ge(e.attributes.name)||"csrf-token"===ge(e.attributes.name)||"p:domain_verify"===ge(e.attributes.name)||"verify-v1"===ge(e.attributes.name)||"verification"===ge(e.attributes.name)||"shopify-checkout-api-token"===ge(e.attributes.name)))return!0}}return!1}(H,m)||!Z&&H.type===x.Text&&!H.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ie();var $=Object.assign(H,{id:J});if(n.add(e,$),-2===J)return null;C&&C(e);var X=!u;if($.type===x.Element){X=X&&!$.needBlock,delete $.needBlock;var K=L(e);K&&U(K)&&($.isShadowHost=!0)}if(($.type===x.Document||$.type===x.Element)&&X){m.headWhitespace&&$.type===x.Element&&"head"===$.tagName&&(Z=!1);var Q={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:q,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:_,inlineImages:w,recordCanvas:S,preserveWhiteSpace:Z,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:R,keepIframeSrcFn:D,cssCaptured:!1};if($.type===x.Element&&"textarea"===$.tagName&&void 0!==$.attributes.value);else{$.type===x.Element&&void 0!==$.attributes._cssText&&"string"==typeof $.attributes._cssText&&(Q.cssCaptured=!0);for(var ee,te=y(Array.from(T(e)));!(ee=te()).done;){var re=me(ee.value,Q);re&&$.childNodes.push(re)}}var ne=null;if(F(e)&&(ne=L(e)))for(var oe,se=y(Array.from(T(ne)));!(oe=se()).done;){var ae=me(oe.value,Q);ae&&(U(ne)&&(ae.isShadow=!0),$.childNodes.push(ae))}}var ce=P(e);return ce&&B(ce)&&U(ce)&&($.isShadow=!0),$.type===x.Element&&"iframe"===$.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout((function(){o||(t(),o=!0)}),r);e.addEventListener("load",(function(){clearTimeout(a),o=!0,t()}))}}}(e,(function(){var t=e.contentDocument;if(t&&I){var r=me(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:q,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:_,inlineImages:w,recordCanvas:S,preserveWhiteSpace:Z,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:R,keepIframeSrcFn:D});r&&I(e,r)}}),O),$.type===x.Element&&"link"===$.tagName&&"string"==typeof $.attributes.rel&&("stylesheet"===$.attributes.rel||"preload"===$.attributes.rel&&"string"==typeof $.attributes.href&&"css"===Y($.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(E){var t=me(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:q,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:_,inlineImages:w,recordCanvas:S,preserveWhiteSpace:Z,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:R,keepIframeSrcFn:D});t&&E(e,t)}}),R),$}var ve={exports:{}},ye=String,_e=function(){return{isColorSupported:!1,reset:ye,bold:ye,dim:ye,italic:ye,underline:ye,inverse:ye,hidden:ye,strikethrough:ye,black:ye,red:ye,green:ye,yellow:ye,blue:ye,magenta:ye,cyan:ye,white:ye,gray:ye,bgBlack:ye,bgRed:ye,bgGreen:ye,bgYellow:ye,bgBlue:ye,bgMagenta:ye,bgCyan:ye,bgWhite:ye}};ve.exports=_e(),ve.exports.createColors=_e;var be=ve.exports,we=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return p(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
1return 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"}))),ke=be,Se=we,Ce=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}h(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=ke.isColorSupported),Se&&e&&(r=Se(r));var n,i,o=r.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=ke.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(m(Error)),Ie=Ce;Ce.default=Ce;var xe={};xe.isClean=Symbol("isClean"),xe.my=Symbol("my");var Ae={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Oe=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){var r;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");for(var 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;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Ae[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=Ae[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&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){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);var 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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Ee=Oe;Oe.default=Oe;var Me=Ee;function Re(e,t){new Me(t).stringify(e)}var Te=Re;Re.default=Re;var Pe=xe.isClean,Ne=xe.my,De=Ie,Le=Ee,Fe=Te;var Be=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Pe]=!1,this[Ne]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=y(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":g(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 De(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[Pe]){this[Pe]=!1;for(var e=this;e=e.parent;)e[Pe]=!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);
1else 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<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new Le).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=y(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":g(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":g(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Fe),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},c(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Ue=Be;Be.default=Be;var je=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=u({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}
1return h(t,e),c(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Ue),ze=je;je.default=je;var Ve=we.SourceMapConsumer,We=we.SourceMapGenerator,qe=we.existsSync,Ge=we.readFileSync,Ze=we.dirname,Ye=we.join,Je=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ze(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Ve(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":g(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Ze(e),qe(e))return this.mapFile=e,Ge(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(p(t,Ve))return We.fromSourceMap(t).toString();if(p(t,We))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Ye(Ze(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}(),He=Je;Je.default=Je;var $e=we.SourceMapConsumer,Xe=we.SourceMapGenerator,Ke=we.fileURLToPath,Qe=we.pathToFileURL,et=we.isAbsolute,tt=we.resolve,rt=we,nt=Ie,it=He,ot=Symbol("fromOffsetCac
1he"),st=Boolean($e&&Xe),at=Boolean(tt&&et),ct=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":g(e))&&!e.toString)throw new 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&&(!at||/^\w+:\/\//.test(t.from)||et(t.from)?this.file=t.from:this.file=tt(t.from)),at&&st){var r=new it(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="<input css "+function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":g(t))){var 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 h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new nt(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new nt(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&&(Qe&&(i.input.url=Qe(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[ot])t=this[ot];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[ot]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:tt(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=et(a.source)?Qe(a.source):new URL(a.source,this.map.consumer().sourceRoot||Qe(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(!Ke)throw new Error("file: protocol is not available in this PostCSS build");c.file=Ke(o)}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<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=u({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},c(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),ut=ct;ct.default=ct,rt&&rt.registerInput&&rt.registerInput(ct);var lt=we.SourceMapConsumer,ht=we.SourceMapGenerator,pt=we.dirname,ft=we.relative,dt=we.resolve,gt=we.sep,mt=we.pathToFileURL,vt=ut,yt=Boolean(lt&&ht),_t=Boolean(pt&&dt&&ft&>),bt=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||pt(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new lt(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;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(),_t&&yt&&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=ht.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ht({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new ht({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):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=e.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,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?pt(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=pt(dt(r,this.mapOpts.annotation)));var n=ft(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 vt(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)):"<no source>";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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(mt){var r=mt(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new 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;"\\"===gt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),wt=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return h(t,e),t}(Ue),kt=wt;wt.default=wt;var St,Ct,It,xt,At=xe.isClean,Ot=xe.my,Et=ze,Mt=kt;var Rt=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=y(t);!(n=i()).done;)for(var o,s=n.value,a=y(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=y(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=y(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=y(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map((function(t){return t.nodes&&(t.no
1des=e(t.nodes)),delete t.source,t}))}(St(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=y(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=y(e=e.nodes.slice(0));!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Et(e)]}else if(e.selector)e=[new Ct(e)];else if(e.name)e=[new It(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Mt(e)]}return e.map((function(e){return e[Ot]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[At]&&function e(t){if(t[At]=!1,t.proxyOf.nodes)for(var r,n=y(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}))},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=y(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=y(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=y(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=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?p(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?p(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?p(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)})))},c(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}(Ue);Rt.registerParse=function(e){St=e},Rt.registerRule=function(e){Ct=e},Rt.registerAtRule=function(e){It=e},Rt.registerRoot=function(e){xt=e};var Tt=Rt;Rt.default=Rt,Rt.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,It.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ct.prototype):"decl"===e.type?Object.setPrototypeOf(e,Et.prototype):"comment"===e.type?Object.setPrototypeOf(e,Mt.prototype):"root"===e.type&&Object.setPrototypeOf(e,xt.prototype),e[Ot]=!0,e.nodes&&e.nodes.forEach((function(e){Rt.rebuild(e)}))};var Pt,Nt,Dt=function(e){function t(t){var r;return(r=e.call(this,u({type:"document"},t))||this).nodes||(r.nodes=[]),r}return h(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Pt(new Nt,this,e).stringify()},t}(Tt);Dt.registerLazyResult=function(e){Pt=e},Dt.registerProcessor=function(e){Nt=e};var Lt=Dt;Dt.default=Dt;var Ft=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.no
1de.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}(),Bt=Ft;Ft.default=Ft;var Ut=Bt,jt=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 Ut(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},c(e,[{key:"content",get:function(){return this.css}}]),e}(),zt=jt;jt.default=jt;var Vt="'".charCodeAt(0),Wt='"'.charCodeAt(0),qt="\\".charCodeAt(0),Gt="/".charCodeAt(0),Zt="\n".charCodeAt(0),Yt=" ".charCodeAt(0),Jt="\f".charCodeAt(0),Ht="\t".charCodeAt(0),$t="\r".charCodeAt(0),Xt="[".charCodeAt(0),Kt="]".charCodeAt(0),Qt="(".charCodeAt(0),er=")".charCodeAt(0),tr="{".charCodeAt(0),rr="}".charCodeAt(0),nr=";".charCodeAt(0),ir="*".charCodeAt(0),or=":".charCodeAt(0),sr="@".charCodeAt(0),ar=/[\t\n\f\r "#'()/;[\\\]{}]/g,cr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ur=/.[\r\n"'(/\\]/,lr=/[\da-f]/i,hr=Tt,pr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}h(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(hr),fr=pr;pr.default=pr,hr.registerAtRule(pr);var dr,gr,mr=Tt,vr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}h(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=y(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 dr(new gr,this,e).stringify()},t}(mr);vr.registerLazyResult=function(e){dr=e},vr.registerProcessor=function(e){gr=e};var yr=vr;vr.default=vr,mr.registerRoot(vr);var _r={comma:function(e){return _r.split(e,[","],!0)},space:function(e){return _r.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},br=_r;_r.default=_r;var wr=Tt,kr=br,Sr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}
vendor: 10,822 bytes, line 1
1return h(t,e),c(t,[{key:"selectors",get:function(){return kr.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}(wr),Cr=Sr;Sr.default=Sr,wr.registerRule(Sr);var Ir=ze,xr=kt,Ar=fr,Or=yr,Er=Cr,Mr={empty:!0,space:!0},Rr=Tt,Tr=function(){function e(e){this.input=e,this.root=new Or,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 Ar;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}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];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}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=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=y(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new xr;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=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Zt:case Yt:case Ht:case $t:case Jt:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Yt||r===Zt||r===Ht||r===$t||r===Jt);h=["space",p.slice(g,n)],g=n-1;break;case Xt:case Kt:case tr:case rr:case or:case nr:case er:var _=String.fromCharCode(r);h=[_,_,g];break;case Qt:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Vt&&l!==Wt&&l!==Yt&&l!==Zt&&l!==Ht&&l!==Jt&&l!==$t){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===qt;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||ur.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Vt:case Wt:i=r===Vt?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===qt;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case sr:ar.lastIndex=g+1,ar.test(p),n=0===ar.lastIndex?p.length-1:ar.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case qt:for(n=g,s=!0;p.charCodeAt(n+1)===qt;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Gt&&r!==Yt&&r!==Zt&&r!==Ht&&r!==$t&&r!==Jt&&(n+=1,lr.test(p.charAt(n)))){for(;lr.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Yt&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Gt&&p.charCodeAt(g+1)===ir?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(cr.lastIndex=g+1,cr.test(p),n=0===cr.lastIndex?p.length-1:cr.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new Ir;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[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)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}))&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 Er;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);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===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,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Mr[a]||Mr[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Er;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Pr=ut;function Nr(e,t){var r=new Pr(e,t),n=new Tr(r);try{n.parse()}catch(e){throw e}return n.root}var Dr=Nr;Nr.default=Nr,Rr.registerParse(Nr);var Lr=xe.isClean,Fr=xe.my,Br=bt,Ur=Te,jr=Tt,zr=Lt,Vr=zt,Wr=Dr,qr=yr,Gr={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Zr={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Yr={Once:!0,postcssPlugin:!0,prepare:!0};function Jr(e){return"object"===(void 0===e?"undefined":g(e))&&"function"==typeof e.then}function Hr(e){var t=!1,r=Gr[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function $r(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Hr(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function Xr(e){return e[Lr]=!1,e.nodes&&e.nodes.forEach((function(e){return Xr(e)})),e}var Kr={},Qr=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":g(r))||null===r||"root"!==r.type&&"document"!==r.type)if(p(r,e)||p(r,Vr))i=Xr(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Wr;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Fr]&&jr.rebuild(i)}else i=Xr(r);this.result=new Vr(t,i,n),this.helpers=u({},Kr,{postcss:Kr,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":g(e))&&e.prepare?u({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=y(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":g(i)))for(var o in i){if(!Zr[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Yr[o])if("object"===g(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return s((function(){var t,r,n,i,o,s,a,c,u,l,h,p;return _(this,(function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!Jr(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Lr])return[3,14];o[Lr]=!0,s=[$r(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Jr(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,s;return _(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}
1))},h=y(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,b(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("object"===(void 0===e?"undefined":g(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return Jr(r[0])?Promise.all(r):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=Ur;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Br(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=y(this.plugins);!(e=t()).done;){var r=e.value;if(Jr(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Lr];)n[Lr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=y(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=y(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(Jr(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){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Lr])return a[Lr]=!0,void e.push($r(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[Lr]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Lr]=!0;for(var r,n=y(Hr(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[Lr]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},c(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Qr.registerPostcss=function(e){Kr=e};var en=Qr;Qr.default=Qr,qr.registerLazyResult(Qr),zr.registerLazyResult(Qr);var tn=bt,rn=Te,nn=Dr,on=zt,sn=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=rn;this.result=new on(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new tn(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Prom
1ise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},c(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=nn;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),an=sn;sn.default=sn;var cn=an,un=en,ln=Lt,hn=yr,pn=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":g(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":g(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":g(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new un(this,e,t):new cn(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),fn=pn;pn.default=pn,hn.registerProcessor(pn),ln.registerProcessor(pn);var dn=ze,gn=He,mn=kt,vn=fr,yn=ut,_n=yr,bn=Cr;function wn(e,t){if(Array.isArray(e))return e.map((function(e){return wn(e)}));var r=e.inputs,n=f(e,["inputs"]);if(r){t=[];for(var i,o=y(r);!(i=o()).done;){var s=u({},i.value,{__proto__:yn.prototype});s.map&&(s.map=u({},s.map,{__proto__:gn.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return wn(e,t)}))),n.source){var a=n.source,c=a.inputId,l=f(a,["inputId"]);n.source=l,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new _n(n);if("decl"===n.type)return new dn(n);if("rule"===n.type)return new bn(n);if("comment"===n.type)return new mn(n);if("atrule"===n.type)return new vn(n);throw new Error("Unknown node type: "+e.type)}var kn=wn;wn.default=wn;var Sn=Ie,Cn=ze,In=en,xn=Tt,An=fn,On=Te,En=kn,Mn=Lt,Rn=Bt,Tn=kt,Pn=fr,Nn=zt,Dn=ut,Ln=Dr,Fn=br,Bn=Cr,Un=yr,jn=Ue;function zn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new An(t)}zn.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new An).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return zn([i(r)]).process(e,t)},i},zn.stringify=On,zn.parse=Ln,zn.fromJSON=En,zn.list=Fn,zn.comment=function(e){return new Tn(e)},zn.atRule=function(e){return new Pn(e)},zn.decl=function(e){return new Cn(e)},zn.rule=function(e){return new Bn(e)},zn.root=function(e){return new Un(e)},zn.document=function(e){return new Mn(e)},zn.CssSyntaxError=Sn,zn.Declaration=Cn,zn.Container=xn,zn.Processor=An,zn.Document=Mn,zn.Comment=Tn,zn.Warning=Rn,zn.AtRule=Pn,zn.Result=Nn,zn.Input=Dn,zn.Rule=Bn,zn.Root=Un,zn.Node=jn,In.registerPostcss(zn);var Vn=zn;zn.default=zn;var Wn=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Vn);Wn.stringify,Wn.fromJSON,Wn.plugin,Wn.parse,Wn.list,Wn.document,Wn.comment,Wn.atRule,Wn.rule,Wn.decl,Wn.root,Wn.CssSyntaxError,Wn.Declaration,Wn.Container,Wn.Processor,Wn.Document,Wn.Comment,Wn.Warning,Wn.AtRule,Wn.Result,Wn.Input,Wn.Rule,Wn.Root,Wn.Node;var qn=Object.defineProperty,Gn=function(e,t,r){return function(e,t,r){return t in e?qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":g(t))?t+"":t,r)};var Zn={exports:{}},Yn=String,Jn=function(){return{isColorSupported:!1,reset:Yn,bold:Yn,dim:Yn,italic:Yn,underline:Yn,inverse:Yn,hidden:Yn,strikethrough:Yn,black:Yn,red:Yn,green:Yn,yellow:Yn,blue:Yn,magenta:Yn,cyan:Yn,white:Yn,gray:Yn,bgBlack:Yn,bgRed:Yn,bgGreen:Yn,bgYellow:Yn,bgBlue:Yn,bgMagenta:Yn,bgCyan:Yn,bgWhite:Yn}};Zn.exports=Jn(),Zn.exports.createColors=Jn;var Hn=Zn.exports,$n=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return p(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
1return 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"}))),Xn=Hn,Kn=$n,Qn=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}h(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Xn.isColorSupported),Kn&&e&&(r=Kn(r));var n,i,o=r.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=Xn.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(m(Error)),ei=Qn;Qn.default=Qn;var ti={};ti.isClean=Symbol("isClean"),ti.my=Symbol("my");var ri={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},ni=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){var r;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");for(var 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;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return ri[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=ri[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&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){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);var 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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),ii=ni;ni.default=ni;var oi=ii;function si(e,t){new oi(t).stringify(e)}var ai=si;si.default=si;var ci=ti.isClean,ui=ti.my,li=ei,hi=ii,pi=ai;var fi=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[ci]=!1,this[ui]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=y(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":g(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 li(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[ci]){this[ci]=!1;for(var e=this;e=e.parent;)e[ci]=!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);
1else 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<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new hi).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=y(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":g(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":g(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=pi),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},c(e,[{key:"proxyOf",get:function(){return this}}]),e}(),di=fi;fi.default=fi;var gi=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=u({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}
1return h(t,e),c(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(di),mi=gi;gi.default=gi;var vi=$n.SourceMapConsumer,yi=$n.SourceMapGenerator,_i=$n.existsSync,bi=$n.readFileSync,wi=$n.dirname,ki=$n.join,Si=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=wi(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new vi(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":g(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=wi(e),_i(e))return this.mapFile=e,bi(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(p(t,vi))return yi.fromSourceMap(t).toString();if(p(t,yi))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=ki(wi(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}(),Ci=Si;Si.default=Si;var Ii=$n.SourceMapConsumer,xi=$n.SourceMapGenerator,Ai=$n.fileURLToPath,Oi=$n.pathToFileURL,Ei=$n.isAbsolute,Mi=$n.resolve,Ri=$n,Ti=ei,Pi=Ci,Ni=Symbol("fromOffsetCac
1he"),Di=Boolean(Ii&&xi),Li=Boolean(Mi&&Ei),Fi=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":g(e))&&!e.toString)throw new 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&&(!Li||/^\w+:\/\//.test(t.from)||Ei(t.from)?this.file=t.from:this.file=Mi(t.from)),Li&&Di){var r=new Pi(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="<input css "+function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":g(t))){var 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 h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Ti(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Ti(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&&(Oi&&(i.input.url=Oi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ni])t=this[Ni];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Ni]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Mi(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=Ei(a.source)?Oi(a.source):new URL(a.source,this.map.consumer().sourceRoot||Oi(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(!Ai)throw new Error("file: protocol is not available in this PostCSS build");c.file=Ai(o)}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<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=u({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},c(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Bi=Fi;Fi.default=Fi,Ri&&Ri.registerInput&&Ri.registerInput(Fi);var Ui=$n.SourceMapConsumer,ji=$n.SourceMapGenerator,zi=$n.dirname,Vi=$n.relative,Wi=$n.resolve,qi=$n.sep,Gi=$n.pathToFileURL,Zi=Bi,Yi=Boolean(Ui&&ji),Ji=Boolean(zi&&Wi&&Vi&&qi),Hi=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||zi(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ui(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;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(),Ji&&Yi&&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=ji.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ji({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new ji({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):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=e.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,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?zi(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=zi(Wi(r,this.mapOpts.annotation)));var n=Vi(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 Zi(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)):"<no source>";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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Gi){var r=Gi(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new 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;"\\"===qi&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),$i=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return h(t,e),t}(di),Xi=$i;$i.default=$i;var Ki,Qi,eo,to,ro=ti.isClean,no=ti.my,io=mi,oo=Xi;var so=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=y(t);!(n=i()).done;)for(var o,s=n.value,a=y(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=y(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=y(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=y(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map((function(t){return t.nodes&&(t.no
1des=e(t.nodes)),delete t.source,t}))}(Ki(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=y(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=y(e=e.nodes.slice(0));!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new io(e)]}else if(e.selector)e=[new Qi(e)];else if(e.name)e=[new eo(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new oo(e)]}return e.map((function(e){return e[no]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ro]&&function e(t){if(t[ro]=!1,t.proxyOf.nodes)for(var r,n=y(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}))},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=y(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=y(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=y(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=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?p(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?p(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?p(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)})))},c(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}(di);so.registerParse=function(e){Ki=e},so.registerRule=function(e){Qi=e},so.registerAtRule=function(e){eo=e},so.registerRoot=function(e){to=e};var ao=so;so.default=so,so.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,eo.prototype):"rule"===e.type?Object.setPrototypeOf(e,Qi.prototype):"decl"===e.type?Object.setPrototypeOf(e,io.prototype):"comment"===e.type?Object.setPrototypeOf(e,oo.prototype):"root"===e.type&&Object.setPrototypeOf(e,to.prototype),e[no]=!0,e.nodes&&e.nodes.forEach((function(e){so.rebuild(e)}))};var co,uo,lo=function(e){function t(t){var r;return(r=e.call(this,u({type:"document"},t))||this).nodes||(r.nodes=[]),r}return h(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new co(new uo,this,e).stringify()},t}(ao);lo.registerLazyResult=function(e){co=e},lo.registerProcessor=function(e){uo=e};var ho=lo;lo.default=lo;var po=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.no
1de.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}(),fo=po;po.default=po;var go=fo,mo=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 go(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},c(e,[{key:"content",get:function(){return this.css}}]),e}(),vo=mo;mo.default=mo;var yo="'".charCodeAt(0),_o='"'.charCodeAt(0),bo="\\".charCodeAt(0),wo="/".charCodeAt(0),ko="\n".charCodeAt(0),So=" ".charCodeAt(0),Co="\f".charCodeAt(0),Io="\t".charCodeAt(0),xo="\r".charCodeAt(0),Ao="[".charCodeAt(0),Oo="]".charCodeAt(0),Eo="(".charCodeAt(0),Mo=")".charCodeAt(0),Ro="{".charCodeAt(0),To="}".charCodeAt(0),Po=";".charCodeAt(0),No="*".charCodeAt(0),Do=":".charCodeAt(0),Lo="@".charCodeAt(0),Fo=/[\t\n\f\r "#'()/;[\\\]{}]/g,Bo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Uo=/.[\r\n"'(/\\]/,jo=/[\da-f]/i,zo=ao,Vo=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}h(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(zo),Wo=Vo;Vo.default=Vo,zo.registerAtRule(Vo);var qo,Go,Zo=ao,Yo=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}h(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=y(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 qo(new Go,this,e).stringify()},t}(Zo);Yo.registerLazyResult=function(e){qo=e},Yo.registerProcessor=function(e){Go=e};var Jo=Yo;Yo.default=Yo,Zo.registerRoot(Yo);var Ho={comma:function(e){return Ho.split(e,[","],!0)},space:function(e){return Ho.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},$o=Ho;Ho.default=Ho;var Xo=ao,Ko=$o,Qo=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}
vendor: 10,822 bytes, line 1
1return h(t,e),c(t,[{key:"selectors",get:function(){return Ko.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}(Xo),es=Qo;Qo.default=Qo,Xo.registerRule(Qo);var ts=mi,rs=Xi,ns=Wo,is=Jo,os=es,ss={empty:!0,space:!0},as=ao,cs=function(){function e(e){this.input=e,this.root=new is,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 ns;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}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];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}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=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=y(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new rs;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=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case ko:case So:case Io:case xo:case Co:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===So||r===ko||r===Io||r===xo||r===Co);h=["space",p.slice(g,n)],g=n-1;break;case Ao:case Oo:case Ro:case To:case Do:case Po:case Mo:var _=String.fromCharCode(r);h=[_,_,g];break;case Eo:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==yo&&l!==_o&&l!==So&&l!==ko&&l!==Io&&l!==Co&&l!==xo){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===bo;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Uo.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case yo:case _o:i=r===yo?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===bo;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Lo:Fo.lastIndex=g+1,Fo.test(p),n=0===Fo.lastIndex?p.length-1:Fo.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case bo:for(n=g,s=!0;p.charCodeAt(n+1)===bo;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==wo&&r!==So&&r!==ko&&r!==Io&&r!==xo&&r!==Co&&(n+=1,jo.test(p.charAt(n)))){for(;jo.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===So&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===wo&&p.charCodeAt(g+1)===No?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Bo.lastIndex=g+1,Bo.test(p),n=0===Bo.lastIndex?p.length-1:Bo.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new ts;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[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)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}))&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 os;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);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===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,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",ss[a]||ss[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new os;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),us=Bi;function ls(e,t){var r=new us(e,t),n=new cs(r);try{n.parse()}catch(e){throw e}return n.root}var hs=ls;ls.default=ls,as.registerParse(ls);var ps=ti.isClean,fs=ti.my,ds=Hi,gs=ai,ms=ao,vs=ho,ys=vo,_s=hs,bs=Jo,ws={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ks={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Ss={Once:!0,postcssPlugin:!0,prepare:!0};function Cs(e){return"object"===(void 0===e?"undefined":g(e))&&"function"==typeof e.then}function Is(e){var t=!1,r=ws[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function xs(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Is(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function As(e){return e[ps]=!1,e.nodes&&e.nodes.forEach((function(e){return As(e)})),e}var Os={},Es=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":g(r))||null===r||"root"!==r.type&&"document"!==r.type)if(p(r,e)||p(r,ys))i=As(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=_s;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[fs]&&ms.rebuild(i)}else i=As(r);this.result=new ys(t,i,n),this.helpers=u({},Os,{postcss:Os,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":g(e))&&e.prepare?u({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=y(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":g(i)))for(var o in i){if(!ks[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ss[o])if("object"===g(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return s((function(){var t,r,n,i,o,s,a,c,u,l,h,p;return _(this,(function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!Cs(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[ps])return[3,14];o[ps]=!0,s=[xs(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Cs(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,s;return _(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}
1))},h=y(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,b(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("object"===(void 0===e?"undefined":g(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return Cs(r[0])?Promise.all(r):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=gs;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new ds(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=y(this.plugins);!(e=t()).done;){var r=e.value;if(Cs(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[ps];)n[ps]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=y(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=y(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(Cs(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){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[ps])return a[ps]=!0,void e.push(xs(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[ps]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[ps]=!0;for(var r,n=y(Is(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[ps]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},c(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Es.registerPostcss=function(e){Os=e};var Ms=Es;Es.default=Es,bs.registerLazyResult(Es),vs.registerLazyResult(Es);var Rs=Hi,Ts=ai,Ps=hs,Ns=vo,Ds=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Ts;this.result=new Ns(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Rs(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Prom
1ise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},c(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Ps;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Ls=Ds;Ds.default=Ds;var Fs=Ls,Bs=Ms,Us=ho,js=Jo,zs=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":g(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":g(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":g(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Bs(this,e,t):new Fs(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Vs=zs;zs.default=zs,js.registerProcessor(zs),Us.registerProcessor(zs);var Ws=mi,qs=Ci,Gs=Xi,Zs=Wo,Ys=Bi,Js=Jo,Hs=es;function $s(e,t){if(Array.isArray(e))return e.map((function(e){return $s(e)}));var r=e.inputs,n=f(e,["inputs"]);if(r){t=[];for(var i,o=y(r);!(i=o()).done;){var s=u({},i.value,{__proto__:Ys.prototype});s.map&&(s.map=u({},s.map,{__proto__:qs.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return $s(e,t)}))),n.source){var a=n.source,c=a.inputId,l=f(a,["inputId"]);n.source=l,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new Js(n);if("decl"===n.type)return new Ws(n);if("rule"===n.type)return new Hs(n);if("comment"===n.type)return new Gs(n);if("atrule"===n.type)return new Zs(n);throw new Error("Unknown node type: "+e.type)}var Xs=$s;$s.default=$s;var Ks=ei,Qs=mi,ea=Ms,ta=ao,ra=Vs,na=ai,ia=Xs,oa=ho,sa=fo,aa=Xi,ca=Wo,ua=vo,la=Bi,ha=hs,pa=$o,fa=es,da=Jo,ga=di;function ma(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new ra(t)}ma.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new ra).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return ma([i(r)]).process(e,t)},i},ma.stringify=na,ma.parse=ha,ma.fromJSON=ia,ma.list=pa,ma.comment=function(e){return new aa(e)},ma.atRule=function(e){return new ca(e)},ma.decl=function(e){return new Qs(e)},ma.rule=function(e){return new fa(e)},ma.root=function(e){return new da(e)},ma.document=function(e){return new oa(e)},ma.CssSyntaxError=Ks,ma.Declaration=Qs,ma.Container=ta,ma.Processor=ra,ma.Document=oa,ma.Comment=aa,ma.Warning=sa,ma.AtRule=ca,ma.Result=ua,ma.Input=la,ma.Rule=fa,ma.Root=da,ma.Node=ga,ea.registerPostcss(ma);var va=ma;ma.default=ma;var ya=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(va);ya.stringify,ya.fromJSON,ya.plugin,ya.parse,ya.list,ya.document,ya.comment,ya.atRule,ya.rule,y
1a.decl,ya.root,ya.CssSyntaxError,ya.Declaration,ya.Container,ya.Processor,ya.Document,ya.Comment,ya.Warning,ya.AtRule,ya.Result,ya.Input,ya.Rule,ya.Root,ya.Node;var _a=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Gn(this,"parentElement",null),Gn(this,"parentNode",null),Gn(this,"ownerDocument"),Gn(this,"firstChild",null),Gn(this,"lastChild",null),Gn(this,"previousSibling",null),Gn(this,"nextSibling",null),Gn(this,"ELEMENT_NODE",1),Gn(this,"TEXT_NODE",3),Gn(this,"nodeType"),Gn(this,"nodeName"),Gn(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!p(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},c(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),ba={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},wa={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ka={};function Sa(e){if(ka[e])return ka[e];var t=globalThis[e],r=t.prototype,n=e in ba?ba[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in wa?wa[e]:void 0,s=Boolean(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 ka[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;return document.body.removeChild(a),u?ka[e]=u:r}catch(e){return r}}var Ca={};function Ia(e,t,r){var n,i=e+"."+String(r);if(Ca[i])return Ca[i].call(t);var o=Sa(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Ca[i]=s,s.call(t)):t[r]}var xa={};function Aa(e,t,r){var n=e+"."+String(r);if(xa[n])return xa[n].bind(t);var i=Sa(e)[r];return"function"!=typeof i?t[r]:(xa[n]=i,i.bind(t))}function Oa(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(){}}}var Ea=function(e){return Ia("Node",e,"childNodes")},Ma=function(e){return Ia("Node",e,"parentNode")},Ra=function(e){return Ia("Node",e,"parentElement")},Ta=function(e){return Ia("Node",e,"textContent")},Pa=function(e,t){return Aa("Node",e,"contains")(t)},Na=function(e){return Aa("Node",e,"getRootNode")()},Da=function(e){return e&&"host"in e?Ia("ShadowRoot",e,"host"):null},La=function(e){return e&&"shadowRoot"in e?Ia("Element",e,"shadowRoot"):null};function Fa(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var Ba="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Ua={map:{},getId:function(){return console.error(Ba),-1},getNode:function(){return console.error(Ba),null},removeNodeFromMap:function(){console.error(Ba)},has:function(){return console.error(Ba),!1},reset:function(){console.error(Ba)}};function ja(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>
1t?(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 za(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 za(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ua=new Proxy(Ua,{get:function(e,t,r){return"map"===t&&console.error(Ba),Reflect.get(e,t,r)}}));var Va=Date.now;function Wa(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=Ra(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=Ra(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function qa(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ga(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Za(e){return e?e.nodeType===e.ELEMENT_NODE?e:Ra(e):null}function Ya(e,t,r,n){if(!e)return!1;var i=Za(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(pe(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function Ja(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function Ha(e){return Boolean(e.changedTouches)}function $a(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Xa(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Ka(e){return!!e&&(p(e,_a)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(La(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Va=function(){return(new Date).getTime()});var Qa=function(){function e(){S(this,"id",1),S(this,"styleIDMap",new WeakMap),S(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){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);var 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++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function ec(e){var t,r=null;return"getRootNode"in e&&(null==(t=Na(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Da(Na(e))&&(r=Da(Na(e))),r}function tc(e){var t=e.ownerDocument;return!!t&&(Pa(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=ec(r);)r=t;return r}(e);return Pa(t,r)}(e))}var rc=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}(rc||{}),nc=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}(nc||{}),ic=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}(ic||{}),oc=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(oc||{}),sc=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(sc||{}),ac=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}(ac||{}),cc=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}(cc||{});function uc(e){return"__ln"in e}var lc,hc=function(){function e(){S(this,"length",0),S(this,"head",null),S(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&uc(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&uc(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;
1this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),pc=function(e,t){return e+"@"+t},fc=function(){function e(){var e=this;S(this,"frozen",!1),S(this,"locked",!1),S(this,"texts",[]),S(this,"attributes",[]),S(this,"attributeMap",new WeakMap),S(this,"removes",[]),S(this,"mapRemoves",[]),S(this,"movedMap",{}),S(this,"addedSet",new Set),S(this,"movedSet",new Set),S(this,"droppedSet",new Set),S(this,"removesSubTreeCache",new Set),S(this,"mutationCb"),S(this,"blockClass"),S(this,"blockSelector"),S(this,"maskTextClass"),S(this,"maskTextSelector"),S(this,"inlineStylesheet"),S(this,"maskInputOptions"),S(this,"maskTextFn"),S(this,"maskInputFn"),S(this,"keepIframeSrcFn"),S(this,"recordCanvas"),S(this,"inlineImages"),S(this,"slimDOMOptions"),S(this,"dataURLOptions"),S(this,"doc"),S(this,"mirror"),S(this,"iframeManager"),S(this,"stylesheetManager"),S(this,"shadowDomManager"),S(this,"canvasManager"),S(this,"processedNodeManager"),S(this,"unattachedDoc"),S(this,"processMutations",(function(t){t.forEach(e.processMutation),e.emit()})),S(this,"emit",(function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new hc,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=Ma(o);if(s&&tc(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=B(s)?e.mirror.getId(ec(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=me(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){$a(t,e.mirror)&&e.iframeManager.addIframe(t),Xa(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),Ka(o)&&e.shadowDomManager.addShadowRoot(La(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();if("IFRAME"===s.nodeName)try{e.iframeManager.removeIframe(s)}catch(e){}else e.stylesheetManager.cleanupStylesheetsForRemovedNode(s);e.mirror.removeNodeFromMap(s)}for(var a,c=y(e.movedSet);!(a=c()).done;){var u=a.value;gc(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(Ma(u))||o(u)}for(var l,h=y(e.addedSet);!(l=h()).done;){var p=l.value;mc(e.droppedSet,p)||gc(e.removesSubTreeCache,p,e.mirror)?mc(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var f=null;n.length;){var d=null;if(f){var g=e.mirror.getId(Ma(f.value)),m=i(f.value);-1!==g&&-1!==m&&(d=f)}if(!d)for(var v=n.tail;v;){var _=v;if(v=v.previous,_){var b=e.mirror.getId(Ma(_.value));if(-1===i(_.value))continue;if(-1!==b){d=_;break}var w=_.value,k=Ma(w);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var S=Da(k);if(-1!==e.mirror.getId(S)){d=_;break}}}}if(!d){for(;n.head;)n.removeNode(n.head.value);break}f=d.previous,n.removeNode(d.value),o(d.value)}var C={texts:e.texts.map((function(t){var r=t.node,n=Ma(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}})).filter((function(e){return!r.has(e.id)})).filter((function(t){return e.mirror.has(t.id)})),attributes:e.attributes.map((function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}})).filter((function(e){return!r.has(e.id)})).filter((function(t){return e.mirror.has(t.id)})),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}})),S(this,"genTextAreaValueMutation",(function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(Ea(t),(function(e){return Ta(e)||""})).join("");r.attributes.value=W({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Z(t),value:n,maskInputFn:e.maskInputFn})})),S(this,"processMutation",(function(t){if(!Ja(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=Ta(t.target);Ya(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:fe(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,Za(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=Z(n);o=W({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(Ya(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);
1if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!he(n.tagName,i))if(a.attributes[i]=le(e.doc,q(n.tagName),q(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=y(Array.from(n.style));!(u=l()).done;){var h=u.value,p=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);p!==c.style.getPropertyValue(h)||f!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===f?p:[p,f]:a._unchangedStyles[h]=[p,f]}for(var d,g=y(Array.from(c.style));!(d=g()).done;){var m=d.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(Ya(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach((function(r){return e.genAdds(r,t.target)})),t.removedNodes.forEach((function(r){var n=e.mirror.getId(r),i=B(t.target)?e.mirror.getId(Da(t.target)):e.mirror.getId(t.target);Ya(t.target,e.blockClass,e.blockSelector,!1)||Ja(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(dc(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||function e(t,r){if(B(t))return!1;var n=r.getId(t);if(!r.has(n))return!0;var i=Ma(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))}(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[pc(n,i)]?dc(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!B(t.target)||!U(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),Ea(n).forEach((function(e){return r.push(e)})))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))}))}})),S(this,"genAdds",(function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(Ja(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[pc(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Ya(t,e.blockClass,e.blockSelector,!1)||(Ea(t).forEach((function(t){return e.genAdds(t)})),Ka(t)&&Ea(La(t)).forEach((function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)})))}}))}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((function(r){t[r]=e[r]}))},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function dc(e,t){e.delete(t),Ea(t).forEach((function(t){return dc(e,t)}))}function gc(e,t,r){return 0!==e.size&&function(e,t){var r=Ma(t);return!!r&&e.has(r)}(e,t)}function mc(e,t){return 0!==e.size&&function e(t,r){var n=Ma(r);return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var vc=function(e){return lc?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(lc&&!0===lc(e))return;throw e}}:e},yc=[];function _c(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function bc(e,t){var r=new fc;yc.push(r),r.init(e);var n=new(Sa("MutationObserver").constructor)(vc(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function wc(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return Fa("scroll",vc(ja(vc((function(e){var s=_c(e);if(s&&!Ya(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=Wa(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}})),s.scroll||100)),r)}var kc=["INPUT","TEXTAREA","SELECT"],Sc=new WeakMap;function Cc(e){return function(e,t){if(Oc("CSSGroupingRule")&&p(e.parentRule,CSSGroupingRule)||Oc("CSSMediaRule")&&p(e.parentRule,CSSMediaRule)||Oc("CSSSupportsRule")&&p(e.parentRule,CSSSupportsRule)||Oc("CSSConditionRule")&&p(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Ic(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function xc(e,t){var r,n,i,o,s=e.mirror,a=e.stylesheetManager;o="#document"===t.nodeName?s.getId(t):s.getId(Da(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==o&&-1!==o)try{a.adoptStyleSheets(e,o)}catch(e){}return r}}),vc((function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))):function(){}}function Ac(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=bc(e,e.doc));var i,o,s,a,c,l,h,f,d,g=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=ja(vc((function(e){var r=Date.now()-o;t(c.map((function(e){return e.timeOffset-=r,e})),e),c=[],o=null})),a),l=vc(ja(vc((function(e){var t=_c(e),r=Ha(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=Va()),c.push({x:n,y:s,id:i.getId(t),timeOffset:Va()-o}),u("undefined"!=typeof DragEvent&&p(e,DragEvent)?nc.Drag:p(e,MouseEvent)?nc.MouseMove:nc.TouchMove)})),s,{trailing:!1})),h=[Fa("mousemove",l,n),Fa("touchmove",l,n),Fa("drag",l,n)];
1return vc((function(){h.forEach((function(e){return e()}))}))}(e),m=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],l=null;return Object.keys(ic).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]})).forEach((function(e){var s=q(e),a=function(e){return function(r){var s=_c(r);if(!Ya(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=oc.Mouse;break;case"touch":a=oc.Touch;break;case"pen":a=oc.Pen}a===oc.Touch?ic[e]===ic.MouseDown?c="TouchStart":ic[e]===ic.MouseUp&&(c="TouchEnd"):oc.Pen}else Ha(r)&&(a=oc.Touch);null!==a?(l=a,(c.startsWith("Touch")&&a===oc.Touch||c.startsWith("Mouse")&&a===oc.Mouse)&&(a=null)):ic[e]===ic.Click&&(a=l,l=null);var h=Ha(r)?r.changedTouches[0]:r;if(h){var p=n.getId(s),f=h.clientX,d=h.clientY;vc(t)(u({type:ic[c],id:p,x:f,y:d},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(ic[e]){case ic.MouseDown:case ic.MouseUp:s=s.replace("mouse","pointer");break;case ic.TouchStart:case ic.TouchEnd:return}c.push(Fa(s,a,r))})),vc((function(){c.forEach((function(e){return e()}))}))}(e),v=wc(e),_=function(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1;return Fa("resize",vc(ja(vc((function(){var e=qa(),t=Ga();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)})),200)),n)}(e,{win:n}),b=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,l=e.maskInputFn,h=e.sampling,p=e.userTriggeredOnInput;function f(e){var t=_c(e),n=e.isTrusted,u=t&&t.tagName;if(t&&"OPTION"===u&&(t=Ra(t)),t&&u&&!(kc.indexOf(u)<0)&&!Ya(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var h=t.value,f=!1,g=Z(t)||"";"radio"===g||"checkbox"===g?f=t.checked:(c[u.toLowerCase()]||c[g])&&(h=W({element:t,maskInputOptions:c,tagName:u,type:g,value:h,maskInputFn:l})),d(t,p?{text:h,isChecked:f,userTriggered:n}:{text:h,isChecked:f});var m=t.name;"radio"===g&&m&&f&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach((function(e){if(e!==t){var r=e.value;d(e,p?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}}))}}function d(e,r){var i=Sc.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Sc.set(e,r);var o=n.getId(e);vc(t)(u({},r,{id:o}))}}var g=("last"===h.input?["change"]:["input","change"]).map((function(e){return Fa(e,vc(f),r)})),m=r.defaultView;if(!m)return function(){g.forEach((function(e){return e()}))};var v,y=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),_=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&(v=g).push.apply(v,[].concat(_.map((function(e){return za(e[0],e[1],{set:function(){vc(f)({target:this,isTrusted:!1})}},!1,m)})))),vc((function(){g.forEach((function(e){return e()}))}))}(e),w=(o=(i=e).mediaInteractionCb,s=i.blockClass,a=i.blockSelector,c=i.mirror,l=i.sampling,h=i.doc,f=vc((function(e){return ja(vc((function(t){var r=_c(t);if(r&&!Ya(r,s,a,!0)){var n=r.currentTime,i=r.volume,u=r.muted,l=r.playbackRate,h=r.loop;o({type:e,id:c.getId(r),currentTime:n,volume:i,muted:u,playbackRate:l,loop:h})}})),l.media||500)})),d=[Fa("play",f(ac.Play),h),Fa("pause",f(ac.Pause),h),Fa("seeked",f(ac.Seeked),h),Fa("volumechange",f(ac.VolumeChange),h),Fa("ratechange",f(ac.RateChange),h)],vc((function(){d.forEach((function(e){return e()}))}))),k=function(){},S=function(){},C=function(){},I=function(){};e.recordDOM&&(k=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:vc((function(e,t,o){var s=o[0],a=o[1],c=Ic(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:vc((function(e,t,o){var s=o[0],a=Ic(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:vc((function(e,t,o){var s=o[0],a=Ic(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)}))})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:vc((function(e,t,o){var s=o[0],a=Ic(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)}))}));var l={};Ec("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Ec("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Ec("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Ec("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach((function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:vc((function(e,t,o){var s=o[0],a=o[1],c=Ic(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(Cc(t),[a||0])}]}),e.apply(t,o)}))}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:vc((function(e,t,o){var s=o[0],a=Ic(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(Cc(t),[s])}]}),e.apply(t,o)}))})})),vc((function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach((function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule}))}))}(e,{win:n}),S=xc(e,e.doc),C=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:vc((function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var p=Ic(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),f=p.id,d=p.styleId;return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:u,value:l,priority:h},index:Cc(t.parentRule)}),e.apply(t,s)}))});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:vc((function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=Ic(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,p=l.styleId;
1return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,remove:{property:u},index:Cc(t.parentRule)}),e.apply(t,s)}))}),vc((function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c}))}(e,{win:n}),e.collectFonts&&(I=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=Oa(r.fonts,"add",(function(e){return function(r){return setTimeout(vc((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),vc((function(){i.forEach((function(e){return e()}))}))}(e)));for(var x,A=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=vc((function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,p=l.startOffset,f=l.endContainer,d=l.endOffset;Ya(h,n,i,!0)||Ya(f,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(f),endOffset:d})}o({ranges:a})}}));return a(),Fa("selectionchange",a)}(e),O=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?Oa(n.customElements,"define",(function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}})):function(){}}(e),E=[],M=y(e.plugins);!(x=M()).done;){var R=x.value;E.push(R.observer(R.callback,n,R.options))}return vc((function(){yc.forEach((function(e){return e.reset()})),null==r||r.disconnect(),g(),m(),v(),_(),b(),w(),k(),S(),C(),I(),A(),O(),E.forEach((function(e){return e()}))}))}function Oc(e){return void 0!==window[e]}function Ec(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var Mc=function(){function e(e){S(this,"iframeIdToRemoteIdMap",new WeakMap),S(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getId(e,t,n,i)}))},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);
1return t.map((function(t){return r.getRemoteId(e,t,n)}))},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),Rc=function(){function e(e){S(this,"iframes",new WeakMap),S(this,"crossOriginIframeMap",new WeakMap),S(this,"crossOriginIframeMirror",new Mc(ie)),S(this,"crossOriginIframeStyleMirror"),S(this,"crossOriginIframeRootIdMap",new WeakMap),S(this,"iframeContentDocumentMap",new WeakMap),S(this,"iframeObserverCleanupMap",new WeakMap),S(this,"mirror"),S(this,"mutationCb"),S(this,"wrappedEmit"),S(this,"loadListener"),S(this,"stylesheetManager"),S(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Mc(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}
1,t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case rc.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:rc.IncrementalSnapshot,data:{source:nc.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case rc.Meta:case rc.Load:case rc.DomContentLoaded:return!1;case rc.Plugin:return t;case rc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case rc.IncrementalSnapshot:switch(t.data.source){case nc.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 nc.Drag:case nc.TouchMove:case nc.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case nc.ViewportResize:return!1;case nc.MediaInteraction:case nc.MouseInteraction:case nc.Scroll:case nc.CanvasMutation:case nc.Input:return this.replaceIds(t.data,e,["id"]),t;case nc.StyleSheetRule:case nc.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nc.Font:return t;case nc.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case nc.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=y(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===cc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEac
1h((function(e){r.patchRootIdOnNode(e,t)}))},e}(),Tc=function(){function e(e){S(this,"shadowDoms",new WeakSet),S(this,"mutationCb"),S(this,"scrollCb"),S(this,"bypassOptions"),S(this,"mirror"),S(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(U(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=bc(u({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((function(){return n.disconnect()})),this.restoreHandlers.push(wc(u({},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(Da(e))),r.restoreHandlers.push(xc({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(Oa(e.prototype,"attachShadow",(function(e){return function(n){var i=e.call(this,n),o=La(this);return o&&tc(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}(),Pc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nc="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Dc=0;Dc<64;Dc++)Nc[Pc.charCodeAt(Dc)]=Dc;var Lc=new Map,Fc=function(e,t,r){if(e&&(Uc(e,t)||"object"===(void 0===e?"undefined":g(e)))){var n=function(e,t){var r=Lc.get(e);return r||(r=new Map,Lc.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};var Bc=function(e,t,r){return e.map((function(e){return function e(t,r,n){return p(t,Array)?t.map((function(t){return e(t,r,n)})):null===t?t:p(t,Float32Array)||p(t,Float64Array)||p(t,Int32Array)||p(t,Uint32Array)||p(t,Uint8Array)||p(t,Uint16Array)||p(t,Int16Array)||p(t,Int8Array)||p(t,Uint8ClampedArray)?{rr_type:t.constructor.name,args:[Object.values(t)]}:p(t,ArrayBuffer)?{rr_type:t.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=Pc[r[t]>>2],i+=Pc[(3&r[t])<<4|r[t+1]>>4],i+=Pc[(15&r[t+1])<<2|r[t+2]>>6],i+=Pc[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}(t)}:p(t,DataView)?{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]}:p(t,HTMLImageElement)?{rr_type:t.constructor.name,src:t.src}:p(t,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:t.toDataURL()}:p(t,ImageData)?{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]}:Uc(t,r)||"object"===(void 0===t?"undefined":g(t))?{rr_type:t.constructor.name,index:Fc(t,r,n)}:t}(e,t,r)}))},Uc=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(r.find((function(r){return p(e,t[r])})))};function jc(e,t,r,n){var i=[];try{var o=Oa(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!Ya(this,t,r,!0)){var c=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===g(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}}));i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}
1return function(){i.forEach((function(e){return e()}))}}function zc(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var u=Oa(e,a,(function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(Fc(l,o,this),"tagName"in this.canvas&&!Ya(this.canvas,n,i,!0)){var h=Bc(c,o,this),p={type:t,property:a,args:h};r(this.canvas,p)}return l}}));c.push(u)}catch(n){var l=za(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=y(Object.getOwnPropertyNames(e));!(s=u()).done;)a();return c}var Vc="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
1hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Wc="undefined"!=typeof window&&window.Blob&&new Blob([(Vc,Uint8Array.from(atob("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
1hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo="),(function(e){return e.charCodeAt(0)})))],{type:"text/javascript;charset=utf-8"});function qc(e){var t;try{if(!(t=Wc&&(window.URL||window.webkitURL).createObjectURL(Wc)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",(function(){(window.URL||window.webkitURL).revokeObjectURL(t)})),r}catch(t){return new Worker("data:text/javascript;base64,"+Vc,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Gc,Zc,Yc,Jc=function(){function e(e){var t=this;S(this,"pendingCanvasMutations",new Map),S(this,"rafStamps",{latestId:0,invokeId:null}),S(this,"mirror"),S(this,"mutationCb"),S(this,"resetObservers"),S(this,"frozen",!1),S(this,"locked",!1),S(this,"processMutation",(function(e,r){!(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId)&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)}));var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,a=jc(t,r,n,!0),c=new Map,u=new qc;u.onmessage=function(e){var t=e.data.id;if(c.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,a=r.height;o.mutationCb({id:t,type:sc["2D"],commands:[{property:"clearRect",args:[0,0,s,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var l,h=1e3/e,p=0,f=function(e){if(p&&e-p<h)l=requestAnimationFrame(f);else{p=e;var a,d=o;(a=[],t.document.querySelectorAll("canvas").forEach((function(e){Ya(e,r,n,!0)||a.push(e)}
1)),a).forEach(s((function(e){var t,r,n,o;return _(this,(function(s){switch(s.label){case 0:return r=d.mirror.getId(e),c.get(r)||0===e.width||0===e.height?[2]:(c.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),u.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}}))}))),l=requestAnimationFrame(f)}};l=requestAnimationFrame(f),this.resetObservers=function(){a(),cancelAnimationFrame(l)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=jc(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=Oa(t.CanvasRenderingContext2D.prototype,o,(function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return Ya(this.canvas,r,n,!0)||setTimeout((function(){var r=Bc(c,t,s);e(s.canvas,{type:sc["2D"],property:o,args:r})}),0),i.apply(this,c)}}));s.push(a)}catch(r){var c=za(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:sc["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=y(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=a()).done;)o();return function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(zc(t.WebGLRenderingContext.prototype,sc.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(zc(t.WebGL2RenderingContext.prototype,sc.WebGL2,e,r,n,t))),function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach((function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map((function(e){return e.type,f(e,["type"])})),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Hc=function(){function e(e){S(this,"trackedLinkElements",new WeakSet),S(this,"mutationCb"),S(this,"adoptedStyleSheetCb"),S(this,"styleMirror",new Qa),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,(function(t,r){return{rule:z(t,e.href),index:r}}))})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=y(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=y(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}
1if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach((function(e){t.cleanupStylesheetsForRemovedNode(e)}))}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),$c=function(){function e(){S(this,"nodeMap",new WeakMap),S(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}(),Xc=!1;try{if(2!==Array.from([1],(function(e){return 2*e}))[0]){var Kc=document.createElement("iframe");document.body.appendChild(Kc),Array.from=(null==(w=Kc.contentWindow)?void 0:w.Array.from)||Array.from,document.body.removeChild(Kc)}}catch(e){console.debug("Unable to override Array.from",e)}var Qc,eu,tu=new V;function ru(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,l=void 0===c?"rr-ignore":c,h=e.ignoreSelector,p=void 0===h?null:h,f=e.maskTextClass,d=void 0===f?"rr-mask":f,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,_=void 0===v||v,b=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,S=e.maskInputFn,C=e.maskTextFn,I=e.hooks,x=e.packFn,A=e.sampling,O=void 0===A?{}:A,E=e.dataURLOptions,M=void 0===E?{}:E,R=e.mousemoveWait,T=e.recordDOM,P=void 0===T||T,N=e.recordCanvas,D=void 0!==N&&N,L=e.recordCrossOriginIframes,F=void 0!==L&&L,B=e.recordAfter,U=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,j=e.userTriggeredOnInput,z=void 0!==j&&j,W=e.collectFonts,q=void 0!==W&&W,G=e.inlineImages,Z=void 0!==G&&G,Y=e.plugins,J=e.keepIframeSrcFn,H=void 0===J?function(){return!1}:J,$=e.ignoreCSSAttributes,X=void 0===$?new Set([]):$,K=e.errorHandler;lc=K;var Q=!F||window.parent===window,ee=!1;if(!Q)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(Q&&!t)throw new Error("emit function is required");if(!Q&&!ee)return function(){};void 0!==R&&void 0===O.mousemove&&(O.mousemove=R),tu.reset();var te,re=!0===b?{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,hidden:!0}:void 0!==w?w:{password:!0},ne=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k,headTitleMutations:"all"===k}:k||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var ie=0,oe=function(e){for(var t,r=y(Y||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!ee&&(e=x(e)),e};Gc=function(e,i){var o,s=e;if(s.timestamp=Va(),!(null==(o=yc[0])?void 0:o.isFrozen())||s.type===rc.FullSnapshot||s.type===rc.IncrementalSnapshot&&s.data.source===nc.Mutation||yc.forEach((function(e){return e.unfreeze()})),Q)null==t||t(oe(s),i);else if(ee){var a={type:"rrweb",event:oe(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===rc.FullSnapshot)te=s,ie=0;else if(s.type===rc.IncrementalSnapshot){if(s.data.source===nc.Mutation&&s.data.isAttachIframe)return;ie++;var c=n&&ie>=n,u=r&&s.timestamp-te.timestamp>r;(c||u)&&Zc(!0)}};for(var se,ae=function(e){Gc({type:rc.IncrementalSnapshot,data:u({source:nc.Mutation},e)})},ce=function(e){return Gc({type:rc.IncrementalSnapshot,data:u({source:nc.Scroll},e)})},ue=function(e){return Gc({type:rc.IncrementalSnapshot,data:u({source:nc.CanvasMutation},e)})},le=new Hc({mutationCb:ae,adoptedStyleSheetCb:function(e){return Gc({type:rc.IncrementalSnapshot,data:u({source:nc.AdoptedStyleSheet},e)})}}),he=new Rc({mirror:tu,mutationCb:ae,stylesheetManager:le,recordCrossOriginIframes:F,wrappedEmit:Gc}),pe=y(Y||[]);!(se=pe()).done;){var fe=se.value;fe.getMirror&&fe.getMirror({nodeMirror:tu,crossOriginIframeMirror:he.crossOriginIframeMirror,crossOriginIframeStyleMirror:he.crossOriginIframeStyleMirror})}var de=new $c;Yc=new Jc({recordCanvas:D,mutationCb:ue,win:window,blockClass:o,blockSelector:a,mirror:tu,sampling:O.canvas,dataURLOptions:M});var ge=new Tc({mutationCb:ae,scrollCb:ce,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:m,inlineStylesheet:_,maskInputOptions:re,dataURLOptions:M,maskTextFn:C,maskInputFn:S,recordCanvas:D,inlineImages:Z,sampling:O,slimDOMOptions:ne,iframeManager:he,stylesheetManager:le,canvasManager:Yc,keepIframeSrcFn:H,processedNodeManager:de},mirror:tu});Zc=function(e){if(void 0===e&&(e=!1),P){Gc({type:rc.Meta,data:{href:window.location.href,width:Ga(),height:qa()}},e),le.reset(),ge.init(),yc.forEach((function(e){return e.lock()}));var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new V:n,o=r.blockClass,s=r.blockSelector,a=r.maskTextClass,c=r.maskTextSelector,u=r.inlineStylesheet,l=r.inlineImages,h=r.recordCanvas,p=r.maskAllInputs,f=void 0!==p&&p,d=r.slimDOM,g=void 0!==d&&d,m=r.keepIframeSrcFn;return me(e,{doc:e,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===s?null:s,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===c?null:c,skipChild:!1,inlineStylesheet:void 0===u||u,maskInputOptions:!0===f?{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,hidden:!0}:!1===f?{password:!0}:f,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
1:!1===g?{}:g,dataURLOptions:r.dataURLOptions,inlineImages:void 0!==l&&l,recordCanvas:void 0!==h&&h,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===m?function(){return!1}:m,newlyAddedElement:!1})}(document,{mirror:tu,blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:m,inlineStylesheet:_,maskAllInputs:re,maskTextFn:C,maskInputFn:S,slimDOM:ne,dataURLOptions:M,recordCanvas:D,inlineImages:Z,onSerialize:function(e){$a(e,tu)&&he.addIframe(e),Xa(e,tu)&&le.trackLinkElement(e),Ka(e)&&ge.addShadowRoot(La(e),document)},onIframeLoad:function(e,t){he.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:H});if(!t)return console.warn("Failed to snapshot the document");Gc({type:rc.FullSnapshot,data:{node:t,initialOffset:Wa(window)}},e),yc.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,tu.getId(document))}};try{var ve=[],ye=function(e){var t;
1return vc(Ac)({mutationCb:ae,mousemoveCb:function(e,t){return Gc({type:rc.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Gc({type:rc.IncrementalSnapshot,data:u({source:nc.MouseInteraction},e)})},scrollCb:ce,viewportResizeCb:function(e){return Gc({type:rc.IncrementalSnapshot,data:u({source:nc.ViewportResize},e)})},inputCb:function(e){return Gc({type:rc.IncrementalSnapshot,data:u({source:nc.Input},e)})},mediaInteractionCb:function(e){return Gc({type:rc.IncrementalSnapshot,data:u({source:nc.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Gc({type:rc.IncrementalSnapshot,data:u({source:nc.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Gc({type:rc.IncrementalSnapshot,data:u({source:nc.StyleDeclaration},e)})},canvasMutationCb:ue,fontCb:function(e){return Gc({type:rc.IncrementalSnapshot,data:u({source:nc.Font},e)})},selectionCb:function(e){Gc({type:rc.IncrementalSnapshot,data:u({source:nc.Selection},e)})},customElementCb:function(e){Gc({type:rc.IncrementalSnapshot,data:u({source:nc.CustomElement},e)})},blockClass:o,ignoreClass:l,ignoreSelector:p,maskTextClass:d,maskTextSelector:m,maskInputOptions:re,inlineStylesheet:_,sampling:O,recordDOM:P,recordCanvas:D,inlineImages:Z,userTriggeredOnInput:z,collectFonts:q,doc:e,maskInputFn:S,maskTextFn:C,keepIframeSrcFn:H,blockSelector:a,slimDOMOptions:ne,dataURLOptions:M,mirror:tu,iframeManager:he,stylesheetManager:le,shadowDomManager:ge,processedNodeManager:de,canvasManager:Yc,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 Gc({type:rc.Plugin,data:{plugin:e.name,payload:t}})}}})))||[]},I)};he.addLoadListener((function(e){try{var t=e.contentDocument,r=ye(t);ve.push(r);var n=he.getObserverCleanup(e);he.setObserverCleanup(e,(function(){if(n)try{n()}catch(e){}try{r();var e=ve.indexOf(r);-1!==e&&ve.splice(e,1),function(e){for(var t=yc.length-1;t>=0;t--)yc[t].getDoc()===e&&yc.splice(t,1)}(t)}catch(e){}}))}catch(e){console.warn(e)}}));var _e=function(){Zc(),ve.push(ye(document)),Xc=!0};return"interactive"===document.readyState||"complete"===document.readyState?_e():(ve.push(Fa("DOMContentLoaded",(function(){Gc({type:rc.DomContentLoaded,data:{}}),"DOMContentLoaded"===U&&_e()}))),ve.push(Fa("load",(function(){Gc({type:rc.Load,data:{}}),"load"===U&&_e()}),window))),function(){ve.forEach((function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}})),de.destroy(),Xc=!1,lc=void 0}}catch(e){console.warn(e)}}ru.addCustomEvent=function(e,t){if(!Xc)throw new Error("please add custom event after start recording");Gc({type:rc.Custom,data:{tag:e,payload:t}})},ru.freezePage=function(){yc.forEach((function(e){return e.freeze()}))},ru.takeFullSnapshot=function(e){if(!Xc)throw new Error("please take full snapshot after start recording");Zc(e)},ru.mirror=tu,(eu=Qc||(Qc={}))[eu.NotStarted=0]="NotStarted",eu[eu.Running=1]="Running",eu[eu.Stopped=2]="Stopped",ru.addCustomEvent,ru.freezePage,ru.takeFullSnapshot;var nu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},iu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ou={};var su={};function au(e,t,r){var n,i=e+"."+String(r);if(su[i])return su[i].call(t);var o=function(e){if(ou[e])return ou[e];var t=globalThis[e],r=t.prototype,n=e in nu?nu[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in iu?iu[e]:void 0,s=Boolean(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 ou[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;return document.body.removeChild(a),u?ou[e]=u:r}catch(e){return r}}(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(su[i]=s,s.call(t)):t[r]}var cu=function(e){return au("Node",e,"parentNode")};var uu={exports:{}},lu=String,hu=function(){return{isColorSupported:!1,reset:lu,bold:lu,dim:lu,italic:lu,underline:lu,inverse:lu,hidden:lu,strikethrough:lu,black:lu,red:lu,green:lu,yellow:lu,blue:lu,magenta:lu,cyan:lu,white:lu,gray:lu,bgBlack:lu,bgRed:lu,bgGreen:lu,bgYellow:lu,bgBlue:lu,bgMagenta:lu,bgCyan:lu,bgWhite:lu}};uu.exports=hu(),uu.exports.createColors=hu;var pu=uu.exports,fu=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return p(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
1return 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"}))),du=pu,gu=fu,mu=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}h(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=du.isColorSupported),gu&&e&&(r=gu(r));var n,i,o=r.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=du.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(m(Error)),vu=mu;mu.default=mu;var yu={};yu.isClean=Symbol("isClean"),yu.my=Symbol("my");var _u={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},bu=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){var r;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");for(var 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;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return _u[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=_u[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&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){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);var 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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),wu=bu;bu.default=bu;var ku=wu;function Su(e,t){new ku(t).stringify(e)}var Cu=Su;Su.default=Su;var Iu=yu.isClean,xu=yu.my,Au=vu,Ou=wu,Eu=Cu;var Mu=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Iu]=!1,this[xu]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=y(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":g(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 Au(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[Iu]){this[Iu]=!1;for(var e=this;e=e.parent;)e[Iu]=!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);
1else 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<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new Ou).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=y(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":g(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":g(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Eu),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},c(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Ru=Mu;Mu.default=Mu;var Tu=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=u({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}
1return h(t,e),c(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Ru),Pu=Tu;Tu.default=Tu;var Nu=fu.SourceMapConsumer,Du=fu.SourceMapGenerator,Lu=fu.existsSync,Fu=fu.readFileSync,Bu=fu.dirname,Uu=fu.join,ju=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Bu(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Nu(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":g(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Bu(e),Lu(e))return this.mapFile=e,Fu(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(p(t,Nu))return Du.fromSourceMap(t).toString();if(p(t,Du))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Uu(Bu(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}(),zu=ju;ju.default=ju;var Vu=fu.SourceMapConsumer,Wu=fu.SourceMapGenerator,qu=fu.fileURLToPath,Gu=fu.pathToFileURL,Zu=fu.isAbsolute,Yu=fu.resolve,Ju=fu,Hu=vu,$u=zu,Xu=Symbol("fromOffsetCac
1he"),Ku=Boolean(Vu&&Wu),Qu=Boolean(Yu&&Zu),el=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":g(e))&&!e.toString)throw new 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&&(!Qu||/^\w+:\/\//.test(t.from)||Zu(t.from)?this.file=t.from:this.file=Yu(t.from)),Qu&&Ku){var r=new $u(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="<input css "+function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":g(t))){var 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 h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Hu(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Hu(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&&(Gu&&(i.input.url=Gu(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Xu])t=this[Xu];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Xu]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Yu(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=Zu(a.source)?Gu(a.source):new URL(a.source,this.map.consumer().sourceRoot||Gu(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(!qu)throw new Error("file: protocol is not available in this PostCSS build");c.file=qu(o)}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<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=u({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},c(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),tl=el;el.default=el,Ju&&Ju.registerInput&&Ju.registerInput(el);var rl=fu.SourceMapConsumer,nl=fu.SourceMapGenerator,il=fu.dirname,ol=fu.relative,sl=fu.resolve,al=fu.sep,cl=fu.pathToFileURL,ul=tl,ll=Boolean(rl&&nl),hl=Boolean(il&&sl&&ol&&al),pl=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||il(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new rl(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;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(),hl&&ll&&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=nl.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new nl({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new nl({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):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=e.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,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?il(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=il(sl(r,this.mapOpts.annotation)));var n=ol(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 ul(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)):"<no source>";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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(cl){var r=cl(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new 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;"\\"===al&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),fl=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return h(t,e),t}(Ru),dl=fl;fl.default=fl;var gl,ml,vl,yl,_l=yu.isClean,bl=yu.my,wl=Pu,kl=dl;var Sl=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=y(t);!(n=i()).done;)for(var o,s=n.value,a=y(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=y(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=y(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=y(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map((function(t){return t.nodes&&(t.no
1des=e(t.nodes)),delete t.source,t}))}(gl(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=y(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=y(e=e.nodes.slice(0));!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new wl(e)]}else if(e.selector)e=[new ml(e)];else if(e.name)e=[new vl(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new kl(e)]}return e.map((function(e){return e[bl]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[_l]&&function e(t){if(t[_l]=!1,t.proxyOf.nodes)for(var r,n=y(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}))},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=y(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=y(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=y(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=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?p(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?p(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?p(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)})))},c(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}(Ru);Sl.registerParse=function(e){gl=e},Sl.registerRule=function(e){ml=e},Sl.registerAtRule=function(e){vl=e},Sl.registerRoot=function(e){yl=e};var Cl=Sl;Sl.default=Sl,Sl.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,vl.prototype):"rule"===e.type?Object.setPrototypeOf(e,ml.prototype):"decl"===e.type?Object.setPrototypeOf(e,wl.prototype):"comment"===e.type?Object.setPrototypeOf(e,kl.prototype):"root"===e.type&&Object.setPrototypeOf(e,yl.prototype),e[bl]=!0,e.nodes&&e.nodes.forEach((function(e){Sl.rebuild(e)}))};var Il,xl,Al=function(e){function t(t){var r;return(r=e.call(this,u({type:"document"},t))||this).nodes||(r.nodes=[]),r}return h(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Il(new xl,this,e).stringify()},t}(Cl);Al.registerLazyResult=function(e){Il=e},Al.registerProcessor=function(e){xl=e};var Ol=Al;Al.default=Al;var El=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.no
1de.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}(),Ml=El;El.default=El;var Rl=Ml,Tl=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 Rl(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},c(e,[{key:"content",get:function(){return this.css}}]),e}(),Pl=Tl;Tl.default=Tl;var Nl="'".charCodeAt(0),Dl='"'.charCodeAt(0),Ll="\\".charCodeAt(0),Fl="/".charCodeAt(0),Bl="\n".charCodeAt(0),Ul=" ".charCodeAt(0),jl="\f".charCodeAt(0),zl="\t".charCodeAt(0),Vl="\r".charCodeAt(0),Wl="[".charCodeAt(0),ql="]".charCodeAt(0),Gl="(".charCodeAt(0),Zl=")".charCodeAt(0),Yl="{".charCodeAt(0),Jl="}".charCodeAt(0),Hl=";".charCodeAt(0),$l="*".charCodeAt(0),Xl=":".charCodeAt(0),Kl="@".charCodeAt(0),Ql=/[\t\n\f\r "#'()/;[\\\]{}]/g,eh=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,th=/.[\r\n"'(/\\]/,rh=/[\da-f]/i,nh=Cl,ih=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}h(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(nh),oh=ih;ih.default=ih,nh.registerAtRule(ih);var sh,ah,ch=Cl,uh=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}h(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=y(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 sh(new ah,this,e).stringify()},t}(ch);uh.registerLazyResult=function(e){sh=e},uh.registerProcessor=function(e){ah=e};var lh=uh;uh.default=uh,ch.registerRoot(uh);var hh={comma:function(e){return hh.split(e,[","],!0)},space:function(e){return hh.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},ph=hh;hh.default=hh;var fh=Cl,dh=ph,gh=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}
vendor: 10,822 bytes, line 1
1return h(t,e),c(t,[{key:"selectors",get:function(){return dh.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}(fh),mh=gh;gh.default=gh,fh.registerRule(gh);var vh=Pu,yh=dl,_h=oh,bh=lh,wh=mh,kh={empty:!0,space:!0},Sh=Cl,Ch=function(){function e(e){this.input=e,this.root=new bh,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 _h;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}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];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}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=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=y(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new yh;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=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Bl:case Ul:case zl:case Vl:case jl:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Ul||r===Bl||r===zl||r===Vl||r===jl);h=["space",p.slice(g,n)],g=n-1;break;case Wl:case ql:case Yl:case Jl:case Xl:case Hl:case Zl:var _=String.fromCharCode(r);h=[_,_,g];break;case Gl:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Nl&&l!==Dl&&l!==Ul&&l!==Bl&&l!==zl&&l!==jl&&l!==Vl){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Ll;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||th.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Nl:case Dl:i=r===Nl?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Ll;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Kl:Ql.lastIndex=g+1,Ql.test(p),n=0===Ql.lastIndex?p.length-1:Ql.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Ll:for(n=g,s=!0;p.charCodeAt(n+1)===Ll;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Fl&&r!==Ul&&r!==Bl&&r!==zl&&r!==Vl&&r!==jl&&(n+=1,rh.test(p.charAt(n)))){for(;rh.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Ul&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Fl&&p.charCodeAt(g+1)===$l?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(eh.lastIndex=g+1,eh.test(p),n=0===eh.lastIndex?p.length-1:eh.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new vh;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[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)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}))&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 wh;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);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===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,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",kh[a]||kh[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new wh;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Ih=tl;function xh(e,t){var r=new Ih(e,t),n=new Ch(r);try{n.parse()}catch(e){throw e}return n.root}var Ah=xh;xh.default=xh,Sh.registerParse(xh);var Oh=yu.isClean,Eh=yu.my,Mh=pl,Rh=Cu,Th=Cl,Ph=Ol,Nh=Pl,Dh=Ah,Lh=lh,Fh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Bh={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Uh={Once:!0,postcssPlugin:!0,prepare:!0};function jh(e){return"object"===(void 0===e?"undefined":g(e))&&"function"==typeof e.then}function zh(e){var t=!1,r=Fh[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Vh(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:zh(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function Wh(e){return e[Oh]=!1,e.nodes&&e.nodes.forEach((function(e){return Wh(e)})),e}var qh={},Gh=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":g(r))||null===r||"root"!==r.type&&"document"!==r.type)if(p(r,e)||p(r,Nh))i=Wh(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Dh;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Eh]&&Th.rebuild(i)}else i=Wh(r);this.result=new Nh(t,i,n),this.helpers=u({},qh,{postcss:qh,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":g(e))&&e.prepare?u({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=y(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":g(i)))for(var o in i){if(!Bh[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Uh[o])if("object"===g(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return s((function(){var t,r,n,i,o,s,a,c,u,l,h,p;return _(this,(function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!jh(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Oh])return[3,14];o[Oh]=!0,s=[Vh(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!jh(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,s;return _(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}
1))},h=y(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,b(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("object"===(void 0===e?"undefined":g(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return jh(r[0])?Promise.all(r):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=Rh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Mh(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=y(this.plugins);!(e=t()).done;){var r=e.value;if(jh(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Oh];)n[Oh]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=y(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=y(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(jh(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){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Oh])return a[Oh]=!0,void e.push(Vh(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[Oh]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Oh]=!0;for(var r,n=y(zh(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[Oh]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},c(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Gh.registerPostcss=function(e){qh=e};var Zh=Gh;Gh.default=Gh,Lh.registerLazyResult(Gh),Ph.registerLazyResult(Gh);var Yh=pl,Jh=Cu,Hh=Ah,$h=Pl,Xh=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Jh;this.result=new $h(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Yh(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Prom
1ise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},c(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Hh;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Kh=Xh;Xh.default=Xh;var Qh=Kh,ep=Zh,tp=Ol,rp=lh,np=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":g(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":g(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":g(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new ep(this,e,t):new Qh(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),ip=np;np.default=np,rp.registerProcessor(np),tp.registerProcessor(np);var op=Pu,sp=zu,ap=dl,cp=oh,up=tl,lp=lh,hp=mh;function pp(e,t){if(Array.isArray(e))return e.map((function(e){return pp(e)}));var r=e.inputs,n=f(e,["inputs"]);if(r){t=[];for(var i,o=y(r);!(i=o()).done;){var s=u({},i.value,{__proto__:up.prototype});s.map&&(s.map=u({},s.map,{__proto__:sp.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return pp(e,t)}))),n.source){var a=n.source,c=a.inputId,l=f(a,["inputId"]);n.source=l,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new lp(n);if("decl"===n.type)return new op(n);if("rule"===n.type)return new hp(n);if("comment"===n.type)return new ap(n);if("atrule"===n.type)return new cp(n);throw new Error("Unknown node type: "+e.type)}var fp=pp;pp.default=pp;var dp=vu,gp=Pu,mp=Zh,vp=Cl,yp=ip,_p=Cu,bp=fp,wp=Ol,kp=Ml,Sp=dl,Cp=oh,Ip=Pl,xp=tl,Ap=Ah,Op=ph,Ep=mh,Mp=lh,Rp=Ru;function Tp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new yp(t)}Tp.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new yp).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Tp([i(r)]).process(e,t)},i},Tp.stringify=_p,Tp.parse=Ap,Tp.fromJSON=bp,Tp.list=Op,Tp.comment=function(e){return new Sp(e)},Tp.atRule=function(e){return new Cp(e)},Tp.decl=function(e){return new gp(e)},Tp.rule=function(e){return new Ep(e)},Tp.root=function(e){return new Mp(e)},Tp.document=function(e){return new wp(e)},Tp.CssSyntaxError=dp,Tp.Declaration=gp,Tp.Container=vp,Tp.Processor=yp,Tp.Document=wp,Tp.Comment=Sp,Tp.Warning=kp,Tp.AtRule=Cp,Tp.Result=Ip,Tp.Input=xp,Tp.Rule=Ep,Tp.Root=Mp,Tp.Node=Rp,mp.registerPostcss(Tp);var Pp=Tp;Tp.default=Tp;var Np=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Pp);Np.stringify,Np.fromJSON,Np.plugin,Np.parse,Np.list,Np.document,Np.comment,Np.atRule,Np.rule,Np.decl,Np.root,Np.CssSyntaxError,Np.Declaration,Np.Container,Np.Processor,Np.Document,Np.Comment,Np.Warning,Np.AtRule,Np.Result,Np.Input,Np.Rule,Np.Root,Np.Node;var Dp=Object.defineProperty,Lp=function(e,t,r){return function(e,t,r){return t in e?Dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":g(t))?t+"":t,r)},Fp=function(){function e(e){Lp(this,"fileName"),Lp(this,"functionName"),Lp(this,"lineNumber"),Lp(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}
1(),Bp=/(^|@)\S+:\d+/,Up=/^\s*at .*(\S+:\d+|\(native\))/m,jp=/^(eval@)?(\[native code])?$/,zp={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Up)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(Up)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new Fp({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(jp)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new Fp({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new Fp({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new Fp({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new Fp({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(Bp)&&!e.match(/^Error created at/)}),this).map((function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Fp({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}),this)}};function Vp(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function Wp(e){return"[object Object]"===Object.prototype.toString.call(e)}function qp(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,(function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(Wp(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||Wp(s)&&function e(t,r){if(0===r)return!0;for(var n,i=y(Object.keys(t));!(n=i()).done;){var o=n.value;if(Wp(t[o])&&e(t[o],r-1))return!0}return!1}(s,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var s;if("bigint"===(void 0===t?"undefined":g(t)))return t.toString()+"n";if(p(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=Vp(u.length?u[0]:null):a[c]=u}return a}return p(t,Node)?p(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:p(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}var Gp={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","t
1ime","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Zp(e,t,r){var n,i=r?Object.assign({},Gp,r):Gp,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=zp.parse(n).map((function(e){return e.toString()})),s=[qp(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push((function(){t.removeEventListener("error",u)}));var l=function(t){var r,n;p(t.reason,Error)?n=[qp("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[qp("Uncaught (in promise)",i.stringifyOptions),qp(t.reason,i.stringifyOptions)]);var o=zp.parse(r).map((function(e){return e.toString()}));e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push((function(){t.removeEventListener("unhandledrejection",l)}))}for(var h,f=y(i.level);!(h=f()).done;){var d=h.value;c.push(g(n,d))}return function(){c.forEach((function(e){return e()}))};function g(t,r){var n=this;return t[r]?function(t,o){try{if(!(o in t))return function(){};var c=t[o],u=function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),!("assert"===r&&c[0]||a)){a=!0;try{var l=zp.parse(new Error).map((function(e){return e.toString()})).splice(1),h=("assert"===r?c.slice(1):c).map((function(e){return qp(e,i.stringifyOptions)}));++s<i.lengthThreshold?e({level:r,trace:l,payload:h}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[qp("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{a=!1}
1}}}(c);return"function"==typeof u&&(u.prototype=u.prototype||{},Object.defineProperties(u,{__rrweb_original__:{enumerable:!1,value:c}})),t[o]=u,function(){t[o]=c}}catch(e){return function(){}}}(t,r):function(){}}}var Yp,Jp,Hp,$p=e.setImmediate,Xp=Object.prototype.toString,Kp=void 0!==$p?function(e){return $p(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Yp=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){Yp=function(e,t,r){return e[t]=r,e}}function Qp(e,t){Hp.add(e,t),Jp||(Jp=Kp(Hp.drain))}function ef(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function tf(){for(var e=0;e<this.chain.length;e++)rf(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function rf(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=ef(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function nf(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=ef(e))?Qp((function(){var n=new af(r);try{t.call(e,(function(){nf.apply(n,arguments)}),(function(){of.apply(n,arguments)}))}catch(e){of.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&Qp(tf,r))}catch(e){of.call(new af(r),e)}}}function of(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Qp(tf,t))}function sf(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then((function(e){r(i,e)}),n)}(i)}function af(e){this.def=e,this.triggered=!1}function cf(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function uf(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new cf(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&Qp(tf,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){nf.call(t,e)}),(function(e){of.call(t,e)}))}catch(e){of.call(t,e)}}Hp=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=Jp=void 0;r;)r.fn.call(r.self),r=r.next}}}();var lf,hf=Yp({},"constructor",uf,!1);uf.prototype=hf,Yp(hf,"__NPO__",0,!1),Yp(uf,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),Yp(uf,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),Yp(uf,"all",(function(e){var t=this;return"[object Array]"!==Xp.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;sf(t,e,(function(e,t){o[e]=t,++s===i&&r(o)}),n)}))})),Yp(uf,"race",(function(e){var t=this;return"[object Array]"!==Xp.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");sf(t,e,(function(e,t){r(t)}),n)}))})),lf="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:uf;var pf,ff,df,gf,mf,vf,yf,_f,bf,wf,kf={DEBUG:!1,LIB_VERSION:"2.75.0"},Sf=864e5,Cf=Array.prototype,If=Function.prototype,xf=Object.prototype,Af=Cf.slice,Of=xf.toString,Ef=xf.hasOwnProperty,Mf=e.console,Rf=e.navigator,Tf=e.document,Pf=e.opera,Nf=e.screen,Df=Rf.userAgent,Lf=If.bind,Ff=Cf.forEach,Bf=Cf.indexOf,Uf=Cf.map,jf=Array.isArray,zf={},Vf={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Wf={log:function(){if(kf.DEBUG&&!Vf.isUndefined(Mf)&&Mf)try{Mf.log.apply(Mf,arguments)}catch(e){Vf.each(arguments,(function(e){Mf.log(e)}))}},warn:function(){if(kf.DEBUG&&!Vf.isUndefined(Mf)&&Mf){var e=["Mixpanel warning:"].
vendor: 9,274 bytes, line 1
1concat(Vf.toArray(arguments));try{Mf.warn.apply(Mf,e)}catch(t){Vf.each(e,(function(e){Mf.warn(e)}))}}},error:function(){if(kf.DEBUG&&!Vf.isUndefined(Mf)&&Mf){var e=["Mixpanel error:"].concat(Vf.toArray(arguments));try{Mf.error.apply(Mf,e)}catch(t){Vf.each(e,(function(e){Mf.error(e)}))}}},critical:function(){if(!Vf.isUndefined(Mf)&&Mf){var e=["Mixpanel error:"].concat(Vf.toArray(arguments));try{Mf.error.apply(Mf,e)}catch(t){Vf.each(e,(function(e){Mf.error(e)}))}}}},qf=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Wf,arguments)}},Gf=function(e){return{log:qf(Wf.log,e),error:qf(Wf.error,e),critical:qf(Wf.critical,e)}},Zf=function(e){return function(){try{return e.apply(this,arguments)}catch(e){Wf.critical("Implementation error. Please turn on debug and contact [email protected]."),kf.DEBUG&&Wf.critical(e)}}},Yf=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=Zf(t[r]))};Vf.bind=function(e,t){var r,n;if(Lf&&e.bind===Lf)return Lf.apply(e,Af.call(arguments,1));if(!Vf.isFunction(e))throw new TypeError;return r=Af.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Af.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(Af.call(arguments)));return Object(s)===s?s:o}},Vf.each=function(e,t,r){if(null!=e)if(Ff&&e.forEach===Ff)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===zf)return}else for(var o in e)if(Ef.call(e,o)&&t.call(r,e[o],o,e)===zf)return},Vf.extend=function(e){return Vf.each(Af.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},Vf.isArray=jf||function(e){return"[object Array]"===Of.call(e)},Vf.isFunction=function(e){return"function"==typeof e},Vf.isArguments=function(e){return!(!e||!Ef.call(e,"callee"))},Vf.toArray=function(e){return e?e.toArray?e.toArray():Vf.isArray(e)||Vf.isArguments(e)?Af.call(e):Vf.values(e):[]},Vf.map=function(e,t,r){if(Uf&&e.map===Uf)return e.map(t,r);var n=[];return Vf.each(e,(function(e){n.push(t.call(r,e))})),n},Vf.keys=function(e){var t=[];return null===e||Vf.each(e,(function(e,r){t[t.length]=r})),t},Vf.values=function(e){var t=[];return null===e||Vf.each(e,(function(e){t[t.length]=e})),t},Vf.include=function(e,t){var r=!1;return null===e?r:Bf&&e.indexOf===Bf?-1!=e.indexOf(t):(Vf.each(e,(function(e){if(r||(r=e===t))return zf})),r)},Vf.includes=function(e,t){return-1!==e.indexOf(t)},Vf.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},Vf.isObject=function(e){return e===Object(e)&&!Vf.isArray(e)},Vf.isEmptyObject=function(e){if(Vf.isObject(e)){for(var t in e)if(Ef.call(e,t))return!1;return!0}return!1},Vf.isUndefined=function(e){return void 0===e},Vf.isString=function(e){return"[object String]"==Of.call(e)},Vf.isDate=function(e){return"[object Date]"==Of.call(e)},Vf.isNumber=function(e){return"[object Number]"==Of.call(e)},Vf.isElement=function(e){return!(!e||1!==e.nodeType)},Vf.encodeDates=function(e){return Vf.each(e,(function(t,r){Vf.isDate(t)?e[r]=Vf.formatDate(t):Vf.isObject(t)&&(e[r]=Vf.encodeDates(t))})),e},Vf.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},Vf.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},Vf.strip_empty_properties=function(e){var t={};return Vf.each(e,(function(e,r){Vf.isString(e)&&e.length>0&&(t[r]=e)})),t},Vf.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):Vf.isArray(e)?(r=[],Vf.each(e,(function(e){r.push(Vf.truncate(e,t))}))):Vf.isObject(e)?(r={},Vf.each(e,(function(e,n){r[n]=Vf.truncate(e,t)}))):r=e,r},Vf.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":"\\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=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===Of.apply(h)){for(c=h.length,o=0;o<c;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in h)Ef.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})},Vf.JSONDecode=(mf={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},vf=function(e){var t=new SyntaxError(e);throw t.at=pf,t.text=df,t},yf=function(e){return e&&e!==ff&&vf("Expected '"+e+"' instead of '"+ff+"'"),ff=df.charAt(pf),pf+=1,ff},_f=function(){var e,t="";for("-"===ff&&(t="-",yf("-"));ff>="0"&&ff<="9";)t+=ff,yf();if("."===ff)for(t+=".";yf()&&ff>="0"&&ff<="9";)t+=ff;if("e"===ff||"E"===ff)for(t+=ff,yf(),"-"!==ff&&"+"!==ff||(t+=ff,yf());ff>="0"&&ff<="9";)t+=ff,yf();if(e=+t,isFinite(e))return e;vf("Bad number")},bf=function(){var e,t,r,n="";if('"'===ff)for(;yf();){if('"'===ff)return yf(),n;if("\\"===ff)if(yf(),"u"===ff){for(r=0,t=0;t<4&&(e=parseInt(yf(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof mf[ff])break;n+=mf[ff]}else n+=ff}vf("Bad string")},wf=function(){for(;ff&&ff<=" ";)yf()},gf=function(){switch(wf(),ff){case"{":return function(){var e,t={};if("{"===ff){if(yf("{"),wf(),"}"===ff)return yf("}"),t;for(;ff;){if(e=bf(),wf(),yf(":"),Object.hasOwnProperty.call(t,e)&&vf('Duplicate key "'+e+'"'),t[e]=gf(),wf(),"}"===ff)return yf("}"),t;yf(","),wf()}}vf("Bad object")}();case"[":return function(){var e=[];if("["===ff){if(yf("["),wf(),"]"===ff)return yf("]"),e;for(;ff;){if(e.push(gf()),wf(),"]"===ff)return yf("]"),e;yf(","),wf()}}vf("Bad array")}();case'"':return bf();case"-":return _f();default:return ff>="0"&&ff<="9"?_f():function(){switch(ff){case"t":return yf("t"),yf("r"),yf("u"),yf("e"),!0;case"f":return yf("f"),yf("a"),yf("l"),yf("s"),yf("e"),!1;case"n":return yf("n"),yf("u"),yf("l"),yf("l"),null}vf('Unexpected "'+ff+'"')}()}},function(e){var t;return df=e,pf=0,ff=" ",t=gf(),wf(),ff&&vf("Syntax error"),t}),Vf.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=Vf.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(u=l.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},Vf.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&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&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},Vf.UUID=function(){try{return e.crypto.randomUUID()}catch(e){for(var t=new Array(36),r=0;r<36;r++)t[r]=Math.floor(16*Math.random());return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",Vf.map(t,(function(e){return e.toString(16)})).join("")}};var Jf=["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"];Vf.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Jf.length;t++)if(-1!==e.indexOf(Jf[t]))return!0;return!1},Vf.HTTPBuildQuery=function(e,t){var r,n,i=[];return Vf.isUndefined(t)&&(t="&"),Vf.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r})),i.join(t)},Vf.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){Wf.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},Vf.cookie={get:function(e){for(var t=e+"=",r=Tf.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=Vf.JSONDecode(Vf.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=ud(Tf.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+=";
1 secure"),Tf.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=ud(Tf.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return Tf.cookie=p,p},remove:function(e,t,r){Vf.cookie.set(e,"",-1,t,!1,!1,r)}};var Hf=function(e){var t=!0;try{var r="__mplss_"+od(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},$f=null,Xf=function(t,r){return null===$f||r?$f=Hf(t||e.localStorage):$f},Kf=null;function Qf(e,t,r){var n=function(e){Wf.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||Wf.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return Vf.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var ed=null,td=null;try{ed=e.localStorage,td=e.sessionStorage}catch(e){}Vf.localStorage=Qf(ed,"localStorage",Xf),Vf.sessionStorage=Qf(td,"sessionStorage",(function(t,r){return null===Kf||r?Kf=Hf(t||e.sessionStorage):Kf})),Vf.register_event=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(r,n,i,o,s){if(r)if(r.addEventListener&&!o)r.addEventListener(n,i,!!s);else{var a="on"+n,c=r[a];r[a]=function(r,n,i){return function(o){if(o=o||t(e.event)){var s,a,c=!0;return Vf.isFunction(i)&&(s=i(o)),a=n.call(r,o),!1!==s&&!1!==a||(c=!1),c}}}(r,i,c)}else Wf.error("No valid element provided to register_event")}}();var rd=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');Vf.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!Tf.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,p,f=t.split(" "),d=[Tf];for(c=0;c<f.length;c++)if((n=f[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var g=i[1],m=Tf.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];d=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(d=[],p=0,u=0;u<s.length;u++)s[u].className&&Vf.isString(s[u].className)&&r(s[u],v)&&(d[p++]=s[u])}else{var y=n.match(rd);if(y){o=y[1];var _,b=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(d=[],p=0,w){case"=":_=function(e){return e.getAttribute(b)==k};break;case"~":_=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(d=[],p=0,u=0;u<s.length;u++)_(s[u])&&(d[p++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<d.length;u++)for(h=d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];d=s}}return d}return function(e){return Vf.isElement(e)?[e]:Vf.isObject(e)&&!Vf.isUndefined(e.length)?e:n.call(this,e)}}();var nd=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],id=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];Vf.info={campaignParams:function(e){var t="",r={};
1return Vf.each(nd,(function(n){(t=Vf.getQueryParam(Tf.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return Vf.each(id,(function(r){(e=Vf.getQueryParam(Tf.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return Vf.extend(Vf.info.campaignParams(),Vf.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=Vf.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=Vf.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||Vf.includes(e," OPR/")?Vf.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Vf.includes(e,"IEMobile")||Vf.includes(e,"WPDesktop")?"Internet Explorer Mobile":Vf.includes(e,"SamsungBrowser/")?"Samsung Internet":Vf.includes(e,"Edge")||Vf.includes(e,"Edg/")?"Microsoft Edge":Vf.includes(e,"FBIOS")?"Facebook Mobile":Vf.includes(e,"Whale/")?"Whale Browser":Vf.includes(e,"Chrome")?"Chrome":Vf.includes(e,"CriOS")?"Chrome iOS":Vf.includes(e,"UCWEB")||Vf.includes(e,"UCBrowser")?"UC Browser":Vf.includes(e,"FxiOS")?"Firefox iOS":Vf.includes(t,"Apple")?Vf.includes(e,"Mobile")?"Mobile Safari":"Safari":Vf.includes(e,"Android")?"Android Mobile":Vf.includes(e,"Konqueror")?"Konqueror":Vf.includes(e,"Firefox")?"Firefox":Vf.includes(e,"MSIE")||Vf.includes(e,"Trident/")?"Internet Explorer":Vf.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[Vf.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=Df;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return e.location.href},properties:function(e){return"object"!=typeof e&&(e={}),Vf.extend(Vf.strip_empty_properties({$os:Vf.info.os(),$browser:Vf.info.browser(Df,Rf.vendor,Pf),$referrer:Tf.referrer,$referring_domain:Vf.info.referringDomain(Tf.referrer),$device:Vf.info.device(Df)}),{$current_url:Vf.info.currentUrl(),$browser_version:Vf.info.browserVersion(Df,Rf.vendor,Pf),$screen_height:Nf.height,$screen_width:Nf.width,mp_lib:"web",$lib_version:kf.LIB_VERSION,$insert_id:od(),time:Vf.timestamp()/1e3},Vf.strip_empty_properties(e))},people_properties:function(){return Vf.extend(Vf.strip_empty_properties({$os:Vf.info.os(),$browser:Vf.info.browser(Df,Rf.vendor,Pf)}),{$browser_version:Vf.info.browserVersion(Df,Rf.vendor,Pf)})},mpPageViewProperties:function(){return Vf.strip_empty_properties({current_page_title:Tf.title,current_domain:e.location.hostname,current_url_path:e.location.pathname,current_url_protocol:e.location.protocol,current_url_search:e.location.search})}};var od=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},sd=function(){return"00-"+Vf.UUID().replace(/-/g,"")+"-"+Vf.UUID().replace(/-/g,"").substring(0,16)+"-01"},ad=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,cd=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ud=function(e){var t=cd,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=ad);var i=e.match(t);return i?i[0]:""},ld=function(){},hd=null,pd=null;"undefined"!=typeof JSON&&(hd=JSON.stringify,pd=JSON.parse),hd=hd||Vf.JSONEncode,pd=pd||Vf.JSONDecode,Vf.info=Vf.info,Vf.info.browser=Vf.info.browser,Vf.info.browserVersion=Vf.info.browserVersion,Vf.info.device=Vf.info.device,Vf.info.properties=Vf.info.properties,Vf.isBlockedUA=Vf.isBlockedUA,Vf.isEmptyObject=Vf.isEmptyObject,Vf.isObject=Vf.isObject,Vf.JSONDecode=Vf.JSONDecode,Vf.JSONEncode=Vf.JSONEncode,Vf.toArray=Vf.toArray,Vf.NPO=uf;var fd="mixpanelRecordingEvents",dd="mixpanelRecordingRegistry",gd=[fd,dd],md=function(e){this.dbPromise=null,this.storeName=e};function vd(e,t){Od(!0,e,t)}function yd(e,t){Od(!1,e,t)}function _d(e,t){return"1"===Ad(e,t)}function bd(t,r){if(function(t){if(t&&t.ignoreDnt)return!1;var r=t&&t.window||e,n=r.navigator||{},i=!1;return Vf.each([n.doNotTrack,n.msDoNotTrack,r.doNotTrack],(function(e){Vf.includes([!0,1,"1","yes"],e)&&(i=!0)})),i}(r))return Wf.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 n="0"===Ad(t,r);return n&&Wf.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function wd(e){return Ed(e,(function(e){return this.get_config(e)}))}function kd(e){return Ed(e,(function(e){return this._get_config(e)}))}function Sd(e){return Ed(e,(function(e){return this._get_config(e)}))}function Cd(e,t){Id(t=t||{}).remove(xd(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Id(e){return"localStorage"===(e=e||{}).persistenceType?Vf.localStorage:Vf.cookie}function xd(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Ad(e,t){return Id(t).get(xd(e,t))}
1function Od(e,t,r){Vf.isString(t)&&t.length?(Id(r=r||{}).set(xd(t,r),e?1:0,Vf.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})):Wf.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Ed(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=bd(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){Wf.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)}}md.prototype._openDb=function(){return new lf((function(t,r){var n=e.indexedDB.open("mixpanelBrowserDb",1);n.onerror=function(){r(n.error)},n.onsuccess=function(){t(n.result)},n.onupgradeneeded=function(e){var t=e.target.result;gd.forEach((function(e){t.createObjectStore(e)}))}}))},md.prototype.init=function(){return e.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then((function(t){return t instanceof e.IDBDatabase?lf.resolve():lf.reject(t)}))):lf.reject("indexedDB is not supported in this browser")},md.prototype.isInitialized=function(){return!!this.dbPromise},md.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new lf((function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))}))};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):lf.reject(e)}.bind(this))},md.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",(function(r){r.put(t,e)}))},md.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",(function(r){t=r.get(e)})).then((function(){return t.result}))},md.prototype.removeItem=function(e){return this.makeTransaction("readwrite",(function(t){t.delete(e)}))},md.prototype.getAll=function(){var e;return this.makeTransaction("readonly",(function(t){e=t.getAll()})).then((function(){return e.result}))};var Md=Gf("lock"),Rd=function(t,r){r=r||{},this.storageKey=t,this.storage=r.storage||e.localStorage,this.pollIntervalMS=r.pollIntervalMS||100,this.timeoutMS=r.timeoutMS||2e3,this.promiseImpl=r.promiseImpl||lf};Rd.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(Vf.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",h=s+":Y",p=s+":Z",f=function(e){if((new Date).getTime()-o>c)return Md.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(p),u.removeItem(h),void m();setTimeout((function(){try{e()}catch(e){n(e)}}),a*(Math.random()+.1))},d=function(e,t){e()?t():f((function(){d(e,t)}))},g=function(){var e=u.getItem(h);return!(e&&e!==i||(u.setItem(h,i),u.getItem(h)!==i&&(Xf(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),1)))},m=function(){u.setItem(l,i),d(g,(function(){u.getItem(l)!==i?f((function(){u.getItem(h)===i?d((function(){return!u.getItem(p)}),v):m()})):v()}))},v=function(){u.setItem(p,"1");var t=function(){u.removeItem(p),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then((function(e){t(),r(e)})).catch((function(e){t(),n(e)}))};try{if(!Xf(u,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}}),this))};var Td=function(t){this.storage=t||e.localStorage};Td.prototype.init=function(){return lf.resolve()},Td.prototype.isInitialized=function(){return!0},Td.prototype.setItem=function(e,t){return new lf(Vf.bind((function(r,n){try{this.storage.setItem(e,hd(t))}catch(e){n(e)}r()}),this))},Td.prototype.getItem=function(e){return new lf(Vf.bind((function(t,r){var n;try{n=pd(this.storage.getItem(e))}catch(e){r(e)}t(n)}),this))},Td.prototype.removeItem=function(e){return new lf(Vf.bind((function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()}),this))};var Pd=Gf("batch"),Nd=function(t,r){var n,i,o,s;r=r||{},this.storageKey=t,this.usePersistence=r.usePersistence,this.usePersistence&&(this.queueStorage=r.queueStorage||new Td,this.lock=new Rd(t,{storage:r.sharedLockStorage||e.localStorage,timeoutMS:r.sharedLockTimeoutMS})),this.reportError=r.errorReporter||Vf.bind(Pd.error,Pd),this.pid=r.pid||null,this.memQueue=[],this.initialized=!1,r.enqueueThrottleMs?this.enqueuePersisted=(n=Vf.bind(this._enqueuePersisted,this),i=r.enqueueThrottleMs,o=null,s=[],function(e){var t=this;return s.push(e),o||(o=new lf((function(e){setTimeout((function(){var r=n.apply(t,[s]);o=null,s=[],e(r)}),i)}))),o}):this.enqueuePersisted=Vf.bind((function(e){return this._enqueuePersisted([e])}),this)};Nd.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?lf.resolve():this.queueStorage.init(
1).then(Vf.bind((function(){this.initialized=!0}),this)).catch(Vf.bind((function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1}),this))},Nd.prototype.enqueue=function(e,t){var r={id:od(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),lf.resolve(!0))},Nd.prototype._enqueuePersisted=function(e){var t=Vf.bind((function(){return this.ensureInit().then(Vf.bind((function(){return this.readFromStorage()}),this)).then(Vf.bind((function(t){return this.saveToStorage(t.concat(e))}),this)).then(Vf.bind((function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t}),this)).catch(Vf.bind((function(t){return this.reportError("Error enqueueing items",t,e),!1}),this))}),this);return this.lock.withLock(t,this.pid).catch(Vf.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))},Nd.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(Vf.bind((function(){return this.readFromStorage()}),this)).then(Vf.bind((function(r){if(r.length){var n={};Vf.each(t,(function(e){n[e.id]=!0}));for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t}),this)):lf.resolve(t)};var Dd=function(e,t){var r=[];return Vf.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};Nd.prototype.removeItemsByID=function(e){var t={};if(Vf.each(e,(function(e){t[e]=!0})),this.memQueue=Dd(this.memQueue,t),this.usePersistence){var r=Vf.bind((function(){return this.ensureInit().then(Vf.bind((function(){return this.readFromStorage()}),this)).then(Vf.bind((function(e){return e=Dd(e,t),this.saveToStorage(e)}),this)).then(Vf.bind((function(){return this.readFromStorage()}),this)).then(Vf.bind((function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(Vf.bind((function(t){return this.reportError("Error removing items",t,e),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(Vf.bind((function(e){return this.reportError("Error acquiring storage lock",e),!Xf(this.lock.storage,!0)&&r().then(Vf.bind((function(e){return e||this.queueStorage.removeItem(this.storageKey).then((function(){return e}))}),this)).catch(Vf.bind((function(e){return this.reportError("Error clearing queue",e),!1}),this))}),this))}return lf.resolve(!0)};var Ld=function(e,t){var r=[];return Vf.each(e,(function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)})),r};Nd.prototype.updatePayloads=function(e){return this.memQueue=Ld(this.memQueue,e),this.usePersistence?this.lock.withLock(Vf.bind((function(){return this.ensureInit().then(Vf.bind((function(){return this.readFromStorage()}),this)).then(Vf.bind((function(t){return t=Ld(t,e),this.saveToStorage(t)}),this)).catch(Vf.bind((function(t){return this.reportError("Error updating items",e,t),!1}),this))}),this),this.pid).catch(Vf.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this)):lf.resolve(!0)},Nd.prototype.readFromStorage=function(){return this.ensureInit().then(Vf.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(Vf.bind((function(e){return e&&(Vf.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]}),this)).catch(Vf.bind((function(e){return this.reportError("Error retrieving queue",e),[]}),this))},Nd.prototype.saveToStorage=function(e){return this.ensureInit().then(Vf.bind((function(){return this.queueStorage.setItem(this.storageKey,e)}),this)).then((function(){return!0})).catch(Vf.bind((function(e){return this.reportError("Error saving queue",e),!1}),this))},Nd.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(Vf.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):lf.resolve()};var Fd=Gf("batch"),Bd=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Nd(e,{errorReporter:Vf.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};Bd.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Bd.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Bd.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Bd.prototype.clear=function(){return this.queue.clear()},Bd.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Bd.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Bd.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(Vf.bind((function(){this.stopped||(this._flushPromise=this.flush())}),this),this.flushInterval))},Bd.prototype.sendRequestPromise=function(e,t){return new lf(Vf.bind((function(r){this.sendRequest(e,t,r)}),this))},Bd.prototype.flush=function(t){if(this.requestInProgress)return Fd.log("Flush: Request already in progress"),lf.resolve();this.requestInProgress=!0,t=t||{};var r=this.libConfig.batch_request_timeout_ms,n=(new Date).getTime(),i=this.batchSize;return this.queue.fillBatch(i).then(Vf.bind((function(o){var s=o.length===i,a=[],c={};if(Vf.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=Vf.extend({},t.properties,{mp_sent_by_lib_version:kf.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(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(),lf.resolve();var u=Vf.bind((function(){return this.queue.removeItemsByID(Vf.map(o,(function(e){return e.id}))).then(Vf.bind((function(e){return Vf.each(o,Vf.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(),lf.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),lf.resolve())}),this))}),this),l=Vf.bind((function(s){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(c);if(Vf.isObject(s)&&"timeout"===s.error&&(new Date).getTime()-n>=r)return this.reportError("Network timeout; retrying"),this.flush();if(Vf.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&(h=e.navigator.onLine,!Vf.isUndefined(h)&&!h)||"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),lf.resolve()}if(Vf.isObject(s)&&413===s.httpStatusCode){if(o.length>1){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(),lf.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),u()}return u()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var h}),this),h={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:r};return t.unloading&&(h.transport="sendBeacon"),Fd.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,h).then(l)}),this)).catch(Vf.bind((function(e){this.reportError("Error flushing request queue",e),this.resetFlush()}),this))},Bd.prototype.reportError=function(e,t){if(Fd.error.apply(Fd.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Fd.error(t)}};var Ud=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},jd="change",zd="click",Vd="hashchange",Wd="mp_locationchange",qd="popstate",Gd="scrollend",Zd="scroll",Yd="submit",Jd="visibilitychange",Hd=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],$d=["mp-include"],Xd=["mp-no-track"],Kd=Xd.concat(["mp-sensitive"]),Qd=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],eg={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},tg={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},rg={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},ng=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],ig=Gf("autocapture");function og(e){for(var t={},r=sg(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function sg(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function ag(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!pg(e));return e}function cg(e,t,r,n,i,o){var s={$classes:sg(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),mg(e,t,i,o)&&Vf.each(Qd.concat(n),(function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);vg(n)&&(s["$attr-"+t]=n)}}));for(var c=1,u=1,l=e;l=ag(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function ug(e,t,r,n){var i="";return mg(e,t,r,n)&&e.childNodes&&e.childNodes.length&&Vf.each(e.childNodes,(function(e){dg(e)&&e.textContent&&(i+=Vf.trim(e.textContent).split(/(\s+)/).filter(vg).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))})),Vf.trim(i)}function lg(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return ig.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){ig.critical("Error while checking selector: "+o,e)}}return!1}function hg(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return ig.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){ig.critical("Error while checking selector: "+o,e)}}var s=og(e);for(i=0;i<Xd.length;i++)if(s[Xd[i]])return!0;return!1}function pg(e){return e&&1===e.nodeType}function fg(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
1function dg(e){return e&&3===e.nodeType}function gg(e){var t=(e.name||e.id||"").toString().toLowerCase();return!("string"!=typeof t||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))}function mg(e,t,r,n){var i;if(!lg(e,t,r,n))return!1;for(var o=e;o.parentNode&&!fg(o,"body");o=o.parentNode){var s=og(o);for(i=0;i<Kd.length;i++)if(s[Kd[i]])return!1}var a=og(e);for(i=0;i<$d.length;i++)if(a[$d[i]])return!0;if(fg(e,"input")||fg(e,"select")||fg(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}return!gg(e)}function vg(e){if(null===e||Vf.isUndefined(e))return!1;if("string"==typeof e){if(e=Vf.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function yg(t){var r="onscrollend"in e,n=Zf(t),i=Gd;if(!r){var o=null;n=Zf((function(){clearTimeout(o),o=setTimeout(t,100)})),i=Zd}return{listener:n,eventType:i}}function _g(e){var t=e.tagName.toLowerCase();return!!("button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<ng.length;t++)if(e.hasAttribute(ng[t]))return!0;return!1}(e)||function(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return eg[r]}(e)||"a"===t&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function bg(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(tg[t])return!0;if(_g(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(_g(r))return!1;if(r.getRootNode&&r.getRootNode()!==Tf){var i=r.getRootNode();if(i.host&&_g(i.host))return!1}r=r.parentElement,n++}return!!rg[t]}function wg(e){return"composedPath"in e?e.composedPath():[]}function kg(e){var t=wg(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var Sg=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Cg=["password","email","tel","hidden"];function Ig(e){return e?Array.isArray(e)?e:[e]:[]}function xg(e,t){return!!t&&!!e.closest(t)}function Ag(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Cg.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!((!n||""===n||"off"===n)&&!e.hasAttribute("data-rr-is-password")&&!gg(e)&&(t.input.maskAll?xg(e,t.input.unmaskingSelector):!xg(e,t.input.maskingSelector)&&!xg(e,Sg)))}function Og(e,t){return!(!e||(!t.text._legacyClassRegex||!function e(t,r,n){if(!t)return!1;
1if(t.nodeType!==t.ELEMENT_NODE)return e(cu(t),r);for(var i=t.classList.length;i--;){var o=t.classList[i];if(r.test(o))return!0}return e(cu(t),r)}(e,t.text._legacyClassRegex))&&(t.text.maskAll?xg(e,t.text.unmaskingSelector):!xg(e,t.text.maskingSelector)&&!xg(e,Sg)))}var Eg=Gf("recorder"),Mg=e.CompressionStream,Rg={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Tg=new Set([nc.MouseMove,nc.MouseInteraction,nc.Scroll,nc.ViewportResize,nc.Input,nc.TouchMove,nc.MediaInteraction,nc.Drag,nc.Selection]),Pg=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||ld,this._onMaxLengthReached=e.onMaxLengthReached||ld,this._onBatchSent=e.onBatchSent||ld,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.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Sf,this.recordMinMs=0;var t=Xf(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new md(fd),this.batcher=new Bd(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Rg,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Pg.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},Pg.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},Pg.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Pg.prototype.get_config=function(e){return this.getConfig(e)},Pg.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Sf&&(this.recordMaxMs=Sf,Eg.critical("record_max_ms cannot be greater than "+Sf+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=Vf.info.currentUrl(),this.replayStartUrl=Vf.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);var n,i=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=Ig(r).join(","),t.input.unmaskingSelector=Ig(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=Ig(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=Ig(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(function(e){return e.type===rc.IncrementalSnapshot&&Tg.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Ag,i),maskTextFn:this._getMaskFn(Og,i),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[(n={stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}},{name:"rrweb/console@1",observer:Zp,options:n})]:[]})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var o=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),o)}else Eg.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Pg.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Pg.prototype.isRrwebStopped=function(){return null===this._stopRecording},Pg.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)},Pg.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,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Pg.deserialize=function(e,t){return new Pg(Vf.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},Pg.prototype._sendRequest=function(t,r,n,i){var o=function(e,r){200===e.status&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=Vf.info.currentUrl()),this._onBatchSent(),i({status:0,httpStatusCode:e.status,responseBody:r,retryAfter:e.headers.get("Retry-After")})}.bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");e.fetch(s+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(r),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:n}).then((function(e){e.json().then((function(t){o(e,t)})).catch((function(e){i({error:e})}))})).catch((function(e){i({error:e,httpStatusCode:0})}))},Pg.prototype._flushEvents=wd((function(t,r,n){var i=t.length;if(i>0){for(var o=this.replayId,s=1/0,a=-1/0,c=!1,u=0;u<i;u++)s=Math.min(s,t[u].timestamp),a=Math.max(a,t[u].timestamp),t[u].type===rc.FullSnapshot&&(c=!0);if(0===this.seqNo){if(!c)return n({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=s}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var l=a-this.replayStartTime,h={$current_url:this.batchStartUrl,$lib_version:kf.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:o,replay_length_ms:l,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},p=JSON.stringify(t);if(Object.assign(h,this.getUserIdInfo()),function(t,r,n){if(!e.CompressionStream)return!1;var i=Vf.info.browser(t,r,n),o=Vf.info.browserVersion(t,r,n);return!(("Safari"===i||"Mobile Safari"===i)&&o>=16.4&&o<16.6)}(Df,Rf.vendor,Pf)){var f=new Blob([p],{type:"application/json"}).stream().pipeThrough(new Mg("gzip"));new Response(f).blob().then(function(e){h.format="gzip",this._sendRequest(o,h,e,n)}.bind(this))}else h.format="body",this._sendRequest(o,h,p,n)}})),Pg.prototype.reportError=function(e,t){Eg.error.apply(Eg.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Eg.error(t)}},Pg.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Pg.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(Eg.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},Pg.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};
vendor: 4,715 bytes, line 1
1var Ng=function(e){this.idb=new md(dd),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Ng.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Ng.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Ng.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return lf.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),lf.resolve())},Ng.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return Ud(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):lf.resolve(null)},Ng.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Ng.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Ng.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):lf.resolve()},Ng.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter((function(e){return Ud(e)})).map(function(e){return Pg.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return lf.all(t)}.bind(this)).catch(this.handleError.bind(this)):lf.resolve([])};var Dg=Gf("recorder"),Lg=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||ru,this.sharedLockStorage=r,this.recordingRegistry=new Ng({mixpanelInstance:this.mixpanelInstance,errorReporter:Dg.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Lg.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Dg.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Dg.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:Vf.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Pg.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Pg(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Dg.log("Recording already in progress, skipping startRecording.")},Lg.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Lg.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Lg.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return lf.resolve()},Lg.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),lf.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Dg.log("No resumable recording found."),null)}.bind(this))},Lg.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Lg.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Lg.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),e[n]=Lg;var Fg,Bg={exports:{}}
vendor: 4,402 bytes, line 1
1,Ug=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((Fg||(Fg=1,Bg.exports=function(){Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null==n)return r;if(void 0===(n=n[i[o]]))return r}return n},missing:function(){for(var t=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=e.apply({var:i},this);null!==o&&""!==o||t.push(i)}return t},missing_some:function(t,r){var n=e.apply({missing:r},this);return r.length-n.length>=t?[]:n}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,n){if(Array.isArray(r))return r.map((function(t){return e.apply(t,n)}));if(!e.is_logic(r))return r;var i,o,s,a,c,u=e.get_operator(r),l=r[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(e.truthy(e.apply(l[i],n)))return e.apply(l[i+1],n);return l.length===i+1?e.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=e.apply(l[i],n),!e.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=e.apply(l[i],n),e.truthy(o))return o;return o}if("filter"===u)return a=e.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter((function(t){return e.truthy(e.apply(s,t))})):[];if("map"===u)return a=e.apply(l[0],n),s=l[1],Array.isArray(a)?a.map((function(t){return e.apply(s,t)})):[];if("reduce"===u)return a=e.apply(l[0],n),s=l[1],c=void 0!==l[2]?e.apply(l[2],n):null,Array.isArray(a)?a.reduce((function(t,r){return e.apply(s,{current:r,accumulator:t})}),c):c;if("all"===u){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!e.truthy(e.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!0;return!1}if(l=l.map((function(t){return e.apply(t,n)})),t.hasOwnProperty(u)&&"function"==typeof t[u])return t[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),p=t;for(i=0;i<h.length;i++){if(!p.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");p=p[h[i]]}return p.apply(n,l)}throw new Error("Unrecognized operation "+u)},e.uses_data=function(t){var r=[];if(e.is_logic(t)){var n=e.get_operator(t),i=t[n];Array.isArray(i)||(i=[i]),"var"===n?r.push(i[0]):i.forEach((function(t){r.push.apply(r,e.uses_data(t))}))}return function(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r)},e.add_operation=function(e,r){t[e]=r},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,r){if(r===t)return!0;
1if("@"===r)return!0;if("number"===r)return"number"==typeof t;if("string"===r)return"string"==typeof t;if("array"===r)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(r)){if(e.is_logic(t)){var n=e.get_operator(r),i=e.get_operator(t);if("@"===n||n===i)return e.rule_like(e.get_values(t,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(t)){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o+=1)if(!e.rule_like(t[o],r[o]))return!1;return!0}return!1}return!1},e}()),Bg.exports)),jg=function(e,t){if(null==e)return e;if("string"==typeof e)return e.toLowerCase();if(Array.isArray(e))return e.map((function(e){return jg(e,t)}));if(e===Object(e)){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[t&&"string"==typeof n?n.toLowerCase():n]=jg(e[n],t));return r}return e},zg={};function Vg(){this.clicks=[]}function Wg(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}zg.eventMatchesCriteria=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!Vf.isEmptyObject(n))try{var o=jg(t||{},!0),s=jg(n,!1);i=Ug.apply(s,o)}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}},e[r]=Promise.resolve(zg),Vg.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only){var o=kg(e);if(!o||bg(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,u=this.clicks[this.clicks.length-1];if(u&&s-u.timestamp<n&&Math.sqrt(Math.pow(a-u.x,2)+Math.pow(c-u.y,2))<r){if(this.clicks.push({x:a,y:c,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},Wg.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return kg(e)},Wg.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=wg(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},Wg.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver((function(){t.changeCallback()}));r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){ig.critical("Error while observing shadow root",e)}}},Wg.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:ig.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Wg.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){ig.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var qg=[jd,"input",Yd,"select","toggle"],Gg=[Gd],Zg=[Vd],Yg={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Jg(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}Jg.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||bg(t)||(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),0))},Jg.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},Jg.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},Jg.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Jg.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Jg.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Jg.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout((function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}}),t)}else this.processingActive=!1},Jg.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;qg.forEach((function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})})),Zg.forEach((function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})})),Gg.forEach((function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})}));var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver((function(){e.recordChangeEvent()})),this.mutationObserver.observe(document.body||document.documentElement,Yg)}catch(e){ig.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new Wg((function(){e.recordChangeEvent()}),Yg),this.shadowDOMObserver.start()}catch(e){ig.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},Jg.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){ig.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){ig.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){ig.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var Hg="autocapture",$g="full-url",Xg="allow_selectors",Kg="allow_url_regexes",Qg="block_attrs",em="block_element_callback",tm="block_selectors",rm="block_url_regexes",nm="capture_extra_attrs",im="capture_text_content",om="scroll_capture_all",sm="scroll_depth_percent_checkpoints",am="click",cm="dead_click",um="input",lm="pageview",hm="rage_click",pm="scroll",fm="page_leave",dm="submit",gm={allow_selectors:[],allow_url_regexes:[],block_attrs:[],block_element_callback:null,block_selectors:[],block_url_regexes:[],capture_extra_attrs:[],capture_text_content:!1,scroll_capture_all:!1,scroll_depth_percent_checkpoints:[25,50,75,100],click:!0,dead_click:!0,input:!0};gm[lm]=$g,gm[hm]=!0,gm[pm]=!0,gm[fm]=!1,gm[dm]=!0;var mm={$mp_autocapture:!0},vm="$mp_click",ym="$mp_dead_click",_m="$mp_rage_click",bm=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};bm.prototype.init=function(){!function(){try{return!!Tf.createElement("div").matches}catch(e){return!1}}()?ig.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},bm.prototype.getFullConfig=function(){var e=this.mp.get_config(Hg);return e?Vf.isObject(e)?Vf.extend({},gm,e):gm:{}},bm.prototype.getConfig=function(e){return this.getFullConfig()[e]},bm.prototype.currentUrlBlocked=function(){var e,t=Vf.info.currentUrl(),r=this.getConfig(Kg)||[];if(r.length){var n=!1;for(e=0;e<r.length;e++){var i=r[e];try{if(t.match(i)){n=!0;break}}catch(e){return ig.critical("Error while checking block URL regex: "+i,e),!0}}if(!n)return!0}var o=this.getConfig(rm)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(t){return ig.critical("Error while checking block URL regex: "+o[e],t),!0}return!1},bm.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Hg)?this.getConfig(lm):this.mp.get_config("track_pageview")},bm.prototype.trackDomEvent=function(t,r){if(!this.currentUrlBlocked()){var n=this.mp.is_recording_heatmap_data()&&(r===vm&&!this.getConfig(am)||r===_m&&!this._getClickTrackingConfig(hm)||r===ym&&!this._getClickTrackingConfig(cm)),i=function(t,r){var n=r.allowElementCallback,i=r.allowSelectors||[],o=r.blockAttrs||[],s=r.blockElementCallback,a=r.blockSelectors||[],c=r.captureTextContent||!1,u=r.captureExtraAttrs||[],l=r.captured
1ForHeatMap||!1,h={};Vf.each(o,(function(e){h[e]=!0}));var p=null,f=void 0===t.target?t.srcElement:t.target;if(dg(f)&&(f=f.parentNode),function(e,t){if(!e||fg(e,"html")||!pg(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===Yd;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===jd:t.type===zd;case"select":case"textarea":return t.type===jd;default:return t.type===zd}}(f,t)&&lg(f,t,n,i)&&!hg(f,t,s,a)){for(var d=[f],g=f;g.parentNode&&!fg(g,"body");)d.push(g.parentNode),g=g.parentNode;var m,v=[],y=!1;if(Vf.each(d,(function(e){var r=mg(e,t,n,i);h.href||"a"!==e.tagName.toLowerCase()||(m=e.getAttribute("href"),m=r&&vg(m)&&m),hg(e,t,s,a)&&(y=!0),v.push(cg(e,t,h,u,n,i))}),this),!y){var _=Tf.documentElement;if(p={$event_type:t.type,$host:e.location.host,$pathname:e.location.pathname,$elements:v,$el_attr__href:m,$viewportHeight:Math.max(_.clientHeight,e.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,e.innerWidth||0),$pageHeight:Tf.body.offsetHeight||0,$pageWidth:Tf.body.offsetWidth||0},Vf.each(u,(function(e){if(!h[e]&&f.hasAttribute(e)){var t=f.getAttribute(e);vg(t)&&(p["$el_attr__"+e]=t)}})),c&&(b=ug(f,t,n,i))&&b.length&&(p.$el_text=b),t.type===zd&&(Vf.each(Hd,(function(e){e in t&&(p["$"+e]=t[e])})),l&&(p.$captured_for_heatmap=!0),f=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(fg(i,"a")||fg(i,"button")||fg(i,"input")||fg(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(t)),c){var b=ug(f,t,n,i);b&&b.length&&(p.$el_text=b)}if(f){if(!lg(f,t,n,i)||hg(f,t,s,a))return null;var w=cg(f,t,h,u,n,i);p.$target=w,p.$el_classes=w.$classes,Vf.extend(p,Vf.strip_empty_properties({$el_id:w.$id,$el_tag_name:w.$tag_name}))}}}return p}(t,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(Xg),blockAttrs:this.getConfig(Qg),blockElementCallback:this.getConfig(em),blockSelectors:this.getConfig(tm),captureExtraAttrs:this.getConfig(nm),captureTextContent:this.getConfig(im),capturedForHeatMap:n});i&&(Vf.extend(i,mm),this.mp.track(r,i))}},bm.prototype.initPageListeners=function(){if(e.removeEventListener(qd,this.listenerPopstate),e.removeEventListener(Vd,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(fm)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){e.dispatchEvent(new Event(Wd))},this.listenerHashchange=function(){e.dispatchEvent(new Event(Wd))},e.addEventListener(qd,this.listenerPopstate),e.addEventListener(Vd,this.listenerHashchange);var t=e.history.pushState;"function"==typeof t&&(e.history.pushState=function(r,n,i){t.call(e.history,r,n,i),e.dispatchEvent(new Event(Wd))});var r=e.history.replaceState;"function"==typeof r&&(e.history.replaceState=function(t,n,i){r.call(e.history,t,n,i),e.dispatchEvent(new Event(Wd))})}},bm.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},bm.prototype._trackPageLeave=function(t,r,n){if(!this.hasTrackedScrollSession&&(this.getConfig(fm)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var i=Math.max(Tf.documentElement.clientHeight,e.innerHeight||0),o=Math.round(Math.max(this.maxScrollViewDepth-i,0)/(n-i)*100),s=Math.round(i/n*100);n<=i&&(o=100,s=100);var a=Vf.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:o,$fold_line_percentage:s,$scroll_height:n,$event_type:t.type,$current_url:r||Vf.info.currentUrl(),$viewportHeight:i,$viewportWidth:Math.max(Tf.documentElement.clientWidth,e.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},mm);this.mp.track("$mp_page_leave",a,{transport:"sendBeacon"})}},bm.prototype._initScrollDepthTracking=function(){if(e.removeEventListener(Zd,this.listenerScrollDepth),e.removeEventListener(Gd,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){ig.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(Tf.documentElement.clientHeight,e.innerHeight||0);var t=yg(function(){if(!this.currentUrlBlocked()){var t=Math.max(Tf.documentElement.clientHeight,e.innerHe
1ight||0)+e.scrollY;t>this.maxScrollViewDepth&&(this.maxScrollViewDepth=t),this.previousScrollHeight=Tf.body.scrollHeight}}.bind(this));this.listenerScrollDepth=t.listener,e.addEventListener(t.eventType,this.listenerScrollDepth)}},bm.prototype.initClickTracking=function(){e.removeEventListener(zd,this.listenerClick),(this.getConfig(am)||this.mp.get_config("record_heatmap_data"))&&(ig.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(am)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,vm)}.bind(this),e.addEventListener(zd,this.listenerClick))},bm.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(cm)||this.mp.get_config("record_heatmap_data")?(ig.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Jg(function(e){this.trackDomEvent(e,ym)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(cm);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),e.addEventListener(zd,this.listenerDeadClick))):this.stopDeadClickTracking()},bm.prototype.initInputTracking=function(){e.removeEventListener(jd,this.listenerChange),this.getConfig(um)&&(ig.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(um)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),e.addEventListener(jd,this.listenerChange))},bm.prototype.initPageviewTracking=function(){if(e.removeEventListener(Wd,this.listenerLocationchange),this.pageviewTrackingConfig()){ig.log("Initializing pageview tracking");var t="",r=!1;this.currentUrlBlocked()||(r=this.mp.track_pageview(mm)),r&&(t=Vf.info.currentUrl()),this.listenerLocationchange=Zf(function(){if(!this.currentUrlBlocked()){var e=Vf.info.currentUrl(),r=!1,n=e.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===$g?r=e!==t:"url-with-path-and-query-string"===i?r=e.split("#")[0]!==t.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(mm)&&(t=e),n&&(this.lastScrollCheckpoint=0,ig.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),e.addEventListener(Wd,this.listenerLocationchange)}},bm.prototype.initRageClickTracking=function(){e.removeEventListener(zd,this.listenerRageClick),(this._getClickTrackingConfig(hm)||this.mp.get_config("record_heatmap_data"))&&(ig.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Vg),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(hm);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,_m))}.bind(this),e.addEventListener(zd,this.listenerRageClick))},bm.prototype.initScrollTracking=function(){if(e.removeEventListener(Gd,this.listenerScroll),e.removeEventListener(Zd,this.listenerScroll),this.getConfig(pm)){ig.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=yg(function(){if(this.getConfig(pm)&&!this.currentUrlBlocked()){var t=this.getConfig(om),r=(this.getConfig(sm)||[]).slice().sort((function(e,t){return e-t})),n=e.scrollY,i=Vf.extend({$scroll_top:n},mm);try{var o=Tf.body.scrollHeight,s=Math.round(n/(o-e.innerHeight)*100);if(i.$scroll_height=o,i.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var a=0;a<r.length;a++){var c=r[a];s>=c&&this.lastScrollCheckpoint<c&&(i.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,t=!0)}}catch(e){ig.critical("Error while calculating scroll percentage",e)}t&&this.mp.track("$mp_scroll",i)}}.bind(this));this.listenerScroll=t.listener,e.addEventListener(t.eventType,this.listenerScroll)}},bm.prototype.initSubmitTracking=function(){e.removeEventListener(Yd,this.listenerSubmit),this.getConfig(dm)&&(ig.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(dm)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),e.addEventListener(Yd,this.listenerSubmit))},bm.prototype.initPageLeaveTracking=function(){if(Tf.removeEventListener(Jd,this.listenerPageLeaveVisibilitychange),e.removeEventListener(Wd,this.listenerPageLeaveLocationchange),e.removeEventListener("load",this.listenerPageLoad),this.getConfig(fm)||this.mp.get_config("record_heatmap_data")){ig.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=Vf.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=Tf.body.scrollHeight}.bind(this),e.addEventListener("load",this.listenerPageLoad),this.listenerPageLeaveLocationchange=Zf(function(r){if(!this.currentUrlBlocked()){var n=Vf.info.currentUrl();n!==t&&(this._trackPageLeave(r,t,this.previousScrollHeight),t=n,this.maxScrollViewDepth=Math.max(Tf.documentElement.clientHeight,e.innerHe
1ight||0),this.previousScrollHeight=Tf.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),e.addEventListener(Wd,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(e){Tf.hidden&&this._trackPageLeave(e,t,this.previousScrollHeight)}.bind(this),Tf.addEventListener(Jd,this.listenerPageLeaveVisibilitychange)}},bm.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(e.removeEventListener(zd,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Yf(bm);var wm=Gf("flags"),km="flags",Sm="context",Cm={context:{}},Im=function(t){this.fetch=e.fetch,this.getFullApiRoute=t.getFullApiRoute,this.getMpConfig=t.getConfigFunc,this.setMpConfig=t.setConfigFunc,this.getMpProperty=t.getPropertyFunc,this.track=t.trackingFunc,this.loadExtraBundle=t.loadExtraBundle||function(){},this.targetingSrc=t.targetingSrc||""};Im.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):wm.critical("Feature Flags unavailable: missing minimum required APIs")},Im.prototype.getFullConfig=function(){var e=this.getMpConfig(km);return e?Vf.isObject(e)?Vf.extend({},Cm,e):Cm:{}},Im.prototype.getConfig=function(e){return this.getFullConfig()[e]},Im.prototype.isSystemEnabled=function(){return!!this.getMpConfig(km)},Im.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return wm.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(km);Vf.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(Sm);return r[Sm]=Vf.extend({},n,e),this.setMpConfig(km,r),this.fetchFlags()},Im.prototype.areFlagsReady=function(){return this.isSystemEnabled()||wm.error("Feature Flags not enabled"),!!this.flags},Im.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this.getMpProperty("distinct_id"),r=this.getMpProperty("$device_id"),n=sd();wm.log("Fetching flags for distinct ID: "+t);var i=Vf.extend({distinct_id:t,device_id:r},this.getConfig(Sm)),o=new URLSearchParams;o.set("context",JSON.stringify(i)),o.set("token",this.getMpConfig("token")),o.set("mp_lib","web"),o.set("$lib_version",kf.LIB_VERSION);var s=this.getFullApiRoute()+"?"+o.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(e,s,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:n}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e.flags;if(!t)throw new Error("No flags in API response");var r=new Map,i={};Vf.each(t,(function(e,t){var n=!1,i=t+":";if(Vf.each(this.activatedFirstTimeEvents,(function(e,t){t.startsWith(i)&&(n=!0)})),n){var o=this.flags&&this.flags.get(t);o&&r.set(t,o)}else r.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})}),this);var o=e.pending_first_time_events;o&&o.length>0&&Vf.each(o,(function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})}),this),this.activatedFirstTimeEvents&&Vf.each(this.activatedFirstTimeEvents,(function(e,t){var n=function(e){return e.split(":")[0]}(t);e&&!r.has(n)&&this.flags&&this.flags.has(n)&&r.set(n,this.flags.get(n))}),this),this.flags=r,this.pendingFirstTimeEvents=i,this._traceparent=n,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){this.markFetchComplete(),wm.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),wm.error(e)}.bind(this)),this.fetchPromise},Im.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):wm.error("Fetch in progress started time not set, cannot mark fetch complete")},Im.prototype._loadTargetingIfNeeded=function(){var e=!1;Vf.each(this.pendingFirstTimeEvents,(function(t){t.property_filters&&!Vf.isEmptyObject(t.property_filters)&&(e=!0)})),e&&this.getTargeting().then((function(){wm.log("targeting loaded for property filter evaluation")}))},Im.prototype.getTargeting=function(){return(t=this.loadExtraBundle.bind(this),n=this.targetingSrc,e[r]&&"function"==typeof e[r].then||(e[r]=new Promise((function(e){t(n,e)})).then((function(){var t=e[r];if(t&&"function"==typeof t.then)return t;throw new Error("targeting failed to load")}
1)).catch((function(t){throw delete e[r],t}))),e[r]).catch(function(e){wm.error("Failed to load targeting: "+e)}.bind(this));var t,n},Im.prototype.checkFirstTimeEvents=function(t,n){this.pendingFirstTimeEvents&&!Vf.isEmptyObject(this.pendingFirstTimeEvents)&&(e[r]&&Vf.isFunction(e[r].then)?e[r].then(function(e){this._processFirstTimeEventCheck(t,n,e)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(t,n,null)}.bind(this)):this._processFirstTimeEventCheck(t,n,null))},Im.prototype._processFirstTimeEventCheck=function(e,t,r){Vf.each(this.pendingFirstTimeEvents,(function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(r||!n.property_filters||Vf.isEmptyObject(n.property_filters)){if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)wm.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){wm.log('First-time event matched for flag "'+s+'": '+e);var c={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,c),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else wm.warn('Skipping event check for "'+s+'" - property filters require targeting library')}}),this)},Im.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},Im.prototype.recordFirstTimeEvent=function(t,r,n){var i=this.getMpProperty("distinct_id"),o=sd(),s=new URLSearchParams;s.set("mp_lib","web"),s.set("$lib_version",kf.LIB_VERSION);var a=this.getFirstTimeEventApiRoute(t)+"?"+s.toString(),c={distinct_id:i,project_id:r,first_time_event_hash:n};wm.log("Recording first-time event for flag: "+t),this.fetch.call(e,a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:o},body:JSON.stringify(c)}).catch((function(e){wm.error("Failed to record first-time event for flag "+t+": "+e)}))},Im.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch((function(e){return wm.error(e),t})):new Promise((function(e){wm.critical("Feature Flags not initialized"),e(t)}))},Im.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return wm.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(wm.log('No flag found: "'+e+'"'),t)},Im.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then((function(e){return e.value})).catch((function(e){return wm.error(e),t}))},Im.prototype.getFeatureData=function(e,t){return wm.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},Im.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},Im.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch((function(e){return wm.error(e),t}))},Im.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(wm.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},Im.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},Im.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Yf(Im),Im.prototype.are_flags_ready=Im.prototype.areFlagsReady,Im.prototype.get_variant=Im.prototype.getVariant,Im.prototype.get_variant_sync=Im.prototype.getVariantSync,Im.prototype.get_variant_value=Im.prototype.getVariantValue,Im.prototype.get_variant_value_sync=Im.prototype.getVariantValueSync,Im.prototype.is_enabled=Im.prototype.isEnabled,Im.prototype.is_enabled_sync=Im.prototype.isEnabledSync,Im.prototype.update_context=Im.prototype.updateContext,Im.prototype.get_feature_data=Im.prototype.getFeatureData,Im.prototype.getTargeting=Im.prototype.getTargeting;var xm=function(){};xm.prototype.create_properties=function(){},xm.prototype.event_handler=function(){},xm.prototype.after_track_handler=function(){},xm.prototype.init=function(e){return this.mp=e,this},xm.prototype.track=function(e,t,r,n){var i=this,o=Vf.dom_query(e);if(0!==o.length)return Vf.each(o,(function(e){Vf.register_event(e,this.override_event,(function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))}))}),this),!0;Wf.error("The DOM query ("+e+") returned 0 elements")},xm.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},xm.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):Vf.extend({},e)};var Am=function(){this.override_event="click"};Vf.inherit(Am,xm),Am.prototype.create_properties=function(e,t){var r=Am.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Am.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},Am.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var Om=function(){this.override_event="submit"};Vf.inherit(Om,xm),Om.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Om.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var Em="$set",Mm="$set_once",Rm="$unset",Tm="$add",Pm="$append",Nm="$union",Dm="$remove",Lm={set_action:function(e,t){var r={},n={};return Vf.isObject(e)?Vf.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Em]=n,r},unset_action:function(e){var t={},r=[];return Vf.isArray(e)||(e=[e]),Vf.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[Rm]=r,t},set_once_action:function(e,t){var r={},n={};return Vf.isObject(e)?Vf.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Mm]=n,r},union_action:function(e,t){var r={},n={};return Vf.isObject(e)?Vf.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=Vf.isArray(e)?e:[e])}),this):n[e]=Vf.isArray(t)?t:[t],r[Nm]=n,r},append_action:function(e,t){var r={},n={};return Vf.isObject(e)?Vf.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Pm]=n,r},remove_action:function(e,t){var r={},n={};return Vf.isObject(e)?Vf.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Dm]=n,r},delete_action:function(){return{$delete:""}}},Fm=function(){};Vf.extend(Fm.prototype,Lm),Fm.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Fm.prototype.set=Sd((function(e,t,r){var n=this.set_action(e,t);return Vf.isObject(e)&&(r=t),this._send_request(n,r)})),Fm.prototype.set_once=Sd((function(e,t,r){var n=this.set_once_action(e,t);return Vf.isObject(e)&&(r=t),this._send_request(n,r)})),Fm.prototype.unset=Sd((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),Fm.prototype.union=Sd((function(e,t,r){Vf.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),Fm.prototype.delete=Sd((function(e){var t=this.delete_action();return this._send_request(t,e)})),Fm.prototype.remove=Sd((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),Fm.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=Vf.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},Fm.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Fm.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Fm.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Fm.prototype.remove=Fm.prototype.remove,Fm.prototype.set=Fm.prototype.set,Fm.prototype.set_once=Fm.prototype.set_once,Fm.prototype.union=Fm.prototype.union,Fm.prototype.unset=Fm.prototype.unset,Fm.prototype.toString=Fm.prototype.toString;var Bm=function(){};Vf.extend(Bm.prototype,Lm),Bm.prototype._init=function(e){this._mixpanel=e},Bm.prototype.set=kd((function(e,t,r){var n=this.set_action(e,t);return Vf.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Em]=Vf.extend({},Vf.info.people_properties(),n[Em]),this._send_request(n,r)})),Bm.prototype.set_once=kd((function(e,t,r){var n=this.set_once_action(e,t);return Vf.isObject(e)&&(r=t),this._send_request(n,r)})),Bm.prototype.unset=kd((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),Bm.prototype.increment=kd((function(e,t,r){var n={},i={};return Vf.isObject(e)?(Vf.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Wf.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}}),this),r=t):(Vf.isUndefined(t)&&(t=1),i[e]=t),n[Tm]=i,this._send_request(n,r)})),Bm.prototype.append=kd((function(e,t,r){Vf.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),Bm.prototype.remove=kd((function(e,t,r){Vf.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),Bm.prototype.union=kd((function(e,t,r){Vf.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),Bm.prototype.track_charge=kd((function(){Wf.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")})),Bm.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Bm.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Wf.error("mixpanel.people.delete_user() requires you to call identify() first")},Bm.prototype.toString=function(){return this._mixpanel.toString()+".people"},Bm.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=Vf.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people}
1,t):(this._enqueue(e),Vf.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),Vf.truncate(o,255))},Bm.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Bm.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Bm.prototype._enqueue=function(e){Em in e?this._mixpanel.persistence._add_to_people_queue(Em,e):Mm in e?this._mixpanel.persistence._add_to_people_queue(Mm,e):Rm in e?this._mixpanel.persistence._add_to_people_queue(Rm,e):Tm in e?this._mixpanel.persistence._add_to_people_queue(Tm,e):Pm in e?this._mixpanel.persistence._add_to_people_queue(Pm,e):Dm in e?this._mixpanel.persistence._add_to_people_queue(Dm,e):Nm in e?this._mixpanel.persistence._add_to_people_queue(Nm,e):Wf.error("Invalid call to _enqueue():",e)},Bm.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=Vf.extend({},this._mixpanel.persistence.load_queue(e)),s=o;Vf.isUndefined(o)||!Vf.isObject(o)||Vf.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,(function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),Vf.isUndefined(r)||r(t,n)})))},Bm.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(Em,this.set,e),this._flush_one_queue(Mm,this.set_once,n),this._flush_one_queue(Rm,this.unset,o,(function(e){return Vf.keys(e)})),this._flush_one_queue(Tm,this.increment,t),this._flush_one_queue(Nm,this.union,i);var c=this._mixpanel.persistence.load_queue(Pm);if(!Vf.isUndefined(c)&&Vf.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Pm,u),Vf.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel.persistence.load_queue(Pm),u=c.pop(),a._mixpanel.persistence.save(),Vf.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(Dm);if(!Vf.isUndefined(p)&&Vf.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Dm,f),Vf.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(Dm),f=p.pop(),a._mixpanel.persistence.save(),Vf.isEmptyObject(f)||a.remove(f,d)},Bm.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Bm.prototype.set=Bm.prototype.set,Bm.prototype.set_once=Bm.prototype.set_once,Bm.prototype.unset=Bm.prototype.unset,Bm.prototype.increment=Bm.prototype.increment,Bm.prototype.append=Bm.prototype.append,Bm.prototype.remove=Bm.prototype.remove,Bm.prototype.union=Bm.prototype.union,Bm.prototype.track_charge=Bm.prototype.track_charge,Bm.prototype.clear_charges=Bm.prototype.clear_charges,Bm.prototype.delete_user=Bm.prototype.delete_user,Bm.prototype.toString=Bm.prototype.toString;var Um,jm="__mps",zm="__mpso",Vm="__mpus",Wm="__mpa",qm="__mpap",Gm="__mpr",Zm="__mpu",Ym="$people_distinct_id",Jm="__alias",Hm="__timers",$m=[jm,zm,Vm,Wm,qm,Gm,Zm,Ym,Jm,Hm],Xm=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&&(Wf.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&Vf.localStorage.is_supported()?this.storage=Vf.localStorage:this.storage=Vf.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Xm.prototype.properties=function(){var e={};return this.load(),Vf.each(this.props,(function(t,r){Vf.include($m,r)||(e[r]=t)})),e},Xm.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Vf.extend({},e))}},Xm.prototype.upgrade=function(){var e,t;this.storage===Vf.localStorage?(e=Vf.cookie.parse(this.name),Vf.cookie.remove(this.name),Vf.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===Vf.cookie&&(t=Vf.localStorage.parse(this.name),Vf.localStorage.remove(this.name),t&&this.register_once(t))},Xm.prototype.save=function(){this.disabled||this.storage.set(this.name,hd(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Xm.prototype.load_prop=function(e){return this.load(),this.props[e]},Xm.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Xm.prototype.clear=function(){this.remove(),this.props={}},Xm.prototype.register_once=function(e,t,r){return!!Vf.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),Vf.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},Xm.prototype.register=function(e,t){return!!Vf.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),Vf.extend(this.props,e),this.save(),!0)},Xm.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Xm.prototype.update_search_keyword=function(e){this.register(Vf.info.searchInfo(e))},Xm.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:Vf.info.referringDomain(e)||"$direct"},"")},Xm.prototype.get_referrer_info=function(){return Vf.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Xm.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)},Xm.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Xm.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Xm.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Xm.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Xm.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Xm.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Xm.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Em),o=this._get_or_create_queue(Mm),s=this._get_or_create_queue(Rm),a=this._get_or_create_queue(Tm),c=this._get_or_create_queue(Nm),u=this._get_or_create_queue(Dm,[]),l=this._get_or_create_queue(Pm,[]);r===jm?(Vf.extend(i,n),this._pop_from_people_queue(Tm,n),this._pop_from_people_queue(Nm,n
1),this._pop_from_people_queue(Rm,n)):r===zm?(Vf.each(n,(function(e,t){t in o||(o[t]=e)})),this._pop_from_people_queue(Rm,n)):r===Vm?Vf.each(n,(function(e){Vf.each([i,o,a,c],(function(t){e in t&&delete t[e]})),Vf.each(l,(function(t){e in t&&delete t[e]})),s[e]=!0})):r===Wm?(Vf.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(Rm,n)):r===Zm?(Vf.each(n,(function(e,t){Vf.isArray(e)&&(t in c||(c[t]=[]),Vf.each(e,(function(e){Vf.include(c[t],e)||c[t].push(e)})))})),this._pop_from_people_queue(Rm,n)):r===Gm?(u.push(n),this._pop_from_people_queue(Pm,n)):r===qm&&(l.push(n),this._pop_from_people_queue(Rm,n)),Wf.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Wf.log(t),this.save()},Xm.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];Vf.isUndefined(r)||Vf.each(t,(function(t,n){e===Pm||e===Dm?Vf.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},Xm.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Xm.prototype._get_queue_key=function(e){return e===Em?jm:e===Mm?zm:e===Rm?Vm:e===Tm?Wm:e===Pm?qm:e===Dm?Gm:e===Nm?Zm:void Wf.error("Invalid queue:",e)},Xm.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=Vf.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Xm.prototype.set_event_timer=function(e,t){var r=this.load_prop(Hm)||{};r[e]=t,this.props[Hm]=r,this.save()},Xm.prototype.remove_event_timer=function(e){var t=(this.load_prop(Hm)||{})[e];return Vf.isUndefined(t)||(delete this.props[Hm][e],this.save()),t};var Km,Qm=function(e,t){throw new Error(e+" not available in this build.")},ev="mixpanel",tv="$device:",rv=e.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,nv=!rv&&-1===Df.indexOf("MSIE")&&-1===Df.indexOf("Mozilla"),iv=null;Rf.sendBeacon&&(iv=function(){return Rf.sendBeacon.apply(Rf,arguments)});var ov={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},sv={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:ov,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ld,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ld,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:Sf,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js",targeting_src:"https://cdn.mxpnl.com/libs/mixpanel-targeting.min.js",remote_settings_mode:"disabled"},av=!1,cv=function(){},uv=function(t,r,n){var i,o=n===ev?Km:Km[n];if(o&&0===Um)i=o;else{if(o&&!Vf.isArray(o))return void Wf.error("You have already initialized "+n);i=new cv}if(i._cached_groups={},i._init(t,r,n),i.people=new Bm,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var s=Vf.info.campaignParams(null),a={},c=!1;Vf.each(s,(function(e,t){a["initial_"+t]=e,e&&(c=!0)})),c&&i.people.set_once(a)}kf.DEBUG=kf.DEBUG||i.get_config("debug");var u=0===Um?"module":"snippet";return e.dispatchEvent(new e.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:i,source:u,token:t,name:n,info:Vf.info}}
1)),!Vf.isUndefined(o)&&Vf.isArray(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),i};cv.prototype.init=function(e,t,r){if(Vf.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==ev){var n=uv(e,t,r);return Km[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},cv.prototype._init=function(t,r,n){r=r||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in r||(r.api_host||sv.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.hooks={},this.set_config(Vf.extend({},sv,i,r,{name:n,token:t,callback_fn:(n===ev?n:ev+"."+n)+"._jsc"})),this._jsc=ld,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(Vf.localStorage.is_supported(!0)&&rv){if(this.init_batchers(),iv&&e.addEventListener){var o=Vf.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);e.addEventListener("pagehide",(function(e){e.persisted&&o()})),e.addEventListener("visibilitychange",(function(){"hidden"===Tf.visibilityState&&o()}))}}else this._batch_requests=!1,Wf.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),Vf.each(this.get_batcher_configs(),(function(e){Wf.log("Clearing batch queue "+e.queue_key),Vf.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new Xm(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=Vf.UUID();this.get_distinct_id()||this.register_once({distinct_id:tv+s,$device_id:s},""),this.flags=new Im({getFullApiRoute:Vf.bind((function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags}),this),getConfigFunc:Vf.bind(this.get_config,this),setConfigFunc:Vf.bind(this.set_config,this),getPropertyFunc:Vf.bind(this.get_property,this),trackingFunc:Vf.bind(this.track,this),loadExtraBundle:Qm,targetingSrc:this.get_config("targeting_src")}),this.flags.init(),this.flags=this.flags,this.autocapture=new bm(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");"strict"===a||"fallback"===a?this._fetch_remote_settings(a).then(Vf.bind((function(){this._check_and_start_session_recording()}),this)):this._check_and_start_session_recording()},cv.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Wf.log("Tab ID initialization skipped due to disable_persistence config");else if(Vf.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),r="mp_tab_id_"+t,n="mp_gen_new_tab_id_"+t;!Vf.sessionStorage.get(n)&&Vf.sessionStorage.get(r)||Vf.sessionStorage.set(r,"$tab-"+Vf.UUID()),Vf.sessionStorage.set(n,"1"),this.tab_id=Vf.sessionStorage.get(r),e.addEventListener("beforeunload",(function(){Vf.sessionStorage.remove(n)}))}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.")},cv.prototype.get_tab_id=function(){return this.tab_id||null},cv.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return Wf.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new md(dd),t=this.get_tab_id();return e.init().then((function(){return e.getAll()})).then((function(e){for(var r=0;r<e.length;r++)if(Ud(e[r])||e[r].tabId===t)return!0;return!1})).catch(Vf.bind((function(e){this.report_error("Error checking recording registry",e)}),this))},cv.prototype._check_and_start_session_recording=wd((function(t){if(e.MutationObserver){var r=Vf.bind((function(t){var r=Vf.bind((function(){this._recorder=this._recorder||new e[n](this),this._recorder.resumeRecording(t)}),this);Vf.isUndefined(e[n])?Qm(this.get_config("recorder_src"),r):r()}),this),i=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");t||i?r(!0):this._should_load_recorder().then((function(e){e&&r(!1)}))}else Wf.critical("Browser does not support MutationObserver; skipping session recording")})),cv.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},cv.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},cv.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},cv.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},cv.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},cv.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},cv.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+Vf.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},cv.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},cv.prototype.__get_recorder=function(){return this._recorder},cv.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=Vf.info.campaignParams(null);Vf.each(e,function(e,t){this.unregister(t)}.bind(this))}},cv.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Tf.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(Vf.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Tf.referrer)},cv.prototype._dom_loaded=function(){Vf.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||Vf.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},cv.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(!av)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},cv.prototype._prepare_callback=function(e,t){if(Vf.isUndefined(e))return null;if(rv)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},cv.prototype._send_request=function(e,t,r,n){var i=!0;if(nv)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
1:this.get_config("verbose")},s=null;n||!Vf.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=Vf.extend(o,r||{}),rv||(r.method="GET");var a="POST"===r.method,c=iv&&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),rv||(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),Vf.extend(t,this.get_config("api_extra_query_params")),e+="?"+Vf.HTTPBuildQuery(t);var l=this;if("img"in t){var h=Tf.createElement("img");h.src=e,Tf.body.appendChild(h)}else if(c){try{i=iv(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){l.report_error(e)}}else if(rv)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),Vf.each(f,(function(e,t){p.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){var e;if(4===p.readyState)if(200===p.status){if(n)if(u){var t;try{t=Vf.JSONDecode(p.responseText)}catch(e){if(l.report_error(e),!r.ignore_json_errors)return;t=p.responseText}n(t)}else n(Number(p.responseText))}else if(e=p.timeout&&!p.status&&(new Date).getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(e),n)if(u){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},p.send(s)}catch(e){l.report_error(e),i=!1}else{var g=Tf.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=Tf.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},cv.prototype._fetch_remote_settings=function(t){var r=function(){"strict"===t&&s.set_config({record_sessions_percent:0})};if(!e.AbortController)return Wf.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,i={$lib_version:kf.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=n+"?"+Vf.HTTPBuildQuery(i),s=this,a=new AbortController,c=setTimeout((function(){a.abort()}),500),u={method:"GET",headers:{Authorization:"Basic "+btoa(s.get_config("token")+":")},signal:a.signal};return e.fetch(o,u).then((function(e){return clearTimeout(c),e.ok?e.json():(Wf.critical("Network response was not ok"),void r())})).then((function(e){if(e&&e.sdk_config&&e.sdk_config.config){var t=e.sdk_config.config,n={};Vf.each(t,(function(e,t){sv.hasOwnProperty(t)&&(n[t]=e)})),Vf.isEmptyObject(n)?(Wf.critical("No valid config keys found in remote settings."),r()):s.set_config(n)}else r()})).catch((function(e){clearTimeout(c),Wf.critical("Failed to fetch remote settings",e),r()}))},cv.prototype._execute_array=function(e){var t,r=[],n=[],i=[];Vf.each(e,(function(e){e&&(t=e[0],Vf.isArray(t)?i.push(e):"function"==typeof e?e.call(this):Vf.isArray(e)&&"alias"===t?r.push(e):Vf.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))}),this);var o=function(e,t){Vf.each(e,(function(e){if(Vf.isArray(e[0])){var r=t;Vf.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)},cv.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},cv.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},cv.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=Vf.bind((function(e){return new Bd(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:Vf.bind((function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:Vf.bind((function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null}),this),stopAllBatchingFunc:Vf.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()},cv.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,Vf.each(this.request_batchers,(function(e){e.start()})))},cv.prototype.stop_batch_senders=function(){this._batch_requests=!1,Vf.each(this.request_batchers,(function(e){e.stop(),e.clear()}
1))},cv.prototype.push=function(e){this._execute_array([e])},cv.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},cv.prototype._encode_data_for_request=function(e){var t=hd(e);return"base64"===this.get_config("api_payload_format")&&(t=Vf.base64Encode(t)),{data:t}},cv.prototype._track_or_batch=function(e,t){var r=Vf.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||ld;var a=!0,c=Vf.bind((function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(Wf.log("MIXPANEL REQUEST:"),Wf.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},cv.prototype.track=wd((function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=ld),Vf.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=Vf.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!Vf.isUndefined(a)){var c=(new Date).getTime()-a;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?Vf.info.marketingParams():{};t=Vf.extend({},Vf.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");Vf.isArray(l)?Vf.each(l,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+l);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}})),cv.prototype.set_group=wd((function(e,t,r){Vf.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),cv.prototype.add_group=wd((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)})),cv.prototype.remove_group=wd((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)})),cv.prototype.track_with_groups=wd((function(e,t,r,n){var i=Vf.extend({},t||{});return Vf.each(r,(function(e,t){null!=e&&(i[t]=e)})),this.track(e,i,n)})),cv.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},cv.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},cv.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 Fm)._init(this,e,t),this._cached_groups[r]=n),n},cv.prototype.track_pageview=wd((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=Vf.extend(Vf.info.mpPageViewProperties(),Vf.info.campaignParams(),Vf.info.clickParams()),i=Vf.extend({},n,e);return this.track(r,i)})),cv.prototype.track_links=function(){return this._track_dom.call(this,Am,arguments)},cv.prototype.track_forms=function(){return this._track_dom.call(this,Om,arguments)},cv.prototype.time_event=function(e){Vf.isUndefined(e)?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 lv={persistent:!0},hv=function(e){var t;return t=Vf.isObject(e)?e:Vf.isUndefined(e)?{}:{days:e},Vf.extend({},lv,t)};cv.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=hv(t);n.persistent?this.persistence.register(e,n.days):Vf.extend(this.unpersisted_superprops,e)}},cv.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=hv(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),Vf.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))}},cv.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);
1null!==r&&(e=r[0],t=r[1],(t=hv(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},cv.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},cv.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(tv))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(Jm)&&(this.unregister(Jm),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},cv.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=Vf.UUID();this.register_once({distinct_id:tv+e,$device_id:e},""),this._check_and_start_session_recording()},cv.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},cv.prototype.alias=function(e,t){if(e===this.get_property(Ym))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return Vf.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Jm,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)},cv.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},cv.prototype.set_config=function(e){Vf.isObject(e)&&(Vf.extend(this.config,e),e.batch_size&&Vf.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),kf.DEBUG=kf.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),Vf.isObject(e.hooks)&&(this.hooks={},Vf.each(e.hooks,(function(e,t){if(Vf.isFunction(e))this.hooks[t]=[e];else if(Vf.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)Vf.isFunction(e[r])||Wf.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else Wf.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")}),this)))},cv.prototype.get_config=function(e){return this.config[e]},cv.prototype._run_hook=function(e){var t=Af.call(arguments,1);return Vf.each(this.hooks[e],(function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(Vf.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))}),this),t},cv.prototype.get_property=function(e){return this.persistence.load_prop([e])},cv.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},cv.prototype.toString=function(){var e=this.get_config("name");return e!==ev&&(e=ev+"."+e),e},cv.prototype._event_is_disabled=function(e){return Vf.isBlockedUA(Df)||this._flags.disable_all_events||Vf.include(this.__disabled_events,e)},cv.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&Vf.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")&&!Vf.cookie.get("mp_optout")||(Vf.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},cv.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()},cv.prototype._gdpr_call_func=function(e,t){return t=Vf.extend({track:Vf.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),Vf.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
1:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},cv.prototype.opt_in_tracking=function(e){e=Vf.extend({enable_persistence:!0},e),this._gdpr_call_func(vd,e),this._gdpr_update_persistence(e)},cv.prototype.opt_out_tracking=function(e){(e=Vf.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(yd,e),this._gdpr_update_persistence(e)},cv.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(_d,e)},cv.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(bd,e)},cv.prototype.clear_opt_in_out_tracking=function(e){e=Vf.extend({enable_persistence:!0},e),this._gdpr_call_func(Cd,e),this._gdpr_update_persistence(e)},cv.prototype.report_error=function(e,t){Wf.error.apply(Wf.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Wf.error(t)}},cv.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},cv.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):Wf.log("remove_hook failed. Matching hook was not found"))},cv.prototype.init=cv.prototype.init,cv.prototype.reset=cv.prototype.reset,cv.prototype.disable=cv.prototype.disable,cv.prototype.time_event=cv.prototype.time_event,cv.prototype.track=cv.prototype.track,cv.prototype.track_links=cv.prototype.track_links,cv.prototype.track_forms=cv.prototype.track_forms,cv.prototype.track_pageview=cv.prototype.track_pageview,cv.prototype.register=cv.prototype.register,cv.prototype.register_once=cv.prototype.register_once,cv.prototype.unregister=cv.prototype.unregister,cv.prototype.identify=cv.prototype.identify,cv.prototype.alias=cv.prototype.alias,cv.prototype.name_tag=cv.prototype.name_tag,cv.prototype.set_config=cv.prototype.set_config,cv.prototype.get_config=cv.prototype.get_config,cv.prototype.get_api_host=cv.prototype.get_api_host,cv.prototype.get_property=cv.prototype.get_property,cv.prototype.get_distinct_id=cv.prototype.get_distinct_id,cv.prototype.toString=cv.prototype.toString,cv.prototype.opt_out_tracking=cv.prototype.opt_out_tracking,cv.prototype.opt_in_tracking=cv.prototype.opt_in_tracking,cv.prototype.has_opted_out_tracking=cv.prototype.has_opted_out_tracking,cv.prototype.has_opted_in_tracking=cv.prototype.has_opted_in_tracking,cv.prototype.clear_opt_in_out_tracking=cv.prototype.clear_opt_in_out_tracking,cv.prototype.get_group=cv.prototype.get_group,cv.prototype.set_group=cv.prototype.set_group,cv.prototype.add_group=cv.prototype.add_group,cv.prototype.remove_group=cv.prototype.remove_group,cv.prototype.add_hook=cv.prototype.add_hook,cv.prototype.remove_hook=cv.prototype.remove_hook,cv.prototype.track_with_groups=cv.prototype.track_with_groups,cv.prototype.start_batch_senders=cv.prototype.start_batch_senders,cv.prototype.stop_batch_senders=cv.prototype.stop_batch_senders,cv.prototype.start_session_recording=cv.prototype.start_session_recording,cv.prototype.stop_session_recording=cv.prototype.stop_session_recording,cv.prototype.pause_session_recording=cv.prototype.pause_session_recording,cv.prototype.resume_session_recording=cv.prototype.resume_session_recording,cv.prototype.get_session_recording_properties=cv.prototype.get_session_recording_properties,cv.prototype.get_session_replay_url=cv.prototype.get_session_replay_url,cv.prototype.get_tab_id=cv.prototype.get_tab_id,cv.prototype.DEFAULT_API_ROUTES=ov,cv.prototype.__get_recorder=cv.prototype.__get_recorder,Xm.prototype.properties=Xm.prototype.properties,Xm.prototype.update_search_keyword=Xm.prototype.update_search_keyword,Xm.prototype.update_referrer_info=Xm.prototype.update_referrer_info,Xm.prototype.get_cross_subdomain=Xm.prototype.get_cross_subdomain,Xm.prototype.clear=Xm.prototype.clear;var pv={},fv=(Qm=function(e,t){t()},Um=0,(Km=new cv).init=function(t,r,n){if(n)return Km[n]||(Km[n]=pv[n]=uv(t,r,n),Km[n]._loaded()),Km[n];var i=Km;pv[ev]?i=pv[ev]:t&&((i=uv(t,r,ev))._loaded(),pv[ev]=i),Km=i,1===Um&&(e[ev]=Km),Vf.each(pv,(function(e,t){t!==ev&&(Km[t]=e)})),Km._=Vf},Km.init(),function(){function t(){t.done||(t.done=!0,av=!0,nv=!1,Vf.each(pv,(function(e){e._dom_loaded()})))}if(Tf.addEventListener)"complete"===Tf.readyState?t():Tf.addEventListener("DOMContentLoaded",t,!1);else if(Tf.attachEvent){Tf.attachEvent("onreadystatechange",t);var r=!1;try{r=null===e.frameElement}catch(e){}Tf.documentElement.doScroll&&r&&function e(){try{Tf.documentElement.doScroll("left")}catch(t){return void setTimeout(e,1)}t()}()}Vf.register_event(e,"load",t,!0)}(),Km);!function(){const e=window.mixpanelData;if(!e||!e.token.length)return;const{isProduction:t,isArticle:r,isHome:n}=e.flags;t||console.log({mixpanel:e}),fv.init(e.token,{debug:!t});const{user:i}=e,{events:o}=e,{title:s,category:a}=e.content,c={user:i?i.userId:null,paid_subscriber:!!i&&i.isPaidSubscriber};n&&(c.page="homepage"),r&&(c.article=s,c.category=a),(n||r)&&fv.track_pageview(c),0!==o.length&&o.forEach((function(e){let t=document.getElementById(e.element_id);t&&t.addEventListener("click",(function(){c.clickTarget=t.id,fv.track(e.event_description,c)}))}))}()}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.