mixpanel-browser
Version:
The official Mixpanel JavaScript browser client library
1 lines • 332 kB
JavaScript
(function(){"use strict";var W;if(typeof window=="undefined"){var ks={hostname:""};W={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:ks,referrer:""},screen:{width:0,height:0},location:ks,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else W=window;var ac="__mp_recorder";function _s(r,i){(i==null||i>r.length)&&(i=r.length);for(var o=0,e=new Array(i);o<i;o++)e[o]=r[o];return e}function Ps(r,i,o,e,t,n,s){try{var a=r[n](s),u=a.value}catch(l){o(l);return}a.done?i(u):Promise.resolve(u).then(e,t)}function kr(r){return function(){var i=this,o=arguments;return new Promise(function(e,t){var n=r.apply(i,o);function s(u){Ps(n,e,t,s,a,"next",u)}function a(u){Ps(n,e,t,s,a,"throw",u)}s(void 0)})}}function _r(r,i,o){return Ts()?_r=Reflect.construct:_r=function(t,n,s){var a=[null];a.push.apply(a,n);var u=Function.bind.apply(t,a),l=new u;return s&&Yt(l,s.prototype),l},_r.apply(null,arguments)}function uc(r,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(r,e.key,e)}}function Z(r,i,o){return i&&uc(r.prototype,i),r}function T(){return T=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(r[e]=o[e])}return r},T.apply(this,arguments)}function pi(r){return pi=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},pi(r)}function ee(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),i&&Yt(r,i)}function E(r,i){return i!=null&&typeof Symbol!="undefined"&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](r):r instanceof i}function lc(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function et(r,i){if(r==null)return{};var o={},e=Object.keys(r),t,n;for(n=0;n<e.length;n++)t=e[n],!(i.indexOf(t)>=0)&&(o[t]=r[t]);return o}function Yt(r,i){return Yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yt(r,i)}function M(r){"@swc/helpers - typeof";return r&&typeof Symbol!="undefined"&&r.constructor===Symbol?"symbol":typeof r}function fc(r,i){if(r){if(typeof r=="string")return _s(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _s(r,i)}}function qt(r){var i=typeof Map=="function"?new Map:void 0;return qt=function(e){if(e===null||!lc(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,t)}function t(){return _r(e,arguments,pi(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Yt(t,e)},qt(r)}function Ts(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(Ts=function(){return!!r})()}function I(r,i){var o=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(o)return(o=o.call(r)).next.bind(o);if(Array.isArray(r)||(o=fc(r))||i){o&&(r=o);var e=0;return function(){return e>=r.length?{done:!0}:{done:!1,value:r[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 tt(r,i){var o,e,t,n,s={label:0,sent:function(){if(t[0]&1)throw t[1];return t[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(f){return u([l,f])}}function u(l){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,e&&(t=l[0]&2?e.return:l[0]?e.throw||((t=e.return)&&t.call(e),0):e.next)&&!(t=t.call(e,l[1])).done)return t;switch(e=0,t&&(l=[l[0]&2,t.value]),l[0]){case 0:case 1:t=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(t=s.trys,!(t=t.length>0&&t[t.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!t||l[1]>t[0]&&l[1]<t[3])){s.label=l[1];break}if(l[0]===6&&s.label<t[1]){s.label=t[1],t=l;break}if(t&&s.label<t[2]){s.label=t[2],s.ops.push(l);break}t[2]&&s.ops.pop(),s.trys.pop();continue}l=i.call(r,s)}catch(f){l=[6,f],e=0}finally{o=t=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function di(r){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&r[i],e=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}var cc=Object.defineProperty,hc=function(r,i,o){return i in r?cc(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},O=function(r,i,o){return hc(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)},Ns,pc=Object.defineProperty,dc=function(r,i,o){return i in r?pc(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},Ls=function(r,i,o){return dc(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)},he=(function(r){return r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r})(he||{}),Ds={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Pr={},vc=function(){return!!globalThis.Zone};function vi(r){if(Pr[r])return Pr[r];var i=globalThis[r],o=i.prototype,e=r in Ds?Ds[r]:void 0,t=!!(e&&e.every(function(f){var c,h;return!!((h=(c=Object.getOwnPropertyDescriptor(o,f))==null?void 0:c.get)!=null&&h.toString().includes("[native code]"))})),n=r in Fs?Fs[r]:void 0,s=!!(n&&n.every(function(f){var c;return typeof o[f]=="function"&&((c=o[f])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!vc())return Pr[r]=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[r].prototype;return document.body.removeChild(a),l?Pr[r]=l:o}catch(f){return o}}var mi={};function je(r,i,o){var e,t=r+"."+String(o);if(mi[t])return mi[t].call(i);var n=vi(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(mi[t]=s,s.call(i)):i[o]}var gi={};function Bs(r,i,o){var e=r+"."+String(o);if(gi[e])return gi[e].bind(i);var t=vi(r),n=t[o];return typeof n!="function"?i[o]:(gi[e]=n,n.bind(i))}function mc(r){return je("Node",r,"childNodes")}function gc(r){return je("Node",r,"parentNode")}function yc(r){return je("Node",r,"parentElement")}function wc(r){return je("Node",r,"textContent")}function Sc(r,i){return Bs("Node",r,"contains")(i)}function bc(r){return Bs("Node",r,"getRootNode")()}function Cc(r){return!r||!("host"in r)?null:je("ShadowRoot",r,"host")}function Ic(r){return r.styleSheets}function Oc(r){return!r||!("shadowRoot"in r)?null:je("Element",r,"shadowRoot")}function xc(r,i){return je("Element",r,"querySelector")(i)}function Rc(r,i){return je("Element",r,"querySelectorAll")(i)}function Ec(){return vi("MutationObserver").constructor}function Ac(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var ve={childNodes:mc,parentNode:gc,parentElement:yc,textContent:wc,contains:Sc,getRootNode:bc,host:Cc,styleSheets:Ic,shadowRoot:Oc,querySelector:xc,querySelectorAll:Rc,mutationObserver:Ec,patch:Ac};function Us(r){return r.nodeType===r.ELEMENT_NODE}function Jt(r){var i=r&&"host"in r&&"mode"in r&&ve.host(r)||null;return!!(i&&"shadowRoot"in i&&ve.shadowRoot(i)===r)}function Ht(r){return Object.prototype.toString.call(r)==="[object ShadowRoot]"}function Mc(r){return r.includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),r}function $c(r){var i=r.cssText;if(i.split('"').length<3)return i;var o=["@import","url("+JSON.stringify(r.href)+")"];return r.layerName===""?o.push("layer"):r.layerName&&o.push("layer("+r.layerName+")"),r.supportsText&&o.push("supports("+r.supportsText+")"),r.media.length&&o.push(r.media.mediaText),o.join(" ")+";"}function yi(r){try{var i=r.rules||r.cssRules;if(!i)return null;var o=r.href;!o&&r.ownerNode&&r.ownerNode.ownerDocument&&(o=r.ownerNode.ownerDocument.location.href);var e=Array.from(i,function(t){return zs(t,o)}).join("");return Mc(e)}catch(t){return null}}function zs(r,i){if(_c(r)){var o;try{o=yi(r.styleSheet)||$c(r)}catch(t){o=r.cssText}return r.styleSheet.href?Lr(o,r.styleSheet.href):o}else{var e=r.cssText;return Pc(r)&&r.selectorText.includes(":")&&(e=kc(e)),i?Lr(e,i):e}}function kc(r){var i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return r.replace(i,"$1\\$2")}function _c(r){return"styleSheet"in r}function Pc(r){return"selectorText"in r}var Ws=(function(){function r(){Ls(this,"idNodeMap",new Map),Ls(this,"nodeMetaMap",new WeakMap)}var i=r.prototype;return i.getId=function(e){var t;if(!e)return-1;var n=(t=this.getMeta(e))==null?void 0:t.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,t){var n=this;t===void 0&&(t=!1);var s=this.getId(e);this.idNodeMap.delete(s),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return n.removeNodeFromMap(a,t)})},i.has=function(e){return this.idNodeMap.has(e)},i.hasNode=function(e){return this.nodeMetaMap.has(e)},i.add=function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)},i.replace=function(e,t){var n=this.getNode(e);if(n){var s=this.nodeMetaMap.get(n);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)},i.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},r})();function Tc(){return new Ws}function Tr(r){var i=r.element,o=r.maskInputOptions,e=r.tagName,t=r.type,n=r.value,s=r.maskInputFn,a=n||"",u=t&&rt(t);return(o[e.toLowerCase()]||u&&o[u])&&(s?a=s(a,i):a="*".repeat(a.length)),a}function rt(r){return r.toLowerCase()}var js="__rrweb_original__";function Nc(r){var i=r.getContext("2d");if(!i)return!0;for(var o=50,e=0;e<r.width;e+=o)for(var t=0;t<r.height;t+=o){var n=i.getImageData,s=js in n?n[js]:n,a=new Uint32Array(s.call(i,e,t,Math.min(o,r.width-e),Math.min(o,r.height-t)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function Nr(r){var i=r.type;return r.hasAttribute("data-rr-is-password")?"password":i?rt(i):null}function Gs(r,i){var o;try{o=new URL(r,i!=null?i:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,t=o.pathname.match(e),n;return(n=t==null?void 0:t[1])!=null?n:null}function Lc(r){var i="";return r.indexOf("//")>-1?i=r.split("/").slice(0,3).join("/"):i=r.split("/")[0],i=i.split("?")[0],i}var Dc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Fc=/^(?:[a-z+]+:)?\/\//i,Bc=/^www\..*/i,Uc=/^(data:)([^,]*),(.*)/i;function Lr(r,i){return(r||"").replace(Dc,function(o,e,t,n,s,a){var u=t||s||a,l=e||n||"";if(!u)return o;if(Fc.test(u)||Bc.test(u)||Uc.test(u))return"url("+l+u+l+")";if(u[0]==="/")return"url("+l+(Lc(i)+u)+l+")";var f=i.split("/"),c=u.split("/");f.pop();for(var h=I(c),v;!(v=h()).done;){var d=v.value;d!=="."&&(d===".."?f.pop():f.push(d))}return"url("+l+f.join("/")+l+")"})}function Dr(r,i){return i===void 0&&(i=!1),i?r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function zc(r,i,o){o===void 0&&(o=!1);var e=Array.from(i.childNodes),t=[],n=0;if(e.length>1&&r&&typeof r=="string"){for(var s=Dr(r,o),a=s.length/r.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var l=Dr(e[u].textContent,o),f=100,c=3;c<l.length&&(l[c].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,c),1)!==-1);c++);for(;c<l.length;c++){var h=l.substring(0,c),v=s.split(h),d=-1;if(v.length===2)d=v[0].length;else if(v.length>2&&v[0]===""&&e[u-1].textContent!=="")d=s.indexOf(h,1);else if(v.length===1){if(h=h.substring(0,h.length-1),v=s.split(h),v.length<=1)return t.push(r),t;c=f+1}else c===l.length-1&&(d=s.indexOf(h));if(v.length>=2&&c>f){var g=e[u-1].textContent;if(g&&typeof g=="string"){var p=Dr(g).length;d=s.indexOf(h,p)}d===-1&&(d=v[0].length)}if(d!==-1){for(var m=Math.floor(d/a);m>0&&m<r.length;){if(n+=1,n>50*e.length)return t.push(r),t;var w=Dr(r.substring(0,m),o);if(w.length===d){t.push(r.substring(0,m)),r=r.substring(m),s=s.substring(d);break}else w.length<d?m+=Math.max(1,Math.floor((d-w.length)/a)):m-=Math.max(1,Math.floor((w.length-d)*a))}break}}}}return t.push(r),t}function Wc(r,i){return zc(r,i).join("/* rr_split */")}var jc=1,Gc=new RegExp("[^a-z0-9-_:]"),Zt=-2;function Vs(){return jc++}function Vc(r){if(E(r,HTMLFormElement))return"form";var i=rt(r.tagName);return Gc.test(i)?"div":i}var yt,Ys,Yc=/^[^ \t\n\r\u000c]+/,qc=/^[, \t\n\r\u000c]+/;function Jc(r,i){if(i.trim()==="")return i;var o=0;function e(l){var f,c=l.exec(i.substring(o));return c?(f=c[0],o+=f.length,f):""}for(var t=[];e(qc),!(o>=i.length);){var n=e(Yc);if(n.slice(-1)===",")n=wt(r,n.substring(0,n.length-1)),t.push(n);else{var s="";n=wt(r,n);for(var a=!1;;){var u=i.charAt(o);if(u===""){t.push((n+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){o+=1,t.push((n+s).trim());break}else u==="("&&(a=!0);s+=u,o+=1}}}return t.join(", ")}var qs=new WeakMap;function wt(r,i){return!i||i.trim()===""?i:wi(r,i)}function Hc(r){return!!(r.tagName==="svg"||r.ownerSVGElement)}function wi(r,i){var o=qs.get(r);if(o||(o=r.createElement("a"),qs.set(r,o)),!i)i="";else if(i.startsWith("blob:")||i.startsWith("data:"))return i;return o.setAttribute("href",i),o.href}function Js(r,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")?wt(r,e):o==="srcset"?Jc(r,e):o==="style"?Lr(e,wi(r)):i==="object"&&o==="data"?wt(r,e):e)}function Hs(r,i,o){return(r==="video"||r==="audio")&&i==="autoplay"}function Zc(r,i,o){try{if(typeof i=="string"){if(r.classList.contains(i))return!0}else for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}if(o)return r.matches(o)}catch(n){}return!1}function Fr(r,i,o){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE)return o?Fr(ve.parentNode(r),i,o):!1;for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}return o?Fr(ve.parentNode(r),i,o):!1}function Zs(r,i,o,e){var t;if(Us(r)){if(t=r,!ve.childNodes(t).length)return!1}else{if(ve.parentElement(r)===null)return!1;t=ve.parentElement(r)}try{if(typeof i=="string"){if(e){if(t.closest("."+i))return!0}else if(t.classList.contains(i))return!0}else if(Fr(t,i,e))return!0;if(o){if(e){if(t.closest(o))return!0}else if(t.matches(o))return!0}}catch(n){}return!1}function Kc(r,i,o){var e=r.contentWindow;if(e){var t=!1,n;try{n=e.document.readyState}catch(u){return}if(n!=="complete"){var s=setTimeout(function(){t||(i(),t=!0)},o);r.addEventListener("load",function(){clearTimeout(s),t=!0,i()});return}var a="about:blank";if(e.location.href!==a||r.src===a||r.src==="")return setTimeout(i,0),r.addEventListener("load",i);r.addEventListener("load",i)}}function Xc(r,i,o){var e=!1,t;try{t=r.sheet}catch(s){return}if(!t){var n=setTimeout(function(){e||(i(),e=!0)},o);r.addEventListener("load",function(){clearTimeout(n),e=!0,i()})}}function Qc(r,i){var o=i.doc,e=i.mirror,t=i.blockClass,n=i.blockSelector,s=i.needsMask,a=i.inlineStylesheet,u=i.maskInputOptions,l=u===void 0?{}:u,f=i.maskTextFn,c=i.maskInputFn,h=i.dataURLOptions,v=h===void 0?{}:h,d=i.inlineImages,g=i.recordCanvas,p=i.keepIframeSrcFn,m=i.newlyAddedElement,w=m===void 0?!1:m,S=i.cssCaptured,b=S===void 0?!1:S,C=eh(o,e);switch(r.nodeType){case r.DOCUMENT_NODE:return r.compatMode!=="CSS1Compat"?{type:he.Document,childNodes:[],compatMode:r.compatMode}:{type:he.Document,childNodes:[]};case r.DOCUMENT_TYPE_NODE:return{type:he.DocumentType,name:r.name,publicId:r.publicId,systemId:r.systemId,rootId:C};case r.ELEMENT_NODE:return rh(r,{doc:o,blockClass:t,blockSelector:n,inlineStylesheet:a,maskInputOptions:l,maskInputFn:c,dataURLOptions:v,inlineImages:d,recordCanvas:g,keepIframeSrcFn:p,newlyAddedElement:w,rootId:C});case r.TEXT_NODE:return th(r,{doc:o,needsMask:s,maskTextFn:f,rootId:C,cssCaptured:b});case r.CDATA_SECTION_NODE:return{type:he.CDATA,textContent:"",rootId:C};case r.COMMENT_NODE:return{type:he.Comment,textContent:ve.textContent(r)||"",rootId:C};default:return!1}}function eh(r,i){if(i.hasNode(r)){var o=i.getId(r);return o===1?void 0:o}}function th(r,i){var o=i.needsMask,e=i.maskTextFn,t=i.rootId,n=i.cssCaptured,s=ve.parentNode(r),a=s&&s.tagName,u="",l=a==="STYLE"?!0:void 0,f=a==="SCRIPT"?!0:void 0;return f?u="SCRIPT_PLACEHOLDER":n||(u=ve.textContent(r),l&&u&&(u=Lr(u,wi(i.doc)))),!l&&!f&&u&&o&&(u=e?e(u,ve.parentElement(r)):u.replace(/[\S]/g,"*")),{type:he.Text,textContent:u||"",rootId:t}}function rh(r,i){for(var o=i.doc,e=i.blockClass,t=i.blockSelector,n=i.inlineStylesheet,s=i.maskInputOptions,a=s===void 0?{}:s,u=i.maskInputFn,l=i.dataURLOptions,f=l===void 0?{}:l,c=i.inlineImages,h=i.recordCanvas,v=i.keepIframeSrcFn,d=i.newlyAddedElement,g=d===void 0?!1:d,p=i.rootId,m=Zc(r,e,t),w=Vc(r),S={},b=r.attributes.length,C=0;C<b;C++){var x=r.attributes[C];Hs(w,x.name,x.value)||(S[x.name]=Js(o,w,rt(x.name),x.value))}if(w==="link"&&n){var $=Array.from(o.styleSheets).find(function(Ie){return Ie.href===r.href}),R=null;$&&(R=yi($)),R&&(delete S.rel,delete S.href,S._cssText=R)}if(w==="style"&&r.sheet){var k=yi(r.sheet);k&&(r.childNodes.length>1&&(k=Wc(k,r)),S._cssText=k)}if(w==="input"||w==="textarea"||w==="select"){var N=r.value,ae=r.checked;S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&N?S.value=Tr({element:r,type:Nr(r),tagName:w,value:N,maskInputOptions:a,maskInputFn:u}):ae&&(S.checked=ae)}if(w==="option"&&(r.selected&&!a.select?S.selected=!0:delete S.selected),w==="dialog"&&r.open&&(S.rr_open_mode=r.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(r.__context==="2d")Nc(r)||(S.rr_dataURL=r.toDataURL(f.type,f.quality));else if(!("__context"in r)){var _=r.toDataURL(f.type,f.quality),L=o.createElement("canvas");L.width=r.width,L.height=r.height;var ie=L.toDataURL(f.type,f.quality);_!==ie&&(S.rr_dataURL=_)}}if(w==="img"&&c){yt||(yt=o.createElement("canvas"),Ys=yt.getContext("2d"));var z=r,Ce=z.currentSrc||z.getAttribute("src")||"<unknown-src>",Se=z.crossOrigin,pe=function(){z.removeEventListener("load",pe);try{yt.width=z.naturalWidth,yt.height=z.naturalHeight,Ys.drawImage(z,0,0),S.rr_dataURL=yt.toDataURL(f.type,f.quality)}catch(Ie){if(z.crossOrigin!=="anonymous"){z.crossOrigin="anonymous",z.complete&&z.naturalWidth!==0?pe():z.addEventListener("load",pe);return}else console.warn("Cannot inline img src="+Ce+"! Error: "+Ie)}z.crossOrigin==="anonymous"&&(Se?S.crossOrigin=Se:z.removeAttribute("crossorigin"))};z.complete&&z.naturalWidth!==0?pe():z.addEventListener("load",pe)}if(w==="audio"||w==="video"){var oe=S;oe.rr_mediaState=r.paused?"paused":"played",oe.rr_mediaCurrentTime=r.currentTime,oe.rr_mediaPlaybackRate=r.playbackRate,oe.rr_mediaMuted=r.muted,oe.rr_mediaLoop=r.loop,oe.rr_mediaVolume=r.volume}if(g||(r.scrollLeft&&(S.rr_scrollLeft=r.scrollLeft),r.scrollTop&&(S.rr_scrollTop=r.scrollTop)),m){var de=r.getBoundingClientRect(),lt=de.width,Te=de.height;S={class:S.class,rr_width:""+lt+"px",rr_height:""+Te+"px"}}w==="iframe"&&!v(S.src)&&(r.contentDocument||(S.rr_src=S.src),delete S.src);var zt;try{customElements.get(w)&&(zt=!0)}catch(Ie){}return{type:he.Element,tagName:w,attributes:S,childNodes:[],isSVG:Hc(r)||void 0,needBlock:m,rootId:p,isCustom:zt}}function J(r){return r==null?"":r.toLowerCase()}function nh(r,i){if(i.comment&&r.type===he.Comment)return!0;if(r.type===he.Element){if(i.script&&(r.tagName==="script"||r.tagName==="link"&&(r.attributes.rel==="preload"&&r.attributes.as==="script"||r.attributes.rel==="modulepreload")||r.tagName==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&Gs(r.attributes.href)==="js"))return!0;if(i.headFavicon&&(r.tagName==="link"&&r.attributes.rel==="shortcut icon"||r.tagName==="meta"&&(J(r.attributes.name).match(/^msapplication-tile(image|color)$/)||J(r.attributes.name)==="application-name"||J(r.attributes.rel)==="icon"||J(r.attributes.rel)==="apple-touch-icon"||J(r.attributes.rel)==="shortcut icon")))return!0;if(r.tagName==="meta"){if(i.headMetaDescKeywords&&J(r.attributes.name).match(/^description|keywords$/))return!0;if(i.headMetaSocial&&(J(r.attributes.property).match(/^(og|twitter|fb):/)||J(r.attributes.name).match(/^(og|twitter):/)||J(r.attributes.name)==="pinterest"))return!0;if(i.headMetaRobots&&(J(r.attributes.name)==="robots"||J(r.attributes.name)==="googlebot"||J(r.attributes.name)==="bingbot"))return!0;if(i.headMetaHttpEquiv&&r.attributes["http-equiv"]!==void 0)return!0;if(i.headMetaAuthorship&&(J(r.attributes.name)==="author"||J(r.attributes.name)==="generator"||J(r.attributes.name)==="framework"||J(r.attributes.name)==="publisher"||J(r.attributes.name)==="progid"||J(r.attributes.property).match(/^article:/)||J(r.attributes.property).match(/^product:/)))return!0;if(i.headMetaVerification&&(J(r.attributes.name)==="google-site-verification"||J(r.attributes.name)==="yandex-verification"||J(r.attributes.name)==="csrf-token"||J(r.attributes.name)==="p:domain_verify"||J(r.attributes.name)==="verify-v1"||J(r.attributes.name)==="verification"||J(r.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function St(r,i){var o=i.doc,e=i.mirror,t=i.blockClass,n=i.blockSelector,s=i.maskTextClass,a=i.maskTextSelector,u=i.skipChild,l=u===void 0?!1:u,f=i.inlineStylesheet,c=f===void 0?!0:f,h=i.maskInputOptions,v=h===void 0?{}:h,d=i.maskTextFn,g=i.maskInputFn,p=i.slimDOMOptions,m=i.dataURLOptions,w=m===void 0?{}:m,S=i.inlineImages,b=S===void 0?!1:S,C=i.recordCanvas,x=C===void 0?!1:C,$=i.onSerialize,R=i.onIframeLoad,k=i.iframeLoadTimeout,N=k===void 0?5e3:k,ae=i.onStylesheetLoad,_=i.stylesheetLoadTimeout,L=_===void 0?5e3:_,ie=i.keepIframeSrcFn,z=ie===void 0?function(){return!1}:ie,Ce=i.newlyAddedElement,Se=Ce===void 0?!1:Ce,pe=i.cssCaptured,oe=pe===void 0?!1:pe,de=i.needsMask,lt=i.preserveWhiteSpace,Te=lt===void 0?!0:lt;if(!de){var zt=de===void 0;de=Zs(r,s,a,zt)}var Ie=Qc(r,{doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:g,dataURLOptions:w,inlineImages:b,recordCanvas:x,keepIframeSrcFn:z,newlyAddedElement:Se,cssCaptured:oe});if(!Ie)return console.warn(r,"not serialized"),null;var ft;e.hasNode(r)?ft=e.getId(r):nh(Ie,p)||!Te&&Ie.type===he.Text&&!Ie.textContent.replace(/^\s+|\s+$/gm,"").length?ft=Zt:ft=Vs();var j=Object.assign(Ie,{id:ft});if(e.add(r,j),ft===Zt)return null;$&&$(r);var ct=!l;if(j.type===he.Element){ct=ct&&!j.needBlock,delete j.needBlock;var ht=ve.shadowRoot(r);ht&&Ht(ht)&&(j.isShadowHost=!0)}if((j.type===he.Document||j.type===he.Element)&&ct){p.headWhitespace&&j.type===he.Element&&j.tagName==="head"&&(Te=!1);var Wt={doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:g,slimDOMOptions:p,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:Te,onSerialize:$,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z,cssCaptured:!1};if(!(j.type===he.Element&&j.tagName==="textarea"&&j.attributes.value!==void 0)){j.type===he.Element&&j.attributes._cssText!==void 0&&typeof j.attributes._cssText=="string"&&(Wt.cssCaptured=!0);for(var Ar=I(Array.from(ve.childNodes(r))),Mr;!(Mr=Ar()).done;){var Es=Mr.value,ci=St(Es,Wt);ci&&j.childNodes.push(ci)}}var Qe=null;if(Us(r)&&(Qe=ve.shadowRoot(r)))for(var pt=I(Array.from(ve.childNodes(Qe))),jt;!(jt=pt()).done;){var $r=jt.value,Gt=St($r,Wt);Gt&&(Ht(Qe)&&(Gt.isShadow=!0),j.childNodes.push(Gt))}}var dt=ve.parentNode(r);return dt&&Jt(dt)&&Ht(dt)&&(j.isShadow=!0),j.type===he.Element&&j.tagName==="iframe"&&Kc(r,function(){var ze=r.contentDocument;if(ze&&R){var vt=St(ze,{doc:ze,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:g,slimDOMOptions:p,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:Te,onSerialize:$,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z});vt&&R(r,vt)}},N),j.type===he.Element&&j.tagName==="link"&&typeof j.attributes.rel=="string"&&(j.attributes.rel==="stylesheet"||j.attributes.rel==="preload"&&typeof j.attributes.href=="string"&&Gs(j.attributes.href)==="css")&&Xc(r,function(){if(ae){var ze=St(r,{doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:g,slimDOMOptions:p,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:Te,onSerialize:$,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z});ze&&ae(r,ze)}},L),j}function ih(r,i){var o=i||{},e=o.mirror,t=e===void 0?new Ws:e,n=o.blockClass,s=n===void 0?"rr-block":n,a=o.blockSelector,u=a===void 0?null:a,l=o.maskTextClass,f=l===void 0?"rr-mask":l,c=o.maskTextSelector,h=c===void 0?null:c,v=o.inlineStylesheet,d=v===void 0?!0:v,g=o.inlineImages,p=g===void 0?!1:g,m=o.recordCanvas,w=m===void 0?!1:m,S=o.maskAllInputs,b=S===void 0?!1:S,C=o.maskTextFn,x=o.maskInputFn,$=o.slimDOM,R=$===void 0?!1:$,k=o.dataURLOptions,N=o.preserveWhiteSpace,ae=o.onSerialize,_=o.onIframeLoad,L=o.iframeLoadTimeout,ie=o.onStylesheetLoad,z=o.stylesheetLoadTimeout,Ce=o.keepIframeSrcFn,Se=Ce===void 0?function(){return!1}:Ce,pe=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,hidden:!0}:b===!1?{password:!0}:b,oe=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R;return St(r,{doc:r,mirror:t,blockClass:s,blockSelector:u,maskTextClass:f,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:pe,maskTextFn:C,maskInputFn:x,slimDOMOptions:oe,dataURLOptions:k,inlineImages:p,recordCanvas:w,preserveWhiteSpace:N,onSerialize:ae,onIframeLoad:_,iframeLoadTimeout:L,onStylesheetLoad:ie,stylesheetLoadTimeout:z,keepIframeSrcFn:Se,newlyAddedElement:!1})}function oh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function sh(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function e(){return E(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(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),o}var Si={exports:{}},K=String,Ks=function(){return{isColorSupported:!1,reset:K,bold:K,dim:K,italic:K,underline:K,inverse:K,hidden:K,strikethrough:K,black:K,red:K,green:K,yellow:K,blue:K,magenta:K,cyan:K,white:K,gray:K,bgBlack:K,bgRed:K,bgGreen:K,bgYellow:K,bgBlue:K,bgMagenta:K,bgCyan:K,bgWhite:K}};Si.exports=Ks(),Si.exports.createColors=Ks;var ah=Si.exports,uh={},lh=Object.freeze(Object.defineProperty({__proto__:null,default:uh},Symbol.toStringTag,{value:"Module"})),ue=sh(lh),Xs=ah,Qs=ue,bi=(function(r){ee(i,r);function i(e,t,n,s,a,u){var l;return l=r.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(l.line=t,l.column=n):(l.line=t.line,l.column=t.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(t){var n=this;if(!this.source)return"";var s=this.source;t==null&&(t=Xs.isColorSupported),Qs&&t&&(s=Qs(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),f=String(l).length,c,h;if(t){var v=Xs.createColors(!0),d=v.bold,g=v.gray,p=v.red;c=function(m){return d(p(m))},h=function(m){return g(m)}}else c=h=function(m){return m};return a.slice(u,l).map(function(m,w){var S=u+1+w,b=" "+(" "+S).slice(-f)+" | ";if(S===n.line){var C=h(b.replace(/\d/g," "))+m.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(b)+m+"\n "+C+c("^")}return" "+h(b)+m}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(qt(Error)),Ci=bi;bi.default=bi;var Ge={};Ge.isClean=Symbol("isClean"),Ge.my=Symbol("my");var ea={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function fh(r){return r[0].toUpperCase()+r.slice(1)}var Ii=(function(){function r(o){this.builder=o}var i=r.prototype;return i.atrule=function(e,t){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||"")+(t?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,t){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="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,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+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 t=e.nodes.length-1;t>0&&e.nodes[t].type==="comment";)t-=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,t!==s||n)}},i.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},i.decl=function(e,t){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,t,n){var s;if(n||(n=t),t&&(s=e.raws[t],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 ea[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"+fh(n);return this[l]?s=this[l](u,e):u.walk(function(f){if(s=f.raws[t],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=ea[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawBeforeComment=function(e,t){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(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,t){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(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var t;return e.walk(function(n){if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return!1}),t},i.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawColon=function(e){var t;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t},i.rawEmptyBody=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return!1}),t},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;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 t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t},i.rawSemicolon=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return!1}),t},i.rawValue=function(e,t){var n=e[t],s=e.raws[t];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,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)},r})(),ta=Ii;Ii.default=Ii;var ch=ta;function Oi(r,i){var o=new ch(i);o.stringify(r)}var Br=Oi;Oi.default=Oi;var Ur=Ge.isClean,hh=Ge.my,ph=Ci,dh=ta,vh=Br;function xi(r,i){var o=new r.constructor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&e!=="proxyCache"){var t=r[e],n=typeof t=="undefined"?"undefined":M(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return xi(s,o)}):(n==="object"&&t!==null&&(t=xi(t)),o[e]=t)}return o}var Ri=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[Ur]=!1,this[hh]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var t=I(o[e]),n;!(n=t()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=r.prototype;return i.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},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var t in e)this[t]=e[t];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 t=xi(this);for(var n in e)t[n]=e[n];return t},i.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},i.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},i.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new ph(e)},i.getProxyProcessor=function(){return{get:function(t,n){return n==="proxyOf"?t:n==="root"?function(){return t.root().toProxy()}:t[n]},set:function(t,n,s){return t[n]===s||(t[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}},i.markDirty=function(){if(this[Ur]){this[Ur]=!1;for(var e=this;e=e.parent;)e[Ur]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n},i.positionInside=function(e,t){for(var n=t||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 t={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:t.column+1,line:t.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(t=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=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<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},i.raw=function(e,t){var n=new dh;return n.raw(this,e,t)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=I(t),l;!(l=u()).done;){var f=l.value;f===this?a=!0:a?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f)}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,t){var n={},s=t==null;t=t||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(c){return(typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof l=="undefined"?"undefined":M(l))==="object"&&l.toJSON)n[u]=l.toJSON(null,t);else if(u==="source"){var f=t.get(l.input);f==null&&(f=a,t.set(l.input,a),a++),n[u]={end:l.end,inputId:f,start:l.start}}else n[u]=l}return s&&(n.inputs=[].concat(t.keys()).map(function(c){return c.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=vh),e.stringify&&(e=e.stringify);var t="";return e(this,function(n){t+=n}),t},i.warn=function(e,t,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(t,s)},Z(r,[{key:"proxyOf",get:function(){return this}}]),r})(),zr=Ri;Ri.default=Ri;var mh=zr,Ei=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=T({},o,{value:String(o.value)})),e=r.call(this,o)||this,e.type="decl",e}return Z(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(mh),Wr=Ei;Ei.default=Ei;var gh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",yh=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=gh[Math.random()*64|0];return i},wh={nanoid:yh},ra=ue.SourceMapConsumer,na=ue.SourceMapGenerator,Sh=ue.existsSync,bh=ue.readFileSync,Ai=ue.dirname,Ch=ue.join;function Ih(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Mi=(function(){function r(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var t=e.map?e.map.prev:void 0,n=this.loadMap(e.from,t);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Ai(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new ra(this.text)),this.consumerCache},i.decodeInline=function(e){var t=/^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(t.test(e)||n.test(e))return Ih(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":M(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=Ai(e),Sh(e))return this.mapFile=e,bh(e,"utf-8").toString().trim()},i.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){var n=t(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(E(t,ra))return na.fromSourceMap(t).toString();if(E(t,na))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Ch(Ai(e),a)),this.loadFile(a)}}},i.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},r})(),ia=Mi;Mi.default=Mi;var Oh=ue.SourceMapConsumer,xh=ue.SourceMapGenerator,oa=ue.fileURLToPath,jr=ue.pathToFileURL,$i=ue.isAbsolute,ki=ue.resolve,Rh=wh.nanoid,_i=ue,sa=Ci,Eh=ia,Pi=Symbol("fromOffsetCache"),Ah=!!(Oh&&xh),aa=!!(ki&&$i),Gr=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":M(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&&(!aa||/^\w+:\/\//.test(e.from)||$i(e.from)?this.file=e.from:this.file=ki(e.from)),aa&&Ah){var t=new Eh(this.css,e);if(t.text){this.map=t;var n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Rh(6)+">"),this.map&&(this.map.file=this.from)}var i=r.prototype;return i.error=function(e,t,n,s){s===void 0&&(s={});var a,u,l;if(t&&(typeof t=="undefined"?"undefined":M(t))==="object"){var f=t,c=n;if(typeof f.offset=="number"){var h=this.fromOffset(f.offset);t=h.line,n=h.col}else t=f.line,n=f.column;if(typeof c.offset=="number"){var v=this.fromOffset(c.offset);u=v.line,l=v.col}else u=c.line,l=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var g=this.origin(t,n,u,l);return g?a=new sa(e,g.endLine===void 0?g.line:{column:g.column,line:g.line},g.endLine===void 0?g.column:{column:g.endColumn,line:g.endLine},g.source,g.file,s.plugin):a=new sa(e,u===void 0?t:{column:n,line:t},u===void 0?n:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:l,endLine:u,line:t,source:this.css},this.file&&(jr&&(a.input.url=jr(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[Pi])n=this[Pi];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[Pi]=n}t=n[n.length-1];var f=0;if(e>=t)f=n.length-1;else for(var c=n.length-2,h;f<c;)if(h=f+(c-f>>1),e<n[h])c=h-1;else if(e>=n[h+1])f=h+1;else{f=h;break}return{col:e-n[f]+1,line:f+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ki(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,t,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;var l;typeof n=="number"&&(l=a.originalPositionFor({column:s,line:n}));var f;$i(u.source)?f=jr(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||jr(this.map.mapFile));var c={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:f.toString()};if(f.protocol==="file:")if(oa)c.file=oa(f);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(c.source=h),c},i.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var s=n[t];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),Vr=Gr;Gr.default=Gr,_i&&_i.registerInput&&_i.registerInput(Gr);var ua=ue.SourceMapConsumer,Yr=ue.SourceMapGenerator,qr=ue.dirname,la=ue.relative,fa=ue.resolve,ca=ue.sep,ha=ue.pathToFileURL,Mh=Vr,$h=!!(ua&&Yr),kh=!!(qr&&fa&&la&&ca),_h=(function(){function r(o,e,t,n){this.stringify=o,this.mapOpts=t.map||{},this.root=e,this.opts=t,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=r.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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=I(this.previous()),t;!(t=e()).done;){var n=t.value,s=this.toUrl(this.path(n.file)),a=n.root||qr(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ua(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,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),kh&&$h&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[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 t=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(f,c,h){if(e.css+=f,c&&h!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=e.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=f.match(/\n/g),u?(t+=u.length,l=f.lastIndexOf("\n"),n=f.length-l):n+=f.length,c&&h!=="start"){var v=c.parent||{raws:{}},d=c.type==="decl"||c.type==="atrule"&&!c.nodes;(!d||c!==v.last||v.raws.semicolon)&&(c.source&&c.source.end?(a.source=e.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=t,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(t){return t.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 t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?qr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=qr(fa(n,this.mapOpts.annotation)));var s=la(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMa