UNPKG

mixpanel-browser

Version:

The official Mixpanel JavaScript browser client library

1 lines 256 kB
(function(){"use strict";var W;if(typeof window=="undefined"){var to={hostname:""};W={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:to,referrer:""},screen:{width:0,height:0},location:to,addEventListener:function(){},removeEventListener:function(){}}}else W=window;function ro(t,i){(i==null||i>t.length)&&(i=t.length);for(var o=0,e=new Array(i);o<i;o++)e[o]=t[o];return e}function no(t,i,o,e,r,n,s){try{var a=t[n](s),u=a.value}catch(l){o(l);return}a.done?i(u):Promise.resolve(u).then(e,r)}function gn(t){return function(){var i=this,o=arguments;return new Promise(function(e,r){var n=t.apply(i,o);function s(u){no(n,e,r,s,a,"next",u)}function a(u){no(n,e,r,s,a,"throw",u)}s(void 0)})}}function sr(t,i,o){return io()?sr=Reflect.construct:sr=function(r,n,s){var a=[null];a.push.apply(a,n);var u=Function.bind.apply(r,a),l=new u;return s&&Rt(l,s.prototype),l},sr.apply(null,arguments)}function xu(t,i){for(var o=0;o<i.length;o++){var e=i[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function oe(t,i,o){return i&&xu(t.prototype,i),t}function F(){return F=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])}return t},F.apply(this,arguments)}function yn(t){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},yn(t)}function ue(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&Rt(t,i)}function T(t,i){return i!=null&&typeof Symbol!="undefined"&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](t):t instanceof i}function Eu(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ot(t,i){if(t==null)return{};var o={},e=Object.keys(t),r,n;for(n=0;n<e.length;n++)r=e[n],!(i.indexOf(r)>=0)&&(o[r]=t[r]);return o}function Rt(t,i){return Rt=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Rt(t,i)}function N(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Au(t,i){if(t){if(typeof t=="string")return ro(t,i);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ro(t,i)}}function ar(t){var i=typeof Map=="function"?new Map:void 0;return ar=function(e){if(e===null||!Eu(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i!="undefined"){if(i.has(e))return i.get(e);i.set(e,r)}function r(){return sr(e,arguments,yn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Rt(r,e)},ar(t)}function io(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(io=function(){return!!t})()}function O(t,i){var o=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=Au(t))||i){o&&(t=o);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}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 xt(t,i){var o,e,r,n,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function a(l){return function(c){return u([l,c])}}function u(l){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,e&&(r=l[0]&2?e.return:l[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,l[1])).done)return r;switch(e=0,r&&(l=[l[0]&2,r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,e=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(l[0]===6&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=i.call(t,s)}catch(c){l=[6,c],e=0}finally{o=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function oo(t){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&t[i],e=0;if(o)return o.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}var Mu=Object.defineProperty,ku=function(t,i,o){return i in t?Mu(t,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[i]=o},I=function(t,i,o){return ku(t,(typeof i=="undefined"?"undefined":N(i))!=="symbol"?i+"":i,o)},so,_u=Object.defineProperty,Tu=function(t,i,o){return i in t?_u(t,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[i]=o},ao=function(t,i,o){return Tu(t,(typeof i=="undefined"?"undefined":N(i))!=="symbol"?i+"":i,o)},ie=function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t}(ie||{}),uo={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},lo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ur={},Pu=function(){return!!globalThis.Zone};function wn(t){if(ur[t])return ur[t];var i=globalThis[t],o=i.prototype,e=t in uo?uo[t]:void 0,r=!!(e&&e.every(function(c){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(o,c))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),n=t in lo?lo[t]:void 0,s=!!(n&&n.every(function(c){var f;return typeof o[c]=="function"&&((f=o[c])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Pu())return ur[t]=i.prototype,i.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return i.prototype;var l=u[t].prototype;return document.body.removeChild(a),l?ur[t]=l:o}catch(c){return o}}var Sn={};function Ne(t,i,o){var e,r=t+"."+String(o);if(Sn[r])return Sn[r].call(i);var n=wn(t),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(Sn[r]=s,s.call(i)):i[o]}var bn={};function co(t,i,o){var e=t+"."+String(o);if(bn[e])return bn[e].bind(i);var r=wn(t),n=r[o];return typeof n!="function"?i[o]:(bn[e]=n,n.bind(i))}function Nu(t){return Ne("Node",t,"childNodes")}function $u(t){return Ne("Node",t,"parentNode")}function Du(t){return Ne("Node",t,"parentElement")}function Lu(t){return Ne("Node",t,"textContent")}function Fu(t,i){return co("Node",t,"contains")(i)}function Bu(t){return co("Node",t,"getRootNode")()}function Uu(t){return!t||!("host"in t)?null:Ne("ShadowRoot",t,"host")}function zu(t){return t.styleSheets}function Wu(t){return!t||!("shadowRoot"in t)?null:Ne("Element",t,"shadowRoot")}function Gu(t,i){return Ne("Element",t,"querySelector")(i)}function ju(t,i){return Ne("Element",t,"querySelectorAll")(i)}function Vu(){return wn("MutationObserver").constructor}var le={childNodes:Nu,parentNode:$u,parentElement:Du,textContent:Lu,contains:Fu,getRootNode:Bu,host:Uu,styleSheets:zu,shadowRoot:Wu,querySelector:Gu,querySelectorAll:ju,mutationObserver:Vu};function fo(t){return t.nodeType===t.ELEMENT_NODE}function Et(t){var i=t&&"host"in t&&"mode"in t&&le.host(t)||null;return!!(i&&"shadowRoot"in i&&le.shadowRoot(i)===t)}function At(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Yu(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function qu(t){var i=t.cssText;if(i.split('"').length<3)return i;var o=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?o.push("layer"):t.layerName&&o.push("layer("+t.layerName+")"),t.supportsText&&o.push("supports("+t.supportsText+")"),t.media.length&&o.push(t.media.mediaText),o.join(" ")+";"}function Cn(t){try{var i=t.rules||t.cssRules;if(!i)return null;var o=t.href;!o&&t.ownerNode&&t.ownerNode.ownerDocument&&(o=t.ownerNode.ownerDocument.location.href);var e=Array.from(i,function(r){return ho(r,o)}).join("");return Yu(e)}catch(r){return null}}function ho(t,i){if(Ju(t)){var o;try{o=Cn(t.styleSheet)||qu(t)}catch(r){o=t.cssText}return t.styleSheet.href?lr(o,t.styleSheet.href):o}else{var e=t.cssText;return Zu(t)&&t.selectorText.includes(":")&&(e=Hu(e)),i?lr(e,i):e}}function Hu(t){var i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(i,"$1\\$2")}function Ju(t){return"styleSheet"in t}function Zu(t){return"selectorText"in t}var po=function(){function t(){ao(this,"idNodeMap",new Map),ao(this,"nodeMetaMap",new WeakMap)}var i=t.prototype;return i.getId=function(e){var r;if(!e)return-1;var n=(r=this.getMeta(e))==null?void 0:r.id;return n!=null?n:-1},i.getNode=function(e){return this.idNodeMap.get(e)||null},i.getIds=function(){return Array.from(this.idNodeMap.keys())},i.getMeta=function(e){return this.nodeMetaMap.get(e)||null},i.removeNodeFromMap=function(e){var r=this,n=this.getId(e);this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},i.has=function(e){return this.idNodeMap.has(e)},i.hasNode=function(e){return this.nodeMetaMap.has(e)},i.add=function(e,r){var n=r.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,r)},i.replace=function(e,r){var n=this.getNode(e);if(n){var s=this.nodeMetaMap.get(n);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(e,r)},i.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t}();function Ku(){return new po}function In(t){var i=t.element,o=t.maskInputOptions,e=t.tagName,r=t.type,n=t.value,s=t.maskInputFn,a=n||"",u=r&&Ge(r);return(o[e.toLowerCase()]||u&&o[u])&&(s?a=s(a,i):a="*".repeat(a.length)),a}function Ge(t){return t.toLowerCase()}var vo="__rrweb_original__";function Xu(t){var i=t.getContext("2d");if(!i)return!0;for(var o=50,e=0;e<t.width;e+=o)for(var r=0;r<t.height;r+=o){var n=i.getImageData,s=vo in n?n[vo]:n,a=new Uint32Array(s.call(i,e,r,Math.min(o,t.width-e),Math.min(o,t.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function On(t){var i=t.type;return t.hasAttribute("data-rr-is-password")?"password":i?Ge(i):null}function mo(t,i){var o;try{o=new URL(t,i!=null?i:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,r=o.pathname.match(e),n;return(n=r==null?void 0:r[1])!=null?n:null}function Qu(t){var i="";return t.indexOf("//")>-1?i=t.split("/").slice(0,3).join("/"):i=t.split("/")[0],i=i.split("?")[0],i}var el=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,tl=/^(?:[a-z+]+:)?\/\//i,rl=/^www\..*/i,nl=/^(data:)([^,]*),(.*)/i;function lr(t,i){return(t||"").replace(el,function(o,e,r,n,s,a){var u=r||s||a,l=e||n||"";if(!u)return o;if(tl.test(u)||rl.test(u)||nl.test(u))return"url("+l+u+l+")";if(u[0]==="/")return"url("+l+(Qu(i)+u)+l+")";var c=i.split("/"),f=u.split("/");c.pop();for(var h=O(f),v;!(v=h()).done;){var p=v.value;p!=="."&&(p===".."?c.pop():c.push(p))}return"url("+l+c.join("/")+l+")"})}function Rn(t){return t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function il(t,i){var o=Array.from(i.childNodes),e=[];if(o.length>1&&t&&typeof t=="string"){for(var r=Rn(t),n=1;n<o.length;n++)if(o[n].textContent&&typeof o[n].textContent=="string")for(var s=Rn(o[n].textContent),a=3;a<s.length;a++){var u=s.substring(0,a);if(r.split(u).length===2){for(var l=r.indexOf(u),c=l;c<t.length;c++)if(Rn(t.substring(0,c)).length===l){e.push(t.substring(0,c)),t=t.substring(c);break}break}}}return e.push(t),e}function ol(t,i){return il(t,i).join("/* rr_split */")}var sl=1,al=new RegExp("[^a-z0-9-_:]"),Mt=-2;function go(){return sl++}function ul(t){if(T(t,HTMLFormElement))return"form";var i=Ge(t.tagName);return al.test(i)?"div":i}var nt,yo,ll=/^[^ \t\n\r\u000c]+/,cl=/^[, \t\n\r\u000c]+/;function fl(t,i){if(i.trim()==="")return i;var o=0;function e(l){var c,f=l.exec(i.substring(o));return f?(c=f[0],o+=c.length,c):""}for(var r=[];e(cl),!(o>=i.length);){var n=e(ll);if(n.slice(-1)===",")n=it(t,n.substring(0,n.length-1)),r.push(n);else{var s="";n=it(t,n);for(var a=!1;;){var u=i.charAt(o);if(u===""){r.push((n+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){o+=1,r.push((n+s).trim());break}else u==="("&&(a=!0);s+=u,o+=1}}}return r.join(", ")}var wo=new WeakMap;function it(t,i){return!i||i.trim()===""?i:xn(t,i)}function hl(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function xn(t,i){var o=wo.get(t);if(o||(o=t.createElement("a"),wo.set(t,o)),!i)i="";else if(i.startsWith("blob:")||i.startsWith("data:"))return i;return o.setAttribute("href",i),o.href}function So(t,i,o,e){return e&&(o==="src"||o==="href"&&!(i==="use"&&e[0]==="#")||o==="xlink:href"&&e[0]!=="#"||o==="background"&&(i==="table"||i==="td"||i==="th")?it(t,e):o==="srcset"?fl(t,e):o==="style"?lr(e,xn(t)):i==="object"&&o==="data"?it(t,e):e)}function bo(t,i,o){return(t==="video"||t==="audio")&&i==="autoplay"}function dl(t,i,o){try{if(typeof i=="string"){if(t.classList.contains(i))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(i.test(r))return!0}if(o)return t.matches(o)}catch(n){}return!1}function cr(t,i,o){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return o?cr(le.parentNode(t),i,o):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(i.test(r))return!0}return o?cr(le.parentNode(t),i,o):!1}function Co(t,i,o,e){var r;if(fo(t)){if(r=t,!le.childNodes(r).length)return!1}else{if(le.parentElement(t)===null)return!1;r=le.parentElement(t)}try{if(typeof i=="string"){if(e){if(r.closest("."+i))return!0}else if(r.classList.contains(i))return!0}else if(cr(r,i,e))return!0;if(o){if(e){if(r.closest(o))return!0}else if(r.matches(o))return!0}}catch(n){}return!1}function pl(t,i,o){var e=t.contentWindow;if(e){var r=!1,n;try{n=e.document.readyState}catch(u){return}if(n!=="complete"){var s=setTimeout(function(){r||(i(),r=!0)},o);t.addEventListener("load",function(){clearTimeout(s),r=!0,i()});return}var a="about:blank";if(e.location.href!==a||t.src===a||t.src==="")return setTimeout(i,0),t.addEventListener("load",i);t.addEventListener("load",i)}}function vl(t,i,o){var e=!1,r;try{r=t.sheet}catch(s){return}if(!r){var n=setTimeout(function(){e||(i(),e=!0)},o);t.addEventListener("load",function(){clearTimeout(n),e=!0,i()})}}function ml(t,i){var o=i.doc,e=i.mirror,r=i.blockClass,n=i.blockSelector,s=i.needsMask,a=i.inlineStylesheet,u=i.maskInputOptions,l=u===void 0?{}:u,c=i.maskTextFn,f=i.maskInputFn,h=i.dataURLOptions,v=h===void 0?{}:h,p=i.inlineImages,y=i.recordCanvas,d=i.keepIframeSrcFn,g=i.newlyAddedElement,w=g===void 0?!1:g,S=i.cssCaptured,b=S===void 0?!1:S,C=gl(o,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:ie.Document,childNodes:[],compatMode:t.compatMode}:{type:ie.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:ie.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:C};case t.ELEMENT_NODE:return wl(t,{doc:o,blockClass:r,blockSelector:n,inlineStylesheet:a,maskInputOptions:l,maskInputFn:f,dataURLOptions:v,inlineImages:p,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:w,rootId:C});case t.TEXT_NODE:return yl(t,{doc:o,needsMask:s,maskTextFn:c,rootId:C,cssCaptured:b});case t.CDATA_SECTION_NODE:return{type:ie.CDATA,textContent:"",rootId:C};case t.COMMENT_NODE:return{type:ie.Comment,textContent:le.textContent(t)||"",rootId:C};default:return!1}}function gl(t,i){if(i.hasNode(t)){var o=i.getId(t);return o===1?void 0:o}}function yl(t,i){var o=i.needsMask,e=i.maskTextFn,r=i.rootId,n=i.cssCaptured,s=le.parentNode(t),a=s&&s.tagName,u="",l=a==="STYLE"?!0:void 0,c=a==="SCRIPT"?!0:void 0;return c?u="SCRIPT_PLACEHOLDER":n||(u=le.textContent(t),l&&u&&(u=lr(u,xn(i.doc)))),!l&&!c&&u&&o&&(u=e?e(u,le.parentElement(t)):u.replace(/[\S]/g,"*")),{type:ie.Text,textContent:u||"",rootId:r}}function wl(t,i){for(var o=i.doc,e=i.blockClass,r=i.blockSelector,n=i.inlineStylesheet,s=i.maskInputOptions,a=s===void 0?{}:s,u=i.maskInputFn,l=i.dataURLOptions,c=l===void 0?{}:l,f=i.inlineImages,h=i.recordCanvas,v=i.keepIframeSrcFn,p=i.newlyAddedElement,y=p===void 0?!1:p,d=i.rootId,g=dl(t,e,r),w=ul(t),S={},b=t.attributes.length,C=0;C<b;C++){var R=t.attributes[C];bo(w,R.name,R.value)||(S[R.name]=So(o,w,Ge(R.name),R.value))}if(w==="link"&&n){var E=Array.from(o.styleSheets).find(function(ye){return ye.href===t.href}),x=null;E&&(x=Cn(E)),x&&(delete S.rel,delete S.href,S._cssText=x)}if(w==="style"&&t.sheet){var _=Cn(t.sheet);_&&(t.childNodes.length>1&&(_=ol(_,t)),S._cssText=_)}if(w==="input"||w==="textarea"||w==="select"){var B=t.value,M=t.checked;S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&B?S.value=In({element:t,type:On(t),tagName:w,value:B,maskInputOptions:a,maskInputFn:u}):M&&(S.checked=M)}if(w==="option"&&(t.selected&&!a.select?S.selected=!0:delete S.selected),w==="dialog"&&t.open&&(S.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(t.__context==="2d")Xu(t)||(S.rr_dataURL=t.toDataURL(c.type,c.quality));else if(!("__context"in t)){var P=t.toDataURL(c.type,c.quality),G=o.createElement("canvas");G.width=t.width,G.height=t.height;var pe=G.toDataURL(c.type,c.quality);P!==pe&&(S.rr_dataURL=P)}}if(w==="img"&&f){nt||(nt=o.createElement("canvas"),yo=nt.getContext("2d"));var j=t,me=j.currentSrc||j.getAttribute("src")||"<unknown-src>",he=j.crossOrigin,Q=function(){j.removeEventListener("load",Q);try{nt.width=j.naturalWidth,nt.height=j.naturalHeight,yo.drawImage(j,0,0),S.rr_dataURL=nt.toDataURL(c.type,c.quality)}catch(ye){if(j.crossOrigin!=="anonymous"){j.crossOrigin="anonymous",j.complete&&j.naturalWidth!==0?Q():j.addEventListener("load",Q);return}else console.warn("Cannot inline img src="+me+"! Error: "+ye)}j.crossOrigin==="anonymous"&&(he?S.crossOrigin=he:j.removeAttribute("crossorigin"))};j.complete&&j.naturalWidth!==0?Q():j.addEventListener("load",Q)}if(w==="audio"||w==="video"){var ae=S;ae.rr_mediaState=t.paused?"paused":"played",ae.rr_mediaCurrentTime=t.currentTime,ae.rr_mediaPlaybackRate=t.playbackRate,ae.rr_mediaMuted=t.muted,ae.rr_mediaLoop=t.loop,ae.rr_mediaVolume=t.volume}if(y||(t.scrollLeft&&(S.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(S.rr_scrollTop=t.scrollTop)),g){var ge=t.getBoundingClientRect(),He=ge.width,Ee=ge.height;S={class:S.class,rr_width:""+He+"px",rr_height:""+Ee+"px"}}w==="iframe"&&!v(S.src)&&(t.contentDocument||(S.rr_src=S.src),delete S.src);var St;try{customElements.get(w)&&(St=!0)}catch(ye){}return{type:ie.Element,tagName:w,attributes:S,childNodes:[],isSVG:hl(t)||void 0,needBlock:g,rootId:d,isCustom:St}}function H(t){return t==null?"":t.toLowerCase()}function Sl(t,i){if(i.comment&&t.type===ie.Comment)return!0;if(t.type===ie.Element){if(i.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"||t.attributes.rel==="modulepreload")&&t.attributes.as==="script"||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&mo(t.attributes.href)==="js"))return!0;if(i.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(H(t.attributes.name).match(/^msapplication-tile(image|color)$/)||H(t.attributes.name)==="application-name"||H(t.attributes.rel)==="icon"||H(t.attributes.rel)==="apple-touch-icon"||H(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(i.headMetaDescKeywords&&H(t.attributes.name).match(/^description|keywords$/))return!0;if(i.headMetaSocial&&(H(t.attributes.property).match(/^(og|twitter|fb):/)||H(t.attributes.name).match(/^(og|twitter):/)||H(t.attributes.name)==="pinterest"))return!0;if(i.headMetaRobots&&(H(t.attributes.name)==="robots"||H(t.attributes.name)==="googlebot"||H(t.attributes.name)==="bingbot"))return!0;if(i.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(i.headMetaAuthorship&&(H(t.attributes.name)==="author"||H(t.attributes.name)==="generator"||H(t.attributes.name)==="framework"||H(t.attributes.name)==="publisher"||H(t.attributes.name)==="progid"||H(t.attributes.property).match(/^article:/)||H(t.attributes.property).match(/^product:/)))return!0;if(i.headMetaVerification&&(H(t.attributes.name)==="google-site-verification"||H(t.attributes.name)==="yandex-verification"||H(t.attributes.name)==="csrf-token"||H(t.attributes.name)==="p:domain_verify"||H(t.attributes.name)==="verify-v1"||H(t.attributes.name)==="verification"||H(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ot(t,i){var o=i.doc,e=i.mirror,r=i.blockClass,n=i.blockSelector,s=i.maskTextClass,a=i.maskTextSelector,u=i.skipChild,l=u===void 0?!1:u,c=i.inlineStylesheet,f=c===void 0?!0:c,h=i.maskInputOptions,v=h===void 0?{}:h,p=i.maskTextFn,y=i.maskInputFn,d=i.slimDOMOptions,g=i.dataURLOptions,w=g===void 0?{}:g,S=i.inlineImages,b=S===void 0?!1:S,C=i.recordCanvas,R=C===void 0?!1:C,E=i.onSerialize,x=i.onIframeLoad,_=i.iframeLoadTimeout,B=_===void 0?5e3:_,M=i.onStylesheetLoad,P=i.stylesheetLoadTimeout,G=P===void 0?5e3:P,pe=i.keepIframeSrcFn,j=pe===void 0?function(){return!1}:pe,me=i.newlyAddedElement,he=me===void 0?!1:me,Q=i.cssCaptured,ae=Q===void 0?!1:Q,ge=i.needsMask,He=i.preserveWhiteSpace,Ee=He===void 0?!0:He;if(!ge){var St=ge===void 0;ge=Co(t,s,a,St)}var ye=ml(t,{doc:o,mirror:e,blockClass:r,blockSelector:n,needsMask:ge,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,dataURLOptions:w,inlineImages:b,recordCanvas:R,keepIframeSrcFn:j,newlyAddedElement:he,cssCaptured:ae});if(!ye)return console.warn(t,"not serialized"),null;var Je;e.hasNode(t)?Je=e.getId(t):Sl(ye,d)||!Ee&&ye.type===ie.Text&&!ye.textContent.replace(/^\s+|\s+$/gm,"").length?Je=Mt:Je=go();var z=Object.assign(ye,{id:Je});if(e.add(t,z),Je===Mt)return null;E&&E(t);var Ze=!l;if(z.type===ie.Element){Ze=Ze&&!z.needBlock,delete z.needBlock;var Ke=le.shadowRoot(t);Ke&&At(Ke)&&(z.isShadowHost=!0)}if((z.type===ie.Document||z.type===ie.Element)&&Ze){d.headWhitespace&&z.type===ie.Element&&z.tagName==="head"&&(Ee=!1);var bt={doc:o,mirror:e,blockClass:r,blockSelector:n,needsMask:ge,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,slimDOMOptions:d,dataURLOptions:w,inlineImages:b,recordCanvas:R,preserveWhiteSpace:Ee,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:B,onStylesheetLoad:M,stylesheetLoadTimeout:G,keepIframeSrcFn:j,cssCaptured:!1};if(!(z.type===ie.Element&&z.tagName==="textarea"&&z.attributes.value!==void 0)){z.type===ie.Element&&z.attributes._cssText!==void 0&&typeof z.attributes._cssText=="string"&&(bt.cssCaptured=!0);for(var rr=O(Array.from(le.childNodes(t))),nr;!(nr=rr()).done;){var Xi=nr.value,vn=ot(Xi,bt);vn&&z.childNodes.push(vn)}}var We=null;if(fo(t)&&(We=le.shadowRoot(t)))for(var Xe=O(Array.from(le.childNodes(We))),Ct;!(Ct=Xe()).done;){var ir=Ct.value,It=ot(ir,bt);It&&(At(We)&&(It.isShadow=!0),z.childNodes.push(It))}}var Qe=le.parentNode(t);return Qe&&Et(Qe)&&At(Qe)&&(z.isShadow=!0),z.type===ie.Element&&z.tagName==="iframe"&&pl(t,function(){var Pe=t.contentDocument;if(Pe&&x){var et=ot(Pe,{doc:Pe,mirror:e,blockClass:r,blockSelector:n,needsMask:ge,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,slimDOMOptions:d,dataURLOptions:w,inlineImages:b,recordCanvas:R,preserveWhiteSpace:Ee,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:B,onStylesheetLoad:M,stylesheetLoadTimeout:G,keepIframeSrcFn:j});et&&x(t,et)}},B),z.type===ie.Element&&z.tagName==="link"&&typeof z.attributes.rel=="string"&&(z.attributes.rel==="stylesheet"||z.attributes.rel==="preload"&&typeof z.attributes.href=="string"&&mo(z.attributes.href)==="css")&&vl(t,function(){if(M){var Pe=ot(t,{doc:o,mirror:e,blockClass:r,blockSelector:n,needsMask:ge,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,slimDOMOptions:d,dataURLOptions:w,inlineImages:b,recordCanvas:R,preserveWhiteSpace:Ee,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:B,onStylesheetLoad:M,stylesheetLoadTimeout:G,keepIframeSrcFn:j});Pe&&M(t,Pe)}},G),z}function bl(t,i){var o=i||{},e=o.mirror,r=e===void 0?new po:e,n=o.blockClass,s=n===void 0?"rr-block":n,a=o.blockSelector,u=a===void 0?null:a,l=o.maskTextClass,c=l===void 0?"rr-mask":l,f=o.maskTextSelector,h=f===void 0?null:f,v=o.inlineStylesheet,p=v===void 0?!0:v,y=o.inlineImages,d=y===void 0?!1:y,g=o.recordCanvas,w=g===void 0?!1:g,S=o.maskAllInputs,b=S===void 0?!1:S,C=o.maskTextFn,R=o.maskInputFn,E=o.slimDOM,x=E===void 0?!1:E,_=o.dataURLOptions,B=o.preserveWhiteSpace,M=o.onSerialize,P=o.onIframeLoad,G=o.iframeLoadTimeout,pe=o.onStylesheetLoad,j=o.stylesheetLoadTimeout,me=o.keepIframeSrcFn,he=me===void 0?function(){return!1}:me,Q=b===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:b===!1?{password:!0}:b,ae=x===!0||x==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:x==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:x===!1?{}:x;return ot(t,{doc:t,mirror:r,blockClass:s,blockSelector:u,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:Q,maskTextFn:C,maskInputFn:R,slimDOMOptions:ae,dataURLOptions:_,inlineImages:d,recordCanvas:w,preserveWhiteSpace:B,onSerialize:M,onIframeLoad:P,iframeLoadTimeout:G,onStylesheetLoad:pe,stylesheetLoadTimeout:j,keepIframeSrcFn:he,newlyAddedElement:!1})}function Cl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Il(t){if(t.__esModule)return t;var i=t.default;if(typeof i=="function"){var o=function e(){return T(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),o}var En={exports:{}},J=String,Io=function(){return{isColorSupported:!1,reset:J,bold:J,dim:J,italic:J,underline:J,inverse:J,hidden:J,strikethrough:J,black:J,red:J,green:J,yellow:J,blue:J,magenta:J,cyan:J,white:J,gray:J,bgBlack:J,bgRed:J,bgGreen:J,bgYellow:J,bgBlue:J,bgMagenta:J,bgCyan:J,bgWhite:J}};En.exports=Io(),En.exports.createColors=Io;var Ol=En.exports,Rl={},xl=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),re=Il(xl),Oo=Ol,Ro=re,An=function(t){ue(i,t);function i(e,r,n,s,a,u){var l;return l=t.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof r!="undefined"&&typeof n!="undefined"&&(typeof r=="number"?(l.line=r,l.column=n):(l.line=r.line,l.column=r.column,l.endLine=n.line,l.endColumn=n.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,i),l}var o=i.prototype;return o.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},o.showSourceCode=function(r){var n=this;if(!this.source)return"";var s=this.source;r==null&&(r=Oo.isColorSupported),Ro&&r&&(s=Ro(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length,f,h;if(r){var v=Oo.createColors(!0),p=v.bold,y=v.gray,d=v.red;f=function(g){return p(d(g))},h=function(g){return y(g)}}else f=h=function(g){return g};return a.slice(u,l).map(function(g,w){var S=u+1+w,b=" "+(" "+S).slice(-c)+" | ";if(S===n.line){var C=h(b.replace(/\d/g," "))+g.slice(0,n.column-1).replace(/[^\t]/g," ");return f(">")+h(b)+g+"\n "+C+f("^")}return" "+h(b)+g}).join("\n")},o.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},i}(ar(Error)),Mn=An;An.default=An;var $e={};$e.isClean=Symbol("isClean"),$e.my=Symbol("my");var xo={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function El(t){return t[0].toUpperCase()+t.slice(1)}var kn=function(){function t(o){this.builder=o}var i=t.prototype;return i.atrule=function(e,r){var n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,r){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var l=0;l<a;l++)n+=u}return n},i.block=function(e,r){var n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},i.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var n=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||n)}},i.comment=function(e){var r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)},i.decl=function(e,r){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,r,n){var s;if(n||(n=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return xo[n];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]!="undefined")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var l="raw"+El(n);return this[l]?s=this[l](u,e):u.walk(function(c){if(s=c.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=xo[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var r;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return r=n.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},i.rawBeforeComment=function(e,r){var n;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,r){var n;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var r;return e.walk(function(n){if(n.type!=="decl"&&(r=n.raws.between,typeof r!="undefined"))return!1}),r},i.rawBeforeRule=function(e){var r;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return r=n.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},i.rawColon=function(e){var r;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r},i.rawEmptyBody=function(e){var r;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r!="undefined"))return!1}),r},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(n){var s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before!="undefined"){var a=n.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},i.rawSemicolon=function(e){var r;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r!="undefined"))return!1}),r},i.rawValue=function(e,r){var n=e[r],s=e.raws[r];return s&&s.value===n?s.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t}(),Eo=kn;kn.default=kn;var Al=Eo;function _n(t,i){var o=new Al(i);o.stringify(t)}var fr=_n;_n.default=_n;var hr=$e.isClean,Ml=$e.my,kl=Mn,_l=Eo,Tl=fr;function Tn(t,i){var o=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],n=typeof r=="undefined"?"undefined":N(r);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=r:Array.isArray(r)?o[e]=r.map(function(s){return Tn(s,o)}):(n==="object"&&r!==null&&(r=Tn(r)),o[e]=r)}return o}var Pn=function(){function t(o){o===void 0&&(o={}),this.raws={},this[hr]=!1,this[Ml]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var r=O(o[e]),n;!(n=r()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=t.prototype;return i.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var r=Tn(this);for(var n in e)r[n]=e[n];return r},i.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},i.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},i.error=function(e,r){if(r===void 0&&(r={}),this.source){var n=this.rangeBy(r),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new kl(e)},i.getProxyProcessor=function(){return{get:function(r,n){return n==="proxyOf"?r:n==="root"?function(){return r.root().toProxy()}:r[n]},set:function(r,n,s){return r[n]===s||(r[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&r.markDirty()),!0}}},i.markDirty=function(){if(this[hr]){this[hr]=!1;for(var e=this;e=e.parent;)e[hr]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,r){var n=this.source.start;if(e.index)n=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(n=this.positionInside(s,r))}return n},i.positionInside=function(e,r){for(var n=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)n[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line}),{end:n,start:r}},i.raw=function(e,r){var n=new _l;return n.raw(this,e,r)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=O(r),l;!(l=u()).done;){var c=l.value;c===this?a=!0:a?(this.parent.insertAfter(s,c),s=c):this.parent.insertBefore(s,c)}a||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,r){var n={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var l=this[u];if(Array.isArray(l))n[u]=l.map(function(f){return(typeof f=="undefined"?"undefined":N(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof l=="undefined"?"undefined":N(l))==="object"&&l.toJSON)n[u]=l.toJSON(null,r);else if(u==="source"){var c=r.get(l.input);c==null&&(c=a,r.set(l.input,a),a++),n[u]={end:l.end,inputId:c,start:l.start}}else n[u]=l}return s&&(n.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=Tl),e.stringify&&(e=e.stringify);var r="";return e(this,function(n){r+=n}),r},i.warn=function(e,r,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(r,s)},oe(t,[{key:"proxyOf",get:function(){return this}}]),t}(),dr=Pn;Pn.default=Pn;var Pl=dr,Nn=function(t){ue(i,t);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=F({},o,{value:String(o.value)})),e=t.call(this,o)||this,e.type="decl",e}return oe(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i}(Pl),pr=Nn;Nn.default=Nn;var Nl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",$l=function(t){t===void 0&&(t=21);for(var i="",o=t;o--;)i+=Nl[Math.random()*64|0];return i},Dl={nanoid:$l},Ao=re.SourceMapConsumer,Mo=re.SourceMapGenerator,Ll=re.existsSync,Fl=re.readFileSync,$n=re.dirname,Bl=re.join;function Ul(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Dn=function(){function t(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,n=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=$n(this.mapFile)),n&&(this.text=n)}}var i=t.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new Ao(this.text)),this.consumerCache},i.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||n.test(e))return Ul(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e=="undefined"?"undefined":N(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var n=e.lastIndexOf(r.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=$n(e),Ll(e))return this.mapFile=e,Fl(e,"utf-8").toString().trim()},i.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var n=r(e);if(n){var s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(T(r,Ao))return Mo.fromSourceMap(r).toString();if(T(r,Mo))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Bl($n(e),a)),this.loadFile(a)}}},i.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),ko=Dn;Dn.default=Dn;var zl=re.SourceMapConsumer,Wl=re.SourceMapGenerator,_o=re.fileURLToPath,vr=re.pathToFileURL,Ln=re.isAbsolute,Fn=re.resolve,Gl=Dl.nanoid,Bn=re,To=Mn,jl=ko,Un=Symbol("fromOffsetCache"),Vl=!!(zl&&Wl),Po=!!(Fn&&Ln),mr=function(){function t(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":N(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Po||/^\w+:\/\//.test(e.from)||Ln(e.from)?this.file=e.from:this.file=Fn(e.from)),Po&&Vl){var r=new jl(this.css,e);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 "+Gl(6)+">"),this.map&&(this.map.file=this.from)}var i=t.prototype;return i.error=function(e,r,n,s){s===void 0&&(s={});var a,u,l;if(r&&(typeof r=="undefined"?"undefined":N(r))==="object"){var c=r,f=n;if(typeof c.offset=="number"){var h=this.fromOffset(c.offset);r=h.line,n=h.col}else r=c.line,n=c.column;if(typeof f.offset=="number"){var v=this.fromOffset(f.offset);u=v.line,l=v.col}else u=f.line,l=f.column}else if(!n){var p=this.fromOffset(r);r=p.line,n=p.col}var y=this.origin(r,n,u,l);return y?a=new To(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new To(e,u===void 0?r:{column:n,line:r},u===void 0?n:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:l,endLine:u,line:r,source:this.css},this.file&&(vr&&(a.input.url=vr(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var r,n;if(this[Un])n=this[Un];else{var s=this.css.split("\n");n=new Array(s.length);for(var a=0,u=0,l=s.length;u<l;u++)n[u]=a,a+=s[u].length+1;this[Un]=n}r=n[n.length-1];var c=0;if(e>=r)c=n.length-1;else for(var f=n.length-2,h;c<f;)if(h=c+(f-c>>1),e<n[h])f=h-1;else if(e>=n[h+1])c=h+1;else{c=h;break}return{col:e-n[c]+1,line:c+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Fn(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,r,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var l;typeof n=="number"&&(l=a.originalPositionFor({column:s,line:n}));var c;Ln(u.source)?c=vr(u.source):c=new URL(u.source,this.map.consumer().sourceRoot||vr(this.map.mapFile));var f={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:c.toString()};if(c.protocol==="file:")if(_o)f.file=_o(c);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},i.toJSON=function(){for(var e={},r=0,n=["hasBOM","css","file","id"];r<n.length;r++){var s=n[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=F({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},oe(t,[{key:"from",get:function(){return this.file||this.id}}]),t}(),gr=mr;mr.default=mr,Bn&&Bn.registerInput&&Bn.registerInput(mr);var No=re.SourceMapConsumer,yr=re.SourceMapGenerator,wr=re.dirname,$o=re.relative,Do=re.resolve,Lo=re.sep,Fo=re.pathToFileURL,Yl=gr,ql=!!(No&&yr),Hl=!!(wr&&Do&&$o&&Lo),Jl=function(){function t(o,e,r,n){this.stringify=o,this.mapOpts=r.map||{},this.root=e,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 i=t.prototype;return i.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=O(this.previous()),r;!(r=e()).done;){var n=r.value,s=this.toUrl(this.path(n.file)),a=n.root||wr(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new No(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),Hl&&ql&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},i.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=yr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new yr({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]},i.generateString=function(){var e=this;this.css="",this.map=new yr({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,n=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,l;this.stringify(this.root,function(c,f,h){if(e.css+=c,f&&h!=="end"&&(a.generated.line=r,a.generated.column=n-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=c.match(/\n/g),u?(r+=u.length,l=c.lastIndexOf("\n"),n=c.length-l):n+=c.length,f&&h!=="start"){var v=f.parent||{raws:{}},p=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!p||f!==v.last||v.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=n-1,e.map.addMapping(a)))}})},i.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},i.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},i.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var n=this.opts.to?wr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=wr(Do(n,this.mapOpts.annotation)));var s=$o(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var s=n.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new Yl(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.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))},i.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Fo){var n=Fo(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var r=thi